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
uproot/const.py
guiguem/uproot
0
25113
#!/usr/bin/env python # Copyright (c) 2017, DIANA-HEP # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the following disclaimer. # # * Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. # # * Neither the name of the copyright holder nor the names of its # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ROOT constants used in deserialization.""" import numpy # used in unmarshaling kByteCountMask = numpy.int64(0x40000000) kByteCountVMask = numpy.int64(0x4000) kClassMask = numpy.int64(0x80000000) kNewClassTag = numpy.int64(0xFFFFFFFF) kIsOnHeap = numpy.uint32(0x01000000) kIsReferenced = numpy.uint32(1 << 4) kMapOffset = 2 # not used? kNullTag = 0 kNotDeleted = 0x02000000 kZombie = 0x04000000 kBitMask = 0x00ffffff kDisplacementMask = 0xFF000000 ################################################################ core/zip/inc/Compression.h kZLIB = 1 kLZMA = 2 kOldCompressionAlgo = 3 kLZ4 = 4 kUndefinedCompressionAlgorithm = 5 ################################################################ constants for streamers kBase = 0 kChar = 1 kShort = 2 kInt = 3 kLong = 4 kFloat = 5 kCounter = 6 kCharStar = 7 kDouble = 8 kDouble32 = 9 kLegacyChar = 10 kUChar = 11 kUShort = 12 kUInt = 13 kULong = 14 kBits = 15 kLong64 = 16 kULong64 = 17 kBool = 18 kFloat16 = 19 kOffsetL = 20 kOffsetP = 40 kObject = 61 kAny = 62 kObjectp = 63 kObjectP = 64 kTString = 65 kTObject = 66 kTNamed = 67 kAnyp = 68 kAnyP = 69 kAnyPnoVT = 70 kSTLp = 71 kSkip = 100 kSkipL = 120 kSkipP = 140 kConv = 200 kConvL = 220 kConvP = 240 kSTL = 300 kSTLstring = 365 kStreamer = 500 kStreamLoop = 501 ################################################################ constants from core/foundation/inc/ESTLType.h kNotSTL = 0 kSTLvector = 1 kSTLlist = 2 kSTLdeque = 3 kSTLmap = 4 kSTLmultimap = 5 kSTLset = 6 kSTLmultiset = 7 kSTLbitset = 8 kSTLforwardlist = 9 kSTLunorderedset = 10 kSTLunorderedmultiset = 11 kSTLunorderedmap = 12 kSTLunorderedmultimap = 13 kSTLend = 14 kSTLany = 300 ################################################################ IOFeatures kGenerateOffsetMap = 1
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29955, 29892, 22471, 2190, 29909, 29899, 9606, 29925, 13, 29937, 2178, 10462, 21676, 29889, 13, 29937, 29871, 13, 29937, 4367, 391, 3224, 322, 671, 297, 2752, 322, 7581, 7190, 29892, 411, 470, 1728, 13, 29937, 21733, 29892, 526, 21905, 4944, 393, 278, 1494, 5855, 526, 1539, 29901, 13, 29937, 29871, 13, 29937, 334, 4367, 391, 3224, 29879, 310, 2752, 775, 1818, 11551, 278, 2038, 3509, 1266, 8369, 29892, 445, 13, 29937, 259, 1051, 310, 5855, 322, 278, 1494, 2313, 433, 4193, 29889, 13, 29937, 29871, 13, 29937, 334, 4367, 391, 3224, 29879, 297, 7581, 883, 1818, 18532, 278, 2038, 3509, 1266, 8369, 29892, 13, 29937, 259, 445, 1051, 310, 5855, 322, 278, 1494, 2313, 433, 4193, 297, 278, 5106, 13, 29937, 259, 322, 29914, 272, 916, 17279, 4944, 411, 278, 4978, 29889, 13, 29937, 29871, 13, 29937, 334, 2448, 2121, 278, 1024, 310, 278, 3509, 1266, 19464, 3643, 278, 2983, 310, 967, 13, 29937, 259, 17737, 29560, 1122, 367, 1304, 304, 1095, 272, 344, 470, 27391, 9316, 10723, 515, 13, 29937, 259, 445, 7047, 1728, 2702, 7536, 3971, 10751, 29889, 13, 29937, 29871, 13, 29937, 3446, 3235, 7791, 7818, 12982, 1525, 8519, 13756, 13044, 3352, 6770, 6093, 315, 4590, 29979, 22789, 3912, 379, 5607, 8032, 29903, 5300, 8707, 29911, 3960, 29933, 2692, 24125, 376, 3289, 8519, 29908, 13, 29937, 5300, 13764, 29979, 8528, 15094, 1799, 6323, 306, 3580, 5265, 3352, 399, 1718, 29934, 13566, 29059, 29892, 2672, 6154, 15789, 4214, 29892, 350, 2692, 6058, 27848, 3352, 7495, 29892, 6093, 13, 29937, 306, 3580, 5265, 3352, 399, 1718, 29934, 13566, 29059, 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, 13, 29937, 28657, 13875, 8890, 29928, 29889, 2672, 11698, 382, 29963, 3919, 24972, 9818, 6093, 315, 4590, 29979, 22789, 3912, 379, 5607, 8032, 6323, 8707, 29911, 3960, 29933, 2692, 24125, 20700, 17705, 6181, 13, 29937, 15842, 13764, 29979, 22471, 26282, 29892, 2672, 4571, 26282, 29892, 2672, 29907, 1367, 3919, 1964, 29892, 317, 4162, 8426, 1964, 29892, 8528, 29923, 3580, 29931, 19926, 29892, 6323, 8707, 1660, 13356, 3919, 25758, 13, 29937, 21330, 1529, 1692, 29903, 313, 1177, 6154, 15789, 4214, 29892, 350, 2692, 6058, 27848, 3352, 7495, 29892, 13756, 29907, 11499, 13780, 8079, 27092, 1254, 1806, 26027, 21947, 29949, 8452, 6323, 13, 29937, 26996, 29963, 2965, 2890, 29936, 11247, 1799, 8079, 501, 1660, 29892, 360, 8254, 29892, 6323, 13756, 29943, 1806, 29903, 29936, 6323, 350, 3308, 8895, 1799, 2672, 4945, 29934, 4897, 29911, 2725, 29897, 29832, 8851, 5348, 13, 29937, 12766, 17171, 29928, 5300, 6732, 13764, 29979, 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, 13, 29937, 6323, 323, 8476, 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, 13, 29937, 8079, 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, 13, 15945, 29908, 21289, 17727, 1304, 297, 16964, 616, 2133, 1213, 15945, 13, 13, 5215, 12655, 13, 13, 29937, 1304, 297, 443, 3034, 845, 12818, 13, 29895, 12901, 3981, 19832, 4706, 353, 12655, 29889, 524, 29953, 29946, 29898, 29900, 29916, 29946, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29897, 13, 29895, 12901, 3981, 9219, 1278, 539, 353, 12655, 29889, 524, 29953, 29946, 29898, 29900, 29916, 29946, 29900, 29900, 29900, 29897, 13, 29895, 2385, 19832, 9651, 353, 12655, 29889, 524, 29953, 29946, 29898, 29900, 29916, 29947, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29897, 13, 29895, 4373, 2385, 8176, 3986, 353, 12655, 29889, 524, 29953, 29946, 29898, 29900, 29916, 22098, 22098, 29897, 13, 13, 29895, 3624, 2951, 3868, 481, 632, 353, 12655, 29889, 13470, 29941, 29906, 29898, 29900, 29916, 29900, 29896, 29900, 29900, 29900, 29900, 29900, 29900, 29897, 13, 29895, 3624, 1123, 571, 9223, 308, 353, 12655, 29889, 13470, 29941, 29906, 29898, 29896, 3532, 29871, 29946, 29897, 13, 13, 29895, 3388, 10302, 9651, 353, 29871, 29906, 13, 13, 29937, 451, 1304, 29973, 13, 29895, 7327, 8176, 795, 353, 29871, 29900, 13, 29895, 3664, 2772, 22742, 965, 353, 29871, 29900, 29916, 29900, 29906, 29900, 29900, 29900, 29900, 29900, 29900, 13, 29895, 29999, 3424, 347, 1669, 353, 29871, 29900, 29916, 29900, 29946, 29900, 29900, 29900, 29900, 29900, 29900, 13, 29895, 21591, 19832, 795, 353, 29871, 29900, 29916, 29900, 29900, 17156, 600, 13, 29895, 4205, 29886, 9552, 19832, 268, 353, 29871, 29900, 29916, 4198, 29900, 29900, 29900, 29900, 29900, 29900, 13, 13, 13383, 13383, 13383, 13383, 7136, 29914, 7554, 29914, 3742, 29914, 1523, 2590, 29889, 29882, 13, 13, 29895, 29999, 5265, 29933, 462, 353, 29871, 29896, 13, 29895, 29931, 29999, 1529, 462, 353, 29871, 29906, 13, 29895, 21648, 1523, 2590, 2499, 1484, 259, 353, 29871, 29941, 13, 29895, 29931, 29999, 29946, 462, 29871, 353, 29871, 29946, 13, 29895, 25263, 5598, 1523, 2590, 22461, 4540, 353, 29871, 29945, 13, 13, 13383, 13383, 13383, 13383, 17727, 363, 4840, 414, 13, 13, 29895, 5160, 462, 353, 29871, 29900, 13, 29895, 5914, 462, 353, 29871, 29896, 13, 29895, 21322, 18884, 353, 29871, 29906, 13, 29895, 2928, 462, 29871, 353, 29871, 29941, 13, 29895, 8208, 462, 353, 29871, 29946, 13, 29895, 11031, 18884, 353, 29871, 29945, 13, 29895, 17779, 795, 353, 29871, 29953, 13, 29895, 5914, 16213, 632, 353, 29871, 29955, 13, 29895, 11843, 1669, 353, 29871, 29947, 13, 29895, 11843, 29941, 29906, 632, 353, 29871, 29929, 13, 29895, 22988, 4135, 5914, 965, 353, 29871, 29896, 29900, 13, 29895, 29965, 5914, 18884, 353, 29871, 29896, 29896, 13, 29895, 29965, 21322, 1669, 353, 29871, 29896, 29906, 13, 29895, 29965, 2928, 462, 353, 29871, 29896, 29941, 13, 29895, 29965, 8208, 18884, 353, 29871, 29896, 29946, 13, 29895, 29933, 1169, 462, 353, 29871, 29896, 29945, 13, 29895, 8208, 29953, 29946, 1669, 353, 29871, 29896, 29953, 13, 29895, 29965, 8208, 29953, 29946, 795, 353, 29871, 29896, 29955, 13, 29895, 24693, 462, 353, 29871, 29896, 29947, 13, 29895, 11031, 29896, 29953, 795, 353, 29871, 29896, 29929, 13, 29895, 10302, 29931, 795, 353, 29871, 29906, 29900, 13, 29895, 10302, 29925, 795, 353, 29871, 29946, 29900, 13, 29895, 2061, 1669, 353, 29871, 29953, 29896, 13, 29895, 10773, 462, 29871, 353, 29871, 29953, 29906, 13, 29895, 2061, 29886, 795, 353, 29871, 29953, 29941, 13, 29895, 2061, 29925, 795, 353, 29871, 29953, 29946, 13, 29895, 29911, 1231, 795, 353, 29871, 29953, 29945, 13, 29895, 29911, 2061, 795, 353, 29871, 29953, 29953, 13, 29895, 29911, 22175, 1669, 353, 29871, 29953, 29955, 13, 29895, 10773, 29886, 462, 353, 29871, 29953, 29947, 13, 29895, 10773, 29925, 462, 353, 29871, 29953, 29929, 13, 29895, 10773, 29925, 1217, 29963, 29911, 632, 353, 29871, 29955, 29900, 13, 29895, 1254, 29931, 29886, 462, 353, 29871, 29955, 29896, 13, 13, 29895, 15797, 666, 462, 353, 29871, 29896, 29900, 29900, 13, 29895, 15797, 666, 29931, 18884, 353, 29871, 29896, 29906, 29900, 13, 29895, 15797, 666, 29925, 18884, 353, 29871, 29896, 29946, 29900, 13, 13, 29895, 1168, 29894, 462, 353, 29871, 29906, 29900, 29900, 13, 29895, 1168, 29894, 29931, 18884, 353, 29871, 29906, 29906, 29900, 13, 29895, 1168, 29894, 29925, 18884, 353, 29871, 29906, 29946, 29900, 13, 13, 29895, 1254, 29931, 462, 29871, 353, 29871, 29941, 29900, 29900, 13, 29895, 1254, 29931, 1807, 9651, 353, 29871, 29941, 29953, 29945, 13, 13, 29895, 3835, 261, 632, 353, 29871, 29945, 29900, 29900, 13, 29895, 3835, 18405, 965, 353, 29871, 29945, 29900, 29896, 13, 13, 13383, 13383, 13383, 13383, 17727, 515, 7136, 29914, 11940, 362, 29914, 3742, 29914, 29923, 1254, 29931, 1542, 29889, 29882, 13, 13, 29895, 3664, 1254, 29931, 1669, 353, 29871, 29900, 13, 29895, 1254, 29931, 8111, 9651, 353, 29871, 29896, 13, 29895, 1254, 29931, 1761, 795, 353, 29871, 29906, 13, 29895, 1254, 29931, 311, 802, 632, 353, 29871, 29941, 13, 29895, 1254, 29931, 1958, 1669, 353, 29871, 29946, 13, 29895, 1254, 29931, 4713, 326, 481, 3986, 353, 29871, 29945, 13, 29895, 1254, 29931, 842, 1669, 353, 29871, 29953, 13, 29895, 1254, 29931, 4713, 275, 300, 3986, 353, 29871, 29955, 13, 29895, 1254, 29931, 2966, 842, 9651, 353, 29871, 29947, 13, 29895, 1254, 29931, 11333, 1761, 539, 353, 29871, 29929, 13, 29895, 1254, 29931, 348, 21693, 842, 418, 353, 29871, 29896, 29900, 13, 29895, 1254, 29931, 348, 21693, 4713, 275, 300, 353, 29871, 29896, 29896, 13, 29895, 1254, 29931, 348, 21693, 1958, 418, 353, 29871, 29896, 29906, 13, 29895, 1254, 29931, 348, 21693, 4713, 326, 481, 353, 29871, 29896, 29941, 13, 29895, 1254, 29931, 355, 1669, 353, 29871, 29896, 29946, 13, 29895, 1254, 29931, 1384, 1669, 353, 29871, 29941, 29900, 29900, 13, 13, 13383, 13383, 13383, 13383, 10663, 8263, 3698, 13, 13, 29895, 5631, 403, 10302, 3388, 1678, 353, 29871, 29896, 13, 2 ]
checkmate/contrib/plugins/git/commands/update_stats.py
marcinguy/checkmate-ce
80
146862
<reponame>marcinguy/checkmate-ce<gh_stars>10-100 # -*- coding: utf-8 -*- from __future__ import unicode_literals import logging from collections import defaultdict from checkmate.management.commands.base import BaseCommand from ..models import GitBranch logger = logging.getLogger(__name__) class Command(BaseCommand): def run(self): branches = self.backend.filter(GitBranch,{'project.pk' : self.project.pk}) branches_by_name = dict([(branch.name,branch) for branch in branches]) if 'default_branch' in self.project and self.project.default_branch in branches_by_name: master_branch = branches_by_name[self.project.default_branch] elif 'origin/master' in branches_by_name: master_branch = branches_by_name['origin/master'] else: logger.warning("No default branch defined for project %s" % self.project.pk) return -1 stats = { 'contributors' : self.project.git.repository.get_contributors(), 'branch' : master_branch.name } stats['n_commits'] = sum([contributor['n_commits'] for contributor in stats['contributors']]) self.project.stats = stats with self.backend.transaction(): self.backend.save(self.project)
[ 1, 529, 276, 1112, 420, 29958, 3034, 3277, 8631, 29914, 3198, 25046, 29899, 346, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 3166, 4770, 29888, 9130, 1649, 1053, 29104, 29918, 20889, 1338, 13, 5215, 12183, 13, 3166, 16250, 1053, 2322, 8977, 13, 13, 3166, 1423, 25046, 29889, 21895, 29889, 26381, 29889, 3188, 1053, 7399, 6255, 13, 3166, 6317, 9794, 1053, 11786, 29933, 4014, 13, 13, 21707, 353, 12183, 29889, 657, 16363, 22168, 978, 1649, 29897, 13, 13, 1990, 10516, 29898, 5160, 6255, 1125, 13, 13, 1678, 822, 1065, 29898, 1311, 1125, 13, 13, 4706, 14202, 353, 1583, 29889, 27852, 29889, 4572, 29898, 28712, 29933, 4014, 29892, 10998, 4836, 29889, 20571, 29915, 584, 1583, 29889, 4836, 29889, 20571, 1800, 13, 13, 4706, 14202, 29918, 1609, 29918, 978, 353, 9657, 4197, 29898, 17519, 29889, 978, 29892, 17519, 29897, 363, 5443, 297, 14202, 2314, 13, 13, 4706, 565, 525, 4381, 29918, 17519, 29915, 297, 1583, 29889, 4836, 322, 1583, 29889, 4836, 29889, 4381, 29918, 17519, 297, 14202, 29918, 1609, 29918, 978, 29901, 13, 9651, 5835, 29918, 17519, 353, 14202, 29918, 1609, 29918, 978, 29961, 1311, 29889, 4836, 29889, 4381, 29918, 17519, 29962, 13, 4706, 25342, 525, 12574, 29914, 6207, 29915, 297, 14202, 29918, 1609, 29918, 978, 29901, 13, 9651, 5835, 29918, 17519, 353, 14202, 29918, 1609, 29918, 978, 1839, 12574, 29914, 6207, 2033, 13, 4706, 1683, 29901, 13, 9651, 17927, 29889, 27392, 703, 3782, 2322, 5443, 3342, 363, 2060, 1273, 29879, 29908, 1273, 1583, 29889, 4836, 29889, 20571, 29897, 13, 9651, 736, 448, 29896, 13, 13, 4706, 22663, 353, 426, 13, 9651, 525, 21570, 29560, 29915, 584, 1583, 29889, 4836, 29889, 5559, 29889, 19033, 29889, 657, 29918, 21570, 29560, 3285, 13, 9651, 525, 17519, 29915, 584, 5835, 29918, 17519, 29889, 978, 13, 4706, 500, 13, 13, 4706, 22663, 1839, 29876, 29918, 2055, 1169, 2033, 353, 2533, 4197, 21570, 3406, 1839, 29876, 29918, 2055, 1169, 2033, 363, 17737, 3406, 297, 22663, 1839, 21570, 29560, 2033, 2314, 13, 13, 4706, 1583, 29889, 4836, 29889, 16202, 353, 22663, 13, 4706, 411, 1583, 29889, 27852, 29889, 20736, 7295, 13, 9651, 1583, 29889, 27852, 29889, 7620, 29898, 1311, 29889, 4836, 29897, 13, 2 ]
dataset.py
dimitreOliveira/RecsysChallenge_Spotify
3
63064
import pandas as pd def build_columns(): columns = ['pid'] for i in range(1, 501): columns.append('trackuri_%s' % i) return columns def build_output(df_list, id_cloumn, song_column): output = pd.DataFrame(columns=build_columns()) for df in df_list: output = output.append(format_output(df, id_cloumn, song_column)) return output def format_output(df, id_cloumn, song_column): columns = build_columns()[1:501] output = df output['columns'] = columns output = output.pivot(index=id_cloumn, columns='columns', values=song_column) output['pid'] = output.index output = output[build_columns()] return output def output_submission(df, file_name, team_name, contact_information, path='submissions/', challenge_track='main'): file = path + file_name first_row = pd.DataFrame(columns=build_columns()) first_row.loc[0] = build_first_row(team_name, contact_information, challenge_track) output = pd.concat([first_row, df]) output = output[build_columns()] output = output.set_index('pid') output.to_csv(file) def build_first_row(team_name, contact_information, challenge_track='main'): row = ['team_info', challenge_track, team_name, contact_information] for i in range(4, 501): row.append(None) return row
[ 1, 1053, 11701, 408, 10518, 13, 13, 13, 1753, 2048, 29918, 13099, 7295, 13, 1678, 4341, 353, 6024, 5935, 2033, 13, 1678, 363, 474, 297, 3464, 29898, 29896, 29892, 29871, 29945, 29900, 29896, 1125, 13, 4706, 4341, 29889, 4397, 877, 11294, 5338, 29918, 29995, 29879, 29915, 1273, 474, 29897, 13, 13, 1678, 736, 4341, 13, 13, 13, 1753, 2048, 29918, 4905, 29898, 2176, 29918, 1761, 29892, 1178, 29918, 23642, 23521, 29892, 4823, 29918, 4914, 1125, 13, 1678, 1962, 353, 10518, 29889, 17271, 29898, 13099, 29922, 4282, 29918, 13099, 3101, 13, 1678, 363, 4489, 297, 4489, 29918, 1761, 29901, 13, 4706, 1962, 353, 1962, 29889, 4397, 29898, 4830, 29918, 4905, 29898, 2176, 29892, 1178, 29918, 23642, 23521, 29892, 4823, 29918, 4914, 876, 13, 13, 1678, 736, 1962, 13, 13, 13, 1753, 3402, 29918, 4905, 29898, 2176, 29892, 1178, 29918, 23642, 23521, 29892, 4823, 29918, 4914, 1125, 13, 1678, 4341, 353, 2048, 29918, 13099, 580, 29961, 29896, 29901, 29945, 29900, 29896, 29962, 13, 1678, 1962, 353, 4489, 13, 1678, 1962, 1839, 13099, 2033, 353, 4341, 13, 1678, 1962, 353, 1962, 29889, 29886, 11002, 29898, 2248, 29922, 333, 29918, 23642, 23521, 29892, 4341, 2433, 13099, 742, 1819, 29922, 21453, 29918, 4914, 29897, 13, 1678, 1962, 1839, 5935, 2033, 353, 1962, 29889, 2248, 13, 1678, 1962, 353, 1962, 29961, 4282, 29918, 13099, 580, 29962, 13, 13, 1678, 736, 1962, 13, 13, 13, 1753, 1962, 29918, 1491, 6737, 29898, 2176, 29892, 934, 29918, 978, 29892, 3815, 29918, 978, 29892, 6958, 29918, 19678, 29892, 2224, 2433, 1491, 29885, 6847, 29914, 742, 18766, 29918, 11294, 2433, 3396, 29374, 13, 1678, 934, 353, 2224, 718, 934, 29918, 978, 13, 13, 1678, 937, 29918, 798, 353, 10518, 29889, 17271, 29898, 13099, 29922, 4282, 29918, 13099, 3101, 13, 1678, 937, 29918, 798, 29889, 2029, 29961, 29900, 29962, 353, 2048, 29918, 4102, 29918, 798, 29898, 14318, 29918, 978, 29892, 6958, 29918, 19678, 29892, 18766, 29918, 11294, 29897, 13, 13, 1678, 1962, 353, 10518, 29889, 17685, 4197, 4102, 29918, 798, 29892, 4489, 2314, 13, 1678, 1962, 353, 1962, 29961, 4282, 29918, 13099, 580, 29962, 13, 1678, 1962, 353, 1962, 29889, 842, 29918, 2248, 877, 5935, 1495, 13, 1678, 1962, 29889, 517, 29918, 7638, 29898, 1445, 29897, 13, 13, 13, 1753, 2048, 29918, 4102, 29918, 798, 29898, 14318, 29918, 978, 29892, 6958, 29918, 19678, 29892, 18766, 29918, 11294, 2433, 3396, 29374, 13, 1678, 1948, 353, 6024, 14318, 29918, 3888, 742, 18766, 29918, 11294, 29892, 3815, 29918, 978, 29892, 6958, 29918, 19678, 29962, 13, 1678, 363, 474, 297, 3464, 29898, 29946, 29892, 29871, 29945, 29900, 29896, 1125, 13, 4706, 1948, 29889, 4397, 29898, 8516, 29897, 13, 13, 1678, 736, 1948, 13, 2 ]
CodeInterview/[cutz]compression_str.py
cutz-j/AlgorithmStudy
3
151029
<reponame>cutz-j/AlgorithmStudy from collections import defaultdict def solve(s): hash_dict = defaultdict(int) for i in range(len(s)): hash_dict[s[i]] += 1 return
[ 1, 529, 276, 1112, 420, 29958, 29883, 7427, 29899, 29926, 29914, 22461, 4540, 855, 566, 29891, 13, 3166, 16250, 1053, 2322, 8977, 13, 13, 1753, 4505, 29898, 29879, 1125, 13, 1678, 6608, 29918, 8977, 353, 2322, 8977, 29898, 524, 29897, 13, 13, 1678, 363, 474, 297, 3464, 29898, 2435, 29898, 29879, 22164, 13, 4706, 6608, 29918, 8977, 29961, 29879, 29961, 29875, 5262, 4619, 29871, 29896, 13, 13, 13, 1678, 736, 2 ]
pandas_tricks.py
wingwingz/code_snippets
0
107580
<filename>pandas_tricks.py<gh_stars>0 def fuzzy_merge(df_1, df_2, key1, key2, threshold=90, limit=2): """ :param df_1: the left table to join :param df_2: the right table to join :param key1: key column of the left table :param key2: key column of the right table :param threshold: how close the matches should be to return a match, based on Levenshtein distance :param limit: the amount of matches that will get returned, these are sorted high to low :return: dataframe with boths keys and matches """ s = df_2[key2].tolist() m = df_1[key1].apply(lambda x: process.extract(x, s, limit=limit)) df_1['matches'] = m m2 = df_1['matches'].apply(lambda x: ', '.join([i[0] for i in x if i[1] >= threshold])) df_1['matches'] = m2 return df_1
[ 1, 529, 9507, 29958, 15112, 29918, 509, 7358, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 1753, 285, 3365, 1537, 29918, 14634, 29898, 2176, 29918, 29896, 29892, 4489, 29918, 29906, 29892, 1820, 29896, 29892, 1820, 29906, 29892, 16897, 29922, 29929, 29900, 29892, 4046, 29922, 29906, 1125, 13, 1678, 9995, 13, 1678, 584, 3207, 4489, 29918, 29896, 29901, 278, 2175, 1591, 304, 5988, 13, 1678, 584, 3207, 4489, 29918, 29906, 29901, 278, 1492, 1591, 304, 5988, 13, 1678, 584, 3207, 1820, 29896, 29901, 1820, 1897, 310, 278, 2175, 1591, 13, 1678, 584, 3207, 1820, 29906, 29901, 1820, 1897, 310, 278, 1492, 1591, 13, 1678, 584, 3207, 16897, 29901, 920, 3802, 278, 7087, 881, 367, 304, 736, 263, 1993, 29892, 2729, 373, 951, 9852, 29882, 371, 262, 5418, 13, 1678, 584, 3207, 4046, 29901, 278, 5253, 310, 7087, 393, 674, 679, 4133, 29892, 1438, 526, 12705, 1880, 304, 4482, 13, 1678, 584, 2457, 29901, 12205, 411, 1716, 29879, 6611, 322, 7087, 13, 1678, 9995, 13, 1678, 269, 353, 4489, 29918, 29906, 29961, 1989, 29906, 1822, 25027, 391, 580, 13, 13, 1678, 286, 353, 4489, 29918, 29896, 29961, 1989, 29896, 1822, 7302, 29898, 2892, 921, 29901, 1889, 29889, 21111, 29898, 29916, 29892, 269, 29892, 4046, 29922, 13400, 876, 268, 13, 1678, 4489, 29918, 29896, 1839, 20317, 2033, 353, 286, 13, 13, 1678, 286, 29906, 353, 4489, 29918, 29896, 1839, 20317, 13359, 7302, 29898, 2892, 921, 29901, 13420, 15300, 7122, 4197, 29875, 29961, 29900, 29962, 363, 474, 297, 921, 565, 474, 29961, 29896, 29962, 6736, 16897, 12622, 13, 1678, 4489, 29918, 29896, 1839, 20317, 2033, 353, 286, 29906, 13, 13, 1678, 736, 4489, 29918, 29896, 13, 2 ]
distiller/data/jobs.py
18F/FAC-Distiller-
2
108834
""" Use apscheduler to run a daily job to refresh the source tables. """ import random import sys import time import pytz from apscheduler.schedulers.background import BackgroundScheduler from django.conf import settings from django_apscheduler.jobstores import ( DjangoJobStore, register_events, register_job ) from .etls import load_dumps scheduler = BackgroundScheduler() scheduler.add_jobstore(DjangoJobStore(), 'default') @register_job( scheduler, 'cron', hour=0, timezone=pytz.timezone('US/Eastern'), replace_existing=True ) def download_and_update_tables(): for table in load_dumps.FAC_TABLES_NAMES: sys.stdout.write(f'Downloading table "{table}"...\n') sys.stdout.flush() load_dumps.download_table( table, target_dir=settings.LOAD_TABLE_ROOT ) for table in load_dumps.FAC_TABLES_NAMES: sys.stdout.write(f'Loading FAC table "{table}"...\n') sys.stdout.flush() load_dumps.update_table( table, source_dir=settings.LOAD_TABLE_ROOT, ) register_events(scheduler) scheduler.start()
[ 1, 29871, 13, 15945, 29908, 13, 11403, 263, 567, 305, 14952, 304, 1065, 263, 14218, 4982, 304, 11086, 278, 2752, 6131, 29889, 13, 15945, 29908, 13, 13, 5215, 4036, 13, 5215, 10876, 13, 5215, 931, 13, 13, 5215, 282, 3637, 29920, 13, 3166, 263, 567, 305, 14952, 29889, 816, 287, 352, 414, 29889, 7042, 1053, 16585, 4504, 14952, 13, 3166, 9557, 29889, 5527, 1053, 6055, 13, 3166, 9557, 29918, 481, 816, 14952, 29889, 9057, 303, 2361, 1053, 313, 13, 1678, 15337, 11947, 9044, 29892, 6036, 29918, 13604, 29892, 6036, 29918, 9057, 13, 29897, 13, 13, 3166, 869, 300, 3137, 1053, 2254, 29918, 29881, 17204, 13, 13, 13, 816, 14952, 353, 16585, 4504, 14952, 580, 13, 816, 14952, 29889, 1202, 29918, 9057, 8899, 29898, 29928, 5364, 11947, 9044, 3285, 525, 4381, 1495, 13, 13, 13, 29992, 9573, 29918, 9057, 29898, 13, 1678, 1364, 14952, 29892, 13, 1678, 525, 29883, 1617, 742, 13, 1678, 7234, 29922, 29900, 29892, 13, 1678, 29431, 29922, 2272, 17559, 29889, 2230, 8028, 877, 3308, 29914, 29923, 11530, 5477, 13, 1678, 5191, 29918, 735, 15423, 29922, 5574, 13, 29897, 13, 1753, 5142, 29918, 392, 29918, 5504, 29918, 24051, 7295, 13, 1678, 363, 1591, 297, 2254, 29918, 29881, 17204, 29889, 29943, 2477, 29918, 21009, 29903, 29918, 5813, 29903, 29901, 13, 4706, 10876, 29889, 25393, 29889, 3539, 29898, 29888, 29915, 6767, 13234, 1591, 29850, 2371, 5038, 856, 29905, 29876, 1495, 13, 4706, 10876, 29889, 25393, 29889, 23126, 580, 13, 4706, 2254, 29918, 29881, 17204, 29889, 10382, 29918, 2371, 29898, 13, 9651, 1591, 29892, 13, 9651, 3646, 29918, 3972, 29922, 11027, 29889, 29428, 29918, 21009, 29918, 21289, 13, 4706, 1723, 13, 1678, 363, 1591, 297, 2254, 29918, 29881, 17204, 29889, 29943, 2477, 29918, 21009, 29903, 29918, 5813, 29903, 29901, 13, 4706, 10876, 29889, 25393, 29889, 3539, 29898, 29888, 29915, 23456, 383, 2477, 1591, 29850, 2371, 5038, 856, 29905, 29876, 1495, 13, 4706, 10876, 29889, 25393, 29889, 23126, 580, 13, 4706, 2254, 29918, 29881, 17204, 29889, 5504, 29918, 2371, 29898, 13, 9651, 1591, 29892, 13, 9651, 2752, 29918, 3972, 29922, 11027, 29889, 29428, 29918, 21009, 29918, 21289, 29892, 13, 4706, 1723, 13, 13, 13, 9573, 29918, 13604, 29898, 816, 14952, 29897, 13, 816, 14952, 29889, 2962, 580, 13, 2 ]
teaparty/helpers.py
idooo/teaparty
0
80577
from time import time def cache(function): memo = {} time_to_cache = 60 def wrapper(*args): if args in memo and time() < memo[args]['time'] + time_to_cache: return memo[args]['record'] else: rv = function(*args) memo[args] = { 'record': rv, 'time': time() } return rv return wrapper
[ 1, 515, 931, 1053, 931, 13, 13, 1753, 7090, 29898, 2220, 1125, 13, 1678, 2626, 29877, 353, 6571, 13, 1678, 931, 29918, 517, 29918, 8173, 353, 29871, 29953, 29900, 13, 13, 1678, 822, 14476, 10456, 5085, 1125, 13, 4706, 565, 6389, 297, 2626, 29877, 322, 931, 580, 529, 2626, 29877, 29961, 5085, 22322, 2230, 2033, 718, 931, 29918, 517, 29918, 8173, 29901, 13, 9651, 736, 2626, 29877, 29961, 5085, 22322, 11651, 2033, 13, 4706, 1683, 29901, 13, 9651, 364, 29894, 353, 740, 10456, 5085, 29897, 13, 9651, 2626, 29877, 29961, 5085, 29962, 353, 426, 13, 18884, 525, 11651, 2396, 364, 29894, 29892, 13, 18884, 525, 2230, 2396, 931, 580, 13, 9651, 500, 13, 9651, 736, 364, 29894, 13, 13, 1678, 736, 14476, 2 ]
tests/test_atise.py
tkg-framework/TKG-framework
0
16403
<reponame>tkg-framework/TKG-framework<filename>tests/test_atise.py<gh_stars>0 import torch import torch.nn as nn from torch.autograd import Variable import torch.functional as F from torch.nn.init import xavier_normal_ import os import sys BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(BASE_DIR) import numpy as np from numpy.random import RandomState from collections import defaultdict import time from tkge.data.dataset import SplitDataset from tkge.data.custom_dataset import ICEWS14AtiseDatasetProcessor from tkge.eval.metrics import Evaluation from tkge.train.sampling import NonNegativeSampler from Dataset import KnowledgeGraph randseed = 9999 np.random.seed(randseed) torch.manual_seed(randseed) class MockAtiseDatasetProcessor(ICEWS14AtiseDatasetProcessor): def __init__(self): self.folder = "/home/gengyuan/workspace/tkge/data/icews14" self.level = "day" self.index = False self.float = True self.train_raw = [] self.valid_raw = [] self.test_raw = [] self.reciprocal_training = True self.ent2id = dict() self.rel2id = dict() with open('/home/gengyuan/workspace/baseline/ATISE/icews14/entity2id.txt', 'r') as f: ent2id = f.readlines() for line in ent2id: line = line.split('\t') self.ent2id[line[0]] = int(line[1]) with open('/home/gengyuan/workspace/baseline/ATISE/icews14/relation2id.txt', 'r') as f: rel2id = f.readlines() for line in rel2id: line = line.split('\t') self.rel2id[line[0]] = int(line[1]) self.ts2id = defaultdict(None) self.train_set = defaultdict(list) self.valid_set = defaultdict(list) self.test_set = defaultdict(list) self.all_triples = [] self.all_quadruples = [] self.load() self.process() self.filter() def index_relations(self, rel: str): if rel.endswith('(RECIPROCAL)'): return self.rel2id[rel[:-12]] + 230 else: return self.rel2id[rel] def index_entities(self, ent: str): if ent == '<NAME>': ent = '<NAME>' return self.ent2id[ent] def process_time(self, origin: str): # TODO (gengyuan) move to init method self.gran = 3 start_sec = time.mktime(time.strptime('2014-01-01', '%Y-%m-%d')) end_sec = time.mktime(time.strptime(origin, '%Y-%m-%d')) day = int((end_sec - start_sec) / (self.gran * 24 * 60 * 60)) return day class MockEvaluation(Evaluation): def __init__(self, dataset, device): self.dataset = dataset self.vocab_size = dataset.num_entities() self.device = device self.filter = "time-aware" self.ordering = "optimistic" self.k = [1, 3, 10] self.filtered_data = defaultdict(None) self.filtered_data['sp_'] = self.dataset.filter(type=self.filter, target='o') self.filtered_data['_po'] = self.dataset.filter(type=self.filter, target='s') class MockSampler(NonNegativeSampler): def __init__(self, dataset, as_matrix): self.filter = False self.as_matrix = as_matrix self.dataset = dataset class ATISE(nn.Module): def __init__(self, n_entity, n_relation, embedding_dim, batch_size, learning_rate, gamma, cmin, cmax, gpu=True): super(ATISE, self).__init__() self.gpu = gpu self.n_entity = n_entity self.n_relation = n_relation self.embedding_dim = embedding_dim self.batch_size = batch_size self.learning_rate = learning_rate self.gamma = gamma self.cmin = cmin self.cmax = cmax # Nets self.emb_E = torch.nn.Embedding(n_entity, self.embedding_dim, padding_idx=0) self.emb_E_var = torch.nn.Embedding(n_entity, self.embedding_dim, padding_idx=0) self.emb_R = torch.nn.Embedding(n_relation, self.embedding_dim, padding_idx=0) self.emb_R_var = torch.nn.Embedding(n_relation, self.embedding_dim, padding_idx=0) self.emb_TE = torch.nn.Embedding(n_entity, self.embedding_dim, padding_idx=0) self.alpha_E = torch.nn.Embedding(n_entity, 1, padding_idx=0) self.beta_E = torch.nn.Embedding(n_entity, self.embedding_dim, padding_idx=0) self.omega_E = torch.nn.Embedding(n_entity, self.embedding_dim, padding_idx=0) self.emb_TR = torch.nn.Embedding(n_relation, self.embedding_dim, padding_idx=0) self.alpha_R = torch.nn.Embedding(n_relation, 1, padding_idx=0) self.beta_R = torch.nn.Embedding(n_relation, self.embedding_dim, padding_idx=0) self.omega_R = torch.nn.Embedding(n_relation, self.embedding_dim, padding_idx=0) # Initialization r = 6 / np.sqrt(self.embedding_dim) self.emb_E.weight.data.uniform_(-r, r) self.emb_E_var.weight.data.uniform_(self.cmin, self.cmax) self.emb_R.weight.data.uniform_(-r, r) self.emb_R_var.weight.data.uniform_(self.cmin, self.cmax) self.emb_TE.weight.data.uniform_(-r, r) self.alpha_E.weight.data.uniform_(0, 0) self.beta_E.weight.data.uniform_(0, 0) self.omega_E.weight.data.uniform_(-r, r) self.emb_TR.weight.data.uniform_(-r, r) self.alpha_R.weight.data.uniform_(0, 0) self.beta_R.weight.data.uniform_(0, 0) self.omega_R.weight.data.uniform_(-r, r) # Regularization self.normalize_embeddings() if self.gpu: self.cuda() def forward(self, X): # h_i, t_i, r_i, d_i = X[:, 0].astype(np.int64), X[:, 1].astype(np.int64), X[:, 2].astype(np.int64), X[:, # 3].astype( # np.float32) h_i, t_i, r_i, d_i = X[:, 0].long(), X[:, 2].long(), X[:, 1].long(), X[:, 3].float() # if self.gpu: # h_i = Variable(torch.from_numpy(h_i).cuda()) # t_i = Variable(torch.from_numpy(t_i).cuda()) # r_i = Variable(torch.from_numpy(r_i).cuda()) # d_i = Variable(torch.from_numpy(d_i).cuda()) # # else: # h_i = Variable(torch.from_numpy(h_i)) # t_i = Variable(torch.from_numpy(t_i)) # r_i = Variable(torch.from_numpy(r_i)) # d_i = Variable(torch.from_numpy(d_i)) pi = 3.14159265358979323846 h_mean = self.emb_E(h_i).view(-1, self.embedding_dim) + \ d_i.view(-1, 1) * self.alpha_E(h_i).view(-1, 1) * self.emb_TE(h_i).view(-1, self.embedding_dim) \ + self.beta_E(h_i).view(-1, self.embedding_dim) * torch.sin( 2 * pi * self.omega_E(h_i).view(-1, self.embedding_dim) * d_i.view(-1, 1)) t_mean = self.emb_E(t_i).view(-1, self.embedding_dim) + \ d_i.view(-1, 1) * self.alpha_E(t_i).view(-1, 1) * self.emb_TE(t_i).view(-1, self.embedding_dim) \ + self.beta_E(t_i).view(-1, self.embedding_dim) * torch.sin( 2 * pi * self.omega_E(t_i).view(-1, self.embedding_dim) * d_i.view(-1, 1)) r_mean = self.emb_R(r_i).view(-1, self.embedding_dim) + \ d_i.view(-1, 1) * self.alpha_R(r_i).view(-1, 1) * self.emb_TR(r_i).view(-1, self.embedding_dim) \ + self.beta_R(r_i).view(-1, self.embedding_dim) * torch.sin( 2 * pi * self.omega_R(r_i).view(-1, self.embedding_dim) * d_i.view(-1, 1)) h_var = self.emb_E_var(h_i).view(-1, self.embedding_dim) t_var = self.emb_E_var(t_i).view(-1, self.embedding_dim) r_var = self.emb_R_var(r_i).view(-1, self.embedding_dim) out1 = torch.sum((h_var + t_var) / r_var, 1) + torch.sum(((r_mean - h_mean + t_mean) ** 2) / r_var, 1) - self.embedding_dim out2 = torch.sum(r_var / (h_var + t_var), 1) + torch.sum(((h_mean - t_mean - r_mean) ** 2) / (h_var + t_var), 1) - self.embedding_dim out = (out1 + out2) / 4 return out def log_rank_loss(self, y_pos, y_neg, temp=0): M = y_pos.size(0) N = y_neg.size(0) y_pos = self.gamma - y_pos y_neg = self.gamma - y_neg C = int(N / M) y_neg = y_neg.view(C, -1).transpose(0, 1) p = F.softmax(temp * y_neg) loss_pos = torch.sum(F.softplus(-1 * y_pos)) loss_neg = torch.sum(p * F.softplus(y_neg)) loss = (loss_pos + loss_neg) / 2 / M if self.gpu: loss = loss.cuda() return loss def rank_loss(self, y_pos, y_neg): M = y_pos.size(0) N = y_neg.size(0) C = int(N / M) y_pos = y_pos.repeat(C) if self.gpu: target = Variable(torch.from_numpy(-np.ones(N, dtype=np.float32))).cuda() else: target = Variable(torch.from_numpy(-np.ones(N, dtype=np.float32))).cpu() loss = nn.MarginRankingLoss(margin=self.gamma) loss = loss(y_pos, y_neg, target) return loss def normalize_embeddings(self): self.emb_E.weight.data.renorm_(p=2, dim=0, maxnorm=1) self.emb_E_var.weight.data.uniform_(self.cmin, self.cmax) self.emb_R.weight.data.renorm_(p=2, dim=0, maxnorm=1) self.emb_R_var.weight.data.uniform_(self.cmin, self.cmax) self.emb_TE.weight.data.renorm_(p=2, dim=0, maxnorm=1) self.emb_TR.weight.data.renorm_(p=2, dim=0, maxnorm=1) def regularization_embeddings(self): lower = torch.tensor(self.cmin).float() upper = torch.tensor(self.cmax).float() if self.gpu: lower = lower.cuda() upper = upper.cuda() self.emb_E_var.weight.data = torch.where(self.emb_E_var.weight.data < self.cmin, lower, self.emb_E_var.weight.data) self.emb_E_var.weight.data = torch.where(self.emb_E_var.weight.data > self.cmax, upper, self.emb_E_var.weight.data) self.emb_R_var.weight.data = torch.where(self.emb_R_var.weight.data < self.cmin, lower, self.emb_R_var.weight.data) self.emb_R_var.weight.data = torch.where(self.emb_R_var.weight.data > self.cmax, upper, self.emb_R_var.weight.data) self.emb_E.weight.data.renorm_(p=2, dim=0, maxnorm=1) self.emb_R.weight.data.renorm_(p=2, dim=0, maxnorm=1) self.emb_TE.weight.data.renorm_(p=2, dim=0, maxnorm=1) self.emb_TR.weight.data.renorm_(p=2, dim=0, maxnorm=1) def rank_left(self, X, facts, kg, timedisc, rev_set=0): rank = [] with torch.no_grad(): if timedisc: for triple, fact in zip(X, facts): X_i = np.ones([self.n_entity, 4]) i_score = torch.zeros(self.n_entity) if self.gpu: i_score = i_score.cuda() for time_index in [triple[3], triple[4]]: for i in range(0, self.n_entity): X_i[i, 0] = i X_i[i, 1] = triple[1] X_i[i, 2] = triple[2] X_i[i, 3] = time_index i_score = i_score + self.forward(X_i).view(-1) if rev_set > 0: X_rev = np.ones([self.n_entity, 4]) for i in range(0, self.n_entity): X_rev[i, 0] = triple[1] X_rev[i, 1] = i X_rev[i, 2] = triple[2] + self.n_relation // 2 X_rev[i, 3] = time_index i_score = i_score + self.forward(X_rev).view(-1) filter_out = kg.to_skip_final['lhs'][(fact[1], fact[2], fact[3], fact[4])] target = i_score[int(triple[0])].clone() i_score[filter_out] = 1e6 rank_triple = torch.sum((i_score < target).float()).cpu().item() + 1 rank.append(rank_triple) else: for triple, fact in zip(X, facts): X_i = np.ones([self.n_entity, 4]) for i in range(0, self.n_entity): X_i[i, 0] = i X_i[i, 1] = triple[1] X_i[i, 2] = triple[2] X_i[i, 3] = triple[3] i_score = self.forward(X_i) if rev_set > 0: X_rev = np.ones([self.n_entity, 4]) for i in range(0, self.n_entity): X_rev[i, 0] = triple[1] X_rev[i, 1] = i X_rev[i, 2] = triple[2] + self.n_relation // 2 X_rev[i, 3] = triple[3] i_score = i_score + self.forward(X_rev).view(-1) if self.gpu: i_score = i_score.cuda() filter_out = kg.to_skip_final['lhs'][(fact[1], fact[2], fact[3], fact[4])] target = i_score[int(triple[0])].clone() i_score[filter_out] = 1e6 rank_triple = torch.sum((i_score < target).float()).cpu().item() + 1 rank.append(rank_triple) print('left') print(rank) return rank def rank_right(self, X, facts, kg, timedisc, rev_set=0): rank = [] with torch.no_grad(): if timedisc: for triple, fact in zip(X, facts): X_i = np.ones([self.n_entity, 4]) i_score = torch.zeros(self.n_entity) if self.gpu: i_score = i_score.cuda() for time_index in [triple[3], triple[4]]: for i in range(0, self.n_entity): X_i[i, 0] = triple[0] X_i[i, 1] = i X_i[i, 2] = triple[2] X_i[i, 3] = time_index i_score = i_score + self.forward(X_i).view(-1) if rev_set > 0: X_rev = np.ones([self.n_entity, 4]) for i in range(0, self.n_entity): X_rev[i, 0] = i X_rev[i, 1] = triple[0] X_rev[i, 2] = triple[2] + self.n_relation // 2 X_rev[i, 3] = time_index i_score = i_score + self.forward(X_rev).view(-1) filter_out = kg.to_skip_final['rhs'][(fact[0], fact[2], fact[3], fact[4])] target = i_score[int(triple[1])].clone() i_score[filter_out] = 1e6 rank_triple = torch.sum((i_score < target).float()).cpu().item() + 1 rank.append(rank_triple) else: for triple, fact in zip(X, facts): X_i = np.ones([self.n_entity, 4]) for i in range(0, self.n_entity): X_i[i, 0] = triple[0] X_i[i, 1] = i X_i[i, 2] = triple[2] X_i[i, 3] = triple[3] i_score = self.forward(X_i) if rev_set > 0: X_rev = np.ones([self.n_entity, 4]) for i in range(0, self.n_entity): X_rev[i, 0] = i X_rev[i, 1] = triple[0] X_rev[i, 2] = triple[2] + self.n_relation // 2 X_rev[i, 3] = triple[3] i_score = i_score + self.forward(X_rev).view(-1) if self.gpu: i_score = i_score.cuda() filter_out = kg.to_skip_final['rhs'][(fact[0], fact[2], fact[3], fact[4])] target = i_score[int(triple[1])].clone() i_score[filter_out] = 1e6 rank_triple = torch.sum((i_score < target).float()).cpu().item() + 1 rank.append(rank_triple) print('right') print(rank) return rank def timepred(self, X): rank = [] with torch.no_grad(): for triple in X: X_i = np.ones([self.n_day, len(triple)]) for i in range(self.n_day): X_i[i, 0] = triple[0] X_i[i, 1] = triple[1] X_i[i, 2] = triple[2] X_i[i, 3:] = self.time_dict[i] i_score = self.forward(X_i) if self.gpu: i_score = i_score.cuda() target = i_score[triple[3]] rank_triple = torch.sum((i_score < target).float()).cpu().item() + 1 rank.append(rank_triple) return rank model_path = "/home/gengyuan/workspace/baseline/ATISE/icews14/ATISE/timediscrete0/dim500/lr0.0000/neg_num10/3day/gamma120/cmin0.0030/params.pkl" model = ATISE(7129, 460, 500, 64, 0, 120, 0.003, 0.3, True) model_state_dict = torch.load(model_path) model.load_state_dict(model_state_dict) def test(): device = 'cuda' if torch.cuda.is_available() else 'cpu' dataset = MockAtiseDatasetProcessor() evaluator = MockEvaluation(dataset, device) sampler = MockSampler(dataset, as_matrix=True) # # print(dataset.ts2id) # print(dataset.index_timestamps(23)) # print(dataset.index_relations('Arrest, detain, or charge with legal action')) # print(dataset.index_entities('Japan')) # print(dataset.index_entities('Police (Japan)')) # print(dataset.filter(type='time-aware', target='s')['None-9-2205-33']) # print(dataset.get("train")['triple'][15442]) # print(dataset.get("train")['timestamp_id'][15442]) # print(dataset.get("train")['timestamp_float'][15442]) # # # assert False valid_loader = torch.utils.data.DataLoader( SplitDataset(dataset.get("test"), ['timestamp_float', 'timestamp_id']), shuffle=False, batch_size=1, num_workers=0 ) with torch.no_grad(): model.eval() metrics = dict() metrics['head'] = defaultdict(float) metrics['tail'] = defaultdict(float) rank_left = [] rank_right = [] scores_head = [] scores_tail = [] filter_left = [] filter_right = [] l = 0 dfs = dataset.filter(type="time-aware", target="s") dfo = dataset.filter(type="time-aware", target="o") for batch in valid_loader: bs = batch.size(0) dim = batch.size(1) l += bs print(l) samples_head, _ = sampler.sample(batch, "head") samples_tail, _ = sampler.sample(batch, "tail") samples_head = samples_head.to(device) samples_tail = samples_tail.to(device) samples_head = samples_head.view(-1, dim) samples_tail = samples_tail.view(-1, dim) batch_scores_head = model.forward(samples_head) batch_scores_tail = model.forward(samples_tail) batch_scores_head = batch_scores_head.view(bs, -1) batch_scores_tail = batch_scores_tail.view(bs, -1) # reciprocal samples_head_reciprocal = samples_head.clone().view(-1, dim) samples_tail_reciprocal = samples_tail.clone().view(-1, dim) samples_head_reciprocal[:, 1] += 230 samples_head_reciprocal[:, [0, 2]] = samples_head_reciprocal.index_select(1, torch.Tensor( [2, 0]).long().to(device)) samples_tail_reciprocal[:, 1] += 230 samples_tail_reciprocal[:, [0, 2]] = samples_tail_reciprocal.index_select(1, torch.Tensor( [2, 0]).long().to(device)) batch_scores_head_reci = model.forward(samples_head_reciprocal) batch_scores_tail_reci = model.forward(samples_tail_reciprocal) batch_scores_head_reci = batch_scores_head_reci.view(bs, -1) batch_scores_tail_reci = batch_scores_tail_reci.view(bs, -1) batch_scores_head += batch_scores_head_reci batch_scores_tail += batch_scores_tail_reci scores_head.append(batch_scores_head) scores_tail.append(batch_scores_tail) batch_metrics = dict() batch_metrics['head'] = evaluator.eval(batch, batch_scores_head, miss='s') batch_metrics['tail'] = evaluator.eval(batch, batch_scores_tail, miss='o') # print filter filter_left.append( dfs[f'None-{int(batch[0, 1])}-{int(batch[0, 2])}-{int(batch[0, -1])}']) filter_right.append( dfo[f'{int(batch[0, 0])}-{int(batch[0, 1])}-None-{int(batch[0, -1])}']) # rank_left.append(batch_metrics['head']['mean_ranking']) # rank_right.append(batch_metrics['tail']['mean_ranking']) # TODO(gengyuan) refactor for pos in ['head', 'tail']: for key in batch_metrics[pos].keys(): metrics[pos][key] += batch_metrics[pos][key] * bs # rank = rank_left + rank_right # torch.save(rank, "/home/gengyuan/workspace/baseline/ATISE/rank_tkge.pt") # rank2 = torch.load("/home/gengyuan/workspace/baseline/ATISE/rank.pt") # # print('assert Equal') # print(rank==rank2) # torch.save(scores_head + scores_tail, "/home/gengyuan/workspace/baseline/ATISE/scores_tkge.pt") torch.save(filter_left, "/home/gengyuan/workspace/baseline/ATISE/filter_left_tkge.pt") torch.save(filter_right, "/home/gengyuan/workspace/baseline/ATISE/filter_right_tkge.pt") for pos in ['head', 'tail']: for key in metrics[pos].keys(): metrics[pos][key] /= l print(f"Metrics(head prediction) in iteration : {metrics['head'].items()}") print(f"Metrics(tail prediction) in iteration : {metrics['tail'].items()}") def test_sc(): def mean_rank(rank): m_r = 0 N = len(rank) for i in rank: m_r = m_r + i / N return m_r def mrr(rank): mrr = 0 N = len(rank) for i in rank: mrr = mrr + 1 / i / N return mrr def hit_N(rank, N): hit = 0 for i in rank: if i <= N: hit = hit + 1 hit = hit / len(rank) return hit kg = KnowledgeGraph(data_dir="/home/gengyuan/workspace/baseline/ATISE/icews14", gran=3, rev_set=1) test_pos = np.array(kg.test_triples) print(test_pos) rank = model.rank_left(test_pos, kg.test_facts, kg, 0, rev_set=1) rank_right = model.rank_right(test_pos, kg.test_facts, kg, 0, rev_set=1) rank = rank + rank_right m_rank = mean_rank(rank) mean_rr = mrr(rank) hit_1 = hit_N(rank, 1) hit_3 = hit_N(rank, 3) hit_5 = hit_N(rank, 5) hit_10 = hit_N(rank, 10) print('validation results:') print('Mean Rank: {:.0f}'.format(m_rank)) print('Mean RR: {:.4f}'.format(mean_rr)) print('Hit@1: {:.4f}'.format(hit_1)) print('Hit@3: {:.4f}'.format(hit_3)) print('Hit@5: {:.4f}'.format(hit_5)) print('Hit@10: {:.4f}'.format(hit_10)) if __name__ == '__main__': test()
[ 1, 529, 276, 1112, 420, 29958, 29873, 9415, 29899, 4468, 29914, 29911, 29968, 29954, 29899, 4468, 29966, 9507, 29958, 21150, 29914, 1688, 29918, 271, 895, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 4842, 305, 13, 5215, 4842, 305, 29889, 15755, 408, 302, 29876, 13, 3166, 4842, 305, 29889, 1300, 468, 3665, 1053, 28736, 13, 5215, 4842, 305, 29889, 2220, 284, 408, 383, 13, 3166, 4842, 305, 29889, 15755, 29889, 2344, 1053, 921, 18852, 29918, 8945, 29918, 13, 13, 5215, 2897, 13, 5215, 10876, 13, 13, 25416, 29918, 9464, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 370, 1028, 493, 22168, 1445, 1649, 4961, 13, 9675, 29889, 2084, 29889, 4397, 29898, 25416, 29918, 9464, 29897, 13, 13, 5215, 12655, 408, 7442, 13, 3166, 12655, 29889, 8172, 1053, 16968, 2792, 13, 13, 3166, 16250, 1053, 2322, 8977, 13, 5215, 931, 13, 13, 3166, 18883, 479, 29889, 1272, 29889, 24713, 1053, 26178, 16390, 24541, 13, 3166, 18883, 479, 29889, 1272, 29889, 6341, 29918, 24713, 1053, 306, 4741, 7811, 29896, 29946, 4178, 895, 16390, 24541, 18689, 13, 3166, 18883, 479, 29889, 14513, 29889, 2527, 10817, 1053, 382, 4387, 362, 13, 3166, 18883, 479, 29889, 14968, 29889, 13445, 10335, 1053, 10050, 29940, 387, 1230, 22966, 20069, 13, 13, 3166, 13373, 24541, 1053, 19320, 5485, 9527, 13, 13, 9502, 26776, 353, 29871, 29929, 29929, 29929, 29929, 13, 9302, 29889, 8172, 29889, 26776, 29898, 9502, 26776, 29897, 13, 7345, 305, 29889, 11288, 29918, 26776, 29898, 9502, 26776, 29897, 13, 13, 13, 1990, 26297, 4178, 895, 16390, 24541, 18689, 29898, 12107, 7811, 29896, 29946, 4178, 895, 16390, 24541, 18689, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 1583, 29889, 12083, 353, 5591, 5184, 29914, 29887, 996, 29891, 12323, 29914, 1287, 3493, 29914, 11178, 479, 29914, 1272, 29914, 625, 5652, 29896, 29946, 29908, 13, 4706, 1583, 29889, 5563, 353, 376, 3250, 29908, 13, 4706, 1583, 29889, 2248, 353, 7700, 13, 4706, 1583, 29889, 7411, 353, 5852, 13, 13, 4706, 1583, 29889, 14968, 29918, 1610, 353, 5159, 13, 4706, 1583, 29889, 3084, 29918, 1610, 353, 5159, 13, 4706, 1583, 29889, 1688, 29918, 1610, 353, 5159, 13, 13, 4706, 1583, 29889, 4361, 771, 1052, 29918, 26495, 353, 5852, 13, 13, 4706, 1583, 29889, 296, 29906, 333, 353, 9657, 580, 13, 4706, 1583, 29889, 2674, 29906, 333, 353, 9657, 580, 13, 4706, 411, 1722, 11219, 5184, 29914, 29887, 996, 29891, 12323, 29914, 1287, 3493, 29914, 6500, 5570, 29914, 1299, 29902, 1660, 29914, 625, 5652, 29896, 29946, 29914, 10041, 29906, 333, 29889, 3945, 742, 525, 29878, 1495, 408, 285, 29901, 13, 9651, 875, 29906, 333, 353, 285, 29889, 949, 9012, 580, 13, 9651, 363, 1196, 297, 875, 29906, 333, 29901, 13, 18884, 1196, 353, 1196, 29889, 5451, 28909, 29873, 1495, 13, 18884, 1583, 29889, 296, 29906, 333, 29961, 1220, 29961, 29900, 5262, 353, 938, 29898, 1220, 29961, 29896, 2314, 13, 13, 4706, 411, 1722, 11219, 5184, 29914, 29887, 996, 29891, 12323, 29914, 1287, 3493, 29914, 6500, 5570, 29914, 1299, 29902, 1660, 29914, 625, 5652, 29896, 29946, 29914, 23445, 29906, 333, 29889, 3945, 742, 525, 29878, 1495, 408, 285, 29901, 13, 9651, 1104, 29906, 333, 353, 285, 29889, 949, 9012, 580, 13, 9651, 363, 1196, 297, 1104, 29906, 333, 29901, 13, 18884, 1196, 353, 1196, 29889, 5451, 28909, 29873, 1495, 13, 18884, 1583, 29889, 2674, 29906, 333, 29961, 1220, 29961, 29900, 5262, 353, 938, 29898, 1220, 29961, 29896, 2314, 13, 13, 4706, 1583, 29889, 1372, 29906, 333, 353, 2322, 8977, 29898, 8516, 29897, 13, 13, 4706, 1583, 29889, 14968, 29918, 842, 353, 2322, 8977, 29898, 1761, 29897, 13, 4706, 1583, 29889, 3084, 29918, 842, 353, 2322, 8977, 29898, 1761, 29897, 13, 4706, 1583, 29889, 1688, 29918, 842, 353, 2322, 8977, 29898, 1761, 29897, 13, 13, 4706, 1583, 29889, 497, 29918, 3626, 2701, 353, 5159, 13, 4706, 1583, 29889, 497, 29918, 3425, 582, 2701, 353, 5159, 13, 13, 4706, 1583, 29889, 1359, 580, 13, 4706, 1583, 29889, 5014, 580, 13, 4706, 1583, 29889, 4572, 580, 13, 13, 1678, 822, 2380, 29918, 2674, 800, 29898, 1311, 29892, 1104, 29901, 851, 1125, 13, 4706, 565, 1104, 29889, 1975, 2541, 877, 29898, 1525, 29907, 5690, 1672, 29907, 1964, 16029, 1125, 13, 9651, 736, 1583, 29889, 2674, 29906, 333, 29961, 2674, 7503, 29899, 29896, 29906, 5262, 718, 29871, 29906, 29941, 29900, 13, 4706, 1683, 29901, 13, 9651, 736, 1583, 29889, 2674, 29906, 333, 29961, 2674, 29962, 13, 13, 1678, 822, 2380, 29918, 296, 1907, 29898, 1311, 29892, 875, 29901, 851, 1125, 13, 4706, 565, 875, 1275, 12801, 5813, 29958, 2396, 13, 9651, 875, 353, 12801, 5813, 16299, 13, 4706, 736, 1583, 29889, 296, 29906, 333, 29961, 296, 29962, 13, 13, 1678, 822, 1889, 29918, 2230, 29898, 1311, 29892, 3978, 29901, 851, 1125, 13, 4706, 396, 14402, 313, 29887, 996, 29891, 12323, 29897, 4337, 304, 2069, 1158, 13, 4706, 1583, 29889, 629, 273, 353, 29871, 29941, 13, 13, 4706, 1369, 29918, 3471, 353, 931, 29889, 29885, 1193, 603, 29898, 2230, 29889, 710, 415, 603, 877, 29906, 29900, 29896, 29946, 29899, 29900, 29896, 29899, 29900, 29896, 742, 14210, 29979, 19222, 29885, 19222, 29881, 8785, 13, 13, 4706, 1095, 29918, 3471, 353, 931, 29889, 29885, 1193, 603, 29898, 2230, 29889, 710, 415, 603, 29898, 12574, 29892, 14210, 29979, 19222, 29885, 19222, 29881, 8785, 13, 4706, 2462, 353, 938, 3552, 355, 29918, 3471, 448, 1369, 29918, 3471, 29897, 847, 313, 1311, 29889, 629, 273, 334, 29871, 29906, 29946, 334, 29871, 29953, 29900, 334, 29871, 29953, 29900, 876, 13, 13, 4706, 736, 2462, 13, 13, 13, 1990, 26297, 29923, 4387, 362, 29898, 29923, 4387, 362, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 8783, 29892, 4742, 1125, 13, 4706, 1583, 29889, 24713, 353, 8783, 13, 4706, 1583, 29889, 29894, 542, 370, 29918, 2311, 353, 8783, 29889, 1949, 29918, 296, 1907, 580, 13, 13, 4706, 1583, 29889, 10141, 353, 4742, 13, 4706, 1583, 29889, 4572, 353, 376, 2230, 29899, 28327, 29908, 13, 4706, 1583, 29889, 2098, 292, 353, 376, 20640, 4695, 29908, 13, 4706, 1583, 29889, 29895, 353, 518, 29896, 29892, 29871, 29941, 29892, 29871, 29896, 29900, 29962, 13, 13, 4706, 1583, 29889, 4572, 287, 29918, 1272, 353, 2322, 8977, 29898, 8516, 29897, 13, 4706, 1583, 29889, 4572, 287, 29918, 1272, 1839, 1028, 29918, 2033, 353, 1583, 29889, 24713, 29889, 4572, 29898, 1853, 29922, 1311, 29889, 4572, 29892, 3646, 2433, 29877, 1495, 13, 4706, 1583, 29889, 4572, 287, 29918, 1272, 1839, 29918, 1129, 2033, 353, 1583, 29889, 24713, 29889, 4572, 29898, 1853, 29922, 1311, 29889, 4572, 29892, 3646, 2433, 29879, 1495, 13, 13, 13, 1990, 26297, 22966, 20069, 29898, 12283, 29940, 387, 1230, 22966, 20069, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 8783, 29892, 408, 29918, 5344, 1125, 13, 4706, 1583, 29889, 4572, 353, 7700, 13, 4706, 1583, 29889, 294, 29918, 5344, 353, 408, 29918, 5344, 13, 4706, 1583, 29889, 24713, 353, 8783, 13, 13, 13, 1990, 15531, 29902, 1660, 29898, 15755, 29889, 7355, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 302, 29918, 10041, 29892, 302, 29918, 23445, 29892, 23655, 29918, 6229, 29892, 9853, 29918, 2311, 29892, 6509, 29918, 10492, 29892, 330, 2735, 29892, 274, 1195, 29892, 274, 3317, 29892, 330, 3746, 29922, 5574, 1125, 13, 4706, 2428, 29898, 1299, 29902, 1660, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 29887, 3746, 353, 330, 3746, 13, 4706, 1583, 29889, 29876, 29918, 10041, 353, 302, 29918, 10041, 13, 4706, 1583, 29889, 29876, 29918, 23445, 353, 302, 29918, 23445, 13, 4706, 1583, 29889, 17987, 8497, 29918, 6229, 353, 23655, 29918, 6229, 13, 4706, 1583, 29889, 16175, 29918, 2311, 353, 9853, 29918, 2311, 13, 4706, 1583, 29889, 21891, 29918, 10492, 353, 6509, 29918, 10492, 13, 4706, 1583, 29889, 4283, 353, 330, 2735, 13, 4706, 1583, 29889, 29883, 1195, 353, 274, 1195, 13, 4706, 1583, 29889, 29883, 3317, 353, 274, 3317, 13, 4706, 396, 405, 1691, 13, 4706, 1583, 29889, 1590, 29918, 29923, 353, 4842, 305, 29889, 15755, 29889, 6026, 2580, 8497, 29898, 29876, 29918, 10041, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29892, 7164, 29918, 13140, 29922, 29900, 29897, 13, 4706, 1583, 29889, 1590, 29918, 29923, 29918, 1707, 353, 4842, 305, 29889, 15755, 29889, 6026, 2580, 8497, 29898, 29876, 29918, 10041, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29892, 7164, 29918, 13140, 29922, 29900, 29897, 13, 4706, 1583, 29889, 1590, 29918, 29934, 353, 4842, 305, 29889, 15755, 29889, 6026, 2580, 8497, 29898, 29876, 29918, 23445, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29892, 7164, 29918, 13140, 29922, 29900, 29897, 13, 4706, 1583, 29889, 1590, 29918, 29934, 29918, 1707, 353, 4842, 305, 29889, 15755, 29889, 6026, 2580, 8497, 29898, 29876, 29918, 23445, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29892, 7164, 29918, 13140, 29922, 29900, 29897, 13, 4706, 1583, 29889, 1590, 29918, 4330, 353, 4842, 305, 29889, 15755, 29889, 6026, 2580, 8497, 29898, 29876, 29918, 10041, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29892, 7164, 29918, 13140, 29922, 29900, 29897, 13, 4706, 1583, 29889, 2312, 29918, 29923, 353, 4842, 305, 29889, 15755, 29889, 6026, 2580, 8497, 29898, 29876, 29918, 10041, 29892, 29871, 29896, 29892, 7164, 29918, 13140, 29922, 29900, 29897, 13, 4706, 1583, 29889, 3571, 29918, 29923, 353, 4842, 305, 29889, 15755, 29889, 6026, 2580, 8497, 29898, 29876, 29918, 10041, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29892, 7164, 29918, 13140, 29922, 29900, 29897, 13, 4706, 1583, 29889, 4787, 29918, 29923, 353, 4842, 305, 29889, 15755, 29889, 6026, 2580, 8497, 29898, 29876, 29918, 10041, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29892, 7164, 29918, 13140, 29922, 29900, 29897, 13, 4706, 1583, 29889, 1590, 29918, 5659, 353, 4842, 305, 29889, 15755, 29889, 6026, 2580, 8497, 29898, 29876, 29918, 23445, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29892, 7164, 29918, 13140, 29922, 29900, 29897, 13, 4706, 1583, 29889, 2312, 29918, 29934, 353, 4842, 305, 29889, 15755, 29889, 6026, 2580, 8497, 29898, 29876, 29918, 23445, 29892, 29871, 29896, 29892, 7164, 29918, 13140, 29922, 29900, 29897, 13, 4706, 1583, 29889, 3571, 29918, 29934, 353, 4842, 305, 29889, 15755, 29889, 6026, 2580, 8497, 29898, 29876, 29918, 23445, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29892, 7164, 29918, 13140, 29922, 29900, 29897, 13, 4706, 1583, 29889, 4787, 29918, 29934, 353, 4842, 305, 29889, 15755, 29889, 6026, 2580, 8497, 29898, 29876, 29918, 23445, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29892, 7164, 29918, 13140, 29922, 29900, 29897, 13, 13, 4706, 396, 17250, 2133, 13, 4706, 364, 353, 29871, 29953, 847, 7442, 29889, 3676, 29898, 1311, 29889, 17987, 8497, 29918, 6229, 29897, 13, 4706, 1583, 29889, 1590, 29918, 29923, 29889, 7915, 29889, 1272, 29889, 29590, 29918, 6278, 29878, 29892, 364, 29897, 13, 4706, 1583, 29889, 1590, 29918, 29923, 29918, 1707, 29889, 7915, 29889, 1272, 29889, 29590, 23538, 1311, 29889, 29883, 1195, 29892, 1583, 29889, 29883, 3317, 29897, 13, 4706, 1583, 29889, 1590, 29918, 29934, 29889, 7915, 29889, 1272, 29889, 29590, 29918, 6278, 29878, 29892, 364, 29897, 13, 4706, 1583, 29889, 1590, 29918, 29934, 29918, 1707, 29889, 7915, 29889, 1272, 29889, 29590, 23538, 1311, 29889, 29883, 1195, 29892, 1583, 29889, 29883, 3317, 29897, 13, 4706, 1583, 29889, 1590, 29918, 4330, 29889, 7915, 29889, 1272, 29889, 29590, 29918, 6278, 29878, 29892, 364, 29897, 13, 4706, 1583, 29889, 2312, 29918, 29923, 29889, 7915, 29889, 1272, 29889, 29590, 23538, 29900, 29892, 29871, 29900, 29897, 13, 4706, 1583, 29889, 3571, 29918, 29923, 29889, 7915, 29889, 1272, 29889, 29590, 23538, 29900, 29892, 29871, 29900, 29897, 13, 4706, 1583, 29889, 4787, 29918, 29923, 29889, 7915, 29889, 1272, 29889, 29590, 29918, 6278, 29878, 29892, 364, 29897, 13, 4706, 1583, 29889, 1590, 29918, 5659, 29889, 7915, 29889, 1272, 29889, 29590, 29918, 6278, 29878, 29892, 364, 29897, 13, 4706, 1583, 29889, 2312, 29918, 29934, 29889, 7915, 29889, 1272, 29889, 29590, 23538, 29900, 29892, 29871, 29900, 29897, 13, 4706, 1583, 29889, 3571, 29918, 29934, 29889, 7915, 29889, 1272, 29889, 29590, 23538, 29900, 29892, 29871, 29900, 29897, 13, 4706, 1583, 29889, 4787, 29918, 29934, 29889, 7915, 29889, 1272, 29889, 29590, 29918, 6278, 29878, 29892, 364, 29897, 13, 13, 4706, 396, 2169, 1070, 2133, 13, 4706, 1583, 29889, 8945, 675, 29918, 17987, 29881, 886, 580, 13, 13, 4706, 565, 1583, 29889, 29887, 3746, 29901, 13, 9651, 1583, 29889, 29883, 6191, 580, 13, 13, 1678, 822, 6375, 29898, 1311, 29892, 1060, 1125, 13, 4706, 396, 298, 29918, 29875, 29892, 260, 29918, 29875, 29892, 364, 29918, 29875, 29892, 270, 29918, 29875, 353, 1060, 7503, 29892, 29871, 29900, 1822, 579, 668, 29898, 9302, 29889, 524, 29953, 29946, 511, 1060, 7503, 29892, 29871, 29896, 1822, 579, 668, 29898, 9302, 29889, 524, 29953, 29946, 511, 1060, 7503, 29892, 29871, 29906, 1822, 579, 668, 29898, 9302, 29889, 524, 29953, 29946, 511, 1060, 7503, 29892, 13, 4706, 396, 462, 462, 462, 462, 462, 462, 268, 29941, 1822, 579, 668, 29898, 13, 4706, 396, 268, 7442, 29889, 7411, 29941, 29906, 29897, 13, 4706, 298, 29918, 29875, 29892, 260, 29918, 29875, 29892, 364, 29918, 29875, 29892, 270, 29918, 29875, 353, 1060, 7503, 29892, 29871, 29900, 1822, 5426, 3285, 1060, 7503, 29892, 29871, 29906, 1822, 5426, 3285, 1060, 7503, 29892, 29871, 29896, 1822, 5426, 3285, 1060, 7503, 29892, 29871, 29941, 1822, 7411, 580, 13, 13, 4706, 396, 565, 1583, 29889, 29887, 3746, 29901, 13, 4706, 396, 268, 298, 29918, 29875, 353, 28736, 29898, 7345, 305, 29889, 3166, 29918, 23749, 29898, 29882, 29918, 29875, 467, 29883, 6191, 3101, 13, 4706, 396, 268, 260, 29918, 29875, 353, 28736, 29898, 7345, 305, 29889, 3166, 29918, 23749, 29898, 29873, 29918, 29875, 467, 29883, 6191, 3101, 13, 4706, 396, 268, 364, 29918, 29875, 353, 28736, 29898, 7345, 305, 29889, 3166, 29918, 23749, 29898, 29878, 29918, 29875, 467, 29883, 6191, 3101, 13, 4706, 396, 268, 270, 29918, 29875, 353, 28736, 29898, 7345, 305, 29889, 3166, 29918, 23749, 29898, 29881, 29918, 29875, 467, 29883, 6191, 3101, 13, 4706, 396, 13, 4706, 396, 1683, 29901, 13, 4706, 396, 268, 298, 29918, 29875, 353, 28736, 29898, 7345, 305, 29889, 3166, 29918, 23749, 29898, 29882, 29918, 29875, 876, 13, 4706, 396, 268, 260, 29918, 29875, 353, 28736, 29898, 7345, 305, 29889, 3166, 29918, 23749, 29898, 29873, 29918, 29875, 876, 13, 4706, 396, 268, 364, 29918, 29875, 353, 28736, 29898, 7345, 305, 29889, 3166, 29918, 23749, 29898, 29878, 29918, 29875, 876, 13, 4706, 396, 268, 270, 29918, 29875, 353, 28736, 29898, 7345, 305, 29889, 3166, 29918, 23749, 29898, 29881, 29918, 29875, 876, 13, 13, 4706, 2930, 353, 29871, 29941, 29889, 29896, 29946, 29896, 29945, 29929, 29906, 29953, 29945, 29941, 29945, 29947, 29929, 29955, 29929, 29941, 29906, 29941, 29947, 29946, 29953, 13, 4706, 298, 29918, 12676, 353, 1583, 29889, 1590, 29918, 29923, 29898, 29882, 29918, 29875, 467, 1493, 6278, 29896, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29897, 718, 320, 13, 462, 270, 29918, 29875, 29889, 1493, 6278, 29896, 29892, 29871, 29896, 29897, 334, 1583, 29889, 2312, 29918, 29923, 29898, 29882, 29918, 29875, 467, 1493, 6278, 29896, 29892, 29871, 29896, 29897, 334, 1583, 29889, 1590, 29918, 4330, 29898, 29882, 29918, 29875, 467, 1493, 6278, 29896, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29897, 320, 13, 462, 718, 1583, 29889, 3571, 29918, 29923, 29898, 29882, 29918, 29875, 467, 1493, 6278, 29896, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29897, 334, 4842, 305, 29889, 5223, 29898, 13, 632, 29906, 334, 2930, 334, 1583, 29889, 4787, 29918, 29923, 29898, 29882, 29918, 29875, 467, 1493, 6278, 29896, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29897, 334, 270, 29918, 29875, 29889, 1493, 6278, 29896, 29892, 29871, 29896, 876, 13, 13, 4706, 260, 29918, 12676, 353, 1583, 29889, 1590, 29918, 29923, 29898, 29873, 29918, 29875, 467, 1493, 6278, 29896, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29897, 718, 320, 13, 462, 270, 29918, 29875, 29889, 1493, 6278, 29896, 29892, 29871, 29896, 29897, 334, 1583, 29889, 2312, 29918, 29923, 29898, 29873, 29918, 29875, 467, 1493, 6278, 29896, 29892, 29871, 29896, 29897, 334, 1583, 29889, 1590, 29918, 4330, 29898, 29873, 29918, 29875, 467, 1493, 6278, 29896, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29897, 320, 13, 462, 718, 1583, 29889, 3571, 29918, 29923, 29898, 29873, 29918, 29875, 467, 1493, 6278, 29896, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29897, 334, 4842, 305, 29889, 5223, 29898, 13, 632, 29906, 334, 2930, 334, 1583, 29889, 4787, 29918, 29923, 29898, 29873, 29918, 29875, 467, 1493, 6278, 29896, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29897, 334, 270, 29918, 29875, 29889, 1493, 6278, 29896, 29892, 29871, 29896, 876, 13, 13, 4706, 364, 29918, 12676, 353, 1583, 29889, 1590, 29918, 29934, 29898, 29878, 29918, 29875, 467, 1493, 6278, 29896, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29897, 718, 320, 13, 462, 270, 29918, 29875, 29889, 1493, 6278, 29896, 29892, 29871, 29896, 29897, 334, 1583, 29889, 2312, 29918, 29934, 29898, 29878, 29918, 29875, 467, 1493, 6278, 29896, 29892, 29871, 29896, 29897, 334, 1583, 29889, 1590, 29918, 5659, 29898, 29878, 29918, 29875, 467, 1493, 6278, 29896, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29897, 320, 13, 462, 718, 1583, 29889, 3571, 29918, 29934, 29898, 29878, 29918, 29875, 467, 1493, 6278, 29896, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29897, 334, 4842, 305, 29889, 5223, 29898, 13, 632, 29906, 334, 2930, 334, 1583, 29889, 4787, 29918, 29934, 29898, 29878, 29918, 29875, 467, 1493, 6278, 29896, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29897, 334, 270, 29918, 29875, 29889, 1493, 6278, 29896, 29892, 29871, 29896, 876, 13, 13, 4706, 298, 29918, 1707, 353, 1583, 29889, 1590, 29918, 29923, 29918, 1707, 29898, 29882, 29918, 29875, 467, 1493, 6278, 29896, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29897, 13, 4706, 260, 29918, 1707, 353, 1583, 29889, 1590, 29918, 29923, 29918, 1707, 29898, 29873, 29918, 29875, 467, 1493, 6278, 29896, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29897, 13, 4706, 364, 29918, 1707, 353, 1583, 29889, 1590, 29918, 29934, 29918, 1707, 29898, 29878, 29918, 29875, 467, 1493, 6278, 29896, 29892, 1583, 29889, 17987, 8497, 29918, 6229, 29897, 13, 13, 4706, 714, 29896, 353, 4842, 305, 29889, 2083, 3552, 29882, 29918, 1707, 718, 260, 29918, 1707, 29897, 847, 364, 29918, 1707, 29892, 29871, 29896, 29897, 718, 4842, 305, 29889, 2083, 3552, 29898, 29878, 29918, 12676, 448, 298, 29918, 12676, 718, 260, 29918, 12676, 29897, 3579, 29871, 29906, 29897, 847, 364, 29918, 1707, 29892, 13, 462, 462, 462, 462, 29871, 29896, 29897, 448, 1583, 29889, 17987, 8497, 29918, 6229, 13, 4706, 714, 29906, 353, 4842, 305, 29889, 2083, 29898, 29878, 29918, 1707, 847, 313, 29882, 29918, 1707, 718, 260, 29918, 1707, 511, 29871, 29896, 29897, 718, 4842, 305, 29889, 2083, 3552, 29898, 29882, 29918, 12676, 448, 260, 29918, 12676, 448, 364, 29918, 12676, 29897, 3579, 29871, 29906, 29897, 847, 313, 29882, 29918, 1707, 718, 260, 29918, 1707, 511, 13, 462, 462, 462, 462, 29871, 29896, 29897, 448, 1583, 29889, 17987, 8497, 29918, 6229, 13, 4706, 714, 353, 313, 449, 29896, 718, 714, 29906, 29897, 847, 29871, 29946, 13, 13, 4706, 736, 714, 13, 13, 1678, 822, 1480, 29918, 10003, 29918, 6758, 29898, 1311, 29892, 343, 29918, 1066, 29892, 343, 29918, 10052, 29892, 5694, 29922, 29900, 1125, 13, 4706, 341, 353, 343, 29918, 1066, 29889, 2311, 29898, 29900, 29897, 13, 4706, 405, 353, 343, 29918, 10052, 29889, 2311, 29898, 29900, 29897, 13, 4706, 343, 29918, 1066, 353, 1583, 29889, 4283, 448, 343, 29918, 1066, 13, 4706, 343, 29918, 10052, 353, 1583, 29889, 4283, 448, 343, 29918, 10052, 13, 4706, 315, 353, 938, 29898, 29940, 847, 341, 29897, 13, 4706, 343, 29918, 10052, 353, 343, 29918, 10052, 29889, 1493, 29898, 29907, 29892, 448, 29896, 467, 3286, 4220, 29898, 29900, 29892, 29871, 29896, 29897, 13, 4706, 282, 353, 383, 29889, 2695, 3317, 29898, 7382, 334, 343, 29918, 10052, 29897, 13, 4706, 6410, 29918, 1066, 353, 4842, 305, 29889, 2083, 29898, 29943, 29889, 2695, 11242, 6278, 29896, 334, 343, 29918, 1066, 876, 13, 4706, 6410, 29918, 10052, 353, 4842, 305, 29889, 2083, 29898, 29886, 334, 383, 29889, 2695, 11242, 29898, 29891, 29918, 10052, 876, 13, 4706, 6410, 353, 313, 6758, 29918, 1066, 718, 6410, 29918, 10052, 29897, 847, 29871, 29906, 847, 341, 13, 4706, 565, 1583, 29889, 29887, 3746, 29901, 13, 9651, 6410, 353, 6410, 29889, 29883, 6191, 580, 13, 4706, 736, 6410, 13, 13, 1678, 822, 7115, 29918, 6758, 29898, 1311, 29892, 343, 29918, 1066, 29892, 343, 29918, 10052, 1125, 13, 4706, 341, 353, 343, 29918, 1066, 29889, 2311, 29898, 29900, 29897, 13, 4706, 405, 353, 343, 29918, 10052, 29889, 2311, 29898, 29900, 29897, 13, 4706, 315, 353, 938, 29898, 29940, 847, 341, 29897, 13, 4706, 343, 29918, 1066, 353, 343, 29918, 1066, 29889, 14358, 29898, 29907, 29897, 13, 4706, 565, 1583, 29889, 29887, 3746, 29901, 13, 9651, 3646, 353, 28736, 29898, 7345, 305, 29889, 3166, 29918, 23749, 6278, 9302, 29889, 2873, 29898, 29940, 29892, 26688, 29922, 9302, 29889, 7411, 29941, 29906, 876, 467, 29883, 6191, 580, 13, 4706, 1683, 29901, 13, 9651, 3646, 353, 28736, 29898, 7345, 305, 29889, 3166, 29918, 23749, 6278, 9302, 29889, 2873, 29898, 29940, 29892, 26688, 29922, 9302, 29889, 7411, 29941, 29906, 876, 467, 21970, 580, 13, 4706, 6410, 353, 302, 29876, 29889, 29924, 3930, 29934, 804, 292, 29931, 2209, 29898, 9264, 29922, 1311, 29889, 4283, 29897, 13, 4706, 6410, 353, 6410, 29898, 29891, 29918, 1066, 29892, 343, 29918, 10052, 29892, 3646, 29897, 13, 4706, 736, 6410, 13, 13, 1678, 822, 4226, 675, 29918, 17987, 29881, 886, 29898, 1311, 1125, 13, 4706, 1583, 29889, 1590, 29918, 29923, 29889, 7915, 29889, 1272, 29889, 1267, 555, 23538, 29886, 29922, 29906, 29892, 3964, 29922, 29900, 29892, 4236, 12324, 29922, 29896, 29897, 13, 4706, 1583, 29889, 1590, 29918, 29923, 29918, 1707, 29889, 7915, 29889, 1272, 29889, 29590, 23538, 1311, 29889, 29883, 1195, 29892, 1583, 29889, 29883, 3317, 29897, 13, 4706, 1583, 29889, 1590, 29918, 29934, 29889, 7915, 29889, 1272, 29889, 1267, 555, 23538, 29886, 29922, 29906, 29892, 3964, 29922, 29900, 29892, 4236, 12324, 29922, 29896, 29897, 13, 4706, 1583, 29889, 1590, 29918, 29934, 29918, 1707, 29889, 7915, 29889, 1272, 29889, 29590, 23538, 1311, 29889, 29883, 1195, 29892, 1583, 29889, 29883, 3317, 29897, 13, 4706, 1583, 29889, 1590, 29918, 4330, 29889, 7915, 29889, 1272, 29889, 1267, 555, 23538, 29886, 29922, 29906, 29892, 3964, 29922, 29900, 29892, 4236, 12324, 29922, 29896, 29897, 13, 4706, 1583, 29889, 1590, 29918, 5659, 29889, 7915, 29889, 1272, 29889, 1267, 555, 23538, 29886, 29922, 29906, 29892, 3964, 29922, 29900, 29892, 4236, 12324, 29922, 29896, 29897, 13, 13, 1678, 822, 4943, 2133, 29918, 17987, 29881, 886, 29898, 1311, 1125, 13, 4706, 5224, 353, 4842, 305, 29889, 20158, 29898, 1311, 29889, 29883, 1195, 467, 7411, 580, 13, 4706, 7568, 353, 4842, 305, 29889, 20158, 29898, 1311, 29889, 29883, 3317, 467, 7411, 580, 13, 4706, 565, 1583, 29889, 29887, 3746, 29901, 13, 9651, 5224, 353, 5224, 29889, 29883, 6191, 580, 13, 9651, 7568, 353, 7568, 29889, 29883, 6191, 580, 13, 4706, 1583, 29889, 1590, 29918, 29923, 29918, 1707, 29889, 7915, 29889, 1272, 353, 4842, 305, 29889, 3062, 29898, 1311, 29889, 1590, 29918, 29923, 29918, 1707, 29889, 7915, 29889, 1272, 529, 1583, 29889, 29883, 1195, 29892, 5224, 29892, 13, 462, 462, 462, 1583, 29889, 1590, 29918, 29923, 29918, 1707, 29889, 7915, 29889, 1272, 29897, 13, 4706, 1583, 29889, 1590, 29918, 29923, 29918, 1707, 29889, 7915, 29889, 1272, 353, 4842, 305, 29889, 3062, 29898, 1311, 29889, 1590, 29918, 29923, 29918, 1707, 29889, 7915, 29889, 1272, 1405, 1583, 29889, 29883, 3317, 29892, 7568, 29892, 13, 462, 462, 462, 1583, 29889, 1590, 29918, 29923, 29918, 1707, 29889, 7915, 29889, 1272, 29897, 13, 4706, 1583, 29889, 1590, 29918, 29934, 29918, 1707, 29889, 7915, 29889, 1272, 353, 4842, 305, 29889, 3062, 29898, 1311, 29889, 1590, 29918, 29934, 29918, 1707, 29889, 7915, 29889, 1272, 529, 1583, 29889, 29883, 1195, 29892, 5224, 29892, 13, 462, 462, 462, 1583, 29889, 1590, 29918, 29934, 29918, 1707, 29889, 7915, 29889, 1272, 29897, 13, 4706, 1583, 29889, 1590, 29918, 29934, 29918, 1707, 29889, 7915, 29889, 1272, 353, 4842, 305, 29889, 3062, 29898, 1311, 29889, 1590, 29918, 29934, 29918, 1707, 29889, 7915, 29889, 1272, 1405, 1583, 29889, 29883, 3317, 29892, 7568, 29892, 13, 462, 462, 462, 1583, 29889, 1590, 29918, 29934, 29918, 1707, 29889, 7915, 29889, 1272, 29897, 13, 4706, 1583, 29889, 1590, 29918, 29923, 29889, 7915, 29889, 1272, 29889, 1267, 555, 23538, 29886, 29922, 29906, 29892, 3964, 29922, 29900, 29892, 4236, 12324, 29922, 29896, 29897, 13, 4706, 1583, 29889, 1590, 29918, 29934, 29889, 7915, 29889, 1272, 29889, 1267, 555, 23538, 29886, 29922, 29906, 29892, 3964, 29922, 29900, 29892, 4236, 12324, 29922, 29896, 29897, 13, 4706, 1583, 29889, 1590, 29918, 4330, 29889, 7915, 29889, 1272, 29889, 1267, 555, 23538, 29886, 29922, 29906, 29892, 3964, 29922, 29900, 29892, 4236, 12324, 29922, 29896, 29897, 13, 4706, 1583, 29889, 1590, 29918, 5659, 29889, 7915, 29889, 1272, 29889, 1267, 555, 23538, 29886, 29922, 29906, 29892, 3964, 29922, 29900, 29892, 4236, 12324, 29922, 29896, 29897, 13, 13, 1678, 822, 7115, 29918, 1563, 29898, 1311, 29892, 1060, 29892, 17099, 29892, 12118, 29892, 5335, 287, 10669, 29892, 6664, 29918, 842, 29922, 29900, 1125, 13, 13, 4706, 7115, 353, 5159, 13, 4706, 411, 4842, 305, 29889, 1217, 29918, 5105, 7295, 13, 9651, 565, 5335, 287, 10669, 29901, 13, 18884, 363, 21954, 29892, 2114, 297, 14319, 29898, 29990, 29892, 17099, 1125, 13, 462, 1678, 1060, 29918, 29875, 353, 7442, 29889, 2873, 4197, 1311, 29889, 29876, 29918, 10041, 29892, 29871, 29946, 2314, 13, 462, 1678, 474, 29918, 13628, 353, 4842, 305, 29889, 3298, 359, 29898, 1311, 29889, 29876, 29918, 10041, 29897, 13, 462, 1678, 565, 1583, 29889, 29887, 3746, 29901, 13, 462, 4706, 474, 29918, 13628, 353, 474, 29918, 13628, 29889, 29883, 6191, 580, 13, 462, 1678, 363, 931, 29918, 2248, 297, 518, 3626, 552, 29961, 29941, 1402, 21954, 29961, 29946, 5262, 29901, 13, 462, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 1583, 29889, 29876, 29918, 10041, 1125, 13, 462, 9651, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29900, 29962, 353, 474, 13, 462, 9651, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29896, 29962, 353, 21954, 29961, 29896, 29962, 13, 462, 9651, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29906, 29962, 353, 21954, 29961, 29906, 29962, 13, 462, 9651, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29941, 29962, 353, 931, 29918, 2248, 13, 462, 4706, 474, 29918, 13628, 353, 474, 29918, 13628, 718, 1583, 29889, 11333, 29898, 29990, 29918, 29875, 467, 1493, 6278, 29896, 29897, 13, 462, 4706, 565, 6664, 29918, 842, 1405, 29871, 29900, 29901, 13, 462, 9651, 1060, 29918, 13478, 353, 7442, 29889, 2873, 4197, 1311, 29889, 29876, 29918, 10041, 29892, 29871, 29946, 2314, 13, 462, 9651, 363, 474, 297, 3464, 29898, 29900, 29892, 1583, 29889, 29876, 29918, 10041, 1125, 13, 462, 18884, 1060, 29918, 13478, 29961, 29875, 29892, 29871, 29900, 29962, 353, 21954, 29961, 29896, 29962, 13, 462, 18884, 1060, 29918, 13478, 29961, 29875, 29892, 29871, 29896, 29962, 353, 474, 13, 462, 18884, 1060, 29918, 13478, 29961, 29875, 29892, 29871, 29906, 29962, 353, 21954, 29961, 29906, 29962, 718, 1583, 29889, 29876, 29918, 23445, 849, 29871, 29906, 13, 462, 18884, 1060, 29918, 13478, 29961, 29875, 29892, 29871, 29941, 29962, 353, 931, 29918, 2248, 13, 462, 9651, 474, 29918, 13628, 353, 474, 29918, 13628, 718, 1583, 29889, 11333, 29898, 29990, 29918, 13478, 467, 1493, 6278, 29896, 29897, 13, 462, 1678, 4175, 29918, 449, 353, 12118, 29889, 517, 29918, 11014, 29918, 8394, 1839, 29880, 9499, 2033, 15625, 17028, 29961, 29896, 1402, 2114, 29961, 29906, 1402, 2114, 29961, 29941, 1402, 2114, 29961, 29946, 2314, 29962, 13, 462, 1678, 3646, 353, 474, 29918, 13628, 29961, 524, 29898, 3626, 552, 29961, 29900, 2314, 1822, 16513, 580, 13, 462, 1678, 474, 29918, 13628, 29961, 4572, 29918, 449, 29962, 353, 29871, 29896, 29872, 29953, 13, 462, 1678, 7115, 29918, 3626, 552, 353, 4842, 305, 29889, 2083, 3552, 29875, 29918, 13628, 529, 3646, 467, 7411, 16655, 21970, 2141, 667, 580, 718, 29871, 29896, 13, 462, 1678, 7115, 29889, 4397, 29898, 10003, 29918, 3626, 552, 29897, 13, 13, 9651, 1683, 29901, 13, 18884, 363, 21954, 29892, 2114, 297, 14319, 29898, 29990, 29892, 17099, 1125, 13, 462, 1678, 1060, 29918, 29875, 353, 7442, 29889, 2873, 4197, 1311, 29889, 29876, 29918, 10041, 29892, 29871, 29946, 2314, 13, 462, 1678, 363, 474, 297, 3464, 29898, 29900, 29892, 1583, 29889, 29876, 29918, 10041, 1125, 13, 462, 4706, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29900, 29962, 353, 474, 13, 462, 4706, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29896, 29962, 353, 21954, 29961, 29896, 29962, 13, 462, 4706, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29906, 29962, 353, 21954, 29961, 29906, 29962, 13, 462, 4706, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29941, 29962, 353, 21954, 29961, 29941, 29962, 13, 13, 462, 1678, 474, 29918, 13628, 353, 1583, 29889, 11333, 29898, 29990, 29918, 29875, 29897, 13, 13, 462, 1678, 565, 6664, 29918, 842, 1405, 29871, 29900, 29901, 13, 462, 4706, 1060, 29918, 13478, 353, 7442, 29889, 2873, 4197, 1311, 29889, 29876, 29918, 10041, 29892, 29871, 29946, 2314, 13, 462, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 1583, 29889, 29876, 29918, 10041, 1125, 13, 462, 9651, 1060, 29918, 13478, 29961, 29875, 29892, 29871, 29900, 29962, 353, 21954, 29961, 29896, 29962, 13, 462, 9651, 1060, 29918, 13478, 29961, 29875, 29892, 29871, 29896, 29962, 353, 474, 13, 462, 9651, 1060, 29918, 13478, 29961, 29875, 29892, 29871, 29906, 29962, 353, 21954, 29961, 29906, 29962, 718, 1583, 29889, 29876, 29918, 23445, 849, 29871, 29906, 13, 462, 9651, 1060, 29918, 13478, 29961, 29875, 29892, 29871, 29941, 29962, 353, 21954, 29961, 29941, 29962, 13, 462, 4706, 474, 29918, 13628, 353, 474, 29918, 13628, 718, 1583, 29889, 11333, 29898, 29990, 29918, 13478, 467, 1493, 6278, 29896, 29897, 13, 462, 1678, 565, 1583, 29889, 29887, 3746, 29901, 13, 462, 4706, 474, 29918, 13628, 353, 474, 29918, 13628, 29889, 29883, 6191, 580, 13, 462, 1678, 4175, 29918, 449, 353, 12118, 29889, 517, 29918, 11014, 29918, 8394, 1839, 29880, 9499, 2033, 15625, 17028, 29961, 29896, 1402, 2114, 29961, 29906, 1402, 2114, 29961, 29941, 1402, 2114, 29961, 29946, 2314, 29962, 13, 462, 1678, 3646, 353, 474, 29918, 13628, 29961, 524, 29898, 3626, 552, 29961, 29900, 2314, 1822, 16513, 580, 13, 462, 1678, 474, 29918, 13628, 29961, 4572, 29918, 449, 29962, 353, 29871, 29896, 29872, 29953, 13, 462, 1678, 7115, 29918, 3626, 552, 353, 4842, 305, 29889, 2083, 3552, 29875, 29918, 13628, 529, 3646, 467, 7411, 16655, 21970, 2141, 667, 580, 718, 29871, 29896, 13, 462, 1678, 7115, 29889, 4397, 29898, 10003, 29918, 3626, 552, 29897, 13, 13, 18884, 1596, 877, 1563, 1495, 13, 18884, 1596, 29898, 10003, 29897, 13, 4706, 736, 7115, 13, 13, 1678, 822, 7115, 29918, 1266, 29898, 1311, 29892, 1060, 29892, 17099, 29892, 12118, 29892, 5335, 287, 10669, 29892, 6664, 29918, 842, 29922, 29900, 1125, 13, 4706, 7115, 353, 5159, 13, 4706, 411, 4842, 305, 29889, 1217, 29918, 5105, 7295, 13, 9651, 565, 5335, 287, 10669, 29901, 13, 18884, 363, 21954, 29892, 2114, 297, 14319, 29898, 29990, 29892, 17099, 1125, 13, 462, 1678, 1060, 29918, 29875, 353, 7442, 29889, 2873, 4197, 1311, 29889, 29876, 29918, 10041, 29892, 29871, 29946, 2314, 13, 462, 1678, 474, 29918, 13628, 353, 4842, 305, 29889, 3298, 359, 29898, 1311, 29889, 29876, 29918, 10041, 29897, 13, 462, 1678, 565, 1583, 29889, 29887, 3746, 29901, 13, 462, 4706, 474, 29918, 13628, 353, 474, 29918, 13628, 29889, 29883, 6191, 580, 13, 462, 1678, 363, 931, 29918, 2248, 297, 518, 3626, 552, 29961, 29941, 1402, 21954, 29961, 29946, 5262, 29901, 13, 462, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 1583, 29889, 29876, 29918, 10041, 1125, 13, 462, 9651, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29900, 29962, 353, 21954, 29961, 29900, 29962, 13, 462, 9651, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29896, 29962, 353, 474, 13, 462, 9651, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29906, 29962, 353, 21954, 29961, 29906, 29962, 13, 462, 9651, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29941, 29962, 353, 931, 29918, 2248, 13, 462, 4706, 474, 29918, 13628, 353, 474, 29918, 13628, 718, 1583, 29889, 11333, 29898, 29990, 29918, 29875, 467, 1493, 6278, 29896, 29897, 13, 462, 4706, 565, 6664, 29918, 842, 1405, 29871, 29900, 29901, 13, 462, 9651, 1060, 29918, 13478, 353, 7442, 29889, 2873, 4197, 1311, 29889, 29876, 29918, 10041, 29892, 29871, 29946, 2314, 13, 462, 9651, 363, 474, 297, 3464, 29898, 29900, 29892, 1583, 29889, 29876, 29918, 10041, 1125, 13, 462, 18884, 1060, 29918, 13478, 29961, 29875, 29892, 29871, 29900, 29962, 353, 474, 13, 462, 18884, 1060, 29918, 13478, 29961, 29875, 29892, 29871, 29896, 29962, 353, 21954, 29961, 29900, 29962, 13, 462, 18884, 1060, 29918, 13478, 29961, 29875, 29892, 29871, 29906, 29962, 353, 21954, 29961, 29906, 29962, 718, 1583, 29889, 29876, 29918, 23445, 849, 29871, 29906, 13, 462, 18884, 1060, 29918, 13478, 29961, 29875, 29892, 29871, 29941, 29962, 353, 931, 29918, 2248, 13, 462, 9651, 474, 29918, 13628, 353, 474, 29918, 13628, 718, 1583, 29889, 11333, 29898, 29990, 29918, 13478, 467, 1493, 6278, 29896, 29897, 13, 13, 462, 1678, 4175, 29918, 449, 353, 12118, 29889, 517, 29918, 11014, 29918, 8394, 1839, 29878, 9499, 2033, 15625, 17028, 29961, 29900, 1402, 2114, 29961, 29906, 1402, 2114, 29961, 29941, 1402, 2114, 29961, 29946, 2314, 29962, 13, 462, 1678, 3646, 353, 474, 29918, 13628, 29961, 524, 29898, 3626, 552, 29961, 29896, 2314, 1822, 16513, 580, 13, 462, 1678, 474, 29918, 13628, 29961, 4572, 29918, 449, 29962, 353, 29871, 29896, 29872, 29953, 13, 462, 1678, 7115, 29918, 3626, 552, 353, 4842, 305, 29889, 2083, 3552, 29875, 29918, 13628, 529, 3646, 467, 7411, 16655, 21970, 2141, 667, 580, 718, 29871, 29896, 13, 13, 462, 1678, 7115, 29889, 4397, 29898, 10003, 29918, 3626, 552, 29897, 13, 9651, 1683, 29901, 13, 18884, 363, 21954, 29892, 2114, 297, 14319, 29898, 29990, 29892, 17099, 1125, 13, 462, 1678, 1060, 29918, 29875, 353, 7442, 29889, 2873, 4197, 1311, 29889, 29876, 29918, 10041, 29892, 29871, 29946, 2314, 13, 462, 1678, 363, 474, 297, 3464, 29898, 29900, 29892, 1583, 29889, 29876, 29918, 10041, 1125, 13, 462, 4706, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29900, 29962, 353, 21954, 29961, 29900, 29962, 13, 462, 4706, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29896, 29962, 353, 474, 13, 462, 4706, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29906, 29962, 353, 21954, 29961, 29906, 29962, 13, 462, 4706, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29941, 29962, 353, 21954, 29961, 29941, 29962, 13, 462, 1678, 474, 29918, 13628, 353, 1583, 29889, 11333, 29898, 29990, 29918, 29875, 29897, 13, 462, 1678, 565, 6664, 29918, 842, 1405, 29871, 29900, 29901, 13, 462, 4706, 1060, 29918, 13478, 353, 7442, 29889, 2873, 4197, 1311, 29889, 29876, 29918, 10041, 29892, 29871, 29946, 2314, 13, 462, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 1583, 29889, 29876, 29918, 10041, 1125, 13, 462, 9651, 1060, 29918, 13478, 29961, 29875, 29892, 29871, 29900, 29962, 353, 474, 13, 462, 9651, 1060, 29918, 13478, 29961, 29875, 29892, 29871, 29896, 29962, 353, 21954, 29961, 29900, 29962, 13, 462, 9651, 1060, 29918, 13478, 29961, 29875, 29892, 29871, 29906, 29962, 353, 21954, 29961, 29906, 29962, 718, 1583, 29889, 29876, 29918, 23445, 849, 29871, 29906, 13, 462, 9651, 1060, 29918, 13478, 29961, 29875, 29892, 29871, 29941, 29962, 353, 21954, 29961, 29941, 29962, 13, 462, 4706, 474, 29918, 13628, 353, 474, 29918, 13628, 718, 1583, 29889, 11333, 29898, 29990, 29918, 13478, 467, 1493, 6278, 29896, 29897, 13, 462, 1678, 565, 1583, 29889, 29887, 3746, 29901, 13, 462, 4706, 474, 29918, 13628, 353, 474, 29918, 13628, 29889, 29883, 6191, 580, 13, 462, 1678, 4175, 29918, 449, 353, 12118, 29889, 517, 29918, 11014, 29918, 8394, 1839, 29878, 9499, 2033, 15625, 17028, 29961, 29900, 1402, 2114, 29961, 29906, 1402, 2114, 29961, 29941, 1402, 2114, 29961, 29946, 2314, 29962, 13, 462, 1678, 3646, 353, 474, 29918, 13628, 29961, 524, 29898, 3626, 552, 29961, 29896, 2314, 1822, 16513, 580, 13, 462, 1678, 474, 29918, 13628, 29961, 4572, 29918, 449, 29962, 353, 29871, 29896, 29872, 29953, 13, 462, 1678, 7115, 29918, 3626, 552, 353, 4842, 305, 29889, 2083, 3552, 29875, 29918, 13628, 529, 3646, 467, 7411, 16655, 21970, 2141, 667, 580, 718, 29871, 29896, 13, 13, 462, 1678, 7115, 29889, 4397, 29898, 10003, 29918, 3626, 552, 29897, 13, 13, 18884, 1596, 877, 1266, 1495, 13, 18884, 1596, 29898, 10003, 29897, 13, 13, 4706, 736, 7115, 13, 13, 1678, 822, 931, 11965, 29898, 1311, 29892, 1060, 1125, 13, 4706, 7115, 353, 5159, 13, 4706, 411, 4842, 305, 29889, 1217, 29918, 5105, 7295, 13, 9651, 363, 21954, 297, 1060, 29901, 13, 18884, 1060, 29918, 29875, 353, 7442, 29889, 2873, 4197, 1311, 29889, 29876, 29918, 3250, 29892, 7431, 29898, 3626, 552, 29897, 2314, 13, 18884, 363, 474, 297, 3464, 29898, 1311, 29889, 29876, 29918, 3250, 1125, 13, 462, 1678, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29900, 29962, 353, 21954, 29961, 29900, 29962, 13, 462, 1678, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29896, 29962, 353, 21954, 29961, 29896, 29962, 13, 462, 1678, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29906, 29962, 353, 21954, 29961, 29906, 29962, 13, 462, 1678, 1060, 29918, 29875, 29961, 29875, 29892, 29871, 29941, 17531, 353, 1583, 29889, 2230, 29918, 8977, 29961, 29875, 29962, 13, 18884, 474, 29918, 13628, 353, 1583, 29889, 11333, 29898, 29990, 29918, 29875, 29897, 13, 18884, 565, 1583, 29889, 29887, 3746, 29901, 13, 462, 1678, 474, 29918, 13628, 353, 474, 29918, 13628, 29889, 29883, 6191, 580, 13, 13, 18884, 3646, 353, 474, 29918, 13628, 29961, 3626, 552, 29961, 29941, 5262, 13, 18884, 7115, 29918, 3626, 552, 353, 4842, 305, 29889, 2083, 3552, 29875, 29918, 13628, 529, 3646, 467, 7411, 16655, 21970, 2141, 667, 580, 718, 29871, 29896, 13, 18884, 7115, 29889, 4397, 29898, 10003, 29918, 3626, 552, 29897, 13, 13, 4706, 736, 7115, 13, 13, 13, 4299, 29918, 2084, 353, 5591, 5184, 29914, 29887, 996, 29891, 12323, 29914, 1287, 3493, 29914, 6500, 5570, 29914, 1299, 29902, 1660, 29914, 625, 5652, 29896, 29946, 29914, 1299, 29902, 1660, 29914, 9346, 287, 275, 9084, 29900, 29914, 6229, 29945, 29900, 29900, 29914, 29212, 29900, 29889, 29900, 29900, 29900, 29900, 29914, 10052, 29918, 1949, 29896, 29900, 29914, 29941, 3250, 29914, 4283, 29896, 29906, 29900, 29914, 29883, 1195, 29900, 29889, 29900, 29900, 29941, 29900, 29914, 7529, 29889, 29886, 6321, 29908, 13, 13, 4299, 353, 15531, 29902, 1660, 29898, 29955, 29896, 29906, 29929, 29892, 29871, 29946, 29953, 29900, 29892, 29871, 29945, 29900, 29900, 29892, 29871, 29953, 29946, 29892, 29871, 29900, 29892, 29871, 29896, 29906, 29900, 29892, 29871, 29900, 29889, 29900, 29900, 29941, 29892, 29871, 29900, 29889, 29941, 29892, 5852, 29897, 13, 4299, 29918, 3859, 29918, 8977, 353, 4842, 305, 29889, 1359, 29898, 4299, 29918, 2084, 29897, 13, 4299, 29889, 1359, 29918, 3859, 29918, 8977, 29898, 4299, 29918, 3859, 29918, 8977, 29897, 13, 13, 13, 1753, 1243, 7295, 13, 1678, 4742, 353, 525, 29883, 6191, 29915, 565, 4842, 305, 29889, 29883, 6191, 29889, 275, 29918, 16515, 580, 1683, 525, 21970, 29915, 13, 1678, 8783, 353, 26297, 4178, 895, 16390, 24541, 18689, 580, 13, 1678, 6161, 1061, 353, 26297, 29923, 4387, 362, 29898, 24713, 29892, 4742, 29897, 13, 1678, 3514, 20069, 353, 26297, 22966, 20069, 29898, 24713, 29892, 408, 29918, 5344, 29922, 5574, 29897, 13, 1678, 396, 13, 1678, 396, 1596, 29898, 24713, 29889, 1372, 29906, 333, 29897, 13, 1678, 396, 1596, 29898, 24713, 29889, 2248, 29918, 9346, 342, 15092, 29898, 29906, 29941, 876, 13, 1678, 396, 1596, 29898, 24713, 29889, 2248, 29918, 2674, 800, 877, 1433, 5060, 29892, 1439, 475, 29892, 470, 8323, 411, 11706, 3158, 8785, 13, 1678, 396, 1596, 29898, 24713, 29889, 2248, 29918, 296, 1907, 877, 29967, 21419, 8785, 13, 1678, 396, 1596, 29898, 24713, 29889, 2248, 29918, 296, 1907, 877, 7713, 625, 313, 29967, 21419, 29897, 8785, 13, 13, 1678, 396, 1596, 29898, 24713, 29889, 4572, 29898, 1853, 2433, 2230, 29899, 28327, 742, 3646, 2433, 29879, 1495, 1839, 8516, 29899, 29929, 29899, 29906, 29906, 29900, 29945, 29899, 29941, 29941, 11287, 13, 1678, 396, 1596, 29898, 24713, 29889, 657, 703, 14968, 1159, 1839, 3626, 552, 2033, 29961, 29896, 29945, 29946, 29946, 29906, 2314, 13, 1678, 396, 1596, 29898, 24713, 29889, 657, 703, 14968, 1159, 1839, 16394, 29918, 333, 2033, 29961, 29896, 29945, 29946, 29946, 29906, 2314, 13, 1678, 396, 1596, 29898, 24713, 29889, 657, 703, 14968, 1159, 1839, 16394, 29918, 7411, 2033, 29961, 29896, 29945, 29946, 29946, 29906, 2314, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 4974, 7700, 13, 13, 1678, 2854, 29918, 12657, 353, 4842, 305, 29889, 13239, 29889, 1272, 29889, 1469, 10036, 29898, 13, 4706, 26178, 16390, 24541, 29898, 24713, 29889, 657, 703, 1688, 4968, 6024, 16394, 29918, 7411, 742, 525, 16394, 29918, 333, 2033, 511, 13, 4706, 528, 21897, 29922, 8824, 29892, 13, 4706, 9853, 29918, 2311, 29922, 29896, 29892, 13, 4706, 954, 29918, 1287, 414, 29922, 29900, 13, 1678, 1723, 13, 13, 1678, 411, 4842, 305, 29889, 1217, 29918, 5105, 7295, 13, 4706, 1904, 29889, 14513, 580, 13, 13, 4706, 21556, 353, 9657, 580, 13, 4706, 21556, 1839, 2813, 2033, 353, 2322, 8977, 29898, 7411, 29897, 13, 4706, 21556, 1839, 18237, 2033, 353, 2322, 8977, 29898, 7411, 29897, 13, 13, 4706, 7115, 29918, 1563, 353, 5159, 13, 4706, 7115, 29918, 1266, 353, 5159, 13, 4706, 19435, 29918, 2813, 353, 5159, 13, 4706, 19435, 29918, 18237, 353, 5159, 13, 13, 4706, 4175, 29918, 1563, 353, 5159, 13, 4706, 4175, 29918, 1266, 353, 5159, 13, 13, 4706, 301, 353, 29871, 29900, 13, 13, 4706, 4489, 29879, 353, 8783, 29889, 4572, 29898, 1853, 543, 2230, 29899, 28327, 613, 3646, 543, 29879, 1159, 13, 4706, 270, 1181, 353, 8783, 29889, 4572, 29898, 1853, 543, 2230, 29899, 28327, 613, 3646, 543, 29877, 1159, 13, 13, 4706, 363, 9853, 297, 2854, 29918, 12657, 29901, 13, 9651, 24512, 353, 9853, 29889, 2311, 29898, 29900, 29897, 13, 9651, 3964, 353, 9853, 29889, 2311, 29898, 29896, 29897, 13, 13, 9651, 301, 4619, 24512, 13, 13, 9651, 1596, 29898, 29880, 29897, 13, 13, 9651, 11916, 29918, 2813, 29892, 903, 353, 3514, 20069, 29889, 11249, 29898, 16175, 29892, 376, 2813, 1159, 13, 9651, 11916, 29918, 18237, 29892, 903, 353, 3514, 20069, 29889, 11249, 29898, 16175, 29892, 376, 18237, 1159, 13, 13, 9651, 11916, 29918, 2813, 353, 11916, 29918, 2813, 29889, 517, 29898, 10141, 29897, 13, 9651, 11916, 29918, 18237, 353, 11916, 29918, 18237, 29889, 517, 29898, 10141, 29897, 13, 13, 9651, 11916, 29918, 2813, 353, 11916, 29918, 2813, 29889, 1493, 6278, 29896, 29892, 3964, 29897, 13, 9651, 11916, 29918, 18237, 353, 11916, 29918, 18237, 29889, 1493, 6278, 29896, 29892, 3964, 29897, 13, 13, 9651, 9853, 29918, 1557, 2361, 29918, 2813, 353, 1904, 29889, 11333, 29898, 27736, 29918, 2813, 29897, 13, 9651, 9853, 29918, 1557, 2361, 29918, 18237, 353, 1904, 29889, 11333, 29898, 27736, 29918, 18237, 29897, 13, 13, 9651, 9853, 29918, 1557, 2361, 29918, 2813, 353, 9853, 29918, 1557, 2361, 29918, 2813, 29889, 1493, 29898, 5824, 29892, 448, 29896, 29897, 13, 9651, 9853, 29918, 1557, 2361, 29918, 18237, 353, 9853, 29918, 1557, 2361, 29918, 18237, 29889, 1493, 29898, 5824, 29892, 448, 29896, 29897, 13, 13, 9651, 396, 9522, 771, 1052, 13, 9651, 11916, 29918, 2813, 29918, 4361, 771, 1052, 353, 11916, 29918, 2813, 29889, 16513, 2141, 1493, 6278, 29896, 29892, 3964, 29897, 13, 9651, 11916, 29918, 18237, 29918, 4361, 771, 1052, 353, 11916, 29918, 18237, 29889, 16513, 2141, 1493, 6278, 29896, 29892, 3964, 29897, 13, 13, 9651, 11916, 29918, 2813, 29918, 4361, 771, 1052, 7503, 29892, 29871, 29896, 29962, 4619, 29871, 29906, 29941, 29900, 13, 9651, 11916, 29918, 2813, 29918, 4361, 771, 1052, 7503, 29892, 518, 29900, 29892, 29871, 29906, 5262, 353, 11916, 29918, 2813, 29918, 4361, 771, 1052, 29889, 2248, 29918, 2622, 29898, 29896, 29892, 4842, 305, 29889, 29911, 6073, 29898, 13, 18884, 518, 29906, 29892, 29871, 29900, 14664, 5426, 2141, 517, 29898, 10141, 876, 13, 13, 9651, 11916, 29918, 18237, 29918, 4361, 771, 1052, 7503, 29892, 29871, 29896, 29962, 4619, 29871, 29906, 29941, 29900, 13, 9651, 11916, 29918, 18237, 29918, 4361, 771, 1052, 7503, 29892, 518, 29900, 29892, 29871, 29906, 5262, 353, 11916, 29918, 18237, 29918, 4361, 771, 1052, 29889, 2248, 29918, 2622, 29898, 29896, 29892, 4842, 305, 29889, 29911, 6073, 29898, 13, 18884, 518, 29906, 29892, 29871, 29900, 14664, 5426, 2141, 517, 29898, 10141, 876, 13, 13, 9651, 9853, 29918, 1557, 2361, 29918, 2813, 29918, 4361, 353, 1904, 29889, 11333, 29898, 27736, 29918, 2813, 29918, 4361, 771, 1052, 29897, 13, 9651, 9853, 29918, 1557, 2361, 29918, 18237, 29918, 4361, 353, 1904, 29889, 11333, 29898, 27736, 29918, 18237, 29918, 4361, 771, 1052, 29897, 13, 13, 9651, 9853, 29918, 1557, 2361, 29918, 2813, 29918, 4361, 353, 9853, 29918, 1557, 2361, 29918, 2813, 29918, 4361, 29889, 1493, 29898, 5824, 29892, 448, 29896, 29897, 13, 9651, 9853, 29918, 1557, 2361, 29918, 18237, 29918, 4361, 353, 9853, 29918, 1557, 2361, 29918, 18237, 29918, 4361, 29889, 1493, 29898, 5824, 29892, 448, 29896, 29897, 13, 13, 9651, 9853, 29918, 1557, 2361, 29918, 2813, 4619, 9853, 29918, 1557, 2361, 29918, 2813, 29918, 4361, 13, 9651, 9853, 29918, 1557, 2361, 29918, 18237, 4619, 9853, 29918, 1557, 2361, 29918, 18237, 29918, 4361, 13, 13, 9651, 19435, 29918, 2813, 29889, 4397, 29898, 16175, 29918, 1557, 2361, 29918, 2813, 29897, 13, 9651, 19435, 29918, 18237, 29889, 4397, 29898, 16175, 29918, 1557, 2361, 29918, 18237, 29897, 13, 13, 9651, 9853, 29918, 2527, 10817, 353, 9657, 580, 13, 13, 9651, 9853, 29918, 2527, 10817, 1839, 2813, 2033, 353, 6161, 1061, 29889, 14513, 29898, 16175, 29892, 9853, 29918, 1557, 2361, 29918, 2813, 29892, 3052, 2433, 29879, 1495, 13, 9651, 9853, 29918, 2527, 10817, 1839, 18237, 2033, 353, 6161, 1061, 29889, 14513, 29898, 16175, 29892, 9853, 29918, 1557, 2361, 29918, 18237, 29892, 3052, 2433, 29877, 1495, 13, 13, 9651, 396, 1596, 4175, 13, 9651, 4175, 29918, 1563, 29889, 4397, 29898, 13, 18884, 4489, 29879, 29961, 29888, 29915, 8516, 29899, 29912, 524, 29898, 16175, 29961, 29900, 29892, 29871, 29896, 2314, 7402, 29912, 524, 29898, 16175, 29961, 29900, 29892, 29871, 29906, 2314, 7402, 29912, 524, 29898, 16175, 29961, 29900, 29892, 448, 29896, 2314, 29913, 11287, 13, 9651, 4175, 29918, 1266, 29889, 4397, 29898, 13, 18884, 270, 1181, 29961, 29888, 29915, 29912, 524, 29898, 16175, 29961, 29900, 29892, 29871, 29900, 2314, 7402, 29912, 524, 29898, 16175, 29961, 29900, 29892, 29871, 29896, 2314, 7402, 8516, 29899, 29912, 524, 29898, 16175, 29961, 29900, 29892, 448, 29896, 2314, 29913, 11287, 13, 13, 9651, 396, 7115, 29918, 1563, 29889, 4397, 29898, 16175, 29918, 2527, 10817, 1839, 2813, 16215, 12676, 29918, 661, 9292, 11287, 13, 9651, 396, 7115, 29918, 1266, 29889, 4397, 29898, 16175, 29918, 2527, 10817, 1839, 18237, 16215, 12676, 29918, 661, 9292, 11287, 13, 13, 9651, 396, 14402, 29898, 29887, 996, 29891, 12323, 29897, 28559, 13, 9651, 363, 926, 297, 6024, 2813, 742, 525, 18237, 2033, 29901, 13, 18884, 363, 1820, 297, 9853, 29918, 2527, 10817, 29961, 1066, 1822, 8149, 7295, 13, 462, 1678, 21556, 29961, 1066, 3816, 1989, 29962, 4619, 9853, 29918, 2527, 10817, 29961, 1066, 3816, 1989, 29962, 334, 24512, 13, 13, 4706, 396, 7115, 353, 7115, 29918, 1563, 718, 7115, 29918, 1266, 13, 4706, 396, 4842, 305, 29889, 7620, 29898, 10003, 29892, 5591, 5184, 29914, 29887, 996, 29891, 12323, 29914, 1287, 3493, 29914, 6500, 5570, 29914, 1299, 29902, 1660, 29914, 10003, 29918, 11178, 479, 29889, 415, 1159, 13, 4706, 396, 7115, 29906, 353, 4842, 305, 29889, 1359, 11974, 5184, 29914, 29887, 996, 29891, 12323, 29914, 1287, 3493, 29914, 6500, 5570, 29914, 1299, 29902, 1660, 29914, 10003, 29889, 415, 1159, 13, 4706, 396, 13, 4706, 396, 1596, 877, 9294, 11243, 284, 1495, 13, 4706, 396, 1596, 29898, 10003, 1360, 10003, 29906, 29897, 13, 13, 4706, 396, 4842, 305, 29889, 7620, 29898, 1557, 2361, 29918, 2813, 718, 19435, 29918, 18237, 29892, 5591, 5184, 29914, 29887, 996, 29891, 12323, 29914, 1287, 3493, 29914, 6500, 5570, 29914, 1299, 29902, 1660, 29914, 1557, 2361, 29918, 11178, 479, 29889, 415, 1159, 13, 4706, 4842, 305, 29889, 7620, 29898, 4572, 29918, 1563, 29892, 5591, 5184, 29914, 29887, 996, 29891, 12323, 29914, 1287, 3493, 29914, 6500, 5570, 29914, 1299, 29902, 1660, 29914, 4572, 29918, 1563, 29918, 11178, 479, 29889, 415, 1159, 13, 4706, 4842, 305, 29889, 7620, 29898, 4572, 29918, 1266, 29892, 5591, 5184, 29914, 29887, 996, 29891, 12323, 29914, 1287, 3493, 29914, 6500, 5570, 29914, 1299, 29902, 1660, 29914, 4572, 29918, 1266, 29918, 11178, 479, 29889, 415, 1159, 13, 13, 4706, 363, 926, 297, 6024, 2813, 742, 525, 18237, 2033, 29901, 13, 9651, 363, 1820, 297, 21556, 29961, 1066, 1822, 8149, 7295, 13, 18884, 21556, 29961, 1066, 3816, 1989, 29962, 847, 29922, 301, 13, 13, 4706, 1596, 29898, 29888, 29908, 10095, 10817, 29898, 2813, 18988, 29897, 297, 12541, 584, 426, 2527, 10817, 1839, 2813, 13359, 7076, 580, 27195, 13, 4706, 1596, 29898, 29888, 29908, 10095, 10817, 29898, 18237, 18988, 29897, 297, 12541, 584, 426, 2527, 10817, 1839, 18237, 13359, 7076, 580, 27195, 13, 13, 13, 1753, 1243, 29918, 1557, 7295, 13, 1678, 822, 2099, 29918, 10003, 29898, 10003, 1125, 13, 4706, 286, 29918, 29878, 353, 29871, 29900, 13, 4706, 405, 353, 7431, 29898, 10003, 29897, 13, 4706, 363, 474, 297, 7115, 29901, 13, 9651, 286, 29918, 29878, 353, 286, 29918, 29878, 718, 474, 847, 405, 13, 13, 4706, 736, 286, 29918, 29878, 13, 13, 1678, 822, 286, 21478, 29898, 10003, 1125, 13, 4706, 286, 21478, 353, 29871, 29900, 13, 4706, 405, 353, 7431, 29898, 10003, 29897, 13, 4706, 363, 474, 297, 7115, 29901, 13, 9651, 286, 21478, 353, 286, 21478, 718, 29871, 29896, 847, 474, 847, 405, 13, 13, 4706, 736, 286, 21478, 13, 13, 1678, 822, 7124, 29918, 29940, 29898, 10003, 29892, 405, 1125, 13, 4706, 7124, 353, 29871, 29900, 13, 4706, 363, 474, 297, 7115, 29901, 13, 9651, 565, 474, 5277, 405, 29901, 13, 18884, 7124, 353, 7124, 718, 29871, 29896, 13, 13, 4706, 7124, 353, 7124, 847, 7431, 29898, 10003, 29897, 13, 13, 4706, 736, 7124, 13, 13, 1678, 12118, 353, 19320, 5485, 9527, 29898, 1272, 29918, 3972, 13802, 5184, 29914, 29887, 996, 29891, 12323, 29914, 1287, 3493, 29914, 6500, 5570, 29914, 1299, 29902, 1660, 29914, 625, 5652, 29896, 29946, 613, 3803, 29922, 29941, 29892, 6664, 29918, 842, 29922, 29896, 29897, 13, 13, 1678, 1243, 29918, 1066, 353, 7442, 29889, 2378, 29898, 9415, 29889, 1688, 29918, 3626, 2701, 29897, 13, 1678, 1596, 29898, 1688, 29918, 1066, 29897, 13, 13, 1678, 7115, 353, 1904, 29889, 10003, 29918, 1563, 29898, 1688, 29918, 1066, 29892, 12118, 29889, 1688, 29918, 17028, 29879, 29892, 12118, 29892, 29871, 29900, 29892, 6664, 29918, 842, 29922, 29896, 29897, 13, 1678, 7115, 29918, 1266, 353, 1904, 29889, 10003, 29918, 1266, 29898, 1688, 29918, 1066, 29892, 12118, 29889, 1688, 29918, 17028, 29879, 29892, 12118, 29892, 29871, 29900, 29892, 6664, 29918, 842, 29922, 29896, 29897, 13, 1678, 7115, 353, 7115, 718, 7115, 29918, 1266, 13, 13, 1678, 286, 29918, 10003, 353, 2099, 29918, 10003, 29898, 10003, 29897, 13, 1678, 2099, 29918, 21478, 353, 286, 21478, 29898, 10003, 29897, 13, 1678, 7124, 29918, 29896, 353, 7124, 29918, 29940, 29898, 10003, 29892, 29871, 29896, 29897, 13, 1678, 7124, 29918, 29941, 353, 7124, 29918, 29940, 29898, 10003, 29892, 29871, 29941, 29897, 13, 1678, 7124, 29918, 29945, 353, 7124, 29918, 29940, 29898, 10003, 29892, 29871, 29945, 29897, 13, 1678, 7124, 29918, 29896, 29900, 353, 7124, 29918, 29940, 29898, 10003, 29892, 29871, 29896, 29900, 29897, 13, 1678, 1596, 877, 18157, 2582, 29901, 1495, 13, 1678, 1596, 877, 6816, 273, 22125, 29901, 12365, 29889, 29900, 29888, 29913, 4286, 4830, 29898, 29885, 29918, 10003, 876, 13, 1678, 1596, 877, 6816, 273, 390, 29934, 29901, 12365, 29889, 29946, 29888, 29913, 4286, 4830, 29898, 12676, 29918, 21478, 876, 13, 1678, 1596, 877, 29950, 277, 29992, 29896, 29901, 12365, 29889, 29946, 29888, 29913, 4286, 4830, 29898, 27342, 29918, 29896, 876, 13, 1678, 1596, 877, 29950, 277, 29992, 29941, 29901, 12365, 29889, 29946, 29888, 29913, 4286, 4830, 29898, 27342, 29918, 29941, 876, 13, 1678, 1596, 877, 29950, 277, 29992, 29945, 29901, 12365, 29889, 29946, 29888, 29913, 4286, 4830, 29898, 27342, 29918, 29945, 876, 13, 1678, 1596, 877, 29950, 277, 29992, 29896, 29900, 29901, 12365, 29889, 29946, 29888, 29913, 4286, 4830, 29898, 27342, 29918, 29896, 29900, 876, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1243, 580, 13, 2 ]
backend/kaos_backend/util/docker.py
aalhour/kaos
98
105164
import boto3 from kaos_backend.constants import DOCKER_REGISTRY, REGION, CLOUD_PROVIDER def get_login_command(): if CLOUD_PROVIDER == 'AWS': # ecr = boto3.client('ecr', region_name=REGION) # # raw_auth_data = ecr.get_authorization_token()['authorizationData'][0]['authorizationToken'] # _, docker_auth_token = b64decode(raw_auth_data).decode('UTF-8').split(":") return f"$(aws ecr get-login --region {REGION} --no-include-email)" elif CLOUD_PROVIDER == "GCP": return f"gcloud auth print-access-token | docker login -u oauth2accesstoken --password-stdin https://{DOCKER_REGISTRY}" else: return "" def create_docker_repo(repo_name): if CLOUD_PROVIDER == 'AWS': ecr = boto3.client('ecr', region_name=REGION) ecr.create_repository(repositoryName=repo_name) def delete_docker_repo(repo_name): if CLOUD_PROVIDER == 'AWS': ecr = boto3.client('ecr', region_name=REGION) ecr.delete_repository(repositoryName=repo_name, force=True)
[ 1, 1053, 289, 3747, 29941, 13, 13, 3166, 13560, 359, 29918, 27852, 29889, 3075, 1934, 1053, 11662, 7077, 1001, 29918, 18166, 9047, 13207, 29892, 5195, 29954, 2725, 29892, 315, 3927, 15789, 29918, 8618, 13044, 1001, 13, 13, 13, 1753, 679, 29918, 7507, 29918, 6519, 7295, 13, 1678, 565, 315, 3927, 15789, 29918, 8618, 13044, 1001, 1275, 525, 29909, 7811, 2396, 13, 4706, 396, 321, 7283, 353, 289, 3747, 29941, 29889, 4645, 877, 687, 29878, 742, 5120, 29918, 978, 29922, 18166, 2725, 29897, 13, 4706, 396, 13, 4706, 396, 10650, 29918, 5150, 29918, 1272, 353, 321, 7283, 29889, 657, 29918, 8921, 2133, 29918, 6979, 580, 1839, 8921, 2133, 1469, 2033, 29961, 29900, 22322, 8921, 2133, 6066, 2033, 13, 4706, 396, 17117, 10346, 29918, 5150, 29918, 6979, 353, 289, 29953, 29946, 13808, 29898, 1610, 29918, 5150, 29918, 1272, 467, 13808, 877, 10496, 29899, 29947, 2824, 5451, 703, 29901, 1159, 13, 4706, 736, 285, 29908, 12330, 10467, 321, 7283, 679, 29899, 7507, 1192, 12803, 426, 18166, 2725, 29913, 1192, 1217, 29899, 2856, 29899, 5269, 5513, 13, 1678, 25342, 315, 3927, 15789, 29918, 8618, 13044, 1001, 1275, 376, 29954, 6271, 1115, 13, 4706, 736, 285, 29908, 29887, 9274, 4817, 1596, 29899, 5943, 29899, 6979, 891, 10346, 6464, 448, 29884, 288, 5150, 29906, 562, 778, 303, 4476, 1192, 5630, 29899, 4172, 262, 2045, 597, 29912, 3970, 7077, 1001, 29918, 18166, 9047, 13207, 5038, 13, 1678, 1683, 29901, 13, 4706, 736, 5124, 13, 13, 13, 1753, 1653, 29918, 14695, 29918, 20095, 29898, 20095, 29918, 978, 1125, 13, 1678, 565, 315, 3927, 15789, 29918, 8618, 13044, 1001, 1275, 525, 29909, 7811, 2396, 13, 4706, 321, 7283, 353, 289, 3747, 29941, 29889, 4645, 877, 687, 29878, 742, 5120, 29918, 978, 29922, 18166, 2725, 29897, 13, 4706, 321, 7283, 29889, 3258, 29918, 19033, 29898, 19033, 1170, 29922, 20095, 29918, 978, 29897, 13, 13, 13, 1753, 5217, 29918, 14695, 29918, 20095, 29898, 20095, 29918, 978, 1125, 13, 1678, 565, 315, 3927, 15789, 29918, 8618, 13044, 1001, 1275, 525, 29909, 7811, 2396, 13, 4706, 321, 7283, 353, 289, 3747, 29941, 29889, 4645, 877, 687, 29878, 742, 5120, 29918, 978, 29922, 18166, 2725, 29897, 13, 4706, 321, 7283, 29889, 8143, 29918, 19033, 29898, 19033, 1170, 29922, 20095, 29918, 978, 29892, 4889, 29922, 5574, 29897, 13, 2 ]
contrib/workflow/src/main.py
gonicus/clacks
2
141941
<filename>contrib/workflow/src/main.py #!/usr/bin/env python import os.path import MySQLdb from sqlalchemy import * from sqlalchemy.orm import clear_mappers __author__="janw" __date__ ="$21.05.2010 16:55:13$" from SpiffWorkflow.Storage import XmlReader from SpiffWorkflow.Server import * from SpiffWorkflow import Job, Workflow, Task import pickle, pprint data_file = os.path.dirname(__file__) + "/job.pk" workflow_file = os.path.dirname(__file__) + "/../tests/xml/anlage_benutzer.xml" def connectDB(): global engine, db, driver host = "build-lenny-32.intranet.gonicus.de" db_name = "spiff" username = "root" password = "<PASSWORD>" # Connect to MySQL. auth = username + ':' + password dbn = 'mysql://' + auth + '@' + host + '/' + db_name engine = create_engine(dbn) clear_mappers() driver = Driver(engine) def getJob(): global data_file, workflow_file reader = XmlReader() workflow = reader.parse_file(workflow_file).pop() if os.access(data_file, os.R_OK): input = open(data_file, 'rb') job = pickle.load(input) input.close() os.remove(data_file) else: job = Job(workflow) return job def setJob(job): global data_file result = False if not isinstance(job, Job): return result if os.access(os.path.dirname(data_file), os.W_OK): output = open(data_file, 'wb') pickle.dump(job, output, -1) output.close() result = True else: print "Datafile not accessible" return result def main(): #connectDB() job = getJob() job.complete_next() if setJob(job): print "Job has been saved successfully" else: print "Problem saving job" if __name__ == "__main__": main()
[ 1, 529, 9507, 29958, 21570, 29914, 1287, 1731, 29914, 4351, 29914, 3396, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 5215, 2897, 29889, 2084, 13, 5215, 9254, 2585, 13, 3166, 4576, 284, 305, 6764, 462, 418, 1053, 334, 13, 3166, 4576, 284, 305, 6764, 29889, 555, 462, 29871, 1053, 2821, 29918, 655, 22437, 13, 13, 1649, 8921, 1649, 543, 8931, 29893, 29908, 13, 1649, 1256, 1649, 29465, 29938, 29906, 29896, 29889, 29900, 29945, 29889, 29906, 29900, 29896, 29900, 29871, 29896, 29953, 29901, 29945, 29945, 29901, 29896, 29941, 29938, 29908, 13, 13, 3166, 1706, 2593, 5531, 1731, 29889, 10486, 1053, 24409, 6982, 13, 3166, 1706, 2593, 5531, 1731, 29889, 6004, 1053, 334, 13, 3166, 1706, 2593, 5531, 1731, 1053, 17163, 29892, 5244, 1731, 29892, 9330, 13, 13, 5215, 5839, 280, 29892, 282, 2158, 13, 13, 1272, 29918, 1445, 353, 2897, 29889, 2084, 29889, 25721, 22168, 1445, 1649, 29897, 718, 5591, 9057, 29889, 20571, 29908, 13, 1287, 1731, 29918, 1445, 353, 2897, 29889, 2084, 29889, 25721, 22168, 1445, 1649, 29897, 718, 5591, 6995, 21150, 29914, 3134, 29914, 273, 6184, 29918, 1785, 329, 3298, 29889, 3134, 29908, 13, 13, 1753, 4511, 4051, 7295, 13, 1678, 5534, 6012, 29892, 4833, 29892, 7156, 13, 13, 1678, 3495, 353, 376, 4282, 29899, 2435, 1460, 29899, 29941, 29906, 29889, 262, 509, 273, 300, 29889, 29887, 8927, 375, 29889, 311, 29908, 13, 1678, 4833, 29918, 978, 353, 376, 1028, 2593, 29908, 13, 1678, 8952, 353, 376, 4632, 29908, 13, 1678, 4800, 353, 9872, 25711, 17013, 11903, 13, 13, 1678, 396, 14971, 304, 9254, 29889, 13, 1678, 4817, 4706, 353, 8952, 718, 525, 11283, 718, 4800, 13, 1678, 4833, 29876, 308, 353, 525, 7938, 597, 29915, 718, 4817, 718, 18803, 29915, 718, 3495, 718, 8207, 29915, 718, 4833, 29918, 978, 13, 1678, 6012, 353, 1653, 29918, 10599, 29898, 2585, 29876, 29897, 13, 1678, 2821, 29918, 655, 22437, 580, 13, 1678, 7156, 353, 26391, 29898, 10599, 29897, 13, 13, 1753, 679, 11947, 7295, 13, 1678, 5534, 848, 29918, 1445, 29892, 27321, 29918, 1445, 13, 1678, 9591, 353, 24409, 6982, 580, 13, 1678, 27321, 353, 9591, 29889, 5510, 29918, 1445, 29898, 1287, 1731, 29918, 1445, 467, 7323, 580, 13, 1678, 565, 2897, 29889, 5943, 29898, 1272, 29918, 1445, 29892, 2897, 29889, 29934, 29918, 8949, 1125, 13, 4706, 1881, 353, 1722, 29898, 1272, 29918, 1445, 29892, 525, 6050, 1495, 13, 4706, 4982, 259, 353, 5839, 280, 29889, 1359, 29898, 2080, 29897, 13, 4706, 1881, 29889, 5358, 580, 13, 4706, 2897, 29889, 5992, 29898, 1272, 29918, 1445, 29897, 13, 1678, 1683, 29901, 13, 4706, 4982, 353, 17163, 29898, 1287, 1731, 29897, 13, 1678, 736, 4982, 13, 13, 1753, 731, 11947, 29898, 9057, 1125, 13, 1678, 5534, 848, 29918, 1445, 13, 1678, 1121, 353, 7700, 13, 1678, 565, 451, 338, 8758, 29898, 9057, 29892, 17163, 1125, 13, 4706, 736, 1121, 13, 1678, 565, 2897, 29889, 5943, 29898, 359, 29889, 2084, 29889, 25721, 29898, 1272, 29918, 1445, 511, 2897, 29889, 29956, 29918, 8949, 1125, 13, 4706, 1962, 353, 1722, 29898, 1272, 29918, 1445, 29892, 525, 29893, 29890, 1495, 13, 4706, 5839, 280, 29889, 15070, 29898, 9057, 29892, 1962, 29892, 448, 29896, 29897, 13, 4706, 1962, 29889, 5358, 580, 13, 4706, 1121, 353, 5852, 13, 1678, 1683, 29901, 13, 4706, 1596, 376, 1469, 1445, 451, 15579, 29908, 13, 1678, 736, 1121, 13, 13, 1753, 1667, 7295, 13, 1678, 396, 6915, 4051, 580, 13, 1678, 4982, 353, 679, 11947, 580, 13, 1678, 4982, 29889, 8835, 29918, 4622, 580, 13, 1678, 565, 731, 11947, 29898, 9057, 1125, 13, 4706, 1596, 376, 11947, 756, 1063, 7160, 8472, 29908, 13, 1678, 1683, 29901, 13, 4706, 1596, 376, 26604, 14238, 4982, 29908, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 1667, 580, 2 ]
aiida_wien2k/calculations/x_sgroup.py
rubel75/aiida-wien2k
1
197418
from aiida.common import datastructures from aiida.engine import CalcJob from aiida.orm import SinglefileData, Dict, RemoteData, Code, StructureData import os import ase.io def _cli_options(parameters): """Return command line options for parameters dictionary. :param dict parameters: dictionary with command line parameters """ options = [] for key, value in parameters.items(): # Could validate: is key a known command-line option? if isinstance(value, bool) and value: options.append(f'{key}') elif isinstance(value, str): # Could validate: is value a valid regular expression? options.append(f'{key}') options.append(value) return options def aiida_struct2wien2k(aiida_structure): "prepare structure file for WIEN2k" ase_structure = aiida_structure.get_ase() # AiiDA -> ASE struct ase.io.write("case.struct",ase_structure) # ASE -> WIEN2k, write WIEN2k struct path_to_rm_folder = os.getcwd() # get path to folder path_to_rm_structfile = os.path.join(path_to_rm_folder, 'case.struct') # get path to struct file wien2k_structfile = SinglefileData(file=path_to_rm_structfile) # get proper AiiDA type for a single file (otherwise you cannot return) return wien2k_structfile # orm.SinglefileData type (stored automatically in AiiDA database) class Wien2kXSgroup(CalcJob): """AiiDA calculation plugin for WIEN2k calculation to execute: x sgroup [parameters].""" @classmethod def define(cls, spec): """Define inputs and outputs of the calculation.""" # yapf: disable super(Wien2kXSgroup, cls).define(spec) # inputs/outputs spec.input('code', valid_type=Code, help='WIEN2k x sgroup') spec.input('parameters', valid_type=Dict, required=False, help='Dictionary of input arguments (if any)') spec.input('aiida_structure', valid_type=StructureData, required=False, help='AiiDA structure object') spec.input('structfile_in', valid_type=SinglefileData, required=False, help='Structure file case.struct') spec.input('parent_folder', valid_type=RemoteData, required=False,\ help='parent_folder passed from a previous calulation') spec.inputs['metadata']['options']['resources'].default = { 'num_machines': 1, 'num_mpiprocs_per_machine': 1, } spec.inputs['metadata']['options']['parser_name'].default = 'wien2k-sgroup-parser' spec.output('structfile_out', valid_type=SinglefileData, help='Structure file after x sgroup') spec.exit_code(300, 'ERROR_MISSING_OUTPUT_FILES', message='Calculation did not produce all expected output files.') def prepare_for_submission(self, folder): """ Create input files. :param folder: an `aiida.common.folders.Folder` where the plugin should temporarily place all files needed by the calculation. :return: `aiida.common.datastructures.CalcInfo` instance """ parameters = _cli_options(self.inputs.parameters.get_dict()) # command line args for init_lapw codeinfo = datastructures.CodeInfo() codeinfo.cmdline_params = ['sgroup'] + parameters # x exec [parameters] codeinfo.code_uuid = self.inputs.code.uuid codeinfo.stdout_name = 'x.log' remote_copy_list = [] if('parent_folder' in self.inputs): path_from = os.path.join(self.inputs.parent_folder.get_remote_path(),'case') remote_copy_list = [( self.inputs.parent_folder.computer.uuid, path_from, './' )] else: folder.get_subfolder('case', create=True) # create case subfolder # convert AiiDA structure -> WIEN2k if('aiida_structure' in self.inputs): wien2k_structfile = aiida_struct2wien2k(self.inputs.aiida_structure) wien2k_structfile.store() # Prepare a `CalcInfo` to be returned to the engine calcinfo = datastructures.CalcInfo() calcinfo.codes_info = [codeinfo] calcinfo.local_copy_list = [] if('structfile_in' in self.inputs): # WIEN2k structure is given as input calcinfo.local_copy_list = [ (self.inputs.structfile_in.uuid, self.inputs.structfile_in.filename, 'case/case.struct') ] # copy case.struct to the local folder as new.struct elif('aiida_structure' in self.inputs): # AiiDA structure is given as input calcinfo.local_copy_list = [ (wien2k_structfile.uuid, wien2k_structfile.filename, 'case/case.struct') ] # copy case.struct to the local folder as new.struct calcinfo.remote_copy_list = remote_copy_list calcinfo.retrieve_list = [('case/case.struct_sgroup'), ('case/*.error*')] return calcinfo
[ 1, 515, 7468, 1458, 29889, 9435, 1053, 6155, 509, 5313, 1973, 13, 3166, 7468, 1458, 29889, 10599, 1053, 3037, 29883, 11947, 13, 3166, 7468, 1458, 29889, 555, 1053, 16740, 1445, 1469, 29892, 360, 919, 29892, 5240, 866, 1469, 29892, 5920, 29892, 3767, 12425, 1469, 13, 5215, 2897, 13, 5215, 263, 344, 29889, 601, 13, 13, 1753, 903, 11303, 29918, 6768, 29898, 16744, 1125, 13, 1678, 9995, 11609, 1899, 1196, 3987, 363, 4128, 8600, 29889, 13, 13, 1678, 584, 3207, 9657, 4128, 29901, 8600, 411, 1899, 1196, 4128, 13, 1678, 9995, 13, 1678, 3987, 353, 5159, 13, 1678, 363, 1820, 29892, 995, 297, 4128, 29889, 7076, 7295, 13, 268, 396, 6527, 12725, 29901, 338, 1820, 263, 2998, 1899, 29899, 1220, 2984, 29973, 13, 268, 565, 338, 8758, 29898, 1767, 29892, 6120, 29897, 322, 995, 29901, 13, 4706, 3987, 29889, 4397, 29898, 29888, 29915, 29912, 1989, 29913, 1495, 13, 268, 25342, 338, 8758, 29898, 1767, 29892, 851, 1125, 13, 4706, 396, 6527, 12725, 29901, 338, 995, 263, 2854, 4943, 4603, 29973, 13, 4706, 3987, 29889, 4397, 29898, 29888, 29915, 29912, 1989, 29913, 1495, 13, 4706, 3987, 29889, 4397, 29898, 1767, 29897, 13, 13, 1678, 736, 3987, 13, 13, 1753, 7468, 1458, 29918, 4984, 29906, 29893, 819, 29906, 29895, 29898, 1794, 1458, 29918, 23905, 1125, 13, 1678, 376, 19125, 3829, 934, 363, 399, 29902, 1430, 29906, 29895, 29908, 13, 1678, 263, 344, 29918, 23905, 353, 7468, 1458, 29918, 23905, 29889, 657, 29918, 559, 580, 396, 319, 2236, 7698, 1599, 319, 1660, 2281, 13, 1678, 263, 344, 29889, 601, 29889, 3539, 703, 4878, 29889, 4984, 613, 559, 29918, 23905, 29897, 396, 319, 1660, 1599, 399, 29902, 1430, 29906, 29895, 29892, 2436, 399, 29902, 1430, 29906, 29895, 2281, 13, 1678, 2224, 29918, 517, 29918, 1758, 29918, 12083, 353, 2897, 29889, 657, 29883, 9970, 580, 396, 679, 2224, 304, 4138, 13, 1678, 2224, 29918, 517, 29918, 1758, 29918, 4984, 1445, 353, 2897, 29889, 2084, 29889, 7122, 29898, 2084, 29918, 517, 29918, 1758, 29918, 12083, 29892, 525, 4878, 29889, 4984, 1495, 396, 679, 2224, 304, 2281, 934, 13, 1678, 281, 819, 29906, 29895, 29918, 4984, 1445, 353, 16740, 1445, 1469, 29898, 1445, 29922, 2084, 29918, 517, 29918, 1758, 29918, 4984, 1445, 29897, 396, 679, 1571, 319, 2236, 7698, 1134, 363, 263, 2323, 934, 313, 1228, 3538, 366, 2609, 736, 29897, 13, 1678, 736, 281, 819, 29906, 29895, 29918, 4984, 1445, 396, 470, 29885, 29889, 15771, 1445, 1469, 1134, 313, 303, 4395, 6336, 297, 319, 2236, 7698, 2566, 29897, 13, 13, 1990, 12899, 29906, 29895, 29990, 29903, 2972, 29898, 7856, 29883, 11947, 1125, 13, 1678, 9995, 29909, 2236, 7698, 13944, 7079, 363, 399, 29902, 1430, 29906, 29895, 13944, 304, 6222, 29901, 921, 269, 2972, 518, 16744, 29962, 1213, 15945, 13, 268, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 4529, 29898, 25932, 29892, 1580, 1125, 13, 4706, 9995, 3206, 457, 10970, 322, 14391, 310, 278, 13944, 1213, 15945, 13, 4706, 396, 343, 481, 29888, 29901, 11262, 13, 4706, 2428, 29898, 29956, 819, 29906, 29895, 29990, 29903, 2972, 29892, 1067, 29879, 467, 7922, 29898, 6550, 29897, 13, 13, 4706, 396, 10970, 29914, 4905, 29879, 13, 4706, 1580, 29889, 2080, 877, 401, 742, 2854, 29918, 1853, 29922, 3399, 29892, 1371, 2433, 22119, 1430, 29906, 29895, 921, 269, 2972, 1495, 13, 4706, 1580, 29889, 2080, 877, 16744, 742, 2854, 29918, 1853, 29922, 21533, 29892, 3734, 29922, 8824, 29892, 1371, 2433, 11513, 310, 1881, 6273, 313, 361, 738, 29897, 1495, 13, 4706, 1580, 29889, 2080, 877, 1794, 1458, 29918, 23905, 742, 2854, 29918, 1853, 29922, 5015, 12425, 1469, 29892, 3734, 29922, 8824, 29892, 1371, 2433, 29909, 2236, 7698, 3829, 1203, 1495, 13, 4706, 1580, 29889, 2080, 877, 4984, 1445, 29918, 262, 742, 2854, 29918, 1853, 29922, 15771, 1445, 1469, 29892, 3734, 29922, 8824, 29892, 1371, 2433, 5015, 12425, 934, 1206, 29889, 4984, 1495, 13, 4706, 1580, 29889, 2080, 877, 3560, 29918, 12083, 742, 2854, 29918, 1853, 29922, 20224, 1469, 29892, 3734, 29922, 8824, 2053, 13, 462, 259, 1371, 2433, 3560, 29918, 12083, 4502, 515, 263, 3517, 1208, 2785, 1495, 13, 4706, 1580, 29889, 2080, 29879, 1839, 19635, 16215, 6768, 16215, 13237, 13359, 4381, 353, 426, 13, 462, 462, 9651, 525, 1949, 29918, 29885, 496, 1475, 2396, 29871, 29896, 29892, 13, 462, 462, 9651, 525, 1949, 29918, 1526, 666, 307, 2395, 29918, 546, 29918, 23523, 2396, 29871, 29896, 29892, 13, 462, 462, 9651, 500, 13, 4706, 1580, 29889, 2080, 29879, 1839, 19635, 16215, 6768, 16215, 16680, 29918, 978, 13359, 4381, 353, 525, 29893, 819, 29906, 29895, 29899, 29879, 2972, 29899, 16680, 29915, 13, 4706, 1580, 29889, 4905, 877, 4984, 1445, 29918, 449, 742, 2854, 29918, 1853, 29922, 15771, 1445, 1469, 29892, 1371, 2433, 5015, 12425, 934, 1156, 921, 269, 2972, 1495, 13, 13, 4706, 1580, 29889, 13322, 29918, 401, 29898, 29941, 29900, 29900, 29892, 525, 11432, 29918, 10403, 1799, 4214, 29918, 12015, 12336, 29918, 24483, 742, 13, 18884, 2643, 2433, 27065, 362, 1258, 451, 7738, 599, 3806, 1962, 2066, 29889, 1495, 13, 308, 13, 268, 13, 1678, 822, 19012, 29918, 1454, 29918, 1491, 6737, 29898, 1311, 29892, 4138, 1125, 13, 4706, 9995, 13, 4706, 6204, 1881, 2066, 29889, 13, 13, 4706, 584, 3207, 4138, 29901, 385, 421, 1794, 1458, 29889, 9435, 29889, 8771, 414, 29889, 12924, 29952, 988, 278, 7079, 881, 5382, 6275, 2058, 599, 2066, 4312, 491, 13, 9651, 278, 13944, 29889, 13, 4706, 584, 2457, 29901, 421, 1794, 1458, 29889, 9435, 29889, 4130, 7614, 5313, 1973, 29889, 7856, 29883, 3401, 29952, 2777, 13, 4706, 9995, 13, 4706, 4128, 353, 903, 11303, 29918, 6768, 29898, 1311, 29889, 2080, 29879, 29889, 16744, 29889, 657, 29918, 8977, 3101, 396, 1899, 1196, 6389, 363, 2069, 29918, 6984, 29893, 13, 4706, 775, 3888, 353, 6155, 509, 5313, 1973, 29889, 3399, 3401, 580, 13, 4706, 775, 3888, 29889, 9006, 1220, 29918, 7529, 353, 6024, 29879, 2972, 2033, 718, 4128, 396, 921, 2279, 518, 16744, 29962, 13, 4706, 775, 3888, 29889, 401, 29918, 25118, 353, 1583, 29889, 2080, 29879, 29889, 401, 29889, 25118, 13, 4706, 775, 3888, 29889, 25393, 29918, 978, 353, 525, 29916, 29889, 1188, 29915, 13, 308, 13, 4706, 7592, 29918, 8552, 29918, 1761, 353, 5159, 13, 4706, 565, 877, 3560, 29918, 12083, 29915, 297, 1583, 29889, 2080, 29879, 1125, 13, 9651, 2224, 29918, 3166, 353, 2897, 29889, 2084, 29889, 7122, 29898, 1311, 29889, 2080, 29879, 29889, 3560, 29918, 12083, 29889, 657, 29918, 16674, 29918, 2084, 3285, 29915, 4878, 1495, 13, 9651, 7592, 29918, 8552, 29918, 1761, 353, 17288, 13, 18884, 1583, 29889, 2080, 29879, 29889, 3560, 29918, 12083, 29889, 12097, 261, 29889, 25118, 29892, 13, 18884, 2224, 29918, 3166, 29892, 19283, 29915, 13, 9651, 1723, 29962, 13, 4706, 1683, 29901, 13, 9651, 4138, 29889, 657, 29918, 1491, 12083, 877, 4878, 742, 1653, 29922, 5574, 29897, 396, 1653, 1206, 1014, 12083, 13, 13, 4706, 396, 3588, 319, 2236, 7698, 3829, 1599, 399, 29902, 1430, 29906, 29895, 13, 4706, 565, 877, 1794, 1458, 29918, 23905, 29915, 297, 1583, 29889, 2080, 29879, 1125, 13, 9651, 281, 819, 29906, 29895, 29918, 4984, 1445, 353, 7468, 1458, 29918, 4984, 29906, 29893, 819, 29906, 29895, 29898, 1311, 29889, 2080, 29879, 29889, 1794, 1458, 29918, 23905, 29897, 13, 9651, 281, 819, 29906, 29895, 29918, 4984, 1445, 29889, 8899, 580, 13, 13, 4706, 396, 349, 3445, 598, 263, 421, 7856, 29883, 3401, 29952, 304, 367, 4133, 304, 278, 6012, 13, 4706, 22235, 3888, 353, 6155, 509, 5313, 1973, 29889, 7856, 29883, 3401, 580, 13, 4706, 22235, 3888, 29889, 18137, 29918, 3888, 353, 518, 401, 3888, 29962, 13, 4706, 22235, 3888, 29889, 2997, 29918, 8552, 29918, 1761, 353, 5159, 13, 4706, 565, 877, 4984, 1445, 29918, 262, 29915, 297, 1583, 29889, 2080, 29879, 1125, 396, 399, 29902, 1430, 29906, 29895, 3829, 338, 2183, 408, 1881, 13, 9651, 22235, 3888, 29889, 2997, 29918, 8552, 29918, 1761, 353, 518, 13, 18884, 313, 1311, 29889, 2080, 29879, 29889, 4984, 1445, 29918, 262, 29889, 25118, 29892, 1583, 29889, 2080, 29879, 29889, 4984, 1445, 29918, 262, 29889, 9507, 29892, 525, 4878, 29914, 4878, 29889, 4984, 1495, 13, 9651, 4514, 396, 3509, 1206, 29889, 4984, 304, 278, 1887, 4138, 408, 716, 29889, 4984, 13, 4706, 25342, 877, 1794, 1458, 29918, 23905, 29915, 297, 1583, 29889, 2080, 29879, 1125, 396, 319, 2236, 7698, 3829, 338, 2183, 408, 1881, 13, 9651, 22235, 3888, 29889, 2997, 29918, 8552, 29918, 1761, 353, 518, 13, 18884, 313, 29893, 819, 29906, 29895, 29918, 4984, 1445, 29889, 25118, 29892, 281, 819, 29906, 29895, 29918, 4984, 1445, 29889, 9507, 29892, 525, 4878, 29914, 4878, 29889, 4984, 1495, 13, 9651, 4514, 396, 3509, 1206, 29889, 4984, 304, 278, 1887, 4138, 408, 716, 29889, 4984, 13, 4706, 22235, 3888, 29889, 16674, 29918, 8552, 29918, 1761, 353, 7592, 29918, 8552, 29918, 1761, 13, 4706, 22235, 3888, 29889, 276, 509, 2418, 29918, 1761, 353, 518, 877, 4878, 29914, 4878, 29889, 4984, 29918, 29879, 2972, 5477, 6702, 4878, 5515, 29889, 2704, 29930, 1495, 29962, 13, 13, 4706, 736, 22235, 3888, 2 ]
lyapunov_reachability/common/gradient.py
62subinh/deeprl_safety_specification
3
154209
import torch device = torch.device("cuda" if torch.cuda.is_available() else "cpu") def flat_grad(grads): grad_flatten = [] for grad in grads: grad_flatten.append(grad.view(-1)) grad_flatten = torch.cat(grad_flatten) return grad_flatten def flat_hessian(hessians): hessians_flatten = [] for hessian in hessians: hessians_flatten.append(hessian.contiguous().view(-1)) hessians_flatten = torch.cat(hessians_flatten).data return hessians_flatten def kl_divergence(new_actor, old_actor, obs, deterministic=True): if deterministic: mu = new_actor(obs) mu_old = old_actor(obs) mu_old = mu_old.detach() kl = (mu_old - mu).pow(2) / 2.0 return kl.sum(1, keepdim=True) else: mu, std = new_actor(obs) mu_old, std_old = old_actor(obs) mu_old = mu_old.detach() std_old = std_old.detach() # kl divergence between old policy and new policy : D( pi_old || pi_new ) # pi_old -> mu_old, std_old / pi_new -> mu, std # be careful of calculating KL-divergence. It is not symmetric metric. kl = torch.log(std / std_old) + (std_old.pow(2) + (mu_old - mu).pow(2)) / (2.0 * std.pow(2)) - 0.5 return kl.sum(1, keepdim=True) def hessian_vector_product(new_actor, old_actor, obs, p, cg_damping=1e-1): p.detach() kl = kl_divergence(new_actor=new_actor, old_actor=old_actor, obs=obs) kl = kl.mean() kl_grad = torch.autograd.grad(kl, new_actor.parameters(), create_graph=True) kl_grad = flat_grad(kl_grad) kl_grad_p = (kl_grad * p).sum() kl_hessian = torch.autograd.grad(kl_grad_p, new_actor.parameters()) kl_hessian = flat_hessian(kl_hessian) return kl_hessian + p * cg_damping # from openai baseline code # https://github.com/openai/baselines/blob/master/baselines/common/cg.py def conjugate_gradient(actor, target_actor, obs, b, nsteps=10, residual_tol=1e-10): x = torch.zeros(b.size(), device=device) r = b.clone() p = b.clone() rdotr = torch.dot(r, r) for i in range(nsteps): Ap = hessian_vector_product(actor, target_actor, obs, p, cg_damping=1e-1) alpha = rdotr / torch.dot(p, Ap) x += alpha * p r -= alpha * Ap new_rdotr = torch.dot(r, r) betta = new_rdotr / rdotr p = r + betta * p rdotr = new_rdotr if rdotr < residual_tol: break return x
[ 1, 1053, 4842, 305, 13, 13, 10141, 353, 4842, 305, 29889, 10141, 703, 29883, 6191, 29908, 565, 4842, 305, 29889, 29883, 6191, 29889, 275, 29918, 16515, 580, 1683, 376, 21970, 1159, 13, 13, 1753, 12151, 29918, 5105, 29898, 5105, 29879, 1125, 13, 1678, 4656, 29918, 1579, 8606, 353, 5159, 13, 1678, 363, 4656, 297, 4656, 29879, 29901, 13, 4706, 4656, 29918, 1579, 8606, 29889, 4397, 29898, 5105, 29889, 1493, 6278, 29896, 876, 13, 1678, 4656, 29918, 1579, 8606, 353, 4842, 305, 29889, 4117, 29898, 5105, 29918, 1579, 8606, 29897, 13, 1678, 736, 4656, 29918, 1579, 8606, 13, 13, 13, 1753, 12151, 29918, 29882, 404, 713, 29898, 29882, 404, 5834, 1125, 13, 1678, 298, 404, 5834, 29918, 1579, 8606, 353, 5159, 13, 1678, 363, 298, 404, 713, 297, 298, 404, 5834, 29901, 13, 4706, 298, 404, 5834, 29918, 1579, 8606, 29889, 4397, 29898, 29882, 404, 713, 29889, 1285, 5526, 681, 2141, 1493, 6278, 29896, 876, 13, 1678, 298, 404, 5834, 29918, 1579, 8606, 353, 4842, 305, 29889, 4117, 29898, 29882, 404, 5834, 29918, 1579, 8606, 467, 1272, 13, 1678, 736, 298, 404, 5834, 29918, 1579, 8606, 13, 13, 13, 1753, 9489, 29918, 29881, 2147, 10238, 29898, 1482, 29918, 7168, 29892, 2030, 29918, 7168, 29892, 20881, 29892, 11806, 4695, 29922, 5574, 1125, 13, 1678, 565, 11806, 4695, 29901, 13, 4706, 3887, 353, 716, 29918, 7168, 29898, 26290, 29897, 13, 13, 4706, 3887, 29918, 1025, 353, 2030, 29918, 7168, 29898, 26290, 29897, 13, 4706, 3887, 29918, 1025, 353, 3887, 29918, 1025, 29889, 4801, 496, 580, 13, 13, 4706, 9489, 353, 313, 2589, 29918, 1025, 448, 3887, 467, 12248, 29898, 29906, 29897, 847, 29871, 29906, 29889, 29900, 13, 4706, 736, 9489, 29889, 2083, 29898, 29896, 29892, 3013, 6229, 29922, 5574, 29897, 13, 1678, 1683, 29901, 13, 4706, 3887, 29892, 3659, 353, 716, 29918, 7168, 29898, 26290, 29897, 13, 4706, 3887, 29918, 1025, 29892, 3659, 29918, 1025, 353, 2030, 29918, 7168, 29898, 26290, 29897, 13, 4706, 3887, 29918, 1025, 353, 3887, 29918, 1025, 29889, 4801, 496, 580, 13, 4706, 3659, 29918, 1025, 353, 3659, 29918, 1025, 29889, 4801, 496, 580, 13, 13, 4706, 396, 9489, 17089, 10238, 1546, 2030, 8898, 322, 716, 8898, 584, 360, 29898, 2930, 29918, 1025, 3830, 2930, 29918, 1482, 1723, 13, 4706, 396, 2930, 29918, 1025, 1599, 3887, 29918, 1025, 29892, 3659, 29918, 1025, 847, 2930, 29918, 1482, 1599, 3887, 29892, 3659, 13, 4706, 396, 367, 16010, 310, 25202, 476, 29931, 29899, 29881, 2147, 10238, 29889, 739, 338, 451, 18348, 12714, 29889, 13, 4706, 9489, 353, 4842, 305, 29889, 1188, 29898, 4172, 847, 3659, 29918, 1025, 29897, 718, 313, 4172, 29918, 1025, 29889, 12248, 29898, 29906, 29897, 718, 313, 2589, 29918, 1025, 448, 3887, 467, 12248, 29898, 29906, 876, 847, 313, 29906, 29889, 29900, 334, 3659, 29889, 12248, 29898, 29906, 876, 448, 29871, 29900, 29889, 29945, 13, 4706, 736, 9489, 29889, 2083, 29898, 29896, 29892, 3013, 6229, 29922, 5574, 29897, 13, 13, 13, 1753, 298, 404, 713, 29918, 8111, 29918, 4704, 29898, 1482, 29918, 7168, 29892, 2030, 29918, 7168, 29892, 20881, 29892, 282, 29892, 274, 29887, 29918, 29881, 1160, 292, 29922, 29896, 29872, 29899, 29896, 1125, 13, 1678, 282, 29889, 4801, 496, 580, 13, 1678, 9489, 353, 9489, 29918, 29881, 2147, 10238, 29898, 1482, 29918, 7168, 29922, 1482, 29918, 7168, 29892, 2030, 29918, 7168, 29922, 1025, 29918, 7168, 29892, 20881, 29922, 26290, 29897, 13, 1678, 9489, 353, 9489, 29889, 12676, 580, 13, 13, 1678, 9489, 29918, 5105, 353, 4842, 305, 29889, 1300, 468, 3665, 29889, 5105, 29898, 6321, 29892, 716, 29918, 7168, 29889, 16744, 3285, 1653, 29918, 4262, 29922, 5574, 29897, 13, 1678, 9489, 29918, 5105, 353, 12151, 29918, 5105, 29898, 6321, 29918, 5105, 29897, 13, 13, 1678, 9489, 29918, 5105, 29918, 29886, 353, 313, 6321, 29918, 5105, 334, 282, 467, 2083, 580, 13, 1678, 9489, 29918, 29882, 404, 713, 353, 4842, 305, 29889, 1300, 468, 3665, 29889, 5105, 29898, 6321, 29918, 5105, 29918, 29886, 29892, 716, 29918, 7168, 29889, 16744, 3101, 13, 1678, 9489, 29918, 29882, 404, 713, 353, 12151, 29918, 29882, 404, 713, 29898, 6321, 29918, 29882, 404, 713, 29897, 13, 13, 1678, 736, 9489, 29918, 29882, 404, 713, 718, 282, 334, 274, 29887, 29918, 29881, 1160, 292, 13, 13, 13, 29937, 515, 1722, 1794, 2362, 5570, 775, 13, 29937, 2045, 597, 3292, 29889, 510, 29914, 3150, 1794, 29914, 6500, 24210, 29914, 10054, 29914, 6207, 29914, 6500, 24210, 29914, 9435, 29914, 29883, 29887, 29889, 2272, 13, 1753, 25482, 403, 29918, 24970, 29898, 7168, 29892, 3646, 29918, 7168, 29892, 20881, 29892, 289, 29892, 302, 24530, 29922, 29896, 29900, 29892, 10995, 950, 29918, 25027, 29922, 29896, 29872, 29899, 29896, 29900, 1125, 13, 1678, 921, 353, 4842, 305, 29889, 3298, 359, 29898, 29890, 29889, 2311, 3285, 4742, 29922, 10141, 29897, 13, 1678, 364, 353, 289, 29889, 16513, 580, 13, 1678, 282, 353, 289, 29889, 16513, 580, 13, 1678, 364, 6333, 29878, 353, 4842, 305, 29889, 6333, 29898, 29878, 29892, 364, 29897, 13, 13, 1678, 363, 474, 297, 3464, 29898, 29876, 24530, 1125, 13, 4706, 6225, 353, 298, 404, 713, 29918, 8111, 29918, 4704, 29898, 7168, 29892, 3646, 29918, 7168, 29892, 20881, 29892, 282, 29892, 274, 29887, 29918, 29881, 1160, 292, 29922, 29896, 29872, 29899, 29896, 29897, 13, 4706, 15595, 353, 364, 6333, 29878, 847, 4842, 305, 29889, 6333, 29898, 29886, 29892, 6225, 29897, 13, 13, 4706, 921, 4619, 15595, 334, 282, 13, 4706, 364, 22361, 15595, 334, 6225, 13, 13, 4706, 716, 29918, 5499, 25730, 353, 4842, 305, 29889, 6333, 29898, 29878, 29892, 364, 29897, 13, 4706, 1010, 941, 353, 716, 29918, 5499, 25730, 847, 364, 6333, 29878, 13, 13, 4706, 282, 353, 364, 718, 1010, 941, 334, 282, 13, 4706, 364, 6333, 29878, 353, 716, 29918, 5499, 25730, 13, 13, 4706, 565, 364, 6333, 29878, 529, 10995, 950, 29918, 25027, 29901, 13, 9651, 2867, 13, 1678, 736, 921, 2 ]
framework/generated/vulkan_generators/vulkan_referenced_resource_consumer_body_generator.py
tomped01/gfxreconstruct
0
27746
<filename>framework/generated/vulkan_generators/vulkan_referenced_resource_consumer_body_generator.py #!/usr/bin/python3 -i # # Copyright (c) 2020 LunarG, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. import os, re, sys from base_generator import * class VulkanReferencedResourceBodyGeneratorOptions(BaseGeneratorOptions): """Options for generating a C++ class for detecting unreferenced resource handles in a capture file""" def __init__( self, blacklists=None, # Path to JSON file listing apicalls and structs to ignore. platformTypes=None, # Path to JSON file listing platform (WIN32, X11, etc.) defined types. filename=None, directory='.', prefixText='', protectFile=False, protectFeature=True ): BaseGeneratorOptions.__init__( self, blacklists, platformTypes, filename, directory, prefixText, protectFile, protectFeature ) # VulkanReferencedResourceBodyGenerator - subclass of BaseGenerator. # Generates C++ member definitions for the VulkanReferencedResource class responsible for # determining which resource handles are used or unused in a capture file. class VulkanReferencedResourceBodyGenerator(BaseGenerator): """Generate a C++ class for detecting unreferenced resource handles in a capture file""" # All resource and resource associated handle types to be processed. RESOURCE_HANDLE_TYPES = [ 'VkBuffer', 'VkImage', 'VkBufferView', 'VkImageView', 'VkFramebuffer', 'VkDescriptorSet', 'VkCommandBuffer' ] # Handle types that contain resource and child resource handle types. CONTAINER_HANDLE_TYPES = ['VkDescriptorSet'] # Handle types that use resource and child resource handle types. USER_HANDLE_TYPES = ['VkCommandBuffer'] def __init__( self, errFile=sys.stderr, warnFile=sys.stderr, diagFile=sys.stdout ): BaseGenerator.__init__( self, processCmds=True, processStructs=True, featureBreak=False, errFile=errFile, warnFile=warnFile, diagFile=diagFile ) # Map of Vulkan structs containing handles to a list values for handle members or struct members # that contain handles (eg. VkGraphicsPipelineCreateInfo contains a VkPipelineShaderStageCreateInfo # member that contains handles). self.structsWithHandles = dict() self.pNextStructs = dict( ) # Map of Vulkan structure types to sType value for structs that can be part of a pNext chain. self.commandInfo = dict() # Map of Vulkan commands to parameter info self.restrictHandles = True # Determines if the 'isHandle' override limits the handle test to only the values conained by RESOURCE_HANDLE_TYPES. # Method override # yapf: disable def beginFile(self, genOpts): BaseGenerator.beginFile(self, genOpts) write('#include "generated/generated_vulkan_referenced_resource_consumer.h"', file=self.outFile) self.newline() write('#include <cassert>', file=self.outFile) self.newline() write('GFXRECON_BEGIN_NAMESPACE(gfxrecon)', file=self.outFile) write('GFXRECON_BEGIN_NAMESPACE(decode)', file=self.outFile) # yapf: enable # Method override # yapf: disable def endFile(self): for cmd, info in self.commandInfo.items(): returnType = info[0] params = info[2] if params and params[0].baseType == 'VkCommandBuffer': # Check for parameters with resource handle types. handles = self.getParamListHandles(params[1:]) if (handles): # Generate a function to add handles to the command buffer's referenced handle list. cmddef = '\n' # Temporarily remove resource only matching restriction from isHandle() when generating the function signature. self.restrictHandles = False cmddef += self.makeConsumerFuncDecl(returnType, 'VulkanReferencedResourceConsumer::Process_' + cmd, params) + '\n' self.restrictHandles = True cmddef += '{\n' indent = self.INDENT_SIZE * ' ' # Add unreferenced parameter macros. unrefCount = 0 for param in params[1:]: if not param in handles: cmddef += indent + 'GFXRECON_UNREFERENCED_PARAMETER({});\n'.format(param.name) unrefCount += 1 if unrefCount > 0: cmddef += '\n' for index, handle in enumerate(handles): cmddef += self.trackCommandHandle(index, params[0].name, handle, indent=indent) cmddef += '}' write(cmddef, file=self.outFile) self.newline() write('GFXRECON_END_NAMESPACE(decode)', file=self.outFile) write('GFXRECON_END_NAMESPACE(gfxrecon)', file=self.outFile) # Finish processing in superclass BaseGenerator.endFile(self) # yapf: enable # # Method override def genStruct(self, typeinfo, typename, alias): BaseGenerator.genStruct(self, typeinfo, typename, alias) if not alias: self.checkStructMemberHandles(typename, self.structsWithHandles) # Track this struct if it can be present in a pNext chain. parentStructs = typeinfo.elem.get('structextends') if parentStructs: sType = self.makeStructureTypeEnum(typeinfo, typename) if sType: self.pNextStructs[typename] = sType # # Indicates that the current feature has C++ code to generate. def needFeatureGeneration(self): if self.featureCmdParams: return True return False # # Performs C++ code generation for the feature. def generateFeature(self): for cmd in self.getFilteredCmdNames(): self.commandInfo[cmd] = self.featureCmdParams[cmd] # # Override method to check for handle type, only matching resource handle types. def isHandle(self, baseType): if self.restrictHandles: if baseType in self.RESOURCE_HANDLE_TYPES: return True return False else: return BaseGenerator.isHandle(self, baseType) # # Create list of parameters that have handle types or are structs that contain handles. def getParamListHandles(self, values): handles = [] for value in values: if self.isHandle(value.baseType): handles.append(value) elif self.isStruct( value.baseType ) and (value.baseType in self.structsWithHandles): handles.append(value) return handles # # # yapf: disable def trackCommandHandle(self, index, commandParamName, value, valuePrefix='', indent=''): body = '' tail = '' indexName = None countName = None valueName = valuePrefix + value.name isHandle = self.isHandle(value.baseType) if (value.isPointer or value.isArray) and value.name != 'pnext_value': if index > 0: body += '\n' accessOperator = '->' if not valuePrefix: # If there is no prefix, this is the pointer parameter received by the function, which should never be null. body += indent + 'assert({} != nullptr);\n'.format(value.name) body += '\n' else: # If there is a prefix, this is a struct member. We need to determine the type of access operator to use # for the member of a 'decoded' struct type, where handle member types will be HandlePointerDecoder, but # struct member types will be unique_ptr<StructPointerDecoder>. if isHandle: accessOperator = '.' # Add IsNull and HasData checks for the pointer decoder, before accessing its data. # Note that this does not handle the decoded struct member cases for static arrays, which would need to use '.' instead of '->'. body += indent + 'if (!{prefix}{name}{op}IsNull() && ({prefix}{name}{op}HasData()))\n'.format(prefix=valuePrefix, name=value.name, op=accessOperator) body += indent + '{\n' tail = indent + '}\n' + tail indent += ' ' * self.INDENT_SIZE # Get the pointer from the pointer decoder object. valueName = '{}_ptr'.format(value.name) if isHandle: body += indent + 'auto {} = {}{}{}GetPointer();\n'.format(valueName, valuePrefix, value.name, accessOperator) else: body += indent + 'auto {} = {}{}{}GetMetaStructPointer();\n'.format(valueName, valuePrefix, value.name, accessOperator) # Add a for loop for an array of values. if value.isArray: indexName = '{}_index'.format(value.name) countName = '{}_count'.format(value.name) body += indent + 'size_t {} = {}{}{}GetLength();\n'.format(countName, valuePrefix, value.name, accessOperator) body += indent + 'for (size_t {i} = 0; {i} < {}; ++{i})\n'.format(countName, i=indexName) body += indent + '{\n' tail = indent + '}\n' + tail indent += ' ' * self.INDENT_SIZE # Insert commands to add handles to a container, or to process struct members that contain handles. if isHandle: if value.isArray: valueName = '{}[{}]'.format(valueName, indexName) elif value.isPointer: valueName = '(*{})'.format(valueName) if value.baseType in self.CONTAINER_HANDLE_TYPES: body += indent + 'GetTable().AddContainerToUser({}, {});\n'.format(commandParamName, valueName) elif value.baseType in self.USER_HANDLE_TYPES: body += indent + 'GetTable().AddUserToUser({}, {});\n'.format(commandParamName, valueName) else: body += indent + 'GetTable().AddResourceToUser({}, {});\n'.format(commandParamName, valueName) elif self.isStruct(value.baseType) and (value.baseType in self.structsWithHandles): if value.isArray: accessOperator = '[{}].'.format(indexName) else: accessOperator = '->' for index, entry in enumerate(self.structsWithHandles[value.baseType]): if entry.name == 'pNext': extStructsWithHandles = [extStruct for extStruct in self.registry.validextensionstructs[value.baseType] if extStruct in self.structsWithHandles] if extStructsWithHandles: body += indent + 'const VkBaseInStructure* pnext_header = nullptr;\n' body += indent + 'if ({name}->pNext != nullptr)\n'.format(name=valueName) body += indent + '{\n' indent += ' ' * self.INDENT_SIZE body += indent + 'pnext_header = reinterpret_cast<const VkBaseInStructure*>({}->pNext->GetPointer());\n'.format(valueName) indent = indent[:-self.INDENT_SIZE] body += indent + '}\n' body += indent + 'while (pnext_header)\n' body += indent + '{\n' indent += ' ' * self.INDENT_SIZE body += indent + 'switch (pnext_header->sType)\n' body += indent + '{\n' indent += ' ' * self.INDENT_SIZE body += indent + 'default:\n' indent += ' ' * self.INDENT_SIZE body += indent + 'break;\n' indent = indent[:-self.INDENT_SIZE] for extStruct in extStructsWithHandles: body += indent + 'case {}:\n'.format(self.pNextStructs[extStruct]) body += indent + '{\n' indent += ' ' * self.INDENT_SIZE body += indent + 'auto pnext_value = reinterpret_cast<const Decoded_{}*>({}->pNext->GetPointer());\n'.format(extStruct, valueName) body += self.trackCommandHandle(index, commandParamName, ValueInfo('pnext_value', extStruct, 'const {} *'.format(extStruct), 1), '', indent=indent) body += indent + 'break;\n' indent = indent[:-self.INDENT_SIZE] body += indent + '}\n' indent = indent[:-self.INDENT_SIZE] body += indent + '}\n' body += indent + 'pnext_header = pnext_header->pNext;\n' indent = indent[:-self.INDENT_SIZE] body += indent + '}\n' else: body += self.trackCommandHandle(index, commandParamName, entry, valueName + accessOperator, indent) return body + tail # yapf: enable
[ 1, 529, 9507, 29958, 4468, 29914, 13525, 29914, 29894, 352, 11052, 29918, 4738, 4097, 29914, 29894, 352, 11052, 29918, 20275, 9223, 29918, 10314, 29918, 25978, 261, 29918, 2587, 29918, 27959, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 29914, 4691, 29941, 448, 29875, 13, 29937, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29906, 29900, 365, 348, 279, 29954, 29892, 9266, 29889, 13, 29937, 13, 29937, 20894, 2333, 338, 1244, 1609, 16896, 29892, 3889, 310, 8323, 29892, 304, 738, 2022, 4017, 292, 263, 3509, 13, 29937, 310, 445, 7047, 322, 6942, 5106, 2066, 313, 1552, 376, 6295, 14093, 4968, 304, 13, 29937, 5376, 297, 278, 18540, 1728, 24345, 29892, 3704, 1728, 29485, 278, 13, 29937, 10462, 304, 671, 29892, 3509, 29892, 6623, 29892, 10366, 29892, 9805, 29892, 1320, 2666, 29892, 269, 803, 1947, 29892, 322, 29914, 272, 13, 29937, 19417, 14591, 310, 278, 18540, 29892, 322, 304, 14257, 12407, 304, 6029, 278, 18540, 338, 13, 29937, 15252, 3276, 304, 437, 577, 29892, 4967, 304, 278, 1494, 5855, 29901, 13, 29937, 13, 29937, 450, 2038, 3509, 1266, 8369, 322, 445, 10751, 8369, 4091, 367, 5134, 297, 13, 29937, 599, 14591, 470, 23228, 2011, 1080, 310, 278, 18540, 29889, 13, 29937, 13, 29937, 6093, 7791, 7818, 12982, 1525, 8519, 13756, 13044, 3352, 376, 3289, 8519, 613, 399, 1806, 8187, 2692, 399, 1718, 29934, 13566, 29979, 8079, 13764, 29979, 476, 22255, 29892, 8528, 15094, 1799, 6323, 13, 29937, 306, 3580, 5265, 3352, 29892, 2672, 6154, 15789, 4214, 350, 2692, 6058, 27848, 3352, 7495, 6093, 399, 1718, 29934, 13566, 29059, 8079, 341, 1001, 3210, 13566, 2882, 6227, 11937, 29892, 13, 29937, 383, 1806, 8186, 1799, 15842, 319, 349, 8322, 2965, 13309, 1718, 349, 4574, 13152, 1660, 5300, 405, 1164, 1177, 15860, 1177, 1692, 13780, 29889, 2672, 11698, 382, 29963, 3919, 24972, 9818, 6093, 13, 29937, 26524, 29950, 24125, 6323, 315, 4590, 29979, 22789, 3912, 379, 5607, 8032, 29903, 20700, 17705, 6181, 15842, 13764, 29979, 315, 4375, 7833, 29892, 21330, 1529, 1692, 29903, 6323, 438, 29911, 4448, 13, 29937, 17705, 2882, 6227, 11937, 29892, 12317, 2544, 4448, 2672, 13764, 319, 9838, 8079, 8707, 29911, 4717, 1783, 29892, 323, 8476, 6323, 438, 29911, 4448, 22119, 1660, 29892, 9033, 3235, 4214, 13, 29937, 3895, 29892, 19474, 8079, 6323, 2672, 8707, 8186, 9838, 22659, 6093, 7791, 7818, 12982, 1525, 6323, 6093, 501, 1660, 6323, 438, 29911, 4448, 5012, 1964, 4214, 29903, 13, 29937, 2672, 6093, 7791, 7818, 12982, 1525, 29889, 13, 13, 5215, 2897, 29892, 337, 29892, 10876, 13, 3166, 2967, 29918, 27959, 1053, 334, 13, 13, 13, 1990, 478, 352, 11052, 1123, 571, 9223, 6848, 8434, 21575, 5856, 29898, 5160, 21575, 5856, 1125, 13, 1678, 9995, 5856, 363, 14655, 263, 315, 1817, 770, 363, 6459, 292, 443, 20275, 9223, 6503, 17766, 297, 263, 10446, 934, 15945, 29908, 13, 13, 1678, 822, 4770, 2344, 12035, 13, 4706, 1583, 29892, 13, 4706, 4628, 21513, 29922, 8516, 29892, 29871, 396, 10802, 304, 4663, 934, 18028, 3095, 293, 4293, 322, 2281, 29879, 304, 11455, 29889, 13, 4706, 7481, 10562, 29922, 8516, 29892, 29871, 396, 10802, 304, 4663, 934, 18028, 7481, 313, 25152, 29941, 29906, 29892, 1060, 29896, 29896, 29892, 2992, 1846, 3342, 4072, 29889, 13, 4706, 10422, 29922, 8516, 29892, 13, 4706, 3884, 2433, 29889, 742, 13, 4706, 10944, 1626, 2433, 742, 13, 4706, 12566, 2283, 29922, 8824, 29892, 13, 4706, 12566, 19132, 29922, 5574, 13, 268, 1125, 13, 4706, 7399, 21575, 5856, 17255, 2344, 12035, 13, 9651, 1583, 29892, 4628, 21513, 29892, 7481, 10562, 29892, 10422, 29892, 3884, 29892, 10944, 1626, 29892, 13, 9651, 12566, 2283, 29892, 12566, 19132, 13, 4706, 1723, 13, 13, 13, 29937, 478, 352, 11052, 1123, 571, 9223, 6848, 8434, 21575, 448, 19481, 310, 7399, 21575, 29889, 13, 29937, 3251, 1078, 315, 1817, 4509, 15848, 363, 278, 478, 352, 11052, 1123, 571, 9223, 6848, 770, 14040, 363, 13, 29937, 3683, 2827, 607, 6503, 17766, 526, 1304, 470, 443, 3880, 297, 263, 10446, 934, 29889, 13, 1990, 478, 352, 11052, 1123, 571, 9223, 6848, 8434, 21575, 29898, 5160, 21575, 1125, 13, 1678, 9995, 5631, 403, 263, 315, 1817, 770, 363, 6459, 292, 443, 20275, 9223, 6503, 17766, 297, 263, 10446, 934, 15945, 29908, 13, 1678, 396, 2178, 6503, 322, 6503, 6942, 4386, 4072, 304, 367, 19356, 29889, 13, 1678, 390, 2890, 22970, 4741, 29918, 29950, 9468, 1307, 29918, 15631, 29925, 2890, 353, 518, 13, 4706, 525, 29963, 29895, 7701, 742, 525, 29963, 29895, 2940, 742, 525, 29963, 29895, 7701, 1043, 742, 525, 29963, 29895, 14460, 742, 525, 29963, 29895, 4308, 9040, 742, 13, 4706, 525, 29963, 29895, 19124, 2697, 742, 525, 29963, 29895, 6255, 7701, 29915, 13, 1678, 4514, 13, 13, 1678, 396, 29273, 4072, 393, 1712, 6503, 322, 2278, 6503, 4386, 4072, 29889, 13, 1678, 8707, 6040, 1177, 1001, 29918, 29950, 9468, 1307, 29918, 15631, 29925, 2890, 353, 6024, 29963, 29895, 19124, 2697, 2033, 13, 13, 1678, 396, 29273, 4072, 393, 671, 6503, 322, 2278, 6503, 4386, 4072, 29889, 13, 1678, 3148, 1001, 29918, 29950, 9468, 1307, 29918, 15631, 29925, 2890, 353, 6024, 29963, 29895, 6255, 7701, 2033, 13, 13, 1678, 822, 4770, 2344, 12035, 13, 4706, 1583, 29892, 4589, 2283, 29922, 9675, 29889, 303, 20405, 29892, 29383, 2283, 29922, 9675, 29889, 303, 20405, 29892, 7936, 2283, 29922, 9675, 29889, 25393, 13, 268, 1125, 13, 4706, 7399, 21575, 17255, 2344, 12035, 13, 9651, 1583, 29892, 13, 9651, 1889, 23651, 29879, 29922, 5574, 29892, 13, 9651, 1889, 19560, 29879, 29922, 5574, 29892, 13, 9651, 4682, 20130, 557, 29922, 8824, 29892, 13, 9651, 4589, 2283, 29922, 3127, 2283, 29892, 13, 9651, 29383, 2283, 29922, 25442, 2283, 29892, 13, 9651, 7936, 2283, 29922, 6051, 351, 2283, 13, 4706, 1723, 13, 4706, 396, 7315, 310, 478, 352, 11052, 2281, 29879, 6943, 17766, 304, 263, 1051, 1819, 363, 4386, 5144, 470, 2281, 5144, 13, 4706, 396, 393, 1712, 17766, 313, 387, 29889, 478, 29895, 17290, 29925, 23828, 4391, 3401, 3743, 263, 478, 29895, 29925, 23828, 2713, 1664, 27276, 4391, 3401, 13, 4706, 396, 4509, 393, 3743, 17766, 467, 13, 4706, 1583, 29889, 4984, 29879, 3047, 3481, 793, 353, 9657, 580, 13, 4706, 1583, 29889, 29886, 9190, 19560, 29879, 353, 9657, 29898, 13, 4706, 1723, 29871, 396, 7315, 310, 478, 352, 11052, 3829, 4072, 304, 269, 1542, 995, 363, 2281, 29879, 393, 508, 367, 760, 310, 263, 282, 9190, 9704, 29889, 13, 4706, 1583, 29889, 6519, 3401, 353, 9657, 580, 29871, 396, 7315, 310, 478, 352, 11052, 8260, 304, 3443, 5235, 13, 4706, 1583, 29889, 5060, 4146, 3481, 793, 353, 5852, 29871, 396, 5953, 837, 1475, 565, 278, 525, 275, 13554, 29915, 5712, 13071, 278, 4386, 1243, 304, 871, 278, 1819, 378, 7114, 491, 390, 2890, 22970, 4741, 29918, 29950, 9468, 1307, 29918, 15631, 29925, 2890, 29889, 13, 13, 1678, 396, 8108, 5712, 13, 1678, 396, 343, 481, 29888, 29901, 11262, 13, 1678, 822, 3380, 2283, 29898, 1311, 29892, 2531, 29949, 16485, 1125, 13, 4706, 7399, 21575, 29889, 463, 2283, 29898, 1311, 29892, 2531, 29949, 16485, 29897, 13, 13, 4706, 2436, 14237, 2856, 376, 13525, 29914, 13525, 29918, 29894, 352, 11052, 29918, 20275, 9223, 29918, 10314, 29918, 25978, 261, 29889, 29882, 29908, 742, 934, 29922, 1311, 29889, 449, 2283, 29897, 13, 4706, 1583, 29889, 1482, 1220, 580, 13, 4706, 2436, 14237, 2856, 529, 29883, 9294, 29958, 742, 934, 29922, 1311, 29889, 449, 2283, 29897, 13, 4706, 1583, 29889, 1482, 1220, 580, 13, 4706, 2436, 877, 29954, 26753, 1525, 6007, 29918, 29933, 17958, 29918, 5813, 5550, 11538, 29898, 29887, 11093, 276, 535, 29897, 742, 934, 29922, 1311, 29889, 449, 2283, 29897, 13, 4706, 2436, 877, 29954, 26753, 1525, 6007, 29918, 29933, 17958, 29918, 5813, 5550, 11538, 29898, 13808, 29897, 742, 934, 29922, 1311, 29889, 449, 2283, 29897, 13, 1678, 396, 343, 481, 29888, 29901, 9025, 13, 13, 1678, 396, 8108, 5712, 13, 1678, 396, 343, 481, 29888, 29901, 11262, 13, 1678, 822, 1095, 2283, 29898, 1311, 1125, 13, 4706, 363, 9920, 29892, 5235, 297, 1583, 29889, 6519, 3401, 29889, 7076, 7295, 13, 9651, 736, 1542, 353, 5235, 29961, 29900, 29962, 13, 9651, 8636, 353, 5235, 29961, 29906, 29962, 13, 9651, 565, 8636, 322, 8636, 29961, 29900, 1822, 3188, 1542, 1275, 525, 29963, 29895, 6255, 7701, 2396, 13, 18884, 396, 5399, 363, 4128, 411, 6503, 4386, 4072, 29889, 13, 18884, 17766, 353, 1583, 29889, 657, 4736, 1293, 3481, 793, 29898, 7529, 29961, 29896, 29901, 2314, 13, 13, 18884, 565, 313, 3179, 793, 1125, 13, 462, 1678, 396, 3251, 403, 263, 740, 304, 788, 17766, 304, 278, 1899, 6835, 29915, 29879, 16180, 4386, 1051, 29889, 13, 462, 1678, 9920, 1753, 353, 11297, 29876, 29915, 13, 13, 462, 1678, 396, 6789, 1971, 6275, 3349, 6503, 871, 9686, 24345, 515, 338, 13554, 580, 746, 14655, 278, 740, 12608, 29889, 13, 462, 1678, 1583, 29889, 5060, 4146, 3481, 793, 353, 7700, 13, 462, 1678, 9920, 1753, 4619, 1583, 29889, 5675, 13696, 4680, 14400, 6185, 29880, 29898, 2457, 1542, 29892, 525, 29963, 352, 11052, 1123, 571, 9223, 6848, 13696, 4680, 1057, 7032, 29918, 29915, 718, 9920, 29892, 8636, 29897, 718, 11297, 29876, 29915, 13, 462, 1678, 1583, 29889, 5060, 4146, 3481, 793, 353, 5852, 13, 13, 462, 1678, 9920, 1753, 4619, 525, 741, 29876, 29915, 13, 462, 1678, 29536, 353, 1583, 29889, 22255, 3919, 29918, 14226, 334, 525, 525, 13, 13, 462, 1678, 396, 3462, 443, 20275, 9223, 3443, 5825, 1883, 29889, 13, 462, 1678, 443, 999, 3981, 353, 29871, 29900, 13, 462, 1678, 363, 1828, 297, 8636, 29961, 29896, 29901, 5387, 13, 462, 4706, 565, 451, 1828, 297, 17766, 29901, 13, 462, 9651, 9920, 1753, 4619, 29536, 718, 525, 29954, 26753, 1525, 6007, 29918, 3904, 25866, 1001, 1430, 29907, 3352, 29918, 16320, 25797, 4945, 3319, 3680, 29905, 29876, 4286, 4830, 29898, 3207, 29889, 978, 29897, 13, 462, 9651, 443, 999, 3981, 4619, 29871, 29896, 13, 462, 1678, 565, 443, 999, 3981, 1405, 29871, 29900, 29901, 13, 462, 4706, 9920, 1753, 4619, 11297, 29876, 29915, 13, 13, 462, 1678, 363, 2380, 29892, 4386, 297, 26985, 29898, 3179, 793, 1125, 13, 462, 4706, 9920, 1753, 4619, 1583, 29889, 11294, 6255, 13554, 29898, 2248, 29892, 8636, 29961, 29900, 1822, 978, 29892, 4386, 29892, 29536, 29922, 12860, 29897, 13, 462, 1678, 9920, 1753, 4619, 525, 10162, 13, 13, 462, 1678, 2436, 29898, 9006, 1753, 29892, 934, 29922, 1311, 29889, 449, 2283, 29897, 13, 13, 4706, 1583, 29889, 1482, 1220, 580, 13, 4706, 2436, 877, 29954, 26753, 1525, 6007, 29918, 11794, 29918, 5813, 5550, 11538, 29898, 13808, 29897, 742, 934, 29922, 1311, 29889, 449, 2283, 29897, 13, 4706, 2436, 877, 29954, 26753, 1525, 6007, 29918, 11794, 29918, 5813, 5550, 11538, 29898, 29887, 11093, 276, 535, 29897, 742, 934, 29922, 1311, 29889, 449, 2283, 29897, 13, 13, 4706, 396, 4231, 728, 9068, 297, 2428, 1990, 13, 4706, 7399, 21575, 29889, 355, 2283, 29898, 1311, 29897, 13, 1678, 396, 343, 481, 29888, 29901, 9025, 13, 13, 1678, 396, 13, 1678, 396, 8108, 5712, 13, 1678, 822, 2531, 19560, 29898, 1311, 29892, 1134, 3888, 29892, 2393, 3871, 29892, 13995, 1125, 13, 4706, 7399, 21575, 29889, 1885, 19560, 29898, 1311, 29892, 1134, 3888, 29892, 2393, 3871, 29892, 13995, 29897, 13, 13, 4706, 565, 451, 13995, 29901, 13, 9651, 1583, 29889, 3198, 19560, 13404, 3481, 793, 29898, 22646, 29892, 1583, 29889, 4984, 29879, 3047, 3481, 793, 29897, 13, 13, 9651, 396, 17026, 445, 2281, 565, 372, 508, 367, 2198, 297, 263, 282, 9190, 9704, 29889, 13, 9651, 3847, 19560, 29879, 353, 1134, 3888, 29889, 20461, 29889, 657, 877, 4984, 1062, 1975, 1495, 13, 9651, 565, 3847, 19560, 29879, 29901, 13, 18884, 269, 1542, 353, 1583, 29889, 5675, 5015, 12425, 1542, 16854, 29898, 1853, 3888, 29892, 2393, 3871, 29897, 13, 18884, 565, 269, 1542, 29901, 13, 462, 1678, 1583, 29889, 29886, 9190, 19560, 29879, 29961, 22646, 29962, 353, 269, 1542, 13, 13, 1678, 396, 13, 1678, 396, 1894, 293, 1078, 393, 278, 1857, 4682, 756, 315, 1817, 775, 304, 5706, 29889, 13, 1678, 822, 817, 19132, 5631, 362, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 14394, 23651, 9629, 29901, 13, 9651, 736, 5852, 13, 4706, 736, 7700, 13, 13, 1678, 396, 13, 1678, 396, 2431, 9514, 315, 1817, 775, 12623, 363, 278, 4682, 29889, 13, 1678, 822, 5706, 19132, 29898, 1311, 1125, 13, 4706, 363, 9920, 297, 1583, 29889, 657, 5072, 287, 23651, 8659, 7295, 13, 9651, 1583, 29889, 6519, 3401, 29961, 9006, 29962, 353, 1583, 29889, 14394, 23651, 9629, 29961, 9006, 29962, 13, 13, 1678, 396, 13, 1678, 396, 6811, 2426, 1158, 304, 1423, 363, 4386, 1134, 29892, 871, 9686, 6503, 4386, 4072, 29889, 13, 1678, 822, 338, 13554, 29898, 1311, 29892, 2967, 1542, 1125, 13, 4706, 565, 1583, 29889, 5060, 4146, 3481, 793, 29901, 13, 9651, 565, 2967, 1542, 297, 1583, 29889, 1525, 27839, 4741, 29918, 29950, 9468, 1307, 29918, 15631, 29925, 2890, 29901, 13, 18884, 736, 5852, 13, 9651, 736, 7700, 13, 4706, 1683, 29901, 13, 9651, 736, 7399, 21575, 29889, 275, 13554, 29898, 1311, 29892, 2967, 1542, 29897, 13, 13, 1678, 396, 13, 1678, 396, 6204, 1051, 310, 4128, 393, 505, 4386, 4072, 470, 526, 2281, 29879, 393, 1712, 17766, 29889, 13, 1678, 822, 679, 4736, 1293, 3481, 793, 29898, 1311, 29892, 1819, 1125, 13, 4706, 17766, 353, 5159, 13, 4706, 363, 995, 297, 1819, 29901, 13, 9651, 565, 1583, 29889, 275, 13554, 29898, 1767, 29889, 3188, 1542, 1125, 13, 18884, 17766, 29889, 4397, 29898, 1767, 29897, 13, 9651, 25342, 1583, 29889, 275, 19560, 29898, 13, 18884, 995, 29889, 3188, 1542, 13, 9651, 1723, 322, 313, 1767, 29889, 3188, 1542, 297, 1583, 29889, 4984, 29879, 3047, 3481, 793, 1125, 13, 18884, 17766, 29889, 4397, 29898, 1767, 29897, 13, 4706, 736, 17766, 13, 13, 1678, 396, 13, 1678, 396, 13, 1678, 396, 343, 481, 29888, 29901, 11262, 13, 1678, 822, 5702, 6255, 13554, 29898, 1311, 29892, 2380, 29892, 1899, 4736, 1170, 29892, 995, 29892, 995, 23095, 2433, 742, 29536, 2433, 29374, 13, 4706, 3573, 353, 6629, 13, 4706, 12464, 353, 6629, 13, 4706, 2380, 1170, 353, 6213, 13, 4706, 2302, 1170, 353, 6213, 13, 4706, 995, 1170, 353, 995, 23095, 718, 995, 29889, 978, 13, 4706, 338, 13554, 353, 1583, 29889, 275, 13554, 29898, 1767, 29889, 3188, 1542, 29897, 13, 13, 4706, 565, 313, 1767, 29889, 275, 14516, 470, 995, 29889, 275, 2588, 29897, 322, 995, 29889, 978, 2804, 525, 29886, 4622, 29918, 1767, 2396, 13, 9651, 565, 2380, 1405, 29871, 29900, 29901, 13, 18884, 3573, 4619, 11297, 29876, 29915, 13, 13, 9651, 2130, 26486, 353, 525, 976, 29915, 13, 9651, 565, 451, 995, 23095, 29901, 13, 18884, 396, 960, 727, 338, 694, 10944, 29892, 445, 338, 278, 4879, 3443, 4520, 491, 278, 740, 29892, 607, 881, 2360, 367, 1870, 29889, 13, 18884, 3573, 4619, 29536, 718, 525, 9294, 3319, 29913, 2804, 1870, 7414, 416, 29905, 29876, 4286, 4830, 29898, 1767, 29889, 978, 29897, 13, 18884, 3573, 4619, 11297, 29876, 29915, 13, 9651, 1683, 29901, 13, 18884, 396, 960, 727, 338, 263, 10944, 29892, 445, 338, 263, 2281, 4509, 29889, 29871, 1334, 817, 304, 8161, 278, 1134, 310, 2130, 5455, 304, 671, 13, 18884, 396, 363, 278, 4509, 310, 263, 525, 7099, 6797, 29915, 2281, 1134, 29892, 988, 4386, 4509, 4072, 674, 367, 29273, 14516, 6185, 6119, 29892, 541, 13, 18884, 396, 2281, 4509, 4072, 674, 367, 5412, 29918, 7414, 29966, 19560, 14516, 6185, 6119, 15513, 13, 18884, 565, 338, 13554, 29901, 13, 462, 1678, 2130, 26486, 353, 525, 6169, 13, 13, 9651, 396, 3462, 1317, 7327, 322, 11699, 1469, 12747, 363, 278, 4879, 1602, 6119, 29892, 1434, 17378, 967, 848, 29889, 13, 9651, 396, 3940, 393, 445, 947, 451, 4386, 278, 1602, 6797, 2281, 4509, 4251, 363, 2294, 7049, 29892, 607, 723, 817, 304, 671, 525, 6169, 2012, 310, 525, 976, 4286, 13, 9651, 3573, 4619, 29536, 718, 525, 361, 5384, 29912, 13506, 1157, 978, 1157, 459, 29913, 3624, 7327, 580, 2607, 21313, 13506, 1157, 978, 1157, 459, 29913, 14510, 1469, 22130, 29905, 29876, 4286, 4830, 29898, 13506, 29922, 1767, 23095, 29892, 1024, 29922, 1767, 29889, 978, 29892, 1015, 29922, 5943, 26486, 29897, 13, 9651, 3573, 4619, 29536, 718, 525, 741, 29876, 29915, 13, 9651, 12464, 353, 29536, 718, 525, 1012, 29876, 29915, 718, 12464, 13, 9651, 29536, 4619, 525, 525, 334, 1583, 29889, 22255, 3919, 29918, 14226, 13, 13, 9651, 396, 3617, 278, 4879, 515, 278, 4879, 1602, 6119, 1203, 29889, 13, 9651, 995, 1170, 353, 22372, 2403, 7414, 4286, 4830, 29898, 1767, 29889, 978, 29897, 13, 9651, 565, 338, 13554, 29901, 13, 18884, 3573, 4619, 29536, 718, 525, 6921, 6571, 353, 426, 1157, 1157, 29913, 2577, 14516, 890, 29905, 29876, 4286, 4830, 29898, 1767, 1170, 29892, 995, 23095, 29892, 995, 29889, 978, 29892, 2130, 26486, 29897, 13, 9651, 1683, 29901, 13, 18884, 3573, 4619, 29536, 718, 525, 6921, 6571, 353, 426, 1157, 1157, 29913, 2577, 19346, 19560, 14516, 890, 29905, 29876, 4286, 4830, 29898, 1767, 1170, 29892, 995, 23095, 29892, 995, 29889, 978, 29892, 2130, 26486, 29897, 13, 13, 9651, 396, 3462, 263, 363, 2425, 363, 385, 1409, 310, 1819, 29889, 13, 9651, 565, 995, 29889, 275, 2588, 29901, 13, 18884, 2380, 1170, 353, 22372, 2403, 2248, 4286, 4830, 29898, 1767, 29889, 978, 29897, 13, 18884, 2302, 1170, 353, 22372, 2403, 2798, 4286, 4830, 29898, 1767, 29889, 978, 29897, 13, 18884, 3573, 4619, 29536, 718, 525, 2311, 29918, 29873, 6571, 353, 426, 1157, 1157, 29913, 2577, 6513, 890, 29905, 29876, 4286, 4830, 29898, 2798, 1170, 29892, 995, 23095, 29892, 995, 29889, 978, 29892, 2130, 26486, 29897, 13, 18884, 3573, 4619, 29536, 718, 525, 1454, 313, 2311, 29918, 29873, 426, 29875, 29913, 353, 29871, 29900, 29936, 426, 29875, 29913, 529, 15739, 8445, 29912, 29875, 11606, 29876, 4286, 4830, 29898, 2798, 1170, 29892, 474, 29922, 2248, 1170, 29897, 13, 18884, 3573, 4619, 29536, 718, 525, 741, 29876, 29915, 13, 18884, 12464, 353, 29536, 718, 525, 1012, 29876, 29915, 718, 12464, 13, 18884, 29536, 4619, 525, 525, 334, 1583, 29889, 22255, 3919, 29918, 14226, 13, 13, 4706, 396, 24505, 8260, 304, 788, 17766, 304, 263, 5639, 29892, 470, 304, 1889, 2281, 5144, 393, 1712, 17766, 29889, 13, 4706, 565, 338, 13554, 29901, 13, 9651, 565, 995, 29889, 275, 2588, 29901, 13, 18884, 995, 1170, 353, 22372, 4400, 29912, 6525, 4286, 4830, 29898, 1767, 1170, 29892, 2380, 1170, 29897, 13, 9651, 25342, 995, 29889, 275, 14516, 29901, 13, 18884, 995, 1170, 353, 525, 10456, 29912, 1800, 4286, 4830, 29898, 1767, 1170, 29897, 13, 13, 9651, 565, 995, 29889, 3188, 1542, 297, 1583, 29889, 6007, 6040, 1177, 1001, 29918, 29950, 9468, 1307, 29918, 15631, 29925, 2890, 29901, 13, 18884, 3573, 4619, 29536, 718, 525, 2577, 3562, 2141, 2528, 7895, 1762, 2659, 3319, 1118, 426, 3680, 29905, 29876, 4286, 4830, 29898, 6519, 4736, 1170, 29892, 995, 1170, 29897, 13, 9651, 25342, 995, 29889, 3188, 1542, 297, 1583, 29889, 11889, 29918, 29950, 9468, 1307, 29918, 15631, 29925, 2890, 29901, 13, 18884, 3573, 4619, 29536, 718, 525, 2577, 3562, 2141, 2528, 2659, 1762, 2659, 3319, 1118, 426, 3680, 29905, 29876, 4286, 4830, 29898, 6519, 4736, 1170, 29892, 995, 1170, 29897, 13, 9651, 1683, 29901, 13, 18884, 3573, 4619, 29536, 718, 525, 2577, 3562, 2141, 2528, 6848, 1762, 2659, 3319, 1118, 426, 3680, 29905, 29876, 4286, 4830, 29898, 6519, 4736, 1170, 29892, 995, 1170, 29897, 13, 13, 4706, 25342, 1583, 29889, 275, 19560, 29898, 1767, 29889, 3188, 1542, 29897, 322, 313, 1767, 29889, 3188, 1542, 297, 1583, 29889, 4984, 29879, 3047, 3481, 793, 1125, 13, 9651, 565, 995, 29889, 275, 2588, 29901, 13, 18884, 2130, 26486, 353, 525, 29961, 8875, 1822, 4286, 4830, 29898, 2248, 1170, 29897, 13, 9651, 1683, 29901, 13, 18884, 2130, 26486, 353, 525, 976, 29915, 13, 13, 9651, 363, 2380, 29892, 6251, 297, 26985, 29898, 1311, 29889, 4984, 29879, 3047, 3481, 793, 29961, 1767, 29889, 3188, 1542, 29962, 1125, 13, 18884, 565, 6251, 29889, 978, 1275, 525, 29886, 9190, 2396, 13, 462, 1678, 1294, 19560, 29879, 3047, 3481, 793, 353, 518, 1062, 19560, 363, 1294, 19560, 297, 1583, 29889, 1727, 6020, 29889, 791, 680, 486, 2673, 4984, 29879, 29961, 1767, 29889, 3188, 1542, 29962, 565, 1294, 19560, 297, 1583, 29889, 4984, 29879, 3047, 3481, 793, 29962, 13, 462, 1678, 565, 1294, 19560, 29879, 3047, 3481, 793, 29901, 13, 462, 4706, 3573, 4619, 29536, 718, 525, 3075, 478, 29895, 5160, 797, 5015, 12425, 29930, 282, 4622, 29918, 6672, 353, 1870, 7414, 10436, 29876, 29915, 13, 462, 4706, 3573, 4619, 29536, 718, 525, 361, 21313, 978, 29913, 976, 29886, 9190, 2804, 1870, 7414, 2144, 29876, 4286, 4830, 29898, 978, 29922, 1767, 1170, 29897, 13, 462, 4706, 3573, 4619, 29536, 718, 525, 741, 29876, 29915, 13, 462, 4706, 29536, 4619, 525, 525, 334, 1583, 29889, 22255, 3919, 29918, 14226, 13, 462, 4706, 3573, 4619, 29536, 718, 525, 29886, 4622, 29918, 6672, 353, 337, 1639, 19819, 29918, 4384, 29966, 3075, 478, 29895, 5160, 797, 5015, 12425, 29930, 29958, 3319, 29913, 976, 29886, 9190, 976, 2577, 14516, 3310, 29905, 29876, 4286, 4830, 29898, 1767, 1170, 29897, 13, 462, 4706, 29536, 353, 29536, 7503, 29899, 1311, 29889, 22255, 3919, 29918, 14226, 29962, 13, 462, 4706, 3573, 4619, 29536, 718, 525, 1012, 29876, 29915, 13, 462, 4706, 3573, 4619, 29536, 718, 525, 8000, 313, 29886, 4622, 29918, 6672, 2144, 29876, 29915, 13, 462, 4706, 3573, 4619, 29536, 718, 525, 741, 29876, 29915, 13, 462, 4706, 29536, 4619, 525, 525, 334, 1583, 29889, 22255, 3919, 29918, 14226, 13, 462, 4706, 3573, 4619, 29536, 718, 525, 15123, 313, 29886, 4622, 29918, 6672, 976, 29879, 1542, 2144, 29876, 29915, 13, 462, 4706, 3573, 4619, 29536, 718, 525, 741, 29876, 29915, 13, 462, 4706, 29536, 4619, 525, 525, 334, 1583, 29889, 22255, 3919, 29918, 14226, 13, 462, 4706, 3573, 4619, 29536, 718, 525, 4381, 3583, 29876, 29915, 13, 462, 4706, 29536, 4619, 525, 525, 334, 1583, 29889, 22255, 3919, 29918, 14226, 13, 462, 4706, 3573, 4619, 29536, 718, 525, 8690, 10436, 29876, 29915, 13, 462, 4706, 29536, 353, 29536, 7503, 29899, 1311, 29889, 22255, 3919, 29918, 14226, 29962, 13, 462, 4706, 363, 1294, 19560, 297, 1294, 19560, 29879, 3047, 3481, 793, 29901, 13, 462, 9651, 3573, 4619, 29536, 718, 525, 4878, 6571, 3583, 29876, 4286, 4830, 29898, 1311, 29889, 29886, 9190, 19560, 29879, 29961, 1062, 19560, 2314, 13, 462, 9651, 3573, 4619, 29536, 718, 525, 741, 29876, 29915, 13, 462, 9651, 29536, 4619, 525, 525, 334, 1583, 29889, 22255, 3919, 29918, 14226, 13, 462, 9651, 3573, 4619, 29536, 718, 525, 6921, 282, 4622, 29918, 1767, 353, 337, 1639, 19819, 29918, 4384, 29966, 3075, 3826, 6797, 648, 29913, 29930, 29958, 3319, 29913, 976, 29886, 9190, 976, 2577, 14516, 3310, 29905, 29876, 4286, 4830, 29898, 1062, 19560, 29892, 995, 1170, 29897, 13, 462, 9651, 3573, 4619, 1583, 29889, 11294, 6255, 13554, 29898, 2248, 29892, 1899, 4736, 1170, 29892, 7865, 3401, 877, 29886, 4622, 29918, 1767, 742, 1294, 19560, 29892, 525, 3075, 6571, 334, 4286, 4830, 29898, 1062, 19560, 511, 29871, 29896, 511, 15516, 29536, 29922, 12860, 29897, 13, 462, 9651, 3573, 4619, 29536, 718, 525, 8690, 10436, 29876, 29915, 13, 462, 9651, 29536, 353, 29536, 7503, 29899, 1311, 29889, 22255, 3919, 29918, 14226, 29962, 13, 462, 9651, 3573, 4619, 29536, 718, 525, 1012, 29876, 29915, 13, 462, 4706, 29536, 353, 29536, 7503, 29899, 1311, 29889, 22255, 3919, 29918, 14226, 29962, 13, 462, 4706, 3573, 4619, 29536, 718, 525, 1012, 29876, 29915, 13, 462, 4706, 3573, 4619, 29536, 718, 525, 29886, 4622, 29918, 6672, 353, 282, 4622, 29918, 6672, 976, 29886, 9190, 10436, 29876, 29915, 13, 462, 4706, 29536, 353, 29536, 7503, 29899, 1311, 29889, 22255, 3919, 29918, 14226, 29962, 13, 462, 4706, 3573, 4619, 29536, 718, 525, 1012, 29876, 29915, 13, 18884, 1683, 29901, 13, 462, 1678, 3573, 4619, 1583, 29889, 11294, 6255, 13554, 29898, 2248, 29892, 1899, 4736, 1170, 29892, 6251, 29892, 995, 1170, 718, 2130, 26486, 29892, 29536, 29897, 13, 13, 4706, 736, 3573, 718, 12464, 13, 1678, 396, 343, 481, 29888, 29901, 9025, 13, 2 ]
sdk/keyvault/azure-keyvault/azure/keyvault/v7_3_preview/models/key_vault_client_enums.py
mccoyp/azure-keyvault-7.3-preview
0
82890
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from enum import Enum class DeletionRecoveryLevel(str, Enum): purgeable = "Purgeable" #: Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.) recoverable_purgeable = "Recoverable+Purgeable" #: Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval (90 days), unless a Purge operation is requested, or the subscription is cancelled. System wil permanently delete it after 90 days, if not recovered recoverable = "Recoverable" #: Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval(90 days) and while the subscription is still available. System wil permanently delete it after 90 days, if not recovered recoverable_protected_subscription = "Recoverable+ProtectedSubscription" #: Denotes a vault and subscription state in which deletion is recoverable within retention interval (90 days), immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled. System wil permanently delete it after 90 days, if not recovered customized_recoverable_purgeable = "CustomizedRecoverable+Purgeable" #: Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90). This level guarantees the recoverability of the deleted entity during the retention interval, unless a Purge operation is requested, or the subscription is cancelled. customized_recoverable = "CustomizedRecoverable" #: Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge when 7<= SoftDeleteRetentionInDays < 90).This level guarantees the recoverability of the deleted entity during the retention interval and while the subscription is still available. customized_recoverable_protected_subscription = "CustomizedRecoverable+ProtectedSubscription" #: Denotes a vault and subscription state in which deletion is recoverable, immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled when 7<= SoftDeleteRetentionInDays < 90. This level guarantees the recoverability of the deleted entity during the retention interval, and also reflects the fact that the subscription itself cannot be cancelled. class JsonWebKeyType(str, Enum): ec = "EC" ec_hsm = "EC-HSM" rsa = "RSA" rsa_hsm = "RSA-HSM" oct = "oct" oct_hsm = "oct-HSM" class JsonWebKeyCurveName(str, Enum): p_256 = "P-256" p_384 = "P-384" p_521 = "P-521" p_256_k = "P-256K" class JsonWebKeyOperation(str, Enum): encrypt = "encrypt" decrypt = "decrypt" sign = "sign" verify = "verify" wrap_key = "wrapKey" unwrap_key = "unwrapKey" import_enum = "import" export = "export" class KeyEncryptionAlgorithm(str, Enum): ckm_rsa_aes_key_wrap = "CKM_RSA_AES_KEY_WRAP" rsa_aes_key_wrap_256 = "RSA_AES_KEY_WRAP_256" rsa_aes_key_wrap_384 = "RSA_AES_KEY_WRAP_384" class JsonWebKeyEncryptionAlgorithm(str, Enum): rsa_oaep = "RSA-OAEP" rsa_oaep_256 = "RSA-OAEP-256" rsa1_5 = "RSA1_5" a128_gcm = "A128GCM" a192_gcm = "A192GCM" a256_gcm = "A256GCM" a128_kw = "A128KW" a192_kw = "A192KW" a256_kw = "A256KW" a128_cbc = "A128CBC" a192_cbc = "A192CBC" a256_cbc = "A256CBC" a128_cbcpad = "A128CBCPAD" a192_cbcpad = "A192CBCPAD" a256_cbcpad = "A256CBCPAD" class JsonWebKeySignatureAlgorithm(str, Enum): ps256 = "PS256" #: RSASSA-PSS using SHA-256 and MGF1 with SHA-256, as described in https://tools.ietf.org/html/rfc7518 ps384 = "PS384" #: RSASSA-PSS using SHA-384 and MGF1 with SHA-384, as described in https://tools.ietf.org/html/rfc7518 ps512 = "PS512" #: RSASSA-PSS using SHA-512 and MGF1 with SHA-512, as described in https://tools.ietf.org/html/rfc7518 rs256 = "RS256" #: RSASSA-PKCS1-v1_5 using SHA-256, as described in https://tools.ietf.org/html/rfc7518 rs384 = "RS384" #: RSASSA-PKCS1-v1_5 using SHA-384, as described in https://tools.ietf.org/html/rfc7518 rs512 = "RS512" #: RSASSA-PKCS1-v1_5 using SHA-512, as described in https://tools.ietf.org/html/rfc7518 rsnull = "RSNULL" #: Reserved es256 = "ES256" #: ECDSA using P-256 and SHA-256, as described in https://tools.ietf.org/html/rfc7518. es384 = "ES384" #: ECDSA using P-384 and SHA-384, as described in https://tools.ietf.org/html/rfc7518 es512 = "ES512" #: ECDSA using P-521 and SHA-512, as described in https://tools.ietf.org/html/rfc7518 es256_k = "ES256K" #: ECDSA using P-256K and SHA-256, as described in https://tools.ietf.org/html/rfc7518 class KeyUsageType(str, Enum): digital_signature = "digitalSignature" non_repudiation = "nonRepudiation" key_encipherment = "keyEncipherment" data_encipherment = "dataEncipherment" key_agreement = "keyAgreement" key_cert_sign = "keyCertSign" c_rl_sign = "cRLSign" encipher_only = "encipherOnly" decipher_only = "decipherOnly" class ActionType(str, Enum): email_contacts = "EmailContacts" auto_renew = "AutoRenew" class OperationStatus(str, Enum): success = "Success" in_progress = "InProgress" failed = "Failed" class SasTokenType(str, Enum): account = "account" service = "service"
[ 1, 396, 14137, 29922, 9420, 29899, 29947, 13, 29937, 448, 2683, 2683, 2683, 2683, 1378, 29899, 13, 29937, 14187, 1266, 313, 29883, 29897, 7783, 15025, 29889, 2178, 10462, 21676, 29889, 13, 29937, 10413, 21144, 1090, 278, 341, 1806, 19245, 29889, 2823, 19245, 29889, 3945, 297, 278, 2060, 3876, 363, 13, 29937, 19405, 2472, 29889, 13, 29937, 13, 29937, 5920, 5759, 491, 7783, 313, 29934, 29897, 11133, 15078, 5920, 3251, 1061, 29889, 13, 29937, 678, 6916, 1122, 4556, 10240, 6030, 322, 674, 367, 5714, 565, 278, 775, 338, 13, 29937, 1072, 759, 630, 29889, 13, 29937, 448, 2683, 2683, 2683, 2683, 1378, 29899, 13, 13, 3166, 14115, 1053, 1174, 398, 13, 13, 13, 1990, 897, 1026, 291, 4789, 22205, 10108, 29898, 710, 29892, 1174, 398, 1125, 13, 13, 1678, 3708, 479, 519, 353, 376, 29925, 332, 479, 519, 29908, 29871, 396, 29901, 3384, 4769, 263, 325, 1292, 2106, 297, 607, 7374, 291, 338, 385, 19950, 874, 1821, 5858, 29892, 1728, 278, 13331, 363, 24205, 29889, 910, 3233, 16161, 304, 694, 13047, 1641, 3625, 2750, 263, 21267, 5858, 29936, 278, 848, 338, 19950, 509, 10384, 2197, 5714, 2501, 25967, 263, 21267, 5858, 472, 278, 7855, 3233, 470, 6133, 313, 29894, 1292, 29892, 6503, 2318, 29892, 25691, 2992, 1846, 13, 1678, 9792, 519, 29918, 15503, 479, 519, 353, 376, 4789, 957, 519, 29974, 29925, 332, 479, 519, 29908, 29871, 396, 29901, 3384, 4769, 263, 325, 1292, 2106, 297, 607, 7374, 291, 338, 9792, 519, 29892, 322, 607, 884, 3635, 1169, 16800, 322, 17667, 7374, 291, 313, 29875, 29889, 29872, 29889, 3708, 479, 467, 910, 3233, 10509, 267, 278, 9792, 3097, 310, 278, 11132, 7855, 2645, 278, 3240, 2509, 7292, 313, 29929, 29900, 3841, 511, 6521, 263, 15247, 479, 5858, 338, 13877, 29892, 470, 278, 25691, 338, 12611, 839, 29889, 2184, 28292, 9410, 2705, 5217, 372, 1156, 29871, 29929, 29900, 3841, 29892, 565, 451, 24776, 13, 1678, 9792, 519, 353, 376, 4789, 957, 519, 29908, 29871, 396, 29901, 3384, 4769, 263, 325, 1292, 2106, 297, 607, 7374, 291, 338, 9792, 519, 1728, 278, 13331, 363, 16800, 322, 17667, 7374, 291, 313, 29875, 29889, 29872, 29889, 3708, 479, 467, 910, 3233, 10509, 267, 278, 9792, 3097, 310, 278, 11132, 7855, 2645, 278, 3240, 2509, 7292, 29898, 29929, 29900, 3841, 29897, 322, 1550, 278, 25691, 338, 1603, 3625, 29889, 2184, 28292, 9410, 2705, 5217, 372, 1156, 29871, 29929, 29900, 3841, 29892, 565, 451, 24776, 13, 1678, 9792, 519, 29918, 24681, 29918, 1491, 22371, 353, 376, 4789, 957, 519, 29974, 1184, 371, 2954, 4035, 22371, 29908, 29871, 396, 29901, 3384, 4769, 263, 325, 1292, 322, 25691, 2106, 297, 607, 7374, 291, 338, 9792, 519, 2629, 3240, 2509, 7292, 313, 29929, 29900, 3841, 511, 16800, 322, 17667, 7374, 291, 313, 29875, 29889, 29872, 29889, 3708, 479, 29897, 338, 451, 21905, 29892, 322, 297, 607, 278, 25691, 3528, 29871, 2609, 367, 9410, 2705, 508, 346, 839, 29889, 2184, 28292, 9410, 2705, 5217, 372, 1156, 29871, 29929, 29900, 3841, 29892, 565, 451, 24776, 13, 1678, 2888, 1891, 29918, 3757, 957, 519, 29918, 15503, 479, 519, 353, 376, 7281, 1891, 4789, 957, 519, 29974, 29925, 332, 479, 519, 29908, 29871, 396, 29901, 3384, 4769, 263, 325, 1292, 2106, 297, 607, 7374, 291, 338, 9792, 519, 29892, 322, 607, 884, 3635, 1169, 16800, 322, 17667, 7374, 291, 313, 29875, 29889, 29872, 29889, 3708, 479, 746, 29871, 29955, 14065, 1105, 615, 12498, 8015, 2509, 797, 25991, 529, 29871, 29929, 29900, 467, 910, 3233, 10509, 267, 278, 9792, 3097, 310, 278, 11132, 7855, 2645, 278, 3240, 2509, 7292, 29892, 6521, 263, 15247, 479, 5858, 338, 13877, 29892, 470, 278, 25691, 338, 12611, 839, 29889, 13, 1678, 2888, 1891, 29918, 3757, 957, 519, 353, 376, 7281, 1891, 4789, 957, 519, 29908, 29871, 396, 29901, 3384, 4769, 263, 325, 1292, 2106, 297, 607, 7374, 291, 338, 9792, 519, 1728, 278, 13331, 363, 16800, 322, 17667, 7374, 291, 313, 29875, 29889, 29872, 29889, 3708, 479, 746, 29871, 29955, 14065, 1105, 615, 12498, 8015, 2509, 797, 25991, 529, 29871, 29929, 29900, 467, 4013, 3233, 10509, 267, 278, 9792, 3097, 310, 278, 11132, 7855, 2645, 278, 3240, 2509, 7292, 322, 1550, 278, 25691, 338, 1603, 3625, 29889, 13, 1678, 2888, 1891, 29918, 3757, 957, 519, 29918, 24681, 29918, 1491, 22371, 353, 376, 7281, 1891, 4789, 957, 519, 29974, 1184, 371, 2954, 4035, 22371, 29908, 29871, 396, 29901, 3384, 4769, 263, 325, 1292, 322, 25691, 2106, 297, 607, 7374, 291, 338, 9792, 519, 29892, 16800, 322, 17667, 7374, 291, 313, 29875, 29889, 29872, 29889, 3708, 479, 29897, 338, 451, 21905, 29892, 322, 297, 607, 278, 25691, 3528, 2609, 367, 9410, 2705, 508, 346, 839, 746, 29871, 29955, 14065, 1105, 615, 12498, 8015, 2509, 797, 25991, 529, 29871, 29929, 29900, 29889, 910, 3233, 10509, 267, 278, 9792, 3097, 310, 278, 11132, 7855, 2645, 278, 3240, 2509, 7292, 29892, 322, 884, 9432, 29879, 278, 2114, 393, 278, 25691, 3528, 2609, 367, 12611, 839, 29889, 13, 13, 13, 1990, 14355, 3609, 2558, 1542, 29898, 710, 29892, 1174, 398, 1125, 13, 13, 1678, 21226, 353, 376, 11206, 29908, 13, 1678, 21226, 29918, 29882, 3844, 353, 376, 11206, 29899, 14851, 29924, 29908, 13, 1678, 364, 4977, 353, 376, 29934, 8132, 29908, 13, 1678, 364, 4977, 29918, 29882, 3844, 353, 376, 29934, 8132, 29899, 14851, 29924, 29908, 13, 1678, 4725, 353, 376, 20082, 29908, 13, 1678, 4725, 29918, 29882, 3844, 353, 376, 20082, 29899, 14851, 29924, 29908, 13, 13, 13, 1990, 14355, 3609, 2558, 23902, 345, 1170, 29898, 710, 29892, 1174, 398, 1125, 13, 13, 1678, 282, 29918, 29906, 29945, 29953, 353, 376, 29925, 29899, 29906, 29945, 29953, 29908, 13, 1678, 282, 29918, 29941, 29947, 29946, 353, 376, 29925, 29899, 29941, 29947, 29946, 29908, 13, 1678, 282, 29918, 29945, 29906, 29896, 353, 376, 29925, 29899, 29945, 29906, 29896, 29908, 13, 1678, 282, 29918, 29906, 29945, 29953, 29918, 29895, 353, 376, 29925, 29899, 29906, 29945, 29953, 29968, 29908, 13, 13, 13, 1990, 14355, 3609, 2558, 10925, 29898, 710, 29892, 1174, 398, 1125, 13, 13, 1678, 27924, 353, 376, 3977, 4641, 29908, 13, 1678, 1602, 4641, 353, 376, 7099, 4641, 29908, 13, 1678, 1804, 353, 376, 4530, 29908, 13, 1678, 11539, 353, 376, 27902, 29908, 13, 1678, 12244, 29918, 1989, 353, 376, 6312, 2558, 29908, 13, 1678, 443, 6312, 29918, 1989, 353, 376, 26238, 2558, 29908, 13, 1678, 1053, 29918, 18605, 353, 376, 5215, 29908, 13, 1678, 5609, 353, 376, 15843, 29908, 13, 13, 13, 1990, 7670, 8566, 14272, 22461, 4540, 29898, 710, 29892, 1174, 398, 1125, 13, 13, 1678, 274, 8848, 29918, 2288, 29874, 29918, 28628, 29918, 1989, 29918, 6312, 353, 376, 7077, 29924, 29918, 29934, 8132, 29918, 29909, 2890, 29918, 10818, 29918, 9980, 3301, 29908, 13, 1678, 364, 4977, 29918, 28628, 29918, 1989, 29918, 6312, 29918, 29906, 29945, 29953, 353, 376, 29934, 8132, 29918, 29909, 2890, 29918, 10818, 29918, 9980, 3301, 29918, 29906, 29945, 29953, 29908, 13, 1678, 364, 4977, 29918, 28628, 29918, 1989, 29918, 6312, 29918, 29941, 29947, 29946, 353, 376, 29934, 8132, 29918, 29909, 2890, 29918, 10818, 29918, 9980, 3301, 29918, 29941, 29947, 29946, 29908, 13, 13, 13, 1990, 14355, 3609, 2558, 8566, 14272, 22461, 4540, 29898, 710, 29892, 1174, 398, 1125, 13, 13, 1678, 364, 4977, 29918, 19807, 1022, 353, 376, 29934, 8132, 29899, 29949, 29909, 15488, 29908, 13, 1678, 364, 4977, 29918, 19807, 1022, 29918, 29906, 29945, 29953, 353, 376, 29934, 8132, 29899, 29949, 29909, 15488, 29899, 29906, 29945, 29953, 29908, 13, 1678, 364, 4977, 29896, 29918, 29945, 353, 376, 29934, 8132, 29896, 29918, 29945, 29908, 13, 1678, 263, 29896, 29906, 29947, 29918, 29887, 4912, 353, 376, 29909, 29896, 29906, 29947, 8766, 29924, 29908, 13, 1678, 263, 29896, 29929, 29906, 29918, 29887, 4912, 353, 376, 29909, 29896, 29929, 29906, 8766, 29924, 29908, 13, 1678, 263, 29906, 29945, 29953, 29918, 29887, 4912, 353, 376, 29909, 29906, 29945, 29953, 8766, 29924, 29908, 13, 1678, 263, 29896, 29906, 29947, 29918, 11022, 353, 376, 29909, 29896, 29906, 29947, 29968, 29956, 29908, 13, 1678, 263, 29896, 29929, 29906, 29918, 11022, 353, 376, 29909, 29896, 29929, 29906, 29968, 29956, 29908, 13, 1678, 263, 29906, 29945, 29953, 29918, 11022, 353, 376, 29909, 29906, 29945, 29953, 29968, 29956, 29908, 13, 1678, 263, 29896, 29906, 29947, 29918, 10702, 29883, 353, 376, 29909, 29896, 29906, 29947, 29907, 5371, 29908, 13, 1678, 263, 29896, 29929, 29906, 29918, 10702, 29883, 353, 376, 29909, 29896, 29929, 29906, 29907, 5371, 29908, 13, 1678, 263, 29906, 29945, 29953, 29918, 10702, 29883, 353, 376, 29909, 29906, 29945, 29953, 29907, 5371, 29908, 13, 1678, 263, 29896, 29906, 29947, 29918, 10702, 6814, 328, 353, 376, 29909, 29896, 29906, 29947, 29907, 5371, 29925, 3035, 29908, 13, 1678, 263, 29896, 29929, 29906, 29918, 10702, 6814, 328, 353, 376, 29909, 29896, 29929, 29906, 29907, 5371, 29925, 3035, 29908, 13, 1678, 263, 29906, 29945, 29953, 29918, 10702, 6814, 328, 353, 376, 29909, 29906, 29945, 29953, 29907, 5371, 29925, 3035, 29908, 13, 13, 13, 1990, 14355, 3609, 2558, 10140, 1535, 22461, 4540, 29898, 710, 29892, 1174, 398, 1125, 13, 13, 1678, 6529, 29906, 29945, 29953, 353, 376, 7024, 29906, 29945, 29953, 29908, 29871, 396, 29901, 390, 8132, 1799, 29909, 29899, 29925, 1799, 773, 317, 15715, 29899, 29906, 29945, 29953, 322, 341, 29954, 29943, 29896, 411, 317, 15715, 29899, 29906, 29945, 29953, 29892, 408, 5439, 297, 2045, 597, 8504, 29889, 2035, 29888, 29889, 990, 29914, 1420, 29914, 9600, 29883, 29955, 29945, 29896, 29947, 13, 1678, 6529, 29941, 29947, 29946, 353, 376, 7024, 29941, 29947, 29946, 29908, 29871, 396, 29901, 390, 8132, 1799, 29909, 29899, 29925, 1799, 773, 317, 15715, 29899, 29941, 29947, 29946, 322, 341, 29954, 29943, 29896, 411, 317, 15715, 29899, 29941, 29947, 29946, 29892, 408, 5439, 297, 2045, 597, 8504, 29889, 2035, 29888, 29889, 990, 29914, 1420, 29914, 9600, 29883, 29955, 29945, 29896, 29947, 13, 1678, 6529, 29945, 29896, 29906, 353, 376, 7024, 29945, 29896, 29906, 29908, 29871, 396, 29901, 390, 8132, 1799, 29909, 29899, 29925, 1799, 773, 317, 15715, 29899, 29945, 29896, 29906, 322, 341, 29954, 29943, 29896, 411, 317, 15715, 29899, 29945, 29896, 29906, 29892, 408, 5439, 297, 2045, 597, 8504, 29889, 2035, 29888, 29889, 990, 29914, 1420, 29914, 9600, 29883, 29955, 29945, 29896, 29947, 13, 1678, 20371, 29906, 29945, 29953, 353, 376, 12445, 29906, 29945, 29953, 29908, 29871, 396, 29901, 390, 8132, 1799, 29909, 29899, 21738, 9295, 29896, 29899, 29894, 29896, 29918, 29945, 773, 317, 15715, 29899, 29906, 29945, 29953, 29892, 408, 5439, 297, 2045, 597, 8504, 29889, 2035, 29888, 29889, 990, 29914, 1420, 29914, 9600, 29883, 29955, 29945, 29896, 29947, 13, 1678, 20371, 29941, 29947, 29946, 353, 376, 12445, 29941, 29947, 29946, 29908, 29871, 396, 29901, 390, 8132, 1799, 29909, 29899, 21738, 9295, 29896, 29899, 29894, 29896, 29918, 29945, 773, 317, 15715, 29899, 29941, 29947, 29946, 29892, 408, 5439, 297, 2045, 597, 8504, 29889, 2035, 29888, 29889, 990, 29914, 1420, 29914, 9600, 29883, 29955, 29945, 29896, 29947, 13, 1678, 20371, 29945, 29896, 29906, 353, 376, 12445, 29945, 29896, 29906, 29908, 29871, 396, 29901, 390, 8132, 1799, 29909, 29899, 21738, 9295, 29896, 29899, 29894, 29896, 29918, 29945, 773, 317, 15715, 29899, 29945, 29896, 29906, 29892, 408, 5439, 297, 2045, 597, 8504, 29889, 2035, 29888, 29889, 990, 29914, 1420, 29914, 9600, 29883, 29955, 29945, 29896, 29947, 13, 1678, 20371, 4304, 353, 376, 12445, 10074, 29908, 29871, 396, 29901, 2538, 9841, 13, 1678, 831, 29906, 29945, 29953, 353, 376, 2890, 29906, 29945, 29953, 29908, 29871, 396, 29901, 382, 6530, 8132, 773, 349, 29899, 29906, 29945, 29953, 322, 317, 15715, 29899, 29906, 29945, 29953, 29892, 408, 5439, 297, 2045, 597, 8504, 29889, 2035, 29888, 29889, 990, 29914, 1420, 29914, 9600, 29883, 29955, 29945, 29896, 29947, 29889, 13, 1678, 831, 29941, 29947, 29946, 353, 376, 2890, 29941, 29947, 29946, 29908, 29871, 396, 29901, 382, 6530, 8132, 773, 349, 29899, 29941, 29947, 29946, 322, 317, 15715, 29899, 29941, 29947, 29946, 29892, 408, 5439, 297, 2045, 597, 8504, 29889, 2035, 29888, 29889, 990, 29914, 1420, 29914, 9600, 29883, 29955, 29945, 29896, 29947, 13, 1678, 831, 29945, 29896, 29906, 353, 376, 2890, 29945, 29896, 29906, 29908, 29871, 396, 29901, 382, 6530, 8132, 773, 349, 29899, 29945, 29906, 29896, 322, 317, 15715, 29899, 29945, 29896, 29906, 29892, 408, 5439, 297, 2045, 597, 8504, 29889, 2035, 29888, 29889, 990, 29914, 1420, 29914, 9600, 29883, 29955, 29945, 29896, 29947, 13, 1678, 831, 29906, 29945, 29953, 29918, 29895, 353, 376, 2890, 29906, 29945, 29953, 29968, 29908, 29871, 396, 29901, 382, 6530, 8132, 773, 349, 29899, 29906, 29945, 29953, 29968, 322, 317, 15715, 29899, 29906, 29945, 29953, 29892, 408, 5439, 297, 2045, 597, 8504, 29889, 2035, 29888, 29889, 990, 29914, 1420, 29914, 9600, 29883, 29955, 29945, 29896, 29947, 13, 13, 13, 1990, 7670, 27573, 1542, 29898, 710, 29892, 1174, 398, 1125, 13, 13, 1678, 13436, 29918, 4530, 1535, 353, 376, 7501, 2410, 10140, 1535, 29908, 13, 1678, 1661, 29918, 3445, 4749, 362, 353, 376, 5464, 5612, 4749, 362, 29908, 13, 1678, 1820, 29918, 13640, 8096, 358, 353, 376, 1989, 2369, 455, 8096, 358, 29908, 13, 1678, 848, 29918, 13640, 8096, 358, 353, 376, 1272, 2369, 455, 8096, 358, 29908, 13, 1678, 1820, 29918, 351, 276, 882, 353, 376, 1989, 29909, 7979, 882, 29908, 13, 1678, 1820, 29918, 6327, 29918, 4530, 353, 376, 1989, 20455, 10140, 29908, 13, 1678, 274, 29918, 2096, 29918, 4530, 353, 376, 29883, 2241, 10140, 29908, 13, 1678, 427, 455, 8096, 29918, 6194, 353, 376, 13640, 8096, 11730, 29908, 13, 1678, 316, 455, 8096, 29918, 6194, 353, 376, 311, 455, 8096, 11730, 29908, 13, 13, 13, 1990, 9123, 1542, 29898, 710, 29892, 1174, 398, 1125, 13, 13, 1678, 4876, 29918, 12346, 29879, 353, 376, 9823, 13443, 29879, 29908, 13, 1678, 4469, 29918, 1267, 809, 353, 376, 12300, 29934, 264, 809, 29908, 13, 13, 13, 1990, 20462, 5709, 29898, 710, 29892, 1174, 398, 1125, 13, 13, 1678, 2551, 353, 376, 14191, 29908, 13, 1678, 297, 29918, 18035, 353, 376, 797, 14470, 29908, 13, 1678, 5229, 353, 376, 17776, 29908, 13, 13, 13, 1990, 317, 294, 6066, 1542, 29898, 710, 29892, 1174, 398, 1125, 13, 13, 1678, 3633, 353, 376, 10149, 29908, 13, 1678, 2669, 353, 376, 5509, 29908, 13, 2 ]
boilerplate_app/tasks.py
taher-systango/DjangoUnboxed
68
187728
<gh_stars>10-100 from celery import shared_task @shared_task def add(a, b): return (a+b)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 3166, 6432, 708, 1053, 7258, 29918, 7662, 13, 13, 13, 29992, 12366, 29918, 7662, 13, 1753, 788, 29898, 29874, 29892, 289, 1125, 13, 1678, 736, 313, 29874, 29974, 29890, 29897, 13, 2 ]
model/Encoder.py
ECCV7129/ECCV2022_submission_7129
1
173176
from torch import nn import torch from model.Swin import SwinTransformer3D import copy class swin_encoder(nn.Module): def __init__(self , device , drop , checkpoint_encoder): super().__init__() checkpoint = checkpoint_encoder self.device=device self.label= 'demo/label_map_k400.txt' self.model=SwinTransformer3D( embed_dim=128, depths=[2, 2, 18, 2], num_heads=[4, 8, 16, 32], window_size=(8, 7, 7), patch_size=(2, 4, 4), drop_path_rate=0.1, mlp_ratio=4., qkv_bias=True, qk_scale=None, drop_rate=drop, attn_drop_rate=drop, patch_norm=True) checkpoint = torch.load(checkpoint, map_location=device) state_dict2 = copy.deepcopy(checkpoint['state_dict']) state_dict = dict() for key in checkpoint['state_dict']: if 'backbone.' in key: new_key = key.replace('backbone.', '') state_dict[new_key] = state_dict2.pop(key) self.model.load_state_dict(state_dict) self.model = self.model.to(device) self.max_testing_views = None def forward(self, imgs): batches = imgs.shape[0] imgs = imgs.reshape((-1,) + imgs.shape[2:]) feat = self.model.forward(imgs) # perform spatio-temporal pooling avg_pool = nn.AdaptiveAvgPool2d((1, 1)) feat = avg_pool(feat) # squeeze dimensions feat = feat.view(batches, feat.shape[1], feat.shape[2]) feat = feat.permute(0, 2, 1) return feat
[ 1, 515, 4842, 305, 1053, 302, 29876, 13, 5215, 4842, 305, 13, 3166, 1904, 29889, 29903, 5080, 1053, 3925, 262, 13372, 261, 29941, 29928, 13, 5215, 3509, 13, 1990, 2381, 262, 29918, 3977, 6119, 29898, 15755, 29889, 7355, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 1919, 4742, 1919, 5768, 1919, 1423, 3149, 29918, 3977, 6119, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1423, 3149, 353, 1423, 3149, 29918, 3977, 6119, 13, 4706, 1583, 29889, 10141, 29922, 10141, 13, 4706, 1583, 29889, 1643, 29922, 525, 17482, 29914, 1643, 29918, 1958, 29918, 29895, 29946, 29900, 29900, 29889, 3945, 29915, 13, 13, 4706, 1583, 29889, 4299, 29922, 29903, 5080, 13372, 261, 29941, 29928, 29898, 13, 9651, 8297, 29918, 6229, 29922, 29896, 29906, 29947, 29892, 13, 9651, 10809, 29879, 11759, 29906, 29892, 29871, 29906, 29892, 29871, 29896, 29947, 29892, 29871, 29906, 1402, 13, 9651, 954, 29918, 2813, 29879, 11759, 29946, 29892, 29871, 29947, 29892, 29871, 29896, 29953, 29892, 29871, 29941, 29906, 1402, 13, 9651, 3474, 29918, 2311, 7607, 29947, 29892, 29871, 29955, 29892, 29871, 29955, 511, 13, 9651, 13261, 29918, 2311, 7607, 29906, 29892, 29871, 29946, 29892, 29871, 29946, 511, 13, 9651, 5768, 29918, 2084, 29918, 10492, 29922, 29900, 29889, 29896, 29892, 13, 9651, 286, 22833, 29918, 3605, 601, 29922, 29946, 1696, 13, 9651, 3855, 27049, 29918, 29890, 3173, 29922, 5574, 29892, 13, 9651, 3855, 29895, 29918, 7052, 29922, 8516, 29892, 13, 9651, 5768, 29918, 10492, 29922, 8865, 29892, 13, 9651, 1098, 29876, 29918, 8865, 29918, 10492, 29922, 8865, 29892, 13, 13, 9651, 13261, 29918, 12324, 29922, 5574, 29897, 13, 13, 4706, 1423, 3149, 353, 4842, 305, 29889, 1359, 29898, 3198, 3149, 29892, 2910, 29918, 5479, 29922, 10141, 29897, 13, 4706, 2106, 29918, 8977, 29906, 353, 3509, 29889, 24535, 8552, 29898, 3198, 3149, 1839, 3859, 29918, 8977, 11287, 13, 4706, 2106, 29918, 8977, 353, 9657, 580, 13, 4706, 363, 1820, 297, 1423, 3149, 1839, 3859, 29918, 8977, 2033, 29901, 13, 9651, 565, 525, 1627, 15933, 6169, 297, 1820, 29901, 13, 18884, 716, 29918, 1989, 353, 1820, 29889, 6506, 877, 1627, 15933, 29889, 742, 27255, 13, 18884, 2106, 29918, 8977, 29961, 1482, 29918, 1989, 29962, 353, 2106, 29918, 8977, 29906, 29889, 7323, 29898, 1989, 29897, 13, 13, 4706, 1583, 29889, 4299, 29889, 1359, 29918, 3859, 29918, 8977, 29898, 3859, 29918, 8977, 29897, 13, 4706, 1583, 29889, 4299, 353, 1583, 29889, 4299, 29889, 517, 29898, 10141, 29897, 13, 4706, 1583, 29889, 3317, 29918, 13424, 29918, 7406, 353, 6213, 13, 13, 13, 13, 1678, 822, 6375, 29898, 1311, 29892, 527, 3174, 1125, 13, 4706, 9853, 267, 353, 527, 3174, 29889, 12181, 29961, 29900, 29962, 13, 4706, 527, 3174, 353, 527, 3174, 29889, 690, 14443, 3552, 29899, 29896, 29892, 29897, 718, 527, 3174, 29889, 12181, 29961, 29906, 29901, 2314, 13, 13, 4706, 1238, 271, 353, 1583, 29889, 4299, 29889, 11333, 29898, 2492, 29879, 29897, 13, 13, 4706, 396, 2189, 805, 20819, 29899, 1356, 1971, 284, 11565, 292, 13, 4706, 1029, 29887, 29918, 10109, 353, 302, 29876, 29889, 29909, 1388, 415, 573, 12810, 29887, 11426, 29906, 29881, 3552, 29896, 29892, 29871, 29896, 876, 13, 4706, 1238, 271, 353, 1029, 29887, 29918, 10109, 29898, 1725, 271, 29897, 13, 4706, 396, 269, 802, 29872, 911, 13391, 13, 4706, 1238, 271, 353, 1238, 271, 29889, 1493, 29898, 16175, 267, 29892, 1238, 271, 29889, 12181, 29961, 29896, 1402, 1238, 271, 29889, 12181, 29961, 29906, 2314, 13, 4706, 1238, 271, 353, 1238, 271, 29889, 17858, 1082, 29898, 29900, 29892, 29871, 29906, 29892, 29871, 29896, 29897, 13, 4706, 736, 1238, 271, 13, 13, 13, 13, 13, 13, 2 ]
module_pie_chart.py
barnett617/python_analysis
2
129135
<gh_stars>1-10 # -*-coding:utf-8-*- # 饼状图 from matplotlib import pyplot as plt import data_source # 数据源 mobile_176xxxx4617 = data_source.mobile_176xxxx4617 mobile_155xxxx9617 = data_source.mobile_155xxxx9617 mobile_173xxxx9636 = data_source.mobile_173xxxx9636 mobile_176xxxx4617_sum = 0 mobile_155xxxx9617_sum = 0 mobile_173xxxx9636_sum = 0 for i in mobile_176xxxx4617: mobile_176xxxx4617_sum += i for i in mobile_155xxxx9617: mobile_155xxxx9617_sum += i for i in mobile_173xxxx9636: mobile_173xxxx9636_sum += i # 调节图形大小,宽,高 plt.figure(figsize=(12, 8)) # 定义饼状图的标签,标签是列表 labels = ['号码176xxxx4617:' + str(round(mobile_176xxxx4617_sum, 3)) + '元', '号码155xxxx9617:' + str(round(mobile_155xxxx9617_sum, 3)) + '元', '号码173xxxx9636:' + str(round(mobile_173xxxx9636_sum, 3)) + '元'] # 每个标签占多大,会自动去算百分比 sizes = [mobile_176xxxx4617_sum, mobile_155xxxx9617_sum, mobile_173xxxx9636_sum] # 将某部分爆炸出来, 使用括号,将第一块分割出来,数值的大小是分割出来的与其他两块的间隙 explode = (0.05, 0, 0) patches, l_text, p_text = plt.pie(sizes, explode=explode, labels=labels, labeldistance=1.1, autopct='%3.1f%%', shadow=False, startangle=90, pctdistance=0.6) # labeldistance,文本的位置离远点有多远,1.1指1.1倍半径的位置 # autopct,圆里面的文本格式,%3.1f%%表示小数有三位,整数有一位的浮点数 # shadow,饼是否有阴影 # startangle,起始角度,0,表示从0开始逆时针转,为第一块。一般选择从90度开始比较好看 # pctdistance,百分比的text离圆心的距离 # patches, l_texts, p_texts,为了得到饼图的返回值,p_texts饼图内部文本的,l_texts饼图外label的文本 # 改变文本的大小 # 方法是把每一个text遍历。调用set_size方法设置它的属性 for t in l_text: t.set_size = (30) for t in p_text: t.set_size = (20) # 设置x,y轴刻度一致,这样饼图才能是圆的 plt.axis('equal') plt.legend() def show_plt(): plt.show()
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 448, 29930, 29899, 29883, 3689, 29901, 9420, 29899, 29947, 29899, 29930, 29899, 13, 29937, 29871, 236, 168, 191, 31531, 30861, 13, 13, 3166, 22889, 1053, 11451, 5317, 408, 14770, 13, 5215, 848, 29918, 4993, 13, 13, 29937, 29871, 30354, 30763, 31193, 13, 16769, 29918, 29896, 29955, 29953, 14633, 29946, 29953, 29896, 29955, 353, 848, 29918, 4993, 29889, 16769, 29918, 29896, 29955, 29953, 14633, 29946, 29953, 29896, 29955, 13, 16769, 29918, 29896, 29945, 29945, 14633, 29929, 29953, 29896, 29955, 353, 848, 29918, 4993, 29889, 16769, 29918, 29896, 29945, 29945, 14633, 29929, 29953, 29896, 29955, 13, 16769, 29918, 29896, 29955, 29941, 14633, 29929, 29953, 29941, 29953, 353, 848, 29918, 4993, 29889, 16769, 29918, 29896, 29955, 29941, 14633, 29929, 29953, 29941, 29953, 13, 13, 16769, 29918, 29896, 29955, 29953, 14633, 29946, 29953, 29896, 29955, 29918, 2083, 353, 29871, 29900, 13, 16769, 29918, 29896, 29945, 29945, 14633, 29929, 29953, 29896, 29955, 29918, 2083, 353, 29871, 29900, 13, 16769, 29918, 29896, 29955, 29941, 14633, 29929, 29953, 29941, 29953, 29918, 2083, 353, 29871, 29900, 13, 13, 1454, 474, 297, 10426, 29918, 29896, 29955, 29953, 14633, 29946, 29953, 29896, 29955, 29901, 13, 1678, 10426, 29918, 29896, 29955, 29953, 14633, 29946, 29953, 29896, 29955, 29918, 2083, 4619, 474, 13, 13, 1454, 474, 297, 10426, 29918, 29896, 29945, 29945, 14633, 29929, 29953, 29896, 29955, 29901, 13, 1678, 10426, 29918, 29896, 29945, 29945, 14633, 29929, 29953, 29896, 29955, 29918, 2083, 4619, 474, 13, 13, 1454, 474, 297, 10426, 29918, 29896, 29955, 29941, 14633, 29929, 29953, 29941, 29953, 29901, 13, 1678, 10426, 29918, 29896, 29955, 29941, 14633, 29929, 29953, 29941, 29953, 29918, 2083, 4619, 474, 13, 13, 29937, 29871, 31268, 31669, 30861, 31305, 30257, 30446, 30214, 232, 177, 192, 30214, 30528, 13, 572, 29873, 29889, 4532, 29898, 1003, 2311, 7607, 29896, 29906, 29892, 29871, 29947, 876, 13, 29937, 29871, 30495, 31349, 236, 168, 191, 31531, 30861, 30210, 31062, 234, 176, 193, 30214, 31062, 234, 176, 193, 30392, 31025, 30746, 13, 21134, 353, 6024, 30850, 31183, 29896, 29955, 29953, 14633, 29946, 29953, 29896, 29955, 30383, 29915, 718, 851, 29898, 14486, 29898, 16769, 29918, 29896, 29955, 29953, 14633, 29946, 29953, 29896, 29955, 29918, 2083, 29892, 29871, 29941, 876, 718, 525, 30824, 742, 13, 3986, 525, 30850, 31183, 29896, 29945, 29945, 14633, 29929, 29953, 29896, 29955, 30383, 29915, 718, 851, 29898, 14486, 29898, 16769, 29918, 29896, 29945, 29945, 14633, 29929, 29953, 29896, 29955, 29918, 2083, 29892, 29871, 29941, 876, 718, 525, 30824, 742, 13, 3986, 525, 30850, 31183, 29896, 29955, 29941, 14633, 29929, 29953, 29941, 29953, 30383, 29915, 718, 851, 29898, 14486, 29898, 16769, 29918, 29896, 29955, 29941, 14633, 29929, 29953, 29941, 29953, 29918, 2083, 29892, 29871, 29941, 876, 718, 525, 30824, 2033, 13, 29937, 29871, 31951, 30502, 31062, 234, 176, 193, 232, 144, 163, 30923, 30257, 30214, 30437, 30688, 30846, 31475, 31565, 31047, 30748, 31419, 13, 29879, 7093, 353, 518, 16769, 29918, 29896, 29955, 29953, 14633, 29946, 29953, 29896, 29955, 29918, 2083, 29892, 10426, 29918, 29896, 29945, 29945, 14633, 29929, 29953, 29896, 29955, 29918, 2083, 29892, 10426, 29918, 29896, 29955, 29941, 14633, 29929, 29953, 29941, 29953, 29918, 2083, 29962, 13, 29937, 29871, 30998, 233, 162, 147, 30636, 30748, 234, 139, 137, 234, 133, 187, 30544, 30805, 30214, 29871, 30785, 30406, 233, 142, 175, 30850, 30214, 30998, 30622, 30287, 232, 160, 154, 30748, 232, 140, 181, 30544, 30805, 30214, 30354, 30959, 30210, 30257, 30446, 30392, 30748, 232, 140, 181, 30544, 30805, 30210, 31267, 31149, 31221, 31977, 232, 160, 154, 30210, 31016, 236, 157, 156, 13, 24516, 356, 353, 313, 29900, 29889, 29900, 29945, 29892, 29871, 29900, 29892, 29871, 29900, 29897, 13, 13, 5041, 267, 29892, 301, 29918, 726, 29892, 282, 29918, 726, 353, 14770, 29889, 12343, 29898, 29879, 7093, 29892, 3902, 356, 29922, 24516, 356, 29892, 11073, 29922, 21134, 29892, 13, 462, 462, 29871, 3858, 19244, 29922, 29896, 29889, 29896, 29892, 1120, 459, 312, 2433, 29995, 29941, 29889, 29896, 29888, 7686, 742, 15504, 29922, 8824, 29892, 13, 462, 462, 29871, 1369, 2521, 29922, 29929, 29900, 29892, 282, 312, 19244, 29922, 29900, 29889, 29953, 29897, 13, 13, 29937, 3858, 19244, 30214, 30333, 30346, 30210, 30956, 30669, 234, 169, 190, 235, 194, 159, 30940, 30417, 30923, 235, 194, 159, 30214, 29896, 29889, 29896, 31084, 29896, 29889, 29896, 232, 131, 144, 232, 144, 141, 232, 193, 135, 30210, 30956, 30669, 13, 29937, 1120, 459, 312, 30214, 232, 159, 137, 30755, 30806, 30210, 30333, 30346, 31168, 30607, 30214, 29995, 29941, 29889, 29896, 29888, 7686, 30746, 30858, 30446, 30354, 30417, 30457, 30956, 30214, 233, 152, 183, 30354, 30417, 30287, 30956, 30210, 233, 184, 177, 30940, 30354, 13, 29937, 15504, 30214, 236, 168, 191, 30392, 31191, 30417, 236, 155, 183, 31619, 13, 29937, 1369, 2521, 30214, 31558, 31020, 31432, 30898, 30214, 29900, 30214, 30746, 30858, 31594, 29900, 31026, 31020, 236, 131, 137, 30594, 236, 149, 139, 31415, 30214, 30573, 30622, 30287, 232, 160, 154, 30267, 30287, 235, 139, 175, 31333, 233, 142, 172, 31594, 29929, 29900, 30898, 31026, 31020, 31419, 235, 193, 134, 31076, 31811, 13, 29937, 282, 312, 19244, 30214, 31047, 30748, 31419, 30210, 726, 234, 169, 190, 232, 159, 137, 30869, 30210, 235, 186, 160, 234, 169, 190, 13, 29937, 13261, 267, 29892, 301, 29918, 726, 29879, 29892, 282, 29918, 726, 29879, 30214, 30573, 30743, 31050, 30780, 236, 168, 191, 30861, 30210, 31086, 30742, 30959, 30214, 29886, 29918, 726, 29879, 236, 168, 191, 30861, 30728, 30636, 30333, 30346, 30210, 30214, 29880, 29918, 726, 29879, 236, 168, 191, 30861, 31066, 1643, 30210, 30333, 30346, 13, 13, 29937, 29871, 31264, 31462, 30333, 30346, 30210, 30257, 30446, 13, 29937, 29871, 30525, 30545, 30392, 233, 141, 141, 31951, 30287, 30502, 726, 236, 132, 144, 232, 145, 137, 30267, 31268, 30406, 842, 29918, 2311, 30525, 30545, 30872, 30669, 232, 177, 134, 30210, 31360, 30952, 13, 1454, 260, 297, 301, 29918, 726, 29901, 13, 1678, 260, 29889, 842, 29918, 2311, 353, 313, 29941, 29900, 29897, 13, 1454, 260, 297, 282, 29918, 726, 29901, 13, 1678, 260, 29889, 842, 29918, 2311, 353, 313, 29906, 29900, 29897, 13, 29937, 29871, 30872, 30669, 29916, 30214, 29891, 235, 192, 183, 232, 139, 190, 30898, 30287, 235, 138, 183, 30214, 30810, 31819, 236, 168, 191, 30861, 31979, 30815, 30392, 232, 159, 137, 30210, 13, 572, 29873, 29889, 8990, 877, 11745, 1495, 13, 572, 29873, 29889, 26172, 580, 13, 13, 13, 1753, 1510, 29918, 572, 29873, 7295, 13, 1678, 14770, 29889, 4294, 580, 13, 2 ]
Questions/Chief in Chains/solution.py
leander-dsouza/Abhyudaya_2020
1
59058
<filename>Questions/Chief in Chains/solution.py<gh_stars>1-10 class Solution(object): def reconstructQueue(self, people): people.sort(key=lambda x: (-x[0], x[1])) output = [] for p in people: output.insert(p[1], p) return output m = int(input()) k = Solution() array_input = [] for x in range(m): array_input.append([int(y) for y in input().split()]) gh =k.reconstructQueue(array_input) for s in gh: print(*s)
[ 1, 529, 9507, 29958, 2182, 2297, 29914, 1451, 2575, 297, 678, 2708, 29914, 2929, 918, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 1990, 24380, 29898, 3318, 1125, 13, 13, 13, 1678, 822, 337, 11433, 10620, 29898, 1311, 29892, 2305, 1125, 13, 13, 4706, 2305, 29889, 6605, 29898, 1989, 29922, 2892, 921, 29901, 8521, 29916, 29961, 29900, 1402, 921, 29961, 29896, 12622, 13, 13, 4706, 1962, 353, 5159, 13, 4706, 363, 282, 297, 2305, 29901, 13, 9651, 1962, 29889, 7851, 29898, 29886, 29961, 29896, 1402, 282, 29897, 13, 4706, 736, 1962, 13, 13, 13, 13, 13, 29885, 353, 938, 29898, 2080, 3101, 13, 13, 29895, 353, 24380, 580, 13, 13, 2378, 29918, 2080, 353, 5159, 13, 1454, 921, 297, 3464, 29898, 29885, 1125, 13, 1678, 1409, 29918, 2080, 29889, 4397, 4197, 524, 29898, 29891, 29897, 363, 343, 297, 1881, 2141, 5451, 580, 2314, 13, 12443, 353, 29895, 29889, 276, 11433, 10620, 29898, 2378, 29918, 2080, 29897, 13, 13, 1454, 269, 297, 24170, 29901, 13, 1678, 1596, 10456, 29879, 29897, 13, 2 ]
development/testsite/blog/migrations/0002_auto_20190126_1538.py
iggy12345/django_blog
0
150287
<filename>development/testsite/blog/migrations/0002_auto_20190126_1538.py # Generated by Django 2.1.5 on 2019-01-26 21:38 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('utils', '0001_initial'), ('blog', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='blogpost', name='author', ), migrations.RemoveField( model_name='blogpost', name='id', ), migrations.RemoveField( model_name='blogpost', name='is_posted', ), migrations.RemoveField( model_name='blogpost', name='pub_date', ), migrations.RemoveField( model_name='blogpost', name='text', ), migrations.AddField( model_name='blogpost', name='textpost_ptr', field=models.OneToOneField(auto_created=True, default=0, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='utils.TextPost'), preserve_default=False, ), ]
[ 1, 529, 9507, 29958, 25431, 29914, 1688, 2746, 29914, 7312, 29914, 26983, 800, 29914, 29900, 29900, 29900, 29906, 29918, 6921, 29918, 29906, 29900, 29896, 29929, 29900, 29896, 29906, 29953, 29918, 29896, 29945, 29941, 29947, 29889, 2272, 13, 29937, 3251, 630, 491, 15337, 29871, 29906, 29889, 29896, 29889, 29945, 373, 29871, 29906, 29900, 29896, 29929, 29899, 29900, 29896, 29899, 29906, 29953, 29871, 29906, 29896, 29901, 29941, 29947, 13, 13, 3166, 9557, 29889, 2585, 1053, 9725, 800, 29892, 4733, 13, 5215, 9557, 29889, 2585, 29889, 9794, 29889, 311, 1026, 291, 13, 13, 13, 1990, 341, 16783, 29898, 26983, 800, 29889, 29924, 16783, 1125, 13, 13, 1678, 9962, 353, 518, 13, 4706, 6702, 13239, 742, 525, 29900, 29900, 29900, 29896, 29918, 11228, 5477, 13, 4706, 6702, 7312, 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, 7312, 2490, 742, 13, 9651, 1024, 2433, 8921, 742, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 15941, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 7312, 2490, 742, 13, 9651, 1024, 2433, 333, 742, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 15941, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 7312, 2490, 742, 13, 9651, 1024, 2433, 275, 29918, 2490, 287, 742, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 15941, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 7312, 2490, 742, 13, 9651, 1024, 2433, 5467, 29918, 1256, 742, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 15941, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 7312, 2490, 742, 13, 9651, 1024, 2433, 726, 742, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 2528, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 7312, 2490, 742, 13, 9651, 1024, 2433, 726, 2490, 29918, 7414, 742, 13, 9651, 1746, 29922, 9794, 29889, 6716, 1762, 6716, 3073, 29898, 6921, 29918, 11600, 29922, 5574, 29892, 2322, 29922, 29900, 29892, 373, 29918, 8143, 29922, 14095, 29889, 2585, 29889, 9794, 29889, 311, 1026, 291, 29889, 29907, 3289, 5454, 2287, 29892, 3847, 29918, 2324, 29922, 5574, 29892, 7601, 29918, 1989, 29922, 5574, 29892, 28755, 29922, 8824, 29892, 304, 2433, 13239, 29889, 1626, 6747, 5477, 13, 9651, 19905, 29918, 4381, 29922, 8824, 29892, 13, 4706, 10353, 13, 1678, 4514, 13, 2 ]
unshorten/models.py
bitmazk/django-unshorten
3
1610630
<filename>unshorten/models.py """Models for the ``unshorten`` app.""" from django.conf import settings from django.db import models from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class APICallHistoryBase(models.Model): """ Stores the amount of API calls per user per day or month. :amount_api_calls: The actual amount of calls on this day. :creation_date: The date these calls are logged. :user: Foreignkey to the user, whose calls are stored. """ amount_api_calls = models.PositiveIntegerField( verbose_name='API call amount', ) creation_date = models.DateField( auto_now_add=True, verbose_name='Creation date', ) user = models.ForeignKey( settings.AUTH_USER_MODEL, verbose_name='unshorten_profile', ) class Meta: abstract = True unique_together = ('creation_date', 'user') def __str__(self): return '{0} ({1})'.format(self.user.email, self.amount_api_calls) class APICallDayHistory(APICallHistoryBase): pass class APICallMonthHistory(APICallHistoryBase): pass @python_2_unicode_compatible class UnshortenURL(models.Model): """ Holds the information about a short to long url relation. :creation_date: The time it was created. :long_url: The long url that resulted out of it. :short_url: The short url that needed lookup. """ creation_date = models.DateTimeField( auto_now_add=True, verbose_name='Creation date', ) long_url = models.CharField( max_length=4000, verbose_name='Long URL', ) short_url = models.CharField( max_length=1024, verbose_name='Short URL', ) def __str__(self): return self.short_url
[ 1, 529, 9507, 29958, 348, 12759, 264, 29914, 9794, 29889, 2272, 13, 15945, 29908, 23785, 363, 278, 4954, 348, 12759, 264, 16159, 623, 1213, 15945, 13, 3166, 9557, 29889, 5527, 1053, 6055, 13, 3166, 9557, 29889, 2585, 1053, 4733, 13, 3166, 9557, 29889, 13239, 29889, 22331, 1053, 3017, 29918, 29906, 29918, 2523, 356, 29918, 23712, 13, 13, 13, 29992, 4691, 29918, 29906, 29918, 2523, 356, 29918, 23712, 13, 1990, 3450, 5594, 20570, 5160, 29898, 9794, 29889, 3195, 1125, 13, 1678, 9995, 13, 1678, 624, 2361, 278, 5253, 310, 3450, 5717, 639, 1404, 639, 2462, 470, 4098, 29889, 13, 13, 1678, 584, 14506, 29918, 2754, 29918, 29883, 4293, 29901, 450, 3935, 5253, 310, 5717, 373, 445, 2462, 29889, 13, 1678, 584, 1037, 362, 29918, 1256, 29901, 450, 2635, 1438, 5717, 526, 13817, 29889, 13, 1678, 584, 1792, 29901, 19358, 1989, 304, 278, 1404, 29892, 5069, 5717, 526, 6087, 29889, 13, 13, 1678, 9995, 13, 1678, 5253, 29918, 2754, 29918, 29883, 4293, 353, 4733, 29889, 9135, 3321, 7798, 3073, 29898, 13, 4706, 26952, 29918, 978, 2433, 8787, 1246, 5253, 742, 13, 1678, 1723, 13, 13, 1678, 11265, 29918, 1256, 353, 4733, 29889, 2539, 3073, 29898, 13, 4706, 4469, 29918, 3707, 29918, 1202, 29922, 5574, 29892, 13, 4706, 26952, 29918, 978, 2433, 9832, 362, 2635, 742, 13, 1678, 1723, 13, 13, 1678, 1404, 353, 4733, 29889, 27755, 2558, 29898, 13, 4706, 6055, 29889, 20656, 29950, 29918, 11889, 29918, 20387, 29931, 29892, 13, 4706, 26952, 29918, 978, 2433, 348, 12759, 264, 29918, 10185, 742, 13, 1678, 1723, 13, 13, 1678, 770, 20553, 29901, 13, 4706, 9846, 353, 5852, 13, 4706, 5412, 29918, 29873, 12966, 353, 6702, 1037, 362, 29918, 1256, 742, 525, 1792, 1495, 13, 13, 1678, 822, 4770, 710, 12035, 1311, 1125, 13, 4706, 736, 22372, 29900, 29913, 21313, 29896, 1800, 4286, 4830, 29898, 1311, 29889, 1792, 29889, 5269, 29892, 1583, 29889, 14506, 29918, 2754, 29918, 29883, 4293, 29897, 13, 13, 13, 1990, 3450, 5594, 12742, 20570, 29898, 8787, 5594, 20570, 5160, 1125, 13, 1678, 1209, 13, 13, 13, 1990, 3450, 5594, 13953, 20570, 29898, 8787, 5594, 20570, 5160, 1125, 13, 1678, 1209, 13, 13, 13, 29992, 4691, 29918, 29906, 29918, 2523, 356, 29918, 23712, 13, 1990, 853, 12759, 264, 4219, 29898, 9794, 29889, 3195, 1125, 13, 1678, 9995, 13, 1678, 379, 3361, 278, 2472, 1048, 263, 3273, 304, 1472, 3142, 8220, 29889, 13, 13, 1678, 584, 1037, 362, 29918, 1256, 29901, 450, 931, 372, 471, 2825, 29889, 13, 1678, 584, 5426, 29918, 2271, 29901, 450, 1472, 3142, 393, 20601, 714, 310, 372, 29889, 13, 1678, 584, 12759, 29918, 2271, 29901, 450, 3273, 3142, 393, 4312, 16280, 29889, 13, 13, 1678, 9995, 13, 1678, 11265, 29918, 1256, 353, 4733, 29889, 11384, 3073, 29898, 13, 4706, 4469, 29918, 3707, 29918, 1202, 29922, 5574, 29892, 13, 4706, 26952, 29918, 978, 2433, 9832, 362, 2635, 742, 13, 1678, 1723, 13, 13, 1678, 1472, 29918, 2271, 353, 4733, 29889, 27890, 29898, 13, 4706, 4236, 29918, 2848, 29922, 29946, 29900, 29900, 29900, 29892, 13, 4706, 26952, 29918, 978, 2433, 8208, 3988, 742, 13, 1678, 1723, 13, 13, 1678, 3273, 29918, 2271, 353, 4733, 29889, 27890, 29898, 13, 4706, 4236, 29918, 2848, 29922, 29896, 29900, 29906, 29946, 29892, 13, 4706, 26952, 29918, 978, 2433, 21322, 3988, 742, 13, 1678, 1723, 13, 13, 1678, 822, 4770, 710, 12035, 1311, 1125, 13, 4706, 736, 1583, 29889, 12759, 29918, 2271, 13, 2 ]
proxyclient/tools/reboot.py
EricRabil/m1n1
1,604
54289
<filename>proxyclient/tools/reboot.py<gh_stars>1000+ #!/usr/bin/env python3 # SPDX-License-Identifier: MIT import sys, pathlib sys.path.append(str(pathlib.Path(__file__).resolve().parents[1])) from m1n1.setup import * p.reboot()
[ 1, 529, 9507, 29958, 14701, 4645, 29914, 8504, 29914, 276, 4777, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29900, 29974, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 29937, 10937, 29928, 29990, 29899, 29931, 293, 1947, 29899, 12889, 29901, 341, 1806, 13, 5215, 10876, 29892, 2224, 1982, 13, 9675, 29889, 2084, 29889, 4397, 29898, 710, 29898, 2084, 1982, 29889, 2605, 22168, 1445, 1649, 467, 17863, 2141, 862, 1237, 29961, 29896, 12622, 13, 13, 3166, 286, 29896, 29876, 29896, 29889, 14669, 1053, 334, 13, 13, 29886, 29889, 276, 4777, 580, 13, 2 ]
docs/archive/slash/docking-example/scripts/euler2rotmat.py
sjdv1982/seamless
15
126438
import sys, os from read_struc import read_struc from math import sin, cos import numpy as np def euler2rotmat(phi,ssi,rot): cs=cos(ssi) cp=cos(phi) ss=sin(ssi) sp=sin(phi) cscp=cs*cp cssp=cs*sp sscp=ss*cp sssp=ss*sp crot=cos(rot) srot=sin(rot) r1 = crot * cscp + srot * sp r2 = srot * cscp - crot * sp r3 = sscp r4 = crot * cssp - srot * cp r5 = srot * cssp + crot * cp r6 = sssp r7 = -crot * ss r8 = -srot * ss r9 = cs return ((r1,r2,r3),(r4,r5,r6),(r7,r8,r9)) datfile = sys.argv[1] header, strucs = read_struc(open(datfile)) strucs = list(strucs) pivots = [] for h in header: if not h.startswith("#pivot"): h = h.rstrip() if h.startswith("#centered"): assert h.endswith(" false"), h continue assert not h.startswith("#pivot auto"), h hh = h.split() assert hh[1] == str(len(pivots)+1), h assert len(hh) == 5, h pivot = [float(v) for v in hh[2:5]] pivots.append(np.array(pivot)) results = [] for struc in strucs: result_struc = [] for lnr, l in enumerate(struc[1]): ll = [float(v) for v in l.split()] assert len(ll) == 6 #no ensembles rotmat = euler2rotmat(*ll[:3]) rotmat = np.array(rotmat) trans = np.array(ll[3:6]) p = pivots[lnr] pp = (-p * rotmat).sum(axis=1) + p trans += pp result = np.eye(4) result[:3,:3] = rotmat result[:3,3] = trans result[3][3] = 1 result_struc.append(result.tolist()) results.append(result_struc) import json print(json.dumps(results, indent=2))
[ 1, 1053, 10876, 29892, 2897, 13, 3166, 1303, 29918, 10582, 29883, 1053, 1303, 29918, 10582, 29883, 13, 3166, 5844, 1053, 4457, 29892, 6776, 13, 5215, 12655, 408, 7442, 13, 13, 1753, 321, 8584, 29906, 5450, 2922, 29898, 2876, 29892, 893, 29875, 29892, 5450, 1125, 13, 1678, 5939, 29922, 3944, 29898, 893, 29875, 29897, 13, 1678, 21447, 29922, 3944, 29898, 2876, 29897, 13, 1678, 17971, 29922, 5223, 29898, 893, 29875, 29897, 13, 1678, 805, 29922, 5223, 29898, 2876, 29897, 13, 1678, 274, 1557, 29886, 29922, 2395, 29930, 6814, 13, 1678, 5997, 29886, 29922, 2395, 29930, 1028, 13, 1678, 269, 1557, 29886, 29922, 893, 29930, 6814, 13, 1678, 269, 893, 29886, 29922, 893, 29930, 1028, 13, 1678, 274, 5450, 29922, 3944, 29898, 5450, 29897, 13, 1678, 269, 5450, 29922, 5223, 29898, 5450, 29897, 13, 13, 1678, 364, 29896, 353, 274, 5450, 334, 274, 1557, 29886, 718, 269, 5450, 334, 805, 13, 1678, 364, 29906, 353, 269, 5450, 334, 274, 1557, 29886, 448, 274, 5450, 334, 805, 13, 1678, 364, 29941, 353, 269, 1557, 29886, 13, 13, 1678, 364, 29946, 353, 274, 5450, 334, 5997, 29886, 448, 269, 5450, 334, 21447, 13, 1678, 364, 29945, 353, 269, 5450, 334, 5997, 29886, 718, 274, 5450, 334, 21447, 13, 1678, 364, 29953, 353, 269, 893, 29886, 13, 13, 1678, 364, 29955, 353, 448, 29883, 5450, 334, 17971, 13, 1678, 364, 29947, 353, 448, 29879, 5450, 334, 17971, 13, 1678, 364, 29929, 353, 5939, 13, 1678, 736, 5135, 29878, 29896, 29892, 29878, 29906, 29892, 29878, 29941, 21336, 29878, 29946, 29892, 29878, 29945, 29892, 29878, 29953, 21336, 29878, 29955, 29892, 29878, 29947, 29892, 29878, 29929, 876, 13, 13, 4130, 1445, 353, 10876, 29889, 19218, 29961, 29896, 29962, 13, 6672, 29892, 6220, 2395, 353, 1303, 29918, 10582, 29883, 29898, 3150, 29898, 4130, 1445, 876, 13, 10582, 2395, 353, 1051, 29898, 10582, 2395, 29897, 13, 13, 29886, 440, 1862, 353, 5159, 13, 1454, 298, 297, 4839, 29901, 13, 1678, 565, 451, 298, 29889, 27382, 2541, 14822, 29886, 11002, 29908, 1125, 13, 4706, 298, 353, 298, 29889, 29878, 17010, 580, 13, 4706, 565, 298, 29889, 27382, 2541, 14822, 5064, 287, 29908, 1125, 4974, 298, 29889, 1975, 2541, 703, 2089, 4968, 298, 13, 4706, 6773, 13, 1678, 4974, 451, 298, 29889, 27382, 2541, 14822, 29886, 11002, 4469, 4968, 298, 13, 1678, 298, 29882, 353, 298, 29889, 5451, 580, 13, 1678, 4974, 298, 29882, 29961, 29896, 29962, 1275, 851, 29898, 2435, 29898, 29886, 440, 1862, 7240, 29896, 511, 298, 13, 1678, 4974, 7431, 29898, 25446, 29897, 1275, 29871, 29945, 29892, 298, 13, 1678, 24438, 353, 518, 7411, 29898, 29894, 29897, 363, 325, 297, 298, 29882, 29961, 29906, 29901, 29945, 5262, 13, 1678, 282, 440, 1862, 29889, 4397, 29898, 9302, 29889, 2378, 29898, 29886, 11002, 876, 13, 13, 9902, 353, 5159, 13, 1454, 6220, 29883, 297, 6220, 2395, 29901, 13, 1678, 1121, 29918, 10582, 29883, 353, 5159, 13, 1678, 363, 301, 22230, 29892, 301, 297, 26985, 29898, 10582, 29883, 29961, 29896, 29962, 1125, 13, 4706, 11148, 353, 518, 7411, 29898, 29894, 29897, 363, 325, 297, 301, 29889, 5451, 580, 29962, 13, 4706, 4974, 7431, 29898, 645, 29897, 1275, 29871, 29953, 396, 1217, 5662, 1590, 793, 13, 4706, 5731, 2922, 353, 321, 8584, 29906, 5450, 2922, 10456, 645, 7503, 29941, 2314, 13, 4706, 5731, 2922, 353, 7442, 29889, 2378, 29898, 5450, 2922, 29897, 13, 4706, 1301, 353, 7442, 29889, 2378, 29898, 645, 29961, 29941, 29901, 29953, 2314, 13, 4706, 282, 353, 282, 440, 1862, 29961, 3083, 29878, 29962, 13, 4706, 6499, 353, 8521, 29886, 334, 5731, 2922, 467, 2083, 29898, 8990, 29922, 29896, 29897, 718, 282, 13, 4706, 1301, 4619, 6499, 13, 4706, 1121, 353, 7442, 29889, 1032, 29872, 29898, 29946, 29897, 13, 4706, 1121, 7503, 29941, 29892, 29901, 29941, 29962, 353, 5731, 2922, 13, 4706, 1121, 7503, 29941, 29892, 29941, 29962, 353, 1301, 13, 4706, 1121, 29961, 29941, 3816, 29941, 29962, 353, 29871, 29896, 13, 4706, 1121, 29918, 10582, 29883, 29889, 4397, 29898, 2914, 29889, 25027, 391, 3101, 13, 1678, 2582, 29889, 4397, 29898, 2914, 29918, 10582, 29883, 29897, 13, 5215, 4390, 13, 2158, 29898, 3126, 29889, 29881, 17204, 29898, 9902, 29892, 29536, 29922, 29906, 876, 13, 2 ]
pyasyncserver/pipes/__init__.py
agratoth/pyasyncserver
0
179455
from .pipe import Pipe from .http_pipe import HTTPPipe from .nats_pipe import NATSPipe from .directions import PipeDirections from .helpers import PipePool
[ 1, 515, 869, 17760, 1053, 7362, 412, 13, 3166, 869, 1124, 29918, 17760, 1053, 7331, 12197, 412, 13, 3166, 869, 27479, 29918, 17760, 1053, 26038, 5550, 15705, 13, 3166, 869, 20146, 1953, 1053, 7362, 412, 29928, 533, 1953, 13, 13, 3166, 869, 3952, 6774, 1053, 7362, 412, 11426, 2 ]
su4/path_util.py
njuwelkin/su4
0
48855
<filename>su4/path_util.py import os, sys def addModulePath(file): utils_path = os.path.dirname(os.path.abspath(file)) + "/../utils" sys.path.append(utils_path)
[ 1, 529, 9507, 29958, 2146, 29946, 29914, 2084, 29918, 4422, 29889, 2272, 13, 5215, 2897, 29892, 10876, 13, 13, 1753, 788, 7355, 2605, 29898, 1445, 1125, 13, 1678, 3667, 29879, 29918, 2084, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 370, 1028, 493, 29898, 1445, 876, 718, 5591, 6995, 13239, 29908, 13, 1678, 10876, 29889, 2084, 29889, 4397, 29898, 13239, 29918, 2084, 29897, 13, 13, 2 ]
python/tk_houdini_flipbook/create_slate.py
nfa-vfxim/tk-houdini-flipbook
3
1611916
<filename>python/tk_houdini_flipbook/create_slate.py<gh_stars>1-10 # MIT License # Copyright (c) 2020 Netherlands Film Academy # 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 os import subprocess import hou import sgtk class CreateSlate(object): def __init__(self, app): # initialize and set paths self.app = app self.nukePath = "%s" % (app.get_setting("nuke_path")) # set slate script path __location__ = os.path.realpath( os.path.join(os.getcwd(), os.path.dirname(__file__)) ) self.slatePath = os.path.join(__location__, "slate.py") def runSlate(self, inputFile, outputFile, settings): # setup environment custom_env = os.environ.copy() if custom_env["PYTHONPATH"] != None: del custom_env["PYTHONPATH"] if custom_env["PYTHONHOME"] != None: del custom_env["PYTHONHOME"] # setup arguments for call context = self.app.context project_name = context.project["name"] user_name = context.user["name"] file_name = hou.hipFile.basename().lower() first_frame = settings["frameRange"] first_frame = first_frame[0] last_frame = settings["frameRange"] last_frame = last_frame[1] task_name = context.step["name"] self.app.logger.debug(task_name) fps = hou.fps() appPath = self.app.disk_location # ensure output path exists self.app.ensure_folder_exists(os.path.dirname(os.path.abspath(outputFile))) # calculate version number template = self.app.get_template("work_file_template") fields = template.get_fields(hou.hipFile.path()) version = fields["version"] resolution = "%d x %d" % ( settings["resolution"][0], settings["resolution"][0], ) # call subprocess of nuke and convert process = subprocess.Popen( [ self.nukePath, "-t", self.slatePath, inputFile, outputFile, project_name, file_name, str(first_frame), str(last_frame), appPath, str(version), resolution, user_name, task_name, str(fps), ], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=custom_env, ) stdout, stderr = process.communicate() self.app.logger.debug(stdout) if stderr: self.app.logger.error(stderr) if stderr: raise Exception("Could not correctly render file. Used Nuke version %s" % (self.nukePath))
[ 1, 529, 9507, 29958, 4691, 29914, 11178, 29918, 29882, 2736, 2172, 29918, 29888, 3466, 2909, 29914, 3258, 29918, 2536, 403, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 341, 1806, 19245, 13, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29906, 29900, 24553, 4643, 10355, 13, 13, 29937, 20894, 2333, 338, 1244, 1609, 16896, 29892, 3889, 310, 8323, 29892, 304, 738, 2022, 4017, 292, 263, 3509, 13, 29937, 310, 445, 7047, 322, 6942, 5106, 2066, 313, 1552, 376, 6295, 14093, 4968, 304, 5376, 13, 29937, 297, 278, 18540, 1728, 24345, 29892, 3704, 1728, 29485, 278, 10462, 13, 29937, 304, 671, 29892, 3509, 29892, 6623, 29892, 10366, 29892, 9805, 29892, 1320, 2666, 29892, 269, 803, 1947, 29892, 322, 29914, 272, 19417, 13, 29937, 14591, 310, 278, 18540, 29892, 322, 304, 14257, 12407, 304, 6029, 278, 18540, 338, 13, 29937, 15252, 3276, 304, 437, 577, 29892, 4967, 304, 278, 1494, 5855, 29901, 13, 13, 29937, 450, 2038, 3509, 1266, 8369, 322, 445, 10751, 8369, 4091, 367, 5134, 297, 599, 13, 29937, 14591, 470, 23228, 2011, 1080, 310, 278, 18540, 29889, 13, 13, 29937, 6093, 7791, 7818, 12982, 1525, 8519, 13756, 13044, 3352, 376, 3289, 8519, 613, 399, 1806, 8187, 2692, 399, 1718, 29934, 13566, 29979, 8079, 13764, 29979, 476, 22255, 29892, 8528, 15094, 1799, 6323, 13, 29937, 306, 3580, 5265, 3352, 29892, 2672, 6154, 15789, 4214, 350, 2692, 6058, 27848, 3352, 7495, 6093, 399, 1718, 29934, 13566, 29059, 8079, 341, 1001, 3210, 13566, 2882, 6227, 11937, 29892, 13, 29937, 383, 1806, 8186, 1799, 15842, 319, 349, 8322, 2965, 13309, 1718, 349, 4574, 13152, 1660, 5300, 405, 1164, 1177, 15860, 1177, 1692, 13780, 29889, 2672, 11698, 382, 29963, 3919, 24972, 9818, 6093, 13, 29937, 26524, 29950, 24125, 6323, 315, 4590, 29979, 22789, 3912, 379, 5607, 8032, 29903, 20700, 17705, 6181, 15842, 13764, 29979, 315, 4375, 7833, 29892, 21330, 1529, 1692, 29903, 6323, 438, 29911, 4448, 13, 29937, 17705, 2882, 6227, 11937, 29892, 12317, 2544, 4448, 2672, 13764, 319, 9838, 8079, 8707, 29911, 4717, 1783, 29892, 323, 8476, 6323, 438, 29911, 4448, 22119, 1660, 29892, 9033, 3235, 4214, 3895, 29892, 13, 29937, 19474, 8079, 6323, 2672, 8707, 8186, 9838, 22659, 6093, 7791, 7818, 12982, 1525, 6323, 6093, 501, 1660, 6323, 438, 29911, 4448, 5012, 1964, 4214, 29903, 2672, 6093, 13, 29937, 7791, 7818, 12982, 1525, 29889, 13, 13, 5215, 2897, 13, 5215, 1014, 5014, 13, 5215, 298, 283, 13, 5215, 269, 4141, 29895, 13, 13, 13, 1990, 6204, 29903, 9632, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 623, 1125, 13, 4706, 396, 11905, 322, 731, 10898, 13, 4706, 1583, 29889, 932, 353, 623, 13, 4706, 1583, 29889, 3433, 446, 2605, 353, 11860, 29879, 29908, 1273, 313, 932, 29889, 657, 29918, 26740, 703, 3433, 446, 29918, 2084, 5783, 13, 13, 4706, 396, 731, 2243, 403, 2471, 2224, 13, 4706, 4770, 5479, 1649, 353, 2897, 29889, 2084, 29889, 6370, 2084, 29898, 13, 9651, 2897, 29889, 2084, 29889, 7122, 29898, 359, 29889, 657, 29883, 9970, 3285, 2897, 29889, 2084, 29889, 25721, 22168, 1445, 1649, 876, 13, 4706, 1723, 13, 4706, 1583, 29889, 2536, 403, 2605, 353, 2897, 29889, 2084, 29889, 7122, 22168, 5479, 1649, 29892, 376, 2536, 403, 29889, 2272, 1159, 13, 13, 1678, 822, 1065, 29903, 9632, 29898, 1311, 29892, 1881, 2283, 29892, 1962, 2283, 29892, 6055, 1125, 13, 4706, 396, 6230, 5177, 13, 4706, 2888, 29918, 6272, 353, 2897, 29889, 21813, 29889, 8552, 580, 13, 13, 4706, 565, 2888, 29918, 6272, 3366, 20055, 4690, 1164, 10145, 3108, 2804, 6213, 29901, 13, 9651, 628, 2888, 29918, 6272, 3366, 20055, 4690, 1164, 10145, 3108, 13, 13, 4706, 565, 2888, 29918, 6272, 3366, 20055, 4690, 1164, 17353, 3108, 2804, 6213, 29901, 13, 9651, 628, 2888, 29918, 6272, 3366, 20055, 4690, 1164, 17353, 3108, 13, 13, 4706, 396, 6230, 6273, 363, 1246, 13, 4706, 3030, 353, 1583, 29889, 932, 29889, 4703, 13, 4706, 2060, 29918, 978, 353, 3030, 29889, 4836, 3366, 978, 3108, 13, 4706, 1404, 29918, 978, 353, 3030, 29889, 1792, 3366, 978, 3108, 13, 4706, 934, 29918, 978, 353, 298, 283, 29889, 4034, 2283, 29889, 6500, 3871, 2141, 13609, 580, 13, 4706, 937, 29918, 2557, 353, 6055, 3366, 2557, 6069, 3108, 13, 4706, 937, 29918, 2557, 353, 937, 29918, 2557, 29961, 29900, 29962, 13, 4706, 1833, 29918, 2557, 353, 6055, 3366, 2557, 6069, 3108, 13, 4706, 1833, 29918, 2557, 353, 1833, 29918, 2557, 29961, 29896, 29962, 13, 4706, 3414, 29918, 978, 353, 3030, 29889, 10568, 3366, 978, 3108, 13, 4706, 1583, 29889, 932, 29889, 21707, 29889, 8382, 29898, 7662, 29918, 978, 29897, 13, 4706, 285, 567, 353, 298, 283, 29889, 29888, 567, 580, 13, 4706, 623, 2605, 353, 1583, 29889, 932, 29889, 20960, 29918, 5479, 13, 13, 4706, 396, 9801, 1962, 2224, 4864, 13, 4706, 1583, 29889, 932, 29889, 7469, 29918, 12083, 29918, 9933, 29898, 359, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 370, 1028, 493, 29898, 4905, 2283, 4961, 13, 13, 4706, 396, 8147, 1873, 1353, 13, 4706, 4472, 353, 1583, 29889, 932, 29889, 657, 29918, 6886, 703, 1287, 29918, 1445, 29918, 6886, 1159, 13, 4706, 4235, 353, 4472, 29889, 657, 29918, 9621, 29898, 10774, 29889, 4034, 2283, 29889, 2084, 3101, 13, 4706, 1873, 353, 4235, 3366, 3259, 3108, 13, 4706, 10104, 353, 11860, 29881, 921, 1273, 29881, 29908, 1273, 313, 13, 9651, 6055, 3366, 9778, 918, 3108, 29961, 29900, 1402, 13, 9651, 6055, 3366, 9778, 918, 3108, 29961, 29900, 1402, 13, 4706, 1723, 13, 13, 4706, 396, 1246, 1014, 5014, 310, 4948, 446, 322, 3588, 13, 4706, 1889, 353, 1014, 5014, 29889, 29925, 3150, 29898, 13, 9651, 518, 13, 18884, 1583, 29889, 3433, 446, 2605, 29892, 13, 18884, 11663, 29873, 613, 13, 18884, 1583, 29889, 2536, 403, 2605, 29892, 13, 18884, 1881, 2283, 29892, 13, 18884, 1962, 2283, 29892, 13, 18884, 2060, 29918, 978, 29892, 13, 18884, 934, 29918, 978, 29892, 13, 18884, 851, 29898, 4102, 29918, 2557, 511, 13, 18884, 851, 29898, 4230, 29918, 2557, 511, 13, 18884, 623, 2605, 29892, 13, 18884, 851, 29898, 3259, 511, 13, 18884, 10104, 29892, 13, 18884, 1404, 29918, 978, 29892, 13, 18884, 3414, 29918, 978, 29892, 13, 18884, 851, 29898, 29888, 567, 511, 13, 9651, 21251, 13, 9651, 6473, 29922, 5574, 29892, 13, 9651, 27591, 29922, 1491, 5014, 29889, 2227, 4162, 29892, 13, 9651, 380, 20405, 29922, 1491, 5014, 29889, 2227, 4162, 29892, 13, 9651, 8829, 29922, 6341, 29918, 6272, 29892, 13, 4706, 1723, 13, 13, 4706, 27591, 29892, 380, 20405, 353, 1889, 29889, 27820, 403, 580, 13, 4706, 1583, 29889, 932, 29889, 21707, 29889, 8382, 29898, 25393, 29897, 13, 308, 13, 4706, 565, 380, 20405, 29901, 13, 9651, 1583, 29889, 932, 29889, 21707, 29889, 2704, 29898, 303, 20405, 29897, 13, 13, 4706, 565, 380, 20405, 29901, 13, 9651, 12020, 8960, 703, 23323, 451, 5149, 4050, 934, 29889, 501, 8485, 12487, 446, 1873, 1273, 29879, 29908, 1273, 313, 1311, 29889, 3433, 446, 2605, 876, 13, 2 ]
f_highboost.py
shsandro/high-boost-filter
1
151713
<filename>f_highboost.py import scipy.fftpack as fp from scipy import signal import numpy as np import numpy.fft import cv2 import matplotlib.pylab as pylab # carrega a imagem img = cv2.imread(input("Digite o caminho para a imagem de entrada: "))[:, :, 0] # lê o valor de D D = int(input("Digite o valor de D para o kernel: ")) # obtém o filtro gaussiano no domínio espacial gauss_kernel = np.outer(signal.gaussian( img.shape[0], D), signal.gaussian(img.shape[1], D)) # obtém a imagem e o filtro no domínio da frquência freq_img = fp.fft2(img) freq_kernel = fp.fft2(fp.ifftshift(gauss_kernel)) assert(freq_img.shape == gauss_kernel.shape) # aplica convolução (borramento) convolved_img = freq_img * freq_kernel blured_img = fp.ifft2(convolved_img).real blured_img = np.abs(blured_img) blured_img = blured_img * 255 / blured_img.max() blured_img = blured_img.astype(np.uint8) ####################### Mostra todos os passos da convolução na frequência ####################### pylab.figure(figsize=(30, 25)) pylab.gray() pylab.subplot(2, 2, 1), pylab.imshow(img), pylab.title( 'Imagem original', size=10), pylab.axis('off') pylab.subplot(2, 2, 4), pylab.imshow(blured_img) pylab.title('Imagem após convolução', size=10), pylab.axis('off') pylab.subplot(2, 2, 2), pylab.imshow( (20*np.log10(0.1 + fp.fftshift(freq_kernel))).astype(int)) pylab.title('Transformada do filtro', size=10), pylab.axis('off') pylab.subplot(2, 2, 3), pylab.imshow( (20*np.log10(0.1 + fp.fftshift(convolved_img))).astype(int)) pylab.title('Imagem borrada no domínio da frequência', size=10), pylab.axis('off') pylab.subplots_adjust(wspace=0.2, hspace=1) pylab.show() ################################################################################################## # lê o valor de k k = int(input("Digite o valor de k: ")) # obtem a máscara (arestas) mask = cv2.subtract(img, blured_img) mask = k * mask ####################### Mostra todos os passos da convolução ####################### pylab.subplot(2, 3, 1), pylab.imshow(img), pylab.title( 'Imagem original', size=10), pylab.axis('off') pylab.subplot(2, 3, 3), pylab.imshow(blured_img) pylab.title('Imagem após convolução', size=10), pylab.axis('off') pylab.subplot(2, 3, 5), pylab.imshow(mask) pylab.title('Arestas para aguçamento', size=10), pylab.axis('off') pylab.subplots_adjust(wspace=0.2, hspace=1) pylab.show() ################################################################################################## # obtem imagem final final_image = cv2.add(img, mask) cv2.imwrite(input("Digite o caminho para a imagem de saída: "), final_image) print("Imagem final salva!")
[ 1, 529, 9507, 29958, 29888, 29918, 9812, 17079, 29889, 2272, 13, 5215, 4560, 2272, 29889, 600, 29873, 4058, 408, 285, 29886, 13, 3166, 4560, 2272, 1053, 7182, 13, 5215, 12655, 408, 7442, 13, 5215, 12655, 29889, 600, 29873, 13, 5215, 13850, 29906, 13, 5215, 22889, 29889, 2272, 8205, 408, 282, 2904, 370, 13, 13, 13, 29937, 1559, 1727, 29874, 263, 6382, 331, 13, 2492, 353, 13850, 29906, 29889, 326, 949, 29898, 2080, 703, 14991, 568, 288, 3949, 21307, 1702, 263, 6382, 331, 316, 9953, 1114, 29901, 376, 876, 7503, 29892, 584, 29892, 29871, 29900, 29962, 13, 13, 29937, 301, 30037, 288, 16497, 316, 360, 13, 29928, 353, 938, 29898, 2080, 703, 14991, 568, 288, 16497, 316, 360, 1702, 288, 8466, 29901, 376, 876, 13, 13, 29937, 14403, 2249, 288, 977, 29873, 307, 330, 11214, 3328, 694, 2432, 3642, 601, 9015, 1455, 13, 29887, 11214, 29918, 17460, 353, 7442, 29889, 5561, 29898, 25436, 29889, 29887, 17019, 29898, 13, 1678, 10153, 29889, 12181, 29961, 29900, 1402, 360, 511, 7182, 29889, 29887, 17019, 29898, 2492, 29889, 12181, 29961, 29896, 1402, 360, 876, 13, 13, 29937, 14403, 2249, 263, 6382, 331, 321, 288, 977, 29873, 307, 694, 2432, 3642, 601, 1146, 1424, 339, 10544, 13, 29888, 7971, 29918, 2492, 353, 285, 29886, 29889, 600, 29873, 29906, 29898, 2492, 29897, 13, 29888, 7971, 29918, 17460, 353, 285, 29886, 29889, 600, 29873, 29906, 29898, 18091, 29889, 361, 615, 10889, 29898, 29887, 11214, 29918, 17460, 876, 13, 9294, 29898, 29888, 7971, 29918, 2492, 29889, 12181, 1275, 330, 11214, 29918, 17460, 29889, 12181, 29897, 13, 13, 29937, 3095, 10123, 378, 1555, 29884, 2340, 313, 4089, 29878, 4487, 29897, 13, 535, 1555, 1490, 29918, 2492, 353, 3005, 29939, 29918, 2492, 334, 3005, 29939, 29918, 17460, 13, 2204, 2955, 29918, 2492, 353, 285, 29886, 29889, 361, 615, 29906, 29898, 535, 1555, 1490, 29918, 2492, 467, 6370, 13, 13, 2204, 2955, 29918, 2492, 353, 7442, 29889, 6897, 29898, 2204, 2955, 29918, 2492, 29897, 13, 2204, 2955, 29918, 2492, 353, 1999, 2955, 29918, 2492, 334, 29871, 29906, 29945, 29945, 847, 1999, 2955, 29918, 2492, 29889, 3317, 580, 13, 2204, 2955, 29918, 2492, 353, 1999, 2955, 29918, 2492, 29889, 579, 668, 29898, 9302, 29889, 13470, 29947, 29897, 13, 13, 13383, 4136, 2277, 29937, 7849, 336, 10843, 2897, 1209, 359, 1146, 378, 1555, 29884, 2340, 1055, 5204, 10544, 835, 13383, 4136, 13, 2272, 8205, 29889, 4532, 29898, 1003, 2311, 7607, 29941, 29900, 29892, 29871, 29906, 29945, 876, 13, 2272, 8205, 29889, 21012, 580, 13, 13, 2272, 8205, 29889, 1491, 5317, 29898, 29906, 29892, 29871, 29906, 29892, 29871, 29896, 511, 282, 2904, 370, 29889, 326, 4294, 29898, 2492, 511, 282, 2904, 370, 29889, 3257, 29898, 13, 1678, 525, 1888, 13904, 2441, 742, 2159, 29922, 29896, 29900, 511, 282, 2904, 370, 29889, 8990, 877, 2696, 1495, 13, 13, 2272, 8205, 29889, 1491, 5317, 29898, 29906, 29892, 29871, 29906, 29892, 29871, 29946, 511, 282, 2904, 370, 29889, 326, 4294, 29898, 2204, 2955, 29918, 2492, 29897, 13, 2272, 8205, 29889, 3257, 877, 1888, 13904, 24292, 378, 1555, 29884, 2340, 742, 2159, 29922, 29896, 29900, 511, 282, 2904, 370, 29889, 8990, 877, 2696, 1495, 13, 13, 2272, 8205, 29889, 1491, 5317, 29898, 29906, 29892, 29871, 29906, 29892, 29871, 29906, 511, 282, 2904, 370, 29889, 326, 4294, 29898, 13, 1678, 313, 29906, 29900, 29930, 9302, 29889, 1188, 29896, 29900, 29898, 29900, 29889, 29896, 718, 285, 29886, 29889, 600, 29873, 10889, 29898, 29888, 7971, 29918, 17460, 876, 467, 579, 668, 29898, 524, 876, 13, 2272, 8205, 29889, 3257, 877, 13372, 1114, 437, 977, 29873, 307, 742, 2159, 29922, 29896, 29900, 511, 282, 2904, 370, 29889, 8990, 877, 2696, 1495, 13, 13, 2272, 8205, 29889, 1491, 5317, 29898, 29906, 29892, 29871, 29906, 29892, 29871, 29941, 511, 282, 2904, 370, 29889, 326, 4294, 29898, 13, 1678, 313, 29906, 29900, 29930, 9302, 29889, 1188, 29896, 29900, 29898, 29900, 29889, 29896, 718, 285, 29886, 29889, 600, 29873, 10889, 29898, 535, 1555, 1490, 29918, 2492, 876, 467, 579, 668, 29898, 524, 876, 13, 2272, 8205, 29889, 3257, 877, 1888, 13904, 9820, 29878, 1114, 694, 2432, 3642, 601, 1146, 5204, 10544, 742, 13, 9651, 2159, 29922, 29896, 29900, 511, 282, 2904, 370, 29889, 8990, 877, 2696, 1495, 13, 13, 2272, 8205, 29889, 1491, 26762, 29918, 328, 5143, 29898, 29893, 3493, 29922, 29900, 29889, 29906, 29892, 298, 3493, 29922, 29896, 29897, 13, 2272, 8205, 29889, 4294, 580, 13, 13383, 13383, 13383, 13383, 13383, 13383, 2277, 13, 13, 29937, 301, 30037, 288, 16497, 316, 413, 13, 29895, 353, 938, 29898, 2080, 703, 14991, 568, 288, 16497, 316, 413, 29901, 376, 876, 13, 13, 29937, 704, 1356, 263, 10269, 1557, 2518, 313, 279, 342, 294, 29897, 13, 13168, 353, 13850, 29906, 29889, 1491, 29873, 1461, 29898, 2492, 29892, 1999, 2955, 29918, 2492, 29897, 13, 13168, 353, 413, 334, 11105, 13, 13, 13383, 4136, 2277, 29937, 7849, 336, 10843, 2897, 1209, 359, 1146, 378, 1555, 29884, 2340, 835, 13383, 4136, 13, 2272, 8205, 29889, 1491, 5317, 29898, 29906, 29892, 29871, 29941, 29892, 29871, 29896, 511, 282, 2904, 370, 29889, 326, 4294, 29898, 2492, 511, 282, 2904, 370, 29889, 3257, 29898, 13, 1678, 525, 1888, 13904, 2441, 742, 2159, 29922, 29896, 29900, 511, 282, 2904, 370, 29889, 8990, 877, 2696, 1495, 13, 13, 2272, 8205, 29889, 1491, 5317, 29898, 29906, 29892, 29871, 29941, 29892, 29871, 29941, 511, 282, 2904, 370, 29889, 326, 4294, 29898, 2204, 2955, 29918, 2492, 29897, 13, 2272, 8205, 29889, 3257, 877, 1888, 13904, 24292, 378, 1555, 29884, 2340, 742, 2159, 29922, 29896, 29900, 511, 282, 2904, 370, 29889, 8990, 877, 2696, 1495, 13, 13, 2272, 8205, 29889, 1491, 5317, 29898, 29906, 29892, 29871, 29941, 29892, 29871, 29945, 511, 282, 2904, 370, 29889, 326, 4294, 29898, 13168, 29897, 13, 2272, 8205, 29889, 3257, 877, 1433, 342, 294, 1702, 946, 29884, 30019, 4487, 742, 2159, 29922, 29896, 29900, 511, 282, 2904, 370, 29889, 8990, 877, 2696, 1495, 13, 13, 2272, 8205, 29889, 1491, 26762, 29918, 328, 5143, 29898, 29893, 3493, 29922, 29900, 29889, 29906, 29892, 298, 3493, 29922, 29896, 29897, 13, 2272, 8205, 29889, 4294, 580, 13, 13383, 13383, 13383, 13383, 13383, 13383, 2277, 13, 13, 29937, 704, 1356, 6382, 331, 2186, 13, 8394, 29918, 3027, 353, 13850, 29906, 29889, 1202, 29898, 2492, 29892, 11105, 29897, 13, 11023, 29906, 29889, 326, 3539, 29898, 2080, 703, 14991, 568, 288, 3949, 21307, 1702, 263, 6382, 331, 316, 872, 28815, 29901, 376, 511, 2186, 29918, 3027, 29897, 13, 2158, 703, 1888, 13904, 2186, 4497, 1564, 29991, 1159, 13, 2 ]
src/common/status.py
THUKElab/Video2Description
152
191806
from enum import Enum class ModelWeightsStatus(Enum): NO_INFO = 0 SUCCESS = 1 MODEL_NOT_FOUND = 2 WIP = 3
[ 1, 515, 14115, 1053, 1174, 398, 13, 13, 1990, 8125, 4806, 5861, 5709, 29898, 16854, 1125, 13, 1678, 11698, 29918, 11690, 308, 353, 29871, 29900, 13, 1678, 20134, 26925, 308, 353, 29871, 29896, 13, 1678, 16999, 2287, 29931, 29918, 12256, 29918, 5800, 18783, 353, 29871, 29906, 13, 1678, 399, 5690, 632, 353, 29871, 29941, 2 ]
EstruturaDeDecisao/18 terminar.py
TheCarvalho/atividades-wikipython
0
94659
# ex18 - Faça um Programa que peça uma data no formato dd/mm/aaaa e determine se a mesma é uma data válida.
[ 1, 29871, 13, 29937, 429, 29896, 29947, 448, 7748, 4277, 1922, 7835, 29874, 712, 1236, 4277, 3672, 848, 694, 883, 1219, 24488, 29914, 4317, 29914, 27137, 321, 8161, 409, 263, 4883, 655, 904, 3672, 848, 12196, 1458, 29889, 13, 2 ]
tests.py
Airead/pysha3
30
95699
<reponame>Airead/pysha3 from __future__ import print_function import hashlib import hmac import os import sys import unittest import sha3 if sys.version_info[0] == 3: fromhex = bytes.fromhex def tobyte(b): return bytes([b]) def asunicode(s): return s else: def fromhex(s): return s.decode('hex') def tobyte(b): return bytes(b) def asunicode(s): return s.decode('ascii') def read_vectors(hash_name): vector = os.path.join('vectors', hash_name + '.txt') with open(vector) as f: for line in f: line = line.strip() if line.startswith('#') or not line: continue msg, md = line.split(',') yield msg, md class BaseSHA3Tests(unittest.TestCase): new = None name = None digest_size = None block_size = None rate_bits = None capacity_bits = None shake = False vectors = [] # http://wolfgang-ehrhardt.de/hmac-sha3-testvectors.html hmac_vectors = [ ("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b", "4869205468657265"), ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "5468697320697320612074657374207573696e672061206c6172676572207" + "468616e20626c6f636b2d73697a65206b657920616e642061206c617267657" + "2207468616e20626c6f636b2d73697a6520646174612e20546865206b65792" + "06e6565647320746f20626520686173686564206265666f7265206265696e6" + "720757365642062792074686520484d414320616c676f726974686d2e") ] hmac_results = [] def assertHashDigest(self, hexmsg, hexdigest): hexdigest = hexdigest.lower() msg = fromhex(hexmsg) digest = fromhex(hexdigest) self.assertEqual(len(digest), self.digest_size) sha3 = self.new(msg) self.assertEqual(sha3.hexdigest(), hexdigest) self.assertEqual(sha3.digest(), digest) sha3 = self.new() sha3.update(msg) self.assertEqual(sha3.hexdigest(), hexdigest) self.assertEqual(sha3.digest(), digest) sha3 = self.new() for b in msg: sha3.update(tobyte(b)) self.assertEqual(sha3.hexdigest(), hexdigest) self.assertEqual(sha3.digest(), digest) def test_basics(self): sha3 = self.new() self.assertEqual(sha3.name, self.name) self.assertEqual(sha3.digest_size, self.digest_size) self.assertEqual(sha3._capacity_bits + sha3._rate_bits, 1600) self.assertEqual(sha3._rate_bits, self.rate_bits) self.assertEqual(sha3._capacity_bits, self.capacity_bits) if self.block_size is not None: self.assertEqual(sha3.block_size, self.block_size) if self.shake: self.assertEqual(len(sha3.digest(4)), 4) self.assertEqual(len(sha3.hexdigest(4)), 8) self.assertEqual(len(sha3.digest(8)), 8) self.assertEqual(len(sha3.hexdigest(8)), 16) self.assertEqual(len(sha3.digest(97)), 97) self.assertEqual(len(sha3.hexdigest(97)), 194) else: self.assertEqual(len(sha3.digest()), self.digest_size) self.assertEqual(len(sha3.hexdigest()), self.digest_size * 2) # object is read-only self.assertRaises(AttributeError, setattr, sha3, "attribute", None) self.assertRaises(AttributeError, setattr, sha3, "digest_size", 3) self.assertRaises(AttributeError, setattr, sha3, "name", "egg") self.new(b"data") self.new(string=b"data") self.assertRaises(TypeError, self.new, None) self.assertRaises(TypeError, sha3.update, None) self.assertRaises(TypeError, self.new, asunicode("text")) self.assertRaises(TypeError, sha3.update, asunicode("text")) sha3type = type(sha3) self.assertEqual(sha3type.__name__, self.name) self.assertEqual(sha3type.__module__, "_pysha3") self.assertIsInstance(sha3type(), sha3type) self.assertIs(sha3type, self.new) self.assertRaises(TypeError, type, sha3type, "subclass", {}) def test_hashlib(self): constructor = getattr(hashlib, self.name) s1 = constructor() self.assertEqual(s1.name, self.name) self.assertEqual(s1.digest_size, self.digest_size) # s2 = hashlib.new(self.name) # self.assertEqual(s2.name, self.name) # self.assertEqual(s2.digest_size, self.digest_size) # self.assertEqual(type(s1), type(s2)) # if sys.version_info < (3, 4): # self.assertEqual(constructor, self.new) def test_vectors(self): for hexmsg, hexdigest in read_vectors(self.name): self.assertHashDigest(hexmsg, hexdigest) def test_vectors_unaligned(self): for hexmsg, hexdigest in self.vectors: hexdigest = hexdigest.lower() msg = fromhex(hexmsg) digest = fromhex(hexdigest) for i in range(1, 15): msg2 = i * b"\x00" + msg unaligned = memoryview(msg2)[i:] self.assertEqual(unaligned, msg) sha3 = self.new(unaligned) self.assertEqual(sha3.hexdigest(), hexdigest) self.assertEqual(sha3.digest(), digest) def test_hmac(self): for (key, msg), expected in zip(self.hmac_vectors, self.hmac_results): key = fromhex(key) msg = fromhex(msg) mac = hmac.new(key, msg, self.new) self.assertEqual(len(mac.digest()), self.digest_size) result = mac.hexdigest() self.assertEqual(result, expected, "%s != %s for %r, %r" % (result, expected, key, msg)) class BaseKeccakTests(BaseSHA3Tests): def test_hashlib(self): self.failIf(hasattr(hashlib, self.name)) class BaseShakeTests(BaseSHA3Tests): shake = True def assertHashDigest(self, hexmsg, hexdigest): hexdigest = hexdigest.lower() msg = fromhex(hexmsg) digest = fromhex(hexdigest) # self.assertEqual(len(digest), self.digest_size) sha3 = self.new(msg) self.assertEqual(sha3.hexdigest(len(digest)), hexdigest) self.assertEqual(sha3.digest(len(digest)), digest) sha3 = self.new() sha3.update(msg) self.assertEqual(sha3.hexdigest(len(digest)), hexdigest) self.assertEqual(sha3.digest(len(digest)), digest) sha3 = self.new() for b in msg: sha3.update(tobyte(b)) self.assertEqual(sha3.hexdigest(len(digest)), hexdigest) self.assertEqual(sha3.digest(len(digest)), digest) class SHA3_224Tests(BaseSHA3Tests): new = sha3.sha3_224 name = "sha3_224" digest_size = 28 block_size = 144 rate_bits = 1152 capacity_bits = 448 hmac_results = [ "3b16546bbc7be2706a031dcafd56373d9884367641d8c59af3c860f7", "c79c9b093424e588a9878bbcb089e018270096e9b4b1a9e8220c866a", ] class SHA3_256Tests(BaseSHA3Tests): new = sha3.sha3_256 name = "sha3_256" digest_size = 32 block_size = 136 rate_bits = 1088 capacity_bits = 512 hmac_results = [ "ba85192310dffa96e2a3a40e69774351140bb7185e1202cdcc917589f95e16bb", "e6a36d9b915f86a093cac7d110e9e04cf1d6100d30475509c2475f571b758b5a", ] class SHA3_384Tests(BaseSHA3Tests): new = sha3.sha3_384 name = "sha3_384" digest_size = 48 block_size = 104 rate_bits = 832 capacity_bits = 768 hmac_results = [ "68d2dcf7fd4ddd0a2240c8a437305f61fb7334cfb5d0226e1bc27dc10a2e72" + "3a20d370b47743130e26ac7e3d532886bd", "cad18a8ff6c4cc3ad487b95f9769e9b61c062aefd6952569e6e6421897054c" + "fc70b5fdc6605c18457112fc6aaad45585", ] class SHA3_512Tests(BaseSHA3Tests): new = sha3.sha3_512 name = "sha3_512" digest_size = 64 block_size = 72 rate_bits = 576 capacity_bits = 1024 hmac_results = [ "eb3fbd4b2eaab8f5c504bd3a41465aacec15770a7cabac531e482f860b5ec7" + "ba47ccb2c6f2afce8f88d22b6dc61380f23a668fd3888bb80537c0a0b86407689e", "dc030ee7887034f32cf402df34622f311f3e6cf04860c6bbd7fa488674782b" + "4659fdbdf3fd877852885cfe6e22185fe7b2ee952043629bc9d5f3298a41d02c66", ] class Shake_128Tests(BaseShakeTests): new = sha3.shake_128 name = "shake_128" digest_size = 0 block_size = 168 rate_bits = 1344 capacity_bits = 256 class Shake_256Tests(BaseShakeTests): new = sha3.shake_256 name = "shake_256" digest_size = 0 block_size = 136 rate_bits = 1088 capacity_bits = 512 class Keccak_224Tests(BaseKeccakTests): new = sha3.keccak_224 name = "keccak_224" digest_size = 28 block_size = 144 rate_bits = 1152 capacity_bits = 448 hmac_results = [ "b73d595a2ba9af815e9f2b4e53e78581ebd34a80b3bbaac4e702c4cc", "92649468be236c3c72c189909c063b13f994be05749dc91310db639e", ] class Keccak_256Tests(BaseKeccakTests): new = sha3.keccak_256 name = "keccak_256" digest_size = 32 block_size = 136 rate_bits = 1088 capacity_bits = 512 hmac_results = [ "9663d10c73ee294054dc9faf95647cb99731d12210ff7075fb3d3395abfb9821", "fdaa10a0299aecff9bb411cf2d7748a4022e4a26be3fb5b11b33d8c2b7ef5484", ] class Keccak_384Tests(BaseKeccakTests): new = sha3.keccak_384 name = "keccak_384" digest_size = 48 block_size = 104 rate_bits = 832 capacity_bits = 768 hmac_results = [ "892dfdf5d51e4679bf320cd16d4c9dc6f749744608e003add7fba894acff87" + "361efa4e5799be06b6461f43b60ae97048", "fe9357e3cfa538eb0373a2ce8f1e26ad6590afdaf266f1300522e8896d27e7" + "3f654d0631c8fa598d4bb82af6b744f4f5", ] class Keccak_512Tests(BaseKeccakTests): new = sha3.keccak_512 name = "keccak_512" digest_size = 64 block_size = 72 rate_bits = 576 capacity_bits = 1024 hmac_results = [ "8852c63be8cfc21541a4ee5e5a9a852fc2f7a9adec2ff3a13718ab4ed81aae" + "a0b87b7eb397323548e261a64e7fc75198f6663a11b22cd957f7c8ec858a1c7755", "6adc502f14e27812402fc81a807b28bf8a53c87bea7a1df6256bf66f5de1a4" + "cb741407ad15ab8abc136846057f881969fbb159c321c904bfb557b77afb7778c8", ] def test_main(): suite = unittest.TestSuite() classes = [ SHA3_224Tests, SHA3_256Tests, SHA3_384Tests, SHA3_512Tests, Shake_128Tests, Shake_256Tests, Keccak_224Tests, Keccak_256Tests, Keccak_384Tests, Keccak_512Tests, ] for cls in classes: suite.addTests(unittest.makeSuite(cls)) return suite if __name__ == "__main__": result = unittest.TextTestRunner(verbosity=2).run(test_main()) sys.exit(not result.wasSuccessful())
[ 1, 529, 276, 1112, 420, 29958, 29909, 533, 328, 29914, 2272, 17051, 29941, 13, 3166, 4770, 29888, 9130, 1649, 1053, 1596, 29918, 2220, 13, 13, 5215, 6608, 1982, 13, 5215, 298, 8628, 13, 5215, 2897, 13, 5215, 10876, 13, 5215, 443, 27958, 13, 13, 5215, 528, 29874, 29941, 13, 13, 13, 361, 10876, 29889, 3259, 29918, 3888, 29961, 29900, 29962, 1275, 29871, 29941, 29901, 13, 1678, 515, 20970, 353, 6262, 29889, 3166, 20970, 13, 13, 1678, 822, 304, 10389, 29898, 29890, 1125, 13, 4706, 736, 6262, 4197, 29890, 2314, 13, 13, 1678, 822, 408, 2523, 356, 29898, 29879, 1125, 13, 4706, 736, 269, 13, 2870, 29901, 13, 1678, 822, 515, 20970, 29898, 29879, 1125, 13, 4706, 736, 269, 29889, 13808, 877, 20970, 1495, 13, 13, 1678, 822, 304, 10389, 29898, 29890, 1125, 13, 4706, 736, 6262, 29898, 29890, 29897, 13, 13, 1678, 822, 408, 2523, 356, 29898, 29879, 1125, 13, 4706, 736, 269, 29889, 13808, 877, 294, 18869, 1495, 13, 13, 13, 1753, 1303, 29918, 345, 14359, 29898, 8568, 29918, 978, 1125, 13, 1678, 4608, 353, 2897, 29889, 2084, 29889, 7122, 877, 345, 14359, 742, 6608, 29918, 978, 718, 15300, 3945, 1495, 13, 1678, 411, 1722, 29898, 8111, 29897, 408, 285, 29901, 13, 4706, 363, 1196, 297, 285, 29901, 13, 9651, 1196, 353, 1196, 29889, 17010, 580, 13, 9651, 565, 1196, 29889, 27382, 2541, 14237, 1495, 470, 451, 1196, 29901, 13, 18884, 6773, 13, 9651, 10191, 29892, 22821, 353, 1196, 29889, 5451, 29317, 1495, 13, 9651, 7709, 10191, 29892, 22821, 13, 13, 13, 1990, 7399, 23498, 29941, 24376, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 1678, 716, 353, 6213, 13, 1678, 1024, 353, 6213, 13, 1678, 4697, 342, 29918, 2311, 353, 6213, 13, 1678, 2908, 29918, 2311, 353, 6213, 13, 1678, 6554, 29918, 14836, 353, 6213, 13, 1678, 13284, 29918, 14836, 353, 6213, 13, 1678, 528, 1296, 353, 7700, 13, 13, 1678, 12047, 353, 5159, 13, 1678, 396, 1732, 597, 29893, 4369, 8029, 29899, 29872, 1092, 25603, 29889, 311, 29914, 7184, 562, 29899, 17051, 29941, 29899, 1688, 345, 14359, 29889, 1420, 13, 1678, 298, 8628, 29918, 345, 14359, 353, 518, 13, 4706, 4852, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 29900, 29890, 613, 376, 29946, 29947, 29953, 29929, 29906, 29900, 29945, 29946, 29953, 29947, 29953, 29945, 29955, 29906, 29953, 29945, 4968, 13, 4706, 4852, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 29874, 29908, 718, 13, 308, 376, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 7340, 29908, 718, 13, 308, 376, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 7340, 29908, 718, 13, 308, 376, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 7340, 29908, 718, 13, 308, 376, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 27137, 7340, 29874, 613, 13, 308, 376, 29945, 29946, 29953, 29947, 29953, 29929, 29955, 29941, 29906, 29900, 29953, 29929, 29955, 29941, 29906, 29900, 29953, 29896, 29906, 29900, 29955, 29946, 29953, 29945, 29955, 29941, 29955, 29946, 29906, 29900, 29955, 29945, 29955, 29941, 29953, 29929, 29953, 29872, 29953, 29955, 29906, 29900, 29953, 29896, 29906, 29900, 29953, 29883, 29953, 29896, 29955, 29906, 29953, 29955, 29953, 29945, 29955, 29906, 29906, 29900, 29955, 29908, 718, 13, 308, 376, 29946, 29953, 29947, 29953, 29896, 29953, 29872, 29906, 29900, 29953, 29906, 29953, 29883, 29953, 29888, 29953, 29941, 29953, 29890, 29906, 29881, 29955, 29941, 29953, 29929, 29955, 29874, 29953, 29945, 29906, 29900, 29953, 29890, 29953, 29945, 29955, 29929, 29906, 29900, 29953, 29896, 29953, 29872, 29953, 29946, 29906, 29900, 29953, 29896, 29906, 29900, 29953, 29883, 29953, 29896, 29955, 29906, 29953, 29955, 29953, 29945, 29955, 29908, 718, 13, 308, 376, 29906, 29906, 29900, 29955, 29946, 29953, 29947, 29953, 29896, 29953, 29872, 29906, 29900, 29953, 29906, 29953, 29883, 29953, 29888, 29953, 29941, 29953, 29890, 29906, 29881, 29955, 29941, 29953, 29929, 29955, 29874, 29953, 29945, 29906, 29900, 29953, 29946, 29953, 29896, 29955, 29946, 29953, 29896, 29906, 29872, 29906, 29900, 29945, 29946, 29953, 29947, 29953, 29945, 29906, 29900, 29953, 29890, 29953, 29945, 29955, 29929, 29906, 29908, 718, 13, 308, 376, 29900, 29953, 29872, 29953, 29945, 29953, 29945, 29953, 29946, 29955, 29941, 29906, 29900, 29955, 29946, 29953, 29888, 29906, 29900, 29953, 29906, 29953, 29945, 29906, 29900, 29953, 29947, 29953, 29896, 29955, 29941, 29953, 29947, 29953, 29945, 29953, 29946, 29906, 29900, 29953, 29906, 29953, 29945, 29953, 29953, 29953, 29888, 29955, 29906, 29953, 29945, 29906, 29900, 29953, 29906, 29953, 29945, 29953, 29929, 29953, 29872, 29953, 29908, 718, 13, 308, 376, 29955, 29906, 29900, 29955, 29945, 29955, 29941, 29953, 29945, 29953, 29946, 29906, 29900, 29953, 29906, 29955, 29929, 29906, 29900, 29955, 29946, 29953, 29947, 29953, 29945, 29906, 29900, 29946, 29947, 29946, 29881, 29946, 29896, 29946, 29941, 29906, 29900, 29953, 29896, 29953, 29883, 29953, 29955, 29953, 29888, 29955, 29906, 29953, 29929, 29955, 29946, 29953, 29947, 29953, 29881, 29906, 29872, 1159, 13, 1678, 4514, 13, 1678, 298, 8628, 29918, 9902, 353, 5159, 13, 13, 1678, 822, 4974, 10438, 14991, 342, 29898, 1311, 29892, 15090, 7645, 29892, 15090, 7501, 342, 1125, 13, 4706, 15090, 7501, 342, 353, 15090, 7501, 342, 29889, 13609, 580, 13, 4706, 10191, 353, 515, 20970, 29898, 20970, 7645, 29897, 13, 4706, 4697, 342, 353, 515, 20970, 29898, 20970, 7501, 342, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 2435, 29898, 7501, 342, 511, 1583, 29889, 7501, 342, 29918, 2311, 29897, 13, 13, 4706, 528, 29874, 29941, 353, 1583, 29889, 1482, 29898, 7645, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 20970, 7501, 342, 3285, 15090, 7501, 342, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 7501, 342, 3285, 4697, 342, 29897, 13, 13, 4706, 528, 29874, 29941, 353, 1583, 29889, 1482, 580, 13, 4706, 528, 29874, 29941, 29889, 5504, 29898, 7645, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 20970, 7501, 342, 3285, 15090, 7501, 342, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 7501, 342, 3285, 4697, 342, 29897, 13, 13, 4706, 528, 29874, 29941, 353, 1583, 29889, 1482, 580, 13, 4706, 363, 289, 297, 10191, 29901, 13, 9651, 528, 29874, 29941, 29889, 5504, 29898, 517, 10389, 29898, 29890, 876, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 20970, 7501, 342, 3285, 15090, 7501, 342, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 7501, 342, 3285, 4697, 342, 29897, 13, 13, 1678, 822, 1243, 29918, 6500, 1199, 29898, 1311, 1125, 13, 4706, 528, 29874, 29941, 353, 1583, 29889, 1482, 580, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 978, 29892, 1583, 29889, 978, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 7501, 342, 29918, 2311, 29892, 1583, 29889, 7501, 342, 29918, 2311, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 3032, 5030, 5946, 29918, 14836, 718, 528, 29874, 29941, 3032, 10492, 29918, 14836, 29892, 29871, 29896, 29953, 29900, 29900, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 3032, 10492, 29918, 14836, 29892, 1583, 29889, 10492, 29918, 14836, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 3032, 5030, 5946, 29918, 14836, 29892, 1583, 29889, 5030, 5946, 29918, 14836, 29897, 13, 4706, 565, 1583, 29889, 1271, 29918, 2311, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 1271, 29918, 2311, 29892, 1583, 29889, 1271, 29918, 2311, 29897, 13, 13, 4706, 565, 1583, 29889, 845, 1296, 29901, 13, 9651, 1583, 29889, 9294, 9843, 29898, 2435, 29898, 17051, 29941, 29889, 7501, 342, 29898, 29946, 8243, 29871, 29946, 29897, 13, 9651, 1583, 29889, 9294, 9843, 29898, 2435, 29898, 17051, 29941, 29889, 20970, 7501, 342, 29898, 29946, 8243, 29871, 29947, 29897, 13, 9651, 1583, 29889, 9294, 9843, 29898, 2435, 29898, 17051, 29941, 29889, 7501, 342, 29898, 29947, 8243, 29871, 29947, 29897, 13, 9651, 1583, 29889, 9294, 9843, 29898, 2435, 29898, 17051, 29941, 29889, 20970, 7501, 342, 29898, 29947, 8243, 29871, 29896, 29953, 29897, 13, 9651, 1583, 29889, 9294, 9843, 29898, 2435, 29898, 17051, 29941, 29889, 7501, 342, 29898, 29929, 29955, 8243, 29871, 29929, 29955, 29897, 13, 9651, 1583, 29889, 9294, 9843, 29898, 2435, 29898, 17051, 29941, 29889, 20970, 7501, 342, 29898, 29929, 29955, 8243, 29871, 29896, 29929, 29946, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 9294, 9843, 29898, 2435, 29898, 17051, 29941, 29889, 7501, 342, 25739, 1583, 29889, 7501, 342, 29918, 2311, 29897, 13, 9651, 1583, 29889, 9294, 9843, 29898, 2435, 29898, 17051, 29941, 29889, 20970, 7501, 342, 25739, 1583, 29889, 7501, 342, 29918, 2311, 334, 29871, 29906, 29897, 13, 13, 4706, 396, 1203, 338, 1303, 29899, 6194, 13, 4706, 1583, 29889, 9294, 29934, 1759, 267, 29898, 6708, 2392, 29892, 731, 5552, 29892, 528, 29874, 29941, 29892, 376, 12715, 613, 6213, 29897, 13, 4706, 1583, 29889, 9294, 29934, 1759, 267, 29898, 6708, 2392, 29892, 731, 5552, 29892, 528, 29874, 29941, 29892, 376, 7501, 342, 29918, 2311, 613, 29871, 29941, 29897, 13, 4706, 1583, 29889, 9294, 29934, 1759, 267, 29898, 6708, 2392, 29892, 731, 5552, 29892, 528, 29874, 29941, 29892, 376, 978, 613, 376, 387, 29887, 1159, 13, 13, 4706, 1583, 29889, 1482, 29898, 29890, 29908, 1272, 1159, 13, 4706, 1583, 29889, 1482, 29898, 1807, 29922, 29890, 29908, 1272, 1159, 13, 4706, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1542, 2392, 29892, 1583, 29889, 1482, 29892, 6213, 29897, 13, 4706, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1542, 2392, 29892, 528, 29874, 29941, 29889, 5504, 29892, 6213, 29897, 13, 4706, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1542, 2392, 29892, 1583, 29889, 1482, 29892, 408, 2523, 356, 703, 726, 5783, 13, 4706, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1542, 2392, 29892, 528, 29874, 29941, 29889, 5504, 29892, 408, 2523, 356, 703, 726, 5783, 13, 13, 4706, 528, 29874, 29941, 1853, 353, 1134, 29898, 17051, 29941, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 1853, 17255, 978, 1649, 29892, 1583, 29889, 978, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 1853, 17255, 5453, 1649, 29892, 11119, 2272, 17051, 29941, 1159, 13, 4706, 1583, 29889, 9294, 3624, 4998, 29898, 17051, 29941, 1853, 3285, 528, 29874, 29941, 1853, 29897, 13, 4706, 1583, 29889, 9294, 3624, 29898, 17051, 29941, 1853, 29892, 1583, 29889, 1482, 29897, 13, 4706, 1583, 29889, 9294, 29934, 1759, 267, 29898, 1542, 2392, 29892, 1134, 29892, 528, 29874, 29941, 1853, 29892, 376, 1491, 1990, 613, 426, 1800, 13, 13, 1678, 822, 1243, 29918, 8568, 1982, 29898, 1311, 1125, 13, 4706, 5823, 353, 679, 5552, 29898, 8568, 1982, 29892, 1583, 29889, 978, 29897, 13, 4706, 269, 29896, 353, 5823, 580, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29879, 29896, 29889, 978, 29892, 1583, 29889, 978, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29879, 29896, 29889, 7501, 342, 29918, 2311, 29892, 1583, 29889, 7501, 342, 29918, 2311, 29897, 13, 13, 4706, 396, 269, 29906, 353, 6608, 1982, 29889, 1482, 29898, 1311, 29889, 978, 29897, 13, 4706, 396, 1583, 29889, 9294, 9843, 29898, 29879, 29906, 29889, 978, 29892, 1583, 29889, 978, 29897, 13, 4706, 396, 1583, 29889, 9294, 9843, 29898, 29879, 29906, 29889, 7501, 342, 29918, 2311, 29892, 1583, 29889, 7501, 342, 29918, 2311, 29897, 13, 4706, 396, 1583, 29889, 9294, 9843, 29898, 1853, 29898, 29879, 29896, 511, 1134, 29898, 29879, 29906, 876, 13, 13, 4706, 396, 565, 10876, 29889, 3259, 29918, 3888, 529, 313, 29941, 29892, 29871, 29946, 1125, 13, 4706, 396, 268, 1583, 29889, 9294, 9843, 29898, 27821, 29892, 1583, 29889, 1482, 29897, 13, 13, 1678, 822, 1243, 29918, 345, 14359, 29898, 1311, 1125, 13, 4706, 363, 15090, 7645, 29892, 15090, 7501, 342, 297, 1303, 29918, 345, 14359, 29898, 1311, 29889, 978, 1125, 13, 9651, 1583, 29889, 9294, 10438, 14991, 342, 29898, 20970, 7645, 29892, 15090, 7501, 342, 29897, 13, 13, 1678, 822, 1243, 29918, 345, 14359, 29918, 348, 13671, 29898, 1311, 1125, 13, 4706, 363, 15090, 7645, 29892, 15090, 7501, 342, 297, 1583, 29889, 345, 14359, 29901, 13, 9651, 15090, 7501, 342, 353, 15090, 7501, 342, 29889, 13609, 580, 13, 9651, 10191, 353, 515, 20970, 29898, 20970, 7645, 29897, 13, 9651, 4697, 342, 353, 515, 20970, 29898, 20970, 7501, 342, 29897, 13, 9651, 363, 474, 297, 3464, 29898, 29896, 29892, 29871, 29896, 29945, 1125, 13, 18884, 10191, 29906, 353, 474, 334, 289, 26732, 29916, 29900, 29900, 29908, 718, 10191, 13, 18884, 443, 13671, 353, 3370, 1493, 29898, 7645, 29906, 9601, 29875, 17531, 13, 18884, 1583, 29889, 9294, 9843, 29898, 348, 13671, 29892, 10191, 29897, 13, 13, 18884, 528, 29874, 29941, 353, 1583, 29889, 1482, 29898, 348, 13671, 29897, 13, 18884, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 20970, 7501, 342, 3285, 15090, 7501, 342, 29897, 13, 18884, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 7501, 342, 3285, 4697, 342, 29897, 13, 13, 1678, 822, 1243, 29918, 7184, 562, 29898, 1311, 1125, 13, 4706, 363, 313, 1989, 29892, 10191, 511, 3806, 297, 14319, 29898, 1311, 29889, 7184, 562, 29918, 345, 14359, 29892, 1583, 29889, 7184, 562, 29918, 9902, 1125, 13, 9651, 1820, 353, 515, 20970, 29898, 1989, 29897, 13, 9651, 10191, 353, 515, 20970, 29898, 7645, 29897, 13, 9651, 5825, 353, 298, 8628, 29889, 1482, 29898, 1989, 29892, 10191, 29892, 1583, 29889, 1482, 29897, 13, 9651, 1583, 29889, 9294, 9843, 29898, 2435, 29898, 8628, 29889, 7501, 342, 25739, 1583, 29889, 7501, 342, 29918, 2311, 29897, 13, 9651, 1121, 353, 5825, 29889, 20970, 7501, 342, 580, 13, 9651, 1583, 29889, 9294, 9843, 29898, 2914, 29892, 3806, 29892, 13, 462, 632, 11860, 29879, 2804, 1273, 29879, 363, 1273, 29878, 29892, 1273, 29878, 29908, 1273, 13, 462, 632, 313, 2914, 29892, 3806, 29892, 1820, 29892, 10191, 876, 13, 13, 13, 1990, 7399, 9598, 617, 557, 24376, 29898, 5160, 23498, 29941, 24376, 1125, 13, 1678, 822, 1243, 29918, 8568, 1982, 29898, 1311, 1125, 13, 4706, 1583, 29889, 14057, 3644, 29898, 5349, 5552, 29898, 8568, 1982, 29892, 1583, 29889, 978, 876, 13, 13, 13, 1990, 7399, 2713, 1296, 24376, 29898, 5160, 23498, 29941, 24376, 1125, 13, 1678, 528, 1296, 353, 5852, 13, 13, 1678, 822, 4974, 10438, 14991, 342, 29898, 1311, 29892, 15090, 7645, 29892, 15090, 7501, 342, 1125, 13, 4706, 15090, 7501, 342, 353, 15090, 7501, 342, 29889, 13609, 580, 13, 4706, 10191, 353, 515, 20970, 29898, 20970, 7645, 29897, 13, 4706, 4697, 342, 353, 515, 20970, 29898, 20970, 7501, 342, 29897, 13, 4706, 396, 1583, 29889, 9294, 9843, 29898, 2435, 29898, 7501, 342, 511, 1583, 29889, 7501, 342, 29918, 2311, 29897, 13, 13, 4706, 528, 29874, 29941, 353, 1583, 29889, 1482, 29898, 7645, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 20970, 7501, 342, 29898, 2435, 29898, 7501, 342, 8243, 15090, 7501, 342, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 7501, 342, 29898, 2435, 29898, 7501, 342, 8243, 4697, 342, 29897, 13, 13, 4706, 528, 29874, 29941, 353, 1583, 29889, 1482, 580, 13, 4706, 528, 29874, 29941, 29889, 5504, 29898, 7645, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 20970, 7501, 342, 29898, 2435, 29898, 7501, 342, 8243, 15090, 7501, 342, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 7501, 342, 29898, 2435, 29898, 7501, 342, 8243, 4697, 342, 29897, 13, 13, 4706, 528, 29874, 29941, 353, 1583, 29889, 1482, 580, 13, 4706, 363, 289, 297, 10191, 29901, 13, 9651, 528, 29874, 29941, 29889, 5504, 29898, 517, 10389, 29898, 29890, 876, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 20970, 7501, 342, 29898, 2435, 29898, 7501, 342, 8243, 15090, 7501, 342, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 17051, 29941, 29889, 7501, 342, 29898, 2435, 29898, 7501, 342, 8243, 4697, 342, 29897, 13, 13, 13, 1990, 317, 15715, 29941, 29918, 29906, 29906, 29946, 24376, 29898, 5160, 23498, 29941, 24376, 1125, 13, 1678, 716, 353, 528, 29874, 29941, 29889, 17051, 29941, 29918, 29906, 29906, 29946, 13, 1678, 1024, 353, 376, 17051, 29941, 29918, 29906, 29906, 29946, 29908, 13, 1678, 4697, 342, 29918, 2311, 353, 29871, 29906, 29947, 13, 1678, 2908, 29918, 2311, 353, 29871, 29896, 29946, 29946, 13, 1678, 6554, 29918, 14836, 353, 29871, 29896, 29896, 29945, 29906, 13, 1678, 13284, 29918, 14836, 353, 29871, 29946, 29946, 29947, 13, 1678, 298, 8628, 29918, 9902, 353, 518, 13, 4706, 376, 29941, 29890, 29896, 29953, 29945, 29946, 29953, 1327, 29883, 29955, 915, 29906, 29955, 29900, 29953, 29874, 29900, 29941, 29896, 29881, 1113, 11512, 29945, 29953, 29941, 29955, 29941, 29881, 29929, 29947, 29947, 29946, 29941, 29953, 29955, 29953, 29946, 29896, 29881, 29947, 29883, 29945, 29929, 2142, 29941, 29883, 29947, 29953, 29900, 29888, 29955, 613, 13, 4706, 376, 29883, 29955, 29929, 29883, 29929, 29890, 29900, 29929, 29941, 29946, 29906, 29946, 29872, 29945, 29947, 29947, 29874, 29929, 29947, 29955, 29947, 1327, 10702, 29900, 29947, 29929, 29872, 29900, 29896, 29947, 29906, 29955, 29900, 29900, 29929, 29953, 29872, 29929, 29890, 29946, 29890, 29896, 29874, 29929, 29872, 29947, 29906, 29906, 29900, 29883, 29947, 29953, 29953, 29874, 613, 13, 4706, 4514, 13, 13, 13, 1990, 317, 15715, 29941, 29918, 29906, 29945, 29953, 24376, 29898, 5160, 23498, 29941, 24376, 1125, 13, 1678, 716, 353, 528, 29874, 29941, 29889, 17051, 29941, 29918, 29906, 29945, 29953, 13, 1678, 1024, 353, 376, 17051, 29941, 29918, 29906, 29945, 29953, 29908, 13, 1678, 4697, 342, 29918, 2311, 353, 29871, 29941, 29906, 13, 1678, 2908, 29918, 2311, 353, 29871, 29896, 29941, 29953, 13, 1678, 6554, 29918, 14836, 353, 29871, 29896, 29900, 29947, 29947, 13, 1678, 13284, 29918, 14836, 353, 29871, 29945, 29896, 29906, 13, 1678, 298, 8628, 29918, 9902, 353, 518, 13, 4706, 376, 2291, 29947, 29945, 29896, 29929, 29906, 29941, 29896, 29900, 29881, 600, 29874, 29929, 29953, 29872, 29906, 29874, 29941, 29874, 29946, 29900, 29872, 29953, 29929, 29955, 29955, 29946, 29941, 29945, 29896, 29896, 29946, 29900, 1327, 29955, 29896, 29947, 29945, 29872, 29896, 29906, 29900, 29906, 2252, 617, 29929, 29896, 29955, 29945, 29947, 29929, 29888, 29929, 29945, 29872, 29896, 29953, 1327, 613, 13, 4706, 376, 29872, 29953, 29874, 29941, 29953, 29881, 29929, 29890, 29929, 29896, 29945, 29888, 29947, 29953, 29874, 29900, 29929, 29941, 29883, 562, 29955, 29881, 29896, 29896, 29900, 29872, 29929, 29872, 29900, 29946, 6854, 29896, 29881, 29953, 29896, 29900, 29900, 29881, 29941, 29900, 29946, 29955, 29945, 29945, 29900, 29929, 29883, 29906, 29946, 29955, 29945, 29888, 29945, 29955, 29896, 29890, 29955, 29945, 29947, 29890, 29945, 29874, 613, 13, 4706, 4514, 13, 13, 13, 1990, 317, 15715, 29941, 29918, 29941, 29947, 29946, 24376, 29898, 5160, 23498, 29941, 24376, 1125, 13, 1678, 716, 353, 528, 29874, 29941, 29889, 17051, 29941, 29918, 29941, 29947, 29946, 13, 1678, 1024, 353, 376, 17051, 29941, 29918, 29941, 29947, 29946, 29908, 13, 1678, 4697, 342, 29918, 2311, 353, 29871, 29946, 29947, 13, 1678, 2908, 29918, 2311, 353, 29871, 29896, 29900, 29946, 13, 1678, 6554, 29918, 14836, 353, 29871, 29947, 29941, 29906, 13, 1678, 13284, 29918, 14836, 353, 29871, 29955, 29953, 29947, 13, 1678, 298, 8628, 29918, 9902, 353, 518, 13, 4706, 376, 29953, 29947, 29881, 29906, 29881, 6854, 29955, 11512, 29946, 1289, 29881, 29900, 29874, 29906, 29906, 29946, 29900, 29883, 29947, 29874, 29946, 29941, 29955, 29941, 29900, 29945, 29888, 29953, 29896, 14943, 29955, 29941, 29941, 29946, 6854, 29890, 29945, 29881, 29900, 29906, 29906, 29953, 29872, 29896, 12328, 29906, 29955, 13891, 29896, 29900, 29874, 29906, 29872, 29955, 29906, 29908, 718, 13, 4706, 376, 29941, 29874, 29906, 29900, 29881, 29941, 29955, 29900, 29890, 29946, 29955, 29955, 29946, 29941, 29896, 29941, 29900, 29872, 29906, 29953, 562, 29955, 29872, 29941, 29881, 29945, 29941, 29906, 29947, 29947, 29953, 6448, 613, 13, 4706, 376, 29883, 328, 29896, 29947, 29874, 29947, 600, 29953, 29883, 29946, 617, 29941, 328, 29946, 29947, 29955, 29890, 29929, 29945, 29888, 29929, 29955, 29953, 29929, 29872, 29929, 29890, 29953, 29896, 29883, 29900, 29953, 29906, 29874, 1389, 29881, 29953, 29929, 29945, 29906, 29945, 29953, 29929, 29872, 29953, 29872, 29953, 29946, 29906, 29896, 29947, 29929, 29955, 29900, 29945, 29946, 29883, 29908, 718, 13, 4706, 376, 13801, 29955, 29900, 29890, 29945, 11512, 29883, 29953, 29953, 29900, 29945, 29883, 29896, 29947, 29946, 29945, 29955, 29896, 29896, 29906, 13801, 29953, 7340, 328, 29946, 29945, 29945, 29947, 29945, 613, 13, 4706, 4514, 13, 13, 13, 1990, 317, 15715, 29941, 29918, 29945, 29896, 29906, 24376, 29898, 5160, 23498, 29941, 24376, 1125, 13, 1678, 716, 353, 528, 29874, 29941, 29889, 17051, 29941, 29918, 29945, 29896, 29906, 13, 1678, 1024, 353, 376, 17051, 29941, 29918, 29945, 29896, 29906, 29908, 13, 1678, 4697, 342, 29918, 2311, 353, 29871, 29953, 29946, 13, 1678, 2908, 29918, 2311, 353, 29871, 29955, 29906, 13, 1678, 6554, 29918, 14836, 353, 29871, 29945, 29955, 29953, 13, 1678, 13284, 29918, 14836, 353, 29871, 29896, 29900, 29906, 29946, 13, 1678, 298, 8628, 29918, 9902, 353, 518, 13, 4706, 376, 774, 29941, 29888, 6448, 29946, 29890, 29906, 11248, 370, 29947, 29888, 29945, 29883, 29945, 29900, 29946, 6448, 29941, 29874, 29946, 29896, 29946, 29953, 29945, 29874, 815, 29883, 29896, 29945, 29955, 29955, 29900, 29874, 29955, 29883, 370, 562, 29945, 29941, 29896, 29872, 29946, 29947, 29906, 29888, 29947, 29953, 29900, 29890, 29945, 687, 29955, 29908, 718, 13, 4706, 376, 2291, 29946, 29955, 617, 29890, 29906, 29883, 29953, 29888, 29906, 2142, 346, 29947, 29888, 29947, 29947, 29881, 29906, 29906, 29890, 29953, 13891, 29953, 29896, 29941, 29947, 29900, 29888, 29906, 29941, 29874, 29953, 29953, 29947, 11512, 29941, 29947, 29947, 29947, 1327, 29947, 29900, 29945, 29941, 29955, 29883, 29900, 29874, 29900, 29890, 29947, 29953, 29946, 29900, 29955, 29953, 29947, 29929, 29872, 613, 13, 4706, 376, 13891, 29900, 29941, 29900, 3905, 29955, 29947, 29947, 29955, 29900, 29941, 29946, 29888, 29941, 29906, 6854, 29946, 29900, 29906, 2176, 29941, 29946, 29953, 29906, 29906, 29888, 29941, 29896, 29896, 29888, 29941, 29872, 29953, 6854, 29900, 29946, 29947, 29953, 29900, 29883, 29953, 1327, 29881, 29955, 5444, 29946, 29947, 29947, 29953, 29955, 29946, 29955, 29947, 29906, 29890, 29908, 718, 13, 4706, 376, 29946, 29953, 29945, 29929, 29888, 2585, 2176, 29941, 11512, 29947, 29955, 29955, 29947, 29945, 29906, 29947, 29947, 29945, 29883, 1725, 29953, 29872, 29906, 29906, 29896, 29947, 29945, 1725, 29955, 29890, 29906, 3905, 29929, 29945, 29906, 29900, 29946, 29941, 29953, 29906, 29929, 12328, 29929, 29881, 29945, 29888, 29941, 29906, 29929, 29947, 29874, 29946, 29896, 29881, 29900, 29906, 29883, 29953, 29953, 613, 13, 4706, 4514, 13, 13, 13, 1990, 1383, 1296, 29918, 29896, 29906, 29947, 24376, 29898, 5160, 2713, 1296, 24376, 1125, 13, 1678, 716, 353, 528, 29874, 29941, 29889, 845, 1296, 29918, 29896, 29906, 29947, 13, 1678, 1024, 353, 376, 845, 1296, 29918, 29896, 29906, 29947, 29908, 13, 1678, 4697, 342, 29918, 2311, 353, 29871, 29900, 13, 1678, 2908, 29918, 2311, 353, 29871, 29896, 29953, 29947, 13, 1678, 6554, 29918, 14836, 353, 29871, 29896, 29941, 29946, 29946, 13, 1678, 13284, 29918, 14836, 353, 29871, 29906, 29945, 29953, 13, 13, 13, 1990, 1383, 1296, 29918, 29906, 29945, 29953, 24376, 29898, 5160, 2713, 1296, 24376, 1125, 13, 1678, 716, 353, 528, 29874, 29941, 29889, 845, 1296, 29918, 29906, 29945, 29953, 13, 1678, 1024, 353, 376, 845, 1296, 29918, 29906, 29945, 29953, 29908, 13, 1678, 4697, 342, 29918, 2311, 353, 29871, 29900, 13, 1678, 2908, 29918, 2311, 353, 29871, 29896, 29941, 29953, 13, 1678, 6554, 29918, 14836, 353, 29871, 29896, 29900, 29947, 29947, 13, 1678, 13284, 29918, 14836, 353, 29871, 29945, 29896, 29906, 13, 13, 13, 1990, 4813, 617, 557, 29918, 29906, 29906, 29946, 24376, 29898, 5160, 9598, 617, 557, 24376, 1125, 13, 1678, 716, 353, 528, 29874, 29941, 29889, 446, 617, 557, 29918, 29906, 29906, 29946, 13, 1678, 1024, 353, 376, 446, 617, 557, 29918, 29906, 29906, 29946, 29908, 13, 1678, 4697, 342, 29918, 2311, 353, 29871, 29906, 29947, 13, 1678, 2908, 29918, 2311, 353, 29871, 29896, 29946, 29946, 13, 1678, 6554, 29918, 14836, 353, 29871, 29896, 29896, 29945, 29906, 13, 1678, 13284, 29918, 14836, 353, 29871, 29946, 29946, 29947, 13, 1678, 298, 8628, 29918, 9902, 353, 518, 13, 4706, 376, 29890, 29955, 29941, 29881, 29945, 29929, 29945, 29874, 29906, 2291, 29929, 2142, 29947, 29896, 29945, 29872, 29929, 29888, 29906, 29890, 29946, 29872, 29945, 29941, 29872, 29955, 29947, 29945, 29947, 29896, 774, 29881, 29941, 29946, 29874, 29947, 29900, 29890, 29941, 1327, 29874, 562, 29946, 29872, 29955, 29900, 29906, 29883, 29946, 617, 613, 13, 4706, 376, 29929, 29906, 29953, 29946, 29929, 29946, 29953, 29947, 915, 29906, 29941, 29953, 29883, 29941, 29883, 29955, 29906, 29883, 29896, 29947, 29929, 29929, 29900, 29929, 29883, 29900, 29953, 29941, 29890, 29896, 29941, 29888, 29929, 29929, 29946, 915, 29900, 29945, 29955, 29946, 29929, 13891, 29929, 29896, 29941, 29896, 29900, 2585, 29953, 29941, 29929, 29872, 613, 13, 4706, 4514, 13, 13, 13, 1990, 4813, 617, 557, 29918, 29906, 29945, 29953, 24376, 29898, 5160, 9598, 617, 557, 24376, 1125, 13, 1678, 716, 353, 528, 29874, 29941, 29889, 446, 617, 557, 29918, 29906, 29945, 29953, 13, 1678, 1024, 353, 376, 446, 617, 557, 29918, 29906, 29945, 29953, 29908, 13, 1678, 4697, 342, 29918, 2311, 353, 29871, 29941, 29906, 13, 1678, 2908, 29918, 2311, 353, 29871, 29896, 29941, 29953, 13, 1678, 6554, 29918, 14836, 353, 29871, 29896, 29900, 29947, 29947, 13, 1678, 13284, 29918, 14836, 353, 29871, 29945, 29896, 29906, 13, 1678, 298, 8628, 29918, 9902, 353, 518, 13, 4706, 376, 29929, 29953, 29953, 29941, 29881, 29896, 29900, 29883, 29955, 29941, 3905, 29906, 29929, 29946, 29900, 29945, 29946, 13891, 29929, 29888, 2142, 29929, 29945, 29953, 29946, 29955, 10702, 29929, 29929, 29955, 29941, 29896, 29881, 29896, 29906, 29906, 29896, 29900, 600, 29955, 29900, 29955, 29945, 14943, 29941, 29881, 29941, 29941, 29929, 29945, 370, 14943, 29929, 29947, 29906, 29896, 613, 13, 4706, 376, 29888, 1388, 29874, 29896, 29900, 29874, 29900, 29906, 29929, 29929, 29874, 687, 600, 29929, 1327, 29946, 29896, 29896, 6854, 29906, 29881, 29955, 29955, 29946, 29947, 29874, 29946, 29900, 29906, 29906, 29872, 29946, 29874, 29906, 29953, 915, 29941, 14943, 29945, 29890, 29896, 29896, 29890, 29941, 29941, 29881, 29947, 29883, 29906, 29890, 29955, 1389, 29945, 29946, 29947, 29946, 613, 13, 4706, 4514, 13, 13, 13, 1990, 4813, 617, 557, 29918, 29941, 29947, 29946, 24376, 29898, 5160, 9598, 617, 557, 24376, 1125, 13, 1678, 716, 353, 528, 29874, 29941, 29889, 446, 617, 557, 29918, 29941, 29947, 29946, 13, 1678, 1024, 353, 376, 446, 617, 557, 29918, 29941, 29947, 29946, 29908, 13, 1678, 4697, 342, 29918, 2311, 353, 29871, 29946, 29947, 13, 1678, 2908, 29918, 2311, 353, 29871, 29896, 29900, 29946, 13, 1678, 6554, 29918, 14836, 353, 29871, 29947, 29941, 29906, 13, 1678, 13284, 29918, 14836, 353, 29871, 29955, 29953, 29947, 13, 1678, 298, 8628, 29918, 9902, 353, 518, 13, 4706, 376, 29947, 29929, 29906, 2176, 2176, 29945, 29881, 29945, 29896, 29872, 29946, 29953, 29955, 29929, 1635, 29941, 29906, 29900, 2252, 29896, 29953, 29881, 29946, 29883, 29929, 13891, 29953, 29888, 29955, 29946, 29929, 29955, 29946, 29946, 29953, 29900, 29947, 29872, 29900, 29900, 29941, 1202, 29955, 29888, 2291, 29947, 29929, 29946, 562, 600, 29947, 29955, 29908, 718, 13, 4706, 376, 29941, 29953, 29896, 1389, 29874, 29946, 29872, 29945, 29955, 29929, 29929, 915, 29900, 29953, 29890, 29953, 29946, 29953, 29896, 29888, 29946, 29941, 29890, 29953, 29900, 3660, 29929, 29955, 29900, 29946, 29947, 613, 13, 4706, 376, 1725, 29929, 29941, 29945, 29955, 29872, 29941, 29883, 5444, 29945, 29941, 29947, 774, 29900, 29941, 29955, 29941, 29874, 29906, 346, 29947, 29888, 29896, 29872, 29906, 29953, 328, 29953, 29945, 29929, 29900, 2142, 1388, 29888, 29906, 29953, 29953, 29888, 29896, 29941, 29900, 29900, 29945, 29906, 29906, 29872, 29947, 29947, 29929, 29953, 29881, 29906, 29955, 29872, 29955, 29908, 718, 13, 4706, 376, 29941, 29888, 29953, 29945, 29946, 29881, 29900, 29953, 29941, 29896, 29883, 29947, 5444, 29945, 29929, 29947, 29881, 29946, 1327, 29947, 29906, 2142, 29953, 29890, 29955, 29946, 29946, 29888, 29946, 29888, 29945, 613, 13, 4706, 4514, 13, 13, 13, 1990, 4813, 617, 557, 29918, 29945, 29896, 29906, 24376, 29898, 5160, 9598, 617, 557, 24376, 1125, 13, 1678, 716, 353, 528, 29874, 29941, 29889, 446, 617, 557, 29918, 29945, 29896, 29906, 13, 1678, 1024, 353, 376, 446, 617, 557, 29918, 29945, 29896, 29906, 29908, 13, 1678, 4697, 342, 29918, 2311, 353, 29871, 29953, 29946, 13, 1678, 2908, 29918, 2311, 353, 29871, 29955, 29906, 13, 1678, 6554, 29918, 14836, 353, 29871, 29945, 29955, 29953, 13, 1678, 13284, 29918, 14836, 353, 29871, 29896, 29900, 29906, 29946, 13, 1678, 298, 8628, 29918, 9902, 353, 518, 13, 4706, 376, 29947, 29947, 29945, 29906, 29883, 29953, 29941, 915, 29947, 6854, 29883, 29906, 29896, 29945, 29946, 29896, 29874, 29946, 3905, 29945, 29872, 29945, 29874, 29929, 29874, 29947, 29945, 29906, 13801, 29906, 29888, 29955, 29874, 29929, 1943, 29883, 29906, 600, 29941, 29874, 29896, 29941, 29955, 29896, 29947, 370, 29946, 287, 29947, 29896, 29874, 3660, 29908, 718, 13, 4706, 376, 29874, 29900, 29890, 29947, 29955, 29890, 29955, 774, 29941, 29929, 29955, 29941, 29906, 29941, 29945, 29946, 29947, 29872, 29906, 29953, 29896, 29874, 29953, 29946, 29872, 29955, 13801, 29955, 29945, 29896, 29929, 29947, 29888, 29953, 29953, 29953, 29941, 29874, 29896, 29896, 29890, 29906, 29906, 2252, 29929, 29945, 29955, 29888, 29955, 29883, 29947, 687, 29947, 29945, 29947, 29874, 29896, 29883, 29955, 29955, 29945, 29945, 613, 13, 4706, 376, 29953, 328, 29883, 29945, 29900, 29906, 29888, 29896, 29946, 29872, 29906, 29955, 29947, 29896, 29906, 29946, 29900, 29906, 13801, 29947, 29896, 29874, 29947, 29900, 29955, 29890, 29906, 29947, 1635, 29947, 29874, 29945, 29941, 29883, 29947, 29955, 915, 29874, 29955, 29874, 29896, 2176, 29953, 29906, 29945, 29953, 1635, 29953, 29953, 29888, 29945, 311, 29896, 29874, 29946, 29908, 718, 13, 4706, 376, 10702, 29955, 29946, 29896, 29946, 29900, 29955, 328, 29896, 29945, 370, 29947, 10736, 29896, 29941, 29953, 29947, 29946, 29953, 29900, 29945, 29955, 29888, 29947, 29947, 29896, 29929, 29953, 29929, 29888, 1327, 29896, 29945, 29929, 29883, 29941, 29906, 29896, 29883, 29929, 29900, 29946, 1635, 29890, 29945, 29945, 29955, 29890, 29955, 29955, 2142, 29890, 29955, 29955, 29955, 29947, 29883, 29947, 613, 13, 4706, 4514, 13, 13, 13, 1753, 1243, 29918, 3396, 7295, 13, 1678, 9460, 353, 443, 27958, 29889, 3057, 5091, 568, 580, 13, 1678, 4413, 353, 518, 13, 4706, 317, 15715, 29941, 29918, 29906, 29906, 29946, 24376, 29892, 317, 15715, 29941, 29918, 29906, 29945, 29953, 24376, 29892, 317, 15715, 29941, 29918, 29941, 29947, 29946, 24376, 29892, 317, 15715, 29941, 29918, 29945, 29896, 29906, 24376, 29892, 13, 4706, 1383, 1296, 29918, 29896, 29906, 29947, 24376, 29892, 1383, 1296, 29918, 29906, 29945, 29953, 24376, 29892, 13, 4706, 4813, 617, 557, 29918, 29906, 29906, 29946, 24376, 29892, 4813, 617, 557, 29918, 29906, 29945, 29953, 24376, 29892, 4813, 617, 557, 29918, 29941, 29947, 29946, 24376, 29892, 4813, 617, 557, 29918, 29945, 29896, 29906, 24376, 29892, 13, 1678, 4514, 13, 1678, 363, 1067, 29879, 297, 4413, 29901, 13, 4706, 9460, 29889, 1202, 24376, 29898, 348, 27958, 29889, 5675, 5091, 568, 29898, 25932, 876, 13, 1678, 736, 9460, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 1121, 353, 443, 27958, 29889, 1626, 3057, 16802, 29898, 18248, 359, 537, 29922, 29906, 467, 3389, 29898, 1688, 29918, 3396, 3101, 13, 1678, 10876, 29889, 13322, 29898, 1333, 1121, 29889, 11102, 14191, 1319, 3101, 13, 2 ]
synthetic/functions.py
wchen459/MO-PaDGAN-Optimization
3
95912
""" Test functions Author(s): <NAME> (<EMAIL>) """ import numpy as np import tensorflow as tf class Function(object): def __init__(self): pass def evaluate(self, data): x = tf.placeholder(tf.float32, shape=[None, self.dim]) y = self.equation(x) with tf.Session() as sess: values = sess.run(y, feed_dict={x: data}) return values class VLMOP2(Function): ''' Reference: <NAME>., & <NAME>. (1999, February). Multiobjective evolutionary algorithm test suites. In Proceedings of the 1999 ACM symposium on Applied computing (pp. 351-357). ''' def __init__(self): self.dim = 2 self.n_obj = 2 self.name = 'VLMOP2' x1 = np.linspace(-1/self.dim**.5, 1/self.dim**.5, 100) x2 = np.linspace(-1/self.dim**.5, 1/self.dim**.5, 100) self.pareto_x = np.vstack((x1, x2)).T self.pareto_y = self.evaluate(self.pareto_x) def equation(self, x): transl = 1 / np.sqrt(2) part1 = (x[:, 0] - transl) ** 2 + (x[:, 1] - transl) ** 2 part2 = (x[:, 0] + transl) ** 2 + (x[:, 1] + transl) ** 2 y1 = tf.exp(-1 * part1) y2 = tf.exp(-1 * part2) return tf.stack((y1, y2), axis=1) #class OKA1(Function): # ''' # Reference: # <NAME>., <NAME>., <NAME>., & <NAME>. (2004, September). # On test functions for evolutionary multi-objective optimization. # In International Conference on Parallel Problem Solving from Nature (pp. 792-802). # Springer, Berlin, Heidelberg. # ''' # def __init__(self): # self.dim = 2 # self.n_obj = 2 # self.name = 'OKA1' class NKNO1(Function): ''' Normalized KNO1 Reference: J. Knowles. ParEGO: A hybrid algorithm with on-line landscape approximation for expensive multiobjective optimization problems. Technical Report TR-COMPSYSBIO-2004-01, University of Manchester, UK, 2004. Available from http://dbk.ch.umist.ac.uk/knowles/pubs.html ''' def __init__(self): self.dim = 2 self.n_obj = 2 self.name = 'NKNO1' x1 = np.linspace(-0.5+4.4116/3-1, 0.5, 100) x2 = 4.4116/3 - x1 - 1 self.pareto_x = np.vstack((x1, x2)).T self.pareto_y = self.evaluate(self.pareto_x) def equation(self, x): x = 3*(x+.5) r = 9 - (3*tf.sin(5/2*(x[:,0]+x[:,1])**2) + 3*tf.sin(4*(x[:,0]+x[:,1])) + 5*tf.sin(2*(x[:,0]+x[:,1])+2)) phi = np.pi/12*(x[:,0]-x[:,1]+3) y1 = r/20*tf.cos(phi) y2 = r/20*tf.sin(phi) return tf.stack((y1, y2), axis=1) if __name__ == "__main__": import matplotlib.pyplot as plt import matplotlib matplotlib.use('Qt5Agg') N = 1000 xs = np.random.uniform(-.5, .5, size=(N,2)) func_obj = NKNO1() ys = func_obj.evaluate(xs) plt.figure() plt.subplot(121) true_pfx = func_obj.pareto_x plt.plot(true_pfx[:,0], true_pfx[:,1]) plt.subplot(122) plt.scatter(ys[:,0], ys[:,1]) true_pf = func_obj.pareto_y plt.plot(true_pf[:,0], true_pf[:,1]) plt.show()
[ 1, 9995, 29871, 13, 3057, 3168, 13, 13, 13720, 29898, 29879, 1125, 529, 5813, 29958, 313, 29966, 26862, 6227, 12948, 13, 15945, 29908, 13, 13, 5215, 12655, 408, 7442, 13, 5215, 26110, 408, 15886, 13, 13, 13, 1990, 6680, 29898, 3318, 1125, 13, 268, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 1209, 13, 268, 13, 1678, 822, 14707, 29898, 1311, 29892, 848, 1125, 13, 4706, 921, 353, 15886, 29889, 27074, 29898, 13264, 29889, 7411, 29941, 29906, 29892, 8267, 11759, 8516, 29892, 1583, 29889, 6229, 2314, 13, 4706, 343, 353, 1583, 29889, 2573, 29898, 29916, 29897, 13, 4706, 411, 15886, 29889, 7317, 580, 408, 27937, 29901, 13, 9651, 1819, 353, 27937, 29889, 3389, 29898, 29891, 29892, 8343, 29918, 8977, 3790, 29916, 29901, 848, 1800, 13, 4706, 736, 1819, 13, 13, 13, 1990, 478, 26369, 4590, 29906, 29898, 6678, 1125, 13, 1678, 14550, 13, 1678, 12105, 29901, 13, 4706, 529, 5813, 29958, 1696, 669, 529, 5813, 15513, 313, 29896, 29929, 29929, 29929, 29892, 6339, 467, 29871, 13, 4706, 9683, 601, 1675, 573, 14675, 653, 5687, 1243, 480, 3246, 29889, 29871, 13, 4706, 512, 1019, 3947, 886, 310, 278, 29871, 29896, 29929, 29929, 29929, 14614, 29924, 5016, 1066, 1974, 373, 2401, 2957, 20602, 313, 407, 29889, 29871, 29941, 29945, 29896, 29899, 29941, 29945, 29955, 467, 13, 1678, 14550, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 1583, 29889, 6229, 353, 29871, 29906, 13, 4706, 1583, 29889, 29876, 29918, 5415, 353, 29871, 29906, 13, 4706, 1583, 29889, 978, 353, 525, 29963, 26369, 4590, 29906, 29915, 13, 308, 13, 4706, 921, 29896, 353, 7442, 29889, 1915, 3493, 6278, 29896, 29914, 1311, 29889, 6229, 1068, 29889, 29945, 29892, 29871, 29896, 29914, 1311, 29889, 6229, 1068, 29889, 29945, 29892, 29871, 29896, 29900, 29900, 29897, 13, 4706, 921, 29906, 353, 7442, 29889, 1915, 3493, 6278, 29896, 29914, 1311, 29889, 6229, 1068, 29889, 29945, 29892, 29871, 29896, 29914, 1311, 29889, 6229, 1068, 29889, 29945, 29892, 29871, 29896, 29900, 29900, 29897, 13, 4706, 1583, 29889, 29886, 598, 517, 29918, 29916, 353, 7442, 29889, 29894, 1429, 3552, 29916, 29896, 29892, 921, 29906, 8106, 29911, 13, 4706, 1583, 29889, 29886, 598, 517, 29918, 29891, 353, 1583, 29889, 24219, 403, 29898, 1311, 29889, 29886, 598, 517, 29918, 29916, 29897, 13, 268, 13, 1678, 822, 6306, 29898, 1311, 29892, 921, 1125, 13, 4706, 5578, 353, 29871, 29896, 847, 7442, 29889, 3676, 29898, 29906, 29897, 13, 4706, 760, 29896, 353, 313, 29916, 7503, 29892, 29871, 29900, 29962, 448, 5578, 29897, 3579, 29871, 29906, 718, 313, 29916, 7503, 29892, 29871, 29896, 29962, 448, 5578, 29897, 3579, 29871, 29906, 13, 4706, 760, 29906, 353, 313, 29916, 7503, 29892, 29871, 29900, 29962, 718, 5578, 29897, 3579, 29871, 29906, 718, 313, 29916, 7503, 29892, 29871, 29896, 29962, 718, 5578, 29897, 3579, 29871, 29906, 13, 4706, 343, 29896, 353, 15886, 29889, 4548, 6278, 29896, 334, 760, 29896, 29897, 13, 4706, 343, 29906, 353, 15886, 29889, 4548, 6278, 29896, 334, 760, 29906, 29897, 13, 4706, 736, 15886, 29889, 1429, 3552, 29891, 29896, 29892, 343, 29906, 511, 9685, 29922, 29896, 29897, 13, 268, 13, 268, 13, 29937, 1990, 9280, 29909, 29896, 29898, 6678, 1125, 13, 29937, 1678, 14550, 13, 29937, 1678, 12105, 29901, 29871, 13, 29937, 4706, 529, 5813, 29958, 1696, 529, 5813, 29958, 1696, 529, 5813, 29958, 1696, 669, 529, 5813, 15513, 313, 29906, 29900, 29900, 29946, 29892, 3839, 467, 29871, 13, 29937, 4706, 1551, 1243, 3168, 363, 14675, 653, 2473, 29899, 3318, 573, 13883, 29889, 29871, 13, 29937, 4706, 512, 4623, 16377, 373, 1459, 6553, 11583, 4956, 1747, 515, 17677, 313, 407, 29889, 29871, 29955, 29929, 29906, 29899, 29947, 29900, 29906, 467, 29871, 13, 29937, 4706, 26667, 29892, 5115, 29892, 27300, 2552, 29889, 13, 29937, 1678, 14550, 13, 29937, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 29937, 4706, 1583, 29889, 6229, 353, 29871, 29906, 13, 29937, 4706, 1583, 29889, 29876, 29918, 5415, 353, 29871, 29906, 13, 29937, 4706, 1583, 29889, 978, 353, 525, 8949, 29909, 29896, 29915, 13, 268, 13, 268, 13, 1990, 28998, 6632, 29896, 29898, 6678, 1125, 13, 1678, 14550, 13, 1678, 21981, 1891, 476, 6632, 29896, 13, 1678, 12105, 29901, 29871, 13, 4706, 435, 29889, 19320, 793, 29889, 1459, 11787, 29949, 29901, 319, 7498, 19515, 5687, 411, 373, 29899, 1220, 24400, 16845, 363, 29871, 13, 4706, 19390, 1773, 601, 1675, 573, 13883, 4828, 29889, 8364, 936, 13969, 10014, 29899, 21514, 14816, 1744, 5971, 29899, 29906, 29900, 29900, 29946, 29899, 29900, 29896, 29892, 29871, 13, 4706, 3014, 310, 19659, 29892, 10261, 29892, 29871, 29906, 29900, 29900, 29946, 29889, 7740, 3106, 515, 1732, 597, 2585, 29895, 29889, 305, 29889, 398, 391, 29889, 562, 29889, 2679, 29914, 28385, 793, 29914, 5467, 29879, 29889, 1420, 13, 1678, 14550, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 1583, 29889, 6229, 353, 29871, 29906, 13, 4706, 1583, 29889, 29876, 29918, 5415, 353, 29871, 29906, 13, 4706, 1583, 29889, 978, 353, 525, 29940, 29968, 6632, 29896, 29915, 13, 308, 13, 4706, 921, 29896, 353, 7442, 29889, 1915, 3493, 6278, 29900, 29889, 29945, 29974, 29946, 29889, 29946, 29896, 29896, 29953, 29914, 29941, 29899, 29896, 29892, 29871, 29900, 29889, 29945, 29892, 29871, 29896, 29900, 29900, 29897, 13, 4706, 921, 29906, 353, 29871, 29946, 29889, 29946, 29896, 29896, 29953, 29914, 29941, 448, 921, 29896, 448, 29871, 29896, 13, 4706, 1583, 29889, 29886, 598, 517, 29918, 29916, 353, 7442, 29889, 29894, 1429, 3552, 29916, 29896, 29892, 921, 29906, 8106, 29911, 13, 4706, 1583, 29889, 29886, 598, 517, 29918, 29891, 353, 1583, 29889, 24219, 403, 29898, 1311, 29889, 29886, 598, 517, 29918, 29916, 29897, 13, 308, 13, 1678, 822, 6306, 29898, 1311, 29892, 921, 1125, 13, 4706, 921, 353, 29871, 29941, 16395, 29916, 29974, 29889, 29945, 29897, 13, 4706, 364, 353, 29871, 29929, 448, 313, 29941, 29930, 13264, 29889, 5223, 29898, 29945, 29914, 29906, 16395, 29916, 7503, 29892, 29900, 10062, 29916, 7503, 29892, 29896, 2314, 1068, 29906, 29897, 718, 29871, 29941, 29930, 13264, 29889, 5223, 29898, 29946, 16395, 29916, 7503, 29892, 29900, 10062, 29916, 7503, 29892, 29896, 12622, 718, 29871, 29945, 29930, 13264, 29889, 5223, 29898, 29906, 16395, 29916, 7503, 29892, 29900, 10062, 29916, 7503, 29892, 29896, 2314, 29974, 29906, 876, 13, 4706, 1374, 29875, 353, 7442, 29889, 1631, 29914, 29896, 29906, 16395, 29916, 7503, 29892, 29900, 29962, 29899, 29916, 7503, 29892, 29896, 10062, 29941, 29897, 13, 4706, 343, 29896, 353, 364, 29914, 29906, 29900, 29930, 13264, 29889, 3944, 29898, 2876, 29897, 13, 4706, 343, 29906, 353, 364, 29914, 29906, 29900, 29930, 13264, 29889, 5223, 29898, 2876, 29897, 13, 4706, 736, 15886, 29889, 1429, 3552, 29891, 29896, 29892, 343, 29906, 511, 9685, 29922, 29896, 29897, 13, 268, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 268, 13, 1678, 1053, 22889, 29889, 2272, 5317, 408, 14770, 13, 1678, 1053, 22889, 13, 1678, 22889, 29889, 1509, 877, 17303, 29945, 29909, 1505, 1495, 13, 268, 13, 1678, 405, 353, 29871, 29896, 29900, 29900, 29900, 13, 1678, 14492, 353, 7442, 29889, 8172, 29889, 29590, 6278, 29889, 29945, 29892, 869, 29945, 29892, 2159, 7607, 29940, 29892, 29906, 876, 13, 1678, 3653, 29918, 5415, 353, 28998, 6632, 29896, 580, 13, 1678, 343, 29879, 353, 3653, 29918, 5415, 29889, 24219, 403, 29898, 10351, 29897, 13, 268, 13, 1678, 14770, 29889, 4532, 580, 13, 1678, 14770, 29889, 1491, 5317, 29898, 29896, 29906, 29896, 29897, 13, 1678, 1565, 29918, 7810, 29916, 353, 3653, 29918, 5415, 29889, 29886, 598, 517, 29918, 29916, 13, 1678, 14770, 29889, 5317, 29898, 3009, 29918, 7810, 29916, 7503, 29892, 29900, 1402, 1565, 29918, 7810, 29916, 7503, 29892, 29896, 2314, 13, 1678, 14770, 29889, 1491, 5317, 29898, 29896, 29906, 29906, 29897, 13, 1678, 14770, 29889, 1557, 2620, 29898, 952, 7503, 29892, 29900, 1402, 343, 29879, 7503, 29892, 29896, 2314, 13, 1678, 1565, 29918, 7810, 353, 3653, 29918, 5415, 29889, 29886, 598, 517, 29918, 29891, 13, 1678, 14770, 29889, 5317, 29898, 3009, 29918, 7810, 7503, 29892, 29900, 1402, 1565, 29918, 7810, 7503, 29892, 29896, 2314, 13, 1678, 14770, 29889, 4294, 580, 2 ]
src/skyciv/classes/model/components/materials/materials.py
skyciv/skyciv-pip
4
114916
<reponame>skyciv/skyciv-pip<gh_stars>1-10 from skyciv.classes.model.components._base_class.model_collection_component import ModelCollectionComponent from skyciv.classes.model.components.materials.default_materials import default_materials from skyciv.classes.model.components.materials.material import Material from skyciv.utils.helpers import next_object_key try: from typing import Literal except ImportError: from typing_extensions import Literal class Materials(ModelCollectionComponent): """Creates an instance of the SkyCiv Materials class. """ def add_custom( self, name: str, density: float, elasticity_modulus: float, poissons_ratio: float, yield_strength: float, ultimate_strength: float, _class: Literal["steel", "aluminium", "masonry", "concrete", "wood", "other"] ) -> int: """Create a custom material with the next available ID. Args: name (str): The name of the material. density (float): The density of the material. elasticity_modulus (float): The Modulus of Elasticity of the material. poissons_ratio (float): The Poisson's Ratio for the material. yield_strength (float): The Yield strength of the material. ultimate_strength (float): The Ultimate strength the material. _class (str): The type of material. {"steel" | "aluminium" | "masonry" | "concrete" | "wood" | "other"}. Returns: int: The ID of the created material. """ next_index = next_object_key(self) material = Material( name, density, elasticity_modulus, poissons_ratio, yield_strength, ultimate_strength, _class ) setattr(self, str(next_index), material) return next_index def add(self, material: Literal["Structural Steel", "Aluminium", "Carbon Fibre Reinforced Plastic", "Concrete", "Concrete High Strength", "Oakwood", "Glass"], unit_system: str = "metric") -> int: """Add a default material to the model. Args: material (str): The material name. {"Structural Steel" | "Aluminium" | "Carbon Fibre Reinforced Plastic" | "Concrete" | "Concrete High Strength" | "Oakwood" | "Glass"}. unit_system (str): {'metric' | 'imperial'} Returns: int: The ID of the created material. """ materials = default_materials[unit_system][material] name = materials["name"] density = materials["density"] elasticity_modulus = materials["elasticity_modulus"] poissons_ratio = materials["poissons_ratio"] yield_strength = materials["yield_strength"] ultimate_strength = materials["ultimate_strength"] _class = materials["class"] index = self.add_custom( name, density, elasticity_modulus, poissons_ratio, yield_strength, ultimate_strength, _class ) return index
[ 1, 529, 276, 1112, 420, 29958, 7912, 29883, 440, 29914, 7912, 29883, 440, 29899, 13096, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 2071, 11078, 440, 29889, 13203, 29889, 4299, 29889, 14036, 3032, 3188, 29918, 1990, 29889, 4299, 29918, 10855, 29918, 9700, 1053, 8125, 7196, 5308, 13, 3166, 2071, 11078, 440, 29889, 13203, 29889, 4299, 29889, 14036, 29889, 15388, 29879, 29889, 4381, 29918, 15388, 29879, 1053, 2322, 29918, 15388, 29879, 13, 3166, 2071, 11078, 440, 29889, 13203, 29889, 4299, 29889, 14036, 29889, 15388, 29879, 29889, 15388, 1053, 17582, 13, 3166, 2071, 11078, 440, 29889, 13239, 29889, 3952, 6774, 1053, 2446, 29918, 3318, 29918, 1989, 13, 13, 2202, 29901, 13, 1678, 515, 19229, 1053, 5449, 284, 13, 19499, 16032, 2392, 29901, 13, 1678, 515, 19229, 29918, 24299, 1053, 5449, 284, 13, 13, 13, 1990, 17582, 29879, 29898, 3195, 7196, 5308, 1125, 13, 1678, 9995, 9832, 1078, 385, 2777, 310, 278, 16572, 29907, 440, 17582, 29879, 770, 29889, 13, 1678, 9995, 13, 13, 1678, 822, 788, 29918, 6341, 29898, 13, 4706, 1583, 29892, 13, 4706, 1024, 29901, 851, 29892, 13, 4706, 9027, 29901, 5785, 29892, 13, 4706, 560, 6288, 537, 29918, 1545, 14999, 29901, 5785, 29892, 13, 4706, 772, 790, 787, 29918, 3605, 601, 29901, 5785, 29892, 13, 4706, 7709, 29918, 710, 1477, 29901, 5785, 29892, 13, 4706, 8494, 6490, 29918, 710, 1477, 29901, 5785, 29892, 13, 4706, 903, 1990, 29901, 5449, 284, 3366, 1655, 295, 613, 376, 284, 9735, 1974, 613, 13, 462, 4706, 376, 29885, 1658, 719, 613, 376, 535, 9084, 613, 376, 6115, 613, 376, 1228, 3108, 13, 1678, 1723, 1599, 938, 29901, 13, 4706, 9995, 4391, 263, 2888, 5518, 411, 278, 2446, 3625, 3553, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 1024, 313, 710, 1125, 450, 1024, 310, 278, 5518, 29889, 13, 9651, 9027, 313, 7411, 1125, 450, 9027, 310, 278, 5518, 29889, 13, 9651, 560, 6288, 537, 29918, 1545, 14999, 313, 7411, 1125, 450, 3382, 14999, 310, 1260, 6288, 537, 310, 278, 5518, 29889, 13, 9651, 772, 790, 787, 29918, 3605, 601, 313, 7411, 1125, 450, 3929, 17387, 29915, 29879, 17450, 601, 363, 278, 5518, 29889, 13, 9651, 7709, 29918, 710, 1477, 313, 7411, 1125, 450, 612, 969, 9324, 310, 278, 5518, 29889, 13, 9651, 8494, 6490, 29918, 710, 1477, 313, 7411, 1125, 450, 18514, 6490, 9324, 278, 5518, 29889, 13, 9651, 903, 1990, 313, 710, 1125, 450, 1134, 310, 5518, 29889, 8853, 1655, 295, 29908, 891, 376, 284, 9735, 1974, 29908, 891, 376, 29885, 1658, 719, 29908, 891, 376, 535, 9084, 29908, 891, 376, 6115, 29908, 891, 376, 1228, 29908, 1836, 13, 13, 4706, 16969, 29901, 13, 9651, 938, 29901, 450, 3553, 310, 278, 2825, 5518, 29889, 13, 4706, 9995, 13, 13, 4706, 2446, 29918, 2248, 353, 2446, 29918, 3318, 29918, 1989, 29898, 1311, 29897, 13, 13, 4706, 5518, 353, 17582, 29898, 13, 9651, 1024, 29892, 13, 9651, 9027, 29892, 13, 9651, 560, 6288, 537, 29918, 1545, 14999, 29892, 13, 9651, 772, 790, 787, 29918, 3605, 601, 29892, 13, 9651, 7709, 29918, 710, 1477, 29892, 13, 9651, 8494, 6490, 29918, 710, 1477, 29892, 13, 9651, 903, 1990, 13, 4706, 1723, 13, 4706, 731, 5552, 29898, 1311, 29892, 851, 29898, 4622, 29918, 2248, 511, 5518, 29897, 13, 4706, 736, 2446, 29918, 2248, 13, 13, 1678, 822, 788, 29898, 1311, 29892, 5518, 29901, 5449, 284, 3366, 19560, 3631, 2443, 295, 613, 13, 462, 462, 1678, 376, 2499, 9735, 1974, 613, 13, 462, 462, 1678, 376, 8179, 6718, 383, 747, 276, 18334, 1454, 1133, 1858, 6288, 613, 13, 462, 462, 1678, 376, 1168, 9084, 613, 13, 462, 462, 1678, 376, 1168, 9084, 5057, 3767, 1477, 613, 13, 462, 462, 1678, 376, 29949, 557, 6115, 613, 13, 462, 462, 1678, 376, 29954, 605, 12436, 5190, 29918, 5205, 29901, 851, 353, 376, 16414, 1159, 1599, 938, 29901, 13, 4706, 9995, 2528, 263, 2322, 5518, 304, 278, 1904, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 5518, 313, 710, 1125, 450, 5518, 1024, 29889, 8853, 19560, 3631, 2443, 295, 29908, 891, 376, 2499, 9735, 1974, 29908, 891, 376, 8179, 6718, 383, 747, 276, 18334, 1454, 1133, 1858, 6288, 29908, 891, 376, 1168, 9084, 29908, 891, 376, 1168, 9084, 5057, 3767, 1477, 29908, 891, 376, 29949, 557, 6115, 29908, 891, 376, 29954, 605, 29908, 1836, 13, 9651, 5190, 29918, 5205, 313, 710, 1125, 11117, 16414, 29915, 891, 525, 26039, 616, 10827, 13, 13, 4706, 16969, 29901, 13, 9651, 938, 29901, 450, 3553, 310, 278, 2825, 5518, 29889, 13, 4706, 9995, 13, 13, 4706, 17279, 353, 2322, 29918, 15388, 29879, 29961, 5441, 29918, 5205, 3816, 15388, 29962, 13, 13, 4706, 1024, 353, 17279, 3366, 978, 3108, 13, 4706, 9027, 353, 17279, 3366, 21518, 537, 3108, 13, 4706, 560, 6288, 537, 29918, 1545, 14999, 353, 17279, 3366, 295, 6288, 537, 29918, 1545, 14999, 3108, 13, 4706, 772, 790, 787, 29918, 3605, 601, 353, 17279, 3366, 1129, 790, 787, 29918, 3605, 601, 3108, 13, 4706, 7709, 29918, 710, 1477, 353, 17279, 3366, 29891, 969, 29918, 710, 1477, 3108, 13, 4706, 8494, 6490, 29918, 710, 1477, 353, 17279, 3366, 499, 6490, 29918, 710, 1477, 3108, 13, 4706, 903, 1990, 353, 17279, 3366, 1990, 3108, 13, 13, 4706, 2380, 353, 1583, 29889, 1202, 29918, 6341, 29898, 13, 9651, 1024, 29892, 13, 9651, 9027, 29892, 13, 9651, 560, 6288, 537, 29918, 1545, 14999, 29892, 13, 9651, 772, 790, 787, 29918, 3605, 601, 29892, 13, 9651, 7709, 29918, 710, 1477, 29892, 13, 9651, 8494, 6490, 29918, 710, 1477, 29892, 13, 9651, 903, 1990, 13, 4706, 1723, 13, 13, 4706, 736, 2380, 13, 2 ]
src/pypytranspy/transformations/fstring_to_format_transformer.py
expobrain/pypytranspy
4
85775
import ast from pypytranspy.transformations.base_transformer import BaseTransformer class FStringToFormatTransformer(BaseTransformer): minimum_version = [3, 6] def pre_JoinedStr(self): # Collect string and args for format() str_value = "" str_args = [] for value in self.cur_node.values: if isinstance(value, ast.Str): str_value += value.s elif isinstance(value, ast.FormattedValue): if value.format_spec is None: str_value += "{}" else: str_value += "{:" + "".join(v.s for v in value.format_spec.values) + "}" str_args.append(value.value) else: raise NotImplementedError(value) # Build Str.format() node str_format = ast.Call( func=ast.Attribute(value=ast.Str(s=str_value), attr="format"), args=str_args, keywords=[], ) self.replace(str_format)
[ 1, 1053, 8717, 13, 13, 3166, 282, 1478, 29891, 3286, 2272, 29889, 9067, 800, 29889, 3188, 29918, 9067, 261, 1053, 7399, 13372, 261, 13, 13, 13, 1990, 383, 1231, 1762, 5809, 13372, 261, 29898, 5160, 13372, 261, 1125, 13, 13, 1678, 9212, 29918, 3259, 353, 518, 29941, 29892, 29871, 29953, 29962, 13, 13, 1678, 822, 758, 29918, 10844, 1312, 5015, 29898, 1311, 1125, 13, 4706, 396, 24930, 1347, 322, 6389, 363, 3402, 580, 13, 4706, 851, 29918, 1767, 353, 5124, 13, 4706, 851, 29918, 5085, 353, 5159, 13, 13, 4706, 363, 995, 297, 1583, 29889, 2764, 29918, 3177, 29889, 5975, 29901, 13, 9651, 565, 338, 8758, 29898, 1767, 29892, 8717, 29889, 5015, 1125, 13, 18884, 851, 29918, 1767, 4619, 995, 29889, 29879, 13, 9651, 25342, 338, 8758, 29898, 1767, 29892, 8717, 29889, 2500, 19667, 1917, 1125, 13, 18884, 565, 995, 29889, 4830, 29918, 6550, 338, 6213, 29901, 13, 462, 1678, 851, 29918, 1767, 4619, 29850, 5038, 13, 18884, 1683, 29901, 13, 462, 1678, 851, 29918, 1767, 4619, 29850, 6160, 718, 376, 1642, 7122, 29898, 29894, 29889, 29879, 363, 325, 297, 995, 29889, 4830, 29918, 6550, 29889, 5975, 29897, 718, 376, 5038, 13, 13, 18884, 851, 29918, 5085, 29889, 4397, 29898, 1767, 29889, 1767, 29897, 13, 9651, 1683, 29901, 13, 18884, 12020, 2216, 1888, 2037, 287, 2392, 29898, 1767, 29897, 13, 13, 4706, 396, 8878, 3767, 29889, 4830, 580, 2943, 13, 4706, 851, 29918, 4830, 353, 8717, 29889, 5594, 29898, 13, 9651, 3653, 29922, 579, 29889, 6708, 29898, 1767, 29922, 579, 29889, 5015, 29898, 29879, 29922, 710, 29918, 1767, 511, 12421, 543, 4830, 4968, 13, 9651, 6389, 29922, 710, 29918, 5085, 29892, 13, 9651, 29361, 11759, 1402, 13, 4706, 1723, 13, 13, 4706, 1583, 29889, 6506, 29898, 710, 29918, 4830, 29897, 13, 2 ]
examples/python/cpu/numpy/example_11.py
kant/ocean-tensor-package
27
1604315
<gh_stars>10-100 import pyOcean_cpu as ocean import numpy as np import pyOceanNumpy a = ocean.tensor([5]) s = ocean.tensor([], ocean.float) s.fill(3); a.fill([[False]]); print(a) a.fill([(1,)]); print(a) a.fill([2.0]); print(a) a.fill(s); print(a) a.fill([s]); print(a) s = np.asarray([4]) print(s) print(type(s)) a.fill(s); print(a) a.fill([(s,)]); print(a)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 5215, 11451, 29949, 11956, 29918, 21970, 408, 23474, 13, 5215, 12655, 408, 7442, 13, 5215, 11451, 29949, 11956, 8009, 2272, 13, 13, 29874, 353, 23474, 29889, 20158, 4197, 29945, 2314, 13, 29879, 353, 23474, 29889, 20158, 4197, 1402, 23474, 29889, 7411, 29897, 13, 29879, 29889, 5589, 29898, 29941, 416, 13, 13, 29874, 29889, 5589, 4197, 29961, 8824, 5262, 416, 259, 1596, 29898, 29874, 29897, 13, 13, 29874, 29889, 5589, 4197, 29898, 29896, 29892, 4638, 416, 418, 1596, 29898, 29874, 29897, 13, 29874, 29889, 5589, 4197, 29906, 29889, 29900, 5691, 539, 1596, 29898, 29874, 29897, 13, 29874, 29889, 5589, 29898, 29879, 416, 965, 1596, 29898, 29874, 29897, 13, 29874, 29889, 5589, 4197, 29879, 5691, 308, 1596, 29898, 29874, 29897, 13, 13, 29879, 353, 7442, 29889, 294, 2378, 4197, 29946, 2314, 13, 2158, 29898, 29879, 29897, 13, 2158, 29898, 1853, 29898, 29879, 876, 13, 29874, 29889, 5589, 29898, 29879, 416, 965, 1596, 29898, 29874, 29897, 13, 29874, 29889, 5589, 4197, 29898, 29879, 29892, 4638, 416, 418, 1596, 29898, 29874, 29897, 13, 13, 2 ]
matplotlib/gallery_python/pyplots/dollar_ticks.py
gottaegbert/penter
13
4270
<reponame>gottaegbert/penter """ ============ Dollar Ticks ============ Use a `~.ticker.FormatStrFormatter` to prepend dollar signs on y axis labels. """ import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as ticker # Fixing random state for reproducibility np.random.seed(19680801) fig, ax = plt.subplots() ax.plot(100*np.random.rand(20)) formatter = ticker.FormatStrFormatter('$%1.2f') ax.yaxis.set_major_formatter(formatter) for tick in ax.yaxis.get_major_ticks(): tick.label1.set_visible(False) tick.label2.set_visible(True) tick.label2.set_color('green') plt.show() ############################################################################# # # ------------ # # References # """""""""" # # The use of the following functions, methods, classes and modules is shown # in this example: import matplotlib matplotlib.ticker matplotlib.ticker.FormatStrFormatter matplotlib.axis.Axis.set_major_formatter matplotlib.axis.Axis.get_major_ticks matplotlib.axis.Tick
[ 1, 529, 276, 1112, 420, 29958, 7085, 941, 387, 2151, 29914, 29886, 5893, 13, 15945, 29908, 13, 4936, 2751, 13, 29928, 26810, 323, 7358, 13, 4936, 2751, 13, 13, 11403, 263, 421, 30022, 29889, 29873, 6541, 29889, 5809, 5015, 18522, 29952, 304, 8273, 355, 11232, 279, 18906, 373, 343, 9685, 11073, 29889, 13, 15945, 29908, 13, 5215, 12655, 408, 7442, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 5215, 22889, 29889, 29873, 6541, 408, 260, 6541, 13, 13, 29937, 24778, 292, 4036, 2106, 363, 9483, 455, 29890, 1793, 13, 9302, 29889, 8172, 29889, 26776, 29898, 29896, 29929, 29953, 29947, 29900, 29947, 29900, 29896, 29897, 13, 13, 1003, 29892, 4853, 353, 14770, 29889, 1491, 26762, 580, 13, 1165, 29889, 5317, 29898, 29896, 29900, 29900, 29930, 9302, 29889, 8172, 29889, 9502, 29898, 29906, 29900, 876, 13, 13, 689, 2620, 353, 260, 6541, 29889, 5809, 5015, 18522, 877, 29938, 29995, 29896, 29889, 29906, 29888, 1495, 13, 1165, 29889, 29891, 8990, 29889, 842, 29918, 21355, 29918, 689, 2620, 29898, 689, 2620, 29897, 13, 13, 1454, 16892, 297, 4853, 29889, 29891, 8990, 29889, 657, 29918, 21355, 29918, 29873, 7358, 7295, 13, 1678, 16892, 29889, 1643, 29896, 29889, 842, 29918, 12872, 29898, 8824, 29897, 13, 1678, 16892, 29889, 1643, 29906, 29889, 842, 29918, 12872, 29898, 5574, 29897, 13, 1678, 16892, 29889, 1643, 29906, 29889, 842, 29918, 2780, 877, 12692, 1495, 13, 13, 572, 29873, 29889, 4294, 580, 13, 13, 13383, 13383, 13383, 13383, 7346, 4136, 29937, 13, 29937, 13, 29937, 448, 1378, 5634, 13, 29937, 13, 29937, 28318, 13, 29937, 9995, 15945, 15945, 15945, 29908, 13, 29937, 13, 29937, 450, 671, 310, 278, 1494, 3168, 29892, 3519, 29892, 4413, 322, 10585, 338, 4318, 13, 29937, 297, 445, 1342, 29901, 13, 13, 5215, 22889, 13, 2922, 17357, 29889, 29873, 6541, 13, 2922, 17357, 29889, 29873, 6541, 29889, 5809, 5015, 18522, 13, 2922, 17357, 29889, 8990, 29889, 16070, 29889, 842, 29918, 21355, 29918, 689, 2620, 13, 2922, 17357, 29889, 8990, 29889, 16070, 29889, 657, 29918, 21355, 29918, 29873, 7358, 13, 2922, 17357, 29889, 8990, 29889, 29911, 860, 13, 2 ]
src/lumigo_tracer/parsing_utils.py
anniyanvr/python_tracer
47
95777
import json import re import urllib.parse from typing import Tuple, Dict, Union, List, Any, Optional from lumigo_tracer.libs import xmltodict import functools import itertools from collections.abc import Iterable from lumigo_tracer.lumigo_utils import Configuration, get_logger def safe_get(d: Union[dict, list], keys: List[Union[str, int]], default: Any = None) -> Any: """ :param d: Should be list or dict, otherwise return default. :param keys: If keys[i] is int, then it should be a list index. If keys[i] is string, then it should be a dict key. :param default: If encountered a problem, return default. :return: d[keys[0]][keys[1]]... """ def get_next_val(prev_result, key): if isinstance(prev_result, dict) and isinstance(key, str): return prev_result.get(key, default) elif isinstance(prev_result, list) and isinstance(key, int): return safe_get_list(prev_result, key, default) else: return default return functools.reduce(get_next_val, keys, d) def safe_get_list(lst: list, index: Union[int, str], default=None): """ This function return the organ in the `index` place from the given list. If this values doesn't exist, return default. """ if isinstance(index, str): try: index = int(index) except ValueError: return default if not isinstance(lst, Iterable): return default return lst[index] if len(lst) > index else default def safe_split_get(string: str, sep: str, index: int, default=None) -> str: """ This function splits the given string using the sep, and returns the organ in the `index` place. If such index doesn't exist, returns default. """ if not isinstance(string, str): return default return safe_get_list(string.split(sep), index, default) def safe_key_from_json(json_str: bytes, key: object, default=None) -> Union[str, list]: """ This function tries to read the given str as json, and returns the value of the desired key. If the key doesn't found or the input string is not a valid json, returns the default. """ try: return json.loads(json_str).get(key, default) except json.JSONDecodeError: return default def safe_key_from_xml(xml_str: bytes, key: str, default=None): """ This function tries to read the given str as XML, and returns the value of the desired key. If the key doesn't found or the input string is not a valid XML, returns the default. We accept keys with hierarchy by `/` (i.e. we accept keys with the format `outer/inner`) If there are some keys with the same name at the same hierarchy, they can be accessed as index in list, e.g: <a><b>val0</b><b>val1</b></a> will be accessed with "a/b/0" or "a/b/1". """ try: result = functools.reduce( lambda prev, sub_key: safe_get_list(prev, sub_key) if isinstance(prev, list) else prev.get(sub_key, {}), key.split("/"), xmltodict.parse(xml_str), ) return result or default except xmltodict.expat.ExpatError: return default def safe_key_from_query(body: bytes, key: str, default=None) -> str: """ This function assumes that the first row in the body is the url arguments. We assume that the structure of the parameters is as follow: * character-escaped using urllib.quote * values separated with '&' * each item is <key>=<value> Note: This function decode the given body, therefore duplicate it's size. Be aware to use only in resources with restricted body length. """ return dict(re.findall(r"([^&]+)=([^&]*)", urllib.parse.unquote(body.decode()))).get( key, default ) def parse_trace_id(trace_id_str: str) -> Tuple[str, str, str]: """ This function parses the trace_id, and result dictionary the describes the data. We assume the following format: * values separated with ';' * each item is <key>=<value> :param trace_id_str: The string that came from the environment variables. """ if not isinstance(trace_id_str, str): return "", "", "" trace_id_parameters = dict(re.findall(r"([^;]+)=([^;]*)", trace_id_str)) root = trace_id_parameters.get("Root", "") root_end_index = trace_id_str.find(";") suffix = trace_id_str[root_end_index:] if ";" in trace_id_str else trace_id_str return root, safe_split_get(root, "-", 2, default=""), suffix def recursive_json_join(d1: Optional[dict], d2: Optional[dict]): """ This function return the recursive joint dictionary, which means that for every (item, key) in the result dictionary it holds that: * if key in d1 and is not dictionary, then the value is d1[key] * if key in d2 and is not dictionary, then the value is d2[key] * otherwise, join d1[key] and d2[key] """ if d1 is None or d2 is None: return d1 or d2 d = {} for key in set(itertools.chain(d1.keys(), d2.keys())): value = d1.get(key, d2.get(key)) if isinstance(value, dict): d[key] = recursive_json_join(d1.get(key), d2.get(key)) # type: ignore else: d[key] = value return d def should_scrub_domain(url: str) -> bool: if url and Configuration.domains_scrubber: for regex in Configuration.domains_scrubber: if regex.match(url): return True return False def str_to_list(val: str) -> Optional[List[str]]: try: if val: return val.split(",") except Exception as e: get_logger().debug("Error while convert str to list", exc_info=e) return None def str_to_tuple(val: str) -> Optional[Tuple]: try: if val: return tuple(val.split(",")) except Exception as e: get_logger().debug("Error while convert str to tuple", exc_info=e) return None def recursive_get_key(d: Union[List, Dict[str, Union[Dict, str]]], key, depth=None, default=None): if depth is None: depth = Configuration.get_key_depth if depth == 0: return default if key in d: return d[key] if isinstance(d, list): for v in d: recursive_result = recursive_get_key(v, key, depth - 1, default) if recursive_result: return recursive_result if isinstance(d, dict): for v in d.values(): if isinstance(v, (list, dict)): recursive_result = recursive_get_key(v, key, depth - 1, default) if recursive_result: return recursive_result return default def extract_function_name_from_arn(arn: str) -> str: return safe_split_get(arn, ":", 6)
[ 1, 1053, 4390, 13, 5215, 337, 13, 5215, 3142, 1982, 29889, 5510, 13, 3166, 19229, 1053, 12603, 552, 29892, 360, 919, 29892, 7761, 29892, 2391, 29892, 3139, 29892, 28379, 13, 13, 3166, 19703, 5973, 29918, 29873, 945, 261, 29889, 10254, 1053, 4903, 20034, 919, 13, 5215, 2090, 312, 8789, 13, 5215, 4256, 8504, 13, 3166, 16250, 29889, 10736, 1053, 20504, 519, 13, 13, 3166, 19703, 5973, 29918, 29873, 945, 261, 29889, 29880, 398, 5973, 29918, 13239, 1053, 20999, 29892, 679, 29918, 21707, 13, 13, 13, 1753, 9109, 29918, 657, 29898, 29881, 29901, 7761, 29961, 8977, 29892, 1051, 1402, 6611, 29901, 2391, 29961, 19986, 29961, 710, 29892, 938, 20526, 2322, 29901, 3139, 353, 6213, 29897, 1599, 3139, 29901, 13, 1678, 9995, 13, 1678, 584, 3207, 270, 29901, 10575, 367, 1051, 470, 9657, 29892, 6467, 736, 2322, 29889, 13, 1678, 584, 3207, 6611, 29901, 960, 6611, 29961, 29875, 29962, 338, 938, 29892, 769, 372, 881, 367, 263, 1051, 2380, 29889, 960, 6611, 29961, 29875, 29962, 338, 1347, 29892, 769, 372, 881, 367, 263, 9657, 1820, 29889, 13, 1678, 584, 3207, 2322, 29901, 960, 18169, 263, 1108, 29892, 736, 2322, 29889, 13, 1678, 584, 2457, 29901, 270, 29961, 8149, 29961, 29900, 29962, 3816, 8149, 29961, 29896, 5262, 856, 13, 1678, 9995, 13, 13, 1678, 822, 679, 29918, 4622, 29918, 791, 29898, 16304, 29918, 2914, 29892, 1820, 1125, 13, 4706, 565, 338, 8758, 29898, 16304, 29918, 2914, 29892, 9657, 29897, 322, 338, 8758, 29898, 1989, 29892, 851, 1125, 13, 9651, 736, 12379, 29918, 2914, 29889, 657, 29898, 1989, 29892, 2322, 29897, 13, 4706, 25342, 338, 8758, 29898, 16304, 29918, 2914, 29892, 1051, 29897, 322, 338, 8758, 29898, 1989, 29892, 938, 1125, 13, 9651, 736, 9109, 29918, 657, 29918, 1761, 29898, 16304, 29918, 2914, 29892, 1820, 29892, 2322, 29897, 13, 4706, 1683, 29901, 13, 9651, 736, 2322, 13, 13, 1678, 736, 2090, 312, 8789, 29889, 17469, 29898, 657, 29918, 4622, 29918, 791, 29892, 6611, 29892, 270, 29897, 13, 13, 13, 1753, 9109, 29918, 657, 29918, 1761, 29898, 20155, 29901, 1051, 29892, 2380, 29901, 7761, 29961, 524, 29892, 851, 1402, 2322, 29922, 8516, 1125, 13, 1678, 9995, 13, 1678, 910, 740, 736, 278, 2894, 297, 278, 421, 2248, 29952, 2058, 515, 278, 2183, 1051, 29889, 13, 1678, 960, 445, 1819, 1838, 29915, 29873, 1863, 29892, 736, 2322, 29889, 13, 1678, 9995, 13, 1678, 565, 338, 8758, 29898, 2248, 29892, 851, 1125, 13, 4706, 1018, 29901, 13, 9651, 2380, 353, 938, 29898, 2248, 29897, 13, 4706, 5174, 7865, 2392, 29901, 13, 9651, 736, 2322, 13, 1678, 565, 451, 338, 8758, 29898, 20155, 29892, 20504, 519, 1125, 13, 4706, 736, 2322, 13, 1678, 736, 24471, 29961, 2248, 29962, 565, 7431, 29898, 20155, 29897, 1405, 2380, 1683, 2322, 13, 13, 13, 1753, 9109, 29918, 5451, 29918, 657, 29898, 1807, 29901, 851, 29892, 16345, 29901, 851, 29892, 2380, 29901, 938, 29892, 2322, 29922, 8516, 29897, 1599, 851, 29901, 13, 1678, 9995, 13, 1678, 910, 740, 8536, 1169, 278, 2183, 1347, 773, 278, 16345, 29892, 322, 3639, 278, 2894, 297, 278, 421, 2248, 29952, 2058, 29889, 13, 1678, 960, 1316, 2380, 1838, 29915, 29873, 1863, 29892, 3639, 2322, 29889, 13, 1678, 9995, 13, 1678, 565, 451, 338, 8758, 29898, 1807, 29892, 851, 1125, 13, 4706, 736, 2322, 13, 1678, 736, 9109, 29918, 657, 29918, 1761, 29898, 1807, 29889, 5451, 29898, 19570, 511, 2380, 29892, 2322, 29897, 13, 13, 13, 1753, 9109, 29918, 1989, 29918, 3166, 29918, 3126, 29898, 3126, 29918, 710, 29901, 6262, 29892, 1820, 29901, 1203, 29892, 2322, 29922, 8516, 29897, 1599, 7761, 29961, 710, 29892, 1051, 5387, 13, 1678, 9995, 13, 1678, 910, 740, 14335, 304, 1303, 278, 2183, 851, 408, 4390, 29892, 322, 3639, 278, 995, 310, 278, 7429, 1820, 29889, 13, 1678, 960, 278, 1820, 1838, 29915, 29873, 1476, 470, 278, 1881, 1347, 338, 451, 263, 2854, 4390, 29892, 3639, 278, 2322, 29889, 13, 1678, 9995, 13, 1678, 1018, 29901, 13, 4706, 736, 4390, 29889, 18132, 29898, 3126, 29918, 710, 467, 657, 29898, 1989, 29892, 2322, 29897, 13, 1678, 5174, 4390, 29889, 7249, 2772, 401, 2392, 29901, 13, 4706, 736, 2322, 13, 13, 13, 1753, 9109, 29918, 1989, 29918, 3166, 29918, 3134, 29898, 3134, 29918, 710, 29901, 6262, 29892, 1820, 29901, 851, 29892, 2322, 29922, 8516, 1125, 13, 1678, 9995, 13, 1678, 910, 740, 14335, 304, 1303, 278, 2183, 851, 408, 6560, 29892, 322, 3639, 278, 995, 310, 278, 7429, 1820, 29889, 13, 1678, 960, 278, 1820, 1838, 29915, 29873, 1476, 470, 278, 1881, 1347, 338, 451, 263, 2854, 6560, 29892, 3639, 278, 2322, 29889, 13, 13, 1678, 1334, 3544, 6611, 411, 21277, 491, 7034, 29952, 313, 29875, 29889, 29872, 29889, 591, 3544, 6611, 411, 278, 3402, 421, 5561, 29914, 3993, 6348, 13, 1678, 960, 727, 526, 777, 6611, 411, 278, 1021, 1024, 472, 278, 1021, 21277, 29892, 896, 508, 367, 20592, 408, 2380, 297, 1051, 29892, 13, 4706, 321, 29889, 29887, 29901, 529, 29874, 5299, 29890, 29958, 791, 29900, 829, 29890, 5299, 29890, 29958, 791, 29896, 829, 29890, 2565, 29874, 29958, 674, 367, 20592, 411, 376, 29874, 29914, 29890, 29914, 29900, 29908, 470, 376, 29874, 29914, 29890, 29914, 29896, 1642, 13, 1678, 9995, 13, 1678, 1018, 29901, 13, 4706, 1121, 353, 2090, 312, 8789, 29889, 17469, 29898, 13, 9651, 14013, 12379, 29892, 1014, 29918, 1989, 29901, 9109, 29918, 657, 29918, 1761, 29898, 16304, 29892, 1014, 29918, 1989, 29897, 13, 9651, 565, 338, 8758, 29898, 16304, 29892, 1051, 29897, 13, 9651, 1683, 12379, 29889, 657, 29898, 1491, 29918, 1989, 29892, 6571, 511, 13, 9651, 1820, 29889, 5451, 11974, 4968, 13, 9651, 4903, 20034, 919, 29889, 5510, 29898, 3134, 29918, 710, 511, 13, 4706, 1723, 13, 4706, 736, 1121, 470, 2322, 13, 1678, 5174, 4903, 20034, 919, 29889, 4548, 271, 29889, 1252, 5031, 2392, 29901, 13, 4706, 736, 2322, 13, 13, 13, 1753, 9109, 29918, 1989, 29918, 3166, 29918, 1972, 29898, 2587, 29901, 6262, 29892, 1820, 29901, 851, 29892, 2322, 29922, 8516, 29897, 1599, 851, 29901, 13, 1678, 9995, 13, 1678, 910, 740, 15894, 393, 278, 937, 1948, 297, 278, 3573, 338, 278, 3142, 6273, 29889, 13, 1678, 1334, 5251, 393, 278, 3829, 310, 278, 4128, 338, 408, 1101, 29901, 13, 1678, 334, 2931, 29899, 267, 5030, 287, 773, 3142, 1982, 29889, 1396, 13, 1678, 334, 1819, 13055, 411, 525, 29987, 29915, 13, 1678, 334, 1269, 2944, 338, 529, 1989, 18572, 29966, 1767, 29958, 13, 13, 1678, 3940, 29901, 910, 740, 21822, 278, 2183, 3573, 29892, 5480, 7929, 372, 29915, 29879, 2159, 29889, 1522, 9543, 304, 671, 871, 297, 7788, 13, 9651, 411, 22078, 3573, 3309, 29889, 13, 1678, 9995, 13, 1678, 736, 9657, 29898, 276, 29889, 2886, 497, 29898, 29878, 29908, 4197, 29985, 29987, 10062, 3892, 4197, 29985, 29987, 29962, 7528, 613, 3142, 1982, 29889, 5510, 29889, 348, 1396, 29898, 2587, 29889, 13808, 22130, 467, 657, 29898, 13, 4706, 1820, 29892, 2322, 13, 1678, 1723, 13, 13, 13, 1753, 6088, 29918, 15003, 29918, 333, 29898, 15003, 29918, 333, 29918, 710, 29901, 851, 29897, 1599, 12603, 552, 29961, 710, 29892, 851, 29892, 851, 5387, 13, 1678, 9995, 13, 1678, 910, 740, 610, 29879, 267, 278, 9637, 29918, 333, 29892, 322, 1121, 8600, 278, 16612, 278, 848, 29889, 13, 1678, 1334, 5251, 278, 1494, 3402, 29901, 13, 1678, 334, 1819, 13055, 411, 21921, 29915, 13, 1678, 334, 1269, 2944, 338, 529, 1989, 18572, 29966, 1767, 29958, 13, 13, 1678, 584, 3207, 9637, 29918, 333, 29918, 710, 29901, 450, 1347, 393, 2996, 515, 278, 5177, 3651, 29889, 13, 1678, 9995, 13, 1678, 565, 451, 338, 8758, 29898, 15003, 29918, 333, 29918, 710, 29892, 851, 1125, 13, 4706, 736, 12633, 12633, 5124, 13, 1678, 9637, 29918, 333, 29918, 16744, 353, 9657, 29898, 276, 29889, 2886, 497, 29898, 29878, 29908, 4197, 29985, 29936, 10062, 3892, 4197, 29985, 29936, 29962, 7528, 613, 9637, 29918, 333, 29918, 710, 876, 13, 1678, 3876, 353, 9637, 29918, 333, 29918, 16744, 29889, 657, 703, 10303, 613, 20569, 13, 1678, 3876, 29918, 355, 29918, 2248, 353, 9637, 29918, 333, 29918, 710, 29889, 2886, 703, 29936, 1159, 13, 1678, 25557, 353, 9637, 29918, 333, 29918, 710, 29961, 4632, 29918, 355, 29918, 2248, 17531, 565, 12159, 29908, 297, 9637, 29918, 333, 29918, 710, 1683, 9637, 29918, 333, 29918, 710, 13, 1678, 736, 3876, 29892, 9109, 29918, 5451, 29918, 657, 29898, 4632, 29892, 11663, 613, 29871, 29906, 29892, 2322, 543, 4968, 25557, 13, 13, 13, 1753, 16732, 29918, 3126, 29918, 7122, 29898, 29881, 29896, 29901, 28379, 29961, 8977, 1402, 270, 29906, 29901, 28379, 29961, 8977, 29962, 1125, 13, 1678, 9995, 13, 1678, 910, 740, 736, 278, 16732, 14002, 8600, 29892, 607, 2794, 393, 363, 1432, 313, 667, 29892, 1820, 29897, 297, 278, 1121, 13, 268, 8600, 372, 8640, 393, 29901, 13, 1678, 334, 565, 1820, 297, 270, 29896, 322, 338, 451, 8600, 29892, 769, 278, 995, 338, 270, 29896, 29961, 1989, 29962, 13, 1678, 334, 565, 1820, 297, 270, 29906, 322, 338, 451, 8600, 29892, 769, 278, 995, 338, 270, 29906, 29961, 1989, 29962, 13, 1678, 334, 6467, 29892, 5988, 270, 29896, 29961, 1989, 29962, 322, 270, 29906, 29961, 1989, 29962, 13, 1678, 9995, 13, 1678, 565, 270, 29896, 338, 6213, 470, 270, 29906, 338, 6213, 29901, 13, 4706, 736, 270, 29896, 470, 270, 29906, 13, 1678, 270, 353, 6571, 13, 1678, 363, 1820, 297, 731, 29898, 1524, 8504, 29889, 14153, 29898, 29881, 29896, 29889, 8149, 3285, 270, 29906, 29889, 8149, 22130, 29901, 13, 4706, 995, 353, 270, 29896, 29889, 657, 29898, 1989, 29892, 270, 29906, 29889, 657, 29898, 1989, 876, 13, 4706, 565, 338, 8758, 29898, 1767, 29892, 9657, 1125, 13, 9651, 270, 29961, 1989, 29962, 353, 16732, 29918, 3126, 29918, 7122, 29898, 29881, 29896, 29889, 657, 29898, 1989, 511, 270, 29906, 29889, 657, 29898, 1989, 876, 29871, 396, 1134, 29901, 11455, 13, 4706, 1683, 29901, 13, 9651, 270, 29961, 1989, 29962, 353, 995, 13, 1678, 736, 270, 13, 13, 13, 1753, 881, 29918, 10526, 431, 29918, 7247, 29898, 2271, 29901, 851, 29897, 1599, 6120, 29901, 13, 1678, 565, 3142, 322, 20999, 29889, 3129, 2708, 29918, 10526, 431, 495, 29901, 13, 4706, 363, 6528, 297, 20999, 29889, 3129, 2708, 29918, 10526, 431, 495, 29901, 13, 9651, 565, 6528, 29889, 4352, 29898, 2271, 1125, 13, 18884, 736, 5852, 13, 1678, 736, 7700, 13, 13, 13, 1753, 851, 29918, 517, 29918, 1761, 29898, 791, 29901, 851, 29897, 1599, 28379, 29961, 1293, 29961, 710, 5262, 29901, 13, 1678, 1018, 29901, 13, 4706, 565, 659, 29901, 13, 9651, 736, 659, 29889, 5451, 28165, 1159, 13, 1678, 5174, 8960, 408, 321, 29901, 13, 4706, 679, 29918, 21707, 2141, 8382, 703, 2392, 1550, 3588, 851, 304, 1051, 613, 5566, 29918, 3888, 29922, 29872, 29897, 13, 1678, 736, 6213, 13, 13, 13, 1753, 851, 29918, 517, 29918, 23583, 29898, 791, 29901, 851, 29897, 1599, 28379, 29961, 23215, 552, 5387, 13, 1678, 1018, 29901, 13, 4706, 565, 659, 29901, 13, 9651, 736, 18761, 29898, 791, 29889, 5451, 29898, 3284, 876, 13, 1678, 5174, 8960, 408, 321, 29901, 13, 4706, 679, 29918, 21707, 2141, 8382, 703, 2392, 1550, 3588, 851, 304, 18761, 613, 5566, 29918, 3888, 29922, 29872, 29897, 13, 1678, 736, 6213, 13, 13, 13, 1753, 16732, 29918, 657, 29918, 1989, 29898, 29881, 29901, 7761, 29961, 1293, 29892, 360, 919, 29961, 710, 29892, 7761, 29961, 21533, 29892, 851, 5262, 1402, 1820, 29892, 10809, 29922, 8516, 29892, 2322, 29922, 8516, 1125, 13, 1678, 565, 10809, 338, 6213, 29901, 13, 4706, 10809, 353, 20999, 29889, 657, 29918, 1989, 29918, 19488, 13, 1678, 565, 10809, 1275, 29871, 29900, 29901, 13, 4706, 736, 2322, 13, 1678, 565, 1820, 297, 270, 29901, 13, 4706, 736, 270, 29961, 1989, 29962, 13, 1678, 565, 338, 8758, 29898, 29881, 29892, 1051, 1125, 13, 4706, 363, 325, 297, 270, 29901, 13, 9651, 16732, 29918, 2914, 353, 16732, 29918, 657, 29918, 1989, 29898, 29894, 29892, 1820, 29892, 10809, 448, 29871, 29896, 29892, 2322, 29897, 13, 9651, 565, 16732, 29918, 2914, 29901, 13, 18884, 736, 16732, 29918, 2914, 13, 1678, 565, 338, 8758, 29898, 29881, 29892, 9657, 1125, 13, 4706, 363, 325, 297, 270, 29889, 5975, 7295, 13, 9651, 565, 338, 8758, 29898, 29894, 29892, 313, 1761, 29892, 9657, 22164, 13, 18884, 16732, 29918, 2914, 353, 16732, 29918, 657, 29918, 1989, 29898, 29894, 29892, 1820, 29892, 10809, 448, 29871, 29896, 29892, 2322, 29897, 13, 18884, 565, 16732, 29918, 2914, 29901, 13, 462, 1678, 736, 16732, 29918, 2914, 13, 1678, 736, 2322, 13, 13, 13, 1753, 6597, 29918, 2220, 29918, 978, 29918, 3166, 29918, 2753, 29898, 2753, 29901, 851, 29897, 1599, 851, 29901, 13, 1678, 736, 9109, 29918, 5451, 29918, 657, 29898, 2753, 29892, 29242, 613, 29871, 29953, 29897, 13, 2 ]
nasws/cnn/search_space/monodepth/params/search-decoder-v1/resnext101_wsl.py
kcyu2014/nas-landmarkreg
8
1600843
<reponame>kcyu2014/nas-landmarkreg<filename>nasws/cnn/search_space/monodepth/params/search-decoder-v1/resnext101_wsl.py from monodepth.models import MidasNet, MidasNetSearch from monodepth.optim.optimizer import MGDA, GDA import torch import torch.optim as optim from monodepth.validation import Validation from monodepth.utils.checkpointer import Checkpointer from monodepth.utils.reporter import Reporter from monodepth.optim.scheduler import ConstLR from monodepth.loss import ( ScaleAndShiftInvariantLoss, ProcrustesLoss, TrimmedProcrustesLoss, ) from monodepth.data import multi_data_loader from monodepth.data.datasets import MegaDepth, ReDWeb, Movies3d from monodepth.data.datasets.transforms import ( RandomCrop, RandomFliplr, Rescale, PrepareForNet, Resize, NormalizeImage, ) from torchvision.transforms import Compose from monodepth.metric import DisparityRmse from collections import OrderedDict from monodepth.nas.api import NonZeroRandomMutator, NonZeroRandomMutatorSync class TrainParams: def __init__(self, config, output, args, do_resume=False, init_from=None): # torch options torch.backends.cudnn.enabled = True torch.backends.cudnn.benchmark = True # device self.device = torch.device("cuda") self.args = args # model self.model = MidasNetSearch(backbone="resnext101_wsl", args=args) if 'spos' in args.supernet_train_method: if args.mutator == 'nonzero': mutator = NonZeroRandomMutator(self.model) elif args.mutator == 'nonzero_sync': mutator = NonZeroRandomMutatorSync(self.model) else: raise NotImplementedError(f"Mutator {args.mutator} is not implemented for SPOS method") else: raise NotImplementedError(f"Method {args.supernet_train_method} is not implemented for MonoDepth") self.mutator = mutator # tasks self.tasks = OrderedDict() self.tasks["ReDWeb"] = { "dataset": ReDWeb( config["datasets"]["ReDWeb"]["train"], config["datasets"]["ReDWeb"]["datapath"], transform=Compose( [ Resize(384, 384, keep_aspect_ratio=True), RandomCrop(384, 384), RandomFliplr(), Rescale(), NormalizeImage( mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225] ), PrepareForNet(), ] ), mode="train", ), "loss": TrimmedProcrustesLoss(), } self.dataloader = multi_data_loader.MultiDataLoader( {k: v["dataset"] for k, v in self.tasks.items()}, batch_size=8, num_workers=4, ) # optimization algo = optim.Adam( [ {"params": self.model.scratch.parameters()}, {"params": self.model.pretrained.parameters(), "lr": args.backbone_learning_rate}, ], lr=args.learning_rate, betas=(0.9, 0.999), weight_decay=args.weight_decay ) if args.backbone_learning_rate == 0.0: for param in self.model.pretrained.parameters(): param.requires_grad = False if args.backbone_weights: # load the pretrained weights weights accordingly state = torch.load(args.backbone_weights) self.model.load_state_dict(state, strict=False) # this should make the training super fast self.epoch_length = 3240 self.num_epochs = args.epochs # wrapping the optimizer self.optimizer = GDA(algorithm=algo, num_tasks=len(self.tasks)) if args.learning_rate_scheduler == 'step': self.scheduler = torch.optim.lr_scheduler.StepLR(algo, args.epochs // 3, gamma=0.1) elif args.learning_rate_scheduler == 'cosine': self.scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(algo, float(args.epochs), eta_min=args.learning_rate_min) print(f'Using {self.scheduler} with initial learning rate {args.learning_rate}.') # checkpointing self.checkpointer = Checkpointer( output + "/checkpoint.pt", self.model, self.optimizer.algo, self.scheduler, frequency=10, do_resume=do_resume, ) # reporting self.reporter = Reporter( use_console=True, tensorboard_out=output + "/log", img_index=[], logger_out=output + '/log_search.txt' ) # validation validation_tasks = OrderedDict() validation_tasks["ReDWeb"] = { "dataset": ReDWeb( config["datasets"]["ReDWeb"]["validation"], config["datasets"]["ReDWeb"]["datapath"], transform=Compose( [ Resize( 384, 384, resize_target=False, keep_aspect_ratio=True, ensure_multiple_of=32, resize_method="minimal", ), NormalizeImage( mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225] ), PrepareForNet(), ] ), ), "metric": DisparityRmse(), } self.validation = Validation( self.model, validation_tasks, self.reporter, self.device, frequency=args.save_every_epoch )
[ 1, 529, 276, 1112, 420, 29958, 29895, 1270, 29884, 29906, 29900, 29896, 29946, 29914, 22911, 29899, 1049, 3502, 1727, 29966, 9507, 29958, 22911, 5652, 29914, 29883, 15755, 29914, 4478, 29918, 3493, 29914, 3712, 356, 29886, 386, 29914, 7529, 29914, 4478, 29899, 7099, 6119, 29899, 29894, 29896, 29914, 690, 4622, 29896, 29900, 29896, 29918, 29893, 2536, 29889, 2272, 13, 3166, 1601, 356, 29886, 386, 29889, 9794, 1053, 341, 8817, 6779, 29892, 341, 8817, 6779, 7974, 13, 3166, 1601, 356, 29886, 386, 29889, 20640, 29889, 20640, 3950, 1053, 341, 29954, 7698, 29892, 402, 7698, 13, 5215, 4842, 305, 13, 5215, 4842, 305, 29889, 20640, 408, 5994, 13, 3166, 1601, 356, 29886, 386, 29889, 18157, 1053, 15758, 362, 13, 3166, 1601, 356, 29886, 386, 29889, 13239, 29889, 3198, 17226, 1053, 5399, 17226, 13, 3166, 1601, 356, 29886, 386, 29889, 13239, 29889, 276, 18505, 1053, 830, 18505, 13, 3166, 1601, 356, 29886, 386, 29889, 20640, 29889, 816, 14952, 1053, 5798, 29519, 13, 3166, 1601, 356, 29886, 386, 29889, 6758, 1053, 313, 13, 1678, 2522, 744, 2855, 29657, 797, 19365, 29931, 2209, 29892, 13, 1678, 1019, 7283, 504, 267, 29931, 2209, 29892, 13, 1678, 1605, 326, 2168, 1184, 7283, 504, 267, 29931, 2209, 29892, 13, 29897, 13, 3166, 1601, 356, 29886, 386, 29889, 1272, 1053, 2473, 29918, 1272, 29918, 12657, 13, 3166, 1601, 356, 29886, 386, 29889, 1272, 29889, 14538, 1691, 1053, 341, 2442, 8498, 386, 29892, 830, 29928, 3609, 29892, 14104, 583, 29941, 29881, 13, 3166, 1601, 356, 29886, 386, 29889, 1272, 29889, 14538, 1691, 29889, 9067, 29879, 1053, 313, 13, 1678, 16968, 29907, 1336, 29892, 13, 1678, 16968, 29943, 492, 572, 29878, 29892, 13, 1678, 2538, 29883, 744, 29892, 13, 1678, 349, 3445, 598, 2831, 6779, 29892, 13, 1678, 2538, 675, 29892, 13, 1678, 21981, 675, 2940, 29892, 13, 29897, 13, 3166, 4842, 305, 4924, 29889, 9067, 29879, 1053, 3831, 852, 13, 3166, 1601, 356, 29886, 386, 29889, 16414, 1053, 3295, 862, 537, 29934, 29885, 344, 13, 3166, 16250, 1053, 8170, 287, 21533, 13, 3166, 1601, 356, 29886, 386, 29889, 22911, 29889, 2754, 1053, 10050, 24214, 17875, 29924, 329, 1061, 29892, 10050, 24214, 17875, 29924, 329, 1061, 21077, 13, 13, 13, 1990, 28186, 9629, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2295, 29892, 1962, 29892, 6389, 29892, 437, 29918, 690, 2017, 29922, 8824, 29892, 2069, 29918, 3166, 29922, 8516, 1125, 13, 4706, 396, 4842, 305, 3987, 13, 4706, 4842, 305, 29889, 1627, 1975, 29889, 29883, 566, 15755, 29889, 17590, 353, 5852, 13, 4706, 4842, 305, 29889, 1627, 1975, 29889, 29883, 566, 15755, 29889, 1785, 16580, 353, 5852, 13, 13, 4706, 396, 4742, 13, 4706, 1583, 29889, 10141, 353, 4842, 305, 29889, 10141, 703, 29883, 6191, 1159, 13, 4706, 1583, 29889, 5085, 353, 6389, 13, 4706, 396, 1904, 13, 4706, 1583, 29889, 4299, 353, 341, 8817, 6779, 7974, 29898, 1627, 15933, 543, 690, 4622, 29896, 29900, 29896, 29918, 29893, 2536, 613, 6389, 29922, 5085, 29897, 13, 4706, 565, 525, 1028, 359, 29915, 297, 6389, 29889, 9136, 1212, 29918, 14968, 29918, 5696, 29901, 13, 9651, 565, 6389, 29889, 6149, 1061, 1275, 525, 5464, 9171, 2396, 13, 18884, 5478, 1061, 353, 10050, 24214, 17875, 29924, 329, 1061, 29898, 1311, 29889, 4299, 29897, 13, 9651, 25342, 6389, 29889, 6149, 1061, 1275, 525, 5464, 9171, 29918, 16593, 2396, 13, 18884, 5478, 1061, 353, 10050, 24214, 17875, 29924, 329, 1061, 21077, 29898, 1311, 29889, 4299, 29897, 13, 9651, 1683, 29901, 13, 18884, 12020, 2216, 1888, 2037, 287, 2392, 29898, 29888, 29908, 29924, 329, 1061, 426, 5085, 29889, 6149, 1061, 29913, 338, 451, 8762, 363, 10937, 3267, 1158, 1159, 13, 4706, 1683, 29901, 13, 9651, 12020, 2216, 1888, 2037, 287, 2392, 29898, 29888, 29908, 4062, 426, 5085, 29889, 9136, 1212, 29918, 14968, 29918, 5696, 29913, 338, 451, 8762, 363, 2598, 29877, 8498, 386, 1159, 13, 4706, 1583, 29889, 6149, 1061, 353, 5478, 1061, 13, 4706, 396, 9595, 13, 4706, 1583, 29889, 20673, 353, 8170, 287, 21533, 580, 13, 13, 4706, 1583, 29889, 20673, 3366, 1123, 29928, 3609, 3108, 353, 426, 13, 9651, 376, 24713, 1115, 830, 29928, 3609, 29898, 13, 18884, 2295, 3366, 14538, 1691, 3108, 3366, 1123, 29928, 3609, 3108, 3366, 14968, 12436, 13, 18884, 2295, 3366, 14538, 1691, 3108, 3366, 1123, 29928, 3609, 3108, 3366, 4130, 481, 493, 12436, 13, 18884, 4327, 29922, 1523, 4220, 29898, 13, 462, 1678, 518, 13, 462, 4706, 2538, 675, 29898, 29941, 29947, 29946, 29892, 29871, 29941, 29947, 29946, 29892, 3013, 29918, 294, 1103, 29918, 3605, 601, 29922, 5574, 511, 13, 462, 4706, 16968, 29907, 1336, 29898, 29941, 29947, 29946, 29892, 29871, 29941, 29947, 29946, 511, 13, 462, 4706, 16968, 29943, 492, 572, 29878, 3285, 13, 462, 4706, 2538, 29883, 744, 3285, 13, 462, 4706, 21981, 675, 2940, 29898, 13, 462, 9651, 2099, 11759, 29900, 29889, 29946, 29947, 29945, 29892, 29871, 29900, 29889, 29946, 29945, 29953, 29892, 29871, 29900, 29889, 29946, 29900, 29953, 1402, 3659, 11759, 29900, 29889, 29906, 29906, 29929, 29892, 29871, 29900, 29889, 29906, 29906, 29946, 29892, 29871, 29900, 29889, 29906, 29906, 29945, 29962, 13, 462, 4706, 10353, 13, 462, 4706, 349, 3445, 598, 2831, 6779, 3285, 13, 462, 1678, 4514, 13, 18884, 10353, 13, 18884, 4464, 543, 14968, 613, 13, 9651, 10353, 13, 9651, 376, 6758, 1115, 1605, 326, 2168, 1184, 7283, 504, 267, 29931, 2209, 3285, 13, 4706, 500, 13, 13, 4706, 1583, 29889, 29881, 2075, 29877, 1664, 353, 2473, 29918, 1272, 29918, 12657, 29889, 15329, 1469, 10036, 29898, 13, 9651, 426, 29895, 29901, 325, 3366, 24713, 3108, 363, 413, 29892, 325, 297, 1583, 29889, 20673, 29889, 7076, 580, 1118, 13, 9651, 9853, 29918, 2311, 29922, 29947, 29892, 13, 9651, 954, 29918, 1287, 414, 29922, 29946, 29892, 13, 4706, 1723, 13, 13, 4706, 396, 13883, 13, 4706, 24673, 353, 5994, 29889, 3253, 314, 29898, 13, 9651, 518, 13, 18884, 8853, 7529, 1115, 1583, 29889, 4299, 29889, 10526, 905, 29889, 16744, 580, 1118, 13, 18884, 8853, 7529, 1115, 1583, 29889, 4299, 29889, 1457, 3018, 1312, 29889, 16744, 3285, 376, 29212, 1115, 6389, 29889, 1627, 15933, 29918, 21891, 29918, 10492, 1118, 13, 9651, 21251, 13, 9651, 301, 29878, 29922, 5085, 29889, 21891, 29918, 10492, 29892, 13, 9651, 1010, 294, 7607, 29900, 29889, 29929, 29892, 29871, 29900, 29889, 29929, 29929, 29929, 511, 13, 9651, 7688, 29918, 7099, 388, 29922, 5085, 29889, 7915, 29918, 7099, 388, 13, 4706, 1723, 13, 4706, 565, 6389, 29889, 1627, 15933, 29918, 21891, 29918, 10492, 1275, 29871, 29900, 29889, 29900, 29901, 13, 9651, 363, 1828, 297, 1583, 29889, 4299, 29889, 1457, 3018, 1312, 29889, 16744, 7295, 13, 18884, 1828, 29889, 276, 339, 2658, 29918, 5105, 353, 7700, 13, 308, 13, 4706, 565, 6389, 29889, 1627, 15933, 29918, 705, 5861, 29901, 13, 9651, 396, 2254, 278, 758, 3018, 1312, 18177, 18177, 16205, 13, 9651, 2106, 353, 4842, 305, 29889, 1359, 29898, 5085, 29889, 1627, 15933, 29918, 705, 5861, 29897, 13, 9651, 1583, 29889, 4299, 29889, 1359, 29918, 3859, 29918, 8977, 29898, 3859, 29892, 9406, 29922, 8824, 29897, 13, 13, 4706, 396, 445, 881, 1207, 278, 6694, 2428, 5172, 13, 4706, 1583, 29889, 1022, 2878, 29918, 2848, 353, 29871, 29941, 29906, 29946, 29900, 13, 4706, 1583, 29889, 1949, 29918, 1022, 2878, 29879, 353, 6389, 29889, 1022, 2878, 29879, 13, 13, 4706, 396, 28489, 278, 5994, 3950, 13, 4706, 1583, 29889, 20640, 3950, 353, 402, 7698, 29898, 20567, 29922, 284, 1484, 29892, 954, 29918, 20673, 29922, 2435, 29898, 1311, 29889, 20673, 876, 13, 308, 13, 4706, 565, 6389, 29889, 21891, 29918, 10492, 29918, 816, 14952, 1275, 525, 10568, 2396, 13, 9651, 1583, 29889, 816, 14952, 353, 4842, 305, 29889, 20640, 29889, 29212, 29918, 816, 14952, 29889, 14448, 29519, 29898, 284, 1484, 29892, 6389, 29889, 1022, 2878, 29879, 849, 29871, 29941, 29892, 330, 2735, 29922, 29900, 29889, 29896, 29897, 13, 29871, 13, 4706, 25342, 6389, 29889, 21891, 29918, 10492, 29918, 816, 14952, 1275, 525, 3944, 457, 2396, 13, 9651, 1583, 29889, 816, 14952, 353, 4842, 305, 29889, 20640, 29889, 29212, 29918, 816, 14952, 29889, 29907, 359, 457, 2744, 484, 12818, 29519, 29898, 284, 1484, 29892, 5785, 29898, 5085, 29889, 1022, 2878, 29879, 511, 634, 29874, 29918, 1195, 29922, 5085, 29889, 21891, 29918, 10492, 29918, 1195, 29897, 13, 13, 4706, 1596, 29898, 29888, 29915, 15156, 426, 1311, 29889, 816, 14952, 29913, 411, 2847, 6509, 6554, 426, 5085, 29889, 21891, 29918, 10492, 1836, 1495, 13, 13, 4706, 396, 1423, 3149, 292, 13, 4706, 1583, 29889, 3198, 17226, 353, 5399, 17226, 29898, 13, 9651, 1962, 718, 5591, 3198, 3149, 29889, 415, 613, 13, 9651, 1583, 29889, 4299, 29892, 13, 9651, 1583, 29889, 20640, 3950, 29889, 284, 1484, 29892, 13, 9651, 1583, 29889, 816, 14952, 29892, 13, 9651, 10868, 29922, 29896, 29900, 29892, 13, 9651, 437, 29918, 690, 2017, 29922, 1867, 29918, 690, 2017, 29892, 13, 4706, 1723, 13, 13, 4706, 396, 23415, 13, 4706, 1583, 29889, 276, 18505, 353, 830, 18505, 29898, 13, 9651, 671, 29918, 11058, 29922, 5574, 29892, 12489, 3377, 29918, 449, 29922, 4905, 718, 5591, 1188, 613, 10153, 29918, 2248, 11759, 1402, 17927, 29918, 449, 29922, 4905, 718, 8207, 1188, 29918, 4478, 29889, 3945, 29915, 13, 4706, 1723, 13, 13, 4706, 396, 8845, 13, 4706, 8845, 29918, 20673, 353, 8170, 287, 21533, 580, 13, 4706, 8845, 29918, 20673, 3366, 1123, 29928, 3609, 3108, 353, 426, 13, 9651, 376, 24713, 1115, 830, 29928, 3609, 29898, 13, 18884, 2295, 3366, 14538, 1691, 3108, 3366, 1123, 29928, 3609, 3108, 3366, 18157, 12436, 13, 18884, 2295, 3366, 14538, 1691, 3108, 3366, 1123, 29928, 3609, 3108, 3366, 4130, 481, 493, 12436, 13, 18884, 4327, 29922, 1523, 4220, 29898, 13, 462, 1678, 518, 13, 462, 4706, 2538, 675, 29898, 13, 462, 632, 29941, 29947, 29946, 29892, 13, 462, 632, 29941, 29947, 29946, 29892, 13, 462, 9651, 19490, 29918, 5182, 29922, 8824, 29892, 13, 462, 9651, 3013, 29918, 294, 1103, 29918, 3605, 601, 29922, 5574, 29892, 13, 462, 9651, 9801, 29918, 20787, 29918, 974, 29922, 29941, 29906, 29892, 13, 462, 9651, 19490, 29918, 5696, 543, 1195, 3039, 613, 13, 462, 4706, 10353, 13, 462, 4706, 21981, 675, 2940, 29898, 13, 462, 9651, 2099, 11759, 29900, 29889, 29946, 29947, 29945, 29892, 29871, 29900, 29889, 29946, 29945, 29953, 29892, 29871, 29900, 29889, 29946, 29900, 29953, 1402, 3659, 11759, 29900, 29889, 29906, 29906, 29929, 29892, 29871, 29900, 29889, 29906, 29906, 29946, 29892, 29871, 29900, 29889, 29906, 29906, 29945, 29962, 13, 462, 4706, 10353, 13, 462, 4706, 349, 3445, 598, 2831, 6779, 3285, 13, 462, 1678, 4514, 13, 18884, 10353, 13, 9651, 10353, 13, 9651, 376, 16414, 1115, 3295, 862, 537, 29934, 29885, 344, 3285, 13, 4706, 500, 13, 13, 4706, 1583, 29889, 18157, 353, 15758, 362, 29898, 13, 9651, 1583, 29889, 4299, 29892, 8845, 29918, 20673, 29892, 1583, 29889, 276, 18505, 29892, 1583, 29889, 10141, 29892, 10868, 29922, 5085, 29889, 7620, 29918, 17991, 29918, 1022, 2878, 13, 4706, 1723, 13, 2 ]
RecoPPS/Local/python/ctppsDiamondLocalReconstruction_cff.py
ckamtsikis/cmssw
852
39143
<gh_stars>100-1000 import FWCore.ParameterSet.Config as cms # reco hit production from RecoPPS.Local.ctppsDiamondRecHits_cfi import ctppsDiamondRecHits # local track fitting from RecoPPS.Local.ctppsDiamondLocalTracks_cfi import ctppsDiamondLocalTracks ctppsDiamondLocalReconstructionTask = cms.Task( ctppsDiamondRecHits, ctppsDiamondLocalTracks ) ctppsDiamondLocalReconstruction = cms.Sequence(ctppsDiamondLocalReconstructionTask)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29899, 29896, 29900, 29900, 29900, 13, 5215, 383, 29956, 9203, 29889, 9329, 2697, 29889, 3991, 408, 274, 1516, 13, 13, 29937, 337, 1111, 7124, 5802, 13, 3166, 3599, 29877, 29925, 7024, 29889, 7717, 29889, 312, 407, 29879, 29928, 2829, 898, 4789, 29950, 1169, 29918, 6854, 29875, 1053, 274, 29873, 407, 29879, 29928, 2829, 898, 4789, 29950, 1169, 13, 13, 29937, 1887, 5702, 28221, 13, 3166, 3599, 29877, 29925, 7024, 29889, 7717, 29889, 312, 407, 29879, 29928, 2829, 898, 7717, 5323, 4684, 29918, 6854, 29875, 1053, 274, 29873, 407, 29879, 29928, 2829, 898, 7717, 5323, 4684, 13, 13, 312, 407, 29879, 29928, 2829, 898, 7717, 1123, 3075, 4080, 5398, 353, 274, 1516, 29889, 5398, 29898, 13, 1678, 274, 29873, 407, 29879, 29928, 2829, 898, 4789, 29950, 1169, 29892, 13, 1678, 274, 29873, 407, 29879, 29928, 2829, 898, 7717, 5323, 4684, 13, 29897, 13, 312, 407, 29879, 29928, 2829, 898, 7717, 1123, 3075, 4080, 353, 274, 1516, 29889, 20529, 29898, 312, 407, 29879, 29928, 2829, 898, 7717, 1123, 3075, 4080, 5398, 29897, 13, 2 ]
identityholder.py
BenNordick/HiLoop
1
46626
<filename>identityholder.py<gh_stars>1-10 class IdentityHolder: """ Wraps an object so that it can be quickly compared by object identity rather than value. Also provides a total order based on object address. This is frequently useful for sets representing cycles: set value equality is O(n) but object identity equality is O(1). Different cycles can have the same nodes in a different order; it is important to distinguish these objects, but useful to represent them as sets for purposes of fast intersection. """ def __init__(self, value, tag=None): """Wrap a value, optionally tagged with extra information.""" self.value = value self.tag = tag def __hash__(self): return id(self.value) def __eq__(self, other): return self.value is other.value def __str__(self): return 'IH`' + str(self.value) + '`' def __repr__(self): return 'IdentityHolder(' + repr(self.value) + ', ' + repr(self.tag) + ')' def order(self, other): """Return a tuple of this holder and the other such that the first item is before the second in a total order.""" return (self, other) if self.isbefore(other) else (other, self) def isbefore(self, other): """Determine whether this holder is before the other in a total order.""" return id(self.value) < id(other.value)
[ 1, 529, 9507, 29958, 22350, 7694, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 1990, 27486, 11439, 29901, 13, 1678, 9995, 13, 1678, 399, 336, 567, 385, 1203, 577, 393, 372, 508, 367, 9098, 9401, 491, 1203, 10110, 3265, 1135, 995, 29889, 13, 1678, 3115, 8128, 263, 3001, 1797, 2729, 373, 1203, 3211, 29889, 13, 13, 1678, 910, 338, 13672, 5407, 363, 6166, 15783, 25785, 29901, 731, 995, 17193, 338, 438, 29898, 29876, 29897, 541, 1203, 10110, 17193, 338, 438, 29898, 29896, 467, 13, 1678, 360, 15622, 25785, 508, 505, 278, 1021, 7573, 297, 263, 1422, 1797, 29936, 372, 338, 4100, 304, 20820, 1438, 3618, 29892, 541, 5407, 13, 1678, 304, 2755, 963, 408, 6166, 363, 11976, 310, 5172, 17686, 29889, 13, 1678, 9995, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 995, 29892, 4055, 29922, 8516, 1125, 13, 4706, 9995, 29956, 2390, 263, 995, 29892, 2984, 635, 4055, 3192, 411, 4805, 2472, 1213, 15945, 13, 4706, 1583, 29889, 1767, 353, 995, 13, 4706, 1583, 29889, 4039, 353, 4055, 13, 1678, 822, 4770, 8568, 12035, 1311, 1125, 13, 4706, 736, 1178, 29898, 1311, 29889, 1767, 29897, 13, 1678, 822, 4770, 1837, 12035, 1311, 29892, 916, 1125, 13, 4706, 736, 1583, 29889, 1767, 338, 916, 29889, 1767, 13, 1678, 822, 4770, 710, 12035, 1311, 1125, 13, 4706, 736, 525, 29902, 29950, 20497, 718, 851, 29898, 1311, 29889, 1767, 29897, 718, 525, 20497, 13, 1678, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 4706, 736, 525, 18415, 11439, 877, 718, 2062, 29898, 1311, 29889, 1767, 29897, 718, 13420, 525, 718, 2062, 29898, 1311, 29889, 4039, 29897, 718, 525, 16029, 13, 1678, 822, 1797, 29898, 1311, 29892, 916, 1125, 13, 4706, 9995, 11609, 263, 18761, 310, 445, 19464, 322, 278, 916, 1316, 393, 278, 937, 2944, 338, 1434, 278, 1473, 297, 263, 3001, 1797, 1213, 15945, 13, 4706, 736, 313, 1311, 29892, 916, 29897, 565, 1583, 29889, 275, 11083, 29898, 1228, 29897, 1683, 313, 1228, 29892, 1583, 29897, 13, 1678, 822, 338, 11083, 29898, 1311, 29892, 916, 1125, 13, 4706, 9995, 6362, 837, 457, 3692, 445, 19464, 338, 1434, 278, 916, 297, 263, 3001, 1797, 1213, 15945, 13, 4706, 736, 1178, 29898, 1311, 29889, 1767, 29897, 529, 1178, 29898, 1228, 29889, 1767, 29897, 13, 308, 2 ]
src/bert.py
emerging-welfare/random_sampling-vs-keyword_filtering
0
83376
<reponame>emerging-welfare/random_sampling-vs-keyword_filtering from torch.utils.data import TensorDataset, DataLoader, RandomSampler, SequentialSampler from torch.autograd import Variable from sklearn.metrics import classification_report, confusion_matrix, f1_score from transformers import * from torch import nn import numpy as np import time import datetime import torch import random import json import os import sys import torch.nn.functional as F import unicodedata import re use_gpu = True seed = 1234 batch_size = 64 # 8 per available GPU max_length = 512 folds = 10 n_epochs = 10 lr = 2e-5 device_ids = [0, 1, 2, 3, 4, 5, 6, 7] #device_ids = [0, 1, 2, 3] if use_gpu and torch.cuda.is_available(): device = torch.device("cuda:0") else: device = torch.device("cpu") tokenizer = None def prepare_set(dataset, max_length=256): """returns input_ids, input_masks, labels for set of data ready in BERT format""" global tokenizer input_ids, labels = [], [] for i in dataset: input_ids.append(i["text"].lower()) labels.append(1 if i["label"] == 1 else 0) inputs = [ tokenizer.encode_plus(i, pad_to_max_length=True, add_special_tokens=True, max_length=max_length) for i in input_ids ] input_ids = [ torch.tensor(x["input_ids"]) for x in inputs ] input_masks = [ torch.tensor(x["attention_mask"]) for x in inputs ] token_type_ids = [ torch.tensor(x["token_type_ids"]) for x in inputs ] input_ids = torch.stack(input_ids) input_masks = torch.stack(input_masks) token_type_ids = torch.stack(token_type_ids) labels = torch.tensor(labels) return (input_ids, input_masks, token_type_ids), labels def predict(self, test): (test_inputs, test_masks, test_type_ids), y_test = prepare_set(test, max_length=max_length) test_data = TensorDataset(test_inputs, test_masks, test_type_ids) test_sampler = SequentialSampler(test_data) test_dataloader = DataLoader(test_data, sampler=test_sampler, batch_size=batch_size) self.eval() with torch.no_grad(): preds = [] for batch in test_dataloader: b_input_ids, b_input_mask, b_token_type_ids = tuple(t.to(device) for t in batch) output = self(b_input_ids, b_input_mask, b_token_type_ids) logits = output[0].detach().cpu().numpy() preds += list(np.argmax(logits, axis=1).flatten()) return preds def get_bert(pretrained_model): global tokenizer tokenizer = BertTokenizer.from_pretrained(pretrained_model) model = BertForSequenceClassification.from_pretrained(pretrained_model, num_labels=2) # if torch.cuda.device_count() > 1 and device.type == "cuda": # model = nn.DataParallel(model, device_ids=device_ids) model.to(device) model.predict = predict.__get__(model) return model def build_bert(train, dev, pretrained_model, n_epochs=15): global tokenizer tokenizer = AutoTokenizer.from_pretrained(pretrained_model) model = AutoModelForSequenceClassification.from_pretrained(pretrained_model) model_path = "temp.pt" print([len(x) for x in (train, dev)]) (train_inputs, train_masks, train_type_ids), y_train = prepare_set(train, max_length=max_length) train_data = TensorDataset(train_inputs, train_masks, train_type_ids, y_train) train_sampler = RandomSampler(train_data) train_dataloader = DataLoader(train_data, sampler=train_sampler, batch_size=batch_size) # Create the DataLoader for our dev set. (dev_inputs, dev_masks, dev_type_ids), y_dev = prepare_set(dev, max_length=max_length) dev_data = TensorDataset(dev_inputs, dev_masks, dev_type_ids, y_dev) dev_sampler = SequentialSampler(dev_data) dev_dataloader = DataLoader(dev_data, sampler=dev_sampler, batch_size=batch_size) if torch.cuda.device_count() > 1 and device.type == "cuda": model = nn.DataParallel(model, device_ids=device_ids) model.to(device) np.random.seed(seed) torch.manual_seed(seed) if device.type == "cuda": torch.cuda.manual_seed_all(seed) total_steps = len(train_dataloader) * n_epochs optimizer = AdamW(model.parameters(), lr=lr) scheduler = get_linear_schedule_with_warmup(optimizer, num_warmup_steps = 0, num_training_steps = total_steps) model.zero_grad() best_score = 0 best_loss = 1e6 train_losses = [] for epoch in range(n_epochs): start_time = time.time() train_loss = 0 model.train() for batch in train_dataloader: b_input_ids, b_input_mask, b_token_type_ids, b_labels = tuple(t.to(device) for t in batch) output = model(b_input_ids, attention_mask=b_input_mask, token_type_ids=b_token_type_ids, labels=b_labels) loss = output[0].sum() loss.backward() optimizer.step() train_loss += loss.item() model.zero_grad() scheduler.step() elapsed = time.time() - start_time model.eval() val_preds = [] with torch.no_grad(): val_loss, batch = 0, 1 for batch in dev_dataloader: b_input_ids, b_input_mask, b_token_type_ids, b_labels = tuple(t.to(device) for t in batch) output = model(b_input_ids, attention_mask=b_input_mask, token_type_ids=b_token_type_ids, labels=b_labels) loss = output[0].sum() val_loss += loss.item() logits = output[1].detach().cpu().numpy() val_preds += list(np.argmax(logits, axis=1).flatten()) model.zero_grad() val_score = f1_score(y_dev.cpu().numpy().tolist(), val_preds, average="macro") #print("Epoch %d Train loss: %.4f. Validation F1-Score: %.4f Validation loss: %.4f. Elapsed time: %.2fs."% (epoch + 1, train_loss, val_score, val_loss, elapsed)) if val_score > best_score: torch.save(model.state_dict(), model_path) #print(classification_report(y_dev.cpu().numpy().tolist(), val_preds, digits=4)) best_score = val_score model.load_state_dict(torch.load(model_path)) model.to(device) model.predict = predict.__get__(model) os.remove(model_path) return model
[ 1, 529, 276, 1112, 420, 29958, 25154, 3460, 29899, 29893, 761, 598, 29914, 8172, 29918, 13445, 10335, 29899, 4270, 29899, 26766, 29918, 4572, 292, 13, 3166, 4842, 305, 29889, 13239, 29889, 1272, 1053, 323, 6073, 16390, 24541, 29892, 3630, 10036, 29892, 16968, 22966, 20069, 29892, 922, 339, 2556, 22966, 20069, 13, 3166, 4842, 305, 29889, 1300, 468, 3665, 1053, 28736, 13, 3166, 2071, 19668, 29889, 2527, 10817, 1053, 12965, 29918, 12276, 29892, 14679, 29918, 5344, 29892, 285, 29896, 29918, 13628, 13, 3166, 4327, 414, 1053, 334, 13, 3166, 4842, 305, 1053, 302, 29876, 13, 5215, 12655, 408, 7442, 13, 5215, 931, 13, 5215, 12865, 13, 5215, 4842, 305, 13, 5215, 4036, 13, 5215, 4390, 13, 5215, 2897, 13, 5215, 10876, 13, 5215, 4842, 305, 29889, 15755, 29889, 2220, 284, 408, 383, 13, 5215, 443, 293, 6797, 532, 13, 5215, 337, 13, 13, 1509, 29918, 29887, 3746, 353, 5852, 13, 26776, 353, 29871, 29896, 29906, 29941, 29946, 13, 16175, 29918, 2311, 353, 29871, 29953, 29946, 396, 29871, 29947, 639, 3625, 22796, 13, 3317, 29918, 2848, 353, 29871, 29945, 29896, 29906, 13, 29888, 3361, 353, 29871, 29896, 29900, 13, 29876, 29918, 1022, 2878, 29879, 353, 29871, 29896, 29900, 13, 29212, 353, 29871, 29906, 29872, 29899, 29945, 13, 10141, 29918, 4841, 353, 518, 29900, 29892, 29871, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 29871, 29946, 29892, 29871, 29945, 29892, 29871, 29953, 29892, 29871, 29955, 29962, 13, 29937, 10141, 29918, 4841, 353, 518, 29900, 29892, 29871, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 29962, 13, 13, 361, 671, 29918, 29887, 3746, 322, 4842, 305, 29889, 29883, 6191, 29889, 275, 29918, 16515, 7295, 13, 1678, 4742, 353, 4842, 305, 29889, 10141, 703, 29883, 6191, 29901, 29900, 1159, 13, 2870, 29901, 13, 1678, 4742, 353, 4842, 305, 29889, 10141, 703, 21970, 1159, 13, 13, 6979, 3950, 353, 6213, 13, 13, 1753, 19012, 29918, 842, 29898, 24713, 29892, 4236, 29918, 2848, 29922, 29906, 29945, 29953, 1125, 13, 1678, 9995, 18280, 1881, 29918, 4841, 29892, 1881, 29918, 13168, 29879, 29892, 11073, 363, 731, 310, 848, 7960, 297, 350, 20161, 3402, 15945, 29908, 13, 1678, 5534, 5993, 3950, 13, 1678, 1881, 29918, 4841, 29892, 11073, 353, 19997, 5159, 13, 268, 13, 1678, 363, 474, 297, 8783, 29901, 13, 4706, 1881, 29918, 4841, 29889, 4397, 29898, 29875, 3366, 726, 16862, 13609, 3101, 13, 4706, 11073, 29889, 4397, 29898, 29896, 565, 474, 3366, 1643, 3108, 1275, 29871, 29896, 1683, 29871, 29900, 29897, 13, 268, 13, 1678, 10970, 353, 518, 5993, 3950, 29889, 12508, 29918, 11242, 29898, 29875, 29892, 17132, 29918, 517, 29918, 3317, 29918, 2848, 29922, 5574, 29892, 788, 29918, 18732, 29918, 517, 12360, 29922, 5574, 29892, 4236, 29918, 2848, 29922, 3317, 29918, 2848, 29897, 363, 474, 297, 1881, 29918, 4841, 4514, 13, 1678, 1881, 29918, 4841, 353, 518, 4842, 305, 29889, 20158, 29898, 29916, 3366, 2080, 29918, 4841, 20068, 363, 921, 297, 10970, 4514, 29871, 13, 1678, 1881, 29918, 13168, 29879, 353, 518, 4842, 305, 29889, 20158, 29898, 29916, 3366, 1131, 2509, 29918, 13168, 20068, 363, 921, 297, 10970, 4514, 29871, 13, 1678, 5993, 29918, 1853, 29918, 4841, 353, 518, 4842, 305, 29889, 20158, 29898, 29916, 3366, 6979, 29918, 1853, 29918, 4841, 20068, 363, 921, 297, 10970, 4514, 29871, 13, 13, 1678, 1881, 29918, 4841, 353, 4842, 305, 29889, 1429, 29898, 2080, 29918, 4841, 29897, 13, 1678, 1881, 29918, 13168, 29879, 353, 4842, 305, 29889, 1429, 29898, 2080, 29918, 13168, 29879, 29897, 13, 1678, 5993, 29918, 1853, 29918, 4841, 353, 4842, 305, 29889, 1429, 29898, 6979, 29918, 1853, 29918, 4841, 29897, 13, 1678, 11073, 353, 4842, 305, 29889, 20158, 29898, 21134, 29897, 13, 13, 1678, 736, 313, 2080, 29918, 4841, 29892, 1881, 29918, 13168, 29879, 29892, 5993, 29918, 1853, 29918, 4841, 511, 11073, 13, 13, 13, 1753, 8500, 29898, 1311, 29892, 1243, 1125, 13, 1678, 313, 1688, 29918, 2080, 29879, 29892, 1243, 29918, 13168, 29879, 29892, 1243, 29918, 1853, 29918, 4841, 511, 343, 29918, 1688, 353, 19012, 29918, 842, 29898, 1688, 29892, 4236, 29918, 2848, 29922, 3317, 29918, 2848, 29897, 13, 1678, 1243, 29918, 1272, 353, 323, 6073, 16390, 24541, 29898, 1688, 29918, 2080, 29879, 29892, 1243, 29918, 13168, 29879, 29892, 1243, 29918, 1853, 29918, 4841, 29897, 13, 1678, 1243, 29918, 13445, 20069, 353, 922, 339, 2556, 22966, 20069, 29898, 1688, 29918, 1272, 29897, 13, 1678, 1243, 29918, 29881, 2075, 29877, 1664, 353, 3630, 10036, 29898, 1688, 29918, 1272, 29892, 3514, 20069, 29922, 1688, 29918, 13445, 20069, 29892, 9853, 29918, 2311, 29922, 16175, 29918, 2311, 29897, 13, 13, 1678, 1583, 29889, 14513, 580, 13, 1678, 411, 4842, 305, 29889, 1217, 29918, 5105, 7295, 29871, 13, 4706, 4450, 29879, 353, 5159, 13, 4706, 363, 9853, 297, 1243, 29918, 29881, 2075, 29877, 1664, 29901, 13, 9651, 289, 29918, 2080, 29918, 4841, 29892, 289, 29918, 2080, 29918, 13168, 29892, 289, 29918, 6979, 29918, 1853, 29918, 4841, 353, 18761, 29898, 29873, 29889, 517, 29898, 10141, 29897, 363, 260, 297, 9853, 29897, 13, 9651, 1962, 353, 1583, 29898, 29890, 29918, 2080, 29918, 4841, 29892, 289, 29918, 2080, 29918, 13168, 29892, 289, 29918, 6979, 29918, 1853, 29918, 4841, 29897, 13, 9651, 1480, 1169, 353, 1962, 29961, 29900, 1822, 4801, 496, 2141, 21970, 2141, 23749, 580, 13, 9651, 4450, 29879, 4619, 1051, 29898, 9302, 29889, 1191, 3317, 29898, 1188, 1169, 29892, 9685, 29922, 29896, 467, 1579, 8606, 3101, 13, 13, 1678, 736, 4450, 29879, 13, 13, 13, 1753, 679, 29918, 2151, 29898, 1457, 3018, 1312, 29918, 4299, 1125, 13, 1678, 5534, 5993, 3950, 13, 1678, 5993, 3950, 353, 16662, 6066, 3950, 29889, 3166, 29918, 1457, 3018, 1312, 29898, 1457, 3018, 1312, 29918, 4299, 29897, 13, 1678, 1904, 353, 16662, 2831, 20529, 2385, 2450, 29889, 3166, 29918, 1457, 3018, 1312, 29898, 1457, 3018, 1312, 29918, 4299, 29892, 954, 29918, 21134, 29922, 29906, 29897, 13, 13, 1678, 396, 565, 4842, 305, 29889, 29883, 6191, 29889, 10141, 29918, 2798, 580, 1405, 29871, 29896, 322, 4742, 29889, 1853, 1275, 376, 29883, 6191, 1115, 13, 1678, 396, 268, 1904, 353, 302, 29876, 29889, 1469, 2177, 6553, 29898, 4299, 29892, 4742, 29918, 4841, 29922, 10141, 29918, 4841, 29897, 13, 13, 1678, 1904, 29889, 517, 29898, 10141, 29897, 13, 1678, 1904, 29889, 27711, 353, 8500, 17255, 657, 12035, 4299, 29897, 13, 13, 1678, 736, 1904, 13, 13, 13, 1753, 2048, 29918, 2151, 29898, 14968, 29892, 2906, 29892, 758, 3018, 1312, 29918, 4299, 29892, 302, 29918, 1022, 2878, 29879, 29922, 29896, 29945, 1125, 13, 1678, 5534, 5993, 3950, 13, 1678, 5993, 3950, 353, 11133, 6066, 3950, 29889, 3166, 29918, 1457, 3018, 1312, 29898, 1457, 3018, 1312, 29918, 4299, 29897, 13, 1678, 1904, 353, 11133, 3195, 2831, 20529, 2385, 2450, 29889, 3166, 29918, 1457, 3018, 1312, 29898, 1457, 3018, 1312, 29918, 4299, 29897, 13, 1678, 1904, 29918, 2084, 353, 376, 7382, 29889, 415, 29908, 13, 13, 1678, 1596, 4197, 2435, 29898, 29916, 29897, 363, 921, 297, 313, 14968, 29892, 2906, 29897, 2314, 13, 13, 1678, 313, 14968, 29918, 2080, 29879, 29892, 7945, 29918, 13168, 29879, 29892, 7945, 29918, 1853, 29918, 4841, 511, 343, 29918, 14968, 353, 19012, 29918, 842, 29898, 14968, 29892, 4236, 29918, 2848, 29922, 3317, 29918, 2848, 29897, 13, 1678, 7945, 29918, 1272, 353, 323, 6073, 16390, 24541, 29898, 14968, 29918, 2080, 29879, 29892, 7945, 29918, 13168, 29879, 29892, 7945, 29918, 1853, 29918, 4841, 29892, 343, 29918, 14968, 29897, 13, 1678, 7945, 29918, 13445, 20069, 353, 16968, 22966, 20069, 29898, 14968, 29918, 1272, 29897, 13, 1678, 7945, 29918, 29881, 2075, 29877, 1664, 353, 3630, 10036, 29898, 14968, 29918, 1272, 29892, 3514, 20069, 29922, 14968, 29918, 13445, 20069, 29892, 9853, 29918, 2311, 29922, 16175, 29918, 2311, 29897, 13, 13, 1678, 396, 6204, 278, 3630, 10036, 363, 1749, 2906, 731, 29889, 13, 1678, 313, 3359, 29918, 2080, 29879, 29892, 2906, 29918, 13168, 29879, 29892, 2906, 29918, 1853, 29918, 4841, 511, 343, 29918, 3359, 353, 19012, 29918, 842, 29898, 3359, 29892, 4236, 29918, 2848, 29922, 3317, 29918, 2848, 29897, 13, 1678, 2906, 29918, 1272, 353, 323, 6073, 16390, 24541, 29898, 3359, 29918, 2080, 29879, 29892, 2906, 29918, 13168, 29879, 29892, 2906, 29918, 1853, 29918, 4841, 29892, 343, 29918, 3359, 29897, 13, 1678, 2906, 29918, 13445, 20069, 353, 922, 339, 2556, 22966, 20069, 29898, 3359, 29918, 1272, 29897, 13, 1678, 2906, 29918, 29881, 2075, 29877, 1664, 353, 3630, 10036, 29898, 3359, 29918, 1272, 29892, 3514, 20069, 29922, 3359, 29918, 13445, 20069, 29892, 9853, 29918, 2311, 29922, 16175, 29918, 2311, 29897, 13, 13, 1678, 565, 4842, 305, 29889, 29883, 6191, 29889, 10141, 29918, 2798, 580, 1405, 29871, 29896, 322, 4742, 29889, 1853, 1275, 376, 29883, 6191, 1115, 13, 4706, 1904, 353, 302, 29876, 29889, 1469, 2177, 6553, 29898, 4299, 29892, 4742, 29918, 4841, 29922, 10141, 29918, 4841, 29897, 13, 1678, 1904, 29889, 517, 29898, 10141, 29897, 13, 13, 1678, 7442, 29889, 8172, 29889, 26776, 29898, 26776, 29897, 13, 1678, 4842, 305, 29889, 11288, 29918, 26776, 29898, 26776, 29897, 13, 1678, 565, 4742, 29889, 1853, 1275, 376, 29883, 6191, 1115, 13, 4706, 4842, 305, 29889, 29883, 6191, 29889, 11288, 29918, 26776, 29918, 497, 29898, 26776, 29897, 13, 13, 1678, 3001, 29918, 24530, 353, 7431, 29898, 14968, 29918, 29881, 2075, 29877, 1664, 29897, 334, 302, 29918, 1022, 2878, 29879, 13, 1678, 5994, 3950, 353, 11783, 29956, 29898, 4299, 29889, 16744, 3285, 301, 29878, 29922, 29212, 29897, 13, 1678, 1364, 14952, 353, 679, 29918, 10660, 29918, 816, 11272, 29918, 2541, 29918, 29893, 2817, 786, 29898, 20640, 3950, 29892, 29871, 13, 462, 462, 4706, 954, 29918, 29893, 2817, 786, 29918, 24530, 353, 29871, 29900, 29892, 13, 462, 462, 4706, 954, 29918, 26495, 29918, 24530, 353, 3001, 29918, 24530, 29897, 13, 13, 1678, 1904, 29889, 9171, 29918, 5105, 580, 13, 1678, 1900, 29918, 13628, 353, 29871, 29900, 13, 1678, 1900, 29918, 6758, 353, 29871, 29896, 29872, 29953, 13, 1678, 7945, 29918, 6758, 267, 353, 5159, 13, 13, 1678, 363, 21502, 305, 297, 3464, 29898, 29876, 29918, 1022, 2878, 29879, 1125, 13, 13, 4706, 1369, 29918, 2230, 353, 931, 29889, 2230, 580, 13, 4706, 7945, 29918, 6758, 353, 29871, 29900, 29871, 13, 4706, 1904, 29889, 14968, 580, 13, 13, 4706, 363, 9853, 297, 7945, 29918, 29881, 2075, 29877, 1664, 29901, 13, 9651, 289, 29918, 2080, 29918, 4841, 29892, 289, 29918, 2080, 29918, 13168, 29892, 289, 29918, 6979, 29918, 1853, 29918, 4841, 29892, 289, 29918, 21134, 353, 18761, 29898, 29873, 29889, 517, 29898, 10141, 29897, 363, 260, 297, 9853, 29897, 13, 9651, 1962, 353, 1904, 29898, 29890, 29918, 2080, 29918, 4841, 29892, 29871, 13, 462, 9651, 8570, 29918, 13168, 29922, 29890, 29918, 2080, 29918, 13168, 29892, 13, 462, 9651, 5993, 29918, 1853, 29918, 4841, 29922, 29890, 29918, 6979, 29918, 1853, 29918, 4841, 29892, 13, 462, 9651, 11073, 29922, 29890, 29918, 21134, 29897, 13, 13, 13, 9651, 6410, 353, 1962, 29961, 29900, 1822, 2083, 580, 13, 9651, 6410, 29889, 1627, 1328, 580, 13, 9651, 5994, 3950, 29889, 10568, 580, 13, 9651, 7945, 29918, 6758, 4619, 6410, 29889, 667, 580, 13, 9651, 1904, 29889, 9171, 29918, 5105, 580, 13, 13, 4706, 1364, 14952, 29889, 10568, 580, 13, 4706, 560, 28170, 353, 931, 29889, 2230, 580, 448, 1369, 29918, 2230, 13, 4706, 1904, 29889, 14513, 580, 13, 4706, 659, 29918, 11965, 29879, 353, 5159, 13, 4706, 411, 4842, 305, 29889, 1217, 29918, 5105, 7295, 29871, 13, 9651, 659, 29918, 6758, 29892, 9853, 353, 29871, 29900, 29892, 29871, 29896, 13, 9651, 363, 9853, 297, 2906, 29918, 29881, 2075, 29877, 1664, 29901, 13, 18884, 289, 29918, 2080, 29918, 4841, 29892, 289, 29918, 2080, 29918, 13168, 29892, 289, 29918, 6979, 29918, 1853, 29918, 4841, 29892, 289, 29918, 21134, 353, 18761, 29898, 29873, 29889, 517, 29898, 10141, 29897, 363, 260, 297, 9853, 29897, 13, 18884, 1962, 353, 1904, 29898, 29890, 29918, 2080, 29918, 4841, 29892, 29871, 13, 462, 9651, 8570, 29918, 13168, 29922, 29890, 29918, 2080, 29918, 13168, 29892, 13, 462, 9651, 5993, 29918, 1853, 29918, 4841, 29922, 29890, 29918, 6979, 29918, 1853, 29918, 4841, 29892, 13, 462, 9651, 11073, 29922, 29890, 29918, 21134, 29897, 13, 462, 13, 18884, 6410, 353, 1962, 29961, 29900, 1822, 2083, 580, 13, 18884, 659, 29918, 6758, 4619, 6410, 29889, 667, 580, 13, 18884, 1480, 1169, 353, 1962, 29961, 29896, 1822, 4801, 496, 2141, 21970, 2141, 23749, 580, 13, 18884, 659, 29918, 11965, 29879, 4619, 1051, 29898, 9302, 29889, 1191, 3317, 29898, 1188, 1169, 29892, 9685, 29922, 29896, 467, 1579, 8606, 3101, 13, 18884, 1904, 29889, 9171, 29918, 5105, 580, 13, 13, 4706, 659, 29918, 13628, 353, 285, 29896, 29918, 13628, 29898, 29891, 29918, 3359, 29889, 21970, 2141, 23749, 2141, 25027, 391, 3285, 659, 29918, 11965, 29879, 29892, 6588, 543, 25254, 1159, 13, 4706, 396, 2158, 703, 29923, 1129, 305, 1273, 29881, 28186, 6410, 29901, 18695, 29946, 29888, 29889, 15758, 362, 383, 29896, 29899, 20097, 29901, 18695, 29946, 29888, 29871, 15758, 362, 6410, 29901, 18695, 29946, 29888, 29889, 382, 23384, 931, 29901, 18695, 29906, 5847, 1213, 29995, 313, 1022, 2878, 718, 29871, 29896, 29892, 7945, 29918, 6758, 29892, 659, 29918, 13628, 29892, 659, 29918, 6758, 29892, 560, 28170, 876, 13, 13, 4706, 565, 659, 29918, 13628, 1405, 1900, 29918, 13628, 29901, 13, 9651, 4842, 305, 29889, 7620, 29898, 4299, 29889, 3859, 29918, 8977, 3285, 1904, 29918, 2084, 29897, 13, 9651, 396, 2158, 29898, 1990, 2450, 29918, 12276, 29898, 29891, 29918, 3359, 29889, 21970, 2141, 23749, 2141, 25027, 391, 3285, 659, 29918, 11965, 29879, 29892, 13340, 29922, 29946, 876, 13, 9651, 1900, 29918, 13628, 353, 659, 29918, 13628, 13, 13, 1678, 1904, 29889, 1359, 29918, 3859, 29918, 8977, 29898, 7345, 305, 29889, 1359, 29898, 4299, 29918, 2084, 876, 13, 1678, 1904, 29889, 517, 29898, 10141, 29897, 13, 1678, 1904, 29889, 27711, 353, 8500, 17255, 657, 12035, 4299, 29897, 13, 1678, 2897, 29889, 5992, 29898, 4299, 29918, 2084, 29897, 13, 13, 1678, 736, 1904, 13, 13, 13, 13, 2 ]
tests/read_config.py
tyxio/txpy-azurehelper
0
26494
import logging.config import os import yaml __location__ = os.path.realpath( os.path.join(os.getcwd(), os.path.dirname(__file__))) def read_logging_config(): with open(os.path.join(__location__, 'logging.cfg'), 'r') as stream: try: logging_config = yaml.safe_load(stream) logging.config.dictConfig(logging_config) # do not log azure info messages logging.getLogger( 'azure.core.pipeline.policies.http_logging_policy').setLevel(logging.WARNING) return logging except yaml.YAMLError as exc: print(exc) except Exception as ex: print(ex) return None def read_azure_config(): with open(os.path.join(__location__, 'azure.cfg'), 'r') as stream: try: azure_config = yaml.safe_load(stream) return \ azure_config['az_storage_connection_str'],\ azure_config['az_storage_blob_sas_url'],\ azure_config['az_storage_blob_sas_token'] except yaml.YAMLError as exc: print(exc) except Exception as ex: print(ex) return None, None, None
[ 1, 1053, 12183, 29889, 2917, 13, 5215, 2897, 13, 13, 5215, 343, 8807, 13, 13, 1649, 5479, 1649, 353, 2897, 29889, 2084, 29889, 6370, 2084, 29898, 13, 1678, 2897, 29889, 2084, 29889, 7122, 29898, 359, 29889, 657, 29883, 9970, 3285, 2897, 29889, 2084, 29889, 25721, 22168, 1445, 1649, 4961, 13, 13, 13, 1753, 1303, 29918, 21027, 29918, 2917, 7295, 13, 1678, 411, 1722, 29898, 359, 29889, 2084, 29889, 7122, 22168, 5479, 1649, 29892, 525, 21027, 29889, 16859, 5477, 525, 29878, 1495, 408, 4840, 29901, 13, 4706, 1018, 29901, 13, 9651, 12183, 29918, 2917, 353, 343, 8807, 29889, 11177, 29918, 1359, 29898, 5461, 29897, 13, 9651, 12183, 29889, 2917, 29889, 8977, 3991, 29898, 21027, 29918, 2917, 29897, 13, 9651, 396, 437, 451, 1480, 15699, 5235, 7191, 13, 9651, 12183, 29889, 657, 16363, 29898, 13, 18884, 525, 17688, 29889, 3221, 29889, 13096, 5570, 29889, 3733, 293, 583, 29889, 1124, 29918, 21027, 29918, 22197, 2824, 842, 10108, 29898, 21027, 29889, 29956, 25614, 29897, 13, 9651, 736, 12183, 13, 4706, 5174, 343, 8807, 29889, 29979, 5194, 1307, 24616, 408, 5566, 29901, 13, 9651, 1596, 29898, 735, 29883, 29897, 13, 4706, 5174, 8960, 408, 429, 29901, 13, 9651, 1596, 29898, 735, 29897, 13, 4706, 736, 6213, 13, 13, 13, 1753, 1303, 29918, 17688, 29918, 2917, 7295, 13, 1678, 411, 1722, 29898, 359, 29889, 2084, 29889, 7122, 22168, 5479, 1649, 29892, 525, 17688, 29889, 16859, 5477, 525, 29878, 1495, 408, 4840, 29901, 13, 4706, 1018, 29901, 13, 9651, 15699, 29918, 2917, 353, 343, 8807, 29889, 11177, 29918, 1359, 29898, 5461, 29897, 13, 9651, 736, 320, 13, 18884, 15699, 29918, 2917, 1839, 834, 29918, 12925, 29918, 9965, 29918, 710, 7464, 29905, 13, 18884, 15699, 29918, 2917, 1839, 834, 29918, 12925, 29918, 10054, 29918, 29879, 294, 29918, 2271, 7464, 29905, 13, 18884, 15699, 29918, 2917, 1839, 834, 29918, 12925, 29918, 10054, 29918, 29879, 294, 29918, 6979, 2033, 13, 4706, 5174, 343, 8807, 29889, 29979, 5194, 1307, 24616, 408, 5566, 29901, 13, 9651, 1596, 29898, 735, 29883, 29897, 13, 4706, 5174, 8960, 408, 429, 29901, 13, 9651, 1596, 29898, 735, 29897, 13, 4706, 736, 6213, 29892, 6213, 29892, 6213, 13, 2 ]
application.py
meverg/goal_model_generator
1
173126
<filename>application.py<gh_stars>1-10 from flask import Flask, request, render_template import US2SMT import Parser import en_core_web_md nlp = en_core_web_md.load() print('model loaded') app = Flask(__name__) @app.after_request def set_response_headers(response): response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate' response.headers['Pragma'] = 'no-cache' response.headers['Expires'] = '0' return response @app.route('/', methods=['GET']) def index(): return render_template('index.html') @app.route('/solve_us', methods=['POST']) def solve_us(): converter = US2SMT.US2SMT(request.files['us_file'], Parser.Parser(nlp, model_selection=request.form.get('model_selection'), vectorizer_selection=request.form.get('vectorizer_selection')), request.form.get('opt'), request.form.get('opt2'), request.form.get('max')) converter = converter.add_us() converter = converter.weight() smt, dot, dictn = converter.get_smt_input() oms_out = US2SMT.get_oms_out() for line in oms_out.splitlines(): if line.strip(): line = line.replace("(", " ") line = line.lstrip() word = line.split() if word[0] in dictn: if word[1] == "true)": dot.node(word[0], color="limegreen", fillcolor="palegreen1", style='filled') else: dot.node(word[0], color="red3", fillcolor="red", style='filled') dot.graph_attr['rankdir'] = 'LR' goal_model_path = dot.render(directory='./static', cleanup=True, format='png') return render_template('result.html', goal_model_path=goal_model_path) if __name__ == '__main__': app.run(debug=True)
[ 1, 529, 9507, 29958, 6214, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 29784, 1053, 2379, 1278, 29892, 2009, 29892, 4050, 29918, 6886, 13, 5215, 3148, 29906, 29903, 11490, 13, 5215, 1459, 643, 13, 5215, 427, 29918, 3221, 29918, 2676, 29918, 3487, 13, 13, 12938, 29886, 353, 427, 29918, 3221, 29918, 2676, 29918, 3487, 29889, 1359, 580, 13, 2158, 877, 4299, 7500, 1495, 13, 932, 353, 2379, 1278, 22168, 978, 1649, 29897, 13, 13, 13, 29992, 932, 29889, 7045, 29918, 3827, 13, 1753, 731, 29918, 5327, 29918, 13662, 29898, 5327, 1125, 13, 29871, 2933, 29889, 13662, 1839, 10408, 29899, 4809, 2033, 353, 525, 1217, 29899, 8173, 29892, 694, 29899, 8899, 29892, 1818, 29899, 276, 15480, 29915, 13, 29871, 2933, 29889, 13662, 1839, 29925, 23929, 2033, 353, 525, 1217, 29899, 8173, 29915, 13, 29871, 2933, 29889, 13662, 1839, 9544, 2658, 2033, 353, 525, 29900, 29915, 13, 29871, 736, 2933, 13, 13, 13, 29992, 932, 29889, 13134, 11219, 742, 3519, 29922, 1839, 7194, 11287, 13, 1753, 2380, 7295, 13, 29871, 736, 4050, 29918, 6886, 877, 2248, 29889, 1420, 1495, 13, 13, 13, 29992, 932, 29889, 13134, 11219, 2929, 345, 29918, 375, 742, 3519, 29922, 1839, 5438, 11287, 13, 1753, 4505, 29918, 375, 7295, 13, 29871, 29105, 353, 3148, 29906, 29903, 11490, 29889, 3308, 29906, 29903, 11490, 29898, 3827, 29889, 5325, 1839, 375, 29918, 1445, 7464, 13, 462, 9651, 1459, 643, 29889, 11726, 29898, 12938, 29886, 29892, 13, 462, 462, 3986, 1904, 29918, 21731, 29922, 3827, 29889, 689, 29889, 657, 877, 4299, 29918, 21731, 5477, 13, 462, 462, 3986, 4608, 3950, 29918, 21731, 29922, 3827, 29889, 689, 29889, 657, 877, 8111, 3950, 29918, 21731, 1495, 511, 13, 462, 9651, 2009, 29889, 689, 29889, 657, 877, 3670, 5477, 2009, 29889, 689, 29889, 657, 877, 3670, 29906, 5477, 2009, 29889, 689, 29889, 657, 877, 3317, 8785, 13, 29871, 29105, 353, 29105, 29889, 1202, 29918, 375, 580, 13, 29871, 29105, 353, 29105, 29889, 7915, 580, 13, 29871, 1560, 29873, 29892, 8329, 29892, 9657, 29876, 353, 29105, 29889, 657, 29918, 3844, 29873, 29918, 2080, 580, 13, 29871, 288, 1516, 29918, 449, 353, 3148, 29906, 29903, 11490, 29889, 657, 29918, 4835, 29918, 449, 580, 13, 13, 29871, 363, 1196, 297, 288, 1516, 29918, 449, 29889, 5451, 9012, 7295, 13, 1678, 565, 1196, 29889, 17010, 7295, 13, 418, 1196, 353, 1196, 29889, 6506, 703, 28165, 376, 16521, 13, 418, 1196, 353, 1196, 29889, 29880, 17010, 580, 13, 418, 1734, 353, 1196, 29889, 5451, 580, 13, 418, 565, 1734, 29961, 29900, 29962, 297, 9657, 29876, 29901, 13, 4706, 565, 1734, 29961, 29896, 29962, 1275, 376, 3009, 29897, 1115, 13, 3986, 8329, 29889, 3177, 29898, 1742, 29961, 29900, 1402, 2927, 543, 2576, 387, 2733, 613, 5445, 2780, 543, 29886, 744, 12692, 29896, 613, 3114, 2433, 26940, 1495, 13, 4706, 1683, 29901, 13, 3986, 8329, 29889, 3177, 29898, 1742, 29961, 29900, 1402, 2927, 543, 1127, 29941, 613, 5445, 2780, 543, 1127, 613, 3114, 2433, 26940, 1495, 13, 13, 29871, 8329, 29889, 4262, 29918, 5552, 1839, 10003, 3972, 2033, 353, 525, 29519, 29915, 13, 29871, 7306, 29918, 4299, 29918, 2084, 353, 8329, 29889, 9482, 29898, 12322, 2433, 6904, 7959, 742, 5941, 786, 29922, 5574, 29892, 3402, 2433, 2732, 1495, 13, 29871, 736, 4050, 29918, 6886, 877, 2914, 29889, 1420, 742, 7306, 29918, 4299, 29918, 2084, 29922, 28111, 29918, 4299, 29918, 2084, 29897, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 29871, 623, 29889, 3389, 29898, 8382, 29922, 5574, 29897, 13, 2 ]
preql/__main__.py
erezsh/Preql
522
81734
<reponame>erezsh/Preql import json import argparse from pathlib import Path from itertools import chain import time from . import Preql, __version__, Signal from . import settings parser = argparse.ArgumentParser(description='Preql command-line interface (aka REPL)') parser.add_argument('-i', '--interactive', action='store_true', default=False, help="enter interactive mode after running the script") parser.add_argument('-v', '--version', action='store_true', help="print version") parser.add_argument('--install-jupyter', action='store_true', help="installs the Preql plugin for Jupyter notebook") parser.add_argument('--print-sql', action='store_true', help="print the SQL code that's being executed") parser.add_argument('-f', '--file', type=str, help='path to a Preql script to run') parser.add_argument('-m', '--module', type=str, help='name of a Preql module to run') parser.add_argument('--time', action='store_true', help='displays how long the script ran') parser.add_argument('-c', '--config', type=str, help='path to a JSON configuration file for Preql (default: ~/.preql_conf.json)') parser.add_argument('database', type=str, nargs='?', default=None, help="database url (postgres://user:password@host:port/db_name") parser.add_argument('--python-traceback', action='store_true', help="Show the Python traceback when an exception causes the interpreter to quit") def find_dot_preql(): cwd = Path.cwd() for p in chain([cwd], cwd.parents): dot_preql = p / ".preql" if dot_preql.exists(): return dot_preql def update_settings(path): config = json.load(path.open()) if 'debug' in config: settings.debug = config['debug'] if 'color_scheme' in config: settings.color_theme.update(config['color_scheme']) def main(): args = parser.parse_args() if args.version: print(__version__) if args.install_jupyter: from .jup_kernel.install import main as install_jupyter install_jupyter([]) print("Install successful. To start working, run 'jupyter notebook' and create a new Preql notebook.") return from pathlib import Path if args.config: update_settings(Path(args.config)) else: config_path = Path.home() / '.preql_conf.json' if config_path.exists(): update_settings(config_path) kw = {'print_sql': args.print_sql} if args.database: kw['db_uri'] = args.database kw['auto_create'] = True p = Preql(**kw) interactive = args.interactive error_code = 0 start = time.time() try: if args.file: p.load(args.file) elif args.module: p('import ' + args.module) elif args.version or args.install_jupyter: pass else: dot_preql = find_dot_preql() if dot_preql: print("Auto-running", dot_preql) p._run_code(dot_preql.read_text(), dot_preql) interactive = True except Signal as e: p._display.print_exception(e) error_code = -1 if args.python_traceback: raise except KeyboardInterrupt: print("Interrupted (Ctrl+C)") end = time.time() if args.time: print('Script took %.2f seconds to run' % (end -start)) if interactive: p.load_all_tables() p.start_repl() else: return error_code if __name__ == '__main__': main()
[ 1, 529, 276, 1112, 420, 29958, 406, 29920, 845, 29914, 6572, 1519, 13, 5215, 4390, 13, 5215, 1852, 5510, 13, 3166, 2224, 1982, 1053, 10802, 13, 3166, 4256, 8504, 1053, 9704, 13, 5215, 931, 13, 13, 3166, 869, 1053, 4721, 1519, 29892, 4770, 3259, 1649, 29892, 9954, 284, 13, 3166, 869, 1053, 6055, 13, 13, 16680, 353, 1852, 5510, 29889, 15730, 11726, 29898, 8216, 2433, 6572, 1519, 1899, 29899, 1220, 5067, 313, 8245, 5195, 7390, 29897, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 29899, 29875, 742, 525, 489, 1639, 4925, 742, 3158, 2433, 8899, 29918, 3009, 742, 2322, 29922, 8824, 29892, 13, 462, 1678, 1371, 543, 5893, 28923, 4464, 1156, 2734, 278, 2471, 1159, 13, 16680, 29889, 1202, 29918, 23516, 877, 29899, 29894, 742, 525, 489, 3259, 742, 3158, 2433, 8899, 29918, 3009, 742, 1371, 543, 2158, 1873, 1159, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 6252, 29899, 29926, 786, 25547, 742, 3158, 2433, 8899, 29918, 3009, 742, 1371, 543, 2611, 4293, 278, 4721, 1519, 7079, 363, 27441, 25547, 451, 19273, 1159, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 2158, 29899, 2850, 742, 3158, 2433, 8899, 29918, 3009, 742, 1371, 543, 2158, 278, 3758, 775, 393, 29915, 29879, 1641, 8283, 1159, 13, 16680, 29889, 1202, 29918, 23516, 877, 29899, 29888, 742, 525, 489, 1445, 742, 1134, 29922, 710, 29892, 1371, 2433, 2084, 304, 263, 4721, 1519, 2471, 304, 1065, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 29899, 29885, 742, 525, 489, 5453, 742, 1134, 29922, 710, 29892, 1371, 2433, 978, 310, 263, 4721, 1519, 3883, 304, 1065, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 2230, 742, 3158, 2433, 8899, 29918, 3009, 742, 1371, 2433, 2218, 12922, 920, 1472, 278, 2471, 6350, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 29899, 29883, 742, 525, 489, 2917, 742, 1134, 29922, 710, 29892, 1371, 2433, 2084, 304, 263, 4663, 5285, 934, 363, 4721, 1519, 313, 4381, 29901, 3695, 6294, 1457, 1519, 29918, 5527, 29889, 3126, 29897, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 9803, 742, 1134, 29922, 710, 29892, 302, 5085, 2433, 29973, 742, 2322, 29922, 8516, 29892, 13, 462, 1678, 1371, 543, 9803, 3142, 313, 2490, 7201, 597, 1792, 29901, 5630, 29992, 3069, 29901, 637, 29914, 2585, 29918, 978, 1159, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 4691, 29899, 15003, 1627, 742, 3158, 2433, 8899, 29918, 3009, 742, 13, 462, 1678, 1371, 543, 8964, 278, 5132, 9637, 1627, 746, 385, 3682, 9946, 278, 26997, 304, 23283, 1159, 13, 13, 13, 1753, 1284, 29918, 6333, 29918, 1457, 1519, 7295, 13, 1678, 274, 9970, 353, 10802, 29889, 29883, 9970, 580, 13, 1678, 363, 282, 297, 9704, 4197, 29883, 9970, 1402, 274, 9970, 29889, 862, 1237, 1125, 13, 4706, 8329, 29918, 1457, 1519, 353, 282, 847, 11393, 1457, 1519, 29908, 13, 4706, 565, 8329, 29918, 1457, 1519, 29889, 9933, 7295, 13, 9651, 736, 8329, 29918, 1457, 1519, 13, 13, 1753, 2767, 29918, 11027, 29898, 2084, 1125, 13, 1678, 2295, 353, 4390, 29889, 1359, 29898, 2084, 29889, 3150, 3101, 13, 1678, 565, 525, 8382, 29915, 297, 2295, 29901, 13, 4706, 6055, 29889, 8382, 353, 2295, 1839, 8382, 2033, 13, 1678, 565, 525, 2780, 29918, 816, 2004, 29915, 297, 2295, 29901, 13, 4706, 6055, 29889, 2780, 29918, 18193, 29889, 5504, 29898, 2917, 1839, 2780, 29918, 816, 2004, 11287, 13, 13, 1753, 1667, 7295, 13, 1678, 6389, 353, 13812, 29889, 5510, 29918, 5085, 580, 13, 13, 1678, 565, 6389, 29889, 3259, 29901, 13, 4706, 1596, 22168, 3259, 1649, 29897, 13, 13, 1678, 565, 6389, 29889, 6252, 29918, 29926, 786, 25547, 29901, 13, 4706, 515, 869, 29926, 786, 29918, 17460, 29889, 6252, 1053, 1667, 408, 2601, 29918, 29926, 786, 25547, 13, 4706, 2601, 29918, 29926, 786, 25547, 4197, 2314, 13, 4706, 1596, 703, 23271, 9150, 29889, 1763, 1369, 1985, 29892, 1065, 525, 29926, 786, 25547, 451, 19273, 29915, 322, 1653, 263, 716, 4721, 1519, 451, 19273, 23157, 13, 4706, 736, 13, 13, 1678, 515, 2224, 1982, 1053, 10802, 13, 1678, 565, 6389, 29889, 2917, 29901, 13, 4706, 2767, 29918, 11027, 29898, 2605, 29898, 5085, 29889, 2917, 876, 13, 1678, 1683, 29901, 13, 4706, 2295, 29918, 2084, 353, 10802, 29889, 5184, 580, 847, 15300, 1457, 1519, 29918, 5527, 29889, 3126, 29915, 13, 4706, 565, 2295, 29918, 2084, 29889, 9933, 7295, 13, 9651, 2767, 29918, 11027, 29898, 2917, 29918, 2084, 29897, 13, 13, 13, 13, 1678, 9049, 353, 11117, 2158, 29918, 2850, 2396, 6389, 29889, 2158, 29918, 2850, 29913, 13, 1678, 565, 6389, 29889, 9803, 29901, 13, 4706, 9049, 1839, 2585, 29918, 5338, 2033, 353, 6389, 29889, 9803, 13, 4706, 9049, 1839, 6921, 29918, 3258, 2033, 353, 5852, 13, 1678, 282, 353, 4721, 1519, 29898, 1068, 11022, 29897, 13, 13, 1678, 28923, 353, 6389, 29889, 1639, 4925, 13, 13, 1678, 1059, 29918, 401, 353, 29871, 29900, 13, 1678, 1369, 353, 931, 29889, 2230, 580, 13, 1678, 1018, 29901, 13, 4706, 565, 6389, 29889, 1445, 29901, 13, 9651, 282, 29889, 1359, 29898, 5085, 29889, 1445, 29897, 13, 4706, 25342, 6389, 29889, 5453, 29901, 13, 9651, 282, 877, 5215, 525, 718, 6389, 29889, 5453, 29897, 13, 4706, 25342, 6389, 29889, 3259, 470, 6389, 29889, 6252, 29918, 29926, 786, 25547, 29901, 13, 9651, 1209, 13, 4706, 1683, 29901, 13, 9651, 8329, 29918, 1457, 1519, 353, 1284, 29918, 6333, 29918, 1457, 1519, 580, 13, 9651, 565, 8329, 29918, 1457, 1519, 29901, 13, 18884, 1596, 703, 12300, 29899, 21094, 613, 8329, 29918, 1457, 1519, 29897, 13, 18884, 282, 3032, 3389, 29918, 401, 29898, 6333, 29918, 1457, 1519, 29889, 949, 29918, 726, 3285, 8329, 29918, 1457, 1519, 29897, 13, 13, 9651, 28923, 353, 5852, 13, 1678, 5174, 9954, 284, 408, 321, 29901, 13, 4706, 282, 3032, 4990, 29889, 2158, 29918, 11739, 29898, 29872, 29897, 13, 4706, 1059, 29918, 401, 353, 448, 29896, 13, 4706, 565, 6389, 29889, 4691, 29918, 15003, 1627, 29901, 13, 9651, 12020, 13, 1678, 5174, 7670, 3377, 4074, 6685, 29901, 13, 4706, 1596, 703, 4074, 14214, 313, 18069, 29974, 29907, 25760, 13, 13, 1678, 1095, 353, 931, 29889, 2230, 580, 13, 1678, 565, 6389, 29889, 2230, 29901, 13, 4706, 1596, 877, 4081, 3614, 18695, 29906, 29888, 6923, 304, 1065, 29915, 1273, 313, 355, 448, 2962, 876, 13, 13, 1678, 565, 28923, 29901, 13, 4706, 282, 29889, 1359, 29918, 497, 29918, 24051, 580, 13, 4706, 282, 29889, 2962, 29918, 276, 572, 580, 13, 1678, 1683, 29901, 13, 4706, 736, 1059, 29918, 401, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1667, 580, 2 ]
utils/visualizer.py
darsh169/Representation-Learning-for-Information-Extraction
53
62686
<reponame>darsh169/Representation-Learning-for-Information-Extraction import json import cv2 def tesseract_ocr(image_path, ocr_path): image = cv2.imread(image_path.as_posix()) with open(ocr_path, 'r') as f: ocr_data = json.load(f) empty_index = [i for i, ele in enumerate(ocr_data['text']) if ele == ""] for key in ocr_data.keys(): ocr_data[key] = [j for i, j in enumerate(ocr_data[key]) if i not in empty_index] for txt, x, y, w, h in zip(ocr_data['text'], ocr_data['left'], ocr_data['top'], ocr_data['width'], ocr_data['height']): x2 = x + w y2 = y + h cv2.rectangle(image, (x, y), (x2, y2), (0, 255, 0), 1) cv2.putText(image, txt, (x,y), cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 0, 255), 1, cv2.LINE_AA) return image
[ 1, 529, 276, 1112, 420, 29958, 16702, 845, 29896, 29953, 29929, 29914, 1123, 26081, 29899, 29931, 799, 1076, 29899, 1454, 29899, 20350, 29899, 5647, 13857, 13, 5215, 4390, 13, 5215, 13850, 29906, 13, 13, 1753, 260, 16136, 627, 29918, 8415, 29898, 3027, 29918, 2084, 29892, 288, 7283, 29918, 2084, 1125, 13, 13, 1678, 1967, 353, 13850, 29906, 29889, 326, 949, 29898, 3027, 29918, 2084, 29889, 294, 29918, 1066, 861, 3101, 13, 13, 1678, 411, 1722, 29898, 8415, 29918, 2084, 29892, 525, 29878, 1495, 408, 285, 29901, 13, 4706, 288, 7283, 29918, 1272, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 13, 1678, 4069, 29918, 2248, 353, 518, 29875, 363, 474, 29892, 4552, 297, 26985, 29898, 8415, 29918, 1272, 1839, 726, 11287, 565, 4552, 1275, 376, 3108, 13, 1678, 363, 1820, 297, 288, 7283, 29918, 1272, 29889, 8149, 7295, 13, 4706, 288, 7283, 29918, 1272, 29961, 1989, 29962, 353, 518, 29926, 363, 474, 29892, 432, 297, 26985, 29898, 8415, 29918, 1272, 29961, 1989, 2314, 565, 474, 451, 297, 4069, 29918, 2248, 29962, 13, 13, 1678, 363, 13872, 29892, 921, 29892, 343, 29892, 281, 29892, 298, 297, 14319, 29898, 8415, 29918, 1272, 1839, 726, 7464, 288, 7283, 29918, 1272, 1839, 1563, 7464, 288, 7283, 29918, 1272, 1839, 3332, 7464, 288, 7283, 29918, 1272, 1839, 2103, 7464, 288, 7283, 29918, 1272, 1839, 3545, 2033, 1125, 13, 4706, 921, 29906, 353, 921, 718, 281, 13, 4706, 343, 29906, 353, 343, 718, 298, 13, 4706, 13850, 29906, 29889, 1621, 2521, 29898, 3027, 29892, 313, 29916, 29892, 343, 511, 313, 29916, 29906, 29892, 343, 29906, 511, 313, 29900, 29892, 29871, 29906, 29945, 29945, 29892, 29871, 29900, 511, 29871, 29896, 29897, 13, 4706, 13850, 29906, 29889, 649, 1626, 29898, 3027, 29892, 13872, 29892, 313, 29916, 29892, 29891, 511, 13, 462, 1678, 13850, 29906, 29889, 29943, 1164, 29911, 29918, 4448, 7068, 13282, 29918, 5425, 3580, 1307, 29990, 29892, 29871, 29896, 29892, 313, 29900, 29892, 29871, 29900, 29892, 29871, 29906, 29945, 29945, 511, 29871, 29896, 29892, 13850, 29906, 29889, 18521, 29918, 6344, 29897, 13, 13, 1678, 736, 1967, 13, 13, 2 ]
train/ip.py
VCG/gp
0
19753
<reponame>VCG/gp<gh_stars>0 import cPickle as pickle import os; import sys; sys.path.append('..') import gp import gp.nets as nets PATCH_PATH = ('iplb') X_train, y_train, X_test, y_test = gp.Patch.load_rgb(PATCH_PATH) X_train = X_train[:,:-1,:,:] X_test = X_test[:,:-1,:,:] cnn = nets.RGNetPlus() cnn = cnn.fit(X_train, y_train) test_accuracy = cnn.score(X_test, y_test) print test_accuracy # store CNN sys.setrecursionlimit(1000000000) with open(os.path.expanduser('~/Projects/gp/nets/IP_FULL.p'), 'wb') as f: pickle.dump(cnn, f, -1)
[ 1, 529, 276, 1112, 420, 29958, 8257, 29954, 29914, 29887, 29886, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 274, 29925, 860, 280, 408, 5839, 280, 13, 5215, 2897, 29936, 1053, 10876, 29936, 10876, 29889, 2084, 29889, 4397, 877, 636, 1495, 13, 5215, 330, 29886, 13, 5215, 330, 29886, 29889, 1212, 29879, 408, 302, 1691, 13, 13, 29925, 14789, 29918, 10145, 353, 6702, 29875, 572, 29890, 1495, 13, 13, 29990, 29918, 14968, 29892, 343, 29918, 14968, 29892, 1060, 29918, 1688, 29892, 343, 29918, 1688, 353, 330, 29886, 29889, 29925, 905, 29889, 1359, 29918, 23973, 29898, 29925, 14789, 29918, 10145, 29897, 13, 29990, 29918, 14968, 353, 1060, 29918, 14968, 7503, 29892, 13018, 29896, 29892, 29901, 29892, 17531, 13, 29990, 29918, 1688, 353, 1060, 29918, 1688, 7503, 29892, 13018, 29896, 29892, 29901, 29892, 17531, 13, 13, 29883, 15755, 353, 302, 1691, 29889, 29934, 29954, 6779, 29575, 580, 13, 13, 29883, 15755, 353, 274, 15755, 29889, 9202, 29898, 29990, 29918, 14968, 29892, 343, 29918, 14968, 29897, 13, 13, 1688, 29918, 562, 2764, 4135, 353, 274, 15755, 29889, 13628, 29898, 29990, 29918, 1688, 29892, 343, 29918, 1688, 29897, 13, 13, 2158, 1243, 29918, 562, 2764, 4135, 13, 13, 29937, 3787, 29696, 13, 9675, 29889, 842, 3757, 1295, 291, 13400, 29898, 29896, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29897, 13, 2541, 1722, 29898, 359, 29889, 2084, 29889, 18837, 1792, 877, 20038, 25119, 29914, 29887, 29886, 29914, 1212, 29879, 29914, 5690, 29918, 29943, 3299, 29889, 29886, 5477, 525, 29893, 29890, 1495, 408, 285, 29901, 13, 29871, 5839, 280, 29889, 15070, 29898, 29883, 15755, 29892, 285, 29892, 448, 29896, 29897, 13, 2 ]
src/simple_email/consts.py
deeso/simple-email
0
177708
<gh_stars>0 SMTP_SERVICE_BLOCK = 'smtp-service' SMTP_HOST = 'smtp_host' SMTP_PORT = 'smtp_port' SMTP_USERNAME = 'smtp_username' SMTP_PASSWORD = '<PASSWORD>' SMTP_USE_TLS = 'smtp_use_tls' SMTP_LEVEL = 'smtp_level' SMTP_DEFAULT_VALUES = { SMTP_HOST: '127.0.0.1', SMTP_PORT: '25', SMTP_USERNAME: None, SMTP_PASSWORD: None, SMTP_USE_TLS: True, SMTP_LEVEL: 0, } SMTP_CONFIG = [ SMTP_HOST, SMTP_PORT, SMTP_USERNAME, SMTP_PASSWORD, SMTP_USE_TLS, SMTP_LEVEL, ] FILENAME = 'filename' BUFFERED_CONTENT = 'buffered_content'
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 17061, 3557, 29918, 6304, 19059, 29918, 29933, 21339, 353, 525, 3844, 9392, 29899, 5509, 29915, 13, 17061, 3557, 29918, 20832, 353, 525, 3844, 9392, 29918, 3069, 29915, 13, 17061, 3557, 29918, 15082, 353, 525, 3844, 9392, 29918, 637, 29915, 13, 17061, 3557, 29918, 11889, 5813, 353, 525, 3844, 9392, 29918, 6786, 29915, 13, 17061, 3557, 29918, 25711, 17013, 353, 12801, 25711, 17013, 16299, 13, 17061, 3557, 29918, 17171, 29918, 29911, 8547, 353, 525, 3844, 9392, 29918, 1509, 29918, 29873, 3137, 29915, 13, 17061, 3557, 29918, 1307, 29963, 6670, 353, 525, 3844, 9392, 29918, 5563, 29915, 13, 13, 17061, 3557, 29918, 23397, 29918, 8932, 12996, 353, 426, 13, 1678, 13766, 3557, 29918, 20832, 29901, 525, 29896, 29906, 29955, 29889, 29900, 29889, 29900, 29889, 29896, 742, 13, 1678, 13766, 3557, 29918, 15082, 29901, 525, 29906, 29945, 742, 13, 1678, 13766, 3557, 29918, 11889, 5813, 29901, 6213, 29892, 13, 1678, 13766, 3557, 29918, 25711, 17013, 29901, 6213, 29892, 13, 1678, 13766, 3557, 29918, 17171, 29918, 29911, 8547, 29901, 5852, 29892, 13, 1678, 13766, 3557, 29918, 1307, 29963, 6670, 29901, 29871, 29900, 29892, 13, 29913, 13, 13, 17061, 3557, 29918, 25903, 353, 518, 13, 1678, 13766, 3557, 29918, 20832, 29892, 13, 1678, 13766, 3557, 29918, 15082, 29892, 13, 1678, 13766, 3557, 29918, 11889, 5813, 29892, 13, 1678, 13766, 3557, 29918, 25711, 17013, 29892, 13, 1678, 13766, 3557, 29918, 17171, 29918, 29911, 8547, 29892, 13, 1678, 13766, 3557, 29918, 1307, 29963, 6670, 29892, 13, 29962, 13, 13, 7724, 5813, 353, 525, 9507, 29915, 13, 7838, 28483, 3352, 29918, 22412, 3919, 353, 525, 9040, 287, 29918, 3051, 29915, 13, 2 ]
Python_LEVEL_TWO/Part6_regular_expressions.py
chernyshov-dev/WebDev
4
150961
import re patterns = ["term1", "term2"] text = "This is a string with term1, not the other" split_term = "@" email = "<EMAIL>" # for pattern in patterns: # print("I'm searching for: " + pattern) # # if re.search(pattern, text): # print("MATCH!") # else: # print("NO MATCH!") print(re.split(split_term, email)) # email.split("@") # print(match.start()) print(re.findall("match", "test phrase match in match middle")) def multi_re_find(patterns, phrase): for pat in patterns: print("Searching for pattern {}".format(pat)) print(re.findall(pat, phrase)) print("\n") # test_phrase = "sdsd..sssddd..sdddsddd...dsds...dssssss...sddddd" # test_patterns = ["s[sd]+"] # test_phrase = "This is a string! But it has punctuation. How can we remove it?" # test_patterns = ["[^!.?]+"] # test_patterns = ["[A-Z]+"] test_phrase = "This is a string with numbers 12312 and a symbol #hashtag" # d - digits # D - non-digits # s - whitespace # S - non-whitespace # w - alphanumeric characters # W - non-alphanumeric characters test_patterns = [r"\W+"] multi_re_find(test_patterns, test_phrase)
[ 1, 1053, 337, 13, 13, 11037, 29879, 353, 6796, 8489, 29896, 613, 376, 8489, 29906, 3108, 13, 13, 726, 353, 376, 4013, 338, 263, 1347, 411, 1840, 29896, 29892, 451, 278, 916, 29908, 13, 5451, 29918, 8489, 353, 376, 5507, 13, 5269, 353, 9872, 26862, 6227, 11903, 13, 13, 29937, 363, 4766, 297, 15038, 29901, 13, 29937, 268, 1596, 703, 29902, 29915, 29885, 11975, 363, 29901, 376, 718, 4766, 29897, 13, 29937, 13, 29937, 268, 565, 337, 29889, 4478, 29898, 11037, 29892, 1426, 1125, 13, 29937, 308, 1596, 703, 29924, 14789, 29991, 1159, 13, 29937, 268, 1683, 29901, 13, 29937, 308, 1596, 703, 6632, 341, 14789, 29991, 1159, 13, 13, 2158, 29898, 276, 29889, 5451, 29898, 5451, 29918, 8489, 29892, 4876, 876, 29871, 396, 4876, 29889, 5451, 29475, 1159, 13, 29937, 1596, 29898, 4352, 29889, 2962, 3101, 13, 13, 2158, 29898, 276, 29889, 2886, 497, 703, 4352, 613, 376, 1688, 16549, 1993, 297, 1993, 7256, 5783, 13, 13, 13, 1753, 2473, 29918, 276, 29918, 2886, 29898, 11037, 29879, 29892, 16549, 1125, 13, 1678, 363, 2373, 297, 15038, 29901, 13, 4706, 1596, 703, 7974, 292, 363, 4766, 6571, 1642, 4830, 29898, 5031, 876, 13, 4706, 1596, 29898, 276, 29889, 2886, 497, 29898, 5031, 29892, 16549, 876, 13, 4706, 1596, 14182, 29876, 1159, 13, 13, 13, 29937, 1243, 29918, 24588, 559, 353, 376, 4928, 4928, 636, 893, 29879, 1289, 29881, 636, 29879, 1289, 6289, 1289, 29881, 856, 29881, 4928, 29879, 856, 29881, 893, 893, 893, 856, 29879, 1289, 1289, 29881, 29908, 13, 29937, 1243, 29918, 11037, 29879, 353, 6796, 29879, 29961, 4928, 10062, 3108, 13, 13, 29937, 1243, 29918, 24588, 559, 353, 376, 4013, 338, 263, 1347, 29991, 1205, 372, 756, 6035, 22999, 362, 29889, 1128, 508, 591, 3349, 372, 3026, 13, 29937, 1243, 29918, 11037, 29879, 353, 6796, 22896, 21520, 29973, 10062, 3108, 13, 29937, 1243, 29918, 11037, 29879, 353, 6796, 29961, 29909, 29899, 29999, 10062, 3108, 13, 13, 1688, 29918, 24588, 559, 353, 376, 4013, 338, 263, 1347, 411, 3694, 29871, 29896, 29906, 29941, 29896, 29906, 322, 263, 5829, 396, 5349, 400, 351, 29908, 13, 29937, 270, 448, 13340, 13, 29937, 360, 448, 1661, 29899, 7501, 1169, 13, 29937, 269, 448, 24358, 13, 29937, 317, 448, 1661, 29899, 1332, 3246, 3535, 13, 29937, 281, 448, 394, 16711, 25099, 4890, 13, 29937, 399, 448, 1661, 29899, 284, 16711, 25099, 4890, 13, 1688, 29918, 11037, 29879, 353, 518, 29878, 26732, 29956, 29974, 3108, 13, 13, 9910, 29918, 276, 29918, 2886, 29898, 1688, 29918, 11037, 29879, 29892, 1243, 29918, 24588, 559, 29897, 13, 2 ]
MLplatform/core/migrations/0004_auto_20210410_1339.py
mihai011/Docker-Django-Posgres-Celery-Rabbitmq
0
1615688
# Generated by Django 3.1 on 2021-04-10 13:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0003_auto_20210323_1406'), ] operations = [ migrations.RenameField( model_name='email', old_name='message', new_name='template', ), ]
[ 1, 396, 3251, 630, 491, 15337, 29871, 29941, 29889, 29896, 373, 29871, 29906, 29900, 29906, 29896, 29899, 29900, 29946, 29899, 29896, 29900, 29871, 29896, 29941, 29901, 29941, 29929, 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, 3221, 742, 525, 29900, 29900, 29900, 29941, 29918, 6921, 29918, 29906, 29900, 29906, 29896, 29900, 29941, 29906, 29941, 29918, 29896, 29946, 29900, 29953, 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, 5269, 742, 13, 9651, 2030, 29918, 978, 2433, 4906, 742, 13, 9651, 716, 29918, 978, 2433, 6886, 742, 13, 4706, 10353, 13, 1678, 4514, 13, 2 ]
floodgate/server_state_machine/layer2_decoration_event/tell.py
muzudho/e-gov-vote-kifuwarabe-player-client
0
177865
<reponame>muzudho/e-gov-vote-kifuwarabe-player-client<filename>floodgate/server_state_machine/layer2_decoration_event/tell.py from app import app from floodgate.server_state_machine.layer1_transition_map.tell import TellState as _TransitionState def create(): """ステート生成""" return _DecoratedState() class _DecoratedState(_TransitionState): def __init__(self): super().__init__() def on_reject_c(self, req): pass def on_reject_s(self, req): pass def on_agree(self, req): pass def on_start(self, req): pass
[ 1, 529, 276, 1112, 420, 29958, 2589, 29920, 566, 1251, 29914, 29872, 29899, 13513, 29899, 15814, 29899, 29895, 361, 29884, 4495, 4302, 29899, 9106, 29899, 4645, 29966, 9507, 29958, 29888, 417, 397, 17062, 29914, 2974, 29918, 3859, 29918, 23523, 29914, 13148, 29906, 29918, 19557, 362, 29918, 3696, 29914, 29873, 514, 29889, 2272, 13, 3166, 623, 1053, 623, 13, 3166, 5685, 397, 17062, 29889, 2974, 29918, 3859, 29918, 23523, 29889, 13148, 29896, 29918, 20543, 29918, 1958, 29889, 29873, 514, 1053, 24948, 2792, 408, 903, 4300, 654, 2792, 13, 13, 13, 1753, 1653, 7295, 13, 1678, 9995, 30255, 30572, 30185, 30279, 30486, 30494, 15945, 29908, 13, 1678, 736, 903, 6185, 272, 630, 2792, 580, 13, 13, 13, 1990, 903, 6185, 272, 630, 2792, 7373, 4300, 654, 2792, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 13, 1678, 822, 373, 29918, 276, 622, 29918, 29883, 29898, 1311, 29892, 12428, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 373, 29918, 276, 622, 29918, 29879, 29898, 1311, 29892, 12428, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 373, 29918, 351, 929, 29898, 1311, 29892, 12428, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 373, 29918, 2962, 29898, 1311, 29892, 12428, 1125, 13, 4706, 1209, 13, 2 ]
yoti_python_sandbox/doc_scan/task/sandbox_text_extraction_task.py
getyoti/yoti-python-sdk-sandbox
0
96861
import base64 from yoti_python_sdk.utils import YotiSerializable from yoti_python_sandbox.doc_scan.document_filter import ( # noqa: F401 SandboxDocumentFilter, ) from yoti_python_sandbox.doc_scan.task.sandbox_text_extraction_recommendation import ( # noqa: F401 SandboxTextDataExtractionRecommendation, ) class SandboxDocumentIdPhoto(YotiSerializable): def __init__(self, content_type, data): """ :param str content_type: the content type :param bytes data: the image data """ self.__content_type = content_type self.__data = data def to_json(self): return { "content_type": self.__content_type, "data": base64.b64encode(self.__data).decode("utf-8"), } class SandboxDocumentTextDataExtractionTaskResult(YotiSerializable): def __init__( self, document_fields=None, document_id_photo=None, detected_country=None, recommendation=None, ): self.__document_fields = document_fields self.__document_id_photo = document_id_photo self.__detected_country = detected_country self.__recommendation = recommendation @property def document_fields(self): return self.__document_fields @property def document_id_photo(self): return self.__document_id_photo @property def detected_country(self): return self.__detected_country @property def recommendation(self): return self.__recommendation def to_json(self): json = {} if self.document_fields is not None: json["document_fields"] = self.document_fields if self.document_id_photo is not None: json["document_id_photo"] = self.document_id_photo if self.detected_country is not None: json["detected_country"] = self.detected_country if self.recommendation is not None: json["recommendation"] = self.recommendation return json class SandboxDocumentTextDataExtractionTask(YotiSerializable): def __init__(self, result, document_filter): self.__result = result self.__document_filter = document_filter @property def result(self): """ :rtype: SandboxDocumentTextDataExtractionTaskResult """ return self.__result @property def document_filter(self): """ :rtype: SandboxDocumentFilter """ return self.__document_filter def to_json(self): obj = { "result": self.__result, } if self.__document_filter is not None: obj["document_filter"] = self.__document_filter return obj class SandboxDocumentTextDataExtractionTaskBuilder(object): def __init__(self): self.__document_fields = None self.__document_filter = None self.__document_id_photo = None self.__detected_country = None self.__recommendation = None def with_document_field(self, key, value): """ :type key: str :type value: str or dict :rtype: SandboxDocumentTextDataExtractionTaskBuilder """ self.__document_fields = self.__document_fields or {} self.__document_fields[key] = value return self def with_document_fields(self, document_fields): """ :type document_fields: dict :rtype: SandboxDocumentTextDataExtractionTaskBuilder """ self.__document_fields = document_fields return self def with_document_id_photo(self, content_type, data): """ :param str content_type: the content type :param bytes data: the image data """ self.__document_id_photo = SandboxDocumentIdPhoto(content_type, data) return self def with_document_filter(self, document_filter): """ :type document_filter: SandboxDocumentFilter :rtype: SandboxDocumentTextDataExtractionTaskBuilder """ self.__document_filter = document_filter return self def with_detected_country(self, detected_country): """ :param str detected_country: the detected country """ self.__detected_country = detected_country return self def with_recommendation(self, recommendation): """ :type recommendation: SandboxTextDataExtractionRecommendation :rtype: SandboxDocumentTextDataExtractionTaskBuilder """ self.__recommendation = recommendation return self def build(self): result = SandboxDocumentTextDataExtractionTaskResult( self.__document_fields, self.__document_id_photo, self.__detected_country, self.__recommendation, ) return SandboxDocumentTextDataExtractionTask(result, self.__document_filter)
[ 1, 1053, 2967, 29953, 29946, 13, 13, 3166, 343, 15297, 29918, 4691, 29918, 15348, 29889, 13239, 1053, 612, 15297, 9125, 13902, 13, 3166, 343, 15297, 29918, 4691, 29918, 29879, 26738, 29889, 1514, 29918, 16192, 29889, 3225, 29918, 4572, 1053, 313, 29871, 396, 694, 25621, 29901, 383, 29946, 29900, 29896, 13, 1678, 8564, 1884, 6268, 5072, 29892, 13, 29897, 13, 3166, 343, 15297, 29918, 4691, 29918, 29879, 26738, 29889, 1514, 29918, 16192, 29889, 7662, 29889, 29879, 26738, 29918, 726, 29918, 1062, 13857, 29918, 276, 2055, 355, 362, 1053, 313, 29871, 396, 694, 25621, 29901, 383, 29946, 29900, 29896, 13, 1678, 8564, 1884, 1626, 1469, 5647, 13857, 1123, 2055, 355, 362, 29892, 13, 29897, 13, 13, 13, 1990, 8564, 1884, 6268, 1204, 25971, 29898, 29979, 15297, 9125, 13902, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2793, 29918, 1853, 29892, 848, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 851, 2793, 29918, 1853, 29901, 278, 2793, 1134, 13, 4706, 584, 3207, 6262, 848, 29901, 278, 1967, 848, 13, 4706, 9995, 13, 4706, 1583, 17255, 3051, 29918, 1853, 353, 2793, 29918, 1853, 13, 4706, 1583, 17255, 1272, 353, 848, 13, 13, 1678, 822, 304, 29918, 3126, 29898, 1311, 1125, 13, 4706, 736, 426, 13, 9651, 376, 3051, 29918, 1853, 1115, 1583, 17255, 3051, 29918, 1853, 29892, 13, 9651, 376, 1272, 1115, 2967, 29953, 29946, 29889, 29890, 29953, 29946, 12508, 29898, 1311, 17255, 1272, 467, 13808, 703, 9420, 29899, 29947, 4968, 13, 4706, 500, 13, 13, 13, 1990, 8564, 1884, 6268, 1626, 1469, 5647, 13857, 5398, 3591, 29898, 29979, 15297, 9125, 13902, 1125, 13, 1678, 822, 4770, 2344, 12035, 13, 4706, 1583, 29892, 13, 4706, 1842, 29918, 9621, 29922, 8516, 29892, 13, 4706, 1842, 29918, 333, 29918, 21596, 29922, 8516, 29892, 13, 4706, 17809, 29918, 13509, 29922, 8516, 29892, 13, 4706, 29303, 29922, 8516, 29892, 13, 268, 1125, 13, 4706, 1583, 17255, 3225, 29918, 9621, 353, 1842, 29918, 9621, 13, 4706, 1583, 17255, 3225, 29918, 333, 29918, 21596, 353, 1842, 29918, 333, 29918, 21596, 13, 4706, 1583, 17255, 4801, 26458, 29918, 13509, 353, 17809, 29918, 13509, 13, 4706, 1583, 17255, 276, 2055, 355, 362, 353, 29303, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1842, 29918, 9621, 29898, 1311, 1125, 13, 4706, 736, 1583, 17255, 3225, 29918, 9621, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1842, 29918, 333, 29918, 21596, 29898, 1311, 1125, 13, 4706, 736, 1583, 17255, 3225, 29918, 333, 29918, 21596, 13, 13, 1678, 732, 6799, 13, 1678, 822, 17809, 29918, 13509, 29898, 1311, 1125, 13, 4706, 736, 1583, 17255, 4801, 26458, 29918, 13509, 13, 13, 1678, 732, 6799, 13, 1678, 822, 29303, 29898, 1311, 1125, 13, 4706, 736, 1583, 17255, 276, 2055, 355, 362, 13, 13, 1678, 822, 304, 29918, 3126, 29898, 1311, 1125, 13, 4706, 4390, 353, 6571, 13, 13, 4706, 565, 1583, 29889, 3225, 29918, 9621, 338, 451, 6213, 29901, 13, 9651, 4390, 3366, 3225, 29918, 9621, 3108, 353, 1583, 29889, 3225, 29918, 9621, 13, 13, 4706, 565, 1583, 29889, 3225, 29918, 333, 29918, 21596, 338, 451, 6213, 29901, 13, 9651, 4390, 3366, 3225, 29918, 333, 29918, 21596, 3108, 353, 1583, 29889, 3225, 29918, 333, 29918, 21596, 13, 13, 4706, 565, 1583, 29889, 4801, 26458, 29918, 13509, 338, 451, 6213, 29901, 13, 9651, 4390, 3366, 4801, 26458, 29918, 13509, 3108, 353, 1583, 29889, 4801, 26458, 29918, 13509, 13, 13, 4706, 565, 1583, 29889, 276, 2055, 355, 362, 338, 451, 6213, 29901, 13, 9651, 4390, 3366, 276, 2055, 355, 362, 3108, 353, 1583, 29889, 276, 2055, 355, 362, 13, 13, 4706, 736, 4390, 13, 13, 13, 1990, 8564, 1884, 6268, 1626, 1469, 5647, 13857, 5398, 29898, 29979, 15297, 9125, 13902, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1121, 29892, 1842, 29918, 4572, 1125, 13, 4706, 1583, 17255, 2914, 353, 1121, 13, 4706, 1583, 17255, 3225, 29918, 4572, 353, 1842, 29918, 4572, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1121, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 584, 29878, 1853, 29901, 8564, 1884, 6268, 1626, 1469, 5647, 13857, 5398, 3591, 13, 4706, 9995, 13, 4706, 736, 1583, 17255, 2914, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1842, 29918, 4572, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 584, 29878, 1853, 29901, 8564, 1884, 6268, 5072, 13, 4706, 9995, 13, 4706, 736, 1583, 17255, 3225, 29918, 4572, 13, 13, 1678, 822, 304, 29918, 3126, 29898, 1311, 1125, 13, 4706, 5446, 353, 426, 13, 9651, 376, 2914, 1115, 1583, 17255, 2914, 29892, 13, 4706, 500, 13, 4706, 565, 1583, 17255, 3225, 29918, 4572, 338, 451, 6213, 29901, 13, 9651, 5446, 3366, 3225, 29918, 4572, 3108, 353, 1583, 17255, 3225, 29918, 4572, 13, 4706, 736, 5446, 13, 13, 13, 1990, 8564, 1884, 6268, 1626, 1469, 5647, 13857, 5398, 5627, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 1583, 17255, 3225, 29918, 9621, 353, 6213, 13, 4706, 1583, 17255, 3225, 29918, 4572, 353, 6213, 13, 4706, 1583, 17255, 3225, 29918, 333, 29918, 21596, 353, 6213, 13, 4706, 1583, 17255, 4801, 26458, 29918, 13509, 353, 6213, 13, 4706, 1583, 17255, 276, 2055, 355, 362, 353, 6213, 13, 13, 1678, 822, 411, 29918, 3225, 29918, 2671, 29898, 1311, 29892, 1820, 29892, 995, 1125, 13, 4706, 9995, 13, 4706, 584, 1853, 1820, 29901, 851, 13, 4706, 584, 1853, 995, 29901, 851, 470, 9657, 13, 4706, 584, 29878, 1853, 29901, 8564, 1884, 6268, 1626, 1469, 5647, 13857, 5398, 5627, 13, 4706, 9995, 13, 4706, 1583, 17255, 3225, 29918, 9621, 353, 1583, 17255, 3225, 29918, 9621, 470, 6571, 13, 4706, 1583, 17255, 3225, 29918, 9621, 29961, 1989, 29962, 353, 995, 13, 4706, 736, 1583, 13, 13, 1678, 822, 411, 29918, 3225, 29918, 9621, 29898, 1311, 29892, 1842, 29918, 9621, 1125, 13, 4706, 9995, 13, 4706, 584, 1853, 1842, 29918, 9621, 29901, 9657, 13, 4706, 584, 29878, 1853, 29901, 8564, 1884, 6268, 1626, 1469, 5647, 13857, 5398, 5627, 13, 4706, 9995, 13, 4706, 1583, 17255, 3225, 29918, 9621, 353, 1842, 29918, 9621, 13, 4706, 736, 1583, 13, 13, 1678, 822, 411, 29918, 3225, 29918, 333, 29918, 21596, 29898, 1311, 29892, 2793, 29918, 1853, 29892, 848, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 851, 2793, 29918, 1853, 29901, 278, 2793, 1134, 13, 4706, 584, 3207, 6262, 848, 29901, 278, 1967, 848, 13, 4706, 9995, 13, 4706, 1583, 17255, 3225, 29918, 333, 29918, 21596, 353, 8564, 1884, 6268, 1204, 25971, 29898, 3051, 29918, 1853, 29892, 848, 29897, 13, 4706, 736, 1583, 13, 13, 1678, 822, 411, 29918, 3225, 29918, 4572, 29898, 1311, 29892, 1842, 29918, 4572, 1125, 13, 4706, 9995, 13, 4706, 584, 1853, 1842, 29918, 4572, 29901, 8564, 1884, 6268, 5072, 13, 4706, 584, 29878, 1853, 29901, 8564, 1884, 6268, 1626, 1469, 5647, 13857, 5398, 5627, 13, 4706, 9995, 13, 4706, 1583, 17255, 3225, 29918, 4572, 353, 1842, 29918, 4572, 13, 4706, 736, 1583, 13, 13, 1678, 822, 411, 29918, 4801, 26458, 29918, 13509, 29898, 1311, 29892, 17809, 29918, 13509, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 851, 17809, 29918, 13509, 29901, 278, 17809, 4234, 13, 4706, 9995, 13, 4706, 1583, 17255, 4801, 26458, 29918, 13509, 353, 17809, 29918, 13509, 13, 4706, 736, 1583, 13, 13, 1678, 822, 411, 29918, 276, 2055, 355, 362, 29898, 1311, 29892, 29303, 1125, 13, 4706, 9995, 13, 4706, 584, 1853, 29303, 29901, 8564, 1884, 1626, 1469, 5647, 13857, 1123, 2055, 355, 362, 13, 4706, 584, 29878, 1853, 29901, 8564, 1884, 6268, 1626, 1469, 5647, 13857, 5398, 5627, 13, 4706, 9995, 13, 4706, 1583, 17255, 276, 2055, 355, 362, 353, 29303, 13, 4706, 736, 1583, 13, 13, 1678, 822, 2048, 29898, 1311, 1125, 13, 4706, 1121, 353, 8564, 1884, 6268, 1626, 1469, 5647, 13857, 5398, 3591, 29898, 13, 9651, 1583, 17255, 3225, 29918, 9621, 29892, 13, 9651, 1583, 17255, 3225, 29918, 333, 29918, 21596, 29892, 13, 9651, 1583, 17255, 4801, 26458, 29918, 13509, 29892, 13, 9651, 1583, 17255, 276, 2055, 355, 362, 29892, 13, 4706, 1723, 13, 4706, 736, 8564, 1884, 6268, 1626, 1469, 5647, 13857, 5398, 29898, 2914, 29892, 1583, 17255, 3225, 29918, 4572, 29897, 13, 2 ]
tests/utilities/test_tasks.py
elenapalesis/prefect
0
194204
import inspect import pytest from prefect.core import Flow, Task from prefect.engine.flow_runner import FlowRunner from prefect.engine.signals import PAUSE from prefect.engine.state import Paused, Resume from prefect.utilities import tasks class TestTaskDecorator: def test_task_decorator_can_be_used_without_calling(self): @tasks.task def fun(x, y): return x + y def test_task_decorator_generates_new_tasks_upon_subsequent_calls(self): @tasks.task def fun(x, y): return x + y with Flow(name="test"): res1 = fun(1, 2) res2 = fun(1, 2) assert isinstance(res1, Task) assert isinstance(res2, Task) assert res1 is not res2 def test_task_decorator_with_args_must_be_called_in_flow_context(self): @tasks.task def fn(x): return x with pytest.raises(ValueError, match="Could not infer an active Flow context"): fn(1) def test_task_decorator_with_no_args_must_be_called_inside_flow_context(self): @tasks.task def fn(): return 1 with pytest.raises(ValueError): fn() with Flow(name="test"): assert isinstance(fn(), Task) def test_task_decorator_with_default_args_must_be_called_inside_flow_context(self): @tasks.task def fn(x=1): return x with pytest.raises(ValueError): fn() with Flow(name="test"): assert isinstance(fn(), Task) def test_task_decorator_with_required_args_must_be_called_with_args(self): @tasks.task def fn(x): return x with Flow(name="test"): with pytest.raises(TypeError): fn() def test_task_decorator_returns_task_instance(self): @tasks.task def fn(x): return x assert isinstance(fn, Task) def test_task_decorator_validates_run_signature_against_varargs(self): with pytest.raises(ValueError): @tasks.task def fn(*args): pass def test_task_decorator_validates_run_signature_against_upstream_tasks_kwarg(self): with pytest.raises(ValueError): @tasks.task def fn(upstream_tasks): pass class TestAsTask: @pytest.mark.parametrize( "obj", [ 1, (3, 4), ["a", "b"], "string", dict(x=42), type(None), lambda *args: None, {None: 88}, ], ) def test_as_task_with_basic_python_objs(self, obj): @tasks.task def return_val(x): "Necessary because constant tasks aren't tracked inside the flow" return x with Flow("test") as f: t = tasks.as_task(obj) val = return_val(t) assert isinstance(t, Task) assert t.auto_generated is True res = FlowRunner(f).run(return_tasks=[val]) assert res.is_successful() assert res.result[val].result == obj def test_as_task_doesnt_label_tasks_as_auto_generated(self): t = Task() assert t.auto_generated is False assert tasks.as_task(t).auto_generated is False def test_tag_contextmanager_works_with_task_decorator(): @tasks.task def mytask(): pass @tasks.task(tags=["default"]) def tagged_task(): pass with Flow(name="test"): with tasks.tags("chris"): res = mytask() other = tagged_task() assert res.tags == {"chris"} assert other.tags == {"chris", "default"} def test_copying_then_setting_tags_doesnt_leak_backwards(): with Flow(name="test"): t1 = Task() with tasks.tags("init-tag"): t2 = t1.copy() assert t2.tags == {"init-tag"} assert t1.tags == set() def test_setting_tags_then_calling_copies_tags(): with tasks.tags("init-tag"): t1 = Task() with Flow(name="test"): t2 = t1() assert t2.tags == {"init-tag"} def test_context_manager_for_setting_tags(): """ Test setting Task tags with a context manager, including: - top level - nested - nested with explicit tags """ with tasks.tags("1", "2"): t1 = Task() assert t1.tags == set(["1", "2"]) with tasks.tags("3", "4"): t2 = Task() assert t2.tags == set(["1", "2", "3", "4"]) t3 = Task(tags=["5"]) assert t3.tags == set(["1", "2", "3", "4", "5"]) class TestUnmappedContainer: def test_unmapped_initializes_with_task(self): t1 = Task() unmapped_t1 = tasks.unmapped(t1) assert unmapped_t1.task is t1 def test_unmapped_converts_its_argument_to_task(self): unmapped_t1 = tasks.unmapped(5) assert isinstance(unmapped_t1.task, Task) def test_as_task_unpacks_unmapped_objects(self): t1 = Task() unmapped_t1 = tasks.unmapped(t1) assert tasks.as_task(t1) is t1 assert tasks.as_task(t1).auto_generated is False class TestPauseTask: def test_pause_task_pauses(self): class AddTask(Task): def run(self, x, y): if x == y: tasks.pause_task("test message") return x + y with Flow(name="test") as f: t1 = AddTask()(1, 1) res = FlowRunner(flow=f).run(return_tasks=[t1]) assert isinstance(res.result[t1], Paused) assert res.result[t1].message == "test message" def test_pause_task_doesnt_pause_sometimes(self): class OneTask(Task): def run(self): tasks.pause_task() return 1 class AddTask(Task): def run(self, x, y): if x == y: tasks.pause_task() return x + y with Flow(name="test") as f: t1 = AddTask()(1, 1) t2 = OneTask()(upstream_tasks=[t1]) res = FlowRunner(flow=f).run(task_states={t1: Resume()}, return_tasks=[t1, t2]) assert res.result[t1].is_successful() assert isinstance(res.result[t2], Paused) class TestDefaultFromAttrs: @pytest.fixture def xtask(self): class A(Task): def __init__(self, x=None): self.x = x super().__init__() @tasks.defaults_from_attrs("x") def run(self, x=None): "Lil doc" return x return A @pytest.fixture def multitask(self): class B(Task): def __init__(self, x=None, y=None): self.x = x self.y = y super().__init__() @tasks.defaults_from_attrs("x") def run(self, x=None, y=None): return x, y return B def test_pulls_from_attr_if_not_provided_at_runtime(self, xtask): a = xtask(5) assert a.run() == 5 def test_runtime_takes_precedence(self, xtask): a = xtask(5) assert a.run(x=6) == 6 def test_even_none_at_runtime_takes_precedence(self, xtask): """ This test ensures that `None` isn't some ambiguous special case: keywords provided at runtime _always_ take precedence. """ a = xtask(5) assert a.run(x=None) is None def test_doc_is_unaffected(self, xtask): assert xtask.run.__doc__ == "Lil doc" def test_args_not_listed_are_unaffected(self, multitask): b = multitask(x=1, y=2) assert b.run() == (1, None) def test_works_with_multiple_args(self, multitask): b = multitask(x=1, y=2) assert b.run(y=3, x=55) == (55, 3) def test_works_with_mutiple_attrs(self): class TestTask(Task): def __init__(self, x=None, y=None): self.x = x self.y = y super().__init__() @tasks.defaults_from_attrs("x", "y") def run(self, x=None, y=None): return x, y task = TestTask(x=1, y=2) assert task.run() == (1, 2) assert task.run(x=4) == (4, 2) assert task.run(y=99) == (1, 99) assert task.run(x=None, y=None) == (None, None) def test_raises_if_attr_wasnt_set_at_init(self): """ It would be nice to raise this at creation time, but unfortunately the information just isn't available. """ class Forgot(Task): @tasks.defaults_from_attrs("x") def run(self, x=None): return x t = Forgot() with pytest.raises(AttributeError, match="no attribute 'x'"): t.run()
[ 1, 1053, 16096, 13, 13, 5215, 11451, 1688, 13, 13, 3166, 758, 3647, 29889, 3221, 1053, 22787, 29892, 9330, 13, 3166, 758, 3647, 29889, 10599, 29889, 1731, 29918, 27492, 1053, 22787, 16802, 13, 3166, 758, 3647, 29889, 10599, 29889, 4530, 1338, 1053, 17687, 17171, 13, 3166, 758, 3647, 29889, 10599, 29889, 3859, 1053, 349, 15244, 29892, 2538, 2017, 13, 3166, 758, 3647, 29889, 4422, 1907, 1053, 9595, 13, 13, 13, 1990, 4321, 5398, 6185, 272, 1061, 29901, 13, 1678, 822, 1243, 29918, 7662, 29918, 19557, 1061, 29918, 3068, 29918, 915, 29918, 3880, 29918, 14037, 29918, 4804, 292, 29898, 1311, 1125, 13, 4706, 732, 20673, 29889, 7662, 13, 4706, 822, 2090, 29898, 29916, 29892, 343, 1125, 13, 9651, 736, 921, 718, 343, 13, 13, 1678, 822, 1243, 29918, 7662, 29918, 19557, 1061, 29918, 4738, 1078, 29918, 1482, 29918, 20673, 29918, 786, 265, 29918, 1491, 6831, 296, 29918, 29883, 4293, 29898, 1311, 1125, 13, 4706, 732, 20673, 29889, 7662, 13, 4706, 822, 2090, 29898, 29916, 29892, 343, 1125, 13, 9651, 736, 921, 718, 343, 13, 13, 4706, 411, 22787, 29898, 978, 543, 1688, 29908, 1125, 13, 9651, 620, 29896, 353, 2090, 29898, 29896, 29892, 29871, 29906, 29897, 13, 9651, 620, 29906, 353, 2090, 29898, 29896, 29892, 29871, 29906, 29897, 13, 4706, 4974, 338, 8758, 29898, 690, 29896, 29892, 9330, 29897, 13, 4706, 4974, 338, 8758, 29898, 690, 29906, 29892, 9330, 29897, 13, 4706, 4974, 620, 29896, 338, 451, 620, 29906, 13, 13, 1678, 822, 1243, 29918, 7662, 29918, 19557, 1061, 29918, 2541, 29918, 5085, 29918, 21969, 29918, 915, 29918, 13998, 29918, 262, 29918, 1731, 29918, 4703, 29898, 1311, 1125, 13, 4706, 732, 20673, 29889, 7662, 13, 4706, 822, 7876, 29898, 29916, 1125, 13, 9651, 736, 921, 13, 13, 4706, 411, 11451, 1688, 29889, 336, 4637, 29898, 1917, 2392, 29892, 1993, 543, 23323, 451, 10115, 385, 6136, 22787, 3030, 29908, 1125, 13, 9651, 7876, 29898, 29896, 29897, 13, 13, 1678, 822, 1243, 29918, 7662, 29918, 19557, 1061, 29918, 2541, 29918, 1217, 29918, 5085, 29918, 21969, 29918, 915, 29918, 13998, 29918, 26102, 29918, 1731, 29918, 4703, 29898, 1311, 1125, 13, 4706, 732, 20673, 29889, 7662, 13, 4706, 822, 7876, 7295, 13, 9651, 736, 29871, 29896, 13, 13, 4706, 411, 11451, 1688, 29889, 336, 4637, 29898, 1917, 2392, 1125, 13, 9651, 7876, 580, 13, 13, 4706, 411, 22787, 29898, 978, 543, 1688, 29908, 1125, 13, 9651, 4974, 338, 8758, 29898, 9144, 3285, 9330, 29897, 13, 13, 1678, 822, 1243, 29918, 7662, 29918, 19557, 1061, 29918, 2541, 29918, 4381, 29918, 5085, 29918, 21969, 29918, 915, 29918, 13998, 29918, 26102, 29918, 1731, 29918, 4703, 29898, 1311, 1125, 13, 4706, 732, 20673, 29889, 7662, 13, 4706, 822, 7876, 29898, 29916, 29922, 29896, 1125, 13, 9651, 736, 921, 13, 13, 4706, 411, 11451, 1688, 29889, 336, 4637, 29898, 1917, 2392, 1125, 13, 9651, 7876, 580, 13, 13, 4706, 411, 22787, 29898, 978, 543, 1688, 29908, 1125, 13, 9651, 4974, 338, 8758, 29898, 9144, 3285, 9330, 29897, 13, 13, 1678, 822, 1243, 29918, 7662, 29918, 19557, 1061, 29918, 2541, 29918, 12403, 29918, 5085, 29918, 21969, 29918, 915, 29918, 13998, 29918, 2541, 29918, 5085, 29898, 1311, 1125, 13, 4706, 732, 20673, 29889, 7662, 13, 4706, 822, 7876, 29898, 29916, 1125, 13, 9651, 736, 921, 13, 13, 4706, 411, 22787, 29898, 978, 543, 1688, 29908, 1125, 13, 9651, 411, 11451, 1688, 29889, 336, 4637, 29898, 1542, 2392, 1125, 13, 18884, 7876, 580, 13, 13, 1678, 822, 1243, 29918, 7662, 29918, 19557, 1061, 29918, 18280, 29918, 7662, 29918, 8758, 29898, 1311, 1125, 13, 4706, 732, 20673, 29889, 7662, 13, 4706, 822, 7876, 29898, 29916, 1125, 13, 9651, 736, 921, 13, 13, 4706, 4974, 338, 8758, 29898, 9144, 29892, 9330, 29897, 13, 13, 1678, 822, 1243, 29918, 7662, 29918, 19557, 1061, 29918, 3084, 1078, 29918, 3389, 29918, 4530, 1535, 29918, 351, 475, 303, 29918, 1707, 5085, 29898, 1311, 1125, 13, 4706, 411, 11451, 1688, 29889, 336, 4637, 29898, 1917, 2392, 1125, 13, 13, 9651, 732, 20673, 29889, 7662, 13, 9651, 822, 7876, 10456, 5085, 1125, 13, 18884, 1209, 13, 13, 1678, 822, 1243, 29918, 7662, 29918, 19557, 1061, 29918, 3084, 1078, 29918, 3389, 29918, 4530, 1535, 29918, 351, 475, 303, 29918, 786, 5461, 29918, 20673, 29918, 11022, 1191, 29898, 1311, 1125, 13, 4706, 411, 11451, 1688, 29889, 336, 4637, 29898, 1917, 2392, 1125, 13, 13, 9651, 732, 20673, 29889, 7662, 13, 9651, 822, 7876, 29898, 786, 5461, 29918, 20673, 1125, 13, 18884, 1209, 13, 13, 13, 1990, 4321, 2887, 5398, 29901, 13, 1678, 732, 2272, 1688, 29889, 3502, 29889, 3207, 300, 374, 911, 29898, 13, 4706, 376, 5415, 613, 13, 4706, 518, 13, 632, 29896, 29892, 13, 9651, 313, 29941, 29892, 29871, 29946, 511, 13, 9651, 6796, 29874, 613, 376, 29890, 12436, 13, 9651, 376, 1807, 613, 13, 9651, 9657, 29898, 29916, 29922, 29946, 29906, 511, 13, 9651, 1134, 29898, 8516, 511, 13, 9651, 14013, 334, 5085, 29901, 6213, 29892, 13, 9651, 426, 8516, 29901, 29871, 29947, 29947, 1118, 13, 4706, 21251, 13, 1678, 1723, 13, 1678, 822, 1243, 29918, 294, 29918, 7662, 29918, 2541, 29918, 16121, 29918, 4691, 29918, 711, 1315, 29898, 1311, 29892, 5446, 1125, 13, 4706, 732, 20673, 29889, 7662, 13, 4706, 822, 736, 29918, 791, 29898, 29916, 1125, 13, 9651, 376, 29940, 687, 404, 653, 1363, 4868, 9595, 9455, 29915, 29873, 5702, 287, 2768, 278, 4972, 29908, 13, 9651, 736, 921, 13, 13, 4706, 411, 22787, 703, 1688, 1159, 408, 285, 29901, 13, 9651, 260, 353, 9595, 29889, 294, 29918, 7662, 29898, 5415, 29897, 13, 9651, 659, 353, 736, 29918, 791, 29898, 29873, 29897, 13, 13, 4706, 4974, 338, 8758, 29898, 29873, 29892, 9330, 29897, 13, 4706, 4974, 260, 29889, 6921, 29918, 13525, 338, 5852, 13, 4706, 620, 353, 22787, 16802, 29898, 29888, 467, 3389, 29898, 2457, 29918, 20673, 11759, 791, 2314, 13, 13, 4706, 4974, 620, 29889, 275, 29918, 8698, 1319, 580, 13, 4706, 4974, 620, 29889, 2914, 29961, 791, 1822, 2914, 1275, 5446, 13, 13, 1678, 822, 1243, 29918, 294, 29918, 7662, 29918, 13221, 593, 29918, 1643, 29918, 20673, 29918, 294, 29918, 6921, 29918, 13525, 29898, 1311, 1125, 13, 4706, 260, 353, 9330, 580, 13, 4706, 4974, 260, 29889, 6921, 29918, 13525, 338, 7700, 13, 4706, 4974, 9595, 29889, 294, 29918, 7662, 29898, 29873, 467, 6921, 29918, 13525, 338, 7700, 13, 13, 13, 1753, 1243, 29918, 4039, 29918, 4703, 12847, 29918, 13129, 29918, 2541, 29918, 7662, 29918, 19557, 1061, 7295, 13, 1678, 732, 20673, 29889, 7662, 13, 1678, 822, 590, 7662, 7295, 13, 4706, 1209, 13, 13, 1678, 732, 20673, 29889, 7662, 29898, 11338, 29922, 3366, 4381, 20068, 13, 1678, 822, 4055, 3192, 29918, 7662, 7295, 13, 4706, 1209, 13, 13, 1678, 411, 22787, 29898, 978, 543, 1688, 29908, 1125, 13, 4706, 411, 9595, 29889, 11338, 703, 305, 3780, 29908, 1125, 13, 9651, 620, 353, 590, 7662, 580, 13, 9651, 916, 353, 4055, 3192, 29918, 7662, 580, 13, 13, 1678, 4974, 620, 29889, 11338, 1275, 8853, 305, 3780, 9092, 13, 1678, 4974, 916, 29889, 11338, 1275, 8853, 305, 3780, 613, 376, 4381, 9092, 13, 13, 13, 1753, 1243, 29918, 8552, 292, 29918, 6098, 29918, 26740, 29918, 11338, 29918, 13221, 593, 29918, 280, 557, 29918, 1627, 2935, 7295, 13, 1678, 411, 22787, 29898, 978, 543, 1688, 29908, 1125, 13, 4706, 260, 29896, 353, 9330, 580, 13, 4706, 411, 9595, 29889, 11338, 703, 2344, 29899, 4039, 29908, 1125, 13, 9651, 260, 29906, 353, 260, 29896, 29889, 8552, 580, 13, 13, 1678, 4974, 260, 29906, 29889, 11338, 1275, 8853, 2344, 29899, 4039, 9092, 13, 1678, 4974, 260, 29896, 29889, 11338, 1275, 731, 580, 13, 13, 13, 1753, 1243, 29918, 26740, 29918, 11338, 29918, 6098, 29918, 4804, 292, 29918, 9708, 583, 29918, 11338, 7295, 13, 1678, 411, 9595, 29889, 11338, 703, 2344, 29899, 4039, 29908, 1125, 13, 4706, 260, 29896, 353, 9330, 580, 13, 13, 1678, 411, 22787, 29898, 978, 543, 1688, 29908, 1125, 13, 4706, 260, 29906, 353, 260, 29896, 580, 13, 13, 1678, 4974, 260, 29906, 29889, 11338, 1275, 8853, 2344, 29899, 4039, 9092, 13, 13, 13, 1753, 1243, 29918, 4703, 29918, 12847, 29918, 1454, 29918, 26740, 29918, 11338, 7295, 13, 1678, 9995, 13, 1678, 4321, 4444, 9330, 8282, 411, 263, 3030, 8455, 29892, 3704, 29901, 13, 4706, 448, 2246, 3233, 13, 4706, 448, 9322, 13, 4706, 448, 9322, 411, 6261, 8282, 13, 1678, 9995, 13, 13, 1678, 411, 9595, 29889, 11338, 703, 29896, 613, 376, 29906, 29908, 1125, 13, 4706, 260, 29896, 353, 9330, 580, 13, 4706, 4974, 260, 29896, 29889, 11338, 1275, 731, 29898, 3366, 29896, 613, 376, 29906, 20068, 13, 13, 4706, 411, 9595, 29889, 11338, 703, 29941, 613, 376, 29946, 29908, 1125, 13, 9651, 260, 29906, 353, 9330, 580, 13, 9651, 4974, 260, 29906, 29889, 11338, 1275, 731, 29898, 3366, 29896, 613, 376, 29906, 613, 376, 29941, 613, 376, 29946, 20068, 13, 13, 9651, 260, 29941, 353, 9330, 29898, 11338, 29922, 3366, 29945, 20068, 13, 9651, 4974, 260, 29941, 29889, 11338, 1275, 731, 29898, 3366, 29896, 613, 376, 29906, 613, 376, 29941, 613, 376, 29946, 613, 376, 29945, 20068, 13, 13, 13, 1990, 4321, 2525, 655, 2986, 7895, 29901, 13, 1678, 822, 1243, 29918, 348, 655, 2986, 29918, 11228, 7093, 29918, 2541, 29918, 7662, 29898, 1311, 1125, 13, 4706, 260, 29896, 353, 9330, 580, 13, 4706, 443, 655, 2986, 29918, 29873, 29896, 353, 9595, 29889, 348, 655, 2986, 29898, 29873, 29896, 29897, 13, 4706, 4974, 443, 655, 2986, 29918, 29873, 29896, 29889, 7662, 338, 260, 29896, 13, 13, 1678, 822, 1243, 29918, 348, 655, 2986, 29918, 535, 369, 1372, 29918, 1169, 29918, 23516, 29918, 517, 29918, 7662, 29898, 1311, 1125, 13, 4706, 443, 655, 2986, 29918, 29873, 29896, 353, 9595, 29889, 348, 655, 2986, 29898, 29945, 29897, 13, 4706, 4974, 338, 8758, 29898, 348, 655, 2986, 29918, 29873, 29896, 29889, 7662, 29892, 9330, 29897, 13, 13, 1678, 822, 1243, 29918, 294, 29918, 7662, 29918, 348, 4058, 29879, 29918, 348, 655, 2986, 29918, 12650, 29898, 1311, 1125, 13, 4706, 260, 29896, 353, 9330, 580, 13, 4706, 443, 655, 2986, 29918, 29873, 29896, 353, 9595, 29889, 348, 655, 2986, 29898, 29873, 29896, 29897, 13, 4706, 4974, 9595, 29889, 294, 29918, 7662, 29898, 29873, 29896, 29897, 338, 260, 29896, 13, 4706, 4974, 9595, 29889, 294, 29918, 7662, 29898, 29873, 29896, 467, 6921, 29918, 13525, 338, 7700, 13, 13, 13, 1990, 4321, 29925, 1071, 5398, 29901, 13, 1678, 822, 1243, 29918, 29886, 1071, 29918, 7662, 29918, 29886, 1485, 267, 29898, 1311, 1125, 13, 4706, 770, 3462, 5398, 29898, 5398, 1125, 13, 9651, 822, 1065, 29898, 1311, 29892, 921, 29892, 343, 1125, 13, 18884, 565, 921, 1275, 343, 29901, 13, 462, 1678, 9595, 29889, 29886, 1071, 29918, 7662, 703, 1688, 2643, 1159, 13, 18884, 736, 921, 718, 343, 13, 13, 4706, 411, 22787, 29898, 978, 543, 1688, 1159, 408, 285, 29901, 13, 9651, 260, 29896, 353, 3462, 5398, 580, 29898, 29896, 29892, 29871, 29896, 29897, 13, 4706, 620, 353, 22787, 16802, 29898, 1731, 29922, 29888, 467, 3389, 29898, 2457, 29918, 20673, 11759, 29873, 29896, 2314, 13, 4706, 4974, 338, 8758, 29898, 690, 29889, 2914, 29961, 29873, 29896, 1402, 349, 15244, 29897, 13, 4706, 4974, 620, 29889, 2914, 29961, 29873, 29896, 1822, 4906, 1275, 376, 1688, 2643, 29908, 13, 13, 1678, 822, 1243, 29918, 29886, 1071, 29918, 7662, 29918, 13221, 593, 29918, 29886, 1071, 29918, 29879, 14618, 29898, 1311, 1125, 13, 4706, 770, 3118, 5398, 29898, 5398, 1125, 13, 9651, 822, 1065, 29898, 1311, 1125, 13, 18884, 9595, 29889, 29886, 1071, 29918, 7662, 580, 13, 18884, 736, 29871, 29896, 13, 13, 4706, 770, 3462, 5398, 29898, 5398, 1125, 13, 9651, 822, 1065, 29898, 1311, 29892, 921, 29892, 343, 1125, 13, 18884, 565, 921, 1275, 343, 29901, 13, 462, 1678, 9595, 29889, 29886, 1071, 29918, 7662, 580, 13, 18884, 736, 921, 718, 343, 13, 13, 4706, 411, 22787, 29898, 978, 543, 1688, 1159, 408, 285, 29901, 13, 9651, 260, 29896, 353, 3462, 5398, 580, 29898, 29896, 29892, 29871, 29896, 29897, 13, 9651, 260, 29906, 353, 3118, 5398, 580, 29898, 786, 5461, 29918, 20673, 11759, 29873, 29896, 2314, 13, 13, 4706, 620, 353, 22787, 16802, 29898, 1731, 29922, 29888, 467, 3389, 29898, 7662, 29918, 28631, 3790, 29873, 29896, 29901, 2538, 2017, 580, 1118, 736, 29918, 20673, 11759, 29873, 29896, 29892, 260, 29906, 2314, 13, 4706, 4974, 620, 29889, 2914, 29961, 29873, 29896, 1822, 275, 29918, 8698, 1319, 580, 13, 4706, 4974, 338, 8758, 29898, 690, 29889, 2914, 29961, 29873, 29906, 1402, 349, 15244, 29897, 13, 13, 13, 1990, 4321, 4592, 4591, 25098, 29879, 29901, 13, 1678, 732, 2272, 1688, 29889, 7241, 15546, 13, 1678, 822, 29871, 486, 1278, 29898, 1311, 1125, 13, 4706, 770, 319, 29898, 5398, 1125, 13, 9651, 822, 4770, 2344, 12035, 1311, 29892, 921, 29922, 8516, 1125, 13, 18884, 1583, 29889, 29916, 353, 921, 13, 18884, 2428, 2141, 1649, 2344, 1649, 580, 13, 13, 9651, 732, 20673, 29889, 4381, 29879, 29918, 3166, 29918, 5552, 29879, 703, 29916, 1159, 13, 9651, 822, 1065, 29898, 1311, 29892, 921, 29922, 8516, 1125, 13, 18884, 376, 29931, 309, 1574, 29908, 13, 18884, 736, 921, 13, 13, 4706, 736, 319, 13, 13, 1678, 732, 2272, 1688, 29889, 7241, 15546, 13, 1678, 822, 1773, 277, 1278, 29898, 1311, 1125, 13, 4706, 770, 350, 29898, 5398, 1125, 13, 9651, 822, 4770, 2344, 12035, 1311, 29892, 921, 29922, 8516, 29892, 343, 29922, 8516, 1125, 13, 18884, 1583, 29889, 29916, 353, 921, 13, 18884, 1583, 29889, 29891, 353, 343, 13, 18884, 2428, 2141, 1649, 2344, 1649, 580, 13, 13, 9651, 732, 20673, 29889, 4381, 29879, 29918, 3166, 29918, 5552, 29879, 703, 29916, 1159, 13, 9651, 822, 1065, 29898, 1311, 29892, 921, 29922, 8516, 29892, 343, 29922, 8516, 1125, 13, 18884, 736, 921, 29892, 343, 13, 13, 4706, 736, 350, 13, 13, 1678, 822, 1243, 29918, 26746, 29879, 29918, 3166, 29918, 5552, 29918, 361, 29918, 1333, 29918, 16123, 2618, 29918, 271, 29918, 15634, 29898, 1311, 29892, 29871, 486, 1278, 1125, 13, 4706, 263, 353, 29871, 486, 1278, 29898, 29945, 29897, 13, 4706, 4974, 263, 29889, 3389, 580, 1275, 29871, 29945, 13, 13, 1678, 822, 1243, 29918, 15634, 29918, 29873, 6926, 29918, 1457, 1133, 663, 29898, 1311, 29892, 29871, 486, 1278, 1125, 13, 4706, 263, 353, 29871, 486, 1278, 29898, 29945, 29897, 13, 4706, 4974, 263, 29889, 3389, 29898, 29916, 29922, 29953, 29897, 1275, 29871, 29953, 13, 13, 1678, 822, 1243, 29918, 11884, 29918, 9290, 29918, 271, 29918, 15634, 29918, 29873, 6926, 29918, 1457, 1133, 663, 29898, 1311, 29892, 29871, 486, 1278, 1125, 13, 4706, 9995, 13, 4706, 910, 1243, 5662, 1973, 393, 421, 8516, 29952, 3508, 29915, 29873, 777, 22363, 681, 4266, 1206, 29901, 29361, 13, 4706, 4944, 472, 10073, 903, 21936, 29918, 2125, 9399, 663, 29889, 13, 4706, 9995, 13, 4706, 263, 353, 29871, 486, 1278, 29898, 29945, 29897, 13, 4706, 4974, 263, 29889, 3389, 29898, 29916, 29922, 8516, 29897, 338, 6213, 13, 13, 1678, 822, 1243, 29918, 1514, 29918, 275, 29918, 348, 3470, 26458, 29898, 1311, 29892, 29871, 486, 1278, 1125, 13, 4706, 4974, 29871, 486, 1278, 29889, 3389, 17255, 1514, 1649, 1275, 376, 29931, 309, 1574, 29908, 13, 13, 1678, 822, 1243, 29918, 5085, 29918, 1333, 29918, 1761, 287, 29918, 598, 29918, 348, 3470, 26458, 29898, 1311, 29892, 1773, 277, 1278, 1125, 13, 4706, 289, 353, 1773, 277, 1278, 29898, 29916, 29922, 29896, 29892, 343, 29922, 29906, 29897, 13, 4706, 4974, 289, 29889, 3389, 580, 1275, 313, 29896, 29892, 6213, 29897, 13, 13, 1678, 822, 1243, 29918, 13129, 29918, 2541, 29918, 20787, 29918, 5085, 29898, 1311, 29892, 1773, 277, 1278, 1125, 13, 4706, 289, 353, 1773, 277, 1278, 29898, 29916, 29922, 29896, 29892, 343, 29922, 29906, 29897, 13, 4706, 4974, 289, 29889, 3389, 29898, 29891, 29922, 29941, 29892, 921, 29922, 29945, 29945, 29897, 1275, 313, 29945, 29945, 29892, 29871, 29941, 29897, 13, 13, 1678, 822, 1243, 29918, 13129, 29918, 2541, 29918, 6149, 29875, 552, 29918, 5552, 29879, 29898, 1311, 1125, 13, 4706, 770, 4321, 5398, 29898, 5398, 1125, 13, 9651, 822, 4770, 2344, 12035, 1311, 29892, 921, 29922, 8516, 29892, 343, 29922, 8516, 1125, 13, 18884, 1583, 29889, 29916, 353, 921, 13, 18884, 1583, 29889, 29891, 353, 343, 13, 18884, 2428, 2141, 1649, 2344, 1649, 580, 13, 13, 9651, 732, 20673, 29889, 4381, 29879, 29918, 3166, 29918, 5552, 29879, 703, 29916, 613, 376, 29891, 1159, 13, 9651, 822, 1065, 29898, 1311, 29892, 921, 29922, 8516, 29892, 343, 29922, 8516, 1125, 13, 18884, 736, 921, 29892, 343, 13, 13, 4706, 3414, 353, 4321, 5398, 29898, 29916, 29922, 29896, 29892, 343, 29922, 29906, 29897, 13, 4706, 4974, 3414, 29889, 3389, 580, 1275, 313, 29896, 29892, 29871, 29906, 29897, 13, 4706, 4974, 3414, 29889, 3389, 29898, 29916, 29922, 29946, 29897, 1275, 313, 29946, 29892, 29871, 29906, 29897, 13, 4706, 4974, 3414, 29889, 3389, 29898, 29891, 29922, 29929, 29929, 29897, 1275, 313, 29896, 29892, 29871, 29929, 29929, 29897, 13, 4706, 4974, 3414, 29889, 3389, 29898, 29916, 29922, 8516, 29892, 343, 29922, 8516, 29897, 1275, 313, 8516, 29892, 6213, 29897, 13, 13, 1678, 822, 1243, 29918, 336, 4637, 29918, 361, 29918, 5552, 29918, 11102, 593, 29918, 842, 29918, 271, 29918, 2344, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 739, 723, 367, 7575, 304, 12020, 445, 472, 11265, 931, 29892, 541, 15428, 13, 4706, 278, 2472, 925, 3508, 29915, 29873, 3625, 29889, 13, 4706, 9995, 13, 13, 4706, 770, 383, 990, 327, 29898, 5398, 1125, 13, 9651, 732, 20673, 29889, 4381, 29879, 29918, 3166, 29918, 5552, 29879, 703, 29916, 1159, 13, 9651, 822, 1065, 29898, 1311, 29892, 921, 29922, 8516, 1125, 13, 18884, 736, 921, 13, 13, 4706, 260, 353, 383, 990, 327, 580, 13, 4706, 411, 11451, 1688, 29889, 336, 4637, 29898, 6708, 2392, 29892, 1993, 543, 1217, 5352, 525, 29916, 11838, 1125, 13, 9651, 260, 29889, 3389, 580, 13, 2 ]
pyNastran/op2/op2.py
als0052/pyNastran
0
185521
<reponame>als0052/pyNastran #!/usr/bin/env python3 # Filename: op2.py """ Defines the main OP2 class. Defines: - read_op2(op2_filename=None, combine=True, subcases=None, exclude_results=None, include_results=None, log=None, debug=True, debug_file=None, build_dataframe=False, skip_undefined_matrices=True, mode='msc', encoding=None) - OP2(debug=True, log=None, debug_file=None, mode='msc') - build_dataframe() - combine_results(combine=True) - create_objects_from_matrices() - object_attributes(mode='public', keys_to_skip=None, filter_properties=False) - object_methods(mode='public', keys_to_skip=None) - print_subcase_key() - read_op2(op2_filename=None, combine=True, build_dataframe=False, skip_undefined_matrices=False, encoding=None) - set_mode(mode) - transform_displacements_to_global(i_transform, coords, xyz_cid0=None, debug=False) - transform_gpforce_to_global(nids_all, nids_transform, i_transform, coords, xyz_cid0=None) Changes ------- * (11-17-2021) (als0052): Fixed some typing issues; added some comments; tried to make the code more readable and maybe efficient? * (01-29-2021) (als0052): Changes to some minor syntax to use more modern Python features (will probably need to up the minimum Python requirement); Rearranged some code to make it a bit easier to read; Thinned out some comments; added some comments (mostly to do items) To Do Items ----------- .. todo:: How to access the Pandas DataFrame from the OP2 obj? I don't even see Pandas as an import. """ from __future__ import annotations from pyNastran.op2.errors import (SortCodeError, DeviceCodeError, FortranMarkerError, SixtyFourBitError, OverwriteTableError) from pyNastran.op2.op2_interface.hdf5_interface import export_op2_to_hdf5_file from pyNastran.op2.op2_interface.hdf5_interface import \ export_op2_to_hdf5_filename from pyNastran.op2.op2_interface.transforms import ( transform_displacement_to_global, transform_gpforce_to_globali) from pyNastran.op2.op2_interface.hdf5_interface import load_op2_from_hdf5_file from pyNastran.utils import object_attributes, object_methods, ipython_info from pyNastran.op2.op2_interface.hdf5_interface import create_info_group from pyNastran.op2.result_objects.monpnt import MONPNT1, MONPNT3 from pyNastran.op2.op2_interface.op2_scalar import OP2_Scalar from pyNastran.op2.writer.op2_writer import OP2Writer from pyNastran.utils.numpy_utils import integer_types from pyNastran.op2.op2_geom import read_op2_geom from pyNastran.f06.errors import FatalError from pyNastran.utils import check_path from typing import List, Dict, Tuple, Optional, Any, TYPE_CHECKING, Union from pickle import load, dump, dumps from collections import defaultdict import numpy as np import h5py import sys if TYPE_CHECKING: from h5py import File as H5File # import pyNastran # from pyNastran.op2.op2_interface.op2_f06_common import Op2F06Attributes class OP2(OP2_Scalar, OP2Writer): _properties = ['is_real', 'is_complex', 'is_random', '_sort_method', 'is_sort1', 'is_sort2', 'matrix_tables', 'table_name_str'] def __init__(self, debug: Optional[bool] = True, log: Any = None, debug_file: Optional[str] = None, mode: Optional[str] = None ) -> None: """Initializes the OP2 object Parameters ---------- debug : bool/None; default=True used to set the logger if no logger is passed in True: logs debug/info/warning/error messages False: logs info/warning/error messages None: logs warning/error messages log : Log() a logging object to write debug messages to .. seealso:: import logging debug_file : str; default=None (No debug) sets the filename that will be written to mode : str; default=None -> 'msc' {msc, nx} """ self.encoding = None self.mode = mode if mode is not None: self.set_mode(mode) make_geom = False assert make_geom is False, make_geom OP2_Scalar.__init__(self, debug=debug, log=log, debug_file=debug_file) self.ask = False self.post = None self.table_count = defaultdict(int) self._set_mode(mode) self.skip_undefined_matrices = '' def __del__(self) -> None: if hasattr(self, 'h5_file') and self.h5_file is not None: self.h5_file.close() def object_attributes(self, mode: str = 'public', keys_to_skip: Optional[List[str]] = None, filter_properties: bool = False) -> List[str]: """List the names of attributes of a class as strings. Returns public attributes as default. Parameters ---------- mode : str defines what kind of attributes will be listed * 'public' - names that do not begin with underscore * 'private' - names that begin with single underscore * 'both' - private and public * 'all' - all attributes that are defined for the object keys_to_skip : List[str]; default=None -> [] names to not consider to avoid deprecation warnings filter_properties : Returns ------- attribute_names : List[str] sorted list of the names of attributes of a given type or None if the mode is wrong .. todo:: Fill out docstring info on filter_properties parameter .. todo:: kwargs support """ if keys_to_skip is None: keys_to_skip = [] my_keys_to_skip = ['object_methods', 'object_attributes', ] keys_to_skip += my_keys_to_skip kw = {'mode': mode, 'keys_to_skip': keys_to_skip, 'filter_properties': filter_properties} # TODO: kwargs support return object_attributes(self, **kw) def object_methods(self, mode: str = 'public', keys_to_skip: Optional[List[str]] = None) -> List[str]: """List the names of methods of a class as strings. Returns public methods as default. Parameters ---------- obj : instance the object for checking mode : str defines what kind of methods will be listed * "public" - names that do not begin with underscore * "private" - names that begin with single underscore * "both" - private and public * "all" - all methods that are defined for the object keys_to_skip : List[str]; default=None -> [] names to not consider to avoid deprecation warnings Returns ------- method : List[str] sorted list of the names of methods of a given type or None if the mode is wrong """ if keys_to_skip is None: keys_to_skip = [] my_keys_to_skip = ['object_methods', 'object_attributes'] keys_to_skip += my_keys_to_skip return object_methods(self, mode=mode, keys_to_skip=keys_to_skip) def __eq__(self, op2_model) -> bool: """Diffs the current op2 model vs. another op2 model. Crashes if they're not equal. FIXME: Probably shouldn't crash if they aren't equal """ try: is_equal = self.assert_op2_equal( op2_model, stop_on_failure=True, debug=False) except (AssertionError, ValueError): # This will never get used if you raise? # is_equal = False raise return is_equal def assert_op2_equal(self, op2_model, skip_results: Optional[List[str]] = None, stop_on_failure: bool = True, debug: bool = False) -> bool: """Diffs the current op2 model vs. another op2 model. Parameters ---------- op2_model : OP2() the model to compare to skip_results : List[str]; default=None -> [] results that shouldn't be compred stop_on_failure : bool; default=True True : Crashes if they're not equal False : Go to the next object debug : bool; default=False give slightly more debugging messages Returns ------- is_equal : bool are the objects equal? Raises ------ AssertionError/ValueError : stop_on_failure=True and and error occurred NotImplementedError : this is a sign of an unsupported object """ if skip_results is None: skip_results = set() else: skip_results = set(skip_results) skip_results.update({'gpdt', 'bgpdt', 'eqexin', 'psds'}) if not self.read_mode == op2_model.read_mode: msg = (f'self.read_mode={self.read_mode} op2_model.read_mode=' f'{op2_model.read_mode} ... assume True') self.log.warning(msg) return True table_types = self.get_table_types() for table_type in table_types: if (table_type in skip_results or table_type.startswith('responses.')): continue adict = self.get_result(table_type) bdict = op2_model.get_result(table_type) if adict is None and bdict is None: continue if len(adict) != len(bdict): # check number of subcases msg = (f'len(self.{table_type}) = {len(adict)} ' f'len(op2_model.{table_type}) = {len(bdict)}') self.log.warning(msg) if stop_on_failure: return False continue for key, avalue in adict.items(): # loop over each DisplacementArray if debug: msg = f'Working on {table_type!r} subcase = {str(key)}' self.log.debug(msg) # get the displacement for model B bvalue = bdict[key] is_equal = self._is_op2_case_equal( table_type, key, avalue, bvalue, stop_on_failure=stop_on_failure, debug=debug) if not is_equal and stop_on_failure: return is_equal return True def _is_op2_case_equal(self, table_type: str, key, a_obj, b_obj, stop_on_failure: bool = True, debug: bool = False ) -> bool: """Helper method for ``assert_op2_equal`` Parameters ---------- table_type : str the type of table (e.g., ``displacements``) key : subcase_id / tuple_obj subcase_id : int the subcase_id tuple_obj : Tuple(???, ???, ...) The fancy tuple thingy that you see in single subcase buckling... subcase_id : int the subcase_id sort_code : int 1 : SORT1 2 : SORT2 title??? : str the case title subtitle??? : str the case subtitle superelement_id : str??? the superelement other terms??? TODO: This docstring needs work. a_obj : Op2Object() a RealDisplacementArray, ComplexDisplacementArray, RealSolidStressArray, etc. for the self model b_obj : Op2Object() a RealDisplacementArray, ComplexDisplacementArray, RealSolidStressArray, etc. for the comparison model stop_on_failure : bool; default=True True : Crashes if they're not equal False : Go to the next object debug : bool; default=False give slightly more debugging messages Returns ------- is_equal : bool are the objects equal? Raises ------ AssertionError/ValueError : stop_on_failure=True and and error occurred NotImplementedError : this is a sign of an unsupported object """ # check the name (e.g., RealDisplacementArray vs. # ComplexDisplacementArray) aname = a_obj.__class__.__name__ bname = b_obj.__class__.__name__ if not aname == bname: self.log.warning(f'type(a)={aname} type(b)={bname}') return False if aname == 'PARAM': # TODO: update this return True if not any(word in aname for word in ['Array', 'Eigenvalues', 'GridPointWeight']): # TODO: Does this ever hit? msg = f'{aname} is not an Array ... assume equal' self.log.warning(msg) raise NotImplementedError(f'{aname} __eq__') # continue # TODO: Use the array methods to check for equality. # TODO: This can crash. is_not_equal = '' # Silence warning undeclared variable before usage try: is_not_equal = a_obj != b_obj except ValueError: if stop_on_failure: raise if is_not_equal: msg = (f'key = {key} table_type = {table_type!r} are not equal; ' f'class_name = {aname!r}') self.log.warning(msg) return False return True def _set_mode(self, mode: str): """Explicitly set the format .. todo:: What other modes are there? What else would this be used for? """ if mode is None: return if mode == 'nasa95': self.set_as_nasa95() def set_mode(self, mode: str) -> None: """Sets the op2 mode Sets the mode as as 'msc', 'nx', 'autodesk', 'nasa95', or 'optistruct' :param mode: :type mode: str :returns: None .. todo:: Fill in info for parameters in docstring """ # Use dict to avoid long if-elif-else blocks to direct flow of traffic traffic_cop = { 'msc': self.set_as_msc(), 'nx': self.set_as_nx(), 'autodesk': self.set_as_autodesk(), 'nasa95': self.set_as_nasa95(), 'optistruct': self.set_as_optistruct(), # 'radioss': self.set_as_optistruct() # FIXME: Work in progress?? } try: traffic_cop[mode.lower()] except KeyError: raise KeyError(f'mode={mode!r} and must be in [msc, nx, autodesk, ' f'nasa95, optistruct]') return None def to_nx(self, msg='') -> None: # TODO: Docstring for this method if self.is_msc: self.log.warning(f'switching to NX{msg}') self.set_as_nx() self.set_table_type() return None def to_msc(self, msg='') -> None: # TODO: Docstring for this method if self.is_nx: self.log.warning(f'switching to MSC{msg}') self.set_as_msc() return None def include_exclude_results(self, exclude_results: Optional[List[str]] = None, include_results: Optional[List[str]] = None ) -> None: """Sets results to include/exclude Parameters ---------- exclude_results / include_results : List[str] / str; default=None a list of result types to exclude/include one of these must be None """ if exclude_results and include_results: msg = (f'exclude_results or include_results must be None\n' f'exclude_results = {exclude_results!r}\ninclude_results = ' f'{include_results!r}\n') raise RuntimeError(msg) if exclude_results: self.remove_results(exclude_results) elif include_results: self.set_results(include_results) def saves(self) -> Union[str, bytes]: """Saves a pickled string""" return dumps(self) def __getstate__(self): """Clears out a few variables in order to pickle the object Copy the object's state from self.__dict__ which contains all our instance attributes. Always use the dict.copy() method to avoid modifying the original state. """ state = self.__dict__.copy() del state['log'] # Remove the unpicklable entries. if hasattr(self, 'results') and hasattr(self._results, 'log'): del state['_results'].log # This block let's us identify the objects that are problematic We # just play with the value of i to delete all objects past some # threshold. Once we find where the code breaks, we dig into the # objects further if 0: # pragma: no cover # FIXME: Why though? What is this even accomplishing? i = 0 for key, value in sorted(state.items()): if isinstance(value, dict) and len(value) == 0: continue if i > 100: del state[key] else: i += 1 return state def save(self, obj_filename: str = 'model.obj', unxref: bool = True ) -> None: """Saves a pickleable object""" if hasattr(self, 'generalized_tables'): del self.generalized_tables if hasattr(self, 'op2_reader'): del self.op2_reader with open(obj_filename, 'wb') as obj_file: dump(self, obj_file) return None def load(self, obj_filename: str = 'model.obj') -> None: """Loads a pickleable object""" with open(obj_filename, 'rb') as obj_file: obj = load(obj_file) keys_to_skip = ['_close_op2', '_count', '_results', '_table_mapper', 'ask', 'binary_debug', 'additional_matrices', 'apply_symmetry', 'debug_file', 'expected_times', 'f', 'generalized_tables', 'is_all_subcases', 'is_debug_file', 'is_geometry', 'is_vectorized', 'isubcase', 'log', 'matrix_tables', 'mode', 'n', 'ntotal', 'num_wide', 'op2_reader', 'table_name', 'use_vector', 'words'] keys = object_attributes(self, mode="all", keys_to_skip=keys_to_skip, filter_properties=True) val = '' # Silence variable usage before declaration? for key in keys: if key.startswith('__') and key.endswith('__'): continue try: val = getattr(obj, key) except NameError: self.log.warning(f'key={key!r} val={val}') continue try: setattr(self, key, val) except AttributeError: print(f'key={key!r} val={val}') raise self.log.debug('done loading!') @property def is_geometry(self) -> bool: # TODO: Why is this a thing? What is it even for? Is this a # future-proofing thing for a WIP feature? So many questions... return False def read_op2(self, op2_filename: Optional[str] = None, combine: bool = True, build_dataframe: Optional[bool] = False, skip_undefined_matrices: bool = False, encoding: Optional[str] = None) -> None: """Starts the OP2 file reading Parameters ---------- op2_filename : str (default=None -> popup) the op2_filename combine : bool; default=True True : objects are isubcase based False : objects are (isubcase, subtitle) based; will be used for superelements regardless of the option build_dataframe : bool (default=None -> True if in iPython, False otherwise) builds a pandas DataFrame for op2 objects None: True if in iPython, False otherwise skip_undefined_matrices : bool; default=False True : prevents matrix reading crashes encoding : str the unicode encoding (default=None; system default) """ if op2_filename: check_path(op2_filename, name='op2_filename') mode = self.mode if build_dataframe is None: build_dataframe = False if ipython_info(): build_dataframe = True if encoding is None: encoding = sys.getdefaultencoding() self.encoding = encoding self.skip_undefined_matrices = skip_undefined_matrices assert self.ask in [True, False], self.ask self.is_vectorized = True self.log.debug(f'combine={combine}') msg = f'{"-"*8} reading op2 with read_mode=1 (array sizing) {"-"*8}' self.log.debug(msg) self.read_mode = 1 self._close_op2 = False load_as_h5 = False if hasattr(self, 'load_as_h5'): load_as_h5 = self.load_as_h5 try: # get GUI object names, build objects, but don't read data table_names = OP2_Scalar.read_op2(self, op2_filename=op2_filename, load_as_h5=load_as_h5, mode=mode) self.table_names = table_names # TODO: Stuff to figure out objects. # TODO: Stuff to show GUI of table names. # TODO: Clear out objects the user doesn't want. # TODO: Consider a globalized Enum sub-class to do this stuff with # more readable asignments self.read_mode = 2 self._close_op2 = True msg = (f'{"-"*8} reading op2 with read_mode=2 (array filling) ' f'{"-"*8}') self.log.debug() _create_hdf5_info(self.op2_reader.h5_file, self) OP2_Scalar.read_op2(self, op2_filename=self.op2_filename, mode=mode) except FileNotFoundError: raise except Exception as e: # Added ``Exception as e`` OP2_Scalar.close_op2(self, force=True) raise e self._finalize() if build_dataframe: self.build_dataframe() self.create_objects_from_matrices() self.combine_results(combine=combine) self.log.debug('finished reading op2') str(self.op2_results) return None def create_objects_from_matrices(self) -> None: """Creates objects monitor1, monitor3 creates the following objects: - monitor3 : MONPNT3 object from the MP3F matrix - monitor1 : MONPNT1 object from the PMRF, PERF, PFRF, AGRF, PGRF, AFRF matrices """ if 'MP3F' in self.matrices: self.op2_results.monitor3 = MONPNT3(self._frequencies, self.matrices['MP3F']) # TODO: These are totally wrong...it doesn't go by component; it goes # by inertial, external, flexibility, etc. if 'PERF' in self.matrices: self.op2_results.monitor1 = MONPNT1( self._frequencies, self.matrices, # :) ? :) :)2 ? ? ['PMRF', 'PERF', 'PFRF', 'AGRF', 'PGRF', 'AFRF', ]) return None def _finalize(self) -> None: """internal method .. todo:: Elaborate on this; what does it do? -als0052 """ if hasattr(self, 'subcase'): del self.subcase result_types = self.get_table_types() result_type_list = ['params', 'gpdt', 'bgpdt', 'eqexin', 'psds', 'monitor1', 'monitor3'] for result_type in result_types: if (result_type in result_type_list or result_type.startswith('responses.')): continue result = self.get_result(result_type) try: values = result.values() except AttributeError: self.log.error(f'result_type = {result_type}') raise for obj in values: if hasattr(obj, 'finalize'): obj.finalize() elif hasattr(obj, 'tCode') and not obj.is_sort1: msg = (f'object has not implemented ' f'finalize\n{"".join(obj.get_stats())}') raise RuntimeError(msg) self.del_structs() def build_dataframe(self) -> None: """Converts the OP2 objects into pandas DataFrames .. todo:: fix issues with: - RealDisplacementArray - RealPlateStressArray (???) - RealPlateStrainArray (???) - RealCompositePlateStrainArray (???) """ # TODO: Wouldn't it make more sense for this return a pandas.DataFrame # obj? -als0052 # TODO: sorter = uniques.argsort() # FIXME: C:\Anaconda\lib\site-packages\pandas\core\algorithms.py:198: # DeprecationWarning: unorderable dtypes; returning scalar but # in the future this will be an error no_sort2_classes = ['RealEigenvalues', 'ComplexEigenvalues', 'BucklingEigenvalues'] result_types = self.get_table_types() skip_pandas = ['params', 'gpdt', 'bgpdt', 'eqexin', 'psds', 'monitor1', 'grid_point_weight', 'monitor3'] if len(self.matrices): for key, matrix in sorted(self.matrices.items()): if hasattr(matrix, 'build_dataframe'): matrix.build_dataframe() else: msg = (f'pandas: build_dataframe is not supported for key=' f'{key} type={str(type(matrix))}') self.log.warning(msg) raise NotImplementedError() for result_type in result_types: if (result_type in skip_pandas or result_type.startswith('responses.')): continue result = self.get_result(result_type) for obj in result.values(): class_name = obj.__class__.__name__ obj.object_attributes() obj.object_methods() str(obj) obj.get_stats() if class_name in no_sort2_classes: try: obj.build_dataframe() assert obj.data_frame is not None except MemoryError: raise except Exception as e: self.log.error(obj) msg = f'build_dataframe is broken for {class_name}' self.log.error(msg) raise e continue if obj.is_sort2: msg = ( f'build_dataframe is not supported for {class_name} ' f'- SORT2') self.log.warning(msg) continue # SORT1 try: obj.build_dataframe() except MemoryError: raise except NotImplementedError: self.log.warning(obj) self.log.warning(f'build_dataframe is broken for ' f'{class_name}') raise except Exception as e: self.log.error(obj) self.log.error(f'build_dataframe is broken for ' f'{class_name}') raise e def load_hdf5_filename(self, hdf5_filename: str, combine: bool = True ) -> None: """Loads an h5 file into an OP2 object Parameters ---------- hdf5_filename : str the path to the an hdf5 file combine : bool; default=True runs the combine routine """ check_path(hdf5_filename, 'hdf5_filename') self.op2_filename = hdf5_filename self.log.info(f'hdf5_op2_filename = {hdf5_filename!r}') debug = False with h5py.File(hdf5_filename, 'r') as h5_file: load_op2_from_hdf5_file(self, h5_file, self.log, debug=debug) self.combine_results(combine=combine) return None def load_hdf5_file(self, h5_file: H5File, combine: bool = True) -> None: """Loads an h5 file object into an OP2 object Parameters ---------- h5_file : H5File() an h5py file object combine : bool; default=True runs the combine routine """ debug = False load_op2_from_hdf5_file(self, h5_file, self.log, debug=debug) self.combine_results(combine=combine) return None def export_hdf5_filename(self, hdf5_filename: str) -> None: """Converts the OP2 objects into hdf5 object .. todo:: doesn't support ``BucklingEigenvalues`` """ export_op2_to_hdf5_filename(hdf5_filename, self) return None def export_hdf5_file(self, hdf5_file: H5File, exporter=None) -> None: """Converts the OP2 objects into hdf5 object Parameters ---------- hdf5_file : H5File() an h5py object exporter : HDF5Exporter; default=None unused .. todo:: doesn't support ``BucklingEigenvalues`` """ export_op2_to_hdf5_file(hdf5_file, self) return None def combine_results(self, combine: Union[str, bool] = True) -> None: """Group and format like data by subcase We want the data to be in the same format and grouped by subcase, so we take .. code-block:: python stress = { # isubcase, analysis_code, sort_method, count, superelement_adaptivity_index, pval_step (1, 2, 1, 0, 'SUPERELEMENT 0', '') : result1, (1, 2, 1, 0, 'SUPERELEMENT 10', '') : result2, (1, 2, 1, 0, 'SUPERELEMENT 20', '') : result3, (2, 2, 1, 0, 'SUPERELEMENT 0', '') : result4, code = (isubcase, analysis_code, sort_method, count, ogs, superelement_adaptivity_index, pval_step) } and convert it to: .. code-block:: python stress = { 1 : result1 + result2 + results3, 2 : result4, } """ self.combine = combine result_types = self.get_table_types() results_to_skip = ['bgpdt', 'gpdt', 'eqexin', 'grid_point_weight', 'psds', 'monitor1', 'monitor3'] # set subcase_key for result_type in result_types: if (result_type in results_to_skip or result_type.startswith('responses.')): continue result = self.get_result(result_type) try: case_keys = sorted(result.keys()) except AttributeError: self.log.error(f'result_type = {result_type}') raise for case_key in case_keys: if isinstance(case_key, tuple): isubcasei, analysis_codei, *others = case_key if others[4] == 0: value = [analysis_codei] + others[:3] else: value = [analysis_codei] + others if value not in self.subcase_key[isubcasei]: self.subcase_key[isubcasei].append(value) else: break if not combine: subcase_key2 = {} for key, value in self.subcase_key.items(): subcase_key2[key] = value self.subcase_key = subcase_key2 return del result, case_keys isubcases = np.unique(list(self.subcase_key.keys())) unique_isubcases = np.unique(isubcases) self.log.debug('combine_results') for result_type in result_types: if (result_type in results_to_skip or result_type.startswith('responses.')): continue result = self.get_result(result_type) if len(result) == 0: continue for isubcase in unique_isubcases: try: keys = self.subcase_key[isubcase] except TypeError: print('isubcase =', isubcase) print('isubcases =', isubcases) print('self.subcase_key =', self.subcase_key) raise key0 = tuple([isubcase] + list(keys[0])) if len(key0) == 5: # ogs is optional isubcase, analysis_code, *others = key0 key1 = [isubcase, analysis_code, 1] + others[0:] key2 = [isubcase, analysis_code, 2] + others[0:] else: isubcase, analysis_code, *others = key0 key1 = [isubcase, analysis_code, 1] + others[0:] key2 = [isubcase, analysis_code, 1] + others[0:] if len(keys) == 1: if key0 not in result: continue # One tuple for result; Rename case result[isubcase] = result[key0] del result[key0] elif len(keys) == 2 and key1 in keys and key2 in keys: isubcase, analysis_code, *others = key0 if not (key1 in result and key2 in result): if key1 in result: res1 = result[key1] msg = (f"res={res1.__class__.__name__} has a " f"single case; trivial") self.log.info(msg) result[isubcase] = result[key1] del result[key1] elif key2 in result: res2 = result[key2] msg = (f'res={res2.__class__.__name__} has a ' f'single case; trivial') self.log.info(msg) result[isubcase] = result[key2] del result[key2] continue res1 = result[key1] class_name = res1.__class__.__name__ if not hasattr(res1, 'combine'): self.log.info( f'res={class_name} has no method combine') continue self.log.info(f'res={class_name} has combine') res2 = result[key2] del result[key1] del result[key2] res1.combine(res2) result[isubcase] = res1 else: continue setattr(self, result_type, result) subcase_key2 = {} not_results = ['eigenvalues', 'eigenvalues_fluid', 'params', 'gpdt', 'bgpdt', 'eqexin', 'desvars', 'grid_point_weight', 'psds', 'monitor1', 'monitor3'] for result_type in result_types: if (result_type in not_results or result_type.startswith('responses.')): continue result = self.get_result(result_type) try: case_keys = list(result.keys()) except AttributeError: self.log.error(f'result_type = {result_type}') raise try: # FIXME: causes DeprecationWarning case_keys = sorted(case_keys) except TypeError: self.log.error(f'result.keys() = {case_keys}') if len(result) == 0: continue for isubcase in unique_isubcases: if isubcase not in subcase_key2: subcase_key2[isubcase] = [] for isubcase in unique_isubcases: for case_key in case_keys: assert not isinstance(case_key, str), result_type if isinstance(case_key, integer_types): if (isubcase == case_key and case_key not in subcase_key2[isubcase]): subcase_key2[isubcase] = [isubcase] else: try: subcasei = case_key[0] except IndexError: msg = (f'case_key={case_key}; type(case_key)=' f'{type(case_key)}; case_key[0] is not the ' f'subcase id') raise IndexError(msg) if case_key not in subcase_key2[subcasei]: subcase_key2[isubcase].append(case_key) self.subcase_key = subcase_key2 return None def get_key_order(self) -> list[tuple[Any, Any, Any, Any, Union[int, Any], Any, Any]]: """Get the order of the keys Returns ------- keys3 : List[int, int, int, int, int, str] the keys in order """ keys = [] table_types = self.get_table_types() skip_tables = ['gpdt', 'bgpdt', 'eqexin', 'grid_point_weight', 'psds', 'monitor1', 'monitor3'] for table_type in sorted(table_types): if (table_type in skip_tables or table_type.startswith('responses.')): continue result_type_dict = self.get_result(table_type) if len(result_type_dict) == 0: continue for key in result_type_dict: if isinstance(key, str): if (table_type not in ['eigenvalues', 'eigenvalues_fluid', 'params']): self.log.warning(f'table_type = {table_type}') continue if key not in keys: keys.append(key) analysis_codes = set() counts = set() isubcases = set() ogss = set() pval_steps = set() sort_methods = set() superelement_adaptivity_indexs = set() for key in keys: if len(key) == 6: isubcases, analysis_codes, *others = key ogss = 0 elif len(key) == 7: isubcases, analysis_codes, *others = key else: print(f' {str(key)}') raise RuntimeError(key) isubcases.add(isubcases) analysis_codes.add(analysis_codes) sort_methods.add(sort_methods) counts.add(counts) ogss.add(ogss) superelement_adaptivity_indexs.add(superelement_adaptivity_indexs) pval_steps.add(pval_steps) analysis_code_list = list(analysis_codes) count_list = list(counts) isubcase_list = list(isubcases) ogs_list = list(ogss) pval_step_list = list(pval_steps) sort_method_list = list(sort_methods) superelement_adaptivity_index_list = list( superelement_adaptivity_indexs) analysis_code_list.sort() count_list.sort() isubcase_list.sort() ogs_list.sort() pval_step_list.sort() sort_method_list.sort() superelement_adaptivity_index_list.sort() keys3 = [] # TODO: This needs to go away and be replaced by something else :( for isubcase in isubcase_list: for count in count_list: for analysis_code in analysis_code_list: for sai in superelement_adaptivity_index_list: for pval_step in pval_step_list: for sort_method in sort_method_list: for ogs in ogs_list: key = (isubcase, analysis_code, sort_method, count, ogs, sai, pval_step) if key not in keys3: keys3.append(key) if len(keys3) == 0: msg = f'No results...\n{self.get_op2_stats(short=True)}' self.log.warning(msg) return keys3 def print_subcase_key(self) -> None: # TODO: Docstring for this method self.log.info('---self.subcase_key---') for isubcase, keys in sorted(self.subcase_key.items()): if len(keys) == 1: self.log.info(f'subcase_id = {isubcase} : keys = {keys}') else: self.log.info(f'subcase_id = {isubcase}') for key in keys: self.log.info(f' {str(key)}') return None def transform_displacements_to_global(self, icd_transform: Any, coords: Dict[int, Any], xyz_cid0: Any = None, debug: bool = False) -> None: """Transform displacements into global coords Transforms the ``data`` of displacement-like results into the global coordinate system for those nodes with different output coordinate systems. Takes indices and transformation matrices for nodes with their output in coordinate systems other than the global. Used in combination with ``BDF.get_displacement_index`` Parameters ---------- icd_transform : dict{int cid : int ndarray} Dictionary from coordinate id to index of the nodes in ``BDF.point_ids`` that their output (`CD`) in that coordinate system. coords : dict{int cid :Coord()} Dictionary of coordinate id to the coordinate object Use this if CD is only rectangular Use this if CD is not rectangular xyz_cid0 : (nnodes+nspoints, 3) float ndarray the nodes in the global frame Don't use this if CD is only rectangular Use this if CD is not rectangular debug : bool; default=False developer debug .. warning:: only works if all nodes are included... ``test_pynastrangui isat_tran.dat isat_tran.op2 -f nastran`` .. note:: Nastran has this concept of a basic (cid=0) and global (cid=cd) coordinate system. They occur at the same time. Basic is for positions/properties, while global is for result outputs. pyNastran's OP2 interface uses: - cd=0 for global frames - cd>0 are local frames pyNastran's BDF interface uses: - cp=0 for global frames - cp>0 are local frames """ ato = self.op2_results.ato crm = self.op2_results.crm psd = self.op2_results.psd rms = self.op2_results.rms # ----- I feel like this is more readable even though it is a bit # longer and more verbose # TODO: Should NO results be transformed? # _no_displacements = [no.displacements, no.velocities, # no.accelerations, no.spc_forces, no.mpc_forces] _disp = [ self.displacements, ato.displacements, crm.displacements, psd.displacements, rms.displacements, self.displacements_scaled, self.displacement_scaled_response_spectra_abs, self.displacement_scaled_response_spectra_nrl] _vel = [self.velocities, ato.velocities, crm.velocities, psd.velocities, rms.velocities, self.velocity_scaled_response_spectra_abs] _accel = [ self.accelerations, ato.accelerations, crm.accelerations, psd.accelerations, rms.accelerations, self.acceleration_scaled_response_spectra_abs, self.acceleration_scaled_response_spectra_nrl] _eig = [ self.eigenvectors, self.op2_results.RADCONS.eigenvectors, self.op2_results.RADEFFM.eigenvectors, self.op2_results.RADEATC.eigenvectors, self.op2_results.ROUGV1.eigenvectors] _spc = [self.spc_forces, ato.spc_forces, crm.spc_forces, psd.spc_forces, rms.spc_forces] _mpc = [self.mpc_forces, ato.mpc_forces, crm.mpc_forces, psd.mpc_forces, rms.mpc_forces] _loads = [self.applied_loads, self.load_vectors] disp_like_dicts = _disp + _vel + _accel + _eig + _spc + _mpc + _loads del _disp, _vel, _accel, _eig, _spc, _mpc, _loads # ----- for disp_like_dict in disp_like_dicts: if not disp_like_dict: continue for subcase, result in disp_like_dict.items(): if result.table_name in ['BOUGV1', 'BOPHIG', 'TOUGV1']: continue self.log.debug(f'transforming {result.table_name}') transform_displacement_to_global( subcase, result, icd_transform, coords, xyz_cid0, self.log, debug=debug) return None def transform_gpforce_to_global(self, nids_all, nids_transform, icd_transform, coords, xyz_cid0=None): """Transform GPFORCE into global coords Transforms the ``data`` of GPFORCE results into the global coordinate system for those nodes with different output coordinate systems. Takes indices and transformation matrices for nodes with their output in coordinate systems other than the global. Used in combination with ``BDF.get_displacement_index`` Parameters ---------- nids_all : ??? ??? nids_transform : dict{int cid : int ndarray nds} Dictionary from coordinate id to corresponding node ids. icd_transform : dict{int cid : int ndarray} Dictionary from coordinate id to index of the nodes in ``BDF.point_ids`` that their output (`CD`) in that coordinate system. coords : dict{int cid :Coord()} Dictionary of coordinate id to the coordinate object Use this if CD is only rectangular Use this if CD is not rectangular xyz_cid0 : ??? required for cylindrical/spherical coordinate systems .. todo:: Docstring needs some work. .. todo:: Return type for this method should be specified in signature to be consistent with all other method signatures. """ # TODO: Causes test_op2_solid_shell_bar_01_gpforce_xyz to fail even # though it should be uncommented disp_like_dicts = [self.grid_point_forces] for disp_like_dict in disp_like_dicts: if not disp_like_dict: continue self.log.debug(f'{"-" * 11}') for subcase, result in disp_like_dict.items(): transform_gpforce_to_globali( subcase, result, nids_all, nids_transform, icd_transform, coords, xyz_cid0, self.log) self.log.debug(f'{"-" * 11}') def read_op2(op2_filename: Optional[str] = None, load_geometry: bool = False, combine: bool = True, subcases: Optional[List[int]] = None, exclude_results: Optional[List[str]] = None, include_results: Optional[List[str]] = None, log: Any = None, debug: Optional[bool] = True, build_dataframe: Optional[bool] = False, skip_undefined_matrices: bool = True, mode: Optional[str] = None, encoding: Optional[str] = None) -> OP2: """Creates the OP2 object without calling the OP2 class. Parameters ---------- op2_filename : str (default=None -> popup) the op2_filename load_geometry: bool; default=False False: load results and matrices True: load geometry as well combine : bool; default=True True : objects are isubcase based False : objects are (isubcase, subtitle) based; will be used for superelements regardless of the option subcases : List[int, ...] / int; default=None->all subcases list of [subcase1_ID,subcase2_ID] exclude_results / include_results : List[str] / str; default=None a list of result types to exclude/include one of these must be None build_dataframe : bool; default=False builds a pandas DataFrame for op2 objects None: True if in iPython, False otherwise skip_undefined_matrices : bool; default=False True : prevents matrix reading crashes debug : bool/None; default=True used to set the logger if no logger is passed in True: logs debug/info/warning/error messages False: logs info/warning/error messages None: logs warning/error messages log : Log() a logging object to write debug messages to (.. seealso:: import logging) mode : str; default=None -> 'msc' the version of the Nastran you're using {nx, msc, autodesk, optistruct, nasa95} encoding : str the unicode encoding (default=None; system default) exclude_results: include_results: debug: Returns ------- model : OP2() an OP2 object .. note :: This method will change in order to return an object that does not have so many methods. .. todo:: Creates the OP2 object without all the read methods. .. todo:: Update info for parameters in this function's docstring. """ if op2_filename: check_path(op2_filename, name='op2_filename') if load_geometry: # TODO: kwargs support for methods kw = {'op2_filename': op2_filename, 'combine': combine, 'subcases': subcases, 'exclude_results': exclude_results, 'include_results': include_results, 'validate': True, 'xref': True, 'build_dataframe': build_dataframe, 'skip_undefined_matrices': skip_undefined_matrices, 'mode': mode, 'log': log, 'debug': debug, 'encoding': encoding} model = read_op2_geom(**kw) else: model = OP2(log=log, debug=debug, mode=mode) model.set_subcases(subcases) model.include_exclude_results(exclude_results=exclude_results, include_results=include_results) # TODO: kwargs support kw = {'op2_filename': op2_filename, 'build_dataframe': build_dataframe, 'skip_undefined_matrices': skip_undefined_matrices, 'combine': combine, 'encoding': encoding} model.read_op2(**kw) # TODO: This will go away when OP2 is refactored. Many methods will be # missing, but it's a start... # Doesn't support F06 writer # obj = Op2F06Attributes() # attr_names = object_attributes(obj, mode="public", keys_to_skip=None) # for attr_name in attr_names: # attr = getattr(model, attr_name) # setattr(obj, attr_name, attr) # obj.get_op2_stats() return model def _create_hdf5_info(h5_file: H5File, op2_model: OP2) -> None: """Exports the h5 info group :param h5_file: :type h5_file: H5File :param op2_model: :type op2_model: OP2 :returns: None .. todo:: Docstring info for parameters. """ load_as_h5 = False if hasattr(op2_model, 'load_as_h5'): load_as_h5 = op2_model.load_as_h5 if not load_as_h5: return create_info_group(h5_file, op2_model) return None
[ 1, 529, 276, 1112, 420, 29958, 1338, 29900, 29900, 29945, 29906, 29914, 2272, 29940, 7614, 273, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 29937, 2514, 3871, 29901, 1015, 29906, 29889, 2272, 13, 13, 15945, 29908, 13, 3206, 1475, 278, 1667, 6418, 29906, 770, 29889, 5282, 1475, 29901, 13, 13, 448, 1303, 29918, 459, 29906, 29898, 459, 29906, 29918, 9507, 29922, 8516, 29892, 14405, 29922, 5574, 29892, 1014, 11436, 29922, 8516, 29892, 29871, 13, 9651, 19060, 29918, 9902, 29922, 8516, 29892, 3160, 29918, 9902, 29922, 8516, 29892, 13, 9651, 1480, 29922, 8516, 29892, 4744, 29922, 5574, 29892, 4744, 29918, 1445, 29922, 8516, 29892, 2048, 29918, 1272, 2557, 29922, 8824, 29892, 13, 9651, 14383, 29918, 15955, 29918, 2922, 11669, 29922, 5574, 29892, 4464, 2433, 1516, 29883, 742, 8025, 29922, 8516, 29897, 13, 13, 448, 6418, 29906, 29898, 8382, 29922, 5574, 29892, 1480, 29922, 8516, 29892, 4744, 29918, 1445, 29922, 8516, 29892, 4464, 2433, 1516, 29883, 1495, 13, 259, 448, 2048, 29918, 1272, 2557, 580, 13, 259, 448, 14405, 29918, 9902, 29898, 17743, 457, 29922, 5574, 29897, 13, 259, 448, 1653, 29918, 12650, 29918, 3166, 29918, 2922, 11669, 580, 13, 259, 448, 1203, 29918, 15697, 29898, 8513, 2433, 3597, 742, 6611, 29918, 517, 29918, 11014, 29922, 8516, 29892, 13, 462, 539, 4175, 29918, 11330, 29922, 8824, 29897, 13, 259, 448, 1203, 29918, 23515, 29898, 8513, 2433, 3597, 742, 6611, 29918, 517, 29918, 11014, 29922, 8516, 29897, 13, 259, 448, 1596, 29918, 1491, 4878, 29918, 1989, 580, 13, 259, 448, 1303, 29918, 459, 29906, 29898, 459, 29906, 29918, 9507, 29922, 8516, 29892, 14405, 29922, 5574, 29892, 2048, 29918, 1272, 2557, 29922, 8824, 29892, 13, 795, 14383, 29918, 15955, 29918, 2922, 11669, 29922, 8824, 29892, 8025, 29922, 8516, 29897, 13, 259, 448, 731, 29918, 8513, 29898, 8513, 29897, 13, 259, 448, 4327, 29918, 2218, 29886, 4620, 4110, 29918, 517, 29918, 10945, 29898, 29875, 29918, 9067, 29892, 1302, 4339, 29892, 921, 12339, 29918, 25232, 29900, 29922, 8516, 29892, 13, 462, 462, 539, 4744, 29922, 8824, 29897, 13, 259, 448, 4327, 29918, 29887, 29886, 10118, 29918, 517, 29918, 10945, 29898, 29876, 4841, 29918, 497, 29892, 302, 4841, 29918, 9067, 29892, 474, 29918, 9067, 29892, 1302, 4339, 29892, 13, 462, 462, 921, 12339, 29918, 25232, 29900, 29922, 8516, 29897, 13, 13, 13, 21459, 13, 26589, 13, 29930, 313, 29896, 29896, 29899, 29896, 29955, 29899, 29906, 29900, 29906, 29896, 29897, 313, 1338, 29900, 29900, 29945, 29906, 1125, 383, 11925, 777, 19229, 5626, 29936, 2715, 777, 6589, 29936, 1898, 13, 462, 3986, 304, 1207, 278, 775, 901, 19909, 322, 5505, 8543, 29973, 13, 29930, 313, 29900, 29896, 29899, 29906, 29929, 29899, 29906, 29900, 29906, 29896, 29897, 313, 1338, 29900, 29900, 29945, 29906, 1125, 678, 6916, 304, 777, 9461, 5877, 304, 671, 901, 5400, 13, 462, 3986, 5132, 5680, 313, 14043, 3117, 817, 304, 701, 278, 13, 462, 3986, 9212, 5132, 11809, 416, 390, 799, 29878, 4618, 777, 29871, 13, 462, 3986, 775, 304, 1207, 372, 263, 2586, 6775, 304, 1303, 29936, 498, 27464, 29871, 13, 462, 3986, 714, 777, 6589, 29936, 2715, 777, 6589, 313, 3242, 368, 29871, 13, 462, 3986, 304, 437, 4452, 29897, 13, 13, 1762, 1938, 25085, 13, 1378, 5634, 13, 636, 10481, 1057, 1128, 304, 2130, 278, 349, 7086, 3630, 4308, 515, 278, 6418, 29906, 5446, 29973, 306, 1016, 29915, 29873, 1584, 1074, 13, 3986, 349, 7086, 408, 385, 1053, 29889, 13, 15945, 29908, 13, 13, 3166, 4770, 29888, 9130, 1649, 1053, 25495, 13, 13, 3166, 11451, 29940, 7614, 273, 29889, 459, 29906, 29889, 12523, 1053, 313, 13685, 3399, 2392, 29892, 21830, 3399, 2392, 29892, 13, 462, 462, 29871, 7236, 661, 24619, 2392, 29892, 6101, 29312, 29943, 473, 21591, 2392, 29892, 13, 462, 462, 29871, 6811, 3539, 3562, 2392, 29897, 13, 3166, 11451, 29940, 7614, 273, 29889, 459, 29906, 29889, 459, 29906, 29918, 13248, 29889, 29882, 2176, 29945, 29918, 13248, 1053, 5609, 29918, 459, 29906, 29918, 517, 29918, 29882, 2176, 29945, 29918, 1445, 13, 3166, 11451, 29940, 7614, 273, 29889, 459, 29906, 29889, 459, 29906, 29918, 13248, 29889, 29882, 2176, 29945, 29918, 13248, 1053, 320, 13, 1678, 5609, 29918, 459, 29906, 29918, 517, 29918, 29882, 2176, 29945, 29918, 9507, 13, 3166, 11451, 29940, 7614, 273, 29889, 459, 29906, 29889, 459, 29906, 29918, 13248, 29889, 9067, 29879, 1053, 313, 13, 1678, 4327, 29918, 2218, 29886, 9552, 29918, 517, 29918, 10945, 29892, 4327, 29918, 29887, 29886, 10118, 29918, 517, 29918, 23705, 2606, 29897, 13, 3166, 11451, 29940, 7614, 273, 29889, 459, 29906, 29889, 459, 29906, 29918, 13248, 29889, 29882, 2176, 29945, 29918, 13248, 1053, 2254, 29918, 459, 29906, 29918, 3166, 29918, 29882, 2176, 29945, 29918, 1445, 13, 3166, 11451, 29940, 7614, 273, 29889, 13239, 1053, 1203, 29918, 15697, 29892, 1203, 29918, 23515, 29892, 474, 4691, 29918, 3888, 13, 3166, 11451, 29940, 7614, 273, 29889, 459, 29906, 29889, 459, 29906, 29918, 13248, 29889, 29882, 2176, 29945, 29918, 13248, 1053, 1653, 29918, 3888, 29918, 2972, 13, 3166, 11451, 29940, 7614, 273, 29889, 459, 29906, 29889, 2914, 29918, 12650, 29889, 3712, 29886, 593, 1053, 341, 1164, 15695, 29911, 29896, 29892, 341, 1164, 15695, 29911, 29941, 13, 3166, 11451, 29940, 7614, 273, 29889, 459, 29906, 29889, 459, 29906, 29918, 13248, 29889, 459, 29906, 29918, 19529, 279, 1053, 6418, 29906, 29918, 29636, 279, 13, 3166, 11451, 29940, 7614, 273, 29889, 459, 29906, 29889, 13236, 29889, 459, 29906, 29918, 13236, 1053, 6418, 29906, 10507, 13, 3166, 11451, 29940, 7614, 273, 29889, 13239, 29889, 23749, 29918, 13239, 1053, 6043, 29918, 8768, 13, 3166, 11451, 29940, 7614, 273, 29889, 459, 29906, 29889, 459, 29906, 29918, 479, 290, 1053, 1303, 29918, 459, 29906, 29918, 479, 290, 13, 3166, 11451, 29940, 7614, 273, 29889, 29888, 29900, 29953, 29889, 12523, 1053, 383, 2075, 2392, 13, 3166, 11451, 29940, 7614, 273, 29889, 13239, 1053, 1423, 29918, 2084, 13, 13, 3166, 19229, 1053, 2391, 29892, 360, 919, 29892, 12603, 552, 29892, 28379, 29892, 3139, 29892, 323, 6959, 29918, 3210, 16658, 4214, 29892, 7761, 13, 3166, 5839, 280, 1053, 2254, 29892, 16766, 29892, 270, 17204, 13, 3166, 16250, 1053, 2322, 8977, 13, 5215, 12655, 408, 7442, 13, 5215, 298, 29945, 2272, 13, 5215, 10876, 13, 13, 361, 323, 6959, 29918, 3210, 16658, 4214, 29901, 13, 1678, 515, 298, 29945, 2272, 1053, 3497, 408, 379, 29945, 2283, 13, 13, 29937, 1053, 11451, 29940, 7614, 273, 13, 29937, 515, 11451, 29940, 7614, 273, 29889, 459, 29906, 29889, 459, 29906, 29918, 13248, 29889, 459, 29906, 29918, 29888, 29900, 29953, 29918, 9435, 1053, 6461, 29906, 29943, 29900, 29953, 15801, 13, 13, 13, 1990, 6418, 29906, 29898, 4590, 29906, 29918, 29636, 279, 29892, 6418, 29906, 10507, 1125, 13, 1678, 903, 11330, 353, 6024, 275, 29918, 6370, 742, 525, 275, 29918, 19676, 742, 525, 275, 29918, 8172, 742, 22868, 6605, 29918, 5696, 742, 13, 462, 259, 525, 275, 29918, 6605, 29896, 742, 525, 275, 29918, 6605, 29906, 742, 525, 5344, 29918, 24051, 742, 525, 2371, 29918, 978, 29918, 710, 2033, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 4744, 29901, 28379, 29961, 11227, 29962, 353, 5852, 29892, 1480, 29901, 3139, 353, 6213, 29892, 13, 462, 4744, 29918, 1445, 29901, 28379, 29961, 710, 29962, 353, 6213, 29892, 4464, 29901, 28379, 29961, 710, 29962, 353, 6213, 13, 462, 1723, 1599, 6213, 29901, 13, 4706, 9995, 15514, 7093, 278, 6418, 29906, 1203, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 4744, 584, 6120, 29914, 8516, 29936, 2322, 29922, 5574, 13, 9651, 1304, 304, 731, 278, 17927, 565, 694, 17927, 338, 4502, 297, 13, 18884, 5852, 29901, 29871, 10748, 4744, 29914, 3888, 29914, 27392, 29914, 2704, 7191, 13, 18884, 7700, 29901, 10748, 5235, 29914, 27392, 29914, 2704, 7191, 13, 18884, 6213, 29901, 29871, 10748, 9177, 29914, 2704, 7191, 13, 4706, 1480, 584, 4522, 580, 13, 9651, 263, 12183, 1203, 304, 2436, 4744, 7191, 304, 13, 13, 9651, 6317, 1074, 15189, 1057, 1053, 12183, 13, 13, 4706, 4744, 29918, 1445, 584, 851, 29936, 2322, 29922, 8516, 313, 3782, 4744, 29897, 13, 9651, 6166, 278, 10422, 393, 674, 367, 3971, 304, 13, 4706, 4464, 584, 851, 29936, 2322, 29922, 8516, 1599, 525, 1516, 29883, 29915, 13, 9651, 426, 1516, 29883, 29892, 302, 29916, 29913, 13, 4706, 9995, 13, 4706, 1583, 29889, 22331, 353, 6213, 13, 4706, 1583, 29889, 8513, 353, 4464, 13, 4706, 565, 4464, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 842, 29918, 8513, 29898, 8513, 29897, 13, 4706, 1207, 29918, 479, 290, 353, 7700, 13, 4706, 4974, 1207, 29918, 479, 290, 338, 7700, 29892, 1207, 29918, 479, 290, 13, 4706, 6418, 29906, 29918, 29636, 279, 17255, 2344, 12035, 1311, 29892, 4744, 29922, 8382, 29892, 1480, 29922, 1188, 29892, 4744, 29918, 1445, 29922, 8382, 29918, 1445, 29897, 13, 4706, 1583, 29889, 1278, 353, 7700, 13, 4706, 1583, 29889, 2490, 353, 6213, 13, 4706, 1583, 29889, 2371, 29918, 2798, 353, 2322, 8977, 29898, 524, 29897, 13, 4706, 1583, 3032, 842, 29918, 8513, 29898, 8513, 29897, 13, 13, 4706, 1583, 29889, 11014, 29918, 15955, 29918, 2922, 11669, 353, 6629, 13, 13, 1678, 822, 4770, 6144, 12035, 1311, 29897, 1599, 6213, 29901, 13, 4706, 565, 756, 5552, 29898, 1311, 29892, 525, 29882, 29945, 29918, 1445, 1495, 322, 1583, 29889, 29882, 29945, 29918, 1445, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 29882, 29945, 29918, 1445, 29889, 5358, 580, 13, 13, 1678, 822, 1203, 29918, 15697, 29898, 1311, 29892, 4464, 29901, 851, 353, 525, 3597, 742, 13, 462, 3986, 6611, 29918, 517, 29918, 11014, 29901, 28379, 29961, 1293, 29961, 710, 5262, 353, 6213, 29892, 13, 462, 3986, 4175, 29918, 11330, 29901, 6120, 353, 7700, 29897, 1599, 2391, 29961, 710, 5387, 13, 4706, 9995, 1293, 278, 2983, 310, 8393, 310, 263, 770, 408, 6031, 29889, 13, 308, 13, 4706, 16969, 970, 8393, 408, 2322, 29889, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 4464, 584, 851, 13, 9651, 17645, 825, 2924, 310, 8393, 674, 367, 9904, 13, 9651, 334, 525, 3597, 29915, 448, 2983, 393, 437, 451, 3380, 411, 23400, 3221, 13, 9651, 334, 525, 9053, 29915, 448, 2983, 393, 3380, 411, 2323, 23400, 3221, 13, 9651, 334, 525, 20313, 29915, 448, 2024, 322, 970, 13, 9651, 334, 525, 497, 29915, 448, 599, 8393, 393, 526, 3342, 363, 278, 1203, 13, 4706, 6611, 29918, 517, 29918, 11014, 584, 2391, 29961, 710, 1385, 2322, 29922, 8516, 1599, 5159, 13, 9651, 2983, 304, 451, 2050, 304, 4772, 16460, 362, 18116, 13, 4706, 4175, 29918, 11330, 584, 13, 13, 4706, 16969, 13, 4706, 448, 22158, 13, 4706, 5352, 29918, 7039, 584, 2391, 29961, 710, 29962, 13, 9651, 12705, 1051, 310, 278, 2983, 310, 8393, 310, 263, 2183, 1134, 470, 6213, 13, 9651, 565, 278, 4464, 338, 2743, 13, 13, 4706, 6317, 10481, 1057, 383, 453, 714, 1574, 1807, 5235, 373, 4175, 29918, 11330, 3443, 13, 4706, 6317, 10481, 1057, 9049, 5085, 2304, 13, 4706, 9995, 13, 4706, 565, 6611, 29918, 517, 29918, 11014, 338, 6213, 29901, 13, 9651, 6611, 29918, 517, 29918, 11014, 353, 5159, 13, 4706, 590, 29918, 8149, 29918, 517, 29918, 11014, 353, 6024, 3318, 29918, 23515, 742, 525, 3318, 29918, 15697, 742, 4514, 13, 4706, 6611, 29918, 517, 29918, 11014, 4619, 590, 29918, 8149, 29918, 517, 29918, 11014, 13, 13, 4706, 9049, 353, 11117, 8513, 2396, 4464, 29892, 525, 8149, 29918, 517, 29918, 11014, 2396, 6611, 29918, 517, 29918, 11014, 29892, 13, 795, 525, 4572, 29918, 11330, 2396, 4175, 29918, 11330, 29913, 29871, 396, 14402, 29901, 9049, 5085, 2304, 13, 4706, 736, 1203, 29918, 15697, 29898, 1311, 29892, 3579, 11022, 29897, 13, 13, 1678, 822, 1203, 29918, 23515, 29898, 1311, 29892, 4464, 29901, 851, 353, 525, 3597, 742, 13, 462, 539, 6611, 29918, 517, 29918, 11014, 29901, 28379, 29961, 1293, 29961, 710, 5262, 353, 6213, 29897, 1599, 2391, 29961, 710, 5387, 13, 4706, 9995, 1293, 278, 2983, 310, 3519, 310, 263, 770, 408, 6031, 29889, 13, 13, 4706, 16969, 970, 3519, 408, 2322, 29889, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 5446, 584, 2777, 13, 9651, 278, 1203, 363, 8454, 13, 4706, 4464, 584, 851, 13, 9651, 17645, 825, 2924, 310, 3519, 674, 367, 9904, 13, 9651, 334, 376, 3597, 29908, 448, 2983, 393, 437, 451, 3380, 411, 23400, 3221, 13, 9651, 334, 376, 9053, 29908, 448, 2983, 393, 3380, 411, 2323, 23400, 3221, 13, 9651, 334, 376, 20313, 29908, 448, 2024, 322, 970, 13, 9651, 334, 376, 497, 29908, 448, 599, 3519, 393, 526, 3342, 363, 278, 1203, 13, 4706, 6611, 29918, 517, 29918, 11014, 584, 2391, 29961, 710, 1385, 2322, 29922, 8516, 1599, 5159, 13, 9651, 2983, 304, 451, 2050, 304, 4772, 16460, 362, 18116, 13, 13, 4706, 16969, 13, 4706, 448, 22158, 13, 4706, 1158, 584, 2391, 29961, 710, 29962, 13, 9651, 12705, 1051, 310, 278, 2983, 310, 3519, 310, 263, 2183, 1134, 13, 9651, 470, 6213, 565, 278, 4464, 338, 2743, 13, 13, 4706, 9995, 13, 4706, 565, 6611, 29918, 517, 29918, 11014, 338, 6213, 29901, 13, 9651, 6611, 29918, 517, 29918, 11014, 353, 5159, 13, 4706, 590, 29918, 8149, 29918, 517, 29918, 11014, 353, 6024, 3318, 29918, 23515, 742, 525, 3318, 29918, 15697, 2033, 13, 4706, 6611, 29918, 517, 29918, 11014, 4619, 590, 29918, 8149, 29918, 517, 29918, 11014, 13, 4706, 736, 1203, 29918, 23515, 29898, 1311, 29892, 4464, 29922, 8513, 29892, 6611, 29918, 517, 29918, 11014, 29922, 8149, 29918, 517, 29918, 11014, 29897, 13, 13, 1678, 822, 4770, 1837, 12035, 1311, 29892, 1015, 29906, 29918, 4299, 29897, 1599, 6120, 29901, 13, 4706, 9995, 26023, 29879, 278, 1857, 1015, 29906, 1904, 7186, 29889, 1790, 1015, 29906, 1904, 29889, 13, 13, 9651, 6781, 1161, 267, 565, 896, 29915, 276, 451, 5186, 29889, 13, 9651, 383, 6415, 2303, 29901, 21606, 9273, 29915, 29873, 8095, 565, 896, 9455, 29915, 29873, 5186, 13, 4706, 9995, 13, 4706, 1018, 29901, 13, 9651, 338, 29918, 11745, 353, 1583, 29889, 9294, 29918, 459, 29906, 29918, 11745, 29898, 13, 18884, 1015, 29906, 29918, 4299, 29892, 5040, 29918, 265, 29918, 14057, 545, 29922, 5574, 29892, 4744, 29922, 8824, 29897, 13, 4706, 5174, 313, 14697, 291, 2392, 29892, 7865, 2392, 1125, 13, 9651, 396, 910, 674, 2360, 679, 1304, 565, 366, 12020, 29973, 13, 9651, 396, 338, 29918, 11745, 353, 7700, 13, 9651, 12020, 13, 4706, 736, 338, 29918, 11745, 13, 13, 1678, 822, 4974, 29918, 459, 29906, 29918, 11745, 29898, 1311, 29892, 1015, 29906, 29918, 4299, 29892, 13, 462, 308, 14383, 29918, 9902, 29901, 28379, 29961, 1293, 29961, 710, 5262, 353, 6213, 29892, 13, 462, 308, 5040, 29918, 265, 29918, 14057, 545, 29901, 6120, 353, 5852, 29892, 13, 462, 308, 4744, 29901, 6120, 353, 7700, 29897, 1599, 6120, 29901, 13, 4706, 9995, 26023, 29879, 278, 1857, 1015, 29906, 1904, 7186, 29889, 1790, 1015, 29906, 1904, 29889, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 1015, 29906, 29918, 4299, 584, 6418, 29906, 580, 13, 9651, 278, 1904, 304, 7252, 304, 13, 4706, 14383, 29918, 9902, 584, 2391, 29961, 710, 1385, 2322, 29922, 8516, 1599, 5159, 13, 9651, 2582, 393, 9273, 29915, 29873, 367, 752, 1127, 13, 4706, 5040, 29918, 265, 29918, 14057, 545, 584, 6120, 29936, 2322, 29922, 5574, 13, 9651, 5852, 584, 6781, 1161, 267, 565, 896, 29915, 276, 451, 5186, 13, 9651, 7700, 584, 2921, 304, 278, 2446, 1203, 13, 4706, 4744, 584, 6120, 29936, 2322, 29922, 8824, 13, 9651, 2367, 10029, 901, 13490, 7191, 13, 13, 4706, 16969, 13, 4706, 448, 22158, 13, 4706, 338, 29918, 11745, 584, 6120, 13, 9651, 526, 278, 3618, 5186, 29973, 13, 13, 4706, 390, 1759, 267, 13, 4706, 448, 23648, 13, 4706, 16499, 291, 2392, 29914, 1917, 2392, 584, 5040, 29918, 265, 29918, 14057, 545, 29922, 5574, 322, 322, 1059, 10761, 13, 4706, 2216, 1888, 2037, 287, 2392, 584, 445, 338, 263, 1804, 310, 385, 443, 23765, 1203, 13, 4706, 9995, 13, 4706, 565, 14383, 29918, 9902, 338, 6213, 29901, 13, 9651, 14383, 29918, 9902, 353, 731, 580, 13, 4706, 1683, 29901, 13, 9651, 14383, 29918, 9902, 353, 731, 29898, 11014, 29918, 9902, 29897, 13, 4706, 14383, 29918, 9902, 29889, 5504, 3319, 29915, 29887, 29886, 6008, 742, 525, 16264, 29886, 6008, 742, 525, 1837, 735, 262, 742, 525, 567, 6289, 29915, 1800, 13, 13, 4706, 565, 451, 1583, 29889, 949, 29918, 8513, 1275, 1015, 29906, 29918, 4299, 29889, 949, 29918, 8513, 29901, 13, 9651, 10191, 353, 313, 29888, 29915, 1311, 29889, 949, 29918, 8513, 3790, 1311, 29889, 949, 29918, 8513, 29913, 1015, 29906, 29918, 4299, 29889, 949, 29918, 8513, 2433, 13, 462, 259, 285, 29915, 29912, 459, 29906, 29918, 4299, 29889, 949, 29918, 8513, 29913, 2023, 5251, 5852, 1495, 13, 9651, 1583, 29889, 1188, 29889, 27392, 29898, 7645, 29897, 13, 9651, 736, 5852, 13, 13, 4706, 1591, 29918, 8768, 353, 1583, 29889, 657, 29918, 2371, 29918, 8768, 580, 13, 4706, 363, 1591, 29918, 1853, 297, 1591, 29918, 8768, 29901, 13, 9651, 565, 313, 2371, 29918, 1853, 297, 14383, 29918, 9902, 470, 13, 462, 1678, 1591, 29918, 1853, 29889, 27382, 2541, 877, 26679, 267, 6169, 22164, 13, 18884, 6773, 13, 9651, 594, 919, 353, 1583, 29889, 657, 29918, 2914, 29898, 2371, 29918, 1853, 29897, 13, 9651, 289, 8977, 353, 1015, 29906, 29918, 4299, 29889, 657, 29918, 2914, 29898, 2371, 29918, 1853, 29897, 13, 9651, 565, 594, 919, 338, 6213, 322, 289, 8977, 338, 6213, 29901, 13, 18884, 6773, 13, 13, 9651, 565, 7431, 29898, 328, 919, 29897, 2804, 7431, 29898, 6448, 919, 1125, 13, 18884, 396, 1423, 1353, 310, 1014, 11436, 13, 18884, 10191, 353, 313, 29888, 29915, 2435, 29898, 1311, 29889, 29912, 2371, 29918, 1853, 1800, 353, 426, 2435, 29898, 328, 919, 2915, 525, 13, 462, 539, 285, 29915, 2435, 29898, 459, 29906, 29918, 4299, 29889, 29912, 2371, 29918, 1853, 1800, 353, 426, 2435, 29898, 6448, 919, 2915, 1495, 13, 18884, 1583, 29889, 1188, 29889, 27392, 29898, 7645, 29897, 13, 18884, 565, 5040, 29918, 265, 29918, 14057, 545, 29901, 13, 462, 1678, 736, 7700, 13, 18884, 6773, 13, 13, 9651, 363, 1820, 29892, 263, 1767, 297, 594, 919, 29889, 7076, 7295, 13, 18884, 396, 2425, 975, 1269, 3295, 29886, 9552, 2588, 13, 18884, 565, 4744, 29901, 13, 462, 1678, 10191, 353, 285, 29915, 5531, 292, 373, 426, 2371, 29918, 1853, 29991, 29878, 29913, 1014, 4878, 353, 426, 710, 29898, 1989, 2915, 29915, 13, 462, 1678, 1583, 29889, 1188, 29889, 8382, 29898, 7645, 29897, 13, 13, 18884, 396, 679, 278, 12272, 9552, 363, 1904, 350, 13, 18884, 289, 1767, 353, 289, 8977, 29961, 1989, 29962, 13, 18884, 338, 29918, 11745, 353, 1583, 3032, 275, 29918, 459, 29906, 29918, 4878, 29918, 11745, 29898, 13, 462, 1678, 1591, 29918, 1853, 29892, 1820, 29892, 263, 1767, 29892, 289, 1767, 29892, 13, 462, 1678, 5040, 29918, 265, 29918, 14057, 545, 29922, 9847, 29918, 265, 29918, 14057, 545, 29892, 13, 462, 1678, 4744, 29922, 8382, 29897, 13, 18884, 565, 451, 338, 29918, 11745, 322, 5040, 29918, 265, 29918, 14057, 545, 29901, 13, 462, 1678, 736, 338, 29918, 11745, 13, 4706, 736, 5852, 13, 13, 1678, 822, 903, 275, 29918, 459, 29906, 29918, 4878, 29918, 11745, 29898, 1311, 29892, 1591, 29918, 1853, 29901, 851, 29892, 1820, 29892, 263, 29918, 5415, 29892, 289, 29918, 5415, 29892, 13, 462, 965, 5040, 29918, 265, 29918, 14057, 545, 29901, 6120, 353, 5852, 29892, 4744, 29901, 6120, 353, 7700, 13, 462, 965, 1723, 1599, 6120, 29901, 13, 4706, 9995, 10739, 1158, 363, 4954, 9294, 29918, 459, 29906, 29918, 11745, 16159, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 1591, 29918, 1853, 584, 851, 13, 9651, 278, 1134, 310, 1591, 313, 29872, 29889, 29887, 1696, 4954, 2218, 29886, 4620, 4110, 29952, 6348, 13, 4706, 1820, 584, 1014, 4878, 29918, 333, 847, 18761, 29918, 5415, 13, 9651, 1014, 4878, 29918, 333, 584, 938, 13, 18884, 278, 1014, 4878, 29918, 333, 13, 9651, 18761, 29918, 5415, 584, 12603, 552, 29898, 8773, 14579, 1577, 8773, 29892, 29757, 13, 18884, 450, 19231, 18761, 2655, 29891, 393, 366, 1074, 297, 2323, 1014, 4878, 13, 18884, 1321, 384, 1847, 856, 13, 13, 18884, 1014, 4878, 29918, 333, 584, 938, 13, 462, 1678, 278, 1014, 4878, 29918, 333, 13, 18884, 2656, 29918, 401, 584, 938, 13, 462, 268, 29896, 584, 317, 8476, 29896, 13, 462, 268, 29906, 584, 317, 8476, 29906, 13, 18884, 3611, 28772, 584, 851, 13, 462, 1678, 278, 1206, 3611, 13, 18884, 1014, 3257, 28772, 584, 851, 13, 462, 1678, 278, 1206, 1014, 3257, 13, 18884, 13159, 406, 944, 29918, 333, 584, 851, 28772, 13, 462, 1678, 278, 13159, 406, 944, 13, 18884, 916, 4958, 28772, 13, 18884, 14402, 29901, 910, 1574, 1807, 4225, 664, 29889, 13, 13, 4706, 263, 29918, 5415, 584, 6461, 29906, 2061, 580, 13, 9651, 263, 8195, 4205, 29886, 9552, 2588, 29892, 26596, 4205, 29886, 9552, 2588, 29892, 8195, 13296, 333, 5015, 404, 2588, 29892, 2992, 29889, 13, 9651, 363, 278, 1583, 1904, 13, 4706, 289, 29918, 5415, 584, 6461, 29906, 2061, 580, 13, 9651, 263, 8195, 4205, 29886, 9552, 2588, 29892, 26596, 4205, 29886, 9552, 2588, 29892, 8195, 13296, 333, 5015, 404, 2588, 29892, 2992, 29889, 13, 9651, 363, 278, 10230, 1904, 13, 4706, 5040, 29918, 265, 29918, 14057, 545, 584, 6120, 29936, 2322, 29922, 5574, 13, 9651, 5852, 584, 6781, 1161, 267, 565, 896, 29915, 276, 451, 5186, 13, 9651, 7700, 584, 2921, 304, 278, 2446, 1203, 13, 4706, 4744, 584, 6120, 29936, 2322, 29922, 8824, 13, 9651, 2367, 10029, 901, 13490, 7191, 13, 13, 4706, 16969, 13, 4706, 448, 22158, 13, 4706, 338, 29918, 11745, 584, 6120, 13, 9651, 526, 278, 3618, 5186, 29973, 13, 13, 4706, 390, 1759, 267, 13, 4706, 448, 23648, 13, 4706, 16499, 291, 2392, 29914, 1917, 2392, 584, 5040, 29918, 265, 29918, 14057, 545, 29922, 5574, 322, 322, 1059, 10761, 13, 4706, 2216, 1888, 2037, 287, 2392, 584, 445, 338, 263, 1804, 310, 385, 443, 23765, 1203, 13, 4706, 9995, 13, 13, 4706, 396, 1423, 278, 1024, 313, 29872, 29889, 29887, 1696, 8195, 4205, 29886, 9552, 2588, 7186, 29889, 13, 4706, 396, 26596, 4205, 29886, 9552, 2588, 29897, 13, 4706, 385, 420, 353, 263, 29918, 5415, 17255, 1990, 1649, 17255, 978, 1649, 13, 4706, 289, 978, 353, 289, 29918, 5415, 17255, 1990, 1649, 17255, 978, 1649, 13, 13, 4706, 565, 451, 385, 420, 1275, 289, 978, 29901, 13, 9651, 1583, 29889, 1188, 29889, 27392, 29898, 29888, 29915, 1853, 29898, 29874, 29897, 3790, 273, 420, 29913, 1134, 29898, 29890, 29897, 3790, 29890, 978, 29913, 1495, 13, 9651, 736, 7700, 13, 4706, 565, 385, 420, 1275, 525, 16320, 5194, 2396, 13, 9651, 396, 14402, 29901, 2767, 445, 13, 9651, 736, 5852, 13, 13, 4706, 565, 451, 738, 29898, 1742, 297, 385, 420, 363, 1734, 297, 6024, 2588, 742, 525, 29923, 2101, 5975, 742, 13, 462, 462, 795, 525, 5756, 5228, 22676, 2033, 1125, 13, 9651, 396, 14402, 29901, 5538, 445, 3926, 7124, 29973, 13, 9651, 10191, 353, 285, 29915, 29912, 273, 420, 29913, 338, 451, 385, 4398, 2023, 5251, 5186, 29915, 13, 9651, 1583, 29889, 1188, 29889, 27392, 29898, 7645, 29897, 13, 9651, 12020, 2216, 1888, 2037, 287, 2392, 29898, 29888, 29915, 29912, 273, 420, 29913, 4770, 1837, 1649, 1495, 13, 4706, 396, 6773, 13, 13, 4706, 396, 14402, 29901, 4803, 278, 1409, 3519, 304, 1423, 363, 17193, 29889, 13, 4706, 396, 14402, 29901, 910, 508, 8095, 29889, 13, 4706, 338, 29918, 1333, 29918, 11745, 353, 6629, 29871, 396, 5664, 663, 9177, 563, 687, 433, 1127, 2286, 1434, 8744, 13, 4706, 1018, 29901, 13, 9651, 338, 29918, 1333, 29918, 11745, 353, 263, 29918, 5415, 2804, 289, 29918, 5415, 13, 4706, 5174, 7865, 2392, 29901, 13, 9651, 565, 5040, 29918, 265, 29918, 14057, 545, 29901, 13, 18884, 12020, 13, 13, 4706, 565, 338, 29918, 1333, 29918, 11745, 29901, 13, 9651, 10191, 353, 313, 29888, 29915, 1989, 353, 426, 1989, 29913, 1591, 29918, 1853, 353, 426, 2371, 29918, 1853, 29991, 29878, 29913, 526, 451, 5186, 29936, 525, 13, 462, 259, 285, 29915, 1990, 29918, 978, 353, 426, 273, 420, 29991, 29878, 29913, 1495, 13, 9651, 1583, 29889, 1188, 29889, 27392, 29898, 7645, 29897, 13, 9651, 736, 7700, 13, 4706, 736, 5852, 13, 13, 1678, 822, 903, 842, 29918, 8513, 29898, 1311, 29892, 4464, 29901, 851, 1125, 13, 4706, 9995, 9544, 4019, 368, 731, 278, 3402, 13, 13, 4706, 6317, 10481, 1057, 1724, 916, 18893, 526, 727, 29973, 1724, 1683, 723, 445, 367, 1304, 363, 29973, 13, 4706, 9995, 13, 4706, 565, 4464, 338, 6213, 29901, 13, 9651, 736, 13, 4706, 565, 4464, 1275, 525, 29876, 11290, 29929, 29945, 2396, 13, 9651, 1583, 29889, 842, 29918, 294, 29918, 29876, 11290, 29929, 29945, 580, 13, 13, 1678, 822, 731, 29918, 8513, 29898, 1311, 29892, 4464, 29901, 851, 29897, 1599, 6213, 29901, 13, 4706, 9995, 29903, 1691, 278, 1015, 29906, 4464, 13, 13, 9651, 317, 1691, 278, 4464, 408, 408, 525, 1516, 29883, 742, 525, 23818, 742, 525, 1300, 2631, 29895, 742, 525, 29876, 11290, 29929, 29945, 742, 470, 13, 9651, 525, 3670, 391, 1247, 29915, 13, 13, 9651, 584, 3207, 4464, 29901, 13, 9651, 584, 1853, 4464, 29901, 851, 13, 9651, 584, 18280, 29901, 6213, 13, 13, 9651, 6317, 10481, 1057, 383, 453, 297, 5235, 363, 4128, 297, 1574, 1807, 13, 4706, 9995, 13, 4706, 396, 4803, 9657, 304, 4772, 1472, 565, 29899, 23681, 29899, 2870, 10930, 304, 1513, 4972, 310, 12469, 13, 4706, 12469, 29918, 9708, 353, 426, 13, 9651, 525, 1516, 29883, 2396, 1583, 29889, 842, 29918, 294, 29918, 1516, 29883, 3285, 13, 9651, 525, 23818, 2396, 1583, 29889, 842, 29918, 294, 29918, 23818, 3285, 13, 9651, 525, 1300, 2631, 29895, 2396, 1583, 29889, 842, 29918, 294, 29918, 1300, 2631, 29895, 3285, 13, 9651, 525, 29876, 11290, 29929, 29945, 2396, 1583, 29889, 842, 29918, 294, 29918, 29876, 11290, 29929, 29945, 3285, 13, 9651, 525, 3670, 391, 1247, 2396, 1583, 29889, 842, 29918, 294, 29918, 3670, 391, 1247, 3285, 13, 9651, 396, 525, 3665, 29875, 2209, 2396, 1583, 29889, 842, 29918, 294, 29918, 3670, 391, 1247, 580, 29871, 396, 383, 6415, 2303, 29901, 5244, 297, 6728, 8773, 13, 4706, 500, 13, 4706, 1018, 29901, 13, 9651, 12469, 29918, 9708, 29961, 8513, 29889, 13609, 580, 29962, 13, 4706, 5174, 7670, 2392, 29901, 13, 9651, 12020, 7670, 2392, 29898, 29888, 29915, 8513, 3790, 8513, 29991, 29878, 29913, 322, 1818, 367, 297, 518, 1516, 29883, 29892, 302, 29916, 29892, 1120, 2631, 29895, 29892, 525, 13, 462, 965, 285, 29915, 29876, 11290, 29929, 29945, 29892, 3523, 391, 1247, 29962, 1495, 13, 4706, 736, 6213, 13, 13, 1678, 822, 304, 29918, 23818, 29898, 1311, 29892, 10191, 2433, 1495, 1599, 6213, 29901, 13, 4706, 396, 14402, 29901, 28197, 1807, 363, 445, 1158, 13, 4706, 565, 1583, 29889, 275, 29918, 1516, 29883, 29901, 13, 9651, 1583, 29889, 1188, 29889, 27392, 29898, 29888, 29915, 15123, 292, 304, 405, 29990, 29912, 7645, 29913, 1495, 13, 9651, 1583, 29889, 842, 29918, 294, 29918, 23818, 580, 13, 9651, 1583, 29889, 842, 29918, 2371, 29918, 1853, 580, 13, 4706, 736, 6213, 13, 13, 1678, 822, 304, 29918, 1516, 29883, 29898, 1311, 29892, 10191, 2433, 1495, 1599, 6213, 29901, 13, 4706, 396, 14402, 29901, 28197, 1807, 363, 445, 1158, 13, 4706, 565, 1583, 29889, 275, 29918, 23818, 29901, 13, 9651, 1583, 29889, 1188, 29889, 27392, 29898, 29888, 29915, 15123, 292, 304, 341, 7187, 29912, 7645, 29913, 1495, 13, 9651, 1583, 29889, 842, 29918, 294, 29918, 1516, 29883, 580, 13, 4706, 736, 6213, 13, 13, 1678, 822, 3160, 29918, 735, 2325, 29918, 9902, 29898, 1311, 29892, 13, 462, 18884, 19060, 29918, 9902, 29901, 28379, 29961, 1293, 29961, 710, 5262, 353, 6213, 29892, 13, 462, 18884, 3160, 29918, 9902, 29901, 28379, 29961, 1293, 29961, 710, 5262, 353, 6213, 13, 462, 18884, 1723, 1599, 6213, 29901, 13, 4706, 9995, 29903, 1691, 2582, 304, 3160, 29914, 735, 2325, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 19060, 29918, 9902, 847, 3160, 29918, 9902, 584, 2391, 29961, 710, 29962, 847, 851, 29936, 2322, 29922, 8516, 13, 9651, 263, 1051, 310, 1121, 4072, 304, 19060, 29914, 2856, 13, 9651, 697, 310, 1438, 1818, 367, 6213, 13, 4706, 9995, 13, 4706, 565, 19060, 29918, 9902, 322, 3160, 29918, 9902, 29901, 13, 9651, 10191, 353, 313, 29888, 29915, 735, 2325, 29918, 9902, 470, 3160, 29918, 9902, 1818, 367, 6213, 29905, 29876, 29915, 13, 462, 259, 285, 29915, 735, 2325, 29918, 9902, 353, 426, 735, 2325, 29918, 9902, 29991, 29878, 1012, 29876, 2856, 29918, 9902, 353, 525, 13, 462, 259, 285, 29915, 29912, 2856, 29918, 9902, 29991, 29878, 1012, 29876, 1495, 13, 9651, 12020, 24875, 2392, 29898, 7645, 29897, 13, 13, 4706, 565, 19060, 29918, 9902, 29901, 13, 9651, 1583, 29889, 5992, 29918, 9902, 29898, 735, 2325, 29918, 9902, 29897, 13, 4706, 25342, 3160, 29918, 9902, 29901, 13, 9651, 1583, 29889, 842, 29918, 9902, 29898, 2856, 29918, 9902, 29897, 13, 13, 1678, 822, 27401, 29898, 1311, 29897, 1599, 7761, 29961, 710, 29892, 6262, 5387, 13, 4706, 9995, 29903, 5989, 263, 5839, 839, 1347, 15945, 29908, 13, 4706, 736, 270, 17204, 29898, 1311, 29897, 13, 13, 1678, 822, 4770, 657, 3859, 12035, 1311, 1125, 13, 4706, 9995, 29907, 280, 1503, 714, 263, 2846, 3651, 297, 1797, 304, 5839, 280, 278, 1203, 13, 13, 9651, 14187, 278, 1203, 29915, 29879, 2106, 515, 1583, 17255, 8977, 1649, 607, 3743, 599, 1749, 13, 9651, 2777, 8393, 29889, 29849, 671, 278, 9657, 29889, 8552, 580, 1158, 304, 4772, 13, 9651, 23815, 278, 2441, 2106, 29889, 13, 4706, 9995, 13, 4706, 2106, 353, 1583, 17255, 8977, 26914, 8552, 580, 13, 4706, 628, 2106, 1839, 1188, 2033, 29871, 396, 15154, 278, 443, 23945, 29880, 519, 9976, 29889, 13, 4706, 565, 756, 5552, 29898, 1311, 29892, 525, 9902, 1495, 322, 756, 5552, 29898, 1311, 3032, 9902, 29892, 525, 1188, 29374, 13, 9651, 628, 2106, 1839, 29918, 9902, 13359, 1188, 13, 13, 4706, 396, 910, 2908, 1235, 29915, 29879, 502, 12439, 278, 3618, 393, 526, 1108, 2454, 1334, 13, 4706, 396, 925, 1708, 411, 278, 995, 310, 474, 304, 5217, 599, 3618, 4940, 777, 13, 4706, 396, 16897, 29889, 9038, 591, 1284, 988, 278, 775, 16706, 29892, 591, 4697, 964, 278, 13, 4706, 396, 3618, 4340, 13, 4706, 565, 29871, 29900, 29901, 29871, 396, 282, 23929, 29901, 694, 4612, 13, 9651, 396, 383, 6415, 2303, 29901, 3750, 2466, 29973, 1724, 338, 445, 1584, 12709, 292, 29973, 13, 9651, 474, 353, 29871, 29900, 13, 9651, 363, 1820, 29892, 995, 297, 12705, 29898, 3859, 29889, 7076, 580, 1125, 13, 18884, 565, 338, 8758, 29898, 1767, 29892, 9657, 29897, 322, 7431, 29898, 1767, 29897, 1275, 29871, 29900, 29901, 13, 462, 1678, 6773, 13, 18884, 565, 474, 1405, 29871, 29896, 29900, 29900, 29901, 13, 462, 1678, 628, 2106, 29961, 1989, 29962, 13, 18884, 1683, 29901, 13, 462, 1678, 474, 4619, 29871, 29896, 13, 4706, 736, 2106, 13, 13, 1678, 822, 4078, 29898, 1311, 29892, 5446, 29918, 9507, 29901, 851, 353, 525, 4299, 29889, 5415, 742, 443, 29916, 999, 29901, 6120, 353, 5852, 13, 632, 1723, 1599, 6213, 29901, 13, 4706, 9995, 29903, 5989, 263, 5839, 280, 519, 1203, 15945, 29908, 13, 4706, 565, 756, 5552, 29898, 1311, 29892, 525, 17492, 1891, 29918, 24051, 29374, 13, 9651, 628, 1583, 29889, 17492, 1891, 29918, 24051, 13, 13, 4706, 565, 756, 5552, 29898, 1311, 29892, 525, 459, 29906, 29918, 16950, 29374, 13, 9651, 628, 1583, 29889, 459, 29906, 29918, 16950, 13, 13, 4706, 411, 1722, 29898, 5415, 29918, 9507, 29892, 525, 29893, 29890, 1495, 408, 5446, 29918, 1445, 29901, 13, 9651, 16766, 29898, 1311, 29892, 5446, 29918, 1445, 29897, 13, 4706, 736, 6213, 13, 13, 1678, 822, 2254, 29898, 1311, 29892, 5446, 29918, 9507, 29901, 851, 353, 525, 4299, 29889, 5415, 1495, 1599, 6213, 29901, 13, 4706, 9995, 5896, 29879, 263, 5839, 280, 519, 1203, 15945, 29908, 13, 4706, 411, 1722, 29898, 5415, 29918, 9507, 29892, 525, 6050, 1495, 408, 5446, 29918, 1445, 29901, 13, 9651, 5446, 353, 2254, 29898, 5415, 29918, 1445, 29897, 13, 13, 4706, 6611, 29918, 517, 29918, 11014, 353, 6024, 29918, 5358, 29918, 459, 29906, 742, 22868, 2798, 742, 22868, 9902, 742, 22868, 2371, 29918, 655, 2496, 742, 13, 462, 4706, 525, 1278, 742, 525, 19541, 29918, 8382, 742, 525, 1202, 3245, 29918, 2922, 11669, 742, 13, 462, 4706, 525, 7302, 29918, 11967, 2527, 719, 742, 525, 8382, 29918, 1445, 742, 525, 9684, 29918, 3706, 742, 525, 29888, 742, 13, 462, 4706, 525, 17492, 1891, 29918, 24051, 742, 525, 275, 29918, 497, 29918, 1491, 11436, 742, 13, 462, 4706, 525, 275, 29918, 8382, 29918, 1445, 742, 525, 275, 29918, 19156, 742, 525, 275, 29918, 8111, 1891, 742, 13, 462, 4706, 525, 275, 431, 4878, 742, 525, 1188, 742, 525, 5344, 29918, 24051, 742, 525, 8513, 742, 525, 29876, 742, 13, 462, 4706, 525, 593, 7288, 742, 525, 1949, 29918, 8157, 742, 525, 459, 29906, 29918, 16950, 742, 525, 2371, 29918, 978, 742, 13, 462, 4706, 525, 1509, 29918, 8111, 742, 525, 9303, 2033, 13, 4706, 6611, 353, 1203, 29918, 15697, 29898, 1311, 29892, 4464, 543, 497, 613, 6611, 29918, 517, 29918, 11014, 29922, 8149, 29918, 517, 29918, 11014, 29892, 13, 462, 462, 4175, 29918, 11330, 29922, 5574, 29897, 13, 4706, 659, 353, 6629, 29871, 396, 5664, 663, 2286, 8744, 1434, 12029, 29973, 13, 4706, 363, 1820, 297, 6611, 29901, 13, 9651, 565, 1820, 29889, 27382, 2541, 877, 1649, 1495, 322, 1820, 29889, 1975, 2541, 877, 1649, 29374, 13, 18884, 6773, 13, 9651, 1018, 29901, 13, 18884, 659, 353, 679, 5552, 29898, 5415, 29892, 1820, 29897, 13, 9651, 5174, 4408, 2392, 29901, 13, 18884, 1583, 29889, 1188, 29889, 27392, 29898, 29888, 29915, 1989, 3790, 1989, 29991, 29878, 29913, 659, 3790, 791, 29913, 1495, 13, 18884, 6773, 13, 13, 9651, 1018, 29901, 13, 18884, 731, 5552, 29898, 1311, 29892, 1820, 29892, 659, 29897, 13, 9651, 5174, 23833, 2392, 29901, 13, 18884, 1596, 29898, 29888, 29915, 1989, 3790, 1989, 29991, 29878, 29913, 659, 3790, 791, 29913, 1495, 13, 18884, 12020, 13, 4706, 1583, 29889, 1188, 29889, 8382, 877, 15091, 8363, 29991, 1495, 13, 13, 1678, 732, 6799, 13, 1678, 822, 338, 29918, 19156, 29898, 1311, 29897, 1599, 6120, 29901, 13, 4706, 396, 14402, 29901, 3750, 338, 445, 263, 2655, 29973, 1724, 338, 372, 1584, 363, 29973, 1317, 445, 263, 13, 4706, 396, 539, 5434, 29899, 8017, 292, 2655, 363, 263, 399, 5690, 4682, 29973, 1105, 1784, 5155, 856, 13, 4706, 736, 7700, 13, 13, 1678, 822, 1303, 29918, 459, 29906, 29898, 1311, 29892, 1015, 29906, 29918, 9507, 29901, 28379, 29961, 710, 29962, 353, 6213, 29892, 13, 462, 14405, 29901, 6120, 353, 5852, 29892, 2048, 29918, 1272, 2557, 29901, 28379, 29961, 11227, 29962, 353, 7700, 29892, 13, 462, 14383, 29918, 15955, 29918, 2922, 11669, 29901, 6120, 353, 7700, 29892, 13, 462, 8025, 29901, 28379, 29961, 710, 29962, 353, 6213, 29897, 1599, 6213, 29901, 13, 4706, 9995, 4763, 29879, 278, 6418, 29906, 934, 5183, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 1015, 29906, 29918, 9507, 584, 851, 313, 4381, 29922, 8516, 1599, 18218, 29897, 13, 9651, 278, 1015, 29906, 29918, 9507, 13, 4706, 14405, 584, 6120, 29936, 2322, 29922, 5574, 13, 9651, 5852, 584, 3618, 526, 338, 431, 4878, 2729, 13, 9651, 7700, 584, 3618, 526, 313, 275, 431, 4878, 29892, 1014, 3257, 29897, 2729, 29936, 13, 462, 1678, 674, 367, 1304, 363, 13159, 406, 944, 29879, 17126, 310, 278, 2984, 13, 4706, 2048, 29918, 1272, 2557, 584, 6120, 313, 4381, 29922, 8516, 1599, 5852, 565, 297, 474, 11980, 29892, 7700, 13, 462, 1669, 6467, 29897, 13, 9651, 23315, 263, 11701, 3630, 4308, 363, 1015, 29906, 3618, 13, 9651, 6213, 29901, 5852, 565, 297, 474, 11980, 29892, 7700, 6467, 13, 4706, 14383, 29918, 15955, 29918, 2922, 11669, 584, 6120, 29936, 2322, 29922, 8824, 13, 632, 5852, 584, 28057, 4636, 5183, 21985, 13, 4706, 8025, 584, 851, 13, 9651, 278, 29104, 8025, 313, 4381, 29922, 8516, 29936, 1788, 2322, 29897, 13, 4706, 9995, 13, 4706, 565, 1015, 29906, 29918, 9507, 29901, 13, 9651, 1423, 29918, 2084, 29898, 459, 29906, 29918, 9507, 29892, 1024, 2433, 459, 29906, 29918, 9507, 1495, 13, 4706, 4464, 353, 1583, 29889, 8513, 13, 4706, 565, 2048, 29918, 1272, 2557, 338, 6213, 29901, 13, 9651, 2048, 29918, 1272, 2557, 353, 7700, 13, 9651, 565, 474, 4691, 29918, 3888, 7295, 13, 18884, 2048, 29918, 1272, 2557, 353, 5852, 13, 4706, 565, 8025, 338, 6213, 29901, 13, 9651, 8025, 353, 10876, 29889, 657, 4381, 22331, 580, 13, 4706, 1583, 29889, 22331, 353, 8025, 13, 4706, 1583, 29889, 11014, 29918, 15955, 29918, 2922, 11669, 353, 14383, 29918, 15955, 29918, 2922, 11669, 13, 4706, 4974, 1583, 29889, 1278, 297, 518, 5574, 29892, 7700, 1402, 1583, 29889, 1278, 13, 4706, 1583, 29889, 275, 29918, 8111, 1891, 353, 5852, 13, 4706, 1583, 29889, 1188, 29889, 8382, 29898, 29888, 29915, 17743, 457, 3790, 17743, 457, 29913, 1495, 13, 4706, 10191, 353, 285, 29915, 6377, 29899, 29908, 29930, 29947, 29913, 5183, 1015, 29906, 411, 1303, 29918, 8513, 29922, 29896, 313, 2378, 269, 5281, 29897, 8853, 29899, 29908, 29930, 29947, 10162, 13, 4706, 1583, 29889, 1188, 29889, 8382, 29898, 7645, 29897, 13, 4706, 1583, 29889, 949, 29918, 8513, 353, 29871, 29896, 13, 4706, 1583, 3032, 5358, 29918, 459, 29906, 353, 7700, 13, 4706, 2254, 29918, 294, 29918, 29882, 29945, 353, 7700, 13, 4706, 565, 756, 5552, 29898, 1311, 29892, 525, 1359, 29918, 294, 29918, 29882, 29945, 29374, 13, 9651, 2254, 29918, 294, 29918, 29882, 29945, 353, 1583, 29889, 1359, 29918, 294, 29918, 29882, 29945, 13, 4706, 1018, 29901, 13, 9651, 396, 679, 14839, 1203, 2983, 29892, 2048, 3618, 29892, 541, 1016, 29915, 29873, 1303, 848, 13, 9651, 1591, 29918, 7039, 353, 6418, 29906, 29918, 29636, 279, 29889, 949, 29918, 459, 29906, 29898, 1311, 29892, 1015, 29906, 29918, 9507, 29922, 459, 29906, 29918, 9507, 29892, 13, 462, 462, 795, 2254, 29918, 294, 29918, 29882, 29945, 29922, 1359, 29918, 294, 29918, 29882, 29945, 29892, 4464, 29922, 8513, 29897, 13, 9651, 1583, 29889, 2371, 29918, 7039, 353, 1591, 29918, 7039, 13, 9651, 396, 14402, 29901, 624, 3096, 304, 4377, 714, 3618, 29889, 13, 9651, 396, 14402, 29901, 624, 3096, 304, 1510, 14839, 310, 1591, 2983, 29889, 13, 9651, 396, 14402, 29901, 17732, 714, 3618, 278, 1404, 1838, 29915, 29873, 864, 29889, 13, 9651, 396, 14402, 29901, 10056, 263, 5534, 1891, 1174, 398, 1014, 29899, 1990, 304, 437, 445, 6433, 411, 13, 9651, 396, 539, 901, 19909, 408, 647, 1860, 13, 9651, 1583, 29889, 949, 29918, 8513, 353, 29871, 29906, 13, 9651, 1583, 3032, 5358, 29918, 459, 29906, 353, 5852, 13, 9651, 10191, 353, 313, 29888, 29915, 6377, 29899, 29908, 29930, 29947, 29913, 5183, 1015, 29906, 411, 1303, 29918, 8513, 29922, 29906, 313, 2378, 27523, 29897, 525, 13, 462, 259, 285, 29915, 6377, 29899, 29908, 29930, 29947, 29913, 1495, 13, 9651, 1583, 29889, 1188, 29889, 8382, 580, 13, 9651, 903, 3258, 29918, 29882, 2176, 29945, 29918, 3888, 29898, 1311, 29889, 459, 29906, 29918, 16950, 29889, 29882, 29945, 29918, 1445, 29892, 1583, 29897, 13, 9651, 6418, 29906, 29918, 29636, 279, 29889, 949, 29918, 459, 29906, 29898, 1311, 29892, 1015, 29906, 29918, 9507, 29922, 1311, 29889, 459, 29906, 29918, 9507, 29892, 13, 462, 18884, 4464, 29922, 8513, 29897, 13, 4706, 5174, 3497, 17413, 2392, 29901, 13, 9651, 12020, 13, 4706, 5174, 8960, 408, 321, 29901, 13, 9651, 396, 25601, 4954, 2451, 408, 321, 16159, 13, 9651, 6418, 29906, 29918, 29636, 279, 29889, 5358, 29918, 459, 29906, 29898, 1311, 29892, 4889, 29922, 5574, 29897, 13, 9651, 12020, 321, 13, 13, 4706, 1583, 3032, 8394, 675, 580, 13, 13, 4706, 565, 2048, 29918, 1272, 2557, 29901, 13, 9651, 1583, 29889, 4282, 29918, 1272, 2557, 580, 13, 4706, 1583, 29889, 3258, 29918, 12650, 29918, 3166, 29918, 2922, 11669, 580, 13, 4706, 1583, 29889, 17743, 457, 29918, 9902, 29898, 17743, 457, 29922, 17743, 457, 29897, 13, 4706, 1583, 29889, 1188, 29889, 8382, 877, 4951, 3276, 5183, 1015, 29906, 1495, 13, 4706, 851, 29898, 1311, 29889, 459, 29906, 29918, 9902, 29897, 13, 4706, 736, 6213, 13, 13, 1678, 822, 1653, 29918, 12650, 29918, 3166, 29918, 2922, 11669, 29898, 1311, 29897, 1599, 6213, 29901, 13, 4706, 9995, 9832, 1078, 3618, 11819, 29896, 29892, 11819, 29941, 13, 13, 4706, 10017, 278, 1494, 3618, 29901, 13, 3986, 448, 11819, 29941, 584, 341, 1164, 15695, 29911, 29941, 1203, 515, 278, 16379, 29941, 29943, 4636, 13, 3986, 448, 11819, 29896, 584, 341, 1164, 15695, 29911, 29896, 1203, 515, 278, 11278, 29934, 29943, 29892, 349, 1001, 29943, 29892, 349, 15860, 29943, 29892, 319, 14345, 29943, 29892, 349, 14345, 29943, 29892, 13, 462, 539, 319, 15860, 29943, 13516, 13, 4706, 9995, 13, 4706, 565, 525, 3580, 29941, 29943, 29915, 297, 1583, 29889, 2922, 11669, 29901, 13, 9651, 1583, 29889, 459, 29906, 29918, 9902, 29889, 3712, 2105, 29941, 353, 341, 1164, 15695, 29911, 29941, 29898, 1311, 3032, 10745, 339, 15942, 29892, 13, 462, 462, 18884, 1583, 29889, 2922, 11669, 1839, 3580, 29941, 29943, 11287, 13, 13, 4706, 396, 14402, 29901, 4525, 526, 14909, 2743, 856, 277, 1838, 29915, 29873, 748, 491, 4163, 29936, 372, 5771, 13, 4706, 396, 539, 491, 297, 814, 616, 29892, 7029, 29892, 8525, 4127, 29892, 2992, 29889, 13, 13, 4706, 565, 525, 13171, 29943, 29915, 297, 1583, 29889, 2922, 11669, 29901, 13, 9651, 1583, 29889, 459, 29906, 29918, 9902, 29889, 3712, 2105, 29896, 353, 341, 1164, 15695, 29911, 29896, 29898, 13, 18884, 1583, 3032, 10745, 339, 15942, 29892, 1583, 29889, 2922, 11669, 29892, 13, 18884, 396, 29871, 4248, 539, 1577, 539, 4248, 418, 4248, 29906, 268, 1577, 539, 1577, 13, 18884, 6024, 13427, 29934, 29943, 742, 525, 13171, 29943, 742, 525, 13691, 29934, 29943, 742, 525, 10051, 29934, 29943, 742, 525, 29925, 14345, 29943, 742, 525, 5098, 29934, 29943, 742, 29871, 2314, 13, 4706, 736, 6213, 13, 13, 1678, 822, 903, 8394, 675, 29898, 1311, 29897, 1599, 6213, 29901, 13, 4706, 9995, 7564, 1158, 13, 13, 9651, 6317, 10481, 1057, 1260, 3717, 403, 373, 445, 29936, 825, 947, 372, 437, 29973, 448, 1338, 29900, 29900, 29945, 29906, 13, 4706, 9995, 13, 4706, 565, 756, 5552, 29898, 1311, 29892, 525, 1491, 4878, 29374, 13, 9651, 628, 1583, 29889, 1491, 4878, 13, 4706, 1121, 29918, 8768, 353, 1583, 29889, 657, 29918, 2371, 29918, 8768, 580, 13, 4706, 1121, 29918, 1853, 29918, 1761, 353, 6024, 7529, 742, 525, 29887, 29886, 6008, 742, 525, 16264, 29886, 6008, 742, 525, 1837, 735, 262, 742, 525, 567, 6289, 742, 13, 462, 9651, 525, 3712, 2105, 29896, 742, 525, 3712, 2105, 29941, 2033, 13, 13, 4706, 363, 1121, 29918, 1853, 297, 1121, 29918, 8768, 29901, 13, 9651, 565, 313, 2914, 29918, 1853, 297, 1121, 29918, 1853, 29918, 1761, 470, 13, 462, 1678, 1121, 29918, 1853, 29889, 27382, 2541, 877, 26679, 267, 6169, 22164, 13, 18884, 6773, 13, 9651, 1121, 353, 1583, 29889, 657, 29918, 2914, 29898, 2914, 29918, 1853, 29897, 13, 9651, 1018, 29901, 13, 18884, 1819, 353, 1121, 29889, 5975, 580, 13, 9651, 5174, 23833, 2392, 29901, 13, 18884, 1583, 29889, 1188, 29889, 2704, 29898, 29888, 29915, 2914, 29918, 1853, 353, 426, 2914, 29918, 1853, 29913, 1495, 13, 18884, 12020, 13, 13, 9651, 363, 5446, 297, 1819, 29901, 13, 18884, 565, 756, 5552, 29898, 5415, 29892, 525, 8394, 675, 29374, 13, 462, 1678, 5446, 29889, 8394, 675, 580, 13, 18884, 25342, 756, 5552, 29898, 5415, 29892, 525, 29873, 3399, 1495, 322, 451, 5446, 29889, 275, 29918, 6605, 29896, 29901, 13, 462, 1678, 10191, 353, 313, 29888, 29915, 3318, 756, 451, 8762, 525, 13, 462, 965, 285, 29915, 8394, 675, 29905, 29876, 6377, 1642, 7122, 29898, 5415, 29889, 657, 29918, 16202, 580, 2915, 1495, 13, 462, 1678, 12020, 24875, 2392, 29898, 7645, 29897, 13, 4706, 1583, 29889, 6144, 29918, 4984, 29879, 580, 13, 13, 1678, 822, 2048, 29918, 1272, 2557, 29898, 1311, 29897, 1599, 6213, 29901, 13, 4706, 9995, 1168, 369, 1372, 278, 6418, 29906, 3618, 964, 11701, 3630, 14438, 1280, 13, 13, 4706, 6317, 10481, 1057, 2329, 5626, 411, 29901, 13, 462, 29871, 448, 8195, 4205, 29886, 9552, 2588, 13, 462, 29871, 448, 8195, 3247, 403, 5015, 404, 2588, 313, 8773, 7897, 13, 462, 29871, 448, 8195, 3247, 403, 855, 6038, 2588, 313, 8773, 7897, 13, 462, 29871, 448, 8195, 1523, 1066, 568, 3247, 403, 855, 6038, 2588, 313, 8773, 7897, 13, 4706, 9995, 13, 13, 4706, 396, 14402, 29901, 10878, 29876, 29915, 29873, 372, 1207, 901, 4060, 363, 445, 736, 263, 11701, 29889, 17271, 13, 4706, 396, 539, 5446, 29973, 448, 1338, 29900, 29900, 29945, 29906, 13, 13, 4706, 396, 14402, 29901, 7319, 357, 353, 443, 3783, 29889, 5085, 441, 580, 13, 13, 4706, 396, 383, 6415, 2303, 29901, 315, 3583, 29909, 1056, 18050, 29905, 1982, 29905, 2746, 29899, 8318, 29905, 15112, 29905, 3221, 29905, 9564, 12404, 29889, 2272, 29901, 29896, 29929, 29947, 29901, 13, 4706, 396, 4706, 897, 1457, 9252, 22709, 29901, 443, 2098, 519, 270, 8768, 29936, 7863, 17336, 541, 13, 4706, 396, 4706, 297, 278, 5434, 445, 674, 367, 385, 1059, 13, 4706, 694, 29918, 6605, 29906, 29918, 13203, 353, 6024, 21713, 29923, 2101, 5975, 742, 525, 8909, 29916, 29923, 2101, 5975, 742, 13, 462, 9651, 525, 29933, 2707, 1847, 29923, 2101, 5975, 2033, 13, 4706, 1121, 29918, 8768, 353, 1583, 29889, 657, 29918, 2371, 29918, 8768, 580, 13, 4706, 14383, 29918, 15112, 353, 6024, 7529, 742, 525, 29887, 29886, 6008, 742, 525, 16264, 29886, 6008, 742, 525, 1837, 735, 262, 742, 525, 567, 6289, 742, 525, 3712, 2105, 29896, 742, 13, 462, 539, 525, 7720, 29918, 3149, 29918, 7915, 742, 525, 3712, 2105, 29941, 2033, 13, 13, 4706, 565, 7431, 29898, 1311, 29889, 2922, 11669, 1125, 13, 9651, 363, 1820, 29892, 4636, 297, 12705, 29898, 1311, 29889, 2922, 11669, 29889, 7076, 580, 1125, 13, 18884, 565, 756, 5552, 29898, 5344, 29892, 525, 4282, 29918, 1272, 2557, 29374, 13, 462, 1678, 4636, 29889, 4282, 29918, 1272, 2557, 580, 13, 18884, 1683, 29901, 13, 462, 1678, 10191, 353, 313, 29888, 29915, 15112, 29901, 2048, 29918, 1272, 2557, 338, 451, 6969, 363, 1820, 2433, 13, 462, 965, 285, 29915, 29912, 1989, 29913, 1134, 3790, 710, 29898, 1853, 29898, 5344, 876, 29913, 1495, 13, 462, 1678, 1583, 29889, 1188, 29889, 27392, 29898, 7645, 29897, 13, 462, 1678, 12020, 2216, 1888, 2037, 287, 2392, 580, 13, 13, 4706, 363, 1121, 29918, 1853, 297, 1121, 29918, 8768, 29901, 13, 9651, 565, 313, 2914, 29918, 1853, 297, 14383, 29918, 15112, 470, 13, 462, 1678, 1121, 29918, 1853, 29889, 27382, 2541, 877, 26679, 267, 6169, 22164, 13, 18884, 6773, 13, 9651, 1121, 353, 1583, 29889, 657, 29918, 2914, 29898, 2914, 29918, 1853, 29897, 13, 13, 9651, 363, 5446, 297, 1121, 29889, 5975, 7295, 13, 18884, 770, 29918, 978, 353, 5446, 17255, 1990, 1649, 17255, 978, 1649, 13, 18884, 5446, 29889, 3318, 29918, 15697, 580, 13, 18884, 5446, 29889, 3318, 29918, 23515, 580, 13, 18884, 851, 29898, 5415, 29897, 13, 18884, 5446, 29889, 657, 29918, 16202, 580, 13, 13, 18884, 565, 770, 29918, 978, 297, 694, 29918, 6605, 29906, 29918, 13203, 29901, 13, 462, 1678, 1018, 29901, 13, 462, 4706, 5446, 29889, 4282, 29918, 1272, 2557, 580, 13, 462, 4706, 4974, 5446, 29889, 1272, 29918, 2557, 338, 451, 6213, 13, 462, 1678, 5174, 18914, 2392, 29901, 13, 462, 4706, 12020, 13, 462, 1678, 5174, 8960, 408, 321, 29901, 13, 462, 4706, 1583, 29889, 1188, 29889, 2704, 29898, 5415, 29897, 13, 462, 4706, 10191, 353, 285, 29915, 4282, 29918, 1272, 2557, 338, 9391, 363, 426, 1990, 29918, 978, 10162, 13, 462, 4706, 1583, 29889, 1188, 29889, 2704, 29898, 7645, 29897, 13, 462, 4706, 12020, 321, 13, 462, 1678, 6773, 13, 13, 18884, 565, 5446, 29889, 275, 29918, 6605, 29906, 29901, 13, 462, 1678, 10191, 353, 313, 13, 462, 4706, 285, 29915, 4282, 29918, 1272, 2557, 338, 451, 6969, 363, 426, 1990, 29918, 978, 29913, 525, 13, 462, 4706, 285, 28560, 317, 8476, 29906, 1495, 13, 462, 1678, 1583, 29889, 1188, 29889, 27392, 29898, 7645, 29897, 13, 462, 1678, 6773, 13, 13, 18884, 396, 317, 8476, 29896, 13, 18884, 1018, 29901, 13, 462, 1678, 5446, 29889, 4282, 29918, 1272, 2557, 580, 13, 18884, 5174, 18914, 2392, 29901, 13, 462, 1678, 12020, 13, 18884, 5174, 2216, 1888, 2037, 287, 2392, 29901, 13, 462, 1678, 1583, 29889, 1188, 29889, 27392, 29898, 5415, 29897, 13, 462, 1678, 1583, 29889, 1188, 29889, 27392, 29898, 29888, 29915, 4282, 29918, 1272, 2557, 338, 9391, 363, 525, 13, 462, 462, 268, 285, 29915, 29912, 1990, 29918, 978, 29913, 1495, 13, 462, 1678, 12020, 13, 18884, 5174, 8960, 408, 321, 29901, 13, 462, 1678, 1583, 29889, 1188, 29889, 2704, 29898, 5415, 29897, 13, 462, 1678, 1583, 29889, 1188, 29889, 2704, 29898, 29888, 29915, 4282, 29918, 1272, 2557, 338, 9391, 363, 525, 13, 462, 462, 259, 285, 29915, 29912, 1990, 29918, 978, 29913, 1495, 13, 462, 1678, 12020, 321, 13, 13, 1678, 822, 2254, 29918, 29882, 2176, 29945, 29918, 9507, 29898, 1311, 29892, 298, 2176, 29945, 29918, 9507, 29901, 851, 29892, 14405, 29901, 6120, 353, 5852, 13, 462, 965, 1723, 1599, 6213, 29901, 13, 4706, 9995, 5896, 29879, 385, 298, 29945, 934, 964, 385, 6418, 29906, 1203, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 298, 2176, 29945, 29918, 9507, 584, 851, 13, 9651, 278, 2224, 304, 278, 385, 298, 2176, 29945, 934, 13, 4706, 14405, 584, 6120, 29936, 2322, 29922, 5574, 13, 9651, 6057, 278, 14405, 26529, 13, 4706, 9995, 13, 4706, 1423, 29918, 2084, 29898, 29882, 2176, 29945, 29918, 9507, 29892, 525, 29882, 2176, 29945, 29918, 9507, 1495, 13, 4706, 1583, 29889, 459, 29906, 29918, 9507, 353, 298, 2176, 29945, 29918, 9507, 13, 4706, 1583, 29889, 1188, 29889, 3888, 29898, 29888, 29915, 29882, 2176, 29945, 29918, 459, 29906, 29918, 9507, 353, 426, 29882, 2176, 29945, 29918, 9507, 29991, 29878, 29913, 1495, 13, 4706, 4744, 353, 7700, 13, 13, 4706, 411, 298, 29945, 2272, 29889, 2283, 29898, 29882, 2176, 29945, 29918, 9507, 29892, 525, 29878, 1495, 408, 298, 29945, 29918, 1445, 29901, 13, 9651, 2254, 29918, 459, 29906, 29918, 3166, 29918, 29882, 2176, 29945, 29918, 1445, 29898, 1311, 29892, 298, 29945, 29918, 1445, 29892, 1583, 29889, 1188, 29892, 4744, 29922, 8382, 29897, 13, 4706, 1583, 29889, 17743, 457, 29918, 9902, 29898, 17743, 457, 29922, 17743, 457, 29897, 13, 4706, 736, 6213, 13, 13, 1678, 822, 2254, 29918, 29882, 2176, 29945, 29918, 1445, 29898, 1311, 29892, 298, 29945, 29918, 1445, 29901, 379, 29945, 2283, 29892, 14405, 29901, 6120, 353, 5852, 29897, 1599, 6213, 29901, 13, 4706, 9995, 5896, 29879, 385, 298, 29945, 934, 1203, 964, 385, 6418, 29906, 1203, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 298, 29945, 29918, 1445, 584, 379, 29945, 2283, 580, 13, 9651, 385, 298, 29945, 2272, 934, 1203, 13, 4706, 14405, 584, 6120, 29936, 2322, 29922, 5574, 13, 9651, 6057, 278, 14405, 26529, 13, 4706, 9995, 13, 4706, 4744, 353, 7700, 13, 4706, 2254, 29918, 459, 29906, 29918, 3166, 29918, 29882, 2176, 29945, 29918, 1445, 29898, 1311, 29892, 298, 29945, 29918, 1445, 29892, 1583, 29889, 1188, 29892, 4744, 29922, 8382, 29897, 13, 4706, 1583, 29889, 17743, 457, 29918, 9902, 29898, 17743, 457, 29922, 17743, 457, 29897, 13, 4706, 736, 6213, 13, 13, 1678, 822, 5609, 29918, 29882, 2176, 29945, 29918, 9507, 29898, 1311, 29892, 298, 2176, 29945, 29918, 9507, 29901, 851, 29897, 1599, 6213, 29901, 13, 4706, 9995, 1168, 369, 1372, 278, 6418, 29906, 3618, 964, 298, 2176, 29945, 1203, 13, 13, 9651, 6317, 10481, 1057, 1838, 29915, 29873, 2304, 4954, 29933, 2707, 1847, 29923, 2101, 5975, 16159, 13, 4706, 9995, 13, 4706, 5609, 29918, 459, 29906, 29918, 517, 29918, 29882, 2176, 29945, 29918, 9507, 29898, 29882, 2176, 29945, 29918, 9507, 29892, 1583, 29897, 13, 4706, 736, 6213, 13, 13, 1678, 822, 5609, 29918, 29882, 2176, 29945, 29918, 1445, 29898, 1311, 29892, 298, 2176, 29945, 29918, 1445, 29901, 379, 29945, 2283, 29892, 1518, 9555, 29922, 8516, 29897, 1599, 6213, 29901, 13, 4706, 9995, 1168, 369, 1372, 278, 6418, 29906, 3618, 964, 298, 2176, 29945, 1203, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 298, 2176, 29945, 29918, 1445, 584, 379, 29945, 2283, 580, 13, 9651, 385, 298, 29945, 2272, 1203, 13, 4706, 1518, 9555, 584, 379, 4037, 29945, 1252, 18505, 29936, 2322, 29922, 8516, 13, 9651, 443, 3880, 13, 13, 9651, 6317, 10481, 1057, 1838, 29915, 29873, 2304, 4954, 29933, 2707, 1847, 29923, 2101, 5975, 16159, 13, 4706, 9995, 13, 4706, 5609, 29918, 459, 29906, 29918, 517, 29918, 29882, 2176, 29945, 29918, 1445, 29898, 29882, 2176, 29945, 29918, 1445, 29892, 1583, 29897, 13, 4706, 736, 6213, 13, 13, 1678, 822, 14405, 29918, 9902, 29898, 1311, 29892, 14405, 29901, 7761, 29961, 710, 29892, 6120, 29962, 353, 5852, 29897, 1599, 6213, 29901, 13, 4706, 9995, 4782, 322, 3402, 763, 848, 491, 1014, 4878, 13, 13, 4706, 1334, 864, 278, 848, 304, 367, 297, 278, 1021, 3402, 322, 27831, 491, 1014, 4878, 29892, 577, 591, 13, 4706, 2125, 13, 13, 4706, 6317, 775, 29899, 1271, 1057, 3017, 13, 13, 965, 22884, 353, 426, 13, 1669, 396, 338, 431, 4878, 29892, 7418, 29918, 401, 29892, 2656, 29918, 5696, 29892, 2302, 29892, 13159, 406, 944, 29918, 1114, 415, 2068, 29918, 2248, 29892, 282, 791, 29918, 10568, 13, 1669, 313, 29896, 29892, 29871, 29906, 29892, 29871, 29896, 29892, 29871, 29900, 29892, 525, 29903, 4897, 27267, 1307, 13780, 29871, 29900, 742, 27255, 584, 1121, 29896, 29892, 13, 1669, 313, 29896, 29892, 29871, 29906, 29892, 29871, 29896, 29892, 29871, 29900, 29892, 525, 29903, 4897, 27267, 1307, 13780, 29871, 29896, 29900, 742, 27255, 584, 1121, 29906, 29892, 13, 1669, 313, 29896, 29892, 29871, 29906, 29892, 29871, 29896, 29892, 29871, 29900, 29892, 525, 29903, 4897, 27267, 1307, 13780, 29871, 29906, 29900, 742, 27255, 584, 1121, 29941, 29892, 13, 1669, 313, 29906, 29892, 29871, 29906, 29892, 29871, 29896, 29892, 29871, 29900, 29892, 525, 29903, 4897, 27267, 1307, 13780, 29871, 29900, 742, 27255, 584, 1121, 29946, 29892, 13, 13, 965, 775, 353, 313, 275, 431, 4878, 29892, 7418, 29918, 401, 29892, 2656, 29918, 5696, 29892, 2302, 29892, 288, 3174, 29892, 13, 462, 259, 13159, 406, 944, 29918, 1114, 415, 2068, 29918, 2248, 29892, 282, 791, 29918, 10568, 29897, 13, 632, 500, 13, 13, 4706, 322, 3588, 372, 304, 29901, 13, 13, 4706, 6317, 775, 29899, 1271, 1057, 3017, 13, 13, 965, 22884, 353, 426, 13, 18884, 29896, 584, 1121, 29896, 718, 1121, 29906, 718, 2582, 29941, 29892, 13, 18884, 29906, 584, 1121, 29946, 29892, 13, 965, 500, 13, 4706, 9995, 13, 4706, 1583, 29889, 17743, 457, 353, 14405, 13, 4706, 1121, 29918, 8768, 353, 1583, 29889, 657, 29918, 2371, 29918, 8768, 580, 13, 4706, 2582, 29918, 517, 29918, 11014, 353, 6024, 16264, 29886, 6008, 742, 525, 29887, 29886, 6008, 742, 525, 1837, 735, 262, 742, 525, 7720, 29918, 3149, 29918, 7915, 742, 13, 462, 965, 525, 567, 6289, 742, 525, 3712, 2105, 29896, 742, 525, 3712, 2105, 29941, 2033, 13, 13, 4706, 396, 731, 1014, 4878, 29918, 1989, 13, 4706, 363, 1121, 29918, 1853, 297, 1121, 29918, 8768, 29901, 13, 9651, 565, 313, 2914, 29918, 1853, 297, 2582, 29918, 517, 29918, 11014, 470, 13, 462, 1678, 1121, 29918, 1853, 29889, 27382, 2541, 877, 26679, 267, 6169, 22164, 13, 18884, 6773, 13, 9651, 1121, 353, 1583, 29889, 657, 29918, 2914, 29898, 2914, 29918, 1853, 29897, 13, 13, 9651, 1018, 29901, 13, 18884, 1206, 29918, 8149, 353, 12705, 29898, 2914, 29889, 8149, 3101, 13, 9651, 5174, 23833, 2392, 29901, 13, 18884, 1583, 29889, 1188, 29889, 2704, 29898, 29888, 29915, 2914, 29918, 1853, 353, 426, 2914, 29918, 1853, 29913, 1495, 13, 18884, 12020, 13, 13, 9651, 363, 1206, 29918, 1989, 297, 1206, 29918, 8149, 29901, 13, 18884, 565, 338, 8758, 29898, 4878, 29918, 1989, 29892, 18761, 1125, 13, 462, 1678, 338, 431, 4878, 29875, 29892, 7418, 29918, 401, 29875, 29892, 334, 720, 414, 353, 1206, 29918, 1989, 13, 462, 1678, 565, 4045, 29961, 29946, 29962, 1275, 29871, 29900, 29901, 13, 462, 4706, 995, 353, 518, 15916, 29918, 401, 29875, 29962, 718, 4045, 7503, 29941, 29962, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 995, 353, 518, 15916, 29918, 401, 29875, 29962, 718, 4045, 13, 13, 462, 1678, 565, 995, 451, 297, 1583, 29889, 1491, 4878, 29918, 1989, 29961, 275, 431, 4878, 29875, 5387, 13, 462, 4706, 1583, 29889, 1491, 4878, 29918, 1989, 29961, 275, 431, 4878, 29875, 1822, 4397, 29898, 1767, 29897, 13, 18884, 1683, 29901, 13, 462, 1678, 2867, 13, 13, 4706, 565, 451, 14405, 29901, 13, 9651, 1014, 4878, 29918, 1989, 29906, 353, 6571, 13, 13, 9651, 363, 1820, 29892, 995, 297, 1583, 29889, 1491, 4878, 29918, 1989, 29889, 7076, 7295, 13, 18884, 1014, 4878, 29918, 1989, 29906, 29961, 1989, 29962, 353, 995, 13, 9651, 1583, 29889, 1491, 4878, 29918, 1989, 353, 1014, 4878, 29918, 1989, 29906, 13, 9651, 736, 13, 13, 4706, 628, 1121, 29892, 1206, 29918, 8149, 13, 13, 4706, 338, 431, 11436, 353, 7442, 29889, 13092, 29898, 1761, 29898, 1311, 29889, 1491, 4878, 29918, 1989, 29889, 8149, 22130, 13, 4706, 5412, 29918, 275, 431, 11436, 353, 7442, 29889, 13092, 29898, 275, 431, 11436, 29897, 13, 4706, 1583, 29889, 1188, 29889, 8382, 877, 17743, 457, 29918, 9902, 1495, 13, 13, 4706, 363, 1121, 29918, 1853, 297, 1121, 29918, 8768, 29901, 13, 9651, 565, 313, 2914, 29918, 1853, 297, 2582, 29918, 517, 29918, 11014, 470, 13, 462, 1678, 1121, 29918, 1853, 29889, 27382, 2541, 877, 26679, 267, 6169, 22164, 13, 18884, 6773, 13, 9651, 1121, 353, 1583, 29889, 657, 29918, 2914, 29898, 2914, 29918, 1853, 29897, 13, 13, 9651, 565, 7431, 29898, 2914, 29897, 1275, 29871, 29900, 29901, 13, 18884, 6773, 13, 13, 9651, 363, 338, 431, 4878, 297, 5412, 29918, 275, 431, 11436, 29901, 13, 18884, 1018, 29901, 13, 462, 1678, 6611, 353, 1583, 29889, 1491, 4878, 29918, 1989, 29961, 275, 431, 4878, 29962, 13, 18884, 5174, 20948, 29901, 13, 462, 1678, 1596, 877, 275, 431, 4878, 353, 742, 338, 431, 4878, 29897, 13, 462, 1678, 1596, 877, 275, 431, 11436, 353, 742, 338, 431, 11436, 29897, 13, 462, 1678, 1596, 877, 1311, 29889, 1491, 4878, 29918, 1989, 353, 742, 1583, 29889, 1491, 4878, 29918, 1989, 29897, 13, 462, 1678, 12020, 13, 18884, 1820, 29900, 353, 18761, 4197, 275, 431, 4878, 29962, 718, 1051, 29898, 8149, 29961, 29900, 12622, 13, 13, 18884, 565, 7431, 29898, 1989, 29900, 29897, 1275, 29871, 29945, 29901, 13, 462, 1678, 396, 288, 3174, 338, 13136, 13, 462, 1678, 338, 431, 4878, 29892, 7418, 29918, 401, 29892, 334, 720, 414, 353, 1820, 29900, 13, 462, 1678, 1820, 29896, 353, 518, 275, 431, 4878, 29892, 7418, 29918, 401, 29892, 29871, 29896, 29962, 718, 4045, 29961, 29900, 17531, 13, 462, 1678, 1820, 29906, 353, 518, 275, 431, 4878, 29892, 7418, 29918, 401, 29892, 29871, 29906, 29962, 718, 4045, 29961, 29900, 17531, 13, 18884, 1683, 29901, 13, 462, 1678, 338, 431, 4878, 29892, 7418, 29918, 401, 29892, 334, 720, 414, 353, 1820, 29900, 13, 462, 1678, 1820, 29896, 353, 518, 275, 431, 4878, 29892, 7418, 29918, 401, 29892, 29871, 29896, 29962, 718, 4045, 29961, 29900, 17531, 13, 462, 1678, 1820, 29906, 353, 518, 275, 431, 4878, 29892, 7418, 29918, 401, 29892, 29871, 29896, 29962, 718, 4045, 29961, 29900, 17531, 13, 13, 18884, 565, 7431, 29898, 8149, 29897, 1275, 29871, 29896, 29901, 13, 462, 1678, 565, 1820, 29900, 451, 297, 1121, 29901, 13, 462, 4706, 6773, 13, 462, 1678, 396, 3118, 18761, 363, 1121, 29936, 390, 3871, 1206, 13, 462, 1678, 1121, 29961, 275, 431, 4878, 29962, 353, 1121, 29961, 1989, 29900, 29962, 13, 462, 1678, 628, 1121, 29961, 1989, 29900, 29962, 13, 18884, 25342, 7431, 29898, 8149, 29897, 1275, 29871, 29906, 322, 1820, 29896, 297, 6611, 322, 1820, 29906, 297, 6611, 29901, 13, 462, 1678, 338, 431, 4878, 29892, 7418, 29918, 401, 29892, 334, 720, 414, 353, 1820, 29900, 13, 462, 1678, 565, 451, 313, 1989, 29896, 297, 1121, 322, 1820, 29906, 297, 1121, 1125, 13, 462, 4706, 565, 1820, 29896, 297, 1121, 29901, 13, 462, 9651, 620, 29896, 353, 1121, 29961, 1989, 29896, 29962, 13, 462, 9651, 10191, 353, 313, 29888, 29908, 690, 3790, 690, 29896, 17255, 1990, 1649, 17255, 978, 1649, 29913, 756, 263, 376, 13, 462, 462, 259, 285, 29908, 14369, 1206, 29936, 12604, 1159, 13, 462, 9651, 1583, 29889, 1188, 29889, 3888, 29898, 7645, 29897, 13, 462, 9651, 1121, 29961, 275, 431, 4878, 29962, 353, 1121, 29961, 1989, 29896, 29962, 13, 462, 9651, 628, 1121, 29961, 1989, 29896, 29962, 13, 462, 4706, 25342, 1820, 29906, 297, 1121, 29901, 13, 462, 9651, 620, 29906, 353, 1121, 29961, 1989, 29906, 29962, 13, 462, 9651, 10191, 353, 313, 29888, 29915, 690, 3790, 690, 29906, 17255, 1990, 1649, 17255, 978, 1649, 29913, 756, 263, 525, 13, 462, 462, 259, 285, 29915, 14369, 1206, 29936, 12604, 1495, 13, 462, 9651, 1583, 29889, 1188, 29889, 3888, 29898, 7645, 29897, 13, 462, 9651, 1121, 29961, 275, 431, 4878, 29962, 353, 1121, 29961, 1989, 29906, 29962, 13, 462, 9651, 628, 1121, 29961, 1989, 29906, 29962, 13, 462, 4706, 6773, 13, 13, 462, 1678, 620, 29896, 353, 1121, 29961, 1989, 29896, 29962, 13, 462, 1678, 770, 29918, 978, 353, 620, 29896, 17255, 1990, 1649, 17255, 978, 1649, 13, 13, 462, 1678, 565, 451, 756, 5552, 29898, 690, 29896, 29892, 525, 17743, 457, 29374, 13, 462, 4706, 1583, 29889, 1188, 29889, 3888, 29898, 13, 462, 9651, 285, 29915, 690, 3790, 1990, 29918, 978, 29913, 756, 694, 1158, 14405, 1495, 13, 462, 4706, 6773, 13, 13, 462, 1678, 1583, 29889, 1188, 29889, 3888, 29898, 29888, 29915, 690, 3790, 1990, 29918, 978, 29913, 756, 14405, 1495, 13, 462, 1678, 620, 29906, 353, 1121, 29961, 1989, 29906, 29962, 13, 462, 1678, 628, 1121, 29961, 1989, 29896, 29962, 13, 462, 1678, 628, 1121, 29961, 1989, 29906, 29962, 13, 462, 1678, 620, 29896, 29889, 17743, 457, 29898, 690, 29906, 29897, 13, 462, 1678, 1121, 29961, 275, 431, 4878, 29962, 353, 620, 29896, 13, 18884, 1683, 29901, 13, 462, 1678, 6773, 13, 9651, 731, 5552, 29898, 1311, 29892, 1121, 29918, 1853, 29892, 1121, 29897, 13, 13, 4706, 1014, 4878, 29918, 1989, 29906, 353, 6571, 13, 4706, 451, 29918, 9902, 353, 6024, 29872, 2101, 5975, 742, 525, 29872, 2101, 5975, 29918, 1579, 5416, 742, 525, 7529, 742, 525, 29887, 29886, 6008, 742, 13, 462, 539, 525, 16264, 29886, 6008, 742, 525, 1837, 735, 262, 742, 525, 2783, 16908, 742, 525, 7720, 29918, 3149, 29918, 7915, 742, 13, 462, 539, 525, 567, 6289, 742, 525, 3712, 2105, 29896, 742, 525, 3712, 2105, 29941, 2033, 13, 13, 4706, 363, 1121, 29918, 1853, 297, 1121, 29918, 8768, 29901, 13, 9651, 565, 313, 2914, 29918, 1853, 297, 451, 29918, 9902, 470, 13, 462, 1678, 1121, 29918, 1853, 29889, 27382, 2541, 877, 26679, 267, 6169, 22164, 13, 18884, 6773, 13, 9651, 1121, 353, 1583, 29889, 657, 29918, 2914, 29898, 2914, 29918, 1853, 29897, 13, 13, 9651, 1018, 29901, 13, 18884, 1206, 29918, 8149, 353, 1051, 29898, 2914, 29889, 8149, 3101, 13, 9651, 5174, 23833, 2392, 29901, 13, 18884, 1583, 29889, 1188, 29889, 2704, 29898, 29888, 29915, 2914, 29918, 1853, 353, 426, 2914, 29918, 1853, 29913, 1495, 13, 18884, 12020, 13, 13, 9651, 1018, 29901, 29871, 396, 383, 6415, 2303, 29901, 9946, 897, 1457, 9252, 22709, 13, 18884, 1206, 29918, 8149, 353, 12705, 29898, 4878, 29918, 8149, 29897, 13, 9651, 5174, 20948, 29901, 13, 18884, 1583, 29889, 1188, 29889, 2704, 29898, 29888, 29915, 2914, 29889, 8149, 580, 353, 426, 4878, 29918, 8149, 29913, 1495, 13, 13, 9651, 565, 7431, 29898, 2914, 29897, 1275, 29871, 29900, 29901, 13, 18884, 6773, 13, 13, 9651, 363, 338, 431, 4878, 297, 5412, 29918, 275, 431, 11436, 29901, 13, 18884, 565, 338, 431, 4878, 451, 297, 1014, 4878, 29918, 1989, 29906, 29901, 13, 462, 1678, 1014, 4878, 29918, 1989, 29906, 29961, 275, 431, 4878, 29962, 353, 5159, 13, 13, 9651, 363, 338, 431, 4878, 297, 5412, 29918, 275, 431, 11436, 29901, 13, 18884, 363, 1206, 29918, 1989, 297, 1206, 29918, 8149, 29901, 13, 462, 1678, 4974, 451, 338, 8758, 29898, 4878, 29918, 1989, 29892, 851, 511, 1121, 29918, 1853, 13, 13, 462, 1678, 565, 338, 8758, 29898, 4878, 29918, 1989, 29892, 6043, 29918, 8768, 1125, 13, 462, 4706, 565, 313, 275, 431, 4878, 1275, 1206, 29918, 1989, 322, 13, 462, 18884, 1206, 29918, 1989, 451, 297, 1014, 4878, 29918, 1989, 29906, 29961, 275, 431, 4878, 29962, 1125, 13, 462, 9651, 1014, 4878, 29918, 1989, 29906, 29961, 275, 431, 4878, 29962, 353, 518, 275, 431, 4878, 29962, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 1018, 29901, 13, 462, 9651, 1014, 4878, 29875, 353, 1206, 29918, 1989, 29961, 29900, 29962, 13, 462, 4706, 5174, 11374, 2392, 29901, 13, 462, 9651, 10191, 353, 313, 29888, 29915, 4878, 29918, 1989, 3790, 4878, 29918, 1989, 3400, 1134, 29898, 4878, 29918, 1989, 29897, 2433, 13, 462, 462, 259, 285, 29915, 29912, 1853, 29898, 4878, 29918, 1989, 2915, 29936, 1206, 29918, 1989, 29961, 29900, 29962, 338, 451, 278, 525, 13, 462, 462, 259, 285, 29915, 1491, 4878, 1178, 1495, 13, 462, 9651, 12020, 11374, 2392, 29898, 7645, 29897, 13, 13, 462, 4706, 565, 1206, 29918, 1989, 451, 297, 1014, 4878, 29918, 1989, 29906, 29961, 1491, 4878, 29875, 5387, 13, 462, 9651, 1014, 4878, 29918, 1989, 29906, 29961, 275, 431, 4878, 1822, 4397, 29898, 4878, 29918, 1989, 29897, 13, 13, 4706, 1583, 29889, 1491, 4878, 29918, 1989, 353, 1014, 4878, 29918, 1989, 29906, 13, 4706, 736, 6213, 13, 13, 1678, 822, 679, 29918, 1989, 29918, 2098, 29898, 1311, 29897, 1599, 1051, 29961, 23583, 29961, 10773, 29892, 3139, 29892, 3139, 29892, 3139, 29892, 13, 462, 462, 3986, 7761, 29961, 524, 29892, 3139, 1402, 3139, 29892, 3139, 5262, 29901, 13, 4706, 9995, 2577, 278, 1797, 310, 278, 6611, 13, 13, 4706, 16969, 13, 4706, 448, 22158, 13, 4706, 6611, 29941, 584, 2391, 29961, 524, 29892, 938, 29892, 938, 29892, 938, 29892, 938, 29892, 851, 29962, 13, 9651, 278, 6611, 297, 1797, 13, 4706, 9995, 13, 4706, 6611, 353, 5159, 13, 4706, 1591, 29918, 8768, 353, 1583, 29889, 657, 29918, 2371, 29918, 8768, 580, 13, 4706, 14383, 29918, 24051, 353, 6024, 29887, 29886, 6008, 742, 525, 16264, 29886, 6008, 742, 525, 1837, 735, 262, 742, 525, 7720, 29918, 3149, 29918, 7915, 742, 525, 567, 6289, 742, 13, 462, 539, 525, 3712, 2105, 29896, 742, 525, 3712, 2105, 29941, 2033, 13, 13, 4706, 363, 1591, 29918, 1853, 297, 12705, 29898, 2371, 29918, 8768, 1125, 13, 9651, 565, 313, 2371, 29918, 1853, 297, 14383, 29918, 24051, 470, 13, 462, 1678, 1591, 29918, 1853, 29889, 27382, 2541, 877, 26679, 267, 6169, 22164, 13, 18884, 6773, 13, 9651, 1121, 29918, 1853, 29918, 8977, 353, 1583, 29889, 657, 29918, 2914, 29898, 2371, 29918, 1853, 29897, 13, 13, 9651, 565, 7431, 29898, 2914, 29918, 1853, 29918, 8977, 29897, 1275, 29871, 29900, 29901, 13, 18884, 6773, 13, 13, 9651, 363, 1820, 297, 1121, 29918, 1853, 29918, 8977, 29901, 13, 18884, 565, 338, 8758, 29898, 1989, 29892, 851, 1125, 13, 462, 1678, 565, 313, 2371, 29918, 1853, 451, 297, 6024, 29872, 2101, 5975, 742, 525, 29872, 2101, 5975, 29918, 1579, 5416, 742, 13, 462, 462, 965, 525, 7529, 2033, 1125, 13, 462, 4706, 1583, 29889, 1188, 29889, 27392, 29898, 29888, 29915, 2371, 29918, 1853, 353, 426, 2371, 29918, 1853, 29913, 1495, 13, 462, 1678, 6773, 13, 13, 18884, 565, 1820, 451, 297, 6611, 29901, 13, 462, 1678, 6611, 29889, 4397, 29898, 1989, 29897, 13, 13, 4706, 7418, 29918, 18137, 353, 731, 580, 13, 4706, 18139, 353, 731, 580, 13, 4706, 338, 431, 11436, 353, 731, 580, 13, 4706, 3671, 893, 353, 731, 580, 13, 4706, 282, 791, 29918, 24530, 353, 731, 580, 13, 4706, 2656, 29918, 23515, 353, 731, 580, 13, 4706, 13159, 406, 944, 29918, 1114, 415, 2068, 29918, 2248, 29879, 353, 731, 580, 13, 13, 4706, 363, 1820, 297, 6611, 29901, 13, 9651, 565, 7431, 29898, 1989, 29897, 1275, 29871, 29953, 29901, 13, 18884, 338, 431, 11436, 29892, 7418, 29918, 18137, 29892, 334, 720, 414, 353, 1820, 13, 18884, 3671, 893, 353, 29871, 29900, 13, 9651, 25342, 7431, 29898, 1989, 29897, 1275, 29871, 29955, 29901, 13, 18884, 338, 431, 11436, 29892, 7418, 29918, 18137, 29892, 334, 720, 414, 353, 1820, 13, 9651, 1683, 29901, 13, 18884, 1596, 29898, 29888, 29915, 29871, 426, 710, 29898, 1989, 2915, 1495, 13, 18884, 12020, 24875, 2392, 29898, 1989, 29897, 13, 13, 9651, 338, 431, 11436, 29889, 1202, 29898, 275, 431, 11436, 29897, 13, 9651, 7418, 29918, 18137, 29889, 1202, 29898, 15916, 29918, 18137, 29897, 13, 9651, 2656, 29918, 23515, 29889, 1202, 29898, 6605, 29918, 23515, 29897, 13, 9651, 18139, 29889, 1202, 29898, 2798, 29879, 29897, 13, 9651, 3671, 893, 29889, 1202, 29898, 468, 893, 29897, 13, 9651, 13159, 406, 944, 29918, 1114, 415, 2068, 29918, 2248, 29879, 29889, 1202, 29898, 12587, 406, 944, 29918, 1114, 415, 2068, 29918, 2248, 29879, 29897, 13, 9651, 282, 791, 29918, 24530, 29889, 1202, 29898, 29886, 791, 29918, 24530, 29897, 13, 13, 4706, 7418, 29918, 401, 29918, 1761, 353, 1051, 29898, 15916, 29918, 18137, 29897, 13, 4706, 2302, 29918, 1761, 353, 1051, 29898, 2798, 29879, 29897, 13, 4706, 338, 431, 4878, 29918, 1761, 353, 1051, 29898, 275, 431, 11436, 29897, 13, 4706, 288, 3174, 29918, 1761, 353, 1051, 29898, 468, 893, 29897, 13, 4706, 282, 791, 29918, 10568, 29918, 1761, 353, 1051, 29898, 29886, 791, 29918, 24530, 29897, 13, 4706, 2656, 29918, 5696, 29918, 1761, 353, 1051, 29898, 6605, 29918, 23515, 29897, 13, 4706, 13159, 406, 944, 29918, 1114, 415, 2068, 29918, 2248, 29918, 1761, 353, 1051, 29898, 13, 9651, 13159, 406, 944, 29918, 1114, 415, 2068, 29918, 2248, 29879, 29897, 13, 13, 4706, 7418, 29918, 401, 29918, 1761, 29889, 6605, 580, 13, 4706, 2302, 29918, 1761, 29889, 6605, 580, 13, 4706, 338, 431, 4878, 29918, 1761, 29889, 6605, 580, 13, 4706, 288, 3174, 29918, 1761, 29889, 6605, 580, 13, 4706, 282, 791, 29918, 10568, 29918, 1761, 29889, 6605, 580, 13, 4706, 2656, 29918, 5696, 29918, 1761, 29889, 6605, 580, 13, 4706, 13159, 406, 944, 29918, 1114, 415, 2068, 29918, 2248, 29918, 1761, 29889, 6605, 580, 13, 13, 4706, 6611, 29941, 353, 5159, 13, 13, 4706, 396, 14402, 29901, 910, 4225, 304, 748, 3448, 322, 367, 8611, 491, 1554, 1683, 16824, 13, 4706, 363, 338, 431, 4878, 297, 338, 431, 4878, 29918, 1761, 29901, 13, 9651, 363, 2302, 297, 2302, 29918, 1761, 29901, 13, 18884, 363, 7418, 29918, 401, 297, 7418, 29918, 401, 29918, 1761, 29901, 13, 462, 1678, 363, 872, 29875, 297, 13159, 406, 944, 29918, 1114, 415, 2068, 29918, 2248, 29918, 1761, 29901, 13, 462, 4706, 363, 282, 791, 29918, 10568, 297, 282, 791, 29918, 10568, 29918, 1761, 29901, 13, 462, 9651, 363, 2656, 29918, 5696, 297, 2656, 29918, 5696, 29918, 1761, 29901, 13, 462, 18884, 363, 288, 3174, 297, 288, 3174, 29918, 1761, 29901, 13, 462, 462, 1678, 1820, 353, 313, 275, 431, 4878, 29892, 7418, 29918, 401, 29892, 13, 462, 462, 965, 2656, 29918, 5696, 29892, 2302, 29892, 288, 3174, 29892, 13, 462, 462, 965, 872, 29875, 29892, 13, 462, 462, 965, 282, 791, 29918, 10568, 29897, 13, 462, 462, 1678, 565, 1820, 451, 297, 6611, 29941, 29901, 13, 462, 462, 4706, 6611, 29941, 29889, 4397, 29898, 1989, 29897, 13, 13, 4706, 565, 7431, 29898, 8149, 29941, 29897, 1275, 29871, 29900, 29901, 13, 9651, 10191, 353, 285, 29915, 3782, 2582, 856, 29905, 29876, 29912, 1311, 29889, 657, 29918, 459, 29906, 29918, 16202, 29898, 12759, 29922, 5574, 2915, 29915, 13, 9651, 1583, 29889, 1188, 29889, 27392, 29898, 7645, 29897, 13, 4706, 736, 6611, 29941, 13, 13, 1678, 822, 1596, 29918, 1491, 4878, 29918, 1989, 29898, 1311, 29897, 1599, 6213, 29901, 13, 4706, 396, 14402, 29901, 28197, 1807, 363, 445, 1158, 13, 4706, 1583, 29889, 1188, 29889, 3888, 877, 5634, 1311, 29889, 1491, 4878, 29918, 1989, 5634, 1495, 13, 4706, 363, 338, 431, 4878, 29892, 6611, 297, 12705, 29898, 1311, 29889, 1491, 4878, 29918, 1989, 29889, 7076, 580, 1125, 13, 9651, 565, 7431, 29898, 8149, 29897, 1275, 29871, 29896, 29901, 13, 18884, 1583, 29889, 1188, 29889, 3888, 29898, 29888, 29915, 1491, 4878, 29918, 333, 353, 426, 275, 431, 4878, 29913, 584, 6611, 353, 426, 8149, 29913, 1495, 13, 9651, 1683, 29901, 13, 18884, 1583, 29889, 1188, 29889, 3888, 29898, 29888, 29915, 1491, 4878, 29918, 333, 353, 426, 275, 431, 4878, 29913, 1495, 13, 18884, 363, 1820, 297, 6611, 29901, 13, 462, 1678, 1583, 29889, 1188, 29889, 3888, 29898, 29888, 29915, 29871, 426, 710, 29898, 1989, 2915, 1495, 13, 4706, 736, 6213, 13, 13, 1678, 822, 4327, 29918, 2218, 29886, 4620, 4110, 29918, 517, 29918, 10945, 29898, 1311, 29892, 16077, 29881, 29918, 9067, 29901, 3139, 29892, 13, 462, 462, 3986, 1302, 4339, 29901, 360, 919, 29961, 524, 29892, 3139, 1402, 13, 462, 462, 3986, 921, 12339, 29918, 25232, 29900, 29901, 3139, 353, 6213, 29892, 13, 462, 462, 3986, 4744, 29901, 6120, 353, 7700, 29897, 1599, 6213, 29901, 13, 4706, 9995, 13372, 12272, 4620, 4110, 964, 5534, 1302, 4339, 13, 13, 4706, 4103, 9514, 278, 4954, 1272, 16159, 310, 12272, 9552, 29899, 4561, 2582, 964, 278, 13, 4706, 5534, 14821, 1788, 363, 1906, 7573, 411, 1422, 1962, 13, 4706, 14821, 6757, 29889, 323, 6926, 16285, 322, 13852, 13516, 13, 4706, 363, 7573, 411, 1009, 1962, 297, 14821, 6757, 916, 1135, 278, 13, 4706, 5534, 29889, 13, 13, 4706, 501, 8485, 297, 10296, 411, 29871, 4954, 29933, 4037, 29889, 657, 29918, 2218, 29886, 9552, 29918, 2248, 16159, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 16077, 29881, 29918, 9067, 584, 9657, 29912, 524, 274, 333, 584, 938, 29871, 299, 2378, 29913, 13, 9651, 13343, 515, 14821, 1178, 304, 2380, 310, 278, 7573, 297, 13, 9651, 4954, 29933, 4037, 29889, 3149, 29918, 4841, 16159, 393, 1009, 1962, 6695, 6530, 6348, 297, 393, 13, 9651, 14821, 1788, 29889, 13, 4706, 1302, 4339, 584, 9657, 29912, 524, 274, 333, 584, 7967, 536, 28296, 13, 9651, 13343, 310, 14821, 1178, 304, 278, 14821, 1203, 13, 9651, 4803, 445, 565, 7307, 338, 871, 7705, 6825, 13, 9651, 4803, 445, 565, 7307, 338, 451, 7705, 6825, 13, 4706, 921, 12339, 29918, 25232, 29900, 584, 313, 15755, 2631, 29974, 29876, 1028, 2461, 29879, 29892, 29871, 29941, 29897, 5785, 29871, 299, 2378, 13, 9651, 278, 7573, 297, 278, 5534, 3515, 13, 9651, 3872, 29915, 29873, 671, 445, 565, 7307, 338, 871, 7705, 6825, 13, 9651, 4803, 445, 565, 7307, 338, 451, 7705, 6825, 13, 4706, 4744, 584, 6120, 29936, 2322, 29922, 8824, 13, 9651, 13897, 4744, 13, 13, 4706, 6317, 9177, 1057, 871, 1736, 565, 599, 7573, 526, 5134, 856, 13, 462, 268, 4954, 1688, 29918, 29886, 948, 7614, 574, 1481, 338, 271, 29918, 509, 273, 29889, 4130, 338, 271, 29918, 509, 273, 29889, 459, 29906, 448, 29888, 302, 7614, 273, 16159, 13, 13, 4706, 6317, 4443, 1057, 405, 7614, 273, 756, 445, 6964, 310, 263, 6996, 313, 25232, 29922, 29900, 29897, 322, 5534, 313, 25232, 29922, 2252, 29897, 13, 462, 29871, 14821, 1788, 29889, 29871, 2688, 6403, 472, 278, 1021, 931, 29889, 29871, 19219, 338, 363, 13, 462, 29871, 11909, 29914, 11330, 29892, 1550, 5534, 338, 363, 1121, 14391, 29889, 13, 13, 462, 29871, 11451, 29940, 7614, 273, 29915, 29879, 6418, 29906, 5067, 3913, 29901, 13, 462, 1678, 448, 14965, 29922, 29900, 363, 5534, 16608, 13, 462, 1678, 448, 14965, 29958, 29900, 526, 1887, 16608, 13, 462, 29871, 11451, 29940, 7614, 273, 29915, 29879, 350, 4037, 5067, 3913, 29901, 13, 462, 1678, 448, 21447, 29922, 29900, 363, 5534, 16608, 13, 462, 1678, 448, 21447, 29958, 29900, 526, 1887, 16608, 13, 4706, 9995, 13, 4706, 472, 29877, 353, 1583, 29889, 459, 29906, 29918, 9902, 29889, 1219, 13, 4706, 274, 1758, 353, 1583, 29889, 459, 29906, 29918, 9902, 29889, 29883, 1758, 13, 4706, 282, 4928, 353, 1583, 29889, 459, 29906, 29918, 9902, 29889, 567, 29881, 13, 4706, 364, 1516, 353, 1583, 29889, 459, 29906, 29918, 9902, 29889, 29878, 1516, 13, 13, 4706, 396, 448, 807, 306, 4459, 763, 445, 338, 901, 19909, 1584, 2466, 372, 338, 263, 2586, 13, 4706, 396, 539, 5520, 322, 901, 26952, 13, 13, 4706, 396, 14402, 29901, 10575, 11698, 2582, 367, 27615, 29973, 13, 4706, 396, 903, 1217, 29918, 2218, 29886, 4620, 4110, 353, 518, 1217, 29889, 2218, 29886, 4620, 4110, 29892, 694, 29889, 955, 542, 1907, 29892, 13, 4706, 396, 462, 418, 694, 29889, 562, 2242, 261, 800, 29892, 694, 29889, 1028, 29883, 29918, 1454, 778, 29892, 694, 29889, 1526, 29883, 29918, 1454, 778, 29962, 13, 13, 4706, 903, 2218, 29886, 353, 518, 13, 9651, 1583, 29889, 2218, 29886, 4620, 4110, 29892, 472, 29877, 29889, 2218, 29886, 4620, 4110, 29892, 274, 1758, 29889, 2218, 29886, 4620, 4110, 29892, 13, 9651, 282, 4928, 29889, 2218, 29886, 4620, 4110, 29892, 364, 1516, 29889, 2218, 29886, 4620, 4110, 29892, 1583, 29889, 2218, 29886, 4620, 4110, 29918, 7052, 29881, 29892, 13, 9651, 1583, 29889, 2218, 29886, 9552, 29918, 7052, 29881, 29918, 5327, 29918, 21494, 336, 29918, 6897, 29892, 13, 9651, 1583, 29889, 2218, 29886, 9552, 29918, 7052, 29881, 29918, 5327, 29918, 21494, 336, 29918, 29876, 2096, 29962, 13, 4706, 903, 955, 353, 518, 1311, 29889, 955, 542, 1907, 29892, 472, 29877, 29889, 955, 542, 1907, 29892, 274, 1758, 29889, 955, 542, 1907, 29892, 13, 18884, 282, 4928, 29889, 955, 542, 1907, 29892, 13, 18884, 364, 1516, 29889, 955, 542, 1907, 29892, 1583, 29889, 955, 25245, 29918, 7052, 29881, 29918, 5327, 29918, 21494, 336, 29918, 6897, 29962, 13, 4706, 903, 562, 2242, 353, 518, 13, 9651, 1583, 29889, 562, 2242, 261, 800, 29892, 472, 29877, 29889, 562, 2242, 261, 800, 29892, 274, 1758, 29889, 562, 2242, 261, 800, 29892, 13, 9651, 282, 4928, 29889, 562, 2242, 261, 800, 29892, 364, 1516, 29889, 562, 2242, 261, 800, 29892, 13, 9651, 1583, 29889, 562, 2242, 261, 362, 29918, 7052, 29881, 29918, 5327, 29918, 21494, 336, 29918, 6897, 29892, 13, 9651, 1583, 29889, 562, 2242, 261, 362, 29918, 7052, 29881, 29918, 5327, 29918, 21494, 336, 29918, 29876, 2096, 29962, 13, 4706, 903, 29872, 335, 353, 518, 13, 9651, 1583, 29889, 29872, 2101, 345, 14359, 29892, 1583, 29889, 459, 29906, 29918, 9902, 29889, 29934, 3035, 6007, 29903, 29889, 29872, 2101, 345, 14359, 29892, 13, 9651, 1583, 29889, 459, 29906, 29918, 9902, 29889, 4717, 2287, 4198, 29924, 29889, 29872, 2101, 345, 14359, 29892, 13, 9651, 1583, 29889, 459, 29906, 29918, 9902, 29889, 4717, 2287, 1299, 29907, 29889, 29872, 2101, 345, 14359, 29892, 13, 9651, 1583, 29889, 459, 29906, 29918, 9902, 29889, 1672, 29965, 22928, 29896, 29889, 29872, 2101, 345, 14359, 29962, 13, 4706, 903, 1028, 29883, 353, 518, 1311, 29889, 1028, 29883, 29918, 1454, 778, 29892, 472, 29877, 29889, 1028, 29883, 29918, 1454, 778, 29892, 274, 1758, 29889, 1028, 29883, 29918, 1454, 778, 29892, 13, 18884, 282, 4928, 29889, 1028, 29883, 29918, 1454, 778, 29892, 13, 18884, 364, 1516, 29889, 1028, 29883, 29918, 1454, 778, 29962, 13, 4706, 903, 1526, 29883, 353, 518, 1311, 29889, 1526, 29883, 29918, 1454, 778, 29892, 472, 29877, 29889, 1526, 29883, 29918, 1454, 778, 29892, 274, 1758, 29889, 1526, 29883, 29918, 1454, 778, 29892, 13, 18884, 282, 4928, 29889, 1526, 29883, 29918, 1454, 778, 29892, 13, 18884, 364, 1516, 29889, 1526, 29883, 29918, 1454, 778, 29962, 13, 4706, 903, 18132, 353, 518, 1311, 29889, 932, 2957, 29918, 18132, 29892, 1583, 29889, 1359, 29918, 345, 14359, 29962, 13, 13, 4706, 12272, 29918, 4561, 29918, 8977, 29879, 353, 903, 2218, 29886, 718, 903, 955, 718, 903, 562, 2242, 718, 903, 29872, 335, 718, 903, 1028, 29883, 718, 903, 1526, 29883, 718, 903, 18132, 13, 4706, 628, 903, 2218, 29886, 29892, 903, 955, 29892, 903, 562, 2242, 29892, 903, 29872, 335, 29892, 903, 1028, 29883, 29892, 903, 1526, 29883, 29892, 903, 18132, 13, 4706, 396, 448, 807, 13, 13, 4706, 363, 12272, 29918, 4561, 29918, 8977, 297, 12272, 29918, 4561, 29918, 8977, 29879, 29901, 13, 9651, 565, 451, 12272, 29918, 4561, 29918, 8977, 29901, 13, 18884, 6773, 13, 13, 9651, 363, 1014, 4878, 29892, 1121, 297, 12272, 29918, 4561, 29918, 8977, 29889, 7076, 7295, 13, 18884, 565, 1121, 29889, 2371, 29918, 978, 297, 6024, 8456, 29965, 22928, 29896, 742, 525, 29933, 4590, 29950, 6259, 742, 525, 4986, 29965, 22928, 29896, 2033, 29901, 13, 462, 1678, 6773, 13, 18884, 1583, 29889, 1188, 29889, 8382, 29898, 29888, 29915, 9067, 292, 426, 2914, 29889, 2371, 29918, 978, 29913, 1495, 13, 18884, 4327, 29918, 2218, 29886, 9552, 29918, 517, 29918, 10945, 29898, 13, 462, 1678, 1014, 4878, 29892, 1121, 29892, 16077, 29881, 29918, 9067, 29892, 1302, 4339, 29892, 921, 12339, 29918, 25232, 29900, 29892, 1583, 29889, 1188, 29892, 13, 462, 1678, 4744, 29922, 8382, 29897, 13, 4706, 736, 6213, 13, 13, 1678, 822, 4327, 29918, 29887, 29886, 10118, 29918, 517, 29918, 10945, 29898, 1311, 29892, 302, 4841, 29918, 497, 29892, 302, 4841, 29918, 9067, 29892, 13, 462, 462, 1678, 16077, 29881, 29918, 9067, 29892, 1302, 4339, 29892, 921, 12339, 29918, 25232, 29900, 29922, 8516, 1125, 13, 4706, 9995, 13372, 402, 13691, 1955, 4741, 964, 5534, 1302, 4339, 13, 13, 4706, 4103, 9514, 278, 4954, 1272, 16159, 310, 402, 13691, 1955, 4741, 2582, 964, 278, 5534, 14821, 13, 4706, 1788, 363, 1906, 7573, 411, 1422, 1962, 14821, 6757, 29889, 323, 6926, 13, 4706, 16285, 322, 13852, 13516, 363, 7573, 411, 1009, 1962, 297, 13, 4706, 14821, 6757, 916, 1135, 278, 5534, 29889, 13, 13, 4706, 501, 8485, 297, 10296, 411, 4954, 29933, 4037, 29889, 657, 29918, 2218, 29886, 9552, 29918, 2248, 16159, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 302, 4841, 29918, 497, 584, 1577, 8773, 13, 9651, 1577, 8773, 13, 4706, 302, 4841, 29918, 9067, 584, 9657, 29912, 524, 274, 333, 584, 938, 29871, 299, 2378, 29871, 299, 29879, 29913, 13, 9651, 13343, 515, 14821, 1178, 304, 6590, 2943, 18999, 29889, 13, 4706, 16077, 29881, 29918, 9067, 584, 9657, 29912, 524, 274, 333, 584, 938, 29871, 299, 2378, 29913, 13, 9651, 13343, 515, 14821, 1178, 304, 2380, 310, 278, 7573, 297, 13, 9651, 4954, 29933, 4037, 29889, 3149, 29918, 4841, 16159, 393, 1009, 1962, 6695, 6530, 6348, 297, 393, 13, 9651, 14821, 1788, 29889, 13, 4706, 1302, 4339, 584, 9657, 29912, 524, 274, 333, 584, 7967, 536, 28296, 13, 9651, 13343, 310, 14821, 1178, 304, 278, 14821, 1203, 13, 9651, 4803, 445, 565, 7307, 338, 871, 7705, 6825, 13, 9651, 4803, 445, 565, 7307, 338, 451, 7705, 6825, 13, 4706, 921, 12339, 29918, 25232, 29900, 584, 1577, 8773, 13, 9651, 3734, 363, 20396, 513, 16888, 29914, 29879, 8096, 936, 14821, 6757, 13, 13, 9651, 6317, 10481, 1057, 28197, 1807, 4225, 777, 664, 29889, 13, 9651, 6317, 10481, 1057, 7106, 1134, 363, 445, 1158, 881, 367, 6790, 297, 13, 462, 418, 12608, 304, 367, 13747, 411, 599, 916, 1158, 13, 462, 418, 1804, 3698, 29889, 13, 4706, 9995, 13, 4706, 396, 14402, 29901, 315, 1485, 267, 1243, 29918, 459, 29906, 29918, 2929, 333, 29918, 15903, 29918, 1646, 29918, 29900, 29896, 29918, 29887, 29886, 10118, 29918, 20230, 304, 4418, 1584, 13, 4706, 396, 539, 2466, 372, 881, 367, 443, 9342, 287, 13, 4706, 12272, 29918, 4561, 29918, 8977, 29879, 353, 518, 1311, 29889, 7720, 29918, 3149, 29918, 1454, 778, 29962, 13, 4706, 363, 12272, 29918, 4561, 29918, 8977, 297, 12272, 29918, 4561, 29918, 8977, 29879, 29901, 13, 9651, 565, 451, 12272, 29918, 4561, 29918, 8977, 29901, 13, 18884, 6773, 13, 9651, 1583, 29889, 1188, 29889, 8382, 29898, 29888, 29915, 6377, 29899, 29908, 334, 29871, 29896, 29896, 29913, 1495, 13, 9651, 363, 1014, 4878, 29892, 1121, 297, 12272, 29918, 4561, 29918, 8977, 29889, 7076, 7295, 13, 18884, 4327, 29918, 29887, 29886, 10118, 29918, 517, 29918, 23705, 2606, 29898, 13, 462, 1678, 1014, 4878, 29892, 1121, 29892, 302, 4841, 29918, 497, 29892, 302, 4841, 29918, 9067, 29892, 13, 462, 1678, 16077, 29881, 29918, 9067, 29892, 1302, 4339, 29892, 921, 12339, 29918, 25232, 29900, 29892, 1583, 29889, 1188, 29897, 13, 4706, 1583, 29889, 1188, 29889, 8382, 29898, 29888, 29915, 6377, 29899, 29908, 334, 29871, 29896, 29896, 29913, 1495, 13, 13, 13, 1753, 1303, 29918, 459, 29906, 29898, 459, 29906, 29918, 9507, 29901, 28379, 29961, 710, 29962, 353, 6213, 29892, 2254, 29918, 19156, 29901, 6120, 353, 7700, 29892, 13, 632, 14405, 29901, 6120, 353, 5852, 29892, 1014, 11436, 29901, 28379, 29961, 1293, 29961, 524, 5262, 353, 6213, 29892, 13, 632, 19060, 29918, 9902, 29901, 28379, 29961, 1293, 29961, 710, 5262, 353, 6213, 29892, 13, 632, 3160, 29918, 9902, 29901, 28379, 29961, 1293, 29961, 710, 5262, 353, 6213, 29892, 1480, 29901, 3139, 353, 6213, 29892, 13, 632, 4744, 29901, 28379, 29961, 11227, 29962, 353, 5852, 29892, 13, 632, 2048, 29918, 1272, 2557, 29901, 28379, 29961, 11227, 29962, 353, 7700, 29892, 13, 632, 14383, 29918, 15955, 29918, 2922, 11669, 29901, 6120, 353, 5852, 29892, 4464, 29901, 28379, 29961, 710, 29962, 353, 6213, 29892, 13, 632, 8025, 29901, 28379, 29961, 710, 29962, 353, 6213, 29897, 1599, 6418, 29906, 29901, 13, 1678, 9995, 9832, 1078, 278, 6418, 29906, 1203, 1728, 5432, 278, 6418, 29906, 770, 29889, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 1015, 29906, 29918, 9507, 584, 851, 313, 4381, 29922, 8516, 1599, 18218, 29897, 13, 4706, 278, 1015, 29906, 29918, 9507, 13, 1678, 2254, 29918, 19156, 29901, 6120, 29936, 2322, 29922, 8824, 13, 4706, 7700, 29901, 2254, 2582, 322, 13516, 13, 4706, 5852, 29901, 2254, 16303, 408, 1532, 13, 1678, 14405, 584, 6120, 29936, 2322, 29922, 5574, 13, 4706, 5852, 584, 3618, 526, 338, 431, 4878, 2729, 13, 4706, 7700, 584, 3618, 526, 313, 275, 431, 4878, 29892, 1014, 3257, 29897, 2729, 29936, 13, 18884, 674, 367, 1304, 363, 13159, 406, 944, 29879, 17126, 310, 278, 2984, 13, 1678, 1014, 11436, 584, 2391, 29961, 524, 29892, 2023, 29962, 847, 938, 29936, 2322, 29922, 8516, 976, 497, 1014, 11436, 13, 4706, 1051, 310, 518, 1491, 4878, 29896, 29918, 1367, 29892, 1491, 4878, 29906, 29918, 1367, 29962, 13, 1678, 19060, 29918, 9902, 847, 3160, 29918, 9902, 584, 2391, 29961, 710, 29962, 847, 851, 29936, 2322, 29922, 8516, 13, 4706, 263, 1051, 310, 1121, 4072, 304, 19060, 29914, 2856, 13, 4706, 697, 310, 1438, 1818, 367, 6213, 13, 4706, 2048, 29918, 1272, 2557, 584, 6120, 29936, 2322, 29922, 8824, 13, 9651, 23315, 263, 11701, 3630, 4308, 363, 1015, 29906, 3618, 13, 9651, 6213, 29901, 5852, 565, 297, 474, 11980, 29892, 7700, 6467, 13, 1678, 14383, 29918, 15955, 29918, 2922, 11669, 584, 6120, 29936, 2322, 29922, 8824, 13, 308, 5852, 584, 28057, 4636, 5183, 21985, 13, 4706, 4744, 584, 6120, 29914, 8516, 29936, 2322, 29922, 5574, 13, 9651, 1304, 304, 731, 278, 17927, 565, 694, 17927, 338, 4502, 297, 13, 18884, 5852, 29901, 29871, 10748, 4744, 29914, 3888, 29914, 27392, 29914, 2704, 7191, 13, 18884, 7700, 29901, 10748, 5235, 29914, 27392, 29914, 2704, 7191, 13, 18884, 6213, 29901, 29871, 10748, 9177, 29914, 2704, 7191, 13, 1678, 1480, 584, 4522, 580, 13, 4706, 263, 12183, 1203, 304, 2436, 4744, 7191, 304, 13, 4706, 313, 636, 1074, 15189, 1057, 1053, 12183, 29897, 13, 1678, 4464, 584, 851, 29936, 2322, 29922, 8516, 1599, 525, 1516, 29883, 29915, 13, 4706, 278, 1873, 310, 278, 405, 7614, 273, 366, 29915, 276, 773, 13, 4706, 426, 23818, 29892, 286, 1557, 29892, 1120, 2631, 29895, 29892, 3523, 391, 1247, 29892, 8281, 29874, 29929, 29945, 29913, 13, 1678, 8025, 584, 851, 13, 4706, 278, 29104, 8025, 313, 4381, 29922, 8516, 29936, 1788, 2322, 29897, 13, 1678, 19060, 29918, 9902, 29901, 13, 1678, 3160, 29918, 9902, 29901, 13, 1678, 4744, 29901, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 1904, 584, 6418, 29906, 580, 13, 4706, 385, 6418, 29906, 1203, 13, 13, 1678, 6317, 4443, 4761, 910, 1158, 674, 1735, 297, 1797, 304, 736, 385, 1203, 393, 13, 1669, 947, 451, 505, 577, 1784, 3519, 29889, 13, 13, 1678, 6317, 10481, 1057, 6760, 1078, 278, 6418, 29906, 1203, 1728, 599, 278, 1303, 3519, 29889, 13, 1678, 6317, 10481, 1057, 10318, 5235, 363, 4128, 297, 445, 740, 29915, 29879, 1574, 1807, 29889, 13, 1678, 9995, 13, 1678, 565, 1015, 29906, 29918, 9507, 29901, 13, 4706, 1423, 29918, 2084, 29898, 459, 29906, 29918, 9507, 29892, 1024, 2433, 459, 29906, 29918, 9507, 1495, 13, 13, 1678, 565, 2254, 29918, 19156, 29901, 29871, 396, 14402, 29901, 9049, 5085, 2304, 363, 3519, 13, 4706, 9049, 353, 11117, 459, 29906, 29918, 9507, 2396, 1015, 29906, 29918, 9507, 29892, 525, 17743, 457, 2396, 14405, 29892, 13, 795, 525, 1491, 11436, 2396, 1014, 11436, 29892, 525, 735, 2325, 29918, 9902, 2396, 19060, 29918, 9902, 29892, 13, 795, 525, 2856, 29918, 9902, 2396, 3160, 29918, 9902, 29892, 525, 15480, 2396, 5852, 29892, 13, 795, 525, 29916, 999, 2396, 5852, 29892, 525, 4282, 29918, 1272, 2557, 2396, 2048, 29918, 1272, 2557, 29892, 13, 795, 525, 11014, 29918, 15955, 29918, 2922, 11669, 2396, 14383, 29918, 15955, 29918, 2922, 11669, 29892, 13, 795, 525, 8513, 2396, 4464, 29892, 525, 1188, 2396, 1480, 29892, 525, 8382, 2396, 4744, 29892, 525, 22331, 2396, 8025, 29913, 13, 4706, 1904, 353, 1303, 29918, 459, 29906, 29918, 479, 290, 29898, 1068, 11022, 29897, 13, 1678, 1683, 29901, 13, 4706, 1904, 353, 6418, 29906, 29898, 1188, 29922, 1188, 29892, 4744, 29922, 8382, 29892, 4464, 29922, 8513, 29897, 13, 4706, 1904, 29889, 842, 29918, 1491, 11436, 29898, 1491, 11436, 29897, 13, 4706, 1904, 29889, 2856, 29918, 735, 2325, 29918, 9902, 29898, 735, 2325, 29918, 9902, 29922, 735, 2325, 29918, 9902, 29892, 13, 462, 462, 418, 3160, 29918, 9902, 29922, 2856, 29918, 9902, 29897, 13, 13, 4706, 396, 14402, 29901, 9049, 5085, 2304, 13, 4706, 9049, 353, 11117, 459, 29906, 29918, 9507, 2396, 1015, 29906, 29918, 9507, 29892, 525, 4282, 29918, 1272, 2557, 2396, 2048, 29918, 1272, 2557, 29892, 13, 795, 525, 11014, 29918, 15955, 29918, 2922, 11669, 2396, 14383, 29918, 15955, 29918, 2922, 11669, 29892, 13, 795, 525, 17743, 457, 2396, 14405, 29892, 525, 22331, 2396, 8025, 29913, 13, 4706, 1904, 29889, 949, 29918, 459, 29906, 29898, 1068, 11022, 29897, 13, 13, 1678, 396, 14402, 29901, 910, 674, 748, 3448, 746, 6418, 29906, 338, 2143, 627, 4395, 29889, 9267, 3519, 674, 367, 13, 1678, 396, 539, 4567, 29892, 541, 372, 29915, 29879, 263, 1369, 856, 13, 13, 1678, 396, 5538, 29876, 29915, 29873, 2304, 383, 29900, 29953, 9227, 13, 1678, 396, 5446, 353, 6461, 29906, 29943, 29900, 29953, 15801, 580, 13, 1678, 396, 12421, 29918, 7039, 353, 1203, 29918, 15697, 29898, 5415, 29892, 4464, 543, 3597, 613, 6611, 29918, 517, 29918, 11014, 29922, 8516, 29897, 13, 1678, 396, 363, 12421, 29918, 978, 297, 12421, 29918, 7039, 29901, 13, 1678, 396, 268, 12421, 353, 679, 5552, 29898, 4299, 29892, 12421, 29918, 978, 29897, 13, 1678, 396, 268, 731, 5552, 29898, 5415, 29892, 12421, 29918, 978, 29892, 12421, 29897, 13, 1678, 396, 5446, 29889, 657, 29918, 459, 29906, 29918, 16202, 580, 13, 1678, 736, 1904, 13, 13, 13, 1753, 903, 3258, 29918, 29882, 2176, 29945, 29918, 3888, 29898, 29882, 29945, 29918, 1445, 29901, 379, 29945, 2283, 29892, 1015, 29906, 29918, 4299, 29901, 6418, 29906, 29897, 1599, 6213, 29901, 13, 1678, 9995, 1252, 4011, 278, 298, 29945, 5235, 2318, 13, 13, 4706, 584, 3207, 298, 29945, 29918, 1445, 29901, 13, 4706, 584, 1853, 298, 29945, 29918, 1445, 29901, 379, 29945, 2283, 13, 4706, 584, 3207, 1015, 29906, 29918, 4299, 29901, 13, 4706, 584, 1853, 1015, 29906, 29918, 4299, 29901, 6418, 29906, 13, 4706, 584, 18280, 29901, 6213, 13, 13, 4706, 6317, 10481, 1057, 28197, 1807, 5235, 363, 4128, 29889, 13, 1678, 9995, 13, 1678, 2254, 29918, 294, 29918, 29882, 29945, 353, 7700, 13, 1678, 565, 756, 5552, 29898, 459, 29906, 29918, 4299, 29892, 525, 1359, 29918, 294, 29918, 29882, 29945, 29374, 13, 4706, 2254, 29918, 294, 29918, 29882, 29945, 353, 1015, 29906, 29918, 4299, 29889, 1359, 29918, 294, 29918, 29882, 29945, 13, 1678, 565, 451, 2254, 29918, 294, 29918, 29882, 29945, 29901, 13, 4706, 736, 13, 1678, 1653, 29918, 3888, 29918, 2972, 29898, 29882, 29945, 29918, 1445, 29892, 1015, 29906, 29918, 4299, 29897, 13, 1678, 736, 6213, 13, 2 ]
spamresponsibly.py
velo223/Velo-s-Spam-Scripts
0
89287
<reponame>velo223/Velo-s-Spam-Scripts<filename>spamresponsibly.py val = int(input(print("Enter a number: "))) option = { "n":"Nae nigga nae \n", "c":"Uohhhhhh :sob::sob::sob: \n", "i":"I am living in your walls, oomfie. \n" } userinput = input("Choose your poison: [N]iggas, [C]unny, [I]solation") with open("outputtings.txt",'w') as f: f.write(option[userinput.lower()] * val) print("Output saved to file. Spam responsibly, fam.")
[ 1, 529, 276, 1112, 420, 29958, 955, 29877, 29906, 29906, 29941, 29914, 29963, 7078, 29899, 29879, 29899, 5592, 314, 29899, 4081, 29879, 29966, 9507, 29958, 1028, 314, 26679, 14981, 29889, 2272, 13, 791, 353, 938, 29898, 2080, 29898, 2158, 703, 10399, 263, 1353, 29901, 376, 4961, 30004, 13, 3385, 353, 3336, 13, 1678, 376, 29876, 4710, 29940, 3660, 302, 335, 3249, 1055, 29872, 320, 29876, 613, 376, 29883, 4710, 29965, 1148, 25446, 25446, 29882, 584, 15975, 1057, 15975, 1057, 15975, 29901, 320, 29876, 15231, 13, 1678, 376, 29875, 4710, 29902, 626, 8471, 297, 596, 14603, 29892, 288, 290, 29888, 347, 29889, 320, 29876, 19451, 13, 1678, 4970, 13, 1792, 2080, 353, 1881, 703, 15954, 852, 596, 27908, 29901, 518, 29940, 29962, 22817, 294, 29892, 518, 29907, 29962, 348, 1460, 29892, 518, 29902, 29962, 2929, 362, 1159, 30004, 13, 2541, 1722, 703, 4905, 29873, 886, 29889, 3945, 613, 29915, 29893, 1495, 408, 285, 29901, 30004, 13, 1678, 285, 29889, 3539, 29898, 3385, 29961, 1792, 2080, 29889, 13609, 580, 29962, 334, 659, 8443, 13, 2158, 703, 6466, 7160, 304, 934, 29889, 1706, 314, 5544, 14981, 29892, 5216, 23157, 30004, 13, 2 ]
utils/__init__.py
jaobernardi/roboscovid-redacted
0
58177
<filename>utils/__init__.py from .parsing import parse_string from .tokens import token from .users import getUsers, getPlaces from .flags import flag_define, value_assign
[ 1, 529, 9507, 29958, 13239, 29914, 1649, 2344, 26914, 2272, 13, 3166, 869, 862, 2976, 1053, 6088, 29918, 1807, 13, 3166, 869, 517, 12360, 1053, 5993, 13, 3166, 869, 7193, 1053, 679, 5959, 29892, 679, 29925, 6048, 13, 3166, 869, 15764, 1053, 7353, 29918, 7922, 29892, 995, 29918, 16645, 2 ]
main.py
b-com/ACUITEE
3
1612198
# main.py – Software ACUITEE # Copyright 2021 b<>com. All rights reserved. # This software is licensed under the Apache License, Version 2.0. # 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 application import app from gevent.pywsgi import WSGIServer # for production deployment, use gevent server if __name__ == '__main__': print('Serving on 5000...') WSGIServer(('0.0.0.0', 5000), app).serve_forever() #print('Serving on https://:5000') #server = WSGIServer(('127.0.0.1', 5000), app, keyfile='server.key', certfile='server.crt') #server.serve_forever() # to start the server asynchronously, call server.start()
[ 1, 396, 1667, 29889, 2272, 785, 18540, 14614, 29965, 9094, 29923, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29906, 29896, 289, 25299, 510, 29889, 2178, 10462, 21676, 29889, 13, 29937, 910, 7047, 338, 7794, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 29889, 13, 29937, 887, 1122, 451, 671, 445, 934, 5174, 297, 752, 13036, 411, 278, 19405, 29889, 29871, 13, 29937, 887, 1122, 4017, 263, 3509, 310, 278, 19405, 472, 29901, 29871, 13, 29937, 1732, 597, 1636, 29889, 4288, 29889, 990, 29914, 506, 11259, 29914, 27888, 1430, 1660, 29899, 29906, 29889, 29900, 29871, 13, 29937, 25870, 3734, 491, 22903, 4307, 470, 15502, 304, 297, 5007, 29892, 7047, 13, 29937, 13235, 1090, 278, 19245, 338, 13235, 373, 385, 376, 3289, 8519, 29908, 350, 3289, 3235, 29892, 29871, 13, 29937, 399, 1806, 8187, 2692, 399, 1718, 29934, 13566, 29059, 6323, 8707, 29928, 22122, 29903, 8079, 13764, 29979, 476, 22255, 29892, 2845, 4653, 470, 2411, 2957, 29889, 13, 29937, 2823, 278, 19245, 363, 278, 2702, 4086, 14765, 1076, 11239, 322, 29871, 13, 29937, 27028, 1090, 278, 19245, 29889, 13, 13, 3166, 2280, 1053, 623, 13, 3166, 1737, 794, 29889, 2272, 5652, 3146, 1053, 399, 26016, 29902, 6004, 13, 13, 29937, 363, 5802, 18209, 29892, 671, 1737, 794, 1923, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1596, 877, 1748, 1747, 373, 29871, 29945, 29900, 29900, 29900, 856, 1495, 13, 1678, 399, 26016, 29902, 6004, 29898, 877, 29900, 29889, 29900, 29889, 29900, 29889, 29900, 742, 29871, 29945, 29900, 29900, 29900, 511, 623, 467, 16349, 29918, 1079, 369, 580, 13, 13, 1678, 396, 2158, 877, 1748, 1747, 373, 2045, 597, 29901, 29945, 29900, 29900, 29900, 1495, 13, 1678, 396, 2974, 353, 399, 26016, 29902, 6004, 29898, 877, 29896, 29906, 29955, 29889, 29900, 29889, 29900, 29889, 29896, 742, 29871, 29945, 29900, 29900, 29900, 511, 623, 29892, 1820, 1445, 2433, 2974, 29889, 1989, 742, 2284, 1445, 2433, 2974, 29889, 29883, 2273, 1495, 13, 1678, 396, 2974, 29889, 16349, 29918, 1079, 369, 580, 396, 304, 1369, 278, 1923, 408, 9524, 5794, 29892, 1246, 1923, 29889, 2962, 580, 2 ]
app/main/schema/http_status_schema.py
abhishek9sharma/nyctaxiserver
0
114798
<filename>app/main/schema/http_status_schema.py from flask_restplus import Namespace, fields class HTTPStatus: """ Schema for showing messages related to various HTTP Statuses """ ns = Namespace('httpstatus', 'Schema for displaying http status') statusschema = ns.model('httpstatus', { 'message': fields.String(required = True, description = 'description of failure'), 'code': fields.Integer(required= True, description = 'HTTP error code reated to message') })
[ 1, 529, 9507, 29958, 932, 29914, 3396, 29914, 11010, 29914, 1124, 29918, 4882, 29918, 11010, 29889, 2272, 13, 3166, 29784, 29918, 5060, 11242, 1053, 14706, 3535, 29892, 4235, 13, 13, 1990, 7331, 5709, 29901, 13, 1678, 9995, 1102, 2603, 363, 6445, 7191, 4475, 304, 5164, 7331, 16034, 267, 9995, 13, 1678, 17534, 353, 14706, 3535, 877, 1124, 4882, 742, 525, 12763, 363, 16384, 1732, 4660, 1495, 13, 1678, 4660, 11010, 353, 17534, 29889, 4299, 877, 1124, 4882, 742, 426, 13, 462, 462, 462, 259, 525, 4906, 2396, 4235, 29889, 1231, 29898, 12403, 353, 5852, 29892, 6139, 353, 525, 8216, 310, 10672, 5477, 13, 462, 462, 462, 259, 525, 401, 2396, 4235, 29889, 7798, 29898, 12403, 29922, 5852, 29892, 6139, 353, 525, 10493, 1059, 775, 337, 630, 304, 2643, 1495, 13, 462, 462, 462, 965, 13, 462, 462, 462, 5615, 13, 268, 13, 2 ]
python/overlapintegrals/overlapintegrals.py
berquist/overlapintegrals
1
111156
<filename>python/overlapintegrals/overlapintegrals.py from functools import reduce from math import exp, floor, pi from typing import Tuple, Union from scipy.special import binom as binomial Number = Union[int, float] def dist2( xa: Number, ya: Number, za: Number, xb: Number, yb: Number, zb: Number ) -> float: return (xa - xb) * (xa - xb) + (ya - yb) * (ya - yb) + (za - zb) * (za - zb) def product_center_1d(za: float, xa: float, zb: float, xb: float) -> float: return ((za * xa) + (zb * xb)) / (za + zb) def fact2(n): """Compute the double factorial as in https://stackoverflow.com/a/4740229/3249688 """ return reduce(int.__mul__, range(n, 0, -2), 1) def binomial_prefactor(s: int, ia: int, ib: int, xpa: float, xpb: float) -> float: return sum( binomial(ia, s - t) * binomial(ib, t) * (xpa ** (ia - s + t)) * (xpb ** (ib - t)) for t in range(s + 1) if (s - ia) <= t and t <= ib ) def overlap1d(l1: int, l2: int, pax: float, pbx: float, gamma: float) -> float: return sum( binomial_prefactor(2 * i, l1, l2, pax, pbx) * fact2(2 * i - 1) / ((2 * gamma) ** i) for i in range(1 + floor(0.5 * (l1 + l2))) ) def tho66( alpha1: float, alpha2: float, ra: Tuple[float, float, float], rb: Tuple[float, float, float], la: Tuple[float, float, float], lb: Tuple[float, float, float], ) -> float: gamma = alpha1 + alpha2 xa, ya, za = ra xb, yb, zb = rb l1, m1, n1 = la l2, m2, n2 = lb xp = product_center_1d(alpha1, xa, alpha2, xb) yp = product_center_1d(alpha1, ya, alpha2, yb) zp = product_center_1d(alpha1, za, alpha2, zb) pre = ( exp(-alpha1 * alpha2 * dist2(xa, ya, za, xb, yb, zb) / gamma) * (pi / gamma) ** 1.5 ) wx = overlap1d(l1, l2, xp - xa, xp - xb, gamma) wy = overlap1d(m1, m2, yp - ya, yp - yb, gamma) wz = overlap1d(n1, n2, zp - za, zp - zb, gamma) return pre * wx * wy * wz
[ 1, 529, 9507, 29958, 4691, 29914, 957, 6984, 14146, 1338, 29914, 957, 6984, 14146, 1338, 29889, 2272, 13, 3166, 2090, 312, 8789, 1053, 10032, 13, 3166, 5844, 1053, 1518, 29892, 11904, 29892, 2930, 13, 3166, 19229, 1053, 12603, 552, 29892, 7761, 13, 13, 3166, 4560, 2272, 29889, 18732, 1053, 9016, 290, 408, 9016, 7615, 13, 13, 13, 4557, 353, 7761, 29961, 524, 29892, 5785, 29962, 13, 13, 13, 1753, 1320, 29906, 29898, 13, 1678, 921, 29874, 29901, 9681, 29892, 9343, 29901, 9681, 29892, 4022, 29901, 9681, 29892, 921, 29890, 29901, 9681, 29892, 343, 29890, 29901, 9681, 29892, 22015, 29901, 9681, 13, 29897, 1599, 5785, 29901, 13, 1678, 736, 313, 17367, 448, 921, 29890, 29897, 334, 313, 17367, 448, 921, 29890, 29897, 718, 313, 3761, 448, 343, 29890, 29897, 334, 313, 3761, 448, 343, 29890, 29897, 718, 313, 1362, 448, 22015, 29897, 334, 313, 1362, 448, 22015, 29897, 13, 13, 13, 1753, 3234, 29918, 5064, 29918, 29896, 29881, 29898, 1362, 29901, 5785, 29892, 921, 29874, 29901, 5785, 29892, 22015, 29901, 5785, 29892, 921, 29890, 29901, 5785, 29897, 1599, 5785, 29901, 13, 1678, 736, 5135, 1362, 334, 921, 29874, 29897, 718, 313, 29920, 29890, 334, 921, 29890, 876, 847, 313, 1362, 718, 22015, 29897, 13, 13, 13, 1753, 2114, 29906, 29898, 29876, 1125, 13, 1678, 9995, 20606, 29872, 278, 3765, 7329, 616, 13, 13, 1678, 408, 297, 2045, 597, 2417, 29889, 510, 29914, 29874, 29914, 29946, 29955, 29946, 29900, 29906, 29906, 29929, 29914, 29941, 29906, 29946, 29929, 29953, 29947, 29947, 13, 1678, 9995, 13, 1678, 736, 10032, 29898, 524, 17255, 16109, 1649, 29892, 3464, 29898, 29876, 29892, 29871, 29900, 29892, 448, 29906, 511, 29871, 29896, 29897, 13, 13, 13, 1753, 9016, 7615, 29918, 29886, 999, 7168, 29898, 29879, 29901, 938, 29892, 29871, 423, 29901, 938, 29892, 474, 29890, 29901, 938, 29892, 921, 3274, 29901, 5785, 29892, 921, 24381, 29901, 5785, 29897, 1599, 5785, 29901, 13, 1678, 736, 2533, 29898, 13, 4706, 9016, 7615, 29898, 423, 29892, 269, 448, 260, 29897, 13, 4706, 334, 9016, 7615, 29898, 747, 29892, 260, 29897, 13, 4706, 334, 313, 29916, 3274, 3579, 313, 423, 448, 269, 718, 260, 876, 13, 4706, 334, 313, 29916, 24381, 3579, 313, 747, 448, 260, 876, 13, 4706, 363, 260, 297, 3464, 29898, 29879, 718, 29871, 29896, 29897, 13, 4706, 565, 313, 29879, 448, 29871, 423, 29897, 5277, 260, 322, 260, 5277, 474, 29890, 13, 1678, 1723, 13, 13, 13, 1753, 25457, 29896, 29881, 29898, 29880, 29896, 29901, 938, 29892, 301, 29906, 29901, 938, 29892, 282, 1165, 29901, 5785, 29892, 282, 29890, 29916, 29901, 5785, 29892, 330, 2735, 29901, 5785, 29897, 1599, 5785, 29901, 13, 1678, 736, 2533, 29898, 13, 4706, 9016, 7615, 29918, 29886, 999, 7168, 29898, 29906, 334, 474, 29892, 301, 29896, 29892, 301, 29906, 29892, 282, 1165, 29892, 282, 29890, 29916, 29897, 13, 4706, 334, 2114, 29906, 29898, 29906, 334, 474, 448, 29871, 29896, 29897, 13, 4706, 847, 5135, 29906, 334, 330, 2735, 29897, 3579, 474, 29897, 13, 4706, 363, 474, 297, 3464, 29898, 29896, 718, 11904, 29898, 29900, 29889, 29945, 334, 313, 29880, 29896, 718, 301, 29906, 4961, 13, 1678, 1723, 13, 13, 13, 1753, 266, 29877, 29953, 29953, 29898, 13, 1678, 15595, 29896, 29901, 5785, 29892, 13, 1678, 15595, 29906, 29901, 5785, 29892, 13, 1678, 1153, 29901, 12603, 552, 29961, 7411, 29892, 5785, 29892, 5785, 1402, 13, 1678, 364, 29890, 29901, 12603, 552, 29961, 7411, 29892, 5785, 29892, 5785, 1402, 13, 1678, 425, 29901, 12603, 552, 29961, 7411, 29892, 5785, 29892, 5785, 1402, 13, 1678, 27981, 29901, 12603, 552, 29961, 7411, 29892, 5785, 29892, 5785, 1402, 13, 29897, 1599, 5785, 29901, 13, 1678, 330, 2735, 353, 15595, 29896, 718, 15595, 29906, 13, 1678, 921, 29874, 29892, 9343, 29892, 4022, 353, 1153, 13, 1678, 921, 29890, 29892, 343, 29890, 29892, 22015, 353, 364, 29890, 13, 1678, 301, 29896, 29892, 286, 29896, 29892, 302, 29896, 353, 425, 13, 1678, 301, 29906, 29892, 286, 29906, 29892, 302, 29906, 353, 27981, 13, 1678, 921, 29886, 353, 3234, 29918, 5064, 29918, 29896, 29881, 29898, 2312, 29896, 29892, 921, 29874, 29892, 15595, 29906, 29892, 921, 29890, 29897, 13, 1678, 343, 29886, 353, 3234, 29918, 5064, 29918, 29896, 29881, 29898, 2312, 29896, 29892, 9343, 29892, 15595, 29906, 29892, 343, 29890, 29897, 13, 1678, 24724, 353, 3234, 29918, 5064, 29918, 29896, 29881, 29898, 2312, 29896, 29892, 4022, 29892, 15595, 29906, 29892, 22015, 29897, 13, 13, 1678, 758, 353, 313, 13, 4706, 1518, 6278, 2312, 29896, 334, 15595, 29906, 334, 1320, 29906, 29898, 17367, 29892, 9343, 29892, 4022, 29892, 921, 29890, 29892, 343, 29890, 29892, 22015, 29897, 847, 330, 2735, 29897, 13, 4706, 334, 313, 1631, 847, 330, 2735, 29897, 3579, 29871, 29896, 29889, 29945, 13, 1678, 1723, 13, 13, 1678, 26437, 353, 25457, 29896, 29881, 29898, 29880, 29896, 29892, 301, 29906, 29892, 921, 29886, 448, 921, 29874, 29892, 921, 29886, 448, 921, 29890, 29892, 330, 2735, 29897, 13, 1678, 5018, 353, 25457, 29896, 29881, 29898, 29885, 29896, 29892, 286, 29906, 29892, 343, 29886, 448, 9343, 29892, 343, 29886, 448, 343, 29890, 29892, 330, 2735, 29897, 13, 1678, 18589, 353, 25457, 29896, 29881, 29898, 29876, 29896, 29892, 302, 29906, 29892, 24724, 448, 4022, 29892, 24724, 448, 22015, 29892, 330, 2735, 29897, 13, 1678, 736, 758, 334, 26437, 334, 5018, 334, 18589, 13, 2 ]
2018/09/sol/bike.py
lfrommelt/monty
0
103983
""" This module contains the definitions for Bike and its subclasses Bicycle and Motorbike. """ class Bike: """ Class defining a bike that can be ridden and have its gear changed. Attributes: seats: number of seats the bike has gears: number of gears the bike has """ def __init__(self, seats, gears): """ Creates a new Bike object. Args: seats: number of seats the bike has gears: number of gears the bike has """ self.seats = seats self.gears = gears self._curr_gear = 1 # current gear, private self._riding = False # bike is per default not ridden @property def curr_gear(self): """ Purpose of this function is to enable the user to check the gear status, but is only able to change it with a specific method. (was not necessary to implement it this way) """ return self._curr_gear def start_ride(self): """ Starts a bike ride. Returns: True if successful. False if bike is already on a ride. """ # can't ride a bike if already ridden if self._riding: return False self._riding = True return True def end_ride(self): """ Ends a bike ride. Returns: True if successful. False if bike is not currently ridden. """ # can't stop a bike ride if the bike is already standing if not self._riding: return False self._riding = False return True def change_gear(self, new_gear): """ Changes bike gear to a new gear. Args: new_gear: gear to be changed to Returns: True if gear was successfully changed. Raises: ValueError if current gear is same as new gear or new gear is <= 0 or not in range of available gears. """ if self._curr_gear == new_gear or not 0 < new_gear <= self.gears: raise ValueError("Already in this gear or invalid gear number.") self._curr_gear = new_gear return True class Bicycle(Bike): """ Class defining a Bicycle (extending Bike) that can be ridden, have its gear changed and has a bell that can be rung. Attributes: seats: number of seats the bike has gears: number of gears the bike has bell_sound: sound the bell makes when rung """ def __init__(self, seats=1, gears=7, bell_sound="ring ring"): """ Creates a new Bike object. Args: seats: number of seats the bicycle has, defaults to 1 gears: number of gears the bicycle has, defaults to 7 bell_sound: sound the bell makes when rung """ super().__init__(seats, gears) self.bell_sound = bell_sound def ring_bell(self): """ Rings bicycle bell.""" print(self.bell_sound) class Motorbike(Bike): """ Class defining a Motorbike (extending Bike) that can be ridden, have its gear changed and has a tank that can be filled. Attributes: seats: number of seats the bike has gears: number of gears the bike has """ def __init__(self, seats=2, gears=5): """ Creates a new Motorbike object. Args: seats: number of seats the motorbike has, defaults to 2 gears: number of gears the motorbike has, defaults to 5 """ super().__init__(seats, gears) # True means full tank. Private so it can only be changed in # a controlled manner self._tank = True @property def tank(self): """ Purpose of this function is to enable the user to check the tank status, but is only able to fill/empty the tank with specific methods. This was not necessary to implement. """ return self._tank def start_ride(self): """ Starts a motorbike ride. Returns: True if successful. False if motorbike is already on a ride or tank is empty """ # can't ride a motorbike if tank is empty or it is already ridden if not self._tank or not super().start_ride(): return False return True def end_ride(self): """ Ends a motorbike ride and empties tank. Returns: True if successful. False if motorbike is not currently ridden. """ if not super().end_ride(): return False self._tank = False # tank is empty after riding return True # the following method was not necessary to implement, but we want to be # able to ride more than once. def fill_tank(self): """ Fills motorbike tank with fuel. Returns: True if successful. False if tank already full. """ # can't fill tank if already full if self._tank: return False self._tank = True return True
[ 1, 9995, 13, 4013, 3883, 3743, 278, 15848, 363, 3457, 446, 322, 967, 1014, 13203, 350, 4245, 2841, 322, 13, 29924, 327, 272, 5365, 446, 29889, 13, 15945, 29908, 13, 13, 13, 1990, 3457, 446, 29901, 13, 1678, 9995, 13, 1678, 4134, 16184, 263, 4768, 446, 393, 508, 367, 364, 4215, 322, 505, 967, 330, 799, 3939, 29889, 13, 13, 1678, 6212, 5026, 29901, 13, 4706, 22091, 29901, 1353, 310, 22091, 278, 4768, 446, 756, 13, 4706, 330, 15451, 29901, 1353, 310, 330, 15451, 278, 4768, 446, 756, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 22091, 29892, 330, 15451, 1125, 13, 4706, 9995, 13, 4706, 6760, 1078, 263, 716, 3457, 446, 1203, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 22091, 29901, 1353, 310, 22091, 278, 4768, 446, 756, 13, 9651, 330, 15451, 29901, 1353, 310, 330, 15451, 278, 4768, 446, 756, 13, 4706, 9995, 13, 13, 4706, 1583, 29889, 344, 1446, 353, 22091, 13, 4706, 1583, 29889, 479, 1503, 353, 330, 15451, 13, 4706, 1583, 3032, 21962, 29918, 479, 279, 353, 29871, 29896, 396, 1857, 330, 799, 29892, 2024, 13, 4706, 1583, 3032, 2429, 292, 353, 7700, 396, 4768, 446, 338, 639, 2322, 451, 364, 4215, 13, 13, 1678, 732, 6799, 13, 1678, 822, 16256, 29918, 479, 279, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 15247, 4220, 310, 445, 740, 338, 304, 9025, 278, 1404, 304, 1423, 278, 330, 799, 13, 4706, 4660, 29892, 541, 338, 871, 2221, 304, 1735, 372, 411, 263, 2702, 1158, 29889, 13, 4706, 313, 11102, 451, 5181, 304, 2334, 372, 445, 982, 29897, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 21962, 29918, 479, 279, 13, 13, 1678, 822, 1369, 29918, 2426, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 624, 5708, 263, 4768, 446, 22203, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 5852, 565, 9150, 29889, 13, 9651, 7700, 565, 4768, 446, 338, 2307, 373, 263, 22203, 29889, 13, 4706, 9995, 13, 13, 4706, 396, 508, 29915, 29873, 22203, 263, 4768, 446, 565, 2307, 364, 4215, 13, 4706, 565, 1583, 3032, 2429, 292, 29901, 13, 9651, 736, 7700, 13, 13, 4706, 1583, 3032, 2429, 292, 353, 5852, 13, 4706, 736, 5852, 13, 13, 1678, 822, 1095, 29918, 2426, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 2796, 29879, 263, 4768, 446, 22203, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 5852, 565, 9150, 29889, 13, 9651, 7700, 565, 4768, 446, 338, 451, 5279, 364, 4215, 29889, 13, 4706, 9995, 13, 13, 4706, 396, 508, 29915, 29873, 5040, 263, 4768, 446, 22203, 565, 278, 4768, 446, 338, 2307, 13407, 13, 4706, 565, 451, 1583, 3032, 2429, 292, 29901, 13, 9651, 736, 7700, 13, 13, 4706, 1583, 3032, 2429, 292, 353, 7700, 13, 4706, 736, 5852, 13, 13, 1678, 822, 1735, 29918, 479, 279, 29898, 1311, 29892, 716, 29918, 479, 279, 1125, 13, 4706, 9995, 13, 4706, 678, 6916, 4768, 446, 330, 799, 304, 263, 716, 330, 799, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 716, 29918, 479, 279, 29901, 330, 799, 304, 367, 3939, 304, 13, 13, 4706, 16969, 29901, 13, 9651, 5852, 565, 330, 799, 471, 8472, 3939, 29889, 13, 13, 4706, 390, 1759, 267, 29901, 13, 9651, 7865, 2392, 565, 1857, 330, 799, 338, 1021, 408, 716, 330, 799, 470, 716, 330, 799, 338, 5277, 29871, 29900, 13, 9651, 470, 451, 297, 3464, 310, 3625, 330, 15451, 29889, 13, 4706, 9995, 13, 13, 4706, 565, 1583, 3032, 21962, 29918, 479, 279, 1275, 716, 29918, 479, 279, 470, 451, 29871, 29900, 529, 716, 29918, 479, 279, 5277, 1583, 29889, 479, 1503, 29901, 13, 9651, 12020, 7865, 2392, 703, 2499, 2040, 297, 445, 330, 799, 470, 8340, 330, 799, 1353, 23157, 13, 13, 4706, 1583, 3032, 21962, 29918, 479, 279, 353, 716, 29918, 479, 279, 13, 4706, 736, 5852, 13, 13, 13, 1990, 350, 4245, 2841, 29898, 29933, 9345, 1125, 13, 1678, 9995, 13, 1678, 4134, 16184, 263, 350, 4245, 2841, 313, 1062, 2548, 3457, 446, 29897, 393, 508, 367, 364, 4215, 29892, 505, 967, 13, 1678, 330, 799, 3939, 322, 756, 263, 22623, 393, 508, 367, 364, 686, 29889, 13, 13, 1678, 6212, 5026, 29901, 13, 4706, 22091, 29901, 1353, 310, 22091, 278, 4768, 446, 756, 13, 4706, 330, 15451, 29901, 1353, 310, 330, 15451, 278, 4768, 446, 756, 13, 4706, 22623, 29918, 29802, 29901, 6047, 278, 22623, 3732, 746, 364, 686, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 22091, 29922, 29896, 29892, 330, 15451, 29922, 29955, 29892, 22623, 29918, 29802, 543, 5393, 9228, 29908, 1125, 13, 4706, 9995, 13, 4706, 6760, 1078, 263, 716, 3457, 446, 1203, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 22091, 29901, 1353, 310, 22091, 278, 289, 4245, 2841, 756, 29892, 21274, 304, 29871, 29896, 13, 9651, 330, 15451, 29901, 1353, 310, 330, 15451, 278, 289, 4245, 2841, 756, 29892, 21274, 304, 29871, 29955, 13, 9651, 22623, 29918, 29802, 29901, 6047, 278, 22623, 3732, 746, 364, 686, 13, 4706, 9995, 13, 13, 4706, 2428, 2141, 1649, 2344, 12035, 344, 1446, 29892, 330, 15451, 29897, 13, 4706, 1583, 29889, 12562, 29918, 29802, 353, 22623, 29918, 29802, 13, 13, 1678, 822, 9228, 29918, 12562, 29898, 1311, 1125, 13, 4706, 9995, 390, 886, 289, 4245, 2841, 22623, 1213, 15945, 13, 13, 4706, 1596, 29898, 1311, 29889, 12562, 29918, 29802, 29897, 13, 13, 13, 1990, 16843, 5365, 446, 29898, 29933, 9345, 1125, 13, 1678, 9995, 13, 1678, 4134, 16184, 263, 16843, 5365, 446, 313, 1062, 2548, 3457, 446, 29897, 393, 508, 367, 364, 4215, 29892, 505, 967, 13, 1678, 330, 799, 3939, 322, 756, 263, 23735, 393, 508, 367, 10423, 29889, 13, 13, 1678, 6212, 5026, 29901, 13, 4706, 22091, 29901, 1353, 310, 22091, 278, 4768, 446, 756, 13, 4706, 330, 15451, 29901, 1353, 310, 330, 15451, 278, 4768, 446, 756, 13, 1678, 9995, 13, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 22091, 29922, 29906, 29892, 330, 15451, 29922, 29945, 1125, 13, 4706, 9995, 13, 4706, 6760, 1078, 263, 716, 16843, 5365, 446, 1203, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 22091, 29901, 1353, 310, 22091, 278, 10992, 5365, 446, 756, 29892, 21274, 304, 29871, 29906, 13, 9651, 330, 15451, 29901, 1353, 310, 330, 15451, 278, 10992, 5365, 446, 756, 29892, 21274, 304, 29871, 29945, 13, 4706, 9995, 13, 13, 4706, 2428, 2141, 1649, 2344, 12035, 344, 1446, 29892, 330, 15451, 29897, 13, 4706, 396, 5852, 2794, 2989, 23735, 29889, 12230, 577, 372, 508, 871, 367, 3939, 297, 13, 4706, 396, 263, 20704, 8214, 13, 4706, 1583, 3032, 29873, 804, 353, 5852, 13, 13, 1678, 732, 6799, 13, 1678, 822, 23735, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 15247, 4220, 310, 445, 740, 338, 304, 9025, 278, 1404, 304, 1423, 278, 23735, 13, 4706, 4660, 29892, 541, 338, 871, 2221, 304, 5445, 29914, 6310, 278, 23735, 411, 2702, 3519, 29889, 13, 4706, 910, 471, 451, 5181, 304, 2334, 29889, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 29873, 804, 13, 13, 1678, 822, 1369, 29918, 2426, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 624, 5708, 263, 10992, 5365, 446, 22203, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 5852, 565, 9150, 29889, 13, 9651, 7700, 565, 10992, 5365, 446, 338, 2307, 373, 263, 22203, 470, 23735, 338, 4069, 13, 4706, 9995, 13, 13, 4706, 396, 508, 29915, 29873, 22203, 263, 10992, 5365, 446, 565, 23735, 338, 4069, 470, 372, 338, 2307, 364, 4215, 13, 4706, 565, 451, 1583, 3032, 29873, 804, 470, 451, 2428, 2141, 2962, 29918, 2426, 7295, 13, 9651, 736, 7700, 13, 13, 4706, 736, 5852, 13, 13, 13, 1678, 822, 1095, 29918, 2426, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 2796, 29879, 263, 10992, 5365, 446, 22203, 322, 953, 415, 583, 23735, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 5852, 565, 9150, 29889, 13, 9651, 7700, 565, 10992, 5365, 446, 338, 451, 5279, 364, 4215, 29889, 13, 4706, 9995, 13, 13, 4706, 565, 451, 2428, 2141, 355, 29918, 2426, 7295, 13, 9651, 736, 7700, 13, 13, 4706, 1583, 3032, 29873, 804, 353, 7700, 396, 23735, 338, 4069, 1156, 364, 4821, 13, 4706, 736, 5852, 13, 13, 13, 1678, 396, 278, 1494, 1158, 471, 451, 5181, 304, 2334, 29892, 541, 591, 864, 304, 367, 13, 1678, 396, 2221, 304, 22203, 901, 1135, 2748, 29889, 13, 13, 1678, 822, 5445, 29918, 29873, 804, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 383, 6090, 10992, 5365, 446, 23735, 411, 26413, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 5852, 565, 9150, 29889, 13, 9651, 7700, 565, 23735, 2307, 2989, 29889, 13, 4706, 9995, 13, 13, 4706, 396, 508, 29915, 29873, 5445, 23735, 565, 2307, 2989, 13, 4706, 565, 1583, 3032, 29873, 804, 29901, 13, 9651, 736, 7700, 13, 13, 4706, 1583, 3032, 29873, 804, 353, 5852, 13, 4706, 736, 5852, 13, 2 ]
rps/examples/Finite_Time_Barriers/main.py
mohitsrinivasan/Barrier_MotionPlanning
10
193436
import rps.robotarium as robotarium from rps.utilities import * from rps.utilities.barrier_certificates import * from rps.utilities.controllers import * from rps.utilities.transformations import * from reachGoal import reachGoal from matplotlib import patches import numpy as np import time N = 1 initial_conditions = np.transpose(np.array([[-1, 0.2, 0]])) r = robotarium.Robotarium(number_of_robots=N, show_figure=True, initial_conditions=initial_conditions, sim_in_real_time=False) si_to_uni_dyn = create_si_to_uni_dynamics_with_backwards_motion() _, uni_to_si_states = create_si_to_uni_mapping() si_barrier_cert = create_single_integrator_barrier_certificate_with_boundary() hg = -1 ## Visualize goals and obstacles r.axes.add_patch(patches.Circle((1, 0), 0.2, fill=False, zorder=10)) # Goal region r.axes.add_patch(patches.Ellipse((0, 0), 0.4, 1.0, 0, fill=False)) # Obstacle while (hg <= 0): x = r.get_poses() x_si = uni_to_si_states(x) u, hg = reachGoal(x) # Create safe control inputs (i.e., no collisions) u = si_barrier_cert(u, x[0:2]) # Transform single integrator velocity commands to unicycle dxu = si_to_uni_dyn(u, x) # Set the velocities by mapping the single-integrator inputs to unciycle inputs r.set_velocities(np.arange(N), dxu) # Iterate the simulation r.step() r.call_at_scripts_end()
[ 1, 1053, 364, 567, 29889, 307, 7451, 22826, 408, 19964, 22826, 13, 3166, 364, 567, 29889, 4422, 1907, 1053, 334, 13, 3166, 364, 567, 29889, 4422, 1907, 29889, 1646, 4336, 29918, 6327, 928, 1078, 1053, 334, 13, 3166, 364, 567, 29889, 4422, 1907, 29889, 1285, 11897, 1053, 334, 13, 3166, 364, 567, 29889, 4422, 1907, 29889, 9067, 800, 1053, 334, 13, 3166, 6159, 8120, 284, 1053, 6159, 8120, 284, 13, 3166, 22889, 1053, 13261, 267, 13, 5215, 12655, 408, 7442, 13, 5215, 931, 13, 13, 29940, 353, 29871, 29896, 13, 11228, 29918, 1116, 2187, 353, 7442, 29889, 3286, 4220, 29898, 9302, 29889, 2378, 4197, 14352, 29896, 29892, 29871, 29900, 29889, 29906, 29892, 29871, 29900, 5262, 876, 13, 13, 29878, 353, 19964, 22826, 29889, 21860, 327, 22826, 29898, 4537, 29918, 974, 29918, 13716, 1862, 29922, 29940, 29892, 1510, 29918, 4532, 29922, 5574, 29892, 2847, 29918, 1116, 2187, 29922, 11228, 29918, 1116, 2187, 29892, 1027, 29918, 262, 29918, 6370, 29918, 2230, 29922, 8824, 29897, 13, 1039, 29918, 517, 29918, 3909, 29918, 29881, 948, 353, 1653, 29918, 1039, 29918, 517, 29918, 3909, 29918, 29881, 2926, 1199, 29918, 2541, 29918, 1627, 2935, 29918, 29885, 8194, 580, 13, 3383, 443, 29875, 29918, 517, 29918, 1039, 29918, 28631, 353, 1653, 29918, 1039, 29918, 517, 29918, 3909, 29918, 20698, 580, 13, 1039, 29918, 1646, 4336, 29918, 6327, 353, 1653, 29918, 14369, 29918, 14146, 1061, 29918, 1646, 4336, 29918, 6327, 8021, 29918, 2541, 29918, 9917, 653, 580, 13, 13, 29882, 29887, 353, 448, 29896, 13, 13, 2277, 9249, 675, 14433, 322, 14979, 23435, 13, 29878, 29889, 1165, 267, 29889, 1202, 29918, 5041, 29898, 5041, 267, 29889, 23495, 280, 3552, 29896, 29892, 29871, 29900, 511, 29871, 29900, 29889, 29906, 29892, 5445, 29922, 8824, 29892, 503, 2098, 29922, 29896, 29900, 876, 9651, 396, 2921, 284, 5120, 13, 29878, 29889, 1165, 267, 29889, 1202, 29918, 5041, 29898, 5041, 267, 29889, 6489, 5843, 3552, 29900, 29892, 29871, 29900, 511, 29871, 29900, 29889, 29946, 29892, 29871, 29896, 29889, 29900, 29892, 29871, 29900, 29892, 5445, 29922, 8824, 876, 795, 396, 4250, 303, 6436, 13, 13, 8000, 313, 29882, 29887, 5277, 29871, 29900, 1125, 13, 13, 1678, 921, 353, 364, 29889, 657, 29918, 10590, 580, 13, 268, 13, 1678, 921, 29918, 1039, 353, 443, 29875, 29918, 517, 29918, 1039, 29918, 28631, 29898, 29916, 29897, 13, 268, 13, 1678, 318, 29892, 298, 29887, 353, 6159, 8120, 284, 29898, 29916, 29897, 13, 268, 13, 1678, 396, 6204, 9109, 2761, 10970, 313, 29875, 29889, 29872, 1696, 694, 5321, 12112, 29897, 13, 1678, 318, 353, 1354, 29918, 1646, 4336, 29918, 6327, 29898, 29884, 29892, 921, 29961, 29900, 29901, 29906, 2314, 13, 13, 1678, 396, 4103, 689, 2323, 3990, 1061, 12885, 8260, 304, 443, 4245, 2841, 13, 1678, 15414, 29884, 353, 1354, 29918, 517, 29918, 3909, 29918, 29881, 948, 29898, 29884, 29892, 921, 29897, 13, 268, 13, 1678, 396, 3789, 278, 9110, 1907, 491, 10417, 278, 2323, 29899, 14146, 1061, 10970, 304, 443, 455, 13317, 10970, 13, 1678, 364, 29889, 842, 29918, 955, 542, 1907, 29898, 9302, 29889, 279, 927, 29898, 29940, 511, 15414, 29884, 29897, 13, 268, 13, 1678, 396, 20504, 403, 278, 17402, 13, 1678, 364, 29889, 10568, 580, 13, 13, 29878, 29889, 4804, 29918, 271, 29918, 16713, 29918, 355, 580, 2 ]
hknlib/election/groups.py
awang193/hknlib
0
1616533
from __future__ import (division, absolute_import, print_function, unicode_literals) from googleapiclient.discovery import build from .settings import SPREADSHEET_ID def add_user_to_group(credentials, user, groupKey): #add USER to a mail list GROUP service = build('admin', 'directory_v1', credentials=credentials) body = { 'email': user + '@hkn.eecs.berkeley.edu', 'role': 'MEMBER', } group = groupKey + '@hkn.eecs.berkeley.edu' response = service.members().hasMember(groupKey=group, memberKey=body.get('email')).execute() if response['isMember']: return _ = service.members().insert(groupKey=group, body=body).execute() print("{}->{}".format(user, groupKey)) return def add_officers_to_committes(credentials, election_data): user_committee = [] if election_data: for i in range(0, len(election_data)): if len(election_data[i]) < 6: continue committee = election_data[i][5][:-1] user_committee.append((election_data[i][3], committee)) #user_committee[users[i]] = committee for user, committee in user_committee: result = add_user_to_group(credentials, user, committee+'-officers') result = add_user_to_group(credentials, user, "current-"+committee) def add_members_to_committes(credentials, election_data): mailing_lists = [] if election_data: for i in range(0, len(election_data)): if len(election_data[i]) < 7: continue row = election_data[i] mailing = row[6][:-1].split('@, ') mailing_lists.append((election_data[i][3], mailing)) #mailing_lists[users[i]] = mailing_list for user, mailing_list in mailing_lists: for committee in mailing_list: add_user_to_group(credentials, user, committee) def add_all_to_committes(credentials, election_data): # add all users to their committees and groups add_officers_to_committes(credentials, election_data) add_members_to_committes(credentials, election_data)
[ 1, 515, 4770, 29888, 9130, 1649, 1053, 313, 4563, 2459, 29892, 8380, 29918, 5215, 29892, 1596, 29918, 2220, 29892, 13, 462, 4706, 29104, 29918, 20889, 1338, 29897, 13, 13, 3166, 5386, 481, 293, 1593, 29889, 2218, 11911, 29891, 1053, 2048, 13, 3166, 869, 11027, 1053, 10937, 16310, 7068, 29923, 2544, 29918, 1367, 13, 13, 13, 1753, 788, 29918, 1792, 29918, 517, 29918, 2972, 29898, 11944, 9409, 29892, 1404, 29892, 2318, 2558, 1125, 13, 1678, 396, 1202, 3148, 1001, 304, 263, 10524, 1051, 15345, 13, 1678, 2669, 353, 2048, 877, 6406, 742, 525, 12322, 29918, 29894, 29896, 742, 16140, 29922, 11944, 9409, 29897, 13, 13, 1678, 3573, 353, 426, 13, 4706, 525, 5269, 2396, 1404, 718, 18803, 29882, 3959, 29889, 29872, 687, 29879, 29889, 495, 27279, 29889, 6085, 742, 13, 4706, 525, 12154, 2396, 525, 2303, 9486, 1001, 742, 13, 1678, 500, 13, 1678, 2318, 353, 2318, 2558, 718, 18803, 29882, 3959, 29889, 29872, 687, 29879, 29889, 495, 27279, 29889, 6085, 29915, 13, 1678, 2933, 353, 2669, 29889, 28109, 2141, 5349, 13404, 29898, 2972, 2558, 29922, 2972, 29892, 4509, 2558, 29922, 2587, 29889, 657, 877, 5269, 1495, 467, 7978, 580, 13, 1678, 565, 2933, 1839, 275, 13404, 2033, 29901, 13, 4706, 736, 13, 1678, 903, 353, 2669, 29889, 28109, 2141, 7851, 29898, 2972, 2558, 29922, 2972, 29892, 3573, 29922, 2587, 467, 7978, 580, 13, 1678, 1596, 703, 8875, 976, 8875, 1642, 4830, 29898, 1792, 29892, 2318, 2558, 876, 13, 1678, 736, 13, 13, 13, 1753, 788, 29918, 29877, 2416, 414, 29918, 517, 29918, 2055, 986, 267, 29898, 11944, 9409, 29892, 8271, 29918, 1272, 1125, 13, 1678, 1404, 29918, 2055, 9309, 353, 5159, 13, 1678, 565, 8271, 29918, 1272, 29901, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 7431, 29898, 29872, 1464, 29918, 1272, 22164, 13, 9651, 565, 7431, 29898, 29872, 1464, 29918, 1272, 29961, 29875, 2314, 529, 29871, 29953, 29901, 13, 18884, 6773, 13, 9651, 21118, 353, 8271, 29918, 1272, 29961, 29875, 3816, 29945, 3816, 13018, 29896, 29962, 13, 9651, 1404, 29918, 2055, 9309, 29889, 4397, 3552, 29872, 1464, 29918, 1272, 29961, 29875, 3816, 29941, 1402, 21118, 876, 13, 9651, 396, 1792, 29918, 2055, 9309, 29961, 7193, 29961, 29875, 5262, 353, 21118, 13, 13, 1678, 363, 1404, 29892, 21118, 297, 1404, 29918, 2055, 9309, 29901, 13, 4706, 1121, 353, 788, 29918, 1792, 29918, 517, 29918, 2972, 29898, 11944, 9409, 29892, 1404, 29892, 21118, 23097, 29899, 29877, 2416, 414, 1495, 13, 4706, 1121, 353, 788, 29918, 1792, 29918, 517, 29918, 2972, 29898, 11944, 9409, 29892, 1404, 29892, 376, 3784, 29899, 17969, 2055, 9309, 29897, 13, 13, 13, 1753, 788, 29918, 28109, 29918, 517, 29918, 2055, 986, 267, 29898, 11944, 9409, 29892, 8271, 29918, 1272, 1125, 13, 1678, 611, 6504, 29918, 21513, 353, 5159, 13, 1678, 565, 8271, 29918, 1272, 29901, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 7431, 29898, 29872, 1464, 29918, 1272, 22164, 13, 9651, 565, 7431, 29898, 29872, 1464, 29918, 1272, 29961, 29875, 2314, 529, 29871, 29955, 29901, 13, 18884, 6773, 13, 9651, 1948, 353, 8271, 29918, 1272, 29961, 29875, 29962, 13, 9651, 611, 6504, 353, 1948, 29961, 29953, 3816, 13018, 29896, 1822, 5451, 877, 29992, 29892, 25710, 13, 9651, 611, 6504, 29918, 21513, 29889, 4397, 3552, 29872, 1464, 29918, 1272, 29961, 29875, 3816, 29941, 1402, 611, 6504, 876, 13, 9651, 396, 2549, 292, 29918, 21513, 29961, 7193, 29961, 29875, 5262, 353, 611, 6504, 29918, 1761, 13, 13, 1678, 363, 1404, 29892, 611, 6504, 29918, 1761, 297, 611, 6504, 29918, 21513, 29901, 13, 4706, 363, 21118, 297, 611, 6504, 29918, 1761, 29901, 13, 9651, 788, 29918, 1792, 29918, 517, 29918, 2972, 29898, 11944, 9409, 29892, 1404, 29892, 21118, 29897, 13, 13, 1753, 788, 29918, 497, 29918, 517, 29918, 2055, 986, 267, 29898, 11944, 9409, 29892, 8271, 29918, 1272, 1125, 13, 1678, 396, 788, 599, 4160, 304, 1009, 844, 5388, 267, 322, 6471, 13, 1678, 788, 29918, 29877, 2416, 414, 29918, 517, 29918, 2055, 986, 267, 29898, 11944, 9409, 29892, 8271, 29918, 1272, 29897, 13, 1678, 788, 29918, 28109, 29918, 517, 29918, 2055, 986, 267, 29898, 11944, 9409, 29892, 8271, 29918, 1272, 29897, 13, 2 ]
src/google/appengine/datastore/datastore_query.py
myelin/appengine-python-standard
0
7689
<reponame>myelin/appengine-python-standard<gh_stars>0 #!/usr/bin/env python # # Copyright 2007 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # 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. # """A thin wrapper around datastore query RPC calls. This provides wrappers around the internal only datastore_pb library and is designed to be the lowest-level API to be used by all Python datastore client libraries for executing queries. It provides a layer of protection so the actual RPC syntax can change without affecting client libraries. Any class, function, field or argument starting with an '_' is for INTERNAL use only and should not be used by developers! """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import base64 import collections import functools import pickle import six from google.appengine.api import cmp_compat from google.appengine.api import datastore_errors from google.appengine.api import datastore_types from google.appengine.datastore import datastore_index from google.appengine.datastore import datastore_pb from google.appengine.datastore import datastore_pbs from google.appengine.datastore import datastore_rpc from google.protobuf import message from google.appengine.datastore import entity_bytes_pb2 as entity_pb2 __all__ = ['Batch', 'Batcher', 'CompositeFilter', 'CompositeOrder', 'CorrelationFilter', 'Cursor', 'FetchOptions', 'FilterPredicate', 'Order', 'PropertyFilter', 'PropertyOrder', 'Query', 'QueryOptions', 'ResultsIterator', 'make_filter', 'apply_query', 'inject_results'] if datastore_pbs._CLOUD_DATASTORE_ENABLED: from google.appengine.datastore.datastore_pbs import googledatastore class _BaseComponent(object): """A base class for query components. Currently just implements basic == and != functions. """ def __eq__(self, other): if self.__class__ is not other.__class__: return NotImplemented return self is other or self.__dict__ == other.__dict__ def __ne__(self, other): equal = self.__eq__(other) if equal is NotImplemented: return equal return not equal def make_filter(name, op, values): """Constructs a FilterPredicate from the given name, op and values. Args: name: A non-empty string, the name of the property to filter. op: One of PropertyFilter._OPERATORS.keys(), the operator to use. values: A supported value, the value to compare against. Returns: if values is a list, a CompositeFilter that uses AND to combine all values, otherwise a PropertyFilter for the single value. Raises: datastore_errors.BadPropertyError: if the property name is invalid. datastore_errors.BadValueError: if the property did not validate correctly or the value was an empty list. Other exception types (like OverflowError): if the property value does not meet type-specific criteria. """ datastore_types.ValidateProperty(name, values) properties = datastore_types.ToPropertyPb(name, values) if isinstance(properties, list): filters = [PropertyFilter(op, prop) for prop in properties] return CompositeFilter(CompositeFilter.AND, filters) else: return PropertyFilter(op, properties) def _make_key_value_map(entity, property_names): """Extracts key values from the given entity. Args: entity: The entity_pb2.EntityProto to extract values from. property_names: The names of the properties from which to extract values. Returns: A dict mapping property names to a lists of key values. """ value_map = dict((six.ensure_text(name), []) for name in property_names) for prop in entity.property: prop_name = six.ensure_text(prop.name) if prop_name in value_map: value_map[prop_name].append( datastore_types.PropertyValueToKeyValue(prop.value)) key_prop = six.ensure_text(datastore_types.KEY_SPECIAL_PROPERTY) if key_prop in value_map: value_map[key_prop] = [datastore_types.ReferenceToKeyValue(entity.key)] return value_map class _PropertyComponent(_BaseComponent): """A component that operates on a specific set of properties.""" def _get_prop_names(self): """Returns a set of property names used by the filter.""" raise NotImplementedError class FilterPredicate(_PropertyComponent): """An abstract base class for all query filters. All sub-classes must be immutable as these are often stored without creating a defensive copy. """ def __call__(self, entity): """Applies the filter predicate to the given entity. Args: entity: the datastore_pb.EntityProto to test. Returns: True if the given entity matches the filter, False otherwise. """ return self._apply(_make_key_value_map(entity, self._get_prop_names())) def _apply(self, key_value_map): """Apply the given component to the comparable value map. A filter matches a list of values if at least one value in the list matches the filter, for example: 'prop: [1, 2]' matches both 'prop = 1' and 'prop = 2' but not 'prop = 3' Note: the values are actually represented as tuples whose first item encodes the type; see datastore_types.PropertyValueToKeyValue(). Args: key_value_map: A dict mapping property names to a list of comparable values. Return: A boolean indicating if the given map matches the filter. """ raise NotImplementedError def _prune(self, key_value_map): """Removes values from the given map that do not match the filter. When doing a scan in the datastore, only index values that match the filters are seen. When multiple values that point to the same entity are seen, the entity only appears where the first value is found. This function removes all values that don't match the query so that the first value in the map is the same one the datastore would see first. Args: key_value_map: the comparable value map from which to remove values. Does not need to contain values for all filtered properties. Returns: A value that evaluates to False if every value in a single list was completely removed. This effectively applies the filter but is less efficient than _apply(). """ raise NotImplementedError def _to_pb(self): """Internal only function to generate a pb.""" raise NotImplementedError( 'This filter only supports in memory operations (%r)' % self) def _to_pbs(self): """Internal only function to generate a list of pbs.""" return [self._to_pb()] def _to_pb_v1(self, adapter): """Internal only function to generate a v1 pb. Args: adapter: A datastore_rpc.AbstractAdapter """ raise NotImplementedError( 'This filter only supports in memory operations (%r)' % self) class _SinglePropertyFilter(FilterPredicate): """Base class for a filter that operates on a single property.""" def _get_prop_name(self): """Returns the name of the property being filtered.""" raise NotImplementedError def _apply_to_value(self, value): """Apply the filter to the given value. Args: value: The comparable value to check. Returns: A boolean indicating if the given value matches the filter. """ raise NotImplementedError def _get_prop_names(self): return set([self._get_prop_name()]) def _apply(self, value_map): for other_value in value_map[self._get_prop_name()]: if self._apply_to_value(other_value): return True return False def _prune(self, value_map): if self._get_prop_name() not in value_map: return True values = [value for value in value_map[self._get_prop_name()] if self._apply_to_value(value)] value_map[self._get_prop_name()] = values return bool(values) class PropertyFilter(_SinglePropertyFilter): """An immutable filter predicate that constrains a single property.""" _OPERATORS = { '<': datastore_pb.Query.Filter.LESS_THAN, '<=': datastore_pb.Query.Filter.LESS_THAN_OR_EQUAL, '>': datastore_pb.Query.Filter.GREATER_THAN, '>=': datastore_pb.Query.Filter.GREATER_THAN_OR_EQUAL, '=': datastore_pb.Query.Filter.EQUAL, } _OPERATORS_INVERSE = dict((value, key) for key, value in _OPERATORS.items()) _OPERATORS_TO_PYTHON_OPERATOR = { datastore_pb.Query.Filter.LESS_THAN: '<', datastore_pb.Query.Filter.LESS_THAN_OR_EQUAL: '<=', datastore_pb.Query.Filter.GREATER_THAN: '>', datastore_pb.Query.Filter.GREATER_THAN_OR_EQUAL: '>=', datastore_pb.Query.Filter.EQUAL: '==', } _INEQUALITY_OPERATORS = frozenset(['<', '<=', '>', '>=']) _INEQUALITY_OPERATORS_ENUM = frozenset([ datastore_pb.Query.Filter.LESS_THAN, datastore_pb.Query.Filter.LESS_THAN_OR_EQUAL, datastore_pb.Query.Filter.GREATER_THAN, datastore_pb.Query.Filter.GREATER_THAN_OR_EQUAL, ]) _UPPERBOUND_INEQUALITY_OPERATORS = frozenset(['<', '<=']) def __init__(self, op, value): """Constructor. Args: op: A string representing the operator to use. value: A entity_pb2.Property, the property and value to compare against. Raises: datastore_errors.BadArgumentError if op has an unsupported value or value is not an entity_pb2.Property. """ if op not in self._OPERATORS: raise datastore_errors.BadArgumentError('unknown operator: %r' % (op,)) if not isinstance(value, entity_pb2.Property): raise datastore_errors.BadArgumentError( 'value argument should be entity_pb2.Property (%r)' % (value,)) super(PropertyFilter, self).__init__() self._filter = datastore_pb.Query.Filter() self._filter.op = self._OPERATORS[op] self._filter.property.add().CopyFrom(value) @property def op(self): raw_op = self._filter.op return self._OPERATORS_INVERSE.get(raw_op, str(raw_op)) @property def value(self): return self._filter.property[0] def __repr__(self): prop = self.value name = prop.name value = datastore_types.FromPropertyPb(prop) if six.PY2 and isinstance(value, long): value = int(value) return '%s(%r, <%r, %r>)' % (self.__class__.__name__, six.ensure_str( self.op), six.ensure_str(name), value) def _get_prop_name(self): return self._filter.property[0].name def _apply_to_value(self, value): if not hasattr(self, '_cmp_value'): if self._filter.op == datastore_pb.Query.Filter.EXISTS: return True self._cmp_value = datastore_types.PropertyValueToKeyValue( self._filter.property[0].value) self._condition = ('value %s self._cmp_value' % self._OPERATORS_TO_PYTHON_OPERATOR[self._filter.op]) return eval(self._condition) def _has_inequality(self): """Returns True if the filter predicate contains inequalities filters.""" return self._filter.op in self._INEQUALITY_OPERATORS_ENUM @classmethod def _from_pb(cls, filter_pb): self = cls.__new__(cls) self._filter = filter_pb return self def _to_pb(self): """Returns the internal only pb representation.""" return self._filter def _to_pb_v1(self, adapter): """Returns a googledatastore.Filter representation of the filter. Args: adapter: A datastore_rpc.AbstractAdapter """ filter_pb = googledatastore.Filter() prop_filter_pb = filter_pb.property_filter adapter.get_query_converter()._v3_filter_to_v1_property_filter( self._filter, prop_filter_pb) return filter_pb def __getstate__(self): raise pickle.PicklingError( 'Pickling of datastore_query.PropertyFilter is unsupported.') def __eq__(self, other): if self.__class__ is not other.__class__: if other.__class__ is _PropertyRangeFilter: return [self._filter] == other._to_pbs() return NotImplemented return self._filter == other._filter class _PropertyRangeFilter(_SinglePropertyFilter): """A filter predicate that represents a range of values. Since we allow multi-valued properties there is a large difference between "x > 0 AND x < 1" and "0 < x < 1." An entity with x = [-1, 2] will match the first but not the second. Since the datastore only allows a single inequality filter, multiple in-equality filters are merged into a single range filter in the datastore (unlike equality filters). This class is used by datastore_query.CompositeFilter to implement the same logic. """ _start_key_value = None _end_key_value = None @datastore_rpc._positional(1) def __init__(self, start=None, start_incl=True, end=None, end_incl=True): """Constructs a range filter using start and end properties. Args: start: A entity_pb2.Property to use as a lower bound or None to indicate no lower bound. start_incl: A boolean that indicates if the lower bound is inclusive. end: A entity_pb2.Property to use as an upper bound or None to indicate no upper bound. end_incl: A boolean that indicates if the upper bound is inclusive. """ if start is not None and not isinstance(start, entity_pb2.Property): raise datastore_errors.BadArgumentError( 'start argument should be entity_pb2.Property (%r)' % (start,)) if end is not None and not isinstance(end, entity_pb2.Property): raise datastore_errors.BadArgumentError( 'start argument should be entity_pb2.Property (%r)' % (end,)) if start and end and start.name != end.name: raise datastore_errors.BadArgumentError( 'start and end arguments must be on the same property (%s != %s)' % (start.name, end.name)) if not start and not end: raise datastore_errors.BadArgumentError( 'Unbounded ranges are not supported.') super(_PropertyRangeFilter, self).__init__() self._start = start self._start_incl = start_incl self._end = end self._end_incl = end_incl @classmethod def from_property_filter(cls, prop_filter): op = prop_filter._filter.op if op == datastore_pb.Query.Filter.GREATER_THAN: return cls(start=prop_filter._filter.property[0], start_incl=False) elif op == datastore_pb.Query.Filter.GREATER_THAN_OR_EQUAL: return cls(start=prop_filter._filter.property[0]) elif op == datastore_pb.Query.Filter.LESS_THAN: return cls(end=prop_filter._filter.property[0], end_incl=False) elif op == datastore_pb.Query.Filter.LESS_THAN_OR_EQUAL: return cls(end=prop_filter._filter.property[0]) else: raise datastore_errors.BadArgumentError( 'Unsupported operator (%s)' % (op,)) def intersect(self, other): """Returns a filter representing the intersection of self and other.""" if isinstance(other, PropertyFilter): other = self.from_property_filter(other) elif not isinstance(other, _PropertyRangeFilter): raise datastore_errors.BadArgumentError( 'other argument should be a _PropertyRangeFilter (%r)' % (other,)) if other._get_prop_name() != self._get_prop_name(): raise datastore_errors.BadArgumentError( 'other argument must be on the same property (%s != %s)' % (other._get_prop_name(), self._get_prop_name())) start_source = None if other._start: if self._start: result = cmp_compat.cmp( self._get_start_key_value(), other._get_start_key_value()) if result == 0: result = cmp_compat.cmp(other._start_incl, self._start_incl) if result > 0: start_source = self elif result < 0: start_source = other else: start_source = other elif self._start: start_source = self end_source = None if other._end: if self._end: result = cmp_compat.cmp( self._get_end_key_value(), other._get_end_key_value()) if result == 0: result = cmp_compat.cmp(self._end_incl, other._end_incl) if result < 0: end_source = self elif result > 0: end_source = other else: end_source = other elif self._end: end_source = self if start_source: if end_source in (start_source, None): return start_source result = _PropertyRangeFilter(start=start_source._start, start_incl=start_source._start_incl, end=end_source._end, end_incl=end_source._end_incl) result._start_key_value = start_source._start_key_value result._end_key_value = end_source._end_key_value return result else: return end_source or self def _get_start_key_value(self): if self._start_key_value is None: self._start_key_value = datastore_types.PropertyValueToKeyValue( self._start.value) return self._start_key_value def _get_end_key_value(self): if self._end_key_value is None: self._end_key_value = datastore_types.PropertyValueToKeyValue( self._end.value) return self._end_key_value def _apply_to_value(self, value): """Apply the filter to the given value. Args: value: The comparable value to check. Returns: A boolean indicating if the given value matches the filter. """ if self._start: result = cmp_compat.cmp(self._get_start_key_value(), value) if result > 0 or (result == 0 and not self._start_incl): return False if self._end: result = cmp_compat.cmp(self._get_end_key_value(), value) if result < 0 or (result == 0 and not self._end_incl): return False return True def _get_prop_name(self): if self._start: return self._start.name if self._end: return self._end.name assert False def _to_pbs(self): pbs = [] if self._start: if self._start_incl: op = datastore_pb.Query.Filter.GREATER_THAN_OR_EQUAL else: op = datastore_pb.Query.Filter.GREATER_THAN pb = datastore_pb.Query.Filter() pb.op = op pb.property.add().CopyFrom(self._start) pbs.append(pb) if self._end: if self._end_incl: op = datastore_pb.Query.Filter.LESS_THAN_OR_EQUAL else: op = datastore_pb.Query.Filter.LESS_THAN pb = datastore_pb.Query.Filter() pb.op = op pb.property.add().CopyFrom(self._end) pbs.append(pb) return pbs def _to_pb_v1(self, adapter): """Returns a googledatastore.Filter representation of the filter. Args: adapter: A datastore_rpc.AbstractAdapter. """ filter_pb = googledatastore.Filter() composite_filter = filter_pb.composite_filter composite_filter.op = googledatastore.CompositeFilter.AND if self._start: if self._start_incl: op = googledatastore.PropertyFilter.GREATER_THAN_OR_EQUAL else: op = googledatastore.PropertyFilter.GREATER_THAN pb = composite_filter.filters.add().property_filter pb.op = op pb.property.name = self._start.name adapter.get_entity_converter().v3_property_to_v1_value( self._start, True, pb.value) if self._end: if self._end_incl: op = googledatastore.PropertyFilter.LESS_THAN_OR_EQUAL else: op = googledatastore.PropertyFilter.LESS_THAN pb = composite_filter.filters.add().property_filter pb.op = op pb.property.name = self._end.name adapter.get_entity_converter().v3_property_to_v1_value( self._end, True, pb.value) return filter_pb def __getstate__(self): raise pickle.PicklingError( 'Pickling of %r is unsupported.' % self) def __eq__(self, other): if self.__class__ is not other.__class__: return NotImplemented return (self._start == other._start and self._end == other._end and (self._start_incl == other._start_incl or self._start is None) and (self._end_incl == other._end_incl or self._end is None)) class _PropertyExistsFilter(FilterPredicate): """A FilterPredicate that matches entities containing specific properties. Only works as an in-memory filter. Used internally to filter out entities that don't have all properties in a given Order. """ def __init__(self, names): super(_PropertyExistsFilter, self).__init__() self._names = frozenset(names) def _apply(self, value_map): for name in self._names: if not value_map.get(name): return False return True def _get_prop_names(self): return self._names def _prune(self, _): raise NotImplementedError def __getstate__(self): raise pickle.PicklingError( 'Pickling of %r is unsupported.' % self) class CorrelationFilter(FilterPredicate): """A filter that isolates correlated values and applies a sub-filter on them. This filter assumes that every property used by the sub-filter should be grouped before being passed to the sub-filter. The default grouping puts each value in its own group. Consider: e = {a: [1, 2], b: [2, 1, 3], c: 4} A correlation filter with a sub-filter that operates on (a, b) will be tested against the following 3 sets of values: {a: 1, b: 2} {a: 2, b: 1} {b: 3} In this case CorrelationFilter('a = 2 AND b = 2') won't match this entity but CorrelationFilter('a = 2 AND b = 1') will. To apply an uncorrelated filter on c, the filter must be applied in parallel to the correlation filter. For example: CompositeFilter(AND, [CorrelationFilter('a = 2 AND b = 1'), 'c = 3']) If 'c = 3' was included in the correlation filter, c would be grouped as well. This would result in the following values: {a: 1, b: 2, c: 3} {a: 2, b: 1} {b: 3} If any set of correlated values match the sub-filter then the entity matches the correlation filter. """ def __init__(self, subfilter): """Constructor. Args: subfilter: A FilterPredicate to apply to the correlated values """ self._subfilter = subfilter @property def subfilter(self): return self._subfilter def __repr__(self): return '%s(%r)' % (self.__class__.__name__, self.subfilter) def _apply(self, value_map): base_map = dict((prop, []) for prop in self._get_prop_names()) value_maps = [] for prop in base_map: grouped = self._group_values(prop, value_map[prop]) while len(value_maps) < len(grouped): value_maps.append(base_map.copy()) for value, m in six.moves.zip(grouped, value_maps): m[prop] = value return self._apply_correlated(value_maps) def _apply_correlated(self, value_maps): """Applies sub-filter to the correlated value maps. The default implementation matches when any value_map in value_maps matches the sub-filter. Args: value_maps: A list of correlated value_maps. Returns: True if any the entity matches the correlation filter. """ for map in value_maps: if self._subfilter._apply(map): return True return False def _group_values(self, prop, values): """A function that groups the given values. Override this function to introduce custom grouping logic. The default implementation assumes each value belongs in its own group. Args: prop: The name of the property who's values are being grouped. values: A list of opaque values. Returns: A list of lists of grouped values. """ return [[value] for value in values] def _get_prop_names(self): return self._subfilter._get_prop_names() class CompositeFilter(FilterPredicate): """An immutable filter predicate that combines other predicates. This class proactively merges sub-filters that are combined using the same operator. For example: CompositeFilter(AND, [f1, f2, CompositeFilter(AND, [f3, f4]), f5, f6]) is equivalent to: CompositeFilter(AND, [f1, f2, f3, f4, f5, f6]) Currently filters can only be combined using an AND operator. """ AND = 'and' _OPERATORS = frozenset([AND]) def __init__(self, op, filters): """Constructor. Args: op: The operator to use to combine the given filters filters: A list of one or more filters to combine Raises: datastore_errors.BadArgumentError if op is not in CompsiteFilter.OPERATORS or filters is not a non-empty list containing only FilterPredicates. """ if not op in self._OPERATORS: raise datastore_errors.BadArgumentError('unknown operator (%s)' % (op,)) if not filters or not isinstance(filters, (list, tuple)): raise datastore_errors.BadArgumentError( 'filters argument should be a non-empty list (%r)' % (filters,)) super(CompositeFilter, self).__init__() self._op = op flattened = [] for f in filters: if isinstance(f, CompositeFilter) and f._op == self._op: flattened.extend(f._filters) elif isinstance(f, FilterPredicate): flattened.append(f) else: raise datastore_errors.BadArgumentError( 'filters argument must be a list of FilterPredicates, found (%r)' % (f,)) if op == self.AND: filters = flattened flattened = [] ineq_map = {} for f in filters: if (isinstance(f, _PropertyRangeFilter) or (isinstance(f, PropertyFilter) and f._has_inequality())): name = f._get_prop_name() index = ineq_map.get(name) if index is not None: range_filter = flattened[index] flattened[index] = range_filter.intersect(f) else: if isinstance(f, PropertyFilter): range_filter = _PropertyRangeFilter.from_property_filter(f) else: range_filter = f ineq_map[name] = len(flattened) flattened.append(range_filter) else: flattened.append(f) self._filters = tuple(flattened) @property def op(self): return self._op @property def filters(self): return self._filters def __repr__(self): op = self.op if op == self.AND: op = 'AND' else: op = str(op) return '%s(%s, %r)' % (self.__class__.__name__, op, list(self.filters)) def _get_prop_names(self): names = set() for f in self._filters: names |= f._get_prop_names() return names def _apply(self, value_map): if self._op == self.AND: for f in self._filters: if not f._apply(value_map): return False return True raise NotImplementedError def _prune(self, value_map): if self._op == self.AND: matches = collections.defaultdict(set) for f in self._filters: props = f._get_prop_names() local_value_map = dict((k, v) for k, v in value_map.items() if k in props) if not f._prune(local_value_map): return False for (prop, values) in local_value_map.items(): matches[prop].update(values) for prop, value_set in matches.items(): value_map[prop] = sorted(value_set) return True raise NotImplementedError def _to_pbs(self): """Returns the internal only pb representation.""" pbs = [] for f in self._filters: pbs.extend(f._to_pbs()) return pbs def _to_pb_v1(self, adapter): """Returns a googledatastore.Filter. Args: adapter: A datastore_rpc.AbstractAdapter """ if not self._filters: return None if len(self._filters) == 1: return self._filters[0]._to_pb_v1(adapter) pb = googledatastore.Filter() comp_pb = pb.composite_filter if self.op == self.AND: comp_pb.op = googledatastore.CompositeFilter.AND else: raise datastore_errors.BadArgumentError( 'Datastore V4 only supports CompositeFilter with AND operator.') for f in self._filters: comp_pb.filters.add().CopyFrom(f._to_pb_v1(adapter)) return pb def __eq__(self, other): if self.__class__ is other.__class__: return super(CompositeFilter, self).__eq__(other) if len(self._filters) == 1: result = self._filters[0].__eq__(other) if result is NotImplemented and hasattr(other, '__eq__'): return other.__eq__(self._filters[0]) return result return NotImplemented class _IgnoreFilter(_SinglePropertyFilter): """A filter that removes all entities with the given keys.""" def __init__(self, key_value_set): super(_IgnoreFilter, self).__init__() self._keys = key_value_set def _get_prop_name(self): return datastore_types.KEY_SPECIAL_PROPERTY def _apply_to_value(self, value): return value not in self._keys class _DedupingFilter(_IgnoreFilter): """A filter that removes duplicate keys.""" def __init__(self, key_value_set=None): super(_DedupingFilter, self).__init__(key_value_set or set()) def _apply_to_value(self, value): if super(_DedupingFilter, self)._apply_to_value(value): self._keys.add(value) return True return False class Order(_PropertyComponent): """A base class that represents a sort order on a query. All sub-classes must be immutable as these are often stored without creating a defensive copying. This class can be used as either the cmp or key arg in sorted() or list.sort(). To provide a stable ordering a trailing key ascending order is always used. """ @datastore_rpc._positional(1) def reversed(self, group_by=None): """Constructs an order representing the reverse of the current order. This function takes into account the effects of orders on properties not in the group_by clause of a query. For example, consider: SELECT A, First(B) ... GROUP BY A ORDER BY A, B Changing the order of B would effect which value is listed in the 'First(B)' column which would actually change the results instead of just reversing them. Args: group_by: If specified, only orders on properties in group_by will be reversed. Returns: A new order representing the reverse direction. """ raise NotImplementedError def _key(self, lhs_value_map): """Creates a key for the given value map.""" raise NotImplementedError def _cmp(self, lhs_value_map, rhs_value_map): """Compares the given value maps.""" raise NotImplementedError def _to_pb(self): """Internal only function to generate a filter pb.""" raise NotImplementedError def _to_pb_v1(self, adapter): """Internal only function to generate a v1 filter pb. Args: adapter: A datastore_rpc.AbstractAdapter """ raise NotImplementedError def key_for_filter(self, filter_predicate): if filter_predicate: return lambda x: self.key(x, filter_predicate) return self.key def cmp_for_filter(self, filter_predicate): if filter_predicate: return lambda x, y: self.cmp(x, y, filter_predicate) return self.cmp def key(self, entity, filter_predicate=None): """Constructs a "key" value for the given entity based on the current order. This function can be used as the key argument for list.sort() and sorted(). Args: entity: The entity_pb2.EntityProto to convert filter_predicate: A FilterPredicate used to prune values before comparing entities or None. Returns: A key value that identifies the position of the entity when sorted by the current order. """ names = self._get_prop_names() names.add(datastore_types.KEY_SPECIAL_PROPERTY) if filter_predicate is not None: names |= filter_predicate._get_prop_names() value_map = _make_key_value_map(entity, names) if filter_predicate is not None: filter_predicate._prune(value_map) return (self._key(value_map), value_map[datastore_types.KEY_SPECIAL_PROPERTY]) def cmp(self, lhs, rhs, filter_predicate=None): """Compares the given values taking into account any filters. This function can be used as the cmp argument for list.sort() and sorted(). This function is slightly more efficient that Order.key when comparing two entities, however it is much less efficient when sorting a list of entities. Args: lhs: An entity_pb2.EntityProto rhs: An entity_pb2.EntityProto filter_predicate: A FilterPredicate used to prune values before comparing entities or None. Returns: An integer <, = or > 0 representing the operator that goes in between lhs and rhs that to create a true statement. """ names = self._get_prop_names() if filter_predicate is not None: names |= filter_predicate._get_prop_names() lhs_value_map = _make_key_value_map(lhs, names) rhs_value_map = _make_key_value_map(rhs, names) if filter_predicate is not None: filter_predicate._prune(lhs_value_map) filter_predicate._prune(rhs_value_map) result = self._cmp(lhs_value_map, rhs_value_map) if result: return result if not lhs.HasField('key') and not rhs.HasField('key'): return 0 lhs_key = (lhs_value_map.get(datastore_types.KEY_SPECIAL_PROPERTY) or datastore_types.ReferenceToKeyValue(lhs.key)) rhs_key = (rhs_value_map.get(datastore_types.KEY_SPECIAL_PROPERTY) or datastore_types.ReferenceToKeyValue(rhs.key)) return cmp_compat.cmp(lhs_key, rhs_key) @cmp_compat.total_ordering_from_cmp class _ReverseOrder(_BaseComponent): """Reverses the comparison for the given object.""" def __init__(self, obj): """Constructor for _ReverseOrder. Args: obj: Any comparable and hashable object. """ super(_ReverseOrder, self).__init__() self._obj = obj def __hash__(self): return hash(self._obj) def __cmp__(self, other): assert self.__class__ == other.__class__, ( 'A datastore_query._ReverseOrder object can only be compared to ' 'an object of the same type.') return -cmp_compat.cmp(self._obj, other._obj) class PropertyOrder(Order): """An immutable class that represents a sort order for a single property.""" ASCENDING = datastore_pb.Query.Order.ASCENDING DESCENDING = datastore_pb.Query.Order.DESCENDING _DIRECTIONS = frozenset([ASCENDING, DESCENDING]) def __init__(self, prop, direction=ASCENDING): """Constructor. Args: prop: the name of the prop by which to sort. direction: the direction in which to sort the given prop. Raises: datastore_errors.BadArgumentError if the prop name or direction is invalid. """ datastore_types.ValidateString(prop, 'prop', datastore_errors.BadArgumentError) if not direction in self._DIRECTIONS: raise datastore_errors.BadArgumentError('unknown direction: %r' % (direction,)) super(PropertyOrder, self).__init__() self.__order = datastore_pb.Query.Order() self.__order.property = six.ensure_binary(prop, 'utf-8') self.__order.direction = direction @property def prop(self): return self.__order.property @property def direction(self): return self.__order.direction def __repr__(self): extra = '' if self.direction == self.DESCENDING: extra = ', DESCENDING' name = repr(six.ensure_str(self.prop))[1:-1] return '%s(<%s>%s)' % (self.__class__.__name__, name, extra) @datastore_rpc._positional(1) def reversed(self, group_by=None): if group_by and self.__order.property not in group_by: return self if self.__order.direction == self.ASCENDING: return PropertyOrder( six.ensure_text(self.__order.property), self.DESCENDING) else: return PropertyOrder( six.ensure_text(self.__order.property), self.ASCENDING) def _get_prop_names(self): return set([self.__order.property]) def _key(self, lhs_value_map): lhs_values = lhs_value_map[self.__order.property] if not lhs_values: raise datastore_errors.BadArgumentError( 'Missing value for property (%s)' % self.__order.property) if self.__order.direction == self.ASCENDING: return min(lhs_values) else: return _ReverseOrder(max(lhs_values)) def _cmp(self, lhs_value_map, rhs_value_map): lhs_values = lhs_value_map[self.__order.property] rhs_values = rhs_value_map[self.__order.property] if not lhs_values and not rhs_values: return 0 if not lhs_values: raise datastore_errors.BadArgumentError( 'LHS missing value for property (%s)' % self.__order.property) if not rhs_values: raise datastore_errors.BadArgumentError( 'RHS missing value for property (%s)' % self.__order.property) if self.__order.direction == self.ASCENDING: return cmp_compat.cmp(min(lhs_values), min(rhs_values)) else: return cmp_compat.cmp(max(rhs_values), max(lhs_values)) @classmethod def _from_pb(cls, order_pb): self = cls.__new__(cls) self.__order = order_pb return self def _to_pb(self): """Returns the internal only pb representation.""" return self.__order def _to_pb_v1(self, adapter): """Returns a googledatastore.PropertyOrder representation of the order. Args: adapter: A datastore_rpc.AbstractAdapter. """ v1_order = googledatastore.PropertyOrder() adapter.get_query_converter().v3_order_to_v1_order(self.__order, v1_order) return v1_order def __getstate__(self): raise pickle.PicklingError( 'Pickling of datastore_query.PropertyOrder is unsupported.') class CompositeOrder(Order): """An immutable class that represents a sequence of Orders. This class proactively flattens sub-orders that are of type CompositeOrder. For example: CompositeOrder([O1, CompositeOrder([02, 03]), O4]) is equivalent to: CompositeOrder([O1, 02, 03, O4]) """ def __init__(self, orders): """Constructor. Args: orders: A list of Orders which are applied in order. """ if not isinstance(orders, (list, tuple)): raise datastore_errors.BadArgumentError( 'orders argument should be list or tuple (%r)' % (orders,)) super(CompositeOrder, self).__init__() flattened = [] for order in orders: if isinstance(order, CompositeOrder): flattened.extend(order._orders) elif isinstance(order, Order): flattened.append(order) else: raise datastore_errors.BadArgumentError( 'orders argument should only contain Order (%r)' % (order,)) self._orders = tuple(flattened) @property def orders(self): return self._orders def __repr__(self): return '%s(%r)' % (self.__class__.__name__, list(self.orders)) @datastore_rpc._positional(1) def reversed(self, group_by=None): return CompositeOrder([order.reversed(group_by=group_by) for order in self._orders]) def _get_prop_names(self): names = set() for order in self._orders: names |= order._get_prop_names() return names def _key(self, lhs_value_map): result = [] for order in self._orders: result.append(order._key(lhs_value_map)) return tuple(result) def _cmp(self, lhs_value_map, rhs_value_map): for order in self._orders: result = order._cmp(lhs_value_map, rhs_value_map) if result != 0: return result return 0 def size(self): """Returns the number of sub-orders the instance contains.""" return len(self._orders) def _to_pbs(self): """Returns an ordered list of internal only pb representations.""" return [order._to_pb() for order in self._orders] def _to_pb_v1(self, adapter): """Returns an ordered list of googledatastore.PropertyOrder. Args: adapter: A datastore_rpc.AbstractAdapter """ return [order._to_pb_v1(adapter) for order in self._orders] def __eq__(self, other): if self.__class__ is other.__class__: return super(CompositeOrder, self).__eq__(other) if len(self._orders) == 1: result = self._orders[0].__eq__(other) if result is NotImplemented and hasattr(other, '__eq__'): return other.__eq__(self._orders[0]) return result return NotImplemented class FetchOptions(datastore_rpc.Configuration): """An immutable class that contains all options for fetching results. These options apply to any request that pulls results from a query. This class reserves the right to define configuration options of any name except those that start with 'user_'. External subclasses should only define function or variables with names that start with in 'user_'. Options are set by passing keyword arguments to the constructor corresponding to the configuration options defined below and in datastore_rpc.Configuration. This object can be used as the default config for a datastore_rpc.Connection but in that case some options will be ignored, see option documentation below for details. """ @datastore_rpc.ConfigOption def produce_cursors(value): """If a Cursor should be returned with the fetched results. Raises: datastore_errors.BadArgumentError if value is not a bool. """ if not isinstance(value, bool): raise datastore_errors.BadArgumentError( 'produce_cursors argument should be bool (%r)' % (value,)) return value @datastore_rpc.ConfigOption def offset(value): """The number of results to skip before returning the first result. Only applies to the first request it is used with and is ignored if present on datastore_rpc.Connection.config. Raises: datastore_errors.BadArgumentError if value is not a integer or is less than zero. """ datastore_types.ValidateInteger(value, 'offset', datastore_errors.BadArgumentError, zero_ok=True) return value @datastore_rpc.ConfigOption def batch_size(value): """The number of results to attempt to retrieve in a batch. Raises: datastore_errors.BadArgumentError if value is not a integer or is not greater than zero. """ datastore_types.ValidateInteger(value, 'batch_size', datastore_errors.BadArgumentError) return value class QueryOptions(FetchOptions): """An immutable class that contains all options for running a query. This class contains options that control execution process (deadline, batch_size, read_policy, etc) and what part of the query results are returned (keys_only, projection, offset, limit, etc) Options that control the contents of the query results are specified on the datastore_query.Query directly. This class reserves the right to define configuration options of any name except those that start with 'user_'. External subclasses should only define function or variables with names that start with in 'user_'. Options are set by passing keyword arguments to the constructor corresponding to the configuration options defined below and in FetchOptions and datastore_rpc.Configuration. This object can be used as the default config for a datastore_rpc.Connection but in that case some options will be ignored, see below for details. """ ORDER_FIRST = datastore_pb.Query.ORDER_FIRST ANCESTOR_FIRST = datastore_pb.Query.ANCESTOR_FIRST FILTER_FIRST = datastore_pb.Query.FILTER_FIRST _HINTS = frozenset([ORDER_FIRST, ANCESTOR_FIRST, FILTER_FIRST]) @datastore_rpc.ConfigOption def keys_only(value): """If the query should only return keys. Raises: datastore_errors.BadArgumentError if value is not a bool. """ if not isinstance(value, bool): raise datastore_errors.BadArgumentError( 'keys_only argument should be bool (%r)' % (value,)) return value @datastore_rpc.ConfigOption def projection(value): """A list or tuple of property names to project. If None, the entire entity is returned. Specifying a projection: - may change the index requirements for the given query; - will cause a partial entity to be returned; - will cause only entities that contain those properties to be returned; A partial entities only contain the property name and value for properties in the projection (meaning and multiple will not be set). They will also only contain a single value for any multi-valued property. However, if a multi-valued property is specified in the order, an inequality property, or the projected properties, the entity will be returned multiple times. Once for each unique combination of values. However, projection queries are significantly faster than normal queries. Raises: datastore_errors.BadArgumentError if value is empty or not a list or tuple of strings. """ if isinstance(value, list): value = tuple(value) elif not isinstance(value, tuple): raise datastore_errors.BadArgumentError( 'projection argument should be a list or tuple (%r)' % (value,)) if not value: raise datastore_errors.BadArgumentError( 'projection argument cannot be empty') for prop in value: if not isinstance(prop, six.string_types + (six.binary_type,)): raise datastore_errors.BadArgumentError( 'projection argument should contain only strings (%r)' % (prop,)) return value @datastore_rpc.ConfigOption def limit(value): """Limit on the number of results to return. Raises: datastore_errors.BadArgumentError if value is not an integer or is less than zero. """ datastore_types.ValidateInteger(value, 'limit', datastore_errors.BadArgumentError, zero_ok=True) return value @datastore_rpc.ConfigOption def prefetch_size(value): """Number of results to attempt to return on the initial request. Raises: datastore_errors.BadArgumentError if value is not an integer or is not greater than zero. """ datastore_types.ValidateInteger(value, 'prefetch_size', datastore_errors.BadArgumentError, zero_ok=True) return value @datastore_rpc.ConfigOption def start_cursor(value): """Cursor to use a start position. Ignored if present on datastore_rpc.Connection.config. Raises: datastore_errors.BadArgumentError if value is not a Cursor. """ if not isinstance(value, Cursor): raise datastore_errors.BadArgumentError( 'start_cursor argument should be datastore_query.Cursor (%r)' % (value,)) return value @datastore_rpc.ConfigOption def end_cursor(value): """Cursor to use as an end position. Ignored if present on datastore_rpc.Connection.config. Raises: datastore_errors.BadArgumentError if value is not a Cursor. """ if not isinstance(value, Cursor): raise datastore_errors.BadArgumentError( 'end_cursor argument should be datastore_query.Cursor (%r)' % (value,)) return value @datastore_rpc.ConfigOption def hint(value): """Hint on how the datastore should plan the query. Raises: datastore_errors.BadArgumentError if value is not a known hint. """ if value not in QueryOptions._HINTS: raise datastore_errors.BadArgumentError('Unknown query hint (%r)' % (value,)) return value class Cursor(_BaseComponent): """An immutable class that represents a relative position in a query. The position denoted by a Cursor is relative to a result in a query even if the result has been removed from the given query. Usually to position immediately after the last result returned by a batch. A cursor should only be used on a query with an identical signature to the one that produced it or on a query with its sort order reversed. """ @datastore_rpc._positional(1) def __init__(self, urlsafe=None, _cursor_bytes=None): """Constructor. A Cursor constructed with no arguments points the first result of any query. If such a Cursor is used as an end_cursor no results will ever be returned. """ super(Cursor, self).__init__() if urlsafe is not None: if _cursor_bytes is not None: raise datastore_errors.BadArgumentError( 'Can only specify one of urlsafe and _cursor_bytes') _cursor_bytes = self._urlsafe_to_bytes(urlsafe) if _cursor_bytes is not None: self.__cursor_bytes = _cursor_bytes else: self.__cursor_bytes = six.binary_type() def __repr__(self): arg = six.ensure_str(self.to_websafe_string()) if arg: arg = '<%s>' % arg return '%s(%s)' % (self.__class__.__name__, arg) def reversed(self): """DEPRECATED. It is no longer necessary to call reversed() on cursors. A cursor returned by a query may also be used in a query whose sort order has been reversed. This method returns a copy of the original cursor. """ return Cursor(_cursor_bytes=self.__cursor_bytes) def to_bytes(self): """Serialize cursor as a byte string.""" return self.__cursor_bytes @staticmethod def from_bytes(cursor): """Gets a Cursor given its byte string serialized form. The serialized form of a cursor may change in a non-backwards compatible way. In this case cursors must be regenerated from a new Query request. Args: cursor: A serialized cursor as returned by .to_bytes. Returns: A Cursor. Raises: datastore_errors.BadValueError if the cursor argument does not represent a serialized cursor. """ return Cursor(_cursor_bytes=cursor) def urlsafe(self): """Serialize cursor as a websafe string. Returns: A base64-encoded serialized cursor. """ return base64.urlsafe_b64encode(self.to_bytes()) to_websafe_string = urlsafe @staticmethod def from_websafe_string(cursor): """Gets a Cursor given its websafe serialized form. The serialized form of a cursor may change in a non-backwards compatible way. In this case cursors must be regenerated from a new Query request. Args: cursor: A serialized cursor as returned by .to_websafe_string. Returns: A Cursor. Raises: datastore_errors.BadValueError if the cursor argument is not a string type of does not represent a serialized cursor. """ decoded_bytes = Cursor._urlsafe_to_bytes(cursor) return Cursor.from_bytes(decoded_bytes) @staticmethod def _urlsafe_to_bytes(cursor): if not isinstance(cursor, six.string_types + (six.binary_type,)): raise datastore_errors.BadValueError( 'cursor argument should be str or unicode (%r)' % (cursor,)) try: decoded_bytes = base64.urlsafe_b64decode( six.ensure_binary(cursor, 'ascii')) except (ValueError, TypeError) as e: raise datastore_errors.BadValueError( 'Invalid cursor %s. Details: %s' % (cursor, e)) return decoded_bytes def advance(self, offset, query, conn): """Advances a Cursor by the given offset. Args: offset: The amount to advance the current query. query: A Query identical to the one this cursor was created from. conn: The datastore_rpc.Connection to use. Returns: A new cursor that is advanced by offset using the given query. """ datastore_types.ValidateInteger(offset, 'offset', datastore_errors.BadArgumentError) if not isinstance(query, Query): raise datastore_errors.BadArgumentError( 'query argument should be datastore_query.Query (%r)' % (query,)) query_options = QueryOptions( start_cursor=self, offset=offset, limit=0, produce_cursors=True) return query.run(conn, query_options).next_batch( Batcher.AT_LEAST_OFFSET).cursor(0) def __setstate__(self, state): if '_Cursor__compiled_cursor' in state: self.__cursor_bytes = state['_Cursor__compiled_cursor'].SerializeToString() else: self.__dict__ = state class _QueryKeyFilter(_BaseComponent): """A class that implements the key filters available on a Query.""" @datastore_rpc._positional(1) def __init__(self, app=None, namespace=None, kind=None, ancestor=None): """Constructs a _QueryKeyFilter. If app/namespace and ancestor are not defined, the app/namespace set in the environment is used. Args: app: a string representing the required app id or None. namespace: a string representing the required namespace or None. kind: a string representing the required kind or None. ancestor: a entity_pb2.Reference representing the required ancestor or None. Raises: datastore_erros.BadArgumentError if app and ancestor.app() do not match or an unexpected type is passed in for any argument. """ if kind is not None: datastore_types.ValidateString( kind, 'kind', datastore_errors.BadArgumentError) if ancestor is not None: if not isinstance(ancestor, entity_pb2.Reference): raise datastore_errors.BadArgumentError( 'ancestor argument should be entity_pb2.Reference (%r)' % (ancestor,)) ancestor_app = six.ensure_binary(ancestor.app) if app is None: app = ancestor_app elif six.ensure_binary(app) != ancestor_app: raise datastore_errors.BadArgumentError( 'ancestor argument should match app ("%r" != "%r")' % (ancestor.app, app)) ancestor_namespace = six.ensure_binary(ancestor.name_space) if namespace is None: namespace = ancestor_namespace elif six.ensure_binary(namespace) != ancestor_namespace: raise datastore_errors.BadArgumentError( 'ancestor argument should match namespace ("%r" != "%r")' % (six.ensure_binary(namespace), ancestor_namespace)) pb = entity_pb2.Reference() pb.CopyFrom(ancestor) ancestor = pb self.__ancestor = ancestor self.__path = list(ancestor.path.element) else: self.__ancestor = None self.__path = None super(_QueryKeyFilter, self).__init__() self.__app = six.ensure_text(datastore_types.ResolveAppId(app), 'utf-8') self.__namespace = ( six.ensure_text(datastore_types.ResolveNamespace(namespace), 'utf-8')) self.__kind = kind @property def app(self): return self.__app @property def namespace(self): return self.__namespace @property def kind(self): return self.__kind @property def ancestor(self): return self.__ancestor def __call__(self, entity_or_reference): """Apply the filter. Accepts either an entity or a reference to avoid the need to extract keys from entities when we have a list of entities (which is a common case). Args: entity_or_reference: Either an entity_pb2.EntityProto or entity_pb2.Reference. """ if isinstance(entity_or_reference, entity_pb2.Reference): key = entity_or_reference elif isinstance(entity_or_reference, entity_pb2.EntityProto): key = entity_or_reference.key else: raise datastore_errors.BadArgumentError( 'entity_or_reference argument must be an entity_pb2.EntityProto ' + six.ensure_str('or entity_pb2.Reference (%r)' % (entity_or_reference), 'utf-8')) return (six.ensure_text(key.app, 'utf-8') == self.__app and six.ensure_text(key.name_space, 'utf-8') == self.__namespace and (not self.__kind or key.path.element[-1].type == self.__kind) and (not self.__path or key.path.element[0:len(self.__path)] == self.__path)) def _to_pb(self): """Returns an internal pb representation.""" pb = datastore_pb.Query() pb.app = self.__app datastore_types.SetNamespace(pb, self.__namespace) if self.__kind is not None: pb.kind = self.__kind if self.__ancestor: ancestor = pb.ancestor ancestor.CopyFrom(self.__ancestor) return pb def _to_pb_v1(self, adapter): """Returns a v1 internal proto representation of the query key filter. Args: adapter: A datastore_rpc.AbstractAdapter. Returns: A tuple (googledatastore.RunQueryRequest, googledatastore.Filter). The second tuple value is a Filter representing the ancestor portion of the query. If there is no ancestor constraint, this value will be None """ pb = googledatastore.RunQueryRequest() partition_id = pb.partition_id partition_id.project_id = ( adapter.get_entity_converter().app_to_project_id(self.__app)) if self.__namespace: partition_id.namespace_id = self.__namespace if self.__kind is not None: pb.query.kind.add().name = self.__kind ancestor_filter = None if self.__ancestor: ancestor_filter = googledatastore.Filter() ancestor_prop_filter = ancestor_filter.property_filter ancestor_prop_filter.op = ( googledatastore.PropertyFilter.HAS_ANCESTOR) prop_pb = ancestor_prop_filter.property prop_pb.name = datastore_types.KEY_SPECIAL_PROPERTY adapter.get_entity_converter().v3_to_v1_key( self.ancestor, ancestor_prop_filter.value.key_value) return pb, ancestor_filter class _BaseQuery(_BaseComponent): """A base class for query implementations.""" def run(self, conn, query_options=None): """Runs the query using provided datastore_rpc.Connection. Args: conn: The datastore_rpc.Connection to use query_options: Optional query options to use Returns: A Batcher that implicitly fetches query results asynchronously. Raises: datastore_errors.BadArgumentError if any of the arguments are invalid. """ return Batcher(query_options, self.run_async(conn, query_options)) def run_async(self, conn, query_options=None): """Runs the query using the provided datastore_rpc.Connection. Args: conn: the datastore_rpc.Connection on which to run the query. query_options: Optional QueryOptions with which to run the query. Returns: An async object that can be used to grab the first Batch. Additional batches can be retrieved by calling Batch.next_batch/next_batch_async. Raises: datastore_errors.BadArgumentError if any of the arguments are invalid. """ raise NotImplementedError def __getstate__(self): raise pickle.PicklingError( 'Pickling of %r is unsupported.' % self) class Query(_BaseQuery): """An immutable class that represents a query signature. A query signature consists of a source of entities (specified as app, namespace and optionally kind and ancestor) as well as a FilterPredicate, grouping and a desired ordering. """ @datastore_rpc._positional(1) def __init__(self, app=None, namespace=None, kind=None, ancestor=None, filter_predicate=None, group_by=None, order=None, read_time_us=None): """Constructor. Args: app: Optional app to query, derived from the environment if not specified. namespace: Optional namespace to query, derived from the environment if not specified. kind: Optional kind to query. ancestor: Optional ancestor to query, an entity_pb2.Reference. filter_predicate: Optional FilterPredicate by which to restrict the query. group_by: Optional list of properties to group the results by. order: Optional Order in which to return results. read_time_us: Optional timestamp to read the storage from. Internal use only. Raises: datastore_errors.BadArgumentError if any argument is invalid. """ super(Query, self).__init__() if filter_predicate is not None and not isinstance(filter_predicate, FilterPredicate): raise datastore_errors.BadArgumentError( 'filter_predicate should be datastore_query.FilterPredicate (%r)' % (filter_predicate,)) if isinstance(order, CompositeOrder): if order.size() == 0: order = None elif isinstance(order, Order): order = CompositeOrder([order]) elif order is not None: raise datastore_errors.BadArgumentError( 'order should be Order (%r)' % (order,)) if group_by is not None: if isinstance(group_by, list): group_by = tuple(group_by) elif not isinstance(group_by, tuple): raise datastore_errors.BadArgumentError( 'group_by argument should be a list or tuple (%r)' % (group_by,)) if not group_by: raise datastore_errors.BadArgumentError( 'group_by argument cannot be empty') for prop in group_by: if not isinstance(prop, six.string_types + (six.binary_type,)): raise datastore_errors.BadArgumentError( 'group_by argument should contain only strings (%r)' % (prop,)) self._key_filter = _QueryKeyFilter(app=app, namespace=namespace, kind=kind, ancestor=ancestor) self._order = order self._filter_predicate = filter_predicate self._group_by = group_by self._read_time_us = read_time_us @property def app(self): return self._key_filter.app @property def namespace(self): return self._key_filter.namespace @property def kind(self): return self._key_filter.kind @property def ancestor(self): return self._key_filter.ancestor @property def filter_predicate(self): return self._filter_predicate @property def order(self): return self._order @property def group_by(self): return self._group_by @property def read_time_us(self): return self._read_time_us def __repr__(self): args = [] args.append('app=%r' % six.ensure_str(self.app)) ns = self.namespace if ns: args.append('namespace=%r' % six.ensure_str(ns)) kind = self.kind if kind is not None: args.append('kind=%r' % six.ensure_str(kind)) ancestor = self.ancestor if ancestor is not None: websafe = base64.urlsafe_b64encode(ancestor.SerializeToString()) args.append('ancestor=<%s>' % six.ensure_str(websafe)) filter_predicate = self.filter_predicate if filter_predicate is not None: args.append('filter_predicate=%r' % filter_predicate) order = self.order if order is not None: args.append('order=%r' % order) group_by = self.group_by if group_by is not None: args.append('group_by=%r' % (tuple(six.ensure_str(x) for x in group_by),)) read_time_us = self.read_time_us if read_time_us is not None: args.append('read_time_us=%r' % (read_time_us,)) return '%s(%s)' % (self.__class__.__name__, ', '.join(args)) def run_async(self, conn, query_options=None): if not isinstance(conn, datastore_rpc.BaseConnection): raise datastore_errors.BadArgumentError( 'conn should be a datastore_rpc.BaseConnection (%r)' % (conn,)) if not QueryOptions.is_configuration(query_options): query_options = QueryOptions(config=query_options) start_cursor = query_options.start_cursor if not start_cursor and query_options.produce_cursors: start_cursor = Cursor() if conn._api_version == datastore_rpc._CLOUD_DATASTORE_V1: req = self._to_pb_v1(conn, query_options) else: req = self._to_pb(conn, query_options) return Batch.create_async(self, query_options, conn, req, start_cursor=start_cursor) @classmethod def _from_pb(cls, query_pb): kind = query_pb.HasField('kind') and query_pb.kind or None ancestor = query_pb.HasField('ancestor') and query_pb.ancestor or None filter_predicate = None if query_pb.filter: filter_predicate = CompositeFilter( CompositeFilter.AND, [PropertyFilter._from_pb(filter_pb) for filter_pb in query_pb.filter]) order = None if query_pb.order: order = CompositeOrder( [PropertyOrder._from_pb(order_pb) for order_pb in query_pb.order]) group_by = None if query_pb.group_by_property_name: group_by = tuple( six.ensure_text(name) for name in query_pb.group_by_property_name) read_time_us = None if query_pb.HasField('read_time_us'): read_time_us = query_pb.read_time_us return Query( app=query_pb.app, namespace=query_pb.name_space, kind=kind, ancestor=ancestor, filter_predicate=filter_predicate, order=order, group_by=group_by, read_time_us=read_time_us) def _to_pb_v1(self, conn, query_options): """Returns a googledatastore.RunQueryRequest.""" v1_req, v1_ancestor_filter = self._key_filter._to_pb_v1(conn.adapter) v1_query = v1_req.query if self.filter_predicate: filter_predicate_pb = self._filter_predicate._to_pb_v1(conn.adapter) if self.filter_predicate and v1_ancestor_filter: comp_filter_pb = v1_query.filter.composite_filter comp_filter_pb.op = googledatastore.CompositeFilter.AND comp_filter_pb.filters.add().CopyFrom(filter_predicate_pb) comp_filter_pb.filters.add().CopyFrom(v1_ancestor_filter) elif self.filter_predicate: v1_query.filter.CopyFrom(filter_predicate_pb) elif v1_ancestor_filter: v1_query.filter.CopyFrom(v1_ancestor_filter) if self._order: for order in self._order._to_pb_v1(conn.adapter): v1_query.order.add().CopyFrom(order) if QueryOptions.keys_only(query_options, conn.config): prop_ref_pb = v1_query.projection.add().property prop_ref_pb.name = datastore_pbs.PROPERTY_NAME_KEY projection = QueryOptions.projection(query_options, conn.config) self._validate_projection_and_group_by(projection, self._group_by) if projection: for prop in projection: prop_ref_pb = v1_query.projection.add().property prop_ref_pb.name = prop if self._group_by: for group_by in self._group_by: v1_query.distinct_on.add().name = group_by limit = QueryOptions.limit(query_options, conn.config) if limit is not None: v1_query.limit.value = limit count = QueryOptions.batch_size(query_options, conn.config) if count is None: count = QueryOptions.prefetch_size(query_options, conn.config) if count is not None: pass if query_options.offset: v1_query.offset = query_options.offset if query_options.start_cursor is not None: v1_query.start_cursor = query_options.start_cursor.to_bytes() if query_options.end_cursor is not None: v1_query.end_cursor = query_options.end_cursor.to_bytes() conn._set_request_read_policy(v1_req, query_options) conn._set_request_transaction(v1_req) return v1_req def _to_pb(self, conn, query_options): """Returns the internal only pb representation.""" pb = self._key_filter._to_pb() if self._filter_predicate: for f in self._filter_predicate._to_pbs(): pb.filter.add().CopyFrom(f) if self._order: for order in self._order._to_pbs(): pb.order.add().CopyFrom(order) if QueryOptions.keys_only(query_options, conn.config): pb.keys_only = True projection = QueryOptions.projection(query_options, conn.config) self._validate_projection_and_group_by(projection, self._group_by) if projection: pb.property_name.extend(projection) if self._group_by: pb.group_by_property_name.extend(self._group_by) if QueryOptions.produce_cursors(query_options, conn.config): pb.compile = True limit = QueryOptions.limit(query_options, conn.config) if limit is not None: pb.limit = limit count = QueryOptions.prefetch_size(query_options, conn.config) if count is None: count = QueryOptions.batch_size(query_options, conn.config) if count is not None: pb.count = count if query_options.offset: pb.offset = query_options.offset if query_options.start_cursor is not None: try: pb.compiled_cursor.ParseFromString( query_options.start_cursor.to_bytes()) except message.DecodeError: raise datastore_errors.BadValueError('invalid cursor') if query_options.end_cursor is not None: try: pb.end_compiled_cursor.ParseFromString( query_options.end_cursor.to_bytes()) except message.DecodeError: raise datastore_errors.BadValueError('invalid cursor') if ((query_options.hint == QueryOptions.ORDER_FIRST and len(pb.order)) or (query_options.hint == QueryOptions.ANCESTOR_FIRST and pb.HasField('ancestor')) or (query_options.hint == QueryOptions.FILTER_FIRST and pb.filter)): pb.hint = query_options.hint if self.read_time_us is not None: pb.read_time_us = self.read_time_us conn._set_request_read_policy(pb, query_options) conn._set_request_transaction(pb) return pb def _validate_projection_and_group_by(self, projection, group_by): """Validates that a query's projection and group by match. Args: projection: A set of string property names in the projection. group_by: A set of string property names in the group by. Raises: datastore_errors.BadRequestError: if the projection and group by sets are not equal. """ if projection: if group_by: extra = set(projection) - set(group_by) if extra: raise datastore_errors.BadRequestError( 'projections includes properties not in the group_by argument: %s' % extra) elif group_by: raise datastore_errors.BadRequestError( 'cannot specify group_by without a projection') def apply_query(query, entities, _key=None): """Performs the given query on a set of in-memory results. This function can perform queries impossible in the datastore (e.g a query with multiple inequality filters on different properties) because all operations are done in memory. For queries that can also be executed on the the datastore, the results produced by this function may not use the same implicit ordering as the datastore. To ensure compatibility, explicit ordering must be used (e.g. 'ORDER BY ineq_prop, ..., __key__'). Order by __key__ should always be used when a consistent result is desired (unless there is a sort order on another globally unique property). Args: query: a datastore_query.Query to apply entities: a list of results, of arbitrary type, on which to apply the query. _key: a function that takes an element of the result array as an argument and must return an entity_pb2.EntityProto. If not specified, the identity function is used (and entities must be a list of entity_pb2.EntityProto). Returns: A subset of entities, filtered and ordered according to the query. """ if not isinstance(query, Query): raise datastore_errors.BadArgumentError( 'query argument must be a datastore_query.Query (%r)' % (query,)) if not isinstance(entities, list): raise datastore_errors.BadArgumentError( 'entities argument must be a list (%r)' % (entities,)) key = _key or (lambda x: x) filtered_results = [r for r in entities if query._key_filter(key(r))] if not query._order: if query._filter_predicate: return [r for r in filtered_results if query._filter_predicate(key(r))] return filtered_results names = query._order._get_prop_names() if query._filter_predicate: names |= query._filter_predicate._get_prop_names() exists_filter = _PropertyExistsFilter(names) value_maps = [] for result in filtered_results: value_map = _make_key_value_map(key(result), names) if exists_filter._apply(value_map) and ( not query._filter_predicate or query._filter_predicate._prune(value_map)): value_map['__result__'] = result value_maps.append(value_map) value_maps.sort(key=functools.cmp_to_key(query._order._cmp)) return [value_map['__result__'] for value_map in value_maps] class _AugmentedQuery(_BaseQuery): """A query that combines a datastore query with in-memory filters/results.""" @datastore_rpc._positional(2) def __init__(self, query, in_memory_results=None, in_memory_filter=None, max_filtered_count=None): """Constructor for _AugmentedQuery. Do not call directly. Use the utility functions instead (e.g. datastore_query.inject_results) Args: query: A datastore_query.Query object to augment. in_memory_results: a list of pre- sorted and filtered result to add to the stream of datastore results or None . in_memory_filter: a set of in-memory filters to apply to the datastore results or None. max_filtered_count: the maximum number of datastore entities that will be filtered out by in_memory_filter if known. """ if not isinstance(query, Query): raise datastore_errors.BadArgumentError( 'query argument should be datastore_query.Query (%r)' % (query,)) if (in_memory_filter is not None and not isinstance(in_memory_filter, FilterPredicate)): raise datastore_errors.BadArgumentError( 'in_memory_filter argument should be ' + six.ensure_str( 'datastore_query.FilterPredicate (%r)' % (in_memory_filter,), 'utf-8')) if (in_memory_results is not None and not isinstance(in_memory_results, list)): raise datastore_errors.BadArgumentError( 'in_memory_results argument should be a list of' + six.ensure_str('datastore_pv.EntityProto (%r)' % (in_memory_results,), 'utf-8')) datastore_types.ValidateInteger(max_filtered_count, 'max_filtered_count', empty_ok=True, zero_ok=True) self._query = query self._max_filtered_count = max_filtered_count self._in_memory_filter = in_memory_filter self._in_memory_results = in_memory_results @property def app(self): return self._query._key_filter.app @property def namespace(self): return self._query._key_filter.namespace @property def kind(self): return self._query._key_filter.kind @property def ancestor(self): return self._query._key_filter.ancestor @property def filter_predicate(self): return self._query._filter_predicate @property def order(self): return self._query._order @property def group_by(self): return self._query._group_by def run_async(self, conn, query_options=None): if not isinstance(conn, datastore_rpc.BaseConnection): raise datastore_errors.BadArgumentError( 'conn should be a datastore_rpc.BaseConnection (%r)' % (conn,)) if not QueryOptions.is_configuration(query_options): query_options = QueryOptions(config=query_options) if self._query._order: changes = {'keys_only': False} else: changes = {} if self._in_memory_filter or self._in_memory_results: in_memory_offset = query_options.offset in_memory_limit = query_options.limit if in_memory_limit is not None: if self._in_memory_filter is None: changes['limit'] = in_memory_limit elif self._max_filtered_count is not None: changes['limit'] = in_memory_limit + self._max_filtered_count else: changes['limit'] = None if in_memory_offset: changes['offset'] = None if changes.get('limit', None) is not None: changes['limit'] += in_memory_offset else: in_memory_offset = None else: in_memory_offset = None in_memory_limit = None modified_query_options = QueryOptions(config=query_options, **changes) if conn._api_version == datastore_rpc._CLOUD_DATASTORE_V1: req = self._query._to_pb_v1(conn, modified_query_options) else: req = self._query._to_pb(conn, modified_query_options) start_cursor = query_options.start_cursor if not start_cursor and query_options.produce_cursors: start_cursor = Cursor() return _AugmentedBatch.create_async(self, modified_query_options, conn, req, in_memory_offset=in_memory_offset, in_memory_limit=in_memory_limit, start_cursor=start_cursor) @datastore_rpc._positional(1) def inject_results(query, updated_entities=None, deleted_keys=None): """Creates a query object that will inject changes into results. Args: query: The datastore_query.Query to augment updated_entities: A list of entity_pb2.EntityProto's that have been updated and should take priority over any values returned by query. deleted_keys: A list of entity_pb2.Reference's for entities that have been deleted and should be removed from query results. Returns: A datastore_query.AugmentedQuery if in memory filtering is required, query otherwise. """ if not isinstance(query, Query): raise datastore_errors.BadArgumentError( 'query argument should be datastore_query.Query (%r)' % (query,)) overridden_keys = set() if deleted_keys is not None: if not isinstance(deleted_keys, list): raise datastore_errors.BadArgumentError( 'deleted_keys argument must be a list (%r)' % (deleted_keys,)) deleted_keys = list(six.moves.filter(query._key_filter, deleted_keys)) for key in deleted_keys: overridden_keys.add(datastore_types.ReferenceToKeyValue(key)) if updated_entities is not None: if not isinstance(updated_entities, list): raise datastore_errors.BadArgumentError( 'updated_entities argument must be a list (%r)' % (updated_entities,)) updated_entities = list( six.moves.filter(query._key_filter, updated_entities)) for entity in updated_entities: overridden_keys.add(datastore_types.ReferenceToKeyValue(entity.key)) updated_entities = apply_query(query, updated_entities) else: updated_entities = [] if not overridden_keys: return query return _AugmentedQuery(query, in_memory_filter=_IgnoreFilter(overridden_keys), in_memory_results=updated_entities, max_filtered_count=len(overridden_keys)) class _BatchShared(object): """Data shared among the batches of a query.""" def __init__(self, query, query_options, conn, augmented_query=None, initial_offset=None): self.__query = query self.__query_options = query_options self.__conn = conn self.__augmented_query = augmented_query self.__was_first_result_processed = False if initial_offset is None: initial_offset = query_options.offset or 0 self.__expected_offset = initial_offset self.__remaining_limit = query_options.limit @property def query(self): return self.__query @property def query_options(self): return self.__query_options @property def conn(self): return self.__conn @property def augmented_query(self): return self.__augmented_query @property def keys_only(self): return self.__keys_only @property def compiled_query(self): return self.__compiled_query @property def expected_offset(self): return self.__expected_offset @property def remaining_limit(self): return self.__remaining_limit @property def index_list(self): """Returns the list of indexes used by the query. Possibly None when the adapter does not implement pb_to_index. """ return self.__index_list def process_batch(self, batch): if self.conn._api_version == datastore_rpc._CLOUD_DATASTORE_V1: skipped_results = batch.skipped_results num_results = len(batch.entity_results) else: skipped_results = batch.skipped_results num_results = len(batch.result) self.__expected_offset -= skipped_results if self.__remaining_limit is not None: self.__remaining_limit -= num_results if not self.__was_first_result_processed: self.__was_first_result_processed = True if self.conn._api_version == datastore_rpc._CLOUD_DATASTORE_V1: result_type = batch.entity_result_type self.__keys_only = result_type == googledatastore.EntityResult.KEY_ONLY self.__compiled_query = None self.__index_list = None else: self.__keys_only = batch.keys_only if batch.HasField('compiled_query'): self.__compiled_query = batch.compiled_query else: self.__compiled_query = None try: self.__index_list = [ self.__conn.adapter.pb_to_index(index_pb) for index_pb in batch.index ] except NotImplementedError: self.__index_list = None class Batch(object): """A batch of results returned by a query. This class contains a batch of results returned from the datastore and relevant metadata. This metadata includes: query: The query that produced this batch query_options: The QueryOptions used to run the query. This does not contained any options passed to the .next_batch() call that created the current batch. start_cursor, end_cursor: These are the cursors that can be used with a query to re-fetch this batch. They can also be used to find all entities before or after the given batch (by use start_cursor as an end cursor or vice versa). start_cursor can also be advanced to point to a position within the batch using Cursor.advance(). skipped_results: the number of result skipped because of the offset given to the request that generated it. This can be set either on the original Query.run() request or in subsequent .next_batch() calls. more_results: If this is true there are more results that can be retrieved either by .next_batch() or Batcher.next(). This class is also able to fetch the next batch of the query using .next_batch(). As batches of results must be fetched serially, .next_batch() can only be called once. Additional calls to .next_batch() will return None. When there are no more batches .next_batch() will return None as well. Note that batches returned by iterating over Batcher will always return None for .next_batch() as the Bather handles fetching the next batch automatically. A Batch typically represents the result of a single RPC request. The datastore operates on a "best effort" basis so the batch returned by .next_batch() or Query.run_async().get_result() may not have satisfied the requested offset or number of results (specified through FetchOptions.offset and FetchOptions.batch_size respectively). To satisfy these restrictions additional batches may be needed (with FetchOptions that specify the remaining offset or results needed). The Batcher class hides these limitations. """ __skipped_cursor = None __end_cursor = None @classmethod @datastore_rpc._positional(5) def create_async(cls, query, query_options, conn, req, start_cursor): batch_shared = _BatchShared(query, query_options, conn) batch0 = cls(batch_shared, start_cursor=start_cursor) return batch0._make_query_rpc_call(query_options, req) @datastore_rpc._positional(2) def __init__(self, batch_shared, start_cursor=Cursor()): """Constructor. This class is constructed in stages (one when an RPC is sent and another when an rpc is completed) and should not be constructed directly!! Use Query.run_async().get_result() to create a Batch or Query.run() to use a batcher. This constructor does not perform verification. Args: batch_shared: Data shared between batches for a a single query run. start_cursor: Optional cursor pointing before this batch. """ self._batch_shared = batch_shared self.__start_cursor = start_cursor @property def query_options(self): """The QueryOptions used to retrieve the first batch.""" return self._batch_shared.query_options @property def query(self): """The query the current batch came from.""" return self._batch_shared.query @property def results(self): """A list of entities in this batch.""" return self.__results @property def keys_only(self): """Whether the entities in this batch only contain keys.""" return self._batch_shared.keys_only @property def index_list(self): """Returns the list of indexes used to peform this batch's query. Possibly None when the adapter does not implement pb_to_index. """ return self._batch_shared.index_list @property def start_cursor(self): """A cursor that points to the position just before the current batch.""" return self.__start_cursor @property def end_cursor(self): """A cursor that points to the position just after the current batch.""" return self.__end_cursor @property def skipped_results(self): """The number of results skipped because of an offset in the request. An offset is satisfied before any results are returned. The start_cursor points to the position in the query before the skipped results. """ return self._skipped_results @property def more_results(self): """Whether more results can be retrieved from the query.""" return self.__more_results def next_batch(self, fetch_options=None): """Synchronously get the next batch or None if there are no more batches. Args: fetch_options: Optional fetch options to use when fetching the next batch. Merged with both the fetch options on the original call and the connection. Returns: A new Batch of results or None if either the next batch has already been fetched or there are no more results. """ async_ = self.next_batch_async(fetch_options) if async_ is None: return None return async_.get_result() def _compiled_query(self): return self._batch_shared.compiled_query def cursor(self, index): """Gets the cursor that points just after the result at index - 1. The index is relative to first result in .results. Since start_cursor points to the position before the first skipped result, the range of indexes this function supports is limited to [-skipped_results, len(results)]. For example, using start_cursor=batch.cursor(i) and end_cursor=batch.cursor(j) will return the results found in batch.results[i:j]. Note that any result added in the range (i-1, j] will appear in the new query's results. Warning: Any index in the range (-skipped_results, 0) may cause continuation to miss or duplicate results if outside a transaction. Args: index: An int, the index relative to the first result before which the cursor should point. Returns: A Cursor that points to a position just after the result index - 1, which if used as a start_cursor will cause the first result to be batch.result[index]. """ if not isinstance(index, six.integer_types): raise datastore_errors.BadArgumentError( 'index argument should be an integer (%r)' % (index,)) if not -self._skipped_results <= index <= len(self.__results): raise datastore_errors.BadArgumentError( 'index argument must be in the inclusive range [%d, %d]' % (-self._skipped_results, len(self.__results))) if index == -self._skipped_results: return self.__start_cursor elif (index == 0 and self.__skipped_cursor): return self.__skipped_cursor elif index > 0 and self.__result_cursors: return self.__result_cursors[index - 1] elif index == len(self.__results): return self.__end_cursor else: return self.__start_cursor.advance(index + self._skipped_results, self._batch_shared.query, self._batch_shared.conn) def next_batch_async(self, fetch_options=None): """Asynchronously get the next batch or None if there are no more batches. Args: fetch_options: Optional fetch options to use when fetching the next batch. Merged with both the fetch options on the original call and the connection. Returns: An async object that can be used to get the next Batch or None if either the next batch has already been fetched or there are no more results. """ if not self.__datastore_cursor: return None fetch_options, next_batch = self._make_next_batch(fetch_options) if (fetch_options is not None and not FetchOptions.is_configuration(fetch_options)): raise datastore_errors.BadArgumentError('Invalid fetch options.') config = self._batch_shared.query_options.merge(fetch_options) conn = next_batch._batch_shared.conn requested_offset = 0 if fetch_options is not None and fetch_options.offset is not None: requested_offset = fetch_options.offset if conn._api_version == datastore_rpc._CLOUD_DATASTORE_V1: if self._batch_shared.expected_offset != requested_offset: raise datastore_errors.BadArgumentError( 'Cannot request the next batch with a different offset than ' ' expected. Expected: %s, Got: %s.' % (self._batch_shared.expected_offset, requested_offset)) limit = self._batch_shared.remaining_limit next_options = QueryOptions(offset=self._batch_shared.expected_offset, limit=limit, start_cursor=self.__datastore_cursor) config = config.merge(next_options) result = next_batch._make_query_rpc_call( config, self._batch_shared.query._to_pb_v1(conn, config)) else: result = next_batch._make_next_rpc_call(config, self._to_pb(fetch_options)) self.__datastore_cursor = None return result def _to_pb(self, fetch_options=None): req = datastore_pb.NextRequest() if FetchOptions.produce_cursors(fetch_options, self._batch_shared.query_options, self._batch_shared.conn.config): req.compile = True count = FetchOptions.batch_size(fetch_options, self._batch_shared.query_options, self._batch_shared.conn.config) if count is not None: req.count = count if fetch_options is not None and fetch_options.offset: req.offset = fetch_options.offset req.cursor.CopyFrom(self.__datastore_cursor) return req def _extend(self, next_batch): """Combines the current batch with the next one. Called by batcher.""" self.__datastore_cursor = next_batch.__datastore_cursor next_batch.__datastore_cursor = None self.__more_results = next_batch.__more_results if not self.__results: self.__skipped_cursor = next_batch.__skipped_cursor self.__results.extend(next_batch.__results) self.__result_cursors.extend(next_batch.__result_cursors) self.__end_cursor = next_batch.__end_cursor self._skipped_results += next_batch._skipped_results def _make_query_rpc_call(self, config, req): """Makes a RunQuery call that will modify the instance. Args: config: The datastore_rpc.Configuration to use for the call. req: The request to send with the call. Returns: A UserRPC object that can be used to fetch the result of the RPC. """ _api_version = self._batch_shared.conn._api_version if _api_version == datastore_rpc._CLOUD_DATASTORE_V1: return self._batch_shared.conn._make_rpc_call( config, 'RunQuery', req, googledatastore.RunQueryResponse(), self.__v1_run_query_response_hook) return self._batch_shared.conn._make_rpc_call(config, 'RunQuery', req, datastore_pb.QueryResult(), self.__query_result_hook) def _make_next_rpc_call(self, config, req): """Makes a Next call that will modify the instance. Args: config: The datastore_rpc.Configuration to use for the call. req: The request to send with the call. Returns: A UserRPC object that can be used to fetch the result of the RPC. """ return self._batch_shared.conn._make_rpc_call(config, 'Next', req, datastore_pb.QueryResult(), self.__query_result_hook) _need_index_header = 'The suggested index for this query is:' def __v1_run_query_response_hook(self, rpc): try: self._batch_shared.conn.check_rpc_success(rpc) except datastore_errors.NeedIndexError: raise batch = rpc.response.batch self._batch_shared.process_batch(batch) if batch.skipped_cursor: self.__skipped_cursor = Cursor(_cursor_bytes=batch.skipped_cursor) self.__result_cursors = [Cursor(_cursor_bytes=result.cursor) for result in batch.entity_results if result.cursor] if batch.end_cursor: self.__end_cursor = Cursor(_cursor_bytes=batch.end_cursor) self._skipped_results = batch.skipped_results if batch.more_results == googledatastore.QueryResultBatch.NOT_FINISHED: self.__more_results = True self.__datastore_cursor = self.__end_cursor or self.__skipped_cursor if self.__datastore_cursor == self.__start_cursor: raise datastore_errors.Timeout( 'The query was not able to make progress.') else: self._end() self.__results = self._process_v1_results(batch.entity_results) return self def __query_result_hook(self, rpc): """Internal method used as get_result_hook for RunQuery/Next operation.""" try: self._batch_shared.conn.check_rpc_success(rpc) except datastore_errors.NeedIndexError as exc: if isinstance(rpc.request, datastore_pb.Query): _, kind, ancestor, props = datastore_index.CompositeIndexForQuery( rpc.request) props = datastore_index.GetRecommendedIndexProperties(props) yaml = datastore_index.IndexYamlForQuery(kind, ancestor, props) xml = datastore_index.IndexXmlForQuery(kind, ancestor, props) raise datastore_errors.NeedIndexError( '\n'.join([str(exc), self._need_index_header, yaml]), original_message=str(exc), header=self._need_index_header, yaml_index=yaml, xml_index=xml) raise query_result = rpc.response self._batch_shared.process_batch(query_result) if query_result.HasField('skipped_results_compiled_cursor'): self.__skipped_cursor = Cursor( _cursor_bytes=query_result.skipped_results_compiled_cursor .SerializeToString()) self.__result_cursors = [ Cursor(_cursor_bytes=result.SerializeToString()) for result in query_result.result_compiled_cursor ] if query_result.HasField('compiled_cursor'): self.__end_cursor = Cursor( _cursor_bytes=query_result.compiled_cursor.SerializeToString()) self._skipped_results = query_result.skipped_results if query_result.more_results: self.__datastore_cursor = query_result.cursor self.__more_results = True else: self._end() self.__results = self._process_results(query_result.result) return self def _end(self): """Changes the internal state so that no more batches can be produced.""" self.__datastore_cursor = None self.__more_results = False def _make_next_batch(self, fetch_options): """Creates the object to store the next batch. Args: fetch_options: The datastore_query.FetchOptions passed in by the user or None. Returns: A tuple containing the fetch options that should be used internally and the object that should be used to contain the next batch. """ return fetch_options, Batch(self._batch_shared, start_cursor=self.__end_cursor) def _process_results(self, results): """Converts the datastore results into results returned to the user. Args: results: A list of entity_pb2.EntityProto's returned by the datastore Returns: A list of results that should be returned to the user. """ converter = self._batch_shared.conn.adapter.pb_to_query_result return [converter(result, self._batch_shared.query_options) for result in results] def _process_v1_results(self, results): """Converts the datastore results into results returned to the user. Args: results: A list of googledatastore.EntityResults. Returns: A list of results that should be returned to the user. """ converter = self._batch_shared.conn.adapter.pb_v1_to_query_result return [converter(result.entity, self._batch_shared.query_options) for result in results] def __getstate__(self): raise pickle.PicklingError( 'Pickling of datastore_query.Batch is unsupported.') class _AugmentedBatch(Batch): """A batch produced by a datastore_query._AugmentedQuery.""" @classmethod @datastore_rpc._positional(5) def create_async(cls, augmented_query, query_options, conn, req, in_memory_offset, in_memory_limit, start_cursor): initial_offset = 0 if in_memory_offset is not None else None batch_shared = _BatchShared(augmented_query._query, query_options, conn, augmented_query, initial_offset=initial_offset) batch0 = cls(batch_shared, in_memory_offset=in_memory_offset, in_memory_limit=in_memory_limit, start_cursor=start_cursor) return batch0._make_query_rpc_call(query_options, req) @datastore_rpc._positional(2) def __init__(self, batch_shared, in_memory_offset=None, in_memory_limit=None, next_index=0, start_cursor=Cursor()): """A Constructor for datastore_query._AugmentedBatch. Constructed by datastore_query._AugmentedQuery. Should not be called directly. """ super(_AugmentedBatch, self).__init__(batch_shared, start_cursor=start_cursor) self.__in_memory_offset = in_memory_offset self.__in_memory_limit = in_memory_limit self.__next_index = next_index @property def query(self): """The query the current batch came from.""" return self._batch_shared.augmented_query def cursor(self, index): raise NotImplementedError def _extend(self, next_batch): super(_AugmentedBatch, self)._extend(next_batch) self.__in_memory_limit = next_batch.__in_memory_limit self.__in_memory_offset = next_batch.__in_memory_offset self.__next_index = next_batch.__next_index def _process_v1_results(self, results): """Process V4 results by converting to V3 and calling _process_results.""" v3_results = [] is_projection = bool(self.query_options.projection) for v1_result in results: v3_entity = entity_pb2.EntityProto() self._batch_shared.conn.adapter.get_entity_converter().v1_to_v3_entity( v1_result.entity, v3_entity, is_projection) v3_results.append(v3_entity) return self._process_results(v3_results) def _process_results(self, results): in_memory_filter = self._batch_shared.augmented_query._in_memory_filter if in_memory_filter: results = list(filter(in_memory_filter, results)) in_memory_results = self._batch_shared.augmented_query._in_memory_results if in_memory_results and self.__next_index < len(in_memory_results): original_query = super(_AugmentedBatch, self).query if original_query._order: if results: next_result = in_memory_results[self.__next_index] next_key = original_query._order.key(next_result) i = 0 while i < len(results): result = results[i] result_key = original_query._order.key(result) while next_key <= result_key: results.insert(i, next_result) i += 1 self.__next_index += 1 if self.__next_index >= len(in_memory_results): break next_result = in_memory_results[self.__next_index] next_key = original_query._order.key(next_result) i += 1 elif results or not super(_AugmentedBatch, self).more_results: results = in_memory_results + results self.__next_index = len(in_memory_results) if self.__in_memory_offset: assert not self._skipped_results offset = min(self.__in_memory_offset, len(results)) if offset: self._skipped_results += offset self.__in_memory_offset -= offset results = results[offset:] if self.__in_memory_limit is not None: results = results[:self.__in_memory_limit] self.__in_memory_limit -= len(results) if self.__in_memory_limit <= 0: self._end() return super(_AugmentedBatch, self)._process_results(results) def _make_next_batch(self, fetch_options): in_memory_offset = FetchOptions.offset(fetch_options) augmented_query = self._batch_shared.augmented_query if in_memory_offset and (augmented_query._in_memory_filter or augmented_query._in_memory_results): fetch_options = FetchOptions(offset=0) else: in_memory_offset = None return (fetch_options, _AugmentedBatch(self._batch_shared, in_memory_offset=in_memory_offset, in_memory_limit=self.__in_memory_limit, start_cursor=self.end_cursor, next_index=self.__next_index)) class Batcher(object): """A class that implements the Iterator interface for Batches. Typically constructed by a call to Query.run(). The class hides the "best effort" nature of the datastore by potentially making multiple requests to the datastore and merging the resulting batches. This is accomplished efficiently by prefetching results and mixing both non-blocking and blocking calls to the datastore as needed. Iterating through batches is almost always more efficient than pulling all results at once as RPC latency is hidden by asynchronously prefetching results. The batches produce by this class cannot be used to fetch the next batch (through Batch.next_batch()) as before the current batch is returned the request for the next batch has already been sent. """ ASYNC_ONLY = None AT_LEAST_OFFSET = 0 AT_LEAST_ONE = object() def __init__(self, query_options, first_async_batch): """Constructor. Although this class can be manually constructed, it is preferable to use Query.run(query_options). Args: query_options: The QueryOptions used to create the first batch. first_async_batch: The first batch produced by Query.run_async(query_options). """ self.__next_batch = first_async_batch self.__initial_offset = QueryOptions.offset(query_options) or 0 self.__skipped_results = 0 def next(self): """Get the next batch. See .next_batch().""" return self.next_batch(self.AT_LEAST_ONE) def __next__(self): return self.next() def next_batch(self, min_batch_size): """Get the next batch. The batch returned by this function cannot be used to fetch the next batch (through Batch.next_batch()). Instead this function will always return None. To retrieve the next batch use .next() or .next_batch(N). This function may return a batch larger than min_to_fetch, but will never return smaller unless there are no more results. Special values can be used for min_batch_size: ASYNC_ONLY - Do not perform any synchrounous fetches from the datastore even if the this produces a batch with no results. AT_LEAST_OFFSET - Only pull enough results to satifiy the offset. AT_LEAST_ONE - Pull batches until at least one result is returned. Args: min_batch_size: The minimum number of results to retrieve or one of (ASYNC_ONLY, AT_LEAST_OFFSET, AT_LEAST_ONE) Returns: The next Batch of results. """ if min_batch_size in (Batcher.ASYNC_ONLY, Batcher.AT_LEAST_OFFSET, Batcher.AT_LEAST_ONE): exact = False else: exact = True datastore_types.ValidateInteger(min_batch_size, 'min_batch_size', datastore_errors.BadArgumentError) if not self.__next_batch: raise StopIteration batch = self.__next_batch.get_result() self.__next_batch = None self.__skipped_results += batch.skipped_results if min_batch_size is not Batcher.ASYNC_ONLY: if min_batch_size is Batcher.AT_LEAST_ONE: min_batch_size = 1 needed_results = min_batch_size - len(batch.results) while (batch.more_results and (self.__skipped_results < self.__initial_offset or needed_results > 0)): if batch.query_options.batch_size: batch_size = max(batch.query_options.batch_size, needed_results) elif exact: batch_size = needed_results else: batch_size = None self.__next_batch = batch.next_batch_async(FetchOptions( offset=max(0, self.__initial_offset - self.__skipped_results), batch_size=batch_size)) next_batch = self.__next_batch.get_result() self.__next_batch = None self.__skipped_results += next_batch.skipped_results needed_results = max(0, needed_results - len(next_batch.results)) batch._extend(next_batch) self.__next_batch = batch.next_batch_async() return batch def __getstate__(self): raise pickle.PicklingError( 'Pickling of datastore_query.Batcher is unsupported.') def __iter__(self): return self class ResultsIterator(six.Iterator): """An iterator over the results from Batches obtained from a Batcher. ResultsIterator implements Python's iterator protocol, so results can be accessed with the for-statement: > it = ResultsIterator(Query(kind='Person').run()) > for person in it: > print 'Hi, %s!' % person['name'] At any time ResultsIterator.cursor() can be used to grab the Cursor that points just after the last result returned by the iterator. """ __current_batch = None __current_pos = 0 __last_cursor = None def __init__(self, batcher): """Constructor. Args: batcher: A datastore_query.Batcher """ if not isinstance(batcher, Batcher): raise datastore_errors.BadArgumentError( 'batcher argument should be datastore_query.Batcher (%r)' % (batcher,)) self.__batcher = batcher def index_list(self): """Returns the list of indexes used to perform the query. Possibly None when the adapter does not implement pb_to_index. """ return self._ensure_current_batch().index_list def cursor(self): """Returns a cursor that points just after the last result returned. If next() throws an exception, this function returns the end_cursor from the last successful batch or throws the same exception if no batch was successful. """ return (self.__last_cursor or self._ensure_current_batch().cursor(self.__current_pos)) def _ensure_current_batch(self): if not self.__current_batch: self.__current_batch = self.__batcher.next_batch(Batcher.AT_LEAST_OFFSET) self.__current_pos = 0 return self.__current_batch def _compiled_query(self): """Returns the compiled query associated with the iterator. Internal only do not use. """ return self._ensure_current_batch()._compiled_query() def __next__(self): """Returns the next query result.""" while (not self.__current_batch or self.__current_pos >= len(self.__current_batch.results)): try: next_batch = self.__batcher.next_batch(Batcher.AT_LEAST_OFFSET) except: if self.__current_batch: self.__last_cursor = self.__current_batch.end_cursor raise self.__current_pos = 0 self.__current_batch = next_batch result = self.__current_batch.results[self.__current_pos] self.__current_pos += 1 return result def __iter__(self): return self def next(self): return self.__next__()
[ 1, 529, 276, 1112, 420, 29958, 1357, 24446, 29914, 932, 10599, 29899, 4691, 29899, 15770, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29900, 29955, 5087, 365, 12182, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 13, 29937, 366, 1122, 451, 671, 445, 934, 5174, 297, 752, 13036, 411, 278, 19245, 29889, 13, 29937, 887, 1122, 4017, 263, 3509, 310, 278, 19245, 472, 13, 29937, 13, 29937, 268, 1732, 597, 1636, 29889, 4288, 29889, 990, 29914, 506, 11259, 29914, 27888, 1430, 1660, 29899, 29906, 29889, 29900, 13, 29937, 13, 29937, 25870, 3734, 491, 22903, 4307, 470, 15502, 304, 297, 5007, 29892, 7047, 13, 29937, 13235, 1090, 278, 19245, 338, 13235, 373, 385, 376, 3289, 8519, 29908, 350, 3289, 3235, 29892, 13, 29937, 399, 1806, 8187, 2692, 399, 1718, 29934, 13566, 29059, 6323, 8707, 29928, 22122, 29903, 8079, 13764, 29979, 476, 22255, 29892, 2845, 4653, 470, 2411, 2957, 29889, 13, 29937, 2823, 278, 19245, 363, 278, 2702, 4086, 14765, 1076, 11239, 322, 13, 29937, 27028, 1090, 278, 19245, 29889, 13, 29937, 13, 13, 13, 13, 13, 15945, 29908, 29909, 16835, 14476, 2820, 1418, 579, 487, 2346, 390, 9026, 5717, 29889, 13, 13, 4013, 8128, 11463, 22437, 2820, 278, 7463, 871, 1418, 579, 487, 29918, 24381, 3489, 322, 338, 13, 2783, 12961, 304, 367, 278, 19604, 29899, 5563, 3450, 304, 367, 1304, 491, 599, 5132, 1418, 579, 487, 3132, 13, 492, 8464, 363, 14012, 9365, 29889, 739, 8128, 263, 7546, 310, 13047, 577, 278, 3935, 13, 29934, 9026, 5877, 508, 1735, 1728, 6602, 292, 3132, 9562, 29889, 13, 13, 10773, 770, 29892, 740, 29892, 1746, 470, 2980, 6257, 411, 385, 22868, 29915, 338, 363, 2672, 4945, 29940, 1964, 671, 13, 6194, 322, 881, 451, 367, 1304, 491, 18777, 29991, 13, 15945, 29908, 13, 13, 13, 13, 13, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8380, 29918, 5215, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8542, 13, 3166, 4770, 29888, 9130, 1649, 1053, 1596, 29918, 2220, 13, 3166, 4770, 29888, 9130, 1649, 1053, 29104, 29918, 20889, 1338, 13, 13, 5215, 2967, 29953, 29946, 13, 5215, 16250, 13, 5215, 2090, 312, 8789, 13, 5215, 5839, 280, 13, 13, 5215, 4832, 13, 13, 3166, 5386, 29889, 932, 10599, 29889, 2754, 1053, 274, 1526, 29918, 12667, 13, 3166, 5386, 29889, 932, 10599, 29889, 2754, 1053, 1418, 579, 487, 29918, 12523, 13, 3166, 5386, 29889, 932, 10599, 29889, 2754, 1053, 1418, 579, 487, 29918, 8768, 13, 3166, 5386, 29889, 932, 10599, 29889, 4130, 579, 487, 1053, 1418, 579, 487, 29918, 2248, 13, 3166, 5386, 29889, 932, 10599, 29889, 4130, 579, 487, 1053, 1418, 579, 487, 29918, 24381, 13, 3166, 5386, 29889, 932, 10599, 29889, 4130, 579, 487, 1053, 1418, 579, 487, 29918, 29886, 5824, 13, 3166, 5386, 29889, 932, 10599, 29889, 4130, 579, 487, 1053, 1418, 579, 487, 29918, 29878, 6739, 13, 3166, 5386, 29889, 17529, 9721, 1053, 2643, 13, 3166, 5386, 29889, 932, 10599, 29889, 4130, 579, 487, 1053, 7855, 29918, 13193, 29918, 24381, 29906, 408, 7855, 29918, 24381, 29906, 13, 13, 13, 13, 1649, 497, 1649, 353, 6024, 23145, 742, 13, 965, 525, 23145, 261, 742, 13, 965, 525, 1523, 1066, 568, 5072, 742, 13, 965, 525, 1523, 1066, 568, 7514, 742, 13, 965, 525, 12521, 23445, 5072, 742, 13, 965, 525, 19890, 742, 13, 965, 525, 20927, 5856, 742, 13, 965, 525, 5072, 23084, 9593, 742, 13, 965, 525, 7514, 742, 13, 965, 525, 4854, 5072, 742, 13, 965, 525, 4854, 7514, 742, 13, 965, 525, 3010, 742, 13, 965, 525, 3010, 5856, 742, 13, 965, 525, 12191, 20277, 742, 13, 965, 525, 5675, 29918, 4572, 742, 13, 965, 525, 7302, 29918, 1972, 742, 13, 965, 525, 21920, 29918, 9902, 2033, 13, 13, 361, 1418, 579, 487, 29918, 29886, 5824, 3032, 29907, 3927, 15789, 29918, 14573, 1254, 29949, 1525, 29918, 1430, 6181, 29928, 29901, 13, 29871, 515, 5386, 29889, 932, 10599, 29889, 4130, 579, 487, 29889, 4130, 579, 487, 29918, 29886, 5824, 1053, 27304, 839, 271, 579, 487, 13, 13, 1990, 903, 5160, 5308, 29898, 3318, 1125, 13, 29871, 9995, 29909, 2967, 770, 363, 2346, 7117, 29889, 13, 13, 29871, 15447, 925, 10703, 6996, 1275, 322, 2804, 3168, 29889, 13, 29871, 9995, 13, 13, 29871, 822, 4770, 1837, 12035, 1311, 29892, 916, 1125, 13, 1678, 565, 1583, 17255, 1990, 1649, 338, 451, 916, 17255, 1990, 1649, 29901, 13, 418, 736, 2216, 1888, 2037, 287, 13, 1678, 736, 1583, 338, 916, 470, 1583, 17255, 8977, 1649, 1275, 916, 17255, 8977, 1649, 13, 13, 29871, 822, 4770, 484, 12035, 1311, 29892, 916, 1125, 13, 1678, 5186, 353, 1583, 17255, 1837, 12035, 1228, 29897, 13, 1678, 565, 5186, 338, 2216, 1888, 2037, 287, 29901, 13, 418, 736, 5186, 13, 1678, 736, 451, 5186, 13, 13, 13, 1753, 1207, 29918, 4572, 29898, 978, 29892, 1015, 29892, 1819, 1125, 13, 29871, 9995, 1168, 4984, 29879, 263, 19916, 23084, 9593, 515, 278, 2183, 1024, 29892, 1015, 322, 1819, 29889, 13, 13, 29871, 826, 3174, 29901, 13, 1678, 1024, 29901, 319, 1661, 29899, 6310, 1347, 29892, 278, 1024, 310, 278, 2875, 304, 4175, 29889, 13, 1678, 1015, 29901, 3118, 310, 9079, 5072, 3032, 4590, 1001, 1299, 24125, 29889, 8149, 3285, 278, 5455, 304, 671, 29889, 13, 1678, 1819, 29901, 319, 6969, 995, 29892, 278, 995, 304, 7252, 2750, 29889, 13, 13, 29871, 16969, 29901, 13, 1678, 565, 1819, 338, 263, 1051, 29892, 263, 24497, 568, 5072, 393, 3913, 5300, 304, 14405, 599, 13, 1678, 1819, 29892, 6467, 263, 9079, 5072, 363, 278, 2323, 995, 29889, 13, 13, 29871, 390, 1759, 267, 29901, 13, 1678, 1418, 579, 487, 29918, 12523, 29889, 22050, 4854, 2392, 29901, 565, 278, 2875, 1024, 338, 8340, 29889, 13, 1678, 1418, 579, 487, 29918, 12523, 29889, 22050, 1917, 2392, 29901, 565, 278, 2875, 1258, 451, 12725, 5149, 13, 418, 470, 278, 995, 471, 385, 4069, 1051, 29889, 13, 1678, 5901, 3682, 4072, 313, 4561, 28845, 2392, 1125, 565, 278, 2875, 995, 947, 451, 13, 418, 5870, 1134, 29899, 14940, 16614, 29889, 13, 29871, 9995, 13, 29871, 1418, 579, 487, 29918, 8768, 29889, 7211, 403, 4854, 29898, 978, 29892, 1819, 29897, 13, 29871, 4426, 353, 1418, 579, 487, 29918, 8768, 29889, 1762, 4854, 29925, 29890, 29898, 978, 29892, 1819, 29897, 13, 29871, 565, 338, 8758, 29898, 11330, 29892, 1051, 1125, 13, 1678, 18094, 353, 518, 4854, 5072, 29898, 459, 29892, 3107, 29897, 363, 3107, 297, 4426, 29962, 13, 1678, 736, 24497, 568, 5072, 29898, 1523, 1066, 568, 5072, 29889, 9468, 29892, 18094, 29897, 13, 29871, 1683, 29901, 13, 1678, 736, 9079, 5072, 29898, 459, 29892, 4426, 29897, 13, 13, 13, 1753, 903, 5675, 29918, 1989, 29918, 1767, 29918, 1958, 29898, 10041, 29892, 2875, 29918, 7039, 1125, 13, 29871, 9995, 5647, 1461, 29879, 1820, 1819, 515, 278, 2183, 7855, 29889, 13, 13, 29871, 826, 3174, 29901, 13, 1678, 7855, 29901, 450, 7855, 29918, 24381, 29906, 29889, 6691, 1184, 517, 304, 6597, 1819, 515, 29889, 13, 1678, 2875, 29918, 7039, 29901, 450, 2983, 310, 278, 4426, 515, 607, 304, 6597, 1819, 29889, 13, 13, 29871, 16969, 29901, 13, 1678, 319, 9657, 10417, 2875, 2983, 304, 263, 8857, 310, 1820, 1819, 29889, 13, 29871, 9995, 13, 13, 13, 13, 13, 13, 29871, 995, 29918, 1958, 353, 9657, 3552, 28319, 29889, 7469, 29918, 726, 29898, 978, 511, 518, 2314, 363, 1024, 297, 2875, 29918, 7039, 29897, 13, 13, 13, 29871, 363, 3107, 297, 7855, 29889, 6799, 29901, 13, 1678, 3107, 29918, 978, 353, 4832, 29889, 7469, 29918, 726, 29898, 7728, 29889, 978, 29897, 13, 1678, 565, 3107, 29918, 978, 297, 995, 29918, 1958, 29901, 13, 418, 995, 29918, 1958, 29961, 7728, 29918, 978, 1822, 4397, 29898, 13, 3986, 1418, 579, 487, 29918, 8768, 29889, 4854, 1917, 1762, 2558, 1917, 29898, 7728, 29889, 1767, 876, 13, 13, 13, 29871, 1820, 29918, 7728, 353, 4832, 29889, 7469, 29918, 726, 29898, 4130, 579, 487, 29918, 8768, 29889, 10818, 29918, 29903, 4162, 8426, 1964, 29918, 8618, 13171, 15631, 29897, 13, 29871, 565, 1820, 29918, 7728, 297, 995, 29918, 1958, 29901, 13, 1678, 995, 29918, 1958, 29961, 1989, 29918, 7728, 29962, 353, 518, 4130, 579, 487, 29918, 8768, 29889, 7422, 1762, 2558, 1917, 29898, 10041, 29889, 1989, 4638, 13, 13, 29871, 736, 995, 29918, 1958, 13, 13, 13, 1990, 903, 4854, 5308, 7373, 5160, 5308, 1125, 13, 29871, 9995, 29909, 4163, 393, 1751, 1078, 373, 263, 2702, 731, 310, 4426, 1213, 15945, 13, 13, 29871, 822, 903, 657, 29918, 7728, 29918, 7039, 29898, 1311, 1125, 13, 1678, 9995, 11609, 29879, 263, 731, 310, 2875, 2983, 1304, 491, 278, 4175, 1213, 15945, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 13, 1990, 19916, 23084, 9593, 7373, 4854, 5308, 1125, 13, 29871, 9995, 2744, 9846, 2967, 770, 363, 599, 2346, 18094, 29889, 13, 13, 29871, 2178, 1014, 29899, 13203, 1818, 367, 5198, 9246, 408, 1438, 526, 4049, 6087, 1728, 4969, 263, 13, 29871, 822, 6270, 3509, 29889, 13, 29871, 9995, 13, 13, 29871, 822, 4770, 4804, 12035, 1311, 29892, 7855, 1125, 13, 1678, 9995, 2052, 3687, 278, 4175, 24384, 304, 278, 2183, 7855, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 7855, 29901, 278, 1418, 579, 487, 29918, 24381, 29889, 6691, 1184, 517, 304, 1243, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 5852, 565, 278, 2183, 7855, 7087, 278, 4175, 29892, 7700, 6467, 29889, 13, 1678, 9995, 13, 1678, 736, 1583, 3032, 7302, 7373, 5675, 29918, 1989, 29918, 1767, 29918, 1958, 29898, 10041, 29892, 1583, 3032, 657, 29918, 7728, 29918, 7039, 22130, 13, 13, 29871, 822, 903, 7302, 29898, 1311, 29892, 1820, 29918, 1767, 29918, 1958, 1125, 13, 1678, 9995, 2052, 368, 278, 2183, 4163, 304, 278, 5734, 519, 995, 2910, 29889, 13, 13, 1678, 319, 4175, 7087, 263, 1051, 310, 1819, 565, 472, 3203, 697, 995, 297, 278, 1051, 13, 1678, 7087, 278, 4175, 29892, 363, 1342, 29901, 13, 418, 525, 7728, 29901, 518, 29896, 29892, 29871, 29906, 29962, 29915, 7087, 1716, 525, 7728, 353, 29871, 29896, 29915, 322, 525, 7728, 353, 29871, 29906, 29915, 541, 451, 525, 7728, 353, 29871, 29941, 29915, 13, 13, 1678, 3940, 29901, 278, 1819, 526, 2869, 9875, 408, 5291, 2701, 5069, 937, 2944, 13, 1678, 2094, 2631, 278, 1134, 29936, 1074, 1418, 579, 487, 29918, 8768, 29889, 4854, 1917, 1762, 2558, 1917, 2141, 13, 13, 1678, 826, 3174, 29901, 13, 418, 1820, 29918, 1767, 29918, 1958, 29901, 319, 9657, 10417, 2875, 2983, 304, 263, 1051, 310, 13, 4706, 5734, 519, 1819, 29889, 13, 13, 1678, 7106, 29901, 13, 418, 319, 7223, 23941, 565, 278, 2183, 2910, 7087, 278, 4175, 29889, 13, 1678, 9995, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 29871, 822, 903, 558, 1540, 29898, 1311, 29892, 1820, 29918, 1767, 29918, 1958, 1125, 13, 1678, 9995, 7301, 586, 267, 1819, 515, 278, 2183, 2910, 393, 437, 451, 1993, 278, 4175, 29889, 13, 13, 1678, 1932, 2599, 263, 12812, 297, 278, 1418, 579, 487, 29892, 871, 2380, 1819, 393, 1993, 278, 18094, 13, 1678, 526, 3595, 29889, 1932, 2999, 1819, 393, 1298, 304, 278, 1021, 7855, 526, 3595, 29892, 278, 13, 1678, 7855, 871, 5692, 988, 278, 937, 995, 338, 1476, 29889, 910, 740, 25388, 13, 1678, 599, 1819, 393, 1016, 29915, 29873, 1993, 278, 2346, 577, 393, 278, 937, 995, 297, 278, 2910, 13, 1678, 338, 278, 1021, 697, 278, 1418, 579, 487, 723, 1074, 937, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 1820, 29918, 1767, 29918, 1958, 29901, 278, 5734, 519, 995, 2910, 515, 607, 304, 3349, 13, 4706, 1819, 29889, 5538, 451, 817, 304, 1712, 1819, 363, 599, 22289, 4426, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 319, 995, 393, 6161, 1078, 304, 7700, 565, 1432, 995, 297, 263, 2323, 1051, 471, 13, 418, 6446, 6206, 29889, 910, 17583, 16058, 278, 4175, 541, 338, 3109, 13, 418, 8543, 1135, 903, 7302, 2141, 13, 1678, 9995, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 29871, 822, 903, 517, 29918, 24381, 29898, 1311, 1125, 13, 1678, 9995, 16491, 871, 740, 304, 5706, 263, 282, 29890, 1213, 15945, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 29898, 13, 4706, 525, 4013, 4175, 871, 11286, 297, 3370, 6931, 313, 29995, 29878, 16029, 1273, 1583, 29897, 13, 13, 29871, 822, 903, 517, 29918, 29886, 5824, 29898, 1311, 1125, 13, 1678, 9995, 16491, 871, 740, 304, 5706, 263, 1051, 310, 282, 5824, 1213, 15945, 13, 1678, 736, 518, 1311, 3032, 517, 29918, 24381, 580, 29962, 13, 13, 29871, 822, 903, 517, 29918, 24381, 29918, 29894, 29896, 29898, 1311, 29892, 13304, 1125, 13, 1678, 9995, 16491, 871, 740, 304, 5706, 263, 325, 29896, 282, 29890, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 13304, 29901, 319, 1418, 579, 487, 29918, 29878, 6739, 29889, 9118, 6168, 13, 1678, 9995, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 29898, 13, 4706, 525, 4013, 4175, 871, 11286, 297, 3370, 6931, 313, 29995, 29878, 16029, 1273, 1583, 29897, 13, 13, 13, 1990, 903, 15771, 4854, 5072, 29898, 5072, 23084, 9593, 1125, 13, 29871, 9995, 5160, 770, 363, 263, 4175, 393, 1751, 1078, 373, 263, 2323, 2875, 1213, 15945, 13, 13, 29871, 822, 903, 657, 29918, 7728, 29918, 978, 29898, 1311, 1125, 13, 1678, 9995, 11609, 29879, 278, 1024, 310, 278, 2875, 1641, 22289, 1213, 15945, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 29871, 822, 903, 7302, 29918, 517, 29918, 1767, 29898, 1311, 29892, 995, 1125, 13, 1678, 9995, 2052, 368, 278, 4175, 304, 278, 2183, 995, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 995, 29901, 450, 5734, 519, 995, 304, 1423, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 319, 7223, 23941, 565, 278, 2183, 995, 7087, 278, 4175, 29889, 13, 1678, 9995, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 29871, 822, 903, 657, 29918, 7728, 29918, 7039, 29898, 1311, 1125, 13, 1678, 736, 731, 4197, 1311, 3032, 657, 29918, 7728, 29918, 978, 580, 2314, 13, 13, 29871, 822, 903, 7302, 29898, 1311, 29892, 995, 29918, 1958, 1125, 13, 1678, 363, 916, 29918, 1767, 297, 995, 29918, 1958, 29961, 1311, 3032, 657, 29918, 7728, 29918, 978, 580, 5387, 13, 418, 565, 1583, 3032, 7302, 29918, 517, 29918, 1767, 29898, 1228, 29918, 1767, 1125, 13, 4706, 736, 5852, 13, 1678, 736, 7700, 13, 13, 29871, 822, 903, 558, 1540, 29898, 1311, 29892, 995, 29918, 1958, 1125, 13, 13, 13, 13, 13, 1678, 565, 1583, 3032, 657, 29918, 7728, 29918, 978, 580, 451, 297, 995, 29918, 1958, 29901, 13, 418, 736, 5852, 13, 1678, 1819, 353, 518, 1767, 363, 995, 297, 995, 29918, 1958, 29961, 1311, 3032, 657, 29918, 7728, 29918, 978, 580, 29962, 13, 795, 565, 1583, 3032, 7302, 29918, 517, 29918, 1767, 29898, 1767, 4638, 13, 1678, 995, 29918, 1958, 29961, 1311, 3032, 657, 29918, 7728, 29918, 978, 580, 29962, 353, 1819, 13, 1678, 736, 6120, 29898, 5975, 29897, 13, 13, 13, 1990, 9079, 5072, 7373, 15771, 4854, 5072, 1125, 13, 29871, 9995, 2744, 5198, 9246, 4175, 24384, 393, 1040, 336, 1144, 263, 2323, 2875, 1213, 15945, 13, 13, 29871, 903, 4590, 1001, 1299, 24125, 353, 426, 13, 418, 12801, 2396, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 1307, 1799, 29918, 4690, 2190, 29892, 13, 418, 12801, 29922, 2396, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 1307, 1799, 29918, 4690, 2190, 29918, 1955, 29918, 29923, 13356, 1964, 29892, 13, 418, 525, 29958, 2396, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 29954, 1525, 1299, 1001, 29918, 4690, 2190, 29892, 13, 418, 525, 18572, 2396, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 29954, 1525, 1299, 1001, 29918, 4690, 2190, 29918, 1955, 29918, 29923, 13356, 1964, 29892, 13, 418, 525, 29922, 2396, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 29923, 13356, 1964, 29892, 13, 29871, 500, 13, 13, 29871, 903, 4590, 1001, 1299, 24125, 29918, 1177, 5348, 1660, 353, 9657, 3552, 1767, 29892, 1820, 29897, 13, 462, 9651, 363, 1820, 29892, 995, 297, 903, 4590, 1001, 1299, 24125, 29889, 7076, 3101, 13, 13, 29871, 903, 4590, 1001, 1299, 24125, 29918, 4986, 29918, 20055, 4690, 1164, 29918, 4590, 1001, 1299, 1955, 353, 426, 13, 418, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 1307, 1799, 29918, 4690, 2190, 29901, 12801, 742, 13, 418, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 1307, 1799, 29918, 4690, 2190, 29918, 1955, 29918, 29923, 13356, 1964, 29901, 12801, 29922, 742, 13, 418, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 29954, 1525, 1299, 1001, 29918, 4690, 2190, 29901, 525, 29958, 742, 13, 418, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 29954, 1525, 1299, 1001, 29918, 4690, 2190, 29918, 1955, 29918, 29923, 13356, 1964, 29901, 525, 18572, 742, 13, 418, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 29923, 13356, 1964, 29901, 525, 1360, 742, 13, 29871, 500, 13, 13, 29871, 903, 8895, 13356, 1964, 11937, 29918, 4590, 1001, 1299, 24125, 353, 14671, 29920, 575, 300, 18959, 29966, 742, 12801, 29922, 742, 525, 29958, 742, 525, 18572, 11287, 13, 13, 29871, 903, 8895, 13356, 1964, 11937, 29918, 4590, 1001, 1299, 24125, 29918, 1430, 5005, 353, 14671, 29920, 575, 300, 4197, 13, 418, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 1307, 1799, 29918, 4690, 2190, 29892, 13, 418, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 1307, 1799, 29918, 4690, 2190, 29918, 1955, 29918, 29923, 13356, 1964, 29892, 13, 418, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 29954, 1525, 1299, 1001, 29918, 4690, 2190, 29892, 13, 418, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 29954, 1525, 1299, 1001, 29918, 4690, 2190, 29918, 1955, 29918, 29923, 13356, 1964, 29892, 13, 259, 2314, 13, 13, 29871, 903, 4897, 13171, 8456, 18783, 29918, 8895, 13356, 1964, 11937, 29918, 4590, 1001, 1299, 24125, 353, 14671, 29920, 575, 300, 18959, 29966, 742, 12801, 29922, 11287, 13, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 1015, 29892, 995, 1125, 13, 1678, 9995, 23770, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 1015, 29901, 319, 1347, 15783, 278, 5455, 304, 671, 29889, 13, 418, 995, 29901, 319, 7855, 29918, 24381, 29906, 29889, 4854, 29892, 278, 2875, 322, 995, 304, 7252, 2750, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 565, 1015, 756, 385, 443, 23765, 995, 470, 995, 13, 418, 338, 451, 385, 7855, 29918, 24381, 29906, 29889, 4854, 29889, 13, 1678, 9995, 13, 1678, 565, 1015, 451, 297, 1583, 3032, 4590, 1001, 1299, 24125, 29901, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 877, 26690, 5455, 29901, 1273, 29878, 29915, 1273, 313, 459, 29892, 876, 13, 1678, 565, 451, 338, 8758, 29898, 1767, 29892, 7855, 29918, 24381, 29906, 29889, 4854, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 1767, 2980, 881, 367, 7855, 29918, 24381, 29906, 29889, 4854, 313, 29995, 29878, 16029, 1273, 313, 1767, 29892, 876, 13, 13, 1678, 2428, 29898, 4854, 5072, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 1678, 1583, 3032, 4572, 353, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 580, 13, 1678, 1583, 3032, 4572, 29889, 459, 353, 1583, 3032, 4590, 1001, 1299, 24125, 29961, 459, 29962, 13, 1678, 1583, 3032, 4572, 29889, 6799, 29889, 1202, 2141, 11882, 4591, 29898, 1767, 29897, 13, 13, 29871, 732, 6799, 13, 29871, 822, 1015, 29898, 1311, 1125, 13, 1678, 10650, 29918, 459, 353, 1583, 3032, 4572, 29889, 459, 13, 1678, 736, 1583, 3032, 4590, 1001, 1299, 24125, 29918, 1177, 5348, 1660, 29889, 657, 29898, 1610, 29918, 459, 29892, 851, 29898, 1610, 29918, 459, 876, 13, 13, 29871, 732, 6799, 13, 29871, 822, 995, 29898, 1311, 1125, 13, 13, 1678, 736, 1583, 3032, 4572, 29889, 6799, 29961, 29900, 29962, 13, 13, 29871, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 1678, 3107, 353, 1583, 29889, 1767, 13, 1678, 1024, 353, 3107, 29889, 978, 13, 1678, 995, 353, 1418, 579, 487, 29918, 8768, 29889, 4591, 4854, 29925, 29890, 29898, 7728, 29897, 13, 1678, 565, 4832, 29889, 20055, 29906, 322, 338, 8758, 29898, 1767, 29892, 1472, 1125, 13, 418, 995, 353, 938, 29898, 1767, 29897, 13, 1678, 736, 14210, 29879, 29414, 29878, 29892, 20577, 29878, 29892, 1273, 29878, 12948, 29915, 1273, 313, 1311, 17255, 1990, 1649, 17255, 978, 1649, 29892, 4832, 29889, 7469, 29918, 710, 29898, 13, 4706, 1583, 29889, 459, 511, 4832, 29889, 7469, 29918, 710, 29898, 978, 511, 995, 29897, 13, 13, 29871, 822, 903, 657, 29918, 7728, 29918, 978, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 4572, 29889, 6799, 29961, 29900, 1822, 978, 13, 13, 29871, 822, 903, 7302, 29918, 517, 29918, 1767, 29898, 1311, 29892, 995, 1125, 13, 1678, 565, 451, 756, 5552, 29898, 1311, 29892, 22868, 21058, 29918, 1767, 29374, 13, 418, 565, 1583, 3032, 4572, 29889, 459, 1275, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 5746, 24306, 29901, 13, 13, 4706, 736, 5852, 13, 418, 1583, 3032, 21058, 29918, 1767, 353, 1418, 579, 487, 29918, 8768, 29889, 4854, 1917, 1762, 2558, 1917, 29898, 13, 3986, 1583, 3032, 4572, 29889, 6799, 29961, 29900, 1822, 1767, 29897, 13, 418, 1583, 3032, 16122, 353, 6702, 1767, 1273, 29879, 1583, 3032, 21058, 29918, 1767, 29915, 1273, 13, 462, 308, 1583, 3032, 4590, 1001, 1299, 24125, 29918, 4986, 29918, 20055, 4690, 1164, 29918, 4590, 1001, 1299, 1955, 29961, 1311, 3032, 4572, 29889, 459, 2314, 13, 1678, 736, 19745, 29898, 1311, 3032, 16122, 29897, 13, 13, 29871, 822, 903, 5349, 29918, 457, 29567, 29898, 1311, 1125, 13, 1678, 9995, 11609, 29879, 5852, 565, 278, 4175, 24384, 3743, 297, 11745, 1907, 18094, 1213, 15945, 13, 1678, 736, 1583, 3032, 4572, 29889, 459, 297, 1583, 3032, 8895, 13356, 1964, 11937, 29918, 4590, 1001, 1299, 24125, 29918, 1430, 5005, 13, 13, 29871, 732, 1990, 5696, 13, 29871, 822, 903, 3166, 29918, 24381, 29898, 25932, 29892, 4175, 29918, 24381, 1125, 13, 13, 1678, 1583, 353, 1067, 29879, 17255, 1482, 12035, 25932, 29897, 13, 1678, 1583, 3032, 4572, 353, 4175, 29918, 24381, 13, 1678, 736, 1583, 13, 13, 29871, 822, 903, 517, 29918, 24381, 29898, 1311, 1125, 13, 1678, 9995, 11609, 29879, 278, 7463, 871, 282, 29890, 8954, 1213, 15945, 13, 1678, 736, 1583, 3032, 4572, 13, 13, 29871, 822, 903, 517, 29918, 24381, 29918, 29894, 29896, 29898, 1311, 29892, 13304, 1125, 13, 1678, 9995, 11609, 29879, 263, 27304, 839, 271, 579, 487, 29889, 5072, 8954, 310, 278, 4175, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 13304, 29901, 319, 1418, 579, 487, 29918, 29878, 6739, 29889, 9118, 6168, 13, 1678, 9995, 13, 1678, 4175, 29918, 24381, 353, 27304, 839, 271, 579, 487, 29889, 5072, 580, 13, 1678, 3107, 29918, 4572, 29918, 24381, 353, 4175, 29918, 24381, 29889, 6799, 29918, 4572, 13, 1678, 13304, 29889, 657, 29918, 1972, 29918, 535, 13549, 2141, 29918, 29894, 29941, 29918, 4572, 29918, 517, 29918, 29894, 29896, 29918, 6799, 29918, 4572, 29898, 13, 4706, 1583, 3032, 4572, 29892, 3107, 29918, 4572, 29918, 24381, 29897, 13, 1678, 736, 4175, 29918, 24381, 13, 13, 29871, 822, 4770, 657, 3859, 12035, 1311, 1125, 13, 1678, 12020, 5839, 280, 29889, 29925, 860, 1847, 2392, 29898, 13, 4706, 525, 29925, 860, 1847, 310, 1418, 579, 487, 29918, 1972, 29889, 4854, 5072, 338, 443, 23765, 29889, 1495, 13, 13, 29871, 822, 4770, 1837, 12035, 1311, 29892, 916, 1125, 13, 13, 13, 1678, 565, 1583, 17255, 1990, 1649, 338, 451, 916, 17255, 1990, 1649, 29901, 13, 418, 565, 916, 17255, 1990, 1649, 338, 903, 4854, 6069, 5072, 29901, 13, 4706, 736, 518, 1311, 3032, 4572, 29962, 1275, 916, 3032, 517, 29918, 29886, 5824, 580, 13, 418, 736, 2216, 1888, 2037, 287, 13, 1678, 736, 1583, 3032, 4572, 1275, 916, 3032, 4572, 13, 13, 13, 1990, 903, 4854, 6069, 5072, 7373, 15771, 4854, 5072, 1125, 13, 29871, 9995, 29909, 4175, 24384, 393, 11524, 263, 3464, 310, 1819, 29889, 13, 13, 29871, 4001, 591, 2758, 2473, 29899, 4387, 287, 4426, 727, 338, 263, 2919, 4328, 1546, 13, 29871, 376, 29916, 1405, 29871, 29900, 5300, 921, 529, 29871, 29896, 29908, 322, 376, 29900, 529, 921, 529, 29871, 29896, 1213, 530, 7855, 411, 921, 353, 21069, 29896, 29892, 29871, 29906, 29962, 674, 1993, 278, 13, 29871, 937, 541, 451, 278, 1473, 29889, 13, 13, 29871, 4001, 278, 1418, 579, 487, 871, 6511, 263, 2323, 14585, 4175, 29892, 2999, 13, 29871, 297, 29899, 13895, 18094, 526, 19412, 964, 263, 2323, 3464, 4175, 297, 278, 13, 29871, 1418, 579, 487, 313, 348, 4561, 17193, 18094, 467, 910, 770, 338, 1304, 491, 13, 29871, 1418, 579, 487, 29918, 1972, 29889, 1523, 1066, 568, 5072, 304, 2334, 278, 1021, 5900, 29889, 13, 29871, 9995, 13, 13, 29871, 903, 2962, 29918, 1989, 29918, 1767, 353, 6213, 13, 29871, 903, 355, 29918, 1989, 29918, 1767, 353, 6213, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 3032, 1066, 3245, 29898, 29896, 29897, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 1369, 29922, 8516, 29892, 1369, 29918, 262, 695, 29922, 5574, 29892, 1095, 29922, 8516, 29892, 1095, 29918, 262, 695, 29922, 5574, 1125, 13, 1678, 9995, 1168, 4984, 29879, 263, 3464, 4175, 773, 1369, 322, 1095, 4426, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 1369, 29901, 319, 7855, 29918, 24381, 29906, 29889, 4854, 304, 671, 408, 263, 5224, 3216, 470, 6213, 304, 12266, 13, 4706, 694, 5224, 3216, 29889, 13, 418, 1369, 29918, 262, 695, 29901, 319, 7223, 393, 14088, 565, 278, 5224, 3216, 338, 20978, 573, 29889, 13, 418, 1095, 29901, 319, 7855, 29918, 24381, 29906, 29889, 4854, 304, 671, 408, 385, 7568, 3216, 470, 6213, 304, 12266, 13, 4706, 694, 7568, 3216, 29889, 13, 418, 1095, 29918, 262, 695, 29901, 319, 7223, 393, 14088, 565, 278, 7568, 3216, 338, 20978, 573, 29889, 13, 1678, 9995, 13, 1678, 565, 1369, 338, 451, 6213, 322, 451, 338, 8758, 29898, 2962, 29892, 7855, 29918, 24381, 29906, 29889, 4854, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 2962, 2980, 881, 367, 7855, 29918, 24381, 29906, 29889, 4854, 313, 29995, 29878, 16029, 1273, 313, 2962, 29892, 876, 13, 1678, 565, 1095, 338, 451, 6213, 322, 451, 338, 8758, 29898, 355, 29892, 7855, 29918, 24381, 29906, 29889, 4854, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 2962, 2980, 881, 367, 7855, 29918, 24381, 29906, 29889, 4854, 313, 29995, 29878, 16029, 1273, 313, 355, 29892, 876, 13, 1678, 565, 1369, 322, 1095, 322, 1369, 29889, 978, 2804, 1095, 29889, 978, 29901, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 2962, 322, 1095, 6273, 1818, 367, 373, 278, 1021, 2875, 313, 29995, 29879, 2804, 1273, 29879, 16029, 1273, 13, 3986, 313, 2962, 29889, 978, 29892, 1095, 29889, 978, 876, 13, 1678, 565, 451, 1369, 322, 451, 1095, 29901, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 2525, 29306, 20238, 526, 451, 6969, 29889, 1495, 13, 13, 1678, 2428, 7373, 4854, 6069, 5072, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 1678, 1583, 3032, 2962, 353, 1369, 13, 1678, 1583, 3032, 2962, 29918, 262, 695, 353, 1369, 29918, 262, 695, 13, 1678, 1583, 3032, 355, 353, 1095, 13, 1678, 1583, 3032, 355, 29918, 262, 695, 353, 1095, 29918, 262, 695, 13, 13, 29871, 732, 1990, 5696, 13, 29871, 822, 515, 29918, 6799, 29918, 4572, 29898, 25932, 29892, 3107, 29918, 4572, 1125, 13, 1678, 1015, 353, 3107, 29918, 4572, 3032, 4572, 29889, 459, 13, 1678, 565, 1015, 1275, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 29954, 1525, 1299, 1001, 29918, 4690, 2190, 29901, 13, 418, 736, 1067, 29879, 29898, 2962, 29922, 7728, 29918, 4572, 3032, 4572, 29889, 6799, 29961, 29900, 1402, 1369, 29918, 262, 695, 29922, 8824, 29897, 13, 1678, 25342, 1015, 1275, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 29954, 1525, 1299, 1001, 29918, 4690, 2190, 29918, 1955, 29918, 29923, 13356, 1964, 29901, 13, 418, 736, 1067, 29879, 29898, 2962, 29922, 7728, 29918, 4572, 3032, 4572, 29889, 6799, 29961, 29900, 2314, 13, 1678, 25342, 1015, 1275, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 1307, 1799, 29918, 4690, 2190, 29901, 13, 418, 736, 1067, 29879, 29898, 355, 29922, 7728, 29918, 4572, 3032, 4572, 29889, 6799, 29961, 29900, 1402, 1095, 29918, 262, 695, 29922, 8824, 29897, 13, 1678, 25342, 1015, 1275, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 1307, 1799, 29918, 4690, 2190, 29918, 1955, 29918, 29923, 13356, 1964, 29901, 13, 418, 736, 1067, 29879, 29898, 355, 29922, 7728, 29918, 4572, 3032, 4572, 29889, 6799, 29961, 29900, 2314, 13, 1678, 1683, 29901, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 25807, 29884, 3016, 287, 5455, 313, 29995, 29879, 16029, 1273, 313, 459, 29892, 876, 13, 13, 29871, 822, 25869, 29898, 1311, 29892, 916, 1125, 13, 1678, 9995, 11609, 29879, 263, 4175, 15783, 278, 17686, 310, 1583, 322, 916, 1213, 15945, 13, 1678, 565, 338, 8758, 29898, 1228, 29892, 9079, 5072, 1125, 13, 418, 916, 353, 1583, 29889, 3166, 29918, 6799, 29918, 4572, 29898, 1228, 29897, 13, 1678, 25342, 451, 338, 8758, 29898, 1228, 29892, 903, 4854, 6069, 5072, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 1228, 2980, 881, 367, 263, 903, 4854, 6069, 5072, 313, 29995, 29878, 16029, 1273, 313, 1228, 29892, 876, 13, 13, 1678, 565, 916, 3032, 657, 29918, 7728, 29918, 978, 580, 2804, 1583, 3032, 657, 29918, 7728, 29918, 978, 7295, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 1228, 2980, 1818, 367, 373, 278, 1021, 2875, 313, 29995, 29879, 2804, 1273, 29879, 16029, 1273, 13, 3986, 313, 1228, 3032, 657, 29918, 7728, 29918, 978, 3285, 1583, 3032, 657, 29918, 7728, 29918, 978, 22130, 13, 13, 1678, 1369, 29918, 4993, 353, 6213, 13, 1678, 565, 916, 3032, 2962, 29901, 13, 418, 565, 1583, 3032, 2962, 29901, 13, 4706, 1121, 353, 274, 1526, 29918, 12667, 29889, 21058, 29898, 13, 9651, 1583, 3032, 657, 29918, 2962, 29918, 1989, 29918, 1767, 3285, 916, 3032, 657, 29918, 2962, 29918, 1989, 29918, 1767, 3101, 13, 4706, 565, 1121, 1275, 29871, 29900, 29901, 13, 3986, 1121, 353, 274, 1526, 29918, 12667, 29889, 21058, 29898, 1228, 3032, 2962, 29918, 262, 695, 29892, 1583, 3032, 2962, 29918, 262, 695, 29897, 13, 4706, 565, 1121, 1405, 29871, 29900, 29901, 13, 3986, 1369, 29918, 4993, 353, 1583, 13, 4706, 25342, 1121, 529, 29871, 29900, 29901, 13, 3986, 1369, 29918, 4993, 353, 916, 13, 418, 1683, 29901, 13, 4706, 1369, 29918, 4993, 353, 916, 13, 1678, 25342, 1583, 3032, 2962, 29901, 13, 418, 1369, 29918, 4993, 353, 1583, 13, 13, 1678, 1095, 29918, 4993, 353, 6213, 13, 1678, 565, 916, 3032, 355, 29901, 13, 418, 565, 1583, 3032, 355, 29901, 13, 4706, 1121, 353, 274, 1526, 29918, 12667, 29889, 21058, 29898, 13, 9651, 1583, 3032, 657, 29918, 355, 29918, 1989, 29918, 1767, 3285, 916, 3032, 657, 29918, 355, 29918, 1989, 29918, 1767, 3101, 13, 4706, 565, 1121, 1275, 29871, 29900, 29901, 13, 3986, 1121, 353, 274, 1526, 29918, 12667, 29889, 21058, 29898, 1311, 3032, 355, 29918, 262, 695, 29892, 916, 3032, 355, 29918, 262, 695, 29897, 13, 4706, 565, 1121, 529, 29871, 29900, 29901, 13, 3986, 1095, 29918, 4993, 353, 1583, 13, 4706, 25342, 1121, 1405, 29871, 29900, 29901, 13, 3986, 1095, 29918, 4993, 353, 916, 13, 418, 1683, 29901, 13, 4706, 1095, 29918, 4993, 353, 916, 13, 1678, 25342, 1583, 3032, 355, 29901, 13, 418, 1095, 29918, 4993, 353, 1583, 13, 13, 1678, 565, 1369, 29918, 4993, 29901, 13, 418, 565, 1095, 29918, 4993, 297, 313, 2962, 29918, 4993, 29892, 6213, 1125, 13, 4706, 736, 1369, 29918, 4993, 13, 13, 418, 1121, 353, 903, 4854, 6069, 5072, 29898, 2962, 29922, 2962, 29918, 4993, 3032, 2962, 29892, 13, 462, 462, 1678, 1369, 29918, 262, 695, 29922, 2962, 29918, 4993, 3032, 2962, 29918, 262, 695, 29892, 13, 462, 462, 1678, 1095, 29922, 355, 29918, 4993, 3032, 355, 29892, 13, 462, 462, 1678, 1095, 29918, 262, 695, 29922, 355, 29918, 4993, 3032, 355, 29918, 262, 695, 29897, 13, 13, 418, 1121, 3032, 2962, 29918, 1989, 29918, 1767, 353, 1369, 29918, 4993, 3032, 2962, 29918, 1989, 29918, 1767, 13, 418, 1121, 3032, 355, 29918, 1989, 29918, 1767, 353, 1095, 29918, 4993, 3032, 355, 29918, 1989, 29918, 1767, 13, 418, 736, 1121, 13, 1678, 1683, 29901, 13, 418, 736, 1095, 29918, 4993, 470, 1583, 13, 13, 29871, 822, 903, 657, 29918, 2962, 29918, 1989, 29918, 1767, 29898, 1311, 1125, 13, 1678, 565, 1583, 3032, 2962, 29918, 1989, 29918, 1767, 338, 6213, 29901, 13, 418, 1583, 3032, 2962, 29918, 1989, 29918, 1767, 353, 1418, 579, 487, 29918, 8768, 29889, 4854, 1917, 1762, 2558, 1917, 29898, 13, 3986, 1583, 3032, 2962, 29889, 1767, 29897, 13, 1678, 736, 1583, 3032, 2962, 29918, 1989, 29918, 1767, 13, 13, 29871, 822, 903, 657, 29918, 355, 29918, 1989, 29918, 1767, 29898, 1311, 1125, 13, 1678, 565, 1583, 3032, 355, 29918, 1989, 29918, 1767, 338, 6213, 29901, 13, 418, 1583, 3032, 355, 29918, 1989, 29918, 1767, 353, 1418, 579, 487, 29918, 8768, 29889, 4854, 1917, 1762, 2558, 1917, 29898, 13, 3986, 1583, 3032, 355, 29889, 1767, 29897, 13, 1678, 736, 1583, 3032, 355, 29918, 1989, 29918, 1767, 13, 13, 29871, 822, 903, 7302, 29918, 517, 29918, 1767, 29898, 1311, 29892, 995, 1125, 13, 1678, 9995, 2052, 368, 278, 4175, 304, 278, 2183, 995, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 995, 29901, 450, 5734, 519, 995, 304, 1423, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 319, 7223, 23941, 565, 278, 2183, 995, 7087, 278, 4175, 29889, 13, 1678, 9995, 13, 1678, 565, 1583, 3032, 2962, 29901, 13, 418, 1121, 353, 274, 1526, 29918, 12667, 29889, 21058, 29898, 1311, 3032, 657, 29918, 2962, 29918, 1989, 29918, 1767, 3285, 995, 29897, 13, 418, 565, 1121, 1405, 29871, 29900, 470, 313, 2914, 1275, 29871, 29900, 322, 451, 1583, 3032, 2962, 29918, 262, 695, 1125, 13, 4706, 736, 7700, 13, 13, 1678, 565, 1583, 3032, 355, 29901, 13, 418, 1121, 353, 274, 1526, 29918, 12667, 29889, 21058, 29898, 1311, 3032, 657, 29918, 355, 29918, 1989, 29918, 1767, 3285, 995, 29897, 13, 418, 565, 1121, 529, 29871, 29900, 470, 313, 2914, 1275, 29871, 29900, 322, 451, 1583, 3032, 355, 29918, 262, 695, 1125, 13, 4706, 736, 7700, 13, 13, 1678, 736, 5852, 13, 13, 29871, 822, 903, 657, 29918, 7728, 29918, 978, 29898, 1311, 1125, 13, 1678, 565, 1583, 3032, 2962, 29901, 13, 418, 736, 1583, 3032, 2962, 29889, 978, 13, 1678, 565, 1583, 3032, 355, 29901, 13, 418, 736, 1583, 3032, 355, 29889, 978, 13, 1678, 4974, 7700, 13, 13, 29871, 822, 903, 517, 29918, 29886, 5824, 29898, 1311, 1125, 13, 1678, 282, 5824, 353, 5159, 13, 1678, 565, 1583, 3032, 2962, 29901, 13, 418, 565, 1583, 3032, 2962, 29918, 262, 695, 29901, 13, 4706, 1015, 353, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 29954, 1525, 1299, 1001, 29918, 4690, 2190, 29918, 1955, 29918, 29923, 13356, 1964, 13, 418, 1683, 29901, 13, 4706, 1015, 353, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 29954, 1525, 1299, 1001, 29918, 4690, 2190, 13, 418, 282, 29890, 353, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 580, 13, 418, 282, 29890, 29889, 459, 353, 1015, 13, 418, 282, 29890, 29889, 6799, 29889, 1202, 2141, 11882, 4591, 29898, 1311, 3032, 2962, 29897, 13, 418, 282, 5824, 29889, 4397, 29898, 24381, 29897, 13, 13, 1678, 565, 1583, 3032, 355, 29901, 13, 418, 565, 1583, 3032, 355, 29918, 262, 695, 29901, 13, 4706, 1015, 353, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 1307, 1799, 29918, 4690, 2190, 29918, 1955, 29918, 29923, 13356, 1964, 13, 418, 1683, 29901, 13, 4706, 1015, 353, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 29889, 1307, 1799, 29918, 4690, 2190, 13, 418, 282, 29890, 353, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 5072, 580, 13, 418, 282, 29890, 29889, 459, 353, 1015, 13, 418, 282, 29890, 29889, 6799, 29889, 1202, 2141, 11882, 4591, 29898, 1311, 3032, 355, 29897, 13, 418, 282, 5824, 29889, 4397, 29898, 24381, 29897, 13, 13, 1678, 736, 282, 5824, 13, 13, 29871, 822, 903, 517, 29918, 24381, 29918, 29894, 29896, 29898, 1311, 29892, 13304, 1125, 13, 1678, 9995, 11609, 29879, 263, 27304, 839, 271, 579, 487, 29889, 5072, 8954, 310, 278, 4175, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 13304, 29901, 319, 1418, 579, 487, 29918, 29878, 6739, 29889, 9118, 6168, 29889, 13, 1678, 9995, 13, 1678, 4175, 29918, 24381, 353, 27304, 839, 271, 579, 487, 29889, 5072, 580, 13, 1678, 20842, 29918, 4572, 353, 4175, 29918, 24381, 29889, 22410, 568, 29918, 4572, 13, 1678, 20842, 29918, 4572, 29889, 459, 353, 27304, 839, 271, 579, 487, 29889, 1523, 1066, 568, 5072, 29889, 9468, 13, 13, 1678, 565, 1583, 3032, 2962, 29901, 13, 418, 565, 1583, 3032, 2962, 29918, 262, 695, 29901, 13, 4706, 1015, 353, 27304, 839, 271, 579, 487, 29889, 4854, 5072, 29889, 29954, 1525, 1299, 1001, 29918, 4690, 2190, 29918, 1955, 29918, 29923, 13356, 1964, 13, 418, 1683, 29901, 13, 4706, 1015, 353, 27304, 839, 271, 579, 487, 29889, 4854, 5072, 29889, 29954, 1525, 1299, 1001, 29918, 4690, 2190, 13, 418, 282, 29890, 353, 20842, 29918, 4572, 29889, 26705, 29889, 1202, 2141, 6799, 29918, 4572, 13, 418, 282, 29890, 29889, 459, 353, 1015, 13, 418, 282, 29890, 29889, 6799, 29889, 978, 353, 1583, 3032, 2962, 29889, 978, 13, 418, 13304, 29889, 657, 29918, 10041, 29918, 535, 13549, 2141, 29894, 29941, 29918, 6799, 29918, 517, 29918, 29894, 29896, 29918, 1767, 29898, 13, 3986, 1583, 3032, 2962, 29892, 5852, 29892, 282, 29890, 29889, 1767, 29897, 13, 13, 1678, 565, 1583, 3032, 355, 29901, 13, 418, 565, 1583, 3032, 355, 29918, 262, 695, 29901, 13, 4706, 1015, 353, 27304, 839, 271, 579, 487, 29889, 4854, 5072, 29889, 1307, 1799, 29918, 4690, 2190, 29918, 1955, 29918, 29923, 13356, 1964, 13, 418, 1683, 29901, 13, 4706, 1015, 353, 27304, 839, 271, 579, 487, 29889, 4854, 5072, 29889, 1307, 1799, 29918, 4690, 2190, 13, 418, 282, 29890, 353, 20842, 29918, 4572, 29889, 26705, 29889, 1202, 2141, 6799, 29918, 4572, 13, 418, 282, 29890, 29889, 459, 353, 1015, 13, 418, 282, 29890, 29889, 6799, 29889, 978, 353, 1583, 3032, 355, 29889, 978, 13, 418, 13304, 29889, 657, 29918, 10041, 29918, 535, 13549, 2141, 29894, 29941, 29918, 6799, 29918, 517, 29918, 29894, 29896, 29918, 1767, 29898, 13, 3986, 1583, 3032, 355, 29892, 5852, 29892, 282, 29890, 29889, 1767, 29897, 13, 1678, 736, 4175, 29918, 24381, 13, 13, 29871, 822, 4770, 657, 3859, 12035, 1311, 1125, 13, 1678, 12020, 5839, 280, 29889, 29925, 860, 1847, 2392, 29898, 13, 4706, 525, 29925, 860, 1847, 310, 1273, 29878, 338, 443, 23765, 6169, 1273, 1583, 29897, 13, 13, 29871, 822, 4770, 1837, 12035, 1311, 29892, 916, 1125, 13, 13, 13, 1678, 565, 1583, 17255, 1990, 1649, 338, 451, 916, 17255, 1990, 1649, 29901, 13, 418, 736, 2216, 1888, 2037, 287, 13, 1678, 736, 313, 1311, 3032, 2962, 1275, 916, 3032, 2962, 322, 13, 9651, 1583, 3032, 355, 1275, 916, 3032, 355, 322, 13, 9651, 313, 1311, 3032, 2962, 29918, 262, 695, 1275, 916, 3032, 2962, 29918, 262, 695, 470, 1583, 3032, 2962, 338, 6213, 29897, 322, 13, 9651, 313, 1311, 3032, 355, 29918, 262, 695, 1275, 916, 3032, 355, 29918, 262, 695, 470, 1583, 3032, 355, 338, 6213, 876, 13, 13, 13, 1990, 903, 4854, 24217, 5072, 29898, 5072, 23084, 9593, 1125, 13, 29871, 9995, 29909, 19916, 23084, 9593, 393, 7087, 16212, 6943, 2702, 4426, 29889, 13, 13, 29871, 9333, 1736, 408, 385, 297, 29899, 14834, 4175, 29889, 501, 8485, 25106, 304, 4175, 714, 16212, 13, 29871, 393, 1016, 29915, 29873, 505, 599, 4426, 297, 263, 2183, 8170, 29889, 13, 29871, 9995, 13, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 2983, 1125, 13, 1678, 2428, 7373, 4854, 24217, 5072, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 1678, 1583, 3032, 7039, 353, 14671, 29920, 575, 300, 29898, 7039, 29897, 13, 13, 29871, 822, 903, 7302, 29898, 1311, 29892, 995, 29918, 1958, 1125, 13, 1678, 363, 1024, 297, 1583, 3032, 7039, 29901, 13, 418, 565, 451, 995, 29918, 1958, 29889, 657, 29898, 978, 1125, 13, 4706, 736, 7700, 13, 1678, 736, 5852, 13, 13, 29871, 822, 903, 657, 29918, 7728, 29918, 7039, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 7039, 13, 13, 29871, 822, 903, 558, 1540, 29898, 1311, 29892, 903, 1125, 13, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 29871, 822, 4770, 657, 3859, 12035, 1311, 1125, 13, 1678, 12020, 5839, 280, 29889, 29925, 860, 1847, 2392, 29898, 13, 4706, 525, 29925, 860, 1847, 310, 1273, 29878, 338, 443, 23765, 6169, 1273, 1583, 29897, 13, 13, 13, 1990, 2994, 23445, 5072, 29898, 5072, 23084, 9593, 1125, 13, 29871, 9995, 29909, 4175, 393, 11695, 1078, 8855, 630, 1819, 322, 16058, 263, 1014, 29899, 4572, 373, 963, 29889, 13, 13, 29871, 910, 4175, 15894, 393, 1432, 2875, 1304, 491, 278, 1014, 29899, 4572, 881, 367, 13, 29871, 27831, 1434, 1641, 4502, 304, 278, 1014, 29899, 4572, 29889, 450, 2322, 27270, 15223, 13, 29871, 1269, 995, 297, 967, 1914, 2318, 29889, 10056, 29901, 13, 1678, 321, 353, 426, 29874, 29901, 518, 29896, 29892, 29871, 29906, 1402, 289, 29901, 518, 29906, 29892, 29871, 29896, 29892, 29871, 29941, 1402, 274, 29901, 29871, 29946, 29913, 13, 13, 29871, 319, 19869, 4175, 411, 263, 1014, 29899, 4572, 393, 1751, 1078, 373, 313, 29874, 29892, 289, 29897, 674, 367, 9528, 13, 29871, 2750, 278, 1494, 29871, 29941, 6166, 310, 1819, 29901, 13, 1678, 426, 29874, 29901, 29871, 29896, 29892, 289, 29901, 29871, 29906, 29913, 13, 1678, 426, 29874, 29901, 29871, 29906, 29892, 289, 29901, 29871, 29896, 29913, 13, 1678, 426, 29890, 29901, 29871, 29941, 29913, 13, 13, 29871, 512, 445, 1206, 2994, 23445, 5072, 877, 29874, 353, 29871, 29906, 5300, 289, 353, 29871, 29906, 1495, 2113, 29915, 29873, 1993, 445, 7855, 541, 13, 29871, 2994, 23445, 5072, 877, 29874, 353, 29871, 29906, 5300, 289, 353, 29871, 29896, 1495, 674, 29889, 1763, 3394, 385, 443, 2616, 12817, 4175, 373, 13, 29871, 274, 29892, 278, 4175, 1818, 367, 7436, 297, 8943, 304, 278, 19869, 4175, 29889, 1152, 13, 29871, 1342, 29901, 13, 1678, 24497, 568, 5072, 29898, 9468, 29892, 518, 12521, 23445, 5072, 877, 29874, 353, 29871, 29906, 5300, 289, 353, 29871, 29896, 5477, 525, 29883, 353, 29871, 29941, 11287, 13, 13, 29871, 960, 525, 29883, 353, 29871, 29941, 29915, 471, 5134, 297, 278, 19869, 4175, 29892, 274, 723, 367, 27831, 408, 1532, 29889, 13, 29871, 910, 723, 1121, 297, 278, 1494, 1819, 29901, 13, 1678, 426, 29874, 29901, 29871, 29896, 29892, 289, 29901, 29871, 29906, 29892, 274, 29901, 29871, 29941, 29913, 13, 1678, 426, 29874, 29901, 29871, 29906, 29892, 289, 29901, 29871, 29896, 29913, 13, 1678, 426, 29890, 29901, 29871, 29941, 29913, 13, 13, 29871, 960, 738, 731, 310, 8855, 630, 1819, 1993, 278, 1014, 29899, 4572, 769, 278, 7855, 7087, 13, 29871, 278, 19869, 4175, 29889, 13, 29871, 9995, 13, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 1014, 4572, 1125, 13, 1678, 9995, 23770, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 1014, 4572, 29901, 319, 19916, 23084, 9593, 304, 3394, 304, 278, 8855, 630, 1819, 13, 1678, 9995, 13, 1678, 1583, 3032, 1491, 4572, 353, 1014, 4572, 13, 13, 29871, 732, 6799, 13, 29871, 822, 1014, 4572, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 1491, 4572, 13, 13, 29871, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 1678, 736, 14210, 29879, 29414, 29878, 16029, 1273, 313, 1311, 17255, 1990, 1649, 17255, 978, 1649, 29892, 1583, 29889, 1491, 4572, 29897, 13, 13, 29871, 822, 903, 7302, 29898, 1311, 29892, 995, 29918, 1958, 1125, 13, 13, 13, 1678, 2967, 29918, 1958, 353, 9657, 3552, 7728, 29892, 518, 2314, 363, 3107, 297, 1583, 3032, 657, 29918, 7728, 29918, 7039, 3101, 13, 13, 13, 1678, 995, 29918, 10339, 353, 5159, 13, 1678, 363, 3107, 297, 2967, 29918, 1958, 29901, 13, 13, 418, 27831, 353, 1583, 3032, 2972, 29918, 5975, 29898, 7728, 29892, 995, 29918, 1958, 29961, 7728, 2314, 13, 13, 418, 1550, 7431, 29898, 1767, 29918, 10339, 29897, 529, 7431, 29898, 2972, 287, 1125, 13, 4706, 995, 29918, 10339, 29889, 4397, 29898, 3188, 29918, 1958, 29889, 8552, 3101, 13, 13, 418, 363, 995, 29892, 286, 297, 4832, 29889, 13529, 267, 29889, 7554, 29898, 2972, 287, 29892, 995, 29918, 10339, 1125, 13, 4706, 286, 29961, 7728, 29962, 353, 995, 13, 13, 1678, 736, 1583, 3032, 7302, 29918, 2616, 12817, 29898, 1767, 29918, 10339, 29897, 13, 13, 29871, 822, 903, 7302, 29918, 2616, 12817, 29898, 1311, 29892, 995, 29918, 10339, 1125, 13, 1678, 9995, 2052, 3687, 1014, 29899, 4572, 304, 278, 8855, 630, 995, 11053, 29889, 13, 13, 1678, 450, 2322, 5314, 7087, 746, 738, 995, 29918, 1958, 297, 995, 29918, 10339, 13, 1678, 7087, 278, 1014, 29899, 4572, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 995, 29918, 10339, 29901, 319, 1051, 310, 8855, 630, 995, 29918, 10339, 29889, 13, 1678, 16969, 29901, 13, 418, 5852, 565, 738, 278, 7855, 7087, 278, 19869, 4175, 29889, 13, 1678, 9995, 13, 13, 1678, 363, 2910, 297, 995, 29918, 10339, 29901, 13, 418, 565, 1583, 3032, 1491, 4572, 3032, 7302, 29898, 1958, 1125, 13, 4706, 736, 5852, 13, 1678, 736, 7700, 13, 13, 29871, 822, 903, 2972, 29918, 5975, 29898, 1311, 29892, 3107, 29892, 1819, 1125, 13, 1678, 9995, 29909, 740, 393, 6471, 278, 2183, 1819, 29889, 13, 13, 1678, 6811, 2426, 445, 740, 304, 14944, 2888, 27270, 5900, 29889, 450, 2322, 13, 1678, 5314, 15894, 1269, 995, 14393, 297, 967, 1914, 2318, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 3107, 29901, 450, 1024, 310, 278, 2875, 1058, 29915, 29879, 1819, 526, 1641, 27831, 29889, 13, 418, 1819, 29901, 319, 1051, 310, 1015, 19772, 1819, 29889, 13, 13, 259, 16969, 29901, 13, 418, 319, 1051, 310, 8857, 310, 27831, 1819, 29889, 13, 1678, 9995, 13, 1678, 736, 5519, 1767, 29962, 363, 995, 297, 1819, 29962, 13, 13, 29871, 822, 903, 657, 29918, 7728, 29918, 7039, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 1491, 4572, 3032, 657, 29918, 7728, 29918, 7039, 580, 13, 13, 13, 1990, 24497, 568, 5072, 29898, 5072, 23084, 9593, 1125, 13, 29871, 9995, 2744, 5198, 9246, 4175, 24384, 393, 4145, 1475, 916, 4450, 293, 1078, 29889, 13, 13, 29871, 910, 770, 410, 627, 3598, 2778, 2710, 1014, 29899, 26705, 393, 526, 12420, 773, 278, 1021, 13, 29871, 5455, 29889, 1152, 1342, 29901, 13, 1678, 24497, 568, 5072, 29898, 9468, 29892, 518, 29888, 29896, 29892, 285, 29906, 29892, 24497, 568, 5072, 29898, 9468, 29892, 518, 29888, 29941, 29892, 285, 29946, 11724, 285, 29945, 29892, 285, 29953, 2314, 13, 29871, 338, 7126, 304, 29901, 13, 1678, 24497, 568, 5072, 29898, 9468, 29892, 518, 29888, 29896, 29892, 285, 29906, 29892, 285, 29941, 29892, 285, 29946, 29892, 285, 29945, 29892, 285, 29953, 2314, 13, 13, 29871, 15447, 18094, 508, 871, 367, 12420, 773, 385, 5300, 5455, 29889, 13, 29871, 9995, 13, 13, 29871, 5300, 353, 525, 392, 29915, 13, 29871, 903, 4590, 1001, 1299, 24125, 353, 14671, 29920, 575, 300, 4197, 9468, 2314, 13, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 1015, 29892, 18094, 1125, 13, 1678, 9995, 23770, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 1015, 29901, 450, 5455, 304, 671, 304, 14405, 278, 2183, 18094, 13, 418, 18094, 29901, 319, 1051, 310, 697, 470, 901, 18094, 304, 14405, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 565, 1015, 338, 451, 297, 422, 567, 568, 5072, 29889, 4590, 1001, 1299, 24125, 13, 418, 470, 18094, 338, 451, 263, 1661, 29899, 6310, 1051, 6943, 871, 19916, 23084, 293, 1078, 29889, 13, 1678, 9995, 13, 1678, 565, 451, 1015, 297, 1583, 3032, 4590, 1001, 1299, 24125, 29901, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 877, 26690, 5455, 313, 29995, 29879, 16029, 1273, 313, 459, 29892, 876, 13, 1678, 565, 451, 18094, 470, 451, 338, 8758, 29898, 26705, 29892, 313, 1761, 29892, 18761, 22164, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 26705, 2980, 881, 367, 263, 1661, 29899, 6310, 1051, 313, 29995, 29878, 16029, 1273, 313, 26705, 29892, 876, 13, 13, 1678, 2428, 29898, 1523, 1066, 568, 5072, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 1678, 1583, 3032, 459, 353, 1015, 13, 1678, 1652, 8606, 287, 353, 5159, 13, 13, 13, 1678, 363, 285, 297, 18094, 29901, 13, 418, 565, 338, 8758, 29898, 29888, 29892, 24497, 568, 5072, 29897, 322, 285, 3032, 459, 1275, 1583, 3032, 459, 29901, 13, 13, 13, 4706, 1652, 8606, 287, 29889, 21843, 29898, 29888, 3032, 26705, 29897, 13, 418, 25342, 338, 8758, 29898, 29888, 29892, 19916, 23084, 9593, 1125, 13, 4706, 1652, 8606, 287, 29889, 4397, 29898, 29888, 29897, 13, 418, 1683, 29901, 13, 4706, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 9651, 525, 26705, 2980, 1818, 367, 263, 1051, 310, 19916, 23084, 293, 1078, 29892, 1476, 313, 29995, 29878, 16029, 1273, 13, 9651, 313, 29888, 29892, 876, 13, 13, 13, 1678, 565, 1015, 1275, 1583, 29889, 9468, 29901, 13, 418, 18094, 353, 1652, 8606, 287, 13, 418, 1652, 8606, 287, 353, 5159, 13, 418, 297, 1837, 29918, 1958, 353, 6571, 13, 13, 418, 363, 285, 297, 18094, 29901, 13, 4706, 565, 313, 275, 8758, 29898, 29888, 29892, 903, 4854, 6069, 5072, 29897, 470, 13, 9651, 313, 275, 8758, 29898, 29888, 29892, 9079, 5072, 29897, 322, 285, 3032, 5349, 29918, 457, 29567, 22130, 29901, 13, 3986, 1024, 353, 285, 3032, 657, 29918, 7728, 29918, 978, 580, 13, 3986, 2380, 353, 297, 1837, 29918, 1958, 29889, 657, 29898, 978, 29897, 13, 3986, 565, 2380, 338, 451, 6213, 29901, 13, 9651, 3464, 29918, 4572, 353, 1652, 8606, 287, 29961, 2248, 29962, 13, 9651, 1652, 8606, 287, 29961, 2248, 29962, 353, 3464, 29918, 4572, 29889, 1639, 8803, 29898, 29888, 29897, 13, 3986, 1683, 29901, 13, 9651, 565, 338, 8758, 29898, 29888, 29892, 9079, 5072, 1125, 13, 795, 3464, 29918, 4572, 353, 903, 4854, 6069, 5072, 29889, 3166, 29918, 6799, 29918, 4572, 29898, 29888, 29897, 13, 9651, 1683, 29901, 13, 795, 3464, 29918, 4572, 353, 285, 13, 9651, 297, 1837, 29918, 1958, 29961, 978, 29962, 353, 7431, 29898, 1579, 8606, 287, 29897, 13, 9651, 1652, 8606, 287, 29889, 4397, 29898, 3881, 29918, 4572, 29897, 13, 4706, 1683, 29901, 13, 3986, 1652, 8606, 287, 29889, 4397, 29898, 29888, 29897, 13, 13, 1678, 1583, 3032, 26705, 353, 18761, 29898, 1579, 8606, 287, 29897, 13, 13, 29871, 732, 6799, 13, 29871, 822, 1015, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 459, 13, 13, 29871, 732, 6799, 13, 29871, 822, 18094, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 26705, 13, 13, 29871, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 1678, 1015, 353, 1583, 29889, 459, 13, 1678, 565, 1015, 1275, 1583, 29889, 9468, 29901, 13, 418, 1015, 353, 525, 9468, 29915, 13, 1678, 1683, 29901, 13, 418, 1015, 353, 851, 29898, 459, 29897, 13, 1678, 736, 14210, 29879, 29414, 29879, 29892, 1273, 29878, 16029, 1273, 313, 1311, 17255, 1990, 1649, 17255, 978, 1649, 29892, 1015, 29892, 1051, 29898, 1311, 29889, 26705, 876, 13, 13, 29871, 822, 903, 657, 29918, 7728, 29918, 7039, 29898, 1311, 1125, 13, 1678, 2983, 353, 731, 580, 13, 1678, 363, 285, 297, 1583, 3032, 26705, 29901, 13, 418, 2983, 891, 29922, 285, 3032, 657, 29918, 7728, 29918, 7039, 580, 13, 1678, 736, 2983, 13, 13, 29871, 822, 903, 7302, 29898, 1311, 29892, 995, 29918, 1958, 1125, 13, 1678, 565, 1583, 3032, 459, 1275, 1583, 29889, 9468, 29901, 13, 418, 363, 285, 297, 1583, 3032, 26705, 29901, 13, 4706, 565, 451, 285, 3032, 7302, 29898, 1767, 29918, 1958, 1125, 13, 3986, 736, 7700, 13, 418, 736, 5852, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 29871, 822, 903, 558, 1540, 29898, 1311, 29892, 995, 29918, 1958, 1125, 13, 13, 13, 13, 1678, 565, 1583, 3032, 459, 1275, 1583, 29889, 9468, 29901, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 418, 7087, 353, 16250, 29889, 4381, 8977, 29898, 842, 29897, 13, 418, 363, 285, 297, 1583, 3032, 26705, 29901, 13, 4706, 17761, 353, 285, 3032, 657, 29918, 7728, 29918, 7039, 580, 13, 4706, 1887, 29918, 1767, 29918, 1958, 353, 9657, 3552, 29895, 29892, 325, 29897, 363, 413, 29892, 325, 297, 995, 29918, 1958, 29889, 7076, 580, 13, 462, 1669, 565, 413, 297, 17761, 29897, 13, 13, 4706, 565, 451, 285, 3032, 558, 1540, 29898, 2997, 29918, 1767, 29918, 1958, 1125, 13, 3986, 736, 7700, 13, 13, 13, 4706, 363, 313, 7728, 29892, 1819, 29897, 297, 1887, 29918, 1767, 29918, 1958, 29889, 7076, 7295, 13, 3986, 7087, 29961, 7728, 1822, 5504, 29898, 5975, 29897, 13, 13, 13, 418, 363, 3107, 29892, 995, 29918, 842, 297, 7087, 29889, 7076, 7295, 13, 13, 4706, 995, 29918, 1958, 29961, 7728, 29962, 353, 12705, 29898, 1767, 29918, 842, 29897, 13, 418, 736, 5852, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 29871, 822, 903, 517, 29918, 29886, 5824, 29898, 1311, 1125, 13, 1678, 9995, 11609, 29879, 278, 7463, 871, 282, 29890, 8954, 1213, 15945, 13, 13, 13, 13, 1678, 282, 5824, 353, 5159, 13, 1678, 363, 285, 297, 1583, 3032, 26705, 29901, 13, 418, 282, 5824, 29889, 21843, 29898, 29888, 3032, 517, 29918, 29886, 5824, 3101, 13, 1678, 736, 282, 5824, 13, 13, 29871, 822, 903, 517, 29918, 24381, 29918, 29894, 29896, 29898, 1311, 29892, 13304, 1125, 13, 1678, 9995, 11609, 29879, 263, 27304, 839, 271, 579, 487, 29889, 5072, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 13304, 29901, 319, 1418, 579, 487, 29918, 29878, 6739, 29889, 9118, 6168, 13, 1678, 9995, 13, 1678, 565, 451, 1583, 3032, 26705, 29901, 13, 418, 736, 6213, 13, 1678, 565, 7431, 29898, 1311, 3032, 26705, 29897, 1275, 29871, 29896, 29901, 13, 418, 736, 1583, 3032, 26705, 29961, 29900, 1822, 29918, 517, 29918, 24381, 29918, 29894, 29896, 29898, 21412, 29897, 13, 13, 1678, 282, 29890, 353, 27304, 839, 271, 579, 487, 29889, 5072, 580, 13, 1678, 752, 29918, 24381, 353, 282, 29890, 29889, 22410, 568, 29918, 4572, 13, 1678, 565, 1583, 29889, 459, 1275, 1583, 29889, 9468, 29901, 13, 418, 752, 29918, 24381, 29889, 459, 353, 27304, 839, 271, 579, 487, 29889, 1523, 1066, 568, 5072, 29889, 9468, 13, 1678, 1683, 29901, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 16390, 579, 487, 478, 29946, 871, 11286, 24497, 568, 5072, 411, 5300, 5455, 29889, 1495, 13, 1678, 363, 285, 297, 1583, 3032, 26705, 29901, 13, 418, 752, 29918, 24381, 29889, 26705, 29889, 1202, 2141, 11882, 4591, 29898, 29888, 3032, 517, 29918, 24381, 29918, 29894, 29896, 29898, 21412, 876, 13, 1678, 736, 282, 29890, 13, 13, 29871, 822, 4770, 1837, 12035, 1311, 29892, 916, 1125, 13, 1678, 565, 1583, 17255, 1990, 1649, 338, 916, 17255, 1990, 1649, 29901, 13, 418, 736, 2428, 29898, 1523, 1066, 568, 5072, 29892, 1583, 467, 1649, 1837, 12035, 1228, 29897, 13, 13, 13, 1678, 565, 7431, 29898, 1311, 3032, 26705, 29897, 1275, 29871, 29896, 29901, 13, 418, 1121, 353, 1583, 3032, 26705, 29961, 29900, 1822, 1649, 1837, 12035, 1228, 29897, 13, 418, 565, 1121, 338, 2216, 1888, 2037, 287, 322, 756, 5552, 29898, 1228, 29892, 525, 1649, 1837, 1649, 29374, 13, 4706, 736, 916, 17255, 1837, 12035, 1311, 3032, 26705, 29961, 29900, 2314, 13, 418, 736, 1121, 13, 1678, 736, 2216, 1888, 2037, 287, 13, 13, 13, 1990, 903, 23805, 5072, 7373, 15771, 4854, 5072, 1125, 13, 29871, 9995, 29909, 4175, 393, 25388, 599, 16212, 411, 278, 2183, 6611, 1213, 15945, 13, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 1820, 29918, 1767, 29918, 842, 1125, 13, 1678, 2428, 7373, 23805, 5072, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 1678, 1583, 3032, 8149, 353, 1820, 29918, 1767, 29918, 842, 13, 13, 29871, 822, 903, 657, 29918, 7728, 29918, 978, 29898, 1311, 1125, 13, 1678, 736, 1418, 579, 487, 29918, 8768, 29889, 10818, 29918, 29903, 4162, 8426, 1964, 29918, 8618, 13171, 15631, 13, 13, 29871, 822, 903, 7302, 29918, 517, 29918, 1767, 29898, 1311, 29892, 995, 1125, 13, 1678, 736, 995, 451, 297, 1583, 3032, 8149, 13, 13, 13, 1990, 903, 29928, 287, 786, 292, 5072, 7373, 23805, 5072, 1125, 13, 29871, 9995, 29909, 4175, 393, 25388, 7929, 6611, 1213, 15945, 13, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 1820, 29918, 1767, 29918, 842, 29922, 8516, 1125, 13, 1678, 2428, 7373, 29928, 287, 786, 292, 5072, 29892, 1583, 467, 1649, 2344, 12035, 1989, 29918, 1767, 29918, 842, 470, 731, 3101, 13, 13, 29871, 822, 903, 7302, 29918, 517, 29918, 1767, 29898, 1311, 29892, 995, 1125, 13, 1678, 565, 2428, 7373, 29928, 287, 786, 292, 5072, 29892, 1583, 467, 29918, 7302, 29918, 517, 29918, 1767, 29898, 1767, 1125, 13, 418, 1583, 3032, 8149, 29889, 1202, 29898, 1767, 29897, 13, 418, 736, 5852, 13, 1678, 736, 7700, 13, 13, 13, 1990, 8170, 7373, 4854, 5308, 1125, 13, 29871, 9995, 29909, 2967, 770, 393, 11524, 263, 2656, 1797, 373, 263, 2346, 29889, 13, 13, 29871, 2178, 1014, 29899, 13203, 1818, 367, 5198, 9246, 408, 1438, 526, 4049, 6087, 1728, 4969, 263, 13, 29871, 822, 6270, 17596, 29889, 13, 13, 29871, 910, 770, 508, 367, 1304, 408, 2845, 278, 274, 1526, 470, 1820, 1852, 297, 12705, 580, 470, 13, 29871, 1051, 29889, 6605, 2141, 1763, 3867, 263, 13714, 20520, 263, 25053, 1820, 12066, 2548, 1797, 338, 13, 29871, 2337, 1304, 29889, 13, 29871, 9995, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 3032, 1066, 3245, 29898, 29896, 29897, 13, 29871, 822, 18764, 287, 29898, 1311, 29892, 2318, 29918, 1609, 29922, 8516, 1125, 13, 1678, 9995, 1168, 4984, 29879, 385, 1797, 15783, 278, 11837, 310, 278, 1857, 1797, 29889, 13, 13, 1678, 910, 740, 4893, 964, 3633, 278, 9545, 310, 11299, 373, 4426, 451, 297, 13, 1678, 278, 2318, 29918, 1609, 11845, 310, 263, 2346, 29889, 1152, 1342, 29892, 2050, 29901, 13, 418, 5097, 319, 29892, 3824, 29898, 29933, 29897, 2023, 15345, 6770, 319, 15606, 6770, 319, 29892, 350, 13, 1678, 678, 9776, 278, 1797, 310, 350, 723, 2779, 607, 995, 338, 9904, 297, 278, 525, 6730, 29898, 29933, 16029, 13, 1678, 1897, 607, 723, 2869, 1735, 278, 2582, 2012, 310, 925, 18764, 292, 13, 1678, 963, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 2318, 29918, 1609, 29901, 960, 6790, 29892, 871, 11299, 373, 4426, 297, 2318, 29918, 1609, 674, 367, 13, 4706, 18764, 287, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 319, 716, 1797, 15783, 278, 11837, 5305, 29889, 13, 1678, 9995, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 29871, 822, 903, 1989, 29898, 1311, 29892, 301, 9499, 29918, 1767, 29918, 1958, 1125, 13, 1678, 9995, 9832, 1078, 263, 1820, 363, 278, 2183, 995, 2910, 1213, 15945, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 29871, 822, 903, 21058, 29898, 1311, 29892, 301, 9499, 29918, 1767, 29918, 1958, 29892, 29365, 29918, 1767, 29918, 1958, 1125, 13, 1678, 9995, 1523, 862, 267, 278, 2183, 995, 11053, 1213, 15945, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 29871, 822, 903, 517, 29918, 24381, 29898, 1311, 1125, 13, 1678, 9995, 16491, 871, 740, 304, 5706, 263, 4175, 282, 29890, 1213, 15945, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 29871, 822, 903, 517, 29918, 24381, 29918, 29894, 29896, 29898, 1311, 29892, 13304, 1125, 13, 1678, 9995, 16491, 871, 740, 304, 5706, 263, 325, 29896, 4175, 282, 29890, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 13304, 29901, 319, 1418, 579, 487, 29918, 29878, 6739, 29889, 9118, 6168, 13, 1678, 9995, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 29871, 822, 1820, 29918, 1454, 29918, 4572, 29898, 1311, 29892, 4175, 29918, 11965, 9593, 1125, 13, 1678, 565, 4175, 29918, 11965, 9593, 29901, 13, 418, 736, 14013, 921, 29901, 1583, 29889, 1989, 29898, 29916, 29892, 4175, 29918, 11965, 9593, 29897, 13, 1678, 736, 1583, 29889, 1989, 13, 13, 29871, 822, 274, 1526, 29918, 1454, 29918, 4572, 29898, 1311, 29892, 4175, 29918, 11965, 9593, 1125, 13, 1678, 565, 4175, 29918, 11965, 9593, 29901, 13, 418, 736, 14013, 921, 29892, 343, 29901, 1583, 29889, 21058, 29898, 29916, 29892, 343, 29892, 4175, 29918, 11965, 9593, 29897, 13, 1678, 736, 1583, 29889, 21058, 13, 13, 29871, 822, 1820, 29898, 1311, 29892, 7855, 29892, 4175, 29918, 11965, 9593, 29922, 8516, 1125, 13, 1678, 9995, 1168, 4984, 29879, 263, 376, 1989, 29908, 995, 363, 278, 2183, 7855, 2729, 373, 278, 1857, 1797, 29889, 13, 13, 1678, 910, 740, 508, 367, 1304, 408, 278, 1820, 2980, 363, 1051, 29889, 6605, 580, 322, 12705, 2141, 13, 13, 1678, 826, 3174, 29901, 13, 418, 7855, 29901, 450, 7855, 29918, 24381, 29906, 29889, 6691, 1184, 517, 304, 3588, 13, 418, 4175, 29918, 11965, 9593, 29901, 319, 19916, 23084, 9593, 1304, 304, 544, 1540, 1819, 1434, 17420, 13, 4706, 16212, 470, 6213, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 319, 1820, 995, 393, 2893, 11057, 278, 2602, 310, 278, 7855, 746, 12705, 491, 13, 418, 278, 1857, 1797, 29889, 13, 1678, 9995, 13, 1678, 2983, 353, 1583, 3032, 657, 29918, 7728, 29918, 7039, 580, 13, 1678, 2983, 29889, 1202, 29898, 4130, 579, 487, 29918, 8768, 29889, 10818, 29918, 29903, 4162, 8426, 1964, 29918, 8618, 13171, 15631, 29897, 13, 1678, 565, 4175, 29918, 11965, 9593, 338, 451, 6213, 29901, 13, 418, 2983, 891, 29922, 4175, 29918, 11965, 9593, 3032, 657, 29918, 7728, 29918, 7039, 580, 13, 13, 1678, 995, 29918, 1958, 353, 903, 5675, 29918, 1989, 29918, 1767, 29918, 1958, 29898, 10041, 29892, 2983, 29897, 13, 1678, 565, 4175, 29918, 11965, 9593, 338, 451, 6213, 29901, 13, 418, 4175, 29918, 11965, 9593, 3032, 558, 1540, 29898, 1767, 29918, 1958, 29897, 13, 1678, 736, 313, 1311, 3032, 1989, 29898, 1767, 29918, 1958, 511, 13, 9651, 995, 29918, 1958, 29961, 4130, 579, 487, 29918, 8768, 29889, 10818, 29918, 29903, 4162, 8426, 1964, 29918, 8618, 13171, 15631, 2314, 13, 13, 29871, 822, 274, 1526, 29898, 1311, 29892, 301, 9499, 29892, 29365, 29892, 4175, 29918, 11965, 9593, 29922, 8516, 1125, 13, 1678, 9995, 1523, 862, 267, 278, 2183, 1819, 5622, 964, 3633, 738, 18094, 29889, 13, 13, 1678, 910, 740, 508, 367, 1304, 408, 278, 274, 1526, 2980, 363, 1051, 29889, 6605, 580, 322, 12705, 2141, 13, 13, 1678, 910, 740, 338, 10029, 901, 8543, 393, 8170, 29889, 1989, 746, 17420, 1023, 13, 1678, 16212, 29892, 3138, 372, 338, 1568, 3109, 8543, 746, 16548, 263, 1051, 310, 16212, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 301, 9499, 29901, 530, 7855, 29918, 24381, 29906, 29889, 6691, 1184, 517, 13, 418, 29365, 29901, 530, 7855, 29918, 24381, 29906, 29889, 6691, 1184, 517, 13, 418, 4175, 29918, 11965, 9593, 29901, 319, 19916, 23084, 9593, 1304, 304, 544, 1540, 1819, 1434, 17420, 13, 4706, 16212, 470, 6213, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 530, 6043, 529, 29892, 353, 470, 1405, 29871, 29900, 15783, 278, 5455, 393, 5771, 297, 1546, 301, 9499, 13, 418, 322, 29365, 393, 304, 1653, 263, 1565, 3229, 29889, 13, 13, 1678, 9995, 13, 1678, 2983, 353, 1583, 3032, 657, 29918, 7728, 29918, 7039, 580, 13, 1678, 565, 4175, 29918, 11965, 9593, 338, 451, 6213, 29901, 13, 418, 2983, 891, 29922, 4175, 29918, 11965, 9593, 3032, 657, 29918, 7728, 29918, 7039, 580, 13, 13, 1678, 301, 9499, 29918, 1767, 29918, 1958, 353, 903, 5675, 29918, 1989, 29918, 1767, 29918, 1958, 29898, 29880, 9499, 29892, 2983, 29897, 13, 1678, 29365, 29918, 1767, 29918, 1958, 353, 903, 5675, 29918, 1989, 29918, 1767, 29918, 1958, 29898, 29878, 9499, 29892, 2983, 29897, 13, 1678, 565, 4175, 29918, 11965, 9593, 338, 451, 6213, 29901, 13, 418, 4175, 29918, 11965, 9593, 3032, 558, 1540, 29898, 29880, 9499, 29918, 1767, 29918, 1958, 29897, 13, 418, 4175, 29918, 11965, 9593, 3032, 558, 1540, 29898, 29878, 9499, 29918, 1767, 29918, 1958, 29897, 13, 1678, 1121, 353, 1583, 3032, 21058, 29898, 29880, 9499, 29918, 1767, 29918, 1958, 29892, 29365, 29918, 1767, 29918, 1958, 29897, 13, 1678, 565, 1121, 29901, 13, 418, 736, 1121, 13, 13, 1678, 565, 451, 301, 9499, 29889, 14510, 3073, 877, 1989, 1495, 322, 451, 29365, 29889, 14510, 3073, 877, 1989, 29374, 13, 418, 736, 29871, 29900, 13, 13, 13, 13, 1678, 301, 9499, 29918, 1989, 353, 313, 29880, 9499, 29918, 1767, 29918, 1958, 29889, 657, 29898, 4130, 579, 487, 29918, 8768, 29889, 10818, 29918, 29903, 4162, 8426, 1964, 29918, 8618, 13171, 15631, 29897, 470, 13, 1669, 1418, 579, 487, 29918, 8768, 29889, 7422, 1762, 2558, 1917, 29898, 29880, 9499, 29889, 1989, 876, 13, 1678, 29365, 29918, 1989, 353, 313, 29878, 9499, 29918, 1767, 29918, 1958, 29889, 657, 29898, 4130, 579, 487, 29918, 8768, 29889, 10818, 29918, 29903, 4162, 8426, 1964, 29918, 8618, 13171, 15631, 29897, 470, 13, 1669, 1418, 579, 487, 29918, 8768, 29889, 7422, 1762, 2558, 1917, 29898, 29878, 9499, 29889, 1989, 876, 13, 13, 1678, 736, 274, 1526, 29918, 12667, 29889, 21058, 29898, 29880, 9499, 29918, 1989, 29892, 29365, 29918, 1989, 29897, 13, 13, 13, 29992, 21058, 29918, 12667, 29889, 7827, 29918, 2098, 292, 29918, 3166, 29918, 21058, 13, 1990, 903, 1123, 3901, 7514, 7373, 5160, 5308, 1125, 13, 29871, 9995, 1123, 874, 267, 278, 10230, 363, 278, 2183, 1203, 1213, 15945, 13, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 5446, 1125, 13, 1678, 9995, 23770, 363, 903, 1123, 3901, 7514, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 5446, 29901, 3139, 5734, 519, 322, 6608, 519, 1203, 29889, 13, 1678, 9995, 13, 1678, 2428, 7373, 1123, 3901, 7514, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 1678, 1583, 3032, 5415, 353, 5446, 13, 13, 29871, 822, 4770, 8568, 12035, 1311, 1125, 13, 1678, 736, 6608, 29898, 1311, 3032, 5415, 29897, 13, 13, 29871, 822, 4770, 21058, 12035, 1311, 29892, 916, 1125, 13, 1678, 4974, 1583, 17255, 1990, 1649, 1275, 916, 17255, 1990, 1649, 29892, 313, 13, 4706, 525, 29909, 1418, 579, 487, 29918, 1972, 3032, 1123, 3901, 7514, 1203, 508, 871, 367, 9401, 304, 525, 13, 4706, 525, 273, 1203, 310, 278, 1021, 1134, 29889, 1495, 13, 1678, 736, 448, 21058, 29918, 12667, 29889, 21058, 29898, 1311, 3032, 5415, 29892, 916, 3032, 5415, 29897, 13, 13, 13, 1990, 9079, 7514, 29898, 7514, 1125, 13, 29871, 9995, 2744, 5198, 9246, 770, 393, 11524, 263, 2656, 1797, 363, 263, 2323, 2875, 1213, 15945, 13, 13, 29871, 18188, 11794, 4214, 353, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 7514, 29889, 28599, 11794, 4214, 13, 29871, 23050, 11794, 4214, 353, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 7514, 29889, 2287, 7187, 11794, 4214, 13, 29871, 903, 4571, 1525, 9838, 29903, 353, 14671, 29920, 575, 300, 4197, 28599, 11794, 4214, 29892, 23050, 11794, 4214, 2314, 13, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 3107, 29892, 5305, 29922, 28599, 11794, 4214, 1125, 13, 1678, 9995, 23770, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 3107, 29901, 278, 1024, 310, 278, 3107, 491, 607, 304, 2656, 29889, 13, 418, 5305, 29901, 278, 5305, 297, 607, 304, 2656, 278, 2183, 3107, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 565, 278, 3107, 1024, 470, 5305, 338, 13, 418, 8340, 29889, 13, 1678, 9995, 13, 1678, 1418, 579, 487, 29918, 8768, 29889, 7211, 403, 1231, 29898, 7728, 29892, 13, 462, 462, 259, 525, 7728, 742, 13, 462, 462, 259, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29897, 13, 1678, 565, 451, 5305, 297, 1583, 3032, 4571, 1525, 9838, 29903, 29901, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 877, 26690, 5305, 29901, 1273, 29878, 29915, 1273, 13, 462, 462, 795, 313, 20845, 29892, 876, 13, 1678, 2428, 29898, 4854, 7514, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 1678, 1583, 17255, 2098, 353, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 7514, 580, 13, 1678, 1583, 17255, 2098, 29889, 6799, 353, 4832, 29889, 7469, 29918, 19541, 29898, 7728, 29892, 525, 9420, 29899, 29947, 1495, 13, 1678, 1583, 17255, 2098, 29889, 20845, 353, 5305, 13, 13, 29871, 732, 6799, 13, 29871, 822, 3107, 29898, 1311, 1125, 13, 1678, 736, 1583, 17255, 2098, 29889, 6799, 13, 13, 29871, 732, 6799, 13, 29871, 822, 5305, 29898, 1311, 1125, 13, 1678, 736, 1583, 17255, 2098, 29889, 20845, 13, 13, 29871, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 1678, 4805, 353, 6629, 13, 1678, 565, 1583, 29889, 20845, 1275, 1583, 29889, 2287, 7187, 11794, 4214, 29901, 13, 418, 4805, 353, 13420, 23050, 11794, 4214, 29915, 13, 1678, 1024, 353, 2062, 29898, 28319, 29889, 7469, 29918, 710, 29898, 1311, 29889, 7728, 876, 29961, 29896, 13018, 29896, 29962, 13, 1678, 736, 14210, 29879, 29898, 29966, 29995, 29879, 29958, 29995, 29879, 16029, 1273, 313, 1311, 17255, 1990, 1649, 17255, 978, 1649, 29892, 1024, 29892, 4805, 29897, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 3032, 1066, 3245, 29898, 29896, 29897, 13, 29871, 822, 18764, 287, 29898, 1311, 29892, 2318, 29918, 1609, 29922, 8516, 1125, 13, 1678, 565, 2318, 29918, 1609, 322, 1583, 17255, 2098, 29889, 6799, 451, 297, 2318, 29918, 1609, 29901, 13, 418, 736, 1583, 13, 13, 1678, 565, 1583, 17255, 2098, 29889, 20845, 1275, 1583, 29889, 28599, 11794, 4214, 29901, 13, 418, 736, 9079, 7514, 29898, 13, 3986, 4832, 29889, 7469, 29918, 726, 29898, 1311, 17255, 2098, 29889, 6799, 511, 1583, 29889, 2287, 7187, 11794, 4214, 29897, 13, 1678, 1683, 29901, 13, 418, 736, 9079, 7514, 29898, 13, 3986, 4832, 29889, 7469, 29918, 726, 29898, 1311, 17255, 2098, 29889, 6799, 511, 1583, 29889, 28599, 11794, 4214, 29897, 13, 13, 29871, 822, 903, 657, 29918, 7728, 29918, 7039, 29898, 1311, 1125, 13, 1678, 736, 731, 4197, 1311, 17255, 2098, 29889, 6799, 2314, 13, 13, 29871, 822, 903, 1989, 29898, 1311, 29892, 301, 9499, 29918, 1767, 29918, 1958, 1125, 13, 1678, 301, 9499, 29918, 5975, 353, 301, 9499, 29918, 1767, 29918, 1958, 29961, 1311, 17255, 2098, 29889, 6799, 29962, 13, 1678, 565, 451, 301, 9499, 29918, 5975, 29901, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 18552, 292, 995, 363, 2875, 313, 29995, 29879, 16029, 1273, 1583, 17255, 2098, 29889, 6799, 29897, 13, 13, 1678, 565, 1583, 17255, 2098, 29889, 20845, 1275, 1583, 29889, 28599, 11794, 4214, 29901, 13, 418, 736, 1375, 29898, 29880, 9499, 29918, 5975, 29897, 13, 1678, 1683, 29901, 13, 418, 736, 903, 1123, 3901, 7514, 29898, 3317, 29898, 29880, 9499, 29918, 5975, 876, 13, 13, 29871, 822, 903, 21058, 29898, 1311, 29892, 301, 9499, 29918, 1767, 29918, 1958, 29892, 29365, 29918, 1767, 29918, 1958, 1125, 13, 1678, 301, 9499, 29918, 5975, 353, 301, 9499, 29918, 1767, 29918, 1958, 29961, 1311, 17255, 2098, 29889, 6799, 29962, 13, 1678, 29365, 29918, 5975, 353, 29365, 29918, 1767, 29918, 1958, 29961, 1311, 17255, 2098, 29889, 6799, 29962, 13, 13, 1678, 565, 451, 301, 9499, 29918, 5975, 322, 451, 29365, 29918, 5975, 29901, 13, 418, 736, 29871, 29900, 13, 13, 1678, 565, 451, 301, 9499, 29918, 5975, 29901, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 29931, 14851, 4567, 995, 363, 2875, 313, 29995, 29879, 16029, 1273, 1583, 17255, 2098, 29889, 6799, 29897, 13, 13, 1678, 565, 451, 29365, 29918, 5975, 29901, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 29934, 14851, 4567, 995, 363, 2875, 313, 29995, 29879, 16029, 1273, 1583, 17255, 2098, 29889, 6799, 29897, 13, 13, 1678, 565, 1583, 17255, 2098, 29889, 20845, 1275, 1583, 29889, 28599, 11794, 4214, 29901, 13, 418, 736, 274, 1526, 29918, 12667, 29889, 21058, 29898, 1195, 29898, 29880, 9499, 29918, 5975, 511, 1375, 29898, 29878, 9499, 29918, 5975, 876, 13, 1678, 1683, 29901, 13, 418, 736, 274, 1526, 29918, 12667, 29889, 21058, 29898, 3317, 29898, 29878, 9499, 29918, 5975, 511, 4236, 29898, 29880, 9499, 29918, 5975, 876, 13, 13, 29871, 732, 1990, 5696, 13, 29871, 822, 903, 3166, 29918, 24381, 29898, 25932, 29892, 1797, 29918, 24381, 1125, 13, 13, 1678, 1583, 353, 1067, 29879, 17255, 1482, 12035, 25932, 29897, 13, 1678, 1583, 17255, 2098, 353, 1797, 29918, 24381, 13, 1678, 736, 1583, 13, 13, 29871, 822, 903, 517, 29918, 24381, 29898, 1311, 1125, 13, 1678, 9995, 11609, 29879, 278, 7463, 871, 282, 29890, 8954, 1213, 15945, 13, 1678, 736, 1583, 17255, 2098, 13, 13, 29871, 822, 903, 517, 29918, 24381, 29918, 29894, 29896, 29898, 1311, 29892, 13304, 1125, 13, 1678, 9995, 11609, 29879, 263, 27304, 839, 271, 579, 487, 29889, 4854, 7514, 8954, 310, 278, 1797, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 13304, 29901, 319, 1418, 579, 487, 29918, 29878, 6739, 29889, 9118, 6168, 29889, 13, 1678, 9995, 13, 1678, 325, 29896, 29918, 2098, 353, 27304, 839, 271, 579, 487, 29889, 4854, 7514, 580, 13, 1678, 13304, 29889, 657, 29918, 1972, 29918, 535, 13549, 2141, 29894, 29941, 29918, 2098, 29918, 517, 29918, 29894, 29896, 29918, 2098, 29898, 1311, 17255, 2098, 29892, 325, 29896, 29918, 2098, 29897, 13, 1678, 736, 325, 29896, 29918, 2098, 13, 13, 29871, 822, 4770, 657, 3859, 12035, 1311, 1125, 13, 1678, 12020, 5839, 280, 29889, 29925, 860, 1847, 2392, 29898, 13, 4706, 525, 29925, 860, 1847, 310, 1418, 579, 487, 29918, 1972, 29889, 4854, 7514, 338, 443, 23765, 29889, 1495, 13, 13, 13, 1990, 24497, 568, 7514, 29898, 7514, 1125, 13, 29871, 9995, 2744, 5198, 9246, 770, 393, 11524, 263, 5665, 310, 1394, 8623, 29889, 13, 13, 29871, 910, 770, 410, 627, 3598, 1652, 1131, 575, 1014, 29899, 20488, 393, 526, 310, 1134, 24497, 568, 7514, 29889, 13, 29871, 1152, 1342, 29901, 13, 1678, 24497, 568, 7514, 4197, 29949, 29896, 29892, 24497, 568, 7514, 4197, 29900, 29906, 29892, 29871, 29900, 29941, 11724, 438, 29946, 2314, 13, 29871, 338, 7126, 304, 29901, 13, 1678, 24497, 568, 7514, 4197, 29949, 29896, 29892, 29871, 29900, 29906, 29892, 29871, 29900, 29941, 29892, 438, 29946, 2314, 13, 29871, 9995, 13, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 11299, 1125, 13, 1678, 9995, 23770, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 11299, 29901, 319, 1051, 310, 1394, 8623, 607, 526, 7436, 297, 1797, 29889, 13, 1678, 9995, 13, 1678, 565, 451, 338, 8758, 29898, 20488, 29892, 313, 1761, 29892, 18761, 22164, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 20488, 2980, 881, 367, 1051, 470, 18761, 313, 29995, 29878, 16029, 1273, 313, 20488, 29892, 876, 13, 13, 1678, 2428, 29898, 1523, 1066, 568, 7514, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 1678, 1652, 8606, 287, 353, 5159, 13, 1678, 363, 1797, 297, 11299, 29901, 13, 418, 565, 338, 8758, 29898, 2098, 29892, 24497, 568, 7514, 1125, 13, 4706, 1652, 8606, 287, 29889, 21843, 29898, 2098, 3032, 20488, 29897, 13, 418, 25342, 338, 8758, 29898, 2098, 29892, 8170, 1125, 13, 4706, 1652, 8606, 287, 29889, 4397, 29898, 2098, 29897, 13, 418, 1683, 29901, 13, 4706, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 9651, 525, 20488, 2980, 881, 871, 1712, 8170, 313, 29995, 29878, 16029, 1273, 313, 2098, 29892, 876, 13, 1678, 1583, 3032, 20488, 353, 18761, 29898, 1579, 8606, 287, 29897, 13, 13, 29871, 732, 6799, 13, 29871, 822, 11299, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 20488, 13, 13, 29871, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 1678, 736, 14210, 29879, 29414, 29878, 16029, 1273, 313, 1311, 17255, 1990, 1649, 17255, 978, 1649, 29892, 1051, 29898, 1311, 29889, 20488, 876, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 3032, 1066, 3245, 29898, 29896, 29897, 13, 29871, 822, 18764, 287, 29898, 1311, 29892, 2318, 29918, 1609, 29922, 8516, 1125, 13, 1678, 736, 24497, 568, 7514, 4197, 2098, 29889, 276, 874, 287, 29898, 2972, 29918, 1609, 29922, 2972, 29918, 1609, 29897, 13, 462, 965, 363, 1797, 297, 1583, 3032, 20488, 2314, 13, 13, 29871, 822, 903, 657, 29918, 7728, 29918, 7039, 29898, 1311, 1125, 13, 1678, 2983, 353, 731, 580, 13, 1678, 363, 1797, 297, 1583, 3032, 20488, 29901, 13, 418, 2983, 891, 29922, 1797, 3032, 657, 29918, 7728, 29918, 7039, 580, 13, 1678, 736, 2983, 13, 13, 29871, 822, 903, 1989, 29898, 1311, 29892, 301, 9499, 29918, 1767, 29918, 1958, 1125, 13, 1678, 1121, 353, 5159, 13, 1678, 363, 1797, 297, 1583, 3032, 20488, 29901, 13, 418, 1121, 29889, 4397, 29898, 2098, 3032, 1989, 29898, 29880, 9499, 29918, 1767, 29918, 1958, 876, 13, 1678, 736, 18761, 29898, 2914, 29897, 13, 13, 29871, 822, 903, 21058, 29898, 1311, 29892, 301, 9499, 29918, 1767, 29918, 1958, 29892, 29365, 29918, 1767, 29918, 1958, 1125, 13, 1678, 363, 1797, 297, 1583, 3032, 20488, 29901, 13, 418, 1121, 353, 1797, 3032, 21058, 29898, 29880, 9499, 29918, 1767, 29918, 1958, 29892, 29365, 29918, 1767, 29918, 1958, 29897, 13, 418, 565, 1121, 2804, 29871, 29900, 29901, 13, 4706, 736, 1121, 13, 1678, 736, 29871, 29900, 13, 13, 29871, 822, 2159, 29898, 1311, 1125, 13, 1678, 9995, 11609, 29879, 278, 1353, 310, 1014, 29899, 20488, 278, 2777, 3743, 1213, 15945, 13, 1678, 736, 7431, 29898, 1311, 3032, 20488, 29897, 13, 13, 29871, 822, 903, 517, 29918, 29886, 5824, 29898, 1311, 1125, 13, 1678, 9995, 11609, 29879, 385, 10372, 1051, 310, 7463, 871, 282, 29890, 22540, 1213, 15945, 13, 1678, 736, 518, 2098, 3032, 517, 29918, 24381, 580, 363, 1797, 297, 1583, 3032, 20488, 29962, 13, 13, 29871, 822, 903, 517, 29918, 24381, 29918, 29894, 29896, 29898, 1311, 29892, 13304, 1125, 13, 1678, 9995, 11609, 29879, 385, 10372, 1051, 310, 27304, 839, 271, 579, 487, 29889, 4854, 7514, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 13304, 29901, 319, 1418, 579, 487, 29918, 29878, 6739, 29889, 9118, 6168, 13, 1678, 9995, 13, 1678, 736, 518, 2098, 3032, 517, 29918, 24381, 29918, 29894, 29896, 29898, 21412, 29897, 363, 1797, 297, 1583, 3032, 20488, 29962, 13, 13, 29871, 822, 4770, 1837, 12035, 1311, 29892, 916, 1125, 13, 1678, 565, 1583, 17255, 1990, 1649, 338, 916, 17255, 1990, 1649, 29901, 13, 418, 736, 2428, 29898, 1523, 1066, 568, 7514, 29892, 1583, 467, 1649, 1837, 12035, 1228, 29897, 13, 13, 13, 1678, 565, 7431, 29898, 1311, 3032, 20488, 29897, 1275, 29871, 29896, 29901, 13, 418, 1121, 353, 1583, 3032, 20488, 29961, 29900, 1822, 1649, 1837, 12035, 1228, 29897, 13, 418, 565, 1121, 338, 2216, 1888, 2037, 287, 322, 756, 5552, 29898, 1228, 29892, 525, 1649, 1837, 1649, 29374, 13, 4706, 736, 916, 17255, 1837, 12035, 1311, 3032, 20488, 29961, 29900, 2314, 13, 418, 736, 1121, 13, 13, 1678, 736, 2216, 1888, 2037, 287, 13, 13, 13, 1990, 383, 3486, 5856, 29898, 4130, 579, 487, 29918, 29878, 6739, 29889, 8614, 1125, 13, 29871, 9995, 2744, 5198, 9246, 770, 393, 3743, 599, 3987, 363, 6699, 292, 2582, 29889, 13, 13, 29871, 4525, 3987, 3394, 304, 738, 2009, 393, 8206, 29879, 2582, 515, 263, 2346, 29889, 13, 13, 29871, 910, 770, 620, 20098, 278, 1492, 304, 4529, 5285, 3987, 310, 738, 1024, 13, 29871, 5174, 1906, 393, 1369, 411, 525, 1792, 29918, 4286, 3985, 1014, 13203, 881, 871, 4529, 13, 29871, 740, 470, 3651, 411, 2983, 393, 1369, 411, 297, 525, 1792, 29918, 4286, 13, 13, 29871, 25186, 526, 731, 491, 6819, 13553, 6273, 304, 278, 5823, 6590, 13, 29871, 304, 278, 5285, 3987, 3342, 2400, 322, 297, 1418, 579, 487, 29918, 29878, 6739, 29889, 8614, 29889, 13, 13, 29871, 910, 1203, 508, 367, 1304, 408, 278, 2322, 2295, 363, 263, 1418, 579, 487, 29918, 29878, 6739, 29889, 5350, 13, 29871, 541, 297, 393, 1206, 777, 3987, 674, 367, 17262, 29892, 1074, 2984, 5106, 2400, 13, 29871, 363, 4902, 29889, 13, 29871, 9995, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 29889, 3991, 8375, 13, 29871, 822, 7738, 29918, 29883, 1295, 943, 29898, 1767, 1125, 13, 1678, 9995, 3644, 263, 315, 5966, 881, 367, 4133, 411, 278, 6699, 287, 2582, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 565, 995, 338, 451, 263, 6120, 29889, 13, 1678, 9995, 13, 1678, 565, 451, 338, 8758, 29898, 1767, 29892, 6120, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 5498, 346, 29918, 29883, 1295, 943, 2980, 881, 367, 6120, 313, 29995, 29878, 16029, 1273, 313, 1767, 29892, 876, 13, 1678, 736, 995, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 29889, 3991, 8375, 13, 29871, 822, 9210, 29898, 1767, 1125, 13, 1678, 9995, 1576, 1353, 310, 2582, 304, 14383, 1434, 7863, 278, 937, 1121, 29889, 13, 13, 1678, 9333, 16058, 304, 278, 937, 2009, 372, 338, 1304, 411, 322, 338, 17262, 565, 2198, 13, 1678, 373, 1418, 579, 487, 29918, 29878, 6739, 29889, 5350, 29889, 2917, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 565, 995, 338, 451, 263, 6043, 470, 338, 3109, 13, 418, 1135, 5225, 29889, 13, 1678, 9995, 13, 1678, 1418, 579, 487, 29918, 8768, 29889, 7211, 403, 7798, 29898, 1767, 29892, 13, 462, 462, 1678, 525, 10289, 742, 13, 462, 462, 1678, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29892, 13, 462, 462, 1678, 5225, 29918, 554, 29922, 5574, 29897, 13, 1678, 736, 995, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 29889, 3991, 8375, 13, 29871, 822, 9853, 29918, 2311, 29898, 1767, 1125, 13, 1678, 9995, 1576, 1353, 310, 2582, 304, 4218, 304, 10563, 297, 263, 9853, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 565, 995, 338, 451, 263, 6043, 470, 338, 451, 13, 418, 7621, 1135, 5225, 29889, 13, 1678, 9995, 13, 1678, 1418, 579, 487, 29918, 8768, 29889, 7211, 403, 7798, 29898, 1767, 29892, 13, 462, 462, 1678, 525, 16175, 29918, 2311, 742, 13, 462, 462, 1678, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29897, 13, 1678, 736, 995, 13, 13, 13, 1990, 13641, 5856, 29898, 20927, 5856, 1125, 13, 29871, 9995, 2744, 5198, 9246, 770, 393, 3743, 599, 3987, 363, 2734, 263, 2346, 29889, 13, 13, 29871, 910, 770, 3743, 3987, 393, 2761, 8225, 1889, 313, 311, 328, 1220, 29892, 13, 29871, 9853, 29918, 2311, 29892, 1303, 29918, 22197, 29892, 2992, 29897, 322, 825, 760, 310, 278, 2346, 2582, 526, 4133, 13, 29871, 313, 8149, 29918, 6194, 29892, 18246, 29892, 9210, 29892, 4046, 29892, 2992, 29897, 25186, 393, 2761, 278, 8118, 13, 29871, 310, 278, 2346, 2582, 526, 6790, 373, 278, 1418, 579, 487, 29918, 1972, 29889, 3010, 4153, 29889, 13, 13, 29871, 910, 770, 620, 20098, 278, 1492, 304, 4529, 5285, 3987, 310, 738, 1024, 13, 29871, 5174, 1906, 393, 1369, 411, 525, 1792, 29918, 4286, 3985, 1014, 13203, 881, 871, 4529, 13, 29871, 740, 470, 3651, 411, 2983, 393, 1369, 411, 297, 525, 1792, 29918, 4286, 13, 13, 29871, 25186, 526, 731, 491, 6819, 13553, 6273, 304, 278, 5823, 6590, 13, 29871, 304, 278, 5285, 3987, 3342, 2400, 322, 297, 383, 3486, 5856, 322, 13, 29871, 1418, 579, 487, 29918, 29878, 6739, 29889, 8614, 29889, 13, 13, 29871, 910, 1203, 508, 367, 1304, 408, 278, 2322, 2295, 363, 263, 1418, 579, 487, 29918, 29878, 6739, 29889, 5350, 13, 29871, 541, 297, 393, 1206, 777, 3987, 674, 367, 17262, 29892, 1074, 2400, 363, 4902, 29889, 13, 29871, 9995, 13, 13, 13, 29871, 15606, 29918, 3738, 29934, 1254, 353, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 22364, 29918, 3738, 29934, 1254, 13, 29871, 13764, 4741, 1254, 1955, 29918, 3738, 29934, 1254, 353, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 23219, 1254, 1955, 29918, 3738, 29934, 1254, 13, 29871, 383, 6227, 4945, 29918, 3738, 29934, 1254, 353, 1418, 579, 487, 29918, 24381, 29889, 3010, 29889, 3738, 29931, 4945, 29918, 3738, 29934, 1254, 13, 29871, 903, 29950, 1177, 9375, 353, 14671, 29920, 575, 300, 4197, 22364, 29918, 3738, 29934, 1254, 29892, 13764, 4741, 1254, 1955, 29918, 3738, 29934, 1254, 29892, 383, 6227, 4945, 29918, 3738, 29934, 1254, 2314, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 29889, 3991, 8375, 13, 29871, 822, 6611, 29918, 6194, 29898, 1767, 1125, 13, 1678, 9995, 3644, 278, 2346, 881, 871, 736, 6611, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 565, 995, 338, 451, 263, 6120, 29889, 13, 1678, 9995, 13, 1678, 565, 451, 338, 8758, 29898, 1767, 29892, 6120, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 8149, 29918, 6194, 2980, 881, 367, 6120, 313, 29995, 29878, 16029, 1273, 313, 1767, 29892, 876, 13, 1678, 736, 995, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 29889, 3991, 8375, 13, 29871, 822, 18246, 29898, 1767, 1125, 13, 1678, 9995, 29909, 1051, 470, 18761, 310, 2875, 2983, 304, 2060, 29889, 13, 13, 1678, 960, 6213, 29892, 278, 4152, 7855, 338, 4133, 29889, 13, 13, 1678, 12048, 9215, 263, 18246, 29901, 13, 1678, 448, 1122, 1735, 278, 2380, 11780, 363, 278, 2183, 2346, 29936, 13, 1678, 448, 674, 4556, 263, 7687, 7855, 304, 367, 4133, 29936, 13, 1678, 448, 674, 4556, 871, 16212, 393, 1712, 1906, 4426, 304, 367, 4133, 29936, 13, 13, 1678, 319, 7687, 16212, 871, 1712, 278, 2875, 1024, 322, 995, 363, 4426, 13, 1678, 297, 278, 18246, 313, 12676, 292, 322, 2999, 674, 451, 367, 731, 467, 2688, 674, 884, 13, 1678, 871, 1712, 263, 2323, 995, 363, 738, 2473, 29899, 4387, 287, 2875, 29889, 2398, 29892, 565, 263, 13, 1678, 2473, 29899, 4387, 287, 2875, 338, 6790, 297, 278, 1797, 29892, 385, 14585, 2875, 29892, 470, 13, 1678, 278, 2060, 287, 4426, 29892, 278, 7855, 674, 367, 4133, 2999, 3064, 29889, 9038, 13, 1678, 363, 1269, 5412, 10296, 310, 1819, 29889, 13, 13, 1678, 2398, 29892, 18246, 9365, 526, 16951, 8473, 1135, 4226, 9365, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 565, 995, 338, 4069, 470, 451, 263, 1051, 470, 18761, 13, 1678, 310, 6031, 29889, 13, 1678, 9995, 13, 1678, 565, 338, 8758, 29898, 1767, 29892, 1051, 1125, 13, 418, 995, 353, 18761, 29898, 1767, 29897, 13, 1678, 25342, 451, 338, 8758, 29898, 1767, 29892, 18761, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 771, 6929, 2980, 881, 367, 263, 1051, 470, 18761, 313, 29995, 29878, 16029, 1273, 313, 1767, 29892, 876, 13, 1678, 565, 451, 995, 29901, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 771, 6929, 2980, 2609, 367, 4069, 1495, 13, 1678, 363, 3107, 297, 995, 29901, 13, 418, 565, 451, 338, 8758, 29898, 7728, 29892, 4832, 29889, 1807, 29918, 8768, 718, 313, 28319, 29889, 19541, 29918, 1853, 29892, 22164, 13, 4706, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 9651, 525, 771, 6929, 2980, 881, 1712, 871, 6031, 313, 29995, 29878, 16029, 1273, 313, 7728, 29892, 876, 13, 13, 1678, 736, 995, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 29889, 3991, 8375, 13, 29871, 822, 4046, 29898, 1767, 1125, 13, 1678, 9995, 24445, 373, 278, 1353, 310, 2582, 304, 736, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 565, 995, 338, 451, 385, 6043, 470, 338, 3109, 13, 418, 1135, 5225, 29889, 13, 1678, 9995, 13, 1678, 1418, 579, 487, 29918, 8768, 29889, 7211, 403, 7798, 29898, 1767, 29892, 13, 462, 462, 1678, 525, 13400, 742, 13, 462, 462, 1678, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29892, 13, 462, 462, 1678, 5225, 29918, 554, 29922, 5574, 29897, 13, 1678, 736, 995, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 29889, 3991, 8375, 13, 29871, 822, 758, 9155, 29918, 2311, 29898, 1767, 1125, 13, 1678, 9995, 4557, 310, 2582, 304, 4218, 304, 736, 373, 278, 2847, 2009, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 565, 995, 338, 451, 385, 6043, 470, 338, 451, 13, 418, 7621, 1135, 5225, 29889, 13, 1678, 9995, 13, 1678, 1418, 579, 487, 29918, 8768, 29889, 7211, 403, 7798, 29898, 1767, 29892, 13, 462, 462, 1678, 525, 29886, 999, 3486, 29918, 2311, 742, 13, 462, 462, 1678, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29892, 13, 462, 462, 1678, 5225, 29918, 554, 29922, 5574, 29897, 13, 1678, 736, 995, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 29889, 3991, 8375, 13, 29871, 822, 1369, 29918, 18127, 29898, 1767, 1125, 13, 1678, 9995, 19890, 304, 671, 263, 1369, 2602, 29889, 13, 13, 1678, 18076, 4395, 565, 2198, 373, 1418, 579, 487, 29918, 29878, 6739, 29889, 5350, 29889, 2917, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 565, 995, 338, 451, 263, 315, 5966, 29889, 13, 1678, 9995, 13, 1678, 565, 451, 338, 8758, 29898, 1767, 29892, 315, 5966, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 2962, 29918, 18127, 2980, 881, 367, 1418, 579, 487, 29918, 1972, 29889, 19890, 313, 29995, 29878, 16029, 1273, 13, 3986, 313, 1767, 29892, 876, 13, 1678, 736, 995, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 29889, 3991, 8375, 13, 29871, 822, 1095, 29918, 18127, 29898, 1767, 1125, 13, 1678, 9995, 19890, 304, 671, 408, 385, 1095, 2602, 29889, 13, 13, 1678, 18076, 4395, 565, 2198, 373, 1418, 579, 487, 29918, 29878, 6739, 29889, 5350, 29889, 2917, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 565, 995, 338, 451, 263, 315, 5966, 29889, 13, 1678, 9995, 13, 1678, 565, 451, 338, 8758, 29898, 1767, 29892, 315, 5966, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 355, 29918, 18127, 2980, 881, 367, 1418, 579, 487, 29918, 1972, 29889, 19890, 313, 29995, 29878, 16029, 1273, 13, 3986, 313, 1767, 29892, 876, 13, 1678, 736, 995, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 29889, 3991, 8375, 13, 29871, 822, 13182, 29898, 1767, 1125, 13, 1678, 9995, 28016, 373, 920, 278, 1418, 579, 487, 881, 3814, 278, 2346, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 565, 995, 338, 451, 263, 2998, 13182, 29889, 13, 1678, 9995, 13, 1678, 565, 995, 451, 297, 13641, 5856, 3032, 29950, 1177, 9375, 29901, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 877, 14148, 2346, 13182, 313, 29995, 29878, 16029, 1273, 13, 462, 462, 795, 313, 1767, 29892, 876, 13, 1678, 736, 995, 13, 13, 13, 1990, 315, 5966, 7373, 5160, 5308, 1125, 13, 29871, 9995, 2744, 5198, 9246, 770, 393, 11524, 263, 6198, 2602, 297, 263, 2346, 29889, 13, 13, 29871, 450, 2602, 27291, 491, 263, 315, 5966, 338, 6198, 304, 263, 1121, 297, 263, 2346, 1584, 13, 29871, 565, 278, 1121, 756, 1063, 6206, 515, 278, 2183, 2346, 29889, 26991, 304, 2602, 13, 29871, 7389, 1156, 278, 1833, 1121, 4133, 491, 263, 9853, 29889, 13, 13, 29871, 319, 10677, 881, 871, 367, 1304, 373, 263, 2346, 411, 385, 13557, 12608, 304, 278, 13, 29871, 697, 393, 7371, 372, 470, 373, 263, 2346, 411, 967, 2656, 1797, 18764, 287, 29889, 13, 29871, 9995, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 3032, 1066, 3245, 29898, 29896, 29897, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 3142, 11177, 29922, 8516, 29892, 903, 18127, 29918, 13193, 29922, 8516, 1125, 13, 1678, 9995, 23770, 29889, 13, 13, 1678, 319, 315, 5966, 13319, 411, 694, 6273, 3291, 278, 937, 1121, 310, 738, 13, 1678, 2346, 29889, 960, 1316, 263, 315, 5966, 338, 1304, 408, 385, 1095, 29918, 18127, 694, 2582, 674, 3926, 367, 13, 1678, 4133, 29889, 13, 1678, 9995, 13, 1678, 2428, 29898, 19890, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 1678, 565, 3142, 11177, 338, 451, 6213, 29901, 13, 418, 565, 903, 18127, 29918, 13193, 338, 451, 6213, 29901, 13, 4706, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 9651, 525, 6028, 871, 6084, 697, 310, 3142, 11177, 322, 903, 18127, 29918, 13193, 1495, 13, 418, 903, 18127, 29918, 13193, 353, 1583, 3032, 2271, 11177, 29918, 517, 29918, 13193, 29898, 2271, 11177, 29897, 13, 1678, 565, 903, 18127, 29918, 13193, 338, 451, 6213, 29901, 13, 418, 1583, 17255, 18127, 29918, 13193, 353, 903, 18127, 29918, 13193, 13, 1678, 1683, 29901, 13, 418, 1583, 17255, 18127, 29918, 13193, 353, 4832, 29889, 19541, 29918, 1853, 580, 13, 13, 29871, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 1678, 1852, 353, 4832, 29889, 7469, 29918, 710, 29898, 1311, 29889, 517, 29918, 2676, 11177, 29918, 1807, 3101, 13, 1678, 565, 1852, 29901, 13, 418, 1852, 353, 12801, 29995, 29879, 16299, 1273, 1852, 13, 1678, 736, 14210, 29879, 29414, 29879, 16029, 1273, 313, 1311, 17255, 1990, 1649, 17255, 978, 1649, 29892, 1852, 29897, 13, 13, 29871, 822, 18764, 287, 29898, 1311, 1125, 13, 1678, 9995, 2287, 15094, 29907, 3040, 29928, 29889, 739, 338, 694, 5520, 5181, 304, 1246, 18764, 287, 580, 373, 18580, 943, 29889, 13, 13, 1678, 319, 10677, 4133, 491, 263, 2346, 1122, 884, 367, 1304, 297, 263, 2346, 5069, 2656, 1797, 13, 1678, 756, 1063, 18764, 287, 29889, 910, 1158, 3639, 263, 3509, 310, 278, 2441, 10677, 29889, 13, 1678, 9995, 13, 1678, 736, 315, 5966, 7373, 18127, 29918, 13193, 29922, 1311, 17255, 18127, 29918, 13193, 29897, 13, 13, 29871, 822, 304, 29918, 13193, 29898, 1311, 1125, 13, 1678, 9995, 1748, 6646, 10677, 408, 263, 7023, 1347, 1213, 15945, 13, 1678, 736, 1583, 17255, 18127, 29918, 13193, 13, 13, 29871, 732, 7959, 5696, 13, 29871, 822, 515, 29918, 13193, 29898, 18127, 1125, 13, 1678, 9995, 29954, 1691, 263, 315, 5966, 2183, 967, 7023, 1347, 7797, 1891, 883, 29889, 13, 13, 1678, 450, 7797, 1891, 883, 310, 263, 10677, 1122, 1735, 297, 263, 1661, 29899, 1627, 2935, 15878, 13, 1678, 982, 29889, 512, 445, 1206, 18580, 943, 1818, 367, 1072, 759, 630, 515, 263, 716, 13641, 2009, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 10677, 29901, 319, 7797, 1891, 10677, 408, 4133, 491, 869, 517, 29918, 13193, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 319, 315, 5966, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 1917, 2392, 565, 278, 10677, 2980, 947, 451, 2755, 263, 13, 418, 7797, 1891, 10677, 29889, 13, 1678, 9995, 13, 1678, 736, 315, 5966, 7373, 18127, 29918, 13193, 29922, 18127, 29897, 13, 13, 29871, 822, 3142, 11177, 29898, 1311, 1125, 13, 1678, 9995, 1748, 6646, 10677, 408, 263, 1856, 11177, 1347, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 319, 2967, 29953, 29946, 29899, 26716, 7797, 1891, 10677, 29889, 13, 1678, 9995, 13, 1678, 736, 2967, 29953, 29946, 29889, 2271, 11177, 29918, 29890, 29953, 29946, 12508, 29898, 1311, 29889, 517, 29918, 13193, 3101, 13, 29871, 304, 29918, 2676, 11177, 29918, 1807, 353, 3142, 11177, 13, 13, 29871, 732, 7959, 5696, 13, 29871, 822, 515, 29918, 2676, 11177, 29918, 1807, 29898, 18127, 1125, 13, 1678, 9995, 29954, 1691, 263, 315, 5966, 2183, 967, 1856, 11177, 7797, 1891, 883, 29889, 13, 13, 1678, 450, 7797, 1891, 883, 310, 263, 10677, 1122, 1735, 297, 263, 1661, 29899, 1627, 2935, 15878, 13, 1678, 982, 29889, 512, 445, 1206, 18580, 943, 1818, 367, 1072, 759, 630, 515, 263, 716, 13641, 2009, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 10677, 29901, 319, 7797, 1891, 10677, 408, 4133, 491, 869, 517, 29918, 2676, 11177, 29918, 1807, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 319, 315, 5966, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 1917, 2392, 565, 278, 10677, 2980, 338, 451, 263, 1347, 13, 418, 1134, 310, 947, 451, 2755, 263, 7797, 1891, 10677, 29889, 13, 1678, 9995, 13, 1678, 1602, 6797, 29918, 13193, 353, 315, 5966, 3032, 2271, 11177, 29918, 517, 29918, 13193, 29898, 18127, 29897, 13, 1678, 736, 315, 5966, 29889, 3166, 29918, 13193, 29898, 7099, 6797, 29918, 13193, 29897, 13, 13, 29871, 732, 7959, 5696, 13, 29871, 822, 903, 2271, 11177, 29918, 517, 29918, 13193, 29898, 18127, 1125, 13, 13, 1678, 565, 451, 338, 8758, 29898, 18127, 29892, 4832, 29889, 1807, 29918, 8768, 718, 313, 28319, 29889, 19541, 29918, 1853, 29892, 22164, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 1917, 2392, 29898, 13, 3986, 525, 18127, 2980, 881, 367, 851, 470, 29104, 313, 29995, 29878, 16029, 1273, 313, 18127, 29892, 876, 13, 13, 1678, 1018, 29901, 13, 418, 1602, 6797, 29918, 13193, 353, 2967, 29953, 29946, 29889, 2271, 11177, 29918, 29890, 29953, 29946, 13808, 29898, 13, 3986, 4832, 29889, 7469, 29918, 19541, 29898, 18127, 29892, 525, 294, 18869, 8785, 13, 1678, 5174, 313, 1917, 2392, 29892, 20948, 29897, 408, 321, 29901, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 1917, 2392, 29898, 13, 3986, 525, 13919, 10677, 1273, 29879, 29889, 25577, 29901, 1273, 29879, 29915, 1273, 313, 18127, 29892, 321, 876, 13, 1678, 736, 1602, 6797, 29918, 13193, 13, 13, 29871, 822, 6564, 29898, 1311, 29892, 9210, 29892, 2346, 29892, 11009, 1125, 13, 1678, 9995, 3253, 29894, 2925, 263, 315, 5966, 491, 278, 2183, 9210, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 9210, 29901, 450, 5253, 304, 6564, 278, 1857, 2346, 29889, 13, 418, 2346, 29901, 319, 13641, 13557, 304, 278, 697, 445, 10677, 471, 2825, 515, 29889, 13, 418, 11009, 29901, 450, 1418, 579, 487, 29918, 29878, 6739, 29889, 5350, 304, 671, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 319, 716, 10677, 393, 338, 12862, 491, 9210, 773, 278, 2183, 2346, 29889, 13, 1678, 9995, 13, 1678, 1418, 579, 487, 29918, 8768, 29889, 7211, 403, 7798, 29898, 10289, 29892, 13, 462, 462, 1678, 525, 10289, 742, 13, 462, 462, 1678, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29897, 13, 1678, 565, 451, 338, 8758, 29898, 1972, 29892, 13641, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 1972, 2980, 881, 367, 1418, 579, 487, 29918, 1972, 29889, 3010, 313, 29995, 29878, 16029, 1273, 313, 1972, 29892, 876, 13, 13, 1678, 2346, 29918, 6768, 353, 13641, 5856, 29898, 13, 4706, 1369, 29918, 18127, 29922, 1311, 29892, 9210, 29922, 10289, 29892, 4046, 29922, 29900, 29892, 7738, 29918, 29883, 1295, 943, 29922, 5574, 29897, 13, 1678, 736, 2346, 29889, 3389, 29898, 13082, 29892, 2346, 29918, 6768, 467, 4622, 29918, 16175, 29898, 13, 4706, 350, 905, 261, 29889, 1299, 29918, 1307, 28938, 29918, 27681, 10490, 467, 18127, 29898, 29900, 29897, 13, 13, 29871, 822, 4770, 842, 3859, 12035, 1311, 29892, 2106, 1125, 13, 1678, 565, 22868, 19890, 1649, 2388, 2356, 29918, 18127, 29915, 297, 2106, 29901, 13, 13, 418, 1583, 17255, 18127, 29918, 13193, 353, 2106, 1839, 29918, 19890, 1649, 2388, 2356, 29918, 18127, 13359, 1748, 6646, 8246, 580, 13, 1678, 1683, 29901, 13, 418, 1583, 17255, 8977, 1649, 353, 2106, 13, 13, 13, 1990, 903, 3010, 2558, 5072, 7373, 5160, 5308, 1125, 13, 29871, 9995, 29909, 770, 393, 10703, 278, 1820, 18094, 3625, 373, 263, 13641, 1213, 15945, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 3032, 1066, 3245, 29898, 29896, 29897, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 623, 29922, 8516, 29892, 7397, 29922, 8516, 29892, 2924, 29922, 8516, 29892, 19525, 272, 29922, 8516, 1125, 13, 1678, 9995, 1168, 4984, 29879, 263, 903, 3010, 2558, 5072, 29889, 13, 13, 1678, 960, 623, 29914, 22377, 322, 19525, 272, 526, 451, 3342, 29892, 278, 623, 29914, 22377, 731, 297, 278, 13, 1678, 5177, 338, 1304, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 623, 29901, 263, 1347, 15783, 278, 3734, 623, 1178, 470, 6213, 29889, 13, 418, 7397, 29901, 263, 1347, 15783, 278, 3734, 7397, 470, 6213, 29889, 13, 418, 2924, 29901, 263, 1347, 15783, 278, 3734, 2924, 470, 6213, 29889, 13, 418, 19525, 272, 29901, 263, 7855, 29918, 24381, 29906, 29889, 7422, 15783, 278, 3734, 19525, 272, 470, 13, 4706, 6213, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 261, 1883, 29889, 22050, 15730, 2392, 565, 623, 322, 19525, 272, 29889, 932, 580, 437, 451, 1993, 470, 13, 4706, 385, 15668, 1134, 338, 4502, 297, 363, 738, 2980, 29889, 13, 1678, 9995, 13, 1678, 565, 2924, 338, 451, 6213, 29901, 13, 418, 1418, 579, 487, 29918, 8768, 29889, 7211, 403, 1231, 29898, 13, 3986, 2924, 29892, 525, 14380, 742, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29897, 13, 13, 1678, 565, 19525, 272, 338, 451, 6213, 29901, 13, 13, 418, 565, 451, 338, 8758, 29898, 4564, 342, 272, 29892, 7855, 29918, 24381, 29906, 29889, 7422, 1125, 13, 4706, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 9651, 525, 4564, 342, 272, 2980, 881, 367, 7855, 29918, 24381, 29906, 29889, 7422, 313, 29995, 29878, 16029, 1273, 13, 9651, 313, 4564, 342, 272, 29892, 876, 13, 13, 418, 19525, 272, 29918, 932, 353, 4832, 29889, 7469, 29918, 19541, 29898, 4564, 342, 272, 29889, 932, 29897, 13, 13, 418, 565, 623, 338, 6213, 29901, 13, 4706, 623, 353, 19525, 272, 29918, 932, 13, 418, 25342, 4832, 29889, 7469, 29918, 19541, 29898, 932, 29897, 2804, 19525, 272, 29918, 932, 29901, 13, 4706, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 9651, 525, 4564, 342, 272, 2980, 881, 1993, 623, 4852, 29995, 29878, 29908, 2804, 11860, 29878, 1159, 29915, 1273, 13, 9651, 313, 4564, 342, 272, 29889, 932, 29892, 623, 876, 13, 13, 418, 19525, 272, 29918, 22377, 353, 4832, 29889, 7469, 29918, 19541, 29898, 4564, 342, 272, 29889, 978, 29918, 3493, 29897, 13, 13, 418, 565, 7397, 338, 6213, 29901, 13, 4706, 7397, 353, 19525, 272, 29918, 22377, 13, 418, 25342, 4832, 29889, 7469, 29918, 19541, 29898, 22377, 29897, 2804, 19525, 272, 29918, 22377, 29901, 13, 4706, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 9651, 525, 4564, 342, 272, 2980, 881, 1993, 7397, 4852, 29995, 29878, 29908, 2804, 11860, 29878, 1159, 29915, 1273, 13, 9651, 313, 28319, 29889, 7469, 29918, 19541, 29898, 22377, 511, 19525, 272, 29918, 22377, 876, 13, 13, 13, 418, 282, 29890, 353, 7855, 29918, 24381, 29906, 29889, 7422, 580, 13, 418, 282, 29890, 29889, 11882, 4591, 29898, 4564, 342, 272, 29897, 13, 418, 19525, 272, 353, 282, 29890, 13, 418, 1583, 17255, 4564, 342, 272, 353, 19525, 272, 13, 418, 1583, 17255, 2084, 353, 1051, 29898, 4564, 342, 272, 29889, 2084, 29889, 5029, 29897, 13, 1678, 1683, 29901, 13, 418, 1583, 17255, 4564, 342, 272, 353, 6213, 13, 418, 1583, 17255, 2084, 353, 6213, 13, 13, 1678, 2428, 7373, 3010, 2558, 5072, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 1678, 1583, 17255, 932, 353, 4832, 29889, 7469, 29918, 726, 29898, 4130, 579, 487, 29918, 8768, 29889, 12375, 345, 2052, 1204, 29898, 932, 511, 525, 9420, 29899, 29947, 1495, 13, 1678, 1583, 17255, 22377, 353, 313, 13, 4706, 4832, 29889, 7469, 29918, 726, 29898, 4130, 579, 487, 29918, 8768, 29889, 12375, 345, 23335, 29898, 22377, 511, 525, 9420, 29899, 29947, 8785, 13, 1678, 1583, 17255, 14380, 353, 2924, 13, 13, 29871, 732, 6799, 13, 29871, 822, 623, 29898, 1311, 1125, 13, 1678, 736, 1583, 17255, 932, 13, 13, 29871, 732, 6799, 13, 29871, 822, 7397, 29898, 1311, 1125, 13, 1678, 736, 1583, 17255, 22377, 13, 13, 29871, 732, 6799, 13, 29871, 822, 2924, 29898, 1311, 1125, 13, 1678, 736, 1583, 17255, 14380, 13, 13, 29871, 732, 6799, 13, 29871, 822, 19525, 272, 29898, 1311, 1125, 13, 13, 1678, 736, 1583, 17255, 4564, 342, 272, 13, 13, 29871, 822, 4770, 4804, 12035, 1311, 29892, 7855, 29918, 272, 29918, 5679, 1125, 13, 1678, 9995, 2052, 368, 278, 4175, 29889, 13, 13, 1678, 29848, 29879, 2845, 385, 7855, 470, 263, 3407, 304, 4772, 278, 817, 304, 6597, 6611, 13, 1678, 515, 16212, 746, 591, 505, 263, 1051, 310, 16212, 313, 4716, 338, 263, 3619, 1206, 467, 13, 13, 1678, 826, 3174, 29901, 13, 418, 7855, 29918, 272, 29918, 5679, 29901, 20370, 385, 7855, 29918, 24381, 29906, 29889, 6691, 1184, 517, 470, 13, 4706, 7855, 29918, 24381, 29906, 29889, 7422, 29889, 13, 1678, 9995, 13, 1678, 565, 338, 8758, 29898, 10041, 29918, 272, 29918, 5679, 29892, 7855, 29918, 24381, 29906, 29889, 7422, 1125, 13, 418, 1820, 353, 7855, 29918, 272, 29918, 5679, 13, 1678, 25342, 338, 8758, 29898, 10041, 29918, 272, 29918, 5679, 29892, 7855, 29918, 24381, 29906, 29889, 6691, 1184, 517, 1125, 13, 418, 1820, 353, 7855, 29918, 272, 29918, 5679, 29889, 1989, 13, 1678, 1683, 29901, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 10041, 29918, 272, 29918, 5679, 2980, 1818, 367, 385, 7855, 29918, 24381, 29906, 29889, 6691, 1184, 517, 525, 718, 13, 3986, 4832, 29889, 7469, 29918, 710, 877, 272, 7855, 29918, 24381, 29906, 29889, 7422, 313, 29995, 29878, 16029, 1273, 13, 462, 308, 313, 10041, 29918, 272, 29918, 5679, 511, 525, 9420, 29899, 29947, 8785, 13, 13, 1678, 736, 313, 28319, 29889, 7469, 29918, 726, 29898, 1989, 29889, 932, 29892, 525, 9420, 29899, 29947, 1495, 1275, 1583, 17255, 932, 322, 13, 9651, 4832, 29889, 7469, 29918, 726, 29898, 1989, 29889, 978, 29918, 3493, 29892, 525, 9420, 29899, 29947, 1495, 1275, 1583, 17255, 22377, 322, 13, 9651, 313, 1333, 1583, 17255, 14380, 470, 1820, 29889, 2084, 29889, 5029, 14352, 29896, 1822, 1853, 1275, 1583, 17255, 14380, 29897, 322, 13, 9651, 313, 1333, 1583, 17255, 2084, 470, 13, 632, 1820, 29889, 2084, 29889, 5029, 29961, 29900, 29901, 2435, 29898, 1311, 17255, 2084, 4638, 1275, 1583, 17255, 2084, 876, 13, 13, 29871, 822, 903, 517, 29918, 24381, 29898, 1311, 1125, 13, 1678, 9995, 11609, 29879, 385, 7463, 282, 29890, 8954, 1213, 15945, 13, 1678, 282, 29890, 353, 1418, 579, 487, 29918, 24381, 29889, 3010, 580, 13, 13, 1678, 282, 29890, 29889, 932, 353, 1583, 17255, 932, 13, 1678, 1418, 579, 487, 29918, 8768, 29889, 2697, 23335, 29898, 24381, 29892, 1583, 17255, 22377, 29897, 13, 1678, 565, 1583, 17255, 14380, 338, 451, 6213, 29901, 13, 418, 282, 29890, 29889, 14380, 353, 1583, 17255, 14380, 13, 1678, 565, 1583, 17255, 4564, 342, 272, 29901, 13, 418, 19525, 272, 353, 282, 29890, 29889, 4564, 342, 272, 13, 418, 19525, 272, 29889, 11882, 4591, 29898, 1311, 17255, 4564, 342, 272, 29897, 13, 1678, 736, 282, 29890, 13, 13, 29871, 822, 903, 517, 29918, 24381, 29918, 29894, 29896, 29898, 1311, 29892, 13304, 1125, 13, 1678, 9995, 11609, 29879, 263, 325, 29896, 7463, 17814, 8954, 310, 278, 2346, 1820, 4175, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 13304, 29901, 319, 1418, 579, 487, 29918, 29878, 6739, 29889, 9118, 6168, 29889, 13, 1678, 16969, 29901, 13, 418, 319, 18761, 313, 1484, 468, 839, 271, 579, 487, 29889, 6558, 3010, 3089, 29892, 27304, 839, 271, 579, 487, 29889, 5072, 467, 13, 13, 1678, 450, 1473, 18761, 995, 338, 263, 19916, 15783, 278, 19525, 272, 11910, 310, 278, 13, 1678, 2346, 29889, 960, 727, 338, 694, 19525, 272, 7276, 29892, 445, 995, 674, 367, 6213, 13, 1678, 9995, 13, 1678, 282, 29890, 353, 27304, 839, 271, 579, 487, 29889, 6558, 3010, 3089, 580, 13, 1678, 8877, 29918, 333, 353, 282, 29890, 29889, 16707, 29918, 333, 13, 1678, 8877, 29918, 333, 29889, 4836, 29918, 333, 353, 313, 13, 4706, 13304, 29889, 657, 29918, 10041, 29918, 535, 13549, 2141, 932, 29918, 517, 29918, 4836, 29918, 333, 29898, 1311, 17255, 932, 876, 13, 1678, 565, 1583, 17255, 22377, 29901, 13, 418, 8877, 29918, 333, 29889, 22377, 29918, 333, 353, 1583, 17255, 22377, 13, 1678, 565, 1583, 17255, 14380, 338, 451, 6213, 29901, 13, 418, 282, 29890, 29889, 1972, 29889, 14380, 29889, 1202, 2141, 978, 353, 1583, 17255, 14380, 13, 1678, 19525, 272, 29918, 4572, 353, 6213, 13, 1678, 565, 1583, 17255, 4564, 342, 272, 29901, 13, 418, 19525, 272, 29918, 4572, 353, 27304, 839, 271, 579, 487, 29889, 5072, 580, 13, 418, 19525, 272, 29918, 7728, 29918, 4572, 353, 19525, 272, 29918, 4572, 29889, 6799, 29918, 4572, 13, 418, 19525, 272, 29918, 7728, 29918, 4572, 29889, 459, 353, 313, 13, 3986, 27304, 839, 271, 579, 487, 29889, 4854, 5072, 29889, 29950, 3289, 29918, 23219, 1254, 1955, 29897, 13, 418, 3107, 29918, 24381, 353, 19525, 272, 29918, 7728, 29918, 4572, 29889, 6799, 13, 418, 3107, 29918, 24381, 29889, 978, 353, 1418, 579, 487, 29918, 8768, 29889, 10818, 29918, 29903, 4162, 8426, 1964, 29918, 8618, 13171, 15631, 13, 418, 13304, 29889, 657, 29918, 10041, 29918, 535, 13549, 2141, 29894, 29941, 29918, 517, 29918, 29894, 29896, 29918, 1989, 29898, 13, 3986, 1583, 29889, 4564, 342, 272, 29892, 13, 3986, 19525, 272, 29918, 7728, 29918, 4572, 29889, 1767, 29889, 1989, 29918, 1767, 29897, 13, 1678, 736, 282, 29890, 29892, 19525, 272, 29918, 4572, 13, 13, 13, 1990, 903, 5160, 3010, 7373, 5160, 5308, 1125, 13, 29871, 9995, 29909, 2967, 770, 363, 2346, 20240, 1213, 15945, 13, 13, 29871, 822, 1065, 29898, 1311, 29892, 11009, 29892, 2346, 29918, 6768, 29922, 8516, 1125, 13, 1678, 9995, 6558, 29879, 278, 2346, 773, 4944, 1418, 579, 487, 29918, 29878, 6739, 29889, 5350, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 11009, 29901, 450, 1418, 579, 487, 29918, 29878, 6739, 29889, 5350, 304, 671, 13, 418, 2346, 29918, 6768, 29901, 28379, 2346, 3987, 304, 671, 13, 13, 1678, 16969, 29901, 13, 418, 319, 350, 905, 261, 393, 27063, 6699, 267, 2346, 2582, 408, 9524, 5794, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 565, 738, 310, 278, 6273, 526, 8340, 29889, 13, 1678, 9995, 13, 1678, 736, 350, 905, 261, 29898, 1972, 29918, 6768, 29892, 1583, 29889, 3389, 29918, 12674, 29898, 13082, 29892, 2346, 29918, 6768, 876, 13, 13, 29871, 822, 1065, 29918, 12674, 29898, 1311, 29892, 11009, 29892, 2346, 29918, 6768, 29922, 8516, 1125, 13, 1678, 9995, 6558, 29879, 278, 2346, 773, 278, 4944, 1418, 579, 487, 29918, 29878, 6739, 29889, 5350, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 11009, 29901, 278, 1418, 579, 487, 29918, 29878, 6739, 29889, 5350, 373, 607, 304, 1065, 278, 2346, 29889, 13, 418, 2346, 29918, 6768, 29901, 28379, 13641, 5856, 411, 607, 304, 1065, 278, 2346, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 530, 7465, 1203, 393, 508, 367, 1304, 304, 17229, 278, 937, 350, 905, 29889, 3462, 3245, 13, 418, 9853, 267, 508, 367, 27387, 491, 5432, 350, 905, 29889, 4622, 29918, 16175, 29914, 4622, 29918, 16175, 29918, 12674, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 565, 738, 310, 278, 6273, 526, 8340, 29889, 13, 1678, 9995, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 29871, 822, 4770, 657, 3859, 12035, 1311, 1125, 13, 1678, 12020, 5839, 280, 29889, 29925, 860, 1847, 2392, 29898, 13, 4706, 525, 29925, 860, 1847, 310, 1273, 29878, 338, 443, 23765, 6169, 1273, 1583, 29897, 13, 13, 13, 1990, 13641, 7373, 5160, 3010, 1125, 13, 29871, 9995, 2744, 5198, 9246, 770, 393, 11524, 263, 2346, 12608, 29889, 13, 13, 29871, 319, 2346, 12608, 11624, 310, 263, 2752, 310, 16212, 313, 6550, 2164, 408, 623, 29892, 13, 29871, 7397, 322, 2984, 635, 2924, 322, 19525, 272, 29897, 408, 1532, 408, 263, 19916, 23084, 9593, 29892, 13, 29871, 27270, 322, 263, 7429, 20520, 29889, 13, 29871, 9995, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 3032, 1066, 3245, 29898, 29896, 29897, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 623, 29922, 8516, 29892, 7397, 29922, 8516, 29892, 2924, 29922, 8516, 29892, 19525, 272, 29922, 8516, 29892, 13, 1669, 4175, 29918, 11965, 9593, 29922, 8516, 29892, 2318, 29918, 1609, 29922, 8516, 29892, 1797, 29922, 8516, 29892, 13, 1669, 1303, 29918, 2230, 29918, 375, 29922, 8516, 1125, 13, 1678, 9995, 23770, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 623, 29901, 28379, 623, 304, 2346, 29892, 10723, 515, 278, 5177, 565, 451, 6790, 29889, 13, 418, 7397, 29901, 28379, 7397, 304, 2346, 29892, 10723, 515, 278, 5177, 565, 13, 4706, 451, 6790, 29889, 13, 418, 2924, 29901, 28379, 2924, 304, 2346, 29889, 13, 418, 19525, 272, 29901, 28379, 19525, 272, 304, 2346, 29892, 385, 7855, 29918, 24381, 29906, 29889, 7422, 29889, 13, 418, 4175, 29918, 11965, 9593, 29901, 28379, 19916, 23084, 9593, 491, 607, 304, 9250, 278, 2346, 29889, 13, 418, 2318, 29918, 1609, 29901, 28379, 1051, 310, 4426, 304, 2318, 278, 2582, 491, 29889, 13, 418, 1797, 29901, 28379, 8170, 297, 607, 304, 736, 2582, 29889, 13, 418, 1303, 29918, 2230, 29918, 375, 29901, 28379, 14334, 304, 1303, 278, 8635, 515, 29889, 512, 1890, 671, 13, 4706, 871, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 565, 738, 2980, 338, 8340, 29889, 13, 1678, 9995, 13, 1678, 2428, 29898, 3010, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 13, 13, 1678, 565, 4175, 29918, 11965, 9593, 338, 451, 6213, 322, 451, 338, 8758, 29898, 4572, 29918, 11965, 9593, 29892, 13, 462, 462, 462, 539, 19916, 23084, 9593, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 4572, 29918, 11965, 9593, 881, 367, 1418, 579, 487, 29918, 1972, 29889, 5072, 23084, 9593, 313, 29995, 29878, 16029, 1273, 13, 3986, 313, 4572, 29918, 11965, 9593, 29892, 876, 13, 13, 13, 1678, 565, 338, 8758, 29898, 2098, 29892, 24497, 568, 7514, 1125, 13, 418, 565, 1797, 29889, 2311, 580, 1275, 29871, 29900, 29901, 13, 4706, 1797, 353, 6213, 13, 1678, 25342, 338, 8758, 29898, 2098, 29892, 8170, 1125, 13, 418, 1797, 353, 24497, 568, 7514, 4197, 2098, 2314, 13, 1678, 25342, 1797, 338, 451, 6213, 29901, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 2098, 881, 367, 8170, 313, 29995, 29878, 16029, 1273, 313, 2098, 29892, 876, 13, 13, 13, 1678, 565, 2318, 29918, 1609, 338, 451, 6213, 29901, 13, 418, 565, 338, 8758, 29898, 2972, 29918, 1609, 29892, 1051, 1125, 13, 4706, 2318, 29918, 1609, 353, 18761, 29898, 2972, 29918, 1609, 29897, 13, 418, 25342, 451, 338, 8758, 29898, 2972, 29918, 1609, 29892, 18761, 1125, 13, 4706, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 9651, 525, 2972, 29918, 1609, 2980, 881, 367, 263, 1051, 470, 18761, 313, 29995, 29878, 16029, 1273, 313, 2972, 29918, 1609, 29892, 876, 13, 418, 565, 451, 2318, 29918, 1609, 29901, 13, 4706, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 9651, 525, 2972, 29918, 1609, 2980, 2609, 367, 4069, 1495, 13, 418, 363, 3107, 297, 2318, 29918, 1609, 29901, 13, 4706, 565, 451, 338, 8758, 29898, 7728, 29892, 4832, 29889, 1807, 29918, 8768, 718, 313, 28319, 29889, 19541, 29918, 1853, 29892, 22164, 13, 3986, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 795, 525, 2972, 29918, 1609, 2980, 881, 1712, 871, 6031, 313, 29995, 29878, 16029, 1273, 313, 7728, 29892, 876, 13, 13, 1678, 1583, 3032, 1989, 29918, 4572, 353, 903, 3010, 2558, 5072, 29898, 932, 29922, 932, 29892, 7397, 29922, 22377, 29892, 2924, 29922, 14380, 29892, 13, 462, 462, 539, 19525, 272, 29922, 4564, 342, 272, 29897, 13, 1678, 1583, 3032, 2098, 353, 1797, 13, 1678, 1583, 3032, 4572, 29918, 11965, 9593, 353, 4175, 29918, 11965, 9593, 13, 1678, 1583, 3032, 2972, 29918, 1609, 353, 2318, 29918, 1609, 13, 1678, 1583, 3032, 949, 29918, 2230, 29918, 375, 353, 1303, 29918, 2230, 29918, 375, 13, 13, 29871, 732, 6799, 13, 29871, 822, 623, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 1989, 29918, 4572, 29889, 932, 13, 13, 29871, 732, 6799, 13, 29871, 822, 7397, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 1989, 29918, 4572, 29889, 22377, 13, 13, 29871, 732, 6799, 13, 29871, 822, 2924, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 1989, 29918, 4572, 29889, 14380, 13, 13, 29871, 732, 6799, 13, 29871, 822, 19525, 272, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 1989, 29918, 4572, 29889, 4564, 342, 272, 13, 13, 29871, 732, 6799, 13, 29871, 822, 4175, 29918, 11965, 9593, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 4572, 29918, 11965, 9593, 13, 13, 29871, 732, 6799, 13, 29871, 822, 1797, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 2098, 13, 13, 29871, 732, 6799, 13, 29871, 822, 2318, 29918, 1609, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 2972, 29918, 1609, 13, 13, 29871, 732, 6799, 13, 29871, 822, 1303, 29918, 2230, 29918, 375, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 949, 29918, 2230, 29918, 375, 13, 13, 29871, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 1678, 6389, 353, 5159, 13, 1678, 6389, 29889, 4397, 877, 932, 16328, 29878, 29915, 1273, 4832, 29889, 7469, 29918, 710, 29898, 1311, 29889, 932, 876, 13, 1678, 17534, 353, 1583, 29889, 22377, 13, 1678, 565, 17534, 29901, 13, 418, 6389, 29889, 4397, 877, 22377, 16328, 29878, 29915, 1273, 4832, 29889, 7469, 29918, 710, 29898, 1983, 876, 13, 1678, 2924, 353, 1583, 29889, 14380, 13, 1678, 565, 2924, 338, 451, 6213, 29901, 13, 418, 6389, 29889, 4397, 877, 14380, 16328, 29878, 29915, 1273, 4832, 29889, 7469, 29918, 710, 29898, 14380, 876, 13, 1678, 19525, 272, 353, 1583, 29889, 4564, 342, 272, 13, 1678, 565, 19525, 272, 338, 451, 6213, 29901, 13, 418, 1856, 11177, 353, 2967, 29953, 29946, 29889, 2271, 11177, 29918, 29890, 29953, 29946, 12508, 29898, 4564, 342, 272, 29889, 1748, 6646, 8246, 3101, 13, 418, 6389, 29889, 4397, 877, 4564, 342, 272, 29922, 29966, 29995, 29879, 16299, 1273, 4832, 29889, 7469, 29918, 710, 29898, 2676, 11177, 876, 13, 1678, 4175, 29918, 11965, 9593, 353, 1583, 29889, 4572, 29918, 11965, 9593, 13, 1678, 565, 4175, 29918, 11965, 9593, 338, 451, 6213, 29901, 13, 418, 6389, 29889, 4397, 877, 4572, 29918, 11965, 9593, 16328, 29878, 29915, 1273, 4175, 29918, 11965, 9593, 29897, 13, 1678, 1797, 353, 1583, 29889, 2098, 13, 1678, 565, 1797, 338, 451, 6213, 29901, 13, 418, 6389, 29889, 4397, 877, 2098, 16328, 29878, 29915, 1273, 1797, 29897, 13, 1678, 2318, 29918, 1609, 353, 1583, 29889, 2972, 29918, 1609, 13, 1678, 565, 2318, 29918, 1609, 338, 451, 6213, 29901, 13, 418, 6389, 29889, 4397, 877, 2972, 29918, 1609, 16328, 29878, 29915, 1273, 313, 23583, 29898, 28319, 29889, 7469, 29918, 710, 29898, 29916, 29897, 363, 921, 297, 2318, 29918, 1609, 511, 876, 13, 1678, 1303, 29918, 2230, 29918, 375, 353, 1583, 29889, 949, 29918, 2230, 29918, 375, 13, 1678, 565, 1303, 29918, 2230, 29918, 375, 338, 451, 6213, 29901, 13, 418, 6389, 29889, 4397, 877, 949, 29918, 2230, 29918, 375, 16328, 29878, 29915, 1273, 313, 949, 29918, 2230, 29918, 375, 29892, 876, 13, 1678, 736, 14210, 29879, 29414, 29879, 16029, 1273, 313, 1311, 17255, 1990, 1649, 17255, 978, 1649, 29892, 13420, 15300, 7122, 29898, 5085, 876, 13, 13, 29871, 822, 1065, 29918, 12674, 29898, 1311, 29892, 11009, 29892, 2346, 29918, 6768, 29922, 8516, 1125, 13, 1678, 565, 451, 338, 8758, 29898, 13082, 29892, 1418, 579, 487, 29918, 29878, 6739, 29889, 5160, 5350, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 13082, 881, 367, 263, 1418, 579, 487, 29918, 29878, 6739, 29889, 5160, 5350, 313, 29995, 29878, 16029, 1273, 313, 13082, 29892, 876, 13, 13, 1678, 565, 451, 13641, 5856, 29889, 275, 29918, 13305, 29898, 1972, 29918, 6768, 1125, 13, 13, 13, 418, 2346, 29918, 6768, 353, 13641, 5856, 29898, 2917, 29922, 1972, 29918, 6768, 29897, 13, 13, 1678, 1369, 29918, 18127, 353, 2346, 29918, 6768, 29889, 2962, 29918, 18127, 13, 1678, 565, 451, 1369, 29918, 18127, 322, 2346, 29918, 6768, 29889, 5498, 346, 29918, 29883, 1295, 943, 29901, 13, 418, 1369, 29918, 18127, 353, 315, 5966, 580, 13, 13, 1678, 565, 11009, 3032, 2754, 29918, 3259, 1275, 1418, 579, 487, 29918, 29878, 6739, 3032, 29907, 3927, 15789, 29918, 14573, 1254, 29949, 1525, 29918, 29963, 29896, 29901, 13, 418, 12428, 353, 1583, 3032, 517, 29918, 24381, 29918, 29894, 29896, 29898, 13082, 29892, 2346, 29918, 6768, 29897, 13, 1678, 1683, 29901, 13, 418, 12428, 353, 1583, 3032, 517, 29918, 24381, 29898, 13082, 29892, 2346, 29918, 6768, 29897, 13, 13, 1678, 736, 350, 905, 29889, 3258, 29918, 12674, 29898, 1311, 29892, 2346, 29918, 6768, 29892, 11009, 29892, 12428, 29892, 13, 462, 795, 1369, 29918, 18127, 29922, 2962, 29918, 18127, 29897, 13, 13, 29871, 732, 1990, 5696, 13, 29871, 822, 903, 3166, 29918, 24381, 29898, 25932, 29892, 2346, 29918, 24381, 1125, 13, 1678, 2924, 353, 2346, 29918, 24381, 29889, 14510, 3073, 877, 14380, 1495, 322, 2346, 29918, 24381, 29889, 14380, 470, 6213, 13, 1678, 19525, 272, 353, 2346, 29918, 24381, 29889, 14510, 3073, 877, 4564, 342, 272, 1495, 322, 2346, 29918, 24381, 29889, 4564, 342, 272, 470, 6213, 13, 13, 1678, 4175, 29918, 11965, 9593, 353, 6213, 13, 1678, 565, 2346, 29918, 24381, 29889, 4572, 29901, 13, 418, 4175, 29918, 11965, 9593, 353, 24497, 568, 5072, 29898, 13, 3986, 24497, 568, 5072, 29889, 9468, 29892, 13, 3986, 518, 4854, 5072, 3032, 3166, 29918, 24381, 29898, 4572, 29918, 24381, 29897, 363, 4175, 29918, 24381, 297, 2346, 29918, 24381, 29889, 4572, 2314, 13, 13, 1678, 1797, 353, 6213, 13, 1678, 565, 2346, 29918, 24381, 29889, 2098, 29901, 13, 418, 1797, 353, 24497, 568, 7514, 29898, 13, 3986, 518, 4854, 7514, 3032, 3166, 29918, 24381, 29898, 2098, 29918, 24381, 29897, 363, 1797, 29918, 24381, 297, 2346, 29918, 24381, 29889, 2098, 2314, 13, 13, 1678, 2318, 29918, 1609, 353, 6213, 13, 1678, 565, 2346, 29918, 24381, 29889, 2972, 29918, 1609, 29918, 6799, 29918, 978, 29901, 13, 418, 2318, 29918, 1609, 353, 18761, 29898, 13, 3986, 4832, 29889, 7469, 29918, 726, 29898, 978, 29897, 363, 1024, 297, 2346, 29918, 24381, 29889, 2972, 29918, 1609, 29918, 6799, 29918, 978, 29897, 13, 13, 1678, 1303, 29918, 2230, 29918, 375, 353, 6213, 13, 1678, 565, 2346, 29918, 24381, 29889, 14510, 3073, 877, 949, 29918, 2230, 29918, 375, 29374, 13, 418, 1303, 29918, 2230, 29918, 375, 353, 2346, 29918, 24381, 29889, 949, 29918, 2230, 29918, 375, 13, 13, 1678, 736, 13641, 29898, 13, 4706, 623, 29922, 1972, 29918, 24381, 29889, 932, 29892, 13, 4706, 7397, 29922, 1972, 29918, 24381, 29889, 978, 29918, 3493, 29892, 13, 4706, 2924, 29922, 14380, 29892, 13, 4706, 19525, 272, 29922, 4564, 342, 272, 29892, 13, 4706, 4175, 29918, 11965, 9593, 29922, 4572, 29918, 11965, 9593, 29892, 13, 4706, 1797, 29922, 2098, 29892, 13, 4706, 2318, 29918, 1609, 29922, 2972, 29918, 1609, 29892, 13, 4706, 1303, 29918, 2230, 29918, 375, 29922, 949, 29918, 2230, 29918, 375, 29897, 13, 13, 29871, 822, 903, 517, 29918, 24381, 29918, 29894, 29896, 29898, 1311, 29892, 11009, 29892, 2346, 29918, 6768, 1125, 13, 1678, 9995, 11609, 29879, 263, 27304, 839, 271, 579, 487, 29889, 6558, 3010, 3089, 1213, 15945, 13, 1678, 325, 29896, 29918, 7971, 29892, 325, 29896, 29918, 4564, 342, 272, 29918, 4572, 353, 1583, 3032, 1989, 29918, 4572, 3032, 517, 29918, 24381, 29918, 29894, 29896, 29898, 13082, 29889, 21412, 29897, 13, 1678, 325, 29896, 29918, 1972, 353, 325, 29896, 29918, 7971, 29889, 1972, 13, 13, 1678, 565, 1583, 29889, 4572, 29918, 11965, 9593, 29901, 13, 418, 4175, 29918, 11965, 9593, 29918, 24381, 353, 1583, 3032, 4572, 29918, 11965, 9593, 3032, 517, 29918, 24381, 29918, 29894, 29896, 29898, 13082, 29889, 21412, 29897, 13, 13, 13, 1678, 565, 1583, 29889, 4572, 29918, 11965, 9593, 322, 325, 29896, 29918, 4564, 342, 272, 29918, 4572, 29901, 13, 418, 752, 29918, 4572, 29918, 24381, 353, 325, 29896, 29918, 1972, 29889, 4572, 29889, 22410, 568, 29918, 4572, 13, 418, 752, 29918, 4572, 29918, 24381, 29889, 459, 353, 27304, 839, 271, 579, 487, 29889, 1523, 1066, 568, 5072, 29889, 9468, 13, 418, 752, 29918, 4572, 29918, 24381, 29889, 26705, 29889, 1202, 2141, 11882, 4591, 29898, 4572, 29918, 11965, 9593, 29918, 24381, 29897, 13, 418, 752, 29918, 4572, 29918, 24381, 29889, 26705, 29889, 1202, 2141, 11882, 4591, 29898, 29894, 29896, 29918, 4564, 342, 272, 29918, 4572, 29897, 13, 1678, 25342, 1583, 29889, 4572, 29918, 11965, 9593, 29901, 13, 418, 325, 29896, 29918, 1972, 29889, 4572, 29889, 11882, 4591, 29898, 4572, 29918, 11965, 9593, 29918, 24381, 29897, 13, 1678, 25342, 325, 29896, 29918, 4564, 342, 272, 29918, 4572, 29901, 13, 418, 325, 29896, 29918, 1972, 29889, 4572, 29889, 11882, 4591, 29898, 29894, 29896, 29918, 4564, 342, 272, 29918, 4572, 29897, 13, 13, 13, 1678, 565, 1583, 3032, 2098, 29901, 13, 418, 363, 1797, 297, 1583, 3032, 2098, 3032, 517, 29918, 24381, 29918, 29894, 29896, 29898, 13082, 29889, 21412, 1125, 13, 4706, 325, 29896, 29918, 1972, 29889, 2098, 29889, 1202, 2141, 11882, 4591, 29898, 2098, 29897, 13, 13, 13, 1678, 565, 13641, 5856, 29889, 8149, 29918, 6194, 29898, 1972, 29918, 6768, 29892, 11009, 29889, 2917, 1125, 13, 418, 3107, 29918, 999, 29918, 24381, 353, 325, 29896, 29918, 1972, 29889, 771, 6929, 29889, 1202, 2141, 6799, 13, 418, 3107, 29918, 999, 29918, 24381, 29889, 978, 353, 1418, 579, 487, 29918, 29886, 5824, 29889, 8618, 13171, 15631, 29918, 5813, 29918, 10818, 13, 13, 1678, 18246, 353, 13641, 5856, 29889, 771, 6929, 29898, 1972, 29918, 6768, 29892, 11009, 29889, 2917, 29897, 13, 1678, 1583, 3032, 15480, 29918, 771, 6929, 29918, 392, 29918, 2972, 29918, 1609, 29898, 771, 6929, 29892, 1583, 3032, 2972, 29918, 1609, 29897, 13, 13, 1678, 565, 18246, 29901, 13, 418, 363, 3107, 297, 18246, 29901, 13, 4706, 3107, 29918, 999, 29918, 24381, 353, 325, 29896, 29918, 1972, 29889, 771, 6929, 29889, 1202, 2141, 6799, 13, 4706, 3107, 29918, 999, 29918, 24381, 29889, 978, 353, 3107, 13, 13, 1678, 565, 1583, 3032, 2972, 29918, 1609, 29901, 13, 418, 363, 2318, 29918, 1609, 297, 1583, 3032, 2972, 29918, 1609, 29901, 13, 4706, 325, 29896, 29918, 1972, 29889, 5721, 5562, 29918, 265, 29889, 1202, 2141, 978, 353, 2318, 29918, 1609, 13, 13, 1678, 4046, 353, 13641, 5856, 29889, 13400, 29898, 1972, 29918, 6768, 29892, 11009, 29889, 2917, 29897, 13, 1678, 565, 4046, 338, 451, 6213, 29901, 13, 418, 325, 29896, 29918, 1972, 29889, 13400, 29889, 1767, 353, 4046, 13, 13, 13, 13, 13, 13, 1678, 2302, 353, 13641, 5856, 29889, 16175, 29918, 2311, 29898, 1972, 29918, 6768, 29892, 11009, 29889, 2917, 29897, 13, 1678, 565, 2302, 338, 6213, 29901, 13, 418, 2302, 353, 13641, 5856, 29889, 29886, 999, 3486, 29918, 2311, 29898, 1972, 29918, 6768, 29892, 11009, 29889, 2917, 29897, 13, 1678, 565, 2302, 338, 451, 6213, 29901, 13, 13, 418, 1209, 13, 13, 13, 1678, 565, 2346, 29918, 6768, 29889, 10289, 29901, 13, 418, 325, 29896, 29918, 1972, 29889, 10289, 353, 2346, 29918, 6768, 29889, 10289, 13, 13, 13, 1678, 565, 2346, 29918, 6768, 29889, 2962, 29918, 18127, 338, 451, 6213, 29901, 13, 418, 325, 29896, 29918, 1972, 29889, 2962, 29918, 18127, 353, 2346, 29918, 6768, 29889, 2962, 29918, 18127, 29889, 517, 29918, 13193, 580, 13, 13, 13, 1678, 565, 2346, 29918, 6768, 29889, 355, 29918, 18127, 338, 451, 6213, 29901, 13, 418, 325, 29896, 29918, 1972, 29889, 355, 29918, 18127, 353, 2346, 29918, 6768, 29889, 355, 29918, 18127, 29889, 517, 29918, 13193, 580, 13, 13, 13, 13, 13, 1678, 11009, 3032, 842, 29918, 3827, 29918, 949, 29918, 22197, 29898, 29894, 29896, 29918, 7971, 29892, 2346, 29918, 6768, 29897, 13, 1678, 11009, 3032, 842, 29918, 3827, 29918, 20736, 29898, 29894, 29896, 29918, 7971, 29897, 13, 13, 1678, 736, 325, 29896, 29918, 7971, 13, 13, 29871, 822, 903, 517, 29918, 24381, 29898, 1311, 29892, 11009, 29892, 2346, 29918, 6768, 1125, 13, 1678, 9995, 11609, 29879, 278, 7463, 871, 282, 29890, 8954, 1213, 15945, 13, 1678, 282, 29890, 353, 1583, 3032, 1989, 29918, 4572, 3032, 517, 29918, 24381, 580, 13, 13, 13, 1678, 565, 1583, 3032, 4572, 29918, 11965, 9593, 29901, 13, 418, 363, 285, 297, 1583, 3032, 4572, 29918, 11965, 9593, 3032, 517, 29918, 29886, 5824, 7295, 13, 4706, 282, 29890, 29889, 4572, 29889, 1202, 2141, 11882, 4591, 29898, 29888, 29897, 13, 13, 13, 1678, 565, 1583, 3032, 2098, 29901, 13, 418, 363, 1797, 297, 1583, 3032, 2098, 3032, 517, 29918, 29886, 5824, 7295, 13, 4706, 282, 29890, 29889, 2098, 29889, 1202, 2141, 11882, 4591, 29898, 2098, 29897, 13, 13, 13, 1678, 565, 13641, 5856, 29889, 8149, 29918, 6194, 29898, 1972, 29918, 6768, 29892, 11009, 29889, 2917, 1125, 13, 418, 282, 29890, 29889, 8149, 29918, 6194, 353, 5852, 13, 13, 1678, 18246, 353, 13641, 5856, 29889, 771, 6929, 29898, 1972, 29918, 6768, 29892, 11009, 29889, 2917, 29897, 13, 1678, 1583, 3032, 15480, 29918, 771, 6929, 29918, 392, 29918, 2972, 29918, 1609, 29898, 771, 6929, 29892, 1583, 3032, 2972, 29918, 1609, 29897, 13, 13, 1678, 565, 18246, 29901, 13, 418, 282, 29890, 29889, 6799, 29918, 978, 29889, 21843, 29898, 771, 6929, 29897, 13, 13, 13, 1678, 565, 1583, 3032, 2972, 29918, 1609, 29901, 13, 418, 282, 29890, 29889, 2972, 29918, 1609, 29918, 6799, 29918, 978, 29889, 21843, 29898, 1311, 3032, 2972, 29918, 1609, 29897, 13, 13, 1678, 565, 13641, 5856, 29889, 5498, 346, 29918, 29883, 1295, 943, 29898, 1972, 29918, 6768, 29892, 11009, 29889, 2917, 1125, 13, 418, 282, 29890, 29889, 12198, 353, 5852, 13, 13, 1678, 4046, 353, 13641, 5856, 29889, 13400, 29898, 1972, 29918, 6768, 29892, 11009, 29889, 2917, 29897, 13, 1678, 565, 4046, 338, 451, 6213, 29901, 13, 418, 282, 29890, 29889, 13400, 353, 4046, 13, 13, 1678, 2302, 353, 13641, 5856, 29889, 29886, 999, 3486, 29918, 2311, 29898, 1972, 29918, 6768, 29892, 11009, 29889, 2917, 29897, 13, 1678, 565, 2302, 338, 6213, 29901, 13, 418, 2302, 353, 13641, 5856, 29889, 16175, 29918, 2311, 29898, 1972, 29918, 6768, 29892, 11009, 29889, 2917, 29897, 13, 1678, 565, 2302, 338, 451, 6213, 29901, 13, 418, 282, 29890, 29889, 2798, 353, 2302, 13, 13, 13, 1678, 565, 2346, 29918, 6768, 29889, 10289, 29901, 13, 418, 282, 29890, 29889, 10289, 353, 2346, 29918, 6768, 29889, 10289, 13, 13, 13, 1678, 565, 2346, 29918, 6768, 29889, 2962, 29918, 18127, 338, 451, 6213, 29901, 13, 418, 1018, 29901, 13, 4706, 282, 29890, 29889, 2388, 2356, 29918, 18127, 29889, 12914, 4591, 1231, 29898, 13, 9651, 2346, 29918, 6768, 29889, 2962, 29918, 18127, 29889, 517, 29918, 13193, 3101, 13, 418, 5174, 2643, 29889, 2772, 401, 2392, 29901, 13, 4706, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 1917, 2392, 877, 20965, 10677, 1495, 13, 13, 13, 1678, 565, 2346, 29918, 6768, 29889, 355, 29918, 18127, 338, 451, 6213, 29901, 13, 418, 1018, 29901, 13, 4706, 282, 29890, 29889, 355, 29918, 2388, 2356, 29918, 18127, 29889, 12914, 4591, 1231, 29898, 13, 9651, 2346, 29918, 6768, 29889, 355, 29918, 18127, 29889, 517, 29918, 13193, 3101, 13, 418, 5174, 2643, 29889, 2772, 401, 2392, 29901, 13, 4706, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 1917, 2392, 877, 20965, 10677, 1495, 13, 13, 13, 1678, 565, 5135, 1972, 29918, 6768, 29889, 29882, 524, 1275, 13641, 5856, 29889, 22364, 29918, 3738, 29934, 1254, 322, 7431, 29898, 24381, 29889, 2098, 876, 470, 13, 4706, 313, 1972, 29918, 6768, 29889, 29882, 524, 1275, 13641, 5856, 29889, 23219, 1254, 1955, 29918, 3738, 29934, 1254, 322, 13, 308, 282, 29890, 29889, 14510, 3073, 877, 4564, 342, 272, 8785, 470, 13, 4706, 313, 1972, 29918, 6768, 29889, 29882, 524, 1275, 13641, 5856, 29889, 3738, 29931, 4945, 29918, 3738, 29934, 1254, 322, 282, 29890, 29889, 4572, 22164, 13, 418, 282, 29890, 29889, 29882, 524, 353, 2346, 29918, 6768, 29889, 29882, 524, 13, 13, 1678, 565, 1583, 29889, 949, 29918, 2230, 29918, 375, 338, 451, 6213, 29901, 13, 418, 282, 29890, 29889, 949, 29918, 2230, 29918, 375, 353, 1583, 29889, 949, 29918, 2230, 29918, 375, 13, 13, 13, 1678, 11009, 3032, 842, 29918, 3827, 29918, 949, 29918, 22197, 29898, 24381, 29892, 2346, 29918, 6768, 29897, 13, 1678, 11009, 3032, 842, 29918, 3827, 29918, 20736, 29898, 24381, 29897, 13, 13, 1678, 736, 282, 29890, 13, 13, 29871, 822, 903, 15480, 29918, 771, 6929, 29918, 392, 29918, 2972, 29918, 1609, 29898, 1311, 29892, 18246, 29892, 2318, 29918, 1609, 1125, 13, 1678, 9995, 7211, 1078, 393, 263, 2346, 29915, 29879, 18246, 322, 2318, 491, 1993, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 18246, 29901, 319, 731, 310, 1347, 2875, 2983, 297, 278, 18246, 29889, 13, 418, 2318, 29918, 1609, 29901, 319, 731, 310, 1347, 2875, 2983, 297, 278, 2318, 491, 29889, 13, 1678, 390, 1759, 267, 29901, 13, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 3089, 2392, 29901, 565, 278, 18246, 322, 2318, 13, 4706, 491, 6166, 526, 451, 5186, 29889, 13, 1678, 9995, 13, 1678, 565, 18246, 29901, 13, 418, 565, 2318, 29918, 1609, 29901, 13, 4706, 4805, 353, 731, 29898, 771, 6929, 29897, 448, 731, 29898, 2972, 29918, 1609, 29897, 13, 4706, 565, 4805, 29901, 13, 3986, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 3089, 2392, 29898, 13, 795, 525, 771, 24247, 7805, 4426, 451, 297, 278, 2318, 29918, 1609, 2980, 29901, 1273, 29879, 29915, 13, 795, 1273, 4805, 29897, 13, 1678, 25342, 2318, 29918, 1609, 29901, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 3089, 2392, 29898, 13, 3986, 525, 29883, 6735, 6084, 2318, 29918, 1609, 1728, 263, 18246, 1495, 13, 13, 1753, 3394, 29918, 1972, 29898, 1972, 29892, 16212, 29892, 903, 1989, 29922, 8516, 1125, 13, 29871, 9995, 5894, 9514, 278, 2183, 2346, 373, 263, 731, 310, 297, 29899, 14834, 2582, 29889, 13, 13, 29871, 910, 740, 508, 2189, 9365, 9301, 297, 278, 1418, 579, 487, 313, 29872, 29889, 29887, 263, 2346, 13, 29871, 411, 2999, 14585, 18094, 373, 1422, 4426, 29897, 1363, 599, 13, 29871, 6931, 526, 2309, 297, 3370, 29889, 1152, 9365, 393, 508, 884, 367, 8283, 373, 278, 13, 29871, 278, 1418, 579, 487, 29892, 278, 2582, 7371, 491, 445, 740, 1122, 451, 671, 278, 1021, 13, 29871, 12235, 20520, 408, 278, 1418, 579, 487, 29889, 1763, 9801, 24521, 29892, 6261, 13, 29871, 20520, 1818, 367, 1304, 313, 29872, 29889, 29887, 29889, 525, 22364, 6770, 297, 1837, 29918, 7728, 29892, 2023, 29892, 4770, 1989, 1649, 2824, 13, 13, 29871, 8170, 491, 4770, 1989, 1649, 881, 2337, 367, 1304, 746, 263, 13747, 1121, 338, 7429, 13, 29871, 313, 28952, 727, 338, 263, 2656, 1797, 373, 1790, 13149, 635, 5412, 2875, 467, 13, 13, 29871, 826, 3174, 29901, 13, 1678, 2346, 29901, 263, 1418, 579, 487, 29918, 1972, 29889, 3010, 304, 3394, 13, 1678, 16212, 29901, 263, 1051, 310, 2582, 29892, 310, 11472, 1134, 29892, 373, 607, 304, 3394, 278, 2346, 29889, 13, 1678, 903, 1989, 29901, 263, 740, 393, 4893, 385, 1543, 310, 278, 1121, 1409, 408, 385, 2980, 13, 4706, 322, 1818, 736, 385, 7855, 29918, 24381, 29906, 29889, 6691, 1184, 517, 29889, 960, 451, 6790, 29892, 278, 13, 4706, 10110, 740, 338, 1304, 313, 392, 16212, 1818, 367, 263, 1051, 310, 13, 4706, 7855, 29918, 24381, 29906, 29889, 6691, 1184, 517, 467, 13, 13, 29871, 16969, 29901, 13, 1678, 319, 11306, 310, 16212, 29892, 22289, 322, 10372, 5034, 304, 278, 2346, 29889, 13, 29871, 9995, 13, 29871, 565, 451, 338, 8758, 29898, 1972, 29892, 13641, 1125, 13, 1678, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 4706, 525, 1972, 2980, 1818, 367, 263, 1418, 579, 487, 29918, 1972, 29889, 3010, 313, 29995, 29878, 16029, 1273, 313, 1972, 29892, 876, 13, 13, 29871, 565, 451, 338, 8758, 29898, 296, 1907, 29892, 1051, 1125, 13, 1678, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 4706, 525, 296, 1907, 2980, 1818, 367, 263, 1051, 313, 29995, 29878, 16029, 1273, 313, 296, 1907, 29892, 876, 13, 13, 29871, 1820, 353, 903, 1989, 470, 313, 2892, 921, 29901, 921, 29897, 13, 13, 29871, 22289, 29918, 9902, 353, 518, 29878, 363, 364, 297, 16212, 565, 2346, 3032, 1989, 29918, 4572, 29898, 1989, 29898, 29878, 28166, 13, 13, 29871, 565, 451, 2346, 3032, 2098, 29901, 13, 13, 13, 13, 13, 1678, 565, 2346, 3032, 4572, 29918, 11965, 9593, 29901, 13, 418, 736, 518, 29878, 363, 364, 297, 22289, 29918, 9902, 565, 2346, 3032, 4572, 29918, 11965, 9593, 29898, 1989, 29898, 29878, 28166, 13, 1678, 736, 22289, 29918, 9902, 13, 13, 13, 13, 13, 13, 29871, 2983, 353, 2346, 3032, 2098, 3032, 657, 29918, 7728, 29918, 7039, 580, 13, 29871, 565, 2346, 3032, 4572, 29918, 11965, 9593, 29901, 13, 1678, 2983, 891, 29922, 2346, 3032, 4572, 29918, 11965, 9593, 3032, 657, 29918, 7728, 29918, 7039, 580, 13, 13, 13, 29871, 4864, 29918, 4572, 353, 903, 4854, 24217, 5072, 29898, 7039, 29897, 13, 13, 29871, 995, 29918, 10339, 353, 5159, 13, 29871, 363, 1121, 297, 22289, 29918, 9902, 29901, 13, 1678, 995, 29918, 1958, 353, 903, 5675, 29918, 1989, 29918, 1767, 29918, 1958, 29898, 1989, 29898, 2914, 511, 2983, 29897, 13, 13, 13, 13, 1678, 565, 4864, 29918, 4572, 3032, 7302, 29898, 1767, 29918, 1958, 29897, 322, 313, 13, 4706, 451, 2346, 3032, 4572, 29918, 11965, 9593, 470, 13, 4706, 2346, 3032, 4572, 29918, 11965, 9593, 3032, 558, 1540, 29898, 1767, 29918, 1958, 22164, 13, 418, 995, 29918, 1958, 1839, 1649, 2914, 1649, 2033, 353, 1121, 13, 418, 995, 29918, 10339, 29889, 4397, 29898, 1767, 29918, 1958, 29897, 13, 13, 29871, 995, 29918, 10339, 29889, 6605, 29898, 1989, 29922, 7692, 312, 8789, 29889, 21058, 29918, 517, 29918, 1989, 29898, 1972, 3032, 2098, 3032, 21058, 876, 13, 29871, 736, 518, 1767, 29918, 1958, 1839, 1649, 2914, 1649, 2033, 363, 995, 29918, 1958, 297, 995, 29918, 10339, 29962, 13, 13, 13, 1990, 903, 29909, 688, 358, 287, 3010, 7373, 5160, 3010, 1125, 13, 29871, 9995, 29909, 2346, 393, 4145, 1475, 263, 1418, 579, 487, 2346, 411, 297, 29899, 14834, 18094, 29914, 9902, 1213, 15945, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 3032, 1066, 3245, 29898, 29906, 29897, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 2346, 29892, 297, 29918, 14834, 29918, 9902, 29922, 8516, 29892, 297, 29918, 14834, 29918, 4572, 29922, 8516, 29892, 13, 1669, 4236, 29918, 4572, 287, 29918, 2798, 29922, 8516, 1125, 13, 1678, 9995, 23770, 363, 903, 29909, 688, 358, 287, 3010, 29889, 13, 13, 1678, 1938, 451, 1246, 4153, 29889, 4803, 278, 19725, 3168, 2012, 313, 29872, 29889, 29887, 29889, 13, 1678, 1418, 579, 487, 29918, 1972, 29889, 21920, 29918, 9902, 29897, 13, 13, 1678, 826, 3174, 29901, 13, 418, 2346, 29901, 319, 1418, 579, 487, 29918, 1972, 29889, 3010, 1203, 304, 18765, 29889, 13, 418, 297, 29918, 14834, 29918, 9902, 29901, 263, 1051, 310, 758, 29899, 12705, 322, 22289, 1121, 304, 788, 304, 278, 13, 4706, 4840, 310, 1418, 579, 487, 2582, 470, 6213, 869, 13, 418, 297, 29918, 14834, 29918, 4572, 29901, 263, 731, 310, 297, 29899, 14834, 18094, 304, 3394, 304, 278, 1418, 579, 487, 13, 4706, 2582, 470, 6213, 29889, 13, 418, 4236, 29918, 4572, 287, 29918, 2798, 29901, 278, 7472, 1353, 310, 1418, 579, 487, 16212, 393, 674, 367, 13, 4706, 22289, 714, 491, 297, 29918, 14834, 29918, 4572, 565, 2998, 29889, 13, 1678, 9995, 13, 1678, 565, 451, 338, 8758, 29898, 1972, 29892, 13641, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 1972, 2980, 881, 367, 1418, 579, 487, 29918, 1972, 29889, 3010, 313, 29995, 29878, 16029, 1273, 313, 1972, 29892, 876, 13, 1678, 565, 313, 262, 29918, 14834, 29918, 4572, 338, 451, 6213, 322, 13, 4706, 451, 338, 8758, 29898, 262, 29918, 14834, 29918, 4572, 29892, 19916, 23084, 9593, 22164, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 262, 29918, 14834, 29918, 4572, 2980, 881, 367, 525, 718, 4832, 29889, 7469, 29918, 710, 29898, 13, 795, 525, 4130, 579, 487, 29918, 1972, 29889, 5072, 23084, 9593, 313, 29995, 29878, 16029, 1273, 13, 795, 313, 262, 29918, 14834, 29918, 4572, 29892, 511, 525, 9420, 29899, 29947, 8785, 13, 1678, 565, 313, 262, 29918, 14834, 29918, 9902, 338, 451, 6213, 322, 13, 4706, 451, 338, 8758, 29898, 262, 29918, 14834, 29918, 9902, 29892, 1051, 22164, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 262, 29918, 14834, 29918, 9902, 2980, 881, 367, 263, 1051, 310, 29915, 718, 13, 3986, 4832, 29889, 7469, 29918, 710, 877, 4130, 579, 487, 29918, 29886, 29894, 29889, 6691, 1184, 517, 313, 29995, 29878, 16029, 1273, 13, 462, 308, 313, 262, 29918, 14834, 29918, 9902, 29892, 511, 525, 9420, 29899, 29947, 8785, 13, 1678, 1418, 579, 487, 29918, 8768, 29889, 7211, 403, 7798, 29898, 3317, 29918, 4572, 287, 29918, 2798, 29892, 13, 462, 462, 1678, 525, 3317, 29918, 4572, 287, 29918, 2798, 742, 13, 462, 462, 1678, 4069, 29918, 554, 29922, 5574, 29892, 13, 462, 462, 1678, 5225, 29918, 554, 29922, 5574, 29897, 13, 1678, 1583, 3032, 1972, 353, 2346, 13, 1678, 1583, 3032, 3317, 29918, 4572, 287, 29918, 2798, 353, 4236, 29918, 4572, 287, 29918, 2798, 13, 1678, 1583, 3032, 262, 29918, 14834, 29918, 4572, 353, 297, 29918, 14834, 29918, 4572, 13, 1678, 1583, 3032, 262, 29918, 14834, 29918, 9902, 353, 297, 29918, 14834, 29918, 9902, 13, 13, 29871, 732, 6799, 13, 29871, 822, 623, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 1972, 3032, 1989, 29918, 4572, 29889, 932, 13, 13, 29871, 732, 6799, 13, 29871, 822, 7397, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 1972, 3032, 1989, 29918, 4572, 29889, 22377, 13, 13, 29871, 732, 6799, 13, 29871, 822, 2924, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 1972, 3032, 1989, 29918, 4572, 29889, 14380, 13, 13, 29871, 732, 6799, 13, 29871, 822, 19525, 272, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 1972, 3032, 1989, 29918, 4572, 29889, 4564, 342, 272, 13, 13, 29871, 732, 6799, 13, 29871, 822, 4175, 29918, 11965, 9593, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 1972, 3032, 4572, 29918, 11965, 9593, 13, 13, 29871, 732, 6799, 13, 29871, 822, 1797, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 1972, 3032, 2098, 13, 13, 29871, 732, 6799, 13, 29871, 822, 2318, 29918, 1609, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 1972, 3032, 2972, 29918, 1609, 13, 13, 29871, 822, 1065, 29918, 12674, 29898, 1311, 29892, 11009, 29892, 2346, 29918, 6768, 29922, 8516, 1125, 13, 1678, 565, 451, 338, 8758, 29898, 13082, 29892, 1418, 579, 487, 29918, 29878, 6739, 29889, 5160, 5350, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 13082, 881, 367, 263, 1418, 579, 487, 29918, 29878, 6739, 29889, 5160, 5350, 313, 29995, 29878, 16029, 1273, 313, 13082, 29892, 876, 13, 13, 1678, 565, 451, 13641, 5856, 29889, 275, 29918, 13305, 29898, 1972, 29918, 6768, 1125, 13, 13, 13, 418, 2346, 29918, 6768, 353, 13641, 5856, 29898, 2917, 29922, 1972, 29918, 6768, 29897, 13, 13, 1678, 565, 1583, 3032, 1972, 3032, 2098, 29901, 13, 13, 13, 418, 3620, 353, 11117, 8149, 29918, 6194, 2396, 7700, 29913, 13, 1678, 1683, 29901, 13, 418, 3620, 353, 6571, 13, 13, 1678, 565, 1583, 3032, 262, 29918, 14834, 29918, 4572, 470, 1583, 3032, 262, 29918, 14834, 29918, 9902, 29901, 13, 13, 13, 13, 418, 297, 29918, 14834, 29918, 10289, 353, 2346, 29918, 6768, 29889, 10289, 13, 418, 297, 29918, 14834, 29918, 13400, 353, 2346, 29918, 6768, 29889, 13400, 13, 13, 418, 565, 297, 29918, 14834, 29918, 13400, 338, 451, 6213, 29901, 13, 4706, 565, 1583, 3032, 262, 29918, 14834, 29918, 4572, 338, 6213, 29901, 13, 13, 3986, 3620, 1839, 13400, 2033, 353, 297, 29918, 14834, 29918, 13400, 13, 4706, 25342, 1583, 3032, 3317, 29918, 4572, 287, 29918, 2798, 338, 451, 6213, 29901, 13, 13, 13, 3986, 3620, 1839, 13400, 2033, 353, 297, 29918, 14834, 29918, 13400, 718, 1583, 3032, 3317, 29918, 4572, 287, 29918, 2798, 13, 4706, 1683, 29901, 13, 13, 3986, 3620, 1839, 13400, 2033, 353, 6213, 13, 13, 418, 565, 297, 29918, 14834, 29918, 10289, 29901, 13, 13, 4706, 3620, 1839, 10289, 2033, 353, 6213, 13, 4706, 565, 3620, 29889, 657, 877, 13400, 742, 6213, 29897, 338, 451, 6213, 29901, 13, 3986, 3620, 1839, 13400, 2033, 4619, 297, 29918, 14834, 29918, 10289, 13, 418, 1683, 29901, 13, 4706, 297, 29918, 14834, 29918, 10289, 353, 6213, 13, 1678, 1683, 29901, 13, 418, 297, 29918, 14834, 29918, 10289, 353, 6213, 13, 418, 297, 29918, 14834, 29918, 13400, 353, 6213, 13, 13, 1678, 9120, 29918, 1972, 29918, 6768, 353, 13641, 5856, 29898, 2917, 29922, 1972, 29918, 6768, 29892, 3579, 25990, 29897, 13, 1678, 565, 11009, 3032, 2754, 29918, 3259, 1275, 1418, 579, 487, 29918, 29878, 6739, 3032, 29907, 3927, 15789, 29918, 14573, 1254, 29949, 1525, 29918, 29963, 29896, 29901, 13, 418, 12428, 353, 1583, 3032, 1972, 3032, 517, 29918, 24381, 29918, 29894, 29896, 29898, 13082, 29892, 9120, 29918, 1972, 29918, 6768, 29897, 13, 1678, 1683, 29901, 13, 418, 12428, 353, 1583, 3032, 1972, 3032, 517, 29918, 24381, 29898, 13082, 29892, 9120, 29918, 1972, 29918, 6768, 29897, 13, 13, 1678, 1369, 29918, 18127, 353, 2346, 29918, 6768, 29889, 2962, 29918, 18127, 13, 1678, 565, 451, 1369, 29918, 18127, 322, 2346, 29918, 6768, 29889, 5498, 346, 29918, 29883, 1295, 943, 29901, 13, 418, 1369, 29918, 18127, 353, 315, 5966, 580, 13, 13, 1678, 736, 903, 29909, 688, 358, 287, 23145, 29889, 3258, 29918, 12674, 29898, 1311, 29892, 9120, 29918, 1972, 29918, 6768, 29892, 11009, 29892, 12428, 29892, 13, 462, 462, 4706, 297, 29918, 14834, 29918, 10289, 29922, 262, 29918, 14834, 29918, 10289, 29892, 13, 462, 462, 4706, 297, 29918, 14834, 29918, 13400, 29922, 262, 29918, 14834, 29918, 13400, 29892, 13, 462, 462, 4706, 1369, 29918, 18127, 29922, 2962, 29918, 18127, 29897, 13, 13, 13, 29992, 4130, 579, 487, 29918, 29878, 6739, 3032, 1066, 3245, 29898, 29896, 29897, 13, 1753, 11658, 29918, 9902, 29898, 1972, 29892, 4784, 29918, 296, 1907, 29922, 8516, 29892, 11132, 29918, 8149, 29922, 8516, 1125, 13, 29871, 9995, 9832, 1078, 263, 2346, 1203, 393, 674, 11658, 3620, 964, 2582, 29889, 13, 13, 29871, 826, 3174, 29901, 13, 1678, 2346, 29901, 450, 1418, 579, 487, 29918, 1972, 29889, 3010, 304, 18765, 13, 1678, 4784, 29918, 296, 1907, 29901, 319, 1051, 310, 7855, 29918, 24381, 29906, 29889, 6691, 1184, 517, 29915, 29879, 393, 505, 1063, 4784, 13, 418, 322, 881, 2125, 20136, 975, 738, 1819, 4133, 491, 2346, 29889, 13, 1678, 11132, 29918, 8149, 29901, 319, 1051, 310, 7855, 29918, 24381, 29906, 29889, 7422, 29915, 29879, 363, 16212, 393, 505, 1063, 13, 418, 11132, 322, 881, 367, 6206, 515, 2346, 2582, 29889, 13, 13, 29871, 16969, 29901, 13, 1678, 319, 1418, 579, 487, 29918, 1972, 29889, 29909, 688, 358, 287, 3010, 565, 297, 3370, 21166, 338, 3734, 29892, 13, 29871, 2346, 6467, 29889, 13, 29871, 9995, 13, 29871, 565, 451, 338, 8758, 29898, 1972, 29892, 13641, 1125, 13, 1678, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 4706, 525, 1972, 2980, 881, 367, 1418, 579, 487, 29918, 1972, 29889, 3010, 313, 29995, 29878, 16029, 1273, 313, 1972, 29892, 876, 13, 13, 29871, 20831, 1145, 29918, 8149, 353, 731, 580, 13, 13, 29871, 565, 11132, 29918, 8149, 338, 451, 6213, 29901, 13, 1678, 565, 451, 338, 8758, 29898, 311, 22742, 29918, 8149, 29892, 1051, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 311, 22742, 29918, 8149, 2980, 1818, 367, 263, 1051, 313, 29995, 29878, 16029, 1273, 313, 311, 22742, 29918, 8149, 29892, 876, 13, 1678, 11132, 29918, 8149, 353, 1051, 29898, 28319, 29889, 13529, 267, 29889, 4572, 29898, 1972, 3032, 1989, 29918, 4572, 29892, 11132, 29918, 8149, 876, 13, 1678, 363, 1820, 297, 11132, 29918, 8149, 29901, 13, 418, 20831, 1145, 29918, 8149, 29889, 1202, 29898, 4130, 579, 487, 29918, 8768, 29889, 7422, 1762, 2558, 1917, 29898, 1989, 876, 13, 13, 29871, 565, 4784, 29918, 296, 1907, 338, 451, 6213, 29901, 13, 1678, 565, 451, 338, 8758, 29898, 21402, 29918, 296, 1907, 29892, 1051, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 21402, 29918, 296, 1907, 2980, 1818, 367, 263, 1051, 313, 29995, 29878, 16029, 1273, 313, 21402, 29918, 296, 1907, 29892, 876, 13, 13, 13, 1678, 4784, 29918, 296, 1907, 353, 1051, 29898, 13, 4706, 4832, 29889, 13529, 267, 29889, 4572, 29898, 1972, 3032, 1989, 29918, 4572, 29892, 4784, 29918, 296, 1907, 876, 13, 1678, 363, 7855, 297, 4784, 29918, 296, 1907, 29901, 13, 418, 20831, 1145, 29918, 8149, 29889, 1202, 29898, 4130, 579, 487, 29918, 8768, 29889, 7422, 1762, 2558, 1917, 29898, 10041, 29889, 1989, 876, 13, 13, 1678, 4784, 29918, 296, 1907, 353, 3394, 29918, 1972, 29898, 1972, 29892, 4784, 29918, 296, 1907, 29897, 13, 29871, 1683, 29901, 13, 1678, 4784, 29918, 296, 1907, 353, 5159, 13, 13, 29871, 565, 451, 20831, 1145, 29918, 8149, 29901, 13, 1678, 736, 2346, 13, 13, 29871, 736, 903, 29909, 688, 358, 287, 3010, 29898, 1972, 29892, 13, 462, 308, 297, 29918, 14834, 29918, 4572, 29922, 29918, 23805, 5072, 29898, 957, 2429, 1145, 29918, 8149, 511, 13, 462, 308, 297, 29918, 14834, 29918, 9902, 29922, 21402, 29918, 296, 1907, 29892, 13, 462, 308, 4236, 29918, 4572, 287, 29918, 2798, 29922, 2435, 29898, 957, 2429, 1145, 29918, 8149, 876, 13, 13, 13, 1990, 903, 23145, 21741, 29898, 3318, 1125, 13, 29871, 9995, 1469, 7258, 4249, 278, 9853, 267, 310, 263, 2346, 1213, 15945, 13, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 2346, 29892, 2346, 29918, 6768, 29892, 11009, 29892, 13, 1669, 18765, 287, 29918, 1972, 29922, 8516, 29892, 2847, 29918, 10289, 29922, 8516, 1125, 13, 1678, 1583, 17255, 1972, 353, 2346, 13, 1678, 1583, 17255, 1972, 29918, 6768, 353, 2346, 29918, 6768, 13, 1678, 1583, 17255, 13082, 353, 11009, 13, 1678, 1583, 17255, 2987, 358, 287, 29918, 1972, 353, 18765, 287, 29918, 1972, 13, 1678, 1583, 17255, 11102, 29918, 4102, 29918, 2914, 29918, 5014, 287, 353, 7700, 13, 1678, 565, 2847, 29918, 10289, 338, 6213, 29901, 13, 418, 2847, 29918, 10289, 353, 2346, 29918, 6768, 29889, 10289, 470, 29871, 29900, 13, 1678, 1583, 17255, 9684, 29918, 10289, 353, 2847, 29918, 10289, 13, 1678, 1583, 17255, 1745, 17225, 29918, 13400, 353, 2346, 29918, 6768, 29889, 13400, 13, 13, 29871, 732, 6799, 13, 29871, 822, 2346, 29898, 1311, 1125, 13, 1678, 736, 1583, 17255, 1972, 13, 13, 29871, 732, 6799, 13, 29871, 822, 2346, 29918, 6768, 29898, 1311, 1125, 13, 1678, 736, 1583, 17255, 1972, 29918, 6768, 13, 13, 29871, 732, 6799, 13, 29871, 822, 11009, 29898, 1311, 1125, 13, 1678, 736, 1583, 17255, 13082, 13, 13, 29871, 732, 6799, 13, 29871, 822, 18765, 287, 29918, 1972, 29898, 1311, 1125, 13, 1678, 736, 1583, 17255, 2987, 358, 287, 29918, 1972, 13, 13, 29871, 732, 6799, 13, 29871, 822, 6611, 29918, 6194, 29898, 1311, 1125, 13, 1678, 736, 1583, 17255, 8149, 29918, 6194, 13, 13, 29871, 732, 6799, 13, 29871, 822, 13126, 29918, 1972, 29898, 1311, 1125, 13, 1678, 736, 1583, 17255, 2388, 2356, 29918, 1972, 13, 13, 29871, 732, 6799, 13, 29871, 822, 3806, 29918, 10289, 29898, 1311, 1125, 13, 1678, 736, 1583, 17255, 9684, 29918, 10289, 13, 13, 29871, 732, 6799, 13, 29871, 822, 9886, 29918, 13400, 29898, 1311, 1125, 13, 1678, 736, 1583, 17255, 1745, 17225, 29918, 13400, 13, 13, 29871, 732, 6799, 13, 29871, 822, 2380, 29918, 1761, 29898, 1311, 1125, 13, 1678, 9995, 11609, 29879, 278, 1051, 310, 18111, 1304, 491, 278, 2346, 29889, 13, 1678, 29863, 14981, 6213, 746, 278, 13304, 947, 451, 2334, 282, 29890, 29918, 517, 29918, 2248, 29889, 13, 1678, 9995, 13, 1678, 736, 1583, 17255, 2248, 29918, 1761, 13, 13, 29871, 822, 1889, 29918, 16175, 29898, 1311, 29892, 9853, 1125, 13, 1678, 565, 1583, 29889, 13082, 3032, 2754, 29918, 3259, 1275, 1418, 579, 487, 29918, 29878, 6739, 3032, 29907, 3927, 15789, 29918, 14573, 1254, 29949, 1525, 29918, 29963, 29896, 29901, 13, 418, 14993, 2986, 29918, 9902, 353, 9853, 29889, 2574, 2986, 29918, 9902, 13, 418, 954, 29918, 9902, 353, 7431, 29898, 16175, 29889, 10041, 29918, 9902, 29897, 13, 1678, 1683, 29901, 13, 418, 14993, 2986, 29918, 9902, 353, 9853, 29889, 2574, 2986, 29918, 9902, 13, 418, 954, 29918, 9902, 353, 7431, 29898, 16175, 29889, 2914, 29897, 13, 1678, 1583, 17255, 9684, 29918, 10289, 22361, 14993, 2986, 29918, 9902, 13, 1678, 565, 1583, 17255, 1745, 17225, 29918, 13400, 338, 451, 6213, 29901, 13, 418, 1583, 17255, 1745, 17225, 29918, 13400, 22361, 954, 29918, 9902, 13, 13, 13, 1678, 565, 451, 1583, 17255, 11102, 29918, 4102, 29918, 2914, 29918, 5014, 287, 29901, 13, 418, 1583, 17255, 11102, 29918, 4102, 29918, 2914, 29918, 5014, 287, 353, 5852, 13, 418, 565, 1583, 29889, 13082, 3032, 2754, 29918, 3259, 1275, 1418, 579, 487, 29918, 29878, 6739, 3032, 29907, 3927, 15789, 29918, 14573, 1254, 29949, 1525, 29918, 29963, 29896, 29901, 13, 4706, 1121, 29918, 1853, 353, 9853, 29889, 10041, 29918, 2914, 29918, 1853, 13, 4706, 1583, 17255, 8149, 29918, 6194, 353, 1121, 29918, 1853, 1275, 27304, 839, 271, 579, 487, 29889, 6691, 3591, 29889, 10818, 29918, 1164, 16786, 13, 4706, 1583, 17255, 2388, 2356, 29918, 1972, 353, 6213, 13, 13, 4706, 1583, 17255, 2248, 29918, 1761, 353, 6213, 13, 418, 1683, 29901, 13, 4706, 1583, 17255, 8149, 29918, 6194, 353, 9853, 29889, 8149, 29918, 6194, 13, 4706, 565, 9853, 29889, 14510, 3073, 877, 2388, 2356, 29918, 1972, 29374, 13, 3986, 1583, 17255, 2388, 2356, 29918, 1972, 353, 9853, 29889, 2388, 2356, 29918, 1972, 13, 4706, 1683, 29901, 13, 3986, 1583, 17255, 2388, 2356, 29918, 1972, 353, 6213, 13, 4706, 1018, 29901, 13, 3986, 1583, 17255, 2248, 29918, 1761, 353, 518, 13, 795, 1583, 17255, 13082, 29889, 21412, 29889, 24381, 29918, 517, 29918, 2248, 29898, 2248, 29918, 24381, 29897, 13, 795, 363, 2380, 29918, 24381, 297, 9853, 29889, 2248, 13, 3986, 4514, 13, 4706, 5174, 2216, 1888, 2037, 287, 2392, 29901, 13, 13, 3986, 1583, 17255, 2248, 29918, 1761, 353, 6213, 13, 13, 13, 1990, 350, 905, 29898, 3318, 1125, 13, 29871, 9995, 29909, 9853, 310, 2582, 4133, 491, 263, 2346, 29889, 13, 13, 29871, 910, 770, 3743, 263, 9853, 310, 2582, 4133, 515, 278, 1418, 579, 487, 322, 13, 29871, 8018, 15562, 29889, 910, 15562, 7805, 29901, 13, 1678, 2346, 29901, 450, 2346, 393, 7371, 445, 9853, 13, 1678, 2346, 29918, 6768, 29901, 450, 13641, 5856, 1304, 304, 1065, 278, 2346, 29889, 910, 947, 451, 13, 418, 11122, 738, 3987, 4502, 304, 278, 869, 4622, 29918, 16175, 580, 1246, 393, 2825, 278, 13, 418, 1857, 9853, 29889, 13, 1678, 1369, 29918, 18127, 29892, 1095, 29918, 18127, 29901, 4525, 526, 278, 18580, 943, 393, 508, 367, 1304, 13, 418, 411, 263, 2346, 304, 337, 29899, 9155, 445, 9853, 29889, 2688, 508, 884, 367, 1304, 304, 13, 418, 1284, 599, 16212, 1434, 470, 1156, 278, 2183, 9853, 313, 1609, 671, 1369, 29918, 18127, 408, 13, 418, 385, 1095, 10677, 470, 11289, 1224, 29874, 467, 1369, 29918, 18127, 508, 884, 367, 12862, 304, 13, 418, 1298, 304, 263, 2602, 2629, 278, 9853, 773, 315, 5966, 29889, 17263, 749, 2141, 13, 1678, 14993, 2986, 29918, 9902, 29901, 278, 1353, 310, 1121, 14993, 2986, 1363, 310, 278, 9210, 13, 418, 2183, 304, 278, 2009, 393, 5759, 372, 29889, 910, 508, 367, 731, 2845, 373, 13, 418, 278, 2441, 13641, 29889, 3389, 580, 2009, 470, 297, 15352, 869, 4622, 29918, 16175, 580, 5717, 29889, 13, 1678, 901, 29918, 9902, 29901, 960, 445, 338, 1565, 727, 526, 901, 2582, 393, 508, 367, 27387, 13, 418, 2845, 491, 869, 4622, 29918, 16175, 580, 470, 350, 905, 261, 29889, 4622, 2141, 13, 13, 29871, 910, 770, 338, 884, 2221, 304, 6699, 278, 2446, 9853, 310, 278, 2346, 773, 13, 29871, 869, 4622, 29918, 16175, 2141, 1094, 9853, 267, 310, 2582, 1818, 367, 6699, 287, 7797, 368, 29892, 869, 4622, 29918, 16175, 580, 13, 29871, 508, 871, 367, 2000, 2748, 29889, 3462, 3245, 5717, 304, 869, 4622, 29918, 16175, 580, 674, 736, 6213, 29889, 13, 29871, 1932, 727, 526, 694, 901, 9853, 267, 869, 4622, 29918, 16175, 580, 674, 736, 6213, 408, 1532, 29889, 3940, 13, 29871, 393, 9853, 267, 4133, 491, 4256, 1218, 975, 350, 905, 261, 674, 2337, 736, 6213, 363, 13, 29871, 869, 4622, 29918, 16175, 580, 408, 278, 350, 1624, 17766, 6699, 292, 278, 2446, 9853, 6336, 29889, 13, 13, 29871, 319, 350, 905, 12234, 11524, 278, 1121, 310, 263, 2323, 390, 9026, 2009, 29889, 450, 1418, 579, 487, 13, 29871, 1751, 1078, 373, 263, 376, 13318, 7225, 29908, 8405, 577, 278, 9853, 4133, 491, 869, 4622, 29918, 16175, 580, 13, 29871, 470, 13641, 29889, 3389, 29918, 12674, 2141, 657, 29918, 2914, 580, 1122, 451, 505, 15787, 278, 13877, 9210, 13, 29871, 470, 1353, 310, 2582, 313, 6550, 2164, 1549, 383, 3486, 5856, 29889, 10289, 322, 13, 29871, 383, 3486, 5856, 29889, 16175, 29918, 2311, 8307, 467, 1763, 15523, 1438, 25091, 13, 29871, 5684, 9853, 267, 1122, 367, 4312, 313, 2541, 383, 3486, 5856, 393, 6084, 278, 9886, 13, 29871, 9210, 470, 2582, 4312, 467, 450, 350, 905, 261, 770, 298, 2247, 1438, 27028, 29889, 13, 29871, 9995, 13, 13, 29871, 4770, 2574, 2986, 29918, 18127, 353, 6213, 13, 29871, 4770, 355, 29918, 18127, 353, 6213, 13, 13, 29871, 732, 1990, 5696, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 3032, 1066, 3245, 29898, 29945, 29897, 13, 29871, 822, 1653, 29918, 12674, 29898, 25932, 29892, 2346, 29892, 2346, 29918, 6768, 29892, 11009, 29892, 12428, 29892, 13, 462, 259, 1369, 29918, 18127, 1125, 13, 1678, 9853, 29918, 12366, 353, 903, 23145, 21741, 29898, 1972, 29892, 2346, 29918, 6768, 29892, 11009, 29897, 13, 1678, 9853, 29900, 353, 1067, 29879, 29898, 16175, 29918, 12366, 29892, 1369, 29918, 18127, 29922, 2962, 29918, 18127, 29897, 13, 1678, 736, 9853, 29900, 3032, 5675, 29918, 1972, 29918, 29878, 6739, 29918, 4804, 29898, 1972, 29918, 6768, 29892, 12428, 29897, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 3032, 1066, 3245, 29898, 29906, 29897, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 9853, 29918, 12366, 29892, 1369, 29918, 18127, 29922, 19890, 580, 1125, 13, 1678, 9995, 23770, 29889, 13, 13, 1678, 910, 770, 338, 13319, 297, 22950, 313, 650, 746, 385, 390, 9026, 338, 2665, 322, 1790, 13, 1678, 746, 385, 364, 6739, 338, 8676, 29897, 322, 881, 451, 367, 13319, 4153, 6824, 13, 1678, 4803, 13641, 29889, 3389, 29918, 12674, 2141, 657, 29918, 2914, 580, 304, 1653, 263, 350, 905, 470, 13641, 29889, 3389, 580, 13, 1678, 304, 671, 263, 9853, 261, 29889, 13, 13, 1678, 910, 5823, 947, 451, 2189, 1147, 2450, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 9853, 29918, 12366, 29901, 3630, 7258, 1546, 9853, 267, 363, 263, 263, 2323, 2346, 1065, 29889, 13, 418, 1369, 29918, 18127, 29901, 28379, 10677, 13330, 1434, 445, 9853, 29889, 13, 1678, 9995, 13, 13, 13, 1678, 1583, 3032, 16175, 29918, 12366, 353, 9853, 29918, 12366, 13, 1678, 1583, 17255, 2962, 29918, 18127, 353, 1369, 29918, 18127, 13, 13, 29871, 732, 6799, 13, 29871, 822, 2346, 29918, 6768, 29898, 1311, 1125, 13, 1678, 9995, 1576, 13641, 5856, 1304, 304, 10563, 278, 937, 9853, 1213, 15945, 13, 1678, 736, 1583, 3032, 16175, 29918, 12366, 29889, 1972, 29918, 6768, 13, 13, 29871, 732, 6799, 13, 29871, 822, 2346, 29898, 1311, 1125, 13, 1678, 9995, 1576, 2346, 278, 1857, 9853, 2996, 515, 1213, 15945, 13, 1678, 736, 1583, 3032, 16175, 29918, 12366, 29889, 1972, 13, 13, 29871, 732, 6799, 13, 29871, 822, 2582, 29898, 1311, 1125, 13, 1678, 9995, 29909, 1051, 310, 16212, 297, 445, 9853, 1213, 15945, 13, 1678, 736, 1583, 17255, 9902, 13, 13, 29871, 732, 6799, 13, 29871, 822, 6611, 29918, 6194, 29898, 1311, 1125, 13, 1678, 9995, 8809, 1979, 278, 16212, 297, 445, 9853, 871, 1712, 6611, 1213, 15945, 13, 1678, 736, 1583, 3032, 16175, 29918, 12366, 29889, 8149, 29918, 6194, 13, 13, 29871, 732, 6799, 13, 29871, 822, 2380, 29918, 1761, 29898, 1311, 1125, 13, 1678, 9995, 11609, 29879, 278, 1051, 310, 18111, 1304, 304, 1236, 689, 445, 9853, 29915, 29879, 2346, 29889, 13, 1678, 29863, 14981, 6213, 746, 278, 13304, 947, 451, 2334, 282, 29890, 29918, 517, 29918, 2248, 29889, 13, 1678, 9995, 13, 1678, 736, 1583, 3032, 16175, 29918, 12366, 29889, 2248, 29918, 1761, 13, 13, 29871, 732, 6799, 13, 29871, 822, 1369, 29918, 18127, 29898, 1311, 1125, 13, 1678, 9995, 29909, 10677, 393, 3291, 304, 278, 2602, 925, 1434, 278, 1857, 9853, 1213, 15945, 13, 1678, 736, 1583, 17255, 2962, 29918, 18127, 13, 13, 29871, 732, 6799, 13, 29871, 822, 1095, 29918, 18127, 29898, 1311, 1125, 13, 1678, 9995, 29909, 10677, 393, 3291, 304, 278, 2602, 925, 1156, 278, 1857, 9853, 1213, 15945, 13, 1678, 736, 1583, 17255, 355, 29918, 18127, 13, 13, 29871, 732, 6799, 13, 29871, 822, 14993, 2986, 29918, 9902, 29898, 1311, 1125, 13, 1678, 9995, 1576, 1353, 310, 2582, 14993, 2986, 1363, 310, 385, 9210, 297, 278, 2009, 29889, 13, 13, 1678, 530, 9210, 338, 15787, 1434, 738, 2582, 526, 4133, 29889, 450, 1369, 29918, 18127, 13, 1678, 3291, 304, 278, 2602, 297, 278, 2346, 1434, 278, 14993, 2986, 2582, 29889, 13, 1678, 9995, 13, 1678, 736, 1583, 3032, 2574, 2986, 29918, 9902, 13, 13, 29871, 732, 6799, 13, 29871, 822, 901, 29918, 9902, 29898, 1311, 1125, 13, 1678, 9995, 8809, 1979, 901, 2582, 508, 367, 27387, 515, 278, 2346, 1213, 15945, 13, 1678, 736, 1583, 17255, 5514, 29918, 9902, 13, 13, 29871, 822, 2446, 29918, 16175, 29898, 1311, 29892, 6699, 29918, 6768, 29922, 8516, 1125, 13, 1678, 9995, 29903, 9524, 5794, 679, 278, 2446, 9853, 470, 6213, 565, 727, 526, 694, 901, 9853, 267, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 6699, 29918, 6768, 29901, 28379, 6699, 3987, 304, 671, 746, 6699, 292, 278, 2446, 9853, 29889, 13, 4706, 4702, 3192, 411, 1716, 278, 6699, 3987, 373, 278, 2441, 1246, 322, 278, 13, 4706, 3957, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 319, 716, 350, 905, 310, 2582, 470, 6213, 565, 2845, 278, 2446, 9853, 756, 2307, 1063, 13, 418, 6699, 287, 470, 727, 526, 694, 901, 2582, 29889, 13, 1678, 9995, 13, 1678, 7465, 29918, 353, 1583, 29889, 4622, 29918, 16175, 29918, 12674, 29898, 9155, 29918, 6768, 29897, 13, 1678, 565, 7465, 29918, 338, 6213, 29901, 13, 418, 736, 6213, 13, 1678, 736, 7465, 5396, 657, 29918, 2914, 580, 13, 13, 29871, 822, 903, 2388, 2356, 29918, 1972, 29898, 1311, 1125, 13, 1678, 736, 1583, 3032, 16175, 29918, 12366, 29889, 2388, 2356, 29918, 1972, 13, 13, 29871, 822, 10677, 29898, 1311, 29892, 2380, 1125, 13, 1678, 9995, 29954, 1691, 278, 10677, 393, 3291, 925, 1156, 278, 1121, 472, 2380, 448, 29871, 29896, 29889, 13, 13, 1678, 450, 2380, 338, 6198, 304, 937, 1121, 297, 869, 9902, 29889, 4001, 1369, 29918, 18127, 13, 1678, 3291, 304, 278, 2602, 1434, 278, 937, 14993, 2986, 1121, 29892, 278, 3464, 310, 13, 1678, 18111, 445, 740, 11286, 338, 9078, 304, 13, 1678, 21069, 2574, 2986, 29918, 9902, 29892, 7431, 29898, 9902, 29897, 1822, 13, 13, 1678, 1152, 1342, 29892, 773, 1369, 29918, 18127, 29922, 16175, 29889, 18127, 29898, 29875, 29897, 322, 13, 1678, 1095, 29918, 18127, 29922, 16175, 29889, 18127, 29898, 29926, 29897, 674, 736, 278, 2582, 1476, 297, 13, 1678, 9853, 29889, 9902, 29961, 29875, 29901, 29926, 1822, 3940, 393, 738, 1121, 2715, 297, 278, 3464, 313, 29875, 29899, 29896, 29892, 432, 29962, 13, 1678, 674, 2615, 297, 278, 716, 2346, 29915, 29879, 2582, 29889, 13, 13, 1678, 24412, 29901, 3139, 2380, 297, 278, 3464, 8521, 2574, 2986, 29918, 9902, 29892, 29871, 29900, 29897, 1122, 4556, 13, 1678, 3133, 362, 304, 3052, 470, 7929, 2582, 565, 5377, 263, 10804, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 2380, 29901, 530, 938, 29892, 278, 2380, 6198, 304, 278, 937, 1121, 1434, 607, 278, 13, 4706, 10677, 881, 1298, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 319, 315, 5966, 393, 3291, 304, 263, 2602, 925, 1156, 278, 1121, 2380, 448, 29871, 29896, 29892, 13, 418, 607, 565, 1304, 408, 263, 1369, 29918, 18127, 674, 4556, 278, 937, 1121, 304, 367, 13, 418, 9853, 29889, 2914, 29961, 2248, 1822, 13, 1678, 9995, 13, 1678, 565, 451, 338, 8758, 29898, 2248, 29892, 4832, 29889, 16031, 29918, 8768, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 2248, 2980, 881, 367, 385, 6043, 313, 29995, 29878, 16029, 1273, 313, 2248, 29892, 876, 13, 1678, 565, 451, 448, 1311, 3032, 2574, 2986, 29918, 9902, 5277, 2380, 5277, 7431, 29898, 1311, 17255, 9902, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 2248, 2980, 1818, 367, 297, 278, 20978, 573, 3464, 518, 29995, 29881, 29892, 1273, 29881, 29962, 29915, 1273, 13, 3986, 8521, 1311, 3032, 2574, 2986, 29918, 9902, 29892, 7431, 29898, 1311, 17255, 9902, 4961, 13, 13, 1678, 565, 2380, 1275, 448, 1311, 3032, 2574, 2986, 29918, 9902, 29901, 13, 418, 736, 1583, 17255, 2962, 29918, 18127, 13, 1678, 25342, 313, 2248, 1275, 29871, 29900, 322, 13, 3986, 1583, 17255, 2574, 2986, 29918, 18127, 1125, 13, 418, 736, 1583, 17255, 2574, 2986, 29918, 18127, 13, 1678, 25342, 2380, 1405, 29871, 29900, 322, 1583, 17255, 2914, 29918, 29883, 1295, 943, 29901, 13, 418, 736, 1583, 17255, 2914, 29918, 29883, 1295, 943, 29961, 2248, 448, 29871, 29896, 29962, 13, 13, 1678, 25342, 2380, 1275, 7431, 29898, 1311, 17255, 9902, 1125, 13, 418, 736, 1583, 17255, 355, 29918, 18127, 13, 1678, 1683, 29901, 13, 13, 13, 13, 13, 418, 736, 1583, 17255, 2962, 29918, 18127, 29889, 17263, 749, 29898, 2248, 718, 1583, 3032, 2574, 2986, 29918, 9902, 29892, 13, 462, 462, 308, 1583, 3032, 16175, 29918, 12366, 29889, 1972, 29892, 13, 462, 462, 308, 1583, 3032, 16175, 29918, 12366, 29889, 13082, 29897, 13, 13, 29871, 822, 2446, 29918, 16175, 29918, 12674, 29898, 1311, 29892, 6699, 29918, 6768, 29922, 8516, 1125, 13, 1678, 9995, 2887, 9524, 5794, 679, 278, 2446, 9853, 470, 6213, 565, 727, 526, 694, 901, 9853, 267, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 6699, 29918, 6768, 29901, 28379, 6699, 3987, 304, 671, 746, 6699, 292, 278, 2446, 9853, 29889, 13, 4706, 4702, 3192, 411, 1716, 278, 6699, 3987, 373, 278, 2441, 1246, 322, 278, 13, 4706, 3957, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 530, 7465, 1203, 393, 508, 367, 1304, 304, 679, 278, 2446, 350, 905, 470, 6213, 565, 2845, 13, 418, 278, 2446, 9853, 756, 2307, 1063, 6699, 287, 470, 727, 526, 694, 901, 2582, 29889, 13, 1678, 9995, 13, 1678, 565, 451, 1583, 17255, 4130, 579, 487, 29918, 18127, 29901, 13, 418, 736, 6213, 13, 13, 1678, 6699, 29918, 6768, 29892, 2446, 29918, 16175, 353, 1583, 3032, 5675, 29918, 4622, 29918, 16175, 29898, 9155, 29918, 6768, 29897, 13, 13, 1678, 565, 313, 9155, 29918, 6768, 338, 451, 6213, 322, 13, 4706, 451, 383, 3486, 5856, 29889, 275, 29918, 13305, 29898, 9155, 29918, 6768, 22164, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 877, 13919, 6699, 3987, 29889, 1495, 13, 13, 13, 13, 13, 1678, 2295, 353, 1583, 3032, 16175, 29918, 12366, 29889, 1972, 29918, 6768, 29889, 14634, 29898, 9155, 29918, 6768, 29897, 13, 1678, 11009, 353, 2446, 29918, 16175, 3032, 16175, 29918, 12366, 29889, 13082, 13, 1678, 13877, 29918, 10289, 353, 29871, 29900, 13, 1678, 565, 6699, 29918, 6768, 338, 451, 6213, 322, 6699, 29918, 6768, 29889, 10289, 338, 451, 6213, 29901, 13, 418, 13877, 29918, 10289, 353, 6699, 29918, 6768, 29889, 10289, 13, 1678, 565, 11009, 3032, 2754, 29918, 3259, 1275, 1418, 579, 487, 29918, 29878, 6739, 3032, 29907, 3927, 15789, 29918, 14573, 1254, 29949, 1525, 29918, 29963, 29896, 29901, 13, 418, 565, 1583, 3032, 16175, 29918, 12366, 29889, 9684, 29918, 10289, 2804, 13877, 29918, 10289, 29901, 13, 4706, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 9651, 525, 29089, 2009, 278, 2446, 9853, 411, 263, 1422, 9210, 1135, 525, 13, 9651, 525, 3806, 29889, 1222, 6021, 29901, 1273, 29879, 29892, 15992, 29901, 1273, 29879, 6169, 13, 9651, 1273, 313, 1311, 3032, 16175, 29918, 12366, 29889, 9684, 29918, 10289, 29892, 13877, 29918, 10289, 876, 13, 418, 4046, 353, 1583, 3032, 16175, 29918, 12366, 29889, 1745, 17225, 29918, 13400, 13, 418, 2446, 29918, 6768, 353, 13641, 5856, 29898, 10289, 29922, 1311, 3032, 16175, 29918, 12366, 29889, 9684, 29918, 10289, 29892, 13, 462, 462, 29871, 4046, 29922, 13400, 29892, 13, 462, 462, 29871, 1369, 29918, 18127, 29922, 1311, 17255, 4130, 579, 487, 29918, 18127, 29897, 13, 418, 2295, 353, 2295, 29889, 14634, 29898, 4622, 29918, 6768, 29897, 13, 418, 1121, 353, 2446, 29918, 16175, 3032, 5675, 29918, 1972, 29918, 29878, 6739, 29918, 4804, 29898, 13, 3986, 2295, 29892, 13, 3986, 1583, 3032, 16175, 29918, 12366, 29889, 1972, 3032, 517, 29918, 24381, 29918, 29894, 29896, 29898, 13082, 29892, 2295, 876, 13, 1678, 1683, 29901, 13, 418, 1121, 353, 2446, 29918, 16175, 3032, 5675, 29918, 4622, 29918, 29878, 6739, 29918, 4804, 29898, 2917, 29892, 13, 462, 462, 795, 1583, 3032, 517, 29918, 24381, 29898, 9155, 29918, 6768, 876, 13, 13, 1678, 1583, 17255, 4130, 579, 487, 29918, 18127, 353, 6213, 13, 1678, 736, 1121, 13, 13, 29871, 822, 903, 517, 29918, 24381, 29898, 1311, 29892, 6699, 29918, 6768, 29922, 8516, 1125, 13, 1678, 12428, 353, 1418, 579, 487, 29918, 24381, 29889, 9190, 3089, 580, 13, 13, 1678, 565, 383, 3486, 5856, 29889, 5498, 346, 29918, 29883, 1295, 943, 29898, 9155, 29918, 6768, 29892, 13, 462, 462, 1678, 1583, 3032, 16175, 29918, 12366, 29889, 1972, 29918, 6768, 29892, 13, 462, 462, 1678, 1583, 3032, 16175, 29918, 12366, 29889, 13082, 29889, 2917, 1125, 13, 418, 12428, 29889, 12198, 353, 5852, 13, 13, 1678, 2302, 353, 383, 3486, 5856, 29889, 16175, 29918, 2311, 29898, 9155, 29918, 6768, 29892, 13, 462, 462, 1678, 1583, 3032, 16175, 29918, 12366, 29889, 1972, 29918, 6768, 29892, 13, 462, 462, 1678, 1583, 3032, 16175, 29918, 12366, 29889, 13082, 29889, 2917, 29897, 13, 1678, 565, 2302, 338, 451, 6213, 29901, 13, 418, 12428, 29889, 2798, 353, 2302, 13, 13, 13, 1678, 565, 6699, 29918, 6768, 338, 451, 6213, 322, 6699, 29918, 6768, 29889, 10289, 29901, 13, 418, 12428, 29889, 10289, 353, 6699, 29918, 6768, 29889, 10289, 13, 13, 1678, 12428, 29889, 18127, 29889, 11882, 4591, 29898, 1311, 17255, 4130, 579, 487, 29918, 18127, 29897, 13, 1678, 736, 12428, 13, 13, 29871, 822, 903, 21843, 29898, 1311, 29892, 2446, 29918, 16175, 1125, 13, 1678, 9995, 1523, 29890, 1475, 278, 1857, 9853, 411, 278, 2446, 697, 29889, 3037, 839, 491, 9853, 261, 1213, 15945, 13, 1678, 1583, 17255, 4130, 579, 487, 29918, 18127, 353, 2446, 29918, 16175, 17255, 4130, 579, 487, 29918, 18127, 13, 13, 1678, 2446, 29918, 16175, 17255, 4130, 579, 487, 29918, 18127, 353, 6213, 13, 1678, 1583, 17255, 5514, 29918, 9902, 353, 2446, 29918, 16175, 17255, 5514, 29918, 9902, 13, 1678, 565, 451, 1583, 17255, 9902, 29901, 13, 418, 1583, 17255, 2574, 2986, 29918, 18127, 353, 2446, 29918, 16175, 17255, 2574, 2986, 29918, 18127, 13, 1678, 1583, 17255, 9902, 29889, 21843, 29898, 4622, 29918, 16175, 17255, 9902, 29897, 13, 1678, 1583, 17255, 2914, 29918, 29883, 1295, 943, 29889, 21843, 29898, 4622, 29918, 16175, 17255, 2914, 29918, 29883, 1295, 943, 29897, 13, 1678, 1583, 17255, 355, 29918, 18127, 353, 2446, 29918, 16175, 17255, 355, 29918, 18127, 13, 1678, 1583, 3032, 2574, 2986, 29918, 9902, 4619, 2446, 29918, 16175, 3032, 2574, 2986, 29918, 9902, 13, 13, 29871, 822, 903, 5675, 29918, 1972, 29918, 29878, 6739, 29918, 4804, 29898, 1311, 29892, 2295, 29892, 12428, 1125, 13, 1678, 9995, 29924, 6926, 263, 7525, 3010, 1246, 393, 674, 6623, 278, 2777, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 2295, 29901, 450, 1418, 579, 487, 29918, 29878, 6739, 29889, 8614, 304, 671, 363, 278, 1246, 29889, 13, 418, 12428, 29901, 450, 2009, 304, 3638, 411, 278, 1246, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 319, 4911, 29934, 9026, 1203, 393, 508, 367, 1304, 304, 6699, 278, 1121, 310, 278, 390, 9026, 29889, 13, 1678, 9995, 13, 1678, 903, 2754, 29918, 3259, 353, 1583, 3032, 16175, 29918, 12366, 29889, 13082, 3032, 2754, 29918, 3259, 13, 1678, 565, 903, 2754, 29918, 3259, 1275, 1418, 579, 487, 29918, 29878, 6739, 3032, 29907, 3927, 15789, 29918, 14573, 1254, 29949, 1525, 29918, 29963, 29896, 29901, 13, 418, 736, 1583, 3032, 16175, 29918, 12366, 29889, 13082, 3032, 5675, 29918, 29878, 6739, 29918, 4804, 29898, 13, 3986, 2295, 29892, 525, 6558, 3010, 742, 12428, 29892, 27304, 839, 271, 579, 487, 29889, 6558, 3010, 5103, 3285, 13, 3986, 1583, 17255, 29894, 29896, 29918, 3389, 29918, 1972, 29918, 5327, 29918, 20849, 29897, 13, 13, 1678, 736, 1583, 3032, 16175, 29918, 12366, 29889, 13082, 3032, 5675, 29918, 29878, 6739, 29918, 4804, 29898, 2917, 29892, 525, 6558, 3010, 742, 12428, 29892, 13, 462, 462, 462, 29871, 1418, 579, 487, 29918, 24381, 29889, 3010, 3591, 3285, 13, 462, 462, 462, 29871, 1583, 17255, 1972, 29918, 2914, 29918, 20849, 29897, 13, 13, 29871, 822, 903, 5675, 29918, 4622, 29918, 29878, 6739, 29918, 4804, 29898, 1311, 29892, 2295, 29892, 12428, 1125, 13, 1678, 9995, 29924, 6926, 263, 8084, 1246, 393, 674, 6623, 278, 2777, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 2295, 29901, 450, 1418, 579, 487, 29918, 29878, 6739, 29889, 8614, 304, 671, 363, 278, 1246, 29889, 13, 418, 12428, 29901, 450, 2009, 304, 3638, 411, 278, 1246, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 319, 4911, 29934, 9026, 1203, 393, 508, 367, 1304, 304, 6699, 278, 1121, 310, 278, 390, 9026, 29889, 13, 1678, 9995, 13, 1678, 736, 1583, 3032, 16175, 29918, 12366, 29889, 13082, 3032, 5675, 29918, 29878, 6739, 29918, 4804, 29898, 2917, 29892, 525, 9190, 742, 12428, 29892, 13, 462, 462, 462, 29871, 1418, 579, 487, 29918, 24381, 29889, 3010, 3591, 3285, 13, 462, 462, 462, 29871, 1583, 17255, 1972, 29918, 2914, 29918, 20849, 29897, 13, 13, 29871, 903, 26180, 29918, 2248, 29918, 6672, 353, 525, 1576, 7829, 2380, 363, 445, 2346, 338, 11283, 13, 13, 29871, 822, 4770, 29894, 29896, 29918, 3389, 29918, 1972, 29918, 5327, 29918, 20849, 29898, 1311, 29892, 364, 6739, 1125, 13, 1678, 1018, 29901, 13, 418, 1583, 3032, 16175, 29918, 12366, 29889, 13082, 29889, 3198, 29918, 29878, 6739, 29918, 8698, 29898, 29878, 6739, 29897, 13, 1678, 5174, 1418, 579, 487, 29918, 12523, 29889, 8139, 287, 3220, 2392, 29901, 13, 13, 418, 12020, 13, 13, 1678, 9853, 353, 364, 6739, 29889, 5327, 29889, 16175, 13, 1678, 1583, 3032, 16175, 29918, 12366, 29889, 5014, 29918, 16175, 29898, 16175, 29897, 13, 13, 1678, 565, 9853, 29889, 2574, 2986, 29918, 18127, 29901, 13, 418, 1583, 17255, 2574, 2986, 29918, 18127, 353, 315, 5966, 7373, 18127, 29918, 13193, 29922, 16175, 29889, 2574, 2986, 29918, 18127, 29897, 13, 13, 1678, 1583, 17255, 2914, 29918, 29883, 1295, 943, 353, 518, 19890, 7373, 18127, 29918, 13193, 29922, 2914, 29889, 18127, 29897, 13, 462, 632, 363, 1121, 297, 9853, 29889, 10041, 29918, 9902, 13, 462, 632, 565, 1121, 29889, 18127, 29962, 13, 13, 1678, 565, 9853, 29889, 355, 29918, 18127, 29901, 13, 418, 1583, 17255, 355, 29918, 18127, 353, 315, 5966, 7373, 18127, 29918, 13193, 29922, 16175, 29889, 355, 29918, 18127, 29897, 13, 13, 1678, 1583, 3032, 2574, 2986, 29918, 9902, 353, 9853, 29889, 2574, 2986, 29918, 9902, 13, 13, 1678, 565, 9853, 29889, 5514, 29918, 9902, 1275, 27304, 839, 271, 579, 487, 29889, 3010, 3591, 23145, 29889, 12256, 29918, 29943, 1177, 3235, 29950, 3352, 29901, 13, 418, 1583, 17255, 5514, 29918, 9902, 353, 5852, 13, 418, 1583, 17255, 4130, 579, 487, 29918, 18127, 353, 1583, 17255, 355, 29918, 18127, 470, 1583, 17255, 2574, 2986, 29918, 18127, 13, 13, 13, 418, 565, 1583, 17255, 4130, 579, 487, 29918, 18127, 1275, 1583, 17255, 2962, 29918, 18127, 29901, 13, 4706, 12020, 1418, 579, 487, 29918, 12523, 29889, 10851, 29898, 13, 9651, 525, 1576, 2346, 471, 451, 2221, 304, 1207, 6728, 29889, 1495, 13, 1678, 1683, 29901, 13, 418, 1583, 3032, 355, 580, 13, 1678, 1583, 17255, 9902, 353, 1583, 3032, 5014, 29918, 29894, 29896, 29918, 9902, 29898, 16175, 29889, 10041, 29918, 9902, 29897, 13, 1678, 736, 1583, 13, 13, 29871, 822, 4770, 1972, 29918, 2914, 29918, 20849, 29898, 1311, 29892, 364, 6739, 1125, 13, 1678, 9995, 16491, 1158, 1304, 408, 679, 29918, 2914, 29918, 20849, 363, 7525, 3010, 29914, 9190, 5858, 1213, 15945, 13, 1678, 1018, 29901, 13, 418, 1583, 3032, 16175, 29918, 12366, 29889, 13082, 29889, 3198, 29918, 29878, 6739, 29918, 8698, 29898, 29878, 6739, 29897, 13, 1678, 5174, 1418, 579, 487, 29918, 12523, 29889, 8139, 287, 3220, 2392, 408, 5566, 29901, 13, 13, 418, 565, 338, 8758, 29898, 29878, 6739, 29889, 3827, 29892, 1418, 579, 487, 29918, 24381, 29889, 3010, 1125, 13, 4706, 17117, 2924, 29892, 19525, 272, 29892, 17761, 353, 1418, 579, 487, 29918, 2248, 29889, 1523, 1066, 568, 3220, 2831, 3010, 29898, 13, 9651, 364, 6739, 29889, 3827, 29897, 13, 13, 4706, 17761, 353, 1418, 579, 487, 29918, 2248, 29889, 2577, 1123, 2055, 2760, 3220, 11857, 29898, 11030, 29897, 13, 4706, 343, 8807, 353, 1418, 579, 487, 29918, 2248, 29889, 3220, 29979, 8807, 2831, 3010, 29898, 14380, 29892, 19525, 272, 29892, 17761, 29897, 13, 4706, 4903, 353, 1418, 579, 487, 29918, 2248, 29889, 3220, 11089, 2831, 3010, 29898, 14380, 29892, 19525, 272, 29892, 17761, 29897, 13, 13, 13, 4706, 12020, 1418, 579, 487, 29918, 12523, 29889, 8139, 287, 3220, 2392, 29898, 13, 9651, 11297, 29876, 4286, 7122, 4197, 710, 29898, 735, 29883, 511, 1583, 3032, 26180, 29918, 2248, 29918, 6672, 29892, 343, 8807, 11724, 13, 9651, 2441, 29918, 4906, 29922, 710, 29898, 735, 29883, 511, 4839, 29922, 1311, 3032, 26180, 29918, 2248, 29918, 6672, 29892, 13, 9651, 343, 8807, 29918, 2248, 29922, 25162, 29892, 4903, 29918, 2248, 29922, 3134, 29897, 13, 418, 12020, 13, 1678, 2346, 29918, 2914, 353, 364, 6739, 29889, 5327, 13, 13, 1678, 1583, 3032, 16175, 29918, 12366, 29889, 5014, 29918, 16175, 29898, 1972, 29918, 2914, 29897, 13, 13, 1678, 565, 2346, 29918, 2914, 29889, 14510, 3073, 877, 2574, 2986, 29918, 9902, 29918, 2388, 2356, 29918, 18127, 29374, 13, 418, 1583, 17255, 2574, 2986, 29918, 18127, 353, 315, 5966, 29898, 13, 3986, 903, 18127, 29918, 13193, 29922, 1972, 29918, 2914, 29889, 2574, 2986, 29918, 9902, 29918, 2388, 2356, 29918, 18127, 13, 3986, 869, 1748, 6646, 8246, 3101, 13, 13, 1678, 1583, 17255, 2914, 29918, 29883, 1295, 943, 353, 518, 13, 4706, 315, 5966, 7373, 18127, 29918, 13193, 29922, 2914, 29889, 1748, 6646, 8246, 3101, 13, 4706, 363, 1121, 297, 2346, 29918, 2914, 29889, 2914, 29918, 2388, 2356, 29918, 18127, 13, 1678, 4514, 13, 13, 1678, 565, 2346, 29918, 2914, 29889, 14510, 3073, 877, 2388, 2356, 29918, 18127, 29374, 13, 418, 1583, 17255, 355, 29918, 18127, 353, 315, 5966, 29898, 13, 3986, 903, 18127, 29918, 13193, 29922, 1972, 29918, 2914, 29889, 2388, 2356, 29918, 18127, 29889, 1748, 6646, 8246, 3101, 13, 13, 1678, 1583, 3032, 2574, 2986, 29918, 9902, 353, 2346, 29918, 2914, 29889, 2574, 2986, 29918, 9902, 13, 13, 1678, 565, 2346, 29918, 2914, 29889, 5514, 29918, 9902, 29901, 13, 418, 1583, 17255, 4130, 579, 487, 29918, 18127, 353, 2346, 29918, 2914, 29889, 18127, 13, 418, 1583, 17255, 5514, 29918, 9902, 353, 5852, 13, 1678, 1683, 29901, 13, 418, 1583, 3032, 355, 580, 13, 13, 1678, 1583, 17255, 9902, 353, 1583, 3032, 5014, 29918, 9902, 29898, 1972, 29918, 2914, 29889, 2914, 29897, 13, 1678, 736, 1583, 13, 13, 29871, 822, 903, 355, 29898, 1311, 1125, 13, 1678, 9995, 21459, 278, 7463, 2106, 577, 393, 694, 901, 9853, 267, 508, 367, 7371, 1213, 15945, 13, 1678, 1583, 17255, 4130, 579, 487, 29918, 18127, 353, 6213, 13, 1678, 1583, 17255, 5514, 29918, 9902, 353, 7700, 13, 13, 29871, 822, 903, 5675, 29918, 4622, 29918, 16175, 29898, 1311, 29892, 6699, 29918, 6768, 1125, 13, 1678, 9995, 9832, 1078, 278, 1203, 304, 3787, 278, 2446, 9853, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 6699, 29918, 6768, 29901, 450, 1418, 579, 487, 29918, 1972, 29889, 20927, 5856, 4502, 297, 491, 278, 1404, 470, 13, 4706, 6213, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 319, 18761, 6943, 278, 6699, 3987, 393, 881, 367, 1304, 25106, 322, 13, 418, 278, 1203, 393, 881, 367, 1304, 304, 1712, 278, 2446, 9853, 29889, 13, 1678, 9995, 13, 1678, 736, 6699, 29918, 6768, 29892, 350, 905, 29898, 1311, 3032, 16175, 29918, 12366, 29892, 13, 462, 18884, 1369, 29918, 18127, 29922, 1311, 17255, 355, 29918, 18127, 29897, 13, 13, 29871, 822, 903, 5014, 29918, 9902, 29898, 1311, 29892, 2582, 1125, 13, 1678, 9995, 1168, 369, 1372, 278, 1418, 579, 487, 2582, 964, 2582, 4133, 304, 278, 1404, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 2582, 29901, 319, 1051, 310, 7855, 29918, 24381, 29906, 29889, 6691, 1184, 517, 29915, 29879, 4133, 491, 278, 1418, 579, 487, 13, 13, 1678, 16969, 29901, 13, 418, 319, 1051, 310, 2582, 393, 881, 367, 4133, 304, 278, 1404, 29889, 13, 1678, 9995, 13, 1678, 29105, 353, 1583, 3032, 16175, 29918, 12366, 29889, 13082, 29889, 21412, 29889, 24381, 29918, 517, 29918, 1972, 29918, 2914, 13, 1678, 736, 518, 535, 13549, 29898, 2914, 29892, 1583, 3032, 16175, 29918, 12366, 29889, 1972, 29918, 6768, 29897, 13, 9651, 363, 1121, 297, 2582, 29962, 13, 13, 29871, 822, 903, 5014, 29918, 29894, 29896, 29918, 9902, 29898, 1311, 29892, 2582, 1125, 13, 1678, 9995, 1168, 369, 1372, 278, 1418, 579, 487, 2582, 964, 2582, 4133, 304, 278, 1404, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 2582, 29901, 319, 1051, 310, 27304, 839, 271, 579, 487, 29889, 6691, 12191, 29889, 13, 13, 1678, 16969, 29901, 13, 418, 319, 1051, 310, 2582, 393, 881, 367, 4133, 304, 278, 1404, 29889, 13, 1678, 9995, 13, 1678, 29105, 353, 1583, 3032, 16175, 29918, 12366, 29889, 13082, 29889, 21412, 29889, 24381, 29918, 29894, 29896, 29918, 517, 29918, 1972, 29918, 2914, 13, 1678, 736, 518, 535, 13549, 29898, 2914, 29889, 10041, 29892, 1583, 3032, 16175, 29918, 12366, 29889, 1972, 29918, 6768, 29897, 13, 9651, 363, 1121, 297, 2582, 29962, 13, 13, 29871, 822, 4770, 657, 3859, 12035, 1311, 1125, 13, 1678, 12020, 5839, 280, 29889, 29925, 860, 1847, 2392, 29898, 13, 4706, 525, 29925, 860, 1847, 310, 1418, 579, 487, 29918, 1972, 29889, 23145, 338, 443, 23765, 29889, 1495, 13, 13, 13, 1990, 903, 29909, 688, 358, 287, 23145, 29898, 23145, 1125, 13, 29871, 9995, 29909, 9853, 7371, 491, 263, 1418, 579, 487, 29918, 1972, 3032, 29909, 688, 358, 287, 3010, 1213, 15945, 13, 13, 29871, 732, 1990, 5696, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 3032, 1066, 3245, 29898, 29945, 29897, 13, 29871, 822, 1653, 29918, 12674, 29898, 25932, 29892, 18765, 287, 29918, 1972, 29892, 2346, 29918, 6768, 29892, 11009, 29892, 12428, 29892, 13, 462, 259, 297, 29918, 14834, 29918, 10289, 29892, 297, 29918, 14834, 29918, 13400, 29892, 1369, 29918, 18127, 1125, 13, 1678, 2847, 29918, 10289, 353, 29871, 29900, 565, 297, 29918, 14834, 29918, 10289, 338, 451, 6213, 1683, 6213, 13, 1678, 9853, 29918, 12366, 353, 903, 23145, 21741, 29898, 2987, 358, 287, 29918, 1972, 3032, 1972, 29892, 13, 462, 18884, 2346, 29918, 6768, 29892, 13, 462, 18884, 11009, 29892, 13, 462, 18884, 18765, 287, 29918, 1972, 29892, 13, 462, 18884, 2847, 29918, 10289, 29922, 11228, 29918, 10289, 29897, 13, 13, 1678, 9853, 29900, 353, 1067, 29879, 29898, 16175, 29918, 12366, 29892, 13, 462, 297, 29918, 14834, 29918, 10289, 29922, 262, 29918, 14834, 29918, 10289, 29892, 13, 462, 297, 29918, 14834, 29918, 13400, 29922, 262, 29918, 14834, 29918, 13400, 29892, 13, 462, 1369, 29918, 18127, 29922, 2962, 29918, 18127, 29897, 13, 1678, 736, 9853, 29900, 3032, 5675, 29918, 1972, 29918, 29878, 6739, 29918, 4804, 29898, 1972, 29918, 6768, 29892, 12428, 29897, 13, 13, 29871, 732, 4130, 579, 487, 29918, 29878, 6739, 3032, 1066, 3245, 29898, 29906, 29897, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 9853, 29918, 12366, 29892, 13, 1669, 297, 29918, 14834, 29918, 10289, 29922, 8516, 29892, 13, 1669, 297, 29918, 14834, 29918, 13400, 29922, 8516, 29892, 13, 1669, 2446, 29918, 2248, 29922, 29900, 29892, 13, 1669, 1369, 29918, 18127, 29922, 19890, 580, 1125, 13, 1678, 9995, 29909, 1281, 18769, 363, 1418, 579, 487, 29918, 1972, 3032, 29909, 688, 358, 287, 23145, 29889, 13, 13, 1678, 1281, 4984, 287, 491, 1418, 579, 487, 29918, 1972, 3032, 29909, 688, 358, 287, 3010, 29889, 10575, 451, 367, 2000, 13, 1678, 4153, 29889, 13, 1678, 9995, 13, 1678, 2428, 7373, 29909, 688, 358, 287, 23145, 29892, 1583, 467, 1649, 2344, 12035, 16175, 29918, 12366, 29892, 13, 462, 462, 3986, 1369, 29918, 18127, 29922, 2962, 29918, 18127, 29897, 13, 1678, 1583, 17255, 262, 29918, 14834, 29918, 10289, 353, 297, 29918, 14834, 29918, 10289, 13, 1678, 1583, 17255, 262, 29918, 14834, 29918, 13400, 353, 297, 29918, 14834, 29918, 13400, 13, 1678, 1583, 17255, 4622, 29918, 2248, 353, 2446, 29918, 2248, 13, 13, 29871, 732, 6799, 13, 29871, 822, 2346, 29898, 1311, 1125, 13, 1678, 9995, 1576, 2346, 278, 1857, 9853, 2996, 515, 1213, 15945, 13, 1678, 736, 1583, 3032, 16175, 29918, 12366, 29889, 2987, 358, 287, 29918, 1972, 13, 13, 29871, 822, 10677, 29898, 1311, 29892, 2380, 1125, 13, 1678, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 29871, 822, 903, 21843, 29898, 1311, 29892, 2446, 29918, 16175, 1125, 13, 1678, 2428, 7373, 29909, 688, 358, 287, 23145, 29892, 1583, 467, 29918, 21843, 29898, 4622, 29918, 16175, 29897, 13, 1678, 1583, 17255, 262, 29918, 14834, 29918, 13400, 353, 2446, 29918, 16175, 17255, 262, 29918, 14834, 29918, 13400, 13, 1678, 1583, 17255, 262, 29918, 14834, 29918, 10289, 353, 2446, 29918, 16175, 17255, 262, 29918, 14834, 29918, 10289, 13, 1678, 1583, 17255, 4622, 29918, 2248, 353, 2446, 29918, 16175, 17255, 4622, 29918, 2248, 13, 13, 29871, 822, 903, 5014, 29918, 29894, 29896, 29918, 9902, 29898, 1311, 29892, 2582, 1125, 13, 1678, 9995, 7032, 478, 29946, 2582, 491, 17415, 304, 478, 29941, 322, 5432, 903, 5014, 29918, 9902, 1213, 15945, 13, 1678, 325, 29941, 29918, 9902, 353, 5159, 13, 1678, 338, 29918, 771, 6929, 353, 6120, 29898, 1311, 29889, 1972, 29918, 6768, 29889, 771, 6929, 29897, 13, 1678, 363, 325, 29896, 29918, 2914, 297, 2582, 29901, 13, 418, 325, 29941, 29918, 10041, 353, 7855, 29918, 24381, 29906, 29889, 6691, 1184, 517, 580, 13, 418, 1583, 3032, 16175, 29918, 12366, 29889, 13082, 29889, 21412, 29889, 657, 29918, 10041, 29918, 535, 13549, 2141, 29894, 29896, 29918, 517, 29918, 29894, 29941, 29918, 10041, 29898, 13, 3986, 325, 29896, 29918, 2914, 29889, 10041, 29892, 325, 29941, 29918, 10041, 29892, 338, 29918, 771, 6929, 29897, 13, 418, 325, 29941, 29918, 9902, 29889, 4397, 29898, 29894, 29941, 29918, 10041, 29897, 13, 1678, 736, 1583, 3032, 5014, 29918, 9902, 29898, 29894, 29941, 29918, 9902, 29897, 13, 13, 29871, 822, 903, 5014, 29918, 9902, 29898, 1311, 29892, 2582, 1125, 13, 13, 1678, 297, 29918, 14834, 29918, 4572, 353, 1583, 3032, 16175, 29918, 12366, 29889, 2987, 358, 287, 29918, 1972, 3032, 262, 29918, 14834, 29918, 4572, 13, 1678, 565, 297, 29918, 14834, 29918, 4572, 29901, 13, 418, 2582, 353, 1051, 29898, 4572, 29898, 262, 29918, 14834, 29918, 4572, 29892, 2582, 876, 13, 13, 13, 1678, 297, 29918, 14834, 29918, 9902, 353, 1583, 3032, 16175, 29918, 12366, 29889, 2987, 358, 287, 29918, 1972, 3032, 262, 29918, 14834, 29918, 9902, 13, 1678, 565, 297, 29918, 14834, 29918, 9902, 322, 1583, 17255, 4622, 29918, 2248, 529, 7431, 29898, 262, 29918, 14834, 29918, 9902, 1125, 13, 13, 418, 2441, 29918, 1972, 353, 2428, 7373, 29909, 688, 358, 287, 23145, 29892, 1583, 467, 1972, 13, 418, 565, 2441, 29918, 1972, 3032, 2098, 29901, 13, 13, 4706, 565, 2582, 29901, 13, 3986, 2446, 29918, 2914, 353, 297, 29918, 14834, 29918, 9902, 29961, 1311, 17255, 4622, 29918, 2248, 29962, 13, 3986, 2446, 29918, 1989, 353, 2441, 29918, 1972, 3032, 2098, 29889, 1989, 29898, 4622, 29918, 2914, 29897, 13, 3986, 474, 353, 29871, 29900, 13, 3986, 1550, 474, 529, 7431, 29898, 9902, 1125, 13, 9651, 1121, 353, 2582, 29961, 29875, 29962, 13, 9651, 1121, 29918, 1989, 353, 2441, 29918, 1972, 3032, 2098, 29889, 1989, 29898, 2914, 29897, 13, 9651, 1550, 2446, 29918, 1989, 5277, 1121, 29918, 1989, 29901, 13, 795, 2582, 29889, 7851, 29898, 29875, 29892, 2446, 29918, 2914, 29897, 13, 795, 474, 4619, 29871, 29896, 13, 795, 1583, 17255, 4622, 29918, 2248, 4619, 29871, 29896, 13, 795, 565, 1583, 17255, 4622, 29918, 2248, 6736, 7431, 29898, 262, 29918, 14834, 29918, 9902, 1125, 13, 18884, 2867, 13, 795, 2446, 29918, 2914, 353, 297, 29918, 14834, 29918, 9902, 29961, 1311, 17255, 4622, 29918, 2248, 29962, 13, 795, 2446, 29918, 1989, 353, 2441, 29918, 1972, 3032, 2098, 29889, 1989, 29898, 4622, 29918, 2914, 29897, 13, 9651, 474, 4619, 29871, 29896, 13, 418, 25342, 2582, 470, 451, 2428, 7373, 29909, 688, 358, 287, 23145, 29892, 1583, 467, 5514, 29918, 9902, 29901, 13, 13, 4706, 2582, 353, 297, 29918, 14834, 29918, 9902, 718, 2582, 13, 4706, 1583, 17255, 4622, 29918, 2248, 353, 7431, 29898, 262, 29918, 14834, 29918, 9902, 29897, 13, 13, 13, 1678, 565, 1583, 17255, 262, 29918, 14834, 29918, 10289, 29901, 13, 418, 4974, 451, 1583, 3032, 2574, 2986, 29918, 9902, 13, 418, 9210, 353, 1375, 29898, 1311, 17255, 262, 29918, 14834, 29918, 10289, 29892, 7431, 29898, 9902, 876, 13, 418, 565, 9210, 29901, 13, 4706, 1583, 3032, 2574, 2986, 29918, 9902, 4619, 9210, 13, 4706, 1583, 17255, 262, 29918, 14834, 29918, 10289, 22361, 9210, 13, 4706, 2582, 353, 2582, 29961, 10289, 17531, 13, 13, 1678, 565, 1583, 17255, 262, 29918, 14834, 29918, 13400, 338, 451, 6213, 29901, 13, 418, 2582, 353, 2582, 7503, 1311, 17255, 262, 29918, 14834, 29918, 13400, 29962, 13, 418, 1583, 17255, 262, 29918, 14834, 29918, 13400, 22361, 7431, 29898, 9902, 29897, 13, 418, 565, 1583, 17255, 262, 29918, 14834, 29918, 13400, 5277, 29871, 29900, 29901, 13, 4706, 1583, 3032, 355, 580, 13, 13, 1678, 736, 2428, 7373, 29909, 688, 358, 287, 23145, 29892, 1583, 467, 29918, 5014, 29918, 9902, 29898, 9902, 29897, 13, 13, 29871, 822, 903, 5675, 29918, 4622, 29918, 16175, 29898, 1311, 29892, 6699, 29918, 6768, 1125, 13, 1678, 297, 29918, 14834, 29918, 10289, 353, 383, 3486, 5856, 29889, 10289, 29898, 9155, 29918, 6768, 29897, 13, 1678, 18765, 287, 29918, 1972, 353, 1583, 3032, 16175, 29918, 12366, 29889, 2987, 358, 287, 29918, 1972, 13, 1678, 565, 297, 29918, 14834, 29918, 10289, 322, 313, 2987, 358, 287, 29918, 1972, 3032, 262, 29918, 14834, 29918, 4572, 470, 13, 462, 632, 18765, 287, 29918, 1972, 3032, 262, 29918, 14834, 29918, 9902, 1125, 13, 418, 6699, 29918, 6768, 353, 383, 3486, 5856, 29898, 10289, 29922, 29900, 29897, 13, 1678, 1683, 29901, 13, 418, 297, 29918, 14834, 29918, 10289, 353, 6213, 13, 1678, 736, 313, 9155, 29918, 6768, 29892, 13, 9651, 903, 29909, 688, 358, 287, 23145, 29898, 1311, 3032, 16175, 29918, 12366, 29892, 13, 462, 9651, 297, 29918, 14834, 29918, 10289, 29922, 262, 29918, 14834, 29918, 10289, 29892, 13, 462, 9651, 297, 29918, 14834, 29918, 13400, 29922, 1311, 17255, 262, 29918, 14834, 29918, 13400, 29892, 13, 462, 9651, 1369, 29918, 18127, 29922, 1311, 29889, 355, 29918, 18127, 29892, 13, 462, 9651, 2446, 29918, 2248, 29922, 1311, 17255, 4622, 29918, 2248, 876, 13, 13, 13, 1990, 350, 905, 261, 29898, 3318, 1125, 13, 29871, 9995, 29909, 770, 393, 10703, 278, 20504, 1061, 5067, 363, 350, 905, 267, 29889, 13, 13, 29871, 14213, 1711, 13319, 491, 263, 1246, 304, 13641, 29889, 3389, 2141, 13, 13, 29871, 450, 770, 298, 2247, 278, 376, 13318, 7225, 29908, 5469, 310, 278, 1418, 579, 487, 491, 19998, 13, 29871, 3907, 2999, 7274, 304, 278, 1418, 579, 487, 322, 2778, 3460, 278, 9819, 9853, 267, 29889, 13, 29871, 910, 338, 24799, 29497, 491, 758, 9155, 292, 2582, 322, 24907, 1716, 13, 29871, 1661, 29899, 1271, 292, 322, 23473, 5717, 304, 278, 1418, 579, 487, 408, 4312, 29889, 13, 13, 29871, 20504, 1218, 1549, 9853, 267, 338, 4359, 2337, 901, 8543, 1135, 28420, 599, 13, 29871, 2582, 472, 2748, 408, 390, 9026, 23316, 1270, 338, 7934, 491, 408, 9524, 5794, 758, 9155, 292, 13, 29871, 2582, 29889, 13, 13, 29871, 450, 9853, 267, 7738, 491, 445, 770, 2609, 367, 1304, 304, 6699, 278, 2446, 9853, 13, 29871, 313, 20678, 350, 905, 29889, 4622, 29918, 16175, 3101, 408, 1434, 278, 1857, 9853, 338, 4133, 278, 13, 29871, 2009, 363, 278, 2446, 9853, 756, 2307, 1063, 2665, 29889, 13, 29871, 9995, 13, 13, 13, 29871, 3339, 29979, 15868, 29918, 1164, 16786, 353, 6213, 13, 29871, 15531, 29918, 1307, 28938, 29918, 27681, 10490, 353, 29871, 29900, 13, 29871, 15531, 29918, 1307, 28938, 29918, 12413, 353, 1203, 580, 13, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 2346, 29918, 6768, 29892, 937, 29918, 12674, 29918, 16175, 1125, 13, 1678, 9995, 23770, 29889, 13, 13, 1678, 8512, 445, 770, 508, 367, 7522, 13319, 29892, 372, 338, 5821, 519, 304, 671, 13, 1678, 13641, 29889, 3389, 29898, 1972, 29918, 6768, 467, 13, 13, 1678, 826, 3174, 29901, 13, 418, 2346, 29918, 6768, 29901, 450, 13641, 5856, 1304, 304, 1653, 278, 937, 9853, 29889, 13, 418, 937, 29918, 12674, 29918, 16175, 29901, 450, 937, 9853, 7371, 491, 13, 4706, 13641, 29889, 3389, 29918, 12674, 29898, 1972, 29918, 6768, 467, 13, 1678, 9995, 13, 1678, 1583, 17255, 4622, 29918, 16175, 353, 937, 29918, 12674, 29918, 16175, 13, 1678, 1583, 17255, 11228, 29918, 10289, 353, 13641, 5856, 29889, 10289, 29898, 1972, 29918, 6768, 29897, 470, 29871, 29900, 13, 1678, 1583, 17255, 2574, 2986, 29918, 9902, 353, 29871, 29900, 13, 13, 29871, 822, 2446, 29898, 1311, 1125, 13, 1678, 9995, 2577, 278, 2446, 9853, 29889, 2823, 869, 4622, 29918, 16175, 2141, 15945, 29908, 13, 1678, 736, 1583, 29889, 4622, 29918, 16175, 29898, 1311, 29889, 1299, 29918, 1307, 28938, 29918, 12413, 29897, 13, 13, 29871, 822, 4770, 4622, 12035, 1311, 1125, 13, 1678, 736, 1583, 29889, 4622, 580, 13, 13, 29871, 822, 2446, 29918, 16175, 29898, 1311, 29892, 1375, 29918, 16175, 29918, 2311, 1125, 13, 1678, 9995, 2577, 278, 2446, 9853, 29889, 13, 13, 1678, 450, 9853, 4133, 491, 445, 740, 2609, 367, 1304, 304, 6699, 278, 2446, 9853, 13, 1678, 313, 20678, 350, 905, 29889, 4622, 29918, 16175, 16655, 8669, 445, 740, 674, 2337, 736, 6213, 29889, 13, 1678, 1763, 10563, 278, 2446, 9853, 671, 869, 4622, 580, 470, 869, 4622, 29918, 16175, 29898, 29940, 467, 13, 13, 1678, 910, 740, 1122, 736, 263, 9853, 7200, 1135, 1375, 29918, 517, 29918, 9155, 29892, 541, 674, 2360, 13, 1678, 736, 7968, 6521, 727, 526, 694, 901, 2582, 29889, 13, 13, 1678, 12630, 1819, 508, 367, 1304, 363, 1375, 29918, 16175, 29918, 2311, 29901, 13, 418, 3339, 29979, 15868, 29918, 1164, 16786, 448, 1938, 451, 2189, 738, 5222, 22495, 1309, 681, 6699, 267, 515, 278, 1418, 579, 487, 13, 4706, 1584, 565, 278, 445, 13880, 263, 9853, 411, 694, 2582, 29889, 13, 418, 15531, 29918, 1307, 28938, 29918, 27681, 10490, 448, 9333, 8206, 3307, 2582, 304, 3290, 6832, 29891, 278, 9210, 29889, 13, 418, 15531, 29918, 1307, 28938, 29918, 12413, 448, 349, 913, 9853, 267, 2745, 472, 3203, 697, 1121, 338, 4133, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 1375, 29918, 16175, 29918, 2311, 29901, 450, 9212, 1353, 310, 2582, 304, 10563, 470, 697, 310, 13, 4706, 313, 3289, 29979, 15868, 29918, 1164, 16786, 29892, 15531, 29918, 1307, 28938, 29918, 27681, 10490, 29892, 15531, 29918, 1307, 28938, 29918, 12413, 29897, 13, 13, 1678, 16969, 29901, 13, 418, 450, 2446, 350, 905, 310, 2582, 29889, 13, 1678, 9995, 13, 1678, 565, 1375, 29918, 16175, 29918, 2311, 297, 313, 23145, 261, 29889, 3289, 29979, 15868, 29918, 1164, 16786, 29892, 350, 905, 261, 29889, 1299, 29918, 1307, 28938, 29918, 27681, 10490, 29892, 13, 462, 3986, 350, 905, 261, 29889, 1299, 29918, 1307, 28938, 29918, 12413, 1125, 13, 418, 2684, 353, 7700, 13, 1678, 1683, 29901, 13, 418, 2684, 353, 5852, 13, 418, 1418, 579, 487, 29918, 8768, 29889, 7211, 403, 7798, 29898, 1195, 29918, 16175, 29918, 2311, 29892, 13, 462, 462, 418, 525, 1195, 29918, 16175, 29918, 2311, 742, 13, 462, 462, 418, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29897, 13, 1678, 565, 451, 1583, 17255, 4622, 29918, 16175, 29901, 13, 418, 12020, 22303, 13463, 362, 13, 13, 13, 1678, 9853, 353, 1583, 17255, 4622, 29918, 16175, 29889, 657, 29918, 2914, 580, 13, 1678, 1583, 17255, 4622, 29918, 16175, 353, 6213, 13, 1678, 1583, 17255, 2574, 2986, 29918, 9902, 4619, 9853, 29889, 2574, 2986, 29918, 9902, 13, 13, 1678, 565, 1375, 29918, 16175, 29918, 2311, 338, 451, 350, 905, 261, 29889, 3289, 29979, 15868, 29918, 1164, 16786, 29901, 13, 418, 565, 1375, 29918, 16175, 29918, 2311, 338, 350, 905, 261, 29889, 1299, 29918, 1307, 28938, 29918, 12413, 29901, 13, 4706, 1375, 29918, 16175, 29918, 2311, 353, 29871, 29896, 13, 13, 418, 4312, 29918, 9902, 353, 1375, 29918, 16175, 29918, 2311, 448, 7431, 29898, 16175, 29889, 9902, 29897, 13, 418, 1550, 313, 16175, 29889, 5514, 29918, 9902, 322, 13, 632, 313, 1311, 17255, 2574, 2986, 29918, 9902, 529, 1583, 17255, 11228, 29918, 10289, 470, 13, 795, 4312, 29918, 9902, 1405, 29871, 29900, 22164, 13, 4706, 565, 9853, 29889, 1972, 29918, 6768, 29889, 16175, 29918, 2311, 29901, 13, 13, 3986, 9853, 29918, 2311, 353, 4236, 29898, 16175, 29889, 1972, 29918, 6768, 29889, 16175, 29918, 2311, 29892, 4312, 29918, 9902, 29897, 13, 4706, 25342, 2684, 29901, 13, 3986, 9853, 29918, 2311, 353, 4312, 29918, 9902, 13, 4706, 1683, 29901, 13, 3986, 9853, 29918, 2311, 353, 6213, 13, 13, 4706, 1583, 17255, 4622, 29918, 16175, 353, 9853, 29889, 4622, 29918, 16175, 29918, 12674, 29898, 20927, 5856, 29898, 13, 9651, 9210, 29922, 3317, 29898, 29900, 29892, 1583, 17255, 11228, 29918, 10289, 448, 1583, 17255, 2574, 2986, 29918, 9902, 511, 13, 9651, 9853, 29918, 2311, 29922, 16175, 29918, 2311, 876, 13, 4706, 2446, 29918, 16175, 353, 1583, 17255, 4622, 29918, 16175, 29889, 657, 29918, 2914, 580, 13, 4706, 1583, 17255, 4622, 29918, 16175, 353, 6213, 13, 4706, 1583, 17255, 2574, 2986, 29918, 9902, 4619, 2446, 29918, 16175, 29889, 2574, 2986, 29918, 9902, 13, 4706, 4312, 29918, 9902, 353, 4236, 29898, 29900, 29892, 4312, 29918, 9902, 448, 7431, 29898, 4622, 29918, 16175, 29889, 9902, 876, 13, 4706, 9853, 3032, 21843, 29898, 4622, 29918, 16175, 29897, 13, 13, 13, 13, 13, 13, 13, 1678, 1583, 17255, 4622, 29918, 16175, 353, 9853, 29889, 4622, 29918, 16175, 29918, 12674, 580, 13, 1678, 736, 9853, 13, 13, 29871, 822, 4770, 657, 3859, 12035, 1311, 1125, 13, 1678, 12020, 5839, 280, 29889, 29925, 860, 1847, 2392, 29898, 13, 4706, 525, 29925, 860, 1847, 310, 1418, 579, 487, 29918, 1972, 29889, 23145, 261, 338, 443, 23765, 29889, 1495, 13, 13, 29871, 822, 4770, 1524, 12035, 1311, 1125, 13, 1678, 736, 1583, 13, 13, 13, 1990, 17212, 20277, 29898, 28319, 29889, 20277, 1125, 13, 29871, 9995, 2744, 20380, 975, 278, 2582, 515, 350, 905, 267, 7625, 515, 263, 350, 905, 261, 29889, 13, 13, 29871, 17212, 20277, 10703, 5132, 29915, 29879, 20380, 9608, 29892, 577, 2582, 508, 367, 13, 29871, 20592, 411, 278, 363, 29899, 20788, 29901, 13, 13, 29871, 1405, 372, 353, 17212, 20277, 29898, 3010, 29898, 14380, 2433, 7435, 2824, 3389, 3101, 13, 29871, 1405, 363, 2022, 297, 372, 29901, 13, 29871, 1405, 259, 1596, 525, 18567, 29892, 1273, 29879, 20714, 1273, 2022, 1839, 978, 2033, 13, 13, 29871, 2180, 738, 931, 17212, 20277, 29889, 18127, 580, 508, 367, 1304, 304, 17229, 278, 315, 5966, 393, 13, 29871, 3291, 925, 1156, 278, 1833, 1121, 4133, 491, 278, 20380, 29889, 13, 29871, 9995, 13, 13, 29871, 4770, 3784, 29918, 16175, 353, 6213, 13, 29871, 4770, 3784, 29918, 1066, 353, 29871, 29900, 13, 29871, 4770, 4230, 29918, 18127, 353, 6213, 13, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 9853, 261, 1125, 13, 1678, 9995, 23770, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 9853, 261, 29901, 319, 1418, 579, 487, 29918, 1972, 29889, 23145, 261, 13, 1678, 9995, 13, 1678, 565, 451, 338, 8758, 29898, 16175, 261, 29892, 350, 905, 261, 1125, 13, 418, 12020, 1418, 579, 487, 29918, 12523, 29889, 22050, 15730, 2392, 29898, 13, 3986, 525, 16175, 261, 2980, 881, 367, 1418, 579, 487, 29918, 1972, 29889, 23145, 261, 313, 29995, 29878, 16029, 1273, 13, 3986, 313, 16175, 261, 29892, 876, 13, 1678, 1583, 17255, 16175, 261, 353, 9853, 261, 13, 13, 29871, 822, 2380, 29918, 1761, 29898, 1311, 1125, 13, 1678, 9995, 11609, 29879, 278, 1051, 310, 18111, 1304, 304, 2189, 278, 2346, 29889, 13, 1678, 29863, 14981, 6213, 746, 278, 13304, 947, 451, 2334, 282, 29890, 29918, 517, 29918, 2248, 29889, 13, 1678, 9995, 13, 1678, 736, 1583, 3032, 7469, 29918, 3784, 29918, 16175, 2141, 2248, 29918, 1761, 13, 13, 29871, 822, 10677, 29898, 1311, 1125, 13, 1678, 9995, 11609, 29879, 263, 10677, 393, 3291, 925, 1156, 278, 1833, 1121, 4133, 29889, 13, 13, 1678, 960, 2446, 580, 8026, 385, 3682, 29892, 445, 740, 3639, 278, 1095, 29918, 18127, 515, 13, 1678, 278, 1833, 9150, 9853, 470, 8026, 278, 1021, 3682, 565, 694, 9853, 471, 13, 1678, 9150, 29889, 13, 1678, 9995, 13, 1678, 736, 313, 1311, 17255, 4230, 29918, 18127, 470, 13, 9651, 1583, 3032, 7469, 29918, 3784, 29918, 16175, 2141, 18127, 29898, 1311, 17255, 3784, 29918, 1066, 876, 13, 13, 29871, 822, 903, 7469, 29918, 3784, 29918, 16175, 29898, 1311, 1125, 13, 1678, 565, 451, 1583, 17255, 3784, 29918, 16175, 29901, 13, 418, 1583, 17255, 3784, 29918, 16175, 353, 1583, 17255, 16175, 261, 29889, 4622, 29918, 16175, 29898, 23145, 261, 29889, 1299, 29918, 1307, 28938, 29918, 27681, 10490, 29897, 13, 418, 1583, 17255, 3784, 29918, 1066, 353, 29871, 29900, 13, 1678, 736, 1583, 17255, 3784, 29918, 16175, 13, 13, 29871, 822, 903, 2388, 2356, 29918, 1972, 29898, 1311, 1125, 13, 1678, 9995, 11609, 29879, 278, 13126, 2346, 6942, 411, 278, 20380, 29889, 13, 13, 1678, 512, 1890, 871, 437, 451, 671, 29889, 13, 1678, 9995, 13, 1678, 736, 1583, 3032, 7469, 29918, 3784, 29918, 16175, 2141, 29918, 2388, 2356, 29918, 1972, 580, 13, 13, 13, 29871, 822, 4770, 4622, 12035, 1311, 1125, 13, 1678, 9995, 11609, 29879, 278, 2446, 2346, 1121, 1213, 15945, 13, 1678, 1550, 313, 1333, 1583, 17255, 3784, 29918, 16175, 470, 13, 965, 1583, 17255, 3784, 29918, 1066, 6736, 7431, 29898, 1311, 17255, 3784, 29918, 16175, 29889, 9902, 22164, 13, 13, 418, 1018, 29901, 13, 13, 13, 13, 4706, 2446, 29918, 16175, 353, 1583, 17255, 16175, 261, 29889, 4622, 29918, 16175, 29898, 23145, 261, 29889, 1299, 29918, 1307, 28938, 29918, 27681, 10490, 29897, 13, 418, 5174, 29901, 13, 13, 4706, 565, 1583, 17255, 3784, 29918, 16175, 29901, 13, 3986, 1583, 17255, 4230, 29918, 18127, 353, 1583, 17255, 3784, 29918, 16175, 29889, 355, 29918, 18127, 13, 4706, 12020, 13, 418, 1583, 17255, 3784, 29918, 1066, 353, 29871, 29900, 13, 418, 1583, 17255, 3784, 29918, 16175, 353, 2446, 29918, 16175, 13, 13, 1678, 1121, 353, 1583, 17255, 3784, 29918, 16175, 29889, 9902, 29961, 1311, 17255, 3784, 29918, 1066, 29962, 13, 1678, 1583, 17255, 3784, 29918, 1066, 4619, 29871, 29896, 13, 1678, 736, 1121, 13, 13, 29871, 822, 4770, 1524, 12035, 1311, 1125, 13, 1678, 736, 1583, 13, 13, 29871, 822, 2446, 29898, 1311, 1125, 13, 1678, 736, 1583, 17255, 4622, 1649, 580, 13, 2 ]
hw1/0711529_hw1.py
KJ-black/Introduction-to-Operating-Systems
0
77150
<reponame>KJ-black/Introduction-to-Operating-Systems """ Date: 2021/01/02 Describe: OS hw1 Auther: <NAME> ID: 0711529 """ import time # to calculate the running time ## for task1 import hashlib ## for task2 from bs4 import BeautifulSoup import requests ## multithreading import threading import queue class MyThread(threading.Thread): def __init__(self, queue, num, task): threading.Thread.__init__(self) self.queue = queue self.num = num self.task = task def run(self): while self.queue.qsize() > 0: msg = self.queue.get() if self.task==1: proof_of_work(msg) elif self.task==2: get_url_header(msg) def multithreading(task, number, testcase, taskdata): # create the queue to put the unworking task in it my_queue = queue.Queue() # put the data to queue # and the max data size is 100 for i in range(testcase): my_queue.put(taskdata[i]) # create the thread and start threads = [] for i in range(number): threads.append(MyThread(my_queue, i, task)) threads[i].start() # wait for the tthread to finish for i in range(number): threads[i].join() ## multiprocessing from multiprocessing import Pool def multiprocessing(task, number, testcase, taskdata): pool = Pool(number) if task == 1: pool.map(proof_of_work, taskdata[:testcase]) elif task == 2: pool.map(get_url_header, taskdata[:testcase]) pool.close() pool.join() ## coroutine import asyncio async def co_proof_of_work(str, loop): await loop.run_in_executor(None, proof_of_work, str) async def co_get_url_header(url, loop): html = await loop.run_in_executor(None, requests.get, url) soup = BeautifulSoup(html.text, 'html.parser') title = soup.head.title.text print(title) def coroutine(task, testcase, taskdata): loop = asyncio.get_event_loop() if task == 1: tasks = [loop.create_task(co_proof_of_work(t, loop)) for t in taskdata[:testcase]] elif task == 2: tasks = [loop.create_task(co_get_url_header(t, loop)) for t in taskdata[:testcase]] loop.run_until_complete(asyncio.wait(tasks)) ## task # task 1 def proof_of_work(str): a = b = c = d = 33 # initialize while True: for e in range(33, 127): s = hashlib.sha256() str2 = chr(a)+chr(b)+chr(c)+chr(d)+chr(e)+str s.update(str2.encode('utf-8')) h = s.hexdigest() if h[:5]=="00000": print(str2) return str2 d += 1 if d > 126: c += 1 d = 33 if c > 126: b += 1 c = 33 if b > 126: a += 1 b = 33 if a > 126: break # task 2 def get_url_header(url): html = requests.get(url) soup = BeautifulSoup(html.text, 'html.parser') title = soup.head.title.text print(title) return title def debug(task, testcase, taskdata): if task == 1: for i in range(testcase): proof_of_work(taskdata[i]) elif task == 2: for i in range(testcase): get_url_header(taskdata[i]) def main(): task = int(input()) # input the task you want to execute: 1 or 2 m = input() # input the method: 1: multithreading, 2: multiprocessing, 3: coroutine m = m.split() if(len(m)==2): number = int(m[1]) method = int(m[0]) testcase = int(input()) # taskdata file = open("task%d_sample.txt"%task) taskdata = [] for line in file: taskdata.append(line.replace('\n', "")) start = time.perf_counter() if method == 1: # use multithreading multithreading(task, number, testcase, taskdata) elif method == 2: # use multiprocessing multiprocessing(task, number, testcase, taskdata) elif method == 3: # use coroutine coroutine(task, testcase, taskdata) elif method == 4: # for debug debug(task, testcase, taskdata) end = time.perf_counter() print("Total running time: %f"%(end-start)) if __name__=="__main__": main()
[ 1, 529, 276, 1112, 420, 29958, 29968, 29967, 29899, 8517, 29914, 25898, 29899, 517, 29899, 7094, 1218, 29899, 3924, 29879, 13, 15945, 19451, 13, 2539, 29901, 29871, 29906, 29900, 29906, 29896, 29914, 29900, 29896, 29914, 29900, 29906, 30004, 13, 4002, 29581, 29901, 6570, 298, 29893, 29896, 6756, 13, 6147, 2276, 29901, 529, 5813, 3238, 13, 1367, 29901, 29871, 29900, 29955, 29896, 29896, 29945, 29906, 29929, 30004, 13, 15945, 19451, 13, 5215, 931, 396, 304, 8147, 278, 2734, 931, 30004, 13, 30004, 13, 2277, 363, 3414, 29896, 30004, 13, 5215, 6608, 1982, 6756, 13, 30004, 13, 2277, 363, 3414, 29906, 30004, 13, 3166, 24512, 29946, 1053, 25685, 29903, 1132, 30004, 13, 5215, 7274, 30004, 13, 30004, 13, 2277, 1773, 389, 19715, 6756, 13, 5215, 3244, 292, 30004, 13, 5215, 9521, 30004, 13, 30004, 13, 1990, 1619, 4899, 29898, 7097, 292, 29889, 4899, 1125, 30004, 13, 12, 1753, 4770, 2344, 12035, 1311, 29892, 9521, 29892, 954, 29892, 3414, 1125, 30004, 13, 12, 12, 7097, 292, 29889, 4899, 17255, 2344, 12035, 1311, 8443, 13, 12, 12, 1311, 29889, 9990, 353, 9521, 30004, 13, 12, 12, 1311, 29889, 1949, 353, 954, 30004, 13, 12, 12, 1311, 29889, 7662, 353, 3414, 30004, 13, 30004, 13, 12, 1753, 1065, 29898, 1311, 1125, 30004, 13, 12, 12, 8000, 1583, 29889, 9990, 29889, 29939, 2311, 580, 1405, 29871, 29900, 29901, 30004, 13, 12, 12, 12, 7645, 353, 1583, 29889, 9990, 29889, 657, 26471, 13, 12, 12, 12, 361, 1583, 29889, 7662, 1360, 29896, 29901, 6756, 13, 12, 12, 12, 12, 8017, 29918, 974, 29918, 1287, 29898, 7645, 8443, 13, 12, 12, 12, 23681, 1583, 29889, 7662, 1360, 29906, 29901, 30004, 13, 12, 12, 12, 12, 657, 29918, 2271, 29918, 6672, 29898, 7645, 8443, 13, 30004, 13, 1753, 1773, 389, 19715, 29898, 7662, 29892, 1353, 29892, 1243, 4878, 29892, 3414, 1272, 1125, 30004, 13, 12, 29937, 1653, 278, 9521, 304, 1925, 278, 443, 22899, 3414, 297, 372, 30004, 13, 12, 1357, 29918, 9990, 353, 9521, 29889, 10620, 26471, 13, 30004, 13, 12, 29937, 1925, 278, 848, 304, 9521, 30004, 13, 12, 29937, 322, 278, 4236, 848, 2159, 338, 29871, 29896, 29900, 29900, 30004, 13, 12, 1454, 474, 297, 3464, 29898, 1688, 4878, 1125, 30004, 13, 12, 12, 1357, 29918, 9990, 29889, 649, 29898, 7662, 1272, 29961, 29875, 2314, 30004, 13, 30004, 13, 12, 29937, 1653, 278, 3244, 322, 1369, 30004, 13, 12, 28993, 353, 5159, 30004, 13, 12, 1454, 474, 297, 3464, 29898, 4537, 1125, 30004, 13, 12, 12, 28993, 29889, 4397, 29898, 3421, 4899, 29898, 1357, 29918, 9990, 29892, 474, 29892, 3414, 876, 30004, 13, 12, 12, 28993, 29961, 29875, 1822, 2962, 26471, 13, 30004, 13, 12, 29937, 4480, 363, 278, 260, 7097, 304, 8341, 30004, 13, 12, 1454, 474, 297, 3464, 29898, 4537, 1125, 30004, 13, 12, 12, 28993, 29961, 29875, 1822, 7122, 26471, 13, 30004, 13, 2277, 6674, 307, 985, 292, 30004, 13, 3166, 6674, 307, 985, 292, 1053, 28625, 6756, 13, 30004, 13, 1753, 6674, 307, 985, 292, 29898, 7662, 29892, 1353, 29892, 1243, 4878, 29892, 3414, 1272, 1125, 30004, 13, 12, 10109, 353, 28625, 29898, 4537, 8443, 13, 12, 361, 3414, 1275, 29871, 29896, 29901, 30004, 13, 12, 12, 10109, 29889, 1958, 29898, 8017, 29918, 974, 29918, 1287, 29892, 3414, 1272, 7503, 1688, 4878, 2314, 30004, 13, 12, 23681, 3414, 1275, 29871, 29906, 29901, 30004, 13, 12, 12, 10109, 29889, 1958, 29898, 657, 29918, 2271, 29918, 6672, 29892, 3414, 1272, 7503, 1688, 4878, 2314, 30004, 13, 12, 10109, 29889, 5358, 26471, 13, 12, 10109, 29889, 7122, 26471, 13, 30004, 13, 2277, 1034, 449, 457, 30004, 13, 5215, 408, 948, 3934, 30004, 13, 30004, 13, 12674, 822, 1302, 29918, 8017, 29918, 974, 29918, 1287, 29898, 710, 29892, 2425, 1125, 30004, 13, 12, 20675, 2425, 29889, 3389, 29918, 262, 29918, 4258, 3406, 29898, 8516, 29892, 5296, 29918, 974, 29918, 1287, 29892, 851, 8443, 13, 12, 30004, 13, 12674, 822, 1302, 29918, 657, 29918, 2271, 29918, 6672, 29898, 2271, 29892, 2425, 1125, 30004, 13, 12, 1420, 353, 7272, 2425, 29889, 3389, 29918, 262, 29918, 4258, 3406, 29898, 8516, 29892, 7274, 29889, 657, 29892, 3142, 8443, 13, 12, 29879, 1132, 353, 25685, 29903, 1132, 29898, 1420, 29889, 726, 29892, 525, 1420, 29889, 16680, 1495, 30004, 13, 12, 3257, 353, 22300, 29889, 2813, 29889, 3257, 29889, 726, 30004, 13, 12, 2158, 29898, 3257, 8443, 13, 30004, 13, 1753, 1034, 449, 457, 29898, 7662, 29892, 1243, 4878, 29892, 3414, 1272, 1125, 30004, 13, 12, 7888, 353, 408, 948, 3934, 29889, 657, 29918, 3696, 29918, 7888, 26471, 13, 12, 361, 3414, 1275, 29871, 29896, 29901, 30004, 13, 12, 12, 20673, 353, 518, 7888, 29889, 3258, 29918, 7662, 29898, 1111, 29918, 8017, 29918, 974, 29918, 1287, 29898, 29873, 29892, 2425, 876, 30004, 13, 12, 12, 12, 12, 363, 260, 297, 3414, 1272, 7503, 1688, 4878, 5262, 30004, 13, 12, 23681, 3414, 1275, 29871, 29906, 29901, 30004, 13, 12, 12, 20673, 353, 518, 7888, 29889, 3258, 29918, 7662, 29898, 1111, 29918, 657, 29918, 2271, 29918, 6672, 29898, 29873, 29892, 2425, 876, 30004, 13, 12, 12, 12, 12, 363, 260, 297, 3414, 1272, 7503, 1688, 4878, 5262, 30004, 13, 12, 7888, 29889, 3389, 29918, 29305, 29918, 8835, 29898, 294, 948, 3934, 29889, 10685, 29898, 20673, 876, 30004, 13, 12, 30004, 13, 2277, 3414, 30004, 13, 29937, 3414, 29871, 29896, 30004, 13, 1753, 5296, 29918, 974, 29918, 1287, 29898, 710, 1125, 30004, 13, 12, 30004, 13, 12, 29874, 353, 289, 353, 274, 353, 270, 353, 29871, 29941, 29941, 396, 11905, 30004, 13, 12, 8000, 5852, 29901, 30004, 13, 12, 12, 1454, 321, 297, 3464, 29898, 29941, 29941, 29892, 29871, 29896, 29906, 29955, 1125, 30004, 13, 12, 12, 12, 29879, 353, 6608, 1982, 29889, 17051, 29906, 29945, 29953, 26471, 13, 12, 12, 12, 710, 29906, 353, 18460, 29898, 29874, 7240, 22495, 29898, 29890, 7240, 22495, 29898, 29883, 7240, 22495, 29898, 29881, 7240, 22495, 29898, 29872, 7240, 710, 30004, 13, 12, 12, 12, 29879, 29889, 5504, 29898, 710, 29906, 29889, 12508, 877, 9420, 29899, 29947, 8785, 30004, 13, 12, 12, 12, 29882, 353, 269, 29889, 20970, 7501, 342, 26471, 13, 12, 12, 12, 361, 298, 7503, 29945, 13192, 543, 29900, 29900, 29900, 29900, 29900, 1115, 30004, 13, 12, 12, 12, 12, 2158, 29898, 710, 29906, 8443, 13, 12, 12, 12, 12, 2457, 851, 29906, 30004, 13, 12, 12, 29881, 4619, 29871, 29896, 30004, 13, 12, 12, 361, 270, 1405, 29871, 29896, 29906, 29953, 29901, 30004, 13, 12, 12, 12, 29883, 4619, 29871, 29896, 30004, 13, 12, 12, 12, 29881, 353, 29871, 29941, 29941, 30004, 13, 12, 12, 361, 274, 1405, 29871, 29896, 29906, 29953, 29901, 30004, 13, 12, 12, 12, 29890, 4619, 29871, 29896, 30004, 13, 12, 12, 12, 29883, 353, 29871, 29941, 29941, 30004, 13, 12, 12, 361, 289, 1405, 29871, 29896, 29906, 29953, 29901, 30004, 13, 12, 12, 12, 29874, 4619, 29871, 29896, 30004, 13, 12, 12, 12, 29890, 353, 29871, 29941, 29941, 30004, 13, 12, 12, 361, 263, 1405, 29871, 29896, 29906, 29953, 29901, 30004, 13, 12, 12, 12, 8690, 30004, 13, 30004, 13, 29937, 3414, 29871, 29906, 30004, 13, 1753, 679, 29918, 2271, 29918, 6672, 29898, 2271, 1125, 30004, 13, 12, 30004, 13, 12, 1420, 353, 7274, 29889, 657, 29898, 2271, 8443, 13, 12, 29879, 1132, 353, 25685, 29903, 1132, 29898, 1420, 29889, 726, 29892, 525, 1420, 29889, 16680, 1495, 30004, 13, 12, 3257, 353, 22300, 29889, 2813, 29889, 3257, 29889, 726, 30004, 13, 12, 2158, 29898, 3257, 8443, 13, 12, 2457, 3611, 30004, 13, 30004, 13, 1753, 4744, 29898, 7662, 29892, 1243, 4878, 29892, 3414, 1272, 1125, 30004, 13, 12, 361, 3414, 1275, 29871, 29896, 29901, 30004, 13, 12, 12, 1454, 474, 297, 3464, 29898, 1688, 4878, 1125, 30004, 13, 12, 12, 12, 8017, 29918, 974, 29918, 1287, 29898, 7662, 1272, 29961, 29875, 2314, 30004, 13, 12, 23681, 3414, 1275, 29871, 29906, 29901, 30004, 13, 12, 12, 1454, 474, 297, 3464, 29898, 1688, 4878, 1125, 30004, 13, 12, 12, 12, 657, 29918, 2271, 29918, 6672, 29898, 7662, 1272, 29961, 29875, 2314, 30004, 13, 30004, 13, 1753, 1667, 7295, 30004, 13, 12, 7662, 353, 938, 29898, 2080, 3101, 396, 1881, 278, 3414, 366, 864, 304, 6222, 29901, 29871, 29896, 470, 29871, 29906, 30004, 13, 12, 29885, 353, 1881, 580, 396, 1881, 278, 1158, 29901, 29871, 29896, 29901, 1773, 389, 19715, 29892, 29871, 29906, 29901, 6674, 307, 985, 292, 29892, 29871, 29941, 29901, 1034, 449, 457, 30004, 13, 12, 29885, 353, 286, 29889, 5451, 26471, 13, 12, 361, 29898, 2435, 29898, 29885, 29897, 1360, 29906, 1125, 30004, 13, 12, 12, 4537, 353, 938, 29898, 29885, 29961, 29896, 2314, 30004, 13, 12, 5696, 353, 938, 29898, 29885, 29961, 29900, 2314, 30004, 13, 12, 1688, 4878, 353, 938, 29898, 2080, 3101, 30004, 13, 12, 30004, 13, 12, 29937, 3414, 1272, 30004, 13, 12, 1445, 353, 1722, 703, 7662, 29995, 29881, 29918, 11249, 29889, 3945, 29908, 29995, 7662, 8443, 13, 12, 7662, 1272, 353, 5159, 30004, 13, 12, 1454, 1196, 297, 934, 29901, 30004, 13, 12, 12, 7662, 1272, 29889, 4397, 29898, 1220, 29889, 6506, 28909, 29876, 742, 5124, 876, 30004, 13, 12, 12, 30004, 13, 12, 2962, 353, 931, 29889, 546, 29888, 29918, 11808, 26471, 13, 12, 361, 1158, 1275, 29871, 29896, 29901, 30004, 13, 12, 12, 29937, 671, 1773, 389, 19715, 30004, 13, 12, 12, 4713, 389, 19715, 29898, 7662, 29892, 1353, 29892, 1243, 4878, 29892, 3414, 1272, 8443, 13, 12, 23681, 1158, 1275, 29871, 29906, 29901, 30004, 13, 12, 12, 29937, 671, 6674, 307, 985, 292, 30004, 13, 12, 12, 18056, 307, 985, 292, 29898, 7662, 29892, 1353, 29892, 1243, 4878, 29892, 3414, 1272, 8443, 13, 12, 23681, 1158, 1275, 29871, 29941, 29901, 30004, 13, 12, 12, 29937, 671, 1034, 449, 457, 30004, 13, 12, 12, 2616, 449, 457, 29898, 7662, 29892, 1243, 4878, 29892, 3414, 1272, 8443, 13, 12, 23681, 1158, 1275, 29871, 29946, 29901, 30004, 13, 12, 12, 29937, 363, 4744, 30004, 13, 12, 12, 8382, 29898, 7662, 29892, 1243, 4878, 29892, 3414, 1272, 8443, 13, 12, 355, 353, 931, 29889, 546, 29888, 29918, 11808, 26471, 13, 12, 2158, 703, 11536, 2734, 931, 29901, 1273, 29888, 29908, 29995, 29898, 355, 29899, 2962, 876, 30004, 13, 12, 30004, 13, 361, 4770, 978, 1649, 26359, 1649, 3396, 1649, 1115, 30004, 13, 12, 3396, 580, 2 ]
torch-test/mpich-3.4.3/modules/libfabric/contrib/intel/jenkins/runtests.py
alchemy315/NoPFS
0
22305
import argparse import os import sys sys.path.append(os.environ['CI_SITE_CONFIG']) import ci_site_config import run import common parser = argparse.ArgumentParser() parser.add_argument("--prov", help="core provider", choices=["psm2", "verbs", \ "tcp", "udp", "sockets", "shm"]) parser.add_argument("--util", help="utility provider", choices=["rxd", "rxm"]) parser.add_argument("--ofi_build_mode", help="specify the build configuration", \ choices = ["dbg", "dl"]) args = parser.parse_args() args_core = args.prov args_util = args.util if (args.ofi_build_mode): ofi_build_mode = args.ofi_build_mode else: ofi_build_mode='reg' node = (os.environ['NODE_NAME']).split('-')[0] hosts = [node] # Note: Temporarily disabling all mpich testing # due to mpich options issues which is causing # multiple tests to fail. #mpilist = ['impi', 'mpich', 'ompi'] mpilist = ['impi', 'ompi'] #this script is executed from /tmp #this is done since some mpi tests #look for a valid location before running # the test on the secondary host(client) # but jenkins only creates a valid path on # the primary host (server/test node) os.chdir('/tmp/') if(args_core): for host in ci_site_config.node_map[node]: hosts.append(host) if (args_util == None): run.fi_info_test(args_core, hosts, ofi_build_mode) run.fabtests(args_core, hosts, ofi_build_mode) run.shmemtest(args_core, hosts, ofi_build_mode) for mpi in mpilist: run.intel_mpi_benchmark(args_core, hosts, mpi, ofi_build_mode) run.mpistress_benchmark(args_core, hosts, mpi, ofi_build_mode) run.osu_benchmark(args_core, hosts, mpi, ofi_build_mode) else: run.fi_info_test(args_core, hosts, ofi_build_mode, util=args_util) run.fabtests(args_core, hosts, ofi_build_mode, util=args_util) run.shmemtest(args_core, hosts, ofi_build_mode, util=args_util) for mpi in mpilist: run.intel_mpi_benchmark(args_core, hosts, mpi, ofi_build_mode, \ util=args_util,) run.mpistress_benchmark(args_core, hosts, mpi, ofi_build_mode, \ util=args_util) run.osu_benchmark(args_core, hosts, mpi, ofi_build_mode, \ util=args_util) else: print("Error : Specify a core provider to run tests")
[ 1, 1053, 1852, 5510, 13, 5215, 2897, 13, 5215, 10876, 13, 9675, 29889, 2084, 29889, 4397, 29898, 359, 29889, 21813, 1839, 8426, 29918, 29903, 9094, 29918, 25903, 11287, 13, 5215, 4583, 29918, 2746, 29918, 2917, 13, 5215, 1065, 13, 5215, 3619, 13, 13, 16680, 353, 1852, 5510, 29889, 15730, 11726, 580, 13, 13, 16680, 29889, 1202, 29918, 23516, 703, 489, 16123, 613, 1371, 543, 3221, 13113, 613, 19995, 29922, 3366, 567, 29885, 29906, 613, 376, 369, 5824, 613, 320, 13, 462, 268, 376, 23981, 613, 376, 566, 29886, 613, 376, 578, 9737, 613, 376, 845, 29885, 20068, 13, 16680, 29889, 1202, 29918, 23516, 703, 489, 4422, 613, 1371, 543, 329, 1793, 13113, 613, 19995, 29922, 3366, 17697, 29881, 613, 376, 17697, 29885, 20068, 13, 16680, 29889, 1202, 29918, 23516, 703, 489, 974, 29875, 29918, 4282, 29918, 8513, 613, 1371, 543, 6550, 1598, 278, 2048, 5285, 613, 320, 13, 462, 268, 19995, 353, 6796, 2585, 29887, 613, 376, 11671, 20068, 13, 13, 5085, 353, 13812, 29889, 5510, 29918, 5085, 580, 13, 5085, 29918, 3221, 353, 6389, 29889, 16123, 13, 13, 5085, 29918, 4422, 353, 6389, 29889, 4422, 13, 13, 361, 313, 5085, 29889, 974, 29875, 29918, 4282, 29918, 8513, 1125, 13, 1678, 310, 29875, 29918, 4282, 29918, 8513, 353, 6389, 29889, 974, 29875, 29918, 4282, 29918, 8513, 13, 2870, 29901, 13, 1678, 310, 29875, 29918, 4282, 29918, 8513, 2433, 1727, 29915, 13, 13, 3177, 353, 313, 359, 29889, 21813, 1839, 6632, 2287, 29918, 5813, 2033, 467, 5451, 877, 29899, 29861, 29900, 29962, 13, 23525, 353, 518, 3177, 29962, 13, 29937, 3940, 29901, 6789, 1971, 6275, 766, 17961, 599, 22326, 436, 6724, 13, 29937, 2861, 304, 22326, 436, 3987, 5626, 607, 338, 10805, 13, 29937, 2999, 6987, 304, 4418, 29889, 29871, 13, 29937, 1526, 309, 391, 353, 6024, 326, 1631, 742, 525, 1526, 436, 742, 525, 290, 1631, 2033, 13, 1526, 309, 391, 353, 6024, 326, 1631, 742, 525, 290, 1631, 2033, 13, 13, 29937, 1366, 2471, 338, 8283, 515, 847, 7050, 13, 29937, 1366, 338, 2309, 1951, 777, 286, 1631, 6987, 13, 29937, 6914, 363, 263, 2854, 4423, 1434, 2734, 13, 29937, 278, 1243, 373, 278, 16723, 3495, 29898, 4645, 29897, 13, 29937, 541, 432, 16468, 871, 10017, 263, 2854, 2224, 373, 29871, 13, 29937, 278, 7601, 3495, 313, 2974, 29914, 1688, 2943, 29897, 13, 13, 359, 29889, 305, 3972, 11219, 7050, 29914, 1495, 13, 13, 361, 29898, 5085, 29918, 3221, 1125, 13, 1678, 363, 3495, 297, 4583, 29918, 2746, 29918, 2917, 29889, 3177, 29918, 1958, 29961, 3177, 5387, 13, 4706, 18982, 29889, 4397, 29898, 3069, 29897, 13, 13, 1678, 565, 313, 5085, 29918, 4422, 1275, 6213, 1125, 13, 4706, 1065, 29889, 7241, 29918, 3888, 29918, 1688, 29898, 5085, 29918, 3221, 29892, 18982, 29892, 310, 29875, 29918, 4282, 29918, 8513, 29897, 13, 4706, 1065, 29889, 16582, 21150, 29898, 5085, 29918, 3221, 29892, 18982, 29892, 310, 29875, 29918, 4282, 29918, 8513, 29897, 13, 4706, 1065, 29889, 845, 6954, 1688, 29898, 5085, 29918, 3221, 29892, 18982, 29892, 310, 29875, 29918, 4282, 29918, 8513, 29897, 13, 4706, 363, 286, 1631, 297, 22326, 309, 391, 29901, 13, 9651, 1065, 29889, 524, 295, 29918, 1526, 29875, 29918, 1785, 16580, 29898, 5085, 29918, 3221, 29892, 18982, 29892, 286, 1631, 29892, 310, 29875, 29918, 4282, 29918, 8513, 29897, 1678, 13, 9651, 1065, 29889, 1526, 391, 1253, 29918, 1785, 16580, 29898, 5085, 29918, 3221, 29892, 18982, 29892, 286, 1631, 29892, 310, 29875, 29918, 4282, 29918, 8513, 29897, 13, 9651, 1065, 29889, 359, 29884, 29918, 1785, 16580, 29898, 5085, 29918, 3221, 29892, 18982, 29892, 286, 1631, 29892, 310, 29875, 29918, 4282, 29918, 8513, 29897, 259, 13, 1678, 1683, 29901, 13, 4706, 1065, 29889, 7241, 29918, 3888, 29918, 1688, 29898, 5085, 29918, 3221, 29892, 18982, 29892, 310, 29875, 29918, 4282, 29918, 8513, 29892, 3667, 29922, 5085, 29918, 4422, 29897, 13, 4706, 1065, 29889, 16582, 21150, 29898, 5085, 29918, 3221, 29892, 18982, 29892, 310, 29875, 29918, 4282, 29918, 8513, 29892, 3667, 29922, 5085, 29918, 4422, 29897, 13, 4706, 1065, 29889, 845, 6954, 1688, 29898, 5085, 29918, 3221, 29892, 18982, 29892, 310, 29875, 29918, 4282, 29918, 8513, 29892, 3667, 29922, 5085, 29918, 4422, 29897, 13, 4706, 363, 286, 1631, 297, 22326, 309, 391, 29901, 13, 9651, 1065, 29889, 524, 295, 29918, 1526, 29875, 29918, 1785, 16580, 29898, 5085, 29918, 3221, 29892, 18982, 29892, 286, 1631, 29892, 310, 29875, 29918, 4282, 29918, 8513, 29892, 320, 13, 462, 462, 4706, 3667, 29922, 5085, 29918, 4422, 29892, 29897, 13, 9651, 1065, 29889, 1526, 391, 1253, 29918, 1785, 16580, 29898, 5085, 29918, 3221, 29892, 18982, 29892, 286, 1631, 29892, 310, 29875, 29918, 4282, 29918, 8513, 29892, 320, 13, 462, 462, 9651, 3667, 29922, 5085, 29918, 4422, 29897, 13, 9651, 1065, 29889, 359, 29884, 29918, 1785, 16580, 29898, 5085, 29918, 3221, 29892, 18982, 29892, 286, 1631, 29892, 310, 29875, 29918, 4282, 29918, 8513, 29892, 320, 13, 462, 462, 632, 3667, 29922, 5085, 29918, 4422, 29897, 13, 2870, 29901, 13, 1678, 1596, 703, 2392, 584, 12048, 1598, 263, 7136, 13113, 304, 1065, 6987, 1159, 13, 268, 13, 2 ]
pywren_ibm_cloud/libs/cloudpickle/__init__.py
gerardparis/pywren-ibm-cloud
0
52417
import pickle from pywren_ibm_cloud.libs.cloudpickle.cloudpickle import * __version__ = '1.2.2'
[ 1, 1053, 5839, 280, 13, 13, 13, 3166, 282, 5693, 1267, 29918, 29690, 29918, 9274, 29889, 10254, 29889, 9274, 23945, 280, 29889, 9274, 23945, 280, 1053, 334, 13, 13, 13, 1649, 3259, 1649, 353, 525, 29896, 29889, 29906, 29889, 29906, 29915, 13, 2 ]
pyeccodes/defs/grib2/template_3_63_def.py
ecmwf/pyeccodes
7
95750
import pyeccodes.accessors as _ def load(h): h.add(_.Transient('biFourierMakeTemplate', 0)) h.add(_.Label('BiFourier coefficients')) h.add(_.Constant('biFourierCoefficients', 1)) h.add(_.Codetable('spectralType', 1, "3.6.table", _.Get('masterDir'), _.Get('localDir'))) h.alias('spectralDataRepresentationType', 'spectralType') h.add(_.Unsigned('biFourierResolutionParameterN', 4)) h.add(_.Unsigned('biFourierResolutionParameterM', 4)) h.add(_.Codetable('biFourierTruncationType', 1, "3.25.table", _.Get('masterDir'), _.Get('localDir'))) h.add(_.Unsigned('Lx', 8)) h.alias('geography.LxInMetres', 'Lx') h.add(_.Unsigned('Lux', 8)) h.alias('geography.LuxInMetres', 'Lux') h.add(_.Unsigned('Lcx', 8)) h.alias('geography.LcxInMetres', 'Lcx') h.add(_.Unsigned('Ly', 8)) h.alias('geography.LyInMetres', 'Ly') h.add(_.Unsigned('Luy', 8)) h.alias('geography.LuyInMetres', 'Luy') h.add(_.Unsigned('Lcy', 8)) h.alias('geography.LcyInMetres', 'Lcy') h.add(_.Codetable('shapeOfTheEarth', 1, "3.2.table", _.Get('masterDir'), _.Get('localDir'))) h.add(_.Unsigned('scaleFactorOfRadiusOfSphericalEarth', 1)) h.add(_.Unsigned('scaledValueOfRadiusOfSphericalEarth', 4)) h.add(_.Unsigned('scaleFactorOfEarthMajorAxis', 1)) h.alias('scaleFactorOfMajorAxisOfOblateSpheroidEarth', 'scaleFactorOfEarthMajorAxis') h.add(_.Unsigned('scaledValueOfEarthMajorAxis', 4)) h.alias('scaledValueOfMajorAxisOfOblateSpheroidEarth', 'scaledValueOfEarthMajorAxis') h.add(_.Unsigned('scaleFactorOfEarthMinorAxis', 1)) h.alias('scaleFactorOfMinorAxisOfOblateSpheroidEarth', 'scaleFactorOfEarthMinorAxis') h.add(_.Unsigned('scaledValueOfEarthMinorAxis', 4)) h.alias('scaledValueOfMinorAxisOfOblateSpheroidEarth', 'scaledValueOfEarthMinorAxis') h.alias('earthIsOblate', 'one') if (h.get_l('shapeOfTheEarth') == 0): h.add(_.Transient('radius', 6367470)) h.alias('radiusOfTheEarth', 'radius') h.alias('radiusInMetres', 'radius') h.alias('earthIsOblate', 'zero') if (h.get_l('shapeOfTheEarth') == 1): h.add(_.From_scale_factor_scaled_value('radius', _.Get('scaleFactorOfRadiusOfSphericalEarth'), _.Get('scaledValueOfRadiusOfSphericalEarth'))) h.alias('radiusOfTheEarth', 'radius') h.alias('radiusInMetres', 'radius') h.alias('earthIsOblate', 'zero') if (h.get_l('shapeOfTheEarth') == 6): h.add(_.Transient('radius', 6371229)) h.alias('radiusOfTheEarth', 'radius') h.alias('radiusInMetres', 'radius') h.alias('earthIsOblate', 'zero') if (h.get_l('shapeOfTheEarth') == 8): h.add(_.Transient('radius', 6371200)) h.alias('radiusOfTheEarth', 'radius') h.alias('radiusInMetres', 'radius') h.alias('earthIsOblate', 'zero') if (h.get_l('shapeOfTheEarth') == 2): h.add(_.Transient('earthMajorAxis', 6.37816e+06)) h.add(_.Transient('earthMinorAxis', 6.35678e+06)) h.alias('earthMajorAxisInMetres', 'earthMajorAxis') h.alias('earthMinorAxisInMetres', 'earthMinorAxis') if (h.get_l('shapeOfTheEarth') == 3): h.add(_.From_scale_factor_scaled_value('earthMajorAxis', _.Get('scaleFactorOfEarthMajorAxis'), _.Get('scaledValueOfEarthMajorAxis'))) h.add(_.From_scale_factor_scaled_value('earthMinorAxis', _.Get('scaleFactorOfEarthMinorAxis'), _.Get('scaledValueOfEarthMinorAxis'))) h.add(_.Divdouble('earthMajorAxisInMetres', _.Get('earthMajorAxis'), 0.001)) h.add(_.Divdouble('earthMinorAxisInMetres', _.Get('earthMinorAxis'), 0.001)) if (h.get_l('shapeOfTheEarth') == 7): h.add(_.From_scale_factor_scaled_value('earthMajorAxis', _.Get('scaleFactorOfEarthMajorAxis'), _.Get('scaledValueOfEarthMajorAxis'))) h.add(_.From_scale_factor_scaled_value('earthMinorAxis', _.Get('scaleFactorOfEarthMinorAxis'), _.Get('scaledValueOfEarthMinorAxis'))) h.alias('earthMajorAxisInMetres', 'earthMajorAxis') h.alias('earthMinorAxisInMetres', 'earthMinorAxis') if ((h.get_l('shapeOfTheEarth') == 4) or (h.get_l('shapeOfTheEarth') == 5)): h.add(_.Transient('earthMajorAxis', 6.37814e+06)) h.add(_.Transient('earthMinorAxis', 6.35675e+06)) h.alias('earthMajorAxisInMetres', 'earthMajorAxis') h.alias('earthMinorAxisInMetres', 'earthMinorAxis') if (h.get_l('shapeOfTheEarth') == 9): h.add(_.Transient('earthMajorAxis', 6.37756e+06)) h.add(_.Transient('earthMinorAxis', 6.35626e+06)) h.alias('earthMajorAxisInMetres', 'earthMajorAxis') h.alias('earthMinorAxisInMetres', 'earthMinorAxis') h.add(_.Signed('latitudeOfFirstGridPoint', 4)) h.alias('La1', 'latitudeOfFirstGridPoint') h.add(_.Scale('latitudeOfFirstGridPointInDegrees', _.Get('latitudeOfFirstGridPoint'), _.Get('one'), _.Get('grib2divider'), _.Get('truncateDegrees'))) h.alias('geography.latitudeOfFirstGridPointInDegrees', 'latitudeOfFirstGridPointInDegrees') h.alias('La1InDegrees', 'latitudeOfFirstGridPointInDegrees') h.add(_.Unsigned('longitudeOfFirstGridPoint', 4)) h.alias('Lo1', 'longitudeOfFirstGridPoint') h.add(_.Scale('longitudeOfFirstGridPointInDegrees', _.Get('longitudeOfFirstGridPoint'), _.Get('one'), _.Get('grib2divider'), _.Get('truncateDegrees'))) h.alias('geography.longitudeOfFirstGridPointInDegrees', 'longitudeOfFirstGridPointInDegrees') h.alias('Lo1InDegrees', 'longitudeOfFirstGridPointInDegrees') h.add(_.Signed('LaD', 4)) h.alias('latitudeWhereDxAndDyAreSpecified', 'LaD') h.add(_.Scale('LaDInDegrees', _.Get('LaD'), _.Get('one'), _.Get('grib2divider'), _.Get('truncateDegrees'))) h.alias('geography.LaDInDegrees', 'LaDInDegrees') h.add(_.Unsigned('LoV', 4)) h.add(_.Scale('LoVInDegrees', _.Get('LoV'), _.Get('one'), _.Get('grib2divider'), _.Get('truncateDegrees'))) h.alias('geography.LoVInDegrees', 'LoVInDegrees') h.add(_.Codeflag('projectionCentreFlag', 1, "grib2/tables/[tablesVersion]/3.5.table")) h.add(_.Signed('Latin1', 4)) h.alias('FirstLatitude', 'Latin1') h.add(_.Scale('Latin1InDegrees', _.Get('Latin1'), _.Get('one'), _.Get('grib2divider'), _.Get('truncateDegrees'))) h.alias('geography.Latin1InDegrees', 'Latin1InDegrees') h.add(_.Signed('Latin2', 4)) h.alias('SecondLatitude', 'Latin2') h.add(_.Scale('Latin2InDegrees', _.Get('Latin2'), _.Get('one'), _.Get('grib2divider'), _.Get('truncateDegrees'))) h.alias('geography.Latin2InDegrees', 'Latin2InDegrees') h.add(_.Signed('latitudeOfSouthernPole', 4)) h.alias('latitudeOfTheSouthernPoleOfProjection', 'latitudeOfSouthernPole') h.add(_.Scale('latitudeOfSouthernPoleInDegrees', _.Get('latitudeOfSouthernPole'), _.Get('one'), _.Get('grib2divider'), _.Get('truncateDegrees'))) h.alias('geography.latitudeOfSouthernPoleInDegrees', 'latitudeOfSouthernPoleInDegrees') h.add(_.Unsigned('longitudeOfSouthernPole', 4)) h.alias('longitudeOfTheSouthernPoleOfProjection', 'longitudeOfSouthernPole') h.add(_.Scale('longitudeOfSouthernPoleInDegrees', _.Get('longitudeOfSouthernPole'), _.Get('oneConstant'), _.Get('grib2divider'), _.Get('truncateDegrees'))) h.alias('geography.longitudeOfSouthernPoleInDegrees', 'longitudeOfSouthernPoleInDegrees')
[ 1, 1053, 282, 4099, 617, 2631, 29889, 5943, 943, 408, 903, 13, 13, 13, 1753, 2254, 29898, 29882, 1125, 13, 13, 1678, 298, 29889, 1202, 29898, 5396, 4300, 993, 877, 5365, 29943, 283, 4336, 9984, 6733, 742, 29871, 29900, 876, 13, 1678, 298, 29889, 1202, 29898, 5396, 4775, 877, 20517, 29943, 283, 4336, 16127, 8785, 13, 1678, 298, 29889, 1202, 29898, 5396, 12075, 424, 877, 5365, 29943, 283, 4336, 29907, 7297, 4543, 29879, 742, 29871, 29896, 876, 13, 1678, 298, 29889, 1202, 29898, 5396, 29907, 397, 300, 519, 877, 21494, 1705, 1542, 742, 29871, 29896, 29892, 376, 29941, 29889, 29953, 29889, 2371, 613, 903, 29889, 2577, 877, 6207, 9170, 5477, 903, 29889, 2577, 877, 2997, 9170, 29915, 4961, 13, 1678, 298, 29889, 19973, 877, 21494, 1705, 1469, 1123, 26081, 1542, 742, 525, 21494, 1705, 1542, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 5365, 29943, 283, 4336, 12375, 918, 9329, 29940, 742, 29871, 29946, 876, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 5365, 29943, 283, 4336, 12375, 918, 9329, 29924, 742, 29871, 29946, 876, 13, 1678, 298, 29889, 1202, 29898, 5396, 29907, 397, 300, 519, 877, 5365, 29943, 283, 4336, 2308, 4661, 362, 1542, 742, 29871, 29896, 29892, 376, 29941, 29889, 29906, 29945, 29889, 2371, 613, 903, 29889, 2577, 877, 6207, 9170, 5477, 903, 29889, 2577, 877, 2997, 9170, 29915, 4961, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 29931, 29916, 742, 29871, 29947, 876, 13, 1678, 298, 29889, 19973, 877, 479, 5275, 29889, 29931, 29916, 797, 10095, 690, 742, 525, 29931, 29916, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 29931, 1314, 742, 29871, 29947, 876, 13, 1678, 298, 29889, 19973, 877, 479, 5275, 29889, 29931, 1314, 797, 10095, 690, 742, 525, 29931, 1314, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 29931, 18904, 742, 29871, 29947, 876, 13, 1678, 298, 29889, 19973, 877, 479, 5275, 29889, 29931, 18904, 797, 10095, 690, 742, 525, 29931, 18904, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 29931, 29891, 742, 29871, 29947, 876, 13, 1678, 298, 29889, 19973, 877, 479, 5275, 29889, 29931, 29891, 797, 10095, 690, 742, 525, 29931, 29891, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 29931, 8631, 742, 29871, 29947, 876, 13, 1678, 298, 29889, 19973, 877, 479, 5275, 29889, 29931, 8631, 797, 10095, 690, 742, 525, 29931, 8631, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 29931, 1270, 742, 29871, 29947, 876, 13, 1678, 298, 29889, 19973, 877, 479, 5275, 29889, 29931, 1270, 797, 10095, 690, 742, 525, 29931, 1270, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 29907, 397, 300, 519, 877, 12181, 2776, 1576, 29923, 28696, 742, 29871, 29896, 29892, 376, 29941, 29889, 29906, 29889, 2371, 613, 903, 29889, 2577, 877, 6207, 9170, 5477, 903, 29889, 2577, 877, 2997, 9170, 29915, 4961, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 7052, 29943, 7168, 2776, 20494, 2776, 29903, 8096, 936, 29923, 28696, 742, 29871, 29896, 876, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 7052, 29881, 1917, 2776, 20494, 2776, 29903, 8096, 936, 29923, 28696, 742, 29871, 29946, 876, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 7052, 29943, 7168, 2776, 29923, 28696, 29924, 1175, 272, 16070, 742, 29871, 29896, 876, 13, 1678, 298, 29889, 19973, 877, 7052, 29943, 7168, 2776, 29924, 1175, 272, 16070, 2776, 29949, 2204, 403, 29903, 561, 1489, 333, 29923, 28696, 742, 525, 7052, 29943, 7168, 2776, 29923, 28696, 29924, 1175, 272, 16070, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 7052, 29881, 1917, 2776, 29923, 28696, 29924, 1175, 272, 16070, 742, 29871, 29946, 876, 13, 1678, 298, 29889, 19973, 877, 7052, 29881, 1917, 2776, 29924, 1175, 272, 16070, 2776, 29949, 2204, 403, 29903, 561, 1489, 333, 29923, 28696, 742, 525, 7052, 29881, 1917, 2776, 29923, 28696, 29924, 1175, 272, 16070, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 7052, 29943, 7168, 2776, 29923, 28696, 8140, 272, 16070, 742, 29871, 29896, 876, 13, 1678, 298, 29889, 19973, 877, 7052, 29943, 7168, 2776, 8140, 272, 16070, 2776, 29949, 2204, 403, 29903, 561, 1489, 333, 29923, 28696, 742, 525, 7052, 29943, 7168, 2776, 29923, 28696, 8140, 272, 16070, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 7052, 29881, 1917, 2776, 29923, 28696, 8140, 272, 16070, 742, 29871, 29946, 876, 13, 1678, 298, 29889, 19973, 877, 7052, 29881, 1917, 2776, 8140, 272, 16070, 2776, 29949, 2204, 403, 29903, 561, 1489, 333, 29923, 28696, 742, 525, 7052, 29881, 1917, 2776, 29923, 28696, 8140, 272, 16070, 1495, 13, 1678, 298, 29889, 19973, 877, 799, 386, 3624, 29949, 2204, 403, 742, 525, 650, 1495, 13, 13, 1678, 565, 313, 29882, 29889, 657, 29918, 29880, 877, 12181, 2776, 1576, 29923, 28696, 1495, 1275, 29871, 29900, 1125, 13, 4706, 298, 29889, 1202, 29898, 5396, 4300, 993, 877, 13471, 742, 29871, 29953, 29941, 29953, 29955, 29946, 29955, 29900, 876, 13, 4706, 298, 29889, 19973, 877, 13471, 2776, 1576, 29923, 28696, 742, 525, 13471, 1495, 13, 4706, 298, 29889, 19973, 877, 13471, 797, 10095, 690, 742, 525, 13471, 1495, 13, 4706, 298, 29889, 19973, 877, 799, 386, 3624, 29949, 2204, 403, 742, 525, 9171, 1495, 13, 13, 1678, 565, 313, 29882, 29889, 657, 29918, 29880, 877, 12181, 2776, 1576, 29923, 28696, 1495, 1275, 29871, 29896, 1125, 13, 4706, 298, 29889, 1202, 29898, 5396, 4591, 29918, 7052, 29918, 19790, 29918, 7052, 29881, 29918, 1767, 877, 13471, 742, 903, 29889, 2577, 877, 7052, 29943, 7168, 2776, 20494, 2776, 29903, 8096, 936, 29923, 28696, 5477, 903, 29889, 2577, 877, 7052, 29881, 1917, 2776, 20494, 2776, 29903, 8096, 936, 29923, 28696, 29915, 4961, 13, 4706, 298, 29889, 19973, 877, 13471, 2776, 1576, 29923, 28696, 742, 525, 13471, 1495, 13, 4706, 298, 29889, 19973, 877, 13471, 797, 10095, 690, 742, 525, 13471, 1495, 13, 4706, 298, 29889, 19973, 877, 799, 386, 3624, 29949, 2204, 403, 742, 525, 9171, 1495, 13, 13, 1678, 565, 313, 29882, 29889, 657, 29918, 29880, 877, 12181, 2776, 1576, 29923, 28696, 1495, 1275, 29871, 29953, 1125, 13, 4706, 298, 29889, 1202, 29898, 5396, 4300, 993, 877, 13471, 742, 29871, 29953, 29941, 29955, 29896, 29906, 29906, 29929, 876, 13, 4706, 298, 29889, 19973, 877, 13471, 2776, 1576, 29923, 28696, 742, 525, 13471, 1495, 13, 4706, 298, 29889, 19973, 877, 13471, 797, 10095, 690, 742, 525, 13471, 1495, 13, 4706, 298, 29889, 19973, 877, 799, 386, 3624, 29949, 2204, 403, 742, 525, 9171, 1495, 13, 13, 1678, 565, 313, 29882, 29889, 657, 29918, 29880, 877, 12181, 2776, 1576, 29923, 28696, 1495, 1275, 29871, 29947, 1125, 13, 4706, 298, 29889, 1202, 29898, 5396, 4300, 993, 877, 13471, 742, 29871, 29953, 29941, 29955, 29896, 29906, 29900, 29900, 876, 13, 4706, 298, 29889, 19973, 877, 13471, 2776, 1576, 29923, 28696, 742, 525, 13471, 1495, 13, 4706, 298, 29889, 19973, 877, 13471, 797, 10095, 690, 742, 525, 13471, 1495, 13, 4706, 298, 29889, 19973, 877, 799, 386, 3624, 29949, 2204, 403, 742, 525, 9171, 1495, 13, 13, 1678, 565, 313, 29882, 29889, 657, 29918, 29880, 877, 12181, 2776, 1576, 29923, 28696, 1495, 1275, 29871, 29906, 1125, 13, 4706, 298, 29889, 1202, 29898, 5396, 4300, 993, 877, 799, 386, 29924, 1175, 272, 16070, 742, 29871, 29953, 29889, 29941, 29955, 29947, 29896, 29953, 29872, 29974, 29900, 29953, 876, 13, 4706, 298, 29889, 1202, 29898, 5396, 4300, 993, 877, 799, 386, 8140, 272, 16070, 742, 29871, 29953, 29889, 29941, 29945, 29953, 29955, 29947, 29872, 29974, 29900, 29953, 876, 13, 4706, 298, 29889, 19973, 877, 799, 386, 29924, 1175, 272, 16070, 797, 10095, 690, 742, 525, 799, 386, 29924, 1175, 272, 16070, 1495, 13, 4706, 298, 29889, 19973, 877, 799, 386, 8140, 272, 16070, 797, 10095, 690, 742, 525, 799, 386, 8140, 272, 16070, 1495, 13, 13, 1678, 565, 313, 29882, 29889, 657, 29918, 29880, 877, 12181, 2776, 1576, 29923, 28696, 1495, 1275, 29871, 29941, 1125, 13, 4706, 298, 29889, 1202, 29898, 5396, 4591, 29918, 7052, 29918, 19790, 29918, 7052, 29881, 29918, 1767, 877, 799, 386, 29924, 1175, 272, 16070, 742, 903, 29889, 2577, 877, 7052, 29943, 7168, 2776, 29923, 28696, 29924, 1175, 272, 16070, 5477, 903, 29889, 2577, 877, 7052, 29881, 1917, 2776, 29923, 28696, 29924, 1175, 272, 16070, 29915, 4961, 13, 4706, 298, 29889, 1202, 29898, 5396, 4591, 29918, 7052, 29918, 19790, 29918, 7052, 29881, 29918, 1767, 877, 799, 386, 8140, 272, 16070, 742, 903, 29889, 2577, 877, 7052, 29943, 7168, 2776, 29923, 28696, 8140, 272, 16070, 5477, 903, 29889, 2577, 877, 7052, 29881, 1917, 2776, 29923, 28696, 8140, 272, 16070, 29915, 4961, 13, 4706, 298, 29889, 1202, 29898, 5396, 12596, 8896, 877, 799, 386, 29924, 1175, 272, 16070, 797, 10095, 690, 742, 903, 29889, 2577, 877, 799, 386, 29924, 1175, 272, 16070, 5477, 29871, 29900, 29889, 29900, 29900, 29896, 876, 13, 4706, 298, 29889, 1202, 29898, 5396, 12596, 8896, 877, 799, 386, 8140, 272, 16070, 797, 10095, 690, 742, 903, 29889, 2577, 877, 799, 386, 8140, 272, 16070, 5477, 29871, 29900, 29889, 29900, 29900, 29896, 876, 13, 13, 1678, 565, 313, 29882, 29889, 657, 29918, 29880, 877, 12181, 2776, 1576, 29923, 28696, 1495, 1275, 29871, 29955, 1125, 13, 4706, 298, 29889, 1202, 29898, 5396, 4591, 29918, 7052, 29918, 19790, 29918, 7052, 29881, 29918, 1767, 877, 799, 386, 29924, 1175, 272, 16070, 742, 903, 29889, 2577, 877, 7052, 29943, 7168, 2776, 29923, 28696, 29924, 1175, 272, 16070, 5477, 903, 29889, 2577, 877, 7052, 29881, 1917, 2776, 29923, 28696, 29924, 1175, 272, 16070, 29915, 4961, 13, 4706, 298, 29889, 1202, 29898, 5396, 4591, 29918, 7052, 29918, 19790, 29918, 7052, 29881, 29918, 1767, 877, 799, 386, 8140, 272, 16070, 742, 903, 29889, 2577, 877, 7052, 29943, 7168, 2776, 29923, 28696, 8140, 272, 16070, 5477, 903, 29889, 2577, 877, 7052, 29881, 1917, 2776, 29923, 28696, 8140, 272, 16070, 29915, 4961, 13, 4706, 298, 29889, 19973, 877, 799, 386, 29924, 1175, 272, 16070, 797, 10095, 690, 742, 525, 799, 386, 29924, 1175, 272, 16070, 1495, 13, 4706, 298, 29889, 19973, 877, 799, 386, 8140, 272, 16070, 797, 10095, 690, 742, 525, 799, 386, 8140, 272, 16070, 1495, 13, 13, 1678, 565, 5135, 29882, 29889, 657, 29918, 29880, 877, 12181, 2776, 1576, 29923, 28696, 1495, 1275, 29871, 29946, 29897, 470, 313, 29882, 29889, 657, 29918, 29880, 877, 12181, 2776, 1576, 29923, 28696, 1495, 1275, 29871, 29945, 22164, 13, 4706, 298, 29889, 1202, 29898, 5396, 4300, 993, 877, 799, 386, 29924, 1175, 272, 16070, 742, 29871, 29953, 29889, 29941, 29955, 29947, 29896, 29946, 29872, 29974, 29900, 29953, 876, 13, 4706, 298, 29889, 1202, 29898, 5396, 4300, 993, 877, 799, 386, 8140, 272, 16070, 742, 29871, 29953, 29889, 29941, 29945, 29953, 29955, 29945, 29872, 29974, 29900, 29953, 876, 13, 4706, 298, 29889, 19973, 877, 799, 386, 29924, 1175, 272, 16070, 797, 10095, 690, 742, 525, 799, 386, 29924, 1175, 272, 16070, 1495, 13, 4706, 298, 29889, 19973, 877, 799, 386, 8140, 272, 16070, 797, 10095, 690, 742, 525, 799, 386, 8140, 272, 16070, 1495, 13, 13, 1678, 565, 313, 29882, 29889, 657, 29918, 29880, 877, 12181, 2776, 1576, 29923, 28696, 1495, 1275, 29871, 29929, 1125, 13, 4706, 298, 29889, 1202, 29898, 5396, 4300, 993, 877, 799, 386, 29924, 1175, 272, 16070, 742, 29871, 29953, 29889, 29941, 29955, 29955, 29945, 29953, 29872, 29974, 29900, 29953, 876, 13, 4706, 298, 29889, 1202, 29898, 5396, 4300, 993, 877, 799, 386, 8140, 272, 16070, 742, 29871, 29953, 29889, 29941, 29945, 29953, 29906, 29953, 29872, 29974, 29900, 29953, 876, 13, 4706, 298, 29889, 19973, 877, 799, 386, 29924, 1175, 272, 16070, 797, 10095, 690, 742, 525, 799, 386, 29924, 1175, 272, 16070, 1495, 13, 4706, 298, 29889, 19973, 877, 799, 386, 8140, 272, 16070, 797, 10095, 690, 742, 525, 799, 386, 8140, 272, 16070, 1495, 13, 13, 1678, 298, 29889, 1202, 29898, 5396, 10140, 287, 877, 5066, 4279, 2776, 6730, 5756, 5228, 742, 29871, 29946, 876, 13, 1678, 298, 29889, 19973, 877, 5661, 29896, 742, 525, 5066, 4279, 2776, 6730, 5756, 5228, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 17185, 877, 5066, 4279, 2776, 6730, 5756, 5228, 797, 29928, 387, 11003, 742, 903, 29889, 2577, 877, 5066, 4279, 2776, 6730, 5756, 5228, 5477, 903, 29889, 2577, 877, 650, 5477, 903, 29889, 2577, 877, 29887, 1091, 29906, 4563, 1241, 5477, 903, 29889, 2577, 877, 509, 4661, 403, 29928, 387, 11003, 29915, 4961, 13, 1678, 298, 29889, 19973, 877, 479, 5275, 29889, 5066, 4279, 2776, 6730, 5756, 5228, 797, 29928, 387, 11003, 742, 525, 5066, 4279, 2776, 6730, 5756, 5228, 797, 29928, 387, 11003, 1495, 13, 1678, 298, 29889, 19973, 877, 5661, 29896, 797, 29928, 387, 11003, 742, 525, 5066, 4279, 2776, 6730, 5756, 5228, 797, 29928, 387, 11003, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 5426, 4279, 2776, 6730, 5756, 5228, 742, 29871, 29946, 876, 13, 1678, 298, 29889, 19973, 877, 3410, 29896, 742, 525, 5426, 4279, 2776, 6730, 5756, 5228, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 17185, 877, 5426, 4279, 2776, 6730, 5756, 5228, 797, 29928, 387, 11003, 742, 903, 29889, 2577, 877, 5426, 4279, 2776, 6730, 5756, 5228, 5477, 903, 29889, 2577, 877, 650, 5477, 903, 29889, 2577, 877, 29887, 1091, 29906, 4563, 1241, 5477, 903, 29889, 2577, 877, 509, 4661, 403, 29928, 387, 11003, 29915, 4961, 13, 1678, 298, 29889, 19973, 877, 479, 5275, 29889, 5426, 4279, 2776, 6730, 5756, 5228, 797, 29928, 387, 11003, 742, 525, 5426, 4279, 2776, 6730, 5756, 5228, 797, 29928, 387, 11003, 1495, 13, 1678, 298, 29889, 19973, 877, 3410, 29896, 797, 29928, 387, 11003, 742, 525, 5426, 4279, 2776, 6730, 5756, 5228, 797, 29928, 387, 11003, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 10140, 287, 877, 5661, 29928, 742, 29871, 29946, 876, 13, 1678, 298, 29889, 19973, 877, 5066, 4279, 11921, 29928, 29916, 2855, 29928, 29891, 17506, 10299, 2164, 742, 525, 5661, 29928, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 17185, 877, 5661, 29928, 797, 29928, 387, 11003, 742, 903, 29889, 2577, 877, 5661, 29928, 5477, 903, 29889, 2577, 877, 650, 5477, 903, 29889, 2577, 877, 29887, 1091, 29906, 4563, 1241, 5477, 903, 29889, 2577, 877, 509, 4661, 403, 29928, 387, 11003, 29915, 4961, 13, 1678, 298, 29889, 19973, 877, 479, 5275, 29889, 5661, 29928, 797, 29928, 387, 11003, 742, 525, 5661, 29928, 797, 29928, 387, 11003, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 3410, 29963, 742, 29871, 29946, 876, 13, 1678, 298, 29889, 1202, 29898, 5396, 17185, 877, 3410, 29963, 797, 29928, 387, 11003, 742, 903, 29889, 2577, 877, 3410, 29963, 5477, 903, 29889, 2577, 877, 650, 5477, 903, 29889, 2577, 877, 29887, 1091, 29906, 4563, 1241, 5477, 903, 29889, 2577, 877, 509, 4661, 403, 29928, 387, 11003, 29915, 4961, 13, 1678, 298, 29889, 19973, 877, 479, 5275, 29889, 3410, 29963, 797, 29928, 387, 11003, 742, 525, 3410, 29963, 797, 29928, 387, 11003, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 3399, 15581, 877, 771, 6929, 29907, 14056, 21979, 742, 29871, 29896, 29892, 376, 29887, 1091, 29906, 29914, 24051, 29914, 29961, 24051, 6594, 16261, 29941, 29889, 29945, 29889, 2371, 5783, 13, 1678, 298, 29889, 1202, 29898, 5396, 10140, 287, 877, 13992, 262, 29896, 742, 29871, 29946, 876, 13, 1678, 298, 29889, 19973, 877, 6730, 13992, 4279, 742, 525, 13992, 262, 29896, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 17185, 877, 13992, 262, 29896, 797, 29928, 387, 11003, 742, 903, 29889, 2577, 877, 13992, 262, 29896, 5477, 903, 29889, 2577, 877, 650, 5477, 903, 29889, 2577, 877, 29887, 1091, 29906, 4563, 1241, 5477, 903, 29889, 2577, 877, 509, 4661, 403, 29928, 387, 11003, 29915, 4961, 13, 1678, 298, 29889, 19973, 877, 479, 5275, 29889, 13992, 262, 29896, 797, 29928, 387, 11003, 742, 525, 13992, 262, 29896, 797, 29928, 387, 11003, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 10140, 287, 877, 13992, 262, 29906, 742, 29871, 29946, 876, 13, 1678, 298, 29889, 19973, 877, 11863, 13992, 4279, 742, 525, 13992, 262, 29906, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 17185, 877, 13992, 262, 29906, 797, 29928, 387, 11003, 742, 903, 29889, 2577, 877, 13992, 262, 29906, 5477, 903, 29889, 2577, 877, 650, 5477, 903, 29889, 2577, 877, 29887, 1091, 29906, 4563, 1241, 5477, 903, 29889, 2577, 877, 509, 4661, 403, 29928, 387, 11003, 29915, 4961, 13, 1678, 298, 29889, 19973, 877, 479, 5275, 29889, 13992, 262, 29906, 797, 29928, 387, 11003, 742, 525, 13992, 262, 29906, 797, 29928, 387, 11003, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 10140, 287, 877, 5066, 4279, 2776, 29903, 283, 5063, 29925, 1772, 742, 29871, 29946, 876, 13, 1678, 298, 29889, 19973, 877, 5066, 4279, 2776, 1576, 29903, 283, 5063, 29925, 1772, 2776, 1184, 6929, 742, 525, 5066, 4279, 2776, 29903, 283, 5063, 29925, 1772, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 17185, 877, 5066, 4279, 2776, 29903, 283, 5063, 29925, 1772, 797, 29928, 387, 11003, 742, 903, 29889, 2577, 877, 5066, 4279, 2776, 29903, 283, 5063, 29925, 1772, 5477, 903, 29889, 2577, 877, 650, 5477, 903, 29889, 2577, 877, 29887, 1091, 29906, 4563, 1241, 5477, 903, 29889, 2577, 877, 509, 4661, 403, 29928, 387, 11003, 29915, 4961, 13, 1678, 298, 29889, 19973, 877, 479, 5275, 29889, 5066, 4279, 2776, 29903, 283, 5063, 29925, 1772, 797, 29928, 387, 11003, 742, 525, 5066, 4279, 2776, 29903, 283, 5063, 29925, 1772, 797, 29928, 387, 11003, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 25807, 12961, 877, 5426, 4279, 2776, 29903, 283, 5063, 29925, 1772, 742, 29871, 29946, 876, 13, 1678, 298, 29889, 19973, 877, 5426, 4279, 2776, 1576, 29903, 283, 5063, 29925, 1772, 2776, 1184, 6929, 742, 525, 5426, 4279, 2776, 29903, 283, 5063, 29925, 1772, 1495, 13, 1678, 298, 29889, 1202, 29898, 5396, 17185, 877, 5426, 4279, 2776, 29903, 283, 5063, 29925, 1772, 797, 29928, 387, 11003, 742, 903, 29889, 2577, 877, 5426, 4279, 2776, 29903, 283, 5063, 29925, 1772, 5477, 903, 29889, 2577, 877, 650, 12075, 424, 5477, 903, 29889, 2577, 877, 29887, 1091, 29906, 4563, 1241, 5477, 903, 29889, 2577, 877, 509, 4661, 403, 29928, 387, 11003, 29915, 4961, 13, 1678, 298, 29889, 19973, 877, 479, 5275, 29889, 5426, 4279, 2776, 29903, 283, 5063, 29925, 1772, 797, 29928, 387, 11003, 742, 525, 5426, 4279, 2776, 29903, 283, 5063, 29925, 1772, 797, 29928, 387, 11003, 1495, 13, 2 ]
server.py
yenyuuuuu/esys_hw3
0
80803
<reponame>yenyuuuuu/esys_hw3 import socket import json import matplotlib.pyplot as plt import numpy as np HOST = '192.168.50.254' # Standard loopback interface address (localhost) 192.168.50.254 PORT = 3000 # Port to listen on (non-privileged ports are > 1023) # use ggplot style for more sophisticated visuals plt.style.use('ggplot') def main(): size = 100 t_vec = np.linspace(0,1,size+1)[0:-1] x_vec = np.zeros(size) y_vec = np.zeros(size) z_vec = np.zeros(size) line_x=[] line_y=[] line_z=[] with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.bind((HOST, PORT)) print('listen...') s.listen() conn, addr = s.accept() with conn: print('Connected by', addr) while True: data = conn.recv(1024).decode('utf-8') if not data: print("no data!!!") break print(data) j_data=json.loads(data) x_vec = np.append(x_vec[1:],j_data['x']) y_vec = np.append(y_vec[1:],j_data['y']) z_vec = np.append(z_vec[1:],j_data['z']) line_x, line_y, line_z = plotter(t_vec,x_vec,y_vec,z_vec,line_x,line_y,line_z) s.close() return return def plotter(t_vec,y1_data,y2_data,y3_data,line1,line2,line3,identifier='',pause_time=0.5): if (line1==[]) and (line2==[]) and (line3==[]): # this is the call to matplotlib that allows dynamic plotting plt.ion() fig = plt.figure(figsize=(13,6)) ax = fig.add_subplot(111) # create a variable for the line so we can later update it line1, = ax.plot(t_vec,y1_data,'-o',alpha=0.8,color='purple') line2, = ax.plot(t_vec,y2_data,'-o',alpha=0.8,color='red') line3, = ax.plot(t_vec,y3_data,'-o',alpha=0.8,color='blue') #update plot label/title plt.ylim([-1000,1000]) plt.ylabel('Acc') plt.title("Acc (to time t)") plt.show() # after the figure, axis, and line are created, we only need to update the y-data line1.set_ydata(y1_data) line2.set_ydata(y2_data) line3.set_ydata(y3_data) # adjust limits if new data goes beyond bounds # this pauses the data so the figure/axis can catch up - the amount of pause can be altered above plt.pause(pause_time) # return line so we can update it again in the next iteration return line1,line2,line3 if __name__ == '__main__': main()
[ 1, 529, 276, 1112, 420, 29958, 11771, 29891, 29884, 29884, 29884, 29884, 29884, 29914, 267, 952, 29918, 26828, 29941, 13, 5215, 9909, 30004, 13, 5215, 4390, 30004, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 30004, 13, 5215, 12655, 408, 7442, 30004, 13, 30004, 13, 20832, 353, 525, 29896, 29929, 29906, 29889, 29896, 29953, 29947, 29889, 29945, 29900, 29889, 29906, 29945, 29946, 29915, 29871, 396, 10117, 2425, 1627, 5067, 3211, 313, 7640, 29897, 29871, 29896, 29929, 29906, 29889, 29896, 29953, 29947, 29889, 29945, 29900, 29889, 29906, 29945, 29946, 30004, 13, 15082, 353, 29871, 29941, 29900, 29900, 29900, 4706, 396, 3371, 304, 11621, 373, 313, 5464, 29899, 22534, 488, 3192, 16169, 526, 1405, 29871, 29896, 29900, 29906, 29941, 8443, 13, 30004, 13, 29937, 671, 25662, 3114, 363, 901, 269, 3021, 4695, 630, 7604, 29879, 30004, 13, 572, 29873, 29889, 3293, 29889, 1509, 877, 1505, 5317, 1495, 30004, 13, 30004, 13, 1753, 1667, 7295, 30004, 13, 1678, 2159, 353, 29871, 29896, 29900, 29900, 30004, 13, 1678, 260, 29918, 2003, 353, 7442, 29889, 1915, 3493, 29898, 29900, 29892, 29896, 29892, 2311, 29974, 29896, 9601, 29900, 13018, 29896, 29962, 30004, 13, 1678, 921, 29918, 2003, 353, 7442, 29889, 3298, 359, 29898, 2311, 8443, 13, 1678, 343, 29918, 2003, 353, 7442, 29889, 3298, 359, 29898, 2311, 8443, 13, 1678, 503, 29918, 2003, 353, 7442, 29889, 3298, 359, 29898, 2311, 8443, 13, 1678, 1196, 29918, 29916, 29922, 2636, 30004, 13, 1678, 1196, 29918, 29891, 29922, 2636, 30004, 13, 1678, 1196, 29918, 29920, 29922, 2636, 30004, 13, 1678, 411, 9909, 29889, 11514, 29898, 11514, 29889, 5098, 29918, 1177, 2544, 29892, 9909, 29889, 6156, 7077, 29918, 1254, 1525, 5194, 29897, 408, 269, 29901, 30004, 13, 4706, 269, 29889, 5355, 3552, 20832, 29892, 349, 8476, 876, 30004, 13, 4706, 1596, 877, 20631, 856, 1495, 30004, 13, 4706, 269, 29889, 20631, 26471, 13, 4706, 11009, 29892, 28915, 353, 269, 29889, 16044, 26471, 13, 4706, 411, 11009, 29901, 30004, 13, 9651, 1596, 877, 20971, 2954, 491, 742, 28915, 8443, 13, 9651, 1550, 5852, 29901, 30004, 13, 18884, 848, 353, 11009, 29889, 3757, 29894, 29898, 29896, 29900, 29906, 29946, 467, 13808, 877, 9420, 29899, 29947, 1495, 30004, 13, 18884, 565, 451, 848, 29901, 30004, 13, 462, 1678, 1596, 703, 1217, 848, 21004, 1159, 30004, 13, 462, 1678, 2867, 30004, 13, 18884, 1596, 29898, 1272, 8443, 13, 18884, 432, 29918, 1272, 29922, 3126, 29889, 18132, 29898, 1272, 8443, 13, 18884, 921, 29918, 2003, 353, 7442, 29889, 4397, 29898, 29916, 29918, 2003, 29961, 29896, 29901, 1402, 29926, 29918, 1272, 1839, 29916, 2033, 8443, 13, 18884, 343, 29918, 2003, 353, 7442, 29889, 4397, 29898, 29891, 29918, 2003, 29961, 29896, 29901, 1402, 29926, 29918, 1272, 1839, 29891, 2033, 8443, 13, 18884, 503, 29918, 2003, 353, 7442, 29889, 4397, 29898, 29920, 29918, 2003, 29961, 29896, 29901, 1402, 29926, 29918, 1272, 1839, 29920, 2033, 8443, 13, 18884, 1196, 29918, 29916, 29892, 1196, 29918, 29891, 29892, 1196, 29918, 29920, 353, 6492, 357, 29898, 29873, 29918, 2003, 29892, 29916, 29918, 2003, 29892, 29891, 29918, 2003, 29892, 29920, 29918, 2003, 29892, 1220, 29918, 29916, 29892, 1220, 29918, 29891, 29892, 1220, 29918, 29920, 8443, 13, 9651, 269, 29889, 5358, 26471, 13, 9651, 736, 30004, 13, 1678, 736, 30004, 13, 30004, 13, 30004, 13, 1753, 6492, 357, 29898, 29873, 29918, 2003, 29892, 29891, 29896, 29918, 1272, 29892, 29891, 29906, 29918, 1272, 29892, 29891, 29941, 29918, 1272, 29892, 1220, 29896, 29892, 1220, 29906, 29892, 1220, 29941, 29892, 25378, 2433, 742, 29886, 1071, 29918, 2230, 29922, 29900, 29889, 29945, 1125, 30004, 13, 1678, 565, 313, 1220, 29896, 1360, 23076, 322, 313, 1220, 29906, 1360, 23076, 322, 313, 1220, 29941, 1360, 2636, 1125, 30004, 13, 4706, 396, 445, 338, 278, 1246, 304, 22889, 393, 6511, 7343, 6492, 1259, 30004, 13, 4706, 14770, 29889, 291, 26471, 13, 4706, 2537, 353, 14770, 29889, 4532, 29898, 1003, 2311, 7607, 29896, 29941, 29892, 29953, 876, 30004, 13, 4706, 4853, 353, 2537, 29889, 1202, 29918, 1491, 5317, 29898, 29896, 29896, 29896, 8443, 13, 4706, 396, 1653, 263, 2286, 363, 278, 1196, 577, 591, 508, 2678, 2767, 372, 30004, 13, 4706, 1196, 29896, 29892, 353, 4853, 29889, 5317, 29898, 29873, 29918, 2003, 29892, 29891, 29896, 29918, 1272, 5501, 29899, 29877, 742, 2312, 29922, 29900, 29889, 29947, 29892, 2780, 2433, 15503, 552, 1495, 30004, 13, 4706, 1196, 29906, 29892, 353, 4853, 29889, 5317, 29898, 29873, 29918, 2003, 29892, 29891, 29906, 29918, 1272, 5501, 29899, 29877, 742, 2312, 29922, 29900, 29889, 29947, 29892, 2780, 2433, 1127, 1495, 30004, 13, 4706, 1196, 29941, 29892, 353, 4853, 29889, 5317, 29898, 29873, 29918, 2003, 29892, 29891, 29941, 29918, 1272, 5501, 29899, 29877, 742, 2312, 29922, 29900, 29889, 29947, 29892, 2780, 2433, 9539, 1495, 4706, 6756, 13, 4706, 396, 5504, 6492, 3858, 29914, 3257, 30004, 13, 4706, 14770, 29889, 29891, 2576, 4197, 29899, 29896, 29900, 29900, 29900, 29892, 29896, 29900, 29900, 29900, 2314, 30004, 13, 4706, 14770, 29889, 29891, 1643, 877, 7504, 1495, 30004, 13, 4706, 14770, 29889, 3257, 703, 7504, 313, 517, 931, 260, 25760, 30004, 13, 4706, 14770, 29889, 4294, 26471, 13, 1678, 6756, 13, 30004, 13, 1678, 396, 1156, 278, 4377, 29892, 9685, 29892, 322, 1196, 526, 2825, 29892, 591, 871, 817, 304, 2767, 278, 343, 29899, 1272, 30004, 13, 1678, 1196, 29896, 29889, 842, 29918, 29891, 1272, 29898, 29891, 29896, 29918, 1272, 8443, 13, 1678, 1196, 29906, 29889, 842, 29918, 29891, 1272, 29898, 29891, 29906, 29918, 1272, 8443, 13, 1678, 1196, 29941, 29889, 842, 29918, 29891, 1272, 29898, 29891, 29941, 29918, 1272, 8443, 13, 1678, 396, 10365, 13071, 565, 716, 848, 5771, 8724, 13451, 30004, 13, 1678, 6756, 13, 1678, 396, 445, 282, 1485, 267, 278, 848, 577, 278, 4377, 29914, 8990, 508, 4380, 701, 448, 278, 5253, 310, 19957, 508, 367, 10551, 287, 2038, 30004, 13, 1678, 14770, 29889, 29886, 1071, 29898, 29886, 1071, 29918, 2230, 8443, 13, 1678, 6756, 13, 1678, 396, 736, 1196, 577, 591, 508, 2767, 372, 1449, 297, 278, 2446, 12541, 30004, 13, 1678, 736, 1196, 29896, 29892, 1220, 29906, 29892, 1220, 29941, 30004, 13, 30004, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 30004, 13, 1678, 1667, 26471, 13, 2 ]
examples/apprtc/apprtc.py
nickaknudson/aiortc
1
169141
<filename>examples/apprtc/apprtc.py import argparse import asyncio import json import logging import os import random import time import aiohttp import cv2 import websockets from aiortc import (AudioStreamTrack, RTCPeerConnection, RTCSessionDescription, VideoStreamTrack) from aiortc.contrib.media import frame_from_bgr from aiortc.sdp import candidate_from_sdp ROOT = os.path.dirname(__file__) PHOTO_PATH = os.path.join(ROOT, 'photo.jpg') VIDEO_PTIME = 1 / 30 def description_to_dict(description): return { 'sdp': description.sdp, 'type': description.type } class Signaling: async def connect(self, params): self.websocket = await websockets.connect(params['wss_url'], extra_headers={ 'Origin': 'https://appr.tc' }) async def recv(self): data = await self.websocket.recv() return json.loads(data) async def send(self, data): await self.websocket.send(json.dumps(data)) async def send_message(self, message): print('>', message) await self.send({ 'cmd': 'send', 'msg': json.dumps(message) }) class VideoImageTrack(VideoStreamTrack): def __init__(self): self.counter = 0 self.img = cv2.imread(PHOTO_PATH, cv2.IMREAD_COLOR) self.last = None async def recv(self): # rotate image rows, cols, _ = self.img.shape M = cv2.getRotationMatrix2D((cols / 2, rows / 2), self.counter / 2, 1) rotated = cv2.warpAffine(self.img, M, (cols, rows)) frame = frame_from_bgr(rotated) self.counter += 1 # sleep if self.last: delta = self.last + VIDEO_PTIME - time.time() if delta > 0: await asyncio.sleep(delta) self.last = time.time() return frame async def consume_signaling(signaling, pc, params): async def handle_message(message): print('<', message) if message['type'] == 'bye': return True if message['type'] == 'offer': await pc.setRemoteDescription(RTCSessionDescription(**message)) await pc.setLocalDescription(await pc.createAnswer()) await signaling.send_message(description_to_dict(pc.localDescription)) elif message['type'] == 'answer': await pc.setRemoteDescription(RTCSessionDescription(**message)) elif message['type'] == 'candidate': candidate = candidate_from_sdp(message['candidate'].split(':', 1)[1]) candidate.sdpMid = message['id'] candidate.sdpMLineIndex = message['label'] pc.addIceCandidate(candidate) return False for data in params['messages']: message = json.loads(data) await handle_message(message) stop = False while not stop: data = await signaling.recv() message = json.loads(data['msg']) stop = await handle_message(message) async def consume_audio(track): """ Drain incoming audio. """ while True: await track.recv() async def consume_video(track): """ Drain incoming video. """ while True: await track.recv() async def join_room(room): consumers = [] # fetch room parameters async with aiohttp.ClientSession() as session: async with session.post('https://appr.tc/join/' + room) as response: # we cannot use response.json() due to: # https://github.com/webrtc/apprtc/issues/562 data = json.loads(await response.text()) assert data['result'] == 'SUCCESS' params = data['params'] # create peer conection pc = RTCPeerConnection() pc.addTrack(AudioStreamTrack()) pc.addTrack(VideoImageTrack()) @pc.on('track') def on_track(track): if track.kind == 'audio': consumers.append(asyncio.ensure_future(consume_audio(track))) elif track.kind == 'video': consumers.append(asyncio.ensure_future(consume_video(track))) # connect to websocket and join signaling = Signaling() await signaling.connect(params) await signaling.send({ 'clientid': params['client_id'], 'cmd': 'register', 'roomid': params['room_id'], }) if params['is_initiator'] == 'true': # send offer await pc.setLocalDescription(await pc.createOffer()) await signaling.send_message(description_to_dict(pc.localDescription)) print('Please point a browser at %s' % params['room_link']) # receive 60s of media try: await asyncio.wait_for(consume_signaling(signaling, pc, params), timeout=60) except asyncio.TimeoutError: pass # shutdown print('Shutting down') await signaling.send_message({'type': 'bye'}) for c in consumers: c.cancel() await pc.close() if __name__ == '__main__': parser = argparse.ArgumentParser(description='AppRTC') parser.add_argument('room', nargs='?') parser.add_argument('--verbose', '-v', action='count') args = parser.parse_args() if not args.room: args.room = ''.join([random.choice('0123456789') for x in range(10)]) if args.verbose: logging.basicConfig(level=logging.DEBUG) asyncio.get_event_loop().run_until_complete(join_room(args.room))
[ 1, 529, 9507, 29958, 19057, 29914, 932, 2273, 29883, 29914, 932, 2273, 29883, 29889, 2272, 13, 5215, 1852, 5510, 13, 5215, 408, 948, 3934, 13, 5215, 4390, 13, 5215, 12183, 13, 5215, 2897, 13, 5215, 4036, 13, 5215, 931, 13, 13, 5215, 263, 601, 1124, 13, 5215, 13850, 29906, 13, 5215, 1856, 578, 9737, 13, 3166, 7468, 441, 29883, 1053, 313, 17111, 3835, 17936, 29892, 390, 29911, 6271, 29872, 261, 5350, 29892, 390, 9472, 7317, 9868, 29892, 13, 462, 1678, 13987, 3835, 17936, 29897, 13, 3166, 7468, 441, 29883, 29889, 21570, 29889, 9799, 1053, 3515, 29918, 3166, 29918, 29890, 629, 13, 3166, 7468, 441, 29883, 29889, 4928, 29886, 1053, 14020, 29918, 3166, 29918, 4928, 29886, 13, 13, 21289, 353, 2897, 29889, 2084, 29889, 25721, 22168, 1445, 1649, 29897, 13, 19689, 2891, 29949, 29918, 10145, 353, 2897, 29889, 2084, 29889, 7122, 29898, 21289, 29892, 525, 21596, 29889, 6173, 1495, 13, 13044, 29923, 29949, 29918, 7982, 8890, 353, 29871, 29896, 847, 29871, 29941, 29900, 13, 13, 13, 1753, 6139, 29918, 517, 29918, 8977, 29898, 8216, 1125, 13, 1678, 736, 426, 13, 4706, 525, 4928, 29886, 2396, 6139, 29889, 4928, 29886, 29892, 13, 4706, 525, 1853, 2396, 6139, 29889, 1853, 13, 1678, 500, 13, 13, 13, 1990, 9954, 12818, 29901, 13, 1678, 7465, 822, 4511, 29898, 1311, 29892, 8636, 1125, 13, 4706, 1583, 29889, 2676, 11514, 353, 7272, 1856, 578, 9737, 29889, 6915, 29898, 7529, 1839, 29893, 893, 29918, 2271, 7464, 4805, 29918, 13662, 3790, 13, 9651, 525, 23182, 2396, 525, 991, 597, 932, 29878, 29889, 14246, 29915, 13, 4706, 5615, 13, 13, 1678, 7465, 822, 1162, 29894, 29898, 1311, 1125, 13, 4706, 848, 353, 7272, 1583, 29889, 2676, 11514, 29889, 3757, 29894, 580, 13, 4706, 736, 4390, 29889, 18132, 29898, 1272, 29897, 13, 13, 1678, 7465, 822, 3638, 29898, 1311, 29892, 848, 1125, 13, 4706, 7272, 1583, 29889, 2676, 11514, 29889, 6717, 29898, 3126, 29889, 29881, 17204, 29898, 1272, 876, 13, 13, 1678, 7465, 822, 3638, 29918, 4906, 29898, 1311, 29892, 2643, 1125, 13, 4706, 1596, 877, 29958, 742, 2643, 29897, 13, 4706, 7272, 1583, 29889, 6717, 3319, 13, 9651, 525, 9006, 2396, 525, 6717, 742, 13, 9651, 525, 7645, 2396, 4390, 29889, 29881, 17204, 29898, 4906, 29897, 13, 4706, 5615, 13, 13, 13, 1990, 13987, 2940, 17936, 29898, 15167, 3835, 17936, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 1583, 29889, 11808, 353, 29871, 29900, 13, 4706, 1583, 29889, 2492, 353, 13850, 29906, 29889, 326, 949, 29898, 19689, 2891, 29949, 29918, 10145, 29892, 13850, 29906, 29889, 7833, 16310, 29918, 15032, 1955, 29897, 13, 4706, 1583, 29889, 4230, 353, 6213, 13, 13, 1678, 7465, 822, 1162, 29894, 29898, 1311, 1125, 13, 4706, 396, 16734, 1967, 13, 4706, 4206, 29892, 28730, 29892, 903, 353, 1583, 29889, 2492, 29889, 12181, 13, 4706, 341, 353, 13850, 29906, 29889, 657, 21281, 362, 14609, 29906, 29928, 3552, 22724, 847, 29871, 29906, 29892, 4206, 847, 29871, 29906, 511, 1583, 29889, 11808, 847, 29871, 29906, 29892, 29871, 29896, 29897, 13, 4706, 5731, 630, 353, 13850, 29906, 29889, 4495, 29886, 27867, 457, 29898, 1311, 29889, 2492, 29892, 341, 29892, 313, 22724, 29892, 4206, 876, 13, 4706, 3515, 353, 3515, 29918, 3166, 29918, 29890, 629, 29898, 5450, 630, 29897, 13, 4706, 1583, 29889, 11808, 4619, 29871, 29896, 13, 13, 4706, 396, 8709, 13, 4706, 565, 1583, 29889, 4230, 29901, 13, 9651, 19471, 353, 1583, 29889, 4230, 718, 478, 22027, 29949, 29918, 7982, 8890, 448, 931, 29889, 2230, 580, 13, 9651, 565, 19471, 1405, 29871, 29900, 29901, 13, 18884, 7272, 408, 948, 3934, 29889, 17059, 29898, 4181, 29897, 13, 4706, 1583, 29889, 4230, 353, 931, 29889, 2230, 580, 13, 13, 4706, 736, 3515, 13, 13, 13, 12674, 822, 29151, 29918, 4530, 12818, 29898, 4530, 12818, 29892, 22844, 29892, 8636, 1125, 13, 1678, 7465, 822, 4386, 29918, 4906, 29898, 4906, 1125, 13, 4706, 1596, 877, 29966, 742, 2643, 29897, 13, 13, 4706, 565, 2643, 1839, 1853, 2033, 1275, 525, 26966, 2396, 13, 9651, 736, 5852, 13, 13, 4706, 565, 2643, 1839, 1853, 2033, 1275, 525, 974, 571, 2396, 13, 9651, 7272, 22844, 29889, 842, 20224, 9868, 29898, 29934, 9472, 7317, 9868, 29898, 1068, 4906, 876, 13, 9651, 7272, 22844, 29889, 842, 7717, 9868, 29898, 20675, 22844, 29889, 3258, 22550, 3101, 13, 9651, 7272, 7182, 292, 29889, 6717, 29918, 4906, 29898, 8216, 29918, 517, 29918, 8977, 29898, 6739, 29889, 2997, 9868, 876, 13, 4706, 25342, 2643, 1839, 1853, 2033, 1275, 525, 12011, 2396, 13, 9651, 7272, 22844, 29889, 842, 20224, 9868, 29898, 29934, 9472, 7317, 9868, 29898, 1068, 4906, 876, 13, 4706, 25342, 2643, 1839, 1853, 2033, 1275, 525, 29883, 5380, 403, 2396, 13, 9651, 14020, 353, 14020, 29918, 3166, 29918, 4928, 29886, 29898, 4906, 1839, 29883, 5380, 403, 13359, 5451, 877, 29901, 742, 29871, 29896, 9601, 29896, 2314, 13, 9651, 14020, 29889, 4928, 29886, 29924, 333, 353, 2643, 1839, 333, 2033, 13, 9651, 14020, 29889, 4928, 29886, 1988, 457, 3220, 353, 2643, 1839, 1643, 2033, 13, 9651, 22844, 29889, 1202, 29902, 346, 29907, 5380, 403, 29898, 29883, 5380, 403, 29897, 13, 4706, 736, 7700, 13, 13, 1678, 363, 848, 297, 8636, 1839, 19158, 2033, 29901, 13, 4706, 2643, 353, 4390, 29889, 18132, 29898, 1272, 29897, 13, 4706, 7272, 4386, 29918, 4906, 29898, 4906, 29897, 13, 13, 1678, 5040, 353, 7700, 13, 1678, 1550, 451, 5040, 29901, 13, 4706, 848, 353, 7272, 7182, 292, 29889, 3757, 29894, 580, 13, 4706, 2643, 353, 4390, 29889, 18132, 29898, 1272, 1839, 7645, 11287, 13, 4706, 5040, 353, 7272, 4386, 29918, 4906, 29898, 4906, 29897, 13, 13, 13, 12674, 822, 29151, 29918, 18494, 29898, 11294, 1125, 13, 1678, 9995, 13, 1678, 360, 6038, 23235, 10348, 29889, 13, 1678, 9995, 13, 1678, 1550, 5852, 29901, 13, 4706, 7272, 5702, 29889, 3757, 29894, 580, 13, 13, 13, 12674, 822, 29151, 29918, 9641, 29898, 11294, 1125, 13, 1678, 9995, 13, 1678, 360, 6038, 23235, 4863, 29889, 13, 1678, 9995, 13, 1678, 1550, 5852, 29901, 13, 4706, 7272, 5702, 29889, 3757, 29894, 580, 13, 13, 13, 12674, 822, 5988, 29918, 8345, 29898, 8345, 1125, 13, 1678, 11233, 414, 353, 5159, 13, 13, 1678, 396, 6699, 5716, 4128, 13, 1678, 7465, 411, 263, 601, 1124, 29889, 4032, 7317, 580, 408, 4867, 29901, 13, 4706, 7465, 411, 4867, 29889, 2490, 877, 991, 597, 932, 29878, 29889, 14246, 29914, 7122, 22208, 718, 5716, 29897, 408, 2933, 29901, 13, 9651, 396, 591, 2609, 671, 2933, 29889, 3126, 580, 2861, 304, 29901, 13, 9651, 396, 2045, 597, 3292, 29889, 510, 29914, 705, 1182, 14246, 29914, 932, 2273, 29883, 29914, 12175, 29914, 29945, 29953, 29906, 13, 9651, 848, 353, 4390, 29889, 18132, 29898, 20675, 2933, 29889, 726, 3101, 13, 1678, 4974, 848, 1839, 2914, 2033, 1275, 525, 14605, 26925, 29915, 13, 1678, 8636, 353, 848, 1839, 7529, 2033, 13, 13, 1678, 396, 1653, 23533, 378, 9739, 13, 1678, 22844, 353, 390, 29911, 6271, 29872, 261, 5350, 580, 13, 1678, 22844, 29889, 1202, 17936, 29898, 17111, 3835, 17936, 3101, 13, 1678, 22844, 29889, 1202, 17936, 29898, 15167, 2940, 17936, 3101, 13, 13, 1678, 732, 6739, 29889, 265, 877, 11294, 1495, 13, 1678, 822, 373, 29918, 11294, 29898, 11294, 1125, 13, 4706, 565, 5702, 29889, 14380, 1275, 525, 18494, 2396, 13, 9651, 11233, 414, 29889, 4397, 29898, 294, 948, 3934, 29889, 7469, 29918, 29888, 9130, 29898, 3200, 2017, 29918, 18494, 29898, 11294, 4961, 13, 4706, 25342, 5702, 29889, 14380, 1275, 525, 9641, 2396, 13, 9651, 11233, 414, 29889, 4397, 29898, 294, 948, 3934, 29889, 7469, 29918, 29888, 9130, 29898, 3200, 2017, 29918, 9641, 29898, 11294, 4961, 13, 13, 1678, 396, 4511, 304, 1856, 11514, 322, 5988, 13, 1678, 7182, 292, 353, 9954, 12818, 580, 13, 1678, 7272, 7182, 292, 29889, 6915, 29898, 7529, 29897, 13, 1678, 7272, 7182, 292, 29889, 6717, 3319, 13, 4706, 525, 4645, 333, 2396, 8636, 1839, 4645, 29918, 333, 7464, 13, 4706, 525, 9006, 2396, 525, 9573, 742, 13, 4706, 525, 8345, 333, 2396, 8636, 1839, 8345, 29918, 333, 7464, 13, 1678, 5615, 13, 13, 1678, 565, 8636, 1839, 275, 29918, 2344, 29875, 1061, 2033, 1275, 525, 3009, 2396, 13, 4706, 396, 3638, 5957, 13, 4706, 7272, 22844, 29889, 842, 7717, 9868, 29898, 20675, 22844, 29889, 3258, 2776, 571, 3101, 13, 4706, 7272, 7182, 292, 29889, 6717, 29918, 4906, 29898, 8216, 29918, 517, 29918, 8977, 29898, 6739, 29889, 2997, 9868, 876, 13, 4706, 1596, 877, 12148, 1298, 263, 4714, 472, 1273, 29879, 29915, 1273, 8636, 1839, 8345, 29918, 2324, 11287, 13, 13, 1678, 396, 7150, 29871, 29953, 29900, 29879, 310, 5745, 13, 1678, 1018, 29901, 13, 4706, 7272, 408, 948, 3934, 29889, 10685, 29918, 1454, 29898, 3200, 2017, 29918, 4530, 12818, 29898, 4530, 12818, 29892, 22844, 29892, 8636, 511, 11815, 29922, 29953, 29900, 29897, 13, 1678, 5174, 408, 948, 3934, 29889, 10851, 2392, 29901, 13, 4706, 1209, 13, 13, 1678, 396, 12522, 3204, 13, 1678, 1596, 877, 2713, 329, 1259, 1623, 1495, 13, 1678, 7272, 7182, 292, 29889, 6717, 29918, 4906, 3319, 29915, 1853, 2396, 525, 26966, 29915, 1800, 13, 1678, 363, 274, 297, 11233, 414, 29901, 13, 4706, 274, 29889, 20713, 580, 13, 1678, 7272, 22844, 29889, 5358, 580, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 13812, 353, 1852, 5510, 29889, 15730, 11726, 29898, 8216, 2433, 2052, 29934, 9472, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 8345, 742, 302, 5085, 2433, 29973, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 369, 15828, 742, 17411, 29894, 742, 3158, 2433, 2798, 1495, 13, 1678, 6389, 353, 13812, 29889, 5510, 29918, 5085, 580, 13, 13, 1678, 565, 451, 6389, 29889, 8345, 29901, 13, 4706, 6389, 29889, 8345, 353, 525, 4286, 7122, 4197, 8172, 29889, 16957, 877, 29900, 29896, 29906, 29941, 29946, 29945, 29953, 29955, 29947, 29929, 1495, 363, 921, 297, 3464, 29898, 29896, 29900, 29897, 2314, 13, 13, 1678, 565, 6389, 29889, 369, 15828, 29901, 13, 4706, 12183, 29889, 16121, 3991, 29898, 5563, 29922, 21027, 29889, 18525, 29897, 13, 13, 1678, 408, 948, 3934, 29889, 657, 29918, 3696, 29918, 7888, 2141, 3389, 29918, 29305, 29918, 8835, 29898, 7122, 29918, 8345, 29898, 5085, 29889, 8345, 876, 13, 2 ]
good_spot/places/migrations/0040_actualpopulartimes.py
jasmine92122/NightClubBackend
0
119636
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-01-30 13:02 from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.utils.timezone import model_utils.fields class Migration(migrations.Migration): dependencies = [ ('places', '0039_auto_20180129_0924'), ] operations = [ migrations.CreateModel( name='ActualPopularTimes', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('actual_pop_times', django.contrib.postgres.fields.jsonb.JSONField()), ('expire_at', models.DateTimeField()), ], options={ 'abstract': 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, 29955, 373, 29871, 29906, 29900, 29896, 29947, 29899, 29900, 29896, 29899, 29941, 29900, 29871, 29896, 29941, 29901, 29900, 29906, 13, 3166, 4770, 29888, 9130, 1649, 1053, 29104, 29918, 20889, 1338, 13, 13, 5215, 9557, 29889, 21570, 29889, 2490, 7201, 29889, 9621, 29889, 3126, 29890, 13, 3166, 9557, 29889, 2585, 1053, 9725, 800, 29892, 4733, 13, 5215, 9557, 29889, 13239, 29889, 2230, 8028, 13, 5215, 1904, 29918, 13239, 29889, 9621, 13, 13, 13, 1990, 341, 16783, 29898, 26983, 800, 29889, 29924, 16783, 1125, 13, 13, 1678, 9962, 353, 518, 13, 4706, 6702, 29886, 6048, 742, 525, 29900, 29900, 29941, 29929, 29918, 6921, 29918, 29906, 29900, 29896, 29947, 29900, 29896, 29906, 29929, 29918, 29900, 29929, 29906, 29946, 5477, 13, 1678, 4514, 13, 13, 1678, 6931, 353, 518, 13, 4706, 9725, 800, 29889, 4391, 3195, 29898, 13, 9651, 1024, 2433, 2865, 950, 12310, 1070, 29164, 742, 13, 9651, 4235, 11759, 13, 18884, 6702, 333, 742, 4733, 29889, 12300, 3073, 29898, 6921, 29918, 11600, 29922, 5574, 29892, 7601, 29918, 1989, 29922, 5574, 29892, 28755, 29922, 8824, 29892, 26952, 29918, 978, 2433, 1367, 1495, 511, 13, 18884, 6702, 11600, 742, 1904, 29918, 13239, 29889, 9621, 29889, 12300, 20399, 3073, 29898, 4381, 29922, 14095, 29889, 13239, 29889, 2230, 8028, 29889, 3707, 29892, 3863, 519, 29922, 8824, 29892, 26952, 29918, 978, 2433, 11600, 1495, 511, 13, 18884, 6702, 1545, 2164, 742, 1904, 29918, 13239, 29889, 9621, 29889, 12300, 8897, 2111, 2164, 3073, 29898, 4381, 29922, 14095, 29889, 13239, 29889, 2230, 8028, 29889, 3707, 29892, 3863, 519, 29922, 8824, 29892, 26952, 29918, 978, 2433, 1545, 2164, 1495, 511, 13, 18884, 6702, 19304, 29918, 7323, 29918, 3706, 742, 9557, 29889, 21570, 29889, 2490, 7201, 29889, 9621, 29889, 3126, 29890, 29889, 7249, 3073, 25739, 13, 18884, 6702, 4548, 533, 29918, 271, 742, 4733, 29889, 11384, 3073, 25739, 13, 9651, 21251, 13, 9651, 3987, 3790, 13, 18884, 525, 16595, 2396, 7700, 29892, 13, 9651, 2981, 13, 4706, 10353, 13, 1678, 4514, 13, 2 ]
schedule/views.py
AndrewSaltz/Lab_Schedule
0
25454
from django.shortcuts import render import datetime from datetime import date import calendar from schedule.models import Event, period_choices, cart_choice from django.views.generic import UpdateView, TemplateView, ListView from schedule.forms import ReservationForm from django.http import HttpResponseRedirect, HttpResponse from django import forms import json import calendar from django.http import JsonResponse from django.core.serializers.json import DjangoJSONEncoder from django.views.decorators.csrf import csrf_exempt, ensure_csrf_cookie from django.db import IntegrityError from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin from django.contrib.auth.models import User class Home(LoginRequiredMixin, ListView): model = Event template_name = "schedule/home.html" login_url = '/login/' redirect_field_name = 'redirect_to' def get_context_data(self, **kwargs): context = super(Home, self).get_context_data(**kwargs) q = self.kwargs['adjuster'] #Change week adjust = int(q) if adjust != 0: adjust *=7 # Add to Monday to move up and down weeks today = date.today() Monday = date.today() - datetime.timedelta(days=date.today().weekday()) Friday = Monday + datetime.timedelta(days=4) Monday = Monday + datetime.timedelta(days=adjust) Friday = Friday + datetime.timedelta(days=adjust) # Alter the days if needed. Really non-pythony context['monday'] = Monday context['q'] = q context['this_week'] = Event.objects.filter(day__gte=Monday,day__lte=Friday) context['the_day'] = calendar.day_name[today.weekday()] periods = [] user = self.request.user context['my_reservation'] = Event.objects.filter(day__gte=Monday,day__lte=Friday,teacher=user.id) for p in period_choices: periods.append(p[1]) context['periods'] = periods context['username'] = self.request.user.username return context @ensure_csrf_cookie def reserve(request): if request.is_ajax(): pk = request.POST['pk'] slot = Event.objects.get(pk=pk) user = request.user if slot.is_reserved == True: if user == slot.teacher: slot.is_reserved = False slot.teacher = None slot.save() result = 1 elif user.is_superuser and user != slot.teacher: # Override as admin slot.is_reserved == True slot.teacher = user slot.save() result = 2 else: result = 3 else: slot.is_reserved = True slot.teacher = user slot.save() result = 2 data = {'result': result} return HttpResponse(json.dumps(data, cls=DjangoJSONEncoder)) class Dashboard(PermissionRequiredMixin,TemplateView): template_name = "schedule/dashboard.html" permission_required = 'is_staff' def get_context_data(self, **kwargs): context = super(Dashboard, self).get_context_data(**kwargs) periods = [] for p in period_choices: periods.append(p[1]) today = datetime.date.today() tomorrow = today + datetime.timedelta(days=1) cart_list =[] for cart in cart_choice: cart_list.append(cart[0]) context['periods']=periods # Make this a mixin context['this_day'] = Event.objects.filter(day=today) context['next_day'] = Event.objects.filter(day=tomorrow) context['cart_list'] = cart_list context['today'] = today context['tomorrow'] = tomorrow return context @ensure_csrf_cookie def create_week(request): if request.is_ajax(): to_monday = date.today().weekday() start = date.today() - datetime.timedelta(days=to_monday) #Find Monday day = start # Day will change, start will not end = start + datetime.timedelta(days=4) # One week, edit later for flexibility weekend = set([5, 6]) # Python week starts on Monday as 0 dupe_list = [] total = 0 while day <= end: if day.weekday() not in weekend: for period in period_choices: for cart in cart_choice: open = Event(day=day, period=period[0], cart=cart[0]) try: open.save() total+=1 except IntegrityError: dupe = str(open) dupe_list.append(dupe) pass day += datetime.timedelta(days=1) # Adds one day until the current day is past the end day data = {'start': start, 'end': end, 'dupe_list': dupe_list, 'total': total} return HttpResponse(json.dumps(data, cls=DjangoJSONEncoder)) def redirect_root(request): return HttpResponseRedirect('/week/0/') @ensure_csrf_cookie def create_month(request): if request.is_ajax(): month = date.today().month year = date.today().year # last = calendar.monthrange(year, month) # Last day start = date.today().replace(day=1) # Get the first day of the month end = date.today().replace(day=(calendar.monthrange(year, month)[1])) weekend = set([5, 6]) # Python week starts on Monday as 0 dupe_list = [] total = 0 day = start while day <= end: if day.weekday() not in weekend: for period in period_choices: for cart in cart_choice: open = Event(day=day, period=period[0], cart=cart[0]) try: open.save() total+=1 except IntegrityError: dupe = str(open) dupe_list.append(dupe) pass day += datetime.timedelta(days=1) data = {'start': start, 'end': end, 'dupe_list': dupe_list, 'total': total} return HttpResponse(json.dumps(data, cls=DjangoJSONEncoder)) @ensure_csrf_cookie def create_twelve(request): if request.is_ajax(): to_monday = date.today().weekday() start = date.today() - datetime.timedelta(days=to_monday) # Find Monday fake_end = start + datetime.timedelta(days=84) if fake_end.weekday() != 4: end = fake_end - datetime.timedelta(days=(fake_end.weekday() - 4)) else: end = fake_end day = start total = 0 dupe_list = [] weekend = set([5, 6]) # Python week starts on Monday as 0 while day <= end: if day.weekday() not in weekend: for period in period_choices: for cart in cart_choice: open = Event(day=day, period=period[0], cart=cart[0]) try: open.save() total+=1 except IntegrityError: dupe = str(open) dupe_list.append(dupe) pass day += datetime.timedelta(days=1) data = {'start': start, 'end': end, 'dupe_list': dupe_list, 'total': total} return HttpResponse(json.dumps(data, cls=DjangoJSONEncoder)) @ensure_csrf_cookie def delete_all(request): if request.is_ajax(): Event.objects.all().delete() return HttpResponse()
[ 1, 515, 9557, 29889, 12759, 7582, 29879, 1053, 4050, 13, 5215, 12865, 13, 3166, 12865, 1053, 2635, 13, 5215, 17684, 13, 3166, 20410, 29889, 9794, 1053, 6864, 29892, 3785, 29918, 1859, 1575, 29892, 7774, 29918, 16957, 13, 3166, 9557, 29889, 7406, 29889, 19206, 1053, 10318, 1043, 29892, 25663, 1043, 29892, 22184, 13, 3166, 20410, 29889, 9514, 1053, 2538, 20525, 2500, 13, 3166, 9557, 29889, 1124, 1053, 9056, 5103, 24735, 29892, 9056, 5103, 13, 3166, 9557, 1053, 7190, 13, 5215, 4390, 13, 5215, 17684, 13, 3166, 9557, 29889, 1124, 1053, 14355, 5103, 13, 3166, 9557, 29889, 3221, 29889, 15550, 19427, 29889, 3126, 1053, 15337, 7249, 8566, 6119, 13, 3166, 9557, 29889, 7406, 29889, 19557, 4097, 29889, 2395, 9600, 1053, 5939, 9600, 29918, 735, 3456, 29892, 9801, 29918, 2395, 9600, 29918, 21509, 13, 3166, 9557, 29889, 2585, 1053, 17100, 537, 2392, 13, 3166, 9557, 29889, 21570, 29889, 5150, 29889, 28084, 1144, 1053, 19130, 19347, 29924, 861, 262, 29892, 20894, 2333, 19347, 29924, 861, 262, 13, 3166, 9557, 29889, 21570, 29889, 5150, 29889, 9794, 1053, 4911, 13, 13, 13, 13, 13, 1990, 8778, 29898, 11049, 19347, 29924, 861, 262, 29892, 22184, 1125, 13, 1678, 1904, 353, 6864, 13, 1678, 4472, 29918, 978, 353, 376, 816, 11272, 29914, 5184, 29889, 1420, 29908, 13, 1678, 6464, 29918, 2271, 353, 8207, 7507, 22208, 13, 1678, 6684, 29918, 2671, 29918, 978, 353, 525, 17886, 29918, 517, 29915, 13, 13, 1678, 822, 679, 29918, 4703, 29918, 1272, 29898, 1311, 29892, 3579, 19290, 1125, 13, 4706, 3030, 353, 2428, 29898, 11184, 29892, 1583, 467, 657, 29918, 4703, 29918, 1272, 29898, 1068, 19290, 29897, 13, 4706, 3855, 353, 1583, 29889, 19290, 1839, 328, 5143, 261, 2033, 396, 7277, 4723, 13, 4706, 10365, 353, 938, 29898, 29939, 29897, 13, 4706, 565, 10365, 2804, 29871, 29900, 29901, 13, 9651, 10365, 334, 29922, 29955, 396, 3462, 304, 27822, 304, 4337, 701, 322, 1623, 11405, 13, 4706, 9826, 353, 2635, 29889, 27765, 580, 13, 4706, 27822, 353, 2635, 29889, 27765, 580, 448, 12865, 29889, 9346, 287, 2554, 29898, 16700, 29922, 1256, 29889, 27765, 2141, 18448, 3250, 3101, 13, 4706, 28728, 353, 27822, 718, 12865, 29889, 9346, 287, 2554, 29898, 16700, 29922, 29946, 29897, 13, 4706, 27822, 353, 27822, 718, 12865, 29889, 9346, 287, 2554, 29898, 16700, 29922, 328, 5143, 29897, 13, 4706, 28728, 353, 28728, 718, 12865, 29889, 9346, 287, 2554, 29898, 16700, 29922, 328, 5143, 29897, 396, 20561, 278, 3841, 565, 4312, 29889, 830, 635, 1661, 29899, 4691, 29891, 13, 4706, 3030, 1839, 8315, 388, 2033, 353, 27822, 13, 4706, 3030, 1839, 29939, 2033, 353, 3855, 13, 4706, 3030, 1839, 1366, 29918, 18448, 2033, 353, 6864, 29889, 12650, 29889, 4572, 29898, 3250, 1649, 29887, 371, 29922, 29924, 898, 388, 29892, 3250, 1649, 29880, 371, 29922, 29943, 2429, 388, 29897, 13, 4706, 3030, 1839, 1552, 29918, 3250, 2033, 353, 17684, 29889, 3250, 29918, 978, 29961, 27765, 29889, 18448, 3250, 580, 29962, 13, 4706, 23704, 353, 5159, 13, 4706, 1404, 353, 1583, 29889, 3827, 29889, 1792, 13, 4706, 3030, 1839, 1357, 29918, 690, 20525, 2033, 353, 6864, 29889, 12650, 29889, 4572, 29898, 3250, 1649, 29887, 371, 29922, 29924, 898, 388, 29892, 3250, 1649, 29880, 371, 29922, 29943, 2429, 388, 29892, 371, 11665, 29922, 1792, 29889, 333, 29897, 13, 4706, 363, 282, 297, 3785, 29918, 1859, 1575, 29901, 13, 9651, 23704, 29889, 4397, 29898, 29886, 29961, 29896, 2314, 13, 4706, 3030, 1839, 19145, 29879, 2033, 353, 23704, 13, 4706, 3030, 1839, 6786, 2033, 353, 1583, 29889, 3827, 29889, 1792, 29889, 6786, 13, 4706, 736, 3030, 13, 13, 29992, 7469, 29918, 2395, 9600, 29918, 21509, 13, 1753, 23986, 29898, 3827, 1125, 13, 1678, 565, 2009, 29889, 275, 29918, 6538, 7295, 13, 4706, 282, 29895, 353, 2009, 29889, 5438, 1839, 20571, 2033, 13, 4706, 21497, 353, 6864, 29889, 12650, 29889, 657, 29898, 20571, 29922, 20571, 29897, 13, 4706, 1404, 353, 2009, 29889, 1792, 13, 4706, 565, 21497, 29889, 275, 29918, 690, 9841, 1275, 5852, 29901, 13, 9651, 565, 1404, 1275, 21497, 29889, 371, 11665, 29901, 13, 18884, 21497, 29889, 275, 29918, 690, 9841, 353, 7700, 13, 18884, 21497, 29889, 371, 11665, 353, 6213, 13, 18884, 21497, 29889, 7620, 580, 13, 18884, 1121, 353, 29871, 29896, 13, 9651, 25342, 1404, 29889, 275, 29918, 9136, 1792, 322, 1404, 2804, 21497, 29889, 371, 11665, 29901, 396, 6811, 2426, 408, 4113, 13, 18884, 21497, 29889, 275, 29918, 690, 9841, 1275, 5852, 13, 18884, 21497, 29889, 371, 11665, 353, 1404, 13, 18884, 21497, 29889, 7620, 580, 13, 18884, 1121, 353, 29871, 29906, 13, 9651, 1683, 29901, 13, 18884, 1121, 353, 29871, 29941, 13, 4706, 1683, 29901, 13, 9651, 21497, 29889, 275, 29918, 690, 9841, 353, 5852, 13, 9651, 21497, 29889, 371, 11665, 353, 1404, 13, 9651, 21497, 29889, 7620, 580, 13, 9651, 1121, 353, 29871, 29906, 13, 1678, 848, 353, 11117, 2914, 2396, 1121, 29913, 13, 1678, 736, 9056, 5103, 29898, 3126, 29889, 29881, 17204, 29898, 1272, 29892, 1067, 29879, 29922, 29928, 5364, 7249, 8566, 6119, 876, 13, 13, 1990, 360, 1161, 3377, 29898, 27293, 19347, 29924, 861, 262, 29892, 6733, 1043, 1125, 13, 1678, 4472, 29918, 978, 353, 376, 816, 11272, 29914, 14592, 3377, 29889, 1420, 29908, 13, 1678, 10751, 29918, 12403, 353, 525, 275, 29918, 303, 3470, 29915, 13, 13, 1678, 822, 679, 29918, 4703, 29918, 1272, 29898, 1311, 29892, 3579, 19290, 1125, 13, 4706, 3030, 353, 2428, 29898, 29928, 1161, 3377, 29892, 1583, 467, 657, 29918, 4703, 29918, 1272, 29898, 1068, 19290, 29897, 13, 4706, 23704, 353, 5159, 13, 4706, 363, 282, 297, 3785, 29918, 1859, 1575, 29901, 13, 9651, 23704, 29889, 4397, 29898, 29886, 29961, 29896, 2314, 13, 4706, 9826, 353, 12865, 29889, 1256, 29889, 27765, 580, 13, 4706, 6454, 22396, 353, 9826, 718, 12865, 29889, 9346, 287, 2554, 29898, 16700, 29922, 29896, 29897, 13, 4706, 7774, 29918, 1761, 353, 2636, 13, 4706, 363, 7774, 297, 7774, 29918, 16957, 29901, 13, 9651, 7774, 29918, 1761, 29889, 4397, 29898, 13823, 29961, 29900, 2314, 13, 4706, 3030, 1839, 19145, 29879, 2033, 29922, 19145, 29879, 396, 8561, 445, 263, 6837, 262, 13, 4706, 3030, 1839, 1366, 29918, 3250, 2033, 353, 6864, 29889, 12650, 29889, 4572, 29898, 3250, 29922, 27765, 29897, 13, 4706, 3030, 1839, 4622, 29918, 3250, 2033, 353, 6864, 29889, 12650, 29889, 4572, 29898, 3250, 29922, 15135, 22396, 29897, 13, 4706, 3030, 1839, 13823, 29918, 1761, 2033, 353, 7774, 29918, 1761, 13, 4706, 3030, 1839, 27765, 2033, 353, 9826, 13, 4706, 3030, 1839, 15135, 22396, 2033, 353, 6454, 22396, 13, 4706, 736, 3030, 13, 13, 29992, 7469, 29918, 2395, 9600, 29918, 21509, 13, 1753, 1653, 29918, 18448, 29898, 3827, 1125, 13, 1678, 565, 2009, 29889, 275, 29918, 6538, 7295, 13, 4706, 304, 29918, 8315, 388, 353, 2635, 29889, 27765, 2141, 18448, 3250, 580, 13, 4706, 1369, 353, 2635, 29889, 27765, 580, 448, 12865, 29889, 9346, 287, 2554, 29898, 16700, 29922, 517, 29918, 8315, 388, 29897, 396, 12542, 27822, 13, 4706, 2462, 353, 1369, 396, 8373, 674, 1735, 29892, 1369, 674, 451, 13, 4706, 1095, 353, 1369, 718, 12865, 29889, 9346, 287, 2554, 29898, 16700, 29922, 29946, 29897, 29871, 396, 3118, 4723, 29892, 3863, 2678, 363, 8525, 4127, 13, 4706, 4723, 355, 353, 731, 4197, 29945, 29892, 29871, 29953, 2314, 29871, 396, 5132, 4723, 8665, 373, 27822, 408, 29871, 29900, 13, 4706, 868, 412, 29918, 1761, 353, 5159, 13, 4706, 3001, 353, 29871, 29900, 13, 4706, 1550, 2462, 5277, 1095, 29901, 13, 18884, 565, 2462, 29889, 18448, 3250, 580, 451, 297, 4723, 355, 29901, 13, 462, 1678, 363, 3785, 297, 3785, 29918, 1859, 1575, 29901, 13, 462, 4706, 363, 7774, 297, 7774, 29918, 16957, 29901, 13, 462, 9651, 1722, 353, 6864, 29898, 3250, 29922, 3250, 29892, 3785, 29922, 19145, 29961, 29900, 1402, 7774, 29922, 13823, 29961, 29900, 2314, 13, 462, 9651, 1018, 29901, 13, 462, 18884, 1722, 29889, 7620, 580, 13, 462, 18884, 3001, 23661, 29896, 13, 462, 9651, 5174, 17100, 537, 2392, 29901, 13, 462, 18884, 868, 412, 353, 851, 29898, 3150, 29897, 13, 462, 18884, 868, 412, 29918, 1761, 29889, 4397, 29898, 700, 412, 29897, 13, 462, 18884, 1209, 13, 18884, 2462, 4619, 12865, 29889, 9346, 287, 2554, 29898, 16700, 29922, 29896, 29897, 29871, 396, 3462, 29879, 697, 2462, 2745, 278, 1857, 2462, 338, 4940, 278, 1095, 2462, 13, 4706, 848, 353, 11117, 2962, 2396, 1369, 29892, 525, 355, 2396, 1095, 29892, 525, 700, 412, 29918, 1761, 2396, 868, 412, 29918, 1761, 29892, 525, 7827, 2396, 3001, 29913, 13, 4706, 736, 9056, 5103, 29898, 3126, 29889, 29881, 17204, 29898, 1272, 29892, 1067, 29879, 29922, 29928, 5364, 7249, 8566, 6119, 876, 13, 13, 13, 1753, 6684, 29918, 4632, 29898, 3827, 1125, 13, 1678, 736, 9056, 5103, 24735, 11219, 18448, 29914, 29900, 29914, 1495, 13, 13, 29992, 7469, 29918, 2395, 9600, 29918, 21509, 13, 1753, 1653, 29918, 10874, 29898, 3827, 1125, 13, 1678, 565, 2009, 29889, 275, 29918, 6538, 7295, 13, 4706, 4098, 353, 2635, 29889, 27765, 2141, 10874, 13, 4706, 1629, 353, 2635, 29889, 27765, 2141, 6360, 13, 539, 396, 1833, 353, 17684, 29889, 10874, 3881, 29898, 6360, 29892, 4098, 29897, 396, 9208, 2462, 13, 4706, 1369, 353, 2635, 29889, 27765, 2141, 6506, 29898, 3250, 29922, 29896, 29897, 396, 3617, 278, 937, 2462, 310, 278, 4098, 13, 4706, 1095, 353, 2635, 29889, 27765, 2141, 6506, 29898, 3250, 7607, 23392, 29889, 10874, 3881, 29898, 6360, 29892, 4098, 9601, 29896, 12622, 13, 4706, 4723, 355, 353, 731, 4197, 29945, 29892, 29871, 29953, 2314, 29871, 396, 5132, 4723, 8665, 373, 27822, 408, 29871, 29900, 13, 4706, 868, 412, 29918, 1761, 353, 5159, 13, 4706, 3001, 353, 29871, 29900, 13, 4706, 2462, 353, 1369, 13, 4706, 1550, 2462, 5277, 1095, 29901, 13, 9651, 565, 2462, 29889, 18448, 3250, 580, 451, 297, 4723, 355, 29901, 13, 462, 1678, 363, 3785, 297, 3785, 29918, 1859, 1575, 29901, 13, 462, 4706, 363, 7774, 297, 7774, 29918, 16957, 29901, 13, 462, 9651, 1722, 353, 6864, 29898, 3250, 29922, 3250, 29892, 3785, 29922, 19145, 29961, 29900, 1402, 7774, 29922, 13823, 29961, 29900, 2314, 13, 462, 9651, 1018, 29901, 13, 462, 18884, 1722, 29889, 7620, 580, 13, 462, 18884, 3001, 23661, 29896, 13, 462, 9651, 5174, 17100, 537, 2392, 29901, 13, 462, 18884, 868, 412, 353, 851, 29898, 3150, 29897, 13, 462, 18884, 868, 412, 29918, 1761, 29889, 4397, 29898, 700, 412, 29897, 13, 462, 18884, 1209, 13, 9651, 2462, 4619, 12865, 29889, 9346, 287, 2554, 29898, 16700, 29922, 29896, 29897, 13, 4706, 848, 353, 11117, 2962, 2396, 1369, 29892, 525, 355, 2396, 1095, 29892, 525, 700, 412, 29918, 1761, 2396, 868, 412, 29918, 1761, 29892, 525, 7827, 2396, 3001, 29913, 13, 4706, 736, 9056, 5103, 29898, 3126, 29889, 29881, 17204, 29898, 1272, 29892, 1067, 29879, 29922, 29928, 5364, 7249, 8566, 6119, 876, 13, 13, 29992, 7469, 29918, 2395, 9600, 29918, 21509, 13, 1753, 1653, 29918, 7516, 13841, 29898, 3827, 1125, 13, 1678, 565, 2009, 29889, 275, 29918, 6538, 7295, 13, 4706, 304, 29918, 8315, 388, 353, 2635, 29889, 27765, 2141, 18448, 3250, 580, 13, 4706, 1369, 353, 2635, 29889, 27765, 580, 448, 12865, 29889, 9346, 287, 2554, 29898, 16700, 29922, 517, 29918, 8315, 388, 29897, 29871, 396, 10987, 27822, 13, 4706, 25713, 29918, 355, 353, 1369, 718, 12865, 29889, 9346, 287, 2554, 29898, 16700, 29922, 29947, 29946, 29897, 13, 4706, 565, 25713, 29918, 355, 29889, 18448, 3250, 580, 2804, 29871, 29946, 29901, 13, 9651, 1095, 353, 25713, 29918, 355, 448, 12865, 29889, 9346, 287, 2554, 29898, 16700, 7607, 29888, 1296, 29918, 355, 29889, 18448, 3250, 580, 448, 29871, 29946, 876, 13, 4706, 1683, 29901, 13, 9651, 1095, 353, 25713, 29918, 355, 13, 4706, 2462, 353, 1369, 13, 4706, 3001, 353, 29871, 29900, 13, 4706, 868, 412, 29918, 1761, 353, 5159, 13, 4706, 4723, 355, 353, 731, 4197, 29945, 29892, 29871, 29953, 2314, 29871, 396, 5132, 4723, 8665, 373, 27822, 408, 29871, 29900, 13, 4706, 1550, 2462, 5277, 1095, 29901, 13, 9651, 565, 2462, 29889, 18448, 3250, 580, 451, 297, 4723, 355, 29901, 13, 462, 1678, 363, 3785, 297, 3785, 29918, 1859, 1575, 29901, 13, 462, 4706, 363, 7774, 297, 7774, 29918, 16957, 29901, 13, 462, 9651, 1722, 353, 6864, 29898, 3250, 29922, 3250, 29892, 3785, 29922, 19145, 29961, 29900, 1402, 7774, 29922, 13823, 29961, 29900, 2314, 13, 462, 9651, 1018, 29901, 13, 462, 18884, 1722, 29889, 7620, 580, 13, 462, 18884, 3001, 23661, 29896, 13, 462, 9651, 5174, 17100, 537, 2392, 29901, 13, 462, 18884, 868, 412, 353, 851, 29898, 3150, 29897, 13, 462, 18884, 868, 412, 29918, 1761, 29889, 4397, 29898, 700, 412, 29897, 13, 462, 18884, 1209, 13, 9651, 2462, 4619, 12865, 29889, 9346, 287, 2554, 29898, 16700, 29922, 29896, 29897, 13, 4706, 848, 353, 11117, 2962, 2396, 1369, 29892, 525, 355, 2396, 1095, 29892, 525, 700, 412, 29918, 1761, 2396, 868, 412, 29918, 1761, 29892, 525, 7827, 2396, 3001, 29913, 13, 4706, 736, 9056, 5103, 29898, 3126, 29889, 29881, 17204, 29898, 1272, 29892, 1067, 29879, 29922, 29928, 5364, 7249, 8566, 6119, 876, 13, 13, 29992, 7469, 29918, 2395, 9600, 29918, 21509, 13, 1753, 5217, 29918, 497, 29898, 3827, 1125, 13, 1678, 565, 2009, 29889, 275, 29918, 6538, 7295, 13, 4706, 6864, 29889, 12650, 29889, 497, 2141, 8143, 580, 13, 1678, 736, 9056, 5103, 580, 13, 13, 2 ]
MindSPONGE/mindsponge/md/cybertron/cutoff.py
mindspore-ai/mindscience
3
71618
# ============================================================================ # Copyright 2021 The AIMM team at Shenzhen Bay Laboratory & Peking University # # People: <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, # <NAME>, <NAME>, <NAME>, <NAME>, <NAME> # # This code is a part of Cybertron-Code package. # # The Cybertron-Code is open-source software based on the AI-framework: # MindSpore (https://www.mindspore.cn/) # # 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. # ============================================================================ """cybertron cutoff""" import numpy as np import mindspore as ms from mindspore import nn from mindspore import Tensor from mindspore.ops import operations as P from mindspore.ops import functional as F from .units import units __all__ = [ "CosineCutoff", "MollifierCutoff", "HardCutoff", "SmoothCutoff", "GaussianCutoff", "get_cutoff", ] _CUTOFF_ALIAS = dict() def _cutoff_register(*aliases): """Return the alias register.""" def alias_reg(cls): name = cls.__name__ name = name.lower() if name not in _CUTOFF_ALIAS: _CUTOFF_ALIAS[name] = cls for alias in aliases: if alias not in _CUTOFF_ALIAS: _CUTOFF_ALIAS[alias] = cls return cls return alias_reg class Cutoff(nn.Cell): """Cutoff""" def __init__(self, r_max=units.length(1, 'nm'), r_min=0, hyperparam='default', return_mask=False, reverse=False ): super().__init__() self.name = 'cutoff' self.hyperparam = hyperparam self.r_min = r_min self.cutoff = r_max self.return_mask = return_mask self.reverse = reverse @_cutoff_register('cosine') class CosineCutoff(Cutoff): r"""Class of Behler cosine cutoff. .. math:: f(r) = \begin{cases} 0.5 \times \left[1 + \cos\left(\frac{\pi r}{r_\text{cutoff}}\right)\right] & r < r_\text{cutoff} \\ 0 & r \geqslant r_\text{cutoff} \\ \end{cases} Args: cutoff (float, optional): cutoff radius. """ def __init__(self, r_max=units.length(1, 'nm'), r_min='default', hyperparam='default', return_mask=False, reverse=False ): super().__init__( r_max=r_max, r_min=r_min, hyperparam=None, return_mask=return_mask, reverse=reverse, ) self.name = 'cosine cutoff' self.pi = Tensor(np.pi, ms.float32) self.cos = P.Cos() self.logical_and = P.LogicalAnd() def construct(self, distances, neighbor_mask=None): """Compute cutoff. Args: distances (mindspore.Tensor): values of interatomic distances. Returns: mindspore.Tensor: values of cutoff function. """ # Compute values of cutoff function cuts = 0.5 * (self.cos(distances * self.pi / self.cutoff) + 1.0) if self.reverse: cuts = 1.0 - cuts ones = F.ones_like(cuts) cuts = F.select(distances < cuts, cuts, ones) if neighbor_mask is None: mask = distances >= 0 else: mask = neighbor_mask else: mask = distances < self.cutoff if neighbor_mask is not None: mask = self.logical_and(mask, neighbor_mask) # Remove contributions beyond the cutoff radius cutoffs = cuts * mask if self.return_mask: return cutoffs, mask return cutoffs @_cutoff_register('mollifier') class MollifierCutoff(Cutoff): r"""Class for mollifier cutoff scaled to have a value of 1 at :math:`r=0`. .. math:: f(r) = \begin{cases} \exp\left(1 - \frac{1}{1 - \left(\frac{r}{r_\text{cutoff}}\right)^2}\right) & r < r_\text{cutoff} \\ 0 & r \geqslant r_\text{cutoff} \\ \end{cases} Args: cutoff (float, optional): Cutoff radius. eps (float, optional): offset added to distances for numerical stability. """ def __init__(self, r_max=units.length(1, 'nm'), r_min='default', hyperparam='default', return_mask=False, reverse=False ): super().__init__( r_min=r_min, r_max=r_max, hyperparam=hyperparam, return_mask=return_mask, reverse=reverse, ) self.name = "Mollifier cutoff" if hyperparam == 'default': self.eps = units.length(1.0e-8, 'nm') else: self.eps = hyperparam self.exp = P.Exp() self.logical_and = P.LogicalAnd() def construct(self, distances, neighbor_mask=None): """Compute cutoff. Args: distances (mindspore.Tensor): values of interatomic distances. Returns: mindspore.Tensor: values of cutoff function. """ exponent = 1.0 - 1.0 / (1.0 - F.square(distances / self.cutoff)) cutoffs = self.exp(exponent) if self.reverse: cutoffs = 1. - cutoffs ones = F.ones_like(cutoffs) cutoffs = F.select(distances < self.cutoff, cutoffs, ones) if neighbor_mask is None: mask = (distances + self.eps) >= 0 else: mask = neighbor_mask else: mask = (distances + self.eps) < self.cutoff if neighbor_mask is not None: mask = self.logical_and(mask, neighbor_mask) cutoffs = cutoffs * mask return cutoffs, mask @_cutoff_register('hard') class HardCutoff(Cutoff): r"""Class of hard cutoff. .. math:: f(r) = \begin{cases} 1 & r \leqslant r_\text{cutoff} \\ 0 & r > r_\text{cutoff} \\ \end{cases} Args: cutoff (float): cutoff radius. """ def __init__(self, r_max=units.length(1, 'nm'), r_min=0, hyperparam='default', return_mask=False, reverse=False ): super().__init__( r_min=r_min, r_max=r_max, hyperparam=None, return_mask=return_mask, reverse=reverse, ) self.name = "Hard cutoff" self.logical_and = P.LogicalAnd() def construct(self, distances, neighbor_mask=None): """Compute cutoff. Args: distances (mindspore.Tensor): values of interatomic distances. Returns: mindspore.Tensor: values of cutoff function. """ if self.reverse: mask = distances >= self.cutoff else: mask = distances < self.cutoff if neighbor_mask is not None: self.logical_and(mask, neighbor_mask) if self.return_mask: return F.cast(mask, distances.dtype), mask return F.cast(mask, distances.dtype) @_cutoff_register('smooth') class SmoothCutoff(Cutoff): r"""Class of smooth cutoff by <NAME>. et al: [ref] <NAME>.; <NAME>.; <NAME>.; <NAME>.; <NAME>. Texturing & Modeling: A Procedural Approach; <NAME>: 2003 .. math:: r_min < r < r_max: f(r) = 1.0 - 6 * ( r / r_cutoff ) ^ 5 + 15 * ( r / r_cutoff ) ^ 4 - 10 * ( r / r_cutoff ) ^ 3 r >= r_max: f(r) = 0 r <= r_min: f(r) = 1 reverse: r_min < r < r_max: f(r) = 6 * ( r / r_cutoff ) ^ 5 - 15 * ( r / r_cutoff ) ^ 4 + 10 * ( r / r_cutoff ) ^ 3 r >= r_max: f(r) = 1 r <= r_min: f(r) = 0 Args: d_max (float, optional): the maximum distance (cutoff radius). d_min (float, optional): the minimum distance """ def __init__(self, r_max=units.length(1, 'nm'), r_min=0, hyperparam='default', return_mask=False, reverse=False ): super().__init__( r_min=r_min, r_max=r_max, hyperparam=None, return_mask=return_mask, reverse=reverse, ) if self.r_min >= self.cutoff: raise ValueError( 'dis_min must be smaller than cutoff at SmmothCutoff') self.dis_range = self.cutoff - self.r_min self.pow = P.Pow() self.logical_and = P.LogicalAnd() def construct(self, distance, neighbor_mask=None): """Compute cutoff. Args: distances (mindspore.Tensor or float): values of interatomic distances. Returns: mindspore.Tensor or float: values of cutoff function. """ dd = distance - self.r_min dd = dd / self.dis_range cuts = - 6. * self.pow(dd, 5) \ + 15. * self.pow(dd, 4) \ - 10. * self.pow(dd, 3) if self.reverse: cutoffs = -cuts mask_upper = distance < self.cutoff mask_lower = distance > self.r_min else: cutoffs = 1 + cuts mask_upper = distance > self.r_min mask_lower = distance < self.cutoff if neighbor_mask is not None: mask_lower = self.logical_and(mask_lower, neighbor_mask) zeros = F.zeros_like(distance) ones = F.ones_like(distance) cutoffs = F.select(mask_upper, cutoffs, ones) cutoffs = F.select(mask_lower, cutoffs, zeros) if self.return_mask: return cutoffs, mask_lower return cutoffs @_cutoff_register('gaussian') class GaussianCutoff(Cutoff): r"""Class of hard cutoff. .. math:: f(r) = \begin{cases} 1 & r \leqslant r_\text{cutoff} \\ 0 & r > r_\text{cutoff} \\ \end{cases} Args: cutoff (float): cutoff radius. """ def __init__(self, r_max=units.length(1, 'nm'), r_min=0, hyperparam='default', return_mask=False, reverse=False ): super().__init__( r_min=r_min, r_max=r_max, hyperparam=hyperparam, return_mask=return_mask, reverse=reverse, ) if hyperparam == 'default': self.sigma = units.length(1, 'nm') else: self.sigma = hyperparam self.sigma2 = self.sigma * self.sigma self.exp = P.Exp() self.logical_and = P.LogicalAnd() def construct(self, distance, neighbor_mask=None): """construct""" dd = distance - self.cutoff dd2 = dd * dd gauss = self.exp(-0.5 * dd2 / self.sigma2) if self.reverse: cuts = gauss ones = F.ones_like(cuts) cuts = F.select(distance < self.cutoff, cuts, ones) if neighbor_mask is None: mask = distance >= 0 else: mask = neighbor_mask else: cuts = 1. - gauss mask = distance < self.cutoff if neighbor_mask is not None: mask = self.logical_and(mask, neighbor_mask) cuts = cuts * mask if self.return_mask: return cuts, mask return cuts def get_cutoff(obj, r_max=units.length(1, 'nm'), r_min=0, hyperparam='default', return_mask=False, reverse=False): """get cutoff""" if obj is None or isinstance(obj, Cutoff): return obj if isinstance(obj, str): if obj not in _CUTOFF_ALIAS.keys(): raise ValueError( "The class corresponding to '{}' was not found.".format(obj)) return _CUTOFF_ALIAS[obj.lower()]( r_min=r_min, r_max=r_max, hyperparam=hyperparam, return_mask=return_mask, reverse=reverse, ) raise TypeError("Unsupported Cutoff type '{}'.".format(type(obj)))
[ 1, 396, 1275, 9166, 9166, 9166, 9166, 4936, 1360, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29906, 29896, 450, 319, 29902, 7428, 3815, 472, 1383, 4666, 3169, 6211, 16715, 7606, 669, 349, 1416, 292, 3014, 13, 29937, 13, 29937, 11647, 29901, 529, 5813, 10202, 529, 5813, 10202, 529, 5813, 10202, 529, 5813, 10202, 529, 5813, 10202, 13, 29937, 308, 529, 5813, 10202, 529, 5813, 10202, 529, 5813, 10202, 529, 5813, 10202, 529, 5813, 29958, 13, 29937, 13, 29937, 910, 775, 338, 263, 760, 310, 8045, 495, 509, 265, 29899, 3399, 3577, 29889, 13, 29937, 13, 29937, 450, 8045, 495, 509, 265, 29899, 3399, 338, 1722, 29899, 4993, 7047, 2729, 373, 278, 319, 29902, 29899, 4468, 29901, 13, 29937, 20152, 5592, 487, 313, 991, 597, 1636, 29889, 24021, 1028, 487, 29889, 18038, 4551, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 13, 29937, 366, 1122, 451, 671, 445, 934, 5174, 297, 752, 13036, 411, 278, 19245, 29889, 13, 29937, 887, 1122, 4017, 263, 3509, 310, 278, 19245, 472, 13, 29937, 13, 29937, 1732, 597, 1636, 29889, 4288, 29889, 990, 29914, 506, 11259, 29914, 27888, 1430, 1660, 29899, 29906, 29889, 29900, 13, 29937, 13, 29937, 25870, 3734, 491, 22903, 4307, 470, 15502, 304, 297, 5007, 29892, 7047, 13, 29937, 13235, 1090, 278, 19245, 338, 13235, 373, 385, 376, 3289, 8519, 29908, 350, 3289, 3235, 29892, 13, 29937, 399, 1806, 8187, 2692, 399, 1718, 29934, 13566, 29059, 6323, 8707, 29928, 22122, 29903, 8079, 13764, 29979, 476, 22255, 29892, 2845, 4653, 470, 2411, 2957, 29889, 13, 29937, 2823, 278, 19245, 363, 278, 2702, 4086, 14765, 1076, 11239, 322, 13, 29937, 27028, 1090, 278, 19245, 29889, 13, 29937, 1275, 9166, 9166, 9166, 9166, 4936, 1360, 13, 15945, 29908, 1270, 495, 509, 265, 5700, 2696, 15945, 29908, 13, 13, 5215, 12655, 408, 7442, 13, 5215, 3458, 1028, 487, 408, 10887, 13, 3166, 3458, 1028, 487, 1053, 302, 29876, 13, 3166, 3458, 1028, 487, 1053, 323, 6073, 13, 3166, 3458, 1028, 487, 29889, 3554, 1053, 6931, 408, 349, 13, 3166, 3458, 1028, 487, 29889, 3554, 1053, 13303, 408, 383, 13, 13, 3166, 869, 348, 1169, 1053, 10340, 13, 13, 1649, 497, 1649, 353, 518, 13, 1678, 376, 29907, 359, 457, 29907, 329, 2696, 613, 13, 1678, 376, 29924, 3028, 3709, 29907, 329, 2696, 613, 13, 1678, 376, 29950, 538, 29907, 329, 2696, 613, 13, 1678, 376, 29903, 4346, 720, 29907, 329, 2696, 613, 13, 1678, 376, 29954, 17019, 29907, 329, 2696, 613, 13, 1678, 376, 657, 29918, 7582, 2696, 613, 13, 29962, 13, 13, 29918, 29907, 2692, 27681, 29918, 1964, 29902, 3289, 353, 9657, 580, 13, 13, 13, 1753, 903, 7582, 2696, 29918, 9573, 10456, 2606, 2129, 1125, 13, 1678, 9995, 11609, 278, 13995, 6036, 1213, 15945, 13, 1678, 822, 13995, 29918, 1727, 29898, 25932, 1125, 13, 4706, 1024, 353, 1067, 29879, 17255, 978, 1649, 13, 4706, 1024, 353, 1024, 29889, 13609, 580, 13, 4706, 565, 1024, 451, 297, 903, 29907, 2692, 27681, 29918, 1964, 29902, 3289, 29901, 13, 9651, 903, 29907, 2692, 27681, 29918, 1964, 29902, 3289, 29961, 978, 29962, 353, 1067, 29879, 13, 13, 4706, 363, 13995, 297, 14430, 2129, 29901, 13, 9651, 565, 13995, 451, 297, 903, 29907, 2692, 27681, 29918, 1964, 29902, 3289, 29901, 13, 18884, 903, 29907, 2692, 27681, 29918, 1964, 29902, 3289, 29961, 19973, 29962, 353, 1067, 29879, 13, 13, 4706, 736, 1067, 29879, 13, 13, 1678, 736, 13995, 29918, 1727, 13, 13, 13, 1990, 315, 329, 2696, 29898, 15755, 29889, 4617, 1125, 13, 1678, 9995, 29907, 329, 2696, 15945, 29908, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 13, 462, 364, 29918, 3317, 29922, 348, 1169, 29889, 2848, 29898, 29896, 29892, 525, 22882, 5477, 13, 462, 364, 29918, 1195, 29922, 29900, 29892, 13, 462, 11266, 3207, 2433, 4381, 742, 13, 462, 736, 29918, 13168, 29922, 8824, 29892, 13, 462, 11837, 29922, 8824, 13, 462, 29871, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 978, 353, 525, 7582, 2696, 29915, 13, 4706, 1583, 29889, 24947, 3207, 353, 11266, 3207, 13, 4706, 1583, 29889, 29878, 29918, 1195, 353, 364, 29918, 1195, 13, 4706, 1583, 29889, 7582, 2696, 353, 364, 29918, 3317, 13, 4706, 1583, 29889, 2457, 29918, 13168, 353, 736, 29918, 13168, 13, 4706, 1583, 29889, 24244, 353, 11837, 13, 13, 13, 29992, 29918, 7582, 2696, 29918, 9573, 877, 3944, 457, 1495, 13, 1990, 13526, 457, 29907, 329, 2696, 29898, 29907, 329, 2696, 1125, 13, 1678, 364, 15945, 29908, 2385, 310, 1522, 29882, 1358, 6776, 457, 5700, 2696, 29889, 13, 13, 1678, 6317, 5844, 1057, 13, 539, 285, 29898, 29878, 29897, 353, 320, 463, 29912, 11436, 29913, 13, 308, 29900, 29889, 29945, 320, 3706, 320, 1563, 29961, 29896, 718, 320, 3944, 29905, 1563, 1194, 1154, 741, 1631, 364, 1157, 29878, 3187, 726, 29912, 7582, 2696, 4229, 1266, 2144, 1266, 29962, 13, 3986, 669, 364, 529, 364, 3187, 726, 29912, 7582, 2696, 29913, 2474, 13, 308, 29900, 669, 364, 320, 6279, 17139, 364, 3187, 726, 29912, 7582, 2696, 29913, 2474, 13, 4706, 320, 355, 29912, 11436, 29913, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 5700, 2696, 313, 7411, 29892, 13136, 1125, 5700, 2696, 11855, 29889, 13, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 13, 462, 364, 29918, 3317, 29922, 348, 1169, 29889, 2848, 29898, 29896, 29892, 525, 22882, 5477, 13, 462, 364, 29918, 1195, 2433, 4381, 742, 13, 462, 11266, 3207, 2433, 4381, 742, 13, 462, 736, 29918, 13168, 29922, 8824, 29892, 13, 462, 11837, 29922, 8824, 13, 462, 29871, 1125, 13, 4706, 2428, 2141, 1649, 2344, 12035, 13, 9651, 364, 29918, 3317, 29922, 29878, 29918, 3317, 29892, 13, 9651, 364, 29918, 1195, 29922, 29878, 29918, 1195, 29892, 13, 9651, 11266, 3207, 29922, 8516, 29892, 13, 9651, 736, 29918, 13168, 29922, 2457, 29918, 13168, 29892, 13, 9651, 11837, 29922, 24244, 29892, 13, 4706, 1723, 13, 13, 4706, 1583, 29889, 978, 353, 525, 3944, 457, 5700, 2696, 29915, 13, 4706, 1583, 29889, 1631, 353, 323, 6073, 29898, 9302, 29889, 1631, 29892, 10887, 29889, 7411, 29941, 29906, 29897, 13, 4706, 1583, 29889, 3944, 353, 349, 29889, 29907, 359, 580, 13, 4706, 1583, 29889, 1188, 936, 29918, 392, 353, 349, 29889, 3403, 936, 2855, 580, 13, 13, 1678, 822, 3386, 29898, 1311, 29892, 24610, 29892, 12307, 29918, 13168, 29922, 8516, 1125, 13, 4706, 9995, 20606, 29872, 5700, 2696, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 24610, 313, 24021, 1028, 487, 29889, 29911, 6073, 1125, 1819, 310, 1006, 21641, 24610, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 3458, 1028, 487, 29889, 29911, 6073, 29901, 1819, 310, 5700, 2696, 740, 29889, 13, 13, 4706, 9995, 13, 4706, 396, 11796, 29872, 1819, 310, 5700, 2696, 740, 13, 13, 4706, 5700, 29879, 353, 29871, 29900, 29889, 29945, 334, 313, 1311, 29889, 3944, 29898, 5721, 2925, 334, 1583, 29889, 1631, 847, 1583, 29889, 7582, 2696, 29897, 718, 29871, 29896, 29889, 29900, 29897, 13, 4706, 565, 1583, 29889, 24244, 29901, 13, 9651, 5700, 29879, 353, 29871, 29896, 29889, 29900, 448, 5700, 29879, 13, 9651, 6743, 353, 383, 29889, 2873, 29918, 4561, 29898, 7582, 29879, 29897, 13, 9651, 5700, 29879, 353, 383, 29889, 2622, 29898, 5721, 2925, 529, 5700, 29879, 29892, 5700, 29879, 29892, 6743, 29897, 13, 9651, 565, 12307, 29918, 13168, 338, 6213, 29901, 13, 18884, 11105, 353, 24610, 6736, 29871, 29900, 13, 9651, 1683, 29901, 13, 18884, 11105, 353, 12307, 29918, 13168, 13, 4706, 1683, 29901, 13, 9651, 11105, 353, 24610, 529, 1583, 29889, 7582, 2696, 13, 9651, 565, 12307, 29918, 13168, 338, 451, 6213, 29901, 13, 18884, 11105, 353, 1583, 29889, 1188, 936, 29918, 392, 29898, 13168, 29892, 12307, 29918, 13168, 29897, 13, 13, 4706, 396, 15154, 20706, 8724, 278, 5700, 2696, 11855, 13, 4706, 5700, 22450, 353, 5700, 29879, 334, 11105, 13, 13, 4706, 565, 1583, 29889, 2457, 29918, 13168, 29901, 13, 9651, 736, 5700, 22450, 29892, 11105, 13, 4706, 736, 5700, 22450, 13, 13, 13, 29992, 29918, 7582, 2696, 29918, 9573, 877, 29885, 3028, 3709, 1495, 13, 1990, 341, 3028, 3709, 29907, 329, 2696, 29898, 29907, 329, 2696, 1125, 13, 1678, 364, 15945, 29908, 2385, 363, 286, 3028, 3709, 5700, 2696, 6287, 29881, 304, 505, 263, 995, 310, 29871, 29896, 472, 584, 755, 18078, 29878, 29922, 29900, 1412, 13, 13, 1678, 6317, 5844, 1057, 13, 539, 285, 29898, 29878, 29897, 353, 320, 463, 29912, 11436, 29913, 13, 4706, 320, 4548, 29905, 1563, 29898, 29896, 448, 320, 1154, 29912, 29896, 1157, 29896, 448, 320, 1563, 1194, 1154, 29912, 29878, 1157, 29878, 3187, 726, 29912, 7582, 2696, 4229, 1266, 4887, 29906, 1012, 1266, 29897, 13, 3986, 669, 364, 529, 364, 3187, 726, 29912, 7582, 2696, 29913, 2474, 13, 308, 29900, 669, 364, 320, 6279, 17139, 364, 3187, 726, 29912, 7582, 2696, 29913, 2474, 13, 4706, 320, 355, 29912, 11436, 29913, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 5700, 2696, 313, 7411, 29892, 13136, 1125, 315, 329, 2696, 11855, 29889, 13, 4706, 321, 567, 313, 7411, 29892, 13136, 1125, 9210, 2715, 304, 24610, 363, 16259, 25806, 29889, 13, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 13, 462, 364, 29918, 3317, 29922, 348, 1169, 29889, 2848, 29898, 29896, 29892, 525, 22882, 5477, 13, 462, 364, 29918, 1195, 2433, 4381, 742, 13, 462, 11266, 3207, 2433, 4381, 742, 13, 462, 736, 29918, 13168, 29922, 8824, 29892, 13, 462, 11837, 29922, 8824, 13, 462, 29871, 1125, 13, 4706, 2428, 2141, 1649, 2344, 12035, 13, 9651, 364, 29918, 1195, 29922, 29878, 29918, 1195, 29892, 13, 9651, 364, 29918, 3317, 29922, 29878, 29918, 3317, 29892, 13, 9651, 11266, 3207, 29922, 24947, 3207, 29892, 13, 9651, 736, 29918, 13168, 29922, 2457, 29918, 13168, 29892, 13, 9651, 11837, 29922, 24244, 29892, 13, 4706, 1723, 13, 13, 4706, 1583, 29889, 978, 353, 376, 29924, 3028, 3709, 5700, 2696, 29908, 13, 13, 4706, 565, 11266, 3207, 1275, 525, 4381, 2396, 13, 9651, 1583, 29889, 8961, 353, 10340, 29889, 2848, 29898, 29896, 29889, 29900, 29872, 29899, 29947, 29892, 525, 22882, 1495, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 8961, 353, 11266, 3207, 13, 13, 4706, 1583, 29889, 4548, 353, 349, 29889, 9544, 580, 13, 4706, 1583, 29889, 1188, 936, 29918, 392, 353, 349, 29889, 3403, 936, 2855, 580, 13, 13, 1678, 822, 3386, 29898, 1311, 29892, 24610, 29892, 12307, 29918, 13168, 29922, 8516, 1125, 13, 4706, 9995, 20606, 29872, 5700, 2696, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 24610, 313, 24021, 1028, 487, 29889, 29911, 6073, 1125, 1819, 310, 1006, 21641, 24610, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 3458, 1028, 487, 29889, 29911, 6073, 29901, 1819, 310, 5700, 2696, 740, 29889, 13, 13, 4706, 9995, 13, 13, 4706, 28869, 353, 29871, 29896, 29889, 29900, 448, 29871, 29896, 29889, 29900, 847, 313, 29896, 29889, 29900, 448, 383, 29889, 17619, 29898, 5721, 2925, 847, 1583, 29889, 7582, 2696, 876, 13, 4706, 5700, 22450, 353, 1583, 29889, 4548, 29898, 735, 3296, 29897, 13, 13, 4706, 565, 1583, 29889, 24244, 29901, 13, 9651, 5700, 22450, 353, 29871, 29896, 29889, 448, 5700, 22450, 13, 9651, 6743, 353, 383, 29889, 2873, 29918, 4561, 29898, 7582, 22450, 29897, 13, 9651, 5700, 22450, 353, 383, 29889, 2622, 29898, 5721, 2925, 529, 1583, 29889, 7582, 2696, 29892, 5700, 22450, 29892, 6743, 29897, 13, 9651, 565, 12307, 29918, 13168, 338, 6213, 29901, 13, 18884, 11105, 353, 313, 5721, 2925, 718, 1583, 29889, 8961, 29897, 6736, 29871, 29900, 13, 9651, 1683, 29901, 13, 18884, 11105, 353, 12307, 29918, 13168, 13, 4706, 1683, 29901, 13, 9651, 11105, 353, 313, 5721, 2925, 718, 1583, 29889, 8961, 29897, 529, 1583, 29889, 7582, 2696, 13, 9651, 565, 12307, 29918, 13168, 338, 451, 6213, 29901, 13, 18884, 11105, 353, 1583, 29889, 1188, 936, 29918, 392, 29898, 13168, 29892, 12307, 29918, 13168, 29897, 13, 13, 4706, 5700, 22450, 353, 5700, 22450, 334, 11105, 13, 13, 4706, 736, 5700, 22450, 29892, 11105, 13, 13, 13, 29992, 29918, 7582, 2696, 29918, 9573, 877, 6800, 1495, 13, 1990, 10999, 29907, 329, 2696, 29898, 29907, 329, 2696, 1125, 13, 1678, 364, 15945, 29908, 2385, 310, 2898, 5700, 2696, 29889, 13, 13, 1678, 6317, 5844, 1057, 13, 539, 285, 29898, 29878, 29897, 353, 320, 463, 29912, 11436, 29913, 13, 308, 29896, 669, 364, 320, 23501, 364, 3187, 726, 29912, 7582, 2696, 29913, 2474, 13, 308, 29900, 669, 364, 1405, 364, 3187, 726, 29912, 7582, 2696, 29913, 2474, 13, 4706, 320, 355, 29912, 11436, 29913, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 5700, 2696, 313, 7411, 1125, 5700, 2696, 11855, 29889, 13, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 13, 462, 364, 29918, 3317, 29922, 348, 1169, 29889, 2848, 29898, 29896, 29892, 525, 22882, 5477, 13, 462, 364, 29918, 1195, 29922, 29900, 29892, 13, 462, 11266, 3207, 2433, 4381, 742, 13, 462, 736, 29918, 13168, 29922, 8824, 29892, 13, 462, 11837, 29922, 8824, 13, 462, 29871, 1125, 13, 4706, 2428, 2141, 1649, 2344, 12035, 13, 9651, 364, 29918, 1195, 29922, 29878, 29918, 1195, 29892, 13, 9651, 364, 29918, 3317, 29922, 29878, 29918, 3317, 29892, 13, 9651, 11266, 3207, 29922, 8516, 29892, 13, 9651, 736, 29918, 13168, 29922, 2457, 29918, 13168, 29892, 13, 9651, 11837, 29922, 24244, 29892, 13, 4706, 1723, 13, 13, 4706, 1583, 29889, 978, 353, 376, 29950, 538, 5700, 2696, 29908, 13, 4706, 1583, 29889, 1188, 936, 29918, 392, 353, 349, 29889, 3403, 936, 2855, 580, 13, 13, 1678, 822, 3386, 29898, 1311, 29892, 24610, 29892, 12307, 29918, 13168, 29922, 8516, 1125, 13, 4706, 9995, 20606, 29872, 5700, 2696, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 24610, 313, 24021, 1028, 487, 29889, 29911, 6073, 1125, 1819, 310, 1006, 21641, 24610, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 3458, 1028, 487, 29889, 29911, 6073, 29901, 1819, 310, 5700, 2696, 740, 29889, 13, 13, 4706, 9995, 13, 13, 4706, 565, 1583, 29889, 24244, 29901, 13, 9651, 11105, 353, 24610, 6736, 1583, 29889, 7582, 2696, 13, 4706, 1683, 29901, 13, 9651, 11105, 353, 24610, 529, 1583, 29889, 7582, 2696, 13, 13, 4706, 565, 12307, 29918, 13168, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 1188, 936, 29918, 392, 29898, 13168, 29892, 12307, 29918, 13168, 29897, 13, 13, 4706, 565, 1583, 29889, 2457, 29918, 13168, 29901, 13, 9651, 736, 383, 29889, 4384, 29898, 13168, 29892, 24610, 29889, 29881, 1853, 511, 11105, 13, 4706, 736, 383, 29889, 4384, 29898, 13168, 29892, 24610, 29889, 29881, 1853, 29897, 13, 13, 13, 29992, 29918, 7582, 2696, 29918, 9573, 877, 3844, 6983, 1495, 13, 1990, 4116, 6983, 29907, 329, 2696, 29898, 29907, 329, 2696, 1125, 13, 1678, 364, 15945, 29908, 2385, 310, 10597, 5700, 2696, 491, 529, 5813, 15513, 634, 394, 29901, 13, 4706, 518, 999, 29962, 529, 5813, 29958, 8670, 529, 5813, 29958, 8670, 529, 5813, 29958, 8670, 529, 5813, 29958, 8670, 529, 5813, 15513, 13, 4706, 3992, 3864, 669, 8125, 292, 29901, 319, 1019, 1133, 3631, 28268, 496, 29936, 529, 5813, 23917, 29871, 29906, 29900, 29900, 29941, 13, 13, 1678, 6317, 29871, 5844, 1057, 13, 4706, 364, 29918, 1195, 529, 364, 529, 364, 29918, 3317, 29901, 13, 4706, 285, 29898, 29878, 29897, 353, 29871, 29896, 29889, 29900, 448, 259, 29953, 334, 313, 364, 847, 364, 29918, 7582, 2696, 1723, 6228, 29871, 29945, 13, 462, 259, 718, 29871, 29896, 29945, 334, 313, 364, 847, 364, 29918, 7582, 2696, 1723, 6228, 29871, 29946, 13, 462, 259, 448, 29871, 29896, 29900, 334, 313, 364, 847, 364, 29918, 7582, 2696, 1723, 6228, 29871, 29941, 13, 4706, 364, 6736, 364, 29918, 3317, 29901, 285, 29898, 29878, 29897, 353, 29871, 29900, 13, 4706, 364, 5277, 364, 29918, 1195, 29901, 285, 29898, 29878, 29897, 353, 29871, 29896, 13, 13, 4706, 11837, 29901, 13, 4706, 364, 29918, 1195, 529, 364, 529, 364, 29918, 3317, 29901, 13, 4706, 285, 29898, 29878, 29897, 353, 418, 29953, 334, 313, 364, 847, 364, 29918, 7582, 2696, 1723, 6228, 29871, 29945, 13, 18884, 448, 29871, 29896, 29945, 334, 313, 364, 847, 364, 29918, 7582, 2696, 1723, 6228, 29871, 29946, 13, 18884, 718, 29871, 29896, 29900, 334, 313, 364, 847, 364, 29918, 7582, 2696, 1723, 6228, 29871, 29941, 13, 4706, 364, 6736, 364, 29918, 3317, 29901, 285, 29898, 29878, 29897, 353, 29871, 29896, 13, 4706, 364, 5277, 364, 29918, 1195, 29901, 285, 29898, 29878, 29897, 353, 29871, 29900, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 270, 29918, 3317, 313, 7411, 29892, 13136, 1125, 278, 7472, 5418, 313, 7582, 2696, 11855, 467, 13, 4706, 270, 29918, 1195, 313, 7411, 29892, 13136, 1125, 278, 9212, 5418, 13, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 13, 462, 364, 29918, 3317, 29922, 348, 1169, 29889, 2848, 29898, 29896, 29892, 525, 22882, 5477, 13, 462, 364, 29918, 1195, 29922, 29900, 29892, 13, 462, 11266, 3207, 2433, 4381, 742, 13, 462, 736, 29918, 13168, 29922, 8824, 29892, 13, 462, 11837, 29922, 8824, 13, 462, 29871, 1125, 13, 4706, 2428, 2141, 1649, 2344, 12035, 13, 9651, 364, 29918, 1195, 29922, 29878, 29918, 1195, 29892, 13, 9651, 364, 29918, 3317, 29922, 29878, 29918, 3317, 29892, 13, 9651, 11266, 3207, 29922, 8516, 29892, 13, 9651, 736, 29918, 13168, 29922, 2457, 29918, 13168, 29892, 13, 9651, 11837, 29922, 24244, 29892, 13, 4706, 1723, 13, 13, 4706, 565, 1583, 29889, 29878, 29918, 1195, 6736, 1583, 29889, 7582, 2696, 29901, 13, 9651, 12020, 7865, 2392, 29898, 13, 18884, 525, 2218, 29918, 1195, 1818, 367, 7968, 1135, 5700, 2696, 472, 4116, 29885, 720, 29907, 329, 2696, 1495, 13, 13, 4706, 1583, 29889, 2218, 29918, 3881, 353, 1583, 29889, 7582, 2696, 448, 1583, 29889, 29878, 29918, 1195, 13, 13, 4706, 1583, 29889, 12248, 353, 349, 29889, 29925, 340, 580, 13, 4706, 1583, 29889, 1188, 936, 29918, 392, 353, 349, 29889, 3403, 936, 2855, 580, 13, 13, 1678, 822, 3386, 29898, 1311, 29892, 5418, 29892, 12307, 29918, 13168, 29922, 8516, 1125, 13, 4706, 9995, 20606, 29872, 5700, 2696, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 24610, 313, 24021, 1028, 487, 29889, 29911, 6073, 470, 5785, 1125, 1819, 310, 1006, 21641, 24610, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 3458, 1028, 487, 29889, 29911, 6073, 470, 5785, 29901, 1819, 310, 5700, 2696, 740, 29889, 13, 13, 4706, 9995, 13, 4706, 24488, 353, 5418, 448, 1583, 29889, 29878, 29918, 1195, 13, 4706, 24488, 353, 24488, 847, 1583, 29889, 2218, 29918, 3881, 13, 4706, 5700, 29879, 353, 448, 259, 29953, 29889, 334, 1583, 29889, 12248, 29898, 1289, 29892, 29871, 29945, 29897, 320, 13, 9651, 718, 29871, 29896, 29945, 29889, 334, 1583, 29889, 12248, 29898, 1289, 29892, 29871, 29946, 29897, 320, 13, 9651, 448, 29871, 29896, 29900, 29889, 334, 1583, 29889, 12248, 29898, 1289, 29892, 29871, 29941, 29897, 13, 13, 4706, 565, 1583, 29889, 24244, 29901, 13, 9651, 5700, 22450, 353, 448, 7582, 29879, 13, 9651, 11105, 29918, 21064, 353, 5418, 529, 1583, 29889, 7582, 2696, 13, 9651, 11105, 29918, 13609, 353, 5418, 1405, 1583, 29889, 29878, 29918, 1195, 13, 4706, 1683, 29901, 13, 9651, 5700, 22450, 353, 29871, 29896, 718, 5700, 29879, 13, 9651, 11105, 29918, 21064, 353, 5418, 1405, 1583, 29889, 29878, 29918, 1195, 13, 9651, 11105, 29918, 13609, 353, 5418, 529, 1583, 29889, 7582, 2696, 13, 13, 4706, 565, 12307, 29918, 13168, 338, 451, 6213, 29901, 13, 9651, 11105, 29918, 13609, 353, 1583, 29889, 1188, 936, 29918, 392, 29898, 13168, 29918, 13609, 29892, 12307, 29918, 13168, 29897, 13, 13, 4706, 24786, 353, 383, 29889, 3298, 359, 29918, 4561, 29898, 19244, 29897, 13, 4706, 6743, 353, 383, 29889, 2873, 29918, 4561, 29898, 19244, 29897, 13, 13, 4706, 5700, 22450, 353, 383, 29889, 2622, 29898, 13168, 29918, 21064, 29892, 5700, 22450, 29892, 6743, 29897, 13, 4706, 5700, 22450, 353, 383, 29889, 2622, 29898, 13168, 29918, 13609, 29892, 5700, 22450, 29892, 24786, 29897, 13, 13, 4706, 565, 1583, 29889, 2457, 29918, 13168, 29901, 13, 9651, 736, 5700, 22450, 29892, 11105, 29918, 13609, 13, 4706, 736, 5700, 22450, 13, 13, 13, 29992, 29918, 7582, 2696, 29918, 9573, 877, 29887, 17019, 1495, 13, 1990, 22477, 29907, 329, 2696, 29898, 29907, 329, 2696, 1125, 13, 1678, 364, 15945, 29908, 2385, 310, 2898, 5700, 2696, 29889, 13, 13, 1678, 6317, 5844, 1057, 13, 539, 285, 29898, 29878, 29897, 353, 320, 463, 29912, 11436, 29913, 13, 308, 29896, 669, 364, 320, 23501, 364, 3187, 726, 29912, 7582, 2696, 29913, 2474, 13, 308, 29900, 669, 364, 1405, 364, 3187, 726, 29912, 7582, 2696, 29913, 2474, 13, 4706, 320, 355, 29912, 11436, 29913, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 5700, 2696, 313, 7411, 1125, 5700, 2696, 11855, 29889, 13, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 13, 462, 364, 29918, 3317, 29922, 348, 1169, 29889, 2848, 29898, 29896, 29892, 525, 22882, 5477, 13, 462, 364, 29918, 1195, 29922, 29900, 29892, 13, 462, 11266, 3207, 2433, 4381, 742, 13, 462, 736, 29918, 13168, 29922, 8824, 29892, 13, 462, 11837, 29922, 8824, 13, 462, 29871, 1125, 13, 4706, 2428, 2141, 1649, 2344, 12035, 13, 9651, 364, 29918, 1195, 29922, 29878, 29918, 1195, 29892, 13, 9651, 364, 29918, 3317, 29922, 29878, 29918, 3317, 29892, 13, 9651, 11266, 3207, 29922, 24947, 3207, 29892, 13, 9651, 736, 29918, 13168, 29922, 2457, 29918, 13168, 29892, 13, 9651, 11837, 29922, 24244, 29892, 13, 4706, 1723, 13, 13, 4706, 565, 11266, 3207, 1275, 525, 4381, 2396, 13, 9651, 1583, 29889, 3754, 353, 10340, 29889, 2848, 29898, 29896, 29892, 525, 22882, 1495, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 3754, 353, 11266, 3207, 13, 13, 4706, 1583, 29889, 3754, 29906, 353, 1583, 29889, 3754, 334, 1583, 29889, 3754, 13, 13, 4706, 1583, 29889, 4548, 353, 349, 29889, 9544, 580, 13, 4706, 1583, 29889, 1188, 936, 29918, 392, 353, 349, 29889, 3403, 936, 2855, 580, 13, 13, 1678, 822, 3386, 29898, 1311, 29892, 5418, 29892, 12307, 29918, 13168, 29922, 8516, 1125, 13, 4706, 9995, 11433, 15945, 29908, 13, 4706, 24488, 353, 5418, 448, 1583, 29889, 7582, 2696, 13, 4706, 24488, 29906, 353, 24488, 334, 24488, 13, 13, 4706, 330, 11214, 353, 1583, 29889, 4548, 6278, 29900, 29889, 29945, 334, 24488, 29906, 847, 1583, 29889, 3754, 29906, 29897, 13, 13, 4706, 565, 1583, 29889, 24244, 29901, 13, 9651, 5700, 29879, 353, 330, 11214, 13, 9651, 6743, 353, 383, 29889, 2873, 29918, 4561, 29898, 7582, 29879, 29897, 13, 9651, 5700, 29879, 353, 383, 29889, 2622, 29898, 19244, 529, 1583, 29889, 7582, 2696, 29892, 5700, 29879, 29892, 6743, 29897, 13, 13, 9651, 565, 12307, 29918, 13168, 338, 6213, 29901, 13, 18884, 11105, 353, 5418, 6736, 29871, 29900, 13, 9651, 1683, 29901, 13, 18884, 11105, 353, 12307, 29918, 13168, 13, 4706, 1683, 29901, 13, 9651, 5700, 29879, 353, 29871, 29896, 29889, 448, 330, 11214, 13, 9651, 11105, 353, 5418, 529, 1583, 29889, 7582, 2696, 13, 9651, 565, 12307, 29918, 13168, 338, 451, 6213, 29901, 13, 18884, 11105, 353, 1583, 29889, 1188, 936, 29918, 392, 29898, 13168, 29892, 12307, 29918, 13168, 29897, 13, 13, 4706, 5700, 29879, 353, 5700, 29879, 334, 11105, 13, 13, 4706, 565, 1583, 29889, 2457, 29918, 13168, 29901, 13, 9651, 736, 5700, 29879, 29892, 11105, 13, 4706, 736, 5700, 29879, 13, 13, 13, 1753, 679, 29918, 7582, 2696, 29898, 5415, 29892, 364, 29918, 3317, 29922, 348, 1169, 29889, 2848, 29898, 29896, 29892, 525, 22882, 5477, 364, 29918, 1195, 29922, 29900, 29892, 11266, 3207, 2433, 4381, 742, 736, 29918, 13168, 29922, 8824, 29892, 11837, 29922, 8824, 1125, 13, 1678, 9995, 657, 5700, 2696, 15945, 29908, 13, 1678, 565, 5446, 338, 6213, 470, 338, 8758, 29898, 5415, 29892, 315, 329, 2696, 1125, 13, 4706, 736, 5446, 13, 1678, 565, 338, 8758, 29898, 5415, 29892, 851, 1125, 13, 4706, 565, 5446, 451, 297, 903, 29907, 2692, 27681, 29918, 1964, 29902, 3289, 29889, 8149, 7295, 13, 9651, 12020, 7865, 2392, 29898, 13, 18884, 376, 1576, 770, 6590, 304, 525, 8875, 29915, 471, 451, 1476, 1213, 29889, 4830, 29898, 5415, 876, 13, 4706, 736, 903, 29907, 2692, 27681, 29918, 1964, 29902, 3289, 29961, 5415, 29889, 13609, 580, 850, 13, 9651, 364, 29918, 1195, 29922, 29878, 29918, 1195, 29892, 13, 9651, 364, 29918, 3317, 29922, 29878, 29918, 3317, 29892, 13, 9651, 11266, 3207, 29922, 24947, 3207, 29892, 13, 9651, 736, 29918, 13168, 29922, 2457, 29918, 13168, 29892, 13, 9651, 11837, 29922, 24244, 29892, 13, 4706, 1723, 13, 1678, 12020, 20948, 703, 25807, 29884, 3016, 287, 315, 329, 2696, 1134, 525, 8875, 29915, 1213, 29889, 4830, 29898, 1853, 29898, 5415, 4961, 13, 2 ]
variation/validators/single_nucleotide_variation_base.py
GenomicMedLab/varlex
0
180505
"""The module for Single Nucleotide Variation Validation.""" from .validator import Validator import logging logger = logging.getLogger('variation') logger.setLevel(logging.DEBUG) class SingleNucleotideVariationBase(Validator): """The Single Nucleotide Variation Validator Base class.""" def silent_mutation_valid_invalid_results(self, classification_tokens, transcripts, classification, results, gene_tokens, normalize_endpoint, mane_data_found, is_identifier) -> None: """Add validation result objects to a list of results for Silent Mutations. :param list classification_tokens: A list of classification Tokens :param list transcripts: A list of transcript accessions :param Classification classification: A classification for a list of tokens :param list results: Stores validation result objects :param list gene_tokens: List of GeneMatchTokens for a classification :param bool normalize_endpoint: `True` if normalize endpoint is being used. `False` otherwise. :param dict mane_data_found: MANE Transcript information found :param bool is_identifier: `True` if identifier is given for exact location. `False` otherwise. """ valid_alleles = list() for s in classification_tokens: for t in transcripts: errors = list() t = self.get_accession(t, classification) allele = None if s.reference_sequence == 'c': cds_start_end = self.uta.get_cds_start_end(t) if not cds_start_end: cds_start = None errors.append( f"Unable to find CDS start for accession : {t}" ) else: cds_start = cds_start_end[0] else: cds_start = None if not errors: allele = self.to_vrs_allele( t, s.position, s.position, s.reference_sequence, s.alt_type, errors, cds_start=cds_start, alt=s.new_nucleotide ) if not errors: sequence = \ self.seqrepo_access.get_sequence(t, s.position) if sequence is None: errors.append('Sequence index error') if not errors: mane = self.mane_transcript.get_mane_transcript( t, s.position, s.position, s.reference_sequence, gene=gene_tokens[0].token if gene_tokens else None, normalize_endpoint=normalize_endpoint ) self.add_mane_data(mane, mane_data_found, s.reference_sequence, s.alt_type, s, gene_tokens) self.add_validation_result( allele, valid_alleles, results, classification, s, t, gene_tokens, errors ) if is_identifier: break self.add_mane_to_validation_results( mane_data_found, valid_alleles, results, classification, gene_tokens ) def check_ref_nucleotide(self, actual_ref_nuc, expected_ref_nuc, position, t, errors): """Assert that ref_nuc matches s.ref_nucleotide.""" if actual_ref_nuc != expected_ref_nuc: errors.append(f'Needed to find {expected_ref_nuc} at' f' position {position} on {t}' f' but found {actual_ref_nuc}') def concise_description(self, transcript, token) -> str: """Return a HGVS description of the identified variation. :param str transcript: Transcript accession :param Token token: Classification token :return: HGVS expression """ prefix = f'{transcript}:{token.reference_sequence}.{token.position}' if token.new_nucleotide == '=': change = "=" else: change = f"{token.ref_nucleotide}>{token.new_nucleotide}" return prefix + change
[ 1, 9995, 1576, 3883, 363, 16740, 405, 1682, 280, 327, 680, 9586, 362, 15758, 362, 1213, 15945, 13, 3166, 869, 3084, 1061, 1053, 15758, 1061, 13, 5215, 12183, 13, 13, 21707, 353, 12183, 29889, 657, 16363, 877, 5927, 362, 1495, 13, 21707, 29889, 842, 10108, 29898, 21027, 29889, 18525, 29897, 13, 13, 13, 1990, 16740, 29940, 1682, 280, 327, 680, 10444, 362, 5160, 29898, 24204, 1125, 13, 1678, 9995, 1576, 16740, 405, 1682, 280, 327, 680, 9586, 362, 15758, 1061, 7399, 770, 1213, 15945, 13, 13, 1678, 822, 17436, 29918, 6149, 362, 29918, 3084, 29918, 20965, 29918, 9902, 29898, 1311, 29892, 12965, 29918, 517, 12360, 29892, 13, 462, 462, 795, 1301, 924, 29879, 29892, 12965, 29892, 13, 462, 462, 795, 2582, 29892, 18530, 29918, 517, 12360, 29892, 13, 462, 462, 795, 4226, 675, 29918, 29734, 29892, 13, 462, 462, 795, 767, 29872, 29918, 1272, 29918, 11940, 29892, 13, 462, 462, 795, 338, 29918, 25378, 29897, 1599, 6213, 29901, 13, 4706, 9995, 2528, 8845, 1121, 3618, 304, 263, 1051, 310, 2582, 363, 13, 4706, 5664, 296, 20749, 800, 29889, 13, 13, 4706, 584, 3207, 1051, 12965, 29918, 517, 12360, 29901, 319, 1051, 310, 12965, 11890, 575, 13, 4706, 584, 3207, 1051, 1301, 924, 29879, 29901, 319, 1051, 310, 1301, 924, 2130, 1080, 13, 4706, 584, 3207, 23236, 12965, 29901, 319, 12965, 363, 263, 1051, 310, 13, 9651, 18897, 13, 4706, 584, 3207, 1051, 2582, 29901, 624, 2361, 8845, 1121, 3618, 13, 4706, 584, 3207, 1051, 18530, 29918, 517, 12360, 29901, 2391, 310, 15350, 9652, 29911, 554, 575, 363, 263, 12965, 13, 4706, 584, 3207, 6120, 4226, 675, 29918, 29734, 29901, 421, 5574, 29952, 565, 4226, 675, 16248, 338, 1641, 13, 9651, 1304, 29889, 421, 8824, 29952, 6467, 29889, 13, 4706, 584, 3207, 9657, 767, 29872, 29918, 1272, 29918, 11940, 29901, 341, 2190, 29923, 4103, 924, 2472, 1476, 13, 4706, 584, 3207, 6120, 338, 29918, 25378, 29901, 421, 5574, 29952, 565, 15882, 338, 2183, 363, 2684, 13, 9651, 4423, 29889, 421, 8824, 29952, 6467, 29889, 13, 4706, 9995, 13, 4706, 2854, 29918, 3498, 793, 353, 1051, 580, 13, 4706, 363, 269, 297, 12965, 29918, 517, 12360, 29901, 13, 9651, 363, 260, 297, 1301, 924, 29879, 29901, 13, 18884, 4436, 353, 1051, 580, 13, 13, 18884, 260, 353, 1583, 29889, 657, 29918, 5943, 291, 29898, 29873, 29892, 12965, 29897, 13, 18884, 4788, 280, 353, 6213, 13, 18884, 565, 269, 29889, 5679, 29918, 16506, 1275, 525, 29883, 2396, 13, 462, 1678, 274, 6289, 29918, 2962, 29918, 355, 353, 1583, 29889, 6637, 29889, 657, 29918, 2252, 29879, 29918, 2962, 29918, 355, 29898, 29873, 29897, 13, 13, 462, 1678, 565, 451, 274, 6289, 29918, 2962, 29918, 355, 29901, 13, 462, 4706, 274, 6289, 29918, 2962, 353, 6213, 13, 462, 4706, 4436, 29889, 4397, 29898, 13, 462, 9651, 285, 29908, 2525, 519, 304, 1284, 7307, 29903, 1369, 363, 1035, 1211, 584, 426, 29873, 5038, 13, 462, 4706, 1723, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 274, 6289, 29918, 2962, 353, 274, 6289, 29918, 2962, 29918, 355, 29961, 29900, 29962, 13, 18884, 1683, 29901, 13, 462, 1678, 274, 6289, 29918, 2962, 353, 6213, 13, 13, 18884, 565, 451, 4436, 29901, 13, 462, 1678, 4788, 280, 353, 1583, 29889, 517, 29918, 29894, 2288, 29918, 3498, 280, 29898, 13, 462, 4706, 260, 29892, 269, 29889, 3283, 29892, 269, 29889, 3283, 29892, 269, 29889, 5679, 29918, 16506, 29892, 13, 462, 4706, 269, 29889, 1997, 29918, 1853, 29892, 4436, 29892, 274, 6289, 29918, 2962, 29922, 2252, 29879, 29918, 2962, 29892, 13, 462, 4706, 5272, 29922, 29879, 29889, 1482, 29918, 29876, 1682, 280, 327, 680, 13, 462, 1678, 1723, 13, 13, 18884, 565, 451, 4436, 29901, 13, 462, 1678, 5665, 353, 320, 13, 462, 4706, 1583, 29889, 11762, 20095, 29918, 5943, 29889, 657, 29918, 16506, 29898, 29873, 29892, 269, 29889, 3283, 29897, 13, 462, 1678, 565, 5665, 338, 6213, 29901, 13, 462, 4706, 4436, 29889, 4397, 877, 20529, 2380, 1059, 1495, 13, 13, 18884, 565, 451, 4436, 29901, 13, 462, 1678, 767, 29872, 353, 1583, 29889, 1171, 29872, 29918, 3286, 924, 29889, 657, 29918, 1171, 29872, 29918, 3286, 924, 29898, 13, 462, 4706, 260, 29892, 269, 29889, 3283, 29892, 269, 29889, 3283, 29892, 269, 29889, 5679, 29918, 16506, 29892, 13, 462, 4706, 18530, 29922, 29887, 1600, 29918, 517, 12360, 29961, 29900, 1822, 6979, 565, 18530, 29918, 517, 12360, 1683, 6213, 29892, 13, 462, 4706, 4226, 675, 29918, 29734, 29922, 8945, 675, 29918, 29734, 13, 462, 1678, 1723, 13, 13, 462, 1678, 1583, 29889, 1202, 29918, 1171, 29872, 29918, 1272, 29898, 1171, 29872, 29892, 767, 29872, 29918, 1272, 29918, 11940, 29892, 13, 462, 462, 539, 269, 29889, 5679, 29918, 16506, 29892, 269, 29889, 1997, 29918, 1853, 29892, 269, 29892, 13, 462, 462, 539, 18530, 29918, 517, 12360, 29897, 13, 13, 18884, 1583, 29889, 1202, 29918, 18157, 29918, 2914, 29898, 13, 462, 1678, 4788, 280, 29892, 2854, 29918, 3498, 793, 29892, 2582, 29892, 13, 462, 1678, 12965, 29892, 269, 29892, 260, 29892, 18530, 29918, 517, 12360, 29892, 4436, 13, 18884, 1723, 13, 13, 18884, 565, 338, 29918, 25378, 29901, 13, 462, 1678, 2867, 13, 4706, 1583, 29889, 1202, 29918, 1171, 29872, 29918, 517, 29918, 18157, 29918, 9902, 29898, 13, 9651, 767, 29872, 29918, 1272, 29918, 11940, 29892, 2854, 29918, 3498, 793, 29892, 2582, 29892, 13, 9651, 12965, 29892, 18530, 29918, 517, 12360, 13, 4706, 1723, 13, 13, 1678, 822, 1423, 29918, 999, 29918, 29876, 1682, 280, 327, 680, 29898, 1311, 29892, 3935, 29918, 999, 29918, 29876, 1682, 29892, 3806, 29918, 999, 29918, 29876, 1682, 29892, 13, 462, 632, 2602, 29892, 260, 29892, 4436, 1125, 13, 4706, 9995, 14697, 393, 2143, 29918, 29876, 1682, 7087, 269, 29889, 999, 29918, 29876, 1682, 280, 327, 680, 1213, 15945, 13, 4706, 565, 3935, 29918, 999, 29918, 29876, 1682, 2804, 3806, 29918, 999, 29918, 29876, 1682, 29901, 13, 9651, 4436, 29889, 4397, 29898, 29888, 29915, 8139, 19226, 304, 1284, 426, 9684, 29918, 999, 29918, 29876, 1682, 29913, 472, 29915, 13, 462, 3986, 285, 29915, 2602, 426, 3283, 29913, 373, 426, 29873, 10162, 13, 462, 3986, 285, 29915, 541, 1476, 426, 19304, 29918, 999, 29918, 29876, 1682, 29913, 1495, 13, 13, 1678, 822, 3022, 895, 29918, 8216, 29898, 1311, 29892, 1301, 924, 29892, 5993, 29897, 1599, 851, 29901, 13, 4706, 9995, 11609, 263, 379, 29954, 21819, 6139, 310, 278, 15659, 19262, 29889, 13, 13, 4706, 584, 3207, 851, 1301, 924, 29901, 4103, 924, 1035, 1211, 13, 4706, 584, 3207, 25159, 5993, 29901, 23236, 5993, 13, 4706, 584, 2457, 29901, 379, 29954, 21819, 4603, 13, 4706, 9995, 13, 4706, 10944, 353, 285, 29915, 29912, 3286, 924, 6177, 29912, 6979, 29889, 5679, 29918, 16506, 1836, 29912, 6979, 29889, 3283, 10162, 13, 4706, 565, 5993, 29889, 1482, 29918, 29876, 1682, 280, 327, 680, 1275, 525, 29922, 2396, 13, 9651, 1735, 353, 376, 543, 13, 4706, 1683, 29901, 13, 9651, 1735, 353, 285, 29908, 29912, 6979, 29889, 999, 29918, 29876, 1682, 280, 327, 680, 17428, 29912, 6979, 29889, 1482, 29918, 29876, 1682, 280, 327, 680, 5038, 13, 4706, 736, 10944, 718, 1735, 13, 2 ]
world_of_warships/war_gaming.py
MaT1g3R/YasenBaka
6
78376
<reponame>MaT1g3R/YasenBaka<gh_stars>1-10 from typing import Optional from wowspy import Region, WowsAsync async def __get_id(coro, logger, key): try: resp = await coro except Exception as e: logger.warn(str(e)) else: data = resp.get('data', None) if not data: return return data[0].get(key, None) async def get_player_id(region: Region, wows_api: WowsAsync, logger, search) -> Optional[int]: """ Get player id by search term. :param region: the region. :param wows_api: the WowsAsync instance. :param logger: the logger. :param search: the search query. :return: the player id. """ coro = wows_api.players(region, search, language='en', limit=1) return await __get_id(coro, logger, 'account_id') async def get_clan_id(region: Region, wows_api: WowsAsync, logger, search) -> Optional[int]: """ Get clan id by search term. :param region: the region. :param wows_api: the WowsAsync instance. :param logger: the logger. :param search: the search query. :return: the clan id. """ coro = wows_api.clans(region, search=search, language='en', limit=1) return await __get_id(coro, logger, 'clan_id')
[ 1, 529, 276, 1112, 420, 29958, 21870, 29911, 29896, 29887, 29941, 29934, 29914, 29979, 294, 264, 29933, 8245, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 19229, 1053, 28379, 13, 13, 3166, 281, 340, 1028, 29891, 1053, 11069, 29892, 399, 1242, 8123, 13, 13, 13, 12674, 822, 4770, 657, 29918, 333, 29898, 2616, 29877, 29892, 17927, 29892, 1820, 1125, 13, 1678, 1018, 29901, 13, 4706, 4613, 353, 7272, 1034, 29877, 13, 1678, 5174, 8960, 408, 321, 29901, 13, 4706, 17927, 29889, 25442, 29898, 710, 29898, 29872, 876, 13, 1678, 1683, 29901, 13, 4706, 848, 353, 4613, 29889, 657, 877, 1272, 742, 6213, 29897, 13, 4706, 565, 451, 848, 29901, 13, 9651, 736, 13, 4706, 736, 848, 29961, 29900, 1822, 657, 29898, 1989, 29892, 6213, 29897, 13, 13, 13, 12674, 822, 679, 29918, 9106, 29918, 333, 29898, 12803, 29901, 11069, 29892, 281, 1242, 29918, 2754, 29901, 399, 1242, 8123, 29892, 13, 462, 4706, 17927, 29892, 2740, 29897, 1599, 28379, 29961, 524, 5387, 13, 1678, 9995, 13, 1678, 3617, 4847, 1178, 491, 2740, 1840, 29889, 13, 1678, 584, 3207, 5120, 29901, 278, 5120, 29889, 13, 1678, 584, 3207, 281, 1242, 29918, 2754, 29901, 278, 399, 1242, 8123, 2777, 29889, 13, 1678, 584, 3207, 17927, 29901, 278, 17927, 29889, 13, 1678, 584, 3207, 2740, 29901, 278, 2740, 2346, 29889, 13, 1678, 584, 2457, 29901, 278, 4847, 1178, 29889, 13, 1678, 9995, 13, 1678, 1034, 29877, 353, 281, 1242, 29918, 2754, 29889, 1456, 414, 29898, 12803, 29892, 2740, 29892, 4086, 2433, 264, 742, 4046, 29922, 29896, 29897, 13, 1678, 736, 7272, 4770, 657, 29918, 333, 29898, 2616, 29877, 29892, 17927, 29892, 525, 10149, 29918, 333, 1495, 13, 13, 13, 12674, 822, 679, 29918, 695, 273, 29918, 333, 29898, 12803, 29901, 11069, 29892, 281, 1242, 29918, 2754, 29901, 399, 1242, 8123, 29892, 13, 462, 418, 17927, 29892, 2740, 29897, 1599, 28379, 29961, 524, 5387, 13, 1678, 9995, 13, 1678, 3617, 1067, 273, 1178, 491, 2740, 1840, 29889, 13, 1678, 584, 3207, 5120, 29901, 278, 5120, 29889, 13, 1678, 584, 3207, 281, 1242, 29918, 2754, 29901, 278, 399, 1242, 8123, 2777, 29889, 13, 1678, 584, 3207, 17927, 29901, 278, 17927, 29889, 13, 1678, 584, 3207, 2740, 29901, 278, 2740, 2346, 29889, 13, 1678, 584, 2457, 29901, 278, 1067, 273, 1178, 29889, 13, 1678, 9995, 13, 1678, 1034, 29877, 353, 281, 1242, 29918, 2754, 29889, 695, 550, 29898, 12803, 29892, 2740, 29922, 4478, 29892, 4086, 2433, 264, 742, 4046, 29922, 29896, 29897, 13, 1678, 736, 7272, 4770, 657, 29918, 333, 29898, 2616, 29877, 29892, 17927, 29892, 525, 695, 273, 29918, 333, 1495, 13, 2 ]
tests/test_pvaapi.py
sasaki77/pvarpc2web
0
178505
<reponame>sasaki77/pvarpc2web from .context import pvarpc2web from .context import config from .context import pvaapi class PvaRpcTimeoutConfig(config.DefaultConfig): PVA_RPC_TIMEOUT = 3 def test_set_timeout(): app = pvarpc2web.create_app(PvaRpcTimeoutConfig) assert pvaapi.timeout == 3
[ 1, 529, 276, 1112, 420, 29958, 29879, 294, 9940, 29955, 29955, 29914, 29886, 1707, 6739, 29906, 2676, 13, 3166, 869, 4703, 1053, 282, 1707, 6739, 29906, 2676, 13, 3166, 869, 4703, 1053, 2295, 13, 3166, 869, 4703, 1053, 282, 1564, 2754, 13, 13, 13, 1990, 349, 1564, 29934, 6739, 10851, 3991, 29898, 2917, 29889, 4592, 3991, 1125, 13, 1678, 349, 20449, 29918, 29934, 9026, 29918, 15307, 12015, 353, 29871, 29941, 13, 13, 13, 1753, 1243, 29918, 842, 29918, 15619, 7295, 13, 1678, 623, 353, 282, 1707, 6739, 29906, 2676, 29889, 3258, 29918, 932, 29898, 29925, 1564, 29934, 6739, 10851, 3991, 29897, 13, 1678, 4974, 282, 1564, 2754, 29889, 15619, 1275, 29871, 29941, 13, 2 ]
kungfucms/apps/account/models.py
kungfusoft/kungfucms
0
75410
<gh_stars>0 from django.core.mail import send_mail from django.utils.translation import ugettext as _ from django.utils import timezone from django.db import models from django.contrib.auth.models import UserManager, PermissionsMixin from django.contrib.auth.base_user import AbstractBaseUser from django.contrib.auth.validators import UnicodeUsernameValidator from kungfucms.apps.system.models import BaseModel class Manager(UserManager): def _create_user(self, username, password, **extra_fields): username = self.model.normalize_username(username) user = self.model(username=username, **extra_fields) user.set_password(password) user.save(using=self._db) return user def create_user(self, username, password=None, **extra_fields): extra_fields.setdefault('is_staff', False) extra_fields.setdefault('is_superuser', False) return self._create_user(username, password, **extra_fields) def create_staff(self, username, password, **extra_fields): extra_fields.setdefault('is_staff', True) extra_fields.setdefault('is_superuser', False) return self._create_user(username, password, **extra_fields) def create_superuser(self, username, password=None, **extra_fields): extra_fields.setdefault('is_staff', True) extra_fields.setdefault('is_superuser', True) return self._create_user(username, password, **extra_fields) class AbstractUser(AbstractBaseUser, PermissionsMixin): username_validator = UnicodeUsernameValidator() username = models.CharField( _('username'), max_length=128, unique=True, help_text=_('Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.'), validators=[username_validator], error_messages={ 'unique': _("A user with that username already exists."), }, ) is_staff = models.BooleanField( _('staff status'), default=False, help_text=_('Designates whether the user can log into this admin site.'), ) is_active = models.BooleanField( _('active'), default=True, help_text=_( 'Designates whether this user should be treated as active. ' 'Unselect this instead of deleting accounts.' ), ) date_joined = models.DateTimeField(_('date joined'), default=timezone.now) objects = UserManager() USERNAME_FIELD = 'username' class Meta: verbose_name = _('user') verbose_name_plural = _('users') abstract = True def clean(self): super().clean() def get_full_name(self): full_name = '%s %s' % (self.first_name, self.last_name) return full_name.strip() def get_short_name(self): return self.first_name class User(AbstractUser, BaseModel): username = models.CharField(max_length=128, unique=True, verbose_name=_('Username')) USERNAME_FIELD = 'username' objects = Manager() def get_username_field(self): return self.USERNAME_FIELD @classmethod def safe_get(cls, **kwargs): try: obj = cls.objects.get(**kwargs) except cls.DoesNotExist: obj = None return obj class Meta(AbstractUser.Meta): swappable = 'AUTH_USER_MODEL' verbose_name = _('User') verbose_name_plural = _('Users') class Profile(BaseModel): user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='profiles', related_query_name='profile') name = models.CharField(max_length=128, db_index=True, verbose_name=_('Name')) value = models.CharField(max_length=255, blank=True, default='', verbose_name=_('Value')) class Meta: ordering = ['id'] verbose_name = _('Profile') verbose_name_plural = _('Profiles') class OauthLoginProvider(BaseModel): provider = models.CharField(max_length=128, db_index=True, verbose_name=_('Provider Name')) token = models.CharField(max_length=128, db_index=True, verbose_name=_('Provider Token')) user = models.ForeignKey(User, on_delete=models.CASCADE, related_query_name='oauth_token', related_name='oauth_tokens', verbose_name=_('User')) class Meta: verbose_name = _('Oauth Login Provider') verbose_name_plural = _('Oauth Login Providers') unique_together = ('provider', 'token', 'user') indexes = [models.Index(fields=('user', 'provider'))]
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 9557, 29889, 3221, 29889, 2549, 1053, 3638, 29918, 2549, 13, 3166, 9557, 29889, 13239, 29889, 3286, 18411, 1053, 318, 657, 726, 408, 903, 13, 3166, 9557, 29889, 13239, 1053, 29431, 13, 3166, 9557, 29889, 2585, 1053, 4733, 13, 3166, 9557, 29889, 21570, 29889, 5150, 29889, 9794, 1053, 4911, 3260, 29892, 20894, 6847, 29924, 861, 262, 13, 3166, 9557, 29889, 21570, 29889, 5150, 29889, 3188, 29918, 1792, 1053, 25513, 5160, 2659, 13, 3166, 9557, 29889, 21570, 29889, 5150, 29889, 3084, 4097, 1053, 23862, 20249, 24204, 13, 3166, 413, 686, 29888, 1682, 1516, 29889, 13371, 29889, 5205, 29889, 9794, 1053, 7399, 3195, 13, 13, 13, 1990, 15629, 29898, 2659, 3260, 1125, 13, 1678, 822, 903, 3258, 29918, 1792, 29898, 1311, 29892, 8952, 29892, 4800, 29892, 3579, 17833, 29918, 9621, 1125, 13, 4706, 8952, 353, 1583, 29889, 4299, 29889, 8945, 675, 29918, 6786, 29898, 6786, 29897, 13, 4706, 1404, 353, 1583, 29889, 4299, 29898, 6786, 29922, 6786, 29892, 3579, 17833, 29918, 9621, 29897, 13, 4706, 1404, 29889, 842, 29918, 5630, 29898, 5630, 29897, 13, 4706, 1404, 29889, 7620, 29898, 4746, 29922, 1311, 3032, 2585, 29897, 13, 4706, 736, 1404, 13, 13, 1678, 822, 1653, 29918, 1792, 29898, 1311, 29892, 8952, 29892, 4800, 29922, 8516, 29892, 3579, 17833, 29918, 9621, 1125, 13, 4706, 4805, 29918, 9621, 29889, 842, 4381, 877, 275, 29918, 303, 3470, 742, 7700, 29897, 13, 4706, 4805, 29918, 9621, 29889, 842, 4381, 877, 275, 29918, 9136, 1792, 742, 7700, 29897, 13, 4706, 736, 1583, 3032, 3258, 29918, 1792, 29898, 6786, 29892, 4800, 29892, 3579, 17833, 29918, 9621, 29897, 13, 13, 1678, 822, 1653, 29918, 303, 3470, 29898, 1311, 29892, 8952, 29892, 4800, 29892, 3579, 17833, 29918, 9621, 1125, 13, 4706, 4805, 29918, 9621, 29889, 842, 4381, 877, 275, 29918, 303, 3470, 742, 5852, 29897, 13, 4706, 4805, 29918, 9621, 29889, 842, 4381, 877, 275, 29918, 9136, 1792, 742, 7700, 29897, 13, 4706, 736, 1583, 3032, 3258, 29918, 1792, 29898, 6786, 29892, 4800, 29892, 3579, 17833, 29918, 9621, 29897, 13, 13, 1678, 822, 1653, 29918, 9136, 1792, 29898, 1311, 29892, 8952, 29892, 4800, 29922, 8516, 29892, 3579, 17833, 29918, 9621, 1125, 13, 4706, 4805, 29918, 9621, 29889, 842, 4381, 877, 275, 29918, 303, 3470, 742, 5852, 29897, 13, 4706, 4805, 29918, 9621, 29889, 842, 4381, 877, 275, 29918, 9136, 1792, 742, 5852, 29897, 13, 4706, 736, 1583, 3032, 3258, 29918, 1792, 29898, 6786, 29892, 4800, 29892, 3579, 17833, 29918, 9621, 29897, 13, 13, 13, 1990, 25513, 2659, 29898, 9118, 5160, 2659, 29892, 20894, 6847, 29924, 861, 262, 1125, 13, 1678, 8952, 29918, 3084, 1061, 353, 23862, 20249, 24204, 580, 13, 13, 1678, 8952, 353, 4733, 29889, 27890, 29898, 13, 4706, 903, 877, 6786, 5477, 13, 4706, 4236, 29918, 2848, 29922, 29896, 29906, 29947, 29892, 13, 4706, 5412, 29922, 5574, 29892, 13, 4706, 1371, 29918, 726, 29922, 29918, 877, 19347, 29889, 29871, 29896, 29945, 29900, 4890, 470, 28145, 29889, 2803, 2153, 29892, 13340, 322, 732, 6294, 29914, 29974, 24028, 19891, 871, 29889, 5477, 13, 4706, 2854, 4097, 11759, 6786, 29918, 3084, 1061, 1402, 13, 4706, 1059, 29918, 19158, 3790, 13, 9651, 525, 13092, 2396, 903, 703, 29909, 1404, 411, 393, 8952, 2307, 4864, 1213, 511, 13, 4706, 2981, 13, 1678, 1723, 13, 13, 1678, 338, 29918, 303, 3470, 353, 4733, 29889, 18146, 3073, 29898, 13, 4706, 903, 877, 303, 3470, 4660, 5477, 13, 4706, 2322, 29922, 8824, 29892, 13, 4706, 1371, 29918, 726, 29922, 29918, 877, 4002, 647, 1078, 3692, 278, 1404, 508, 1480, 964, 445, 4113, 3268, 29889, 5477, 13, 1678, 1723, 13, 1678, 338, 29918, 4925, 353, 4733, 29889, 18146, 3073, 29898, 13, 4706, 903, 877, 4925, 5477, 13, 4706, 2322, 29922, 5574, 29892, 13, 4706, 1371, 29918, 726, 29922, 23538, 13, 9651, 525, 4002, 647, 1078, 3692, 445, 1404, 881, 367, 14914, 408, 6136, 29889, 525, 13, 9651, 525, 2525, 2622, 445, 2012, 310, 21228, 15303, 6169, 13, 4706, 10353, 13, 1678, 1723, 13, 1678, 2635, 29918, 2212, 1312, 353, 4733, 29889, 11384, 3073, 7373, 877, 1256, 8772, 5477, 2322, 29922, 2230, 8028, 29889, 3707, 29897, 13, 13, 1678, 3618, 353, 4911, 3260, 580, 13, 13, 1678, 3148, 1001, 5813, 29918, 3738, 27286, 353, 525, 6786, 29915, 13, 13, 1678, 770, 20553, 29901, 13, 4706, 26952, 29918, 978, 353, 903, 877, 1792, 1495, 13, 4706, 26952, 29918, 978, 29918, 572, 3631, 353, 903, 877, 7193, 1495, 13, 4706, 9846, 353, 5852, 13, 13, 1678, 822, 5941, 29898, 1311, 1125, 13, 4706, 2428, 2141, 14941, 580, 13, 13, 1678, 822, 679, 29918, 8159, 29918, 978, 29898, 1311, 1125, 13, 4706, 2989, 29918, 978, 353, 14210, 29879, 1273, 29879, 29915, 1273, 313, 1311, 29889, 4102, 29918, 978, 29892, 1583, 29889, 4230, 29918, 978, 29897, 13, 4706, 736, 2989, 29918, 978, 29889, 17010, 580, 13, 13, 1678, 822, 679, 29918, 12759, 29918, 978, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 4102, 29918, 978, 13, 13, 13, 1990, 4911, 29898, 9118, 2659, 29892, 7399, 3195, 1125, 13, 1678, 8952, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29896, 29906, 29947, 29892, 13, 462, 18884, 5412, 29922, 5574, 29892, 13, 462, 18884, 26952, 29918, 978, 29922, 29918, 877, 20249, 8785, 13, 13, 1678, 3148, 1001, 5813, 29918, 3738, 27286, 353, 525, 6786, 29915, 13, 13, 1678, 3618, 353, 15629, 580, 13, 13, 1678, 822, 679, 29918, 6786, 29918, 2671, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 11889, 5813, 29918, 3738, 27286, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 9109, 29918, 657, 29898, 25932, 29892, 3579, 19290, 1125, 13, 4706, 1018, 29901, 13, 9651, 5446, 353, 1067, 29879, 29889, 12650, 29889, 657, 29898, 1068, 19290, 29897, 13, 4706, 5174, 1067, 29879, 29889, 25125, 3664, 1252, 391, 29901, 13, 9651, 5446, 353, 6213, 13, 4706, 736, 5446, 13, 13, 1678, 770, 20553, 29898, 9118, 2659, 29889, 19346, 1125, 13, 4706, 2381, 932, 519, 353, 525, 20656, 29950, 29918, 11889, 29918, 20387, 29931, 29915, 13, 4706, 26952, 29918, 978, 353, 903, 877, 2659, 1495, 13, 4706, 26952, 29918, 978, 29918, 572, 3631, 353, 903, 877, 5959, 1495, 13, 13, 13, 1990, 20802, 29898, 5160, 3195, 1125, 13, 1678, 1404, 353, 4733, 29889, 27755, 2558, 29898, 2659, 29892, 13, 462, 632, 373, 29918, 8143, 29922, 9794, 29889, 29907, 3289, 5454, 2287, 29892, 13, 462, 632, 4475, 29918, 978, 2433, 771, 5325, 742, 13, 462, 632, 4475, 29918, 1972, 29918, 978, 2433, 10185, 1495, 13, 13, 1678, 1024, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29896, 29906, 29947, 29892, 13, 462, 9651, 4833, 29918, 2248, 29922, 5574, 29892, 13, 462, 9651, 26952, 29918, 978, 29922, 29918, 877, 1170, 8785, 13, 13, 1678, 995, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29906, 29945, 29945, 29892, 13, 462, 632, 9654, 29922, 5574, 29892, 13, 462, 632, 2322, 2433, 742, 13, 462, 632, 26952, 29918, 978, 29922, 29918, 877, 1917, 8785, 13, 13, 1678, 770, 20553, 29901, 13, 4706, 20520, 353, 6024, 333, 2033, 13, 4706, 26952, 29918, 978, 353, 903, 877, 13909, 1495, 13, 4706, 26952, 29918, 978, 29918, 572, 3631, 353, 903, 877, 1184, 5325, 1495, 13, 13, 13, 1990, 438, 5150, 11049, 6980, 29898, 5160, 3195, 1125, 13, 1678, 13113, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29896, 29906, 29947, 29892, 4833, 29918, 2248, 29922, 5574, 29892, 26952, 29918, 978, 29922, 29918, 877, 6980, 4408, 8785, 13, 1678, 5993, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29896, 29906, 29947, 29892, 4833, 29918, 2248, 29922, 5574, 29892, 26952, 29918, 978, 29922, 29918, 877, 6980, 25159, 8785, 13, 1678, 1404, 353, 4733, 29889, 27755, 2558, 29898, 2659, 29892, 13, 462, 632, 373, 29918, 8143, 29922, 9794, 29889, 29907, 3289, 5454, 2287, 29892, 13, 462, 632, 4475, 29918, 1972, 29918, 978, 2433, 23106, 29918, 6979, 742, 13, 462, 632, 4475, 29918, 978, 2433, 23106, 29918, 517, 12360, 742, 13, 462, 632, 26952, 29918, 978, 29922, 29918, 877, 2659, 8785, 13, 13, 1678, 770, 20553, 29901, 13, 4706, 26952, 29918, 978, 353, 903, 877, 29949, 5150, 19130, 1019, 5489, 1495, 13, 4706, 26952, 29918, 978, 29918, 572, 3631, 353, 903, 877, 29949, 5150, 19130, 1019, 29454, 1495, 13, 4706, 5412, 29918, 29873, 12966, 353, 6702, 18121, 742, 525, 6979, 742, 525, 1792, 1495, 13, 4706, 18111, 353, 518, 9794, 29889, 3220, 29898, 9621, 29922, 877, 1792, 742, 525, 18121, 8785, 29962, 13, 13, 13, 2 ]
game/views/tests/test_monthly_scoreboard.py
dimadk24/english-fight-api
0
115215
from datetime import timedelta from django.utils import timezone from rest_framework.response import Response from game.models import AppUser, Game url = "/api/monthly_scoreboard" def get_response(api_client) -> Response: return api_client.get(url) def test_when_no_users(api_client): AppUser.objects.all().delete() response = get_response(api_client) assert response.status_code == 200 assert response.json() == [] def test_when_3_users_and_no_games(api_client): users = [ AppUser( username="2", vk_id=2, score=20, first_name="Cat", last_name="Leo", photo_url="2.png", ), AppUser( username="3", vk_id=3, score=1, first_name="Dog", last_name="Cooper", photo_url="3.png", ), AppUser( username="4", vk_id=4, score=12, first_name="Puppet", last_name="Bella", photo_url="4.png", ), ] AppUser.objects.bulk_create(users) response = get_response(api_client) expected = [] assert response.json() == expected def test_when_3_users(api_client): users = [ AppUser( username="2", vk_id=2, score=20, first_name="Cat", last_name="Leo", photo_url="2.png", ), AppUser( username="3", vk_id=3, score=1, first_name="Dog", last_name="Cooper", photo_url="3.png", ), AppUser( username="4", vk_id=4, score=12, first_name="Puppet", last_name="Bella", photo_url="4.png", ), AppUser( username="5", vk_id=5, score=12, first_name="Fox", last_name="Cozy", photo_url="5.png", ), ] AppUser.objects.bulk_create(users) games = [ Game( player=AppUser.objects.get(vk_id=2), points=10, created_at=timezone.now(), ), Game( player=AppUser.objects.get(vk_id=2), points=20, created_at=timezone.now(), ), Game( player=AppUser.objects.get(vk_id=3), points=40, created_at=timezone.now(), ), Game( player=AppUser.objects.get(vk_id=2), points=30, created_at=timezone.now() - timedelta(days=32), ), Game( player=AppUser.objects.get(vk_id=4), points=2, created_at=timezone.now(), ), Game( player=AppUser.objects.get(vk_id=5), points=1, created_at=timezone.now(), ), Game( player=AppUser.objects.get(vk_id=5), points=1, created_at=timezone.now(), ), ] Game.objects.bulk_create(games) response = get_response(api_client) expected = [ { "first_name": "Dog", "id": AppUser.objects.get(vk_id=3).pk, "last_name": "Cooper", "photo_url": "3.png", "score": 40, }, { "first_name": "Cat", "id": AppUser.objects.get(vk_id=2).pk, "last_name": "Leo", "photo_url": "2.png", "score": 30, }, { "first_name": "Puppet", "id": AppUser.objects.get(vk_id=4).pk, "last_name": "Bella", "photo_url": "4.png", "score": 2, }, { "first_name": "Fox", "id": AppUser.objects.get(vk_id=5).pk, "last_name": "Cozy", "photo_url": "5.png", "score": 2, }, ] assert response.json() == expected
[ 1, 515, 12865, 1053, 5335, 287, 2554, 13, 13, 3166, 9557, 29889, 13239, 1053, 29431, 13, 3166, 1791, 29918, 4468, 29889, 5327, 1053, 13291, 13, 13, 3166, 3748, 29889, 9794, 1053, 2401, 2659, 29892, 8448, 13, 13, 2271, 353, 5591, 2754, 29914, 10874, 368, 29918, 13628, 3377, 29908, 13, 13, 13, 1753, 679, 29918, 5327, 29898, 2754, 29918, 4645, 29897, 1599, 13291, 29901, 13, 1678, 736, 7882, 29918, 4645, 29889, 657, 29898, 2271, 29897, 13, 13, 13, 1753, 1243, 29918, 8256, 29918, 1217, 29918, 7193, 29898, 2754, 29918, 4645, 1125, 13, 1678, 2401, 2659, 29889, 12650, 29889, 497, 2141, 8143, 580, 13, 1678, 2933, 353, 679, 29918, 5327, 29898, 2754, 29918, 4645, 29897, 13, 1678, 4974, 2933, 29889, 4882, 29918, 401, 1275, 29871, 29906, 29900, 29900, 13, 1678, 4974, 2933, 29889, 3126, 580, 1275, 5159, 13, 13, 13, 1753, 1243, 29918, 8256, 29918, 29941, 29918, 7193, 29918, 392, 29918, 1217, 29918, 29887, 1280, 29898, 2754, 29918, 4645, 1125, 13, 1678, 4160, 353, 518, 13, 4706, 2401, 2659, 29898, 13, 9651, 8952, 543, 29906, 613, 13, 9651, 325, 29895, 29918, 333, 29922, 29906, 29892, 13, 9651, 8158, 29922, 29906, 29900, 29892, 13, 9651, 937, 29918, 978, 543, 9694, 613, 13, 9651, 1833, 29918, 978, 543, 3226, 29877, 613, 13, 9651, 15373, 29918, 2271, 543, 29906, 29889, 2732, 613, 13, 4706, 10353, 13, 4706, 2401, 2659, 29898, 13, 9651, 8952, 543, 29941, 613, 13, 9651, 325, 29895, 29918, 333, 29922, 29941, 29892, 13, 9651, 8158, 29922, 29896, 29892, 13, 9651, 937, 29918, 978, 543, 29928, 468, 613, 13, 9651, 1833, 29918, 978, 543, 7967, 3372, 613, 13, 9651, 15373, 29918, 2271, 543, 29941, 29889, 2732, 613, 13, 4706, 10353, 13, 4706, 2401, 2659, 29898, 13, 9651, 8952, 543, 29946, 613, 13, 9651, 325, 29895, 29918, 333, 29922, 29946, 29892, 13, 9651, 8158, 29922, 29896, 29906, 29892, 13, 9651, 937, 29918, 978, 543, 29925, 29884, 7988, 613, 13, 9651, 1833, 29918, 978, 543, 29933, 3547, 613, 13, 9651, 15373, 29918, 2271, 543, 29946, 29889, 2732, 613, 13, 4706, 10353, 13, 1678, 4514, 13, 1678, 2401, 2659, 29889, 12650, 29889, 8645, 29895, 29918, 3258, 29898, 7193, 29897, 13, 1678, 2933, 353, 679, 29918, 5327, 29898, 2754, 29918, 4645, 29897, 13, 1678, 3806, 353, 5159, 13, 1678, 4974, 2933, 29889, 3126, 580, 1275, 3806, 13, 13, 13, 1753, 1243, 29918, 8256, 29918, 29941, 29918, 7193, 29898, 2754, 29918, 4645, 1125, 13, 1678, 4160, 353, 518, 13, 4706, 2401, 2659, 29898, 13, 9651, 8952, 543, 29906, 613, 13, 9651, 325, 29895, 29918, 333, 29922, 29906, 29892, 13, 9651, 8158, 29922, 29906, 29900, 29892, 13, 9651, 937, 29918, 978, 543, 9694, 613, 13, 9651, 1833, 29918, 978, 543, 3226, 29877, 613, 13, 9651, 15373, 29918, 2271, 543, 29906, 29889, 2732, 613, 13, 4706, 10353, 13, 4706, 2401, 2659, 29898, 13, 9651, 8952, 543, 29941, 613, 13, 9651, 325, 29895, 29918, 333, 29922, 29941, 29892, 13, 9651, 8158, 29922, 29896, 29892, 13, 9651, 937, 29918, 978, 543, 29928, 468, 613, 13, 9651, 1833, 29918, 978, 543, 7967, 3372, 613, 13, 9651, 15373, 29918, 2271, 543, 29941, 29889, 2732, 613, 13, 4706, 10353, 13, 4706, 2401, 2659, 29898, 13, 9651, 8952, 543, 29946, 613, 13, 9651, 325, 29895, 29918, 333, 29922, 29946, 29892, 13, 9651, 8158, 29922, 29896, 29906, 29892, 13, 9651, 937, 29918, 978, 543, 29925, 29884, 7988, 613, 13, 9651, 1833, 29918, 978, 543, 29933, 3547, 613, 13, 9651, 15373, 29918, 2271, 543, 29946, 29889, 2732, 613, 13, 4706, 10353, 13, 4706, 2401, 2659, 29898, 13, 9651, 8952, 543, 29945, 613, 13, 9651, 325, 29895, 29918, 333, 29922, 29945, 29892, 13, 9651, 8158, 29922, 29896, 29906, 29892, 13, 9651, 937, 29918, 978, 543, 29943, 2251, 613, 13, 9651, 1833, 29918, 978, 543, 7967, 1537, 613, 13, 9651, 15373, 29918, 2271, 543, 29945, 29889, 2732, 613, 13, 4706, 10353, 13, 1678, 4514, 13, 1678, 2401, 2659, 29889, 12650, 29889, 8645, 29895, 29918, 3258, 29898, 7193, 29897, 13, 1678, 8090, 353, 518, 13, 4706, 8448, 29898, 13, 9651, 4847, 29922, 2052, 2659, 29889, 12650, 29889, 657, 29898, 29894, 29895, 29918, 333, 29922, 29906, 511, 13, 9651, 3291, 29922, 29896, 29900, 29892, 13, 9651, 2825, 29918, 271, 29922, 2230, 8028, 29889, 3707, 3285, 13, 4706, 10353, 13, 4706, 8448, 29898, 13, 9651, 4847, 29922, 2052, 2659, 29889, 12650, 29889, 657, 29898, 29894, 29895, 29918, 333, 29922, 29906, 511, 13, 9651, 3291, 29922, 29906, 29900, 29892, 13, 9651, 2825, 29918, 271, 29922, 2230, 8028, 29889, 3707, 3285, 13, 4706, 10353, 13, 4706, 8448, 29898, 13, 9651, 4847, 29922, 2052, 2659, 29889, 12650, 29889, 657, 29898, 29894, 29895, 29918, 333, 29922, 29941, 511, 13, 9651, 3291, 29922, 29946, 29900, 29892, 13, 9651, 2825, 29918, 271, 29922, 2230, 8028, 29889, 3707, 3285, 13, 4706, 10353, 13, 4706, 8448, 29898, 13, 9651, 4847, 29922, 2052, 2659, 29889, 12650, 29889, 657, 29898, 29894, 29895, 29918, 333, 29922, 29906, 511, 13, 9651, 3291, 29922, 29941, 29900, 29892, 13, 9651, 2825, 29918, 271, 29922, 2230, 8028, 29889, 3707, 580, 448, 5335, 287, 2554, 29898, 16700, 29922, 29941, 29906, 511, 13, 4706, 10353, 13, 4706, 8448, 29898, 13, 9651, 4847, 29922, 2052, 2659, 29889, 12650, 29889, 657, 29898, 29894, 29895, 29918, 333, 29922, 29946, 511, 13, 9651, 3291, 29922, 29906, 29892, 13, 9651, 2825, 29918, 271, 29922, 2230, 8028, 29889, 3707, 3285, 13, 4706, 10353, 13, 4706, 8448, 29898, 13, 9651, 4847, 29922, 2052, 2659, 29889, 12650, 29889, 657, 29898, 29894, 29895, 29918, 333, 29922, 29945, 511, 13, 9651, 3291, 29922, 29896, 29892, 13, 9651, 2825, 29918, 271, 29922, 2230, 8028, 29889, 3707, 3285, 13, 4706, 10353, 13, 4706, 8448, 29898, 13, 9651, 4847, 29922, 2052, 2659, 29889, 12650, 29889, 657, 29898, 29894, 29895, 29918, 333, 29922, 29945, 511, 13, 9651, 3291, 29922, 29896, 29892, 13, 9651, 2825, 29918, 271, 29922, 2230, 8028, 29889, 3707, 3285, 13, 4706, 10353, 13, 1678, 4514, 13, 1678, 8448, 29889, 12650, 29889, 8645, 29895, 29918, 3258, 29898, 29887, 1280, 29897, 13, 13, 1678, 2933, 353, 679, 29918, 5327, 29898, 2754, 29918, 4645, 29897, 13, 1678, 3806, 353, 518, 13, 4706, 426, 13, 9651, 376, 4102, 29918, 978, 1115, 376, 29928, 468, 613, 13, 9651, 376, 333, 1115, 2401, 2659, 29889, 12650, 29889, 657, 29898, 29894, 29895, 29918, 333, 29922, 29941, 467, 20571, 29892, 13, 9651, 376, 4230, 29918, 978, 1115, 376, 7967, 3372, 613, 13, 9651, 376, 21596, 29918, 2271, 1115, 376, 29941, 29889, 2732, 613, 13, 9651, 376, 13628, 1115, 29871, 29946, 29900, 29892, 13, 4706, 2981, 13, 4706, 426, 13, 9651, 376, 4102, 29918, 978, 1115, 376, 9694, 613, 13, 9651, 376, 333, 1115, 2401, 2659, 29889, 12650, 29889, 657, 29898, 29894, 29895, 29918, 333, 29922, 29906, 467, 20571, 29892, 13, 9651, 376, 4230, 29918, 978, 1115, 376, 3226, 29877, 613, 13, 9651, 376, 21596, 29918, 2271, 1115, 376, 29906, 29889, 2732, 613, 13, 9651, 376, 13628, 1115, 29871, 29941, 29900, 29892, 13, 4706, 2981, 13, 4706, 426, 13, 9651, 376, 4102, 29918, 978, 1115, 376, 29925, 29884, 7988, 613, 13, 9651, 376, 333, 1115, 2401, 2659, 29889, 12650, 29889, 657, 29898, 29894, 29895, 29918, 333, 29922, 29946, 467, 20571, 29892, 13, 9651, 376, 4230, 29918, 978, 1115, 376, 29933, 3547, 613, 13, 9651, 376, 21596, 29918, 2271, 1115, 376, 29946, 29889, 2732, 613, 13, 9651, 376, 13628, 1115, 29871, 29906, 29892, 13, 4706, 2981, 13, 4706, 426, 13, 9651, 376, 4102, 29918, 978, 1115, 376, 29943, 2251, 613, 13, 9651, 376, 333, 1115, 2401, 2659, 29889, 12650, 29889, 657, 29898, 29894, 29895, 29918, 333, 29922, 29945, 467, 20571, 29892, 13, 9651, 376, 4230, 29918, 978, 1115, 376, 7967, 1537, 613, 13, 9651, 376, 21596, 29918, 2271, 1115, 376, 29945, 29889, 2732, 613, 13, 9651, 376, 13628, 1115, 29871, 29906, 29892, 13, 4706, 2981, 13, 1678, 4514, 13, 1678, 4974, 2933, 29889, 3126, 580, 1275, 3806, 13, 2 ]
main.py
NMme/CrusaderAIManager
0
84678
import kivy kivy.require('1.0.6') # replace with your current kivy version ! from kivy.app import App from kivy.uix.label import Label import os import shutil import json import codecs class MyApp(App): def build(self): self.root = "/home/Games/Crusader-HDUP/CrusaderAIManager" self.ai_shorts = {'Caliph': 'ca', 'Frederick': 'fr', 'Pig': 'pg', 'Phillip': 'ph', 'Richard': 'ri', 'Rat': 'rt', 'Saladin': 'sa', 'Sheriff': 'sh', 'Snake': 'sn', 'Sultan': 'su', 'Wolf': 'wf', 'Abbot': 'ab', 'Marshall': 'ma', 'Nizar': 'ni', 'Emir': 'em', 'Wazir': 'wa' } self.characters = ['Caliph', 'Frederick', 'Pig', 'Phillip', 'Richard', 'Rat', 'Saladin', 'Sheriff', 'Snake', 'Sultan', 'Wolf', 'Abbot', 'Marshall', 'Nizar', 'Emir', 'Wazir'] return Label(text='Hello world') def back_up_vanilla(self, sc_path: str): # backup all the vanilla stronghold files # create new folder vanilla_folder = os.path.join(self.root, 'vanilla') os.mkdir(vanilla_folder) os.mkdir(os.path.join(vanilla_folder, '_fx_speech_')) os.mkdir(os.path.join(vanilla_folder, '_binks_')) os.mkdir(os.path.join(vanilla_folder, '_resources_')) # copy all the original files here #shutil.copy2() def create_assets_config_file(): # open speech file with open('char_speech.json', 'r') as f: cs = json.load(f) # open binks file with open('char_binks.json', 'r') as f: bi = json.load(f) vanilla_root_dir = "/data/vanilla/speech" out_file = dict() # iterate over all characters for char in cs.keys(): char_assets = dict() speech_files = dict() bink_files = dict() special_char = False char_assets['SpecialCharacter'] = 0 # check what kind of character we have if cs[char]['num_actions'] == 22: special_char = True char_assets['SpecialCharacter'] = 1 # add all speech actions for item in cs[char]['actions'].items(): if item[1] > 0: if special_char and 'player' in item[0]: file_keys = [cs[char]['prefix'] + '_' + item[0]] else: file_keys = [cs[char]['prefix'] + '_' + item[0] + '_' + str(i).zfill(2) for i in range(1, item[1] + 1)] for f in file_keys: speech_files[f] = os.path.join('vanilla', 'speech', (f + '.wav')) char_assets['Speech'] = speech_files # add special announcements for special characters if special_char: announce_files = {char + '_Attack': os.path.join('vanilla', 'speech', (char + '_Attack.wav')), char + '_Defeat': os.path.join('vanilla', 'speech', (char + '_Defeat.wav'))} char_assets['Announcements'] = announce_files # add all bink files for item in bi[char]['actions'].items(): if item[1] > 0: if bi[char]['numerate_files']: file_keys = [bi[char]['prefix'] + '_' + item[0] + str(i) for i in range(1, item[1] + 1)] else: file_keys = [bi[char]['prefix'] + '_' + item[0]] for f in file_keys: bink_files[f] = os.path.join('vanilla', 'speech', (f + '.bik')) char_assets['Binks'] = bink_files out_file[char] = char_assets return out_file def test_vanilla_replace(replace_char: str = 'Wazir'): # some paths vanilla_dir = "data/mod_base/vanilla" # load robin hood with open('data/robin_hood_mod/robinhood.json', 'r') as f: rh = json.load(f, strict=False) # load vanilla mode with open('data/mod_base/vanilla/vanilla.json', 'r') as f: vanilla = json.load(f, strict=False) characters = ['Caliph', 'Frederick', 'Pig', 'Phillip', 'Richard', 'Rat', 'Saladin', 'Sheriff', 'Snake', 'Sultan', 'Wolf', 'Abbot', 'Marshall', 'Nizar', 'Emir', 'Wazir'] if replace_char not in characters: raise Exception('Invalid standard character') # replace aic # load vanilla aic with open(os.path.join(vanilla_dir, vanilla['AIC']), 'r') as f: aic = json.load(f, strict=False) # get index idx = [i for i in range(len(aic['AICharacters'])) if aic['AICharacters'][i]['Name'] == replace_char][0] # add Custom Name aic['AICharacters'][idx]['CustomName'] = rh['AIC']['CustomName'] aic['AICharacters'][idx]['Personality'] = rh['AIC']['Personality'] # output new AIC with open('data/output/my_aic.json', 'w') as f: json.dump(aic, f) # replace troops # load vanilla troops with codecs.open(os.path.join(vanilla_dir, vanilla['Troops']), 'r', 'utf-8-sig') as f: troops = json.load(f, strict=False) if 'Troops' in rh.keys(): # get index idx = [i for i in range(1, 17) if troops[str(i)]['Name'] == replace_char][0] # add custom troops configuration troops[str(idx)]['Lord'] = rh['Troops']['Lord'] troops[str(idx)]['normal'] = rh['Troops']['normal'] troops[str(idx)]['crusader'] = rh['Troops']['crusader'] troops[str(idx)]['deathmatch'] = rh['Troops']['deathmatch'] # output new Troops file with open('data/output/my_troops.json', 'w') as f: json.dump(troops, f) # set new AVI files with open(os.path.join(vanilla_dir, vanilla['AIV']), 'r') as f: aiv = json.load(f, strict=False) if 'AIV' in rh.keys(): for i, aiv_files in enumerate(aiv[replace_char].keys()): if rh['AIV'][str(i+1)]: aiv[replace_char][aiv_files] = os.path.join(rh['AIV']['base_dir'], rh['AIV'][str(i+1)]) # output new AIV file with open('data/output/my_aiv.json', 'w') as f: json.dump(aiv, f) if __name__ == '__main__': #MyApp().run() test_vanilla_replace(replace_char='Sultan')
[ 1, 1053, 413, 440, 29891, 13, 29895, 440, 29891, 29889, 12277, 877, 29896, 29889, 29900, 29889, 29953, 1495, 396, 5191, 411, 596, 1857, 413, 440, 29891, 1873, 1738, 13, 3166, 413, 440, 29891, 29889, 932, 1053, 2401, 13, 3166, 413, 440, 29891, 29889, 29884, 861, 29889, 1643, 1053, 15796, 13, 13, 5215, 2897, 13, 5215, 528, 4422, 13, 5215, 4390, 13, 5215, 775, 2395, 13, 13, 13, 13, 13, 1990, 1619, 2052, 29898, 2052, 1125, 13, 13, 1678, 822, 2048, 29898, 1311, 1125, 13, 4706, 1583, 29889, 4632, 353, 5591, 5184, 29914, 29954, 1280, 29914, 29907, 15816, 1664, 29899, 26124, 4897, 29914, 29907, 15816, 1664, 23869, 3260, 29908, 13, 4706, 1583, 29889, 1794, 29918, 12759, 29879, 353, 11117, 29907, 2606, 561, 2396, 525, 1113, 742, 13, 462, 3986, 525, 23923, 672, 860, 2396, 525, 1341, 742, 13, 462, 3986, 525, 29925, 335, 2396, 525, 4061, 742, 13, 462, 3986, 525, 4819, 453, 666, 2396, 525, 561, 742, 13, 462, 3986, 525, 25627, 538, 2396, 525, 374, 742, 13, 462, 3986, 525, 29934, 271, 2396, 525, 2273, 742, 13, 462, 3986, 525, 20392, 28214, 2396, 525, 4977, 742, 13, 462, 3986, 525, 29903, 2276, 2593, 2396, 525, 845, 742, 13, 462, 3986, 525, 29903, 21040, 2396, 525, 16586, 742, 13, 462, 3986, 525, 29903, 19992, 2396, 525, 2146, 742, 13, 462, 3986, 525, 29956, 4369, 2396, 525, 29893, 29888, 742, 13, 462, 3986, 525, 29909, 1327, 327, 2396, 525, 370, 742, 13, 462, 3986, 525, 7083, 845, 497, 2396, 525, 655, 742, 13, 462, 3986, 525, 29940, 15356, 2396, 525, 1240, 742, 13, 462, 3986, 525, 6026, 381, 2396, 525, 331, 742, 13, 462, 3986, 525, 29956, 834, 381, 2396, 525, 2766, 29915, 13, 462, 3986, 500, 13, 4706, 1583, 29889, 3090, 21706, 353, 6024, 29907, 2606, 561, 742, 525, 23923, 672, 860, 742, 525, 29925, 335, 742, 525, 4819, 453, 666, 742, 525, 25627, 538, 742, 525, 29934, 271, 742, 525, 20392, 28214, 742, 525, 29903, 2276, 2593, 742, 525, 29903, 21040, 742, 13, 462, 965, 525, 29903, 19992, 742, 525, 29956, 4369, 742, 525, 29909, 1327, 327, 742, 525, 7083, 845, 497, 742, 525, 29940, 15356, 742, 525, 6026, 381, 742, 525, 29956, 834, 381, 2033, 13, 4706, 736, 15796, 29898, 726, 2433, 10994, 3186, 1495, 13, 13, 13, 1678, 822, 1250, 29918, 786, 29918, 3703, 2911, 29898, 1311, 29892, 885, 29918, 2084, 29901, 851, 1125, 13, 4706, 396, 16199, 599, 278, 1109, 2911, 4549, 8948, 2066, 13, 13, 4706, 396, 1653, 716, 4138, 13, 4706, 1109, 2911, 29918, 12083, 353, 2897, 29889, 2084, 29889, 7122, 29898, 1311, 29889, 4632, 29892, 525, 3703, 2911, 1495, 13, 4706, 2897, 29889, 11256, 3972, 29898, 3703, 2911, 29918, 12083, 29897, 13, 4706, 2897, 29889, 11256, 3972, 29898, 359, 29889, 2084, 29889, 7122, 29898, 3703, 2911, 29918, 12083, 29892, 22868, 11093, 29918, 5965, 5309, 29918, 8785, 13, 4706, 2897, 29889, 11256, 3972, 29898, 359, 29889, 2084, 29889, 7122, 29898, 3703, 2911, 29918, 12083, 29892, 22868, 29890, 19363, 29918, 8785, 13, 4706, 2897, 29889, 11256, 3972, 29898, 359, 29889, 2084, 29889, 7122, 29898, 3703, 2911, 29918, 12083, 29892, 22868, 13237, 29918, 8785, 13, 13, 4706, 396, 3509, 599, 278, 2441, 2066, 1244, 13, 4706, 396, 845, 4422, 29889, 8552, 29906, 580, 13, 13, 13, 1753, 1653, 29918, 16596, 29918, 2917, 29918, 1445, 7295, 13, 1678, 396, 1722, 12032, 934, 13, 1678, 411, 1722, 877, 3090, 29918, 5965, 5309, 29889, 3126, 742, 525, 29878, 1495, 408, 285, 29901, 13, 4706, 5939, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 13, 1678, 396, 1722, 289, 19363, 934, 13, 1678, 411, 1722, 877, 3090, 29918, 29890, 19363, 29889, 3126, 742, 525, 29878, 1495, 408, 285, 29901, 13, 4706, 4768, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 13, 1678, 1109, 2911, 29918, 4632, 29918, 3972, 353, 5591, 1272, 29914, 3703, 2911, 29914, 5965, 5309, 29908, 13, 1678, 714, 29918, 1445, 353, 9657, 580, 13, 13, 1678, 396, 13649, 975, 599, 4890, 13, 1678, 363, 1373, 297, 5939, 29889, 8149, 7295, 13, 4706, 1373, 29918, 16596, 353, 9657, 580, 13, 4706, 12032, 29918, 5325, 353, 9657, 580, 13, 4706, 289, 682, 29918, 5325, 353, 9657, 580, 13, 4706, 4266, 29918, 3090, 353, 7700, 13, 4706, 1373, 29918, 16596, 1839, 24780, 20755, 2033, 353, 29871, 29900, 13, 13, 4706, 396, 1423, 825, 2924, 310, 2931, 591, 505, 13, 4706, 565, 5939, 29961, 3090, 22322, 1949, 29918, 7387, 2033, 1275, 29871, 29906, 29906, 29901, 13, 9651, 4266, 29918, 3090, 353, 5852, 13, 9651, 1373, 29918, 16596, 1839, 24780, 20755, 2033, 353, 29871, 29896, 13, 13, 4706, 396, 788, 599, 12032, 8820, 13, 4706, 363, 2944, 297, 5939, 29961, 3090, 22322, 7387, 13359, 7076, 7295, 13, 9651, 565, 2944, 29961, 29896, 29962, 1405, 29871, 29900, 29901, 13, 18884, 565, 4266, 29918, 3090, 322, 525, 9106, 29915, 297, 2944, 29961, 29900, 5387, 13, 462, 1678, 934, 29918, 8149, 353, 518, 2395, 29961, 3090, 22322, 13506, 2033, 718, 22868, 29915, 718, 2944, 29961, 29900, 5262, 13, 18884, 1683, 29901, 13, 462, 1678, 934, 29918, 8149, 353, 518, 2395, 29961, 3090, 22322, 13506, 2033, 718, 22868, 29915, 718, 2944, 29961, 29900, 29962, 718, 22868, 29915, 718, 851, 29898, 29875, 467, 29920, 5589, 29898, 29906, 29897, 363, 474, 297, 3464, 29898, 29896, 29892, 2944, 29961, 29896, 29962, 718, 29871, 29896, 4638, 13, 18884, 363, 285, 297, 934, 29918, 8149, 29901, 13, 462, 1678, 12032, 29918, 5325, 29961, 29888, 29962, 353, 2897, 29889, 2084, 29889, 7122, 877, 3703, 2911, 742, 525, 5965, 5309, 742, 313, 29888, 718, 15300, 29893, 485, 8785, 13, 4706, 1373, 29918, 16596, 1839, 10649, 5309, 2033, 353, 12032, 29918, 5325, 13, 13, 4706, 396, 788, 4266, 7475, 29883, 4110, 363, 4266, 4890, 13, 4706, 565, 4266, 29918, 3090, 29901, 13, 9651, 7475, 346, 29918, 5325, 353, 426, 3090, 718, 22868, 4165, 547, 2396, 2897, 29889, 2084, 29889, 7122, 877, 3703, 2911, 742, 525, 5965, 5309, 742, 313, 3090, 718, 22868, 4165, 547, 29889, 29893, 485, 1495, 511, 13, 462, 795, 1373, 718, 22868, 3206, 29872, 271, 2396, 2897, 29889, 2084, 29889, 7122, 877, 3703, 2911, 742, 525, 5965, 5309, 742, 313, 3090, 718, 22868, 3206, 29872, 271, 29889, 29893, 485, 8785, 29913, 13, 9651, 1373, 29918, 16596, 1839, 2744, 29876, 1309, 29883, 4110, 2033, 353, 7475, 346, 29918, 5325, 13, 13, 4706, 396, 788, 599, 289, 682, 2066, 13, 4706, 363, 2944, 297, 4768, 29961, 3090, 22322, 7387, 13359, 7076, 7295, 13, 9651, 565, 2944, 29961, 29896, 29962, 1405, 29871, 29900, 29901, 13, 18884, 565, 4768, 29961, 3090, 22322, 8058, 403, 29918, 5325, 2033, 29901, 13, 462, 1678, 934, 29918, 8149, 353, 518, 5365, 29961, 3090, 22322, 13506, 2033, 718, 22868, 29915, 718, 2944, 29961, 29900, 29962, 718, 851, 29898, 29875, 29897, 363, 474, 297, 3464, 29898, 29896, 29892, 2944, 29961, 29896, 29962, 718, 29871, 29896, 4638, 13, 18884, 1683, 29901, 13, 462, 1678, 934, 29918, 8149, 353, 518, 5365, 29961, 3090, 22322, 13506, 2033, 718, 22868, 29915, 718, 2944, 29961, 29900, 5262, 13, 18884, 363, 285, 297, 934, 29918, 8149, 29901, 13, 462, 1678, 289, 682, 29918, 5325, 29961, 29888, 29962, 353, 2897, 29889, 2084, 29889, 7122, 877, 3703, 2911, 742, 525, 5965, 5309, 742, 313, 29888, 718, 15300, 29890, 638, 8785, 13, 4706, 1373, 29918, 16596, 1839, 29933, 19363, 2033, 353, 289, 682, 29918, 5325, 13, 13, 4706, 714, 29918, 1445, 29961, 3090, 29962, 353, 1373, 29918, 16596, 13, 13, 1678, 736, 714, 29918, 1445, 13, 13, 13, 1753, 1243, 29918, 3703, 2911, 29918, 6506, 29898, 6506, 29918, 3090, 29901, 851, 353, 525, 29956, 834, 381, 29374, 13, 1678, 396, 777, 10898, 13, 1678, 1109, 2911, 29918, 3972, 353, 376, 1272, 29914, 1545, 29918, 3188, 29914, 3703, 2911, 29908, 13, 13, 1678, 396, 2254, 696, 2109, 298, 2092, 13, 1678, 411, 1722, 877, 1272, 29914, 307, 2109, 29918, 6614, 29918, 1545, 29914, 307, 2109, 6614, 29889, 3126, 742, 525, 29878, 1495, 408, 285, 29901, 13, 4706, 18178, 353, 4390, 29889, 1359, 29898, 29888, 29892, 9406, 29922, 8824, 29897, 13, 13, 1678, 396, 2254, 1109, 2911, 4464, 13, 1678, 411, 1722, 877, 1272, 29914, 1545, 29918, 3188, 29914, 3703, 2911, 29914, 3703, 2911, 29889, 3126, 742, 525, 29878, 1495, 408, 285, 29901, 13, 4706, 1109, 2911, 353, 4390, 29889, 1359, 29898, 29888, 29892, 9406, 29922, 8824, 29897, 13, 13, 1678, 4890, 353, 6024, 29907, 2606, 561, 742, 525, 23923, 672, 860, 742, 525, 29925, 335, 742, 525, 4819, 453, 666, 742, 525, 25627, 538, 742, 525, 29934, 271, 742, 525, 20392, 28214, 742, 525, 29903, 2276, 2593, 742, 525, 29903, 21040, 742, 13, 462, 29871, 525, 29903, 19992, 742, 525, 29956, 4369, 742, 525, 29909, 1327, 327, 742, 525, 7083, 845, 497, 742, 525, 29940, 15356, 742, 525, 6026, 381, 742, 525, 29956, 834, 381, 2033, 13, 1678, 565, 5191, 29918, 3090, 451, 297, 4890, 29901, 13, 4706, 12020, 8960, 877, 13919, 3918, 2931, 1495, 13, 13, 1678, 396, 5191, 263, 293, 13, 1678, 396, 2254, 1109, 2911, 263, 293, 13, 1678, 411, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 3703, 2911, 29918, 3972, 29892, 1109, 2911, 1839, 29909, 2965, 2033, 511, 525, 29878, 1495, 408, 285, 29901, 13, 4706, 263, 293, 353, 4390, 29889, 1359, 29898, 29888, 29892, 9406, 29922, 8824, 29897, 13, 1678, 396, 679, 2380, 13, 1678, 22645, 353, 518, 29875, 363, 474, 297, 3464, 29898, 2435, 29898, 29874, 293, 1839, 23869, 5914, 21706, 25901, 565, 263, 293, 1839, 23869, 5914, 21706, 2033, 29961, 29875, 22322, 1170, 2033, 1275, 5191, 29918, 3090, 3816, 29900, 29962, 13, 1678, 396, 788, 8701, 4408, 13, 1678, 263, 293, 1839, 23869, 5914, 21706, 2033, 29961, 13140, 22322, 7281, 1170, 2033, 353, 18178, 1839, 29909, 2965, 16215, 7281, 1170, 2033, 13, 1678, 263, 293, 1839, 23869, 5914, 21706, 2033, 29961, 13140, 22322, 7435, 2877, 2033, 353, 18178, 1839, 29909, 2965, 16215, 7435, 2877, 2033, 13, 1678, 396, 1962, 716, 319, 2965, 13, 1678, 411, 1722, 877, 1272, 29914, 4905, 29914, 1357, 29918, 29874, 293, 29889, 3126, 742, 525, 29893, 1495, 408, 285, 29901, 13, 4706, 4390, 29889, 15070, 29898, 29874, 293, 29892, 285, 29897, 13, 13, 1678, 396, 5191, 13230, 13, 1678, 396, 2254, 1109, 2911, 13230, 13, 1678, 411, 775, 2395, 29889, 3150, 29898, 359, 29889, 2084, 29889, 7122, 29898, 3703, 2911, 29918, 3972, 29892, 1109, 2911, 1839, 29911, 307, 3554, 2033, 511, 525, 29878, 742, 525, 9420, 29899, 29947, 29899, 18816, 1495, 408, 285, 29901, 13, 4706, 13230, 353, 4390, 29889, 1359, 29898, 29888, 29892, 9406, 29922, 8824, 29897, 13, 1678, 565, 525, 29911, 307, 3554, 29915, 297, 18178, 29889, 8149, 7295, 13, 4706, 396, 679, 2380, 13, 4706, 22645, 353, 518, 29875, 363, 474, 297, 3464, 29898, 29896, 29892, 29871, 29896, 29955, 29897, 565, 13230, 29961, 710, 29898, 29875, 4638, 1839, 1170, 2033, 1275, 5191, 29918, 3090, 3816, 29900, 29962, 13, 4706, 396, 788, 2888, 13230, 5285, 13, 4706, 13230, 29961, 710, 29898, 13140, 4638, 1839, 29931, 536, 2033, 353, 18178, 1839, 29911, 307, 3554, 16215, 29931, 536, 2033, 13, 4706, 13230, 29961, 710, 29898, 13140, 4638, 1839, 8945, 2033, 353, 18178, 1839, 29911, 307, 3554, 16215, 8945, 2033, 13, 4706, 13230, 29961, 710, 29898, 13140, 4638, 1839, 7283, 375, 1664, 2033, 353, 18178, 1839, 29911, 307, 3554, 16215, 7283, 375, 1664, 2033, 13, 4706, 13230, 29961, 710, 29898, 13140, 4638, 1839, 311, 493, 4352, 2033, 353, 18178, 1839, 29911, 307, 3554, 16215, 311, 493, 4352, 2033, 13, 1678, 396, 1962, 716, 8316, 3554, 934, 13, 1678, 411, 1722, 877, 1272, 29914, 4905, 29914, 1357, 29918, 29873, 307, 3554, 29889, 3126, 742, 525, 29893, 1495, 408, 285, 29901, 13, 4706, 4390, 29889, 15070, 29898, 29873, 307, 3554, 29892, 285, 29897, 13, 13, 1678, 396, 731, 716, 16884, 29902, 2066, 13, 1678, 411, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 3703, 2911, 29918, 3972, 29892, 1109, 2911, 1839, 29909, 5667, 2033, 511, 525, 29878, 1495, 408, 285, 29901, 13, 4706, 263, 440, 353, 4390, 29889, 1359, 29898, 29888, 29892, 9406, 29922, 8824, 29897, 13, 1678, 565, 525, 29909, 5667, 29915, 297, 18178, 29889, 8149, 7295, 13, 4706, 363, 474, 29892, 263, 440, 29918, 5325, 297, 26985, 29898, 29874, 440, 29961, 6506, 29918, 3090, 1822, 8149, 580, 1125, 13, 9651, 565, 18178, 1839, 29909, 5667, 2033, 29961, 710, 29898, 29875, 29974, 29896, 4638, 29901, 13, 18884, 263, 440, 29961, 6506, 29918, 3090, 3816, 29874, 440, 29918, 5325, 29962, 353, 2897, 29889, 2084, 29889, 7122, 29898, 19046, 1839, 29909, 5667, 16215, 3188, 29918, 3972, 7464, 18178, 1839, 29909, 5667, 2033, 29961, 710, 29898, 29875, 29974, 29896, 29897, 2314, 13, 1678, 396, 1962, 716, 319, 5667, 934, 13, 1678, 411, 1722, 877, 1272, 29914, 4905, 29914, 1357, 29918, 29874, 440, 29889, 3126, 742, 525, 29893, 1495, 408, 285, 29901, 13, 4706, 4390, 29889, 15070, 29898, 29874, 440, 29892, 285, 29897, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 396, 3421, 2052, 2141, 3389, 580, 13, 1678, 1243, 29918, 3703, 2911, 29918, 6506, 29898, 6506, 29918, 3090, 2433, 29903, 19992, 1495, 13, 2 ]
util/mccLog.py
ccchooko/webControlClient
0
11661
<gh_stars>0 #-*-coding:utf8-*- import logging from datetime import datetime class mccLog(object): def __init__(self): logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(levelname)s %(message)s', datefmt='%Y-%m-%d %H:%M:%S', filename= datetime.now().strftime("%Y%m%d%H%M%S") + '.log', filemode='a') def mccWriteLog(self, logContent): logging.info(logContent) def mccError(self, errorContent): logging.error(errorContent)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 29899, 29930, 29899, 29883, 3689, 29901, 9420, 29947, 29899, 29930, 29899, 13, 5215, 12183, 13, 3166, 12865, 1053, 12865, 13, 13, 1990, 286, 617, 3403, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 12183, 29889, 16121, 3991, 29898, 5563, 29922, 21027, 29889, 18525, 29892, 13, 18884, 3402, 2433, 29995, 29898, 294, 312, 603, 29897, 29879, 1273, 29898, 5563, 978, 29897, 29879, 1273, 29898, 4906, 29897, 29879, 742, 13, 18884, 2635, 23479, 2433, 29995, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 742, 13, 18884, 10422, 29922, 12865, 29889, 3707, 2141, 710, 615, 603, 11702, 29979, 29995, 29885, 29995, 29881, 29995, 29950, 29995, 29924, 29995, 29903, 1159, 718, 15300, 1188, 742, 13, 18884, 934, 8513, 2433, 29874, 1495, 13, 268, 13, 1678, 822, 286, 617, 6113, 3403, 29898, 1311, 29892, 1480, 3916, 1125, 13, 4706, 12183, 29889, 3888, 29898, 1188, 3916, 29897, 13, 13, 1678, 822, 286, 617, 2392, 29898, 1311, 29892, 1059, 3916, 1125, 13, 4706, 12183, 29889, 2704, 29898, 2704, 3916, 29897, 13, 2 ]
reo/migrations/0112_auto_20210713_0037.py
NREL/REopt_API
7
30123
# Generated by Django 3.1.12 on 2021-07-13 00:37 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('reo', '0111_auto_20210708_2144'), ] operations = [ migrations.RenameField( model_name='sitemodel', old_name='year_one_emissions_from_elec_grid_purchase', new_name='year_one_CO2_emissions_from_elec_grid_purchase', ), migrations.RenameField( model_name='sitemodel', old_name='year_one_emissions_from_elec_grid_purchase_bau', new_name='year_one_CO2_emissions_from_elec_grid_purchase_bau', ), migrations.RenameField( model_name='sitemodel', old_name='year_one_emissions_from_fuelburn', new_name='year_one_CO2_emissions_from_fuelburn', ), migrations.RenameField( model_name='sitemodel', old_name='year_one_emissions_from_fuelburn_bau', new_name='year_one_CO2_emissions_from_fuelburn_bau', ), migrations.RenameField( model_name='sitemodel', old_name='year_one_emissions_offset_from_elec_exports', new_name='year_one_CO2_emissions_offset_from_elec_exports', ), migrations.RenameField( model_name='sitemodel', old_name='year_one_emissions_offset_from_elec_exports_bau', new_name='year_one_CO2_emissions_offset_from_elec_exports_bau', ), ]
[ 1, 396, 3251, 630, 491, 15337, 29871, 29941, 29889, 29896, 29889, 29896, 29906, 373, 29871, 29906, 29900, 29906, 29896, 29899, 29900, 29955, 29899, 29896, 29941, 29871, 29900, 29900, 29901, 29941, 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, 276, 29877, 742, 525, 29900, 29896, 29896, 29896, 29918, 6921, 29918, 29906, 29900, 29906, 29896, 29900, 29955, 29900, 29947, 29918, 29906, 29896, 29946, 29946, 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, 29879, 667, 27224, 742, 13, 9651, 2030, 29918, 978, 2433, 6360, 29918, 650, 29918, 331, 6847, 29918, 3166, 29918, 6146, 29883, 29918, 7720, 29918, 29886, 27574, 742, 13, 9651, 716, 29918, 978, 2433, 6360, 29918, 650, 29918, 3217, 29906, 29918, 331, 6847, 29918, 3166, 29918, 6146, 29883, 29918, 7720, 29918, 29886, 27574, 742, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 29934, 3871, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 29879, 667, 27224, 742, 13, 9651, 2030, 29918, 978, 2433, 6360, 29918, 650, 29918, 331, 6847, 29918, 3166, 29918, 6146, 29883, 29918, 7720, 29918, 29886, 27574, 29918, 9738, 742, 13, 9651, 716, 29918, 978, 2433, 6360, 29918, 650, 29918, 3217, 29906, 29918, 331, 6847, 29918, 3166, 29918, 6146, 29883, 29918, 7720, 29918, 29886, 27574, 29918, 9738, 742, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 29934, 3871, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 29879, 667, 27224, 742, 13, 9651, 2030, 29918, 978, 2433, 6360, 29918, 650, 29918, 331, 6847, 29918, 3166, 29918, 29888, 2491, 18712, 742, 13, 9651, 716, 29918, 978, 2433, 6360, 29918, 650, 29918, 3217, 29906, 29918, 331, 6847, 29918, 3166, 29918, 29888, 2491, 18712, 742, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 29934, 3871, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 29879, 667, 27224, 742, 13, 9651, 2030, 29918, 978, 2433, 6360, 29918, 650, 29918, 331, 6847, 29918, 3166, 29918, 29888, 2491, 18712, 29918, 9738, 742, 13, 9651, 716, 29918, 978, 2433, 6360, 29918, 650, 29918, 3217, 29906, 29918, 331, 6847, 29918, 3166, 29918, 29888, 2491, 18712, 29918, 9738, 742, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 29934, 3871, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 29879, 667, 27224, 742, 13, 9651, 2030, 29918, 978, 2433, 6360, 29918, 650, 29918, 331, 6847, 29918, 10289, 29918, 3166, 29918, 6146, 29883, 29918, 26500, 742, 13, 9651, 716, 29918, 978, 2433, 6360, 29918, 650, 29918, 3217, 29906, 29918, 331, 6847, 29918, 10289, 29918, 3166, 29918, 6146, 29883, 29918, 26500, 742, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 29934, 3871, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 29879, 667, 27224, 742, 13, 9651, 2030, 29918, 978, 2433, 6360, 29918, 650, 29918, 331, 6847, 29918, 10289, 29918, 3166, 29918, 6146, 29883, 29918, 26500, 29918, 9738, 742, 13, 9651, 716, 29918, 978, 2433, 6360, 29918, 650, 29918, 3217, 29906, 29918, 331, 6847, 29918, 10289, 29918, 3166, 29918, 6146, 29883, 29918, 26500, 29918, 9738, 742, 13, 4706, 10353, 13, 1678, 4514, 13, 2 ]
PycharmProjects/PythonExercicios/ex045.py
RodrigoMASRamos/Projects.py
0
38648
# Exercício Python #045 - GAME: <NAME> e Tesoura # # Crie um programa que faça o computador jogar JOKENPÔ com você. # Aprenda a arrumar as cores nas respostas! from random import choice from random import randint # Maneira utilizada na resolução deste exercício from time import sleep print('\033[1;31mATENÇÃO! ESTE É UM JOGO ALTAMENTE PERIGOSO ONDE NÃO HÁ CHANCES DE VITÓRIA PARA VOCÊ!\033[m') Uc = input('\033[0;30mMe diga, \033[1;34mó grande jogador, \033[0;30mvocê escolhe \033[1;35mPEDRA, \033[1;31mPAPEL, ' '\033[0;30mou \033[1;36mTESOURA? ').strip().upper() PC = ['\033[1;35mPEDRA\033[m', '\033[1;31mPAPEL\033[m', '\033[1;36mTESOURA\033[m'] PCc = choice(PC) sleep(0.5) print('JO') sleep(1) print('KEN') sleep(1) print('PO!') if PCc == 'PEDRA' and Uc == 'TESOURA' or PCc == 'TESOURA' and Uc == 'PAPEL' or PCc == 'PAPEL' and Uc == 'PEDRA': print(f'\033[1;31mHAHAHA! Eu venci! \033[0;30mEu escolhi \033[m{PCc} \033[0;30me você \033[m{Uc}\033[0;30m!') elif PCc == Uc: print(f'\033[1;33mEMPATE! Vamos jogar novamente! Eu escolhi \033[m{PCc} \033[0;30me você \033[m{Uc}') else: print(f'\033[0;34mT-T Infelizmente,\033[1;32mvocê venceu... \033[0;30mEu escolhi \033[m{PCc}, \033[0;30me você ' f'escolheu \033[m{Uc}\033[0;30m...\033[m')
[ 1, 396, 1222, 6269, 24394, 5132, 396, 29900, 29946, 29945, 448, 402, 25797, 29901, 529, 5813, 29958, 321, 323, 267, 283, 336, 13, 29937, 13, 29937, 315, 2546, 1922, 16914, 712, 2258, 4277, 288, 2912, 3136, 16812, 279, 435, 8949, 1430, 29925, 30535, 419, 7931, 30037, 29889, 13, 13, 29937, 319, 558, 8395, 263, 3948, 24540, 408, 28337, 8281, 620, 2490, 294, 29991, 13, 13, 3166, 4036, 1053, 7348, 13, 3166, 4036, 1053, 20088, 524, 29871, 396, 341, 1662, 3055, 11824, 1114, 1055, 3770, 29884, 2340, 2731, 29872, 11382, 24394, 13, 3166, 931, 1053, 8709, 13, 13, 2158, 28909, 29900, 29941, 29941, 29961, 29896, 29936, 29941, 29896, 29885, 1299, 1430, 30219, 30179, 29949, 29991, 382, 1254, 29923, 3067, 501, 29924, 435, 29949, 17080, 319, 5850, 5194, 3919, 29923, 349, 1001, 6259, 3267, 29949, 6732, 2287, 405, 30179, 29949, 379, 30102, 5868, 2190, 27266, 5012, 478, 1806, 30178, 3960, 29909, 349, 1718, 29909, 478, 20166, 30403, 9903, 29900, 29941, 29941, 29961, 29885, 1495, 13, 29965, 29883, 353, 1881, 28909, 29900, 29941, 29941, 29961, 29900, 29936, 29941, 29900, 29885, 6816, 270, 4324, 29892, 320, 29900, 29941, 29941, 29961, 29896, 29936, 29941, 29946, 29885, 29980, 6815, 16812, 3136, 29892, 320, 29900, 29941, 29941, 29961, 29900, 29936, 29941, 29900, 29324, 542, 30037, 25224, 354, 320, 29900, 29941, 29941, 29961, 29896, 29936, 29941, 29945, 29885, 29925, 3352, 4717, 29892, 320, 29900, 29941, 29941, 29961, 29896, 29936, 29941, 29896, 29885, 29925, 3301, 6670, 29892, 525, 13, 965, 11297, 29900, 29941, 29941, 29961, 29900, 29936, 29941, 29900, 29885, 283, 320, 29900, 29941, 29941, 29961, 29896, 29936, 29941, 29953, 29885, 29911, 2890, 22970, 29909, 29973, 525, 467, 17010, 2141, 21064, 580, 13, 13, 9026, 353, 6024, 29905, 29900, 29941, 29941, 29961, 29896, 29936, 29941, 29945, 29885, 29925, 3352, 4717, 29905, 29900, 29941, 29941, 29961, 29885, 742, 11297, 29900, 29941, 29941, 29961, 29896, 29936, 29941, 29896, 29885, 29925, 3301, 6670, 29905, 29900, 29941, 29941, 29961, 29885, 742, 11297, 29900, 29941, 29941, 29961, 29896, 29936, 29941, 29953, 29885, 29911, 2890, 22970, 29909, 29905, 29900, 29941, 29941, 29961, 29885, 2033, 13, 9026, 29883, 353, 7348, 29898, 9026, 29897, 13, 13, 17059, 29898, 29900, 29889, 29945, 29897, 13, 2158, 877, 29967, 29949, 1495, 13, 13, 17059, 29898, 29896, 29897, 13, 2158, 877, 29968, 1430, 1495, 13, 13, 17059, 29898, 29896, 29897, 13, 2158, 877, 13152, 29991, 1495, 13, 13, 361, 9609, 29883, 1275, 525, 29925, 3352, 4717, 29915, 322, 501, 29883, 1275, 525, 29911, 2890, 22970, 29909, 29915, 470, 9609, 29883, 1275, 525, 29911, 2890, 22970, 29909, 29915, 322, 501, 29883, 1275, 525, 29925, 3301, 6670, 29915, 470, 9609, 29883, 1275, 525, 29925, 3301, 6670, 29915, 322, 501, 29883, 1275, 525, 29925, 3352, 4717, 2396, 13, 1678, 1596, 29898, 29888, 12764, 29900, 29941, 29941, 29961, 29896, 29936, 29941, 29896, 29885, 15715, 15715, 15715, 29991, 16430, 6003, 455, 29991, 320, 29900, 29941, 29941, 29961, 29900, 29936, 29941, 29900, 29885, 29923, 29884, 25224, 2918, 320, 29900, 29941, 29941, 29961, 29885, 29912, 9026, 29883, 29913, 320, 29900, 29941, 29941, 29961, 29900, 29936, 29941, 29900, 1004, 7931, 30037, 320, 29900, 29941, 29941, 29961, 29885, 29912, 29965, 29883, 1012, 29900, 29941, 29941, 29961, 29900, 29936, 29941, 29900, 29885, 29991, 1495, 13, 23681, 9609, 29883, 1275, 501, 29883, 29901, 13, 1678, 1596, 29898, 29888, 12764, 29900, 29941, 29941, 29961, 29896, 29936, 29941, 29941, 29885, 29923, 3580, 3040, 29991, 478, 14054, 16812, 279, 2420, 2503, 29991, 16430, 25224, 2918, 320, 29900, 29941, 29941, 29961, 29885, 29912, 9026, 29883, 29913, 320, 29900, 29941, 29941, 29961, 29900, 29936, 29941, 29900, 1004, 7931, 30037, 320, 29900, 29941, 29941, 29961, 29885, 29912, 29965, 29883, 29913, 1495, 13, 2870, 29901, 13, 1678, 1596, 29898, 29888, 12764, 29900, 29941, 29941, 29961, 29900, 29936, 29941, 29946, 29885, 29911, 29899, 29911, 9969, 295, 466, 2689, 2053, 29900, 29941, 29941, 29961, 29896, 29936, 29941, 29906, 29324, 542, 30037, 325, 663, 29884, 856, 320, 29900, 29941, 29941, 29961, 29900, 29936, 29941, 29900, 29885, 29923, 29884, 25224, 2918, 320, 29900, 29941, 29941, 29961, 29885, 29912, 9026, 29883, 1118, 320, 29900, 29941, 29941, 29961, 29900, 29936, 29941, 29900, 1004, 7931, 30037, 525, 13, 3986, 285, 29915, 267, 1054, 354, 29884, 320, 29900, 29941, 29941, 29961, 29885, 29912, 29965, 29883, 1012, 29900, 29941, 29941, 29961, 29900, 29936, 29941, 29900, 29885, 856, 29905, 29900, 29941, 29941, 29961, 29885, 1495, 2 ]
rqalpha/mod/rqalpha_mod_fxdayu_source/data_source/mongo.py
quantModel/Rqalpha-myquant-learning
44
115690
# encoding: utf-8 from datetime import date, datetime, time import motor.motor_asyncio import numpy as np import pandas as pd from dateutil.relativedelta import relativedelta from rqalpha.const import INSTRUMENT_TYPE from rqalpha.model.instrument import Instrument from rqalpha.utils.datetime_func import convert_date_to_int from rqalpha.utils.py2 import lru_cache from rqalpha.mod.rqalpha_mod_fxdayu_source.data_source.common import CacheMixin from rqalpha.mod.rqalpha_mod_fxdayu_source.data_source.common.minite import MiniteBarDataSourceMixin from rqalpha.mod.rqalpha_mod_fxdayu_source.data_source.common.odd import OddFrequencyBaseDataSource from rqalpha.mod.rqalpha_mod_fxdayu_source.utils import Singleton from rqalpha.mod.rqalpha_mod_fxdayu_source.utils.asyncio import get_asyncio_event_loop from rqalpha.mod.rqalpha_mod_fxdayu_source.utils.converter import DataFrameConverter INSTRUMENT_TYPE_MAP = { INSTRUMENT_TYPE.CS: "stock", INSTRUMENT_TYPE.INDX: "stock", } class NoneDataError(BaseException): pass class MongoDataSource(OddFrequencyBaseDataSource, MiniteBarDataSourceMixin): __metaclass__ = Singleton def __init__(self, path, mongo_url): super(MongoDataSource, self).__init__(path) from rqalpha.mod.rqalpha_mod_fxdayu_source.share.mongo_handler import MongoHandler self._handler = MongoHandler(mongo_url) self._client = motor.motor_asyncio.AsyncIOMotorClient(mongo_url) self._db_map = self._get_frequency_db_map() def _get_frequency_db_map(self): map_ = self._handler.client.get_database("meta").get_collection("db_map").find() dct = {item["type"]: item["map"] for item in map_} return dct def _get_db(self, instrument, frequency): try: if isinstance(instrument, Instrument): instrument_type = instrument.enum_type else: instrument_type = instrument type_ = INSTRUMENT_TYPE_MAP[instrument_type] return self._db_map[type_][frequency] except KeyError: message = instrument.order_book_id if isinstance(instrument, Instrument) else instrument raise NoneDataError("MongoDB 中没有品种%s的%s数据" % (message, frequency)) async def _do_get_bars(self, db, collection, filters, projection, fill=np.NaN): dct = {} l = 0 async for doc in self._client[db][collection].find(filters, projection): _l = doc.pop('_l') l += _l for key, values in doc.items(): if isinstance(values, list) and (len(values) == _l): dct.setdefault(key, []).extend(values) for values in dct.values(): if len(values) != l: values.extend([fill] * l) df = pd.DataFrame(dct) if df.size: return df.sort_values("datetime") else: return None def _get_bars_in_days(self, instrument, frequency, params): s_date = params[0]["trade_date"] e_date = params[-1]["trade_date"] s_time = params[0]["start_time"] if "start_time" in params[0] else 0 e_time = params[-1]["end_time"] if "end_time" in params[-1] else 150000 s_dt_int = convert_date_to_int(s_date) + s_time e_dt_int = convert_date_to_int(e_date) + e_time db = self._get_db(instrument=instrument, frequency=frequency) collection = instrument.order_book_id filters = {"_d": {"$gte": datetime.combine(s_date, time=time()), "$lte": datetime.combine(e_date, time=time())}} projection = {"_id": 0, "_d": 0} loop = get_asyncio_event_loop() bars = loop.run_until_complete(self._do_get_bars(db, collection, filters, projection)) if bars is not None and bars.size: bars = DataFrameConverter.df2np(bars) else: bars = DataFrameConverter.empty() s_pos = np.searchsorted(bars["datetime"], s_dt_int) e_pos = np.searchsorted(bars["datetime"], e_dt_int, side="right") return bars[s_pos:e_pos] def raw_history_bars(self, instrument, frequency, start_dt=None, end_dt=None, length=None): # 转换到自建mongodb结构s if frequency.endswith("m"): return MiniteBarDataSourceMixin.raw_history_bars( self, instrument, frequency, start_dt=start_dt, end_dt=end_dt, length=length) else: code = instrument.order_book_id db = self._get_db(instrument, frequency) data = self._handler.read(code, db=db, start=start_dt, end=end_dt, length=length, sort=[("datetime", 1)]). \ reset_index() if data is not None and data.size: return DataFrameConverter.df2np(data) else: return DataFrameConverter.empty() def is_base_frequency(self, instrument, frequency): if isinstance(instrument, Instrument): instrument_type = instrument.enum_type else: instrument_type = instrument type_ = INSTRUMENT_TYPE_MAP[instrument_type] return type_ in self._db_map and frequency in self._db_map[type_] def current_snapshot(self, instrument, frequency, dt): pass def _get_date_range(self, frequency): from pymongo import DESCENDING try: db = self._get_db(INSTRUMENT_TYPE.CS, frequency) except NoneDataError: db = self._get_db(INSTRUMENT_TYPE.CS, "1" + frequency[-1]) key = "_d" if frequency.endswith("m") else "datetime" try: start = self._handler.client.get_database(db).get_collection("600000.XSHG").find() \ .sort(key).limit(1)[0][key] end = self._handler.client.get_database(db).get_collection("600000.XSHG").find() \ .sort(key, direction=DESCENDING).limit(1)[0][key] except IndexError: raise RuntimeError("无法从MongoDb获取数据时间范围") return start.date(), end.date() @lru_cache(maxsize=10) def available_data_range(self, frequency): if frequency.endswith("d") or frequency.endswith("h"): return date(2012, 6, 1), date.today() - relativedelta(days=1) return self._get_date_range(frequency) class MongoCacheDataSource(MongoDataSource, CacheMixin): def __init__(self, path, mongo_url): super(MongoCacheDataSource, self).__init__(path, mongo_url) CacheMixin.__init__(self)
[ 1, 396, 8025, 29901, 23616, 29899, 29947, 13, 3166, 12865, 1053, 2635, 29892, 12865, 29892, 931, 13, 13, 5215, 10992, 29889, 14817, 272, 29918, 294, 948, 3934, 13, 5215, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, 3166, 2635, 4422, 29889, 2674, 1926, 287, 2554, 1053, 14215, 287, 2554, 13, 3166, 364, 29939, 2312, 29889, 3075, 1053, 2672, 10810, 5005, 3919, 29918, 11116, 13, 3166, 364, 29939, 2312, 29889, 4299, 29889, 2611, 15461, 1053, 2799, 15461, 13, 3166, 364, 29939, 2312, 29889, 13239, 29889, 12673, 29918, 9891, 1053, 3588, 29918, 1256, 29918, 517, 29918, 524, 13, 3166, 364, 29939, 2312, 29889, 13239, 29889, 2272, 29906, 1053, 301, 582, 29918, 8173, 13, 13, 3166, 364, 29939, 2312, 29889, 1545, 29889, 29878, 29939, 2312, 29918, 1545, 29918, 11093, 3250, 29884, 29918, 4993, 29889, 1272, 29918, 4993, 29889, 9435, 1053, 28540, 29924, 861, 262, 13, 3166, 364, 29939, 2312, 29889, 1545, 29889, 29878, 29939, 2312, 29918, 1545, 29918, 11093, 3250, 29884, 29918, 4993, 29889, 1272, 29918, 4993, 29889, 9435, 29889, 1195, 568, 1053, 3080, 568, 4297, 15559, 29924, 861, 262, 13, 3166, 364, 29939, 2312, 29889, 1545, 29889, 29878, 29939, 2312, 29918, 1545, 29918, 11093, 3250, 29884, 29918, 4993, 29889, 1272, 29918, 4993, 29889, 9435, 29889, 22861, 1053, 438, 1289, 23923, 23860, 5160, 15559, 13, 3166, 364, 29939, 2312, 29889, 1545, 29889, 29878, 29939, 2312, 29918, 1545, 29918, 11093, 3250, 29884, 29918, 4993, 29889, 13239, 1053, 6106, 11285, 13, 3166, 364, 29939, 2312, 29889, 1545, 29889, 29878, 29939, 2312, 29918, 1545, 29918, 11093, 3250, 29884, 29918, 4993, 29889, 13239, 29889, 294, 948, 3934, 1053, 679, 29918, 294, 948, 3934, 29918, 3696, 29918, 7888, 13, 3166, 364, 29939, 2312, 29889, 1545, 29889, 29878, 29939, 2312, 29918, 1545, 29918, 11093, 3250, 29884, 29918, 4993, 29889, 13239, 29889, 535, 13549, 1053, 3630, 4308, 18545, 13, 13, 1177, 10810, 5005, 3919, 29918, 11116, 29918, 23827, 353, 426, 13, 1678, 2672, 10810, 5005, 3919, 29918, 11116, 29889, 9295, 29901, 376, 17712, 613, 13, 1678, 2672, 10810, 5005, 3919, 29918, 11116, 29889, 22255, 29990, 29901, 376, 17712, 613, 13, 29913, 13, 13, 13, 1990, 6213, 1469, 2392, 29898, 5160, 2451, 1125, 13, 1678, 1209, 13, 13, 13, 1990, 18294, 15559, 29898, 29949, 1289, 23923, 23860, 5160, 15559, 29892, 3080, 568, 4297, 15559, 29924, 861, 262, 1125, 13, 1678, 4770, 2527, 562, 605, 1649, 353, 6106, 11285, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2224, 29892, 19476, 29918, 2271, 1125, 13, 4706, 2428, 29898, 29924, 7443, 15559, 29892, 1583, 467, 1649, 2344, 12035, 2084, 29897, 13, 4706, 515, 364, 29939, 2312, 29889, 1545, 29889, 29878, 29939, 2312, 29918, 1545, 29918, 11093, 3250, 29884, 29918, 4993, 29889, 13653, 29889, 29885, 7443, 29918, 13789, 1053, 18294, 4598, 13, 4706, 1583, 3032, 13789, 353, 18294, 4598, 29898, 29885, 7443, 29918, 2271, 29897, 13, 4706, 1583, 3032, 4645, 353, 10992, 29889, 14817, 272, 29918, 294, 948, 3934, 29889, 8123, 5971, 29924, 327, 272, 4032, 29898, 29885, 7443, 29918, 2271, 29897, 13, 4706, 1583, 3032, 2585, 29918, 1958, 353, 1583, 3032, 657, 29918, 10745, 23860, 29918, 2585, 29918, 1958, 580, 13, 13, 1678, 822, 903, 657, 29918, 10745, 23860, 29918, 2585, 29918, 1958, 29898, 1311, 1125, 13, 4706, 2910, 29918, 353, 1583, 3032, 13789, 29889, 4645, 29889, 657, 29918, 9803, 703, 7299, 2564, 657, 29918, 10855, 703, 2585, 29918, 1958, 2564, 2886, 580, 13, 4706, 270, 312, 353, 426, 667, 3366, 1853, 3108, 29901, 2944, 3366, 1958, 3108, 363, 2944, 297, 2910, 29918, 29913, 13, 4706, 736, 270, 312, 13, 13, 1678, 822, 903, 657, 29918, 2585, 29898, 1311, 29892, 11395, 29892, 10868, 1125, 13, 4706, 1018, 29901, 13, 9651, 565, 338, 8758, 29898, 2611, 15461, 29892, 2799, 15461, 1125, 13, 18884, 11395, 29918, 1853, 353, 11395, 29889, 18605, 29918, 1853, 13, 9651, 1683, 29901, 13, 18884, 11395, 29918, 1853, 353, 11395, 13, 9651, 1134, 29918, 353, 2672, 10810, 5005, 3919, 29918, 11116, 29918, 23827, 29961, 2611, 15461, 29918, 1853, 29962, 13, 9651, 736, 1583, 3032, 2585, 29918, 1958, 29961, 1853, 29918, 3816, 10745, 23860, 29962, 13, 4706, 5174, 7670, 2392, 29901, 13, 9651, 2643, 353, 11395, 29889, 2098, 29918, 2909, 29918, 333, 565, 338, 8758, 29898, 2611, 15461, 29892, 2799, 15461, 29897, 1683, 11395, 13, 9651, 12020, 6213, 1469, 2392, 703, 29924, 7443, 4051, 29871, 30275, 31423, 30417, 31399, 31893, 29995, 29879, 30210, 29995, 29879, 30354, 30763, 29908, 1273, 313, 4906, 29892, 10868, 876, 13, 13, 1678, 7465, 822, 903, 1867, 29918, 657, 29918, 28408, 29898, 1311, 29892, 4833, 29892, 4333, 29892, 18094, 29892, 18246, 29892, 5445, 29922, 9302, 29889, 19377, 1125, 13, 4706, 270, 312, 353, 6571, 13, 4706, 301, 353, 29871, 29900, 13, 4706, 7465, 363, 1574, 297, 1583, 3032, 4645, 29961, 2585, 3816, 10855, 1822, 2886, 29898, 26705, 29892, 18246, 1125, 13, 9651, 903, 29880, 353, 1574, 29889, 7323, 877, 29918, 29880, 1495, 13, 9651, 301, 4619, 903, 29880, 13, 9651, 363, 1820, 29892, 1819, 297, 1574, 29889, 7076, 7295, 13, 18884, 565, 338, 8758, 29898, 5975, 29892, 1051, 29897, 322, 313, 2435, 29898, 5975, 29897, 1275, 903, 29880, 1125, 13, 462, 1678, 270, 312, 29889, 842, 4381, 29898, 1989, 29892, 5159, 467, 21843, 29898, 5975, 29897, 13, 9651, 363, 1819, 297, 270, 312, 29889, 5975, 7295, 13, 18884, 565, 7431, 29898, 5975, 29897, 2804, 301, 29901, 13, 462, 1678, 1819, 29889, 21843, 4197, 5589, 29962, 334, 301, 29897, 13, 4706, 4489, 353, 10518, 29889, 17271, 29898, 29881, 312, 29897, 13, 4706, 565, 4489, 29889, 2311, 29901, 13, 9651, 736, 4489, 29889, 6605, 29918, 5975, 703, 12673, 1159, 13, 4706, 1683, 29901, 13, 9651, 736, 6213, 13, 13, 1678, 822, 903, 657, 29918, 28408, 29918, 262, 29918, 16700, 29898, 1311, 29892, 11395, 29892, 10868, 29892, 8636, 1125, 13, 4706, 269, 29918, 1256, 353, 8636, 29961, 29900, 29962, 3366, 3018, 311, 29918, 1256, 3108, 13, 4706, 321, 29918, 1256, 353, 8636, 14352, 29896, 29962, 3366, 3018, 311, 29918, 1256, 3108, 13, 4706, 269, 29918, 2230, 353, 8636, 29961, 29900, 29962, 3366, 2962, 29918, 2230, 3108, 565, 376, 2962, 29918, 2230, 29908, 297, 8636, 29961, 29900, 29962, 1683, 29871, 29900, 13, 4706, 321, 29918, 2230, 353, 8636, 14352, 29896, 29962, 3366, 355, 29918, 2230, 3108, 565, 376, 355, 29918, 2230, 29908, 297, 8636, 14352, 29896, 29962, 1683, 29871, 29896, 29945, 29900, 29900, 29900, 29900, 13, 4706, 269, 29918, 6008, 29918, 524, 353, 3588, 29918, 1256, 29918, 517, 29918, 524, 29898, 29879, 29918, 1256, 29897, 718, 269, 29918, 2230, 13, 4706, 321, 29918, 6008, 29918, 524, 353, 3588, 29918, 1256, 29918, 517, 29918, 524, 29898, 29872, 29918, 1256, 29897, 718, 321, 29918, 2230, 13, 4706, 4833, 353, 1583, 3032, 657, 29918, 2585, 29898, 2611, 15461, 29922, 2611, 15461, 29892, 10868, 29922, 10745, 23860, 29897, 13, 4706, 4333, 353, 11395, 29889, 2098, 29918, 2909, 29918, 333, 13, 4706, 18094, 353, 8853, 29918, 29881, 1115, 8853, 29938, 29887, 371, 1115, 12865, 29889, 17743, 457, 29898, 29879, 29918, 1256, 29892, 931, 29922, 2230, 25739, 3908, 29880, 371, 1115, 12865, 29889, 17743, 457, 29898, 29872, 29918, 1256, 29892, 931, 29922, 2230, 3101, 930, 13, 4706, 18246, 353, 8853, 29918, 333, 1115, 29871, 29900, 29892, 11119, 29881, 1115, 29871, 29900, 29913, 13, 4706, 2425, 353, 679, 29918, 294, 948, 3934, 29918, 3696, 29918, 7888, 580, 13, 4706, 22306, 353, 2425, 29889, 3389, 29918, 29305, 29918, 8835, 29898, 1311, 3032, 1867, 29918, 657, 29918, 28408, 29898, 2585, 29892, 4333, 29892, 18094, 29892, 18246, 876, 13, 4706, 565, 22306, 338, 451, 6213, 322, 22306, 29889, 2311, 29901, 13, 9651, 22306, 353, 3630, 4308, 18545, 29889, 2176, 29906, 9302, 29898, 28408, 29897, 13, 4706, 1683, 29901, 13, 9651, 22306, 353, 3630, 4308, 18545, 29889, 6310, 580, 13, 4706, 269, 29918, 1066, 353, 7442, 29889, 4478, 24582, 29898, 28408, 3366, 12673, 12436, 269, 29918, 6008, 29918, 524, 29897, 13, 4706, 321, 29918, 1066, 353, 7442, 29889, 4478, 24582, 29898, 28408, 3366, 12673, 12436, 321, 29918, 6008, 29918, 524, 29892, 2625, 543, 1266, 1159, 13, 4706, 736, 22306, 29961, 29879, 29918, 1066, 29901, 29872, 29918, 1066, 29962, 13, 13, 1678, 822, 10650, 29918, 18434, 29918, 28408, 29898, 1311, 29892, 11395, 29892, 10868, 29892, 1369, 29918, 6008, 29922, 8516, 29892, 1095, 29918, 6008, 29922, 8516, 29892, 3309, 29922, 8516, 1125, 13, 4706, 396, 29871, 31415, 31640, 30780, 30688, 30886, 23264, 31320, 31901, 29879, 13, 4706, 565, 10868, 29889, 1975, 2541, 703, 29885, 29908, 1125, 13, 9651, 736, 3080, 568, 4297, 15559, 29924, 861, 262, 29889, 1610, 29918, 18434, 29918, 28408, 29898, 13, 18884, 1583, 29892, 11395, 29892, 10868, 29892, 1369, 29918, 6008, 29922, 2962, 29918, 6008, 29892, 1095, 29918, 6008, 29922, 355, 29918, 6008, 29892, 3309, 29922, 2848, 29897, 13, 4706, 1683, 29901, 13, 9651, 775, 353, 11395, 29889, 2098, 29918, 2909, 29918, 333, 13, 9651, 4833, 353, 1583, 3032, 657, 29918, 2585, 29898, 2611, 15461, 29892, 10868, 29897, 13, 9651, 848, 353, 1583, 3032, 13789, 29889, 949, 29898, 401, 29892, 4833, 29922, 2585, 29892, 1369, 29922, 2962, 29918, 6008, 29892, 1095, 29922, 355, 29918, 6008, 29892, 3309, 29922, 2848, 29892, 2656, 11759, 703, 12673, 613, 29871, 29896, 4638, 467, 320, 13, 18884, 10092, 29918, 2248, 580, 13, 9651, 565, 848, 338, 451, 6213, 322, 848, 29889, 2311, 29901, 13, 18884, 736, 3630, 4308, 18545, 29889, 2176, 29906, 9302, 29898, 1272, 29897, 13, 9651, 1683, 29901, 13, 18884, 736, 3630, 4308, 18545, 29889, 6310, 580, 13, 13, 1678, 822, 338, 29918, 3188, 29918, 10745, 23860, 29898, 1311, 29892, 11395, 29892, 10868, 1125, 13, 4706, 565, 338, 8758, 29898, 2611, 15461, 29892, 2799, 15461, 1125, 13, 9651, 11395, 29918, 1853, 353, 11395, 29889, 18605, 29918, 1853, 13, 4706, 1683, 29901, 13, 9651, 11395, 29918, 1853, 353, 11395, 13, 4706, 1134, 29918, 353, 2672, 10810, 5005, 3919, 29918, 11116, 29918, 23827, 29961, 2611, 15461, 29918, 1853, 29962, 13, 4706, 736, 1134, 29918, 297, 1583, 3032, 2585, 29918, 1958, 322, 10868, 297, 1583, 3032, 2585, 29918, 1958, 29961, 1853, 29918, 29962, 13, 13, 1678, 822, 1857, 29918, 29879, 14551, 29898, 1311, 29892, 11395, 29892, 10868, 29892, 11636, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 903, 657, 29918, 1256, 29918, 3881, 29898, 1311, 29892, 10868, 1125, 13, 4706, 515, 282, 962, 7443, 1053, 23050, 11794, 4214, 13, 4706, 1018, 29901, 13, 9651, 4833, 353, 1583, 3032, 657, 29918, 2585, 29898, 1177, 10810, 5005, 3919, 29918, 11116, 29889, 9295, 29892, 10868, 29897, 13, 4706, 5174, 6213, 1469, 2392, 29901, 13, 9651, 4833, 353, 1583, 3032, 657, 29918, 2585, 29898, 1177, 10810, 5005, 3919, 29918, 11116, 29889, 9295, 29892, 376, 29896, 29908, 718, 10868, 14352, 29896, 2314, 13, 4706, 1820, 353, 11119, 29881, 29908, 565, 10868, 29889, 1975, 2541, 703, 29885, 1159, 1683, 376, 12673, 29908, 13, 4706, 1018, 29901, 13, 9651, 1369, 353, 1583, 3032, 13789, 29889, 4645, 29889, 657, 29918, 9803, 29898, 2585, 467, 657, 29918, 10855, 703, 29953, 29900, 29900, 29900, 29900, 29900, 29889, 29990, 7068, 29954, 2564, 2886, 580, 320, 13, 18884, 869, 6605, 29898, 1989, 467, 13400, 29898, 29896, 9601, 29900, 3816, 1989, 29962, 13, 9651, 1095, 353, 1583, 3032, 13789, 29889, 4645, 29889, 657, 29918, 9803, 29898, 2585, 467, 657, 29918, 10855, 703, 29953, 29900, 29900, 29900, 29900, 29900, 29889, 29990, 7068, 29954, 2564, 2886, 580, 320, 13, 18884, 869, 6605, 29898, 1989, 29892, 5305, 29922, 2287, 7187, 11794, 4214, 467, 13400, 29898, 29896, 9601, 29900, 3816, 1989, 29962, 13, 4706, 5174, 11374, 2392, 29901, 13, 9651, 12020, 24875, 2392, 703, 31352, 30545, 31594, 29924, 7443, 10234, 31024, 30683, 30354, 30763, 30594, 31016, 235, 143, 134, 232, 158, 183, 1159, 13, 4706, 736, 1369, 29889, 1256, 3285, 1095, 29889, 1256, 580, 13, 13, 1678, 732, 29880, 582, 29918, 8173, 29898, 3317, 2311, 29922, 29896, 29900, 29897, 13, 1678, 822, 3625, 29918, 1272, 29918, 3881, 29898, 1311, 29892, 10868, 1125, 13, 4706, 565, 10868, 29889, 1975, 2541, 703, 29881, 1159, 470, 10868, 29889, 1975, 2541, 703, 29882, 29908, 1125, 13, 9651, 736, 2635, 29898, 29906, 29900, 29896, 29906, 29892, 29871, 29953, 29892, 29871, 29896, 511, 2635, 29889, 27765, 580, 448, 14215, 287, 2554, 29898, 16700, 29922, 29896, 29897, 13, 4706, 736, 1583, 3032, 657, 29918, 1256, 29918, 3881, 29898, 10745, 23860, 29897, 13, 13, 13, 1990, 18294, 10408, 15559, 29898, 29924, 7443, 15559, 29892, 28540, 29924, 861, 262, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2224, 29892, 19476, 29918, 2271, 1125, 13, 4706, 2428, 29898, 29924, 7443, 10408, 15559, 29892, 1583, 467, 1649, 2344, 12035, 2084, 29892, 19476, 29918, 2271, 29897, 13, 4706, 28540, 29924, 861, 262, 17255, 2344, 12035, 1311, 29897, 13, 2 ]
telluric/constants.py
FlorianPignol/telluric
81
47397
"""Useful constants. """ from rasterio.crs import CRS WGS84_SRID = 4326 #: WGS84 CRS. WGS84_CRS = CRS.from_epsg(WGS84_SRID) WEB_MERCATOR_SRID = 3857 #: Web Mercator CRS. WEB_MERCATOR_CRS = CRS.from_epsg(WEB_MERCATOR_SRID) # Best widely used, equal area projection according to # http://icaci.org/documents/ICC_proceedings/ICC2001/icc2001/file/f24014.doc # (found on https://en.wikipedia.org/wiki/Winkel_tripel_projection#Comparison_with_other_projections) #: Eckert IV CRS. EQUAL_AREA_CRS = CRS({'proj': 'eck4'}) DEFAULT_SRID = WGS84_SRID #: Default CRS, set to :py:data:`~telluric.constants.WGS84_CRS`. DEFAULT_CRS = WGS84_CRS def _MERCATOR_RESOLUTION_MAPPING(zoom_level): return (2 * 20037508.342789244) / (256 * pow(2, zoom_level)) MERCATOR_RESOLUTION_MAPPING = dict((i, _MERCATOR_RESOLUTION_MAPPING(i)) for i in range(21)) RASTER_TYPE = 'raster'
[ 1, 9995, 11403, 1319, 17727, 29889, 13, 13, 15945, 29908, 13, 3166, 364, 1901, 601, 29889, 29883, 2288, 1053, 315, 12445, 13, 13, 29956, 10749, 29947, 29946, 29918, 14098, 1367, 353, 29871, 29946, 29941, 29906, 29953, 13, 29937, 29901, 399, 10749, 29947, 29946, 315, 12445, 29889, 13, 29956, 10749, 29947, 29946, 29918, 11341, 29903, 353, 315, 12445, 29889, 3166, 29918, 8961, 29887, 29898, 29956, 10749, 29947, 29946, 29918, 14098, 1367, 29897, 13, 13, 8851, 29933, 29918, 29924, 1001, 23972, 1955, 29918, 14098, 1367, 353, 29871, 29941, 29947, 29945, 29955, 13, 29937, 29901, 2563, 4702, 29883, 1061, 315, 12445, 29889, 13, 8851, 29933, 29918, 29924, 1001, 23972, 1955, 29918, 11341, 29903, 353, 315, 12445, 29889, 3166, 29918, 8961, 29887, 29898, 8851, 29933, 29918, 29924, 1001, 23972, 1955, 29918, 14098, 1367, 29897, 13, 13, 29937, 6407, 17644, 1304, 29892, 5186, 4038, 18246, 5034, 304, 13, 29937, 1732, 597, 983, 455, 29889, 990, 29914, 3225, 29879, 29914, 2965, 29907, 29918, 771, 3947, 886, 29914, 2965, 29907, 29906, 29900, 29900, 29896, 29914, 293, 29883, 29906, 29900, 29900, 29896, 29914, 1445, 29914, 29888, 29906, 29946, 29900, 29896, 29946, 29889, 1514, 13, 29937, 313, 11940, 373, 2045, 597, 264, 29889, 6011, 29889, 990, 29914, 4594, 29914, 29956, 27136, 29918, 3626, 13111, 29918, 771, 6929, 29937, 1523, 20941, 29918, 2541, 29918, 1228, 29918, 771, 24247, 29897, 13, 29937, 29901, 382, 384, 814, 6599, 315, 12445, 29889, 13, 29923, 13356, 1964, 29918, 29909, 1525, 29909, 29918, 11341, 29903, 353, 315, 12445, 3319, 29915, 20865, 2396, 525, 29872, 384, 29946, 29915, 1800, 13, 13, 23397, 29918, 14098, 1367, 353, 399, 10749, 29947, 29946, 29918, 14098, 1367, 13, 29937, 29901, 13109, 315, 12445, 29892, 731, 304, 584, 2272, 29901, 1272, 18078, 30022, 29873, 514, 332, 293, 29889, 3075, 1934, 29889, 29956, 10749, 29947, 29946, 29918, 11341, 29903, 1412, 13, 23397, 29918, 11341, 29903, 353, 399, 10749, 29947, 29946, 29918, 11341, 29903, 13, 13, 13, 1753, 903, 29924, 1001, 23972, 1955, 29918, 15989, 5607, 2692, 2725, 29918, 1529, 18009, 4214, 29898, 2502, 290, 29918, 5563, 1125, 13, 1678, 736, 313, 29906, 334, 29871, 29906, 29900, 29900, 29941, 29955, 29945, 29900, 29947, 29889, 29941, 29946, 29906, 29955, 29947, 29929, 29906, 29946, 29946, 29897, 847, 313, 29906, 29945, 29953, 334, 4764, 29898, 29906, 29892, 19342, 29918, 5563, 876, 13, 13, 13, 29924, 1001, 23972, 1955, 29918, 15989, 5607, 2692, 2725, 29918, 1529, 18009, 4214, 353, 9657, 3552, 29875, 29892, 903, 29924, 1001, 23972, 1955, 29918, 15989, 5607, 2692, 2725, 29918, 1529, 18009, 4214, 29898, 29875, 876, 363, 474, 297, 3464, 29898, 29906, 29896, 876, 13, 13, 4717, 1254, 1001, 29918, 11116, 353, 525, 29878, 1901, 29915, 13, 2 ]
algorithm4.py
guoqing-tang/algorithm
1
73007
# * -- utf-8 -- * # python3 # Author: Tang Time:2018/4/17 '''简述:要求输入某年某月某日 提问:求判断输入日期是当年中的第几天?''' year = int(input('请输入年份:')) month = int(input('请输入月份:')) day = int(input('请输入日期:')) if day >31: print ('请正确输入') if month > 12: print('请正确输入') list1 = [31,59,90,130,151,181,212,243,273,304,334] if (year % 4) == 0 or (year % 100) == 0 or (year % 400) == 0 and month >= 2: data = list1[month - 2] + day +1 if month == 1: data = day if month == 2: data = 31 + day print("这一天是这一年第"+str(data)+"天")
[ 1, 396, 334, 1192, 23616, 29899, 29947, 1192, 334, 1678, 396, 3017, 29941, 13, 29937, 13361, 29901, 27378, 259, 5974, 29901, 29906, 29900, 29896, 29947, 29914, 29946, 29914, 29896, 29955, 13, 13, 13, 12008, 234, 177, 131, 235, 194, 179, 30383, 30698, 31376, 31573, 30752, 233, 162, 147, 30470, 233, 162, 147, 30534, 233, 162, 147, 30325, 29871, 31302, 31658, 30383, 31376, 31791, 31683, 31573, 30752, 30325, 31117, 30392, 30948, 30470, 30275, 30210, 30622, 232, 138, 163, 30408, 30882, 12008, 13, 6360, 353, 938, 29898, 2080, 877, 31088, 31573, 30752, 30470, 231, 190, 192, 30383, 8785, 13, 10874, 353, 938, 29898, 2080, 877, 31088, 31573, 30752, 30534, 231, 190, 192, 30383, 8785, 13, 3250, 353, 938, 29898, 2080, 877, 31088, 31573, 30752, 30325, 31117, 30383, 8785, 13, 361, 2462, 1405, 29941, 29896, 29901, 13, 1678, 1596, 6702, 31088, 30724, 31835, 31573, 30752, 1495, 13, 361, 4098, 1405, 29871, 29896, 29906, 29901, 13, 1678, 1596, 877, 31088, 30724, 31835, 31573, 30752, 1495, 13, 1761, 29896, 353, 518, 29941, 29896, 29892, 29945, 29929, 29892, 29929, 29900, 29892, 29896, 29941, 29900, 29892, 29896, 29945, 29896, 29892, 29896, 29947, 29896, 29892, 29906, 29896, 29906, 29892, 29906, 29946, 29941, 29892, 29906, 29955, 29941, 29892, 29941, 29900, 29946, 29892, 29941, 29941, 29946, 29962, 13, 361, 313, 6360, 1273, 29871, 29946, 29897, 1275, 29871, 29900, 470, 313, 6360, 1273, 29871, 29896, 29900, 29900, 29897, 1275, 29871, 29900, 470, 313, 6360, 1273, 29871, 29946, 29900, 29900, 29897, 1275, 29871, 29900, 322, 4098, 6736, 29871, 29906, 29901, 13, 1678, 848, 353, 1051, 29896, 29961, 10874, 448, 29871, 29906, 29962, 718, 2462, 718, 29896, 13, 361, 4098, 1275, 29871, 29896, 29901, 13, 1678, 848, 353, 2462, 13, 361, 4098, 1275, 29871, 29906, 29901, 13, 1678, 848, 353, 29871, 29941, 29896, 718, 2462, 13, 2158, 703, 30810, 30287, 30408, 30392, 30810, 30287, 30470, 30622, 17969, 710, 29898, 1272, 7240, 29908, 30408, 1159, 13, 2 ]
tests/test_decast.py
interesaaat/onnxconverter-common
83
67159
import unittest from onnx import helper from onnx import onnx_pb as onnx_proto from onnxconverter_common.decast import decast class DecastTestCase(unittest.TestCase): def test_decast(self): nodes = [] nodes[0:] = [helper.make_node('Identity', ['input1'], ['identity1'])] nodes[1:] = [helper.make_node('Cast', ['identity1'], ['cast0'], to=1)] nodes[2:] = [helper.make_node('ReduceSum', ['cast0'], ['reduce0'])] nodes[3:] = [helper.make_node('Cast', ['reduce0'], ['cast1'], to=6)] nodes[4:] = [helper.make_node('Identity', ['cast1'], ['output0'])] input0 = helper.make_tensor_value_info('input1', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3]) output0 = helper.make_tensor_value_info('output0', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3]) graph = helper.make_graph(nodes, 'test_graph', [input0], [output0]) model = helper.make_model(graph) self.assertIsNotNone(model) converted_model = decast(model, ['ReduceSum']) self.assertTrue(len(converted_model.graph.node) == 3) if __name__ == '__main__': unittest.main()
[ 1, 1053, 443, 27958, 13, 13, 3166, 373, 23818, 1053, 16876, 13, 3166, 373, 23818, 1053, 373, 23818, 29918, 24381, 408, 373, 23818, 29918, 17529, 13, 3166, 373, 23818, 535, 13549, 29918, 9435, 29889, 311, 4384, 1053, 1602, 579, 13, 13, 13, 1990, 3826, 579, 3057, 8259, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 1678, 822, 1243, 29918, 311, 4384, 29898, 1311, 1125, 13, 4706, 7573, 353, 5159, 13, 4706, 7573, 29961, 29900, 17531, 353, 518, 20907, 29889, 5675, 29918, 3177, 877, 18415, 742, 6024, 2080, 29896, 7464, 6024, 22350, 29896, 2033, 4638, 13, 4706, 7573, 29961, 29896, 17531, 353, 518, 20907, 29889, 5675, 29918, 3177, 877, 15738, 742, 6024, 22350, 29896, 7464, 6024, 4384, 29900, 7464, 304, 29922, 29896, 4638, 13, 4706, 7573, 29961, 29906, 17531, 353, 518, 20907, 29889, 5675, 29918, 3177, 877, 29934, 6085, 346, 11139, 742, 6024, 4384, 29900, 7464, 6024, 17469, 29900, 2033, 4638, 13, 4706, 7573, 29961, 29941, 17531, 353, 518, 20907, 29889, 5675, 29918, 3177, 877, 15738, 742, 6024, 17469, 29900, 7464, 6024, 4384, 29896, 7464, 304, 29922, 29953, 4638, 13, 4706, 7573, 29961, 29946, 17531, 353, 518, 20907, 29889, 5675, 29918, 3177, 877, 18415, 742, 6024, 4384, 29896, 7464, 6024, 4905, 29900, 2033, 4638, 13, 13, 4706, 1881, 29900, 353, 16876, 29889, 5675, 29918, 20158, 29918, 1767, 29918, 3888, 877, 2080, 29896, 742, 373, 23818, 29918, 17529, 29889, 29911, 6073, 1184, 517, 29889, 29943, 3927, 1299, 29892, 518, 29896, 29892, 29871, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 2314, 13, 4706, 1962, 29900, 353, 16876, 29889, 5675, 29918, 20158, 29918, 1767, 29918, 3888, 877, 4905, 29900, 742, 373, 23818, 29918, 17529, 29889, 29911, 6073, 1184, 517, 29889, 29943, 3927, 1299, 29892, 518, 29896, 29892, 29871, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 2314, 13, 13, 4706, 3983, 353, 16876, 29889, 5675, 29918, 4262, 29898, 18010, 29892, 525, 1688, 29918, 4262, 742, 518, 2080, 29900, 1402, 518, 4905, 29900, 2314, 13, 4706, 1904, 353, 16876, 29889, 5675, 29918, 4299, 29898, 4262, 29897, 13, 4706, 1583, 29889, 9294, 3624, 3664, 8516, 29898, 4299, 29897, 13, 13, 4706, 11543, 29918, 4299, 353, 1602, 579, 29898, 4299, 29892, 6024, 29934, 6085, 346, 11139, 11287, 13, 4706, 1583, 29889, 9294, 5574, 29898, 2435, 29898, 13441, 287, 29918, 4299, 29889, 4262, 29889, 3177, 29897, 1275, 29871, 29941, 29897, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 443, 27958, 29889, 3396, 580, 13, 2 ]
2021/examples-in-class-2021-10-08/three_five_fifteen.py
ati-ozgur/course-python
1
135079
for index in range(1,101): # if index % 15 == 0: # print("fifteen") if index % 3 == 0 and index % 5 == 0 : print("fifteen") elif index % 3 == 0: print("three") elif index % 5 == 0: print("five") else: print(index)
[ 1, 29871, 13, 1454, 2380, 297, 3464, 29898, 29896, 29892, 29896, 29900, 29896, 1125, 13, 29937, 1678, 565, 2380, 1273, 29871, 29896, 29945, 1275, 29871, 29900, 29901, 13, 29937, 4706, 1596, 703, 28491, 9404, 1159, 13, 1678, 565, 2380, 1273, 29871, 29941, 1275, 29871, 29900, 322, 2380, 1273, 29871, 29945, 1275, 29871, 29900, 584, 13, 4706, 1596, 703, 28491, 9404, 1159, 13, 1678, 25342, 2380, 1273, 29871, 29941, 1275, 29871, 29900, 29901, 13, 4706, 1596, 703, 17536, 1159, 13, 1678, 25342, 2380, 1273, 29871, 29945, 1275, 29871, 29900, 29901, 13, 4706, 1596, 703, 20818, 1159, 13, 1678, 1683, 29901, 13, 4706, 1596, 29898, 2248, 29897, 13, 13, 2 ]
certbot_dns_cfproxy/__init__.py
ProfFan/certbot-dns-cfproxy
2
13262
<filename>certbot_dns_cfproxy/__init__.py """ The `~certbot_dns_cfproxy.dns_cfproxy` plugin automates the process of completing a ``dns-01`` challenge (`~acme.challenges.DNS01`) by creating, and subsequently removing, TXT records using the CFProxy API. Examples -------- .. code-block:: bash :caption: To acquire a certificate for ``example.com`` certbot certonly \\ -a certbot-dns-cfproxy:dns-cfproxy \\ -d example.com """
[ 1, 529, 9507, 29958, 6327, 7451, 29918, 29881, 1983, 29918, 6854, 14701, 29914, 1649, 2344, 26914, 2272, 13, 15945, 29908, 13, 1576, 421, 30022, 6327, 7451, 29918, 29881, 1983, 29918, 6854, 14701, 29889, 29881, 1983, 29918, 6854, 14701, 29952, 7079, 3345, 1078, 278, 1889, 310, 13, 5729, 1259, 263, 4954, 29881, 1983, 29899, 29900, 29896, 16159, 18766, 6695, 30022, 562, 1004, 29889, 305, 16047, 267, 29889, 29928, 3059, 29900, 29896, 6348, 491, 4969, 29892, 322, 13, 1491, 27284, 11077, 29892, 323, 12188, 6475, 773, 278, 17861, 14048, 3450, 29889, 13, 13, 1252, 9422, 13, 1378, 13, 13, 636, 775, 29899, 1271, 1057, 10891, 13, 259, 584, 6671, 29901, 1763, 1274, 1548, 263, 12289, 363, 4954, 4773, 29889, 510, 16159, 13, 13, 259, 2284, 7451, 2284, 6194, 2474, 13, 268, 448, 29874, 2284, 7451, 29899, 29881, 1983, 29899, 6854, 14701, 29901, 29881, 1983, 29899, 6854, 14701, 2474, 13, 268, 448, 29881, 1342, 29889, 510, 13, 13, 15945, 29908, 13, 2 ]
recognitionFace/train.py
factzero/pytorch_jaguarface_examples
2
167262
# -*- coding: UTF-8 -*- import os import argparse import cv2 import time import torch import torch.optim as optim from tqdm import tqdm from config.config import cfg from core.resnet import resnet18 from core.metrics import Arcface from utils.data_gen import get_train_loader parser = argparse.ArgumentParser(description='recognition face Training') parser.add_argument('--training_dataset', default='./data/faces_emore/imgs/', help='Training dataset directory') parser.add_argument('--network', default='resnet18', help='Backbone network mobile0.25 or resnet50') parser.add_argument('--resume_net', default=None, help='resume net for retraining') parser.add_argument('--resume_epoch', default=0, type=int, help='resume iter for retraining') parser.add_argument('--save_folder', default='./weights/', help='Location to save checkpoint models') args = parser.parse_args() def resume_net_param(net, trained_model): print('Loading trained model: {}'.format(trained_model)) state_dict = torch.load(args.resume_net) # create new OrderedDict that does not contain `module.` from collections import OrderedDict new_state_dict = OrderedDict() for k, v in state_dict.items(): head = k[:7] if head == 'module.': name = k[7:] # remove `module.` else: name = k new_state_dict[name] = v net.load_state_dict(new_state_dict) return net def train(): save_folder = args.save_folder if not os.path.exists(args.save_folder): os.mkdir(args.save_folder) print('load dataset ...') with torch.no_grad(): loader, class_num = get_train_loader(cfg, args.training_dataset) print('network ...') device = torch.device("cuda" if cfg['gpu'] else "cpu") if args.network == 'resnet18': net = resnet18(cfg['embedding_size']) if args.resume_net is not None: print('Loading resume network...') net = resume_net_param(net, args.resume_net) net = net.to(device) print('init cirterion ...') criterion = torch.nn.CrossEntropyLoss() metric_fc = Arcface(embedding_size=cfg['embedding_size'], classnum=class_num).to(device) optimizer = optim.SGD([{'params': net.parameters()}, {'params': metric_fc.parameters()}], lr=cfg['initial_lr'], momentum=cfg['momentum'], weight_decay=cfg['weight_decay']) max_epoch = cfg['epoch'] start_epoch = args.resume_epoch net.train() for epoch in range(start_epoch, max_epoch): print('Epoch:{}/{}, batch:{}'.format(epoch, max_epoch, cfg['batch_size'])) for imgs, labels in tqdm(iter(loader)): imgs = imgs.to(device) labels = labels.to(device) # forward features = net(imgs) # backprop output = metric_fc(features, labels) loss = criterion(output, labels) optimizer.zero_grad() loss.backward() optimizer.step() if (epoch % 10 == 0 and epoch > 0): save_w_file = args.network + '_epoch_' + str(epoch) + '_' + str(time.time()) + '.pth' print('saving weights : {}'.format(save_w_file)) torch.save(net.state_dict(), save_folder + save_w_file) if __name__ == "__main__": train() image_path = "./data/87022.jpg" img_raw = cv2.imread(image_path, cv2.IMREAD_COLOR) b, g, r = cv2.split(img_raw) img_1 = cv2.merge([r, g, b]) #cv2.imshow('ori', img_raw) cv2.imshow('img_1', img_1) cv2.waitKey(0)
[ 1, 396, 448, 29930, 29899, 14137, 29901, 18351, 29899, 29947, 448, 29930, 29899, 13, 5215, 2897, 13, 5215, 1852, 5510, 13, 5215, 13850, 29906, 13, 5215, 931, 13, 5215, 4842, 305, 13, 5215, 4842, 305, 29889, 20640, 408, 5994, 13, 3166, 260, 29939, 18933, 1053, 260, 29939, 18933, 13, 3166, 2295, 29889, 2917, 1053, 274, 16434, 13, 3166, 7136, 29889, 690, 1212, 1053, 620, 1212, 29896, 29947, 13, 3166, 7136, 29889, 2527, 10817, 1053, 22711, 2161, 13, 3166, 3667, 29879, 29889, 1272, 29918, 1885, 1053, 679, 29918, 14968, 29918, 12657, 13, 13, 13, 16680, 353, 1852, 5510, 29889, 15730, 11726, 29898, 8216, 2433, 29423, 654, 3700, 26101, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 26495, 29918, 24713, 742, 2322, 2433, 6904, 1272, 29914, 8726, 29918, 331, 487, 29914, 2492, 29879, 29914, 742, 1371, 2433, 5323, 2827, 8783, 3884, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 11618, 742, 2322, 2433, 690, 1212, 29896, 29947, 742, 1371, 2433, 5841, 15933, 3564, 10426, 29900, 29889, 29906, 29945, 470, 620, 1212, 29945, 29900, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 690, 2017, 29918, 1212, 742, 2322, 29922, 8516, 29892, 1371, 2433, 690, 2017, 7787, 363, 337, 26495, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 690, 2017, 29918, 1022, 2878, 742, 2322, 29922, 29900, 29892, 1134, 29922, 524, 29892, 1371, 2433, 690, 2017, 4256, 363, 337, 26495, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 7620, 29918, 12083, 742, 2322, 2433, 6904, 705, 5861, 29914, 742, 1371, 2433, 6508, 304, 4078, 1423, 3149, 4733, 1495, 13, 5085, 353, 13812, 29889, 5510, 29918, 5085, 580, 13, 13, 13, 1753, 620, 2017, 29918, 1212, 29918, 3207, 29898, 1212, 29892, 16370, 29918, 4299, 1125, 13, 1678, 1596, 877, 23456, 16370, 1904, 29901, 6571, 4286, 4830, 29898, 3018, 1312, 29918, 4299, 876, 13, 1678, 2106, 29918, 8977, 353, 4842, 305, 29889, 1359, 29898, 5085, 29889, 690, 2017, 29918, 1212, 29897, 13, 1678, 396, 1653, 716, 8170, 287, 21533, 393, 947, 451, 1712, 421, 5453, 17580, 13, 1678, 515, 16250, 1053, 8170, 287, 21533, 13, 1678, 716, 29918, 3859, 29918, 8977, 353, 8170, 287, 21533, 580, 13, 1678, 363, 413, 29892, 325, 297, 2106, 29918, 8977, 29889, 7076, 7295, 13, 4706, 2343, 353, 413, 7503, 29955, 29962, 13, 4706, 565, 2343, 1275, 525, 5453, 29889, 2396, 13, 9651, 1024, 353, 413, 29961, 29955, 17531, 29871, 396, 3349, 421, 5453, 17580, 13, 4706, 1683, 29901, 13, 9651, 1024, 353, 413, 13, 4706, 716, 29918, 3859, 29918, 8977, 29961, 978, 29962, 353, 325, 13, 1678, 7787, 29889, 1359, 29918, 3859, 29918, 8977, 29898, 1482, 29918, 3859, 29918, 8977, 29897, 13, 13, 1678, 736, 7787, 13, 13, 13, 1753, 7945, 7295, 13, 1678, 4078, 29918, 12083, 353, 6389, 29889, 7620, 29918, 12083, 13, 1678, 565, 451, 2897, 29889, 2084, 29889, 9933, 29898, 5085, 29889, 7620, 29918, 12083, 1125, 13, 4706, 2897, 29889, 11256, 3972, 29898, 5085, 29889, 7620, 29918, 12083, 29897, 13, 13, 1678, 1596, 877, 1359, 8783, 2023, 1495, 13, 1678, 411, 4842, 305, 29889, 1217, 29918, 5105, 7295, 13, 4706, 23466, 29892, 770, 29918, 1949, 353, 679, 29918, 14968, 29918, 12657, 29898, 16859, 29892, 6389, 29889, 26495, 29918, 24713, 29897, 13, 13, 1678, 1596, 877, 11618, 2023, 1495, 13, 1678, 4742, 353, 4842, 305, 29889, 10141, 703, 29883, 6191, 29908, 565, 274, 16434, 1839, 29887, 3746, 2033, 1683, 376, 21970, 1159, 13, 1678, 565, 6389, 29889, 11618, 1275, 525, 690, 1212, 29896, 29947, 2396, 13, 4706, 7787, 353, 620, 1212, 29896, 29947, 29898, 16859, 1839, 17987, 8497, 29918, 2311, 11287, 13, 29871, 13, 1678, 565, 6389, 29889, 690, 2017, 29918, 1212, 338, 451, 6213, 29901, 13, 4706, 1596, 877, 23456, 620, 2017, 3564, 856, 1495, 13, 4706, 7787, 353, 620, 2017, 29918, 1212, 29918, 3207, 29898, 1212, 29892, 6389, 29889, 690, 2017, 29918, 1212, 29897, 13, 29871, 13, 1678, 7787, 353, 7787, 29889, 517, 29898, 10141, 29897, 13, 13, 1678, 1596, 877, 2344, 5902, 357, 291, 2023, 1495, 13, 1678, 28770, 291, 353, 4842, 305, 29889, 15755, 29889, 29907, 2124, 5292, 14441, 29931, 2209, 580, 13, 1678, 12714, 29918, 13801, 353, 22711, 2161, 29898, 17987, 8497, 29918, 2311, 29922, 16859, 1839, 17987, 8497, 29918, 2311, 7464, 770, 1949, 29922, 1990, 29918, 1949, 467, 517, 29898, 10141, 29897, 13, 1678, 5994, 3950, 353, 5994, 29889, 26016, 29928, 4197, 10998, 7529, 2396, 7787, 29889, 16744, 580, 1118, 11117, 7529, 2396, 12714, 29918, 13801, 29889, 16744, 28296, 1402, 13, 462, 3986, 301, 29878, 29922, 16859, 1839, 11228, 29918, 29212, 7464, 19399, 29922, 16859, 1839, 29885, 2932, 398, 7464, 7688, 29918, 7099, 388, 29922, 16859, 1839, 7915, 29918, 7099, 388, 11287, 13, 13, 1678, 4236, 29918, 1022, 2878, 353, 274, 16434, 1839, 1022, 2878, 2033, 13, 1678, 1369, 29918, 1022, 2878, 353, 6389, 29889, 690, 2017, 29918, 1022, 2878, 13, 13, 1678, 7787, 29889, 14968, 580, 13, 1678, 363, 21502, 305, 297, 3464, 29898, 2962, 29918, 1022, 2878, 29892, 4236, 29918, 1022, 2878, 1125, 13, 4706, 1596, 877, 29923, 1129, 305, 26254, 6822, 29912, 1118, 9853, 29901, 8875, 4286, 4830, 29898, 1022, 2878, 29892, 4236, 29918, 1022, 2878, 29892, 274, 16434, 1839, 16175, 29918, 2311, 25901, 13, 4706, 363, 527, 3174, 29892, 11073, 297, 260, 29939, 18933, 29898, 1524, 29898, 12657, 22164, 13, 9651, 527, 3174, 353, 527, 3174, 29889, 517, 29898, 10141, 29897, 13, 9651, 11073, 353, 11073, 29889, 517, 29898, 10141, 29897, 13, 9651, 396, 6375, 13, 9651, 5680, 353, 7787, 29898, 2492, 29879, 29897, 13, 9651, 396, 1250, 7728, 13, 9651, 1962, 353, 12714, 29918, 13801, 29898, 22100, 29892, 11073, 29897, 13, 9651, 6410, 353, 28770, 291, 29898, 4905, 29892, 11073, 29897, 13, 9651, 5994, 3950, 29889, 9171, 29918, 5105, 580, 13, 9651, 6410, 29889, 1627, 1328, 580, 13, 9651, 5994, 3950, 29889, 10568, 580, 13, 308, 13, 4706, 565, 313, 1022, 2878, 1273, 29871, 29896, 29900, 1275, 29871, 29900, 322, 21502, 305, 1405, 29871, 29900, 1125, 13, 9651, 4078, 29918, 29893, 29918, 1445, 353, 6389, 29889, 11618, 718, 22868, 1022, 2878, 29918, 29915, 718, 851, 29898, 1022, 2878, 29897, 718, 22868, 29915, 718, 851, 29898, 2230, 29889, 2230, 3101, 718, 15300, 29886, 386, 29915, 13, 9651, 1596, 877, 29879, 5555, 18177, 584, 6571, 4286, 4830, 29898, 7620, 29918, 29893, 29918, 1445, 876, 13, 9651, 4842, 305, 29889, 7620, 29898, 1212, 29889, 3859, 29918, 8977, 3285, 4078, 29918, 12083, 718, 4078, 29918, 29893, 29918, 1445, 29897, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 7945, 580, 13, 268, 13, 13, 1678, 1967, 29918, 2084, 353, 376, 6904, 1272, 29914, 29947, 29955, 29900, 29906, 29906, 29889, 6173, 29908, 13, 1678, 10153, 29918, 1610, 353, 13850, 29906, 29889, 326, 949, 29898, 3027, 29918, 2084, 29892, 13850, 29906, 29889, 7833, 16310, 29918, 15032, 1955, 29897, 13, 1678, 289, 29892, 330, 29892, 364, 353, 13850, 29906, 29889, 5451, 29898, 2492, 29918, 1610, 29897, 13, 1678, 10153, 29918, 29896, 353, 13850, 29906, 29889, 14634, 4197, 29878, 29892, 330, 29892, 289, 2314, 13, 1678, 396, 11023, 29906, 29889, 326, 4294, 877, 4170, 742, 10153, 29918, 1610, 29897, 13, 1678, 13850, 29906, 29889, 326, 4294, 877, 2492, 29918, 29896, 742, 10153, 29918, 29896, 29897, 13, 1678, 13850, 29906, 29889, 10685, 2558, 29898, 29900, 29897, 13, 268, 13, 2 ]
lib2/tiktok.py
offdhymaz/wa
37
175509
from requests import Session from bs4 import BeautifulSoup import re class tiktok: def __init__(self) -> None: self.request = Session() self.url = "https://ssstik.io" self.html = self.request.get(self.url).text self.key = BeautifulSoup(self.html, "html.parser").find_all("form",attrs={"data-hx-target":"#target"})[0].get("include-vals") self.post = BeautifulSoup(self.html, "html.parser").find_all("form",attrs={"data-hx-target":"#target"})[0].get("data-hx-post") self.tt = re.search("tt\:\'(.*?)\'",self.key)[1] self.ts = re.search("ts\:([0-9]{5,15})",self.key)[1] self.header = {"content-type": "application/x-www-form-urlencoded; charset=UTF-8","hx-active-element": "submit","hx-current-url": "https://ssstik.io/","hx-request": "true","hx-target": "target","origin": "https://ssstik.io","sec-fetch-dest": "","sec-fetch-mode": "cors","sec-fetch-site": "same-origin","user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36"} def download(self, url) -> dict: data = {"id": url,"locale": "en","tt": self.tt,"ts": int(self.ts)} post = self.request.post(f"{self.url}{self.post}", headers=self.header, data=data) respon = BeautifulSoup(post.text, "html.parser") hasil = {"video":[f'{self.url}{respon.find_all("a",class_="pure-button pure-button-primary is-center u-bl dl-button download_link without_watermark")[0].get("href")}',f'{self.url}{respon.find_all("a",class_="pure-button pure-button-primary is-center u-bl dl-button download_link without_watermark_direct")[0].get("href")}'],"music":f'{respon.find_all("a",class_="pure-button pure-button-primary is-center u-bl dl-button download_link music")[0].get("href")}'} return hasil class tiktok2: def __init__(self, url) -> None: self.request = Session() self.url =url self.header = {"accept": "*/*","accept-language": "en-US,en;q=0.9,id;q=0.8","origin": "https://snaptik.app","referer": "https://snaptik.app/ID","sec-fetch-dest": None,"sec-fetch-mode": "cors","sec-fetch-site": "same-origin","user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36",} def download(self): self.request.post("https://snaptik.app/check_token.php", headers=self.header) self.bs = BeautifulSoup(self.request.post("https://snaptik.app/action-2021.php", headers=self.header, data={"url":self.url}).text, "html.parser") return [self.request,{"title":self.bs('a', attrs={"title":""})[0].text,"date":self.bs("b", attrs={"class":"blur"})[0].text,"url":list(filter(lambda x:x, map(lambda x:x["href"] if "token" in x["href"] else None, self.bs("a", attrs={"class":"abutton is-success is-fullwidth"}))))}, self.header]
[ 1, 515, 7274, 1053, 16441, 13, 3166, 24512, 29946, 1053, 25685, 29903, 1132, 13, 5215, 337, 13, 13, 1990, 260, 638, 17082, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 3827, 353, 16441, 580, 13, 4706, 1583, 29889, 2271, 268, 353, 376, 991, 597, 893, 303, 638, 29889, 601, 29908, 13, 4706, 1583, 29889, 1420, 1678, 353, 1583, 29889, 3827, 29889, 657, 29898, 1311, 29889, 2271, 467, 726, 13, 4706, 1583, 29889, 1989, 268, 353, 25685, 29903, 1132, 29898, 1311, 29889, 1420, 29892, 376, 1420, 29889, 16680, 2564, 2886, 29918, 497, 703, 689, 613, 5552, 29879, 3790, 29908, 1272, 29899, 29882, 29916, 29899, 5182, 4710, 29937, 5182, 29908, 1800, 29961, 29900, 1822, 657, 703, 2856, 29899, 791, 29879, 1159, 13, 4706, 1583, 29889, 2490, 1678, 353, 25685, 29903, 1132, 29898, 1311, 29889, 1420, 29892, 376, 1420, 29889, 16680, 2564, 2886, 29918, 497, 703, 689, 613, 5552, 29879, 3790, 29908, 1272, 29899, 29882, 29916, 29899, 5182, 4710, 29937, 5182, 29908, 1800, 29961, 29900, 1822, 657, 703, 1272, 29899, 29882, 29916, 29899, 2490, 1159, 13, 4706, 1583, 29889, 698, 418, 353, 337, 29889, 4478, 703, 698, 29905, 3583, 12215, 5575, 29973, 2144, 29915, 613, 1311, 29889, 1989, 9601, 29896, 29962, 13, 4706, 1583, 29889, 1372, 418, 353, 337, 29889, 4478, 703, 1372, 29905, 29901, 4197, 29900, 29899, 29929, 3199, 29945, 29892, 29896, 29945, 1800, 613, 1311, 29889, 1989, 9601, 29896, 29962, 13, 4706, 1583, 29889, 6672, 29871, 353, 8853, 3051, 29899, 1853, 1115, 376, 6214, 29914, 29916, 29899, 1636, 29899, 689, 29899, 2271, 26716, 29936, 17425, 29922, 10496, 29899, 29947, 3284, 29882, 29916, 29899, 4925, 29899, 5029, 1115, 376, 7892, 3284, 29882, 29916, 29899, 3784, 29899, 2271, 1115, 376, 991, 597, 893, 303, 638, 29889, 601, 29914, 3284, 29882, 29916, 29899, 3827, 1115, 376, 3009, 3284, 29882, 29916, 29899, 5182, 1115, 376, 5182, 3284, 12574, 1115, 376, 991, 597, 893, 303, 638, 29889, 601, 3284, 3471, 29899, 9155, 29899, 7854, 1115, 376, 3284, 3471, 29899, 9155, 29899, 8513, 1115, 376, 29883, 943, 3284, 3471, 29899, 9155, 29899, 2746, 1115, 376, 17642, 29899, 12574, 3284, 1792, 29899, 14748, 1115, 376, 29924, 2112, 2911, 29914, 29945, 29889, 29900, 313, 29990, 29896, 29896, 29936, 8074, 921, 29947, 29953, 29918, 29953, 29946, 29897, 12113, 3609, 13117, 29914, 29945, 29941, 29955, 29889, 29941, 29953, 313, 29968, 7020, 29892, 763, 1879, 27604, 29897, 10228, 29914, 29947, 29953, 29889, 29900, 29889, 29946, 29906, 29946, 29900, 29889, 29896, 29896, 29896, 24544, 29914, 29945, 29941, 29955, 29889, 29941, 29953, 9092, 13, 1678, 822, 5142, 29898, 1311, 29892, 3142, 29897, 1599, 9657, 29901, 13, 4706, 848, 259, 353, 8853, 333, 1115, 3142, 1699, 23337, 1115, 376, 264, 3284, 698, 1115, 1583, 29889, 698, 1699, 1372, 1115, 938, 29898, 1311, 29889, 1372, 2915, 13, 4706, 1400, 259, 353, 1583, 29889, 3827, 29889, 2490, 29898, 29888, 29908, 29912, 1311, 29889, 2271, 1157, 1311, 29889, 2490, 17671, 9066, 29922, 1311, 29889, 6672, 29892, 848, 29922, 1272, 29897, 13, 4706, 620, 1112, 353, 25685, 29903, 1132, 29898, 2490, 29889, 726, 29892, 376, 1420, 29889, 16680, 1159, 13, 4706, 756, 309, 29871, 353, 8853, 9641, 1115, 29961, 29888, 29915, 29912, 1311, 29889, 2271, 1157, 690, 1112, 29889, 2886, 29918, 497, 703, 29874, 613, 1990, 29918, 543, 29886, 545, 29899, 3092, 8296, 29899, 3092, 29899, 16072, 338, 29899, 5064, 318, 29899, 2204, 270, 29880, 29899, 3092, 5142, 29918, 2324, 1728, 29918, 29893, 271, 837, 935, 1159, 29961, 29900, 1822, 657, 703, 12653, 1159, 29913, 742, 29888, 29915, 29912, 1311, 29889, 2271, 1157, 690, 1112, 29889, 2886, 29918, 497, 703, 29874, 613, 1990, 29918, 543, 29886, 545, 29899, 3092, 8296, 29899, 3092, 29899, 16072, 338, 29899, 5064, 318, 29899, 2204, 270, 29880, 29899, 3092, 5142, 29918, 2324, 1728, 29918, 29893, 271, 837, 935, 29918, 11851, 1159, 29961, 29900, 1822, 657, 703, 12653, 1159, 29913, 7464, 29908, 23596, 1115, 29888, 29915, 29912, 690, 1112, 29889, 2886, 29918, 497, 703, 29874, 613, 1990, 29918, 543, 29886, 545, 29899, 3092, 8296, 29899, 3092, 29899, 16072, 338, 29899, 5064, 318, 29899, 2204, 270, 29880, 29899, 3092, 5142, 29918, 2324, 4696, 1159, 29961, 29900, 1822, 657, 703, 12653, 1159, 10162, 29913, 13, 4706, 736, 756, 309, 13, 1990, 260, 638, 17082, 29906, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3142, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 3827, 353, 16441, 580, 13, 4706, 1583, 29889, 2271, 353, 2271, 13, 4706, 1583, 29889, 6672, 29871, 353, 8853, 16044, 1115, 376, 3877, 29930, 3284, 16044, 29899, 11675, 1115, 376, 264, 29899, 3308, 29892, 264, 29936, 29939, 29922, 29900, 29889, 29929, 29892, 333, 29936, 29939, 29922, 29900, 29889, 29947, 3284, 12574, 1115, 376, 991, 597, 29879, 1056, 415, 638, 29889, 932, 3284, 20275, 261, 1115, 376, 991, 597, 29879, 1056, 415, 638, 29889, 932, 29914, 1367, 3284, 3471, 29899, 9155, 29899, 7854, 1115, 6213, 1699, 3471, 29899, 9155, 29899, 8513, 1115, 376, 29883, 943, 3284, 3471, 29899, 9155, 29899, 2746, 1115, 376, 17642, 29899, 12574, 3284, 1792, 29899, 14748, 1115, 376, 29924, 2112, 2911, 29914, 29945, 29889, 29900, 313, 29990, 29896, 29896, 29936, 8074, 921, 29947, 29953, 29918, 29953, 29946, 29897, 12113, 3609, 13117, 29914, 29945, 29941, 29955, 29889, 29941, 29953, 313, 29968, 7020, 29892, 763, 1879, 27604, 29897, 10228, 29914, 29947, 29953, 29889, 29900, 29889, 29946, 29906, 29946, 29900, 29889, 29896, 29896, 29896, 24544, 29914, 29945, 29941, 29955, 29889, 29941, 29953, 613, 29913, 13, 1678, 822, 5142, 29898, 1311, 1125, 13, 4706, 1583, 29889, 3827, 29889, 2490, 703, 991, 597, 29879, 1056, 415, 638, 29889, 932, 29914, 3198, 29918, 6979, 29889, 1961, 613, 9066, 29922, 1311, 29889, 6672, 29897, 13, 4706, 1583, 29889, 5824, 353, 25685, 29903, 1132, 29898, 1311, 29889, 3827, 29889, 2490, 703, 991, 597, 29879, 1056, 415, 638, 29889, 932, 29914, 2467, 29899, 29906, 29900, 29906, 29896, 29889, 1961, 613, 9066, 29922, 1311, 29889, 6672, 29892, 848, 3790, 29908, 2271, 1115, 1311, 29889, 2271, 7690, 726, 29892, 376, 1420, 29889, 16680, 1159, 13, 4706, 736, 518, 1311, 29889, 3827, 29892, 6377, 3257, 1115, 1311, 29889, 5824, 877, 29874, 742, 12421, 29879, 3790, 29908, 3257, 4710, 29908, 1800, 29961, 29900, 1822, 726, 1699, 1256, 1115, 1311, 29889, 5824, 703, 29890, 613, 12421, 29879, 3790, 29908, 1990, 4710, 2204, 332, 29908, 1800, 29961, 29900, 1822, 726, 1699, 2271, 1115, 1761, 29898, 4572, 29898, 2892, 921, 29901, 29916, 29892, 2910, 29898, 2892, 921, 29901, 29916, 3366, 12653, 3108, 565, 376, 6979, 29908, 297, 921, 3366, 12653, 3108, 1683, 6213, 29892, 1583, 29889, 5824, 703, 29874, 613, 12421, 29879, 3790, 29908, 1990, 4710, 370, 1851, 338, 29899, 8698, 338, 29899, 8159, 2103, 9092, 13697, 1118, 1583, 29889, 6672, 29962, 2 ]
nterm.py
KorfLab/qalpha
0
130968
<reponame>KorfLab/qalpha import os import sys for genome in os.listdir(sys.argv[1]): print(f'{sys.argv[1]}/{genome}') ma = [] with open(f'{sys.argv[1]}/{genome}') as fp: for line in fp.readlines(): if not line.startswith('>'): ma.append(line.rstrip()) slen = len(ma[0]) for seq in ma: print(seq[:120]) print()
[ 1, 529, 276, 1112, 420, 29958, 29968, 4877, 28632, 29914, 29939, 2312, 13, 5215, 2897, 13, 5215, 10876, 13, 13, 1454, 2531, 608, 297, 2897, 29889, 1761, 3972, 29898, 9675, 29889, 19218, 29961, 29896, 29962, 1125, 13, 12, 2158, 29898, 29888, 29915, 29912, 9675, 29889, 19218, 29961, 29896, 29962, 6822, 29912, 1885, 608, 29913, 1495, 13, 12, 655, 353, 5159, 13, 12, 2541, 1722, 29898, 29888, 29915, 29912, 9675, 29889, 19218, 29961, 29896, 29962, 6822, 29912, 1885, 608, 29913, 1495, 408, 285, 29886, 29901, 13, 12, 12, 1454, 1196, 297, 285, 29886, 29889, 949, 9012, 7295, 13, 12, 12, 12, 361, 451, 1196, 29889, 27382, 2541, 877, 16299, 1125, 13, 12, 12, 12, 12, 655, 29889, 4397, 29898, 1220, 29889, 29878, 17010, 3101, 13, 12, 29879, 2435, 353, 7431, 29898, 655, 29961, 29900, 2314, 13, 12, 1454, 19359, 297, 611, 29901, 1596, 29898, 11762, 7503, 29896, 29906, 29900, 2314, 13, 12, 2158, 580, 13, 13, 13, 2 ]
src/Hero.py
Astayonix/SailorMoonRPG
0
1601901
<filename>src/Hero.py #!/usr/bin/python class Hero(object): def __init__(self, Name): self.name = Name
[ 1, 529, 9507, 29958, 4351, 29914, 29950, 1489, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 29914, 4691, 13, 13, 1990, 22167, 29898, 3318, 1125, 13, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 4408, 1125, 13, 4706, 1583, 29889, 978, 353, 4408, 13, 2 ]
ooi_harvester/utils/parser.py
ooi-data/ooi_harvester
4
37507
import os import datetime import math import traceback from typing import List import requests from loguru import logger from lxml import etree from siphon.catalog import TDSCatalog from dask.utils import memory_repr import numpy as np from dateutil import parser from ooi_harvester.settings import harvest_settings def estimate_size_and_time(raw): m = "" if "requestUUID" in raw: est_size = raw["sizeCalculation"] / 1024 ** 2 size_txt = "MB" if (est_size / 1024) >= 1.0: est_size = est_size / 1024 size_txt = "GB" est_time = raw["timeCalculation"] time_txt = "Seconds" if (est_time / 60) >= 1.0 and (est_time / 60) < 60.0: est_time = math.floor(est_time / 60) time_txt = "Minutes" if est_time == 1: time_txt = "Minute" elif (est_time / 60) >= 60.0: est_time = math.floor(est_time / 60 ** 2) time_txt = "Hours" if est_time == 1: time_txt = "Hour" m = f""" Estimated File size: {est_size:.4} {size_txt} Estimated Time: {est_time} {time_txt} """ elif "message" in raw: m = f""" No estimate calculated. {raw['message']['status']} """ return m def parse_uframe_response(resp): if "allURLs" in resp: return { "request_id": resp["requestUUID"], "thredds_catalog": resp["allURLs"][0], "download_catalog": resp["allURLs"][1], "status_url": resp["allURLs"][1] + "/status.txt", "data_size": resp["sizeCalculation"], "estimated_time": resp["timeCalculation"], "units": { "data_size": "bytes", "estimated_time": "seconds", "request_dt": "UTC", }, "request_dt": datetime.datetime.utcnow().isoformat(), } logger.warning(resp) return None def param_change(name): """ Method to accomodate for param change. https://oceanobservatories.org/renaming-data-stream-parameters/ """ if name == 'pressure_depth': return 'pressure' else: return name def parse_param_dict(param_dict): unit = None if "unit" in param_dict: if isinstance(param_dict["unit"], dict): if "value" in param_dict["unit"]: unit = param_dict["unit"]["value"] product_type = None if "data_product_type" in param_dict: if isinstance(param_dict["data_product_type"], dict): if "value" in param_dict["data_product_type"]: product_type = param_dict["data_product_type"]["value"] return { "pid": param_dict["id"], "reference_designator": param_change(param_dict["name"]), "parameter_name": param_dict["display_name"], "netcdf_name": param_dict["netcdf_name"], "standard_name": param_dict["standard_name"], "description": param_dict["description"], "unit": unit, "data_level": param_dict['data_level'], "data_product_type": product_type, "data_product_identifier": param_dict["data_product_identifier"], "last_updated": datetime.datetime.utcnow().isoformat(), } def parse_global_range_dataframe(global_ranges): """Cleans up the global ranges dataframe""" global_df = global_ranges[global_ranges.columns[:-3]] global_df.columns = [ "reference_designator", "parameter_id_r", "parameter_id_t", "global_range_min", "global_range_max", "data_level", "units", ] return global_df def get_bytes(value, unit): bytes_map = { 'bytes': 1, 'Kbytes': 1024 ** 1, 'Mbytes': 1024 ** 2, 'Gbytes': 1024 ** 3, } return value * bytes_map[unit] def parse_dataset_element(d, namespace): dataset_dict = {} for i in d.getiterator(): clean_tag = i.tag.replace('{' + namespace + '}', '') if clean_tag == 'dataset': dataset_dict = dict(**i.attrib) if clean_tag == 'dataSize': dataset_dict = dict( data_size=float(i.text), **i.attrib, **dataset_dict ) dataset_dict = dict( size_bytes=get_bytes( dataset_dict['data_size'], dataset_dict['units'] ), **dataset_dict, ) if clean_tag == 'date': dataset_dict = dict(date_modified=i.text, **dataset_dict) return dataset_dict def parse_response_thredds(response): stream_name = response['stream']['table_name'] catalog = TDSCatalog( response['result']['thredds_catalog'].replace('.html', '.xml') ) catalog_dict = { 'stream_name': stream_name, 'catalog_url': catalog.catalog_url, 'base_tds_url': catalog.base_tds_url, 'async_url': response['result']['download_catalog'], } req = requests.get(catalog.catalog_url) catalog_root = etree.fromstring(req.content) namespaces = {} for k, v in catalog_root.nsmap.items(): if k is None: namespaces['cat'] = v else: namespaces[k] = v dataset_elements = catalog_root.xpath( '/cat:catalog/cat:dataset/cat:dataset', namespaces=namespaces ) datasets = [ parse_dataset_element(i, namespaces['cat']) for i in dataset_elements ] catalog_dict['datasets'] = datasets return catalog_dict def filter_and_parse_datasets(cat): import re stream_cat = cat.copy() name = stream_cat['stream_name'] provenance_files = [] filtered_datasets = [] for d in stream_cat['datasets']: m = re.search( r'(deployment(\d{4})_(%s)_(\d{4}\d{2}\d{2}T\d+.\d+)-(\d{4}\d{2}\d{2}T\d+.\d+).nc)' # noqa % (name), str(d['name']), ) prov = re.search( r'(deployment(\d{4})_(%s)_aggregate_provenance.json)' % (name), str(d['name']), ) if m: _, dep_num, _, start, end = m.groups() dataset = dict( deployment=int(dep_num), start_ts=start, end_ts=end, **d ) filtered_datasets.append(dataset) elif prov: _, dep_num, _ = prov.groups() provenance = dict(deployment=int(dep_num), **d) provenance_files.append(provenance) total_bytes = np.sum([d['size_bytes'] for d in filtered_datasets]) stream_cat['datasets'] = filtered_datasets stream_cat['provenance'] = provenance_files stream_cat['total_data_size'] = memory_repr(total_bytes) stream_cat['total_data_bytes'] = total_bytes return stream_cat def filter_datasets_by_time( datasets: List[dict], start_dt: np.datetime64, end_dt: np.datetime64 ) -> List[dict]: """ Filters datasets collection based on the given start and end datetime. Each dataset dictionary in the collection MUST have `start_ts` and `end_ts`key in it. Parameters ---------- datasets : list The datasets collection to be filtered. start_dt : np.datetime64 The start datetime desired. end_dt : np.datetime64 The end datetime desired. Returns ------- list The filtered datasets collection """ filtered_datasets = [] for d in datasets: start_d = np.datetime64(parser.parse(d['start_ts'])) end_d = np.datetime64(parser.parse(d['end_ts'])) if start_d >= start_dt.astype( start_d.dtype ) and end_d <= end_dt.astype(start_d.dtype): filtered_datasets.append(d) return filtered_datasets def setup_etl(stream, source='ooinet', target_bucket='s3://ooi-data'): name = stream['stream_name'] harvest_location = os.path.expanduser('~/.ooi-harvester') # Setup Local temp folder for netcdf temp_fold = os.path.join(harvest_location, name) if not os.path.exists(os.path.dirname(temp_fold)): os.mkdir(os.path.dirname(temp_fold)) if not os.path.exists(temp_fold): os.mkdir(temp_fold) # Setup S3 Bucket temp_s3_fold = f"s3://temp-ooi-data/{name}.zarr" final_s3_fold = f"{target_bucket}/{name}" if source == 'ooinet': retrieved_dt = stream['result']['request_dt'] else: retrieved_dt = stream['retrieved_dt'] del stream['retrieved_dt'] return dict( temp_fold=temp_fold, temp_bucket=temp_s3_fold, final_bucket=final_s3_fold, retrieved_dt=retrieved_dt, **stream, ) def seconds_to_date(num): start_dt = datetime.datetime(1900, 1, 1) return start_dt + datetime.timedelta(seconds=num) def get_storage_options(path): if path.startswith("s3://"): return harvest_settings.storage_options.aws.dict() def get_items(keys, orig_dict): new_dict = {} for k, v in orig_dict.items(): if k in keys: new_dict[k] = v return new_dict def rename_item(old_key, new_key, orig_dict): new_dict = orig_dict.copy() if old_key in new_dict: new_dict.update({new_key: new_dict[old_key]}) del new_dict[old_key] return new_dict def parse_exception(exception): exc_dict = { 'type': type(exception).__name__, 'value': str(exception), 'traceback': "".join( traceback.format_exception( type(exception), exception, exception.__traceback__ ) ), } return exc_dict
[ 1, 1053, 2897, 13, 5215, 12865, 13, 5215, 5844, 13, 5215, 9637, 1627, 13, 3166, 19229, 1053, 2391, 13, 13, 5215, 7274, 13, 3166, 1480, 20144, 1053, 17927, 13, 3166, 301, 3134, 1053, 634, 929, 13, 3166, 1354, 17607, 29889, 28045, 1053, 323, 29928, 7187, 3968, 13, 3166, 270, 1278, 29889, 13239, 1053, 3370, 29918, 276, 558, 13, 5215, 12655, 408, 7442, 13, 3166, 2635, 4422, 1053, 13812, 13, 13, 3166, 288, 7768, 29918, 8222, 29894, 4156, 29889, 11027, 1053, 4023, 10147, 29918, 11027, 13, 13, 13, 1753, 12678, 29918, 2311, 29918, 392, 29918, 2230, 29898, 1610, 1125, 13, 1678, 286, 353, 5124, 13, 1678, 565, 376, 3827, 29965, 11150, 29908, 297, 10650, 29901, 13, 4706, 707, 29918, 2311, 353, 10650, 3366, 2311, 27065, 362, 3108, 847, 29871, 29896, 29900, 29906, 29946, 3579, 29871, 29906, 13, 4706, 2159, 29918, 3945, 353, 376, 9486, 29908, 13, 4706, 565, 313, 342, 29918, 2311, 847, 29871, 29896, 29900, 29906, 29946, 29897, 6736, 29871, 29896, 29889, 29900, 29901, 13, 9651, 707, 29918, 2311, 353, 707, 29918, 2311, 847, 29871, 29896, 29900, 29906, 29946, 13, 9651, 2159, 29918, 3945, 353, 376, 7210, 29908, 13, 13, 4706, 707, 29918, 2230, 353, 10650, 3366, 2230, 27065, 362, 3108, 13, 4706, 931, 29918, 3945, 353, 376, 27535, 29908, 13, 4706, 565, 313, 342, 29918, 2230, 847, 29871, 29953, 29900, 29897, 6736, 29871, 29896, 29889, 29900, 322, 313, 342, 29918, 2230, 847, 29871, 29953, 29900, 29897, 529, 29871, 29953, 29900, 29889, 29900, 29901, 13, 9651, 707, 29918, 2230, 353, 5844, 29889, 14939, 29898, 342, 29918, 2230, 847, 29871, 29953, 29900, 29897, 13, 9651, 931, 29918, 3945, 353, 376, 8140, 2667, 29908, 13, 9651, 565, 707, 29918, 2230, 1275, 29871, 29896, 29901, 13, 18884, 931, 29918, 3945, 353, 376, 8140, 1082, 29908, 13, 4706, 25342, 313, 342, 29918, 2230, 847, 29871, 29953, 29900, 29897, 6736, 29871, 29953, 29900, 29889, 29900, 29901, 13, 9651, 707, 29918, 2230, 353, 5844, 29889, 14939, 29898, 342, 29918, 2230, 847, 29871, 29953, 29900, 3579, 29871, 29906, 29897, 13, 9651, 931, 29918, 3945, 353, 376, 29950, 2470, 29908, 13, 9651, 565, 707, 29918, 2230, 1275, 29871, 29896, 29901, 13, 18884, 931, 29918, 3945, 353, 376, 29950, 473, 29908, 13, 4706, 286, 353, 285, 15945, 29908, 13, 4706, 2661, 326, 630, 3497, 2159, 29901, 426, 342, 29918, 2311, 29901, 29889, 29946, 29913, 426, 2311, 29918, 3945, 29913, 13, 4706, 2661, 326, 630, 5974, 29901, 426, 342, 29918, 2230, 29913, 426, 2230, 29918, 3945, 29913, 13, 4706, 9995, 13, 1678, 25342, 376, 4906, 29908, 297, 10650, 29901, 13, 4706, 286, 353, 285, 15945, 29908, 13, 4706, 1939, 12678, 12833, 29889, 13, 4706, 426, 1610, 1839, 4906, 16215, 4882, 2033, 29913, 13, 4706, 9995, 13, 1678, 736, 286, 13, 13, 13, 1753, 6088, 29918, 1137, 3128, 29918, 5327, 29898, 13713, 1125, 13, 1678, 565, 376, 497, 4219, 29879, 29908, 297, 4613, 29901, 13, 4706, 736, 426, 13, 9651, 376, 3827, 29918, 333, 1115, 4613, 3366, 3827, 29965, 11150, 12436, 13, 9651, 376, 386, 1127, 6289, 29918, 28045, 1115, 4613, 3366, 497, 4219, 29879, 3108, 29961, 29900, 1402, 13, 9651, 376, 10382, 29918, 28045, 1115, 4613, 3366, 497, 4219, 29879, 3108, 29961, 29896, 1402, 13, 9651, 376, 4882, 29918, 2271, 1115, 4613, 3366, 497, 4219, 29879, 3108, 29961, 29896, 29962, 718, 5591, 4882, 29889, 3945, 613, 13, 9651, 376, 1272, 29918, 2311, 1115, 4613, 3366, 2311, 27065, 362, 12436, 13, 9651, 376, 342, 326, 630, 29918, 2230, 1115, 4613, 3366, 2230, 27065, 362, 12436, 13, 9651, 376, 348, 1169, 1115, 426, 13, 18884, 376, 1272, 29918, 2311, 1115, 376, 13193, 613, 13, 18884, 376, 342, 326, 630, 29918, 2230, 1115, 376, 23128, 613, 13, 18884, 376, 3827, 29918, 6008, 1115, 376, 26913, 613, 13, 9651, 2981, 13, 9651, 376, 3827, 29918, 6008, 1115, 12865, 29889, 12673, 29889, 329, 29883, 3707, 2141, 10718, 4830, 3285, 13, 4706, 500, 13, 1678, 17927, 29889, 27392, 29898, 13713, 29897, 13, 1678, 736, 6213, 13, 13, 13, 1753, 1828, 29918, 3167, 29898, 978, 1125, 13, 1678, 9995, 13, 1678, 8108, 304, 7954, 397, 403, 363, 1828, 1735, 29889, 13, 1678, 2045, 597, 29877, 11956, 26739, 1061, 583, 29889, 990, 29914, 1267, 11500, 29899, 1272, 29899, 5461, 29899, 16744, 29914, 13, 1678, 9995, 13, 13, 1678, 565, 1024, 1275, 525, 2139, 545, 29918, 19488, 2396, 13, 4706, 736, 525, 2139, 545, 29915, 13, 1678, 1683, 29901, 13, 4706, 736, 1024, 13, 13, 13, 1753, 6088, 29918, 3207, 29918, 8977, 29898, 3207, 29918, 8977, 1125, 13, 1678, 5190, 353, 6213, 13, 1678, 565, 376, 5441, 29908, 297, 1828, 29918, 8977, 29901, 13, 4706, 565, 338, 8758, 29898, 3207, 29918, 8977, 3366, 5441, 12436, 9657, 1125, 13, 9651, 565, 376, 1767, 29908, 297, 1828, 29918, 8977, 3366, 5441, 3108, 29901, 13, 18884, 5190, 353, 1828, 29918, 8977, 3366, 5441, 3108, 3366, 1767, 3108, 13, 1678, 3234, 29918, 1853, 353, 6213, 13, 1678, 565, 376, 1272, 29918, 4704, 29918, 1853, 29908, 297, 1828, 29918, 8977, 29901, 13, 4706, 565, 338, 8758, 29898, 3207, 29918, 8977, 3366, 1272, 29918, 4704, 29918, 1853, 12436, 9657, 1125, 13, 9651, 565, 376, 1767, 29908, 297, 1828, 29918, 8977, 3366, 1272, 29918, 4704, 29918, 1853, 3108, 29901, 13, 18884, 3234, 29918, 1853, 353, 1828, 29918, 8977, 3366, 1272, 29918, 4704, 29918, 1853, 3108, 3366, 1767, 3108, 13, 1678, 736, 426, 13, 4706, 376, 5935, 1115, 1828, 29918, 8977, 3366, 333, 12436, 13, 4706, 376, 5679, 29918, 13892, 1061, 1115, 1828, 29918, 3167, 29898, 3207, 29918, 8977, 3366, 978, 3108, 511, 13, 4706, 376, 15501, 29918, 978, 1115, 1828, 29918, 8977, 3366, 4990, 29918, 978, 12436, 13, 4706, 376, 1212, 29883, 2176, 29918, 978, 1115, 1828, 29918, 8977, 3366, 1212, 29883, 2176, 29918, 978, 12436, 13, 4706, 376, 15770, 29918, 978, 1115, 1828, 29918, 8977, 3366, 15770, 29918, 978, 12436, 13, 4706, 376, 8216, 1115, 1828, 29918, 8977, 3366, 8216, 12436, 13, 4706, 376, 5441, 1115, 5190, 29892, 13, 4706, 376, 1272, 29918, 5563, 1115, 1828, 29918, 8977, 1839, 1272, 29918, 5563, 7464, 13, 4706, 376, 1272, 29918, 4704, 29918, 1853, 1115, 3234, 29918, 1853, 29892, 13, 4706, 376, 1272, 29918, 4704, 29918, 25378, 1115, 1828, 29918, 8977, 3366, 1272, 29918, 4704, 29918, 25378, 12436, 13, 4706, 376, 4230, 29918, 21402, 1115, 12865, 29889, 12673, 29889, 329, 29883, 3707, 2141, 10718, 4830, 3285, 13, 1678, 500, 13, 13, 13, 1753, 6088, 29918, 10945, 29918, 3881, 29918, 1272, 2557, 29898, 10945, 29918, 29878, 6916, 1125, 13, 1678, 9995, 29907, 25210, 701, 278, 5534, 20238, 12205, 15945, 29908, 13, 1678, 5534, 29918, 2176, 353, 5534, 29918, 29878, 6916, 29961, 10945, 29918, 29878, 6916, 29889, 13099, 7503, 29899, 29941, 5262, 13, 1678, 5534, 29918, 2176, 29889, 13099, 353, 518, 13, 4706, 376, 5679, 29918, 13892, 1061, 613, 13, 4706, 376, 15501, 29918, 333, 29918, 29878, 613, 13, 4706, 376, 15501, 29918, 333, 29918, 29873, 613, 13, 4706, 376, 10945, 29918, 3881, 29918, 1195, 613, 13, 4706, 376, 10945, 29918, 3881, 29918, 3317, 613, 13, 4706, 376, 1272, 29918, 5563, 613, 13, 4706, 376, 348, 1169, 613, 13, 1678, 4514, 13, 1678, 736, 5534, 29918, 2176, 13, 13, 13, 1753, 679, 29918, 13193, 29898, 1767, 29892, 5190, 1125, 13, 1678, 6262, 29918, 1958, 353, 426, 13, 4706, 525, 13193, 2396, 29871, 29896, 29892, 13, 4706, 525, 29968, 13193, 2396, 29871, 29896, 29900, 29906, 29946, 3579, 29871, 29896, 29892, 13, 4706, 525, 29924, 13193, 2396, 29871, 29896, 29900, 29906, 29946, 3579, 29871, 29906, 29892, 13, 4706, 525, 29954, 13193, 2396, 29871, 29896, 29900, 29906, 29946, 3579, 29871, 29941, 29892, 13, 1678, 500, 13, 1678, 736, 995, 334, 6262, 29918, 1958, 29961, 5441, 29962, 13, 13, 13, 1753, 6088, 29918, 24713, 29918, 5029, 29898, 29881, 29892, 7397, 1125, 13, 1678, 8783, 29918, 8977, 353, 6571, 13, 1678, 363, 474, 297, 270, 29889, 657, 17609, 7295, 13, 4706, 5941, 29918, 4039, 353, 474, 29889, 4039, 29889, 6506, 877, 10998, 718, 7397, 718, 525, 29913, 742, 27255, 13, 4706, 565, 5941, 29918, 4039, 1275, 525, 24713, 2396, 13, 9651, 8783, 29918, 8977, 353, 9657, 29898, 1068, 29875, 29889, 1131, 1091, 29897, 13, 13, 4706, 565, 5941, 29918, 4039, 1275, 525, 1272, 3505, 2396, 13, 9651, 8783, 29918, 8977, 353, 9657, 29898, 13, 18884, 848, 29918, 2311, 29922, 7411, 29898, 29875, 29889, 726, 511, 3579, 29875, 29889, 1131, 1091, 29892, 3579, 24713, 29918, 8977, 13, 9651, 1723, 13, 9651, 8783, 29918, 8977, 353, 9657, 29898, 13, 18884, 2159, 29918, 13193, 29922, 657, 29918, 13193, 29898, 13, 462, 1678, 8783, 29918, 8977, 1839, 1272, 29918, 2311, 7464, 8783, 29918, 8977, 1839, 348, 1169, 2033, 13, 18884, 10353, 13, 18884, 3579, 24713, 29918, 8977, 29892, 13, 9651, 1723, 13, 13, 4706, 565, 5941, 29918, 4039, 1275, 525, 1256, 2396, 13, 9651, 8783, 29918, 8977, 353, 9657, 29898, 1256, 29918, 1545, 2164, 29922, 29875, 29889, 726, 29892, 3579, 24713, 29918, 8977, 29897, 13, 1678, 736, 8783, 29918, 8977, 13, 13, 13, 1753, 6088, 29918, 5327, 29918, 386, 1127, 6289, 29898, 5327, 1125, 13, 1678, 4840, 29918, 978, 353, 2933, 1839, 5461, 16215, 2371, 29918, 978, 2033, 13, 1678, 16653, 353, 323, 29928, 7187, 3968, 29898, 13, 4706, 2933, 1839, 2914, 16215, 386, 1127, 6289, 29918, 28045, 13359, 6506, 12839, 1420, 742, 15300, 3134, 1495, 13, 1678, 1723, 13, 1678, 16653, 29918, 8977, 353, 426, 13, 4706, 525, 5461, 29918, 978, 2396, 4840, 29918, 978, 29892, 13, 4706, 525, 28045, 29918, 2271, 2396, 16653, 29889, 28045, 29918, 2271, 29892, 13, 4706, 525, 3188, 29918, 1594, 29879, 29918, 2271, 2396, 16653, 29889, 3188, 29918, 1594, 29879, 29918, 2271, 29892, 13, 4706, 525, 12674, 29918, 2271, 2396, 2933, 1839, 2914, 16215, 10382, 29918, 28045, 7464, 13, 1678, 500, 13, 1678, 12428, 353, 7274, 29889, 657, 29898, 28045, 29889, 28045, 29918, 2271, 29897, 13, 1678, 16653, 29918, 4632, 353, 634, 929, 29889, 3166, 1807, 29898, 7971, 29889, 3051, 29897, 13, 13, 1678, 2983, 22459, 353, 6571, 13, 1678, 363, 413, 29892, 325, 297, 16653, 29918, 4632, 29889, 1983, 1958, 29889, 7076, 7295, 13, 4706, 565, 413, 338, 6213, 29901, 13, 9651, 2983, 22459, 1839, 4117, 2033, 353, 325, 13, 4706, 1683, 29901, 13, 9651, 2983, 22459, 29961, 29895, 29962, 353, 325, 13, 1678, 8783, 29918, 17664, 353, 16653, 29918, 4632, 29889, 23635, 29898, 13, 4706, 8207, 4117, 29901, 28045, 29914, 4117, 29901, 24713, 29914, 4117, 29901, 24713, 742, 2983, 22459, 29922, 7039, 22459, 13, 1678, 1723, 13, 1678, 20035, 353, 518, 13, 4706, 6088, 29918, 24713, 29918, 5029, 29898, 29875, 29892, 2983, 22459, 1839, 4117, 11287, 363, 474, 297, 8783, 29918, 17664, 13, 1678, 4514, 13, 1678, 16653, 29918, 8977, 1839, 14538, 1691, 2033, 353, 20035, 13, 13, 1678, 736, 16653, 29918, 8977, 13, 13, 13, 1753, 4175, 29918, 392, 29918, 5510, 29918, 14538, 1691, 29898, 4117, 1125, 13, 1678, 1053, 337, 13, 13, 1678, 4840, 29918, 4117, 353, 6635, 29889, 8552, 580, 13, 1678, 1024, 353, 4840, 29918, 4117, 1839, 5461, 29918, 978, 2033, 13, 1678, 16413, 749, 29918, 5325, 353, 5159, 13, 1678, 22289, 29918, 14538, 1691, 353, 5159, 13, 1678, 363, 270, 297, 4840, 29918, 4117, 1839, 14538, 1691, 2033, 29901, 13, 4706, 286, 353, 337, 29889, 4478, 29898, 13, 9651, 364, 12215, 16519, 358, 1194, 29881, 29912, 29946, 1800, 23538, 29995, 29879, 20344, 1194, 29881, 29912, 29946, 1012, 29881, 29912, 29906, 1012, 29881, 29912, 29906, 29913, 29911, 29905, 29881, 29974, 7790, 29881, 29974, 6817, 1194, 29881, 29912, 29946, 1012, 29881, 29912, 29906, 1012, 29881, 29912, 29906, 29913, 29911, 29905, 29881, 29974, 7790, 29881, 29974, 467, 17608, 16029, 29871, 396, 694, 25621, 13, 9651, 1273, 313, 978, 511, 13, 9651, 851, 29898, 29881, 1839, 978, 2033, 511, 13, 4706, 1723, 13, 4706, 1326, 353, 337, 29889, 4478, 29898, 13, 9651, 364, 12215, 16519, 358, 1194, 29881, 29912, 29946, 1800, 23538, 29995, 29879, 20344, 26193, 403, 29918, 771, 854, 749, 29889, 3126, 16029, 1273, 313, 978, 511, 13, 9651, 851, 29898, 29881, 1839, 978, 2033, 511, 13, 4706, 1723, 13, 4706, 565, 286, 29901, 13, 9651, 17117, 1401, 29918, 1949, 29892, 17117, 1369, 29892, 1095, 353, 286, 29889, 13155, 580, 13, 9651, 8783, 353, 9657, 29898, 13, 18884, 18209, 29922, 524, 29898, 2716, 29918, 1949, 511, 1369, 29918, 1372, 29922, 2962, 29892, 1095, 29918, 1372, 29922, 355, 29892, 3579, 29881, 13, 9651, 1723, 13, 9651, 22289, 29918, 14538, 1691, 29889, 4397, 29898, 24713, 29897, 13, 4706, 25342, 1326, 29901, 13, 9651, 17117, 1401, 29918, 1949, 29892, 903, 353, 1326, 29889, 13155, 580, 13, 9651, 16413, 749, 353, 9657, 29898, 16519, 358, 29922, 524, 29898, 2716, 29918, 1949, 511, 3579, 29881, 29897, 13, 9651, 16413, 749, 29918, 5325, 29889, 4397, 29898, 771, 854, 749, 29897, 13, 13, 1678, 3001, 29918, 13193, 353, 7442, 29889, 2083, 4197, 29881, 1839, 2311, 29918, 13193, 2033, 363, 270, 297, 22289, 29918, 14538, 1691, 2314, 13, 1678, 4840, 29918, 4117, 1839, 14538, 1691, 2033, 353, 22289, 29918, 14538, 1691, 13, 1678, 4840, 29918, 4117, 1839, 771, 854, 749, 2033, 353, 16413, 749, 29918, 5325, 13, 1678, 4840, 29918, 4117, 1839, 7827, 29918, 1272, 29918, 2311, 2033, 353, 3370, 29918, 276, 558, 29898, 7827, 29918, 13193, 29897, 13, 1678, 4840, 29918, 4117, 1839, 7827, 29918, 1272, 29918, 13193, 2033, 353, 3001, 29918, 13193, 13, 1678, 736, 4840, 29918, 4117, 13, 13, 13, 1753, 4175, 29918, 14538, 1691, 29918, 1609, 29918, 2230, 29898, 13, 1678, 20035, 29901, 2391, 29961, 8977, 1402, 1369, 29918, 6008, 29901, 7442, 29889, 12673, 29953, 29946, 29892, 1095, 29918, 6008, 29901, 7442, 29889, 12673, 29953, 29946, 13, 29897, 1599, 2391, 29961, 8977, 5387, 13, 1678, 9995, 13, 1678, 2514, 2153, 20035, 4333, 2729, 373, 278, 2183, 1369, 322, 1095, 12865, 29889, 13, 13, 1678, 7806, 8783, 8600, 297, 278, 4333, 341, 17321, 505, 13, 1678, 421, 2962, 29918, 1372, 29952, 322, 421, 355, 29918, 1372, 29952, 1989, 297, 372, 29889, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 20035, 584, 1051, 13, 4706, 450, 20035, 4333, 304, 367, 22289, 29889, 13, 1678, 1369, 29918, 6008, 584, 7442, 29889, 12673, 29953, 29946, 13, 4706, 450, 1369, 12865, 7429, 29889, 13, 1678, 1095, 29918, 6008, 584, 7442, 29889, 12673, 29953, 29946, 13, 4706, 450, 1095, 12865, 7429, 29889, 13, 13, 1678, 16969, 13, 1678, 448, 22158, 13, 1678, 1051, 13, 4706, 450, 22289, 20035, 4333, 13, 13, 1678, 9995, 13, 1678, 22289, 29918, 14538, 1691, 353, 5159, 13, 1678, 363, 270, 297, 20035, 29901, 13, 4706, 1369, 29918, 29881, 353, 7442, 29889, 12673, 29953, 29946, 29898, 16680, 29889, 5510, 29898, 29881, 1839, 2962, 29918, 1372, 25901, 13, 4706, 1095, 29918, 29881, 353, 7442, 29889, 12673, 29953, 29946, 29898, 16680, 29889, 5510, 29898, 29881, 1839, 355, 29918, 1372, 25901, 13, 4706, 565, 1369, 29918, 29881, 6736, 1369, 29918, 6008, 29889, 579, 668, 29898, 13, 9651, 1369, 29918, 29881, 29889, 29881, 1853, 13, 4706, 1723, 322, 1095, 29918, 29881, 5277, 1095, 29918, 6008, 29889, 579, 668, 29898, 2962, 29918, 29881, 29889, 29881, 1853, 1125, 13, 9651, 22289, 29918, 14538, 1691, 29889, 4397, 29898, 29881, 29897, 13, 1678, 736, 22289, 29918, 14538, 1691, 13, 13, 13, 1753, 6230, 29918, 300, 29880, 29898, 5461, 29892, 2752, 2433, 3634, 10157, 742, 3646, 29918, 21454, 2433, 29879, 29941, 597, 3634, 29875, 29899, 1272, 29374, 13, 1678, 1024, 353, 4840, 1839, 5461, 29918, 978, 2033, 13, 13, 1678, 4023, 10147, 29918, 5479, 353, 2897, 29889, 2084, 29889, 18837, 1792, 877, 30022, 6294, 3634, 29875, 29899, 8222, 29894, 4156, 1495, 13, 13, 1678, 396, 3789, 786, 9959, 5694, 4138, 363, 302, 7070, 2176, 13, 1678, 5694, 29918, 8771, 353, 2897, 29889, 2084, 29889, 7122, 29898, 8222, 10147, 29918, 5479, 29892, 1024, 29897, 13, 1678, 565, 451, 2897, 29889, 2084, 29889, 9933, 29898, 359, 29889, 2084, 29889, 25721, 29898, 7382, 29918, 8771, 22164, 13, 4706, 2897, 29889, 11256, 3972, 29898, 359, 29889, 2084, 29889, 25721, 29898, 7382, 29918, 8771, 876, 13, 13, 1678, 565, 451, 2897, 29889, 2084, 29889, 9933, 29898, 7382, 29918, 8771, 1125, 13, 4706, 2897, 29889, 11256, 3972, 29898, 7382, 29918, 8771, 29897, 13, 13, 1678, 396, 3789, 786, 317, 29941, 16281, 300, 13, 1678, 5694, 29918, 29879, 29941, 29918, 8771, 353, 285, 29908, 29879, 29941, 597, 7382, 29899, 3634, 29875, 29899, 1272, 19248, 978, 1836, 29920, 2749, 29908, 13, 1678, 2186, 29918, 29879, 29941, 29918, 8771, 353, 285, 29908, 29912, 5182, 29918, 21454, 6822, 29912, 978, 5038, 13, 13, 1678, 565, 2752, 1275, 525, 3634, 10157, 2396, 13, 4706, 27387, 29918, 6008, 353, 4840, 1839, 2914, 16215, 3827, 29918, 6008, 2033, 13, 1678, 1683, 29901, 13, 4706, 27387, 29918, 6008, 353, 4840, 1839, 276, 509, 6402, 29918, 6008, 2033, 13, 4706, 628, 4840, 1839, 276, 509, 6402, 29918, 6008, 2033, 13, 1678, 736, 9657, 29898, 13, 4706, 5694, 29918, 8771, 29922, 7382, 29918, 8771, 29892, 13, 4706, 5694, 29918, 21454, 29922, 7382, 29918, 29879, 29941, 29918, 8771, 29892, 13, 4706, 2186, 29918, 21454, 29922, 8394, 29918, 29879, 29941, 29918, 8771, 29892, 13, 4706, 27387, 29918, 6008, 29922, 276, 509, 6402, 29918, 6008, 29892, 13, 4706, 3579, 5461, 29892, 13, 1678, 1723, 13, 13, 13, 1753, 6923, 29918, 517, 29918, 1256, 29898, 1949, 1125, 13, 1678, 1369, 29918, 6008, 353, 12865, 29889, 12673, 29898, 29896, 29929, 29900, 29900, 29892, 29871, 29896, 29892, 29871, 29896, 29897, 13, 1678, 736, 1369, 29918, 6008, 718, 12865, 29889, 9346, 287, 2554, 29898, 23128, 29922, 1949, 29897, 13, 13, 13, 1753, 679, 29918, 12925, 29918, 6768, 29898, 2084, 1125, 13, 1678, 565, 2224, 29889, 27382, 2541, 703, 29879, 29941, 597, 29908, 1125, 13, 4706, 736, 4023, 10147, 29918, 11027, 29889, 12925, 29918, 6768, 29889, 10467, 29889, 8977, 580, 13, 13, 13, 1753, 679, 29918, 7076, 29898, 8149, 29892, 1677, 29918, 8977, 1125, 13, 1678, 716, 29918, 8977, 353, 6571, 13, 1678, 363, 413, 29892, 325, 297, 1677, 29918, 8977, 29889, 7076, 7295, 13, 4706, 565, 413, 297, 6611, 29901, 13, 9651, 716, 29918, 8977, 29961, 29895, 29962, 353, 325, 13, 1678, 736, 716, 29918, 8977, 13, 13, 13, 1753, 19508, 29918, 667, 29898, 1025, 29918, 1989, 29892, 716, 29918, 1989, 29892, 1677, 29918, 8977, 1125, 13, 1678, 716, 29918, 8977, 353, 1677, 29918, 8977, 29889, 8552, 580, 13, 1678, 565, 2030, 29918, 1989, 297, 716, 29918, 8977, 29901, 13, 4706, 716, 29918, 8977, 29889, 5504, 3319, 1482, 29918, 1989, 29901, 716, 29918, 8977, 29961, 1025, 29918, 1989, 29962, 1800, 13, 4706, 628, 716, 29918, 8977, 29961, 1025, 29918, 1989, 29962, 13, 1678, 736, 716, 29918, 8977, 13, 13, 13, 1753, 6088, 29918, 11739, 29898, 11739, 1125, 13, 1678, 5566, 29918, 8977, 353, 426, 13, 4706, 525, 1853, 2396, 1134, 29898, 11739, 467, 1649, 978, 1649, 29892, 13, 4706, 525, 1767, 2396, 851, 29898, 11739, 511, 13, 4706, 525, 15003, 1627, 2396, 376, 1642, 7122, 29898, 13, 9651, 9637, 1627, 29889, 4830, 29918, 11739, 29898, 13, 18884, 1134, 29898, 11739, 511, 3682, 29892, 3682, 17255, 15003, 1627, 1649, 13, 9651, 1723, 13, 4706, 10353, 13, 1678, 500, 13, 1678, 736, 5566, 29918, 8977, 13, 2 ]
torchqf/model/factor_model.py
simaki/torchqf
7
167082
from typing import TypeVar import torch from torch import Tensor from torch.nn import Module T = TypeVar("T") class FactorModel(Module): """Factor model. Attributes: beta (Tensor): Created after `fit`. Shape: - input: :math:`(*, A, T)` :math:`A` is the number of assets. :math:`T` is the number of time steps. - output: :math:`(*, A, T)` :math:`A` is the number of assets. :math:`T` is the number of time steps. - factor: :math:`(*, F, T)` :math:`F` is the number of assets. :math:`T` is the number of time steps. - beta: :math:`(F, A)` :math:`F` is the number of factor. :math:`A` is the number of assets. Examples: >>> import torchqf >>> from torchqf.stochastic import generate_brownian >>> _ = torch.manual_seed(42) >>> input = generate_brownian((2, 5), 0.1) >>> factor = generate_brownian((2, 5), 0.1) >>> fm = FactorModel().fit(input, factor) >>> fm(input, factor) tensor([[ 0.0032, -0.0023, -0.0046, 0.0138, -0.0099], [-0.0234, 0.0157, -0.0017, -0.0052, 0.0025]]) The method `fit_forward` fits and forwards at once. >>> fm.fit_forward(input, factor) tensor([[ 0.0032, -0.0023, -0.0046, 0.0138, -0.0099], [-0.0234, 0.0157, -0.0017, -0.0052, 0.0025]]) """ def fit(self: T, input: Tensor, factor: Tensor, enable_grad: bool = False) -> T: """Fit the model using the asset returns (`input`) and the factor returns (`factor`). Args: input (Tensor): Returns of assets. factor (Tensor): Returns of factors. enable_grad (bool, default=False): Flag whether to enable grad (True), or disable (False). Returns: FactorModel: Returns `self`. Shape: input : :math:`(*, A, T)` :math:`A` is the number of assets. :math:`T` is the number of time steps. factor : :math:`(*, F, T)` :math:`F` is the number of assets. :math:`T` is the number of time steps. beta : :math:`(*, F, A)` :math:`F` is the number of factors. :math:`A` is the number of assets. """ assert input.size(-1) == factor.size(-1), "numbers of time steps do not match" assert input.ndim == 2, "not supported" assert factor.ndim == 2, "not supported" with torch.set_grad_enabled(mode=enable_grad): tensor_x = factor.t() # shape : (T, F) tensor_y = input.transpose(-2, -1) # shape : (T, A) # Compute beta : (F, T) @ (T, A) = (F, A) self.beta = torch.mm(torch.linalg.pinv(tensor_x), tensor_y) return self def forward(self, input: torch.Tensor, factor: torch.Tensor) -> torch.Tensor: factor_return = torch.mm(self.beta.t(), factor) # shape : (*, A, T) return input - factor_return def fit_forward(self, input: torch.Tensor, factor: torch.Tensor) -> torch.Tensor: return self.fit(input, factor, enable_grad=True)(input, factor)
[ 1, 515, 19229, 1053, 5167, 9037, 13, 13, 5215, 4842, 305, 13, 3166, 4842, 305, 1053, 323, 6073, 13, 3166, 4842, 305, 29889, 15755, 1053, 15591, 13, 13, 29911, 353, 5167, 9037, 703, 29911, 1159, 13, 13, 13, 1990, 383, 7168, 3195, 29898, 7355, 1125, 13, 1678, 9995, 29943, 7168, 1904, 29889, 13, 13, 1678, 6212, 5026, 29901, 13, 4706, 21762, 313, 29911, 6073, 1125, 6760, 630, 1156, 421, 9202, 1412, 13, 13, 1678, 1383, 4085, 29901, 13, 4706, 448, 1881, 29901, 584, 755, 18078, 10456, 29892, 319, 29892, 323, 3569, 13, 9651, 584, 755, 18078, 29909, 29952, 338, 278, 1353, 310, 21608, 29889, 13, 9651, 584, 755, 18078, 29911, 29952, 338, 278, 1353, 310, 931, 6576, 29889, 13, 4706, 448, 1962, 29901, 584, 755, 18078, 10456, 29892, 319, 29892, 323, 3569, 13, 9651, 584, 755, 18078, 29909, 29952, 338, 278, 1353, 310, 21608, 29889, 13, 9651, 584, 755, 18078, 29911, 29952, 338, 278, 1353, 310, 931, 6576, 29889, 13, 4706, 448, 7329, 29901, 584, 755, 18078, 10456, 29892, 383, 29892, 323, 3569, 13, 9651, 584, 755, 18078, 29943, 29952, 338, 278, 1353, 310, 21608, 29889, 13, 9651, 584, 755, 18078, 29911, 29952, 338, 278, 1353, 310, 931, 6576, 29889, 13, 4706, 448, 21762, 29901, 584, 755, 18078, 29898, 29943, 29892, 319, 3569, 13, 9651, 584, 755, 18078, 29943, 29952, 338, 278, 1353, 310, 7329, 29889, 13, 9651, 584, 755, 18078, 29909, 29952, 338, 278, 1353, 310, 21608, 29889, 13, 13, 1678, 1222, 9422, 29901, 13, 13, 4706, 8653, 1053, 4842, 305, 29939, 29888, 13, 4706, 8653, 515, 4842, 305, 29939, 29888, 29889, 303, 28225, 1053, 5706, 29918, 29890, 4708, 713, 13, 13, 4706, 8653, 903, 353, 4842, 305, 29889, 11288, 29918, 26776, 29898, 29946, 29906, 29897, 13, 13, 4706, 8653, 1881, 353, 5706, 29918, 29890, 4708, 713, 3552, 29906, 29892, 29871, 29945, 511, 29871, 29900, 29889, 29896, 29897, 13, 4706, 8653, 7329, 353, 5706, 29918, 29890, 4708, 713, 3552, 29906, 29892, 29871, 29945, 511, 29871, 29900, 29889, 29896, 29897, 13, 4706, 8653, 285, 29885, 353, 383, 7168, 3195, 2141, 9202, 29898, 2080, 29892, 7329, 29897, 13, 4706, 8653, 285, 29885, 29898, 2080, 29892, 7329, 29897, 13, 4706, 12489, 4197, 29961, 29871, 29900, 29889, 29900, 29900, 29941, 29906, 29892, 448, 29900, 29889, 29900, 29900, 29906, 29941, 29892, 448, 29900, 29889, 29900, 29900, 29946, 29953, 29892, 259, 29900, 29889, 29900, 29896, 29941, 29947, 29892, 448, 29900, 29889, 29900, 29900, 29929, 29929, 1402, 13, 18884, 21069, 29900, 29889, 29900, 29906, 29941, 29946, 29892, 259, 29900, 29889, 29900, 29896, 29945, 29955, 29892, 448, 29900, 29889, 29900, 29900, 29896, 29955, 29892, 448, 29900, 29889, 29900, 29900, 29945, 29906, 29892, 259, 29900, 29889, 29900, 29900, 29906, 29945, 24960, 13, 13, 4706, 450, 1158, 421, 9202, 29918, 11333, 29952, 23994, 322, 363, 2935, 472, 2748, 29889, 13, 13, 4706, 8653, 285, 29885, 29889, 9202, 29918, 11333, 29898, 2080, 29892, 7329, 29897, 13, 4706, 12489, 4197, 29961, 29871, 29900, 29889, 29900, 29900, 29941, 29906, 29892, 448, 29900, 29889, 29900, 29900, 29906, 29941, 29892, 448, 29900, 29889, 29900, 29900, 29946, 29953, 29892, 259, 29900, 29889, 29900, 29896, 29941, 29947, 29892, 448, 29900, 29889, 29900, 29900, 29929, 29929, 1402, 13, 18884, 21069, 29900, 29889, 29900, 29906, 29941, 29946, 29892, 259, 29900, 29889, 29900, 29896, 29945, 29955, 29892, 448, 29900, 29889, 29900, 29900, 29896, 29955, 29892, 448, 29900, 29889, 29900, 29900, 29945, 29906, 29892, 259, 29900, 29889, 29900, 29900, 29906, 29945, 24960, 13, 1678, 9995, 13, 13, 1678, 822, 6216, 29898, 1311, 29901, 323, 29892, 1881, 29901, 323, 6073, 29892, 7329, 29901, 323, 6073, 29892, 9025, 29918, 5105, 29901, 6120, 353, 7700, 29897, 1599, 323, 29901, 13, 4706, 9995, 29943, 277, 278, 1904, 773, 278, 24342, 3639, 6695, 2080, 6348, 322, 278, 7329, 3639, 6695, 19790, 12913, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 1881, 313, 29911, 6073, 1125, 16969, 310, 21608, 29889, 13, 9651, 7329, 313, 29911, 6073, 1125, 16969, 310, 13879, 29889, 13, 9651, 9025, 29918, 5105, 313, 11227, 29892, 2322, 29922, 8824, 1125, 28697, 3692, 304, 9025, 4656, 313, 5574, 511, 13, 18884, 470, 11262, 313, 8824, 467, 13, 13, 4706, 16969, 29901, 13, 9651, 383, 7168, 3195, 29901, 16969, 421, 1311, 1412, 13, 13, 4706, 1383, 4085, 29901, 13, 13, 9651, 1881, 584, 584, 755, 18078, 10456, 29892, 319, 29892, 323, 3569, 13, 18884, 584, 755, 18078, 29909, 29952, 338, 278, 1353, 310, 21608, 29889, 13, 18884, 584, 755, 18078, 29911, 29952, 338, 278, 1353, 310, 931, 6576, 29889, 13, 9651, 7329, 584, 584, 755, 18078, 10456, 29892, 383, 29892, 323, 3569, 13, 18884, 584, 755, 18078, 29943, 29952, 338, 278, 1353, 310, 21608, 29889, 13, 18884, 584, 755, 18078, 29911, 29952, 338, 278, 1353, 310, 931, 6576, 29889, 13, 9651, 21762, 584, 584, 755, 18078, 10456, 29892, 383, 29892, 319, 3569, 13, 18884, 584, 755, 18078, 29943, 29952, 338, 278, 1353, 310, 13879, 29889, 13, 18884, 584, 755, 18078, 29909, 29952, 338, 278, 1353, 310, 21608, 29889, 13, 4706, 9995, 13, 4706, 4974, 1881, 29889, 2311, 6278, 29896, 29897, 1275, 7329, 29889, 2311, 6278, 29896, 511, 376, 20326, 310, 931, 6576, 437, 451, 1993, 29908, 13, 4706, 4974, 1881, 29889, 299, 326, 1275, 29871, 29906, 29892, 376, 1333, 6969, 29908, 13, 4706, 4974, 7329, 29889, 299, 326, 1275, 29871, 29906, 29892, 376, 1333, 6969, 29908, 13, 13, 4706, 411, 4842, 305, 29889, 842, 29918, 5105, 29918, 17590, 29898, 8513, 29922, 12007, 29918, 5105, 1125, 13, 9651, 12489, 29918, 29916, 353, 7329, 29889, 29873, 580, 29871, 396, 8267, 584, 313, 29911, 29892, 383, 29897, 13, 9651, 12489, 29918, 29891, 353, 1881, 29889, 3286, 4220, 6278, 29906, 29892, 448, 29896, 29897, 29871, 396, 8267, 584, 313, 29911, 29892, 319, 29897, 13, 13, 9651, 396, 11796, 29872, 21762, 584, 313, 29943, 29892, 323, 29897, 732, 313, 29911, 29892, 319, 29897, 353, 313, 29943, 29892, 319, 29897, 13, 9651, 1583, 29889, 3571, 353, 4842, 305, 29889, 4317, 29898, 7345, 305, 29889, 29880, 979, 29887, 29889, 29886, 11569, 29898, 20158, 29918, 29916, 511, 12489, 29918, 29891, 29897, 13, 13, 4706, 736, 1583, 13, 13, 1678, 822, 6375, 29898, 1311, 29892, 1881, 29901, 4842, 305, 29889, 29911, 6073, 29892, 7329, 29901, 4842, 305, 29889, 29911, 6073, 29897, 1599, 4842, 305, 29889, 29911, 6073, 29901, 13, 4706, 7329, 29918, 2457, 353, 4842, 305, 29889, 4317, 29898, 1311, 29889, 3571, 29889, 29873, 3285, 7329, 29897, 29871, 396, 8267, 584, 3070, 29892, 319, 29892, 323, 29897, 13, 4706, 736, 1881, 448, 7329, 29918, 2457, 13, 13, 1678, 822, 6216, 29918, 11333, 29898, 1311, 29892, 1881, 29901, 4842, 305, 29889, 29911, 6073, 29892, 7329, 29901, 4842, 305, 29889, 29911, 6073, 29897, 1599, 4842, 305, 29889, 29911, 6073, 29901, 13, 4706, 736, 1583, 29889, 9202, 29898, 2080, 29892, 7329, 29892, 9025, 29918, 5105, 29922, 5574, 5033, 2080, 29892, 7329, 29897, 13, 2 ]
setup.py
Mahima-ai/ALEPython
107
58516
# -*- coding: utf-8 -*- from setuptools import find_packages, setup with open("README.md") as f: long_description = f.read() with open("requirements.txt", "r") as f: required = f.read().splitlines() setup( name="alepython", description="Python Accumulated Local Effects (ALE) package.", author="<NAME>", author_email="<EMAIL>", license="Apache 2", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/MaximeJumelle/alepython/", install_requires=required, extras_require={"test": ["pytest>=5.4", "pytest-cov>=2.8"]}, setup_requires=["setuptools-scm"], python_requires=">=3.5", use_scm_version=dict(write_to="src/alepython/_version.py"), keywords="alepython", package_dir={"": "src"}, packages=find_packages(where="src"), include_package_data=True, classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approched :: Apache 2", "Operating System :: OS Independent", ], )
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 3166, 731, 21245, 8789, 1053, 1284, 29918, 8318, 29892, 6230, 13, 13, 2541, 1722, 703, 16310, 2303, 29889, 3487, 1159, 408, 285, 29901, 13, 1678, 1472, 29918, 8216, 353, 285, 29889, 949, 580, 13, 13, 2541, 1722, 703, 12277, 1860, 29889, 3945, 613, 376, 29878, 1159, 408, 285, 29901, 13, 1678, 3734, 353, 285, 29889, 949, 2141, 5451, 9012, 580, 13, 13, 14669, 29898, 13, 1678, 1024, 543, 744, 4691, 613, 13, 1678, 6139, 543, 11980, 4831, 398, 7964, 9959, 26475, 29879, 313, 29909, 1307, 29897, 3577, 19602, 13, 1678, 4148, 543, 29966, 5813, 28341, 13, 1678, 4148, 29918, 5269, 543, 29966, 26862, 6227, 28341, 13, 1678, 19405, 543, 17396, 1829, 29871, 29906, 613, 13, 1678, 1472, 29918, 8216, 29922, 5426, 29918, 8216, 29892, 13, 1678, 1472, 29918, 8216, 29918, 3051, 29918, 1853, 543, 726, 29914, 3502, 3204, 613, 13, 1678, 3142, 543, 991, 597, 3292, 29889, 510, 29914, 7976, 603, 29967, 398, 1808, 29914, 744, 4691, 29914, 613, 13, 1678, 2601, 29918, 276, 339, 2658, 29922, 12403, 29892, 13, 1678, 429, 10678, 29918, 12277, 3790, 29908, 1688, 1115, 6796, 2272, 1688, 18572, 29945, 29889, 29946, 613, 376, 2272, 1688, 29899, 24542, 18572, 29906, 29889, 29947, 3108, 1118, 13, 1678, 6230, 29918, 276, 339, 2658, 29922, 3366, 842, 21245, 8789, 29899, 1557, 29885, 12436, 13, 1678, 3017, 29918, 276, 339, 2658, 543, 18572, 29941, 29889, 29945, 613, 13, 1678, 671, 29918, 1557, 29885, 29918, 3259, 29922, 8977, 29898, 3539, 29918, 517, 543, 4351, 29914, 744, 4691, 19891, 3259, 29889, 2272, 4968, 13, 1678, 29361, 543, 744, 4691, 613, 13, 1678, 3577, 29918, 3972, 3790, 29908, 1115, 376, 4351, 10758, 13, 1678, 9741, 29922, 2886, 29918, 8318, 29898, 3062, 543, 4351, 4968, 13, 1678, 3160, 29918, 5113, 29918, 1272, 29922, 5574, 29892, 13, 1678, 770, 14903, 11759, 13, 4706, 376, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29941, 613, 13, 4706, 376, 29931, 293, 1947, 4761, 438, 5425, 28268, 26902, 4761, 13380, 29871, 29906, 613, 13, 4706, 376, 7094, 1218, 2184, 4761, 6570, 25266, 613, 13, 1678, 21251, 13, 29897, 13, 2 ]
t3f/batch_ops.py
KhrulkovV/t3f
1
31564
<gh_stars>1-10 import tensorflow as tf from t3f.tensor_train_base import TensorTrainBase from t3f.tensor_train_batch import TensorTrainBatch from t3f import ops def concat_along_batch_dim(tt_list): """Concat all TensorTrainBatch objects along batch dimension. Args: tt_list: a list of TensorTrainBatch objects. Returns: TensorTrainBatch """ ndims = tt_list[0].ndims() if isinstance(tt_list, TensorTrainBase): # Not a list but just one element, nothing to concat. return tt_list for batch_idx in range(len(tt_list)): if not isinstance(tt_list[batch_idx], TensorTrainBatch): raise ValueError('All objects in the list should be TTBatch objects, got ' '%s' % tt_list[batch_idx]) for batch_idx in range(1, len(tt_list)): if tt_list[batch_idx].get_raw_shape() != tt_list[0].get_raw_shape(): raise ValueError('Shapes of all TT-batch objects should coincide, got %s ' 'and %s' % (tt_list[0].get_raw_shape(), tt_list[batch_idx].get_raw_shape())) if tt_list[batch_idx].get_tt_ranks() != tt_list[0].get_tt_ranks(): raise ValueError('TT-ranks of all TT-batch objects should coincide, got ' '%s and %s' % (tt_list[0].get_tt_ranks(), tt_list[batch_idx].get_tt_ranks())) res_cores = [] for core_idx in range(ndims): curr_core = tf.concat([tt.tt_cores[core_idx] for tt in tt_list], axis=0) res_cores.append(curr_core) try: batch_size = sum([tt.batch_size for tt in tt_list]) except TypeError: # The batch sizes are not defined and you can't sum Nones. batch_size = None return TensorTrainBatch(res_cores, tt_list[0].get_raw_shape(), tt_list[0].get_tt_ranks(), batch_size) def multiply_along_batch_dim(batch_tt, weights): """Multiply each TensorTrain in a batch by a number. Args: batch_tt: TensorTrainBatch object, TT-matrices or TT-tensors. weights: 1-D tf.Tensor (or something convertible to it like np.array) of size tt.batch_sie with weights. Returns: TensorTrainBatch """ weights = tf.convert_to_tensor(weights) tt_cores = list(batch_tt.tt_cores) if batch_tt.is_tt_matrix(): weights = weights[:, tf.newaxis, tf.newaxis, tf.newaxis, tf.newaxis] else: weights = weights[:, tf.newaxis, tf.newaxis, tf.newaxis] tt_cores[0] = weights * tt_cores[0] out_shape = batch_tt.get_raw_shape() out_ranks = batch_tt.get_tt_ranks() out_batch_size = batch_tt.batch_size return TensorTrainBatch(tt_cores, out_shape, out_ranks, out_batch_size) def gram_matrix(tt_vectors, matrix=None): """Computes Gramian matrix of a batch of TT-vecors. If matrix is None, computes res[i, j] = t3f.flat_inner(tt_vectors[i], tt_vectors[j]). If matrix is present, computes res[i, j] = t3f.flat_inner(tt_vectors[i], t3f.matmul(matrix, tt_vectors[j])) or more shortly res[i, j] = tt_vectors[i]^T * matrix * tt_vectors[j] but is more efficient. Args: tt_vectors: TensorTrainBatch. matrix: None, or TensorTrain matrix. Returns: tf.tensor with the Gram matrix. """ return pairwise_flat_inner(tt_vectors, tt_vectors, matrix) def pairwise_flat_inner(tt_1, tt_2, matrix=None): """Computes all scalar products between two batches of TT-objects. If matrix is None, computes res[i, j] = t3f.flat_inner(tt_1[i], tt_2[j]). If matrix is present, computes res[i, j] = t3f.flat_inner(tt_1[i], t3f.matmul(matrix, tt_2[j])) or more shortly res[i, j] = tt_1[i]^T * matrix * tt_2[j] but is more efficient. Args: tt_1: TensorTrainBatch. tt_2: TensorTrainBatch. matrix: None, or TensorTrain matrix. Returns: tf.tensor with the matrix of pairwise scalar products (flat inners). """ ndims = tt_1.ndims() if matrix is None: curr_core_1 = tt_1.tt_cores[0] curr_core_2 = tt_2.tt_cores[0] mode_string = 'ij' if tt_1.is_tt_matrix() else 'i' einsum_str = 'pa{0}b,qc{0}d->pqbd'.format(mode_string) res = tf.einsum(einsum_str, curr_core_1, curr_core_2) for core_idx in range(1, ndims): curr_core_1 = tt_1.tt_cores[core_idx] curr_core_2 = tt_2.tt_cores[core_idx] einsum_str = 'pqac,pa{0}b,qc{0}d->pqbd'.format(mode_string) res = tf.einsum(einsum_str, res, curr_core_1, curr_core_2) else: # res[i, j] = tt_1[i] ^ T * matrix * tt_2[j] if not tt_1.is_tt_matrix() or not tt_2.is_tt_matrix() or not matrix.is_tt_matrix(): raise ValueError('When passing three arguments to pairwise_flat_inner, ' 'the first 2 of them should be TT-vecors and the last ' 'should be a TT-matrix. Got %s, %s, and %s instead.' % (tt_1, tt_2, matrix)) matrix_shape = matrix.get_raw_shape() if not tt_1.get_raw_shape()[0].is_compatible_with(matrix_shape[0]): raise ValueError('The shape of the first argument should be compatible ' 'with the shape of the TT-matrix, that is it should be ' 'possible to do the following matmul: ' 'transpose(tt_1) * matrix. Got the first argument ' '"%s" and matrix "%s"' % (tt_1, matrix)) if not tt_2.get_raw_shape()[0].is_compatible_with(matrix_shape[1]): raise ValueError('The shape of the second argument should be compatible ' 'with the shape of the TT-matrix, that is it should be ' 'possible to do the following matmul: ' 'matrix * tt_2. Got the second argument ' '"%s" and matrix "%s"' % (tt_2, matrix)) vectors_1_shape = tt_1.get_shape() if vectors_1_shape[2] == 1 and vectors_1_shape[1] != 1: # TODO: not very efficient, better to use different order in einsum. tt_1 = ops.transpose(tt_1) vectors_1_shape = tt_1.get_shape() vectors_2_shape = tt_2.get_shape() if vectors_2_shape[2] == 1 and vectors_2_shape[1] != 1: # TODO: not very efficient, better to use different order in einsum. tt_2 = ops.transpose(tt_2) vectors_2_shape = tt_2.get_shape() if vectors_1_shape[1] != 1: # TODO: do something so that in case the shape is undefined on compilation # it still works. raise ValueError('The tt_vectors_1 argument should be vectors (not ' 'matrices) with shape defined on compilation.') if vectors_2_shape[1] != 1: # TODO: do something so that in case the shape is undefined on compilation # it still works. raise ValueError('The tt_vectors_2 argument should be vectors (not ' 'matrices) with shape defined on compilation.') curr_core_1 = tt_1.tt_cores[0] curr_core_2 = tt_2.tt_cores[0] curr_matrix_core = matrix.tt_cores[0] # We enumerate the dummy dimension (that takes 1 value) with `k`. res = tf.einsum('pakib,cijd,qekjf->pqbdf', curr_core_1, curr_matrix_core, curr_core_2) for core_idx in range(1, ndims): curr_core_1 = tt_1.tt_cores[core_idx] curr_core_2 = tt_2.tt_cores[core_idx] curr_matrix_core = matrix.tt_cores[core_idx] res = tf.einsum('pqace,pakib,cijd,qekjf->pqbdf', res, curr_core_1, curr_matrix_core, curr_core_2) # Squeeze to make the result of size batch_size x batch_size instead of # batch_size x batch_size x 1 x 1. return tf.squeeze(res)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 26110, 408, 15886, 13, 13, 3166, 260, 29941, 29888, 29889, 20158, 29918, 14968, 29918, 3188, 1053, 323, 6073, 5323, 262, 5160, 13, 3166, 260, 29941, 29888, 29889, 20158, 29918, 14968, 29918, 16175, 1053, 323, 6073, 5323, 262, 23145, 13, 3166, 260, 29941, 29888, 1053, 288, 567, 13, 13, 13, 1753, 3022, 271, 29918, 284, 549, 29918, 16175, 29918, 6229, 29898, 698, 29918, 1761, 1125, 13, 29871, 9995, 1168, 4117, 599, 323, 6073, 5323, 262, 23145, 3618, 3412, 9853, 9927, 29889, 13, 13, 29871, 826, 3174, 29901, 13, 1678, 260, 29873, 29918, 1761, 29901, 263, 1051, 310, 323, 6073, 5323, 262, 23145, 3618, 29889, 13, 13, 29871, 16969, 29901, 13, 1678, 323, 6073, 5323, 262, 23145, 13, 29871, 9995, 13, 259, 299, 9893, 353, 260, 29873, 29918, 1761, 29961, 29900, 1822, 299, 9893, 580, 13, 13, 29871, 565, 338, 8758, 29898, 698, 29918, 1761, 29892, 323, 6073, 5323, 262, 5160, 1125, 13, 1678, 396, 2216, 263, 1051, 541, 925, 697, 1543, 29892, 3078, 304, 3022, 271, 29889, 13, 1678, 736, 260, 29873, 29918, 1761, 13, 13, 29871, 363, 9853, 29918, 13140, 297, 3464, 29898, 2435, 29898, 698, 29918, 1761, 22164, 13, 1678, 565, 451, 338, 8758, 29898, 698, 29918, 1761, 29961, 16175, 29918, 13140, 1402, 323, 6073, 5323, 262, 23145, 1125, 13, 418, 12020, 7865, 2392, 877, 3596, 3618, 297, 278, 1051, 881, 367, 323, 29911, 23145, 3618, 29892, 2355, 525, 13, 462, 539, 14210, 29879, 29915, 1273, 260, 29873, 29918, 1761, 29961, 16175, 29918, 13140, 2314, 13, 29871, 363, 9853, 29918, 13140, 297, 3464, 29898, 29896, 29892, 7431, 29898, 698, 29918, 1761, 22164, 13, 1678, 565, 260, 29873, 29918, 1761, 29961, 16175, 29918, 13140, 1822, 657, 29918, 1610, 29918, 12181, 580, 2804, 260, 29873, 29918, 1761, 29961, 29900, 1822, 657, 29918, 1610, 29918, 12181, 7295, 13, 418, 12020, 7865, 2392, 877, 2713, 11603, 310, 599, 323, 29911, 29899, 16175, 3618, 881, 1302, 2173, 311, 29892, 2355, 1273, 29879, 525, 13, 462, 539, 525, 392, 1273, 29879, 29915, 1273, 313, 698, 29918, 1761, 29961, 29900, 1822, 657, 29918, 1610, 29918, 12181, 3285, 13, 462, 462, 259, 260, 29873, 29918, 1761, 29961, 16175, 29918, 13140, 1822, 657, 29918, 1610, 29918, 12181, 22130, 13, 1678, 565, 260, 29873, 29918, 1761, 29961, 16175, 29918, 13140, 1822, 657, 29918, 698, 29918, 661, 2039, 580, 2804, 260, 29873, 29918, 1761, 29961, 29900, 1822, 657, 29918, 698, 29918, 661, 2039, 7295, 13, 418, 12020, 7865, 2392, 877, 19988, 29899, 661, 2039, 310, 599, 323, 29911, 29899, 16175, 3618, 881, 1302, 2173, 311, 29892, 2355, 525, 13, 462, 539, 14210, 29879, 322, 1273, 29879, 29915, 1273, 313, 698, 29918, 1761, 29961, 29900, 1822, 657, 29918, 698, 29918, 661, 2039, 3285, 13, 462, 462, 418, 260, 29873, 29918, 1761, 29961, 16175, 29918, 13140, 1822, 657, 29918, 698, 29918, 661, 2039, 22130, 13, 13, 29871, 620, 29918, 29883, 2361, 353, 5159, 13, 29871, 363, 7136, 29918, 13140, 297, 3464, 29898, 299, 9893, 1125, 13, 1678, 16256, 29918, 3221, 353, 15886, 29889, 17685, 4197, 698, 29889, 698, 29918, 29883, 2361, 29961, 3221, 29918, 13140, 29962, 363, 260, 29873, 297, 260, 29873, 29918, 1761, 1402, 9685, 29922, 29900, 29897, 13, 1678, 620, 29918, 29883, 2361, 29889, 4397, 29898, 21962, 29918, 3221, 29897, 13, 13, 29871, 1018, 29901, 13, 1678, 9853, 29918, 2311, 353, 2533, 4197, 698, 29889, 16175, 29918, 2311, 363, 260, 29873, 297, 260, 29873, 29918, 1761, 2314, 13, 29871, 5174, 20948, 29901, 13, 1678, 396, 450, 9853, 15786, 526, 451, 3342, 322, 366, 508, 29915, 29873, 2533, 405, 2873, 29889, 13, 1678, 9853, 29918, 2311, 353, 6213, 13, 13, 29871, 736, 323, 6073, 5323, 262, 23145, 29898, 690, 29918, 29883, 2361, 29892, 260, 29873, 29918, 1761, 29961, 29900, 1822, 657, 29918, 1610, 29918, 12181, 3285, 13, 462, 3986, 260, 29873, 29918, 1761, 29961, 29900, 1822, 657, 29918, 698, 29918, 661, 2039, 3285, 9853, 29918, 2311, 29897, 13, 13, 13, 1753, 22932, 29918, 284, 549, 29918, 16175, 29918, 6229, 29898, 16175, 29918, 698, 29892, 18177, 1125, 13, 29871, 9995, 6857, 666, 368, 1269, 323, 6073, 5323, 262, 297, 263, 9853, 491, 263, 1353, 29889, 13, 13, 29871, 826, 3174, 29901, 13, 1678, 9853, 29918, 698, 29901, 323, 6073, 5323, 262, 23145, 1203, 29892, 323, 29911, 29899, 2922, 11669, 470, 323, 29911, 29899, 29873, 575, 943, 29889, 13, 1678, 18177, 29901, 29871, 29896, 29899, 29928, 15886, 29889, 29911, 6073, 313, 272, 1554, 3588, 1821, 304, 372, 763, 7442, 29889, 2378, 29897, 310, 2159, 13, 268, 260, 29873, 29889, 16175, 29918, 29879, 347, 411, 18177, 29889, 29871, 13, 13, 29871, 16969, 29901, 13, 1678, 323, 6073, 5323, 262, 23145, 13, 29871, 9995, 13, 29871, 18177, 353, 15886, 29889, 13441, 29918, 517, 29918, 20158, 29898, 705, 5861, 29897, 13, 29871, 260, 29873, 29918, 29883, 2361, 353, 1051, 29898, 16175, 29918, 698, 29889, 698, 29918, 29883, 2361, 29897, 13, 29871, 565, 9853, 29918, 698, 29889, 275, 29918, 698, 29918, 5344, 7295, 13, 1678, 18177, 353, 18177, 7503, 29892, 15886, 29889, 1482, 8990, 29892, 15886, 29889, 1482, 8990, 29892, 15886, 29889, 1482, 8990, 29892, 15886, 29889, 1482, 8990, 29962, 13, 29871, 1683, 29901, 13, 1678, 18177, 353, 18177, 7503, 29892, 15886, 29889, 1482, 8990, 29892, 15886, 29889, 1482, 8990, 29892, 15886, 29889, 1482, 8990, 29962, 13, 29871, 260, 29873, 29918, 29883, 2361, 29961, 29900, 29962, 353, 18177, 334, 260, 29873, 29918, 29883, 2361, 29961, 29900, 29962, 13, 29871, 714, 29918, 12181, 353, 9853, 29918, 698, 29889, 657, 29918, 1610, 29918, 12181, 580, 13, 29871, 714, 29918, 661, 2039, 353, 9853, 29918, 698, 29889, 657, 29918, 698, 29918, 661, 2039, 580, 13, 29871, 714, 29918, 16175, 29918, 2311, 353, 9853, 29918, 698, 29889, 16175, 29918, 2311, 13, 29871, 736, 323, 6073, 5323, 262, 23145, 29898, 698, 29918, 29883, 2361, 29892, 714, 29918, 12181, 29892, 714, 29918, 661, 2039, 29892, 714, 29918, 16175, 29918, 2311, 29897, 13, 13, 13, 1753, 14961, 29918, 5344, 29898, 698, 29918, 345, 14359, 29892, 4636, 29922, 8516, 1125, 13, 29871, 9995, 20606, 267, 16878, 713, 4636, 310, 263, 9853, 310, 323, 29911, 29899, 2003, 943, 29889, 13, 13, 29871, 960, 4636, 338, 6213, 29892, 2912, 267, 13, 1678, 620, 29961, 29875, 29892, 432, 29962, 353, 260, 29941, 29888, 29889, 20620, 29918, 3993, 29898, 698, 29918, 345, 14359, 29961, 29875, 1402, 260, 29873, 29918, 345, 14359, 29961, 29926, 14664, 13, 29871, 960, 4636, 338, 2198, 29892, 2912, 267, 13, 418, 620, 29961, 29875, 29892, 432, 29962, 353, 260, 29941, 29888, 29889, 20620, 29918, 3993, 29898, 698, 29918, 345, 14359, 29961, 29875, 1402, 260, 29941, 29888, 29889, 2922, 16109, 29898, 5344, 29892, 260, 29873, 29918, 345, 14359, 29961, 29926, 12622, 13, 1678, 470, 901, 21734, 13, 418, 620, 29961, 29875, 29892, 432, 29962, 353, 260, 29873, 29918, 345, 14359, 29961, 29875, 29962, 29985, 29911, 334, 4636, 334, 260, 29873, 29918, 345, 14359, 29961, 29926, 29962, 13, 1678, 541, 338, 901, 8543, 29889, 13, 13, 29871, 826, 3174, 29901, 13, 1678, 260, 29873, 29918, 345, 14359, 29901, 323, 6073, 5323, 262, 23145, 29889, 13, 1678, 4636, 29901, 6213, 29892, 470, 323, 6073, 5323, 262, 4636, 29889, 13, 13, 29871, 16969, 29901, 13, 1678, 15886, 29889, 20158, 411, 278, 16878, 4636, 29889, 13, 29871, 9995, 13, 29871, 736, 5101, 3538, 29918, 20620, 29918, 3993, 29898, 698, 29918, 345, 14359, 29892, 260, 29873, 29918, 345, 14359, 29892, 4636, 29897, 13, 13, 13, 1753, 5101, 3538, 29918, 20620, 29918, 3993, 29898, 698, 29918, 29896, 29892, 260, 29873, 29918, 29906, 29892, 4636, 29922, 8516, 1125, 13, 29871, 9995, 20606, 267, 599, 17336, 9316, 1546, 1023, 9853, 267, 310, 323, 29911, 29899, 12650, 29889, 13, 13, 29871, 960, 4636, 338, 6213, 29892, 2912, 267, 13, 1678, 620, 29961, 29875, 29892, 432, 29962, 353, 260, 29941, 29888, 29889, 20620, 29918, 3993, 29898, 698, 29918, 29896, 29961, 29875, 1402, 260, 29873, 29918, 29906, 29961, 29926, 14664, 13, 268, 13, 29871, 960, 4636, 338, 2198, 29892, 2912, 267, 13, 418, 620, 29961, 29875, 29892, 432, 29962, 353, 260, 29941, 29888, 29889, 20620, 29918, 3993, 29898, 698, 29918, 29896, 29961, 29875, 1402, 260, 29941, 29888, 29889, 2922, 16109, 29898, 5344, 29892, 260, 29873, 29918, 29906, 29961, 29926, 12622, 13, 1678, 470, 901, 21734, 13, 418, 620, 29961, 29875, 29892, 432, 29962, 353, 260, 29873, 29918, 29896, 29961, 29875, 29962, 29985, 29911, 334, 4636, 334, 260, 29873, 29918, 29906, 29961, 29926, 29962, 13, 1678, 541, 338, 901, 8543, 29889, 13, 13, 29871, 826, 3174, 29901, 13, 1678, 260, 29873, 29918, 29896, 29901, 323, 6073, 5323, 262, 23145, 29889, 13, 1678, 260, 29873, 29918, 29906, 29901, 323, 6073, 5323, 262, 23145, 29889, 13, 1678, 4636, 29901, 6213, 29892, 470, 323, 6073, 5323, 262, 4636, 29889, 13, 13, 29871, 16969, 29901, 13, 1678, 15886, 29889, 20158, 411, 278, 4636, 310, 5101, 3538, 17336, 9316, 313, 20620, 7622, 414, 467, 13, 29871, 9995, 13, 259, 299, 9893, 353, 260, 29873, 29918, 29896, 29889, 299, 9893, 580, 13, 29871, 565, 4636, 338, 6213, 29901, 13, 1678, 16256, 29918, 3221, 29918, 29896, 353, 260, 29873, 29918, 29896, 29889, 698, 29918, 29883, 2361, 29961, 29900, 29962, 13, 1678, 16256, 29918, 3221, 29918, 29906, 353, 260, 29873, 29918, 29906, 29889, 698, 29918, 29883, 2361, 29961, 29900, 29962, 13, 1678, 4464, 29918, 1807, 353, 525, 823, 29915, 565, 260, 29873, 29918, 29896, 29889, 275, 29918, 698, 29918, 5344, 580, 1683, 525, 29875, 29915, 13, 1678, 1011, 2083, 29918, 710, 353, 525, 3274, 29912, 29900, 29913, 29890, 29892, 29939, 29883, 29912, 29900, 29913, 29881, 976, 29886, 29939, 6448, 4286, 4830, 29898, 8513, 29918, 1807, 29897, 13, 1678, 620, 353, 15886, 29889, 29872, 1144, 398, 29898, 29872, 1144, 398, 29918, 710, 29892, 16256, 29918, 3221, 29918, 29896, 29892, 16256, 29918, 3221, 29918, 29906, 29897, 13, 1678, 363, 7136, 29918, 13140, 297, 3464, 29898, 29896, 29892, 29871, 299, 9893, 1125, 13, 418, 16256, 29918, 3221, 29918, 29896, 353, 260, 29873, 29918, 29896, 29889, 698, 29918, 29883, 2361, 29961, 3221, 29918, 13140, 29962, 13, 418, 16256, 29918, 3221, 29918, 29906, 353, 260, 29873, 29918, 29906, 29889, 698, 29918, 29883, 2361, 29961, 3221, 29918, 13140, 29962, 13, 418, 1011, 2083, 29918, 710, 353, 525, 29886, 29939, 562, 29892, 3274, 29912, 29900, 29913, 29890, 29892, 29939, 29883, 29912, 29900, 29913, 29881, 976, 29886, 29939, 6448, 4286, 4830, 29898, 8513, 29918, 1807, 29897, 13, 418, 620, 353, 15886, 29889, 29872, 1144, 398, 29898, 29872, 1144, 398, 29918, 710, 29892, 620, 29892, 16256, 29918, 3221, 29918, 29896, 29892, 16256, 29918, 3221, 29918, 29906, 29897, 13, 29871, 1683, 29901, 13, 1678, 396, 620, 29961, 29875, 29892, 432, 29962, 353, 260, 29873, 29918, 29896, 29961, 29875, 29962, 6228, 323, 334, 4636, 334, 260, 29873, 29918, 29906, 29961, 29926, 29962, 13, 1678, 565, 451, 260, 29873, 29918, 29896, 29889, 275, 29918, 698, 29918, 5344, 580, 470, 451, 260, 29873, 29918, 29906, 29889, 275, 29918, 698, 29918, 5344, 580, 470, 451, 4636, 29889, 275, 29918, 698, 29918, 5344, 7295, 13, 418, 12020, 7865, 2392, 877, 10401, 6819, 2211, 6273, 304, 5101, 3538, 29918, 20620, 29918, 3993, 29892, 525, 13, 462, 539, 525, 1552, 937, 29871, 29906, 310, 963, 881, 367, 323, 29911, 29899, 2003, 943, 322, 278, 1833, 525, 13, 462, 539, 525, 9344, 367, 263, 323, 29911, 29899, 5344, 29889, 15992, 1273, 29879, 29892, 1273, 29879, 29892, 322, 1273, 29879, 2012, 6169, 1273, 13, 462, 539, 313, 698, 29918, 29896, 29892, 260, 29873, 29918, 29906, 29892, 4636, 876, 13, 1678, 4636, 29918, 12181, 353, 4636, 29889, 657, 29918, 1610, 29918, 12181, 580, 13, 1678, 565, 451, 260, 29873, 29918, 29896, 29889, 657, 29918, 1610, 29918, 12181, 580, 29961, 29900, 1822, 275, 29918, 23712, 29918, 2541, 29898, 5344, 29918, 12181, 29961, 29900, 29962, 1125, 13, 418, 12020, 7865, 2392, 877, 1576, 8267, 310, 278, 937, 2980, 881, 367, 15878, 525, 13, 462, 539, 525, 2541, 278, 8267, 310, 278, 323, 29911, 29899, 5344, 29892, 393, 338, 372, 881, 367, 525, 13, 462, 539, 525, 27338, 304, 437, 278, 1494, 1775, 16109, 29901, 525, 13, 462, 539, 525, 3286, 4220, 29898, 698, 29918, 29896, 29897, 334, 4636, 29889, 15992, 278, 937, 2980, 525, 13, 462, 539, 18793, 29995, 29879, 29908, 322, 4636, 11860, 29879, 29908, 29915, 1273, 313, 698, 29918, 29896, 29892, 4636, 876, 13, 1678, 565, 451, 260, 29873, 29918, 29906, 29889, 657, 29918, 1610, 29918, 12181, 580, 29961, 29900, 1822, 275, 29918, 23712, 29918, 2541, 29898, 5344, 29918, 12181, 29961, 29896, 29962, 1125, 13, 418, 12020, 7865, 2392, 877, 1576, 8267, 310, 278, 1473, 2980, 881, 367, 15878, 525, 13, 462, 539, 525, 2541, 278, 8267, 310, 278, 323, 29911, 29899, 5344, 29892, 393, 338, 372, 881, 367, 525, 13, 462, 539, 525, 27338, 304, 437, 278, 1494, 1775, 16109, 29901, 525, 13, 462, 539, 525, 5344, 334, 260, 29873, 29918, 29906, 29889, 15992, 278, 1473, 2980, 525, 13, 462, 539, 18793, 29995, 29879, 29908, 322, 4636, 11860, 29879, 29908, 29915, 1273, 313, 698, 29918, 29906, 29892, 4636, 876, 13, 13, 1678, 12047, 29918, 29896, 29918, 12181, 353, 260, 29873, 29918, 29896, 29889, 657, 29918, 12181, 580, 13, 1678, 565, 12047, 29918, 29896, 29918, 12181, 29961, 29906, 29962, 1275, 29871, 29896, 322, 12047, 29918, 29896, 29918, 12181, 29961, 29896, 29962, 2804, 29871, 29896, 29901, 13, 418, 396, 14402, 29901, 451, 1407, 8543, 29892, 2253, 304, 671, 1422, 1797, 297, 1011, 2083, 29889, 13, 418, 260, 29873, 29918, 29896, 353, 288, 567, 29889, 3286, 4220, 29898, 698, 29918, 29896, 29897, 13, 1678, 12047, 29918, 29896, 29918, 12181, 353, 260, 29873, 29918, 29896, 29889, 657, 29918, 12181, 580, 13, 1678, 12047, 29918, 29906, 29918, 12181, 353, 260, 29873, 29918, 29906, 29889, 657, 29918, 12181, 580, 13, 1678, 565, 12047, 29918, 29906, 29918, 12181, 29961, 29906, 29962, 1275, 29871, 29896, 322, 12047, 29918, 29906, 29918, 12181, 29961, 29896, 29962, 2804, 29871, 29896, 29901, 13, 418, 396, 14402, 29901, 451, 1407, 8543, 29892, 2253, 304, 671, 1422, 1797, 297, 1011, 2083, 29889, 13, 418, 260, 29873, 29918, 29906, 353, 288, 567, 29889, 3286, 4220, 29898, 698, 29918, 29906, 29897, 13, 1678, 12047, 29918, 29906, 29918, 12181, 353, 260, 29873, 29918, 29906, 29889, 657, 29918, 12181, 580, 13, 1678, 565, 12047, 29918, 29896, 29918, 12181, 29961, 29896, 29962, 2804, 29871, 29896, 29901, 13, 418, 396, 14402, 29901, 437, 1554, 577, 393, 297, 1206, 278, 8267, 338, 7580, 373, 14835, 13, 418, 396, 372, 1603, 1736, 29889, 13, 418, 12020, 7865, 2392, 877, 1576, 260, 29873, 29918, 345, 14359, 29918, 29896, 2980, 881, 367, 12047, 313, 1333, 525, 13, 462, 539, 525, 2922, 11669, 29897, 411, 8267, 3342, 373, 14835, 29889, 1495, 13, 1678, 565, 12047, 29918, 29906, 29918, 12181, 29961, 29896, 29962, 2804, 29871, 29896, 29901, 13, 418, 396, 14402, 29901, 437, 1554, 577, 393, 297, 1206, 278, 8267, 338, 7580, 373, 14835, 13, 418, 396, 372, 1603, 1736, 29889, 13, 418, 12020, 7865, 2392, 877, 1576, 260, 29873, 29918, 345, 14359, 29918, 29906, 2980, 881, 367, 12047, 313, 1333, 525, 13, 462, 539, 525, 2922, 11669, 29897, 411, 8267, 3342, 373, 14835, 29889, 1495, 13, 1678, 16256, 29918, 3221, 29918, 29896, 353, 260, 29873, 29918, 29896, 29889, 698, 29918, 29883, 2361, 29961, 29900, 29962, 13, 1678, 16256, 29918, 3221, 29918, 29906, 353, 260, 29873, 29918, 29906, 29889, 698, 29918, 29883, 2361, 29961, 29900, 29962, 13, 1678, 16256, 29918, 5344, 29918, 3221, 353, 4636, 29889, 698, 29918, 29883, 2361, 29961, 29900, 29962, 13, 1678, 396, 1334, 26985, 278, 20254, 9927, 313, 5747, 4893, 29871, 29896, 995, 29897, 411, 421, 29895, 1412, 13, 1678, 620, 353, 15886, 29889, 29872, 1144, 398, 877, 29886, 557, 747, 29892, 455, 26012, 29892, 29939, 1416, 29926, 29888, 976, 29886, 29939, 29890, 2176, 742, 16256, 29918, 3221, 29918, 29896, 29892, 16256, 29918, 5344, 29918, 3221, 29892, 13, 462, 1678, 16256, 29918, 3221, 29918, 29906, 29897, 13, 1678, 363, 7136, 29918, 13140, 297, 3464, 29898, 29896, 29892, 29871, 299, 9893, 1125, 13, 418, 16256, 29918, 3221, 29918, 29896, 353, 260, 29873, 29918, 29896, 29889, 698, 29918, 29883, 2361, 29961, 3221, 29918, 13140, 29962, 13, 418, 16256, 29918, 3221, 29918, 29906, 353, 260, 29873, 29918, 29906, 29889, 698, 29918, 29883, 2361, 29961, 3221, 29918, 13140, 29962, 13, 418, 16256, 29918, 5344, 29918, 3221, 353, 4636, 29889, 698, 29918, 29883, 2361, 29961, 3221, 29918, 13140, 29962, 13, 418, 620, 353, 15886, 29889, 29872, 1144, 398, 877, 29886, 29939, 815, 29892, 29886, 557, 747, 29892, 455, 26012, 29892, 29939, 1416, 29926, 29888, 976, 29886, 29939, 29890, 2176, 742, 620, 29892, 16256, 29918, 3221, 29918, 29896, 29892, 13, 462, 418, 16256, 29918, 5344, 29918, 3221, 29892, 16256, 29918, 3221, 29918, 29906, 29897, 13, 13, 29871, 396, 317, 802, 29872, 911, 304, 1207, 278, 1121, 310, 2159, 9853, 29918, 2311, 921, 9853, 29918, 2311, 2012, 310, 13, 29871, 396, 9853, 29918, 2311, 921, 9853, 29918, 2311, 921, 29871, 29896, 921, 29871, 29896, 29889, 13, 29871, 736, 15886, 29889, 29879, 802, 29872, 911, 29898, 690, 29897, 13, 2 ]
account/admin.py
RichardLeeH/invoce_sys
0
8968
<gh_stars>0 # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from rest_framework.authtoken.models import Token from account.models import Profile admin.site.site_header = 'invoce' class TokenAdmin(admin.ModelAdmin): list_display = ('key', 'uid', 'user', 'created') fields = ('user',) ordering = ('-created',) def uid(self, obj): return obj.user.id uid.short_description = u'用户ID' admin.site.unregister(Token) admin.site.register(Token, TokenAdmin) class ProfileInline(admin.StackedInline): model = Profile class UserCustomAdmin(UserAdmin): list_display = ('id', 'username', 'email', 'is_active', 'is_staff') inlines = (ProfileInline, ) ordering = ('-id', ) admin.site.unregister(User) admin.site.register(User, UserCustomAdmin)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 3166, 4770, 29888, 9130, 1649, 1053, 29104, 29918, 20889, 1338, 13, 13, 3166, 9557, 29889, 21570, 1053, 4113, 13, 3166, 9557, 29889, 21570, 29889, 5150, 29889, 6406, 1053, 4911, 12754, 13, 3166, 9557, 29889, 21570, 29889, 5150, 29889, 9794, 1053, 4911, 13, 3166, 1791, 29918, 4468, 29889, 1300, 400, 4476, 29889, 9794, 1053, 25159, 13, 13, 3166, 3633, 29889, 9794, 1053, 20802, 13, 13, 6406, 29889, 2746, 29889, 2746, 29918, 6672, 353, 525, 262, 1365, 346, 29915, 13, 13, 13, 1990, 25159, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 1051, 29918, 4990, 353, 6702, 1989, 742, 525, 5416, 742, 525, 1792, 742, 525, 11600, 1495, 13, 1678, 4235, 353, 6702, 1792, 742, 29897, 13, 1678, 20520, 353, 6702, 29899, 11600, 742, 29897, 13, 13, 1678, 822, 318, 333, 29898, 1311, 29892, 5446, 1125, 13, 4706, 736, 5446, 29889, 1792, 29889, 333, 13, 1678, 318, 333, 29889, 12759, 29918, 8216, 353, 318, 29915, 30406, 31229, 1367, 29915, 13, 13, 6406, 29889, 2746, 29889, 348, 9573, 29898, 6066, 29897, 13, 6406, 29889, 2746, 29889, 9573, 29898, 6066, 29892, 25159, 12754, 29897, 13, 13, 13, 1990, 20802, 797, 1220, 29898, 6406, 29889, 7264, 287, 797, 1220, 1125, 13, 1678, 1904, 353, 20802, 13, 13, 13, 1990, 4911, 7281, 12754, 29898, 2659, 12754, 1125, 13, 1678, 1051, 29918, 4990, 353, 6702, 333, 742, 525, 6786, 742, 525, 5269, 742, 525, 275, 29918, 4925, 742, 525, 275, 29918, 303, 3470, 1495, 13, 1678, 297, 9012, 353, 313, 13909, 797, 1220, 29892, 1723, 13, 1678, 20520, 353, 6702, 29899, 333, 742, 1723, 13, 13, 6406, 29889, 2746, 29889, 348, 9573, 29898, 2659, 29897, 13, 6406, 29889, 2746, 29889, 9573, 29898, 2659, 29892, 4911, 7281, 12754, 29897, 13, 2 ]
1.n_gram.py
Muraru-taketa/100_knocks
0
165976
#N_gram.py #owakatiの分かち書きをする。uni=1,bi=2 tri=3 '''どうやったら分かち書きになるか 今日は眠いをbigramに手動ですると 今日、日は、は眠、眠い 今で始まって日で終わる感じで定義する。''' def n_gram(txt, n): #n=n_garmのn result = [] for i in range(0, len(txt) - n + 1):#例:今日という単語からn個(2)-で+1すると日から始まる result.append(txt[i:i + n]) #iで始まってi+n(nは指定分割個数的なやつ) return result txt = "I am an NLPer" words = txt.split(' ') #文字分け print(n_gram(txt, 2)) #単語 print(n_gram(words, 2))
[ 1, 396, 29940, 29918, 1393, 29889, 2272, 30004, 13, 29937, 340, 557, 2219, 30199, 30748, 30412, 30644, 30854, 30538, 30396, 30427, 30332, 30267, 3909, 29922, 29896, 29892, 5365, 29922, 29906, 3367, 29922, 29941, 30004, 13, 12008, 31250, 30465, 31111, 30665, 30366, 30513, 30748, 30412, 30644, 30854, 30538, 30353, 30371, 30332, 30412, 30004, 13, 31482, 30325, 30449, 234, 159, 163, 30298, 30396, 3752, 2572, 30353, 30880, 31124, 30499, 30427, 30332, 30364, 30004, 13, 31482, 30325, 30330, 30325, 30449, 30330, 30449, 234, 159, 163, 30330, 234, 159, 163, 30298, 30004, 13, 31482, 30499, 31020, 30441, 30665, 30466, 30325, 30499, 234, 184, 133, 31068, 30332, 233, 135, 162, 31115, 30499, 30495, 31131, 30427, 30332, 30267, 12008, 30004, 13, 1753, 302, 29918, 1393, 29898, 3945, 29892, 302, 1125, 30004, 13, 29937, 29876, 29922, 29876, 29918, 29887, 2817, 30199, 29876, 30004, 13, 1678, 1121, 353, 5159, 30004, 13, 1678, 363, 474, 297, 3464, 29898, 29900, 29892, 7431, 29898, 3945, 29897, 448, 302, 718, 29871, 29896, 1125, 29937, 31507, 30383, 31482, 30325, 30364, 30298, 30465, 232, 144, 155, 30968, 30412, 30513, 29876, 232, 131, 142, 29898, 29906, 6817, 30499, 29974, 29896, 30427, 30332, 30364, 30325, 30412, 30513, 31020, 30441, 30332, 30004, 13, 4706, 1121, 29889, 4397, 29898, 3945, 29961, 29875, 29901, 29875, 718, 302, 2314, 30004, 13, 29937, 29875, 30499, 31020, 30441, 30665, 30466, 29875, 29974, 29876, 29898, 29876, 30449, 31084, 30495, 30748, 232, 140, 181, 232, 131, 142, 30354, 30210, 30371, 31111, 30773, 8443, 13, 1678, 736, 1121, 30004, 13, 30004, 13, 3945, 353, 376, 29902, 626, 385, 405, 29931, 5894, 19451, 13, 9303, 353, 13872, 29889, 5451, 877, 525, 8443, 13, 29937, 30333, 30578, 30748, 30807, 30004, 13, 2158, 29898, 29876, 29918, 1393, 29898, 3945, 29892, 29871, 29906, 876, 30004, 13, 29937, 232, 144, 155, 30968, 30004, 13, 2158, 29898, 29876, 29918, 1393, 29898, 9303, 29892, 29871, 29906, 876, 2 ]
examples/chem_equil.py
bjodah/symneqsys
1
126346
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division, print_function """ Example of a 4 dimensional root finidng problem (chemical acid/base equilbria) """ from sympy import pprint from symneqsys import SimpleNEQSys, Problem from symneqsys.minpack import MINPACK_Solver class ChemSys(SimpleNEQSys): var_tokens = 'NH3 NH4p Hp OHm H2O' param_tokens = 'Kw Ka ' + ' '.join(['init_'+x for x in var_tokens.split()]) @property def exprs(self): NH3, NH4p, Hp, OHm, H2O, Kw, Ka = [ self[token] for token in ('NH3', 'NH4p', 'Hp', 'OHm', 'H2O', 'Kw', 'Ka')] init = {x: self['init_'+x] for x in self.var_tokens.split()} return [ Hp*NH3/NH4p-Ka, # NH4+ acid equil Hp*OHm/H2O-Kw, # Water autoprotolysis equilibrium NH3+NH4p-init['NH3']-init['NH4p'], # preserv. of N atoms 3*NH3+4*NH4p+Hp+OHm+2*H2O-( 3*init['NH3']+4*init['NH4p'] + init['Hp']+init['OHm']+2*init['H2O']), # prsrv H atoms OHm+H2O-init['OHm']-init['H2O'], # preservation of O atoms NH4p+Hp-OHm-(init['NH4p']+init['Hp'] - init['OHm']) # preservation of charge ] def main(Sys, logger=None): """ Solve the example system using Levenberg-Marquardt algorithm from Netlib's MINPACK fortran code. """ sys = Sys() print('Variables:') pprint(sys.v) print('Expressions:') for expr in sys.exprs: pprint(expr) print('Jacobian:') pprint(sys.jac) solver = MINPACK_Solver( save_temp=True, tempdir='./build/chem_equil', logger=logger) solver.abstol = 1e-8 params = {'Kw': 1e-14, 'Ka': 10**-9.26} init = {'NH3': 1e-3, 'NH4p': 0.0, 'Hp': 1e-7, 'OHm': 1e-7, 'H2O': 1.0} params.update({'init_'+key: val for key, val in init.iteritems()}) problem = Problem( sys, params, guess={ k: v if v > 1e-12 else 1e-12 for k, v in init.iteritems()}, solver=solver) success = problem.solve(itermax=100, solver_type='lm') if success: print("Successfully found a root: " + ", ".join([key+'='+str(problem.solution[sys[key]]) for key in init.keys()]) + ", using Levenberg-Marquard (lm)") else: print("Root-finding unsuccessful.") print('Full numerical info:', problem.solver.num_result) if __name__ == '__main__': import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) main(ChemSys, logger=logger)
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8542, 29892, 1596, 29918, 2220, 13, 13, 15945, 29908, 13, 14023, 310, 263, 29871, 29946, 22112, 3876, 1436, 333, 865, 1108, 313, 14969, 936, 13, 562, 333, 29914, 3188, 1592, 309, 29890, 2849, 29897, 13, 15945, 29908, 13, 13, 3166, 5016, 2272, 1053, 282, 2158, 13, 13, 3166, 5016, 10743, 9675, 1053, 12545, 8186, 29984, 29903, 952, 29892, 11583, 13, 3166, 5016, 10743, 9675, 29889, 1195, 4058, 1053, 341, 1177, 29925, 11375, 29918, 13296, 369, 13, 13, 13, 1990, 12677, 29903, 952, 29898, 15427, 8186, 29984, 29903, 952, 1125, 13, 1678, 722, 29918, 517, 12360, 353, 525, 29940, 29950, 29941, 405, 29950, 29946, 29886, 379, 29886, 438, 29950, 29885, 379, 29906, 29949, 29915, 13, 1678, 1828, 29918, 517, 12360, 353, 525, 29968, 29893, 13680, 525, 718, 525, 15300, 7122, 18959, 2344, 29918, 18717, 29916, 363, 921, 297, 722, 29918, 517, 12360, 29889, 5451, 580, 2314, 13, 13, 1678, 732, 6799, 13, 1678, 822, 22010, 29879, 29898, 1311, 1125, 13, 4706, 405, 29950, 29941, 29892, 405, 29950, 29946, 29886, 29892, 379, 29886, 29892, 438, 29950, 29885, 29892, 379, 29906, 29949, 29892, 476, 29893, 29892, 13680, 353, 518, 13, 9651, 1583, 29961, 6979, 29962, 363, 5993, 297, 6702, 29940, 29950, 29941, 742, 525, 29940, 29950, 29946, 29886, 742, 525, 29950, 29886, 742, 13, 462, 462, 418, 525, 23170, 29885, 742, 525, 29950, 29906, 29949, 742, 525, 29968, 29893, 742, 525, 29968, 29874, 1495, 29962, 13, 4706, 2069, 353, 426, 29916, 29901, 1583, 1839, 2344, 29918, 18717, 29916, 29962, 363, 921, 297, 1583, 29889, 1707, 29918, 517, 12360, 29889, 5451, 28296, 13, 4706, 736, 518, 13, 9651, 379, 29886, 29930, 29940, 29950, 29941, 29914, 29940, 29950, 29946, 29886, 29899, 29968, 29874, 29892, 29871, 396, 405, 29950, 29946, 29974, 22193, 1592, 309, 13, 9651, 379, 29886, 29930, 23170, 29885, 29914, 29950, 29906, 29949, 29899, 29968, 29893, 29892, 29871, 396, 13062, 1120, 459, 5450, 324, 4848, 26440, 13, 9651, 405, 29950, 29941, 29974, 29940, 29950, 29946, 29886, 29899, 2344, 1839, 29940, 29950, 29941, 2033, 29899, 2344, 1839, 29940, 29950, 29946, 29886, 7464, 29871, 396, 2225, 6972, 29889, 310, 405, 28422, 13, 632, 29941, 29930, 29940, 29950, 29941, 29974, 29946, 29930, 29940, 29950, 29946, 29886, 29974, 29950, 29886, 29974, 23170, 29885, 29974, 29906, 29930, 29950, 29906, 29949, 17722, 13, 462, 29941, 29930, 2344, 1839, 29940, 29950, 29941, 2033, 29974, 29946, 29930, 2344, 1839, 29940, 29950, 29946, 29886, 2033, 718, 13, 18884, 2069, 1839, 29950, 29886, 2033, 29974, 2344, 1839, 23170, 29885, 2033, 29974, 29906, 29930, 2344, 1839, 29950, 29906, 29949, 2033, 511, 29871, 396, 544, 29879, 15291, 379, 28422, 13, 9651, 438, 29950, 29885, 29974, 29950, 29906, 29949, 29899, 2344, 1839, 23170, 29885, 2033, 29899, 2344, 1839, 29950, 29906, 29949, 7464, 29871, 396, 2225, 20525, 310, 438, 28422, 13, 9651, 405, 29950, 29946, 29886, 29974, 29950, 29886, 29899, 23170, 29885, 17722, 2344, 1839, 29940, 29950, 29946, 29886, 2033, 29974, 2344, 1839, 29950, 29886, 2033, 448, 13, 462, 308, 2069, 1839, 23170, 29885, 11287, 29871, 396, 2225, 20525, 310, 8323, 13, 4706, 4514, 13, 13, 13, 1753, 1667, 29898, 29903, 952, 29892, 17927, 29922, 8516, 1125, 13, 1678, 9995, 13, 1678, 4956, 345, 278, 1342, 1788, 773, 951, 854, 2552, 29899, 7083, 339, 538, 29873, 5687, 13, 1678, 515, 12670, 1982, 29915, 29879, 341, 1177, 29925, 11375, 363, 509, 273, 775, 29889, 13, 1678, 9995, 13, 13, 1678, 10876, 353, 317, 952, 580, 13, 1678, 1596, 877, 10444, 1849, 29901, 1495, 13, 1678, 282, 2158, 29898, 9675, 29889, 29894, 29897, 13, 1678, 1596, 877, 27404, 1080, 29901, 1495, 13, 1678, 363, 22010, 297, 10876, 29889, 13338, 29879, 29901, 13, 4706, 282, 2158, 29898, 13338, 29897, 13, 1678, 1596, 877, 24288, 711, 713, 29901, 1495, 13, 1678, 282, 2158, 29898, 9675, 29889, 29926, 562, 29897, 13, 1678, 899, 369, 353, 341, 1177, 29925, 11375, 29918, 13296, 369, 29898, 13, 4706, 4078, 29918, 7382, 29922, 5574, 29892, 5694, 3972, 2433, 6904, 4282, 29914, 14969, 29918, 1686, 309, 742, 13, 4706, 17927, 29922, 21707, 29897, 13, 1678, 899, 369, 29889, 370, 303, 324, 353, 29871, 29896, 29872, 29899, 29947, 13, 1678, 8636, 353, 11117, 29968, 29893, 2396, 29871, 29896, 29872, 29899, 29896, 29946, 29892, 525, 29968, 29874, 2396, 29871, 29896, 29900, 1068, 29899, 29929, 29889, 29906, 29953, 29913, 13, 1678, 2069, 353, 11117, 29940, 29950, 29941, 2396, 29871, 29896, 29872, 29899, 29941, 29892, 525, 29940, 29950, 29946, 29886, 2396, 29871, 29900, 29889, 29900, 29892, 525, 29950, 29886, 2396, 29871, 29896, 29872, 29899, 29955, 29892, 13, 9651, 525, 23170, 29885, 2396, 29871, 29896, 29872, 29899, 29955, 29892, 525, 29950, 29906, 29949, 2396, 29871, 29896, 29889, 29900, 29913, 13, 1678, 8636, 29889, 5504, 3319, 29915, 2344, 29918, 18717, 1989, 29901, 659, 363, 1820, 29892, 659, 297, 2069, 29889, 1524, 7076, 580, 1800, 13, 1678, 1108, 353, 11583, 29898, 13, 4706, 10876, 29892, 8636, 29892, 4140, 3790, 13, 9651, 413, 29901, 325, 565, 325, 1405, 29871, 29896, 29872, 29899, 29896, 29906, 1683, 29871, 29896, 29872, 29899, 29896, 29906, 363, 413, 29892, 325, 297, 2069, 29889, 1524, 7076, 580, 1118, 13, 4706, 899, 369, 29922, 2929, 369, 29897, 13, 13, 1678, 2551, 353, 1108, 29889, 2929, 345, 29898, 1524, 3317, 29922, 29896, 29900, 29900, 29892, 899, 369, 29918, 1853, 2433, 21457, 1495, 13, 13, 1678, 565, 2551, 29901, 13, 4706, 1596, 703, 14191, 3730, 1476, 263, 3876, 29901, 376, 718, 13, 795, 9162, 11393, 7122, 4197, 1989, 23097, 2433, 29974, 710, 29898, 17199, 29889, 2929, 918, 29961, 9675, 29961, 1989, 24960, 363, 13, 462, 308, 1820, 297, 2069, 29889, 8149, 580, 2314, 718, 13, 795, 9162, 773, 951, 854, 2552, 29899, 7083, 339, 538, 313, 21457, 25760, 13, 1678, 1683, 29901, 13, 4706, 1596, 703, 10303, 29899, 2886, 292, 443, 8698, 1319, 23157, 13, 1678, 1596, 877, 13658, 16259, 5235, 29901, 742, 1108, 29889, 2929, 369, 29889, 1949, 29918, 2914, 29897, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1053, 12183, 13, 1678, 12183, 29889, 16121, 3991, 29898, 5563, 29922, 21027, 29889, 11690, 29897, 13, 1678, 17927, 353, 12183, 29889, 657, 16363, 22168, 978, 1649, 29897, 13, 1678, 1667, 29898, 1451, 331, 29903, 952, 29892, 17927, 29922, 21707, 29897, 13, 2 ]
bfgame/components/shield.py
ChrisLR/BasicDungeonRL
3
42257
<reponame>ChrisLR/BasicDungeonRL from core.components import Component, listing @listing.register class Shield(Component): NAME = "shield" __slots__ = ["armor_class_melee", "armor_class_missile"] def __init__(self, armor_class_melee, armor_class_missile): super().__init__() self.armor_class_melee = armor_class_melee self.armor_class_missile = armor_class_missile def copy(self): return Shield(self.armor_class_melee, self.armor_class_missile)
[ 1, 529, 276, 1112, 420, 29958, 11626, 275, 29519, 29914, 16616, 29928, 19440, 265, 2241, 13, 3166, 7136, 29889, 14036, 1053, 15924, 29892, 18028, 13, 13, 13, 29992, 1761, 292, 29889, 9573, 13, 1990, 1383, 969, 29898, 5308, 1125, 13, 1678, 27085, 353, 376, 845, 969, 29908, 13, 1678, 4770, 2536, 1862, 1649, 353, 6796, 2817, 272, 29918, 1990, 29918, 1004, 17179, 613, 376, 2817, 272, 29918, 1990, 29918, 9894, 488, 3108, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 5075, 272, 29918, 1990, 29918, 1004, 17179, 29892, 5075, 272, 29918, 1990, 29918, 9894, 488, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 2817, 272, 29918, 1990, 29918, 1004, 17179, 353, 5075, 272, 29918, 1990, 29918, 1004, 17179, 13, 4706, 1583, 29889, 2817, 272, 29918, 1990, 29918, 9894, 488, 353, 5075, 272, 29918, 1990, 29918, 9894, 488, 13, 13, 1678, 822, 3509, 29898, 1311, 1125, 13, 4706, 736, 1383, 969, 29898, 1311, 29889, 2817, 272, 29918, 1990, 29918, 1004, 17179, 29892, 1583, 29889, 2817, 272, 29918, 1990, 29918, 9894, 488, 29897, 13, 2 ]
src/nise/metadata/config.py
kurtp-ni/nimi-python
88
94005
# -*- coding: utf-8 -*- # This file is generated from NI Switch Executive API metadata version 21.0.0d1 config = { 'api_version': '21.0.0d1', 'c_function_prefix': 'niSE_', 'close_function': 'CloseSession', 'context_manager_name': { }, 'custom_types': [ ], 'driver_name': 'NI Switch Executive', 'driver_registry': 'Switch Executive', 'extra_errors_used': [ 'InvalidRepeatedCapabilityError' ], 'init_function': 'OpenSession', 'library_info': { 'Linux': { '64bit': { 'name': 'nise', 'type': 'cdll' } }, 'Windows': { '32bit': { 'name': 'nise.dll', 'type': 'windll' }, '64bit': { 'name': 'nise.dll', 'type': 'cdll' } } }, 'metadata_version': '2.0', 'module_name': 'nise', 'repeated_capabilities': [ ], 'session_class_description': 'An NI Switch Executive session', 'session_handle_parameter_name': 'vi', 'use_locking': False }
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 910, 934, 338, 5759, 515, 405, 29902, 28176, 28841, 3450, 15562, 1873, 29871, 29906, 29896, 29889, 29900, 29889, 29900, 29881, 29896, 13, 2917, 353, 426, 13, 1678, 525, 2754, 29918, 3259, 2396, 525, 29906, 29896, 29889, 29900, 29889, 29900, 29881, 29896, 742, 13, 1678, 525, 29883, 29918, 2220, 29918, 13506, 2396, 525, 1240, 1660, 29918, 742, 13, 1678, 525, 5358, 29918, 2220, 2396, 525, 11123, 7317, 742, 13, 1678, 525, 4703, 29918, 12847, 29918, 978, 2396, 426, 13, 1678, 2981, 13, 1678, 525, 6341, 29918, 8768, 2396, 518, 13, 1678, 21251, 13, 1678, 525, 9465, 29918, 978, 2396, 525, 12916, 28176, 28841, 742, 13, 1678, 525, 9465, 29918, 1727, 6020, 2396, 525, 24995, 28841, 742, 13, 1678, 525, 17833, 29918, 12523, 29918, 3880, 2396, 518, 13, 4706, 525, 13919, 1123, 412, 630, 12415, 3097, 2392, 29915, 13, 1678, 21251, 13, 1678, 525, 2344, 29918, 2220, 2396, 525, 6585, 7317, 742, 13, 1678, 525, 5258, 29918, 3888, 2396, 426, 13, 4706, 525, 24085, 2396, 426, 13, 9651, 525, 29953, 29946, 2966, 2396, 426, 13, 18884, 525, 978, 2396, 525, 29876, 895, 742, 13, 18884, 525, 1853, 2396, 525, 2252, 645, 29915, 13, 9651, 500, 13, 4706, 2981, 13, 4706, 525, 7685, 2396, 426, 13, 9651, 525, 29941, 29906, 2966, 2396, 426, 13, 18884, 525, 978, 2396, 525, 29876, 895, 29889, 12396, 742, 13, 18884, 525, 1853, 2396, 525, 14800, 645, 29915, 13, 9651, 2981, 13, 9651, 525, 29953, 29946, 2966, 2396, 426, 13, 18884, 525, 978, 2396, 525, 29876, 895, 29889, 12396, 742, 13, 18884, 525, 1853, 2396, 525, 2252, 645, 29915, 13, 9651, 500, 13, 4706, 500, 13, 1678, 2981, 13, 1678, 525, 19635, 29918, 3259, 2396, 525, 29906, 29889, 29900, 742, 13, 1678, 525, 5453, 29918, 978, 2396, 525, 29876, 895, 742, 13, 1678, 525, 276, 412, 630, 29918, 5030, 11614, 2396, 518, 13, 1678, 21251, 13, 1678, 525, 7924, 29918, 1990, 29918, 8216, 2396, 525, 2744, 405, 29902, 28176, 28841, 4867, 742, 13, 1678, 525, 7924, 29918, 8411, 29918, 15501, 29918, 978, 2396, 525, 1403, 742, 13, 1678, 525, 1509, 29918, 908, 292, 2396, 7700, 13, 29913, 13, 2 ]
convert.py
Resist4263/span-aste-1
0
22540
<filename>convert.py<gh_stars>0 from gensim.scripts.glove2word2vec import glove2word2vec (count, dimensions) = glove2word2vec("dataset/glove.42B.300d.txt", "dataset/cropus/42B_w2v.txt")
[ 1, 529, 9507, 29958, 13441, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 26943, 326, 29889, 16713, 29889, 29887, 417, 345, 29906, 1742, 29906, 2003, 1053, 15482, 345, 29906, 1742, 29906, 2003, 13, 13, 29898, 2798, 29892, 13391, 29897, 353, 15482, 345, 29906, 1742, 29906, 2003, 703, 24713, 29914, 29887, 417, 345, 29889, 29946, 29906, 29933, 29889, 29941, 29900, 29900, 29881, 29889, 3945, 613, 376, 24713, 29914, 29883, 1336, 375, 29914, 29946, 29906, 29933, 29918, 29893, 29906, 29894, 29889, 3945, 1159, 2 ]
zhiliao/blog/__init__.py
gladgod/zhiliao
0
135462
""" Provides a blogging app with posts, keywords, categories and comments. Posts can be listed by month, keyword, category or author. """ from __future__ import unicode_literals from zhiliao import __version__
[ 1, 9995, 13, 1184, 29894, 2247, 263, 12618, 3460, 623, 411, 11803, 29892, 29361, 29892, 13997, 322, 6589, 29889, 13, 6747, 29879, 508, 367, 9904, 491, 4098, 29892, 13553, 29892, 7663, 470, 4148, 29889, 13, 15945, 29908, 13, 3166, 4770, 29888, 9130, 1649, 1053, 29104, 29918, 20889, 1338, 13, 13, 3166, 503, 29882, 11836, 29877, 1053, 4770, 3259, 1649, 13, 2 ]
wavefront_api_client/models/customer_preferences.py
mdennehy/python-client
0
71969
# coding: utf-8 """ Wavefront REST API <p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer &lt;&lt;API-TOKEN&gt;&gt;\" to your HTTP requests.</p> # noqa: E501 OpenAPI spec version: v2 Contact: <EMAIL> Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from wavefront_api_client.models.user_group import UserGroup # noqa: F401,E501 class CustomerPreferences(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'blacklisted_emails': 'dict(str, int)', 'created_epoch_millis': 'int', 'creator_id': 'str', 'customer_id': 'str', 'default_user_groups': 'list[UserGroup]', 'deleted': 'bool', 'grant_modify_access_to_everyone': 'bool', 'hidden_metric_prefixes': 'dict(str, int)', 'hide_ts_when_querybuilder_shown': 'bool', 'id': 'str', 'invite_permissions': 'list[str]', 'landing_dashboard_slug': 'str', 'show_onboarding': 'bool', 'show_querybuilder_by_default': 'bool', 'updated_epoch_millis': 'int', 'updater_id': 'str' } attribute_map = { 'blacklisted_emails': 'blacklistedEmails', 'created_epoch_millis': 'createdEpochMillis', 'creator_id': 'creatorId', 'customer_id': 'customerId', 'default_user_groups': 'defaultUserGroups', 'deleted': 'deleted', 'grant_modify_access_to_everyone': 'grantModifyAccessToEveryone', 'hidden_metric_prefixes': 'hiddenMetricPrefixes', 'hide_ts_when_querybuilder_shown': 'hideTSWhenQuerybuilderShown', 'id': 'id', 'invite_permissions': 'invitePermissions', 'landing_dashboard_slug': 'landingDashboardSlug', 'show_onboarding': 'showOnboarding', 'show_querybuilder_by_default': 'showQuerybuilderByDefault', 'updated_epoch_millis': 'updatedEpochMillis', 'updater_id': 'updaterId' } def __init__(self, blacklisted_emails=None, created_epoch_millis=None, creator_id=None, customer_id=None, default_user_groups=None, deleted=None, grant_modify_access_to_everyone=None, hidden_metric_prefixes=None, hide_ts_when_querybuilder_shown=None, id=None, invite_permissions=None, landing_dashboard_slug=None, show_onboarding=None, show_querybuilder_by_default=None, updated_epoch_millis=None, updater_id=None): # noqa: E501 """CustomerPreferences - a model defined in Swagger""" # noqa: E501 self._blacklisted_emails = None self._created_epoch_millis = None self._creator_id = None self._customer_id = None self._default_user_groups = None self._deleted = None self._grant_modify_access_to_everyone = None self._hidden_metric_prefixes = None self._hide_ts_when_querybuilder_shown = None self._id = None self._invite_permissions = None self._landing_dashboard_slug = None self._show_onboarding = None self._show_querybuilder_by_default = None self._updated_epoch_millis = None self._updater_id = None self.discriminator = None if blacklisted_emails is not None: self.blacklisted_emails = blacklisted_emails if created_epoch_millis is not None: self.created_epoch_millis = created_epoch_millis if creator_id is not None: self.creator_id = creator_id self.customer_id = customer_id if default_user_groups is not None: self.default_user_groups = default_user_groups if deleted is not None: self.deleted = deleted self.grant_modify_access_to_everyone = grant_modify_access_to_everyone if hidden_metric_prefixes is not None: self.hidden_metric_prefixes = hidden_metric_prefixes self.hide_ts_when_querybuilder_shown = hide_ts_when_querybuilder_shown if id is not None: self.id = id if invite_permissions is not None: self.invite_permissions = invite_permissions if landing_dashboard_slug is not None: self.landing_dashboard_slug = landing_dashboard_slug self.show_onboarding = show_onboarding self.show_querybuilder_by_default = show_querybuilder_by_default if updated_epoch_millis is not None: self.updated_epoch_millis = updated_epoch_millis if updater_id is not None: self.updater_id = updater_id @property def blacklisted_emails(self): """Gets the blacklisted_emails of this CustomerPreferences. # noqa: E501 List of blacklisted emails of the customer # noqa: E501 :return: The blacklisted_emails of this CustomerPreferences. # noqa: E501 :rtype: dict(str, int) """ return self._blacklisted_emails @blacklisted_emails.setter def blacklisted_emails(self, blacklisted_emails): """Sets the blacklisted_emails of this CustomerPreferences. List of blacklisted emails of the customer # noqa: E501 :param blacklisted_emails: The blacklisted_emails of this CustomerPreferences. # noqa: E501 :type: dict(str, int) """ self._blacklisted_emails = blacklisted_emails @property def created_epoch_millis(self): """Gets the created_epoch_millis of this CustomerPreferences. # noqa: E501 :return: The created_epoch_millis of this CustomerPreferences. # noqa: E501 :rtype: int """ return self._created_epoch_millis @created_epoch_millis.setter def created_epoch_millis(self, created_epoch_millis): """Sets the created_epoch_millis of this CustomerPreferences. :param created_epoch_millis: The created_epoch_millis of this CustomerPreferences. # noqa: E501 :type: int """ self._created_epoch_millis = created_epoch_millis @property def creator_id(self): """Gets the creator_id of this CustomerPreferences. # noqa: E501 :return: The creator_id of this CustomerPreferences. # noqa: E501 :rtype: str """ return self._creator_id @creator_id.setter def creator_id(self, creator_id): """Sets the creator_id of this CustomerPreferences. :param creator_id: The creator_id of this CustomerPreferences. # noqa: E501 :type: str """ self._creator_id = creator_id @property def customer_id(self): """Gets the customer_id of this CustomerPreferences. # noqa: E501 The id of the customer preferences are attached to # noqa: E501 :return: The customer_id of this CustomerPreferences. # noqa: E501 :rtype: str """ return self._customer_id @customer_id.setter def customer_id(self, customer_id): """Sets the customer_id of this CustomerPreferences. The id of the customer preferences are attached to # noqa: E501 :param customer_id: The customer_id of this CustomerPreferences. # noqa: E501 :type: str """ if customer_id is None: raise ValueError("Invalid value for `customer_id`, must not be `None`") # noqa: E501 self._customer_id = customer_id @property def default_user_groups(self): """Gets the default_user_groups of this CustomerPreferences. # noqa: E501 List of default user groups of the customer # noqa: E501 :return: The default_user_groups of this CustomerPreferences. # noqa: E501 :rtype: list[UserGroup] """ return self._default_user_groups @default_user_groups.setter def default_user_groups(self, default_user_groups): """Sets the default_user_groups of this CustomerPreferences. List of default user groups of the customer # noqa: E501 :param default_user_groups: The default_user_groups of this CustomerPreferences. # noqa: E501 :type: list[UserGroup] """ self._default_user_groups = default_user_groups @property def deleted(self): """Gets the deleted of this CustomerPreferences. # noqa: E501 :return: The deleted of this CustomerPreferences. # noqa: E501 :rtype: bool """ return self._deleted @deleted.setter def deleted(self, deleted): """Sets the deleted of this CustomerPreferences. :param deleted: The deleted of this CustomerPreferences. # noqa: E501 :type: bool """ self._deleted = deleted @property def grant_modify_access_to_everyone(self): """Gets the grant_modify_access_to_everyone of this CustomerPreferences. # noqa: E501 Whether modify access of new entites is granted to Everyone or to the Creator # noqa: E501 :return: The grant_modify_access_to_everyone of this CustomerPreferences. # noqa: E501 :rtype: bool """ return self._grant_modify_access_to_everyone @grant_modify_access_to_everyone.setter def grant_modify_access_to_everyone(self, grant_modify_access_to_everyone): """Sets the grant_modify_access_to_everyone of this CustomerPreferences. Whether modify access of new entites is granted to Everyone or to the Creator # noqa: E501 :param grant_modify_access_to_everyone: The grant_modify_access_to_everyone of this CustomerPreferences. # noqa: E501 :type: bool """ if grant_modify_access_to_everyone is None: raise ValueError("Invalid value for `grant_modify_access_to_everyone`, must not be `None`") # noqa: E501 self._grant_modify_access_to_everyone = grant_modify_access_to_everyone @property def hidden_metric_prefixes(self): """Gets the hidden_metric_prefixes of this CustomerPreferences. # noqa: E501 Metric prefixes which should be hidden from user # noqa: E501 :return: The hidden_metric_prefixes of this CustomerPreferences. # noqa: E501 :rtype: dict(str, int) """ return self._hidden_metric_prefixes @hidden_metric_prefixes.setter def hidden_metric_prefixes(self, hidden_metric_prefixes): """Sets the hidden_metric_prefixes of this CustomerPreferences. Metric prefixes which should be hidden from user # noqa: E501 :param hidden_metric_prefixes: The hidden_metric_prefixes of this CustomerPreferences. # noqa: E501 :type: dict(str, int) """ self._hidden_metric_prefixes = hidden_metric_prefixes @property def hide_ts_when_querybuilder_shown(self): """Gets the hide_ts_when_querybuilder_shown of this CustomerPreferences. # noqa: E501 Whether to hide TS source input when Querybuilder is shown # noqa: E501 :return: The hide_ts_when_querybuilder_shown of this CustomerPreferences. # noqa: E501 :rtype: bool """ return self._hide_ts_when_querybuilder_shown @hide_ts_when_querybuilder_shown.setter def hide_ts_when_querybuilder_shown(self, hide_ts_when_querybuilder_shown): """Sets the hide_ts_when_querybuilder_shown of this CustomerPreferences. Whether to hide TS source input when Querybuilder is shown # noqa: E501 :param hide_ts_when_querybuilder_shown: The hide_ts_when_querybuilder_shown of this CustomerPreferences. # noqa: E501 :type: bool """ if hide_ts_when_querybuilder_shown is None: raise ValueError("Invalid value for `hide_ts_when_querybuilder_shown`, must not be `None`") # noqa: E501 self._hide_ts_when_querybuilder_shown = hide_ts_when_querybuilder_shown @property def id(self): """Gets the id of this CustomerPreferences. # noqa: E501 :return: The id of this CustomerPreferences. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): """Sets the id of this CustomerPreferences. :param id: The id of this CustomerPreferences. # noqa: E501 :type: str """ self._id = id @property def invite_permissions(self): """Gets the invite_permissions of this CustomerPreferences. # noqa: E501 List of permissions that are assigned to newly invited users # noqa: E501 :return: The invite_permissions of this CustomerPreferences. # noqa: E501 :rtype: list[str] """ return self._invite_permissions @invite_permissions.setter def invite_permissions(self, invite_permissions): """Sets the invite_permissions of this CustomerPreferences. List of permissions that are assigned to newly invited users # noqa: E501 :param invite_permissions: The invite_permissions of this CustomerPreferences. # noqa: E501 :type: list[str] """ self._invite_permissions = invite_permissions @property def landing_dashboard_slug(self): """Gets the landing_dashboard_slug of this CustomerPreferences. # noqa: E501 Dashboard where user will be redirected from landing page # noqa: E501 :return: The landing_dashboard_slug of this CustomerPreferences. # noqa: E501 :rtype: str """ return self._landing_dashboard_slug @landing_dashboard_slug.setter def landing_dashboard_slug(self, landing_dashboard_slug): """Sets the landing_dashboard_slug of this CustomerPreferences. Dashboard where user will be redirected from landing page # noqa: E501 :param landing_dashboard_slug: The landing_dashboard_slug of this CustomerPreferences. # noqa: E501 :type: str """ self._landing_dashboard_slug = landing_dashboard_slug @property def show_onboarding(self): """Gets the show_onboarding of this CustomerPreferences. # noqa: E501 Whether to show onboarding for any new user without an override # noqa: E501 :return: The show_onboarding of this CustomerPreferences. # noqa: E501 :rtype: bool """ return self._show_onboarding @show_onboarding.setter def show_onboarding(self, show_onboarding): """Sets the show_onboarding of this CustomerPreferences. Whether to show onboarding for any new user without an override # noqa: E501 :param show_onboarding: The show_onboarding of this CustomerPreferences. # noqa: E501 :type: bool """ if show_onboarding is None: raise ValueError("Invalid value for `show_onboarding`, must not be `None`") # noqa: E501 self._show_onboarding = show_onboarding @property def show_querybuilder_by_default(self): """Gets the show_querybuilder_by_default of this CustomerPreferences. # noqa: E501 Whether the Querybuilder is shown by default # noqa: E501 :return: The show_querybuilder_by_default of this CustomerPreferences. # noqa: E501 :rtype: bool """ return self._show_querybuilder_by_default @show_querybuilder_by_default.setter def show_querybuilder_by_default(self, show_querybuilder_by_default): """Sets the show_querybuilder_by_default of this CustomerPreferences. Whether the Querybuilder is shown by default # noqa: E501 :param show_querybuilder_by_default: The show_querybuilder_by_default of this CustomerPreferences. # noqa: E501 :type: bool """ if show_querybuilder_by_default is None: raise ValueError("Invalid value for `show_querybuilder_by_default`, must not be `None`") # noqa: E501 self._show_querybuilder_by_default = show_querybuilder_by_default @property def updated_epoch_millis(self): """Gets the updated_epoch_millis of this CustomerPreferences. # noqa: E501 :return: The updated_epoch_millis of this CustomerPreferences. # noqa: E501 :rtype: int """ return self._updated_epoch_millis @updated_epoch_millis.setter def updated_epoch_millis(self, updated_epoch_millis): """Sets the updated_epoch_millis of this CustomerPreferences. :param updated_epoch_millis: The updated_epoch_millis of this CustomerPreferences. # noqa: E501 :type: int """ self._updated_epoch_millis = updated_epoch_millis @property def updater_id(self): """Gets the updater_id of this CustomerPreferences. # noqa: E501 :return: The updater_id of this CustomerPreferences. # noqa: E501 :rtype: str """ return self._updater_id @updater_id.setter def updater_id(self, updater_id): """Sets the updater_id of this CustomerPreferences. :param updater_id: The updater_id of this CustomerPreferences. # noqa: E501 :type: str """ self._updater_id = updater_id def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value if issubclass(CustomerPreferences, dict): for key, value in self.items(): result[key] = value return result def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, CustomerPreferences): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other
[ 1, 396, 14137, 29901, 23616, 29899, 29947, 13, 13, 15945, 29908, 13, 1678, 399, 1351, 8862, 16759, 3450, 13, 13, 1678, 529, 29886, 29958, 1576, 399, 1351, 8862, 16759, 3450, 28936, 366, 304, 16254, 411, 399, 1351, 8862, 12424, 773, 3918, 16759, 3450, 8492, 29889, 887, 508, 671, 278, 16759, 3450, 304, 3345, 403, 15574, 8283, 6931, 1316, 408, 6336, 4055, 3460, 8974, 21106, 29886, 5299, 29886, 29958, 10401, 366, 1207, 16759, 3450, 5717, 5377, 278, 399, 1351, 8862, 16759, 3450, 5106, 366, 1818, 788, 278, 4839, 13218, 25471, 29901, 23606, 261, 669, 1896, 25359, 1896, 29936, 8787, 29899, 4986, 29968, 1430, 29987, 4141, 25359, 4141, 29936, 5931, 304, 596, 7331, 7274, 21106, 29886, 29958, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 1678, 4673, 8787, 1580, 1873, 29901, 325, 29906, 13, 1678, 22387, 29901, 529, 26862, 6227, 29958, 13, 1678, 3251, 630, 491, 29901, 2045, 597, 3292, 29889, 510, 29914, 2774, 9921, 29899, 2754, 29914, 2774, 9921, 29899, 401, 1885, 29889, 5559, 13, 15945, 29908, 13, 13, 13, 5215, 282, 2158, 13, 5215, 337, 29871, 396, 694, 25621, 29901, 383, 29946, 29900, 29896, 13, 13, 5215, 4832, 13, 13, 3166, 10742, 8862, 29918, 2754, 29918, 4645, 29889, 9794, 29889, 1792, 29918, 2972, 1053, 4911, 4782, 29871, 396, 694, 25621, 29901, 383, 29946, 29900, 29896, 29892, 29923, 29945, 29900, 29896, 13, 13, 13, 1990, 21886, 22173, 29898, 3318, 1125, 13, 1678, 9995, 12256, 29923, 29901, 910, 770, 338, 4469, 5759, 491, 278, 2381, 9921, 775, 15299, 1824, 29889, 13, 13, 1678, 1938, 451, 3863, 278, 770, 7522, 29889, 13, 1678, 9995, 13, 13, 1678, 9995, 13, 1678, 6212, 5026, 29901, 13, 418, 2381, 9921, 29918, 8768, 313, 8977, 1125, 450, 1820, 338, 5352, 1024, 13, 462, 9651, 322, 278, 995, 338, 5352, 1134, 29889, 13, 418, 5352, 29918, 1958, 313, 8977, 1125, 450, 1820, 338, 5352, 1024, 13, 462, 9651, 322, 278, 995, 338, 4390, 1820, 297, 5023, 29889, 13, 1678, 9995, 13, 1678, 2381, 9921, 29918, 8768, 353, 426, 13, 4706, 525, 8517, 1761, 287, 29918, 331, 2234, 2396, 525, 8977, 29898, 710, 29892, 938, 29897, 742, 13, 4706, 525, 11600, 29918, 1022, 2878, 29918, 19958, 275, 2396, 525, 524, 742, 13, 4706, 525, 1037, 1061, 29918, 333, 2396, 525, 710, 742, 13, 4706, 525, 15539, 29918, 333, 2396, 525, 710, 742, 13, 4706, 525, 4381, 29918, 1792, 29918, 13155, 2396, 525, 1761, 29961, 2659, 4782, 29962, 742, 13, 4706, 525, 311, 22742, 2396, 525, 11227, 742, 13, 4706, 525, 629, 424, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 2396, 525, 11227, 742, 13, 4706, 525, 10892, 29918, 16414, 29918, 13506, 267, 2396, 525, 8977, 29898, 710, 29892, 938, 29897, 742, 13, 4706, 525, 11458, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 2396, 525, 11227, 742, 13, 4706, 525, 333, 2396, 525, 710, 742, 13, 4706, 525, 11569, 568, 29918, 17858, 6847, 2396, 525, 1761, 29961, 710, 29962, 742, 13, 4706, 525, 1049, 292, 29918, 14592, 3377, 29918, 29517, 2396, 525, 710, 742, 13, 4706, 525, 4294, 29918, 265, 3377, 292, 2396, 525, 11227, 742, 13, 4706, 525, 4294, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 2396, 525, 11227, 742, 13, 4706, 525, 21402, 29918, 1022, 2878, 29918, 19958, 275, 2396, 525, 524, 742, 13, 4706, 525, 786, 29881, 1008, 29918, 333, 2396, 525, 710, 29915, 13, 1678, 500, 13, 13, 1678, 5352, 29918, 1958, 353, 426, 13, 4706, 525, 8517, 1761, 287, 29918, 331, 2234, 2396, 525, 8517, 1761, 287, 9823, 29879, 742, 13, 4706, 525, 11600, 29918, 1022, 2878, 29918, 19958, 275, 2396, 525, 11600, 29923, 1129, 305, 19169, 275, 742, 13, 4706, 525, 1037, 1061, 29918, 333, 2396, 525, 1037, 1061, 1204, 742, 13, 4706, 525, 15539, 29918, 333, 2396, 525, 15539, 1204, 742, 13, 4706, 525, 4381, 29918, 1792, 29918, 13155, 2396, 525, 4381, 2659, 24020, 742, 13, 4706, 525, 311, 22742, 2396, 525, 311, 22742, 742, 13, 4706, 525, 629, 424, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 2396, 525, 629, 424, 2111, 1598, 6638, 1762, 26526, 650, 742, 13, 4706, 525, 10892, 29918, 16414, 29918, 13506, 267, 2396, 525, 10892, 10095, 2200, 23095, 267, 742, 13, 4706, 525, 11458, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 2396, 525, 11458, 9375, 10401, 3010, 16409, 2713, 776, 742, 13, 4706, 525, 333, 2396, 525, 333, 742, 13, 4706, 525, 11569, 568, 29918, 17858, 6847, 2396, 525, 11569, 568, 15737, 6847, 742, 13, 4706, 525, 1049, 292, 29918, 14592, 3377, 29918, 29517, 2396, 525, 1049, 292, 29928, 1161, 3377, 16973, 688, 742, 13, 4706, 525, 4294, 29918, 265, 3377, 292, 2396, 525, 4294, 2951, 3377, 292, 742, 13, 4706, 525, 4294, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 2396, 525, 4294, 3010, 16409, 2059, 4592, 742, 13, 4706, 525, 21402, 29918, 1022, 2878, 29918, 19958, 275, 2396, 525, 21402, 29923, 1129, 305, 19169, 275, 742, 13, 4706, 525, 786, 29881, 1008, 29918, 333, 2396, 525, 786, 29881, 1008, 1204, 29915, 13, 1678, 500, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 4628, 1761, 287, 29918, 331, 2234, 29922, 8516, 29892, 2825, 29918, 1022, 2878, 29918, 19958, 275, 29922, 8516, 29892, 907, 1061, 29918, 333, 29922, 8516, 29892, 11962, 29918, 333, 29922, 8516, 29892, 2322, 29918, 1792, 29918, 13155, 29922, 8516, 29892, 11132, 29922, 8516, 29892, 16690, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 29922, 8516, 29892, 7934, 29918, 16414, 29918, 13506, 267, 29922, 8516, 29892, 9563, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 29922, 8516, 29892, 1178, 29922, 8516, 29892, 2437, 568, 29918, 17858, 6847, 29922, 8516, 29892, 25325, 29918, 14592, 3377, 29918, 29517, 29922, 8516, 29892, 1510, 29918, 265, 3377, 292, 29922, 8516, 29892, 1510, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 29922, 8516, 29892, 4784, 29918, 1022, 2878, 29918, 19958, 275, 29922, 8516, 29892, 3329, 1008, 29918, 333, 29922, 8516, 1125, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 9995, 15122, 22173, 448, 263, 1904, 3342, 297, 3925, 9921, 15945, 29908, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 1583, 3032, 8517, 1761, 287, 29918, 331, 2234, 353, 6213, 13, 4706, 1583, 3032, 11600, 29918, 1022, 2878, 29918, 19958, 275, 353, 6213, 13, 4706, 1583, 3032, 1037, 1061, 29918, 333, 353, 6213, 13, 4706, 1583, 3032, 15539, 29918, 333, 353, 6213, 13, 4706, 1583, 3032, 4381, 29918, 1792, 29918, 13155, 353, 6213, 13, 4706, 1583, 3032, 311, 22742, 353, 6213, 13, 4706, 1583, 3032, 629, 424, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 353, 6213, 13, 4706, 1583, 3032, 10892, 29918, 16414, 29918, 13506, 267, 353, 6213, 13, 4706, 1583, 3032, 11458, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 353, 6213, 13, 4706, 1583, 3032, 333, 353, 6213, 13, 4706, 1583, 3032, 11569, 568, 29918, 17858, 6847, 353, 6213, 13, 4706, 1583, 3032, 1049, 292, 29918, 14592, 3377, 29918, 29517, 353, 6213, 13, 4706, 1583, 3032, 4294, 29918, 265, 3377, 292, 353, 6213, 13, 4706, 1583, 3032, 4294, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 353, 6213, 13, 4706, 1583, 3032, 21402, 29918, 1022, 2878, 29918, 19958, 275, 353, 6213, 13, 4706, 1583, 3032, 786, 29881, 1008, 29918, 333, 353, 6213, 13, 4706, 1583, 29889, 2218, 29883, 20386, 1061, 353, 6213, 13, 13, 4706, 565, 4628, 1761, 287, 29918, 331, 2234, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 8517, 1761, 287, 29918, 331, 2234, 353, 4628, 1761, 287, 29918, 331, 2234, 13, 4706, 565, 2825, 29918, 1022, 2878, 29918, 19958, 275, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 11600, 29918, 1022, 2878, 29918, 19958, 275, 353, 2825, 29918, 1022, 2878, 29918, 19958, 275, 13, 4706, 565, 907, 1061, 29918, 333, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 1037, 1061, 29918, 333, 353, 907, 1061, 29918, 333, 13, 4706, 1583, 29889, 15539, 29918, 333, 353, 11962, 29918, 333, 13, 4706, 565, 2322, 29918, 1792, 29918, 13155, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 4381, 29918, 1792, 29918, 13155, 353, 2322, 29918, 1792, 29918, 13155, 13, 4706, 565, 11132, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 311, 22742, 353, 11132, 13, 4706, 1583, 29889, 629, 424, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 353, 16690, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 13, 4706, 565, 7934, 29918, 16414, 29918, 13506, 267, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 10892, 29918, 16414, 29918, 13506, 267, 353, 7934, 29918, 16414, 29918, 13506, 267, 13, 4706, 1583, 29889, 11458, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 353, 9563, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 13, 4706, 565, 1178, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 333, 353, 1178, 13, 4706, 565, 2437, 568, 29918, 17858, 6847, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 11569, 568, 29918, 17858, 6847, 353, 2437, 568, 29918, 17858, 6847, 13, 4706, 565, 25325, 29918, 14592, 3377, 29918, 29517, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 1049, 292, 29918, 14592, 3377, 29918, 29517, 353, 25325, 29918, 14592, 3377, 29918, 29517, 13, 4706, 1583, 29889, 4294, 29918, 265, 3377, 292, 353, 1510, 29918, 265, 3377, 292, 13, 4706, 1583, 29889, 4294, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 353, 1510, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 13, 4706, 565, 4784, 29918, 1022, 2878, 29918, 19958, 275, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 21402, 29918, 1022, 2878, 29918, 19958, 275, 353, 4784, 29918, 1022, 2878, 29918, 19958, 275, 13, 4706, 565, 3329, 1008, 29918, 333, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 786, 29881, 1008, 29918, 333, 353, 3329, 1008, 29918, 333, 13, 13, 1678, 732, 6799, 13, 1678, 822, 4628, 1761, 287, 29918, 331, 2234, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 4628, 1761, 287, 29918, 331, 2234, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 2391, 310, 4628, 1761, 287, 24609, 310, 278, 11962, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 2457, 29901, 450, 4628, 1761, 287, 29918, 331, 2234, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 29878, 1853, 29901, 9657, 29898, 710, 29892, 938, 29897, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 8517, 1761, 287, 29918, 331, 2234, 13, 13, 1678, 732, 8517, 1761, 287, 29918, 331, 2234, 29889, 842, 357, 13, 1678, 822, 4628, 1761, 287, 29918, 331, 2234, 29898, 1311, 29892, 4628, 1761, 287, 29918, 331, 2234, 1125, 13, 4706, 9995, 29903, 1691, 278, 4628, 1761, 287, 29918, 331, 2234, 310, 445, 21886, 22173, 29889, 13, 13, 4706, 2391, 310, 4628, 1761, 287, 24609, 310, 278, 11962, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 3207, 4628, 1761, 287, 29918, 331, 2234, 29901, 450, 4628, 1761, 287, 29918, 331, 2234, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 1853, 29901, 9657, 29898, 710, 29892, 938, 29897, 13, 4706, 9995, 13, 13, 4706, 1583, 3032, 8517, 1761, 287, 29918, 331, 2234, 353, 4628, 1761, 287, 29918, 331, 2234, 13, 13, 1678, 732, 6799, 13, 1678, 822, 2825, 29918, 1022, 2878, 29918, 19958, 275, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 2825, 29918, 1022, 2878, 29918, 19958, 275, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 13, 4706, 584, 2457, 29901, 450, 2825, 29918, 1022, 2878, 29918, 19958, 275, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 29878, 1853, 29901, 938, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 11600, 29918, 1022, 2878, 29918, 19958, 275, 13, 13, 1678, 732, 11600, 29918, 1022, 2878, 29918, 19958, 275, 29889, 842, 357, 13, 1678, 822, 2825, 29918, 1022, 2878, 29918, 19958, 275, 29898, 1311, 29892, 2825, 29918, 1022, 2878, 29918, 19958, 275, 1125, 13, 4706, 9995, 29903, 1691, 278, 2825, 29918, 1022, 2878, 29918, 19958, 275, 310, 445, 21886, 22173, 29889, 13, 13, 13, 4706, 584, 3207, 2825, 29918, 1022, 2878, 29918, 19958, 275, 29901, 450, 2825, 29918, 1022, 2878, 29918, 19958, 275, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 1853, 29901, 938, 13, 4706, 9995, 13, 13, 4706, 1583, 3032, 11600, 29918, 1022, 2878, 29918, 19958, 275, 353, 2825, 29918, 1022, 2878, 29918, 19958, 275, 13, 13, 1678, 732, 6799, 13, 1678, 822, 907, 1061, 29918, 333, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 907, 1061, 29918, 333, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 13, 4706, 584, 2457, 29901, 450, 907, 1061, 29918, 333, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 29878, 1853, 29901, 851, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 1037, 1061, 29918, 333, 13, 13, 1678, 732, 1037, 1061, 29918, 333, 29889, 842, 357, 13, 1678, 822, 907, 1061, 29918, 333, 29898, 1311, 29892, 907, 1061, 29918, 333, 1125, 13, 4706, 9995, 29903, 1691, 278, 907, 1061, 29918, 333, 310, 445, 21886, 22173, 29889, 13, 13, 13, 4706, 584, 3207, 907, 1061, 29918, 333, 29901, 450, 907, 1061, 29918, 333, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 1853, 29901, 851, 13, 4706, 9995, 13, 13, 4706, 1583, 3032, 1037, 1061, 29918, 333, 353, 907, 1061, 29918, 333, 13, 13, 1678, 732, 6799, 13, 1678, 822, 11962, 29918, 333, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 11962, 29918, 333, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 450, 1178, 310, 278, 11962, 5821, 2063, 526, 10959, 304, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 2457, 29901, 450, 11962, 29918, 333, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 29878, 1853, 29901, 851, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 15539, 29918, 333, 13, 13, 1678, 732, 15539, 29918, 333, 29889, 842, 357, 13, 1678, 822, 11962, 29918, 333, 29898, 1311, 29892, 11962, 29918, 333, 1125, 13, 4706, 9995, 29903, 1691, 278, 11962, 29918, 333, 310, 445, 21886, 22173, 29889, 13, 13, 4706, 450, 1178, 310, 278, 11962, 5821, 2063, 526, 10959, 304, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 3207, 11962, 29918, 333, 29901, 450, 11962, 29918, 333, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 1853, 29901, 851, 13, 4706, 9995, 13, 4706, 565, 11962, 29918, 333, 338, 6213, 29901, 13, 9651, 12020, 7865, 2392, 703, 13919, 995, 363, 421, 15539, 29918, 333, 1673, 1818, 451, 367, 421, 8516, 29952, 1159, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 1583, 3032, 15539, 29918, 333, 353, 11962, 29918, 333, 13, 13, 1678, 732, 6799, 13, 1678, 822, 2322, 29918, 1792, 29918, 13155, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 2322, 29918, 1792, 29918, 13155, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 2391, 310, 2322, 1404, 6471, 310, 278, 11962, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 2457, 29901, 450, 2322, 29918, 1792, 29918, 13155, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 29878, 1853, 29901, 1051, 29961, 2659, 4782, 29962, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 4381, 29918, 1792, 29918, 13155, 13, 13, 1678, 732, 4381, 29918, 1792, 29918, 13155, 29889, 842, 357, 13, 1678, 822, 2322, 29918, 1792, 29918, 13155, 29898, 1311, 29892, 2322, 29918, 1792, 29918, 13155, 1125, 13, 4706, 9995, 29903, 1691, 278, 2322, 29918, 1792, 29918, 13155, 310, 445, 21886, 22173, 29889, 13, 13, 4706, 2391, 310, 2322, 1404, 6471, 310, 278, 11962, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 3207, 2322, 29918, 1792, 29918, 13155, 29901, 450, 2322, 29918, 1792, 29918, 13155, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 1853, 29901, 1051, 29961, 2659, 4782, 29962, 13, 4706, 9995, 13, 13, 4706, 1583, 3032, 4381, 29918, 1792, 29918, 13155, 353, 2322, 29918, 1792, 29918, 13155, 13, 13, 1678, 732, 6799, 13, 1678, 822, 11132, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 11132, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 13, 4706, 584, 2457, 29901, 450, 11132, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 29878, 1853, 29901, 6120, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 311, 22742, 13, 13, 1678, 732, 311, 22742, 29889, 842, 357, 13, 1678, 822, 11132, 29898, 1311, 29892, 11132, 1125, 13, 4706, 9995, 29903, 1691, 278, 11132, 310, 445, 21886, 22173, 29889, 13, 13, 13, 4706, 584, 3207, 11132, 29901, 450, 11132, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 1853, 29901, 6120, 13, 4706, 9995, 13, 13, 4706, 1583, 3032, 311, 22742, 353, 11132, 13, 13, 1678, 732, 6799, 13, 1678, 822, 16690, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 16690, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 26460, 6623, 2130, 310, 716, 875, 3246, 338, 16896, 304, 7569, 650, 470, 304, 278, 6760, 1061, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 2457, 29901, 450, 16690, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 29878, 1853, 29901, 6120, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 629, 424, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 13, 13, 1678, 732, 629, 424, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 29889, 842, 357, 13, 1678, 822, 16690, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 29898, 1311, 29892, 16690, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 1125, 13, 4706, 9995, 29903, 1691, 278, 16690, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 310, 445, 21886, 22173, 29889, 13, 13, 4706, 26460, 6623, 2130, 310, 716, 875, 3246, 338, 16896, 304, 7569, 650, 470, 304, 278, 6760, 1061, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 3207, 16690, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 29901, 450, 16690, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 1853, 29901, 6120, 13, 4706, 9995, 13, 4706, 565, 16690, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 338, 6213, 29901, 13, 9651, 12020, 7865, 2392, 703, 13919, 995, 363, 421, 629, 424, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 1673, 1818, 451, 367, 421, 8516, 29952, 1159, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 1583, 3032, 629, 424, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 353, 16690, 29918, 1545, 1598, 29918, 5943, 29918, 517, 29918, 17991, 650, 13, 13, 1678, 732, 6799, 13, 1678, 822, 7934, 29918, 16414, 29918, 13506, 267, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 7934, 29918, 16414, 29918, 13506, 267, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 4737, 2200, 10944, 267, 607, 881, 367, 7934, 515, 1404, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 2457, 29901, 450, 7934, 29918, 16414, 29918, 13506, 267, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 29878, 1853, 29901, 9657, 29898, 710, 29892, 938, 29897, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 10892, 29918, 16414, 29918, 13506, 267, 13, 13, 1678, 732, 10892, 29918, 16414, 29918, 13506, 267, 29889, 842, 357, 13, 1678, 822, 7934, 29918, 16414, 29918, 13506, 267, 29898, 1311, 29892, 7934, 29918, 16414, 29918, 13506, 267, 1125, 13, 4706, 9995, 29903, 1691, 278, 7934, 29918, 16414, 29918, 13506, 267, 310, 445, 21886, 22173, 29889, 13, 13, 4706, 4737, 2200, 10944, 267, 607, 881, 367, 7934, 515, 1404, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 3207, 7934, 29918, 16414, 29918, 13506, 267, 29901, 450, 7934, 29918, 16414, 29918, 13506, 267, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 1853, 29901, 9657, 29898, 710, 29892, 938, 29897, 13, 4706, 9995, 13, 13, 4706, 1583, 3032, 10892, 29918, 16414, 29918, 13506, 267, 353, 7934, 29918, 16414, 29918, 13506, 267, 13, 13, 1678, 732, 6799, 13, 1678, 822, 9563, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 9563, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 26460, 304, 9563, 323, 29903, 2752, 1881, 746, 13641, 16409, 338, 4318, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 2457, 29901, 450, 9563, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 29878, 1853, 29901, 6120, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 11458, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 13, 13, 1678, 732, 11458, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 29889, 842, 357, 13, 1678, 822, 9563, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 29898, 1311, 29892, 9563, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 1125, 13, 4706, 9995, 29903, 1691, 278, 9563, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 310, 445, 21886, 22173, 29889, 13, 13, 4706, 26460, 304, 9563, 323, 29903, 2752, 1881, 746, 13641, 16409, 338, 4318, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 3207, 9563, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 29901, 450, 9563, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 1853, 29901, 6120, 13, 4706, 9995, 13, 4706, 565, 9563, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 338, 6213, 29901, 13, 9651, 12020, 7865, 2392, 703, 13919, 995, 363, 421, 11458, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 1673, 1818, 451, 367, 421, 8516, 29952, 1159, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 1583, 3032, 11458, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 353, 9563, 29918, 1372, 29918, 8256, 29918, 1972, 16409, 29918, 845, 776, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1178, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 1178, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 13, 4706, 584, 2457, 29901, 450, 1178, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 29878, 1853, 29901, 851, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 333, 13, 13, 1678, 732, 333, 29889, 842, 357, 13, 1678, 822, 1178, 29898, 1311, 29892, 1178, 1125, 13, 4706, 9995, 29903, 1691, 278, 1178, 310, 445, 21886, 22173, 29889, 13, 13, 13, 4706, 584, 3207, 1178, 29901, 450, 1178, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 1853, 29901, 851, 13, 4706, 9995, 13, 13, 4706, 1583, 3032, 333, 353, 1178, 13, 13, 1678, 732, 6799, 13, 1678, 822, 2437, 568, 29918, 17858, 6847, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 2437, 568, 29918, 17858, 6847, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 2391, 310, 11239, 393, 526, 9859, 304, 15141, 23610, 4160, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 2457, 29901, 450, 2437, 568, 29918, 17858, 6847, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 29878, 1853, 29901, 1051, 29961, 710, 29962, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 11569, 568, 29918, 17858, 6847, 13, 13, 1678, 732, 11569, 568, 29918, 17858, 6847, 29889, 842, 357, 13, 1678, 822, 2437, 568, 29918, 17858, 6847, 29898, 1311, 29892, 2437, 568, 29918, 17858, 6847, 1125, 13, 4706, 9995, 29903, 1691, 278, 2437, 568, 29918, 17858, 6847, 310, 445, 21886, 22173, 29889, 13, 13, 4706, 2391, 310, 11239, 393, 526, 9859, 304, 15141, 23610, 4160, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 3207, 2437, 568, 29918, 17858, 6847, 29901, 450, 2437, 568, 29918, 17858, 6847, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 1853, 29901, 1051, 29961, 710, 29962, 13, 4706, 9995, 13, 13, 4706, 1583, 3032, 11569, 568, 29918, 17858, 6847, 353, 2437, 568, 29918, 17858, 6847, 13, 13, 1678, 732, 6799, 13, 1678, 822, 25325, 29918, 14592, 3377, 29918, 29517, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 25325, 29918, 14592, 3377, 29918, 29517, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 360, 1161, 3377, 988, 1404, 674, 367, 6684, 287, 515, 25325, 1813, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 2457, 29901, 450, 25325, 29918, 14592, 3377, 29918, 29517, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 29878, 1853, 29901, 851, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 1049, 292, 29918, 14592, 3377, 29918, 29517, 13, 13, 1678, 732, 1049, 292, 29918, 14592, 3377, 29918, 29517, 29889, 842, 357, 13, 1678, 822, 25325, 29918, 14592, 3377, 29918, 29517, 29898, 1311, 29892, 25325, 29918, 14592, 3377, 29918, 29517, 1125, 13, 4706, 9995, 29903, 1691, 278, 25325, 29918, 14592, 3377, 29918, 29517, 310, 445, 21886, 22173, 29889, 13, 13, 4706, 360, 1161, 3377, 988, 1404, 674, 367, 6684, 287, 515, 25325, 1813, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 3207, 25325, 29918, 14592, 3377, 29918, 29517, 29901, 450, 25325, 29918, 14592, 3377, 29918, 29517, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 1853, 29901, 851, 13, 4706, 9995, 13, 13, 4706, 1583, 3032, 1049, 292, 29918, 14592, 3377, 29918, 29517, 353, 25325, 29918, 14592, 3377, 29918, 29517, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1510, 29918, 265, 3377, 292, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 1510, 29918, 265, 3377, 292, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 26460, 304, 1510, 373, 3377, 292, 363, 738, 716, 1404, 1728, 385, 5712, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 2457, 29901, 450, 1510, 29918, 265, 3377, 292, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 29878, 1853, 29901, 6120, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 4294, 29918, 265, 3377, 292, 13, 13, 1678, 732, 4294, 29918, 265, 3377, 292, 29889, 842, 357, 13, 1678, 822, 1510, 29918, 265, 3377, 292, 29898, 1311, 29892, 1510, 29918, 265, 3377, 292, 1125, 13, 4706, 9995, 29903, 1691, 278, 1510, 29918, 265, 3377, 292, 310, 445, 21886, 22173, 29889, 13, 13, 4706, 26460, 304, 1510, 373, 3377, 292, 363, 738, 716, 1404, 1728, 385, 5712, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 3207, 1510, 29918, 265, 3377, 292, 29901, 450, 1510, 29918, 265, 3377, 292, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 1853, 29901, 6120, 13, 4706, 9995, 13, 4706, 565, 1510, 29918, 265, 3377, 292, 338, 6213, 29901, 13, 9651, 12020, 7865, 2392, 703, 13919, 995, 363, 421, 4294, 29918, 265, 3377, 292, 1673, 1818, 451, 367, 421, 8516, 29952, 1159, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 1583, 3032, 4294, 29918, 265, 3377, 292, 353, 1510, 29918, 265, 3377, 292, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1510, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 1510, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 26460, 278, 13641, 16409, 338, 4318, 491, 2322, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 2457, 29901, 450, 1510, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 29878, 1853, 29901, 6120, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 4294, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 13, 13, 1678, 732, 4294, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 29889, 842, 357, 13, 1678, 822, 1510, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 29898, 1311, 29892, 1510, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 1125, 13, 4706, 9995, 29903, 1691, 278, 1510, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 310, 445, 21886, 22173, 29889, 13, 13, 4706, 26460, 278, 13641, 16409, 338, 4318, 491, 2322, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 584, 3207, 1510, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 29901, 450, 1510, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 1853, 29901, 6120, 13, 4706, 9995, 13, 4706, 565, 1510, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 338, 6213, 29901, 13, 9651, 12020, 7865, 2392, 703, 13919, 995, 363, 421, 4294, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 1673, 1818, 451, 367, 421, 8516, 29952, 1159, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 4706, 1583, 3032, 4294, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 353, 1510, 29918, 1972, 16409, 29918, 1609, 29918, 4381, 13, 13, 1678, 732, 6799, 13, 1678, 822, 4784, 29918, 1022, 2878, 29918, 19958, 275, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 4784, 29918, 1022, 2878, 29918, 19958, 275, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 13, 4706, 584, 2457, 29901, 450, 4784, 29918, 1022, 2878, 29918, 19958, 275, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 29878, 1853, 29901, 938, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 21402, 29918, 1022, 2878, 29918, 19958, 275, 13, 13, 1678, 732, 21402, 29918, 1022, 2878, 29918, 19958, 275, 29889, 842, 357, 13, 1678, 822, 4784, 29918, 1022, 2878, 29918, 19958, 275, 29898, 1311, 29892, 4784, 29918, 1022, 2878, 29918, 19958, 275, 1125, 13, 4706, 9995, 29903, 1691, 278, 4784, 29918, 1022, 2878, 29918, 19958, 275, 310, 445, 21886, 22173, 29889, 13, 13, 13, 4706, 584, 3207, 4784, 29918, 1022, 2878, 29918, 19958, 275, 29901, 450, 4784, 29918, 1022, 2878, 29918, 19958, 275, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 1853, 29901, 938, 13, 4706, 9995, 13, 13, 4706, 1583, 3032, 21402, 29918, 1022, 2878, 29918, 19958, 275, 353, 4784, 29918, 1022, 2878, 29918, 19958, 275, 13, 13, 1678, 732, 6799, 13, 1678, 822, 3329, 1008, 29918, 333, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 3329, 1008, 29918, 333, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 13, 13, 4706, 584, 2457, 29901, 450, 3329, 1008, 29918, 333, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 29878, 1853, 29901, 851, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 786, 29881, 1008, 29918, 333, 13, 13, 1678, 732, 786, 29881, 1008, 29918, 333, 29889, 842, 357, 13, 1678, 822, 3329, 1008, 29918, 333, 29898, 1311, 29892, 3329, 1008, 29918, 333, 1125, 13, 4706, 9995, 29903, 1691, 278, 3329, 1008, 29918, 333, 310, 445, 21886, 22173, 29889, 13, 13, 13, 4706, 584, 3207, 3329, 1008, 29918, 333, 29901, 450, 3329, 1008, 29918, 333, 310, 445, 21886, 22173, 29889, 29871, 396, 694, 25621, 29901, 382, 29945, 29900, 29896, 13, 4706, 584, 1853, 29901, 851, 13, 4706, 9995, 13, 13, 4706, 1583, 3032, 786, 29881, 1008, 29918, 333, 353, 3329, 1008, 29918, 333, 13, 13, 1678, 822, 304, 29918, 8977, 29898, 1311, 1125, 13, 4706, 9995, 11609, 29879, 278, 1904, 4426, 408, 263, 9657, 15945, 29908, 13, 4706, 1121, 353, 6571, 13, 13, 4706, 363, 12421, 29892, 903, 297, 4832, 29889, 1524, 7076, 29898, 1311, 29889, 2774, 9921, 29918, 8768, 1125, 13, 9651, 995, 353, 679, 5552, 29898, 1311, 29892, 12421, 29897, 13, 9651, 565, 338, 8758, 29898, 1767, 29892, 1051, 1125, 13, 18884, 1121, 29961, 5552, 29962, 353, 1051, 29898, 1958, 29898, 13, 462, 1678, 14013, 921, 29901, 921, 29889, 517, 29918, 8977, 580, 565, 756, 5552, 29898, 29916, 29892, 376, 517, 29918, 8977, 1159, 1683, 921, 29892, 13, 462, 1678, 995, 13, 462, 876, 13, 9651, 25342, 756, 5552, 29898, 1767, 29892, 376, 517, 29918, 8977, 29908, 1125, 13, 18884, 1121, 29961, 5552, 29962, 353, 995, 29889, 517, 29918, 8977, 580, 13, 9651, 25342, 338, 8758, 29898, 1767, 29892, 9657, 1125, 13, 18884, 1121, 29961, 5552, 29962, 353, 9657, 29898, 1958, 29898, 13, 462, 1678, 14013, 2944, 29901, 313, 667, 29961, 29900, 1402, 2944, 29961, 29896, 1822, 517, 29918, 8977, 3101, 13, 462, 1678, 565, 756, 5552, 29898, 667, 29961, 29896, 1402, 376, 517, 29918, 8977, 1159, 1683, 2944, 29892, 13, 462, 1678, 995, 29889, 7076, 580, 13, 462, 876, 13, 9651, 1683, 29901, 13, 18884, 1121, 29961, 5552, 29962, 353, 995, 13, 4706, 565, 338, 1491, 1990, 29898, 15122, 22173, 29892, 9657, 1125, 13, 9651, 363, 1820, 29892, 995, 297, 1583, 29889, 7076, 7295, 13, 18884, 1121, 29961, 1989, 29962, 353, 995, 13, 13, 4706, 736, 1121, 13, 13, 1678, 822, 304, 29918, 710, 29898, 1311, 1125, 13, 4706, 9995, 11609, 29879, 278, 1347, 8954, 310, 278, 1904, 15945, 29908, 13, 4706, 736, 282, 2158, 29889, 29886, 4830, 29898, 1311, 29889, 517, 29918, 8977, 3101, 13, 13, 1678, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 4706, 9995, 2831, 421, 2158, 29952, 322, 421, 407, 29878, 524, 29952, 15945, 29908, 13, 4706, 736, 1583, 29889, 517, 29918, 710, 580, 13, 13, 1678, 822, 4770, 1837, 12035, 1311, 29892, 916, 1125, 13, 4706, 9995, 11609, 29879, 1565, 565, 1716, 3618, 526, 5186, 15945, 29908, 13, 4706, 565, 451, 338, 8758, 29898, 1228, 29892, 21886, 22173, 1125, 13, 9651, 736, 7700, 13, 13, 4706, 736, 1583, 17255, 8977, 1649, 1275, 916, 17255, 8977, 1649, 13, 13, 1678, 822, 4770, 484, 12035, 1311, 29892, 916, 1125, 13, 4706, 9995, 11609, 29879, 1565, 565, 1716, 3618, 526, 451, 5186, 15945, 29908, 13, 4706, 736, 451, 1583, 1275, 916, 13, 2 ]