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
pype/vendor/pynput/keyboard/_darwin.py
tws0002/pype
0
1610615
# coding=utf-8 # pynput # Copyright (C) 2015-2017 <NAME> # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version 3 of the License, or (at your option) any # later version. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more # details. # # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. """ The keyboard implementation for *OSX*. """ # pylint: disable=C0111 # The documentation is extracted from the base classes # pylint: disable=R0903 # We implement stubs import enum import Quartz from pynput._util.darwin import ( get_unicode_to_keycode_map, keycode_context, keycode_to_string, ListenerMixin) from . import _base class KeyCode(_base.KeyCode): def _event(self, modifiers, mapping, is_pressed): """This key as a *Quartz* event. :param set modifiers: The currently active modifiers. :param mapping: The current keyboard mapping. :param bool is_press: Whether to generate a press event. :return: a *Quartz* event """ vk = self.vk or mapping.get(self.char, 0) result = Quartz.CGEventCreateKeyboardEvent(None, vk, is_pressed) Quartz.CGEventSetFlags( result, 0 | (Quartz.kCGEventFlagMaskAlternate if Key.alt in modifiers else 0) | (Quartz.kCGEventFlagMaskCommand if Key.cmd in modifiers else 0) | (Quartz.kCGEventFlagMaskControl if Key.ctrl in modifiers else 0) | (Quartz.kCGEventFlagMaskShift if Key.shift in modifiers else 0)) if vk is None and self.char is not None: Quartz.CGEventKeyboardSetUnicodeString( result, len(self.char), self.char) return result class Key(enum.Enum): # Default keys alt = KeyCode.from_vk(0x3A) alt_l = KeyCode.from_vk(0x3A) alt_r = KeyCode.from_vk(0x3D) alt_gr = KeyCode.from_vk(0x3D) backspace = KeyCode.from_vk(0x33) caps_lock = KeyCode.from_vk(0x39) cmd = KeyCode.from_vk(0x37) cmd_l = KeyCode.from_vk(0x37) cmd_r = KeyCode.from_vk(0x36) ctrl = KeyCode.from_vk(0x3B) ctrl_l = KeyCode.from_vk(0x3B) ctrl_r = KeyCode.from_vk(0x3E) delete = KeyCode.from_vk(0x75) down = KeyCode.from_vk(0x7D) end = KeyCode.from_vk(0x77) enter = KeyCode.from_vk(0x24) esc = KeyCode.from_vk(0x35) f1 = KeyCode.from_vk(0x7A) f2 = KeyCode.from_vk(0x78) f3 = KeyCode.from_vk(0x63) f4 = KeyCode.from_vk(0x76) f5 = KeyCode.from_vk(0x60) f6 = KeyCode.from_vk(0x61) f7 = KeyCode.from_vk(0x62) f8 = KeyCode.from_vk(0x64) f9 = KeyCode.from_vk(0x65) f10 = KeyCode.from_vk(0x6D) f11 = KeyCode.from_vk(0x67) f12 = KeyCode.from_vk(0x6F) f13 = KeyCode.from_vk(0x69) f14 = KeyCode.from_vk(0x6B) f15 = KeyCode.from_vk(0x71) f16 = KeyCode.from_vk(0x6A) f17 = KeyCode.from_vk(0x40) f18 = KeyCode.from_vk(0x4F) f19 = KeyCode.from_vk(0x50) f20 = KeyCode.from_vk(0x5A) home = KeyCode.from_vk(0x73) left = KeyCode.from_vk(0x7B) page_down = KeyCode.from_vk(0x79) page_up = KeyCode.from_vk(0x74) right = KeyCode.from_vk(0x7C) shift = KeyCode.from_vk(0x38) shift_l = KeyCode.from_vk(0x38) shift_r = KeyCode.from_vk(0x3C) space = KeyCode.from_vk(0x31, char=' ') tab = KeyCode.from_vk(0x30) up = KeyCode.from_vk(0x7E) class Controller(_base.Controller): _KeyCode = KeyCode _Key = Key def __init__(self): super(Controller, self).__init__() self._mapping = get_unicode_to_keycode_map() def _handle(self, key, is_press): with self.modifiers as modifiers: Quartz.CGEventPost( Quartz.kCGHIDEventTap, (key if key not in Key else key.value)._event( modifiers, self._mapping, is_press)) class Listener(ListenerMixin, _base.Listener): #: The events that we listen to _EVENTS = ( Quartz.CGEventMaskBit(Quartz.kCGEventKeyDown) | Quartz.CGEventMaskBit(Quartz.kCGEventKeyUp) | Quartz.CGEventMaskBit(Quartz.kCGEventFlagsChanged)) #: A mapping from keysym to special key _SPECIAL_KEYS = { key.value.vk: key for key in Key} #: The event flags set for the various modifier keys _MODIFIER_FLAGS = { Key.alt: Quartz.kCGEventFlagMaskAlternate, Key.alt_l: Quartz.kCGEventFlagMaskAlternate, Key.alt_r: Quartz.kCGEventFlagMaskAlternate, Key.cmd: Quartz.kCGEventFlagMaskCommand, Key.cmd_l: Quartz.kCGEventFlagMaskCommand, Key.cmd_r: Quartz.kCGEventFlagMaskCommand, Key.ctrl: Quartz.kCGEventFlagMaskControl, Key.ctrl_l: Quartz.kCGEventFlagMaskControl, Key.ctrl_r: Quartz.kCGEventFlagMaskControl, Key.shift: Quartz.kCGEventFlagMaskShift, Key.shift_l: Quartz.kCGEventFlagMaskShift, Key.shift_r: Quartz.kCGEventFlagMaskShift} def __init__(self, *args, **kwargs): super(Listener, self).__init__(*args, **kwargs) self._flags = 0 self._context = None self._intercept = self._options.get( 'intercept', None) def _run(self): with keycode_context() as context: self._context = context try: super(Listener, self)._run() finally: self._context = None def _handle(self, dummy_proxy, event_type, event, dummy_refcon): # Convert the event to a KeyCode; this may fail, and in that case we # pass None try: key = self._event_to_key(event) except IndexError: key = None try: if event_type == Quartz.kCGEventKeyDown: # This is a normal key press self.on_press(key) elif event_type == Quartz.kCGEventKeyUp: # This is a normal key release self.on_release(key) elif key == Key.caps_lock: # We only get an event when caps lock is toggled, so we fake # press and release self.on_press(key) self.on_release(key) else: # This is a modifier event---excluding caps lock---for which we # must check the current modifier state to determine whether # the key was pressed or released flags = Quartz.CGEventGetFlags(event) is_press = flags & self._MODIFIER_FLAGS.get(key, 0) if is_press: self.on_press(key) else: self.on_release(key) finally: # Store the current flag mask to be able to detect modifier state # changes self._flags = Quartz.CGEventGetFlags(event) def _event_to_key(self, event): """Converts a *Quartz* event to a :class:`KeyCode`. :param event: The event to convert. :return: a :class:`pynput.keyboard.KeyCode` :raises IndexError: if the key code is invalid """ vk = Quartz.CGEventGetIntegerValueField( event, Quartz.kCGKeyboardEventKeycode) # First try special keys... if vk in self._SPECIAL_KEYS: return self._SPECIAL_KEYS[vk] # ...then try characters... # TODO: Use Quartz.CGEventKeyboardGetUnicodeString instead char = keycode_to_string( self._context, vk, Quartz.CGEventGetFlags(event)) if char: return KeyCode.from_char(char, vk=vk) # ...and fall back on a virtual key code return KeyCode.from_vk(vk)
[ 1, 396, 14137, 29922, 9420, 29899, 29947, 13, 29937, 282, 948, 649, 13, 29937, 14187, 1266, 313, 29907, 29897, 29871, 29906, 29900, 29896, 29945, 29899, 29906, 29900, 29896, 29955, 529, 5813, 29958, 13, 29937, 13, 29937, 910, 1824, 338, 3889, 7047, 29901, 366, 508, 2654, 391, 2666, 372, 322, 29914, 272, 6623, 372, 1090, 13, 29937, 278, 4958, 310, 278, 15143, 365, 16136, 4593, 5236, 19245, 408, 6369, 491, 278, 12362, 13, 29937, 18540, 10606, 29892, 2845, 1873, 29871, 29941, 310, 278, 19245, 29892, 470, 313, 271, 596, 2984, 29897, 738, 13, 29937, 2678, 1873, 29889, 13, 29937, 13, 29937, 910, 1824, 338, 13235, 297, 278, 4966, 393, 372, 674, 367, 5407, 29892, 541, 399, 1806, 8187, 2692, 13, 29937, 13764, 29979, 399, 1718, 29934, 13566, 29979, 29936, 1728, 1584, 278, 2411, 2957, 1370, 21867, 29891, 310, 341, 1001, 3210, 13566, 2882, 6227, 11937, 470, 383, 1806, 8186, 1799, 13, 29937, 15842, 319, 349, 8322, 2965, 13309, 1718, 349, 4574, 13152, 1660, 29889, 2823, 278, 15143, 365, 16136, 4593, 5236, 19245, 363, 901, 13, 29937, 4902, 29889, 13, 29937, 13, 29937, 887, 881, 505, 4520, 263, 3509, 310, 278, 15143, 365, 16136, 4593, 5236, 19245, 13, 29937, 3412, 411, 445, 1824, 29889, 960, 451, 29892, 1074, 529, 1124, 597, 1636, 29889, 18713, 29889, 990, 29914, 506, 11259, 3779, 29889, 13, 15945, 29908, 13, 1576, 12247, 5314, 363, 334, 3267, 29990, 10521, 13, 15945, 29908, 13, 13, 29937, 282, 2904, 524, 29901, 11262, 29922, 29907, 29900, 29896, 29896, 29896, 13, 29937, 450, 5106, 338, 23892, 515, 278, 2967, 4413, 13, 13, 29937, 282, 2904, 524, 29901, 11262, 29922, 29934, 29900, 29929, 29900, 29941, 13, 29937, 1334, 2334, 19281, 29879, 13, 13, 5215, 14115, 13, 13, 5215, 24664, 29920, 13, 13, 3166, 282, 948, 649, 3032, 4422, 29889, 16702, 5080, 1053, 313, 13, 1678, 679, 29918, 2523, 356, 29918, 517, 29918, 1989, 401, 29918, 1958, 29892, 13, 1678, 1820, 401, 29918, 4703, 29892, 13, 1678, 1820, 401, 29918, 517, 29918, 1807, 29892, 13, 1678, 2391, 759, 29924, 861, 262, 29897, 13, 3166, 869, 1053, 903, 3188, 13, 13, 13, 1990, 7670, 3399, 7373, 3188, 29889, 2558, 3399, 1125, 13, 1678, 822, 903, 3696, 29898, 1311, 29892, 878, 14903, 29892, 10417, 29892, 338, 29918, 13120, 1125, 13, 4706, 9995, 4013, 1820, 408, 263, 334, 2182, 442, 29920, 29930, 1741, 29889, 13, 13, 4706, 584, 3207, 731, 878, 14903, 29901, 450, 5279, 6136, 878, 14903, 29889, 13, 13, 4706, 584, 3207, 10417, 29901, 450, 1857, 12247, 10417, 29889, 13, 13, 4706, 584, 3207, 6120, 338, 29918, 2139, 29901, 26460, 304, 5706, 263, 3965, 1741, 29889, 13, 13, 4706, 584, 2457, 29901, 263, 334, 2182, 442, 29920, 29930, 1741, 13, 4706, 9995, 13, 4706, 325, 29895, 353, 1583, 29889, 29894, 29895, 470, 10417, 29889, 657, 29898, 1311, 29889, 3090, 29892, 29871, 29900, 29897, 13, 4706, 1121, 353, 24664, 29920, 29889, 29907, 1692, 794, 4391, 2558, 3377, 2624, 29898, 8516, 29892, 325, 29895, 29892, 338, 29918, 13120, 29897, 13, 13, 4706, 24664, 29920, 29889, 29907, 1692, 794, 2697, 15675, 29898, 13, 9651, 1121, 29892, 13, 632, 29900, 13, 9651, 891, 313, 2182, 442, 29920, 29889, 29895, 29907, 1692, 794, 21979, 19832, 2499, 725, 403, 13, 1669, 565, 7670, 29889, 1997, 297, 878, 14903, 1683, 29871, 29900, 29897, 13, 13, 9651, 891, 313, 2182, 442, 29920, 29889, 29895, 29907, 1692, 794, 21979, 19832, 6255, 13, 1669, 565, 7670, 29889, 9006, 297, 878, 14903, 1683, 29871, 29900, 29897, 13, 13, 9651, 891, 313, 2182, 442, 29920, 29889, 29895, 29907, 1692, 794, 21979, 19832, 4809, 13, 1669, 565, 7670, 29889, 24220, 297, 878, 14903, 1683, 29871, 29900, 29897, 13, 13, 9651, 891, 313, 2182, 442, 29920, 29889, 29895, 29907, 1692, 794, 21979, 19832, 29657, 13, 1669, 565, 7670, 29889, 10889, 297, 878, 14903, 1683, 29871, 29900, 876, 13, 13, 4706, 565, 325, 29895, 338, 6213, 322, 1583, 29889, 3090, 338, 451, 6213, 29901, 13, 9651, 24664, 29920, 29889, 29907, 1692, 794, 2558, 3377, 2697, 2525, 12858, 1231, 29898, 13, 18884, 1121, 29892, 7431, 29898, 1311, 29889, 3090, 511, 1583, 29889, 3090, 29897, 13, 13, 4706, 736, 1121, 13, 13, 13, 1990, 7670, 29898, 18605, 29889, 16854, 1125, 13, 1678, 396, 13109, 6611, 13, 1678, 5272, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29909, 29897, 13, 1678, 5272, 29918, 29880, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29909, 29897, 13, 1678, 5272, 29918, 29878, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29928, 29897, 13, 1678, 5272, 29918, 629, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29928, 29897, 13, 1678, 1250, 3493, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29941, 29897, 13, 1678, 26091, 29918, 908, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29929, 29897, 13, 1678, 9920, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29955, 29897, 13, 1678, 9920, 29918, 29880, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29955, 29897, 13, 1678, 9920, 29918, 29878, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29953, 29897, 13, 1678, 274, 11742, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29933, 29897, 13, 1678, 274, 11742, 29918, 29880, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29933, 29897, 13, 1678, 274, 11742, 29918, 29878, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29923, 29897, 13, 1678, 5217, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29955, 29945, 29897, 13, 1678, 1623, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29955, 29928, 29897, 13, 1678, 1095, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29955, 29955, 29897, 13, 1678, 3896, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29906, 29946, 29897, 13, 1678, 3966, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29945, 29897, 13, 1678, 285, 29896, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29955, 29909, 29897, 13, 1678, 285, 29906, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29955, 29947, 29897, 13, 1678, 285, 29941, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29953, 29941, 29897, 13, 1678, 285, 29946, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29955, 29953, 29897, 13, 1678, 285, 29945, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29953, 29900, 29897, 13, 1678, 285, 29953, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29953, 29896, 29897, 13, 1678, 285, 29955, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29953, 29906, 29897, 13, 1678, 285, 29947, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29953, 29946, 29897, 13, 1678, 285, 29929, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29953, 29945, 29897, 13, 1678, 285, 29896, 29900, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29953, 29928, 29897, 13, 1678, 285, 29896, 29896, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29953, 29955, 29897, 13, 1678, 285, 29896, 29906, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29953, 29943, 29897, 13, 1678, 285, 29896, 29941, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29953, 29929, 29897, 13, 1678, 285, 29896, 29946, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29953, 29933, 29897, 13, 1678, 285, 29896, 29945, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29955, 29896, 29897, 13, 1678, 285, 29896, 29953, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29953, 29909, 29897, 13, 1678, 285, 29896, 29955, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29946, 29900, 29897, 13, 1678, 285, 29896, 29947, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29946, 29943, 29897, 13, 1678, 285, 29896, 29929, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29945, 29900, 29897, 13, 1678, 285, 29906, 29900, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29945, 29909, 29897, 13, 1678, 3271, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29955, 29941, 29897, 13, 1678, 2175, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29955, 29933, 29897, 13, 1678, 1813, 29918, 3204, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29955, 29929, 29897, 13, 1678, 1813, 29918, 786, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29955, 29946, 29897, 13, 1678, 1492, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29955, 29907, 29897, 13, 1678, 9500, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29947, 29897, 13, 1678, 9500, 29918, 29880, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29947, 29897, 13, 1678, 9500, 29918, 29878, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29907, 29897, 13, 1678, 2913, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29896, 29892, 1373, 2433, 25710, 13, 1678, 4434, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29941, 29900, 29897, 13, 1678, 701, 353, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29900, 29916, 29955, 29923, 29897, 13, 13, 13, 1990, 15830, 7373, 3188, 29889, 2956, 1125, 13, 1678, 903, 2558, 3399, 353, 7670, 3399, 13, 1678, 903, 2558, 353, 7670, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 2428, 29898, 2956, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 1583, 3032, 20698, 353, 679, 29918, 2523, 356, 29918, 517, 29918, 1989, 401, 29918, 1958, 580, 13, 13, 1678, 822, 903, 8411, 29898, 1311, 29892, 1820, 29892, 338, 29918, 2139, 1125, 13, 4706, 411, 1583, 29889, 1545, 14903, 408, 878, 14903, 29901, 13, 9651, 24664, 29920, 29889, 29907, 1692, 794, 6747, 29898, 13, 18884, 24664, 29920, 29889, 29895, 11135, 29950, 1367, 2624, 29911, 481, 29892, 13, 18884, 313, 1989, 565, 1820, 451, 297, 7670, 1683, 1820, 29889, 1767, 467, 29918, 3696, 29898, 13, 462, 1678, 878, 14903, 29892, 1583, 3032, 20698, 29892, 338, 29918, 2139, 876, 13, 13, 13, 1990, 2391, 759, 29898, 3962, 29924, 861, 262, 29892, 903, 3188, 29889, 3962, 1125, 13, 1678, 396, 29901, 450, 4959, 393, 591, 11621, 304, 13, 1678, 903, 22240, 3919, 29903, 353, 313, 13, 4706, 24664, 29920, 29889, 29907, 1692, 794, 19832, 21591, 29898, 2182, 442, 29920, 29889, 29895, 29907, 1692, 794, 2558, 6767, 29897, 891, 13, 4706, 24664, 29920, 29889, 29907, 1692, 794, 19832, 21591, 29898, 2182, 442, 29920, 29889, 29895, 29907, 1692, 794, 2558, 3373, 29897, 891, 13, 4706, 24664, 29920, 29889, 29907, 1692, 794, 19832, 21591, 29898, 2182, 442, 29920, 29889, 29895, 29907, 1692, 794, 15675, 7590, 876, 13, 13, 1678, 396, 29901, 319, 10417, 515, 6611, 962, 304, 4266, 1820, 13, 1678, 903, 29903, 4162, 8426, 1964, 29918, 10818, 29903, 353, 426, 13, 4706, 1820, 29889, 1767, 29889, 29894, 29895, 29901, 1820, 13, 4706, 363, 1820, 297, 7670, 29913, 13, 13, 1678, 396, 29901, 450, 1741, 13449, 731, 363, 278, 5164, 878, 3709, 6611, 13, 1678, 903, 6720, 4571, 3738, 1001, 29918, 18823, 10749, 353, 426, 13, 4706, 7670, 29889, 1997, 29901, 24664, 29920, 29889, 29895, 29907, 1692, 794, 21979, 19832, 2499, 725, 403, 29892, 13, 4706, 7670, 29889, 1997, 29918, 29880, 29901, 24664, 29920, 29889, 29895, 29907, 1692, 794, 21979, 19832, 2499, 725, 403, 29892, 13, 4706, 7670, 29889, 1997, 29918, 29878, 29901, 24664, 29920, 29889, 29895, 29907, 1692, 794, 21979, 19832, 2499, 725, 403, 29892, 13, 4706, 7670, 29889, 9006, 29901, 24664, 29920, 29889, 29895, 29907, 1692, 794, 21979, 19832, 6255, 29892, 13, 4706, 7670, 29889, 9006, 29918, 29880, 29901, 24664, 29920, 29889, 29895, 29907, 1692, 794, 21979, 19832, 6255, 29892, 13, 4706, 7670, 29889, 9006, 29918, 29878, 29901, 24664, 29920, 29889, 29895, 29907, 1692, 794, 21979, 19832, 6255, 29892, 13, 4706, 7670, 29889, 24220, 29901, 24664, 29920, 29889, 29895, 29907, 1692, 794, 21979, 19832, 4809, 29892, 13, 4706, 7670, 29889, 24220, 29918, 29880, 29901, 24664, 29920, 29889, 29895, 29907, 1692, 794, 21979, 19832, 4809, 29892, 13, 4706, 7670, 29889, 24220, 29918, 29878, 29901, 24664, 29920, 29889, 29895, 29907, 1692, 794, 21979, 19832, 4809, 29892, 13, 4706, 7670, 29889, 10889, 29901, 24664, 29920, 29889, 29895, 29907, 1692, 794, 21979, 19832, 29657, 29892, 13, 4706, 7670, 29889, 10889, 29918, 29880, 29901, 24664, 29920, 29889, 29895, 29907, 1692, 794, 21979, 19832, 29657, 29892, 13, 4706, 7670, 29889, 10889, 29918, 29878, 29901, 24664, 29920, 29889, 29895, 29907, 1692, 794, 21979, 19832, 29657, 29913, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 2428, 29898, 3962, 29892, 1583, 467, 1649, 2344, 1649, 10456, 5085, 29892, 3579, 19290, 29897, 13, 4706, 1583, 3032, 15764, 353, 29871, 29900, 13, 4706, 1583, 3032, 4703, 353, 6213, 13, 4706, 1583, 3032, 1639, 1547, 353, 1583, 3032, 6768, 29889, 657, 29898, 13, 9651, 525, 1639, 1547, 742, 13, 9651, 6213, 29897, 13, 13, 1678, 822, 903, 3389, 29898, 1311, 1125, 13, 4706, 411, 1820, 401, 29918, 4703, 580, 408, 3030, 29901, 13, 9651, 1583, 3032, 4703, 353, 3030, 13, 9651, 1018, 29901, 13, 18884, 2428, 29898, 3962, 29892, 1583, 467, 29918, 3389, 580, 13, 9651, 7146, 29901, 13, 18884, 1583, 3032, 4703, 353, 6213, 13, 13, 1678, 822, 903, 8411, 29898, 1311, 29892, 20254, 29918, 14701, 29892, 1741, 29918, 1853, 29892, 1741, 29892, 20254, 29918, 999, 535, 1125, 13, 4706, 396, 14806, 278, 1741, 304, 263, 7670, 3399, 29936, 445, 1122, 4418, 29892, 322, 297, 393, 1206, 591, 13, 4706, 396, 1209, 6213, 13, 4706, 1018, 29901, 13, 9651, 1820, 353, 1583, 3032, 3696, 29918, 517, 29918, 1989, 29898, 3696, 29897, 13, 4706, 5174, 11374, 2392, 29901, 13, 9651, 1820, 353, 6213, 13, 13, 4706, 1018, 29901, 13, 9651, 565, 1741, 29918, 1853, 1275, 24664, 29920, 29889, 29895, 29907, 1692, 794, 2558, 6767, 29901, 13, 18884, 396, 910, 338, 263, 4226, 1820, 3965, 13, 18884, 1583, 29889, 265, 29918, 2139, 29898, 1989, 29897, 13, 13, 9651, 25342, 1741, 29918, 1853, 1275, 24664, 29920, 29889, 29895, 29907, 1692, 794, 2558, 3373, 29901, 13, 18884, 396, 910, 338, 263, 4226, 1820, 6507, 13, 18884, 1583, 29889, 265, 29918, 14096, 29898, 1989, 29897, 13, 13, 9651, 25342, 1820, 1275, 7670, 29889, 29883, 2547, 29918, 908, 29901, 13, 18884, 396, 1334, 871, 679, 385, 1741, 746, 26091, 7714, 338, 17304, 839, 29892, 577, 591, 25713, 13, 18884, 396, 3965, 322, 6507, 13, 18884, 1583, 29889, 265, 29918, 2139, 29898, 1989, 29897, 13, 18884, 1583, 29889, 265, 29918, 14096, 29898, 1989, 29897, 13, 13, 9651, 1683, 29901, 13, 18884, 396, 910, 338, 263, 878, 3709, 1741, 5634, 735, 22368, 26091, 7714, 5634, 1454, 607, 591, 13, 18884, 396, 1818, 1423, 278, 1857, 878, 3709, 2106, 304, 8161, 3692, 13, 18884, 396, 278, 1820, 471, 15385, 470, 5492, 13, 18884, 13449, 353, 24664, 29920, 29889, 29907, 1692, 794, 2577, 15675, 29898, 3696, 29897, 13, 18884, 338, 29918, 2139, 353, 13449, 669, 1583, 3032, 6720, 4571, 3738, 1001, 29918, 18823, 10749, 29889, 657, 29898, 1989, 29892, 29871, 29900, 29897, 13, 18884, 565, 338, 29918, 2139, 29901, 13, 462, 1678, 1583, 29889, 265, 29918, 2139, 29898, 1989, 29897, 13, 18884, 1683, 29901, 13, 462, 1678, 1583, 29889, 265, 29918, 14096, 29898, 1989, 29897, 13, 13, 4706, 7146, 29901, 13, 9651, 396, 14491, 278, 1857, 7353, 11105, 304, 367, 2221, 304, 6459, 878, 3709, 2106, 13, 9651, 396, 3620, 13, 9651, 1583, 3032, 15764, 353, 24664, 29920, 29889, 29907, 1692, 794, 2577, 15675, 29898, 3696, 29897, 13, 13, 1678, 822, 903, 3696, 29918, 517, 29918, 1989, 29898, 1311, 29892, 1741, 1125, 13, 4706, 9995, 1168, 369, 1372, 263, 334, 2182, 442, 29920, 29930, 1741, 304, 263, 584, 1990, 18078, 2558, 3399, 1412, 13, 13, 4706, 584, 3207, 1741, 29901, 450, 1741, 304, 3588, 29889, 13, 13, 4706, 584, 2457, 29901, 263, 584, 1990, 18078, 29886, 948, 649, 29889, 1989, 3377, 29889, 2558, 3399, 29952, 13, 13, 4706, 584, 336, 4637, 11374, 2392, 29901, 565, 278, 1820, 775, 338, 8340, 13, 4706, 9995, 13, 4706, 325, 29895, 353, 24664, 29920, 29889, 29907, 1692, 794, 2577, 7798, 1917, 3073, 29898, 13, 9651, 1741, 29892, 24664, 29920, 29889, 29895, 11135, 2558, 3377, 2624, 2558, 401, 29897, 13, 13, 4706, 396, 3824, 1018, 4266, 6611, 856, 13, 4706, 565, 325, 29895, 297, 1583, 3032, 29903, 4162, 8426, 1964, 29918, 10818, 29903, 29901, 13, 9651, 736, 1583, 3032, 29903, 4162, 8426, 1964, 29918, 10818, 29903, 29961, 29894, 29895, 29962, 13, 13, 4706, 396, 2023, 6098, 1018, 4890, 856, 13, 4706, 396, 14402, 29901, 4803, 24664, 29920, 29889, 29907, 1692, 794, 2558, 3377, 2577, 2525, 12858, 1231, 2012, 13, 4706, 1373, 353, 1820, 401, 29918, 517, 29918, 1807, 29898, 13, 9651, 1583, 3032, 4703, 29892, 325, 29895, 29892, 24664, 29920, 29889, 29907, 1692, 794, 2577, 15675, 29898, 3696, 876, 13, 4706, 565, 1373, 29901, 13, 9651, 736, 7670, 3399, 29889, 3166, 29918, 3090, 29898, 3090, 29892, 325, 29895, 29922, 29894, 29895, 29897, 13, 13, 4706, 396, 2023, 392, 6416, 1250, 373, 263, 6901, 1820, 775, 13, 4706, 736, 7670, 3399, 29889, 3166, 29918, 29894, 29895, 29898, 29894, 29895, 29897, 13, 2 ]
tests/test_provider_Mongey_kafka_connect.py
mjuenema/python-terrascript
507
3451
# tests/test_provider_Mongey_kafka-connect.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:20:11 UTC) def test_provider_import(): import terrascript.provider.Mongey.kafka_connect def test_resource_import(): from terrascript.resource.Mongey.kafka_connect import kafka_connect_connector # TODO: Shortcut imports without namespace for official and supported providers. # TODO: This has to be moved into a required_providers block. # def test_version_source(): # # import terrascript.provider.Mongey.kafka_connect # # t = terrascript.provider.Mongey.kafka_connect.kafka_connect() # s = str(t) # # assert 'https://github.com/Mongey/terraform-provider-kafka-connect' in s # assert '0.2.3' in s
[ 1, 396, 6987, 29914, 1688, 29918, 18121, 29918, 7185, 479, 29891, 29918, 28510, 29899, 6915, 29889, 2272, 13, 29937, 15854, 19574, 5759, 491, 8492, 29914, 5675, 401, 29889, 2272, 313, 29906, 29946, 29899, 29903, 1022, 29899, 29906, 29900, 29906, 29896, 29871, 29896, 29945, 29901, 29906, 29900, 29901, 29896, 29896, 17998, 29897, 13, 13, 13, 1753, 1243, 29918, 18121, 29918, 5215, 7295, 13, 1678, 1053, 1935, 3417, 924, 29889, 18121, 29889, 7185, 479, 29891, 29889, 28510, 29918, 6915, 13, 13, 13, 1753, 1243, 29918, 10314, 29918, 5215, 7295, 13, 1678, 515, 1935, 3417, 924, 29889, 10314, 29889, 7185, 479, 29891, 29889, 28510, 29918, 6915, 1053, 413, 20817, 29918, 6915, 29918, 11958, 2801, 13, 13, 13, 29937, 14402, 29901, 13899, 7582, 24802, 1728, 7397, 363, 6221, 322, 6969, 1326, 11376, 29889, 13, 13, 29937, 14402, 29901, 910, 756, 304, 367, 6153, 964, 263, 3734, 29918, 771, 29454, 2908, 29889, 13, 29937, 822, 1243, 29918, 3259, 29918, 4993, 7295, 13, 29937, 13, 29937, 418, 1053, 1935, 3417, 924, 29889, 18121, 29889, 7185, 479, 29891, 29889, 28510, 29918, 6915, 13, 29937, 13, 29937, 418, 260, 353, 1935, 3417, 924, 29889, 18121, 29889, 7185, 479, 29891, 29889, 28510, 29918, 6915, 29889, 28510, 29918, 6915, 580, 13, 29937, 418, 269, 353, 851, 29898, 29873, 29897, 13, 29937, 13, 29937, 418, 4974, 525, 991, 597, 3292, 29889, 510, 29914, 7185, 479, 29891, 29914, 27331, 689, 29899, 18121, 29899, 28510, 29899, 6915, 29915, 297, 269, 13, 29937, 418, 4974, 525, 29900, 29889, 29906, 29889, 29941, 29915, 297, 269, 13, 2 ]
plugins/chatinfo.py
HtmlLoverExe/MultiUserbot1
0
58166
import configparser from datetime import datetime from pyrogram import Client, Filters, Emoji config = configparser.ConfigParser() config.read("config.ini") prefixes = list(config["prefixes"].keys()) chatinfo_message = {"id": f"{Emoji.ID_BUTTON} <b>Id</b>: <code>[%id%]</code>", "type": f"{Emoji.JAPANESE_SYMBOL_FOR_BEGINNER} <b>Type</b>: <code>[%type%]</code>", "title": f"{Emoji.FLEUR_DE_LIS} <b>Title</b>: <code>[%title%]</code>", "invite_link": f"{Emoji.LINK} <b>Invite Link</b>: <code>[%invite_link%]</code>", "first_name": f"{Emoji.BLOND_HAIRED_MAN_LIGHT_SKIN_TONE} <b>Name</b>: <code>[%first_name%]</code>", "last_name": f"{Emoji.BUST_IN_SILHOUETTE} <b>Last Name</b>: <code>[%last_name%]</code>", "username": f"{Emoji.LINK} <b>Username</b>: <code>[%username%]</code>", "dc_id": f"{Emoji.DESKTOP_COMPUTER} <b>Dc</b>: <code>[%dc_id%]</code>", "status": f"{Emoji.MOBILE_PHONE_WITH_ARROW} <b>Status</b>: <code>[%status%]</code>", "last_online_date": f"{Emoji.TWELVE_O_CLOCK} <b>Last Online Date</b>: <code>[" f"%last_online_date%]</code>", "next_offline_date": f"{Emoji.SEVEN_THIRTY} <b>Next Offline Date</b>: <code>[" f"%next_offline_date%]</code>", "is_bot": f"{Emoji.ROBOT_FACE} <b>Is Bot</b>: <code>[%is_bot%]</code>", "is_contact": f"{Emoji.TELEPHONE} <b>Is Contact</b>: <code>[%is_contact%]</code>", "is_mutual_contact": f"{Emoji.MOBILE_PHONE} <b>Is Mutual Contact</b>: <code>[" f"%is_mutual_contact%]</code>", "is_scam": f"{Emoji.CROSS_MARK} <b>Is scam</b>: <code>[%is_scam%]</code>", "sticker_set_name": f"{Emoji.DIAMOND_WITH_A_DOT} <b>Sticker Set</b>: <code>[" f"%sticker_set_name%]</code>", "members_count": f"{Emoji.FAMILY_MAN_WOMAN_GIRL_BOY} <b>Members</b>: " f"<code>[%members_count%]</code>", "bio": f"{Emoji.TRIDENT_EMBLEM} <b>Bio</b>: <code>[%bio%]</code>"} @Client.on_message(Filters.user("self") & Filters.command("chatinfo", prefixes=prefixes)) def chatinfo_command(c, msg): target = c.get_chat(msg.chat.id) message = "{} Info {}\n\n".format(Emoji.INFORMATION, Emoji.INFORMATION) for key in chatinfo_message: try: message += chatinfo_message[key].replace( f"[%{key}%]", str( ( target[key] if key != "next_offline_date" and key != "last_online_date" else ( datetime.fromtimestamp(int(target[key])).strftime("%H:%M:%S %d/%m/%y") ) ) if target[key] else ( target["raise AttributeError()"]) ) ) + "\n" except AttributeError: pass bio = c.get_chat(target.id).description if bio: message += chatinfo_message["bio"].replace("[%bio%]", c.get_chat(target.id).description) message += f"\n\n<a href=\"tg://user?id={target.id}\">Profile Link</a>" msg.edit_text(message) print("[MultiUserbot] Loaded \"chatinfo.py\" plugin")
[ 1, 1053, 2295, 16680, 13, 3166, 12865, 1053, 12865, 13, 13, 3166, 11451, 307, 1393, 1053, 12477, 29892, 2514, 2153, 29892, 2812, 29877, 2397, 13, 13, 2917, 353, 2295, 16680, 29889, 3991, 11726, 580, 13, 2917, 29889, 949, 703, 2917, 29889, 2172, 1159, 13, 13506, 267, 353, 1051, 29898, 2917, 3366, 13506, 267, 16862, 8149, 3101, 13, 13, 13496, 3888, 29918, 4906, 353, 8853, 333, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 1367, 29918, 29933, 2692, 29911, 1164, 29913, 529, 29890, 29958, 1204, 829, 29890, 23917, 529, 401, 24566, 29995, 333, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 1853, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 29967, 3301, 2190, 29923, 1660, 29918, 14816, 9486, 5607, 29918, 22051, 29918, 29933, 17958, 13865, 29913, 529, 29890, 29958, 1542, 829, 29890, 23917, 529, 401, 24566, 29995, 1853, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 3257, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 29943, 1307, 4574, 29918, 2287, 29918, 29931, 3235, 29913, 529, 29890, 29958, 7030, 829, 29890, 23917, 529, 401, 24566, 29995, 3257, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 11569, 568, 29918, 2324, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 23714, 29968, 29913, 529, 29890, 29958, 12165, 568, 6645, 829, 29890, 23917, 529, 401, 24566, 29995, 11569, 568, 29918, 2324, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 4102, 29918, 978, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 13367, 1164, 29928, 29918, 15715, 29902, 19386, 29918, 27616, 29918, 5265, 29954, 3912, 29918, 16033, 1177, 29918, 29911, 12413, 29913, 529, 29890, 29958, 1170, 829, 29890, 23917, 529, 401, 24566, 29995, 4102, 29918, 978, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 4230, 29918, 978, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 7838, 1254, 29918, 1177, 29918, 5425, 29931, 8187, 29965, 2544, 4330, 29913, 529, 29890, 29958, 8897, 4408, 829, 29890, 23917, 529, 401, 24566, 29995, 4230, 29918, 978, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 6786, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 23714, 29968, 29913, 529, 29890, 29958, 20249, 829, 29890, 23917, 529, 401, 24566, 29995, 6786, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 13891, 29918, 333, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 2287, 16033, 29911, 4590, 29918, 21514, 2692, 1001, 29913, 529, 29890, 29958, 29928, 29883, 829, 29890, 23917, 529, 401, 24566, 29995, 13891, 29918, 333, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 4882, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 6720, 12809, 1307, 29918, 19689, 12413, 29918, 29956, 13054, 29918, 1718, 25180, 29913, 529, 29890, 29958, 5709, 829, 29890, 23917, 529, 401, 24566, 29995, 4882, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 4230, 29918, 14627, 29918, 1256, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 16240, 6670, 12064, 29918, 29949, 29918, 29907, 21339, 29913, 529, 29890, 29958, 8897, 13542, 4712, 829, 29890, 23917, 529, 401, 29958, 3366, 13, 462, 462, 4706, 285, 29908, 29995, 4230, 29918, 14627, 29918, 1256, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 4622, 29918, 2696, 1220, 29918, 1256, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 1660, 29963, 1430, 29918, 4690, 8193, 15631, 29913, 529, 29890, 29958, 9190, 5947, 1220, 4712, 829, 29890, 23917, 529, 401, 29958, 3366, 13, 462, 462, 308, 285, 29908, 29995, 4622, 29918, 2696, 1220, 29918, 1256, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 275, 29918, 7451, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 1672, 29933, 2891, 29918, 29943, 11538, 29913, 529, 29890, 29958, 3624, 11273, 829, 29890, 23917, 529, 401, 24566, 29995, 275, 29918, 7451, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 275, 29918, 12346, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 4330, 1307, 19689, 12413, 29913, 529, 29890, 29958, 3624, 22387, 829, 29890, 23917, 529, 401, 24566, 29995, 275, 29918, 12346, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 275, 29918, 6149, 950, 29918, 12346, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 6720, 12809, 1307, 29918, 19689, 12413, 29913, 529, 29890, 29958, 3624, 20749, 950, 22387, 829, 29890, 23917, 529, 401, 29958, 3366, 13, 462, 462, 308, 285, 29908, 29995, 275, 29918, 6149, 950, 29918, 12346, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 275, 29918, 1557, 314, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 29907, 1672, 1799, 29918, 1529, 29934, 29968, 29913, 529, 29890, 29958, 3624, 885, 314, 829, 29890, 23917, 529, 401, 24566, 29995, 275, 29918, 1557, 314, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 303, 6541, 29918, 842, 29918, 978, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 4571, 5194, 1164, 29928, 29918, 29956, 13054, 29918, 29909, 29918, 29928, 2891, 29913, 529, 29890, 29958, 855, 6541, 3789, 829, 29890, 23917, 529, 401, 29958, 3366, 13, 462, 462, 4706, 285, 29908, 29995, 303, 6541, 29918, 842, 29918, 978, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 28109, 29918, 2798, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 4519, 29924, 6227, 29979, 29918, 27616, 29918, 29956, 29949, 27616, 29918, 29954, 29902, 2241, 29918, 8456, 29979, 29913, 529, 29890, 29958, 29924, 13415, 829, 29890, 23917, 376, 13, 462, 462, 268, 285, 29908, 29966, 401, 24566, 29995, 28109, 29918, 2798, 29995, 29962, 829, 401, 28341, 13, 462, 1678, 376, 24840, 1115, 285, 29908, 29912, 29923, 4346, 2397, 29889, 5659, 1367, 3919, 29918, 29923, 9486, 1307, 29924, 29913, 529, 29890, 29958, 29933, 601, 829, 29890, 23917, 529, 401, 24566, 29995, 24840, 29995, 29962, 829, 401, 29958, 9092, 13, 13, 13, 29992, 4032, 29889, 265, 29918, 4906, 29898, 3434, 2153, 29889, 1792, 703, 1311, 1159, 669, 2514, 2153, 29889, 6519, 703, 13496, 3888, 613, 10944, 267, 29922, 13506, 267, 876, 13, 1753, 13563, 3888, 29918, 6519, 29898, 29883, 29892, 10191, 1125, 13, 1678, 3646, 353, 274, 29889, 657, 29918, 13496, 29898, 7645, 29889, 13496, 29889, 333, 29897, 13, 1678, 2643, 353, 376, 8875, 22140, 426, 1012, 29876, 29905, 29876, 1642, 4830, 29898, 29923, 4346, 2397, 29889, 1177, 19094, 8098, 29892, 2812, 29877, 2397, 29889, 1177, 19094, 8098, 29897, 13, 1678, 363, 1820, 297, 13563, 3888, 29918, 4906, 29901, 13, 4706, 1018, 29901, 13, 9651, 2643, 4619, 13563, 3888, 29918, 4906, 29961, 1989, 1822, 6506, 29898, 13, 18884, 285, 29908, 29961, 29995, 29912, 1989, 10560, 29962, 613, 851, 29898, 13, 462, 1678, 313, 13, 462, 4706, 3646, 29961, 1989, 29962, 565, 1820, 2804, 376, 4622, 29918, 2696, 1220, 29918, 1256, 29908, 322, 1820, 2804, 376, 4230, 29918, 14627, 29918, 1256, 29908, 1683, 313, 13, 462, 9651, 12865, 29889, 3166, 16394, 29898, 524, 29898, 5182, 29961, 1989, 2314, 467, 710, 615, 603, 11702, 29950, 16664, 29924, 16664, 29903, 1273, 29881, 22584, 29885, 22584, 29891, 1159, 13, 462, 4706, 1723, 13, 462, 1678, 1723, 565, 3646, 29961, 1989, 29962, 1683, 313, 13, 462, 4706, 3646, 3366, 22692, 23833, 2392, 580, 20068, 13, 18884, 1723, 13, 9651, 1723, 718, 6634, 29876, 29908, 13, 4706, 5174, 23833, 2392, 29901, 13, 9651, 1209, 13, 1678, 17799, 353, 274, 29889, 657, 29918, 13496, 29898, 5182, 29889, 333, 467, 8216, 13, 1678, 565, 17799, 29901, 13, 4706, 2643, 4619, 13563, 3888, 29918, 4906, 3366, 24840, 16862, 6506, 703, 29961, 29995, 24840, 29995, 29962, 613, 274, 29889, 657, 29918, 13496, 29898, 5182, 29889, 333, 467, 8216, 29897, 13, 1678, 2643, 4619, 285, 26732, 29876, 29905, 29876, 29966, 29874, 2822, 14672, 29873, 29887, 597, 1792, 29973, 333, 3790, 5182, 29889, 333, 1012, 1013, 13909, 6645, 829, 29874, 11903, 13, 1678, 10191, 29889, 5628, 29918, 726, 29898, 4906, 29897, 13, 13, 13, 2158, 703, 29961, 15329, 2659, 7451, 29962, 4309, 11932, 13218, 13496, 3888, 29889, 2272, 5931, 7079, 1159, 13, 2 ]
thing/awsiot.py
ymtomoyk/smarthome
0
184892
from AWSIoTPythonSDK.MQTTLib import AWSIoTMQTTClient import logging MQTT_PORT = 8883 class MyAWSIoTClient: def __init__ (self, args): self.args = args self.client = AWSIoTMQTTClient (args.clientId) # Configure logging logger = logging.getLogger ('AWSIoTPythonSDK.core') logger.setLevel (logging.DEBUG) streamHandler = logging.StreamHandler () formatter = logging.Formatter ('%(asctime)s - %(name)s - %(levelname)s - %(message)s') streamHandler.setFormatter (formatter) logger.addHandler (streamHandler) # Init AWSIoTMQTTClient self.client.configureEndpoint (self.args.host, MQTT_PORT) self.client.configureCredentials (self.args.rootCAPath, self.args.privateKeyPath, self.args.certificatePath) # AWSIoTMQTTClient connection configuration self.client.configureAutoReconnectBackoffTime (1, 32, 20) self.client.configureOfflinePublishQueueing (-1) # Infinite offline Publish queueing self.client.configureDrainingFrequency (2) # Draining: 2 Hz self.client.configureConnectDisconnectTimeout (100) # 10 sec self.client.configureMQTTOperationTimeout (5) # 5 sec def __message_handler (self, client, userdata, message): print ('Received a new message: ') print (message.payload) print ('from topic: ' + message.topic) try: self.callback (message.payload) finally: print ("--------------\n\n") def subscribe (self, callback): self.callback = callback self.client.connect () self.client.subscribe (self.args.topicReq, 1, self.__message_handler) def publish (self, message): print message self.client.publishAsync (self.args.topicRes, message, 1) def __del__ (self): self.client.disconnect () # to call __del__() explicitly def delete (self): self.__del__ () del self
[ 1, 515, 319, 29956, 5425, 29877, 3557, 1656, 26912, 29889, 25566, 29911, 14632, 747, 1053, 319, 29956, 5425, 29877, 23081, 29984, 19988, 4032, 13, 5215, 12183, 13, 13, 25566, 19988, 29918, 15082, 259, 353, 29871, 29947, 29947, 29947, 29941, 13, 13, 1990, 1619, 29376, 5425, 29877, 29911, 4032, 29901, 13, 29871, 822, 4770, 2344, 1649, 313, 1311, 29892, 6389, 1125, 13, 1678, 1583, 29889, 5085, 353, 6389, 13, 1678, 1583, 29889, 4645, 353, 319, 29956, 5425, 29877, 23081, 29984, 19988, 4032, 313, 5085, 29889, 4645, 1204, 29897, 13, 13, 1678, 396, 1281, 4532, 12183, 13, 1678, 17927, 353, 12183, 29889, 657, 16363, 6702, 29376, 5425, 29877, 3557, 1656, 26912, 29889, 3221, 1495, 13, 1678, 17927, 29889, 842, 10108, 313, 21027, 29889, 18525, 29897, 13, 1678, 4840, 4598, 353, 12183, 29889, 3835, 4598, 3861, 13, 1678, 883, 2620, 353, 12183, 29889, 18522, 6702, 29995, 29898, 294, 312, 603, 29897, 29879, 448, 1273, 29898, 978, 29897, 29879, 448, 1273, 29898, 5563, 978, 29897, 29879, 448, 1273, 29898, 4906, 29897, 29879, 1495, 13, 1678, 4840, 4598, 29889, 842, 18522, 313, 689, 2620, 29897, 13, 1678, 17927, 29889, 1202, 4598, 313, 5461, 4598, 29897, 13, 13, 1678, 396, 10886, 319, 29956, 5425, 29877, 23081, 29984, 19988, 4032, 13, 1678, 1583, 29889, 4645, 29889, 17591, 25602, 313, 1311, 29889, 5085, 29889, 3069, 29892, 341, 29984, 19988, 29918, 15082, 29897, 13, 1678, 1583, 29889, 4645, 29889, 17591, 28037, 313, 1311, 29889, 5085, 29889, 4632, 5454, 2605, 29892, 1583, 29889, 5085, 29889, 9053, 2558, 2605, 29892, 1583, 29889, 5085, 29889, 6327, 8021, 2605, 29897, 13, 13, 1678, 396, 319, 29956, 5425, 29877, 23081, 29984, 19988, 4032, 3957, 5285, 13, 1678, 1583, 29889, 4645, 29889, 17591, 12300, 1123, 6915, 5841, 2696, 2481, 313, 29896, 29892, 29871, 29941, 29906, 29892, 29871, 29906, 29900, 29897, 13, 1678, 1583, 29889, 4645, 29889, 17591, 6880, 1220, 21076, 1674, 10620, 292, 8521, 29896, 29897, 29871, 396, 512, 18925, 1283, 1220, 12904, 9521, 292, 13, 1678, 1583, 29889, 4645, 29889, 17591, 24515, 2827, 23923, 23860, 313, 29906, 29897, 29871, 396, 16322, 2827, 29901, 29871, 29906, 379, 29920, 13, 1678, 1583, 29889, 4645, 29889, 17591, 17918, 4205, 6915, 10851, 313, 29896, 29900, 29900, 29897, 29871, 396, 29871, 29896, 29900, 5226, 13, 1678, 1583, 29889, 4645, 29889, 17591, 25566, 29911, 4986, 546, 362, 10851, 313, 29945, 29897, 29871, 396, 29871, 29945, 5226, 13, 13, 29871, 822, 4770, 4906, 29918, 13789, 313, 1311, 29892, 3132, 29892, 1404, 1272, 29892, 2643, 1125, 13, 1678, 1596, 6702, 29816, 263, 716, 2643, 29901, 25710, 13, 1678, 1596, 313, 4906, 29889, 23813, 29897, 13, 1678, 1596, 6702, 3166, 11261, 29901, 525, 718, 2643, 29889, 13010, 29897, 13, 1678, 1018, 29901, 13, 418, 1583, 29889, 14035, 313, 4906, 29889, 23813, 29897, 13, 1678, 7146, 29901, 13, 418, 1596, 4852, 9072, 489, 29905, 29876, 29905, 29876, 1159, 13, 13, 29871, 822, 1014, 13086, 313, 1311, 29892, 6939, 1125, 13, 1678, 1583, 29889, 14035, 353, 6939, 13, 1678, 1583, 29889, 4645, 29889, 6915, 3861, 13, 1678, 1583, 29889, 4645, 29889, 19496, 313, 1311, 29889, 5085, 29889, 13010, 1123, 29939, 29892, 29871, 29896, 29892, 1583, 17255, 4906, 29918, 13789, 29897, 13, 13, 29871, 822, 9805, 313, 1311, 29892, 2643, 1125, 13, 1678, 1596, 2643, 13, 1678, 1583, 29889, 4645, 29889, 23679, 8123, 313, 1311, 29889, 5085, 29889, 13010, 1666, 29892, 2643, 29892, 29871, 29896, 29897, 13, 13, 29871, 822, 4770, 6144, 1649, 313, 1311, 1125, 13, 1678, 1583, 29889, 4645, 29889, 2218, 6915, 3861, 13, 13, 29871, 396, 304, 1246, 4770, 6144, 1649, 580, 9479, 13, 29871, 822, 5217, 313, 1311, 1125, 13, 1678, 1583, 17255, 6144, 1649, 3861, 13, 1678, 628, 1583, 13, 2 ]
Lib/site-packages/pyexcel_io/writers/tsvz.py
percevalm/aumyproject
0
85126
<gh_stars>0 """ pyexcel_io.fileformat.tsvz ~~~~~~~~~~~~~~~~~~~~~~~~~~ The lower level tsvz file format handler. :copyright: (c) 2014-2017 by Onni Software Ltd. :license: New BSD License, see LICENSE for more details """ from pyexcel_io.constants import FILE_FORMAT_TSVZ, KEYWORD_TSV_DIALECT from .csvz import CSVZipBookWriter class TSVZipBookWriter(CSVZipBookWriter): """ write zipped tsv file It is similiar to CSVZipBookWriter, but support tab separated values """ def __init__(self): CSVZipBookWriter.__init__(self) self._file_type = FILE_FORMAT_TSVZ def open(self, file_name, **keywords): keywords["dialect"] = KEYWORD_TSV_DIALECT CSVZipBookWriter.open(self, file_name, **keywords)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 15945, 29908, 13, 1678, 11451, 24633, 29918, 601, 29889, 1445, 4830, 29889, 1372, 29894, 29920, 13, 1678, 3695, 26594, 26594, 26594, 30022, 13, 13, 1678, 450, 5224, 3233, 260, 4501, 29920, 934, 3402, 7834, 29889, 13, 13, 1678, 584, 8552, 1266, 29901, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29946, 29899, 29906, 29900, 29896, 29955, 491, 1551, 1240, 18540, 19806, 29889, 13, 1678, 584, 506, 1947, 29901, 1570, 350, 7230, 19245, 29892, 1074, 365, 2965, 1430, 1660, 363, 901, 4902, 13, 15945, 29908, 13, 3166, 11451, 24633, 29918, 601, 29889, 3075, 1934, 1053, 24080, 29918, 19094, 1299, 29918, 29911, 7597, 29999, 29892, 14636, 17013, 29918, 29911, 7597, 29918, 4571, 29909, 3281, 13, 13, 3166, 869, 7638, 29920, 1053, 16874, 26264, 10967, 10507, 13, 13, 13, 1990, 323, 7597, 26264, 10967, 10507, 29898, 29907, 7597, 26264, 10967, 10507, 1125, 13, 1678, 9995, 2436, 503, 16242, 260, 4501, 934, 13, 13, 1678, 739, 338, 1027, 2638, 279, 304, 16874, 26264, 10967, 10507, 29892, 541, 2304, 4434, 13055, 1819, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 16874, 26264, 10967, 10507, 17255, 2344, 12035, 1311, 29897, 13, 4706, 1583, 3032, 1445, 29918, 1853, 353, 24080, 29918, 19094, 1299, 29918, 29911, 7597, 29999, 13, 13, 1678, 822, 1722, 29898, 1311, 29892, 934, 29918, 978, 29892, 3579, 1989, 9303, 1125, 13, 4706, 29361, 3366, 15321, 781, 3108, 353, 14636, 17013, 29918, 29911, 7597, 29918, 4571, 29909, 3281, 13, 4706, 16874, 26264, 10967, 10507, 29889, 3150, 29898, 1311, 29892, 934, 29918, 978, 29892, 3579, 1989, 9303, 29897, 13, 2 ]
binaryclassifier/statistics/ks.py
bmathias12/model-analysis
0
181186
import numpy as np import pandas as pd def ks_table(y, quantiles): """Function to produce a K-S table""" if len(set(y)) > 2: raise ValueError('Function only defined for binary classification') df = pd.concat([pd.Series(y), pd.Series(quantiles)], axis=1) df.columns = ['y', 'quantiles'] # Get counts of positive and negative values count_total = df.groupby('quantiles')['y'].count() count_pos = df.groupby('quantiles')['y'].sum() count_neg = count_total - count_pos # Get cumulative percents pos_pct_cum = count_pos.cumsum() / float(count_pos.sum()) * 100 neg_pct_cum = count_neg.cumsum() / float(count_neg.sum()) * 100 # Calculate KS ks_idx = np.abs(pos_pct_cum - neg_pct_cum) # Output table out_df = pd.concat([ count_total, count_pos, count_neg, pos_pct_cum, neg_pct_cum, ks_idx ], axis=1) out_df.columns = [ 'count_total', 'count_pos', 'count_neg', 'pos_pct_cum', 'neg_pct_cum', 'ks_idx' ] return out_df
[ 1, 1053, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, 13, 13, 1753, 413, 29879, 29918, 2371, 29898, 29891, 29892, 4323, 5475, 1125, 13, 1678, 9995, 6678, 304, 7738, 263, 476, 29899, 29903, 1591, 15945, 29908, 13, 1678, 565, 7431, 29898, 842, 29898, 29891, 876, 1405, 29871, 29906, 29901, 13, 4706, 12020, 7865, 2392, 877, 6678, 871, 3342, 363, 7581, 12965, 1495, 13, 13, 1678, 4489, 353, 10518, 29889, 17685, 4197, 15926, 29889, 19204, 29898, 29891, 511, 10518, 29889, 19204, 29898, 12150, 5475, 29897, 1402, 9685, 29922, 29896, 29897, 13, 1678, 4489, 29889, 13099, 353, 6024, 29891, 742, 525, 12150, 5475, 2033, 13, 13, 1678, 396, 3617, 18139, 310, 6374, 322, 8178, 1819, 13, 1678, 2302, 29918, 7827, 353, 4489, 29889, 27789, 877, 12150, 5475, 1495, 1839, 29891, 13359, 2798, 580, 13, 1678, 2302, 29918, 1066, 353, 4489, 29889, 27789, 877, 12150, 5475, 1495, 1839, 29891, 13359, 2083, 580, 13, 1678, 2302, 29918, 10052, 353, 2302, 29918, 7827, 448, 2302, 29918, 1066, 13, 13, 1678, 396, 3617, 13299, 28524, 639, 29883, 1237, 13, 1678, 926, 29918, 29886, 312, 29918, 29883, 398, 353, 2302, 29918, 1066, 29889, 29883, 398, 2083, 580, 847, 5785, 29898, 2798, 29918, 1066, 29889, 2083, 3101, 334, 29871, 29896, 29900, 29900, 13, 1678, 3480, 29918, 29886, 312, 29918, 29883, 398, 353, 2302, 29918, 10052, 29889, 29883, 398, 2083, 580, 847, 5785, 29898, 2798, 29918, 10052, 29889, 2083, 3101, 334, 29871, 29896, 29900, 29900, 13, 13, 1678, 396, 20535, 403, 476, 29903, 13, 1678, 413, 29879, 29918, 13140, 353, 7442, 29889, 6897, 29898, 1066, 29918, 29886, 312, 29918, 29883, 398, 448, 3480, 29918, 29886, 312, 29918, 29883, 398, 29897, 13, 13, 1678, 396, 10604, 1591, 13, 1678, 714, 29918, 2176, 353, 10518, 29889, 17685, 4197, 13, 9651, 2302, 29918, 7827, 29892, 2302, 29918, 1066, 29892, 2302, 29918, 10052, 29892, 926, 29918, 29886, 312, 29918, 29883, 398, 29892, 3480, 29918, 29886, 312, 29918, 29883, 398, 29892, 413, 29879, 29918, 13140, 13, 4706, 21251, 9685, 29922, 29896, 29897, 13, 1678, 714, 29918, 2176, 29889, 13099, 353, 518, 13, 9651, 525, 2798, 29918, 7827, 742, 525, 2798, 29918, 1066, 742, 525, 2798, 29918, 10052, 742, 13, 9651, 525, 1066, 29918, 29886, 312, 29918, 29883, 398, 742, 525, 10052, 29918, 29886, 312, 29918, 29883, 398, 742, 525, 2039, 29918, 13140, 29915, 13, 4706, 4514, 13, 1678, 736, 714, 29918, 2176, 2 ]
module5/coroutine_pipelines_filter.py
axel-sirota/advanced-generator-and-coroutines
5
186491
<gh_stars>1-10 from module4 import coroutine @coroutine def filter_by_pattern(pattern, target): print(f'I am going to filter lines by pattern {pattern}') while True: line = yield if pattern in line: target.send(line) def iterate_file(file, target): with open(file) as f: for line in f: target.send(line) print('Im done!') @coroutine def coprint(): while True: line = yield print(f'-->{line}\n')
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 3883, 29946, 1053, 1034, 449, 457, 13, 13, 13, 29992, 2616, 449, 457, 13, 1753, 4175, 29918, 1609, 29918, 11037, 29898, 11037, 29892, 3646, 1125, 13, 1678, 1596, 29898, 29888, 29915, 29902, 626, 2675, 304, 4175, 3454, 491, 4766, 426, 11037, 29913, 1495, 13, 1678, 1550, 5852, 29901, 13, 4706, 1196, 353, 7709, 13, 4706, 565, 4766, 297, 1196, 29901, 13, 9651, 3646, 29889, 6717, 29898, 1220, 29897, 13, 13, 13, 1753, 13649, 29918, 1445, 29898, 1445, 29892, 3646, 1125, 13, 1678, 411, 1722, 29898, 1445, 29897, 408, 285, 29901, 13, 4706, 363, 1196, 297, 285, 29901, 13, 9651, 3646, 29889, 6717, 29898, 1220, 29897, 13, 1678, 1596, 877, 1888, 2309, 29991, 1495, 13, 13, 13, 29992, 2616, 449, 457, 13, 1753, 5614, 29878, 524, 7295, 13, 1678, 1550, 5852, 29901, 13, 4706, 1196, 353, 7709, 13, 4706, 1596, 29898, 29888, 29915, 15110, 29912, 1220, 1012, 29876, 1495, 13, 13, 13, 2 ]
anoncreds/protocol/primary/primary_proof_builder.py
fabienpe/indy-anoncreds
16
72214
from typing import Sequence, Dict from anoncreds.protocol.globals import LARGE_VPRIME, LARGE_MVECT, LARGE_E_START, \ LARGE_ETILDE, \ LARGE_VTILDE, LARGE_UTILDE, LARGE_RTILDE, LARGE_ALPHATILDE, ITERATIONS, \ DELTA from anoncreds.protocol.primary.primary_proof_common import calcTge, calcTeq from anoncreds.protocol.types import PrimaryClaim, Predicate, PrimaryInitProof, \ PrimaryEqualInitProof, PrimaryPrecicateGEInitProof, PrimaryProof, \ PrimaryEqualProof, PrimaryPredicateGEProof, \ ID, ClaimInitDataType, ClaimAttributeValues from anoncreds.protocol.utils import splitRevealedAttrs, fourSquares from anoncreds.protocol.wallet.prover_wallet import ProverWallet from config.config import cmod class PrimaryClaimInitializer: def __init__(self, wallet: ProverWallet): self._wallet = wallet async def genClaimInitData(self, schemaId: ID) -> ClaimInitDataType: pk = await self._wallet.getPublicKey(schemaId) ms = await self._wallet.getMasterSecret(schemaId) vprime = cmod.randomBits(LARGE_VPRIME) N = pk.N Rms = pk.Rms S = pk.S U = (S ** vprime) * (Rms ** ms) % N return ClaimInitDataType(U=U, vPrime=vprime) async def preparePrimaryClaim(self, schemaId: ID, claim: PrimaryClaim): claimInitDat = await self._wallet.getPrimaryClaimInitData(schemaId) newV = claim.v + claimInitDat.vPrime claim = claim._replace(v=newV) return claim class PrimaryProofBuilder: def __init__(self, wallet: ProverWallet): self._wallet = wallet async def initProof(self, schemaId, c1: PrimaryClaim, revealedAttrs: Sequence[str], predicates: Sequence[Predicate], m1Tilde, m2Tilde, claimAttributes: Dict[str, ClaimAttributeValues]) -> PrimaryInitProof: if not c1: return None eqProof = await self._initEqProof(schemaId, c1, revealedAttrs, m1Tilde, m2Tilde, claimAttributes) geProofs = [] for predicate in predicates: geProof = await self._initGeProof(schemaId, eqProof, c1, predicate, claimAttributes) geProofs.append(geProof) return PrimaryInitProof(eqProof, geProofs) async def finalizeProof(self, schemaId, cH, initProof: PrimaryInitProof) -> PrimaryProof: if not initProof: return None cH = cmod.integer(cH) eqProof = await self._finalizeEqProof(schemaId, cH, initProof.eqProof) geProofs = [] for initGeProof in initProof.geProofs: geProof = await self._finalizeGeProof(schemaId, cH, initGeProof, eqProof) geProofs.append(geProof) return PrimaryProof(eqProof, geProofs) async def _initEqProof(self, schemaId, c1: PrimaryClaim, revealedAttrs: Sequence[str], m1Tilde, m2Tilde, claimAttributes: Dict[str, ClaimAttributeValues]) \ -> PrimaryEqualInitProof: m2Tilde = m2Tilde if m2Tilde else cmod.integer( cmod.randomBits(LARGE_MVECT)) revealedAttrs, unrevealedAttrs = splitRevealedAttrs( claimAttributes, [a.name for a in revealedAttrs]) mtilde = self._getMTilde(unrevealedAttrs) Ra = cmod.integer(cmod.randomBits(LARGE_VPRIME)) pk = await self._wallet.getPublicKey(ID(schemaId=schemaId)) A, e, v = c1.A, c1.e, c1.v Aprime = A * (pk.S ** Ra) % pk.N vprime = (v - e * Ra) eprime = e - (2 ** LARGE_E_START) etilde = cmod.integer(cmod.randomBits(LARGE_ETILDE)) vtilde = cmod.integer(cmod.randomBits(LARGE_VTILDE)) Rur = 1 % pk.N for k, value in unrevealedAttrs.items(): if k in claimAttributes: Rur = Rur * (pk.R[k] ** mtilde[k]) Rur *= pk.Rms ** m1Tilde Rur *= pk.Rctxt ** m2Tilde # T = ((Aprime ** etilde) * Rur * (pk.S ** vtilde)) % pk.N T = calcTeq(pk, Aprime, etilde, vtilde, mtilde, m1Tilde, m2Tilde, unrevealedAttrs.keys()) return PrimaryEqualInitProof(c1, Aprime, T, etilde, eprime, vtilde, vprime, mtilde, m1Tilde, m2Tilde, unrevealedAttrs.keys(), revealedAttrs) async def _initGeProof(self, schemaId, eqProof: PrimaryEqualInitProof, c1: PrimaryClaim, predicate: Predicate, claimAttributes: Dict[str, ClaimAttributeValues]) \ -> PrimaryPrecicateGEInitProof: # gen U for Delta pk = await self._wallet.getPublicKey(ID(schemaId=schemaId)) k, value = predicate.attrName, predicate.value delta = claimAttributes[k].encoded - value if delta < 0: raise ValueError("Predicate is not satisfied") u = fourSquares(delta) # prepare C list r = {} T = {} CList = [] for i in range(0, ITERATIONS): r[str(i)] = cmod.integer(cmod.randomBits(LARGE_VPRIME)) T[str(i)] = (pk.Z ** u[str(i)]) * (pk.S ** r[str(i)]) % pk.N CList.append(T[str(i)]) r[DELTA] = cmod.integer(cmod.randomBits(LARGE_VPRIME)) T[DELTA] = (pk.Z ** delta) * (pk.S ** r[DELTA]) % pk.N CList.append(T[DELTA]) # prepare Tau List utilde = {} rtilde = {} for i in range(0, ITERATIONS): utilde[str(i)] = cmod.integer(cmod.randomBits(LARGE_UTILDE)) rtilde[str(i)] = cmod.integer(cmod.randomBits(LARGE_RTILDE)) rtilde[DELTA] = cmod.integer(cmod.randomBits(LARGE_RTILDE)) alphatilde = cmod.integer(cmod.randomBits(LARGE_ALPHATILDE)) TauList = calcTge(pk, utilde, rtilde, eqProof.mTilde[k], alphatilde, T) return PrimaryPrecicateGEInitProof(CList, TauList, u, utilde, r, rtilde, alphatilde, predicate, T) async def _finalizeEqProof(self, schemaId, cH, initProof: PrimaryEqualInitProof) -> PrimaryEqualProof: e = initProof.eTilde + (cH * initProof.ePrime) v = initProof.vTilde + (cH * initProof.vPrime) m = {} claimAttributes = await self._wallet.getClaimAttributes(ID(schemaId=schemaId)) for k in initProof.unrevealedAttrs: m[str(k)] = initProof.mTilde[str(k)] + ( cH * claimAttributes[str(k)].encoded) ms = await self._wallet.getMasterSecret(ID(schemaId=schemaId)) m1 = initProof.m1Tilde + (cH * ms) m2 = initProof.m2Tilde + (cH * initProof.c1.m2) return PrimaryEqualProof(e, v, m, m1, m2, initProof.Aprime, initProof.revealedAttrs) async def _finalizeGeProof(self, schemaId, cH, initProof: PrimaryPrecicateGEInitProof, eqProof: PrimaryEqualProof) \ -> PrimaryPredicateGEProof: u = {} r = {} urproduct = 0 for i in range(0, ITERATIONS): u[str(i)] = initProof.uTilde[str(i)] + cH * initProof.u[str(i)] r[str(i)] = initProof.rTilde[str(i)] + cH * initProof.r[str(i)] urproduct += initProof.u[str(i)] * initProof.r[str(i)] r[DELTA] = initProof.rTilde[DELTA] + cH * initProof.r[DELTA] alpha = initProof.alphaTilde + cH * (initProof.r[DELTA] - urproduct) k = initProof.predicate.attrName return PrimaryPredicateGEProof(u, r, alpha, eqProof.m[str(k)], initProof.T, initProof.predicate) def _getMTilde(self, unrevealedAttrs): mtilde = {} for key, value in unrevealedAttrs.items(): mtilde[key] = cmod.integer(cmod.randomBits(LARGE_MVECT)) return mtilde
[ 1, 515, 19229, 1053, 922, 3910, 29892, 360, 919, 13, 13, 3166, 385, 265, 1037, 6289, 29889, 20464, 29889, 23705, 1338, 1053, 365, 1718, 1692, 29918, 18510, 3960, 2303, 29892, 365, 1718, 1692, 29918, 29924, 12064, 1783, 29892, 365, 1718, 1692, 29918, 29923, 29918, 25826, 29892, 320, 13, 1678, 365, 1718, 1692, 29918, 2544, 6227, 2287, 29892, 320, 13, 1678, 365, 1718, 1692, 29918, 29963, 29911, 6227, 2287, 29892, 365, 1718, 1692, 29918, 2692, 6227, 2287, 29892, 365, 1718, 1692, 29918, 13079, 6227, 2287, 29892, 365, 1718, 1692, 29918, 1964, 19689, 1299, 6227, 2287, 29892, 306, 4945, 8098, 29903, 29892, 320, 13, 1678, 5012, 5850, 29909, 13, 3166, 385, 265, 1037, 6289, 29889, 20464, 29889, 16072, 29889, 16072, 29918, 8017, 29918, 9435, 1053, 22235, 29911, 479, 29892, 22235, 29911, 1837, 13, 3166, 385, 265, 1037, 6289, 29889, 20464, 29889, 8768, 1053, 28267, 29907, 8342, 29892, 21099, 9593, 29892, 28267, 6644, 28116, 29892, 320, 13, 1678, 28267, 9843, 6644, 28116, 29892, 28267, 29925, 3757, 9593, 1692, 6644, 28116, 29892, 28267, 28116, 29892, 320, 13, 1678, 28267, 9843, 28116, 29892, 28267, 23084, 9593, 1692, 28116, 29892, 320, 13, 1678, 3553, 29892, 6015, 326, 6644, 1469, 1542, 29892, 6015, 326, 6708, 9065, 13, 3166, 385, 265, 1037, 6289, 29889, 20464, 29889, 13239, 1053, 6219, 1123, 345, 7943, 25098, 29879, 29892, 3023, 29903, 339, 5114, 13, 3166, 385, 265, 1037, 6289, 29889, 20464, 29889, 14625, 1026, 29889, 771, 369, 29918, 14625, 1026, 1053, 1019, 369, 29956, 284, 1026, 13, 3166, 2295, 29889, 2917, 1053, 274, 1545, 13, 13, 13, 1990, 28267, 29907, 8342, 15514, 3950, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 17042, 1026, 29901, 1019, 369, 29956, 284, 1026, 1125, 13, 4706, 1583, 3032, 14625, 1026, 353, 17042, 1026, 13, 13, 1678, 7465, 822, 2531, 29907, 8342, 6644, 1469, 29898, 1311, 29892, 10938, 1204, 29901, 3553, 29897, 1599, 6015, 326, 6644, 1469, 1542, 29901, 13, 4706, 282, 29895, 353, 7272, 1583, 3032, 14625, 1026, 29889, 657, 19858, 2558, 29898, 11010, 1204, 29897, 13, 4706, 10887, 353, 7272, 1583, 3032, 14625, 1026, 29889, 657, 19203, 28459, 29898, 11010, 1204, 29897, 13, 4706, 325, 10080, 353, 274, 1545, 29889, 8172, 29933, 1169, 29898, 29931, 1718, 1692, 29918, 18510, 3960, 2303, 29897, 13, 4706, 405, 353, 282, 29895, 29889, 29940, 13, 4706, 390, 1516, 353, 282, 29895, 29889, 29934, 1516, 13, 4706, 317, 353, 282, 29895, 29889, 29903, 13, 4706, 501, 353, 313, 29903, 3579, 325, 10080, 29897, 334, 313, 29934, 1516, 3579, 10887, 29897, 1273, 405, 13, 13, 4706, 736, 6015, 326, 6644, 1469, 1542, 29898, 29965, 29922, 29965, 29892, 325, 4040, 603, 29922, 29894, 10080, 29897, 13, 13, 1678, 7465, 822, 19012, 26666, 29907, 8342, 29898, 1311, 29892, 10938, 1204, 29901, 3553, 29892, 5995, 29901, 28267, 29907, 8342, 1125, 13, 4706, 5995, 6644, 16390, 353, 7272, 1583, 3032, 14625, 1026, 29889, 657, 26666, 29907, 8342, 6644, 1469, 29898, 11010, 1204, 29897, 13, 4706, 716, 29963, 353, 5995, 29889, 29894, 718, 5995, 6644, 16390, 29889, 29894, 4040, 603, 13, 4706, 5995, 353, 5995, 3032, 6506, 29898, 29894, 29922, 1482, 29963, 29897, 13, 4706, 736, 5995, 13, 13, 13, 1990, 28267, 28116, 5627, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 17042, 1026, 29901, 1019, 369, 29956, 284, 1026, 1125, 13, 4706, 1583, 3032, 14625, 1026, 353, 17042, 1026, 13, 13, 1678, 7465, 822, 2069, 28116, 29898, 1311, 29892, 10938, 1204, 29892, 274, 29896, 29901, 28267, 29907, 8342, 29892, 13, 462, 4706, 17845, 25098, 29879, 29901, 922, 3910, 29961, 710, 1402, 13, 462, 4706, 4450, 293, 1078, 29901, 922, 3910, 29961, 23084, 9593, 1402, 13, 462, 4706, 286, 29896, 29911, 7154, 29892, 286, 29906, 29911, 7154, 29892, 5995, 15801, 29901, 360, 919, 29961, 710, 29892, 6015, 326, 6708, 9065, 2314, 1599, 28267, 6644, 28116, 29901, 13, 4706, 565, 451, 274, 29896, 29901, 13, 9651, 736, 6213, 13, 13, 4706, 11594, 28116, 353, 7272, 1583, 3032, 2344, 18630, 28116, 29898, 11010, 1204, 29892, 274, 29896, 29892, 17845, 25098, 29879, 29892, 13, 462, 462, 3986, 286, 29896, 29911, 7154, 29892, 286, 29906, 29911, 7154, 29892, 5995, 15801, 29897, 13, 4706, 1737, 28116, 29879, 353, 5159, 13, 4706, 363, 24384, 297, 4450, 293, 1078, 29901, 13, 9651, 1737, 28116, 353, 7272, 1583, 3032, 2344, 7999, 28116, 29898, 11010, 1204, 29892, 11594, 28116, 29892, 274, 29896, 29892, 13, 462, 462, 795, 24384, 29892, 5995, 15801, 29897, 13, 9651, 1737, 28116, 29879, 29889, 4397, 29898, 479, 28116, 29897, 13, 4706, 736, 28267, 6644, 28116, 29898, 1837, 28116, 29892, 1737, 28116, 29879, 29897, 13, 13, 1678, 7465, 822, 2186, 675, 28116, 29898, 1311, 29892, 10938, 1204, 29892, 274, 29950, 29892, 13, 462, 9651, 2069, 28116, 29901, 28267, 6644, 28116, 29897, 1599, 28267, 28116, 29901, 13, 4706, 565, 451, 2069, 28116, 29901, 13, 9651, 736, 6213, 13, 13, 4706, 274, 29950, 353, 274, 1545, 29889, 16031, 29898, 29883, 29950, 29897, 13, 4706, 11594, 28116, 353, 7272, 1583, 3032, 8394, 675, 18630, 28116, 29898, 11010, 1204, 29892, 274, 29950, 29892, 13, 462, 462, 795, 2069, 28116, 29889, 1837, 28116, 29897, 13, 4706, 1737, 28116, 29879, 353, 5159, 13, 4706, 363, 2069, 7999, 28116, 297, 2069, 28116, 29889, 479, 28116, 29879, 29901, 13, 9651, 1737, 28116, 353, 7272, 1583, 3032, 8394, 675, 7999, 28116, 29898, 11010, 1204, 29892, 274, 29950, 29892, 2069, 7999, 28116, 29892, 13, 462, 462, 462, 29871, 11594, 28116, 29897, 13, 9651, 1737, 28116, 29879, 29889, 4397, 29898, 479, 28116, 29897, 13, 4706, 736, 28267, 28116, 29898, 1837, 28116, 29892, 1737, 28116, 29879, 29897, 13, 13, 1678, 7465, 822, 903, 2344, 18630, 28116, 29898, 1311, 29892, 10938, 1204, 29892, 274, 29896, 29901, 28267, 29907, 8342, 29892, 13, 462, 965, 17845, 25098, 29879, 29901, 922, 3910, 29961, 710, 1402, 286, 29896, 29911, 7154, 29892, 286, 29906, 29911, 7154, 29892, 5995, 15801, 29901, 360, 919, 29961, 710, 29892, 6015, 326, 6708, 9065, 2314, 320, 13, 9651, 1599, 28267, 9843, 6644, 28116, 29901, 13, 4706, 286, 29906, 29911, 7154, 353, 286, 29906, 29911, 7154, 565, 286, 29906, 29911, 7154, 1683, 274, 1545, 29889, 16031, 29898, 13, 9651, 274, 1545, 29889, 8172, 29933, 1169, 29898, 29931, 1718, 1692, 29918, 29924, 12064, 1783, 876, 13, 4706, 17845, 25098, 29879, 29892, 443, 276, 345, 7943, 25098, 29879, 353, 6219, 1123, 345, 7943, 25098, 29879, 29898, 13, 9651, 5995, 15801, 29892, 518, 29874, 29889, 978, 363, 263, 297, 17845, 25098, 29879, 2314, 13, 4706, 286, 5891, 353, 1583, 3032, 657, 11490, 7154, 29898, 348, 276, 345, 7943, 25098, 29879, 29897, 13, 13, 4706, 6981, 353, 274, 1545, 29889, 16031, 29898, 29883, 1545, 29889, 8172, 29933, 1169, 29898, 29931, 1718, 1692, 29918, 18510, 3960, 2303, 876, 13, 4706, 282, 29895, 353, 7272, 1583, 3032, 14625, 1026, 29889, 657, 19858, 2558, 29898, 1367, 29898, 11010, 1204, 29922, 11010, 1204, 876, 13, 13, 4706, 319, 29892, 321, 29892, 325, 353, 274, 29896, 29889, 29909, 29892, 274, 29896, 29889, 29872, 29892, 274, 29896, 29889, 29894, 13, 4706, 319, 10080, 353, 319, 334, 313, 20571, 29889, 29903, 3579, 6981, 29897, 1273, 282, 29895, 29889, 29940, 13, 4706, 325, 10080, 353, 313, 29894, 448, 321, 334, 6981, 29897, 13, 4706, 321, 10080, 353, 321, 448, 313, 29906, 3579, 365, 1718, 1692, 29918, 29923, 29918, 25826, 29897, 13, 13, 4706, 634, 7154, 353, 274, 1545, 29889, 16031, 29898, 29883, 1545, 29889, 8172, 29933, 1169, 29898, 29931, 1718, 1692, 29918, 2544, 6227, 2287, 876, 13, 4706, 325, 5891, 353, 274, 1545, 29889, 16031, 29898, 29883, 1545, 29889, 8172, 29933, 1169, 29898, 29931, 1718, 1692, 29918, 29963, 29911, 6227, 2287, 876, 13, 13, 4706, 390, 332, 353, 29871, 29896, 1273, 282, 29895, 29889, 29940, 13, 4706, 363, 413, 29892, 995, 297, 443, 276, 345, 7943, 25098, 29879, 29889, 7076, 7295, 13, 9651, 565, 413, 297, 5995, 15801, 29901, 13, 18884, 390, 332, 353, 390, 332, 334, 313, 20571, 29889, 29934, 29961, 29895, 29962, 3579, 286, 5891, 29961, 29895, 2314, 13, 4706, 390, 332, 334, 29922, 282, 29895, 29889, 29934, 1516, 3579, 286, 29896, 29911, 7154, 13, 4706, 390, 332, 334, 29922, 282, 29895, 29889, 29934, 312, 486, 3579, 286, 29906, 29911, 7154, 13, 13, 4706, 396, 323, 353, 5135, 29909, 10080, 3579, 634, 7154, 29897, 334, 390, 332, 334, 313, 20571, 29889, 29903, 3579, 325, 5891, 876, 1273, 282, 29895, 29889, 29940, 13, 4706, 323, 353, 22235, 29911, 1837, 29898, 20571, 29892, 319, 10080, 29892, 634, 7154, 29892, 325, 5891, 29892, 286, 5891, 29892, 286, 29896, 29911, 7154, 29892, 286, 29906, 29911, 7154, 29892, 13, 462, 1678, 443, 276, 345, 7943, 25098, 29879, 29889, 8149, 3101, 13, 13, 4706, 736, 28267, 9843, 6644, 28116, 29898, 29883, 29896, 29892, 319, 10080, 29892, 323, 29892, 634, 7154, 29892, 321, 10080, 29892, 325, 5891, 29892, 13, 462, 462, 268, 325, 10080, 29892, 286, 5891, 29892, 286, 29896, 29911, 7154, 29892, 286, 29906, 29911, 7154, 29892, 13, 462, 462, 268, 443, 276, 345, 7943, 25098, 29879, 29889, 8149, 3285, 17845, 25098, 29879, 29897, 13, 13, 1678, 7465, 822, 903, 2344, 7999, 28116, 29898, 1311, 29892, 10938, 1204, 29892, 11594, 28116, 29901, 28267, 9843, 6644, 28116, 29892, 13, 462, 965, 274, 29896, 29901, 28267, 29907, 8342, 29892, 24384, 29901, 21099, 9593, 29892, 5995, 15801, 29901, 360, 919, 29961, 710, 29892, 6015, 326, 6708, 9065, 2314, 320, 13, 9651, 1599, 28267, 29925, 3757, 9593, 1692, 6644, 28116, 29901, 13, 4706, 396, 2531, 501, 363, 360, 2554, 13, 4706, 282, 29895, 353, 7272, 1583, 3032, 14625, 1026, 29889, 657, 19858, 2558, 29898, 1367, 29898, 11010, 1204, 29922, 11010, 1204, 876, 13, 4706, 413, 29892, 995, 353, 24384, 29889, 5552, 1170, 29892, 24384, 29889, 1767, 13, 4706, 19471, 353, 5995, 15801, 29961, 29895, 1822, 26716, 448, 995, 13, 4706, 565, 19471, 529, 29871, 29900, 29901, 13, 9651, 12020, 7865, 2392, 703, 23084, 9593, 338, 451, 15787, 1159, 13, 13, 4706, 318, 353, 3023, 29903, 339, 5114, 29898, 4181, 29897, 13, 13, 4706, 396, 19012, 315, 1051, 13, 4706, 364, 353, 6571, 13, 4706, 323, 353, 6571, 13, 4706, 315, 1293, 353, 5159, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 306, 4945, 8098, 29903, 1125, 13, 9651, 364, 29961, 710, 29898, 29875, 4638, 353, 274, 1545, 29889, 16031, 29898, 29883, 1545, 29889, 8172, 29933, 1169, 29898, 29931, 1718, 1692, 29918, 18510, 3960, 2303, 876, 13, 9651, 323, 29961, 710, 29898, 29875, 4638, 353, 313, 20571, 29889, 29999, 3579, 318, 29961, 710, 29898, 29875, 29897, 2314, 334, 313, 20571, 29889, 29903, 3579, 364, 29961, 710, 29898, 29875, 29897, 2314, 1273, 282, 29895, 29889, 29940, 13, 9651, 315, 1293, 29889, 4397, 29898, 29911, 29961, 710, 29898, 29875, 29897, 2314, 13, 4706, 364, 29961, 2287, 5850, 29909, 29962, 353, 274, 1545, 29889, 16031, 29898, 29883, 1545, 29889, 8172, 29933, 1169, 29898, 29931, 1718, 1692, 29918, 18510, 3960, 2303, 876, 13, 4706, 323, 29961, 2287, 5850, 29909, 29962, 353, 313, 20571, 29889, 29999, 3579, 19471, 29897, 334, 313, 20571, 29889, 29903, 3579, 364, 29961, 2287, 5850, 29909, 2314, 1273, 282, 29895, 29889, 29940, 13, 4706, 315, 1293, 29889, 4397, 29898, 29911, 29961, 2287, 5850, 29909, 2314, 13, 13, 4706, 396, 19012, 323, 585, 2391, 13, 4706, 3667, 311, 353, 6571, 13, 4706, 364, 5891, 353, 6571, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 306, 4945, 8098, 29903, 1125, 13, 9651, 3667, 311, 29961, 710, 29898, 29875, 4638, 353, 274, 1545, 29889, 16031, 29898, 29883, 1545, 29889, 8172, 29933, 1169, 29898, 29931, 1718, 1692, 29918, 2692, 6227, 2287, 876, 13, 9651, 364, 5891, 29961, 710, 29898, 29875, 4638, 353, 274, 1545, 29889, 16031, 29898, 29883, 1545, 29889, 8172, 29933, 1169, 29898, 29931, 1718, 1692, 29918, 13079, 6227, 2287, 876, 13, 4706, 364, 5891, 29961, 2287, 5850, 29909, 29962, 353, 274, 1545, 29889, 16031, 29898, 29883, 1545, 29889, 8172, 29933, 1169, 29898, 29931, 1718, 1692, 29918, 13079, 6227, 2287, 876, 13, 4706, 394, 561, 271, 7154, 353, 274, 1545, 29889, 16031, 29898, 29883, 1545, 29889, 8172, 29933, 1169, 29898, 29931, 1718, 1692, 29918, 1964, 19689, 1299, 6227, 2287, 876, 13, 13, 4706, 323, 585, 1293, 353, 22235, 29911, 479, 29898, 20571, 29892, 3667, 311, 29892, 364, 5891, 29892, 11594, 28116, 29889, 29885, 29911, 7154, 29961, 29895, 1402, 394, 561, 271, 7154, 29892, 323, 29897, 13, 4706, 736, 28267, 29925, 3757, 9593, 1692, 6644, 28116, 29898, 29907, 1293, 29892, 323, 585, 1293, 29892, 318, 29892, 3667, 311, 29892, 364, 29892, 364, 5891, 29892, 13, 462, 462, 965, 394, 561, 271, 7154, 29892, 24384, 29892, 323, 29897, 13, 13, 1678, 7465, 822, 903, 8394, 675, 18630, 28116, 29898, 1311, 29892, 10938, 1204, 29892, 274, 29950, 29892, 13, 462, 1669, 2069, 28116, 29901, 28267, 9843, 6644, 28116, 29897, 1599, 28267, 9843, 28116, 29901, 13, 4706, 321, 353, 2069, 28116, 29889, 29872, 29911, 7154, 718, 313, 29883, 29950, 334, 2069, 28116, 29889, 29872, 4040, 603, 29897, 13, 4706, 325, 353, 2069, 28116, 29889, 29894, 29911, 7154, 718, 313, 29883, 29950, 334, 2069, 28116, 29889, 29894, 4040, 603, 29897, 13, 13, 4706, 286, 353, 6571, 13, 13, 4706, 5995, 15801, 353, 7272, 1583, 3032, 14625, 1026, 29889, 657, 29907, 8342, 15801, 29898, 1367, 29898, 11010, 1204, 29922, 11010, 1204, 876, 13, 13, 4706, 363, 413, 297, 2069, 28116, 29889, 348, 276, 345, 7943, 25098, 29879, 29901, 13, 9651, 286, 29961, 710, 29898, 29895, 4638, 353, 2069, 28116, 29889, 29885, 29911, 7154, 29961, 710, 29898, 29895, 4638, 718, 313, 13, 18884, 274, 29950, 334, 5995, 15801, 29961, 710, 29898, 29895, 29897, 1822, 26716, 29897, 13, 4706, 10887, 353, 7272, 1583, 3032, 14625, 1026, 29889, 657, 19203, 28459, 29898, 1367, 29898, 11010, 1204, 29922, 11010, 1204, 876, 13, 4706, 286, 29896, 353, 2069, 28116, 29889, 29885, 29896, 29911, 7154, 718, 313, 29883, 29950, 334, 10887, 29897, 13, 4706, 286, 29906, 353, 2069, 28116, 29889, 29885, 29906, 29911, 7154, 718, 313, 29883, 29950, 334, 2069, 28116, 29889, 29883, 29896, 29889, 29885, 29906, 29897, 13, 13, 4706, 736, 28267, 9843, 28116, 29898, 29872, 29892, 325, 29892, 286, 29892, 286, 29896, 29892, 286, 29906, 29892, 2069, 28116, 29889, 29909, 10080, 29892, 13, 462, 462, 2069, 28116, 29889, 276, 345, 7943, 25098, 29879, 29897, 13, 13, 1678, 7465, 822, 903, 8394, 675, 7999, 28116, 29898, 1311, 29892, 10938, 1204, 29892, 274, 29950, 29892, 13, 462, 1669, 2069, 28116, 29901, 28267, 29925, 3757, 9593, 1692, 6644, 28116, 29892, 13, 462, 1669, 11594, 28116, 29901, 28267, 9843, 28116, 29897, 320, 13, 9651, 1599, 28267, 23084, 9593, 1692, 28116, 29901, 13, 4706, 318, 353, 6571, 13, 4706, 364, 353, 6571, 13, 4706, 5065, 4704, 353, 29871, 29900, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 306, 4945, 8098, 29903, 1125, 13, 9651, 318, 29961, 710, 29898, 29875, 4638, 353, 2069, 28116, 29889, 29884, 29911, 7154, 29961, 710, 29898, 29875, 4638, 718, 274, 29950, 334, 2069, 28116, 29889, 29884, 29961, 710, 29898, 29875, 4638, 13, 9651, 364, 29961, 710, 29898, 29875, 4638, 353, 2069, 28116, 29889, 29878, 29911, 7154, 29961, 710, 29898, 29875, 4638, 718, 274, 29950, 334, 2069, 28116, 29889, 29878, 29961, 710, 29898, 29875, 4638, 13, 9651, 5065, 4704, 4619, 2069, 28116, 29889, 29884, 29961, 710, 29898, 29875, 4638, 334, 2069, 28116, 29889, 29878, 29961, 710, 29898, 29875, 4638, 13, 9651, 364, 29961, 2287, 5850, 29909, 29962, 353, 2069, 28116, 29889, 29878, 29911, 7154, 29961, 2287, 5850, 29909, 29962, 718, 274, 29950, 334, 2069, 28116, 29889, 29878, 29961, 2287, 5850, 29909, 29962, 13, 13, 4706, 15595, 353, 2069, 28116, 29889, 2312, 29911, 7154, 718, 274, 29950, 334, 313, 2344, 28116, 29889, 29878, 29961, 2287, 5850, 29909, 29962, 448, 5065, 4704, 29897, 13, 13, 4706, 413, 353, 2069, 28116, 29889, 11965, 9593, 29889, 5552, 1170, 13, 4706, 736, 28267, 23084, 9593, 1692, 28116, 29898, 29884, 29892, 364, 29892, 15595, 29892, 11594, 28116, 29889, 29885, 29961, 710, 29898, 29895, 29897, 1402, 13, 462, 462, 539, 2069, 28116, 29889, 29911, 29892, 2069, 28116, 29889, 11965, 9593, 29897, 13, 13, 1678, 822, 903, 657, 11490, 7154, 29898, 1311, 29892, 443, 276, 345, 7943, 25098, 29879, 1125, 13, 4706, 286, 5891, 353, 6571, 13, 4706, 363, 1820, 29892, 995, 297, 443, 276, 345, 7943, 25098, 29879, 29889, 7076, 7295, 13, 9651, 286, 5891, 29961, 1989, 29962, 353, 274, 1545, 29889, 16031, 29898, 29883, 1545, 29889, 8172, 29933, 1169, 29898, 29931, 1718, 1692, 29918, 29924, 12064, 1783, 876, 13, 4706, 736, 286, 5891, 13, 2 ]
defx/metrics/f1_measure.py
DFKI-NLP/defx
5
32220
<reponame>DFKI-NLP/defx<filename>defx/metrics/f1_measure.py from statistics import mean from typing import Dict, List, Optional, Set from collections import defaultdict import torch from allennlp.common.checks import ConfigurationError from allennlp.nn.util import get_lengths_from_binary_sequence_mask from allennlp.data.vocabulary import Vocabulary from allennlp.training.metrics.metric import Metric from defx.util.index_to_relation_and_type_mapping import map_index_to_relation_head_and_type @Metric.register("f1-measure") class F1Measure(Metric): """ Computes macro-averaged F1 score for relation classification on a token level. """ def __init__(self, vocabulary: Vocabulary, negative_label: str, label_namespace: str = "labels", evaluated_labels: List[str] = None) -> None: self._label_vocabulary = vocabulary.get_index_to_token_vocabulary(label_namespace) if evaluated_labels is None: self.evaluated_labels = list(self._label_vocabulary.values()) self.evaluated_labels.remove(negative_label) else: self.evaluated_labels = evaluated_labels self._true_positives: Dict[str, int] = defaultdict(int) self._false_positives: Dict[str, int] = defaultdict(int) self._false_negatives: Dict[str, int] = defaultdict(int) self._support: Dict[str, int] = defaultdict(int) assert self._label_vocabulary[0] == negative_label, 'Negative label should have index 0' self._negative_label_idx = 0 def __call__(self, predictions: torch.Tensor, gold_labels: torch.Tensor, mask: Optional[torch.Tensor] = None): """ Parameters ---------- predictions : ``torch.Tensor``, required. A tensor of predictions of shape (batch_size, sequence_length, num_classes). gold_labels : ``torch.Tensor``, required. A tensor of integer class label of shape (batch_size, sequence_length). It must be the same shape as the ``predictions`` tensor without the ``num_classes`` dimension. mask: ``torch.Tensor``, optional (default = None). A masking tensor the same size as ``gold_labels``. """ if mask is None: mask = torch.ones_like(gold_labels) predictions, gold_labels, mask = self.unwrap_to_tensors(predictions, gold_labels, mask) num_classes = predictions.size(-1) if (gold_labels >= num_classes).any(): raise ConfigurationError("A gold label passed to SpanBasedF1Measure contains an " "id >= {}, the number of classes.".format(num_classes)) sequence_lengths = get_lengths_from_binary_sequence_mask(mask) argmax_predictions = predictions.max(-1)[1] # Iterate over timesteps in batch. batch_size = gold_labels.size(0) for i in range(batch_size): sequence_prediction = argmax_predictions[i, :] sequence_gold_label = gold_labels[i, :] length = sequence_lengths[i] if length == 0: # It is possible to call this metric with sequences which are # completely padded. These contribute nothing, so we skip these rows. continue predicted_tuples = [] gold_tuples = [] for token_idx in range(length): pred_head_and_type_idx = sequence_prediction[token_idx].item() pred_head_and_type = map_index_to_relation_head_and_type( label_vocab=self._label_vocabulary, head_and_type_idx=pred_head_and_type_idx ) pred_head, pred_label = pred_head_and_type if pred_label in self.evaluated_labels: predicted_tuples.append( (token_idx, pred_head, pred_label) ) gold_head_and_type_idx = sequence_gold_label[token_idx].item() gold_head_and_type = map_index_to_relation_head_and_type( self._label_vocabulary, gold_head_and_type_idx ) gold_head, gold_label = gold_head_and_type if gold_label in self.evaluated_labels: gold_tuples.append( (token_idx, gold_head, gold_label) ) self._support[gold_label] += 1 for idx_head_and_type in predicted_tuples: relation_type = idx_head_and_type[2] if idx_head_and_type in gold_tuples: self._true_positives[relation_type] += 1 gold_tuples.remove(idx_head_and_type) else: self._false_positives[relation_type] += 1 # These tokens weren't predicted. for idx_head_and_type in gold_tuples: self._false_negatives[idx_head_and_type[2]] += 1 def get_metric(self, reset: bool = False): """ Returns ------- A Dict per label containing following the span based metrics: precision : float recall : float f1-measure : float Additionally, an ``overall`` key is included, which provides the precision, recall and f1-measure for all spans. """ all_tags: Set[str] = set() all_tags.update(self._true_positives.keys()) all_tags.update(self._false_positives.keys()) all_tags.update(self._false_negatives.keys()) all_metrics = {} overall_precision_values = [] overall_recall_values = [] overall_f1_values = [] for tag in all_tags: precision, recall, f1_measure = self._compute_metrics(self._true_positives[tag], self._false_positives[tag], self._false_negatives[tag]) precision_key = "precision" + "-" + tag recall_key = "recall" + "-" + tag f1_key = "f1-measure" + "-" + tag support_key = "support" + "-" + tag all_metrics[precision_key] = precision all_metrics[recall_key] = recall all_metrics[f1_key] = f1_measure all_metrics[support_key] = self._support[tag] if tag in self.evaluated_labels: overall_precision_values.append(precision) overall_recall_values.append(recall) overall_f1_values.append(f1_measure) # If no samples are given, simply return 0 if len(overall_precision_values) < 1: all_metrics["precision-overall"] = 0 all_metrics["recall-overall"] = 0 all_metrics["f1-measure-overall"] = 0 else: all_metrics["precision-overall"] = mean(overall_precision_values) all_metrics["recall-overall"] = mean(overall_recall_values) all_metrics["f1-measure-overall"] = mean(overall_f1_values) if reset: self.reset() return all_metrics @staticmethod def _compute_metrics(true_positives: int, false_positives: int, false_negatives: int): precision = float(true_positives) / float(true_positives + false_positives + 1e-13) recall = float(true_positives) / float(true_positives + false_negatives + 1e-13) f1_measure = 2. * ((precision * recall) / (precision + recall + 1e-13)) return precision, recall, f1_measure def reset(self): self._true_positives = defaultdict(int) self._false_positives = defaultdict(int) self._false_negatives = defaultdict(int)
[ 1, 529, 276, 1112, 420, 29958, 4037, 29968, 29902, 29899, 29940, 13208, 29914, 1753, 29916, 29966, 9507, 29958, 1753, 29916, 29914, 2527, 10817, 29914, 29888, 29896, 29918, 26658, 29889, 2272, 13, 3166, 13964, 1053, 2099, 13, 3166, 19229, 1053, 360, 919, 29892, 2391, 29892, 28379, 29892, 3789, 13, 3166, 16250, 1053, 2322, 8977, 13, 13, 5215, 4842, 305, 13, 13, 3166, 599, 2108, 22833, 29889, 9435, 29889, 3198, 29879, 1053, 20999, 2392, 13, 3166, 599, 2108, 22833, 29889, 15755, 29889, 4422, 1053, 679, 29918, 2848, 29879, 29918, 3166, 29918, 19541, 29918, 16506, 29918, 13168, 13, 3166, 599, 2108, 22833, 29889, 1272, 29889, 29894, 542, 370, 352, 653, 1053, 478, 542, 370, 352, 653, 13, 3166, 599, 2108, 22833, 29889, 26495, 29889, 2527, 10817, 29889, 16414, 1053, 4737, 2200, 13, 13, 3166, 822, 29916, 29889, 4422, 29889, 2248, 29918, 517, 29918, 23445, 29918, 392, 29918, 1853, 29918, 20698, 1053, 2910, 29918, 2248, 29918, 517, 29918, 23445, 29918, 2813, 29918, 392, 29918, 1853, 13, 13, 13, 29992, 10095, 2200, 29889, 9573, 703, 29888, 29896, 29899, 26658, 1159, 13, 1990, 383, 29896, 6816, 3745, 29898, 10095, 2200, 1125, 13, 1678, 9995, 13, 1678, 11796, 267, 11758, 29899, 12483, 4063, 383, 29896, 8158, 363, 8220, 12965, 373, 263, 5993, 3233, 29889, 13, 1678, 9995, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 13, 462, 7931, 370, 352, 653, 29901, 478, 542, 370, 352, 653, 29892, 13, 462, 8178, 29918, 1643, 29901, 851, 29892, 13, 462, 3858, 29918, 22377, 29901, 851, 353, 376, 21134, 613, 13, 462, 19030, 29918, 21134, 29901, 2391, 29961, 710, 29962, 353, 6213, 29897, 1599, 6213, 29901, 13, 13, 4706, 1583, 3032, 1643, 29918, 29894, 542, 370, 352, 653, 353, 7931, 370, 352, 653, 29889, 657, 29918, 2248, 29918, 517, 29918, 6979, 29918, 29894, 542, 370, 352, 653, 29898, 1643, 29918, 22377, 29897, 13, 4706, 565, 19030, 29918, 21134, 338, 6213, 29901, 13, 9651, 1583, 29889, 24219, 630, 29918, 21134, 353, 1051, 29898, 1311, 3032, 1643, 29918, 29894, 542, 370, 352, 653, 29889, 5975, 3101, 13, 9651, 1583, 29889, 24219, 630, 29918, 21134, 29889, 5992, 29898, 22198, 29918, 1643, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 24219, 630, 29918, 21134, 353, 19030, 29918, 21134, 13, 13, 4706, 1583, 3032, 3009, 29918, 1066, 277, 3145, 29901, 360, 919, 29961, 710, 29892, 938, 29962, 353, 2322, 8977, 29898, 524, 29897, 13, 4706, 1583, 3032, 4541, 29918, 1066, 277, 3145, 29901, 360, 919, 29961, 710, 29892, 938, 29962, 353, 2322, 8977, 29898, 524, 29897, 13, 4706, 1583, 3032, 4541, 29918, 10052, 5056, 29901, 360, 919, 29961, 710, 29892, 938, 29962, 353, 2322, 8977, 29898, 524, 29897, 13, 4706, 1583, 3032, 5924, 29901, 360, 919, 29961, 710, 29892, 938, 29962, 353, 2322, 8977, 29898, 524, 29897, 13, 13, 4706, 4974, 1583, 3032, 1643, 29918, 29894, 542, 370, 352, 653, 29961, 29900, 29962, 1275, 8178, 29918, 1643, 29892, 525, 29940, 387, 1230, 3858, 881, 505, 2380, 29871, 29900, 29915, 13, 4706, 1583, 3032, 22198, 29918, 1643, 29918, 13140, 353, 29871, 29900, 13, 13, 1678, 822, 4770, 4804, 12035, 1311, 29892, 13, 462, 27303, 29901, 4842, 305, 29889, 29911, 6073, 29892, 13, 462, 7684, 29918, 21134, 29901, 4842, 305, 29889, 29911, 6073, 29892, 13, 462, 11105, 29901, 28379, 29961, 7345, 305, 29889, 29911, 6073, 29962, 353, 6213, 1125, 13, 4706, 9995, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 27303, 584, 4954, 7345, 305, 29889, 29911, 6073, 29952, 1673, 3734, 29889, 13, 9651, 319, 12489, 310, 27303, 310, 8267, 313, 16175, 29918, 2311, 29892, 5665, 29918, 2848, 29892, 954, 29918, 13203, 467, 13, 4706, 7684, 29918, 21134, 584, 4954, 7345, 305, 29889, 29911, 6073, 29952, 1673, 3734, 29889, 13, 9651, 319, 12489, 310, 6043, 770, 3858, 310, 8267, 313, 16175, 29918, 2311, 29892, 5665, 29918, 2848, 467, 13, 9651, 739, 1818, 367, 278, 1021, 8267, 408, 278, 4954, 27711, 1080, 16159, 12489, 1728, 278, 13, 9651, 4954, 1949, 29918, 13203, 16159, 9927, 29889, 13, 4706, 11105, 29901, 4954, 7345, 305, 29889, 29911, 6073, 29952, 1673, 13136, 313, 4381, 353, 6213, 467, 13, 9651, 319, 11105, 292, 12489, 278, 1021, 2159, 408, 4954, 29887, 1025, 29918, 21134, 29952, 1412, 13, 4706, 9995, 13, 4706, 565, 11105, 338, 6213, 29901, 13, 9651, 11105, 353, 4842, 305, 29889, 2873, 29918, 4561, 29898, 29887, 1025, 29918, 21134, 29897, 13, 13, 4706, 27303, 29892, 7684, 29918, 21134, 29892, 11105, 353, 1583, 29889, 26238, 29918, 517, 29918, 29873, 575, 943, 29898, 27711, 1080, 29892, 13, 462, 462, 462, 18884, 7684, 29918, 21134, 29892, 13, 462, 462, 462, 18884, 11105, 29897, 13, 13, 4706, 954, 29918, 13203, 353, 27303, 29889, 2311, 6278, 29896, 29897, 13, 4706, 565, 313, 29887, 1025, 29918, 21134, 6736, 954, 29918, 13203, 467, 1384, 7295, 13, 9651, 12020, 20999, 2392, 703, 29909, 7684, 3858, 4502, 304, 7948, 29933, 1463, 29943, 29896, 6816, 3745, 3743, 385, 376, 13, 462, 462, 268, 376, 333, 6736, 24335, 278, 1353, 310, 4413, 1213, 29889, 4830, 29898, 1949, 29918, 13203, 876, 13, 13, 4706, 5665, 29918, 2848, 29879, 353, 679, 29918, 2848, 29879, 29918, 3166, 29918, 19541, 29918, 16506, 29918, 13168, 29898, 13168, 29897, 13, 4706, 1852, 3317, 29918, 27711, 1080, 353, 27303, 29889, 3317, 6278, 29896, 9601, 29896, 29962, 13, 13, 4706, 396, 20504, 403, 975, 5335, 4196, 567, 297, 9853, 29889, 13, 4706, 9853, 29918, 2311, 353, 7684, 29918, 21134, 29889, 2311, 29898, 29900, 29897, 13, 4706, 363, 474, 297, 3464, 29898, 16175, 29918, 2311, 1125, 13, 9651, 5665, 29918, 11965, 2463, 353, 1852, 3317, 29918, 27711, 1080, 29961, 29875, 29892, 584, 29962, 13, 9651, 5665, 29918, 29887, 1025, 29918, 1643, 353, 7684, 29918, 21134, 29961, 29875, 29892, 584, 29962, 13, 9651, 3309, 353, 5665, 29918, 2848, 29879, 29961, 29875, 29962, 13, 13, 9651, 565, 3309, 1275, 29871, 29900, 29901, 13, 18884, 396, 739, 338, 1950, 304, 1246, 445, 12714, 411, 15602, 607, 526, 13, 18884, 396, 6446, 282, 23959, 29889, 4525, 29126, 3078, 29892, 577, 591, 14383, 1438, 4206, 29889, 13, 18884, 6773, 13, 13, 9651, 25383, 29918, 9161, 2701, 353, 5159, 13, 9651, 7684, 29918, 9161, 2701, 353, 5159, 13, 9651, 363, 5993, 29918, 13140, 297, 3464, 29898, 2848, 1125, 13, 18884, 4450, 29918, 2813, 29918, 392, 29918, 1853, 29918, 13140, 353, 5665, 29918, 11965, 2463, 29961, 6979, 29918, 13140, 1822, 667, 580, 13, 18884, 4450, 29918, 2813, 29918, 392, 29918, 1853, 353, 2910, 29918, 2248, 29918, 517, 29918, 23445, 29918, 2813, 29918, 392, 29918, 1853, 29898, 13, 462, 1678, 3858, 29918, 29894, 542, 370, 29922, 1311, 3032, 1643, 29918, 29894, 542, 370, 352, 653, 29892, 13, 462, 1678, 2343, 29918, 392, 29918, 1853, 29918, 13140, 29922, 11965, 29918, 2813, 29918, 392, 29918, 1853, 29918, 13140, 13, 18884, 1723, 13, 18884, 4450, 29918, 2813, 29892, 4450, 29918, 1643, 353, 4450, 29918, 2813, 29918, 392, 29918, 1853, 13, 18884, 565, 4450, 29918, 1643, 297, 1583, 29889, 24219, 630, 29918, 21134, 29901, 13, 462, 1678, 25383, 29918, 9161, 2701, 29889, 4397, 29898, 13, 462, 4706, 313, 6979, 29918, 13140, 29892, 4450, 29918, 2813, 29892, 4450, 29918, 1643, 29897, 13, 462, 1678, 1723, 13, 13, 18884, 7684, 29918, 2813, 29918, 392, 29918, 1853, 29918, 13140, 353, 5665, 29918, 29887, 1025, 29918, 1643, 29961, 6979, 29918, 13140, 1822, 667, 580, 13, 18884, 7684, 29918, 2813, 29918, 392, 29918, 1853, 353, 2910, 29918, 2248, 29918, 517, 29918, 23445, 29918, 2813, 29918, 392, 29918, 1853, 29898, 13, 462, 1678, 1583, 3032, 1643, 29918, 29894, 542, 370, 352, 653, 29892, 13, 462, 1678, 7684, 29918, 2813, 29918, 392, 29918, 1853, 29918, 13140, 13, 18884, 1723, 13, 18884, 7684, 29918, 2813, 29892, 7684, 29918, 1643, 353, 7684, 29918, 2813, 29918, 392, 29918, 1853, 13, 18884, 565, 7684, 29918, 1643, 297, 1583, 29889, 24219, 630, 29918, 21134, 29901, 13, 462, 1678, 7684, 29918, 9161, 2701, 29889, 4397, 29898, 13, 462, 4706, 313, 6979, 29918, 13140, 29892, 7684, 29918, 2813, 29892, 7684, 29918, 1643, 29897, 13, 462, 1678, 1723, 13, 462, 1678, 1583, 3032, 5924, 29961, 29887, 1025, 29918, 1643, 29962, 4619, 29871, 29896, 13, 13, 9651, 363, 22645, 29918, 2813, 29918, 392, 29918, 1853, 297, 25383, 29918, 9161, 2701, 29901, 13, 18884, 8220, 29918, 1853, 353, 22645, 29918, 2813, 29918, 392, 29918, 1853, 29961, 29906, 29962, 13, 18884, 565, 22645, 29918, 2813, 29918, 392, 29918, 1853, 297, 7684, 29918, 9161, 2701, 29901, 13, 462, 1678, 1583, 3032, 3009, 29918, 1066, 277, 3145, 29961, 23445, 29918, 1853, 29962, 4619, 29871, 29896, 13, 462, 1678, 7684, 29918, 9161, 2701, 29889, 5992, 29898, 13140, 29918, 2813, 29918, 392, 29918, 1853, 29897, 13, 18884, 1683, 29901, 13, 462, 1678, 1583, 3032, 4541, 29918, 1066, 277, 3145, 29961, 23445, 29918, 1853, 29962, 4619, 29871, 29896, 13, 13, 9651, 396, 4525, 18897, 2949, 264, 29915, 29873, 25383, 29889, 13, 9651, 363, 22645, 29918, 2813, 29918, 392, 29918, 1853, 297, 7684, 29918, 9161, 2701, 29901, 13, 18884, 1583, 3032, 4541, 29918, 10052, 5056, 29961, 13140, 29918, 2813, 29918, 392, 29918, 1853, 29961, 29906, 5262, 4619, 29871, 29896, 13, 13, 1678, 822, 679, 29918, 16414, 29898, 1311, 29892, 10092, 29901, 6120, 353, 7700, 1125, 13, 4706, 9995, 13, 4706, 16969, 13, 4706, 448, 22158, 13, 4706, 319, 360, 919, 639, 3858, 6943, 1494, 278, 10638, 2729, 21556, 29901, 13, 4706, 16716, 584, 5785, 13, 4706, 17386, 584, 5785, 13, 4706, 285, 29896, 29899, 26658, 584, 5785, 13, 13, 4706, 19814, 29892, 385, 4954, 957, 497, 16159, 1820, 338, 5134, 29892, 607, 8128, 278, 16716, 29892, 13, 4706, 17386, 322, 285, 29896, 29899, 26658, 363, 599, 805, 550, 29889, 13, 4706, 9995, 13, 4706, 599, 29918, 11338, 29901, 3789, 29961, 710, 29962, 353, 731, 580, 13, 4706, 599, 29918, 11338, 29889, 5504, 29898, 1311, 3032, 3009, 29918, 1066, 277, 3145, 29889, 8149, 3101, 13, 4706, 599, 29918, 11338, 29889, 5504, 29898, 1311, 3032, 4541, 29918, 1066, 277, 3145, 29889, 8149, 3101, 13, 4706, 599, 29918, 11338, 29889, 5504, 29898, 1311, 3032, 4541, 29918, 10052, 5056, 29889, 8149, 3101, 13, 4706, 599, 29918, 2527, 10817, 353, 6571, 13, 13, 4706, 12463, 29918, 17990, 2459, 29918, 5975, 353, 5159, 13, 4706, 12463, 29918, 3757, 497, 29918, 5975, 353, 5159, 13, 4706, 12463, 29918, 29888, 29896, 29918, 5975, 353, 5159, 13, 13, 4706, 363, 4055, 297, 599, 29918, 11338, 29901, 13, 9651, 16716, 29892, 17386, 29892, 285, 29896, 29918, 26658, 353, 1583, 3032, 26017, 29918, 2527, 10817, 29898, 1311, 3032, 3009, 29918, 1066, 277, 3145, 29961, 4039, 1402, 13, 462, 462, 462, 462, 29871, 1583, 3032, 4541, 29918, 1066, 277, 3145, 29961, 4039, 1402, 13, 462, 462, 462, 462, 29871, 1583, 3032, 4541, 29918, 10052, 5056, 29961, 4039, 2314, 13, 9651, 16716, 29918, 1989, 353, 376, 17990, 2459, 29908, 718, 11663, 29908, 718, 4055, 13, 9651, 17386, 29918, 1989, 353, 376, 3757, 497, 29908, 718, 11663, 29908, 718, 4055, 13, 9651, 285, 29896, 29918, 1989, 353, 376, 29888, 29896, 29899, 26658, 29908, 718, 11663, 29908, 718, 4055, 13, 9651, 2304, 29918, 1989, 353, 376, 5924, 29908, 718, 11663, 29908, 718, 4055, 13, 9651, 599, 29918, 2527, 10817, 29961, 17990, 2459, 29918, 1989, 29962, 353, 16716, 13, 9651, 599, 29918, 2527, 10817, 29961, 3757, 497, 29918, 1989, 29962, 353, 17386, 13, 9651, 599, 29918, 2527, 10817, 29961, 29888, 29896, 29918, 1989, 29962, 353, 285, 29896, 29918, 26658, 13, 9651, 599, 29918, 2527, 10817, 29961, 5924, 29918, 1989, 29962, 353, 1583, 3032, 5924, 29961, 4039, 29962, 13, 9651, 565, 4055, 297, 1583, 29889, 24219, 630, 29918, 21134, 29901, 13, 18884, 12463, 29918, 17990, 2459, 29918, 5975, 29889, 4397, 29898, 17990, 2459, 29897, 13, 18884, 12463, 29918, 3757, 497, 29918, 5975, 29889, 4397, 29898, 3757, 497, 29897, 13, 18884, 12463, 29918, 29888, 29896, 29918, 5975, 29889, 4397, 29898, 29888, 29896, 29918, 26658, 29897, 13, 13, 4706, 396, 960, 694, 11916, 526, 2183, 29892, 3763, 736, 29871, 29900, 13, 4706, 565, 7431, 29898, 957, 497, 29918, 17990, 2459, 29918, 5975, 29897, 529, 29871, 29896, 29901, 13, 9651, 599, 29918, 2527, 10817, 3366, 17990, 2459, 29899, 957, 497, 3108, 353, 29871, 29900, 13, 9651, 599, 29918, 2527, 10817, 3366, 3757, 497, 29899, 957, 497, 3108, 353, 29871, 29900, 13, 9651, 599, 29918, 2527, 10817, 3366, 29888, 29896, 29899, 26658, 29899, 957, 497, 3108, 353, 29871, 29900, 13, 4706, 1683, 29901, 13, 9651, 599, 29918, 2527, 10817, 3366, 17990, 2459, 29899, 957, 497, 3108, 353, 2099, 29898, 957, 497, 29918, 17990, 2459, 29918, 5975, 29897, 13, 9651, 599, 29918, 2527, 10817, 3366, 3757, 497, 29899, 957, 497, 3108, 353, 2099, 29898, 957, 497, 29918, 3757, 497, 29918, 5975, 29897, 13, 9651, 599, 29918, 2527, 10817, 3366, 29888, 29896, 29899, 26658, 29899, 957, 497, 3108, 353, 2099, 29898, 957, 497, 29918, 29888, 29896, 29918, 5975, 29897, 13, 13, 4706, 565, 10092, 29901, 13, 9651, 1583, 29889, 12071, 580, 13, 4706, 736, 599, 29918, 2527, 10817, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 903, 26017, 29918, 2527, 10817, 29898, 3009, 29918, 1066, 277, 3145, 29901, 938, 29892, 2089, 29918, 1066, 277, 3145, 29901, 938, 29892, 2089, 29918, 10052, 5056, 29901, 938, 1125, 13, 4706, 16716, 353, 5785, 29898, 3009, 29918, 1066, 277, 3145, 29897, 847, 5785, 29898, 3009, 29918, 1066, 277, 3145, 718, 2089, 29918, 1066, 277, 3145, 718, 29871, 29896, 29872, 29899, 29896, 29941, 29897, 13, 4706, 17386, 353, 5785, 29898, 3009, 29918, 1066, 277, 3145, 29897, 847, 5785, 29898, 3009, 29918, 1066, 277, 3145, 718, 2089, 29918, 10052, 5056, 718, 29871, 29896, 29872, 29899, 29896, 29941, 29897, 13, 4706, 285, 29896, 29918, 26658, 353, 29871, 29906, 29889, 334, 5135, 17990, 2459, 334, 17386, 29897, 847, 313, 17990, 2459, 718, 17386, 718, 29871, 29896, 29872, 29899, 29896, 29941, 876, 13, 4706, 736, 16716, 29892, 17386, 29892, 285, 29896, 29918, 26658, 13, 13, 1678, 822, 10092, 29898, 1311, 1125, 13, 4706, 1583, 3032, 3009, 29918, 1066, 277, 3145, 353, 2322, 8977, 29898, 524, 29897, 13, 4706, 1583, 3032, 4541, 29918, 1066, 277, 3145, 353, 2322, 8977, 29898, 524, 29897, 13, 4706, 1583, 3032, 4541, 29918, 10052, 5056, 353, 2322, 8977, 29898, 524, 29897, 13, 2 ]
src/dlg_windows.py
seung-lab/SBEMimage
0
48752
<gh_stars>0 # -*- coding: utf-8 -*- # ============================================================================== # SBEMimage, ver. 2.0 # Acquisition control software for serial block-face electron microscopy # (c) 2018-2019 <NAME> Institute for Biomedical Research, Basel. # This software is licensed under the terms of the MIT License. # See LICENSE.txt in the project root folder. # ============================================================================== """This module contains all dialog windows.""" import os import re import string import threading import datetime import glob import json import validators import requests import shutil from random import random from time import sleep, time from validate_email import validate_email from math import atan, sqrt from queue import Queue from PIL import Image from skimage.io import imread from skimage.feature import register_translation import numpy as np from imreg_dft import translation from zipfile import ZipFile from PyQt5.uic import loadUi from PyQt5.QtCore import Qt, QObject, QSize, pyqtSignal from PyQt5.QtGui import QPixmap, QIcon, QPalette, QColor, QFont from PyQt5.QtWidgets import QApplication, QDialog, QMessageBox, \ QFileDialog, QLineEdit, QDialogButtonBox import utils import acq_func class Trigger(QObject): """Custom signal for updating GUI from within running threads.""" s = pyqtSignal() #------------------------------------------------------------------------------ class ConfigDlg(QDialog): """Ask the user to select a configuration file. The previously used configuration is preselected in the list widget. If no previously used configuration found, use default.ini. If status.dat does not exists, show warning message box.""" def __init__(self, VERSION): super().__init__() loadUi('..\\gui\\config_dlg.ui', self) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.label_version.setText('Version ' + VERSION) self.labelIcon.setPixmap(QPixmap('..\\img\\logo.png')) self.label_website.setText('<a href="https://github.com/SBEMimage">' 'https://github.com/SBEMimage</a>') self.label_website.setOpenExternalLinks(True) self.setFixedSize(self.size()) self.show() self.abort = False # Populate the list widget with existing .ini files inifile_list = [] for file in os.listdir('..\\cfg'): if file.endswith('.ini'): inifile_list.append(file) self.listWidget_filelist.addItems(inifile_list) # Which .ini file was used previously? Check in status.dat if os.path.isfile('..\\cfg\\status.dat'): status_file = open('..\\cfg\\status.dat', 'r') last_inifile = status_file.readline() status_file.close() try: last_item_used = self.listWidget_filelist.findItems( last_inifile, Qt.MatchExactly)[0] self.listWidget_filelist.setCurrentItem(last_item_used) except: # If the file indicated in status.dat does not exist, # select default.ini. # This dialog is called from SBEMimage.py only if default.ini # is found in cfg directory. default_item = self.listWidget_filelist.findItems( 'default.ini', Qt.MatchExactly)[0] self.listWidget_filelist.setCurrentItem(default_item) else: # If status.dat does not exists, the program crashed or a second # instance is running. Display a warning and select default.ini default_item = self.listWidget_filelist.findItems( 'default.ini', Qt.MatchExactly)[0] self.listWidget_filelist.setCurrentItem(default_item) QMessageBox.warning( self, 'Problem detected: Crash or other SBEMimage instance ' 'running', 'WARNING: SBEMimage appears to have crashed during the ' 'previous run, or there is already another instance of ' 'SBEMimage running. Please either close the other instance ' 'or abort this one.\n\n' 'If you are restarting a stack after a crash, doublecheck ' 'all settings before restarting!', QMessageBox.Ok) def reject(self): self.abort = True super().reject() def get_ini_file(self): if not self.abort: return self.listWidget_filelist.currentItem().text() else: return 'abort' #------------------------------------------------------------------------------ class SaveConfigDlg(QDialog): """Save current configuration in a new config file.""" def __init__(self): super().__init__() loadUi('..\\gui\\save_config_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.lineEdit_cfgFileName.setText('') self.file_name = None def get_file_name(self): return self.file_name def accept(self): # Replace spaces in file name with underscores. without_spaces = self.lineEdit_cfgFileName.text().replace(' ', '_') self.lineEdit_cfgFileName.setText(without_spaces) # Check whether characters in name are permitted. # Use may not overwrite "default.ini" reg = re.compile('^[a-zA-Z0-9_-]+$') if (reg.match(self.lineEdit_cfgFileName.text()) and self.lineEdit_cfgFileName.text().lower != 'default'): self.file_name = self.lineEdit_cfgFileName.text() + '.ini' super().accept() else: QMessageBox.warning( self, 'Error', 'Name contains forbidden characters.', QMessageBox.Ok) #------------------------------------------------------------------------------ class SEMSettingsDlg(QDialog): """Let user change SEM beam settings (target EHT, taget beam current). Display current working distance and stigmation. """ def __init__(self, sem): super().__init__() self.sem = sem loadUi('..\\gui\\sem_settings_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() # Display current target settings: self.doubleSpinBox_EHT.setValue(self.sem.get_eht()) self.spinBox_beamCurrent.setValue(self.sem.get_beam_current()) # Display current focus/stig: self.lineEdit_currentFocus.setText( '{0:.6f}'.format(sem.get_wd() * 1000)) self.lineEdit_currentStigX.setText('{0:.6f}'.format(sem.get_stig_x())) self.lineEdit_currentStigY.setText('{0:.6f}'.format(sem.get_stig_y())) def accept(self): self.sem.set_eht(self.doubleSpinBox_EHT.value()) self.sem.set_beam_current(self.spinBox_beamCurrent.value()) super().accept() #------------------------------------------------------------------------------ class MicrotomeSettingsDlg(QDialog): """Adjust stage motor limits and wait interval after stage moves.""" def __init__(self, microtome, sem, microtome_active=True): super().__init__() self.microtome = microtome self.sem = sem self.microtom_active = microtome_active loadUi('..\\gui\\microtome_settings_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() # If microtome not active, change selection label: if microtome_active: self.label_selectedStage.setText('Microtome stage active.') # Display settings that can only be changed in DM: self.lineEdit_knifeCutSpeed.setText( str(self.microtome.get_knife_cut_speed())) self.lineEdit_knifeRetractSpeed.setText( str(self.microtome.get_knife_retract_speed())) self.checkBox_useOscillation.setChecked( self.microtome.is_oscillation_enabled()) # Settings changeable in GUI: self.doubleSpinBox_waitInterval.setValue( self.microtome.get_stage_move_wait_interval()) current_motor_limits = self.microtome.get_motor_limits() current_calibration = self.microtome.get_stage_calibration() speed_x, speed_y = self.microtome.get_motor_speeds() else: self.label_selectedStage.setText('SEM stage active.') # Display stage limits. Not editable for SEM. self.spinBox_stageMaxX.setMaximum(200000) self.spinBox_stageMaxY.setMaximum(200000) self.spinBox_stageMinX.setMaximum(0) self.spinBox_stageMinY.setMaximum(0) self.spinBox_stageMinX.setEnabled(False) self.spinBox_stageMaxX.setEnabled(False) self.spinBox_stageMinY.setEnabled(False) self.spinBox_stageMaxY.setEnabled(False) current_motor_limits = self.sem.get_motor_limits() current_calibration = self.sem.get_stage_calibration() speed_x, speed_y = self.sem.get_motor_speeds() self.doubleSpinBox_waitInterval.setValue( self.sem.get_stage_move_wait_interval()) # Show current calibration: self.spinBox_stageMinX.setValue(current_motor_limits[0]) self.spinBox_stageMaxX.setValue(current_motor_limits[1]) self.spinBox_stageMinY.setValue(current_motor_limits[2]) self.spinBox_stageMaxY.setValue(current_motor_limits[3]) # Other settings that can be changed in SBEMimage, # but in a different dialog (CalibrationDgl): self.lineEdit_scaleFactorX.setText(str(current_calibration[0])) self.lineEdit_scaleFactorY.setText(str(current_calibration[1])) self.lineEdit_rotationX.setText(str(current_calibration[2])) self.lineEdit_rotationY.setText(str(current_calibration[3])) # Motor speeds: self.lineEdit_speedX.setText(str(speed_x)) self.lineEdit_speedY.setText(str(speed_y)) def accept(self): if self.microtom_active: self.microtome.set_stage_move_wait_interval( self.doubleSpinBox_waitInterval.value()) self.microtome.set_motor_limits([ self.spinBox_stageMinX.value(), self.spinBox_stageMaxX.value(), self.spinBox_stageMinY.value(), self.spinBox_stageMaxY.value()]) else: self.sem.set_stage_move_wait_interval( self.doubleSpinBox_waitInterval.value()) super().accept() #------------------------------------------------------------------------------ class KatanaSettingsDlg(QDialog): """Adjust settings for the katana microtome.""" def __init__(self, microtome): super().__init__() self.microtome = microtome loadUi('..\\gui\\katana_settings_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() # Set up COM port selector self.comboBox_portSelector.addItems(utils.get_serial_ports()) self.comboBox_portSelector.setCurrentIndex(0) self.comboBox_portSelector.currentIndexChanged.connect( self.reconnect) self.display_connection_status() self.display_current_settings() def reconnect(self): pass def display_connection_status(self): # Show message in dialog whether or not katana is connected. pal = QPalette(self.label_connectionStatus.palette()) if self.microtome.connected: # Use red colour if not connected pal.setColor(QPalette.WindowText, QColor(Qt.black)) self.label_connectionStatus.setPalette(pal) self.label_connectionStatus.setText('katana microtome connected.') else: pal.setColor(QPalette.WindowText, QColor(Qt.red)) self.label_connectionStatus.setPalette(pal) self.label_connectionStatus.setText('katana microtome is not connected.') def display_current_settings(self): self.spinBox_knifeCutSpeed.setValue( self.microtome.get_knife_cut_speed()) self.spinBox_knifeFastSpeed.setValue( self.microtome.get_knife_fast_speed()) cut_window_start, cut_window_end = self.microtome.get_cut_window() self.spinBox_cutWindowStart.setValue(cut_window_start) self.spinBox_cutWindowEnd.setValue(cut_window_end) self.checkBox_useOscillation.setChecked( self.microtome.is_oscillation_enabled()) self.spinBox_oscAmplitude.setValue( self.microtome.get_oscillation_amplitude()) self.spinBox_oscFrequency.setValue( self.microtome.get_oscillation_frequency()) if not self.microtome.simulation_mode and self.microtome.connected: self.doubleSpinBox_zPosition.setValue(self.microtome.get_stage_z()) z_range_min, z_range_max = self.microtome.get_stage_z_range() self.doubleSpinBox_zRangeMin.setValue(z_range_min) self.doubleSpinBox_zRangeMax.setValue(z_range_max) # Retraction clearance is stored in nanometres, display in micrometres self.doubleSpinBox_retractClearance.setValue( self.microtome.get_retract_clearance() / 1000) def accept(self): new_cut_speed = self.spinBox_knifeCutSpeed.value() new_fast_speed = self.spinBox_knifeFastSpeed.value() new_cut_start = self.spinBox_cutWindowStart.value() new_cut_end = self.spinBox_cutWindowEnd.value() new_osc_frequency = self.spinBox_oscFrequency.value() new_osc_amplitude = self.spinBox_oscAmplitude. value() # retract_clearance in nanometres new_retract_clearance = ( self.doubleSpinBox_retractClearance.value() * 1000) # End position of cut window must be smaller than start position: if new_cut_end < new_cut_start: self.microtome.set_knife_cut_speed(new_cut_speed) self.microtome.set_knife_fast_speed(new_fast_speed) self.microtome.set_cut_window(new_cut_start, new_cut_end) self.microtome.set_oscillation_enabled( self.checkBox_useOscillation.isChecked()) self.microtome.set_oscillation_frequency(new_osc_frequency) self.microtome.set_oscillation_amplitude(new_osc_amplitude) self.microtome.set_retract_clearance(new_retract_clearance) super().accept() else: QMessageBox.warning( self, 'Invalid input', 'The start position of the cutting window must be larger ' 'than the end position.', QMessageBox.Ok) #------------------------------------------------------------------------------ class StageCalibrationDlg(QDialog): """Calibrate the stage (rotation and scaling) and the motor speeds.""" def __init__(self, config, stage, sem): super().__init__() self.base_dir = config['acq']['base_dir'] self.stage = stage self.sem = sem self.current_eht = self.sem.get_eht() self.x_shift_vector = [0, 0] self.y_shift_vector = [0, 0] self.finish_trigger = Trigger() self.finish_trigger.s.connect(self.process_results) self.update_calc_trigger = Trigger() self.update_calc_trigger.s.connect(self.update_log) self.calc_exception = None self.busy = False loadUi('..\\gui\\stage_calibration_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.arrow_symbol1.setPixmap(QPixmap('..\\img\\arrow.png')) self.arrow_symbol2.setPixmap(QPixmap('..\\img\\arrow.png')) self.lineEdit_EHT.setText('{0:.2f}'.format(self.current_eht)) params = self.stage.get_stage_calibration() self.doubleSpinBox_stageScaleFactorX.setValue(params[0]) self.doubleSpinBox_stageScaleFactorY.setValue(params[1]) self.doubleSpinBox_stageRotationX.setValue(params[2]) self.doubleSpinBox_stageRotationY.setValue(params[3]) speed_x, speed_y = self.stage.get_motor_speeds() self.doubleSpinBox_motorSpeedX.setValue(speed_x) self.doubleSpinBox_motorSpeedY.setValue(speed_y) self.comboBox_dwellTime.addItems(map(str, self.sem.DWELL_TIME)) self.comboBox_dwellTime.setCurrentIndex(4) self.comboBox_package.addItems(['imreg_dft', 'skimage']) self.pushButton_startImageAcq.clicked.connect( self.start_calibration_procedure) if config['sys']['simulation_mode'] == 'True': self.pushButton_startImageAcq.setEnabled(False) self.pushButton_helpCalibration.clicked.connect(self.show_help) self.pushButton_calcStage.clicked.connect( self.calculate_stage_parameters_from_user_input) self.pushButton_calcMotor.clicked.connect( self.calculate_motor_parameters) def calculate_motor_parameters(self): """Calculate the motor speeds from the duration measurements provided by the user and let user confirm the new speeds.""" duration_x = self.doubleSpinBox_durationX.value() duration_y = self.doubleSpinBox_durationY.value() motor_speed_x = 1000 / duration_x motor_speed_y = 1000 / duration_y user_choice = QMessageBox.information( self, 'Calculated parameters', 'Results:\nMotor speed X: ' + '{0:.2f}'.format(motor_speed_x) + ';\nMotor speed Y: ' + '{0:.2f}'.format(motor_speed_y) + '\n\nDo you want to use these values?', QMessageBox.Ok | QMessageBox.Cancel) if user_choice == QMessageBox.Ok: self.doubleSpinBox_motorSpeedX.setValue(motor_speed_x) self.doubleSpinBox_motorSpeedY.setValue(motor_speed_y) def show_help(self): QMessageBox.information( self, 'Stage calibration procedure', 'If you click on "Start automatic calibration", ' 'three images will be acquired and saved in the current base ' 'directory: start.tif, shift_x.tif, shift_y.tif. ' 'You can set the pixel size and dwell time for these images and ' 'specify how far the stage should move along the X and the Y axis. ' 'The X/Y moves must be small enough to allow some overlap between ' 'the test images. The frame size is set automatically. ' 'Make sure that structure is visible in the images, and that the ' 'beam is focused.\n' 'The current stage position will be used as the starting ' 'position. The recommended starting position is the centre of the ' 'stage (0, 0).\n' 'Shift vectors between the acquired images will be computed using ' 'a function from the selected package (imreg_dft or skimage). ' 'Angles and scale factors will then be computed from these ' 'shifts.\n\n' 'Alternatively, you can manually provide the pixel shifts by ' 'looking at the calibration images start.tif, shift_x.tif, and ' 'shift_y.tif and measuring the difference (with ImageJ, for ' 'example) in the XY pixel position for some feature in the image. ' 'Click on "Calculate" to calculate the calibration parameters ' 'from these shifts.', QMessageBox.Ok) def start_calibration_procedure(self): """Acquire three images to be used for the stage calibration""" # TODO: error handling! reply = QMessageBox.information( self, 'Start calibration procedure', 'This will acquire three images and save them in the current base ' 'directory: start.tif, shift_x.tif, shift_y.tif. ' 'Structure must be visible in the images, and the beam must be ' 'focused.\nThe current stage position will be used as the starting ' 'position. The recommended starting position is the centre of the ' 'stage (0, 0). Angles and scale factors will be computed from the ' 'shifts between the acquired test images.\n' 'Proceed?', QMessageBox.Ok | QMessageBox.Cancel) if reply == QMessageBox.Ok: # Show update in text field: self.busy = True self.plainTextEdit_calibLog.setPlainText('Acquiring images...') self.pushButton_startImageAcq.setText('Busy') self.pushButton_startImageAcq.setEnabled(False) self.pushButton_calcStage.setEnabled(False) thread = threading.Thread(target=self.stage_calibration_acq_thread) thread.start() def stage_calibration_acq_thread(self): """Acquisition thread for three images used for the stage calibration. Frame settings are fixed for now. Currently no error handling. XY shifts are computed from images. """ shift = self.spinBox_shift.value() pixel_size = self.spinBox_pixelsize.value() dwell_time = self.sem.DWELL_TIME[self.comboBox_dwellTime.currentIndex()] # Use frame size 4 if available, otherwise 3: if len(self.sem.STORE_RES) > 4: # Merlin frame_size_selector = 4 else: # Sigma frame_size_selector = 3 self.sem.apply_frame_settings( frame_size_selector, pixel_size, dwell_time) start_x, start_y = self.stage.get_xy() # First image: self.sem.acquire_frame(self.base_dir + '\\start.tif') # X shift: self.stage.move_to_xy((start_x + shift, start_y)) # Second image: self.sem.acquire_frame(self.base_dir + '\\shift_x.tif') # Y shift: self.stage.move_to_xy((start_x, start_y + shift)) # Third image: self.sem.acquire_frame(self.base_dir + '\\shift_y.tif') # Back to initial position: self.stage.move_to_xy((start_x, start_y)) # Show in log that calculations begin: self.update_calc_trigger.s.emit() # Load images start_img = imread(self.base_dir + '\\start.tif', as_gray=True) shift_x_img = imread(self.base_dir + '\\shift_x.tif', as_gray=True) shift_y_img = imread(self.base_dir + '\\shift_y.tif', as_gray=True) self.calc_exception = None try: if self.comboBox_package.currentIndex() == 0: # imreg_dft selected # [::-1] to use x, y, z order x_shift = translation( start_img, shift_x_img, filter_pcorr=3)['tvec'][::-1] y_shift = translation( start_img, shift_y_img, filter_pcorr=3)['tvec'][::-1] else: # use skimage.register_translation x_shift = register_translation(start_img, shift_x_img)[0][::-1] y_shift = register_translation(start_img, shift_y_img)[0][::-1] self.x_shift_vector = [x_shift[0], x_shift[1]] self.y_shift_vector = [y_shift[0], y_shift[1]] except Exception as e: self.calc_exception = e self.finish_trigger.s.emit() def update_log(self): self.plainTextEdit_calibLog.appendPlainText( 'Now computing pixel shifts...') def process_results(self): self.pushButton_startImageAcq.setText('Start') self.pushButton_startImageAcq.setEnabled(True) self.pushButton_calcStage.setEnabled(True) if self.calc_exception is None: # Show the vectors in the textbox and the spinboxes: self.plainTextEdit_calibLog.setPlainText( 'Shift_X: [{0:.1f}, {1:.1f}], ' 'Shift_Y: [{2:.1f}, {3:.1f}]'.format( *self.x_shift_vector, *self.y_shift_vector)) # Absolute values for the GUI self.spinBox_x2x.setValue(abs(self.x_shift_vector[0])) self.spinBox_x2y.setValue(abs(self.x_shift_vector[1])) self.spinBox_y2x.setValue(abs(self.y_shift_vector[0])) self.spinBox_y2y.setValue(abs(self.y_shift_vector[1])) # Now calculate parameters: self.calculate_stage_parameters() else: QMessageBox.warning( self, 'Error', 'An exception occured while computing the translations: ' + str(self.calc_exception), QMessageBox.Ok) self.busy = False def calculate_stage_parameters(self): shift = self.spinBox_shift.value() pixel_size = self.spinBox_pixelsize.value() # Use absolute values for now, TODO: revisit for the Sigma stage delta_xx, delta_xy = ( abs(self.x_shift_vector[0]), abs(self.x_shift_vector[1])) delta_yx, delta_yy = ( abs(self.y_shift_vector[0]), abs(self.y_shift_vector[1])) # Rotation angles: rot_x = atan(delta_xy/delta_xx) rot_y = atan(delta_yx/delta_yy) # Scale factors: scale_x = shift / (sqrt(delta_xx**2 + delta_xy**2) * pixel_size / 1000) scale_y = shift / (sqrt(delta_yx**2 + delta_yy**2) * pixel_size / 1000) # alternative calc # x_abs = np.linalg.norm([self.x_shift_vector[0], self.x_shift_vector[1]]) # y_abs = np.linalg.norm([self.y_shift_vector[0], self.y_shift_vector[1]]) # rot_x_alt = np.arccos(shift * self.x_shift_vector[0] / (shift * x_abs)) # rot_y_alt = np.arccos(shift * self.y_shift_vector[1] / (shift * y_abs)) # GUI cannot handle negative values # if rot_x < 0: # rot_x += 2 * 3.141592 # if rot_y < 0: # rot_y += 2 * 3.141592 # Scale factors: # scale_x_alt = shift / (x_abs * pixel_size / 1000) # scale_y_alt = shift / (y_abs * pixel_size / 1000) self.busy = False user_choice = QMessageBox.information( self, 'Calculated parameters', 'Results:\n' + 'Scale factor X: ' + '{0:.5f}'.format(scale_x) + ';\nScale factor Y: ' + '{0:.5f}'.format(scale_y) + '\nRotation X: ' + '{0:.5f}'.format(rot_x) + ';\nRotation Y: ' + '{0:.5f}'.format(rot_y) + '\n\nDo you want to use these values?', QMessageBox.Ok | QMessageBox.Cancel) if user_choice == QMessageBox.Ok: self.doubleSpinBox_stageScaleFactorX.setValue(scale_x) self.doubleSpinBox_stageScaleFactorY.setValue(scale_y) self.doubleSpinBox_stageRotationX.setValue(rot_x) self.doubleSpinBox_stageRotationY.setValue(rot_y) def calculate_stage_parameters_from_user_input(self): """Calculate the rotation angles and scale factors from the user input. The user provides the pixel position of any object that can be identified in all three acquired test images. From this, the program calculates the difference the object was shifted in pixels, and the angle with respect to the x or y axis. """ # Pixel positions: x1x = self.spinBox_x1x.value() x1y = self.spinBox_x1y.value() x2x = self.spinBox_x2x.value() x2y = self.spinBox_x2y.value() y1x = self.spinBox_y1x.value() y1y = self.spinBox_y1y.value() y2x = self.spinBox_y2x.value() y2y = self.spinBox_y2y.value() # Distances in pixels delta_xx = abs(x1x - x2x) delta_xy = abs(x1y - x2y) delta_yx = abs(y1x - y2x) delta_yy = abs(y1y - y2y) if delta_xx == 0 or delta_yy == 0: QMessageBox.warning( self, 'Error computing stage calibration', 'Please check your input values.', QMessageBox.Ok) else: self.plainTextEdit_calibLog.setPlainText( 'Using pixel shifts specified on the right side as input...') self.x_shift_vector = [delta_xx, delta_xy] self.y_shift_vector = [delta_yx, delta_yy] self.calculate_stage_parameters() def accept(self): if not self.busy: stage_params = [ self.doubleSpinBox_stageScaleFactorX.value(), self.doubleSpinBox_stageScaleFactorY.value(), self.doubleSpinBox_stageRotationX.value(), self.doubleSpinBox_stageRotationY.value()] self.stage.set_stage_calibration(self.current_eht, stage_params) success = self.stage.set_motor_speeds( self.doubleSpinBox_motorSpeedX.value(), self.doubleSpinBox_motorSpeedY.value()) if not success: QMessageBox.warning( self, 'Error updating motor speeds', 'Motor calibration could not be updated in DM script.', QMessageBox.Ok) super().accept() def reject(self): if not self.busy: super().reject() def closeEvent(self, event): if not self.busy: event.accept() else: event.ignore() #------------------------------------------------------------------------------ class MagCalibrationDlg(QDialog): """Calibrate the relationship between magnification and pixel size.""" def __init__(self, sem, ovm): super().__init__() self.sem = sem self.ovm = ovm loadUi('..\\gui\\mag_calibration_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.spinBox_calibrationFactor.setValue( self.sem.get_mag_px_size_factor()) self.comboBox_frameWidth.addItems(['2048', '4096']) self.comboBox_frameWidth.setCurrentIndex(1) self.pushButton_calculate.clicked.connect( self.calculate_calibration_factor) def calculate_calibration_factor(self): """Calculate the mag calibration factor from the frame width, the magnification and the pixel size. """ frame_width = int(str(self.comboBox_frameWidth.currentText())) pixel_size = self.doubleSpinBox_pixelSize.value() mag = self.spinBox_mag.value() new_factor = mag * frame_width * pixel_size user_choice = QMessageBox.information( self, 'Calculated calibration factor', 'Result:\nNew magnification calibration factor: %d ' '\n\nDo you want to use this value?' % new_factor, QMessageBox.Ok | QMessageBox.Cancel) if user_choice == QMessageBox.Ok: self.spinBox_calibrationFactor.setValue(new_factor) def accept(self): self.sem.set_mag_px_size_factor( self.spinBox_calibrationFactor.value()) # Update the magnifications of all OVs: self.ovm.calculate_ov_mag_from_pixel_size() super().accept() #------------------------------------------------------------------------------ class CutDurationDlg(QDialog): def __init__(self, microtome): super().__init__() self.microtome = microtome loadUi('..\\gui\\cut_duration_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.doubleSpinBox_cutDuration.setValue( self.microtome.get_full_cut_duration()) def accept(self): self.microtome.set_full_cut_duration( self.doubleSpinBox_cutDuration.value()) super().accept() #------------------------------------------------------------------------------ class OVSettingsDlg(QDialog): """Let the user change all settings for each overview image.""" def __init__(self, ovm, sem, current_ov, main_window_queue, main_window_trigger): super().__init__() self.ovm = ovm self.sem = sem self.current_ov = current_ov self.main_window_queue = main_window_queue self.main_window_trigger = main_window_trigger loadUi('..\\gui\\overview_settings_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() # Set up OV selector: self.comboBox_OVSelector.addItems(self.ovm.get_ov_str_list()) self.comboBox_OVSelector.setCurrentIndex(self.current_ov) self.comboBox_OVSelector.currentIndexChanged.connect(self.change_ov) # Set up other comboboxes: store_res_list = [ '%d × %d' % (res[0], res[1]) for res in self.sem.STORE_RES] self.comboBox_frameSize.addItems(store_res_list) self.comboBox_frameSize.currentIndexChanged.connect( self.update_pixel_size) self.comboBox_dwellTime.addItems(map(str, self.sem.DWELL_TIME)) # Update pixel size when mag changed: self.spinBox_magnification.valueChanged.connect(self.update_pixel_size) # Add and delete button: self.pushButton_save.clicked.connect(self.save_current_settings) self.pushButton_addOV.clicked.connect(self.add_ov) self.pushButton_deleteOV.clicked.connect(self.delete_ov) self.update_buttons() self.show_current_settings() self.show_frame_size() def show_current_settings(self): self.comboBox_frameSize.setCurrentIndex( self.ovm.get_ov_size_selector(self.current_ov)) self.spinBox_magnification.setValue( self.ovm.get_ov_magnification(self.current_ov)) self.doubleSpinBox_pixelSize.setValue( self.ovm.get_ov_pixel_size(self.current_ov)) self.comboBox_dwellTime.setCurrentIndex( self.ovm.get_ov_dwell_time_selector(self.current_ov)) self.spinBox_acqInterval.setValue( self.ovm.get_ov_acq_interval(self.current_ov)) self.spinBox_acqIntervalOffset.setValue( self.ovm.get_ov_acq_interval_offset(self.current_ov)) def update_pixel_size(self): """Calculate pixel size from current magnification and display it.""" pixel_size = ( self.sem.MAG_PX_SIZE_FACTOR / (self.sem.STORE_RES[self.comboBox_frameSize.currentIndex()][0] * self.spinBox_magnification.value())) self.doubleSpinBox_pixelSize.setValue(pixel_size) def show_frame_size(self): """Calculate and show frame size depending on user selection.""" frame_size_selector = self.ovm.get_ov_size_selector(self.current_ov) pixel_size = self.ovm.get_ov_pixel_size(self.current_ov) width = self.sem.STORE_RES[frame_size_selector][0] * pixel_size / 1000 height = self.sem.STORE_RES[frame_size_selector][1] * pixel_size / 1000 self.label_frameSize.setText('{0:.1f} × '.format(width) + '{0:.1f}'.format(height)) def change_ov(self): self.current_ov = self.comboBox_OVSelector.currentIndex() self.update_buttons() self.show_current_settings() def update_buttons(self): """Update labels on buttons and disable/enable delete button depending on which OV is selected. OV 0 cannot be deleted. Only the last OV can be deleted. Reason: preserve identities of overviews during stack acq. """ if self.current_ov == 0: self.pushButton_deleteOV.setEnabled(False) else: self.pushButton_deleteOV.setEnabled( self.current_ov == self.ovm.get_number_ov() - 1) # Show current OV number on delete and save buttons self.pushButton_save.setText( 'Save settings for OV %d' % self.current_ov) self.pushButton_deleteOV.setText('Delete OV %d' % self.current_ov) def save_current_settings(self): self.prev_frame_size = self.ovm.get_ov_size_selector(self.current_ov) self.ovm.set_ov_size_selector(self.current_ov, self.comboBox_frameSize.currentIndex()) self.ovm.set_ov_magnification(self.current_ov, self.spinBox_magnification.value()) self.ovm.set_ov_dwell_time_selector(self.current_ov, self.comboBox_dwellTime.currentIndex()) self.ovm.set_ov_acq_interval(self.current_ov, self.spinBox_acqInterval.value()) self.ovm.set_ov_acq_interval_offset(self.current_ov, self.spinBox_acqIntervalOffset.value()) if self.comboBox_frameSize.currentIndex() != self.prev_frame_size: # Delete current preview image: self.ovm.update_ov_file_list(self.current_ov, '') self.main_window_queue.put('OV SETTINGS CHANGED') self.main_window_trigger.s.emit() def add_ov(self): self.ovm.add_new_ov() self.current_ov = self.ovm.get_number_ov() - 1 # Update OV selector: self.comboBox_OVSelector.blockSignals(True) self.comboBox_OVSelector.clear() self.comboBox_OVSelector.addItems(self.ovm.get_ov_str_list()) self.comboBox_OVSelector.setCurrentIndex(self.current_ov) self.comboBox_OVSelector.blockSignals(False) self.update_buttons() self.show_current_settings() self.show_frame_size() self.main_window_queue.put('OV SETTINGS CHANGED') self.main_window_trigger.s.emit() def delete_ov(self): self.ovm.delete_ov() self.current_ov = self.ovm.get_number_ov() - 1 # Update OV selector: self.comboBox_OVSelector.blockSignals(True) self.comboBox_OVSelector.clear() self.comboBox_OVSelector.addItems(self.ovm.get_ov_str_list()) self.comboBox_OVSelector.setCurrentIndex(self.current_ov) self.comboBox_OVSelector.blockSignals(False) self.update_buttons() self.show_current_settings() self.show_frame_size() self.main_window_queue.put('OV SETTINGS CHANGED') self.main_window_trigger.s.emit() #------------------------------------------------------------------------------ class ImportImageDlg(QDialog): """Import an image into the viewport.""" def __init__(self, ovm, cs, target_dir): self.ovm = ovm self.cs = cs self.target_dir = target_dir super().__init__() loadUi('..\\gui\\import_image_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.pushButton_selectFile.clicked.connect(self.select_file) self.pushButton_selectFile.setIcon(QIcon('..\\img\\selectdir.png')) self.pushButton_selectFile.setIconSize(QSize(16, 16)) def select_file(self): # Let user select image to be imported: start_path = 'C:\\' selected_file = str(QFileDialog.getOpenFileName( self, 'Select image', start_path, 'Images (*.tif *.png *.bmp *.jpg)' )[0]) if len(selected_file) > 0: # Replace forward slashes with backward slashes: selected_file = selected_file.replace('/', '\\') self.lineEdit_fileName.setText(selected_file) self.lineEdit_name.setText( os.path.splitext(os.path.basename(selected_file))[0]) def accept(self): selection_success = True selected_path = self.lineEdit_fileName.text() selected_filename = os.path.basename(selected_path) timestamp = str(datetime.datetime.now()) # Remove some characters from timestap to get valid file name: timestamp = timestamp[:19].translate({ord(c): None for c in ' :-.'}) target_path = (self.target_dir + '\\' + os.path.splitext(selected_filename)[0] + '_' + timestamp + '.png') if os.path.isfile(selected_path): # Copy file to data folder as png: try: imported_img = Image.open(selected_path) imported_img.save(target_path) except: QMessageBox.warning( self, 'Error', 'Could not load image file.', QMessageBox.Ok) selection_success = False if selection_success: new_img_number = self.ovm.get_number_imported() self.ovm.add_imported_img() self.cs.set_imported_img_centre_s( new_img_number, [self.doubleSpinBox_posX.value(), self.doubleSpinBox_posY.value()]) self.ovm.set_imported_img_rotation( new_img_number, self.spinBox_rotation.value()) self.ovm.set_imported_img_file( new_img_number, target_path) self.ovm.set_imported_img_name(new_img_number, self.lineEdit_name.text()) width, height = imported_img.size self.ovm.set_imported_img_size_px_py( new_img_number, width, height) self.ovm.set_imported_img_pixel_size( new_img_number, self.doubleSpinBox_pixelSize.value()) self.ovm.set_imported_img_transparency( new_img_number, self.spinBox_transparency.value()) else: QMessageBox.warning(self, 'Error', 'Specified file not found.', QMessageBox.Ok) selection_success = False if selection_success: super().accept() #------------------------------------------------------------------------------ class AdjustImageDlg(QDialog): """Adjust an imported image (size, rotation, transparency)""" def __init__(self, ovm, cs, selected_img, main_window_queue, main_window_trigger): self.ovm = ovm self.cs = cs self.main_window_queue = main_window_queue self.main_window_trigger = main_window_trigger self.selected_img = selected_img super().__init__() loadUi('..\\gui\\adjust_imported_image_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.lineEdit_selectedImage.setText( self.ovm.get_imported_img_name(self.selected_img)) pos_x, pos_y = self.cs.get_imported_img_centre_s(self.selected_img) self.doubleSpinBox_posX.setValue(pos_x) self.doubleSpinBox_posY.setValue(pos_y) self.doubleSpinBox_pixelSize.setValue( self.ovm.get_imported_img_pixel_size(self.selected_img)) self.spinBox_rotation.setValue( self.ovm.get_imported_img_rotation(self.selected_img)) self.spinBox_transparency.setValue( self.ovm.get_imported_img_transparency(self.selected_img)) # Use "Apply" button to show changes in viewport apply_button = self.buttonBox.button(QDialogButtonBox.Apply) cancel_button = self.buttonBox.button(QDialogButtonBox.Cancel) cancel_button.setAutoDefault(False) cancel_button.setDefault(False) apply_button.setDefault(True) apply_button.setAutoDefault(True) apply_button.clicked.connect(self.apply_changes) def apply_changes(self): """Apply the current settings and redraw the image in the viewport.""" self.cs.set_imported_img_centre_s( self.selected_img, [self.doubleSpinBox_posX.value(), self.doubleSpinBox_posY.value()]) self.ovm.set_imported_img_pixel_size( self.selected_img, self.doubleSpinBox_pixelSize.value()) self.ovm.set_imported_img_rotation( self.selected_img, self.spinBox_rotation.value()) self.ovm.set_imported_img_transparency( self.selected_img, self.spinBox_transparency.value()) # Emit signals to reload and redraw: self.main_window_queue.put('RELOAD IMPORTED' + str(self.selected_img)) self.main_window_trigger.s.emit() #------------------------------------------------------------------------------ class DeleteImageDlg(QDialog): """Delete an imported image from the viewport.""" def __init__(self, ovm): self.ovm = ovm super().__init__() loadUi('..\\gui\\delete_image_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() # Populate the list widget with existing imported images: img_list = [] for i in range(self.ovm.get_number_imported()): img_list.append(str(i) + ' - ' + self.ovm.get_imported_img_name(i)) self.listWidget_imagelist.addItems(img_list) def accept(self): selected_img = self.listWidget_imagelist.currentRow() if selected_img is not None: self.ovm.delete_imported_img(selected_img) super().accept() #------------------------------------------------------------------------------ class GridSettingsDlg(QDialog): """Let the user change all settings for each grid.""" def __init__(self, grid_manager, sem, selected_grid, config, main_window_queue, main_window_trigger): super().__init__() self.gm = grid_manager self.sem = sem self.current_grid = selected_grid self.cfg = config self.main_window_queue = main_window_queue self.main_window_trigger = main_window_trigger loadUi('..\\gui\\grid_settings_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() # Set up grid selector: self.comboBox_gridSelector.addItems(self.gm.get_grid_str_list()) self.comboBox_gridSelector.setCurrentIndex(self.current_grid) self.comboBox_gridSelector.currentIndexChanged.connect( self.change_grid) # Set up colour selector: for i in range(len(utils.COLOUR_SELECTOR)): rgb = utils.COLOUR_SELECTOR[i] colour_icon = QPixmap(20, 10) colour_icon.fill(QColor(rgb[0], rgb[1], rgb[2])) self.comboBox_colourSelector.addItem(QIcon(colour_icon), '') store_res_list = [ '%d × %d' % (res[0], res[1]) for res in self.sem.STORE_RES] self.comboBox_tileSize.addItems(store_res_list) self.comboBox_tileSize.currentIndexChanged.connect( self.show_tile_size_and_dose) self.comboBox_dwellTime.addItems(map(str, self.sem.DWELL_TIME)) self.comboBox_dwellTime.currentIndexChanged.connect( self.show_tile_size_and_dose) self.doubleSpinBox_pixelSize.valueChanged.connect( self.show_tile_size_and_dose) # Adaptive focus tool button: self.toolButton_adaptiveFocus.clicked.connect( self.open_adaptive_focus_dlg) # Reset wd/stig parameters: self.pushButton_resetFocusParams.clicked.connect( self.reset_wd_stig_params) # Save, add and delete button: self.pushButton_save.clicked.connect(self.save_current_settings) self.pushButton_addGrid.clicked.connect(self.add_grid) self.pushButton_deleteGrid.clicked.connect(self.delete_grid) self.update_buttons() self.show_current_settings() self.show_tile_size_and_dose() # inactivating add grid in magc_mode (should be done in magc panel instead) if self.cfg['sys']['magc_mode'] == 'True': self.pushButton_addGrid.setEnabled(False) def show_current_settings(self): self.comboBox_colourSelector.setCurrentIndex( self.gm.get_display_colour_index(self.current_grid)) # Adaptive focus: self.checkBox_adaptiveFocus.setChecked( self.gm.is_adaptive_focus_active(self.current_grid)) self.spinBox_rows.setValue(self.gm.get_number_rows(self.current_grid)) self.spinBox_cols.setValue(self.gm.get_number_cols(self.current_grid)) self.spinBox_overlap.setValue(self.gm.get_overlap(self.current_grid)) self.doubleSpinBox_rotation.setValue( self.gm.get_rotation(self.current_grid)) self.spinBox_shift.setValue(self.gm.get_row_shift(self.current_grid)) self.doubleSpinBox_pixelSize.setValue( self.gm.get_pixel_size(self.current_grid)) self.comboBox_tileSize.setCurrentIndex( self.gm.get_tile_size_selector(self.current_grid)) self.comboBox_dwellTime.setCurrentIndex( self.gm.get_dwell_time_selector(self.current_grid)) self.spinBox_acqInterval.setValue( self.gm.get_acq_interval(self.current_grid)) self.spinBox_acqIntervalOffset.setValue( self.gm.get_acq_interval_offset(self.current_grid)) def show_tile_size_and_dose(self): """Calculate and display the tile size and the dose for the current settings. Updated in real-time as user changes dwell time, frame resolution and pixel size. """ tile_size_selector = self.comboBox_tileSize.currentIndex() pixel_size = self.doubleSpinBox_pixelSize.value() width = self.sem.STORE_RES[tile_size_selector][0] * pixel_size / 1000 height = self.sem.STORE_RES[tile_size_selector][1] * pixel_size / 1000 self.label_tileSize.setText('{0:.1f} × '.format(width) + '{0:.1f}'.format(height)) current = self.sem.get_beam_current() dwell_time = float(self.comboBox_dwellTime.currentText()) pixel_size = self.doubleSpinBox_pixelSize.value() # Show electron dose in electrons per square nanometre. self.label_dose.setText('{0:.1f}'.format( utils.calculate_electron_dose(current, dwell_time, pixel_size))) def change_grid(self): self.current_grid = self.comboBox_gridSelector.currentIndex() self.update_buttons() self.show_current_settings() self.show_tile_size_and_dose() def update_buttons(self): """Update labels on buttons and disable/enable delete button depending on which grid is selected. Grid 0 cannot be deleted. Only the last grid can be deleted. Reason: preserve identities of grids and tiles within grids. """ if self.current_grid == 0: self.pushButton_deleteGrid.setEnabled(False) else: self.pushButton_deleteGrid.setEnabled( self.current_grid == self.gm.get_number_grids() - 1) self.pushButton_save.setText( 'Save settings for grid %d' % self.current_grid) self.pushButton_deleteGrid.setText('Delete grid %d' % self.current_grid) def add_grid(self): self.gm.add_new_grid() self.current_grid = self.gm.get_number_grids() - 1 # Update grid selector: self.comboBox_gridSelector.blockSignals(True) self.comboBox_gridSelector.clear() self.comboBox_gridSelector.addItems(self.gm.get_grid_str_list()) self.comboBox_gridSelector.setCurrentIndex(self.current_grid) self.comboBox_gridSelector.blockSignals(False) self.update_buttons() self.show_current_settings() self.show_tile_size_and_dose() self.main_window_queue.put('GRID SETTINGS CHANGED') self.main_window_trigger.s.emit() def delete_grid(self): user_reply = QMessageBox.question( self, 'Delete grid', 'This will delete grid %d.\n\n' 'Do you wish to proceed?' % self.current_grid, QMessageBox.Ok | QMessageBox.Cancel) if user_reply == QMessageBox.Ok: self.gm.delete_grid() self.current_grid = self.gm.get_number_grids() - 1 # Update grid selector: self.comboBox_gridSelector.blockSignals(True) self.comboBox_gridSelector.clear() self.comboBox_gridSelector.addItems(self.gm.get_grid_str_list()) self.comboBox_gridSelector.setCurrentIndex(self.current_grid) self.comboBox_gridSelector.blockSignals(False) self.update_buttons() self.show_current_settings() self.show_tile_size_and_dose() self.main_window_queue.put('GRID SETTINGS CHANGED') self.main_window_trigger.s.emit() def reset_wd_stig_params(self): user_reply = QMessageBox.question( self, 'Reset focus/astigmatism parameters', f'This will reset the focus and astigmatism parameters for ' f'all tiles in grid {self.current_grid}.\n' f'Proceed?', QMessageBox.Ok | QMessageBox.Cancel) if user_reply == QMessageBox.Ok: self.gm.initialize_wd_stig_map(self.current_grid) self.main_window_queue.put('GRID SETTINGS CHANGED') self.main_window_trigger.s.emit() def save_current_settings(self): if self.cfg['sys']['magc_mode'] == 'True': grid_center = self.gm.get_grid_center_s(self.current_grid) error_msg = '' self.gm.set_grid_size(self.current_grid, (self.spinBox_rows.value(), self.spinBox_cols.value())) self.gm.set_tile_size_selector(self.current_grid, self.comboBox_tileSize.currentIndex()) tile_width_p = self.gm.get_tile_width_p(self.current_grid) input_overlap = self.spinBox_overlap.value() input_shift = self.spinBox_shift.value() if -0.3 * tile_width_p <= input_overlap < 0.3 * tile_width_p: self.gm.set_overlap(self.current_grid, input_overlap) else: error_msg = ('Overlap outside of allowed ' 'range (-30% .. 30% frame width).') self.gm.set_rotation( self.current_grid, self.doubleSpinBox_rotation.value()) if 0 <= input_shift <= tile_width_p: self.gm.set_row_shift(self.current_grid, input_shift) else: error_msg = ('Row shift outside of allowed ' 'range (0 .. frame width).') self.gm.set_display_colour( self.current_grid, self.comboBox_colourSelector.currentIndex()) self.gm.set_adaptive_focus_enabled(self.current_grid, self.checkBox_adaptiveFocus.isChecked()) if self.checkBox_adaptiveFocus.isChecked(): self.gm.calculate_focus_gradient(self.current_grid) # Acquisition parameters: self.gm.set_pixel_size(self.current_grid, self.doubleSpinBox_pixelSize.value()) self.gm.set_dwell_time_selector(self.current_grid, self.comboBox_dwellTime.currentIndex()) self.gm.set_acq_interval( self.current_grid, self.spinBox_acqInterval.value()) self.gm.set_acq_interval_offset( self.current_grid, self.spinBox_acqIntervalOffset.value()) # Recalculate grid: self.gm.calculate_grid_map(self.current_grid) # Update wd/stig map: self.gm.initialize_wd_stig_map(self.current_grid) if self.cfg['sys']['magc_mode'] == 'True': self.gm.set_grid_center_s(self.current_grid, grid_center) self.gm.update_source_ROIs_from_grids() if error_msg: QMessageBox.warning(self, 'Error', error_msg, QMessageBox.Ok) else: self.main_window_queue.put('GRID SETTINGS CHANGED') self.main_window_trigger.s.emit() def open_adaptive_focus_dlg(self): sub_dialog = AdaptiveFocusSettingsDlg(self.gm, self.current_grid) sub_dialog.exec_() #------------------------------------------------------------------------------ class AdaptiveFocusSettingsDlg(QDialog): """Select the tiles to calculate the gradient for the adaptive focus.""" def __init__(self, gm, current_grid): super().__init__() self.gm = gm self.current_grid = current_grid loadUi('..\\gui\\adaptive_focus_settings_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.lineEdit_currentGrid.setText('Grid ' + str(current_grid)) self.grid_illustration.setPixmap(QPixmap('..\\img\\grid.png')) self.af_tiles = self.gm.get_adaptive_focus_tiles(self.current_grid) # Backup variable for currently selected adaptive focus tiles: self.prev_af_tiles = self.af_tiles.copy() # Set up tile selectors for adaptive focus tiles: number_of_tiles = self.gm.get_number_tiles(self.current_grid) tile_list_str = ['-'] for tile in range(number_of_tiles): tile_list_str.append(str(tile)) for i in range(3): if self.af_tiles[i] >= number_of_tiles: self.af_tiles[i] = -1 self.comboBox_tileUpperLeft.blockSignals(True) self.comboBox_tileUpperLeft.addItems(tile_list_str) self.comboBox_tileUpperLeft.setCurrentIndex(self.af_tiles[0] + 1) self.comboBox_tileUpperLeft.currentIndexChanged.connect( self.update_settings) self.comboBox_tileUpperLeft.blockSignals(False) self.comboBox_tileUpperRight.blockSignals(True) self.comboBox_tileUpperRight.addItems(tile_list_str) self.comboBox_tileUpperRight.setCurrentIndex(self.af_tiles[1] + 1) self.comboBox_tileUpperRight.currentIndexChanged.connect( self.update_settings) self.comboBox_tileUpperRight.blockSignals(False) self.comboBox_tileLowerLeft.blockSignals(True) self.comboBox_tileLowerLeft.addItems(tile_list_str) self.comboBox_tileLowerLeft.setCurrentIndex(self.af_tiles[2] + 1) self.comboBox_tileLowerLeft.currentIndexChanged.connect( self.update_settings) self.comboBox_tileLowerLeft.blockSignals(False) self.update_settings() def update_settings(self): """Get selected working distances and calculate origin WD and gradient if possible. """ self.af_tiles[0] = self.comboBox_tileUpperLeft.currentIndex() - 1 self.af_tiles[1] = self.comboBox_tileUpperRight.currentIndex() - 1 self.af_tiles[2] = self.comboBox_tileLowerLeft.currentIndex() - 1 if self.af_tiles[0] >= 0: self.label_t1.setText('Tile ' + str(self.af_tiles[0]) + ':') wd = self.gm.get_tile_wd(self.current_grid, self.af_tiles[0]) self.doubleSpinBox_t1.setValue(wd * 1000) else: self.label_t1.setText('Tile (-) :') self.doubleSpinBox_t1.setValue(0) if self.af_tiles[1] >= 0: self.label_t2.setText('Tile ' + str(self.af_tiles[1]) + ':') wd = self.gm.get_tile_wd(self.current_grid, self.af_tiles[1]) self.doubleSpinBox_t2.setValue(wd * 1000) else: self.label_t2.setText('Tile (-) :') self.doubleSpinBox_t2.setValue(0) if self.af_tiles[2] >= 0: self.label_t3.setText('Tile ' + str(self.af_tiles[2]) + ':') wd = self.gm.get_tile_wd(self.current_grid, self.af_tiles[2]) self.doubleSpinBox_t3.setValue(wd * 1000) else: self.label_t3.setText('Tile (-) :') self.doubleSpinBox_t3.setValue(0) self.gm.set_adaptive_focus_tiles(self.current_grid, self.af_tiles) # Try to calculate focus map: self.af_success = self.gm.calculate_focus_gradient(self.current_grid) if self.af_success: grad = self.gm.get_adaptive_focus_gradient(self.current_grid) wd = self.gm.get_tile_wd(self.current_grid, 0) current_status_str = ( 'WD: ' + '{0:.6f}'.format(wd * 1000) + ' mm;\n' + chr(8710) + 'x: ' + '{0:.6f}'.format(grad[0] * 1000) + '; ' + chr(8710) + 'y: ' + '{0:.6f}'.format(grad[1] * 1000)) else: current_status_str = 'Insufficient or incorrect tile selection' self.textEdit_originGradients.setText(current_status_str) def accept(self): if self.af_success: super().accept() else: QMessageBox.warning( self, 'Error', 'Insufficient or incorrect tile selection. Cannot calculate ' 'origin working distance and focus gradient.', QMessageBox.Ok) def reject(self): # Restore previous selection: self.gm.set_adaptive_focus_tiles(self.current_grid, self.prev_af_tiles) # Recalculate with previous setting: self.gm.calculate_focus_gradient(self.current_grid) super().reject() #------------------------------------------------------------------------------ class AdaptiveFocusSelectionDlg(QDialog): def __init__(self, current_af_tiles): super().__init__() self.selected = None loadUi('..\\gui\\adaptive_focus_selection_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.grid_illustration.setPixmap(QPixmap('..\\img\\grid.png')) if current_af_tiles[0] >= 0: self.pushButton_pos0.setText(str(current_af_tiles[0])) else: self.pushButton_pos0.setText('-') if current_af_tiles[1] >= 0: self.pushButton_pos1.setText(str(current_af_tiles[1])) else: self.pushButton_pos1.setText('-') if current_af_tiles[2] >= 0: self.pushButton_pos2.setText(str(current_af_tiles[2])) else: self.pushButton_pos2.setText('-') self.pushButton_pos0.clicked.connect(self.select_pos0) self.pushButton_pos1.clicked.connect(self.select_pos1) self.pushButton_pos2.clicked.connect(self.select_pos2) def select_pos0(self): self.selected = 0 super().accept() def select_pos1(self): self.selected = 1 super().accept() def select_pos2(self): self.selected = 2 super().accept() #------------------------------------------------------------------------------ class GridRotationDlg(QDialog): """Change the rotation angle of a selected grid.""" def __init__(self, selected_grid, gm, cfg, main_window_queue, main_window_trigger): self.selected_grid = selected_grid self.gm = gm self.cfg = cfg self.main_window_queue = main_window_queue self.main_window_trigger = main_window_trigger self.rotation_in_progress = False super().__init__() loadUi('..\\gui\\change_grid_rotation_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.label_description.setText( f'Rotation of selected grid {self.selected_grid} in degrees:') # Keep current angle and origin to enable undo option self.previous_angle = self.gm.get_rotation(selected_grid) self.previous_origin = self.gm.get_grid_origin_s(selected_grid) # Set initial values: self.doubleSpinBox_angle.setValue(self.previous_angle) # Slider value 0..719 (twice the angle in degrees) for 0.5 degree steps self.horizontalSlider_angle.setValue( self.doubleSpinBox_angle.value() * 2) self.horizontalSlider_angle.valueChanged.connect(self.update_spinbox) self.doubleSpinBox_angle.valueChanged.connect(self.update_slider) def keyPressEvent(self, event): # Catch KeyPressEvent when user presses Enter (otherwise dialog would exit.) if event.key() == Qt.Key_Enter or event.key() == Qt.Key_Return: event.accept() def update_spinbox(self): self.doubleSpinBox_angle.blockSignals(True) self.doubleSpinBox_angle.setValue( self.horizontalSlider_angle.value() / 2) self.doubleSpinBox_angle.blockSignals(False) self.update_grid() def update_slider(self): self.horizontalSlider_angle.blockSignals(True) self.horizontalSlider_angle.setValue( self.doubleSpinBox_angle.value() * 2) self.horizontalSlider_angle.blockSignals(False) self.update_grid() def update_grid(self): """Apply the new rotation angle and redraw the viewport""" self.time_of_last_rotation = time() if not self.rotation_in_progress: # Start thread to ensure viewport is drawn with labels and previews # after rotation completed. self.rotation_in_progress = True update_viewport_with_delay_thread = threading.Thread( target=self.update_viewport_with_delay, args=()) update_viewport_with_delay_thread.start() if self.radioButton_pivotCentre.isChecked(): # Get current centre of grid: centre_dx, centre_dy = self.gm.get_grid_centre_d(self.selected_grid) # Set new angle self.gm.set_rotation( self.selected_grid, self.doubleSpinBox_angle.value()) self.gm.rotate_around_grid_centre( self.selected_grid, centre_dx, centre_dy) else: self.gm.set_rotation( self.selected_grid, self.doubleSpinBox_angle.value()) self.gm.calculate_grid_map(self.selected_grid) # Emit signal to redraw: self.main_window_queue.put('DRAW MV NO LABELS') self.main_window_trigger.s.emit() def draw_with_labels(self): self.main_window_queue.put('DRAW MV') self.main_window_trigger.s.emit() def update_viewport_with_delay(self): """Redraw the viewport without suppressing labels/previews after at least 0.3 seconds have passed since last update of the rotation angle.""" finish_trigger = Trigger() finish_trigger.s.connect(self.draw_with_labels) current_time = self.time_of_last_rotation while (current_time - self.time_of_last_rotation < 0.3): sleep(0.1) current_time += 0.1 self.rotation_in_progress = False finish_trigger.s.emit() def reject(self): # Revert to previous angle and origin: self.gm.set_rotation(self.selected_grid, self.previous_angle) self.gm.set_grid_origin_s(self.selected_grid, self.previous_origin) self.main_window_queue.put('DRAW MV') self.main_window_trigger.s.emit() super().reject() def accept(self): # Calculate new grid map with new rotation angle: self.gm.calculate_grid_map(self.selected_grid) if self.cfg['sys']['magc_mode'] == 'True': self.gm.update_source_ROIs_from_grids() super().accept() #------------------------------------------------------------------------------ class AcqSettingsDlg(QDialog): """Let user adjust acquisition settings.""" def __init__(self, config, stack): super().__init__() self.cfg = config self.stack = stack loadUi('..\\gui\\acq_settings_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.pushButton_selectDir.clicked.connect(self.select_directory) self.pushButton_selectDir.setIcon(QIcon('..\\img\\selectdir.png')) self.pushButton_selectDir.setIconSize(QSize(16, 16)) # Display current settings: self.lineEdit_baseDir.setText(self.cfg['acq']['base_dir']) self.lineEdit_baseDir.textChanged.connect(self.update_stack_name) self.update_stack_name() self.new_base_dir = '' self.spinBox_sliceThickness.setValue(self.stack.get_slice_thickness()) self.spinBox_numberSlices.setValue(self.stack.get_number_slices()) self.spinBox_sliceCounter.setValue(self.stack.get_slice_counter()) self.doubleSpinBox_zDiff.setValue(self.stack.get_total_z_diff()) self.checkBox_sendMetaData.setChecked( self.cfg['sys']['send_metadata'] == 'True') self.update_server_lineedit() self.checkBox_sendMetaData.stateChanged.connect( self.update_server_lineedit) self.checkBox_EHTOff.setChecked( self.cfg['acq']['eht_off_after_stack'] == 'True') self.lineEdit_metaDataServer.setText( self.cfg['sys']['metadata_server_url']) self.lineEdit_adminEmail.setText( self.cfg['sys']['metadata_server_admin']) self.lineEdit_projectName.setText( self.cfg['sys']['metadata_project_name']) # Disable two spinboxes when SEM stage used: if self.cfg['sys']['use_microtome'] == 'False': self.spinBox_sliceThickness.setEnabled(False) self.doubleSpinBox_zDiff.setEnabled(False) def select_directory(self): """Let user select the base directory for the stack acquisition. Note that the final subfolder name in the directory string is used as the name of the stack in SBEMimage. """ if len(self.cfg['acq']['base_dir']) > 2: start_path = self.cfg['acq']['base_dir'][:3] else: start_path = 'C:\\' self.lineEdit_baseDir.setText( str(QFileDialog.getExistingDirectory( self, 'Select Directory', start_path, QFileDialog.ShowDirsOnly)).replace('/', '\\')) def update_server_lineedit(self): self.lineEdit_projectName.setEnabled( self.checkBox_sendMetaData.isChecked()) def update_stack_name(self): base_dir = self.lineEdit_baseDir.text().rstrip(r'\/ ') self.label_stackName.setText(base_dir[base_dir.rfind('\\') + 1:]) def accept(self): success = True selected_dir = self.lineEdit_baseDir.text() # Remove trailing slashes and whitespace modified_dir = selected_dir.rstrip(r'\/ ') # Replace spaces and forward slashes modified_dir = modified_dir.replace(' ', '_').replace('/', '\\') # Notify user if directory was modified if modified_dir != selected_dir: self.lineEdit_baseDir.setText(modified_dir) self.update_stack_name() QMessageBox.information( self, 'Base directory name modified', 'The selected base directory was modified by removing ' 'trailing slashes and whitespace and replacing spaces with ' 'underscores and forward slashes with backslashes.', QMessageBox.Ok) # Check if path contains a drive letter reg = re.compile('^[a-zA-Z]:\\\$') if not reg.match(modified_dir[:3]): success = False QMessageBox.warning( self, 'Error', 'Please specify the full path to the base directory. It ' 'must begin with a drive letter, for example: "D:\\..."', QMessageBox.Ok) else: # If workspace directory does not yet exist, create it to test # whether path is valid and accessible workspace_dir = os.path.join(modified_dir, 'workspace') try: if not os.path.exists(workspace_dir): os.makedirs(workspace_dir) except Exception as e: success = False QMessageBox.warning( self, 'Error', 'The selected base directory is invalid or ' 'inaccessible: ' + str(e), QMessageBox.Ok) if 5 <= self.spinBox_sliceThickness.value() <= 200: self.stack.set_slice_thickness(self.spinBox_sliceThickness.value()) number_slices = self.spinBox_numberSlices.value() self.stack.set_number_slices(number_slices) if (self.spinBox_sliceCounter.value() <= number_slices or number_slices == 0): self.stack.set_slice_counter(self.spinBox_sliceCounter.value()) self.stack.set_total_z_diff(self.doubleSpinBox_zDiff.value()) self.cfg['acq']['eht_off_after_stack'] = str( self.checkBox_EHTOff.isChecked()) self.cfg['sys']['send_metadata'] = str( self.checkBox_sendMetaData.isChecked()) if self.checkBox_sendMetaData.isChecked(): metadata_server_url = self.lineEdit_metaDataServer.text() if not validators.url(metadata_server_url): QMessageBox.warning( self, 'Error', 'Metadata server URL is invalid. Change the URL in the ' 'system configuration file.', QMessageBox.Ok) self.cfg['sys']['metadata_project_name'] = ( self.lineEdit_projectName.text()) if ((number_slices > 0) and (self.spinBox_sliceCounter.value() > number_slices)): QMessageBox.warning( self, 'Error', 'Slice counter must be smaller than or equal to ' 'target number of slices.', QMessageBox.Ok) success = False if success: self.cfg['acq']['base_dir'] = modified_dir super().accept() #------------------------------------------------------------------------------ class PreStackDlg(QDialog): """Let user check the acquisition settings before starting a stack. Also show settings that can only be changed in DM and let user adjust them for logging purposes. """ def __init__(self, config, ovm, gm, paused): super().__init__() self.cfg = config self.ovm = ovm self.gm = gm loadUi('..\\gui\\pre_stack_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() # Different labels if stack is paused ('Continue' instead of 'Start'): if paused: self.pushButton_startAcq.setText('Continue acquisition') self.setWindowTitle('Continue acquisition') self.pushButton_startAcq.clicked.connect(self.accept) boldFont = QFont() boldFont.setBold(True) # Show the most relevant current settings for the acquisition: base_dir = self.cfg['acq']['base_dir'] self.label_stackName.setText(base_dir[base_dir.rfind('\\') + 1:]) self.label_beamSettings.setText( self.cfg['sem']['eht'] + ' keV, ' + self.cfg['sem']['beam_current'] + ' pA') self.label_gridSetup.setText( self.cfg['overviews']['number_ov'] + ' overview(s), ' + self.cfg['grids']['number_grids'] + ' grid(s);') self.label_totalActiveTiles.setText( str(self.gm.get_total_number_active_tiles()) + ' active tile(s)') if self.cfg['acq']['use_autofocus'] == 'True': if int(self.cfg['autofocus']['method']) == 0: self.label_autofocusActive.setFont(boldFont) self.label_autofocusActive.setText('Active (SmartSEM)') elif int(self.cfg['autofocus']['method']) == 1: self.label_autofocusActive.setFont(boldFont) self.label_autofocusActive.setText('Active (heuristic)') else: self.label_autofocusActive.setText('Inactive') if self.gm.is_adaptive_focus_active(): self.label_adaptiveActive.setFont(boldFont) self.label_adaptiveActive.setText('Active') else: self.label_adaptiveActive.setText('Inactive') if (self.gm.is_intervallic_acq_active() or self.ovm.is_intervallic_acq_active()): self.label_intervallicActive.setFont(boldFont) self.label_intervallicActive.setText('Active') else: self.label_intervallicActive.setText('Inactive') if self.cfg['acq']['interrupted'] == 'True': position = json.loads(self.cfg['acq']['interrupted_at']) self.label_interruption.setFont(boldFont) self.label_interruption.setText( 'Yes, in grid ' + str(position[0]) + ' at tile ' + str(position[1])) else: self.label_interruption.setText('None') self.doubleSpinBox_cutSpeed.setValue( int(float(self.cfg['microtome']['knife_cut_speed'])) / 1000) self.doubleSpinBox_retractSpeed.setValue( int(float(self.cfg['microtome']['knife_retract_speed'])) / 1000) self.doubleSpinBox_brightness.setValue( float(self.cfg['sem']['bsd_brightness'])) self.doubleSpinBox_contrast.setValue( float(self.cfg['sem']['bsd_contrast'])) self.spinBox_bias.setValue( int(self.cfg['sem']['bsd_bias'])) self.checkBox_oscillation.setChecked( self.cfg['microtome']['knife_oscillation'] == 'True') def accept(self): self.cfg['microtome']['knife_cut_speed'] = str( int(self.doubleSpinBox_cutSpeed.value() * 1000)) self.cfg['microtome']['knife_retract_speed'] = str( int(self.doubleSpinBox_retractSpeed.value() * 1000)) self.cfg['sem']['bsd_contrast'] = str( self.doubleSpinBox_contrast.value()) self.cfg['sem']['bsd_brightness'] = str( self.doubleSpinBox_brightness.value()) self.cfg['sem']['bsd_bias'] = str( self.spinBox_bias.value()) self.cfg['microtome']['knife_oscillation'] = str( self.checkBox_oscillation.isChecked()) super().accept() #------------------------------------------------------------------------------ class PauseDlg(QDialog): """Let the user pause a running acquisition. Two options: (1) Pause as soon as possible (after the current image is acquired.) (2) Pause after the current slice is imaged and cut. """ def __init__(self): super().__init__() loadUi('..\\gui\\pause_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.pause_type = 0 self.pushButton_pauseNow.clicked.connect(self.pause_now) self.pushButton_pauseAfterSlice.clicked.connect(self.pause_later) def pause_now(self): self.pause_type = 1 self.accept() def pause_later(self): self.pause_type = 2 self.accept() def get_user_choice(self): return self.pause_type def accept(self): super().accept() #------------------------------------------------------------------------------ class ExportDlg(QDialog): """Export image list in TrakEM2 format.""" def __init__(self, config): super().__init__() self.cfg = config loadUi('..\\gui\\export_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.pushButton_export.clicked.connect(self.export_list) self.spinBox_untilSlice.setValue(int(self.cfg['acq']['slice_counter'])) self.show() def export_list(self): self.pushButton_export.setText('Busy') self.pushButton_export.setEnabled(False) QApplication.processEvents() base_dir = self.cfg['acq']['base_dir'] target_grid_number = ( str(self.spinBox_gridNumber.value()).zfill(utils.GRID_DIGITS)) pixel_size = self.doubleSpinBox_pixelSize.value() start_slice = self.spinBox_fromSlice.value() end_slice = self.spinBox_untilSlice.value() # Read all imagelist files into memory: imagelist_str = [] imagelist_data = [] file_list = glob.glob(os.path.join(base_dir, 'meta', 'logs', 'imagelist*.txt')) file_list.sort() for file in file_list: with open(file) as f: imagelist_str.extend(f.readlines()) if len(imagelist_str) > 0: # split strings, store entries in variables, find minimum x and y: min_x = 1000000 min_y = 1000000 for line in imagelist_str: elements = line.split(';') # elements[0]: relative path to tile image # elements[1]: x coordinate in nm # elements[2]: y coordinate in nm # elements[3]: z coordinate in nm # elements[4]: slice number slice_number = int(elements[4]) grid_number = elements[0][7:11] if (start_slice <= slice_number <= end_slice and grid_number == target_grid_number): x = int(int(elements[1]) / pixel_size) if x < min_x: min_x = x y = int(int(elements[2]) / pixel_size) if y < min_y: min_y = y imagelist_data.append([elements[0], x, y, slice_number]) # Subtract minimum values to obtain bounding box with (0, 0) as # origin in top-left corner. for item in imagelist_data: item[1] -= min_x item[2] -= min_y # Write to output file: try: output_file = os.path.join(base_dir, 'trakem2_imagelist_slice' + str(start_slice) + 'to' + str(end_slice) + '.txt') with open(output_file, 'w') as f: for item in imagelist_data: f.write(item[0] + '\t' + str(item[1]) + '\t' + str(item[2]) + '\t' + str(item[3]) + '\n') except: QMessageBox.warning( self, 'Error', 'An error ocurred while writing the output file.', QMessageBox.Ok) else: QMessageBox.information( self, 'Export completed', f'A total of {len(imagelist_data)} tile entries were ' f'processed.\n\nThe output file\n' f'trakem2_imagelist_slice{start_slice}to{end_slice}.txt\n' f'was written to the current base directory\n' f'{base_dir}.', QMessageBox.Ok) else: QMessageBox.warning( self, 'Error', 'No image metadata found.', QMessageBox.Ok) self.pushButton_export.setText('Export') self.pushButton_export.setEnabled(True) QApplication.processEvents() class UpdateDlg(QDialog): """Update SBEMimage by downloading latest version from GitHub.""" def __init__(self): super().__init__() loadUi('..\\gui\\update_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.pushButton_update.clicked.connect(self.update) self.show() def update(self): self.pushButton_update.setText('Busy') self.pushButton_update.setEnabled(False) QApplication.processEvents() url = "https://github.com/SBEMimage/SBEMimage/archive/master.zip" try: response = requests.get(url, stream=True) with open('master.zip', 'wb') as file: shutil.copyfileobj(response.raw, file) del response except: QMessageBox.warning( self, 'Error', 'Could not download current version from GitHub. Check your ' 'internet connection. ', QMessageBox.Ok) else: # Get directory of current installation: install_path = os.path.dirname( os.path.dirname(os.path.abspath(__file__))) try: with ZipFile("master.zip", "r") as zip_object: for zip_info in zip_object.infolist(): if zip_info.filename[-1] == '/': continue # Remove 'SBEMimage-master/': zip_info.filename = zip_info.filename[17:] print(zip_info.filename) zip_object.extract(zip_info, install_path) except: QMessageBox.warning( self, 'Error', 'Could not extract downloaded GitHub archive.', QMessageBox.Ok) else: QMessageBox.information( self, 'Update complete', 'SBEMimage was updated to the most recent version. ' 'You must restart the program to use the updated version.', QMessageBox.Ok) self.pushButton_update.setText('Update now') self.pushButton_update.setEnabled(True) #------------------------------------------------------------------------------ class EmailMonitoringSettingsDlg(QDialog): """Adjust settings for the e-mail monitoring feature.""" def __init__(self, config, stack): super().__init__() self.cfg = config self.stack = stack loadUi('..\\gui\\email_monitoring_settings_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.lineEdit_notificationEmail.setText( self.cfg['monitoring']['user_email']) self.lineEdit_secondaryNotificationEmail.setText( self.cfg['monitoring']['cc_user_email']) self.spinBox_reportInterval.setValue( int(self.cfg['monitoring']['report_interval'])) self.lineEdit_selectedOV.setText( self.cfg['monitoring']['watch_ov'][1:-1]) self.lineEdit_selectedTiles.setText( self.cfg['monitoring']['watch_tiles'][1:-1].replace('"', '')) self.checkBox_sendLogFile.setChecked( self.cfg['monitoring']['send_logfile'] == 'True') self.checkBox_sendDebrisErrorLogFiles.setChecked( self.cfg['monitoring']['send_additional_logs'] == 'True') self.checkBox_sendViewport.setChecked( self.cfg['monitoring']['send_viewport'] == 'True') self.checkBox_sendOverviews.setChecked( self.cfg['monitoring']['send_ov'] == 'True') self.checkBox_sendTiles.setChecked( self.cfg['monitoring']['send_tiles'] == 'True') self.checkBox_sendOVReslices.setChecked( self.cfg['monitoring']['send_ov_reslices'] == 'True') self.checkBox_sendTileReslices.setChecked( self.cfg['monitoring']['send_tile_reslices'] == 'True') self.checkBox_allowEmailControl.setChecked( self.cfg['monitoring']['remote_commands_enabled'] == 'True') self.checkBox_allowEmailControl.stateChanged.connect( self.update_remote_option_input) self.update_remote_option_input() self.spinBox_remoteCheckInterval.setValue( int(self.cfg['monitoring']['remote_check_interval'])) self.lineEdit_account.setText(self.cfg['sys']['email_account']) self.lineEdit_password.setEchoMode(QLineEdit.Password) self.lineEdit_password.setText(self.stack.get_remote_password()) def update_remote_option_input(self): status = self.checkBox_allowEmailControl.isChecked() self.spinBox_remoteCheckInterval.setEnabled(status) self.lineEdit_password.setEnabled(status) def accept(self): error_str = '' email1 = self.lineEdit_notificationEmail.text() email2 = self.lineEdit_secondaryNotificationEmail.text() if validate_email(email1): self.cfg['monitoring']['user_email'] = email1 else: error_str = 'Primary e-mail address badly formatted or missing.' # Second user e-mail is optional if validate_email(email2) or not email2: self.cfg['monitoring']['cc_user_email'] = ( self.lineEdit_secondaryNotificationEmail.text()) else: error_str = 'Secondary e-mail address badly formatted.' self.cfg['monitoring']['report_interval'] = str( self.spinBox_reportInterval.value()) success, ov_list = utils.validate_ov_list( self.lineEdit_selectedOV.text()) if success: self.cfg['monitoring']['watch_ov'] = str(ov_list) else: error_str = 'List of selected overviews badly formatted.' success, tile_list = utils.validate_tile_list( self.lineEdit_selectedTiles.text()) if success: self.cfg['monitoring']['watch_tiles'] = json.dumps(tile_list) else: error_str = 'List of selected tiles badly formatted.' self.cfg['monitoring']['send_logfile'] = str( self.checkBox_sendLogFile.isChecked()) self.cfg['monitoring']['send_additional_logs'] = str( self.checkBox_sendDebrisErrorLogFiles.isChecked()) self.cfg['monitoring']['send_viewport'] = str( self.checkBox_sendViewport.isChecked()) self.cfg['monitoring']['send_ov'] = str( self.checkBox_sendOverviews.isChecked()) self.cfg['monitoring']['send_tiles'] = str( self.checkBox_sendTiles.isChecked()) self.cfg['monitoring']['send_ov_reslices'] = str( self.checkBox_sendOVReslices.isChecked()) self.cfg['monitoring']['send_tile_reslices'] = str( self.checkBox_sendTileReslices.isChecked()) self.cfg['monitoring']['remote_commands_enabled'] = str( self.checkBox_allowEmailControl.isChecked()) self.cfg['monitoring']['remote_check_interval'] = str( self.spinBox_remoteCheckInterval.value()) self.stack.set_remote_password(self.lineEdit_password.text()) if not error_str: super().accept() else: QMessageBox.warning(self, 'Error', error_str, QMessageBox.Ok) #------------------------------------------------------------------------------ class DebrisSettingsDlg(QDialog): """Adjust the options for debris detection and removal: Detection area, detection method, max. number of sweeps, and what to do when max. number reached. """ def __init__(self, config, ovm): super().__init__() self.cfg = config self.ovm = ovm loadUi('..\\gui\\debris_settings_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() # Detection area: if self.cfg['debris']['auto_detection_area'] == 'True': self.radioButton_autoSelection.setChecked(True) else: self.radioButton_fullSelection.setChecked(True) # Extra margin around detection area in pixels: self.spinBox_debrisMargin.setValue( self.ovm.get_ov_auto_debris_detection_area_margin()) self.spinBox_maxSweeps.setValue( int(self.cfg['debris']['max_number_sweeps'])) self.doubleSpinBox_diffMean.setValue( float(self.cfg['debris']['mean_diff_threshold'])) self.doubleSpinBox_diffSD.setValue( float(self.cfg['debris']['stddev_diff_threshold'])) self.spinBox_diffHistogram.setValue( int(self.cfg['debris']['histogram_diff_threshold'])) self.spinBox_diffPixels.setValue( int(self.cfg['debris']['image_diff_threshold'])) self.checkBox_showDebrisArea.setChecked( self.cfg['debris']['show_detection_area'] == 'True') self.checkBox_continueAcq.setChecked( self.cfg['debris']['continue_after_max_sweeps'] == 'True') # Detection methods: self.radioButton_methodQuadrant.setChecked( self.cfg['debris']['detection_method'] == '0') self.radioButton_methodPixel.setChecked( self.cfg['debris']['detection_method'] == '1') self.radioButton_methodHistogram.setChecked( self.cfg['debris']['detection_method'] == '2') self.radioButton_methodQuadrant.toggled.connect( self.update_option_selection) self.radioButton_methodHistogram.toggled.connect( self.update_option_selection) self.update_option_selection() def update_option_selection(self): """Let user only change the parameters for the currently selected detection method. The other input fields are deactivated. """ if self.radioButton_methodQuadrant.isChecked(): self.doubleSpinBox_diffMean.setEnabled(True) self.doubleSpinBox_diffSD.setEnabled(True) self.spinBox_diffPixels.setEnabled(False) self.spinBox_diffHistogram.setEnabled(False) elif self.radioButton_methodPixel.isChecked(): self.doubleSpinBox_diffMean.setEnabled(False) self.doubleSpinBox_diffSD.setEnabled(False) self.spinBox_diffPixels.setEnabled(True) self.spinBox_diffHistogram.setEnabled(False) elif self.radioButton_methodHistogram.isChecked(): self.doubleSpinBox_diffMean.setEnabled(False) self.doubleSpinBox_diffSD.setEnabled(False) self.spinBox_diffPixels.setEnabled(False) self.spinBox_diffHistogram.setEnabled(True) def accept(self): self.ovm.set_ov_auto_debris_detection_area_margin( self.spinBox_debrisMargin.value()) self.cfg['debris']['max_number_sweeps'] = str( self.spinBox_maxSweeps.value()) self.cfg['debris']['mean_diff_threshold'] = str( self.doubleSpinBox_diffMean.value()) self.cfg['debris']['stddev_diff_threshold'] = str( self.doubleSpinBox_diffSD.value()) self.cfg['debris']['histogram_diff_threshold'] = str( self.spinBox_diffHistogram.value()) self.cfg['debris']['image_diff_threshold'] = str( self.spinBox_diffPixels.value()) self.cfg['debris']['auto_detection_area'] = str( self.radioButton_autoSelection.isChecked()) self.cfg['debris']['show_detection_area'] = str( self.checkBox_showDebrisArea.isChecked()) self.cfg['debris']['continue_after_max_sweeps'] = str( self.checkBox_continueAcq.isChecked()) if self.radioButton_methodQuadrant.isChecked(): self.cfg['debris']['detection_method'] = '0' elif self.radioButton_methodPixel.isChecked(): self.cfg['debris']['detection_method'] = '1' elif self.radioButton_methodHistogram.isChecked(): self.cfg['debris']['detection_method'] = '2' super().accept() #------------------------------------------------------------------------------ class AskUserDlg(QDialog): """Specify for which events the program should let the user decide how to proceed. The "Ask User" functionality is currently only used for debris detection. Will be expanded, work in progress... """ def __init__(self): super().__init__() loadUi('..\\gui\\ask_user_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() #------------------------------------------------------------------------------ class MirrorDriveDlg(QDialog): """Select a mirror drive from all available drives.""" def __init__(self, config): super().__init__() self.cfg = config loadUi('..\\gui\\mirror_drive_settings_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.available_drives = [] self.label_text.setText('Please wait. Searching for drives...') QApplication.processEvents() # Search for drives in thread. If it gets stuck because drives are # not accessible, user can still cancel dialog. t = threading.Thread(target=self.search_drives) t.start() def search_drives(self): # Search for all available drives: self.available_drives = [ '%s:' % d for d in string.ascii_uppercase if os.path.exists('%s:' % d)] if self.available_drives: self.comboBox_allDrives.addItems(self.available_drives) current_index = self.comboBox_allDrives.findText( self.cfg['sys']['mirror_drive']) if current_index == -1: current_index = 0 self.comboBox_allDrives.setCurrentIndex(current_index) # Restore label after searching for available drives: self.label_text.setText('Select drive for mirroring acquired data:') def accept(self): if self.available_drives: if (self.comboBox_allDrives.currentText()[0] == self.cfg['acq']['base_dir'][0]): QMessageBox.warning( self, 'Error', 'The mirror drive must be different from the ' 'base directory drive!', QMessageBox.Ok) else: self.cfg['sys']['mirror_drive'] = ( self.comboBox_allDrives.currentText()) super().accept() #------------------------------------------------------------------------------ class ImageMonitoringSettingsDlg(QDialog): """Adjust settings to monitor overviews and tiles. A test if image is within mean/SD range is performed for all images if option is activated. Tile-by-tile comparisons are performed for the selected tiles. """ def __init__(self, config): super().__init__() self.cfg = config loadUi('..\\gui\\image_monitoring_settings_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.spinBox_meanMin.setValue( int(self.cfg['monitoring']['mean_lower_limit'])) self.spinBox_meanMax.setValue( int(self.cfg['monitoring']['mean_upper_limit'])) self.spinBox_stddevMin.setValue( int(self.cfg['monitoring']['stddev_lower_limit'])) self.spinBox_stddevMax.setValue( int(self.cfg['monitoring']['stddev_upper_limit'])) self.lineEdit_monitorTiles.setText( self.cfg['monitoring']['monitor_tiles'][1:-1]) self.lineEdit_monitorTiles.setText( self.cfg['monitoring']['monitor_tiles'][1:-1].replace('"', '')) self.doubleSpinBox_meanThreshold.setValue( float(self.cfg['monitoring']['tile_mean_threshold'])) self.doubleSpinBox_stdDevThreshold.setValue( float(self.cfg['monitoring']['tile_stddev_threshold'])) def accept(self): error_str = '' self.cfg['monitoring']['mean_lower_limit'] = str( self.spinBox_meanMin.value()) self.cfg['monitoring']['mean_upper_limit'] = str( self.spinBox_meanMax.value()) self.cfg['monitoring']['stddev_lower_limit'] = str( self.spinBox_stddevMin.value()) self.cfg['monitoring']['stddev_upper_limit'] = str( self.spinBox_stddevMax.value()) tile_str = self.lineEdit_monitorTiles.text().strip() if tile_str == 'all': self.cfg['monitoring']['monitor_tiles'] = '["all"]' else: success, tile_list = utils.validate_tile_list(tile_str) if success: self.cfg['monitoring']['monitor_tiles'] = json.dumps(tile_list) else: error_str = 'List of selected tiles badly formatted.' self.cfg['monitoring']['tile_mean_threshold'] = str( self.doubleSpinBox_meanThreshold.value()) self.cfg['monitoring']['tile_stddev_threshold'] = str( self.doubleSpinBox_stdDevThreshold.value()) if not error_str: super().accept() else: QMessageBox.warning(self, 'Error', error_str, QMessageBox.Ok) #------------------------------------------------------------------------------ class AutofocusSettingsDlg(QDialog): """Adjust settings for the ZEISS autofocus, the heuristic autofocus, and tracking the focus/stig when refocusing manually.""" def __init__(self, autofocus, grid_manager, magc_mode=False): super().__init__() self.af = autofocus self.gm = grid_manager loadUi('..\\gui\\autofocus_settings_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() if self.af.get_method() == 0: self.radioButton_useSmartSEM.setChecked(True) elif self.af.get_method() == 1: self.radioButton_useHeuristic.setChecked(True) elif self.af.get_method() == 2: self.radioButton_useTrackingOnly.setChecked(True) self.radioButton_useSmartSEM.toggled.connect(self.group_box_update) self.radioButton_useHeuristic.toggled.connect(self.group_box_update) self.radioButton_useTrackingOnly.toggled.connect(self.group_box_update) self.group_box_update() # General settings self.lineEdit_refTiles.setText( str(self.af.get_ref_tiles())[1:-1].replace('\'', '')) if self.af.get_tracking_mode() == 1: self.lineEdit_refTiles.setEnabled(False) max_diff = self.af.get_max_wd_stig_diff() self.doubleSpinBox_maxWDDiff.setValue(max_diff[0] * 1000000) self.doubleSpinBox_maxStigXDiff.setValue(max_diff[1]) self.doubleSpinBox_maxStigYDiff.setValue(max_diff[2]) self.comboBox_trackingMode.addItems(['Track selected, approx. others', 'Track all active tiles', 'Average over selected']) self.comboBox_trackingMode.setCurrentIndex( self.af.get_tracking_mode()) self.comboBox_trackingMode.currentIndexChanged.connect( self.change_tracking_mode) # SmartSEM autofocus self.spinBox_interval.setValue(self.af.get_interval()) self.spinBox_autostigDelay.setValue(self.af.get_autostig_delay()) self.doubleSpinBox_pixelSize.setValue(self.af.get_pixel_size()) # For heuristic autofocus: deltas = self.af.get_heuristic_deltas() self.doubleSpinBox_wdDiff.setValue(deltas[0] * 1000000) self.doubleSpinBox_stigXDiff.setValue(deltas[1]) self.doubleSpinBox_stigYDiff.setValue(deltas[2]) calib = self.af.get_heuristic_calibration() self.doubleSpinBox_focusCalib.setValue(calib[0]) self.doubleSpinBox_stigXCalib.setValue(calib[1]) self.doubleSpinBox_stigYCalib.setValue(calib[2]) rot, scale = self.af.get_heuristic_rot_scale() self.doubleSpinBox_stigRot.setValue(rot) self.doubleSpinBox_stigScale.setValue(scale) # Disable some settings if MagC mode is active if magc_mode: self.radioButton_useHeuristic.setEnabled(False) self.radioButton_useTrackingOnly.setEnabled(False) self.comboBox_trackingMode.setEnabled(False) self.spinBox_interval.setEnabled(False) # make autostig interval work on grids instead of slices self.label_fdp_4.setText('Autostig interval (grids) ') def group_box_update(self): if self.radioButton_useSmartSEM.isChecked(): zeiss_enabled = True heuristic_enabled = False diffs_enabled = True elif self.radioButton_useHeuristic.isChecked(): zeiss_enabled = False heuristic_enabled = True diffs_enabled = True elif self.radioButton_useTrackingOnly.isChecked(): zeiss_enabled = False heuristic_enabled = False diffs_enabled = False self.groupBox_ZEISS_af.setEnabled(zeiss_enabled) self.groupBox_heuristic_af.setEnabled(heuristic_enabled) self.doubleSpinBox_maxWDDiff.setEnabled(diffs_enabled) self.doubleSpinBox_maxStigXDiff.setEnabled(diffs_enabled) self.doubleSpinBox_maxStigYDiff.setEnabled(diffs_enabled) def change_tracking_mode(self): """Let user confirm switch to "track all".""" if self.comboBox_trackingMode.currentIndex() == 1: response = QMessageBox.information( self, 'Track all tiles', 'This will select all active tiles for autofocus tracking and ' 'overwrite the current selection of reference tiles. ' 'Continue?', QMessageBox.Ok, QMessageBox.Cancel) if response == QMessageBox.Ok: self.lineEdit_refTiles.setText(str( self.gm.get_active_tile_key_list())[1:-1].replace('\'', '')) self.lineEdit_refTiles.setEnabled(False) else: # Revert to tracking mode 0: self.comboBox_trackingMode.blockSignals(True) self.comboBox_trackingMode.setCurrentIndex(0) self.comboBox_trackingMode.blockSignals(False) else: self.lineEdit_refTiles.setEnabled(True) def accept(self): error_str = '' if self.radioButton_useSmartSEM.isChecked(): self.af.set_method(0) elif self.radioButton_useHeuristic.isChecked(): self.af.set_method(1) elif self.radioButton_useTrackingOnly.isChecked(): self.af.set_method(2) success, tile_list = utils.validate_tile_list( self.lineEdit_refTiles.text()) if success: self.af.set_ref_tiles(tile_list) else: error_str = 'List of selected tiles badly formatted.' self.af.set_tracking_mode( self.comboBox_trackingMode.currentIndex()) max_diffs = [self.doubleSpinBox_maxWDDiff.value() / 1000000, self.doubleSpinBox_maxStigXDiff.value(), self.doubleSpinBox_maxStigYDiff.value()] self.af.set_max_wd_stig_diff(max_diffs) self.af.set_interval(self.spinBox_interval.value()) self.af.set_autostig_delay(self.spinBox_autostigDelay.value()) self.af.set_pixel_size(self.doubleSpinBox_pixelSize.value()) deltas = [self.doubleSpinBox_wdDiff.value() / 1000000, self.doubleSpinBox_stigXDiff.value(), self.doubleSpinBox_stigYDiff.value()] self.af.set_heuristic_deltas(deltas) self.af.set_heuristic_calibration( [self.doubleSpinBox_focusCalib.value(), self.doubleSpinBox_stigXCalib.value(), self.doubleSpinBox_stigYCalib.value()]) self.af.set_heuristic_rot_scale( [self.doubleSpinBox_stigRot.value(), self.doubleSpinBox_stigScale.value()]) if not error_str: super().accept() else: QMessageBox.warning(self, 'Error', error_str, QMessageBox.Ok) #------------------------------------------------------------------------------ class PlasmaCleanerDlg(QDialog): """Set parameters for the downstream asher, run it.""" def __init__(self, plc_): super().__init__() self.plc = plc_ loadUi('..\\gui\\plasma_cleaner_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('icon.ico')) self.setFixedSize(self.size()) self.show() try: self.spinBox_currentPower.setValue(self.plc.get_power()) self.spinBox_currentDuration.setValue(self.plc.get_duration()) except: QMessageBox.warning( self, 'Error', 'Could not read current settings from plasma cleaner.', QMessageBox.Ok) self.pushButton_setTargets.clicked.connect(self.set_target_parameters) self.pushButton_startCleaning.clicked.connect(self.start_cleaning) self.pushButton_abortCleaning.clicked.connect(self.abort_cleaning) def set_target_parameters(self): try: self.plc.set_power(self.spinBox_targetPower.value()) sleep(0.5) self.lineEdit_currentPower.setText(str(self.plc.get_power())) self.plc.set_duration(self.spinBox_targetDuration.value()) sleep(0.5) self.lineEdit_currentDuration.setText(str(self.plc.get_duration())) except: QMessageBox.warning( self, 'Error', 'An error occured when sending the target settings ' 'to the plasma cleaner.', QMessageBox.Ok) def start_cleaning(self): result = QMessageBox.warning( self, 'About to ignite plasma', 'Are you sure you want to run the plasma cleaner at ' + self.lineEdit_currentPower.text() + ' W for ' + self.lineEdit_currentDuration.text() + ' min?', QMessageBox.Ok | QMessageBox.Cancel) if result == QMessageBox.Ok: result = QMessageBox.warning( self, 'WARNING: Check vacuum Status', 'IMPORTANT: \nPlease confirm with "OK" that the SEM chamber ' 'is at HIGH VACUUM.\nIf not, ABORT!', QMessageBox.Ok | QMessageBox.Abort) if result == QMessageBox.Ok: self.pushButton_startCleaning.setEnabled(False) self.pushButton_abortCleaning.setEnabled(True) # TODO: Thread, show cleaning status. self.plc.perform_cleaning() def abort_cleaning(self): self.plc.abort_cleaning() self.pushButton_startCleaning.setEnabled(True) self.pushButton_startCleaning.setText( 'Start in-chamber cleaning process') self.pushButton_abortCleaning.setEnabled(False) #------------------------------------------------------------------------------ class ApproachDlg(QDialog): """Remove slices without imaging. User can specify how many slices and the cutting thickness. """ def __init__(self, microtome, main_window_queue, main_window_trigger): super().__init__() self.microtome = microtome self.main_window_queue = main_window_queue self.main_window_trigger = main_window_trigger loadUi('..\\gui\\approach_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() # Set up trigger and queue to update dialog GUI during approach: self.progress_trigger = Trigger() self.progress_trigger.s.connect(self.update_progress) self.finish_trigger = Trigger() self.finish_trigger.s.connect(self.finish_approach) self.spinBox_numberSlices.setRange(1, 100) self.spinBox_numberSlices.setSingleStep(1) self.spinBox_numberSlices.setValue(5) self.spinBox_numberSlices.valueChanged.connect(self.update_progress) self.pushButton_startApproach.clicked.connect(self.start_approach) self.pushButton_abortApproach.clicked.connect(self.abort_approach) self.pushButton_startApproach.setEnabled(True) self.pushButton_abortApproach.setEnabled(False) self.slice_counter = 0 self.approach_in_progress = False self.aborted = False self.z_mismatch = False self.max_slices = self.spinBox_numberSlices.value() self.update_progress() def add_to_log(self, msg): self.main_window_queue.put(utils.format_log_entry(msg)) self.main_window_trigger.s.emit() def update_progress(self): self.max_slices = self.spinBox_numberSlices.value() if self.slice_counter > 0: remaining_time_str = ( ' ' + str(int((self.max_slices - self.slice_counter)*12)) + ' seconds left') else: remaining_time_str = '' self.label_statusApproach.setText(str(self.slice_counter) + '/' + str(self.max_slices) + remaining_time_str) self.progressBar_approach.setValue( int(self.slice_counter/self.max_slices * 100)) def start_approach(self): self.pushButton_startApproach.setEnabled(False) self.pushButton_abortApproach.setEnabled(True) self.buttonBox.setEnabled(False) self.spinBox_thickness.setEnabled(False) self.spinBox_numberSlices.setEnabled(False) self.main_window_queue.put('APPROACH BUSY') self.main_window_trigger.s.emit() thread = threading.Thread(target=self.approach_thread) thread.start() def finish_approach(self): # Clear knife self.add_to_log('3VIEW: Clearing knife.') self.microtome.clear_knife() if self.microtome.get_error_state() > 0: self.add_to_log('CTRL: Error clearing knife.') self.microtome.reset_error_state() QMessageBox.warning(self, 'Error', 'Warning: Clearing the knife failed. ' 'Try to clear manually.', QMessageBox.Ok) self.main_window_queue.put('STATUS IDLE') self.main_window_trigger.s.emit() # Show message box to user and reset counter and progress bar: if not self.aborted: QMessageBox.information( self, 'Approach finished', str(self.max_slices) + ' slices have been cut successfully. ' 'Total sample depth removed: ' + str(self.max_slices * self.thickness / 1000) + ' µm.', QMessageBox.Ok) self.slice_counter = 0 self.update_progress() elif self.z_mismatch: # Show warning message if Z mismatch detected self.microtome.reset_error_state() QMessageBox.warning( self, 'Z position mismatch', 'The current Z position does not match the last known ' 'Z position in SBEMimage. Have you manually changed Z? ' 'Make sure that the Z position is correct before cutting.', QMessageBox.Ok) else: QMessageBox.warning( self, 'Approach aborted', str(self.slice_counter) + ' slices have been cut. ' 'Total sample depth removed: ' + str(self.slice_counter * self.thickness / 1000) + ' µm.', QMessageBox.Ok) self.slice_counter = 0 self.update_progress() self.pushButton_startApproach.setEnabled(True) self.pushButton_abortApproach.setEnabled(False) self.buttonBox.setEnabled(True) self.spinBox_thickness.setEnabled(True) self.spinBox_numberSlices.setEnabled(True) self.approach_in_progress = False def approach_thread(self): self.approach_in_progress = True self.aborted = False self.z_mismatch = False self.slice_counter = 0 self.max_slices = self.spinBox_numberSlices.value() self.thickness = self.spinBox_thickness.value() self.progress_trigger.s.emit() # Get current z position of stage: z_position = self.microtome.get_stage_z(wait_interval=1) if z_position is None or z_position < 0: # Try again: z_position = self.microtome.get_stage_z(wait_interval=2) if z_position is None or z_position < 0: self.add_to_log( 'CTRL: Error reading Z position. Approach aborted.') self.microtome.reset_error_state() self.aborted = True if self.microtome.get_error_state() == 206: self.microtome.reset_error_state() self.z_mismatch = True self.aborted = True self.add_to_log( 'CTRL: Z position mismatch. Approach aborted.') self.main_window_queue.put('UPDATE Z') self.main_window_trigger.s.emit() if not self.aborted: self.microtome.near_knife() self.add_to_log('3VIEW: Moving knife to near position.') if self.microtome.get_error_state() > 0: self.add_to_log( 'CTRL: Error moving knife to near position. ' 'Approach aborted.') self.aborted = True self.microtome.reset_error_state() # ====== Approach loop ========= while (self.slice_counter < self.max_slices) and not self.aborted: # Move to new z position: z_position = z_position + (self.thickness / 1000) self.add_to_log( '3VIEW: Move to new Z: ' + '{0:.3f}'.format(z_position)) self.microtome.move_stage_to_z(z_position) # Show new Z position in main window: self.main_window_queue.put('UPDATE Z') self.main_window_trigger.s.emit() # Check if there were microtome problems: if self.microtome.get_error_state() > 0: self.add_to_log( 'CTRL: Z stage problem detected. Approach aborted.') self.aborted = True self.microtome.reset_error_state() break self.add_to_log('3VIEW: Cutting in progress (' + str(self.thickness) + ' nm cutting thickness).') # Do the approach cut (cut, retract, in near position) self.microtome.do_full_approach_cut() sleep(self.microtome.get_full_cut_duration() - 5) if self.microtome.get_error_state() > 0: self.add_to_log( 'CTRL: Cutting problem detected. Approach aborted.') self.aborted = True self.microtome.reset_error_state() break else: self.add_to_log('3VIEW: Approach cut completed.') self.slice_counter += 1 # Update progress bar and slice counter self.progress_trigger.s.emit() # ====== End of approach loop ========= # Signal that thread is done: self.finish_trigger.s.emit() def abort_approach(self): self.aborted = True self.pushButton_abortApproach.setEnabled(False) def closeEvent(self, event): if not self.approach_in_progress: event.accept() else: event.ignore() def accept(self): if not self.approach_in_progress: super().accept() #------------------------------------------------------------------------------ class GrabFrameDlg(QDialog): """Acquires or saves a single frame from SmartSEM.""" def __init__(self, config, sem, main_window_queue, main_window_trigger): super().__init__() self.cfg = config self.sem = sem self.main_window_queue = main_window_queue self.main_window_trigger = main_window_trigger self.finish_trigger = Trigger() self.finish_trigger.s.connect(self.scan_complete) loadUi('..\\gui\\grab_frame_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() timestamp = str(datetime.datetime.now()) # Remove some characters from timestap to get valid file name: timestamp = timestamp[:19].translate({ord(c): None for c in ' :-.'}) self.file_name = 'image_' + timestamp self.lineEdit_filename.setText(self.file_name) frame_size, pixel_size, dwell_time = self.sem.get_grab_settings() store_res_list = [ '%d × %d' % (res[0], res[1]) for res in self.sem.STORE_RES] self.comboBox_frameSize.addItems(store_res_list) self.comboBox_frameSize.setCurrentIndex(frame_size) self.doubleSpinBox_pixelSize.setValue(pixel_size) self.comboBox_dwellTime.addItems(map(str, self.sem.DWELL_TIME)) self.comboBox_dwellTime.setCurrentIndex( self.sem.DWELL_TIME.index(dwell_time)) self.pushButton_scan.clicked.connect(self.scan_frame) self.pushButton_save.clicked.connect(self.save_frame) def scan_frame(self): """Scan and save a single frame using the current grab settings.""" self.file_name = self.lineEdit_filename.text() # Save and apply grab settings: selected_dwell_time = self.sem.DWELL_TIME[ self.comboBox_dwellTime.currentIndex()] self.sem.set_grab_settings(self.comboBox_frameSize.currentIndex(), self.doubleSpinBox_pixelSize.value(), selected_dwell_time) self.sem.apply_grab_settings() self.pushButton_scan.setText('Wait') self.pushButton_scan.setEnabled(False) self.pushButton_save.setEnabled(False) QApplication.processEvents() thread = threading.Thread(target=self.perform_scan) thread.start() def perform_scan(self): """Acquire a new frame. Executed in a thread because it may take some time and GUI should not freeze. """ self.scan_success = self.sem.acquire_frame( self.cfg['acq']['base_dir'] + '\\' + self.file_name + '.tif') self.finish_trigger.s.emit() def scan_complete(self): """This function is called when the scan is complete. Reset the GUI and show result of grab command. """ self.pushButton_scan.setText('Scan and grab') self.pushButton_scan.setEnabled(True) self.pushButton_save.setEnabled(True) if self.scan_success: self.add_to_log('CTRL: Single frame acquired by user.') QMessageBox.information( self, 'Frame acquired', 'The image was acquired and saved as ' + self.file_name + '.tif in the current base directory.', QMessageBox.Ok) else: QMessageBox.warning( self, 'Error', 'An error ocurred while attempting to acquire the frame: ' + self.sem.get_error_cause(), QMessageBox.Ok) self.sem.reset_error_state() def save_frame(self): """Save the image currently visible in SmartSEM.""" self.file_name = self.lineEdit_filename.text() success = self.sem.save_frame(os.path.join( self.cfg['acq']['base_dir'], self.file_name + '.tif')) if success: self.add_to_log('CTRL: Single frame saved by user.') QMessageBox.information( self, 'Frame saved', 'The current image shown in SmartSEM was saved as ' + self.file_name + '.tif in the current base directory.', QMessageBox.Ok) else: QMessageBox.warning( self, 'Error', 'An error ocurred while attempting to save the current ' 'SmarSEM image: ' + self.sem.get_error_cause(), QMessageBox.Ok) self.sem.reset_error_state() def add_to_log(self, msg): """Use trigger and queue to add an entry to the main log.""" self.main_window_queue.put(utils.format_log_entry(msg)) self.main_window_trigger.s.emit() #------------------------------------------------------------------------------ class EHTDlg(QDialog): """Show EHT status and let user switch beam on or off.""" def __init__(self, sem): super().__init__() self.sem = sem loadUi('..\\gui\\eht_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.pushButton_on.clicked.connect(self.turn_on) self.pushButton_off.clicked.connect(self.turn_off) self.update_status() def update_status(self): if self.sem.is_eht_on(): pal = QPalette(self.label_EHTStatus.palette()) pal.setColor(QPalette.WindowText, QColor(Qt.red)) self.label_EHTStatus.setPalette(pal) self.label_EHTStatus.setText('ON') self.pushButton_on.setEnabled(False) self.pushButton_off.setEnabled(True) else: pal = QPalette(self.label_EHTStatus.palette()) pal.setColor(QPalette.WindowText, QColor(Qt.black)) self.label_EHTStatus.setPalette(pal) self.label_EHTStatus.setText('OFF') self.pushButton_on.setEnabled(True) self.pushButton_off.setEnabled(False) def turn_on(self): self.pushButton_on.setEnabled(False) self.pushButton_on.setText('Wait') thread = threading.Thread(target=self.send_on_cmd_and_wait) thread.start() def turn_off(self): self.pushButton_off.setEnabled(False) self.pushButton_off.setText('Wait') QApplication.processEvents() thread = threading.Thread(target=self.send_off_cmd_and_wait) thread.start() def send_on_cmd_and_wait(self): self.sem.turn_eht_on() max_wait_time = 15 while not self.sem.is_eht_on() and max_wait_time > 0: sleep(1) max_wait_time -= 1 self.pushButton_on.setText('ON') self.update_status() def send_off_cmd_and_wait(self): self.sem.turn_eht_off() max_wait_time = 15 while not self.sem.is_eht_off() and max_wait_time > 0: sleep(1) max_wait_time -= 1 self.pushButton_off.setText('OFF') self.update_status() #------------------------------------------------------------------------------ class FTSetParamsDlg(QDialog): """Read working distance and stigmation parameters from user input or from SmartSEM for setting WD/STIG for individual tiles/OVs in focus tool. """ def __init__(self, sem, current_wd, current_stig_x, current_stig_y, simulation_mode=False): super().__init__() self.sem = sem loadUi('..\\gui\\focus_tool_set_params_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() if simulation_mode: self.pushButton_getFromSmartSEM.setEnabled(False) self.pushButton_getFromSmartSEM.clicked.connect(self.get_from_sem) if current_wd is not None: self.doubleSpinBox_currentFocus.setValue(1000 * current_wd) else: self.doubleSpinBox_currentFocus.setValue(0) if current_stig_x is not None: self.doubleSpinBox_currentStigX.setValue(current_stig_x) else: self.doubleSpinBox_currentStigX.setValue(0) if current_stig_y is not None: self.doubleSpinBox_currentStigY.setValue(current_stig_y) else: self.doubleSpinBox_currentStigY.setValue(0) def get_from_sem(self): self.doubleSpinBox_currentFocus.setValue(1000 * self.sem.get_wd()) self.doubleSpinBox_currentStigX.setValue(self.sem.get_stig_x()) self.doubleSpinBox_currentStigY.setValue(self.sem.get_stig_y()) def return_params(self): return (self.new_wd, self.new_stig_x, self.new_stig_y) def accept(self): self.new_wd = self.doubleSpinBox_currentFocus.value() / 1000 self.new_stig_x = self.doubleSpinBox_currentStigX.value() self.new_stig_y = self.doubleSpinBox_currentStigY.value() super().accept() #------------------------------------------------------------------------------ class FTMoveDlg(QDialog): """Move the stage to the selected tile or OV position.""" def __init__(self, microtome, coordinate_system, grid_manager, grid_number, tile_number, ov_number): super().__init__() self.microtome = microtome self.cs = coordinate_system self.gm = grid_manager self.ov_number = ov_number self.grid_number = grid_number self.tile_number = tile_number self.error = False self.finish_trigger = Trigger() self.finish_trigger.s.connect(self.move_completed) loadUi('..\\gui\\focus_tool_move_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.pushButton_move.clicked.connect(self.start_move) if ov_number >= 0: self.label_moveTarget.setText('OV ' + str(ov_number)) elif (grid_number >= 0) and (tile_number >= 0): self.label_moveTarget.setText( 'Grid: %d, Tile: %d' % (grid_number, tile_number)) def start_move(self): self.error = False self.pushButton_move.setText('Busy... please wait.') self.pushButton_move.setEnabled(False) thread = threading.Thread(target=self.move_and_wait) thread.start() def move_and_wait(self): # Load target coordinates if self.ov_number >= 0: stage_x, stage_y = self.cs.get_ov_centre_s(self.ov_number) elif self.tile_number >= 0: stage_x, stage_y = self.gm.get_tile_coordinates_s( self.grid_number, self.tile_number) # Now move the stage self.microtome.move_stage_to_xy((stage_x, stage_y)) if self.microtome.get_error_state() > 0: self.error = True self.microtome.reset_error_state() # Signal that move complete self.finish_trigger.s.emit() def move_completed(self): if self.error: QMessageBox.warning(self, 'Error', 'An error was detected during the move. ' 'Please try again.', QMessageBox.Ok) else: QMessageBox.information(self, 'Move complete', 'The stage has been moved to the selected position. ' 'The Viewport will be updated after pressing OK.', QMessageBox.Ok) super().accept() # Enable button again: self.pushButton_move.setText('Move again') self.pushButton_move.setEnabled(True) #------------------------------------------------------------------------------ class MotorTestDlg(QDialog): """Perform a random-walk-like XYZ motor test. Experimental, only for testing/debugging. Only works with a microtome for now.""" def __init__(self, cfg, microtome, main_window_queue, main_window_trigger): super().__init__() self.cfg = cfg self.microtome = microtome self.main_window_queue = main_window_queue self.main_window_trigger = main_window_trigger loadUi('..\\gui\\motor_test_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() # Set up trigger and queue to update dialog GUI during approach: self.progress_trigger = Trigger() self.progress_trigger.s.connect(self.update_progress) self.finish_trigger = Trigger() self.finish_trigger.s.connect(self.test_finished) self.spinBox_duration.setRange(1, 9999) self.spinBox_duration.setSingleStep(10) self.spinBox_duration.setValue(10) self.pushButton_startTest.clicked.connect(self.start_random_walk) self.pushButton_abortTest.clicked.connect(self.abort_random_walk) self.pushButton_startTest.setEnabled(True) self.pushButton_abortTest.setEnabled(False) self.test_in_progress = False self.start_time = None def add_to_log(self, msg): self.main_window_queue.put(utils.format_log_entry(msg)) self.main_window_trigger.s.emit() def update_progress(self): if self.start_time is not None: elapsed_time = time() - self.start_time if elapsed_time > self.duration * 60: self.test_in_progress = False self.progressBar.setValue(100) else: self.progressBar.setValue( int(elapsed_time/(self.duration * 60) * 100)) def start_random_walk(self): self.aborted = False self.start_z = self.microtome.get_stage_z() if self.start_z is not None: self.pushButton_startTest.setEnabled(False) self.pushButton_abortTest.setEnabled(True) self.buttonBox.setEnabled(False) self.spinBox_duration.setEnabled(False) self.progressBar.setValue(0) thread = threading.Thread(target=self.random_walk_thread) thread.start() else: self.microtome.reset_error_state() QMessageBox.warning(self, 'Error', 'Could not read current z stage position', QMessageBox.Ok) def abort_random_walk(self): self.aborted = True self.test_in_progress = False def test_finished(self): self.add_to_log('3VIEW: Motor test finished.') self.add_to_log('3VIEW: Moving back to starting z position.') # Safe mode must be set to false because diff likely > 200 nm self.microtome.move_stage_to_z(self.start_z, safe_mode=False) if self.microtome.get_error_state() > 0: self.microtome.reset_error_state() QMessageBox.warning( self, 'Error', 'Error moving stage back to starting position. Please ' 'check the current z coordinate before (re)starting a stack.', QMessageBox.Ok) if self.aborted: QMessageBox.information( self, 'Aborted', 'Motor test was aborted by user.' + '\nPlease make sure that z coordinate is back at starting ' 'position of ' + str(self.start_z) + '.', QMessageBox.Ok) else: QMessageBox.information( self, 'Test complete', 'Motor test complete.\nA total of ' + str(self.number_tests) + ' xyz moves were performed.\n' 'Number of errors: ' + str(self.number_errors) + '\nPlease make sure that z coordinate is back at starting ' 'position of ' + str(self.start_z) + '.', QMessageBox.Ok) self.pushButton_startTest.setEnabled(True) self.pushButton_abortTest.setEnabled(False) self.buttonBox.setEnabled(True) self.spinBox_duration.setEnabled(True) self.test_in_progress = False def random_walk_thread(self): self.test_in_progress = True self.duration = self.spinBox_duration.value() self.start_time = time() self.progress_trigger.s.emit() self.number_tests = 0 self.number_errors = 0 current_x, current_y = 0, 0 current_z = self.start_z # Open log file: logfile = open(self.cfg['acq']['base_dir'] + '\\motor_test_log.txt', 'w', buffering=1) while self.test_in_progress: # Start 'random' walk if self.number_tests % 10 == 0: dist = 300 # longer move every 10th cycle else: dist = 50 current_x += (random() - 0.5) * dist current_y += (random() - 0.5) * dist if self.number_tests % 2 == 0: current_z += (random() - 0.5) * 0.2 else: current_z += 0.025 if current_z < 0: current_z = 0 # If end of permissable range is reached, go back to starting point if (abs(current_x) > 600 or abs(current_y) > 600 or current_z > 600): current_x, current_y = 0, 0 current_z = self.start_z logfile.write('{0:.3f}, '.format(current_x) + '{0:.3f}, '.format(current_y) + '{0:.3f}'.format(current_z) + '\n') self.microtome.move_stage_to_xy((current_x, current_y)) if self.microtome.get_error_state() > 0: self.number_errors += 1 logfile.write('ERROR DURING XY MOVE: ' + self.microtome.get_error_cause() + '\n') self.microtome.reset_error_state() else: self.microtome.move_stage_to_z(current_z, safe_mode=False) if self.microtome.get_error_state() > 0: self.number_errors += 1 logfile.write('ERROR DURING Z MOVE: ' + self.microtome.get_error_cause() + '\n') self.microtome.reset_error_state() else: logfile.write('OK\n') self.number_tests += 1 self.progress_trigger.s.emit() logfile.write('NUMBER OF ERRORS: ' + str(self.number_errors)) logfile.close() # Signal that thread is done: self.finish_trigger.s.emit() def abort_test(self): self.aborted = True self.pushButton_abortTest.setEnabled(False) def closeEvent(self, event): if not self.test_in_progress: event.accept() else: event.ignore() def accept(self): if not self.approach_in_progress: super().accept() #------------------------------------------------------------------------------ class StubOVDlg(QDialog): """Acquire a stub overview mosaic image. The user can specify the location in stage coordinates and the size of the mosaic. """ def __init__(self, position, size_selector, base_dir, slice_counter, sem, stage, ovm, cs, main_window_queue, main_window_trigger): super().__init__() loadUi('..\\gui\\stub_ov_dlg.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.setFixedSize(self.size()) self.show() self.base_dir = base_dir self.slice_counter = slice_counter self.sem = sem self.stage = stage self.ovm = ovm self.cs = cs self.main_window_queue = main_window_queue self.main_window_trigger = main_window_trigger # Set up trigger and queue to update dialog GUI during approach: self.acq_thread_trigger = Trigger() self.acq_thread_trigger.s.connect(self.process_thread_signal) self.acq_thread_queue = Queue() self.abort_queue = Queue() self.acq_in_progress = False self.pushButton_acquire.clicked.connect(self.acquire_stub_ov) self.pushButton_abort.clicked.connect(self.abort) self.spinBox_X.setValue(position[0]) self.spinBox_Y.setValue(position[1]) self.size_selector = size_selector self.size_list = [] self.durations = [] for i in range(7): # Show available mosaic sizes and the corresponding estimated # durations in min rows, cols = ovm.STUB_OV_SIZE[i][0], ovm.STUB_OV_SIZE[i][1] width = int((cols * ovm.STUB_OV_FRAME_WIDTH - (cols-1) * ovm.STUB_OV_OVERLAP) * ovm.STUB_OV_PIXEL_SIZE / 1000) height = int((rows * ovm.STUB_OV_FRAME_HEIGHT - (rows-1) * ovm.STUB_OV_OVERLAP) * ovm.STUB_OV_PIXEL_SIZE / 1000) time = int(round((rows * cols * 10 + 20) / 60)) self.size_list.append(str(width) + ' µm × ' + str(height) + ' µm') self.durations.append('Up to ' + str(time) + ' min') # Grid size selection: self.comboBox_sizeSelector.addItems(self.size_list) self.comboBox_sizeSelector.setCurrentIndex(self.size_selector) self.comboBox_sizeSelector.currentIndexChanged.connect( self.update_duration) self.label_duration.setText(self.durations[2]) self.previous_centre = self.cs.get_stub_ov_centre_s() self.previous_origin = self.cs.get_stub_ov_origin_s() self.previous_size_selector = self.ovm.get_stub_ov_size_selector() def process_thread_signal(self): """Process commands from the queue when a trigger signal occurs while the acquisition of the stub overview is running. """ msg = self.acq_thread_queue.get() if msg == 'UPDATE STAGEPOS': self.show_new_stage_pos() elif msg[:15] == 'UPDATE PROGRESS': percentage = int(msg[15:]) self.progressBar.setValue(percentage) elif msg == 'STUB OV SUCCESS': self.main_window_queue.put('STUB OV SUCCESS') self.main_window_trigger.s.emit() self.pushButton_acquire.setEnabled(True) self.pushButton_abort.setEnabled(False) self.buttonBox.setEnabled(True) self.spinBox_X.setEnabled(True) self.spinBox_Y.setEnabled(True) self.comboBox_sizeSelector.setEnabled(True) QMessageBox.information( self, 'Stub Overview acquisition complete', 'The stub overview was completed successfully.', QMessageBox.Ok) self.acq_in_progress = False elif msg == 'STUB OV FAILURE': self.main_window_queue.put('STUB OV FAILURE') self.main_window_trigger.s.emit() # Restore previous origin: self.cs.set_stub_ov_origin_s(self.previous_origin) self.cs.set_stub_ov_centre_s(self.previous_centre) self.ovm.set_stub_ov_size_selector(self.previous_size_selector) QMessageBox.warning( self, 'Error during stub overview acquisition', 'An error occurred during the acquisition of the stub ' 'overview mosaic. The most likely cause are incorrect ' 'settings of the stage X/Y motor ranges or speeds. Home ' 'the stage and check whether the range limits specified ' 'in SBEMimage are correct.', QMessageBox.Ok) self.acq_in_progress = False self.close() elif msg == 'STUB OV ABORT': self.main_window_queue.put('STATUS IDLE') self.main_window_trigger.s.emit() # Restore previous origin: self.cs.set_stub_ov_origin_s(self.previous_origin) self.cs.set_stub_ov_centre_s(self.previous_centre) self.ovm.set_stub_ov_size_selector(self.previous_size_selector) QMessageBox.information( self, 'Stub Overview acquisition aborted', 'The stub overview acquisition was aborted.', QMessageBox.Ok) self.acq_in_progress = False self.close() def update_duration(self): self.label_duration.setText(self.durations[ self.comboBox_sizeSelector.currentIndex()]) def show_new_stage_pos(self): self.main_window_queue.put('UPDATE XY') self.main_window_trigger.s.emit() def add_to_log(self, msg): self.main_window_queue.put(utils.format_log_entry(msg)) self.main_window_trigger.s.emit() def acquire_stub_ov(self): """Acquire the stub overview. Acquisition routine runs in a thread. """ # Start acquisition only if EHT is on: if self.sem.is_eht_on(): self.acq_in_progress = True # Save previous stub OV origin in case user aborts acq: position = (self.spinBox_X.value(), self.spinBox_Y.value()) size_selector = self.comboBox_sizeSelector.currentIndex() self.add_to_log( 'CTRL: User-requested acquisition of stub OV mosaic started.') self.pushButton_acquire.setEnabled(False) self.pushButton_abort.setEnabled(True) self.buttonBox.setEnabled(False) self.spinBox_X.setEnabled(False) self.spinBox_Y.setEnabled(False) self.comboBox_sizeSelector.setEnabled(False) self.progressBar.setValue(0) self.main_window_queue.put('STUB OV BUSY') self.main_window_trigger.s.emit() QApplication.processEvents() stub_acq_thread = threading.Thread( target=acq_func.acquire_stub_ov, args=(self.base_dir, self.slice_counter, self.sem, self.stage, position, size_selector, self.ovm, self.cs, self.acq_thread_queue, self.acq_thread_trigger, self.abort_queue,)) stub_acq_thread.start() else: QMessageBox.warning( self, 'EHT off', 'EHT / high voltage is off. Please turn ' 'it on before starting the acquisition.', QMessageBox.Ok) def abort(self): if self.abort_queue.empty(): self.abort_queue.put('ABORT') self.pushButton_abort.setEnabled(False) def closeEvent(self, event): if not self.acq_in_progress: event.accept() else: event.ignore() #------------------------------------------------------------------------------ class AboutBox(QDialog): """Show the About dialog box with info about SBEMimage and the current version and release date. """ def __init__(self, VERSION): super().__init__() loadUi('..\\gui\\about_box.ui', self) self.setWindowModality(Qt.ApplicationModal) self.setWindowIcon(QIcon('..\\img\\icon_16px.ico')) self.label_version.setText('Version ' + VERSION) self.labelIcon.setPixmap(QPixmap('..\\img\\logo.png')) self.setFixedSize(self.size()) self.show()
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 29937, 1275, 9166, 9166, 9166, 9166, 4936, 2751, 13, 29937, 259, 317, 29933, 12665, 3027, 29892, 1147, 29889, 29871, 29906, 29889, 29900, 13, 29937, 259, 7255, 23493, 2761, 7047, 363, 7797, 2908, 29899, 2161, 11966, 9200, 1557, 2270, 13, 29937, 259, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29947, 29899, 29906, 29900, 29896, 29929, 529, 5813, 29958, 8907, 363, 3457, 27067, 936, 10550, 29892, 4886, 295, 29889, 13, 29937, 259, 910, 7047, 338, 7794, 21144, 1090, 278, 4958, 310, 278, 341, 1806, 19245, 29889, 13, 29937, 259, 2823, 365, 2965, 1430, 1660, 29889, 3945, 297, 278, 2060, 3876, 4138, 29889, 13, 29937, 1275, 9166, 9166, 9166, 9166, 4936, 2751, 13, 13, 15945, 29908, 4013, 3883, 3743, 599, 7928, 5417, 1213, 15945, 13, 13, 5215, 2897, 13, 5215, 337, 13, 5215, 1347, 13, 5215, 3244, 292, 13, 5215, 12865, 13, 5215, 13149, 13, 5215, 4390, 13, 5215, 2854, 4097, 13, 5215, 7274, 13, 5215, 528, 4422, 13, 13, 3166, 4036, 1053, 4036, 13, 3166, 931, 1053, 8709, 29892, 931, 13, 3166, 12725, 29918, 5269, 1053, 12725, 29918, 5269, 13, 3166, 5844, 1053, 472, 273, 29892, 18074, 2273, 13, 3166, 9521, 1053, 5462, 434, 13, 3166, 349, 6227, 1053, 7084, 13, 3166, 2071, 3027, 29889, 601, 1053, 527, 949, 13, 3166, 2071, 3027, 29889, 14394, 1053, 6036, 29918, 3286, 18411, 13, 5215, 12655, 408, 7442, 13, 3166, 527, 1727, 29918, 29881, 615, 1053, 13962, 13, 3166, 14319, 1445, 1053, 796, 666, 2283, 13, 13, 3166, 10772, 17303, 29945, 29889, 29884, 293, 1053, 2254, 29965, 29875, 13, 3166, 10772, 17303, 29945, 29889, 17303, 9203, 1053, 14705, 29892, 660, 2061, 29892, 660, 3505, 29892, 11451, 17915, 10140, 284, 13, 3166, 10772, 17303, 29945, 29889, 17303, 28707, 1053, 660, 29925, 861, 1958, 29892, 660, 12492, 29892, 660, 29925, 26456, 29892, 660, 3306, 29892, 660, 9824, 13, 3166, 10772, 17303, 29945, 29889, 17303, 8801, 29879, 1053, 660, 4873, 29892, 660, 7647, 29892, 660, 3728, 3313, 29892, 320, 13, 462, 9651, 660, 2283, 7647, 29892, 660, 3542, 6103, 29892, 660, 7647, 3125, 3313, 13, 13, 5215, 3667, 29879, 13, 5215, 1274, 29939, 29918, 9891, 13, 13, 1990, 1605, 3567, 29898, 29984, 2061, 1125, 13, 1678, 9995, 7281, 7182, 363, 13271, 14839, 515, 2629, 2734, 9717, 1213, 15945, 13, 1678, 269, 353, 11451, 17915, 10140, 284, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 12782, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 29909, 808, 278, 1404, 304, 1831, 263, 5285, 934, 29889, 450, 9251, 1304, 13, 539, 5285, 338, 544, 968, 781, 287, 297, 278, 1051, 11109, 29889, 960, 694, 9251, 1304, 13, 539, 5285, 1476, 29892, 671, 2322, 29889, 2172, 29889, 960, 4660, 29889, 4130, 947, 451, 4864, 29892, 13, 539, 1510, 9177, 2643, 3800, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 478, 1001, 13381, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 2917, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 1643, 29918, 3259, 29889, 12038, 877, 6594, 525, 718, 478, 1001, 13381, 29897, 13, 4706, 1583, 29889, 1643, 12492, 29889, 842, 29925, 861, 1958, 29898, 29984, 29925, 861, 1958, 877, 636, 1966, 2492, 1966, 14569, 29889, 2732, 8785, 13, 4706, 1583, 29889, 1643, 29918, 22942, 29889, 12038, 877, 29966, 29874, 2822, 543, 991, 597, 3292, 29889, 510, 29914, 1744, 12665, 3027, 1013, 29915, 13, 462, 462, 259, 525, 991, 597, 3292, 29889, 510, 29914, 1744, 12665, 3027, 829, 29874, 29958, 1495, 13, 4706, 1583, 29889, 1643, 29918, 22942, 29889, 842, 6585, 25865, 6595, 29879, 29898, 5574, 29897, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 370, 441, 353, 7700, 13, 4706, 396, 6977, 5987, 278, 1051, 11109, 411, 5923, 869, 2172, 2066, 13, 4706, 297, 361, 488, 29918, 1761, 353, 5159, 13, 4706, 363, 934, 297, 2897, 29889, 1761, 3972, 877, 636, 1966, 16859, 29374, 13, 9651, 565, 934, 29889, 1975, 2541, 12839, 2172, 29374, 13, 18884, 297, 361, 488, 29918, 1761, 29889, 4397, 29898, 1445, 29897, 13, 4706, 1583, 29889, 1761, 8801, 29918, 1445, 1761, 29889, 1202, 6913, 29898, 262, 361, 488, 29918, 1761, 29897, 13, 4706, 396, 8449, 869, 2172, 934, 471, 1304, 9251, 29973, 5399, 297, 4660, 29889, 4130, 13, 4706, 565, 2897, 29889, 2084, 29889, 275, 1445, 877, 636, 1966, 16859, 1966, 4882, 29889, 4130, 29374, 13, 9651, 4660, 29918, 1445, 353, 1722, 877, 636, 1966, 16859, 1966, 4882, 29889, 4130, 742, 525, 29878, 1495, 13, 9651, 1833, 29918, 262, 361, 488, 353, 4660, 29918, 1445, 29889, 949, 1220, 580, 13, 9651, 4660, 29918, 1445, 29889, 5358, 580, 13, 9651, 1018, 29901, 13, 18884, 1833, 29918, 667, 29918, 3880, 353, 1583, 29889, 1761, 8801, 29918, 1445, 1761, 29889, 2886, 6913, 29898, 13, 462, 1678, 1833, 29918, 262, 361, 488, 29892, 14705, 29889, 9652, 1252, 23617, 9601, 29900, 29962, 13, 18884, 1583, 29889, 1761, 8801, 29918, 1445, 1761, 29889, 842, 7583, 2001, 29898, 4230, 29918, 667, 29918, 3880, 29897, 13, 9651, 5174, 29901, 13, 18884, 396, 960, 278, 934, 18694, 297, 4660, 29889, 4130, 947, 451, 1863, 29892, 13, 18884, 396, 1831, 2322, 29889, 2172, 29889, 13, 18884, 396, 910, 7928, 338, 2000, 515, 317, 29933, 12665, 3027, 29889, 2272, 871, 565, 2322, 29889, 2172, 13, 18884, 396, 338, 1476, 297, 274, 16434, 3884, 29889, 13, 18884, 2322, 29918, 667, 353, 1583, 29889, 1761, 8801, 29918, 1445, 1761, 29889, 2886, 6913, 29898, 13, 462, 1678, 525, 4381, 29889, 2172, 742, 14705, 29889, 9652, 1252, 23617, 9601, 29900, 29962, 13, 18884, 1583, 29889, 1761, 8801, 29918, 1445, 1761, 29889, 842, 7583, 2001, 29898, 4381, 29918, 667, 29897, 13, 4706, 1683, 29901, 13, 9651, 396, 960, 4660, 29889, 4130, 947, 451, 4864, 29892, 278, 1824, 8095, 287, 470, 263, 1473, 13, 9651, 396, 2777, 338, 2734, 29889, 17440, 263, 9177, 322, 1831, 2322, 29889, 2172, 13, 9651, 2322, 29918, 667, 353, 1583, 29889, 1761, 8801, 29918, 1445, 1761, 29889, 2886, 6913, 29898, 13, 18884, 525, 4381, 29889, 2172, 742, 14705, 29889, 9652, 1252, 23617, 9601, 29900, 29962, 13, 9651, 1583, 29889, 1761, 8801, 29918, 1445, 1761, 29889, 842, 7583, 2001, 29898, 4381, 29918, 667, 29897, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 26604, 17809, 29901, 6781, 1161, 470, 916, 317, 29933, 12665, 3027, 2777, 525, 13, 18884, 525, 21094, 742, 13, 18884, 525, 29956, 25614, 29901, 317, 29933, 12665, 3027, 5692, 304, 505, 8095, 287, 2645, 278, 525, 13, 18884, 525, 24957, 1065, 29892, 470, 727, 338, 2307, 1790, 2777, 310, 525, 13, 18884, 525, 1744, 12665, 3027, 2734, 29889, 3529, 2845, 3802, 278, 916, 2777, 525, 13, 18884, 525, 272, 27450, 445, 697, 7790, 29876, 29905, 29876, 29915, 13, 18884, 525, 3644, 366, 526, 10715, 292, 263, 5096, 1156, 263, 8095, 29892, 3765, 3198, 525, 13, 18884, 525, 497, 6055, 1434, 10715, 292, 29991, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 13, 1678, 822, 12560, 29898, 1311, 1125, 13, 4706, 1583, 29889, 370, 441, 353, 5852, 13, 4706, 2428, 2141, 276, 622, 580, 13, 13, 1678, 822, 679, 29918, 2172, 29918, 1445, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 29889, 370, 441, 29901, 13, 9651, 736, 1583, 29889, 1761, 8801, 29918, 1445, 1761, 29889, 3784, 2001, 2141, 726, 580, 13, 4706, 1683, 29901, 13, 9651, 736, 525, 370, 441, 29915, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 16913, 3991, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 11371, 1857, 5285, 297, 263, 716, 2295, 934, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 7620, 29918, 2917, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 1220, 6103, 29918, 16859, 17020, 29889, 12038, 877, 1495, 13, 4706, 1583, 29889, 1445, 29918, 978, 353, 6213, 13, 13, 1678, 822, 679, 29918, 1445, 29918, 978, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 1445, 29918, 978, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 396, 22108, 8162, 297, 934, 1024, 411, 23400, 29883, 2361, 29889, 13, 4706, 1728, 29918, 22854, 353, 1583, 29889, 1220, 6103, 29918, 16859, 17020, 29889, 726, 2141, 6506, 877, 13420, 22868, 1495, 13, 4706, 1583, 29889, 1220, 6103, 29918, 16859, 17020, 29889, 12038, 29898, 14037, 29918, 22854, 29897, 13, 4706, 396, 5399, 3692, 4890, 297, 1024, 526, 21905, 29889, 13, 4706, 396, 4803, 1122, 451, 26556, 376, 4381, 29889, 2172, 29908, 13, 4706, 1072, 353, 337, 29889, 12198, 877, 29985, 29961, 29874, 29899, 25265, 29899, 29999, 29900, 29899, 29929, 29918, 29899, 10062, 29938, 1495, 13, 4706, 565, 313, 1727, 29889, 4352, 29898, 1311, 29889, 1220, 6103, 29918, 16859, 17020, 29889, 726, 3101, 13, 9651, 322, 1583, 29889, 1220, 6103, 29918, 16859, 17020, 29889, 726, 2141, 13609, 2804, 525, 4381, 29374, 13, 9651, 1583, 29889, 1445, 29918, 978, 353, 1583, 29889, 1220, 6103, 29918, 16859, 17020, 29889, 726, 580, 718, 15300, 2172, 29915, 13, 9651, 2428, 2141, 16044, 580, 13, 4706, 1683, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 2392, 742, 13, 18884, 525, 1170, 3743, 19752, 4215, 4890, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 3725, 4345, 7409, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 12024, 1404, 1735, 3725, 29924, 22913, 6055, 313, 5182, 382, 3912, 29892, 4055, 300, 22913, 1857, 467, 13, 539, 17440, 1857, 1985, 5418, 322, 380, 335, 29885, 362, 29889, 13, 1678, 9995, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3031, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 12846, 353, 3031, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 12846, 29918, 11027, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 396, 17440, 1857, 3646, 6055, 29901, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29923, 3912, 29889, 842, 1917, 29898, 1311, 29889, 12846, 29889, 657, 29918, 29872, 400, 3101, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 915, 314, 7583, 29889, 842, 1917, 29898, 1311, 29889, 12846, 29889, 657, 29918, 915, 314, 29918, 3784, 3101, 13, 4706, 396, 17440, 1857, 8569, 29914, 303, 335, 29901, 13, 4706, 1583, 29889, 1220, 6103, 29918, 3784, 20560, 29889, 12038, 29898, 13, 9651, 22372, 29900, 29901, 29889, 29953, 29888, 29913, 4286, 4830, 29898, 12846, 29889, 657, 29918, 9970, 580, 334, 29871, 29896, 29900, 29900, 29900, 876, 13, 4706, 1583, 29889, 1220, 6103, 29918, 3784, 855, 335, 29990, 29889, 12038, 877, 29912, 29900, 29901, 29889, 29953, 29888, 29913, 4286, 4830, 29898, 12846, 29889, 657, 29918, 303, 335, 29918, 29916, 22130, 13, 4706, 1583, 29889, 1220, 6103, 29918, 3784, 855, 335, 29979, 29889, 12038, 877, 29912, 29900, 29901, 29889, 29953, 29888, 29913, 4286, 4830, 29898, 12846, 29889, 657, 29918, 303, 335, 29918, 29891, 22130, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 1583, 29889, 12846, 29889, 842, 29918, 29872, 400, 29898, 1311, 29889, 8896, 5592, 262, 3313, 29918, 29923, 3912, 29889, 1767, 3101, 13, 4706, 1583, 29889, 12846, 29889, 842, 29918, 915, 314, 29918, 3784, 29898, 1311, 29889, 1028, 262, 3313, 29918, 915, 314, 7583, 29889, 1767, 3101, 13, 4706, 2428, 2141, 16044, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 20140, 29873, 608, 9585, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 3253, 5143, 7408, 10992, 13071, 322, 4480, 7292, 1156, 7408, 16229, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 9200, 29873, 608, 29892, 3031, 29892, 9200, 29873, 608, 29918, 4925, 29922, 5574, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 29885, 2357, 29873, 608, 353, 9200, 29873, 608, 13, 4706, 1583, 29889, 12846, 353, 3031, 13, 4706, 1583, 29889, 29885, 2357, 15135, 29918, 4925, 353, 9200, 29873, 608, 29918, 4925, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 29885, 2357, 29873, 608, 29918, 11027, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 396, 960, 9200, 29873, 608, 451, 6136, 29892, 1735, 9262, 3858, 29901, 13, 4706, 565, 9200, 29873, 608, 29918, 4925, 29901, 13, 9651, 1583, 29889, 1643, 29918, 8391, 27276, 29889, 12038, 877, 29924, 2357, 29873, 608, 7408, 6136, 29889, 1495, 13, 9651, 396, 17440, 6055, 393, 508, 871, 367, 3939, 297, 27692, 29901, 13, 9651, 1583, 29889, 1220, 6103, 29918, 3959, 1607, 29907, 329, 26539, 29889, 12038, 29898, 13, 18884, 851, 29898, 1311, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 3959, 1607, 29918, 7582, 29918, 19322, 22130, 13, 9651, 1583, 29889, 1220, 6103, 29918, 3959, 1607, 8015, 1461, 26539, 29889, 12038, 29898, 13, 18884, 851, 29898, 1311, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 3959, 1607, 29918, 2267, 1461, 29918, 19322, 22130, 13, 9651, 1583, 29889, 3198, 3313, 29918, 1509, 29949, 1557, 453, 362, 29889, 842, 17817, 29898, 13, 18884, 1583, 29889, 29885, 2357, 29873, 608, 29889, 275, 29918, 14174, 453, 362, 29918, 17590, 3101, 13, 9651, 396, 19215, 1735, 519, 297, 14839, 29901, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 10685, 12506, 29889, 842, 1917, 29898, 13, 18884, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 19190, 29918, 11631, 29918, 10685, 29918, 19207, 3101, 13, 9651, 1857, 29918, 14817, 272, 29918, 12514, 353, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 14817, 272, 29918, 12514, 580, 13, 9651, 1857, 29918, 1052, 26218, 353, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 19190, 29918, 1052, 26218, 580, 13, 9651, 6210, 29918, 29916, 29892, 6210, 29918, 29891, 353, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 14817, 272, 29918, 5965, 5779, 580, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 1643, 29918, 8391, 27276, 29889, 12038, 877, 1660, 29924, 7408, 6136, 29889, 1495, 13, 9651, 396, 17440, 7408, 13071, 29889, 2216, 3863, 519, 363, 3725, 29924, 29889, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 19190, 7976, 29990, 29889, 842, 7976, 12539, 29898, 29906, 29900, 29900, 29900, 29900, 29900, 29897, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 19190, 7976, 29979, 29889, 842, 7976, 12539, 29898, 29906, 29900, 29900, 29900, 29900, 29900, 29897, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 19190, 8140, 29990, 29889, 842, 7976, 12539, 29898, 29900, 29897, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 19190, 8140, 29979, 29889, 842, 7976, 12539, 29898, 29900, 29897, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 19190, 8140, 29990, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 19190, 7976, 29990, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 19190, 8140, 29979, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 19190, 7976, 29979, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1857, 29918, 14817, 272, 29918, 12514, 353, 1583, 29889, 12846, 29889, 657, 29918, 14817, 272, 29918, 12514, 580, 13, 9651, 1857, 29918, 1052, 26218, 353, 1583, 29889, 12846, 29889, 657, 29918, 19190, 29918, 1052, 26218, 580, 13, 9651, 6210, 29918, 29916, 29892, 6210, 29918, 29891, 353, 1583, 29889, 12846, 29889, 657, 29918, 14817, 272, 29918, 5965, 5779, 580, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 10685, 12506, 29889, 842, 1917, 29898, 13, 18884, 1583, 29889, 12846, 29889, 657, 29918, 19190, 29918, 11631, 29918, 10685, 29918, 19207, 3101, 13, 4706, 396, 7704, 1857, 1208, 26218, 29901, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 19190, 8140, 29990, 29889, 842, 1917, 29898, 3784, 29918, 14817, 272, 29918, 12514, 29961, 29900, 2314, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 19190, 7976, 29990, 29889, 842, 1917, 29898, 3784, 29918, 14817, 272, 29918, 12514, 29961, 29896, 2314, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 19190, 8140, 29979, 29889, 842, 1917, 29898, 3784, 29918, 14817, 272, 29918, 12514, 29961, 29906, 2314, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 19190, 7976, 29979, 29889, 842, 1917, 29898, 3784, 29918, 14817, 272, 29918, 12514, 29961, 29941, 2314, 13, 4706, 396, 5901, 6055, 393, 508, 367, 3939, 297, 317, 29933, 12665, 3027, 29892, 13, 4706, 396, 541, 297, 263, 1422, 7928, 313, 7856, 26218, 29928, 3820, 1125, 13, 4706, 1583, 29889, 1220, 6103, 29918, 7052, 29943, 7168, 29990, 29889, 12038, 29898, 710, 29898, 3784, 29918, 1052, 26218, 29961, 29900, 12622, 13, 4706, 1583, 29889, 1220, 6103, 29918, 7052, 29943, 7168, 29979, 29889, 12038, 29898, 710, 29898, 3784, 29918, 1052, 26218, 29961, 29896, 12622, 13, 4706, 1583, 29889, 1220, 6103, 29918, 5450, 362, 29990, 29889, 12038, 29898, 710, 29898, 3784, 29918, 1052, 26218, 29961, 29906, 12622, 13, 4706, 1583, 29889, 1220, 6103, 29918, 5450, 362, 29979, 29889, 12038, 29898, 710, 29898, 3784, 29918, 1052, 26218, 29961, 29941, 12622, 13, 4706, 396, 16843, 961, 5779, 29901, 13, 4706, 1583, 29889, 1220, 6103, 29918, 19322, 29990, 29889, 12038, 29898, 710, 29898, 19322, 29918, 29916, 876, 13, 4706, 1583, 29889, 1220, 6103, 29918, 19322, 29979, 29889, 12038, 29898, 710, 29898, 19322, 29918, 29891, 876, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 29885, 2357, 15135, 29918, 4925, 29901, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 842, 29918, 19190, 29918, 11631, 29918, 10685, 29918, 19207, 29898, 13, 18884, 1583, 29889, 8896, 5592, 262, 3313, 29918, 10685, 12506, 29889, 1767, 3101, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 842, 29918, 14817, 272, 29918, 12514, 4197, 13, 18884, 1583, 29889, 1028, 262, 3313, 29918, 19190, 8140, 29990, 29889, 1767, 3285, 1583, 29889, 1028, 262, 3313, 29918, 19190, 7976, 29990, 29889, 1767, 3285, 13, 18884, 1583, 29889, 1028, 262, 3313, 29918, 19190, 8140, 29979, 29889, 1767, 3285, 1583, 29889, 1028, 262, 3313, 29918, 19190, 7976, 29979, 29889, 1767, 580, 2314, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 12846, 29889, 842, 29918, 19190, 29918, 11631, 29918, 10685, 29918, 19207, 29898, 13, 18884, 1583, 29889, 8896, 5592, 262, 3313, 29918, 10685, 12506, 29889, 1767, 3101, 13, 4706, 2428, 2141, 16044, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 12553, 1648, 9585, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 3253, 5143, 6055, 363, 278, 29466, 1648, 9200, 29873, 608, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 9200, 29873, 608, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 29885, 2357, 29873, 608, 353, 9200, 29873, 608, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 29895, 271, 1648, 29918, 11027, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 13, 4706, 396, 3789, 701, 23353, 2011, 11764, 13, 4706, 1583, 29889, 510, 17801, 29918, 637, 10378, 29889, 1202, 6913, 29898, 13239, 29889, 657, 29918, 15550, 29918, 4011, 3101, 13, 4706, 1583, 29889, 510, 17801, 29918, 637, 10378, 29889, 842, 7583, 3220, 29898, 29900, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 637, 10378, 29889, 3784, 3220, 7590, 29889, 6915, 29898, 13, 9651, 1583, 29889, 276, 6915, 29897, 13, 13, 4706, 1583, 29889, 4990, 29918, 9965, 29918, 4882, 580, 13, 4706, 1583, 29889, 4990, 29918, 3784, 29918, 11027, 580, 13, 13, 1678, 822, 337, 6915, 29898, 1311, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 2479, 29918, 9965, 29918, 4882, 29898, 1311, 1125, 13, 4706, 396, 7704, 2643, 297, 7928, 3692, 470, 451, 29466, 1648, 338, 6631, 29889, 13, 4706, 5112, 353, 660, 29925, 26456, 29898, 1311, 29889, 1643, 29918, 9965, 5709, 29889, 29886, 26456, 3101, 13, 4706, 565, 1583, 29889, 29885, 2357, 29873, 608, 29889, 18045, 29901, 13, 9651, 396, 4803, 2654, 12384, 565, 451, 6631, 13, 9651, 5112, 29889, 842, 3306, 29898, 29984, 29925, 26456, 29889, 5907, 1626, 29892, 660, 3306, 29898, 17303, 29889, 8517, 876, 13, 9651, 1583, 29889, 1643, 29918, 9965, 5709, 29889, 842, 29925, 26456, 29898, 7830, 29897, 13, 9651, 1583, 29889, 1643, 29918, 9965, 5709, 29889, 12038, 877, 29895, 271, 1648, 9200, 29873, 608, 6631, 29889, 1495, 13, 4706, 1683, 29901, 13, 9651, 5112, 29889, 842, 3306, 29898, 29984, 29925, 26456, 29889, 5907, 1626, 29892, 660, 3306, 29898, 17303, 29889, 1127, 876, 13, 9651, 1583, 29889, 1643, 29918, 9965, 5709, 29889, 842, 29925, 26456, 29898, 7830, 29897, 13, 9651, 1583, 29889, 1643, 29918, 9965, 5709, 29889, 12038, 877, 29895, 271, 1648, 9200, 29873, 608, 338, 451, 6631, 29889, 1495, 13, 13, 1678, 822, 2479, 29918, 3784, 29918, 11027, 29898, 1311, 1125, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 3959, 1607, 29907, 329, 26539, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 3959, 1607, 29918, 7582, 29918, 19322, 3101, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 3959, 1607, 29943, 579, 26539, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 3959, 1607, 29918, 11255, 29918, 19322, 3101, 13, 4706, 5700, 29918, 7165, 29918, 2962, 29892, 5700, 29918, 7165, 29918, 355, 353, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 7582, 29918, 7165, 580, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 7582, 5907, 4763, 29889, 842, 1917, 29898, 7582, 29918, 7165, 29918, 2962, 29897, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 7582, 5907, 5044, 29889, 842, 1917, 29898, 7582, 29918, 7165, 29918, 355, 29897, 13, 13, 4706, 1583, 29889, 3198, 3313, 29918, 1509, 29949, 1557, 453, 362, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 275, 29918, 14174, 453, 362, 29918, 17590, 3101, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 14174, 6833, 2830, 1151, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 14174, 453, 362, 29918, 314, 2830, 1151, 3101, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 14174, 23923, 23860, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 14174, 453, 362, 29918, 10745, 23860, 3101, 13, 4706, 565, 451, 1583, 29889, 29885, 2357, 29873, 608, 29889, 3601, 2785, 29918, 8513, 322, 1583, 29889, 29885, 2357, 29873, 608, 29889, 18045, 29901, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29920, 8003, 29889, 842, 1917, 29898, 1311, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 19190, 29918, 29920, 3101, 13, 4706, 503, 29918, 3881, 29918, 1195, 29892, 503, 29918, 3881, 29918, 3317, 353, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 19190, 29918, 29920, 29918, 3881, 580, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29920, 6069, 8140, 29889, 842, 1917, 29898, 29920, 29918, 3881, 29918, 1195, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29920, 6069, 7976, 29889, 842, 1917, 29898, 29920, 29918, 3881, 29918, 3317, 29897, 13, 4706, 396, 4649, 13857, 2821, 749, 338, 6087, 297, 23432, 3297, 690, 29892, 2479, 297, 20710, 456, 300, 690, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 2267, 1461, 18759, 749, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 2267, 1461, 29918, 8551, 749, 580, 847, 29871, 29896, 29900, 29900, 29900, 29897, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 716, 29918, 7582, 29918, 19322, 353, 1583, 29889, 1028, 262, 3313, 29918, 3959, 1607, 29907, 329, 26539, 29889, 1767, 580, 13, 4706, 716, 29918, 11255, 29918, 19322, 353, 1583, 29889, 1028, 262, 3313, 29918, 3959, 1607, 29943, 579, 26539, 29889, 1767, 580, 13, 4706, 716, 29918, 7582, 29918, 2962, 353, 1583, 29889, 1028, 262, 3313, 29918, 7582, 5907, 4763, 29889, 1767, 580, 13, 4706, 716, 29918, 7582, 29918, 355, 353, 1583, 29889, 1028, 262, 3313, 29918, 7582, 5907, 5044, 29889, 1767, 580, 13, 4706, 716, 29918, 14174, 29918, 10745, 23860, 353, 1583, 29889, 1028, 262, 3313, 29918, 14174, 23923, 23860, 29889, 1767, 580, 13, 4706, 716, 29918, 14174, 29918, 314, 2830, 1151, 353, 1583, 29889, 1028, 262, 3313, 29918, 14174, 6833, 2830, 1151, 29889, 995, 580, 13, 4706, 396, 3240, 1461, 29918, 8551, 749, 297, 23432, 3297, 690, 13, 4706, 716, 29918, 2267, 1461, 29918, 8551, 749, 353, 313, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 2267, 1461, 18759, 749, 29889, 1767, 580, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 4706, 396, 2796, 2602, 310, 5700, 3474, 1818, 367, 7968, 1135, 1369, 2602, 29901, 13, 4706, 565, 716, 29918, 7582, 29918, 355, 529, 716, 29918, 7582, 29918, 2962, 29901, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 842, 29918, 3959, 1607, 29918, 7582, 29918, 19322, 29898, 1482, 29918, 7582, 29918, 19322, 29897, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 842, 29918, 3959, 1607, 29918, 11255, 29918, 19322, 29898, 1482, 29918, 11255, 29918, 19322, 29897, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 842, 29918, 7582, 29918, 7165, 29898, 1482, 29918, 7582, 29918, 2962, 29892, 716, 29918, 7582, 29918, 355, 29897, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 842, 29918, 14174, 453, 362, 29918, 17590, 29898, 13, 18884, 1583, 29889, 3198, 3313, 29918, 1509, 29949, 1557, 453, 362, 29889, 275, 17817, 3101, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 842, 29918, 14174, 453, 362, 29918, 10745, 23860, 29898, 1482, 29918, 14174, 29918, 10745, 23860, 29897, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 842, 29918, 14174, 453, 362, 29918, 314, 2830, 1151, 29898, 1482, 29918, 14174, 29918, 314, 2830, 1151, 29897, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 842, 29918, 2267, 1461, 29918, 8551, 749, 29898, 1482, 29918, 2267, 1461, 29918, 8551, 749, 29897, 13, 9651, 2428, 2141, 16044, 580, 13, 4706, 1683, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 13919, 1881, 742, 13, 18884, 525, 1576, 1369, 2602, 310, 278, 28967, 3474, 1818, 367, 7200, 525, 13, 18884, 525, 27603, 278, 1095, 2602, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 24906, 7856, 26218, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 7856, 4626, 403, 278, 7408, 313, 5450, 362, 322, 21640, 29897, 322, 278, 10992, 961, 5779, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2295, 29892, 7408, 29892, 3031, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 3188, 29918, 3972, 353, 2295, 1839, 562, 29939, 16215, 3188, 29918, 3972, 2033, 13, 4706, 1583, 29889, 19190, 353, 7408, 13, 4706, 1583, 29889, 12846, 353, 3031, 13, 4706, 1583, 29889, 3784, 29918, 29872, 400, 353, 1583, 29889, 12846, 29889, 657, 29918, 29872, 400, 580, 13, 4706, 1583, 29889, 29916, 29918, 10889, 29918, 8111, 353, 518, 29900, 29892, 29871, 29900, 29962, 13, 4706, 1583, 29889, 29891, 29918, 10889, 29918, 8111, 353, 518, 29900, 29892, 29871, 29900, 29962, 13, 4706, 1583, 29889, 4951, 728, 29918, 21001, 353, 1605, 3567, 580, 13, 4706, 1583, 29889, 4951, 728, 29918, 21001, 29889, 29879, 29889, 6915, 29898, 1311, 29889, 5014, 29918, 9902, 29897, 13, 4706, 1583, 29889, 5504, 29918, 28667, 29918, 21001, 353, 1605, 3567, 580, 13, 4706, 1583, 29889, 5504, 29918, 28667, 29918, 21001, 29889, 29879, 29889, 6915, 29898, 1311, 29889, 5504, 29918, 1188, 29897, 13, 4706, 1583, 29889, 28667, 29918, 11739, 353, 6213, 13, 4706, 1583, 29889, 8262, 29891, 353, 7700, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 19190, 29918, 1052, 26218, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 2936, 29918, 18098, 29896, 29889, 842, 29925, 861, 1958, 29898, 29984, 29925, 861, 1958, 877, 636, 1966, 2492, 1966, 2936, 29889, 2732, 8785, 13, 4706, 1583, 29889, 2936, 29918, 18098, 29906, 29889, 842, 29925, 861, 1958, 29898, 29984, 29925, 861, 1958, 877, 636, 1966, 2492, 1966, 2936, 29889, 2732, 8785, 13, 4706, 1583, 29889, 1220, 6103, 29918, 29923, 3912, 29889, 12038, 877, 29912, 29900, 29901, 29889, 29906, 29888, 29913, 4286, 4830, 29898, 1311, 29889, 3784, 29918, 29872, 400, 876, 13, 4706, 8636, 353, 1583, 29889, 19190, 29889, 657, 29918, 19190, 29918, 1052, 26218, 580, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 19190, 17185, 29943, 7168, 29990, 29889, 842, 1917, 29898, 7529, 29961, 29900, 2314, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 19190, 17185, 29943, 7168, 29979, 29889, 842, 1917, 29898, 7529, 29961, 29896, 2314, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 19190, 21281, 362, 29990, 29889, 842, 1917, 29898, 7529, 29961, 29906, 2314, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 19190, 21281, 362, 29979, 29889, 842, 1917, 29898, 7529, 29961, 29941, 2314, 13, 4706, 6210, 29918, 29916, 29892, 6210, 29918, 29891, 353, 1583, 29889, 19190, 29889, 657, 29918, 14817, 272, 29918, 5965, 5779, 580, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 14817, 272, 26539, 29990, 29889, 842, 1917, 29898, 19322, 29918, 29916, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 14817, 272, 26539, 29979, 29889, 842, 1917, 29898, 19322, 29918, 29891, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29881, 5872, 2481, 29889, 1202, 6913, 29898, 1958, 29898, 710, 29892, 1583, 29889, 12846, 29889, 29928, 8851, 2208, 29918, 15307, 876, 13, 4706, 1583, 29889, 510, 17801, 29918, 29881, 5872, 2481, 29889, 842, 7583, 3220, 29898, 29946, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 5113, 29889, 1202, 6913, 18959, 326, 1727, 29918, 29881, 615, 742, 525, 808, 3027, 11287, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2962, 2940, 10644, 29939, 29889, 3808, 287, 29889, 6915, 29898, 13, 9651, 1583, 29889, 2962, 29918, 1052, 26218, 29918, 771, 26600, 29897, 13, 4706, 565, 2295, 1839, 9675, 16215, 3601, 2785, 29918, 8513, 2033, 1275, 525, 5574, 2396, 13, 9651, 1583, 29889, 5910, 3125, 29918, 2962, 2940, 10644, 29939, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 8477, 7856, 26218, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 4294, 29918, 8477, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 28667, 27276, 29889, 3808, 287, 29889, 6915, 29898, 13, 9651, 1583, 29889, 15807, 403, 29918, 19190, 29918, 16744, 29918, 3166, 29918, 1792, 29918, 2080, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 28667, 29924, 327, 272, 29889, 3808, 287, 29889, 6915, 29898, 13, 9651, 1583, 29889, 15807, 403, 29918, 14817, 272, 29918, 16744, 29897, 13, 13, 1678, 822, 8147, 29918, 14817, 272, 29918, 16744, 29898, 1311, 1125, 13, 4706, 9995, 27065, 403, 278, 10992, 961, 5779, 515, 278, 14385, 20398, 4944, 13, 965, 491, 278, 1404, 322, 1235, 1404, 9659, 278, 716, 961, 5779, 1213, 15945, 13, 4706, 14385, 29918, 29916, 353, 1583, 29889, 8896, 5592, 262, 3313, 29918, 19708, 29990, 29889, 1767, 580, 13, 4706, 14385, 29918, 29891, 353, 1583, 29889, 8896, 5592, 262, 3313, 29918, 19708, 29979, 29889, 1767, 580, 13, 4706, 10992, 29918, 19322, 29918, 29916, 353, 29871, 29896, 29900, 29900, 29900, 847, 14385, 29918, 29916, 13, 4706, 10992, 29918, 19322, 29918, 29891, 353, 29871, 29896, 29900, 29900, 29900, 847, 14385, 29918, 29891, 13, 4706, 1404, 29918, 16957, 353, 660, 3728, 3313, 29889, 19678, 29898, 13, 9651, 1583, 29892, 525, 27065, 630, 4128, 742, 13, 9651, 525, 12191, 3583, 29876, 29924, 327, 272, 6210, 1060, 29901, 525, 718, 22372, 29900, 29901, 29889, 29906, 29888, 29913, 4286, 4830, 29898, 14817, 272, 29918, 19322, 29918, 29916, 29897, 13, 9651, 718, 525, 10436, 29876, 29924, 327, 272, 6210, 612, 29901, 525, 718, 22372, 29900, 29901, 29889, 29906, 29888, 29913, 4286, 4830, 29898, 14817, 272, 29918, 19322, 29918, 29891, 29897, 13, 9651, 718, 11297, 29876, 29905, 29876, 6132, 366, 864, 304, 671, 1438, 1819, 29973, 742, 13, 9651, 660, 3728, 3313, 29889, 20434, 891, 660, 3728, 3313, 29889, 19420, 29897, 13, 4706, 565, 1404, 29918, 16957, 1275, 660, 3728, 3313, 29889, 20434, 29901, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 14817, 272, 26539, 29990, 29889, 842, 1917, 29898, 14817, 272, 29918, 19322, 29918, 29916, 29897, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 14817, 272, 26539, 29979, 29889, 842, 1917, 29898, 14817, 272, 29918, 19322, 29918, 29891, 29897, 13, 13, 1678, 822, 1510, 29918, 8477, 29898, 1311, 1125, 13, 4706, 660, 3728, 3313, 29889, 19678, 29898, 13, 9651, 1583, 29892, 525, 27276, 1208, 26218, 8792, 742, 13, 9651, 525, 3644, 366, 2828, 373, 376, 4763, 18428, 1208, 26218, 613, 525, 13, 9651, 525, 17536, 4558, 674, 367, 16692, 322, 7160, 297, 278, 1857, 2967, 525, 13, 9651, 525, 12322, 29901, 1369, 29889, 29873, 361, 29892, 9500, 29918, 29916, 29889, 29873, 361, 29892, 9500, 29918, 29891, 29889, 29873, 361, 29889, 525, 13, 9651, 525, 3492, 508, 731, 278, 15526, 2159, 322, 24013, 931, 363, 1438, 4558, 322, 525, 13, 9651, 525, 6550, 1598, 920, 2215, 278, 7408, 881, 4337, 3412, 278, 1060, 322, 278, 612, 9685, 29889, 525, 13, 9651, 525, 1576, 1060, 29914, 29979, 16229, 1818, 367, 2319, 3307, 304, 2758, 777, 25457, 1546, 525, 13, 9651, 525, 1552, 1243, 4558, 29889, 450, 3515, 2159, 338, 731, 6336, 29889, 525, 13, 9651, 525, 9984, 1854, 393, 3829, 338, 7962, 297, 278, 4558, 29892, 322, 393, 278, 525, 13, 9651, 525, 915, 314, 338, 21309, 7790, 29876, 29915, 13, 9651, 525, 1576, 1857, 7408, 2602, 674, 367, 1304, 408, 278, 6257, 525, 13, 9651, 525, 3283, 29889, 450, 13622, 6257, 2602, 338, 278, 8442, 310, 278, 525, 13, 9651, 525, 19190, 313, 29900, 29892, 29871, 29900, 467, 29905, 29876, 29915, 13, 9651, 525, 29657, 12047, 1546, 278, 16692, 4558, 674, 367, 15712, 773, 525, 13, 9651, 525, 29874, 740, 515, 278, 4629, 3577, 313, 326, 1727, 29918, 29881, 615, 470, 2071, 3027, 467, 525, 13, 9651, 525, 9928, 793, 322, 6287, 13879, 674, 769, 367, 15712, 515, 1438, 525, 13, 9651, 525, 845, 17741, 7790, 29876, 29905, 29876, 29915, 13, 9651, 525, 2499, 725, 6703, 29892, 366, 508, 7522, 3867, 278, 15526, 528, 17741, 491, 525, 13, 9651, 525, 23261, 472, 278, 1208, 26218, 4558, 1369, 29889, 29873, 361, 29892, 9500, 29918, 29916, 29889, 29873, 361, 29892, 322, 525, 13, 9651, 525, 10889, 29918, 29891, 29889, 29873, 361, 322, 7540, 3864, 278, 4328, 313, 2541, 7084, 29967, 29892, 363, 525, 13, 9651, 525, 4773, 29897, 297, 278, 1060, 29979, 15526, 2602, 363, 777, 4682, 297, 278, 1967, 29889, 525, 13, 9651, 525, 4164, 373, 376, 27065, 403, 29908, 304, 8147, 278, 1208, 26218, 4128, 525, 13, 9651, 525, 3166, 1438, 528, 17741, 29889, 742, 13, 9651, 660, 3728, 3313, 29889, 20434, 29897, 13, 13, 1678, 822, 1369, 29918, 1052, 26218, 29918, 771, 26600, 29898, 1311, 1125, 13, 4706, 9995, 10644, 1548, 2211, 4558, 304, 367, 1304, 363, 278, 7408, 1208, 26218, 15945, 29908, 13, 4706, 396, 14402, 29901, 1059, 11415, 29991, 13, 4706, 8908, 353, 660, 3728, 3313, 29889, 19678, 29898, 13, 9651, 1583, 29892, 525, 4763, 1208, 26218, 8792, 742, 13, 9651, 525, 4013, 674, 1274, 1548, 2211, 4558, 322, 4078, 963, 297, 278, 1857, 2967, 525, 13, 9651, 525, 12322, 29901, 1369, 29889, 29873, 361, 29892, 9500, 29918, 29916, 29889, 29873, 361, 29892, 9500, 29918, 29891, 29889, 29873, 361, 29889, 525, 13, 9651, 525, 5015, 12425, 1818, 367, 7962, 297, 278, 4558, 29892, 322, 278, 22913, 1818, 367, 525, 13, 9651, 525, 29888, 542, 3880, 7790, 29876, 1576, 1857, 7408, 2602, 674, 367, 1304, 408, 278, 6257, 525, 13, 9651, 525, 3283, 29889, 450, 13622, 6257, 2602, 338, 278, 8442, 310, 278, 525, 13, 9651, 525, 19190, 313, 29900, 29892, 29871, 29900, 467, 3218, 793, 322, 6287, 13879, 674, 367, 15712, 515, 278, 525, 13, 9651, 525, 845, 17741, 1546, 278, 16692, 1243, 4558, 7790, 29876, 29915, 13, 9651, 525, 1184, 3947, 29973, 742, 13, 9651, 660, 3728, 3313, 29889, 20434, 891, 660, 3728, 3313, 29889, 19420, 29897, 13, 4706, 565, 8908, 1275, 660, 3728, 3313, 29889, 20434, 29901, 13, 9651, 396, 7704, 2767, 297, 1426, 1746, 29901, 13, 9651, 1583, 29889, 8262, 29891, 353, 5852, 13, 9651, 1583, 29889, 24595, 1626, 6103, 29918, 1052, 747, 3403, 29889, 842, 29925, 7420, 1626, 877, 10644, 339, 8491, 4558, 856, 1495, 13, 9651, 1583, 29889, 5910, 3125, 29918, 2962, 2940, 10644, 29939, 29889, 12038, 877, 16890, 29891, 1495, 13, 9651, 1583, 29889, 5910, 3125, 29918, 2962, 2940, 10644, 29939, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 5910, 3125, 29918, 28667, 27276, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 3244, 353, 3244, 292, 29889, 4899, 29898, 5182, 29922, 1311, 29889, 19190, 29918, 1052, 26218, 29918, 562, 29939, 29918, 7097, 29897, 13, 9651, 3244, 29889, 2962, 580, 13, 13, 1678, 822, 7408, 29918, 1052, 26218, 29918, 562, 29939, 29918, 7097, 29898, 1311, 1125, 13, 4706, 9995, 10644, 23493, 3244, 363, 2211, 4558, 1304, 363, 278, 7408, 1208, 26218, 29889, 13, 965, 12218, 6055, 526, 4343, 363, 1286, 29889, 15447, 694, 1059, 11415, 29889, 13, 965, 1060, 29979, 528, 17741, 526, 15712, 515, 4558, 29889, 13, 4706, 9995, 13, 4706, 9500, 353, 1583, 29889, 1028, 262, 3313, 29918, 10889, 29889, 1767, 580, 13, 4706, 15526, 29918, 2311, 353, 1583, 29889, 1028, 262, 3313, 29918, 29886, 861, 1379, 675, 29889, 1767, 580, 13, 4706, 24013, 29918, 2230, 353, 1583, 29889, 12846, 29889, 29928, 8851, 2208, 29918, 15307, 29961, 1311, 29889, 510, 17801, 29918, 29881, 5872, 2481, 29889, 3784, 3220, 580, 29962, 13, 4706, 396, 4803, 3515, 2159, 29871, 29946, 565, 3625, 29892, 6467, 29871, 29941, 29901, 13, 4706, 565, 7431, 29898, 1311, 29889, 12846, 29889, 1254, 29949, 1525, 29918, 15989, 29897, 1405, 29871, 29946, 29901, 13, 9651, 396, 4702, 1915, 13, 9651, 3515, 29918, 2311, 29918, 14357, 353, 29871, 29946, 13, 4706, 1683, 29901, 13, 9651, 396, 317, 2934, 13, 9651, 3515, 29918, 2311, 29918, 14357, 353, 29871, 29941, 13, 13, 4706, 1583, 29889, 12846, 29889, 7302, 29918, 2557, 29918, 11027, 29898, 13, 9651, 3515, 29918, 2311, 29918, 14357, 29892, 15526, 29918, 2311, 29892, 24013, 29918, 2230, 29897, 13, 13, 4706, 1369, 29918, 29916, 29892, 1369, 29918, 29891, 353, 1583, 29889, 19190, 29889, 657, 29918, 3594, 580, 13, 4706, 396, 3824, 1967, 29901, 13, 4706, 1583, 29889, 12846, 29889, 562, 1548, 29918, 2557, 29898, 1311, 29889, 3188, 29918, 3972, 718, 525, 1966, 2962, 29889, 29873, 361, 1495, 13, 4706, 396, 1060, 9500, 29901, 13, 4706, 1583, 29889, 19190, 29889, 11631, 29918, 517, 29918, 3594, 3552, 2962, 29918, 29916, 718, 9500, 29892, 1369, 29918, 29891, 876, 13, 4706, 396, 6440, 1967, 29901, 13, 4706, 1583, 29889, 12846, 29889, 562, 1548, 29918, 2557, 29898, 1311, 29889, 3188, 29918, 3972, 718, 525, 1966, 10889, 29918, 29916, 29889, 29873, 361, 1495, 13, 4706, 396, 612, 9500, 29901, 13, 4706, 1583, 29889, 19190, 29889, 11631, 29918, 517, 29918, 3594, 3552, 2962, 29918, 29916, 29892, 1369, 29918, 29891, 718, 9500, 876, 13, 4706, 396, 18008, 1967, 29901, 13, 4706, 1583, 29889, 12846, 29889, 562, 1548, 29918, 2557, 29898, 1311, 29889, 3188, 29918, 3972, 718, 525, 1966, 10889, 29918, 29891, 29889, 29873, 361, 1495, 13, 4706, 396, 7437, 304, 2847, 2602, 29901, 13, 4706, 1583, 29889, 19190, 29889, 11631, 29918, 517, 29918, 3594, 3552, 2962, 29918, 29916, 29892, 1369, 29918, 29891, 876, 13, 4706, 396, 7704, 297, 1480, 393, 17203, 3380, 29901, 13, 4706, 1583, 29889, 5504, 29918, 28667, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 4706, 396, 16012, 4558, 13, 4706, 1369, 29918, 2492, 353, 527, 949, 29898, 1311, 29889, 3188, 29918, 3972, 718, 525, 1966, 2962, 29889, 29873, 361, 742, 408, 29918, 21012, 29922, 5574, 29897, 13, 4706, 9500, 29918, 29916, 29918, 2492, 353, 527, 949, 29898, 1311, 29889, 3188, 29918, 3972, 718, 525, 1966, 10889, 29918, 29916, 29889, 29873, 361, 742, 408, 29918, 21012, 29922, 5574, 29897, 13, 4706, 9500, 29918, 29891, 29918, 2492, 353, 527, 949, 29898, 1311, 29889, 3188, 29918, 3972, 718, 525, 1966, 10889, 29918, 29891, 29889, 29873, 361, 742, 408, 29918, 21012, 29922, 5574, 29897, 13, 4706, 1583, 29889, 28667, 29918, 11739, 353, 6213, 13, 13, 4706, 1018, 29901, 13, 9651, 565, 1583, 29889, 510, 17801, 29918, 5113, 29889, 3784, 3220, 580, 1275, 29871, 29900, 29901, 29871, 396, 527, 1727, 29918, 29881, 615, 4629, 13, 18884, 396, 518, 1057, 29899, 29896, 29962, 304, 671, 921, 29892, 343, 29892, 503, 1797, 13, 18884, 921, 29918, 10889, 353, 13962, 29898, 13, 462, 1678, 1369, 29918, 2492, 29892, 9500, 29918, 29916, 29918, 2492, 29892, 4175, 29918, 29886, 29725, 29922, 29941, 29897, 1839, 29873, 2003, 2033, 29961, 1057, 29899, 29896, 29962, 13, 18884, 343, 29918, 10889, 353, 13962, 29898, 13, 462, 1678, 1369, 29918, 2492, 29892, 9500, 29918, 29891, 29918, 2492, 29892, 4175, 29918, 29886, 29725, 29922, 29941, 29897, 1839, 29873, 2003, 2033, 29961, 1057, 29899, 29896, 29962, 13, 9651, 1683, 29901, 29871, 396, 671, 2071, 3027, 29889, 9573, 29918, 3286, 18411, 13, 18884, 921, 29918, 10889, 353, 6036, 29918, 3286, 18411, 29898, 2962, 29918, 2492, 29892, 9500, 29918, 29916, 29918, 2492, 9601, 29900, 3816, 1057, 29899, 29896, 29962, 13, 18884, 343, 29918, 10889, 353, 6036, 29918, 3286, 18411, 29898, 2962, 29918, 2492, 29892, 9500, 29918, 29891, 29918, 2492, 9601, 29900, 3816, 1057, 29899, 29896, 29962, 13, 9651, 1583, 29889, 29916, 29918, 10889, 29918, 8111, 353, 518, 29916, 29918, 10889, 29961, 29900, 1402, 921, 29918, 10889, 29961, 29896, 5262, 13, 9651, 1583, 29889, 29891, 29918, 10889, 29918, 8111, 353, 518, 29891, 29918, 10889, 29961, 29900, 1402, 343, 29918, 10889, 29961, 29896, 5262, 13, 4706, 5174, 8960, 408, 321, 29901, 13, 9651, 1583, 29889, 28667, 29918, 11739, 353, 321, 13, 4706, 1583, 29889, 4951, 728, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 2767, 29918, 1188, 29898, 1311, 1125, 13, 4706, 1583, 29889, 24595, 1626, 6103, 29918, 1052, 747, 3403, 29889, 4397, 29925, 7420, 1626, 29898, 13, 9651, 525, 10454, 20602, 15526, 528, 17741, 856, 1495, 13, 13, 1678, 822, 1889, 29918, 9902, 29898, 1311, 1125, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2962, 2940, 10644, 29939, 29889, 12038, 877, 4763, 1495, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2962, 2940, 10644, 29939, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 28667, 27276, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 565, 1583, 29889, 28667, 29918, 11739, 338, 6213, 29901, 13, 9651, 396, 7704, 278, 12047, 297, 278, 18932, 322, 278, 10917, 1884, 267, 29901, 13, 9651, 1583, 29889, 24595, 1626, 6103, 29918, 1052, 747, 3403, 29889, 842, 29925, 7420, 1626, 29898, 13, 18884, 525, 29657, 29918, 29990, 29901, 15974, 29900, 29901, 29889, 29896, 29888, 1118, 426, 29896, 29901, 29889, 29896, 29888, 29913, 1402, 525, 13, 18884, 525, 29657, 29918, 29979, 29901, 15974, 29906, 29901, 29889, 29896, 29888, 1118, 426, 29941, 29901, 29889, 29896, 29888, 6525, 4286, 4830, 29898, 13, 18884, 334, 1311, 29889, 29916, 29918, 10889, 29918, 8111, 29892, 334, 1311, 29889, 29891, 29918, 10889, 29918, 8111, 876, 13, 9651, 396, 1976, 14977, 1819, 363, 278, 14839, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 29916, 29906, 29916, 29889, 842, 1917, 29898, 6897, 29898, 1311, 29889, 29916, 29918, 10889, 29918, 8111, 29961, 29900, 12622, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 29916, 29906, 29891, 29889, 842, 1917, 29898, 6897, 29898, 1311, 29889, 29916, 29918, 10889, 29918, 8111, 29961, 29896, 12622, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 29891, 29906, 29916, 29889, 842, 1917, 29898, 6897, 29898, 1311, 29889, 29891, 29918, 10889, 29918, 8111, 29961, 29900, 12622, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 29891, 29906, 29891, 29889, 842, 1917, 29898, 6897, 29898, 1311, 29889, 29891, 29918, 10889, 29918, 8111, 29961, 29896, 12622, 13, 9651, 396, 2567, 8147, 4128, 29901, 13, 9651, 1583, 29889, 15807, 403, 29918, 19190, 29918, 16744, 580, 13, 4706, 1683, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 2392, 742, 13, 18884, 525, 2744, 3682, 2179, 2955, 1550, 20602, 278, 5578, 800, 29901, 525, 13, 18884, 718, 851, 29898, 1311, 29889, 28667, 29918, 11739, 511, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 9651, 1583, 29889, 8262, 29891, 353, 7700, 13, 13, 1678, 822, 8147, 29918, 19190, 29918, 16744, 29898, 1311, 1125, 13, 4706, 9500, 353, 1583, 29889, 1028, 262, 3313, 29918, 10889, 29889, 1767, 580, 13, 4706, 15526, 29918, 2311, 353, 1583, 29889, 1028, 262, 3313, 29918, 29886, 861, 1379, 675, 29889, 1767, 580, 13, 4706, 396, 4803, 8380, 1819, 363, 1286, 29892, 14402, 29901, 23484, 277, 363, 278, 317, 2934, 7408, 13, 4706, 19471, 29918, 4419, 29892, 19471, 29918, 3594, 353, 313, 13, 9651, 6425, 29898, 1311, 29889, 29916, 29918, 10889, 29918, 8111, 29961, 29900, 11724, 6425, 29898, 1311, 29889, 29916, 29918, 10889, 29918, 8111, 29961, 29896, 12622, 13, 4706, 19471, 29918, 29891, 29916, 29892, 19471, 29918, 8071, 353, 313, 13, 9651, 6425, 29898, 1311, 29889, 29891, 29918, 10889, 29918, 8111, 29961, 29900, 11724, 6425, 29898, 1311, 29889, 29891, 29918, 10889, 29918, 8111, 29961, 29896, 12622, 13, 13, 4706, 396, 9664, 362, 23619, 29901, 13, 4706, 5731, 29918, 29916, 353, 472, 273, 29898, 4181, 29918, 3594, 29914, 4181, 29918, 4419, 29897, 13, 4706, 5731, 29918, 29891, 353, 472, 273, 29898, 4181, 29918, 29891, 29916, 29914, 4181, 29918, 8071, 29897, 13, 4706, 396, 2522, 744, 13879, 29901, 13, 4706, 6287, 29918, 29916, 353, 9500, 847, 313, 3676, 29898, 4181, 29918, 4419, 1068, 29906, 718, 19471, 29918, 3594, 1068, 29906, 29897, 334, 15526, 29918, 2311, 847, 29871, 29896, 29900, 29900, 29900, 29897, 13, 4706, 6287, 29918, 29891, 353, 9500, 847, 313, 3676, 29898, 4181, 29918, 29891, 29916, 1068, 29906, 718, 19471, 29918, 8071, 1068, 29906, 29897, 334, 15526, 29918, 2311, 847, 29871, 29896, 29900, 29900, 29900, 29897, 13, 13, 4706, 396, 8671, 22235, 13, 4706, 396, 921, 29918, 6897, 353, 7442, 29889, 29880, 979, 29887, 29889, 12324, 4197, 1311, 29889, 29916, 29918, 10889, 29918, 8111, 29961, 29900, 1402, 1583, 29889, 29916, 29918, 10889, 29918, 8111, 29961, 29896, 24960, 13, 4706, 396, 343, 29918, 6897, 353, 7442, 29889, 29880, 979, 29887, 29889, 12324, 4197, 1311, 29889, 29891, 29918, 10889, 29918, 8111, 29961, 29900, 1402, 1583, 29889, 29891, 29918, 10889, 29918, 8111, 29961, 29896, 24960, 13, 4706, 396, 5731, 29918, 29916, 29918, 1997, 353, 7442, 29889, 279, 617, 359, 29898, 10889, 334, 1583, 29889, 29916, 29918, 10889, 29918, 8111, 29961, 29900, 29962, 847, 313, 10889, 334, 921, 29918, 6897, 876, 13, 4706, 396, 5731, 29918, 29891, 29918, 1997, 353, 7442, 29889, 279, 617, 359, 29898, 10889, 334, 1583, 29889, 29891, 29918, 10889, 29918, 8111, 29961, 29896, 29962, 847, 313, 10889, 334, 343, 29918, 6897, 876, 13, 4706, 396, 14839, 2609, 4386, 8178, 1819, 13, 4706, 396, 565, 5731, 29918, 29916, 529, 29871, 29900, 29901, 13, 4706, 396, 1678, 5731, 29918, 29916, 4619, 29871, 29906, 334, 29871, 29941, 29889, 29896, 29946, 29896, 29945, 29929, 29906, 13, 4706, 396, 565, 5731, 29918, 29891, 529, 29871, 29900, 29901, 13, 4706, 396, 1678, 5731, 29918, 29891, 4619, 29871, 29906, 334, 29871, 29941, 29889, 29896, 29946, 29896, 29945, 29929, 29906, 13, 4706, 396, 2522, 744, 13879, 29901, 13, 4706, 396, 6287, 29918, 29916, 29918, 1997, 353, 9500, 847, 313, 29916, 29918, 6897, 334, 15526, 29918, 2311, 847, 29871, 29896, 29900, 29900, 29900, 29897, 13, 4706, 396, 6287, 29918, 29891, 29918, 1997, 353, 9500, 847, 313, 29891, 29918, 6897, 334, 15526, 29918, 2311, 847, 29871, 29896, 29900, 29900, 29900, 29897, 13, 13, 4706, 1583, 29889, 8262, 29891, 353, 7700, 13, 4706, 1404, 29918, 16957, 353, 660, 3728, 3313, 29889, 19678, 29898, 13, 9651, 1583, 29892, 525, 27065, 630, 4128, 742, 13, 9651, 525, 12191, 3583, 29876, 29915, 13, 9651, 718, 525, 17185, 7329, 1060, 29901, 525, 718, 22372, 29900, 29901, 29889, 29945, 29888, 29913, 4286, 4830, 29898, 7052, 29918, 29916, 29897, 13, 9651, 718, 525, 10436, 29876, 17185, 7329, 612, 29901, 525, 718, 22372, 29900, 29901, 29889, 29945, 29888, 29913, 4286, 4830, 29898, 7052, 29918, 29891, 29897, 13, 9651, 718, 11297, 29876, 21281, 362, 1060, 29901, 525, 718, 22372, 29900, 29901, 29889, 29945, 29888, 29913, 4286, 4830, 29898, 5450, 29918, 29916, 29897, 13, 9651, 718, 525, 10436, 29876, 21281, 362, 612, 29901, 525, 718, 22372, 29900, 29901, 29889, 29945, 29888, 29913, 4286, 4830, 29898, 5450, 29918, 29891, 29897, 13, 9651, 718, 11297, 29876, 29905, 29876, 6132, 366, 864, 304, 671, 1438, 1819, 29973, 742, 13, 9651, 660, 3728, 3313, 29889, 20434, 891, 660, 3728, 3313, 29889, 19420, 29897, 13, 4706, 565, 1404, 29918, 16957, 1275, 660, 3728, 3313, 29889, 20434, 29901, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 19190, 17185, 29943, 7168, 29990, 29889, 842, 1917, 29898, 7052, 29918, 29916, 29897, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 19190, 17185, 29943, 7168, 29979, 29889, 842, 1917, 29898, 7052, 29918, 29891, 29897, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 19190, 21281, 362, 29990, 29889, 842, 1917, 29898, 5450, 29918, 29916, 29897, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 19190, 21281, 362, 29979, 29889, 842, 1917, 29898, 5450, 29918, 29891, 29897, 13, 13, 1678, 822, 8147, 29918, 19190, 29918, 16744, 29918, 3166, 29918, 1792, 29918, 2080, 29898, 1311, 1125, 13, 4706, 9995, 27065, 403, 278, 13733, 23619, 322, 6287, 13879, 515, 278, 1404, 1881, 29889, 13, 965, 450, 1404, 8128, 278, 15526, 2602, 310, 738, 1203, 393, 508, 367, 13, 965, 15659, 297, 599, 2211, 16692, 1243, 4558, 29889, 3645, 445, 29892, 278, 1824, 13, 965, 3408, 1078, 278, 4328, 278, 1203, 471, 9500, 287, 297, 17036, 29892, 322, 278, 13, 965, 10696, 411, 3390, 304, 278, 921, 470, 343, 9685, 29889, 13, 4706, 9995, 13, 4706, 396, 349, 15711, 11909, 29901, 13, 4706, 921, 29896, 29916, 353, 1583, 29889, 1028, 262, 3313, 29918, 29916, 29896, 29916, 29889, 1767, 580, 13, 4706, 921, 29896, 29891, 353, 1583, 29889, 1028, 262, 3313, 29918, 29916, 29896, 29891, 29889, 1767, 580, 13, 4706, 921, 29906, 29916, 353, 1583, 29889, 1028, 262, 3313, 29918, 29916, 29906, 29916, 29889, 1767, 580, 13, 4706, 921, 29906, 29891, 353, 1583, 29889, 1028, 262, 3313, 29918, 29916, 29906, 29891, 29889, 1767, 580, 13, 4706, 343, 29896, 29916, 353, 1583, 29889, 1028, 262, 3313, 29918, 29891, 29896, 29916, 29889, 1767, 580, 13, 4706, 343, 29896, 29891, 353, 1583, 29889, 1028, 262, 3313, 29918, 29891, 29896, 29891, 29889, 1767, 580, 13, 4706, 343, 29906, 29916, 353, 1583, 29889, 1028, 262, 3313, 29918, 29891, 29906, 29916, 29889, 1767, 580, 13, 4706, 343, 29906, 29891, 353, 1583, 29889, 1028, 262, 3313, 29918, 29891, 29906, 29891, 29889, 1767, 580, 13, 13, 4706, 396, 6652, 2925, 297, 17036, 13, 4706, 19471, 29918, 4419, 353, 6425, 29898, 29916, 29896, 29916, 448, 921, 29906, 29916, 29897, 13, 4706, 19471, 29918, 3594, 353, 6425, 29898, 29916, 29896, 29891, 448, 921, 29906, 29891, 29897, 13, 4706, 19471, 29918, 29891, 29916, 353, 6425, 29898, 29891, 29896, 29916, 448, 343, 29906, 29916, 29897, 13, 4706, 19471, 29918, 8071, 353, 6425, 29898, 29891, 29896, 29891, 448, 343, 29906, 29891, 29897, 13, 4706, 565, 19471, 29918, 4419, 1275, 29871, 29900, 470, 19471, 29918, 8071, 1275, 29871, 29900, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 2392, 20602, 7408, 1208, 26218, 742, 13, 18884, 525, 12148, 1423, 596, 1881, 1819, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 24595, 1626, 6103, 29918, 1052, 747, 3403, 29889, 842, 29925, 7420, 1626, 29898, 13, 18884, 525, 15156, 15526, 528, 17741, 6790, 373, 278, 1492, 2625, 408, 1881, 856, 1495, 13, 9651, 1583, 29889, 29916, 29918, 10889, 29918, 8111, 353, 518, 4181, 29918, 4419, 29892, 19471, 29918, 3594, 29962, 13, 9651, 1583, 29889, 29891, 29918, 10889, 29918, 8111, 353, 518, 4181, 29918, 29891, 29916, 29892, 19471, 29918, 8071, 29962, 13, 9651, 1583, 29889, 15807, 403, 29918, 19190, 29918, 16744, 580, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 29889, 8262, 29891, 29901, 13, 9651, 7408, 29918, 7529, 353, 518, 13, 18884, 1583, 29889, 8896, 5592, 262, 3313, 29918, 19190, 17185, 29943, 7168, 29990, 29889, 1767, 3285, 13, 18884, 1583, 29889, 8896, 5592, 262, 3313, 29918, 19190, 17185, 29943, 7168, 29979, 29889, 1767, 3285, 13, 18884, 1583, 29889, 8896, 5592, 262, 3313, 29918, 19190, 21281, 362, 29990, 29889, 1767, 3285, 13, 18884, 1583, 29889, 8896, 5592, 262, 3313, 29918, 19190, 21281, 362, 29979, 29889, 1767, 580, 29962, 13, 9651, 1583, 29889, 19190, 29889, 842, 29918, 19190, 29918, 1052, 26218, 29898, 1311, 29889, 3784, 29918, 29872, 400, 29892, 7408, 29918, 7529, 29897, 13, 13, 9651, 2551, 353, 1583, 29889, 19190, 29889, 842, 29918, 14817, 272, 29918, 5965, 5779, 29898, 13, 18884, 1583, 29889, 8896, 5592, 262, 3313, 29918, 14817, 272, 26539, 29990, 29889, 1767, 3285, 13, 18884, 1583, 29889, 8896, 5592, 262, 3313, 29918, 14817, 272, 26539, 29979, 29889, 1767, 3101, 13, 13, 9651, 565, 451, 2551, 29901, 13, 18884, 660, 3728, 3313, 29889, 27392, 29898, 13, 462, 1678, 1583, 29892, 525, 2392, 13271, 10992, 961, 5779, 742, 13, 462, 1678, 525, 29924, 327, 272, 1208, 26218, 1033, 451, 367, 4784, 297, 27692, 2471, 29889, 742, 13, 462, 1678, 660, 3728, 3313, 29889, 20434, 29897, 13, 9651, 2428, 2141, 16044, 580, 13, 13, 1678, 822, 12560, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 29889, 8262, 29891, 29901, 13, 9651, 2428, 2141, 276, 622, 580, 13, 13, 1678, 822, 3802, 2624, 29898, 1311, 29892, 1741, 1125, 13, 4706, 565, 451, 1583, 29889, 8262, 29891, 29901, 13, 9651, 1741, 29889, 16044, 580, 13, 4706, 1683, 29901, 13, 9651, 1741, 29889, 17281, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 3561, 7856, 26218, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 7856, 4626, 403, 278, 9443, 1546, 9119, 2450, 322, 15526, 2159, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3031, 29892, 288, 6925, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 12846, 353, 3031, 13, 4706, 1583, 29889, 586, 29885, 353, 288, 6925, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 11082, 29918, 1052, 26218, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 1052, 26218, 29943, 7168, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 12846, 29889, 657, 29918, 11082, 29918, 1756, 29918, 2311, 29918, 19790, 3101, 13, 4706, 1583, 29889, 510, 17801, 29918, 2557, 6110, 29889, 1202, 6913, 18959, 29906, 29900, 29946, 29947, 742, 525, 29946, 29900, 29929, 29953, 11287, 13, 4706, 1583, 29889, 510, 17801, 29918, 2557, 6110, 29889, 842, 7583, 3220, 29898, 29896, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 15807, 403, 29889, 3808, 287, 29889, 6915, 29898, 13, 9651, 1583, 29889, 15807, 403, 29918, 1052, 26218, 29918, 19790, 29897, 13, 13, 1678, 822, 8147, 29918, 1052, 26218, 29918, 19790, 29898, 1311, 1125, 13, 4706, 9995, 27065, 403, 278, 2320, 1208, 26218, 7329, 515, 278, 3515, 2920, 29892, 278, 13, 4706, 9119, 2450, 322, 278, 15526, 2159, 29889, 13, 4706, 9995, 13, 4706, 3515, 29918, 2103, 353, 938, 29898, 710, 29898, 1311, 29889, 510, 17801, 29918, 2557, 6110, 29889, 3784, 1626, 22130, 13, 4706, 15526, 29918, 2311, 353, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29886, 15711, 3505, 29889, 1767, 580, 13, 4706, 2320, 353, 1583, 29889, 1028, 262, 3313, 29918, 11082, 29889, 1767, 580, 13, 4706, 716, 29918, 19790, 353, 2320, 334, 3515, 29918, 2103, 334, 15526, 29918, 2311, 13, 4706, 1404, 29918, 16957, 353, 660, 3728, 3313, 29889, 19678, 29898, 13, 9651, 1583, 29892, 525, 27065, 630, 1208, 26218, 7329, 742, 13, 9651, 525, 3591, 3583, 29876, 4373, 9119, 2450, 1208, 26218, 7329, 29901, 1273, 29881, 525, 13, 9651, 11297, 29876, 29905, 29876, 6132, 366, 864, 304, 671, 445, 995, 17901, 1273, 716, 29918, 19790, 29892, 13, 9651, 660, 3728, 3313, 29889, 20434, 891, 660, 3728, 3313, 29889, 19420, 29897, 13, 4706, 565, 1404, 29918, 16957, 1275, 660, 3728, 3313, 29889, 20434, 29901, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 1052, 26218, 29943, 7168, 29889, 842, 1917, 29898, 1482, 29918, 19790, 29897, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 1583, 29889, 12846, 29889, 842, 29918, 11082, 29918, 1756, 29918, 2311, 29918, 19790, 29898, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 1052, 26218, 29943, 7168, 29889, 1767, 3101, 13, 4706, 396, 10318, 278, 9119, 8232, 310, 599, 438, 29963, 29879, 29901, 13, 4706, 1583, 29889, 586, 29885, 29889, 15807, 403, 29918, 586, 29918, 11082, 29918, 3166, 29918, 29886, 15711, 29918, 2311, 580, 13, 4706, 2428, 2141, 16044, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 315, 329, 18984, 29928, 19920, 29898, 29984, 7647, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 9200, 29873, 608, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 29885, 2357, 29873, 608, 353, 9200, 29873, 608, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 7582, 29918, 19708, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 7582, 18984, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 8159, 29918, 7582, 29918, 19708, 3101, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 1583, 29889, 29885, 2357, 29873, 608, 29889, 842, 29918, 8159, 29918, 7582, 29918, 19708, 29898, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 7582, 18984, 29889, 1767, 3101, 13, 4706, 2428, 2141, 16044, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 438, 29963, 9585, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 12024, 278, 1404, 1735, 599, 6055, 363, 1269, 975, 1493, 1967, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 288, 6925, 29892, 3031, 29892, 1857, 29918, 586, 29892, 13, 462, 1667, 29918, 7165, 29918, 9990, 29892, 1667, 29918, 7165, 29918, 21001, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 586, 29885, 353, 288, 6925, 13, 4706, 1583, 29889, 12846, 353, 3031, 13, 4706, 1583, 29889, 3784, 29918, 586, 353, 1857, 29918, 586, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 353, 1667, 29918, 7165, 29918, 9990, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 353, 1667, 29918, 7165, 29918, 21001, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 957, 1493, 29918, 11027, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 396, 3789, 701, 438, 29963, 11764, 29901, 13, 4706, 1583, 29889, 510, 17801, 29918, 29949, 29963, 10378, 29889, 1202, 6913, 29898, 1311, 29889, 586, 29885, 29889, 657, 29918, 586, 29918, 710, 29918, 1761, 3101, 13, 4706, 1583, 29889, 510, 17801, 29918, 29949, 29963, 10378, 29889, 842, 7583, 3220, 29898, 1311, 29889, 3784, 29918, 586, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29949, 29963, 10378, 29889, 3784, 3220, 7590, 29889, 6915, 29898, 1311, 29889, 3167, 29918, 586, 29897, 13, 4706, 396, 3789, 701, 916, 4145, 23518, 267, 29901, 13, 4706, 3787, 29918, 690, 29918, 1761, 353, 518, 13, 9651, 14210, 29881, 13105, 1273, 29881, 29915, 1273, 313, 690, 29961, 29900, 1402, 620, 29961, 29896, 2314, 363, 620, 297, 1583, 29889, 12846, 29889, 1254, 29949, 1525, 29918, 15989, 29962, 13, 4706, 1583, 29889, 510, 17801, 29918, 2557, 3505, 29889, 1202, 6913, 29898, 8899, 29918, 690, 29918, 1761, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 2557, 3505, 29889, 3784, 3220, 7590, 29889, 6915, 29898, 13, 9651, 1583, 29889, 5504, 29918, 29886, 15711, 29918, 2311, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29881, 5872, 2481, 29889, 1202, 6913, 29898, 1958, 29898, 710, 29892, 1583, 29889, 12846, 29889, 29928, 8851, 2208, 29918, 15307, 876, 13, 4706, 396, 10318, 15526, 2159, 746, 2320, 3939, 29901, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 29885, 4211, 2450, 29889, 1767, 7590, 29889, 6915, 29898, 1311, 29889, 5504, 29918, 29886, 15711, 29918, 2311, 29897, 13, 4706, 396, 3462, 322, 5217, 2826, 29901, 13, 4706, 1583, 29889, 5910, 3125, 29918, 7620, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 7620, 29918, 3784, 29918, 11027, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 1202, 29949, 29963, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 1202, 29918, 586, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 8143, 29949, 29963, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 8143, 29918, 586, 29897, 13, 4706, 1583, 29889, 5504, 29918, 4187, 7453, 580, 13, 4706, 1583, 29889, 4294, 29918, 3784, 29918, 11027, 580, 13, 4706, 1583, 29889, 4294, 29918, 2557, 29918, 2311, 580, 13, 13, 1678, 822, 1510, 29918, 3784, 29918, 11027, 29898, 1311, 1125, 13, 4706, 1583, 29889, 510, 17801, 29918, 2557, 3505, 29889, 842, 7583, 3220, 29898, 13, 9651, 1583, 29889, 586, 29885, 29889, 657, 29918, 586, 29918, 2311, 29918, 14357, 29898, 1311, 29889, 3784, 29918, 586, 876, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 29885, 4211, 2450, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 586, 29885, 29889, 657, 29918, 586, 29918, 29885, 4211, 2450, 29898, 1311, 29889, 3784, 29918, 586, 876, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29886, 15711, 3505, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 586, 29885, 29889, 657, 29918, 586, 29918, 29886, 15711, 29918, 2311, 29898, 1311, 29889, 3784, 29918, 586, 876, 13, 4706, 1583, 29889, 510, 17801, 29918, 29881, 5872, 2481, 29889, 842, 7583, 3220, 29898, 13, 9651, 1583, 29889, 586, 29885, 29889, 657, 29918, 586, 29918, 29881, 5872, 29918, 2230, 29918, 14357, 29898, 1311, 29889, 3784, 29918, 586, 876, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 562, 29939, 12506, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 586, 29885, 29889, 657, 29918, 586, 29918, 562, 29939, 29918, 19207, 29898, 1311, 29889, 3784, 29918, 586, 876, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 562, 29939, 12506, 10302, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 586, 29885, 29889, 657, 29918, 586, 29918, 562, 29939, 29918, 19207, 29918, 10289, 29898, 1311, 29889, 3784, 29918, 586, 876, 13, 13, 1678, 822, 2767, 29918, 29886, 15711, 29918, 2311, 29898, 1311, 1125, 13, 4706, 9995, 27065, 403, 15526, 2159, 515, 1857, 9119, 2450, 322, 2479, 372, 1213, 15945, 13, 4706, 15526, 29918, 2311, 353, 313, 13, 9651, 1583, 29889, 12846, 29889, 1529, 29954, 29918, 29925, 29990, 29918, 14226, 29918, 4519, 1783, 1955, 13, 9651, 847, 313, 1311, 29889, 12846, 29889, 1254, 29949, 1525, 29918, 15989, 29961, 1311, 29889, 510, 17801, 29918, 2557, 3505, 29889, 3784, 3220, 580, 3816, 29900, 29962, 13, 9651, 334, 1583, 29889, 1028, 262, 3313, 29918, 29885, 4211, 2450, 29889, 1767, 22130, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29886, 15711, 3505, 29889, 842, 1917, 29898, 29886, 15711, 29918, 2311, 29897, 13, 13, 1678, 822, 1510, 29918, 2557, 29918, 2311, 29898, 1311, 1125, 13, 4706, 9995, 27065, 403, 322, 1510, 3515, 2159, 8679, 373, 1404, 9262, 1213, 15945, 13, 4706, 3515, 29918, 2311, 29918, 14357, 353, 1583, 29889, 586, 29885, 29889, 657, 29918, 586, 29918, 2311, 29918, 14357, 29898, 1311, 29889, 3784, 29918, 586, 29897, 13, 4706, 15526, 29918, 2311, 353, 1583, 29889, 586, 29885, 29889, 657, 29918, 586, 29918, 29886, 15711, 29918, 2311, 29898, 1311, 29889, 3784, 29918, 586, 29897, 13, 4706, 2920, 353, 1583, 29889, 12846, 29889, 1254, 29949, 1525, 29918, 15989, 29961, 2557, 29918, 2311, 29918, 14357, 3816, 29900, 29962, 334, 15526, 29918, 2311, 847, 29871, 29896, 29900, 29900, 29900, 13, 4706, 3171, 353, 1583, 29889, 12846, 29889, 1254, 29949, 1525, 29918, 15989, 29961, 2557, 29918, 2311, 29918, 14357, 3816, 29896, 29962, 334, 15526, 29918, 2311, 847, 29871, 29896, 29900, 29900, 29900, 13, 4706, 1583, 29889, 1643, 29918, 2557, 3505, 29889, 12038, 877, 29912, 29900, 29901, 29889, 29896, 29888, 29913, 13105, 15300, 4830, 29898, 2103, 29897, 13, 462, 462, 1678, 718, 22372, 29900, 29901, 29889, 29896, 29888, 29913, 4286, 4830, 29898, 3545, 876, 13, 13, 1678, 822, 1735, 29918, 586, 29898, 1311, 1125, 13, 4706, 1583, 29889, 3784, 29918, 586, 353, 1583, 29889, 510, 17801, 29918, 29949, 29963, 10378, 29889, 3784, 3220, 580, 13, 4706, 1583, 29889, 5504, 29918, 4187, 7453, 580, 13, 4706, 1583, 29889, 4294, 29918, 3784, 29918, 11027, 580, 13, 13, 1678, 822, 2767, 29918, 4187, 7453, 29898, 1311, 1125, 13, 4706, 9995, 6422, 11073, 373, 9828, 322, 11262, 29914, 12007, 5217, 2826, 13, 965, 8679, 373, 607, 438, 29963, 338, 4629, 29889, 438, 29963, 29871, 29900, 2609, 367, 11132, 29889, 13, 965, 9333, 278, 1833, 438, 29963, 508, 367, 11132, 29889, 830, 1658, 29901, 19905, 2893, 1907, 310, 13, 965, 975, 7406, 2645, 5096, 1274, 29939, 29889, 13, 4706, 9995, 13, 4706, 565, 1583, 29889, 3784, 29918, 586, 1275, 29871, 29900, 29901, 13, 9651, 1583, 29889, 5910, 3125, 29918, 8143, 29949, 29963, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 5910, 3125, 29918, 8143, 29949, 29963, 29889, 842, 10861, 29898, 13, 18884, 1583, 29889, 3784, 29918, 586, 1275, 1583, 29889, 586, 29885, 29889, 657, 29918, 4537, 29918, 586, 580, 448, 29871, 29896, 29897, 13, 4706, 396, 7704, 1857, 438, 29963, 1353, 373, 5217, 322, 4078, 9828, 13, 4706, 1583, 29889, 5910, 3125, 29918, 7620, 29889, 12038, 29898, 13, 9651, 525, 11371, 6055, 363, 438, 29963, 1273, 29881, 29915, 1273, 1583, 29889, 3784, 29918, 586, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 8143, 29949, 29963, 29889, 12038, 877, 12498, 438, 29963, 1273, 29881, 29915, 1273, 1583, 29889, 3784, 29918, 586, 29897, 13, 13, 1678, 822, 4078, 29918, 3784, 29918, 11027, 29898, 1311, 1125, 13, 4706, 1583, 29889, 16304, 29918, 2557, 29918, 2311, 353, 1583, 29889, 586, 29885, 29889, 657, 29918, 586, 29918, 2311, 29918, 14357, 29898, 1311, 29889, 3784, 29918, 586, 29897, 13, 4706, 1583, 29889, 586, 29885, 29889, 842, 29918, 586, 29918, 2311, 29918, 14357, 29898, 1311, 29889, 3784, 29918, 586, 29892, 13, 9651, 1583, 29889, 510, 17801, 29918, 2557, 3505, 29889, 3784, 3220, 3101, 13, 4706, 1583, 29889, 586, 29885, 29889, 842, 29918, 586, 29918, 29885, 4211, 2450, 29898, 1311, 29889, 3784, 29918, 586, 29892, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 29885, 4211, 2450, 29889, 1767, 3101, 13, 4706, 1583, 29889, 586, 29885, 29889, 842, 29918, 586, 29918, 29881, 5872, 29918, 2230, 29918, 14357, 29898, 1311, 29889, 3784, 29918, 586, 29892, 13, 9651, 1583, 29889, 510, 17801, 29918, 29881, 5872, 2481, 29889, 3784, 3220, 3101, 13, 4706, 1583, 29889, 586, 29885, 29889, 842, 29918, 586, 29918, 562, 29939, 29918, 19207, 29898, 1311, 29889, 3784, 29918, 586, 29892, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 562, 29939, 12506, 29889, 1767, 3101, 13, 4706, 1583, 29889, 586, 29885, 29889, 842, 29918, 586, 29918, 562, 29939, 29918, 19207, 29918, 10289, 29898, 1311, 29889, 3784, 29918, 586, 29892, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 562, 29939, 12506, 10302, 29889, 1767, 3101, 13, 4706, 565, 1583, 29889, 510, 17801, 29918, 2557, 3505, 29889, 3784, 3220, 580, 2804, 1583, 29889, 16304, 29918, 2557, 29918, 2311, 29901, 13, 9651, 396, 21267, 1857, 25267, 1967, 29901, 13, 9651, 1583, 29889, 586, 29885, 29889, 5504, 29918, 586, 29918, 1445, 29918, 1761, 29898, 1311, 29889, 3784, 29918, 586, 29892, 27255, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 29949, 29963, 11368, 29911, 4214, 29903, 5868, 24336, 29928, 1495, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 788, 29918, 586, 29898, 1311, 1125, 13, 4706, 1583, 29889, 586, 29885, 29889, 1202, 29918, 1482, 29918, 586, 580, 13, 4706, 1583, 29889, 3784, 29918, 586, 353, 1583, 29889, 586, 29885, 29889, 657, 29918, 4537, 29918, 586, 580, 448, 29871, 29896, 13, 4706, 396, 10318, 438, 29963, 11764, 29901, 13, 4706, 1583, 29889, 510, 17801, 29918, 29949, 29963, 10378, 29889, 1271, 10140, 1338, 29898, 5574, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29949, 29963, 10378, 29889, 8551, 580, 13, 4706, 1583, 29889, 510, 17801, 29918, 29949, 29963, 10378, 29889, 1202, 6913, 29898, 1311, 29889, 586, 29885, 29889, 657, 29918, 586, 29918, 710, 29918, 1761, 3101, 13, 4706, 1583, 29889, 510, 17801, 29918, 29949, 29963, 10378, 29889, 842, 7583, 3220, 29898, 1311, 29889, 3784, 29918, 586, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29949, 29963, 10378, 29889, 1271, 10140, 1338, 29898, 8824, 29897, 13, 4706, 1583, 29889, 5504, 29918, 4187, 7453, 580, 13, 4706, 1583, 29889, 4294, 29918, 3784, 29918, 11027, 580, 13, 4706, 1583, 29889, 4294, 29918, 2557, 29918, 2311, 580, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 29949, 29963, 11368, 29911, 4214, 29903, 5868, 24336, 29928, 1495, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 5217, 29918, 586, 29898, 1311, 1125, 13, 4706, 1583, 29889, 586, 29885, 29889, 8143, 29918, 586, 580, 13, 4706, 1583, 29889, 3784, 29918, 586, 353, 1583, 29889, 586, 29885, 29889, 657, 29918, 4537, 29918, 586, 580, 448, 29871, 29896, 13, 4706, 396, 10318, 438, 29963, 11764, 29901, 13, 4706, 1583, 29889, 510, 17801, 29918, 29949, 29963, 10378, 29889, 1271, 10140, 1338, 29898, 5574, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29949, 29963, 10378, 29889, 8551, 580, 13, 4706, 1583, 29889, 510, 17801, 29918, 29949, 29963, 10378, 29889, 1202, 6913, 29898, 1311, 29889, 586, 29885, 29889, 657, 29918, 586, 29918, 710, 29918, 1761, 3101, 13, 4706, 1583, 29889, 510, 17801, 29918, 29949, 29963, 10378, 29889, 842, 7583, 3220, 29898, 1311, 29889, 3784, 29918, 586, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29949, 29963, 10378, 29889, 1271, 10140, 1338, 29898, 8824, 29897, 13, 4706, 1583, 29889, 5504, 29918, 4187, 7453, 580, 13, 4706, 1583, 29889, 4294, 29918, 3784, 29918, 11027, 580, 13, 4706, 1583, 29889, 4294, 29918, 2557, 29918, 2311, 580, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 29949, 29963, 11368, 29911, 4214, 29903, 5868, 24336, 29928, 1495, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 16032, 2940, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 17518, 385, 1967, 964, 278, 1776, 637, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 288, 6925, 29892, 5939, 29892, 3646, 29918, 3972, 1125, 13, 4706, 1583, 29889, 586, 29885, 353, 288, 6925, 13, 4706, 1583, 29889, 2395, 353, 5939, 13, 4706, 1583, 29889, 5182, 29918, 3972, 353, 3646, 29918, 3972, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 5215, 29918, 3027, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2622, 2283, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 2622, 29918, 1445, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2622, 2283, 29889, 842, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 2622, 3972, 29889, 2732, 8785, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2622, 2283, 29889, 842, 12492, 3505, 29898, 29984, 3505, 29898, 29896, 29953, 29892, 29871, 29896, 29953, 876, 13, 13, 1678, 822, 1831, 29918, 1445, 29898, 1311, 1125, 13, 4706, 396, 2803, 1404, 1831, 1967, 304, 367, 19673, 29901, 13, 4706, 1369, 29918, 2084, 353, 525, 29907, 22298, 29915, 13, 4706, 4629, 29918, 1445, 353, 851, 29898, 29984, 2283, 7647, 29889, 657, 6585, 17020, 29898, 13, 18884, 1583, 29892, 525, 3549, 1967, 742, 13, 18884, 1369, 29918, 2084, 29892, 13, 18884, 525, 20163, 3070, 29889, 29873, 361, 20611, 2732, 20611, 29890, 1526, 20611, 6173, 16029, 13, 18884, 1723, 29961, 29900, 2314, 13, 4706, 565, 7431, 29898, 8391, 29918, 1445, 29897, 1405, 29871, 29900, 29901, 13, 9651, 396, 22108, 6375, 24765, 267, 411, 1250, 1328, 24765, 267, 29901, 13, 9651, 4629, 29918, 1445, 353, 4629, 29918, 1445, 29889, 6506, 11219, 742, 525, 1966, 1495, 13, 9651, 1583, 29889, 1220, 6103, 29918, 28926, 29889, 12038, 29898, 8391, 29918, 1445, 29897, 13, 9651, 1583, 29889, 1220, 6103, 29918, 978, 29889, 12038, 29898, 13, 18884, 2897, 29889, 2084, 29889, 23579, 568, 486, 29898, 359, 29889, 2084, 29889, 6500, 3871, 29898, 8391, 29918, 1445, 876, 29961, 29900, 2314, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 9262, 29918, 8698, 353, 5852, 13, 4706, 4629, 29918, 2084, 353, 1583, 29889, 1220, 6103, 29918, 28926, 29889, 726, 580, 13, 4706, 4629, 29918, 9507, 353, 2897, 29889, 2084, 29889, 6500, 3871, 29898, 8391, 29918, 2084, 29897, 13, 4706, 14334, 353, 851, 29898, 12673, 29889, 12673, 29889, 3707, 3101, 13, 4706, 396, 15154, 777, 4890, 515, 5335, 342, 481, 304, 679, 2854, 934, 1024, 29901, 13, 4706, 14334, 353, 14334, 7503, 29896, 29929, 1822, 21652, 3319, 536, 29898, 29883, 1125, 6213, 363, 274, 297, 525, 8956, 6169, 1800, 13, 4706, 3646, 29918, 2084, 353, 313, 1311, 29889, 5182, 29918, 3972, 718, 525, 1966, 29915, 13, 462, 539, 718, 2897, 29889, 2084, 29889, 23579, 568, 486, 29898, 8391, 29918, 9507, 9601, 29900, 29962, 13, 462, 539, 718, 22868, 29915, 718, 14334, 718, 15300, 2732, 1495, 13, 4706, 565, 2897, 29889, 2084, 29889, 275, 1445, 29898, 8391, 29918, 2084, 1125, 13, 9651, 396, 14187, 934, 304, 848, 4138, 408, 282, 865, 29901, 13, 9651, 1018, 29901, 13, 18884, 19673, 29918, 2492, 353, 7084, 29889, 3150, 29898, 8391, 29918, 2084, 29897, 13, 18884, 19673, 29918, 2492, 29889, 7620, 29898, 5182, 29918, 2084, 29897, 13, 9651, 5174, 29901, 13, 18884, 660, 3728, 3313, 29889, 27392, 29898, 13, 462, 1678, 1583, 29892, 525, 2392, 742, 13, 462, 1678, 525, 23323, 451, 2254, 1967, 934, 29889, 742, 13, 462, 268, 660, 3728, 3313, 29889, 20434, 29897, 13, 18884, 9262, 29918, 8698, 353, 7700, 13, 13, 9651, 565, 9262, 29918, 8698, 29901, 13, 18884, 716, 29918, 2492, 29918, 4537, 353, 1583, 29889, 586, 29885, 29889, 657, 29918, 4537, 29918, 5215, 287, 580, 13, 18884, 1583, 29889, 586, 29885, 29889, 1202, 29918, 5215, 287, 29918, 2492, 580, 13, 18884, 1583, 29889, 2395, 29889, 842, 29918, 5215, 287, 29918, 2492, 29918, 1760, 276, 29918, 29879, 29898, 13, 462, 1678, 716, 29918, 2492, 29918, 4537, 29892, 13, 462, 1678, 518, 1311, 29889, 8896, 5592, 262, 3313, 29918, 1066, 29990, 29889, 1767, 3285, 13, 462, 268, 1583, 29889, 8896, 5592, 262, 3313, 29918, 1066, 29979, 29889, 1767, 580, 2314, 13, 18884, 1583, 29889, 586, 29885, 29889, 842, 29918, 5215, 287, 29918, 2492, 29918, 5450, 362, 29898, 13, 462, 1678, 716, 29918, 2492, 29918, 4537, 29892, 1583, 29889, 1028, 262, 3313, 29918, 5450, 362, 29889, 1767, 3101, 13, 18884, 1583, 29889, 586, 29885, 29889, 842, 29918, 5215, 287, 29918, 2492, 29918, 1445, 29898, 13, 462, 1678, 716, 29918, 2492, 29918, 4537, 29892, 3646, 29918, 2084, 29897, 13, 18884, 1583, 29889, 586, 29885, 29889, 842, 29918, 5215, 287, 29918, 2492, 29918, 978, 29898, 1482, 29918, 2492, 29918, 4537, 29892, 13, 462, 462, 1669, 1583, 29889, 1220, 6103, 29918, 978, 29889, 726, 3101, 13, 18884, 2920, 29892, 3171, 353, 19673, 29918, 2492, 29889, 2311, 13, 18884, 1583, 29889, 586, 29885, 29889, 842, 29918, 5215, 287, 29918, 2492, 29918, 2311, 29918, 1756, 29918, 2272, 29898, 13, 462, 1678, 716, 29918, 2492, 29918, 4537, 29892, 2920, 29892, 3171, 29897, 13, 18884, 1583, 29889, 586, 29885, 29889, 842, 29918, 5215, 287, 29918, 2492, 29918, 29886, 15711, 29918, 2311, 29898, 13, 462, 1678, 716, 29918, 2492, 29918, 4537, 29892, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29886, 15711, 3505, 29889, 1767, 3101, 13, 18884, 1583, 29889, 586, 29885, 29889, 842, 29918, 5215, 287, 29918, 2492, 29918, 3286, 862, 3819, 29898, 13, 462, 1678, 716, 29918, 2492, 29918, 4537, 29892, 1583, 29889, 1028, 262, 3313, 29918, 3286, 862, 3819, 29889, 1767, 3101, 13, 4706, 1683, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 1311, 29892, 525, 2392, 742, 13, 462, 18884, 525, 10299, 2164, 934, 451, 1476, 29889, 742, 13, 462, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 9651, 9262, 29918, 8698, 353, 7700, 13, 13, 4706, 565, 9262, 29918, 8698, 29901, 13, 9651, 2428, 2141, 16044, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 2087, 5143, 2940, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 3253, 5143, 385, 19673, 1967, 313, 2311, 29892, 13733, 29892, 1301, 862, 3819, 5513, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 288, 6925, 29892, 5939, 29892, 4629, 29918, 2492, 29892, 13, 462, 1667, 29918, 7165, 29918, 9990, 29892, 1667, 29918, 7165, 29918, 21001, 1125, 13, 4706, 1583, 29889, 586, 29885, 353, 288, 6925, 13, 4706, 1583, 29889, 2395, 353, 5939, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 353, 1667, 29918, 7165, 29918, 9990, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 353, 1667, 29918, 7165, 29918, 21001, 13, 4706, 1583, 29889, 8391, 29918, 2492, 353, 4629, 29918, 2492, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 328, 5143, 29918, 5215, 287, 29918, 3027, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 1220, 6103, 29918, 8391, 2940, 29889, 12038, 29898, 13, 9651, 1583, 29889, 586, 29885, 29889, 657, 29918, 5215, 287, 29918, 2492, 29918, 978, 29898, 1311, 29889, 8391, 29918, 2492, 876, 13, 4706, 926, 29918, 29916, 29892, 926, 29918, 29891, 353, 1583, 29889, 2395, 29889, 657, 29918, 5215, 287, 29918, 2492, 29918, 1760, 276, 29918, 29879, 29898, 1311, 29889, 8391, 29918, 2492, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 1066, 29990, 29889, 842, 1917, 29898, 1066, 29918, 29916, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 1066, 29979, 29889, 842, 1917, 29898, 1066, 29918, 29891, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29886, 15711, 3505, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 586, 29885, 29889, 657, 29918, 5215, 287, 29918, 2492, 29918, 29886, 15711, 29918, 2311, 29898, 1311, 29889, 8391, 29918, 2492, 876, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 5450, 362, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 586, 29885, 29889, 657, 29918, 5215, 287, 29918, 2492, 29918, 5450, 362, 29898, 1311, 29889, 8391, 29918, 2492, 876, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 3286, 862, 3819, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 586, 29885, 29889, 657, 29918, 5215, 287, 29918, 2492, 29918, 3286, 862, 3819, 29898, 1311, 29889, 8391, 29918, 2492, 876, 13, 4706, 396, 4803, 376, 2052, 368, 29908, 2826, 304, 1510, 3620, 297, 1776, 637, 13, 4706, 3394, 29918, 3092, 353, 1583, 29889, 3092, 3313, 29889, 3092, 29898, 29984, 7647, 3125, 3313, 29889, 2052, 368, 29897, 13, 4706, 12611, 29918, 3092, 353, 1583, 29889, 3092, 3313, 29889, 3092, 29898, 29984, 7647, 3125, 3313, 29889, 19420, 29897, 13, 4706, 12611, 29918, 3092, 29889, 842, 12300, 4592, 29898, 8824, 29897, 13, 4706, 12611, 29918, 3092, 29889, 842, 4592, 29898, 8824, 29897, 13, 4706, 3394, 29918, 3092, 29889, 842, 4592, 29898, 5574, 29897, 13, 4706, 3394, 29918, 3092, 29889, 842, 12300, 4592, 29898, 5574, 29897, 13, 4706, 3394, 29918, 3092, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 7302, 29918, 25990, 29897, 13, 13, 1678, 822, 3394, 29918, 25990, 29898, 1311, 1125, 13, 4706, 9995, 2052, 368, 278, 1857, 6055, 322, 2654, 1610, 278, 1967, 297, 278, 1776, 637, 1213, 15945, 13, 4706, 1583, 29889, 2395, 29889, 842, 29918, 5215, 287, 29918, 2492, 29918, 1760, 276, 29918, 29879, 29898, 13, 9651, 1583, 29889, 8391, 29918, 2492, 29892, 13, 9651, 518, 1311, 29889, 8896, 5592, 262, 3313, 29918, 1066, 29990, 29889, 1767, 3285, 13, 632, 1583, 29889, 8896, 5592, 262, 3313, 29918, 1066, 29979, 29889, 1767, 580, 2314, 13, 4706, 1583, 29889, 586, 29885, 29889, 842, 29918, 5215, 287, 29918, 2492, 29918, 29886, 15711, 29918, 2311, 29898, 13, 9651, 1583, 29889, 8391, 29918, 2492, 29892, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29886, 15711, 3505, 29889, 1767, 3101, 13, 4706, 1583, 29889, 586, 29885, 29889, 842, 29918, 5215, 287, 29918, 2492, 29918, 5450, 362, 29898, 13, 9651, 1583, 29889, 8391, 29918, 2492, 29892, 1583, 29889, 1028, 262, 3313, 29918, 5450, 362, 29889, 1767, 3101, 13, 4706, 1583, 29889, 586, 29885, 29889, 842, 29918, 5215, 287, 29918, 2492, 29918, 3286, 862, 3819, 29898, 13, 9651, 1583, 29889, 8391, 29918, 2492, 29892, 1583, 29889, 1028, 262, 3313, 29918, 3286, 862, 3819, 29889, 1767, 3101, 13, 4706, 396, 382, 2415, 18470, 304, 19763, 322, 2654, 1610, 29901, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 1525, 29428, 306, 3580, 8476, 3352, 29915, 718, 851, 29898, 1311, 29889, 8391, 29918, 2492, 876, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 21267, 2940, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 12498, 385, 19673, 1967, 515, 278, 1776, 637, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 288, 6925, 1125, 13, 4706, 1583, 29889, 586, 29885, 353, 288, 6925, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 8143, 29918, 3027, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 396, 6977, 5987, 278, 1051, 11109, 411, 5923, 19673, 4558, 29901, 13, 4706, 10153, 29918, 1761, 353, 5159, 13, 4706, 363, 474, 297, 3464, 29898, 1311, 29889, 586, 29885, 29889, 657, 29918, 4537, 29918, 5215, 287, 580, 1125, 13, 9651, 10153, 29918, 1761, 29889, 4397, 29898, 710, 29898, 29875, 29897, 718, 525, 448, 525, 718, 1583, 29889, 586, 29885, 29889, 657, 29918, 5215, 287, 29918, 2492, 29918, 978, 29898, 29875, 876, 13, 4706, 1583, 29889, 1761, 8801, 29918, 326, 351, 295, 391, 29889, 1202, 6913, 29898, 2492, 29918, 1761, 29897, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 4629, 29918, 2492, 353, 1583, 29889, 1761, 8801, 29918, 326, 351, 295, 391, 29889, 3784, 4301, 580, 13, 4706, 565, 4629, 29918, 2492, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 586, 29885, 29889, 8143, 29918, 5215, 287, 29918, 2492, 29898, 8391, 29918, 2492, 29897, 13, 4706, 2428, 2141, 16044, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 11657, 9585, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 12024, 278, 1404, 1735, 599, 6055, 363, 1269, 6856, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 6856, 29918, 12847, 29892, 3031, 29892, 4629, 29918, 7720, 29892, 13, 462, 2295, 29892, 1667, 29918, 7165, 29918, 9990, 29892, 1667, 29918, 7165, 29918, 21001, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 29887, 29885, 353, 6856, 29918, 12847, 13, 4706, 1583, 29889, 12846, 353, 3031, 13, 4706, 1583, 29889, 3784, 29918, 7720, 353, 4629, 29918, 7720, 13, 4706, 1583, 29889, 16859, 353, 2295, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 353, 1667, 29918, 7165, 29918, 9990, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 353, 1667, 29918, 7165, 29918, 21001, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 7720, 29918, 11027, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 396, 3789, 701, 6856, 11764, 29901, 13, 4706, 1583, 29889, 510, 17801, 29918, 7720, 10378, 29889, 1202, 6913, 29898, 1311, 29889, 29887, 29885, 29889, 657, 29918, 7720, 29918, 710, 29918, 1761, 3101, 13, 4706, 1583, 29889, 510, 17801, 29918, 7720, 10378, 29889, 842, 7583, 3220, 29898, 1311, 29889, 3784, 29918, 7720, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 7720, 10378, 29889, 3784, 3220, 7590, 29889, 6915, 29898, 13, 9651, 1583, 29889, 3167, 29918, 7720, 29897, 13, 4706, 396, 3789, 701, 12384, 11764, 29901, 13, 4706, 363, 474, 297, 3464, 29898, 2435, 29898, 13239, 29889, 3217, 3927, 4574, 29918, 6404, 1955, 22164, 13, 9651, 15552, 29890, 353, 3667, 29879, 29889, 3217, 3927, 4574, 29918, 6404, 1955, 29961, 29875, 29962, 13, 9651, 12384, 29918, 4144, 353, 660, 29925, 861, 1958, 29898, 29906, 29900, 29892, 29871, 29896, 29900, 29897, 13, 9651, 12384, 29918, 4144, 29889, 5589, 29898, 29984, 3306, 29898, 23973, 29961, 29900, 1402, 15552, 29890, 29961, 29896, 1402, 15552, 29890, 29961, 29906, 12622, 13, 9651, 1583, 29889, 510, 17801, 29918, 1054, 473, 10378, 29889, 1202, 2001, 29898, 29984, 12492, 29898, 1054, 473, 29918, 4144, 511, 27255, 13, 4706, 3787, 29918, 690, 29918, 1761, 353, 518, 13, 9651, 14210, 29881, 13105, 1273, 29881, 29915, 1273, 313, 690, 29961, 29900, 1402, 620, 29961, 29896, 2314, 363, 620, 297, 1583, 29889, 12846, 29889, 1254, 29949, 1525, 29918, 15989, 29962, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 3505, 29889, 1202, 6913, 29898, 8899, 29918, 690, 29918, 1761, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 3505, 29889, 3784, 3220, 7590, 29889, 6915, 29898, 13, 9651, 1583, 29889, 4294, 29918, 29873, 488, 29918, 2311, 29918, 392, 29918, 29881, 852, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29881, 5872, 2481, 29889, 1202, 6913, 29898, 1958, 29898, 710, 29892, 1583, 29889, 12846, 29889, 29928, 8851, 2208, 29918, 15307, 876, 13, 4706, 1583, 29889, 510, 17801, 29918, 29881, 5872, 2481, 29889, 3784, 3220, 7590, 29889, 6915, 29898, 13, 9651, 1583, 29889, 4294, 29918, 29873, 488, 29918, 2311, 29918, 392, 29918, 29881, 852, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29886, 15711, 3505, 29889, 1767, 7590, 29889, 6915, 29898, 13, 9651, 1583, 29889, 4294, 29918, 29873, 488, 29918, 2311, 29918, 392, 29918, 29881, 852, 29897, 13, 4706, 396, 23255, 415, 573, 8569, 5780, 2826, 29901, 13, 4706, 1583, 29889, 10154, 3125, 29918, 1114, 415, 573, 20560, 29889, 3808, 287, 29889, 6915, 29898, 13, 9651, 1583, 29889, 3150, 29918, 1114, 415, 573, 29918, 18037, 29918, 11671, 29887, 29897, 13, 4706, 396, 2538, 300, 281, 29881, 29914, 303, 335, 4128, 29901, 13, 4706, 1583, 29889, 5910, 3125, 29918, 12071, 20560, 9629, 29889, 3808, 287, 29889, 6915, 29898, 13, 9651, 1583, 29889, 12071, 29918, 9970, 29918, 303, 335, 29918, 7529, 29897, 13, 4706, 396, 16913, 29892, 788, 322, 5217, 2826, 29901, 13, 4706, 1583, 29889, 5910, 3125, 29918, 7620, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 7620, 29918, 3784, 29918, 11027, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 1202, 5756, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 1202, 29918, 7720, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 8143, 5756, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 8143, 29918, 7720, 29897, 13, 4706, 1583, 29889, 5504, 29918, 4187, 7453, 580, 13, 4706, 1583, 29889, 4294, 29918, 3784, 29918, 11027, 580, 13, 4706, 1583, 29889, 4294, 29918, 29873, 488, 29918, 2311, 29918, 392, 29918, 29881, 852, 580, 13, 4706, 396, 297, 11236, 1218, 788, 6856, 297, 2320, 29883, 29918, 8513, 313, 9344, 367, 2309, 297, 2320, 29883, 9451, 2012, 29897, 13, 4706, 565, 1583, 29889, 16859, 1839, 9675, 16215, 11082, 29883, 29918, 8513, 2033, 1275, 525, 5574, 2396, 13, 9651, 1583, 29889, 5910, 3125, 29918, 1202, 5756, 29889, 842, 10861, 29898, 8824, 29897, 13, 13, 1678, 822, 1510, 29918, 3784, 29918, 11027, 29898, 1311, 1125, 13, 4706, 1583, 29889, 510, 17801, 29918, 1054, 473, 10378, 29889, 842, 7583, 3220, 29898, 13, 9651, 1583, 29889, 29887, 29885, 29889, 657, 29918, 4990, 29918, 1054, 473, 29918, 2248, 29898, 1311, 29889, 3784, 29918, 7720, 876, 13, 4706, 396, 23255, 415, 573, 8569, 29901, 13, 4706, 1583, 29889, 3198, 3313, 29918, 1114, 415, 573, 20560, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 29887, 29885, 29889, 275, 29918, 1114, 415, 573, 29918, 18037, 29918, 4925, 29898, 1311, 29889, 3784, 29918, 7720, 876, 13, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 5727, 29889, 842, 1917, 29898, 1311, 29889, 29887, 29885, 29889, 657, 29918, 4537, 29918, 5727, 29898, 1311, 29889, 3784, 29918, 7720, 876, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 22724, 29889, 842, 1917, 29898, 1311, 29889, 29887, 29885, 29889, 657, 29918, 4537, 29918, 22724, 29898, 1311, 29889, 3784, 29918, 7720, 876, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 957, 6984, 29889, 842, 1917, 29898, 1311, 29889, 29887, 29885, 29889, 657, 29918, 957, 6984, 29898, 1311, 29889, 3784, 29918, 7720, 876, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 5450, 362, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 29887, 29885, 29889, 657, 29918, 5450, 362, 29898, 1311, 29889, 3784, 29918, 7720, 876, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 10889, 29889, 842, 1917, 29898, 1311, 29889, 29887, 29885, 29889, 657, 29918, 798, 29918, 10889, 29898, 1311, 29889, 3784, 29918, 7720, 876, 13, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29886, 15711, 3505, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 29887, 29885, 29889, 657, 29918, 29886, 15711, 29918, 2311, 29898, 1311, 29889, 3784, 29918, 7720, 876, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 3505, 29889, 842, 7583, 3220, 29898, 13, 9651, 1583, 29889, 29887, 29885, 29889, 657, 29918, 29873, 488, 29918, 2311, 29918, 14357, 29898, 1311, 29889, 3784, 29918, 7720, 876, 13, 4706, 1583, 29889, 510, 17801, 29918, 29881, 5872, 2481, 29889, 842, 7583, 3220, 29898, 13, 9651, 1583, 29889, 29887, 29885, 29889, 657, 29918, 29881, 5872, 29918, 2230, 29918, 14357, 29898, 1311, 29889, 3784, 29918, 7720, 876, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 562, 29939, 12506, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 29887, 29885, 29889, 657, 29918, 562, 29939, 29918, 19207, 29898, 1311, 29889, 3784, 29918, 7720, 876, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 562, 29939, 12506, 10302, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 29887, 29885, 29889, 657, 29918, 562, 29939, 29918, 19207, 29918, 10289, 29898, 1311, 29889, 3784, 29918, 7720, 876, 13, 13, 1678, 822, 1510, 29918, 29873, 488, 29918, 2311, 29918, 392, 29918, 29881, 852, 29898, 1311, 1125, 13, 4706, 9995, 27065, 403, 322, 2479, 278, 25900, 2159, 322, 278, 437, 344, 363, 278, 1857, 13, 965, 6055, 29889, 25723, 297, 1855, 29899, 2230, 408, 1404, 3620, 24013, 931, 29892, 3515, 13, 965, 10104, 322, 15526, 2159, 29889, 13, 4706, 9995, 13, 4706, 25900, 29918, 2311, 29918, 14357, 353, 1583, 29889, 510, 17801, 29918, 29873, 488, 3505, 29889, 3784, 3220, 580, 13, 4706, 15526, 29918, 2311, 353, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29886, 15711, 3505, 29889, 1767, 580, 13, 4706, 2920, 353, 1583, 29889, 12846, 29889, 1254, 29949, 1525, 29918, 15989, 29961, 29873, 488, 29918, 2311, 29918, 14357, 3816, 29900, 29962, 334, 15526, 29918, 2311, 847, 29871, 29896, 29900, 29900, 29900, 13, 4706, 3171, 353, 1583, 29889, 12846, 29889, 1254, 29949, 1525, 29918, 15989, 29961, 29873, 488, 29918, 2311, 29918, 14357, 3816, 29896, 29962, 334, 15526, 29918, 2311, 847, 29871, 29896, 29900, 29900, 29900, 13, 4706, 1583, 29889, 1643, 29918, 29873, 488, 3505, 29889, 12038, 877, 29912, 29900, 29901, 29889, 29896, 29888, 29913, 13105, 15300, 4830, 29898, 2103, 29897, 13, 462, 462, 1678, 718, 22372, 29900, 29901, 29889, 29896, 29888, 29913, 4286, 4830, 29898, 3545, 876, 13, 4706, 1857, 353, 1583, 29889, 12846, 29889, 657, 29918, 915, 314, 29918, 3784, 580, 13, 4706, 24013, 29918, 2230, 353, 5785, 29898, 1311, 29889, 510, 17801, 29918, 29881, 5872, 2481, 29889, 3784, 1626, 3101, 13, 4706, 15526, 29918, 2311, 353, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29886, 15711, 3505, 29889, 1767, 580, 13, 4706, 396, 7704, 11966, 437, 344, 297, 27149, 639, 6862, 23432, 3297, 276, 29889, 13, 4706, 1583, 29889, 1643, 29918, 29881, 852, 29889, 12038, 877, 29912, 29900, 29901, 29889, 29896, 29888, 29913, 4286, 4830, 29898, 13, 9651, 3667, 29879, 29889, 15807, 403, 29918, 15436, 1617, 29918, 29881, 852, 29898, 3784, 29892, 24013, 29918, 2230, 29892, 15526, 29918, 2311, 4961, 13, 13, 1678, 822, 1735, 29918, 7720, 29898, 1311, 1125, 13, 4706, 1583, 29889, 3784, 29918, 7720, 353, 1583, 29889, 510, 17801, 29918, 7720, 10378, 29889, 3784, 3220, 580, 13, 4706, 1583, 29889, 5504, 29918, 4187, 7453, 580, 13, 4706, 1583, 29889, 4294, 29918, 3784, 29918, 11027, 580, 13, 4706, 1583, 29889, 4294, 29918, 29873, 488, 29918, 2311, 29918, 392, 29918, 29881, 852, 580, 13, 13, 1678, 822, 2767, 29918, 4187, 7453, 29898, 1311, 1125, 13, 4706, 9995, 6422, 11073, 373, 9828, 322, 11262, 29914, 12007, 5217, 2826, 13, 965, 8679, 373, 607, 6856, 338, 4629, 29889, 11657, 29871, 29900, 2609, 367, 11132, 29889, 13, 965, 9333, 278, 1833, 6856, 508, 367, 11132, 29889, 830, 1658, 29901, 19905, 2893, 1907, 310, 13, 965, 867, 4841, 322, 260, 5475, 2629, 867, 4841, 29889, 13, 4706, 9995, 13, 4706, 565, 1583, 29889, 3784, 29918, 7720, 1275, 29871, 29900, 29901, 13, 9651, 1583, 29889, 5910, 3125, 29918, 8143, 5756, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 5910, 3125, 29918, 8143, 5756, 29889, 842, 10861, 29898, 13, 18884, 1583, 29889, 3784, 29918, 7720, 1275, 1583, 29889, 29887, 29885, 29889, 657, 29918, 4537, 29918, 629, 4841, 580, 448, 29871, 29896, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 7620, 29889, 12038, 29898, 13, 9651, 525, 11371, 6055, 363, 6856, 1273, 29881, 29915, 1273, 1583, 29889, 3784, 29918, 7720, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 8143, 5756, 29889, 12038, 877, 12498, 6856, 1273, 29881, 29915, 1273, 1583, 29889, 3784, 29918, 7720, 29897, 13, 13, 1678, 822, 788, 29918, 7720, 29898, 1311, 1125, 13, 4706, 1583, 29889, 29887, 29885, 29889, 1202, 29918, 1482, 29918, 7720, 580, 13, 4706, 1583, 29889, 3784, 29918, 7720, 353, 1583, 29889, 29887, 29885, 29889, 657, 29918, 4537, 29918, 629, 4841, 580, 448, 29871, 29896, 13, 4706, 396, 10318, 6856, 11764, 29901, 13, 4706, 1583, 29889, 510, 17801, 29918, 7720, 10378, 29889, 1271, 10140, 1338, 29898, 5574, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 7720, 10378, 29889, 8551, 580, 13, 4706, 1583, 29889, 510, 17801, 29918, 7720, 10378, 29889, 1202, 6913, 29898, 1311, 29889, 29887, 29885, 29889, 657, 29918, 7720, 29918, 710, 29918, 1761, 3101, 13, 4706, 1583, 29889, 510, 17801, 29918, 7720, 10378, 29889, 842, 7583, 3220, 29898, 1311, 29889, 3784, 29918, 7720, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 7720, 10378, 29889, 1271, 10140, 1338, 29898, 8824, 29897, 13, 4706, 1583, 29889, 5504, 29918, 4187, 7453, 580, 13, 4706, 1583, 29889, 4294, 29918, 3784, 29918, 11027, 580, 13, 4706, 1583, 29889, 4294, 29918, 29873, 488, 29918, 2311, 29918, 392, 29918, 29881, 852, 580, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 14345, 1367, 11368, 29911, 4214, 29903, 5868, 24336, 29928, 1495, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 5217, 29918, 7720, 29898, 1311, 1125, 13, 4706, 1404, 29918, 3445, 368, 353, 660, 3728, 3313, 29889, 12470, 29898, 13, 462, 4706, 1583, 29892, 525, 12498, 6856, 742, 13, 462, 4706, 525, 4013, 674, 5217, 6856, 1273, 29881, 7790, 29876, 29905, 29876, 29915, 13, 462, 4706, 525, 6132, 366, 6398, 304, 8469, 17901, 1273, 1583, 29889, 3784, 29918, 7720, 29892, 13, 462, 4706, 660, 3728, 3313, 29889, 20434, 891, 660, 3728, 3313, 29889, 19420, 29897, 13, 4706, 565, 1404, 29918, 3445, 368, 1275, 660, 3728, 3313, 29889, 20434, 29901, 13, 9651, 1583, 29889, 29887, 29885, 29889, 8143, 29918, 7720, 580, 13, 9651, 1583, 29889, 3784, 29918, 7720, 353, 1583, 29889, 29887, 29885, 29889, 657, 29918, 4537, 29918, 629, 4841, 580, 448, 29871, 29896, 13, 9651, 396, 10318, 6856, 11764, 29901, 13, 9651, 1583, 29889, 510, 17801, 29918, 7720, 10378, 29889, 1271, 10140, 1338, 29898, 5574, 29897, 13, 9651, 1583, 29889, 510, 17801, 29918, 7720, 10378, 29889, 8551, 580, 13, 9651, 1583, 29889, 510, 17801, 29918, 7720, 10378, 29889, 1202, 6913, 29898, 1311, 29889, 29887, 29885, 29889, 657, 29918, 7720, 29918, 710, 29918, 1761, 3101, 13, 9651, 1583, 29889, 510, 17801, 29918, 7720, 10378, 29889, 842, 7583, 3220, 29898, 1311, 29889, 3784, 29918, 7720, 29897, 13, 9651, 1583, 29889, 510, 17801, 29918, 7720, 10378, 29889, 1271, 10140, 1338, 29898, 8824, 29897, 13, 9651, 1583, 29889, 5504, 29918, 4187, 7453, 580, 13, 9651, 1583, 29889, 4294, 29918, 3784, 29918, 11027, 580, 13, 9651, 1583, 29889, 4294, 29918, 29873, 488, 29918, 2311, 29918, 392, 29918, 29881, 852, 580, 13, 9651, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 14345, 1367, 11368, 29911, 4214, 29903, 5868, 24336, 29928, 1495, 13, 9651, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 10092, 29918, 9970, 29918, 303, 335, 29918, 7529, 29898, 1311, 1125, 13, 4706, 1404, 29918, 3445, 368, 353, 660, 3728, 3313, 29889, 12470, 29898, 13, 9651, 1583, 29892, 525, 27175, 8569, 29914, 579, 335, 2922, 1608, 4128, 742, 13, 9651, 285, 29915, 4013, 674, 10092, 278, 8569, 322, 8717, 335, 2922, 1608, 4128, 363, 525, 13, 9651, 285, 29915, 497, 260, 5475, 297, 6856, 426, 1311, 29889, 3784, 29918, 7720, 1836, 29905, 29876, 29915, 13, 9651, 285, 29915, 1184, 3947, 29973, 742, 13, 9651, 660, 3728, 3313, 29889, 20434, 891, 660, 3728, 3313, 29889, 19420, 29897, 13, 4706, 565, 1404, 29918, 3445, 368, 1275, 660, 3728, 3313, 29889, 20434, 29901, 13, 9651, 1583, 29889, 29887, 29885, 29889, 24926, 29918, 9970, 29918, 303, 335, 29918, 1958, 29898, 1311, 29889, 3784, 29918, 7720, 29897, 13, 9651, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 14345, 1367, 11368, 29911, 4214, 29903, 5868, 24336, 29928, 1495, 13, 9651, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 4078, 29918, 3784, 29918, 11027, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 16859, 1839, 9675, 16215, 11082, 29883, 29918, 8513, 2033, 1275, 525, 5574, 2396, 13, 9651, 6856, 29918, 5064, 353, 1583, 29889, 29887, 29885, 29889, 657, 29918, 7720, 29918, 5064, 29918, 29879, 29898, 1311, 29889, 3784, 29918, 7720, 29897, 13, 13, 4706, 1059, 29918, 7645, 353, 6629, 13, 4706, 1583, 29889, 29887, 29885, 29889, 842, 29918, 7720, 29918, 2311, 29898, 1311, 29889, 3784, 29918, 7720, 29892, 13, 462, 795, 313, 1311, 29889, 1028, 262, 3313, 29918, 5727, 29889, 1767, 3285, 13, 462, 795, 1583, 29889, 1028, 262, 3313, 29918, 22724, 29889, 1767, 22130, 13, 4706, 1583, 29889, 29887, 29885, 29889, 842, 29918, 29873, 488, 29918, 2311, 29918, 14357, 29898, 1311, 29889, 3784, 29918, 7720, 29892, 13, 462, 462, 539, 1583, 29889, 510, 17801, 29918, 29873, 488, 3505, 29889, 3784, 3220, 3101, 13, 4706, 25900, 29918, 2103, 29918, 29886, 353, 1583, 29889, 29887, 29885, 29889, 657, 29918, 29873, 488, 29918, 2103, 29918, 29886, 29898, 1311, 29889, 3784, 29918, 7720, 29897, 13, 4706, 1881, 29918, 957, 6984, 353, 1583, 29889, 1028, 262, 3313, 29918, 957, 6984, 29889, 1767, 580, 13, 4706, 1881, 29918, 10889, 353, 1583, 29889, 1028, 262, 3313, 29918, 10889, 29889, 1767, 580, 13, 4706, 565, 448, 29900, 29889, 29941, 334, 25900, 29918, 2103, 29918, 29886, 5277, 1881, 29918, 957, 6984, 529, 29871, 29900, 29889, 29941, 334, 25900, 29918, 2103, 29918, 29886, 29901, 13, 9651, 1583, 29889, 29887, 29885, 29889, 842, 29918, 957, 6984, 29898, 1311, 29889, 3784, 29918, 7720, 29892, 1881, 29918, 957, 6984, 29897, 13, 4706, 1683, 29901, 13, 9651, 1059, 29918, 7645, 353, 6702, 3563, 6984, 5377, 310, 6068, 525, 13, 462, 308, 525, 3881, 8521, 29941, 29900, 29995, 6317, 29871, 29941, 29900, 29995, 3515, 2920, 467, 1495, 13, 4706, 1583, 29889, 29887, 29885, 29889, 842, 29918, 5450, 362, 29898, 13, 9651, 1583, 29889, 3784, 29918, 7720, 29892, 1583, 29889, 8896, 5592, 262, 3313, 29918, 5450, 362, 29889, 1767, 3101, 13, 4706, 565, 29871, 29900, 5277, 1881, 29918, 10889, 5277, 25900, 29918, 2103, 29918, 29886, 29901, 13, 9651, 1583, 29889, 29887, 29885, 29889, 842, 29918, 798, 29918, 10889, 29898, 1311, 29889, 3784, 29918, 7720, 29892, 1881, 29918, 10889, 29897, 13, 4706, 1683, 29901, 13, 9651, 1059, 29918, 7645, 353, 6702, 4301, 9500, 5377, 310, 6068, 525, 13, 462, 308, 525, 3881, 313, 29900, 6317, 3515, 2920, 467, 1495, 13, 4706, 1583, 29889, 29887, 29885, 29889, 842, 29918, 4990, 29918, 1054, 473, 29898, 13, 9651, 1583, 29889, 3784, 29918, 7720, 29892, 1583, 29889, 510, 17801, 29918, 1054, 473, 10378, 29889, 3784, 3220, 3101, 13, 4706, 1583, 29889, 29887, 29885, 29889, 842, 29918, 1114, 415, 573, 29918, 18037, 29918, 17590, 29898, 1311, 29889, 3784, 29918, 7720, 29892, 13, 9651, 1583, 29889, 3198, 3313, 29918, 1114, 415, 573, 20560, 29889, 275, 17817, 3101, 13, 4706, 565, 1583, 29889, 3198, 3313, 29918, 1114, 415, 573, 20560, 29889, 275, 17817, 7295, 13, 9651, 1583, 29889, 29887, 29885, 29889, 15807, 403, 29918, 18037, 29918, 24970, 29898, 1311, 29889, 3784, 29918, 7720, 29897, 13, 4706, 396, 7255, 23493, 4128, 29901, 13, 4706, 1583, 29889, 29887, 29885, 29889, 842, 29918, 29886, 15711, 29918, 2311, 29898, 1311, 29889, 3784, 29918, 7720, 29892, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29886, 15711, 3505, 29889, 1767, 3101, 13, 4706, 1583, 29889, 29887, 29885, 29889, 842, 29918, 29881, 5872, 29918, 2230, 29918, 14357, 29898, 1311, 29889, 3784, 29918, 7720, 29892, 13, 9651, 1583, 29889, 510, 17801, 29918, 29881, 5872, 2481, 29889, 3784, 3220, 3101, 13, 4706, 1583, 29889, 29887, 29885, 29889, 842, 29918, 562, 29939, 29918, 19207, 29898, 13, 9651, 1583, 29889, 3784, 29918, 7720, 29892, 1583, 29889, 1028, 262, 3313, 29918, 562, 29939, 12506, 29889, 1767, 3101, 13, 4706, 1583, 29889, 29887, 29885, 29889, 842, 29918, 562, 29939, 29918, 19207, 29918, 10289, 29898, 13, 9651, 1583, 29889, 3784, 29918, 7720, 29892, 1583, 29889, 1028, 262, 3313, 29918, 562, 29939, 12506, 10302, 29889, 1767, 3101, 13, 4706, 396, 3599, 284, 1810, 403, 6856, 29901, 13, 4706, 1583, 29889, 29887, 29885, 29889, 15807, 403, 29918, 7720, 29918, 1958, 29898, 1311, 29889, 3784, 29918, 7720, 29897, 13, 4706, 396, 10318, 281, 29881, 29914, 303, 335, 2910, 29901, 13, 4706, 1583, 29889, 29887, 29885, 29889, 24926, 29918, 9970, 29918, 303, 335, 29918, 1958, 29898, 1311, 29889, 3784, 29918, 7720, 29897, 13, 4706, 565, 1583, 29889, 16859, 1839, 9675, 16215, 11082, 29883, 29918, 8513, 2033, 1275, 525, 5574, 2396, 13, 9651, 1583, 29889, 29887, 29885, 29889, 842, 29918, 7720, 29918, 5064, 29918, 29879, 29898, 1311, 29889, 3784, 29918, 7720, 29892, 6856, 29918, 5064, 29897, 13, 9651, 1583, 29889, 29887, 29885, 29889, 5504, 29918, 4993, 29918, 1672, 3624, 29918, 3166, 29918, 629, 4841, 580, 13, 4706, 565, 1059, 29918, 7645, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 1311, 29892, 525, 2392, 742, 1059, 29918, 7645, 29892, 660, 3728, 3313, 29889, 20434, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 14345, 1367, 11368, 29911, 4214, 29903, 5868, 24336, 29928, 1495, 13, 9651, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 1722, 29918, 1114, 415, 573, 29918, 18037, 29918, 11671, 29887, 29898, 1311, 1125, 13, 4706, 1014, 29918, 15901, 353, 23255, 415, 573, 20560, 9585, 29928, 19920, 29898, 1311, 29889, 29887, 29885, 29892, 1583, 29889, 3784, 29918, 7720, 29897, 13, 4706, 1014, 29918, 15901, 29889, 4258, 29918, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 23255, 415, 573, 20560, 9585, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 3549, 278, 260, 5475, 304, 8147, 278, 16030, 363, 278, 7744, 573, 8569, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 330, 29885, 29892, 1857, 29918, 7720, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 29887, 29885, 353, 330, 29885, 13, 4706, 1583, 29889, 3784, 29918, 7720, 353, 1857, 29918, 7720, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 1114, 415, 573, 29918, 18037, 29918, 11027, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 1220, 6103, 29918, 3784, 5756, 29889, 12038, 877, 5756, 525, 718, 851, 29898, 3784, 29918, 7720, 876, 13, 4706, 1583, 29889, 7720, 29918, 453, 11036, 29889, 842, 29925, 861, 1958, 29898, 29984, 29925, 861, 1958, 877, 636, 1966, 2492, 1966, 7720, 29889, 2732, 8785, 13, 4706, 1583, 29889, 2142, 29918, 1376, 267, 353, 1583, 29889, 29887, 29885, 29889, 657, 29918, 1114, 415, 573, 29918, 18037, 29918, 1376, 267, 29898, 1311, 29889, 3784, 29918, 7720, 29897, 13, 4706, 396, 7437, 786, 2286, 363, 5279, 4629, 7744, 573, 8569, 260, 5475, 29901, 13, 4706, 1583, 29889, 16304, 29918, 2142, 29918, 1376, 267, 353, 1583, 29889, 2142, 29918, 1376, 267, 29889, 8552, 580, 13, 4706, 396, 3789, 701, 25900, 1831, 943, 363, 7744, 573, 8569, 260, 5475, 29901, 13, 4706, 1353, 29918, 974, 29918, 1376, 267, 353, 1583, 29889, 29887, 29885, 29889, 657, 29918, 4537, 29918, 1376, 267, 29898, 1311, 29889, 3784, 29918, 7720, 29897, 13, 4706, 25900, 29918, 1761, 29918, 710, 353, 6024, 29899, 2033, 13, 4706, 363, 25900, 297, 3464, 29898, 4537, 29918, 974, 29918, 1376, 267, 1125, 13, 9651, 25900, 29918, 1761, 29918, 710, 29889, 4397, 29898, 710, 29898, 29873, 488, 876, 13, 4706, 363, 474, 297, 3464, 29898, 29941, 1125, 13, 9651, 565, 1583, 29889, 2142, 29918, 1376, 267, 29961, 29875, 29962, 6736, 1353, 29918, 974, 29918, 1376, 267, 29901, 13, 18884, 1583, 29889, 2142, 29918, 1376, 267, 29961, 29875, 29962, 353, 448, 29896, 13, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 26214, 8091, 29889, 1271, 10140, 1338, 29898, 5574, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 26214, 8091, 29889, 1202, 6913, 29898, 29873, 488, 29918, 1761, 29918, 710, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 26214, 8091, 29889, 842, 7583, 3220, 29898, 1311, 29889, 2142, 29918, 1376, 267, 29961, 29900, 29962, 718, 29871, 29896, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 26214, 8091, 29889, 3784, 3220, 7590, 29889, 6915, 29898, 13, 9651, 1583, 29889, 5504, 29918, 11027, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 26214, 8091, 29889, 1271, 10140, 1338, 29898, 8824, 29897, 13, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 26214, 7341, 29889, 1271, 10140, 1338, 29898, 5574, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 26214, 7341, 29889, 1202, 6913, 29898, 29873, 488, 29918, 1761, 29918, 710, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 26214, 7341, 29889, 842, 7583, 3220, 29898, 1311, 29889, 2142, 29918, 1376, 267, 29961, 29896, 29962, 718, 29871, 29896, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 26214, 7341, 29889, 3784, 3220, 7590, 29889, 6915, 29898, 13, 9651, 1583, 29889, 5504, 29918, 11027, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 26214, 7341, 29889, 1271, 10140, 1338, 29898, 8824, 29897, 13, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 19357, 8091, 29889, 1271, 10140, 1338, 29898, 5574, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 19357, 8091, 29889, 1202, 6913, 29898, 29873, 488, 29918, 1761, 29918, 710, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 19357, 8091, 29889, 842, 7583, 3220, 29898, 1311, 29889, 2142, 29918, 1376, 267, 29961, 29906, 29962, 718, 29871, 29896, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 19357, 8091, 29889, 3784, 3220, 7590, 29889, 6915, 29898, 13, 9651, 1583, 29889, 5504, 29918, 11027, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29873, 488, 19357, 8091, 29889, 1271, 10140, 1338, 29898, 8824, 29897, 13, 13, 4706, 1583, 29889, 5504, 29918, 11027, 580, 13, 13, 1678, 822, 2767, 29918, 11027, 29898, 1311, 1125, 13, 4706, 9995, 2577, 4629, 1985, 24610, 322, 8147, 3978, 399, 29928, 322, 13, 965, 16030, 565, 1950, 29889, 13, 4706, 9995, 13, 4706, 1583, 29889, 2142, 29918, 1376, 267, 29961, 29900, 29962, 353, 1583, 29889, 510, 17801, 29918, 29873, 488, 26214, 8091, 29889, 3784, 3220, 580, 448, 29871, 29896, 13, 4706, 1583, 29889, 2142, 29918, 1376, 267, 29961, 29896, 29962, 353, 1583, 29889, 510, 17801, 29918, 29873, 488, 26214, 7341, 29889, 3784, 3220, 580, 448, 29871, 29896, 13, 4706, 1583, 29889, 2142, 29918, 1376, 267, 29961, 29906, 29962, 353, 1583, 29889, 510, 17801, 29918, 29873, 488, 19357, 8091, 29889, 3784, 3220, 580, 448, 29871, 29896, 13, 13, 4706, 565, 1583, 29889, 2142, 29918, 1376, 267, 29961, 29900, 29962, 6736, 29871, 29900, 29901, 13, 9651, 1583, 29889, 1643, 29918, 29873, 29896, 29889, 12038, 877, 29911, 488, 525, 718, 851, 29898, 1311, 29889, 2142, 29918, 1376, 267, 29961, 29900, 2314, 718, 525, 29901, 1495, 13, 9651, 281, 29881, 353, 1583, 29889, 29887, 29885, 29889, 657, 29918, 29873, 488, 29918, 9970, 29898, 1311, 29889, 3784, 29918, 7720, 29892, 1583, 29889, 2142, 29918, 1376, 267, 29961, 29900, 2314, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29873, 29896, 29889, 842, 1917, 29898, 9970, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 1643, 29918, 29873, 29896, 29889, 12038, 877, 29911, 488, 8521, 29897, 584, 1495, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29873, 29896, 29889, 842, 1917, 29898, 29900, 29897, 13, 4706, 565, 1583, 29889, 2142, 29918, 1376, 267, 29961, 29896, 29962, 6736, 29871, 29900, 29901, 13, 9651, 1583, 29889, 1643, 29918, 29873, 29906, 29889, 12038, 877, 29911, 488, 525, 718, 851, 29898, 1311, 29889, 2142, 29918, 1376, 267, 29961, 29896, 2314, 718, 525, 29901, 1495, 13, 9651, 281, 29881, 353, 1583, 29889, 29887, 29885, 29889, 657, 29918, 29873, 488, 29918, 9970, 29898, 1311, 29889, 3784, 29918, 7720, 29892, 1583, 29889, 2142, 29918, 1376, 267, 29961, 29896, 2314, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29873, 29906, 29889, 842, 1917, 29898, 9970, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 1643, 29918, 29873, 29906, 29889, 12038, 877, 29911, 488, 8521, 29897, 584, 1495, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29873, 29906, 29889, 842, 1917, 29898, 29900, 29897, 13, 4706, 565, 1583, 29889, 2142, 29918, 1376, 267, 29961, 29906, 29962, 6736, 29871, 29900, 29901, 13, 9651, 1583, 29889, 1643, 29918, 29873, 29941, 29889, 12038, 877, 29911, 488, 525, 718, 851, 29898, 1311, 29889, 2142, 29918, 1376, 267, 29961, 29906, 2314, 718, 525, 29901, 1495, 13, 9651, 281, 29881, 353, 1583, 29889, 29887, 29885, 29889, 657, 29918, 29873, 488, 29918, 9970, 29898, 1311, 29889, 3784, 29918, 7720, 29892, 1583, 29889, 2142, 29918, 1376, 267, 29961, 29906, 2314, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29873, 29941, 29889, 842, 1917, 29898, 9970, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 1643, 29918, 29873, 29941, 29889, 12038, 877, 29911, 488, 8521, 29897, 584, 1495, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29873, 29941, 29889, 842, 1917, 29898, 29900, 29897, 13, 13, 4706, 1583, 29889, 29887, 29885, 29889, 842, 29918, 1114, 415, 573, 29918, 18037, 29918, 1376, 267, 29898, 1311, 29889, 3784, 29918, 7720, 29892, 1583, 29889, 2142, 29918, 1376, 267, 29897, 13, 4706, 396, 3967, 304, 8147, 8569, 2910, 29901, 13, 4706, 1583, 29889, 2142, 29918, 8698, 353, 1583, 29889, 29887, 29885, 29889, 15807, 403, 29918, 18037, 29918, 24970, 29898, 1311, 29889, 3784, 29918, 7720, 29897, 13, 4706, 565, 1583, 29889, 2142, 29918, 8698, 29901, 13, 9651, 4656, 353, 1583, 29889, 29887, 29885, 29889, 657, 29918, 1114, 415, 573, 29918, 18037, 29918, 24970, 29898, 1311, 29889, 3784, 29918, 7720, 29897, 13, 9651, 281, 29881, 353, 1583, 29889, 29887, 29885, 29889, 657, 29918, 29873, 488, 29918, 9970, 29898, 1311, 29889, 3784, 29918, 7720, 29892, 29871, 29900, 29897, 13, 9651, 1857, 29918, 4882, 29918, 710, 353, 313, 13, 18884, 525, 24668, 29901, 525, 718, 22372, 29900, 29901, 29889, 29953, 29888, 29913, 4286, 4830, 29898, 9970, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 18884, 718, 525, 5654, 10436, 29876, 29915, 718, 18460, 29898, 29947, 29955, 29896, 29900, 29897, 13, 18884, 718, 525, 29916, 29901, 525, 718, 22372, 29900, 29901, 29889, 29953, 29888, 29913, 4286, 4830, 29898, 5105, 29961, 29900, 29962, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 18884, 718, 21921, 525, 718, 18460, 29898, 29947, 29955, 29896, 29900, 29897, 718, 525, 29891, 29901, 525, 718, 22372, 29900, 29901, 29889, 29953, 29888, 29913, 4286, 4830, 29898, 5105, 29961, 29896, 29962, 334, 29871, 29896, 29900, 29900, 29900, 876, 13, 4706, 1683, 29901, 13, 9651, 1857, 29918, 4882, 29918, 710, 353, 525, 797, 2146, 4543, 470, 10240, 25900, 9262, 29915, 13, 13, 4706, 1583, 29889, 726, 6103, 29918, 12574, 25584, 10070, 29889, 12038, 29898, 3784, 29918, 4882, 29918, 710, 29897, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 2142, 29918, 8698, 29901, 13, 9651, 2428, 2141, 16044, 580, 13, 4706, 1683, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 2392, 742, 13, 18884, 525, 797, 2146, 4543, 470, 10240, 25900, 9262, 29889, 15808, 8147, 525, 13, 18884, 525, 12574, 1985, 5418, 322, 8569, 16030, 29889, 742, 13, 462, 660, 3728, 3313, 29889, 20434, 29897, 13, 13, 1678, 822, 12560, 29898, 1311, 1125, 13, 4706, 396, 11654, 487, 3517, 9262, 29901, 13, 4706, 1583, 29889, 29887, 29885, 29889, 842, 29918, 1114, 415, 573, 29918, 18037, 29918, 1376, 267, 29898, 1311, 29889, 3784, 29918, 7720, 29892, 1583, 29889, 16304, 29918, 2142, 29918, 1376, 267, 29897, 13, 4706, 396, 3599, 284, 1810, 403, 411, 3517, 4444, 29901, 13, 4706, 1583, 29889, 29887, 29885, 29889, 15807, 403, 29918, 18037, 29918, 24970, 29898, 1311, 29889, 3784, 29918, 7720, 29897, 13, 4706, 2428, 2141, 276, 622, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 23255, 415, 573, 20560, 15097, 29928, 19920, 29898, 29984, 7647, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1857, 29918, 2142, 29918, 1376, 267, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 8391, 353, 6213, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 1114, 415, 573, 29918, 18037, 29918, 21731, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 7720, 29918, 453, 11036, 29889, 842, 29925, 861, 1958, 29898, 29984, 29925, 861, 1958, 877, 636, 1966, 2492, 1966, 7720, 29889, 2732, 8785, 13, 4706, 565, 1857, 29918, 2142, 29918, 1376, 267, 29961, 29900, 29962, 6736, 29871, 29900, 29901, 13, 9651, 1583, 29889, 5910, 3125, 29918, 1066, 29900, 29889, 12038, 29898, 710, 29898, 3784, 29918, 2142, 29918, 1376, 267, 29961, 29900, 12622, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 5910, 3125, 29918, 1066, 29900, 29889, 12038, 877, 29899, 1495, 13, 4706, 565, 1857, 29918, 2142, 29918, 1376, 267, 29961, 29896, 29962, 6736, 29871, 29900, 29901, 13, 9651, 1583, 29889, 5910, 3125, 29918, 1066, 29896, 29889, 12038, 29898, 710, 29898, 3784, 29918, 2142, 29918, 1376, 267, 29961, 29896, 12622, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 5910, 3125, 29918, 1066, 29896, 29889, 12038, 877, 29899, 1495, 13, 4706, 565, 1857, 29918, 2142, 29918, 1376, 267, 29961, 29906, 29962, 6736, 29871, 29900, 29901, 13, 9651, 1583, 29889, 5910, 3125, 29918, 1066, 29906, 29889, 12038, 29898, 710, 29898, 3784, 29918, 2142, 29918, 1376, 267, 29961, 29906, 12622, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 5910, 3125, 29918, 1066, 29906, 29889, 12038, 877, 29899, 1495, 13, 4706, 1583, 29889, 5910, 3125, 29918, 1066, 29900, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 2622, 29918, 1066, 29900, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 1066, 29896, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 2622, 29918, 1066, 29896, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 1066, 29906, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 2622, 29918, 1066, 29906, 29897, 13, 13, 1678, 822, 1831, 29918, 1066, 29900, 29898, 1311, 1125, 13, 4706, 1583, 29889, 8391, 353, 29871, 29900, 13, 4706, 2428, 2141, 16044, 580, 13, 13, 1678, 822, 1831, 29918, 1066, 29896, 29898, 1311, 1125, 13, 4706, 1583, 29889, 8391, 353, 29871, 29896, 13, 4706, 2428, 2141, 16044, 580, 13, 13, 1678, 822, 1831, 29918, 1066, 29906, 29898, 1311, 1125, 13, 4706, 1583, 29889, 8391, 353, 29871, 29906, 13, 4706, 2428, 2141, 16044, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 11657, 21281, 362, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 7277, 278, 13733, 10696, 310, 263, 4629, 6856, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 4629, 29918, 7720, 29892, 330, 29885, 29892, 274, 16434, 29892, 1667, 29918, 7165, 29918, 9990, 29892, 1667, 29918, 7165, 29918, 21001, 1125, 13, 4706, 1583, 29889, 8391, 29918, 7720, 353, 4629, 29918, 7720, 13, 4706, 1583, 29889, 29887, 29885, 353, 330, 29885, 13, 4706, 1583, 29889, 16859, 353, 274, 16434, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 353, 1667, 29918, 7165, 29918, 9990, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 353, 1667, 29918, 7165, 29918, 21001, 13, 4706, 1583, 29889, 5450, 362, 29918, 262, 29918, 18035, 353, 7700, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 3167, 29918, 7720, 29918, 5450, 362, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 1643, 29918, 8216, 29889, 12038, 29898, 13, 9651, 285, 29915, 21281, 362, 310, 4629, 6856, 426, 1311, 29889, 8391, 29918, 7720, 29913, 297, 14496, 29901, 1495, 13, 13, 4706, 396, 19152, 1857, 10696, 322, 3978, 304, 9025, 563, 29877, 2984, 13, 4706, 1583, 29889, 24957, 29918, 2521, 353, 1583, 29889, 29887, 29885, 29889, 657, 29918, 5450, 362, 29898, 8391, 29918, 7720, 29897, 13, 4706, 1583, 29889, 24957, 29918, 12574, 353, 1583, 29889, 29887, 29885, 29889, 657, 29918, 7720, 29918, 12574, 29918, 29879, 29898, 8391, 29918, 7720, 29897, 13, 4706, 396, 3789, 2847, 1819, 29901, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 2521, 29889, 842, 1917, 29898, 1311, 29889, 24957, 29918, 2521, 29897, 13, 4706, 396, 14866, 1241, 995, 29871, 29900, 636, 29955, 29896, 29929, 313, 7516, 625, 278, 10696, 297, 14496, 29897, 363, 29871, 29900, 29889, 29945, 7426, 6576, 13, 4706, 1583, 29889, 22672, 16973, 1241, 29918, 2521, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 2521, 29889, 1767, 580, 334, 29871, 29906, 29897, 13, 13, 4706, 1583, 29889, 22672, 16973, 1241, 29918, 2521, 29889, 1767, 7590, 29889, 6915, 29898, 1311, 29889, 5504, 29918, 1028, 262, 1884, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 2521, 29889, 1767, 7590, 29889, 6915, 29898, 1311, 29889, 5504, 29918, 23165, 29897, 13, 13, 1678, 822, 1820, 10923, 2624, 29898, 1311, 29892, 1741, 1125, 13, 4706, 396, 315, 905, 7670, 10923, 2624, 746, 1404, 3965, 267, 9041, 313, 1228, 3538, 7928, 723, 6876, 1846, 13, 4706, 565, 1741, 29889, 1989, 580, 1275, 14705, 29889, 2558, 29918, 10399, 470, 1741, 29889, 1989, 580, 1275, 14705, 29889, 2558, 29918, 11609, 29901, 13, 9651, 1741, 29889, 16044, 580, 13, 13, 1678, 822, 2767, 29918, 1028, 262, 1884, 29898, 1311, 1125, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 2521, 29889, 1271, 10140, 1338, 29898, 5574, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 2521, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 22672, 16973, 1241, 29918, 2521, 29889, 1767, 580, 847, 29871, 29906, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 2521, 29889, 1271, 10140, 1338, 29898, 8824, 29897, 13, 4706, 1583, 29889, 5504, 29918, 7720, 580, 13, 13, 1678, 822, 2767, 29918, 23165, 29898, 1311, 1125, 13, 4706, 1583, 29889, 22672, 16973, 1241, 29918, 2521, 29889, 1271, 10140, 1338, 29898, 5574, 29897, 13, 4706, 1583, 29889, 22672, 16973, 1241, 29918, 2521, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 2521, 29889, 1767, 580, 334, 29871, 29906, 29897, 13, 4706, 1583, 29889, 22672, 16973, 1241, 29918, 2521, 29889, 1271, 10140, 1338, 29898, 8824, 29897, 13, 4706, 1583, 29889, 5504, 29918, 7720, 580, 13, 13, 1678, 822, 2767, 29918, 7720, 29898, 1311, 1125, 13, 4706, 9995, 2052, 368, 278, 716, 13733, 10696, 322, 2654, 1610, 278, 1776, 637, 15945, 29908, 13, 4706, 1583, 29889, 2230, 29918, 974, 29918, 4230, 29918, 5450, 362, 353, 931, 580, 13, 4706, 565, 451, 1583, 29889, 5450, 362, 29918, 262, 29918, 18035, 29901, 13, 9651, 396, 7370, 3244, 304, 9801, 1776, 637, 338, 12061, 411, 11073, 322, 758, 7406, 13, 9651, 396, 1156, 13733, 8676, 29889, 13, 9651, 1583, 29889, 5450, 362, 29918, 262, 29918, 18035, 353, 5852, 13, 9651, 2767, 29918, 1493, 637, 29918, 2541, 29918, 18829, 29918, 7097, 353, 3244, 292, 29889, 4899, 29898, 13, 18884, 3646, 29922, 1311, 29889, 5504, 29918, 1493, 637, 29918, 2541, 29918, 18829, 29892, 13, 18884, 6389, 29922, 3101, 13, 9651, 2767, 29918, 1493, 637, 29918, 2541, 29918, 18829, 29918, 7097, 29889, 2962, 580, 13, 4706, 565, 1583, 29889, 13399, 3125, 29918, 29886, 11002, 29907, 14056, 29889, 275, 17817, 7295, 13, 9651, 396, 3617, 1857, 8442, 310, 6856, 29901, 13, 9651, 8442, 29918, 8235, 29892, 8442, 29918, 4518, 353, 1583, 29889, 29887, 29885, 29889, 657, 29918, 7720, 29918, 1760, 276, 29918, 29881, 29898, 1311, 29889, 8391, 29918, 7720, 29897, 13, 9651, 396, 3789, 716, 10696, 13, 9651, 1583, 29889, 29887, 29885, 29889, 842, 29918, 5450, 362, 29898, 13, 18884, 1583, 29889, 8391, 29918, 7720, 29892, 1583, 29889, 8896, 5592, 262, 3313, 29918, 2521, 29889, 1767, 3101, 13, 9651, 1583, 29889, 29887, 29885, 29889, 23361, 29918, 11316, 29918, 7720, 29918, 1760, 276, 29898, 13, 18884, 1583, 29889, 8391, 29918, 7720, 29892, 8442, 29918, 8235, 29892, 8442, 29918, 4518, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 29887, 29885, 29889, 842, 29918, 5450, 362, 29898, 13, 18884, 1583, 29889, 8391, 29918, 7720, 29892, 1583, 29889, 8896, 5592, 262, 3313, 29918, 2521, 29889, 1767, 3101, 13, 9651, 1583, 29889, 29887, 29885, 29889, 15807, 403, 29918, 7720, 29918, 1958, 29898, 1311, 29889, 8391, 29918, 7720, 29897, 13, 13, 4706, 396, 382, 2415, 7182, 304, 2654, 1610, 29901, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 29928, 4717, 29956, 341, 29963, 11698, 365, 2882, 6670, 29903, 1495, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 4216, 29918, 2541, 29918, 21134, 29898, 1311, 1125, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 29928, 4717, 29956, 341, 29963, 1495, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 2767, 29918, 1493, 637, 29918, 2541, 29918, 18829, 29898, 1311, 1125, 13, 4706, 9995, 9039, 1610, 278, 1776, 637, 1728, 21301, 292, 11073, 29914, 1457, 7406, 1156, 472, 13, 4706, 3203, 29871, 29900, 29889, 29941, 6923, 505, 4502, 1951, 1833, 2767, 310, 278, 13733, 10696, 1213, 15945, 13, 4706, 8341, 29918, 21001, 353, 1605, 3567, 580, 13, 4706, 8341, 29918, 21001, 29889, 29879, 29889, 6915, 29898, 1311, 29889, 4012, 29918, 2541, 29918, 21134, 29897, 13, 4706, 1857, 29918, 2230, 353, 1583, 29889, 2230, 29918, 974, 29918, 4230, 29918, 5450, 362, 13, 4706, 1550, 313, 3784, 29918, 2230, 448, 1583, 29889, 2230, 29918, 974, 29918, 4230, 29918, 5450, 362, 529, 29871, 29900, 29889, 29941, 1125, 13, 9651, 8709, 29898, 29900, 29889, 29896, 29897, 13, 9651, 1857, 29918, 2230, 4619, 29871, 29900, 29889, 29896, 13, 4706, 1583, 29889, 5450, 362, 29918, 262, 29918, 18035, 353, 7700, 13, 4706, 8341, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 12560, 29898, 1311, 1125, 13, 4706, 396, 830, 1765, 304, 3517, 10696, 322, 3978, 29901, 13, 4706, 1583, 29889, 29887, 29885, 29889, 842, 29918, 5450, 362, 29898, 1311, 29889, 8391, 29918, 7720, 29892, 1583, 29889, 24957, 29918, 2521, 29897, 13, 4706, 1583, 29889, 29887, 29885, 29889, 842, 29918, 7720, 29918, 12574, 29918, 29879, 29898, 1311, 29889, 8391, 29918, 7720, 29892, 1583, 29889, 24957, 29918, 12574, 29897, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 29928, 4717, 29956, 341, 29963, 1495, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 4706, 2428, 2141, 276, 622, 580, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 396, 20535, 403, 716, 6856, 2910, 411, 716, 13733, 10696, 29901, 13, 4706, 1583, 29889, 29887, 29885, 29889, 15807, 403, 29918, 7720, 29918, 1958, 29898, 1311, 29889, 8391, 29918, 7720, 29897, 13, 4706, 565, 1583, 29889, 16859, 1839, 9675, 16215, 11082, 29883, 29918, 8513, 2033, 1275, 525, 5574, 2396, 13, 9651, 1583, 29889, 29887, 29885, 29889, 5504, 29918, 4993, 29918, 1672, 3624, 29918, 3166, 29918, 629, 4841, 580, 13, 4706, 2428, 2141, 16044, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 7255, 29939, 9585, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 12024, 1404, 10365, 1274, 23493, 6055, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2295, 29892, 5096, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 16859, 353, 2295, 13, 4706, 1583, 29889, 1429, 353, 5096, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 562, 29939, 29918, 11027, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2622, 9170, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 2622, 29918, 12322, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2622, 9170, 29889, 842, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 2622, 3972, 29889, 2732, 8785, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2622, 9170, 29889, 842, 12492, 3505, 29898, 29984, 3505, 29898, 29896, 29953, 29892, 29871, 29896, 29953, 876, 13, 4706, 396, 17440, 1857, 6055, 29901, 13, 4706, 1583, 29889, 1220, 6103, 29918, 3188, 9170, 29889, 12038, 29898, 1311, 29889, 16859, 1839, 562, 29939, 16215, 3188, 29918, 3972, 11287, 13, 4706, 1583, 29889, 1220, 6103, 29918, 3188, 9170, 29889, 726, 7590, 29889, 6915, 29898, 1311, 29889, 5504, 29918, 1429, 29918, 978, 29897, 13, 4706, 1583, 29889, 5504, 29918, 1429, 29918, 978, 580, 13, 4706, 1583, 29889, 1482, 29918, 3188, 29918, 3972, 353, 6629, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 18337, 1349, 860, 2264, 29889, 842, 1917, 29898, 1311, 29889, 1429, 29889, 657, 29918, 18337, 29918, 27996, 2264, 3101, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 4537, 29903, 29399, 29889, 842, 1917, 29898, 1311, 29889, 1429, 29889, 657, 29918, 4537, 29918, 29879, 29399, 3101, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 18337, 17779, 29889, 842, 1917, 29898, 1311, 29889, 1429, 29889, 657, 29918, 18337, 29918, 11808, 3101, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29920, 26023, 29889, 842, 1917, 29898, 1311, 29889, 1429, 29889, 657, 29918, 7827, 29918, 29920, 29918, 12765, 3101, 13, 4706, 1583, 29889, 3198, 3313, 29918, 6717, 19346, 1469, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 16859, 1839, 9675, 16215, 6717, 29918, 19635, 2033, 1275, 525, 5574, 1495, 13, 4706, 1583, 29889, 5504, 29918, 2974, 29918, 1220, 5628, 580, 13, 4706, 1583, 29889, 3198, 3313, 29918, 6717, 19346, 1469, 29889, 3859, 7590, 29889, 6915, 29898, 13, 9651, 1583, 29889, 5504, 29918, 2974, 29918, 1220, 5628, 29897, 13, 4706, 1583, 29889, 3198, 3313, 29918, 29923, 3912, 6880, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 16859, 1839, 562, 29939, 16215, 29872, 400, 29918, 2696, 29918, 7045, 29918, 1429, 2033, 1275, 525, 5574, 1495, 13, 4706, 1583, 29889, 1220, 6103, 29918, 7299, 1469, 6004, 29889, 12038, 29898, 13, 9651, 1583, 29889, 16859, 1839, 9675, 16215, 19635, 29918, 2974, 29918, 2271, 11287, 13, 4706, 1583, 29889, 1220, 6103, 29918, 6406, 9823, 29889, 12038, 29898, 13, 9651, 1583, 29889, 16859, 1839, 9675, 16215, 19635, 29918, 2974, 29918, 6406, 11287, 13, 4706, 1583, 29889, 1220, 6103, 29918, 4836, 1170, 29889, 12038, 29898, 13, 9651, 1583, 29889, 16859, 1839, 9675, 16215, 19635, 29918, 4836, 29918, 978, 11287, 13, 4706, 396, 3295, 519, 1023, 10917, 1884, 267, 746, 3725, 29924, 7408, 1304, 29901, 13, 4706, 565, 1583, 29889, 16859, 1839, 9675, 16215, 1509, 29918, 29885, 2357, 29873, 608, 2033, 1275, 525, 8824, 2396, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 18337, 1349, 860, 2264, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29920, 26023, 29889, 842, 10861, 29898, 8824, 29897, 13, 13, 1678, 822, 1831, 29918, 12322, 29898, 1311, 1125, 13, 4706, 9995, 12024, 1404, 1831, 278, 2967, 3884, 363, 278, 5096, 1274, 23493, 29889, 13, 965, 3940, 393, 278, 2186, 1014, 12083, 1024, 297, 278, 3884, 1347, 338, 1304, 408, 13, 965, 278, 1024, 310, 278, 5096, 297, 317, 29933, 12665, 3027, 29889, 13, 4706, 9995, 13, 4706, 565, 7431, 29898, 1311, 29889, 16859, 1839, 562, 29939, 16215, 3188, 29918, 3972, 11287, 1405, 29871, 29906, 29901, 13, 9651, 1369, 29918, 2084, 353, 1583, 29889, 16859, 1839, 562, 29939, 16215, 3188, 29918, 3972, 2033, 7503, 29941, 29962, 13, 4706, 1683, 29901, 13, 9651, 1369, 29918, 2084, 353, 525, 29907, 22298, 29915, 13, 4706, 1583, 29889, 1220, 6103, 29918, 3188, 9170, 29889, 12038, 29898, 13, 9651, 851, 29898, 29984, 2283, 7647, 29889, 657, 1252, 15423, 9882, 29898, 13, 18884, 1583, 29892, 525, 3549, 18862, 742, 13, 18884, 1369, 29918, 2084, 29892, 13, 18884, 660, 2283, 7647, 29889, 8964, 9170, 29879, 11730, 8106, 6506, 11219, 742, 525, 1966, 8785, 13, 13, 1678, 822, 2767, 29918, 2974, 29918, 1220, 5628, 29898, 1311, 1125, 13, 4706, 1583, 29889, 1220, 6103, 29918, 4836, 1170, 29889, 842, 10861, 29898, 13, 9651, 1583, 29889, 3198, 3313, 29918, 6717, 19346, 1469, 29889, 275, 17817, 3101, 13, 13, 1678, 822, 2767, 29918, 1429, 29918, 978, 29898, 1311, 1125, 13, 4706, 2967, 29918, 3972, 353, 1583, 29889, 1220, 6103, 29918, 3188, 9170, 29889, 726, 2141, 29878, 17010, 29898, 29878, 12764, 29914, 25710, 13, 4706, 1583, 29889, 1643, 29918, 1429, 1170, 29889, 12038, 29898, 3188, 29918, 3972, 29961, 3188, 29918, 3972, 29889, 29878, 2886, 877, 1966, 1495, 718, 29871, 29896, 29901, 2314, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 2551, 353, 5852, 13, 4706, 4629, 29918, 3972, 353, 1583, 29889, 1220, 6103, 29918, 3188, 9170, 29889, 726, 580, 13, 4706, 396, 15154, 25053, 24765, 267, 322, 24358, 13, 4706, 9120, 29918, 3972, 353, 4629, 29918, 3972, 29889, 29878, 17010, 29898, 29878, 12764, 29914, 25710, 13, 4706, 396, 22108, 8162, 322, 6375, 24765, 267, 13, 4706, 9120, 29918, 3972, 353, 9120, 29918, 3972, 29889, 6506, 877, 13420, 22868, 2824, 6506, 11219, 742, 525, 1966, 1495, 13, 4706, 396, 2216, 1598, 1404, 565, 3884, 471, 9120, 13, 4706, 565, 9120, 29918, 3972, 2804, 4629, 29918, 3972, 29901, 13, 9651, 1583, 29889, 1220, 6103, 29918, 3188, 9170, 29889, 12038, 29898, 1545, 2164, 29918, 3972, 29897, 13, 9651, 1583, 29889, 5504, 29918, 1429, 29918, 978, 580, 13, 9651, 660, 3728, 3313, 29889, 19678, 29898, 13, 18884, 1583, 29892, 525, 5160, 3884, 1024, 9120, 742, 13, 18884, 525, 1576, 4629, 2967, 3884, 471, 9120, 491, 11077, 525, 13, 18884, 525, 3018, 6504, 24765, 267, 322, 24358, 322, 15270, 8162, 411, 525, 13, 18884, 525, 870, 414, 29883, 2361, 322, 6375, 24765, 267, 411, 1250, 17057, 267, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 4706, 396, 5399, 565, 2224, 3743, 263, 7899, 5497, 13, 4706, 1072, 353, 337, 29889, 12198, 877, 29985, 29961, 29874, 29899, 25265, 29899, 29999, 5387, 1966, 29905, 29938, 1495, 13, 4706, 565, 451, 1072, 29889, 4352, 29898, 1545, 2164, 29918, 3972, 7503, 29941, 29962, 1125, 13, 9651, 2551, 353, 7700, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 2392, 742, 13, 18884, 525, 12148, 6084, 278, 2989, 2224, 304, 278, 2967, 3884, 29889, 739, 525, 13, 18884, 525, 21969, 3380, 411, 263, 7899, 5497, 29892, 363, 1342, 29901, 376, 29928, 22298, 17794, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 4706, 1683, 29901, 13, 9651, 396, 960, 664, 3493, 3884, 947, 451, 3447, 1863, 29892, 1653, 372, 304, 1243, 13, 9651, 396, 3692, 2224, 338, 2854, 322, 15579, 13, 9651, 664, 3493, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 1545, 2164, 29918, 3972, 29892, 525, 1287, 3493, 1495, 13, 9651, 1018, 29901, 13, 18884, 565, 451, 2897, 29889, 2084, 29889, 9933, 29898, 1287, 3493, 29918, 3972, 1125, 13, 462, 1678, 2897, 29889, 29885, 12535, 12935, 29898, 1287, 3493, 29918, 3972, 29897, 13, 9651, 5174, 8960, 408, 321, 29901, 13, 18884, 2551, 353, 7700, 13, 18884, 660, 3728, 3313, 29889, 27392, 29898, 13, 462, 1678, 1583, 29892, 525, 2392, 742, 13, 462, 1678, 525, 1576, 4629, 2967, 3884, 338, 8340, 470, 525, 13, 462, 1678, 525, 262, 5943, 1821, 29901, 525, 718, 851, 29898, 29872, 511, 13, 462, 1678, 660, 3728, 3313, 29889, 20434, 29897, 13, 13, 4706, 565, 29871, 29945, 5277, 1583, 29889, 1028, 262, 3313, 29918, 18337, 1349, 860, 2264, 29889, 1767, 580, 5277, 29871, 29906, 29900, 29900, 29901, 13, 9651, 1583, 29889, 1429, 29889, 842, 29918, 18337, 29918, 27996, 2264, 29898, 1311, 29889, 1028, 262, 3313, 29918, 18337, 1349, 860, 2264, 29889, 1767, 3101, 13, 4706, 1353, 29918, 29879, 29399, 353, 1583, 29889, 1028, 262, 3313, 29918, 4537, 29903, 29399, 29889, 1767, 580, 13, 4706, 1583, 29889, 1429, 29889, 842, 29918, 4537, 29918, 29879, 29399, 29898, 4537, 29918, 29879, 29399, 29897, 13, 4706, 565, 313, 1311, 29889, 1028, 262, 3313, 29918, 18337, 17779, 29889, 1767, 580, 5277, 1353, 29918, 29879, 29399, 13, 9651, 470, 1353, 29918, 29879, 29399, 1275, 29871, 29900, 1125, 13, 9651, 1583, 29889, 1429, 29889, 842, 29918, 18337, 29918, 11808, 29898, 1311, 29889, 1028, 262, 3313, 29918, 18337, 17779, 29889, 1767, 3101, 13, 4706, 1583, 29889, 1429, 29889, 842, 29918, 7827, 29918, 29920, 29918, 12765, 29898, 1311, 29889, 8896, 5592, 262, 3313, 29918, 29920, 26023, 29889, 1767, 3101, 13, 4706, 1583, 29889, 16859, 1839, 562, 29939, 16215, 29872, 400, 29918, 2696, 29918, 7045, 29918, 1429, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 3198, 3313, 29918, 29923, 3912, 6880, 29889, 275, 17817, 3101, 13, 4706, 1583, 29889, 16859, 1839, 9675, 16215, 6717, 29918, 19635, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 3198, 3313, 29918, 6717, 19346, 1469, 29889, 275, 17817, 3101, 13, 4706, 565, 1583, 29889, 3198, 3313, 29918, 6717, 19346, 1469, 29889, 275, 17817, 7295, 13, 9651, 15562, 29918, 2974, 29918, 2271, 353, 1583, 29889, 1220, 6103, 29918, 7299, 1469, 6004, 29889, 726, 580, 13, 9651, 565, 451, 2854, 4097, 29889, 2271, 29898, 19635, 29918, 2974, 29918, 2271, 1125, 13, 18884, 660, 3728, 3313, 29889, 27392, 29898, 13, 462, 1678, 1583, 29892, 525, 2392, 742, 13, 462, 1678, 525, 18417, 1923, 3988, 338, 8340, 29889, 10726, 278, 3988, 297, 278, 525, 13, 462, 1678, 525, 5205, 5285, 934, 29889, 742, 13, 462, 1678, 660, 3728, 3313, 29889, 20434, 29897, 13, 9651, 1583, 29889, 16859, 1839, 9675, 16215, 19635, 29918, 4836, 29918, 978, 2033, 353, 313, 13, 18884, 1583, 29889, 1220, 6103, 29918, 4836, 1170, 29889, 726, 3101, 13, 4706, 565, 5135, 4537, 29918, 29879, 29399, 1405, 29871, 29900, 29897, 13, 9651, 322, 313, 1311, 29889, 1028, 262, 3313, 29918, 18337, 17779, 29889, 1767, 580, 1405, 1353, 29918, 29879, 29399, 22164, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 2392, 742, 13, 18884, 525, 29903, 5897, 6795, 1818, 367, 7968, 1135, 470, 5186, 304, 525, 13, 18884, 525, 5182, 1353, 310, 269, 29399, 29889, 742, 660, 3728, 3313, 29889, 20434, 29897, 13, 9651, 2551, 353, 7700, 13, 4706, 565, 2551, 29901, 13, 9651, 1583, 29889, 16859, 1839, 562, 29939, 16215, 3188, 29918, 3972, 2033, 353, 9120, 29918, 3972, 13, 9651, 2428, 2141, 16044, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 4721, 7264, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 12024, 1404, 1423, 278, 1274, 23493, 6055, 1434, 6257, 263, 5096, 29889, 13, 539, 3115, 1510, 6055, 393, 508, 871, 367, 3939, 297, 27692, 322, 1235, 1404, 10365, 13, 539, 963, 363, 12183, 11976, 29889, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2295, 29892, 288, 6925, 29892, 330, 29885, 29892, 28454, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 16859, 353, 2295, 13, 4706, 1583, 29889, 586, 29885, 353, 288, 6925, 13, 4706, 1583, 29889, 29887, 29885, 353, 330, 29885, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 1457, 29918, 1429, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 396, 360, 15622, 11073, 565, 5096, 338, 28454, 6702, 1323, 14150, 29915, 2012, 310, 525, 4763, 29374, 13, 4706, 565, 28454, 29901, 13, 9651, 1583, 29889, 5910, 3125, 29918, 2962, 10644, 29939, 29889, 12038, 877, 1323, 14150, 1274, 23493, 1495, 13, 9651, 1583, 29889, 842, 5907, 7030, 877, 1323, 14150, 1274, 23493, 1495, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2962, 10644, 29939, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 16044, 29897, 13, 4706, 14288, 9824, 353, 660, 9824, 580, 13, 4706, 14288, 9824, 29889, 842, 29933, 1025, 29898, 5574, 29897, 13, 4706, 396, 7704, 278, 1556, 8018, 1857, 6055, 363, 278, 1274, 23493, 29901, 13, 4706, 2967, 29918, 3972, 353, 1583, 29889, 16859, 1839, 562, 29939, 16215, 3188, 29918, 3972, 2033, 13, 4706, 1583, 29889, 1643, 29918, 1429, 1170, 29889, 12038, 29898, 3188, 29918, 3972, 29961, 3188, 29918, 3972, 29889, 29878, 2886, 877, 1966, 1495, 718, 29871, 29896, 29901, 2314, 13, 4706, 1583, 29889, 1643, 29918, 915, 314, 9585, 29889, 12038, 29898, 13, 9651, 1583, 29889, 16859, 1839, 12846, 16215, 29872, 400, 2033, 718, 525, 1589, 29963, 29892, 525, 13, 9651, 718, 1583, 29889, 16859, 1839, 12846, 16215, 915, 314, 29918, 3784, 2033, 718, 525, 282, 29909, 1495, 13, 4706, 1583, 29889, 1643, 29918, 7720, 26947, 29889, 12038, 29898, 13, 9651, 1583, 29889, 16859, 1839, 957, 7406, 16215, 4537, 29918, 586, 2033, 718, 525, 975, 1493, 29898, 29879, 511, 525, 13, 9651, 718, 1583, 29889, 16859, 1839, 629, 4841, 16215, 4537, 29918, 629, 4841, 2033, 718, 525, 6856, 29898, 29879, 416, 1495, 13, 4706, 1583, 29889, 1643, 29918, 7827, 9966, 29911, 5475, 29889, 12038, 29898, 13, 9651, 851, 29898, 1311, 29889, 29887, 29885, 29889, 657, 29918, 7827, 29918, 4537, 29918, 4925, 29918, 1376, 267, 3101, 718, 525, 6136, 25900, 29898, 29879, 29897, 1495, 13, 4706, 565, 1583, 29889, 16859, 1839, 562, 29939, 16215, 1509, 29918, 1300, 974, 5421, 2033, 1275, 525, 5574, 2396, 13, 9651, 565, 938, 29898, 1311, 29889, 16859, 1839, 1300, 974, 5421, 16215, 5696, 11287, 1275, 29871, 29900, 29901, 13, 18884, 1583, 29889, 1643, 29918, 1300, 974, 5421, 9966, 29889, 842, 9824, 29898, 8934, 9824, 29897, 13, 18884, 1583, 29889, 1643, 29918, 1300, 974, 5421, 9966, 29889, 12038, 877, 9966, 313, 12636, 442, 1660, 29924, 29897, 1495, 13, 9651, 25342, 938, 29898, 1311, 29889, 16859, 1839, 1300, 974, 5421, 16215, 5696, 11287, 1275, 29871, 29896, 29901, 13, 18884, 1583, 29889, 1643, 29918, 1300, 974, 5421, 9966, 29889, 842, 9824, 29898, 8934, 9824, 29897, 13, 18884, 1583, 29889, 1643, 29918, 1300, 974, 5421, 9966, 29889, 12038, 877, 9966, 313, 354, 332, 4695, 29897, 1495, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 1643, 29918, 1300, 974, 5421, 9966, 29889, 12038, 877, 797, 4925, 1495, 13, 4706, 565, 1583, 29889, 29887, 29885, 29889, 275, 29918, 1114, 415, 573, 29918, 18037, 29918, 4925, 7295, 13, 9651, 1583, 29889, 1643, 29918, 1114, 415, 573, 9966, 29889, 842, 9824, 29898, 8934, 9824, 29897, 13, 9651, 1583, 29889, 1643, 29918, 1114, 415, 573, 9966, 29889, 12038, 877, 9966, 1495, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 1643, 29918, 1114, 415, 573, 9966, 29889, 12038, 877, 797, 4925, 1495, 13, 4706, 565, 313, 1311, 29889, 29887, 29885, 29889, 275, 29918, 1639, 29894, 497, 293, 29918, 562, 29939, 29918, 4925, 580, 13, 9651, 470, 1583, 29889, 586, 29885, 29889, 275, 29918, 1639, 29894, 497, 293, 29918, 562, 29939, 29918, 4925, 580, 1125, 13, 9651, 1583, 29889, 1643, 29918, 1639, 29894, 497, 293, 9966, 29889, 842, 9824, 29898, 8934, 9824, 29897, 13, 9651, 1583, 29889, 1643, 29918, 1639, 29894, 497, 293, 9966, 29889, 12038, 877, 9966, 1495, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 1643, 29918, 1639, 29894, 497, 293, 9966, 29889, 12038, 877, 797, 4925, 1495, 13, 4706, 565, 1583, 29889, 16859, 1839, 562, 29939, 16215, 1639, 14214, 2033, 1275, 525, 5574, 2396, 13, 9651, 2602, 353, 4390, 29889, 18132, 29898, 1311, 29889, 16859, 1839, 562, 29939, 16215, 1639, 14214, 29918, 271, 11287, 13, 9651, 1583, 29889, 1643, 29918, 1639, 18953, 29889, 842, 9824, 29898, 8934, 9824, 29897, 13, 9651, 1583, 29889, 1643, 29918, 1639, 18953, 29889, 12038, 29898, 13, 18884, 525, 8241, 29892, 297, 6856, 525, 718, 851, 29898, 3283, 29961, 29900, 2314, 718, 525, 472, 25900, 525, 13, 18884, 718, 851, 29898, 3283, 29961, 29896, 12622, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 1643, 29918, 1639, 18953, 29889, 12038, 877, 8516, 1495, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 7582, 26539, 29889, 842, 1917, 29898, 13, 9651, 938, 29898, 7411, 29898, 1311, 29889, 16859, 1839, 29885, 2357, 29873, 608, 16215, 3959, 1607, 29918, 7582, 29918, 19322, 25901, 847, 29871, 29896, 29900, 29900, 29900, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 2267, 1461, 26539, 29889, 842, 1917, 29898, 13, 9651, 938, 29898, 7411, 29898, 1311, 29889, 16859, 1839, 29885, 2357, 29873, 608, 16215, 3959, 1607, 29918, 2267, 1461, 29918, 19322, 25901, 847, 29871, 29896, 29900, 29900, 29900, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 1182, 523, 2264, 29889, 842, 1917, 29898, 13, 9651, 5785, 29898, 1311, 29889, 16859, 1839, 12846, 16215, 29890, 4928, 29918, 1182, 523, 2264, 25901, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 9996, 579, 29889, 842, 1917, 29898, 13, 9651, 5785, 29898, 1311, 29889, 16859, 1839, 12846, 16215, 29890, 4928, 29918, 9996, 579, 25901, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 29890, 3173, 29889, 842, 1917, 29898, 13, 9651, 938, 29898, 1311, 29889, 16859, 1839, 12846, 16215, 29890, 4928, 29918, 29890, 3173, 25901, 13, 4706, 1583, 29889, 3198, 3313, 29918, 14174, 453, 362, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 16859, 1839, 29885, 2357, 29873, 608, 16215, 3959, 1607, 29918, 14174, 453, 362, 2033, 1275, 525, 5574, 1495, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 1583, 29889, 16859, 1839, 29885, 2357, 29873, 608, 16215, 3959, 1607, 29918, 7582, 29918, 19322, 2033, 353, 851, 29898, 13, 9651, 938, 29898, 1311, 29889, 8896, 5592, 262, 3313, 29918, 7582, 26539, 29889, 1767, 580, 334, 29871, 29896, 29900, 29900, 29900, 876, 13, 4706, 1583, 29889, 16859, 1839, 29885, 2357, 29873, 608, 16215, 3959, 1607, 29918, 2267, 1461, 29918, 19322, 2033, 353, 851, 29898, 13, 9651, 938, 29898, 1311, 29889, 8896, 5592, 262, 3313, 29918, 2267, 1461, 26539, 29889, 1767, 580, 334, 29871, 29896, 29900, 29900, 29900, 876, 13, 4706, 1583, 29889, 16859, 1839, 12846, 16215, 29890, 4928, 29918, 9996, 579, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 9996, 579, 29889, 1767, 3101, 13, 4706, 1583, 29889, 16859, 1839, 12846, 16215, 29890, 4928, 29918, 1182, 523, 2264, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 1182, 523, 2264, 29889, 1767, 3101, 13, 4706, 1583, 29889, 16859, 1839, 12846, 16215, 29890, 4928, 29918, 29890, 3173, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 29890, 3173, 29889, 1767, 3101, 13, 4706, 1583, 29889, 16859, 1839, 29885, 2357, 29873, 608, 16215, 3959, 1607, 29918, 14174, 453, 362, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 3198, 3313, 29918, 14174, 453, 362, 29889, 275, 17817, 3101, 13, 4706, 2428, 2141, 16044, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 349, 1071, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 12024, 278, 1404, 19957, 263, 2734, 1274, 23493, 29889, 7803, 3987, 29901, 313, 29896, 29897, 349, 1071, 408, 4720, 13, 539, 408, 1950, 313, 7045, 278, 1857, 1967, 338, 16692, 1846, 313, 29906, 29897, 349, 1071, 1156, 278, 13, 539, 1857, 22780, 338, 527, 4063, 322, 5700, 29889, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 29886, 1071, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 29886, 1071, 29918, 1853, 353, 29871, 29900, 13, 4706, 1583, 29889, 5910, 3125, 29918, 29886, 1071, 10454, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 29886, 1071, 29918, 3707, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 29886, 1071, 13555, 29903, 5897, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 29886, 1071, 29918, 29880, 1008, 29897, 13, 13, 1678, 822, 19957, 29918, 3707, 29898, 1311, 1125, 13, 4706, 1583, 29889, 29886, 1071, 29918, 1853, 353, 29871, 29896, 13, 4706, 1583, 29889, 16044, 580, 13, 13, 1678, 822, 19957, 29918, 29880, 1008, 29898, 1311, 1125, 13, 4706, 1583, 29889, 29886, 1071, 29918, 1853, 353, 29871, 29906, 13, 4706, 1583, 29889, 16044, 580, 13, 13, 1678, 822, 679, 29918, 1792, 29918, 16957, 29898, 1311, 1125, 13, 4706, 736, 1583, 29889, 29886, 1071, 29918, 1853, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 2428, 2141, 16044, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 1222, 637, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 26382, 1967, 1051, 297, 3201, 29895, 12665, 29906, 3402, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2295, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 16859, 353, 2295, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 15843, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 5910, 3125, 29918, 15843, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 15843, 29918, 1761, 29897, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 29305, 29903, 5897, 29889, 842, 1917, 29898, 524, 29898, 1311, 29889, 16859, 1839, 562, 29939, 16215, 18337, 29918, 11808, 25901, 13, 4706, 1583, 29889, 4294, 580, 13, 13, 1678, 822, 5609, 29918, 1761, 29898, 1311, 1125, 13, 4706, 1583, 29889, 5910, 3125, 29918, 15843, 29889, 12038, 877, 16890, 29891, 1495, 13, 4706, 1583, 29889, 5910, 3125, 29918, 15843, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 660, 4873, 29889, 5014, 13634, 580, 13, 4706, 2967, 29918, 3972, 353, 1583, 29889, 16859, 1839, 562, 29939, 16215, 3188, 29918, 3972, 2033, 13, 4706, 3646, 29918, 7720, 29918, 4537, 353, 313, 13, 9651, 851, 29898, 1311, 29889, 1028, 262, 3313, 29918, 7720, 4557, 29889, 1767, 16655, 29920, 5589, 29898, 13239, 29889, 14345, 1367, 29918, 4571, 29954, 1806, 29903, 876, 13, 4706, 15526, 29918, 2311, 353, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29886, 15711, 3505, 29889, 1767, 580, 13, 4706, 1369, 29918, 18337, 353, 1583, 29889, 1028, 262, 3313, 29918, 3166, 29903, 5897, 29889, 1767, 580, 13, 4706, 1095, 29918, 18337, 353, 1583, 29889, 1028, 262, 3313, 29918, 29305, 29903, 5897, 29889, 1767, 580, 13, 4706, 396, 7523, 599, 6382, 295, 391, 2066, 964, 3370, 29901, 13, 4706, 6382, 295, 391, 29918, 710, 353, 5159, 13, 4706, 6382, 295, 391, 29918, 1272, 353, 5159, 13, 4706, 934, 29918, 1761, 353, 13149, 29889, 23705, 29898, 359, 29889, 2084, 29889, 7122, 29898, 3188, 29918, 3972, 29892, 13, 462, 462, 965, 525, 7299, 742, 525, 20756, 742, 525, 326, 351, 295, 391, 10521, 3945, 8785, 13, 4706, 934, 29918, 1761, 29889, 6605, 580, 13, 4706, 363, 934, 297, 934, 29918, 1761, 29901, 13, 9651, 411, 1722, 29898, 1445, 29897, 408, 285, 29901, 13, 18884, 6382, 295, 391, 29918, 710, 29889, 21843, 29898, 29888, 29889, 949, 9012, 3101, 13, 4706, 565, 7431, 29898, 326, 351, 295, 391, 29918, 710, 29897, 1405, 29871, 29900, 29901, 13, 9651, 396, 6219, 6031, 29892, 3787, 9976, 297, 3651, 29892, 1284, 9212, 921, 322, 343, 29901, 13, 9651, 1375, 29918, 29916, 353, 29871, 29896, 29900, 29900, 29900, 29900, 29900, 29900, 13, 9651, 1375, 29918, 29891, 353, 29871, 29896, 29900, 29900, 29900, 29900, 29900, 29900, 13, 9651, 363, 1196, 297, 6382, 295, 391, 29918, 710, 29901, 13, 18884, 3161, 353, 1196, 29889, 5451, 877, 29936, 1495, 13, 18884, 396, 3161, 29961, 29900, 5387, 6198, 2224, 304, 25900, 1967, 13, 18884, 396, 3161, 29961, 29896, 5387, 921, 14821, 297, 302, 29885, 13, 18884, 396, 3161, 29961, 29906, 5387, 343, 14821, 297, 302, 29885, 13, 18884, 396, 3161, 29961, 29941, 5387, 503, 14821, 297, 302, 29885, 13, 18884, 396, 3161, 29961, 29946, 5387, 22780, 1353, 13, 18884, 22780, 29918, 4537, 353, 938, 29898, 17664, 29961, 29946, 2314, 13, 18884, 6856, 29918, 4537, 353, 3161, 29961, 29900, 3816, 29955, 29901, 29896, 29896, 29962, 13, 18884, 565, 313, 2962, 29918, 18337, 5277, 22780, 29918, 4537, 5277, 1095, 29918, 18337, 13, 462, 1678, 322, 6856, 29918, 4537, 1275, 3646, 29918, 7720, 29918, 4537, 1125, 13, 462, 1678, 921, 353, 938, 29898, 524, 29898, 17664, 29961, 29896, 2314, 847, 15526, 29918, 2311, 29897, 13, 462, 1678, 565, 921, 529, 1375, 29918, 29916, 29901, 13, 462, 4706, 1375, 29918, 29916, 353, 921, 13, 462, 1678, 343, 353, 938, 29898, 524, 29898, 17664, 29961, 29906, 2314, 847, 15526, 29918, 2311, 29897, 13, 462, 1678, 565, 343, 529, 1375, 29918, 29891, 29901, 13, 462, 4706, 1375, 29918, 29891, 353, 343, 13, 462, 1678, 6382, 295, 391, 29918, 1272, 29889, 4397, 4197, 17664, 29961, 29900, 1402, 921, 29892, 343, 29892, 22780, 29918, 4537, 2314, 13, 9651, 396, 3323, 29873, 1461, 9212, 1819, 304, 4017, 3216, 292, 3800, 411, 313, 29900, 29892, 29871, 29900, 29897, 408, 13, 9651, 396, 3978, 297, 2246, 29899, 1563, 11155, 29889, 13, 9651, 363, 2944, 297, 6382, 295, 391, 29918, 1272, 29901, 13, 18884, 2944, 29961, 29896, 29962, 22361, 1375, 29918, 29916, 13, 18884, 2944, 29961, 29906, 29962, 22361, 1375, 29918, 29891, 13, 9651, 396, 14350, 304, 1962, 934, 29901, 13, 9651, 1018, 29901, 13, 18884, 1962, 29918, 1445, 353, 2897, 29889, 2084, 29889, 7122, 29898, 3188, 29918, 3972, 29892, 13, 462, 462, 965, 525, 3018, 21885, 29906, 29918, 326, 351, 295, 391, 29918, 18337, 29915, 13, 462, 462, 965, 718, 851, 29898, 2962, 29918, 18337, 29897, 13, 462, 462, 965, 718, 525, 517, 29915, 13, 462, 462, 965, 718, 851, 29898, 355, 29918, 18337, 29897, 13, 462, 462, 965, 718, 15300, 3945, 1495, 13, 18884, 411, 1722, 29898, 4905, 29918, 1445, 29892, 525, 29893, 1495, 408, 285, 29901, 13, 462, 1678, 363, 2944, 297, 6382, 295, 391, 29918, 1272, 29901, 13, 462, 4706, 285, 29889, 3539, 29898, 667, 29961, 29900, 29962, 718, 11297, 29873, 29915, 13, 462, 18884, 718, 851, 29898, 667, 29961, 29896, 2314, 718, 11297, 29873, 29915, 13, 462, 18884, 718, 851, 29898, 667, 29961, 29906, 2314, 718, 11297, 29873, 29915, 13, 462, 18884, 718, 851, 29898, 667, 29961, 29941, 2314, 718, 11297, 29876, 1495, 13, 9651, 5174, 29901, 13, 18884, 660, 3728, 3313, 29889, 27392, 29898, 13, 462, 1678, 1583, 29892, 525, 2392, 742, 13, 462, 1678, 525, 2744, 1059, 288, 2764, 1127, 1550, 5007, 278, 1962, 934, 29889, 742, 13, 462, 1678, 660, 3728, 3313, 29889, 20434, 29897, 13, 9651, 1683, 29901, 13, 18884, 660, 3728, 3313, 29889, 19678, 29898, 13, 462, 1678, 1583, 29892, 525, 26382, 8676, 742, 13, 462, 1678, 285, 29915, 29909, 3001, 310, 426, 2435, 29898, 326, 351, 295, 391, 29918, 1272, 2915, 25900, 9976, 892, 525, 13, 462, 1678, 285, 29915, 5014, 287, 7790, 29876, 29905, 29876, 1576, 1962, 934, 29905, 29876, 29915, 13, 462, 1678, 285, 29915, 3018, 21885, 29906, 29918, 326, 351, 295, 391, 29918, 18337, 29912, 2962, 29918, 18337, 29913, 517, 29912, 355, 29918, 18337, 1836, 3945, 29905, 29876, 29915, 13, 462, 1678, 285, 29915, 11102, 3971, 304, 278, 1857, 2967, 3884, 29905, 29876, 29915, 13, 462, 1678, 285, 29915, 29912, 3188, 29918, 3972, 1836, 742, 13, 462, 1678, 660, 3728, 3313, 29889, 20434, 29897, 13, 4706, 1683, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 2392, 742, 13, 18884, 525, 3782, 1967, 15562, 1476, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 15843, 29889, 12038, 877, 26382, 1495, 13, 4706, 1583, 29889, 5910, 3125, 29918, 15843, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 660, 4873, 29889, 5014, 13634, 580, 13, 13, 13, 1990, 10318, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 6422, 317, 29933, 12665, 3027, 491, 28536, 9281, 1873, 515, 25492, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 5504, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 5910, 3125, 29918, 5504, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 5504, 29897, 13, 4706, 1583, 29889, 4294, 580, 13, 13, 1678, 822, 2767, 29898, 1311, 1125, 13, 4706, 1583, 29889, 5910, 3125, 29918, 5504, 29889, 12038, 877, 16890, 29891, 1495, 13, 4706, 1583, 29889, 5910, 3125, 29918, 5504, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 660, 4873, 29889, 5014, 13634, 580, 13, 4706, 3142, 353, 376, 991, 597, 3292, 29889, 510, 29914, 1744, 12665, 3027, 29914, 1744, 12665, 3027, 29914, 10867, 29914, 6207, 29889, 7554, 29908, 13, 4706, 1018, 29901, 13, 9651, 2933, 353, 7274, 29889, 657, 29898, 2271, 29892, 4840, 29922, 5574, 29897, 13, 9651, 411, 1722, 877, 6207, 29889, 7554, 742, 525, 29893, 29890, 1495, 408, 934, 29901, 13, 18884, 528, 4422, 29889, 8552, 1445, 5415, 29898, 5327, 29889, 1610, 29892, 934, 29897, 13, 9651, 628, 2933, 13, 4706, 5174, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 2392, 742, 13, 18884, 525, 23323, 451, 5142, 1857, 1873, 515, 25492, 29889, 5399, 596, 525, 13, 18884, 525, 14168, 300, 3957, 29889, 13420, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 4706, 1683, 29901, 13, 9651, 396, 3617, 3884, 310, 1857, 11161, 29901, 13, 9651, 2601, 29918, 2084, 353, 2897, 29889, 2084, 29889, 25721, 29898, 13, 18884, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 370, 1028, 493, 22168, 1445, 1649, 4961, 13, 9651, 1018, 29901, 13, 18884, 411, 796, 666, 2283, 703, 6207, 29889, 7554, 613, 376, 29878, 1159, 408, 14319, 29918, 3318, 29901, 13, 462, 1678, 363, 14319, 29918, 3888, 297, 14319, 29918, 3318, 29889, 262, 4542, 391, 7295, 13, 462, 4706, 565, 14319, 29918, 3888, 29889, 9507, 14352, 29896, 29962, 1275, 8207, 2396, 13, 462, 9651, 6773, 13, 462, 4706, 396, 15154, 525, 1744, 12665, 3027, 29899, 6207, 29914, 2396, 13, 462, 4706, 14319, 29918, 3888, 29889, 9507, 353, 14319, 29918, 3888, 29889, 9507, 29961, 29896, 29955, 17531, 13, 462, 4706, 1596, 29898, 7554, 29918, 3888, 29889, 9507, 29897, 13, 462, 4706, 14319, 29918, 3318, 29889, 21111, 29898, 7554, 29918, 3888, 29892, 2601, 29918, 2084, 29897, 13, 9651, 5174, 29901, 13, 18884, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 2392, 742, 13, 18884, 525, 23323, 451, 6597, 16532, 25492, 18871, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 9651, 1683, 29901, 13, 18884, 660, 3728, 3313, 29889, 19678, 29898, 13, 18884, 1583, 29892, 525, 6422, 4866, 742, 13, 18884, 525, 1744, 12665, 3027, 471, 4784, 304, 278, 1556, 7786, 1873, 29889, 525, 13, 18884, 525, 3492, 1818, 10715, 278, 1824, 304, 671, 278, 4784, 1873, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 18884, 1583, 29889, 5910, 3125, 29918, 5504, 29889, 12038, 877, 6422, 1286, 1495, 13, 18884, 1583, 29889, 5910, 3125, 29918, 5504, 29889, 842, 10861, 29898, 5574, 29897, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 22608, 7185, 2105, 292, 9585, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 3253, 5143, 6055, 363, 278, 321, 29899, 2549, 29652, 4682, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2295, 29892, 5096, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 16859, 353, 2295, 13, 4706, 1583, 29889, 1429, 353, 5096, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 5269, 29918, 3712, 2105, 292, 29918, 11027, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 1220, 6103, 29918, 24671, 9823, 29889, 12038, 29898, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 1792, 29918, 5269, 11287, 13, 4706, 1583, 29889, 1220, 6103, 29918, 7496, 653, 12958, 9823, 29889, 12038, 29898, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 617, 29918, 1792, 29918, 5269, 11287, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 12276, 12506, 29889, 842, 1917, 29898, 13, 9651, 938, 29898, 1311, 29889, 16859, 1839, 3712, 2105, 292, 16215, 12276, 29918, 19207, 25901, 13, 4706, 1583, 29889, 1220, 6103, 29918, 8391, 29949, 29963, 29889, 12038, 29898, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 12344, 29918, 586, 2033, 29961, 29896, 13018, 29896, 2314, 13, 4706, 1583, 29889, 1220, 6103, 29918, 8391, 29911, 5475, 29889, 12038, 29898, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 12344, 29918, 1376, 267, 2033, 29961, 29896, 13018, 29896, 1822, 6506, 877, 29908, 742, 6629, 876, 13, 4706, 1583, 29889, 3198, 3313, 29918, 6717, 3403, 2283, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 6717, 29918, 1188, 1445, 2033, 1275, 525, 5574, 1495, 13, 4706, 1583, 29889, 3198, 3313, 29918, 6717, 10251, 3780, 2392, 3403, 10547, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 6717, 29918, 1202, 3245, 29918, 20756, 2033, 1275, 525, 5574, 1495, 13, 4706, 1583, 29889, 3198, 3313, 29918, 6717, 1043, 637, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 6717, 29918, 1493, 637, 2033, 1275, 525, 5574, 1495, 13, 4706, 1583, 29889, 3198, 3313, 29918, 6717, 3563, 7406, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 6717, 29918, 586, 2033, 1275, 525, 5574, 1495, 13, 4706, 1583, 29889, 3198, 3313, 29918, 6717, 29911, 5475, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 6717, 29918, 1376, 267, 2033, 1275, 525, 5574, 1495, 13, 4706, 1583, 29889, 3198, 3313, 29918, 6717, 29949, 29963, 1666, 29399, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 6717, 29918, 586, 29918, 690, 29399, 2033, 1275, 525, 5574, 1495, 13, 4706, 1583, 29889, 3198, 3313, 29918, 6717, 29911, 488, 1666, 29399, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 6717, 29918, 29873, 488, 29918, 690, 29399, 2033, 1275, 525, 5574, 1495, 13, 4706, 1583, 29889, 3198, 3313, 29918, 9536, 9823, 4809, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 16674, 29918, 26381, 29918, 17590, 2033, 1275, 525, 5574, 1495, 13, 4706, 1583, 29889, 3198, 3313, 29918, 9536, 9823, 4809, 29889, 3859, 7590, 29889, 6915, 29898, 13, 9651, 1583, 29889, 5504, 29918, 16674, 29918, 3385, 29918, 2080, 29897, 13, 4706, 1583, 29889, 5504, 29918, 16674, 29918, 3385, 29918, 2080, 580, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 16674, 5596, 12506, 29889, 842, 1917, 29898, 13, 9651, 938, 29898, 1311, 29889, 16859, 1839, 3712, 2105, 292, 16215, 16674, 29918, 3198, 29918, 19207, 25901, 13, 4706, 1583, 29889, 1220, 6103, 29918, 10149, 29889, 12038, 29898, 1311, 29889, 16859, 1839, 9675, 16215, 5269, 29918, 10149, 11287, 13, 4706, 1583, 29889, 1220, 6103, 29918, 5630, 29889, 842, 29923, 1859, 6818, 29898, 2239, 457, 6103, 29889, 10048, 29897, 13, 4706, 1583, 29889, 1220, 6103, 29918, 5630, 29889, 12038, 29898, 1311, 29889, 1429, 29889, 657, 29918, 16674, 29918, 5630, 3101, 13, 13, 1678, 822, 2767, 29918, 16674, 29918, 3385, 29918, 2080, 29898, 1311, 1125, 13, 4706, 4660, 353, 1583, 29889, 3198, 3313, 29918, 9536, 9823, 4809, 29889, 275, 17817, 580, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 16674, 5596, 12506, 29889, 842, 10861, 29898, 4882, 29897, 13, 4706, 1583, 29889, 1220, 6103, 29918, 5630, 29889, 842, 10861, 29898, 4882, 29897, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 1059, 29918, 710, 353, 6629, 13, 4706, 4876, 29896, 353, 1583, 29889, 1220, 6103, 29918, 24671, 9823, 29889, 726, 580, 13, 4706, 4876, 29906, 353, 1583, 29889, 1220, 6103, 29918, 7496, 653, 12958, 9823, 29889, 726, 580, 13, 4706, 565, 12725, 29918, 5269, 29898, 5269, 29896, 1125, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 1792, 29918, 5269, 2033, 353, 4876, 29896, 13, 4706, 1683, 29901, 13, 9651, 1059, 29918, 710, 353, 525, 26666, 321, 29899, 2549, 3211, 28042, 20917, 470, 4567, 6169, 13, 4706, 396, 6440, 1404, 321, 29899, 2549, 338, 13136, 13, 4706, 565, 12725, 29918, 5269, 29898, 5269, 29906, 29897, 470, 451, 4876, 29906, 29901, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 617, 29918, 1792, 29918, 5269, 2033, 353, 313, 13, 18884, 1583, 29889, 1220, 6103, 29918, 7496, 653, 12958, 9823, 29889, 726, 3101, 13, 4706, 1683, 29901, 13, 9651, 1059, 29918, 710, 353, 525, 11863, 653, 321, 29899, 2549, 3211, 28042, 20917, 6169, 13, 4706, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 12276, 29918, 19207, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 12276, 12506, 29889, 1767, 3101, 13, 13, 4706, 2551, 29892, 15397, 29918, 1761, 353, 3667, 29879, 29889, 15480, 29918, 586, 29918, 1761, 29898, 13, 9651, 1583, 29889, 1220, 6103, 29918, 8391, 29949, 29963, 29889, 726, 3101, 13, 4706, 565, 2551, 29901, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 12344, 29918, 586, 2033, 353, 851, 29898, 586, 29918, 1761, 29897, 13, 4706, 1683, 29901, 13, 9651, 1059, 29918, 710, 353, 525, 1293, 310, 4629, 975, 7406, 28042, 20917, 6169, 13, 13, 4706, 2551, 29892, 25900, 29918, 1761, 353, 3667, 29879, 29889, 15480, 29918, 29873, 488, 29918, 1761, 29898, 13, 9651, 1583, 29889, 1220, 6103, 29918, 8391, 29911, 5475, 29889, 726, 3101, 13, 4706, 565, 2551, 29901, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 12344, 29918, 1376, 267, 2033, 353, 4390, 29889, 29881, 17204, 29898, 29873, 488, 29918, 1761, 29897, 13, 4706, 1683, 29901, 13, 9651, 1059, 29918, 710, 353, 525, 1293, 310, 4629, 260, 5475, 28042, 20917, 6169, 13, 13, 4706, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 6717, 29918, 1188, 1445, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 3198, 3313, 29918, 6717, 3403, 2283, 29889, 275, 17817, 3101, 13, 4706, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 6717, 29918, 1202, 3245, 29918, 20756, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 3198, 3313, 29918, 6717, 10251, 3780, 2392, 3403, 10547, 29889, 275, 17817, 3101, 13, 4706, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 6717, 29918, 1493, 637, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 3198, 3313, 29918, 6717, 1043, 637, 29889, 275, 17817, 3101, 13, 4706, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 6717, 29918, 586, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 3198, 3313, 29918, 6717, 3563, 7406, 29889, 275, 17817, 3101, 13, 4706, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 6717, 29918, 1376, 267, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 3198, 3313, 29918, 6717, 29911, 5475, 29889, 275, 17817, 3101, 13, 4706, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 6717, 29918, 586, 29918, 690, 29399, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 3198, 3313, 29918, 6717, 29949, 29963, 1666, 29399, 29889, 275, 17817, 3101, 13, 4706, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 6717, 29918, 29873, 488, 29918, 690, 29399, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 3198, 3313, 29918, 6717, 29911, 488, 1666, 29399, 29889, 275, 17817, 3101, 13, 4706, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 16674, 29918, 26381, 29918, 17590, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 3198, 3313, 29918, 9536, 9823, 4809, 29889, 275, 17817, 3101, 13, 4706, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 16674, 29918, 3198, 29918, 19207, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 16674, 5596, 12506, 29889, 1767, 3101, 13, 4706, 1583, 29889, 1429, 29889, 842, 29918, 16674, 29918, 5630, 29898, 1311, 29889, 1220, 6103, 29918, 5630, 29889, 726, 3101, 13, 4706, 565, 451, 1059, 29918, 710, 29901, 13, 9651, 2428, 2141, 16044, 580, 13, 4706, 1683, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 1311, 29892, 525, 2392, 742, 1059, 29918, 710, 29892, 660, 3728, 3313, 29889, 20434, 29897, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 7089, 3780, 9585, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 3253, 5143, 278, 3987, 363, 316, 1182, 275, 15326, 322, 28744, 29901, 360, 2650, 428, 4038, 29892, 13, 539, 15326, 1158, 29892, 4236, 29889, 1353, 310, 7901, 8961, 29892, 322, 825, 304, 437, 746, 4236, 29889, 13, 539, 1353, 7450, 29889, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2295, 29892, 288, 6925, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 16859, 353, 2295, 13, 4706, 1583, 29889, 586, 29885, 353, 288, 6925, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 311, 1182, 275, 29918, 11027, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 396, 360, 2650, 428, 4038, 29901, 13, 4706, 565, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 6921, 29918, 29881, 2650, 428, 29918, 6203, 2033, 1275, 525, 5574, 2396, 13, 9651, 1583, 29889, 13399, 3125, 29918, 6921, 15097, 29889, 842, 17817, 29898, 5574, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 13399, 3125, 29918, 8159, 15097, 29889, 842, 17817, 29898, 5574, 29897, 13, 4706, 396, 7338, 336, 5906, 2820, 15326, 4038, 297, 17036, 29901, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 311, 1182, 275, 29924, 3930, 29889, 842, 1917, 29898, 13, 9651, 1583, 29889, 586, 29885, 29889, 657, 29918, 586, 29918, 6921, 29918, 311, 1182, 275, 29918, 29881, 2650, 428, 29918, 6203, 29918, 9264, 3101, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 3317, 29903, 705, 8961, 29889, 842, 1917, 29898, 13, 9651, 938, 29898, 1311, 29889, 16859, 1839, 311, 1182, 275, 16215, 3317, 29918, 4537, 29918, 29879, 705, 8961, 25901, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 12765, 6816, 273, 29889, 842, 1917, 29898, 13, 9651, 5785, 29898, 1311, 29889, 16859, 1839, 311, 1182, 275, 16215, 12676, 29918, 12765, 29918, 386, 12268, 25901, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 12765, 7230, 29889, 842, 1917, 29898, 13, 9651, 5785, 29898, 1311, 29889, 16859, 1839, 311, 1182, 275, 16215, 4172, 3359, 29918, 12765, 29918, 386, 12268, 25901, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 12765, 29950, 391, 13342, 29889, 842, 1917, 29898, 13, 9651, 938, 29898, 1311, 29889, 16859, 1839, 311, 1182, 275, 16215, 29882, 391, 13342, 29918, 12765, 29918, 386, 12268, 25901, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 12765, 29925, 861, 1379, 29889, 842, 1917, 29898, 13, 9651, 938, 29898, 1311, 29889, 16859, 1839, 311, 1182, 275, 16215, 3027, 29918, 12765, 29918, 386, 12268, 25901, 13, 4706, 1583, 29889, 3198, 3313, 29918, 4294, 10251, 3780, 13799, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 4294, 29918, 29881, 2650, 428, 29918, 6203, 2033, 1275, 525, 5574, 1495, 13, 4706, 1583, 29889, 3198, 3313, 29918, 19878, 10644, 29939, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 19878, 29918, 7045, 29918, 3317, 29918, 29879, 705, 8961, 2033, 1275, 525, 5574, 1495, 13, 4706, 396, 360, 2650, 428, 3519, 29901, 13, 4706, 1583, 29889, 13399, 3125, 29918, 5696, 2182, 7887, 424, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 29881, 2650, 428, 29918, 5696, 2033, 1275, 525, 29900, 1495, 13, 4706, 1583, 29889, 13399, 3125, 29918, 5696, 29637, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 29881, 2650, 428, 29918, 5696, 2033, 1275, 525, 29896, 1495, 13, 4706, 1583, 29889, 13399, 3125, 29918, 5696, 29950, 391, 13342, 29889, 842, 17817, 29898, 13, 9651, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 29881, 2650, 428, 29918, 5696, 2033, 1275, 525, 29906, 1495, 13, 4706, 1583, 29889, 13399, 3125, 29918, 5696, 2182, 7887, 424, 29889, 29873, 468, 29887, 839, 29889, 6915, 29898, 13, 9651, 1583, 29889, 5504, 29918, 3385, 29918, 21731, 29897, 13, 4706, 1583, 29889, 13399, 3125, 29918, 5696, 29950, 391, 13342, 29889, 29873, 468, 29887, 839, 29889, 6915, 29898, 13, 9651, 1583, 29889, 5504, 29918, 3385, 29918, 21731, 29897, 13, 4706, 1583, 29889, 5504, 29918, 3385, 29918, 21731, 580, 13, 13, 1678, 822, 2767, 29918, 3385, 29918, 21731, 29898, 1311, 1125, 13, 4706, 9995, 12024, 1404, 871, 1735, 278, 4128, 363, 278, 5279, 4629, 13, 965, 15326, 1158, 29889, 450, 916, 1881, 4235, 526, 316, 11236, 630, 29889, 13, 4706, 9995, 13, 4706, 565, 1583, 29889, 13399, 3125, 29918, 5696, 2182, 7887, 424, 29889, 275, 17817, 7295, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 12765, 6816, 273, 29889, 842, 10861, 29898, 5574, 29897, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 12765, 7230, 29889, 842, 10861, 29898, 5574, 29897, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 12765, 29925, 861, 1379, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 12765, 29950, 391, 13342, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 25342, 1583, 29889, 13399, 3125, 29918, 5696, 29637, 29889, 275, 17817, 7295, 13, 632, 1583, 29889, 8896, 5592, 262, 3313, 29918, 12765, 6816, 273, 29889, 842, 10861, 29898, 8824, 29897, 13, 632, 1583, 29889, 8896, 5592, 262, 3313, 29918, 12765, 7230, 29889, 842, 10861, 29898, 8824, 29897, 13, 632, 1583, 29889, 1028, 262, 3313, 29918, 12765, 29925, 861, 1379, 29889, 842, 10861, 29898, 5574, 29897, 13, 632, 1583, 29889, 1028, 262, 3313, 29918, 12765, 29950, 391, 13342, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 25342, 1583, 29889, 13399, 3125, 29918, 5696, 29950, 391, 13342, 29889, 275, 17817, 7295, 13, 632, 1583, 29889, 8896, 5592, 262, 3313, 29918, 12765, 6816, 273, 29889, 842, 10861, 29898, 8824, 29897, 13, 632, 1583, 29889, 8896, 5592, 262, 3313, 29918, 12765, 7230, 29889, 842, 10861, 29898, 8824, 29897, 13, 632, 1583, 29889, 1028, 262, 3313, 29918, 12765, 29925, 861, 1379, 29889, 842, 10861, 29898, 8824, 29897, 13, 632, 1583, 29889, 1028, 262, 3313, 29918, 12765, 29950, 391, 13342, 29889, 842, 10861, 29898, 5574, 29897, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 1583, 29889, 586, 29885, 29889, 842, 29918, 586, 29918, 6921, 29918, 311, 1182, 275, 29918, 29881, 2650, 428, 29918, 6203, 29918, 9264, 29898, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 311, 1182, 275, 29924, 3930, 29889, 1767, 3101, 13, 4706, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 3317, 29918, 4537, 29918, 29879, 705, 8961, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 3317, 29903, 705, 8961, 29889, 1767, 3101, 13, 4706, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 12676, 29918, 12765, 29918, 386, 12268, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 12765, 6816, 273, 29889, 1767, 3101, 13, 4706, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 4172, 3359, 29918, 12765, 29918, 386, 12268, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 12765, 7230, 29889, 1767, 3101, 13, 4706, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 29882, 391, 13342, 29918, 12765, 29918, 386, 12268, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 12765, 29950, 391, 13342, 29889, 1767, 3101, 13, 4706, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 3027, 29918, 12765, 29918, 386, 12268, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 12765, 29925, 861, 1379, 29889, 1767, 3101, 13, 4706, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 6921, 29918, 29881, 2650, 428, 29918, 6203, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 13399, 3125, 29918, 6921, 15097, 29889, 275, 17817, 3101, 13, 4706, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 4294, 29918, 29881, 2650, 428, 29918, 6203, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 3198, 3313, 29918, 4294, 10251, 3780, 13799, 29889, 275, 17817, 3101, 13, 4706, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 19878, 29918, 7045, 29918, 3317, 29918, 29879, 705, 8961, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 3198, 3313, 29918, 19878, 10644, 29939, 29889, 275, 17817, 3101, 13, 4706, 565, 1583, 29889, 13399, 3125, 29918, 5696, 2182, 7887, 424, 29889, 275, 17817, 7295, 13, 9651, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 29881, 2650, 428, 29918, 5696, 2033, 353, 525, 29900, 29915, 13, 4706, 25342, 1583, 29889, 13399, 3125, 29918, 5696, 29637, 29889, 275, 17817, 7295, 13, 9651, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 29881, 2650, 428, 29918, 5696, 2033, 353, 525, 29896, 29915, 13, 4706, 25342, 1583, 29889, 13399, 3125, 29918, 5696, 29950, 391, 13342, 29889, 275, 17817, 7295, 13, 9651, 1583, 29889, 16859, 1839, 311, 1182, 275, 16215, 29881, 2650, 428, 29918, 5696, 2033, 353, 525, 29906, 29915, 13, 4706, 2428, 2141, 16044, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 26579, 2659, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 10299, 1598, 363, 607, 4959, 278, 1824, 881, 1235, 278, 1404, 11097, 920, 13, 539, 304, 8469, 29889, 450, 376, 29909, 808, 4911, 29908, 9863, 338, 5279, 871, 1304, 363, 13, 539, 316, 1182, 275, 15326, 29889, 2811, 367, 17832, 29892, 664, 297, 6728, 856, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 1278, 29918, 1792, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 11612, 729, 29928, 4401, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 3549, 263, 19571, 7899, 515, 599, 3625, 25100, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2295, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 16859, 353, 2295, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 11038, 729, 29918, 21594, 29918, 11027, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 16515, 29918, 29881, 1150, 267, 353, 5159, 13, 4706, 1583, 29889, 1643, 29918, 726, 29889, 12038, 877, 12148, 4480, 29889, 11856, 292, 363, 25100, 856, 1495, 13, 4706, 660, 4873, 29889, 5014, 13634, 580, 13, 4706, 396, 11856, 363, 25100, 297, 3244, 29889, 960, 372, 4947, 10771, 1363, 25100, 526, 13, 4706, 396, 451, 15579, 29892, 1404, 508, 1603, 12611, 7928, 29889, 13, 4706, 260, 353, 3244, 292, 29889, 4899, 29898, 5182, 29922, 1311, 29889, 4478, 29918, 29881, 1150, 267, 29897, 13, 4706, 260, 29889, 2962, 580, 13, 13, 1678, 822, 2740, 29918, 29881, 1150, 267, 29898, 1311, 1125, 13, 4706, 396, 11856, 363, 599, 3625, 25100, 29901, 13, 4706, 1583, 29889, 16515, 29918, 29881, 1150, 267, 353, 518, 13, 9651, 14210, 29879, 11283, 1273, 270, 363, 270, 297, 1347, 29889, 294, 18869, 29918, 21064, 4878, 13, 9651, 565, 2897, 29889, 2084, 29889, 9933, 877, 29995, 29879, 11283, 1273, 270, 4638, 13, 4706, 565, 1583, 29889, 16515, 29918, 29881, 1150, 267, 29901, 13, 9651, 1583, 29889, 510, 17801, 29918, 497, 29928, 1150, 267, 29889, 1202, 6913, 29898, 1311, 29889, 16515, 29918, 29881, 1150, 267, 29897, 13, 9651, 1857, 29918, 2248, 353, 1583, 29889, 510, 17801, 29918, 497, 29928, 1150, 267, 29889, 2886, 1626, 29898, 13, 18884, 1583, 29889, 16859, 1839, 9675, 16215, 11038, 729, 29918, 21594, 11287, 13, 9651, 565, 1857, 29918, 2248, 1275, 448, 29896, 29901, 13, 18884, 1857, 29918, 2248, 353, 29871, 29900, 13, 9651, 1583, 29889, 510, 17801, 29918, 497, 29928, 1150, 267, 29889, 842, 7583, 3220, 29898, 3784, 29918, 2248, 29897, 13, 9651, 396, 11654, 487, 3858, 1156, 11975, 363, 3625, 25100, 29901, 13, 9651, 1583, 29889, 1643, 29918, 726, 29889, 12038, 877, 3549, 7899, 363, 19571, 292, 16692, 848, 29901, 1495, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 16515, 29918, 29881, 1150, 267, 29901, 13, 9651, 565, 313, 1311, 29889, 510, 17801, 29918, 497, 29928, 1150, 267, 29889, 3784, 1626, 580, 29961, 29900, 29962, 13, 18884, 1275, 1583, 29889, 16859, 1839, 562, 29939, 16215, 3188, 29918, 3972, 2033, 29961, 29900, 29962, 1125, 13, 18884, 660, 3728, 3313, 29889, 27392, 29898, 13, 462, 1678, 1583, 29892, 525, 2392, 742, 13, 462, 1678, 525, 1576, 19571, 7899, 1818, 367, 1422, 515, 278, 525, 13, 462, 1678, 525, 3188, 3884, 7899, 29991, 742, 660, 3728, 3313, 29889, 20434, 29897, 13, 9651, 1683, 29901, 13, 18884, 1583, 29889, 16859, 1839, 9675, 16215, 11038, 729, 29918, 21594, 2033, 353, 313, 13, 462, 1678, 1583, 29889, 510, 17801, 29918, 497, 29928, 1150, 267, 29889, 3784, 1626, 3101, 13, 18884, 2428, 2141, 16044, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 7084, 7185, 2105, 292, 9585, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 3253, 5143, 6055, 304, 11819, 975, 7406, 322, 260, 5475, 29889, 319, 1243, 565, 1967, 338, 13, 539, 2629, 2099, 29914, 7230, 3464, 338, 8560, 363, 599, 4558, 565, 2984, 338, 5039, 630, 29889, 13, 539, 323, 488, 29899, 1609, 29899, 29873, 488, 5734, 14125, 526, 8560, 363, 278, 4629, 260, 5475, 29889, 13, 1678, 9995, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2295, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 16859, 353, 2295, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 3027, 29918, 3712, 2105, 292, 29918, 11027, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 12676, 8140, 29889, 842, 1917, 29898, 13, 9651, 938, 29898, 1311, 29889, 16859, 1839, 3712, 2105, 292, 16215, 12676, 29918, 13609, 29918, 13400, 25901, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 12676, 7976, 29889, 842, 1917, 29898, 13, 9651, 938, 29898, 1311, 29889, 16859, 1839, 3712, 2105, 292, 16215, 12676, 29918, 21064, 29918, 13400, 25901, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 4172, 3359, 8140, 29889, 842, 1917, 29898, 13, 9651, 938, 29898, 1311, 29889, 16859, 1839, 3712, 2105, 292, 16215, 4172, 3359, 29918, 13609, 29918, 13400, 25901, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 4172, 3359, 7976, 29889, 842, 1917, 29898, 13, 9651, 938, 29898, 1311, 29889, 16859, 1839, 3712, 2105, 292, 16215, 4172, 3359, 29918, 21064, 29918, 13400, 25901, 13, 4706, 1583, 29889, 1220, 6103, 29918, 3712, 2105, 29911, 5475, 29889, 12038, 29898, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 3712, 2105, 29918, 1376, 267, 2033, 29961, 29896, 13018, 29896, 2314, 13, 4706, 1583, 29889, 1220, 6103, 29918, 3712, 2105, 29911, 5475, 29889, 12038, 29898, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 3712, 2105, 29918, 1376, 267, 2033, 29961, 29896, 13018, 29896, 1822, 6506, 877, 29908, 742, 6629, 876, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 12676, 1349, 12268, 29889, 842, 1917, 29898, 13, 9651, 5785, 29898, 1311, 29889, 16859, 1839, 3712, 2105, 292, 16215, 29873, 488, 29918, 12676, 29918, 386, 12268, 25901, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 4172, 16618, 1349, 12268, 29889, 842, 1917, 29898, 13, 9651, 5785, 29898, 1311, 29889, 16859, 1839, 3712, 2105, 292, 16215, 29873, 488, 29918, 4172, 3359, 29918, 386, 12268, 25901, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 1059, 29918, 710, 353, 6629, 13, 4706, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 12676, 29918, 13609, 29918, 13400, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 12676, 8140, 29889, 1767, 3101, 13, 4706, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 12676, 29918, 21064, 29918, 13400, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 12676, 7976, 29889, 1767, 3101, 13, 4706, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 4172, 3359, 29918, 13609, 29918, 13400, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 4172, 3359, 8140, 29889, 1767, 3101, 13, 4706, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 4172, 3359, 29918, 21064, 29918, 13400, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 4172, 3359, 7976, 29889, 1767, 3101, 13, 13, 4706, 25900, 29918, 710, 353, 1583, 29889, 1220, 6103, 29918, 3712, 2105, 29911, 5475, 29889, 726, 2141, 17010, 580, 13, 4706, 565, 25900, 29918, 710, 1275, 525, 497, 2396, 13, 9651, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 3712, 2105, 29918, 1376, 267, 2033, 353, 525, 3366, 497, 3108, 29915, 13, 4706, 1683, 29901, 13, 9651, 2551, 29892, 25900, 29918, 1761, 353, 3667, 29879, 29889, 15480, 29918, 29873, 488, 29918, 1761, 29898, 29873, 488, 29918, 710, 29897, 13, 9651, 565, 2551, 29901, 13, 18884, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 3712, 2105, 29918, 1376, 267, 2033, 353, 4390, 29889, 29881, 17204, 29898, 29873, 488, 29918, 1761, 29897, 13, 9651, 1683, 29901, 13, 18884, 1059, 29918, 710, 353, 525, 1293, 310, 4629, 260, 5475, 28042, 20917, 6169, 13, 13, 4706, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 29873, 488, 29918, 12676, 29918, 386, 12268, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 12676, 1349, 12268, 29889, 1767, 3101, 13, 4706, 1583, 29889, 16859, 1839, 3712, 2105, 292, 16215, 29873, 488, 29918, 4172, 3359, 29918, 386, 12268, 2033, 353, 851, 29898, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 4172, 16618, 1349, 12268, 29889, 1767, 3101, 13, 4706, 565, 451, 1059, 29918, 710, 29901, 13, 9651, 2428, 2141, 16044, 580, 13, 4706, 1683, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 1311, 29892, 525, 2392, 742, 1059, 29918, 710, 29892, 660, 3728, 3313, 29889, 20434, 29897, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 5202, 974, 5421, 9585, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 3253, 5143, 6055, 363, 278, 796, 29923, 29902, 1799, 1120, 974, 5421, 29892, 278, 540, 332, 4695, 1120, 974, 5421, 29892, 13, 1678, 322, 23110, 278, 8569, 29914, 303, 335, 746, 2143, 542, 4746, 7522, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1120, 974, 5421, 29892, 6856, 29918, 12847, 29892, 2320, 29883, 29918, 8513, 29922, 8824, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 2142, 353, 1120, 974, 5421, 13, 4706, 1583, 29889, 29887, 29885, 353, 6856, 29918, 12847, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 1300, 974, 5421, 29918, 11027, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 565, 1583, 29889, 2142, 29889, 657, 29918, 5696, 580, 1275, 29871, 29900, 29901, 13, 9651, 1583, 29889, 13399, 3125, 29918, 1509, 12636, 442, 1660, 29924, 29889, 842, 17817, 29898, 5574, 29897, 13, 4706, 25342, 1583, 29889, 2142, 29889, 657, 29918, 5696, 580, 1275, 29871, 29896, 29901, 13, 9651, 1583, 29889, 13399, 3125, 29918, 1509, 3868, 332, 4695, 29889, 842, 17817, 29898, 5574, 29897, 13, 4706, 25342, 1583, 29889, 2142, 29889, 657, 29918, 5696, 580, 1275, 29871, 29906, 29901, 13, 9651, 1583, 29889, 13399, 3125, 29918, 1509, 17936, 292, 11730, 29889, 842, 17817, 29898, 5574, 29897, 13, 4706, 1583, 29889, 13399, 3125, 29918, 1509, 12636, 442, 1660, 29924, 29889, 29873, 468, 29887, 839, 29889, 6915, 29898, 1311, 29889, 2972, 29918, 1884, 29918, 5504, 29897, 13, 4706, 1583, 29889, 13399, 3125, 29918, 1509, 3868, 332, 4695, 29889, 29873, 468, 29887, 839, 29889, 6915, 29898, 1311, 29889, 2972, 29918, 1884, 29918, 5504, 29897, 13, 4706, 1583, 29889, 13399, 3125, 29918, 1509, 17936, 292, 11730, 29889, 29873, 468, 29887, 839, 29889, 6915, 29898, 1311, 29889, 2972, 29918, 1884, 29918, 5504, 29897, 13, 4706, 1583, 29889, 2972, 29918, 1884, 29918, 5504, 580, 13, 4706, 396, 4593, 6055, 13, 4706, 1583, 29889, 1220, 6103, 29918, 999, 29911, 5475, 29889, 12038, 29898, 13, 9651, 851, 29898, 1311, 29889, 2142, 29889, 657, 29918, 999, 29918, 1376, 267, 3101, 29961, 29896, 13018, 29896, 1822, 6506, 877, 20333, 742, 6629, 876, 13, 4706, 565, 1583, 29889, 2142, 29889, 657, 29918, 11294, 292, 29918, 8513, 580, 1275, 29871, 29896, 29901, 13, 9651, 1583, 29889, 1220, 6103, 29918, 999, 29911, 5475, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 4236, 29918, 12765, 353, 1583, 29889, 2142, 29889, 657, 29918, 3317, 29918, 9970, 29918, 303, 335, 29918, 12765, 580, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3317, 29956, 7858, 2593, 29889, 842, 1917, 29898, 3317, 29918, 12765, 29961, 29900, 29962, 334, 29871, 29896, 29900, 29900, 29900, 29900, 29900, 29900, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3317, 855, 335, 29990, 26023, 29889, 842, 1917, 29898, 3317, 29918, 12765, 29961, 29896, 2314, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3317, 855, 335, 29979, 26023, 29889, 842, 1917, 29898, 3317, 29918, 12765, 29961, 29906, 2314, 13, 4706, 1583, 29889, 510, 17801, 29918, 11294, 292, 6818, 29889, 1202, 6913, 18959, 17936, 4629, 29892, 2134, 29916, 29889, 4045, 742, 13, 462, 462, 632, 525, 17936, 599, 6136, 260, 5475, 742, 13, 462, 462, 632, 525, 29909, 19698, 975, 4629, 11287, 13, 4706, 1583, 29889, 510, 17801, 29918, 11294, 292, 6818, 29889, 842, 7583, 3220, 29898, 13, 9651, 1583, 29889, 2142, 29889, 657, 29918, 11294, 292, 29918, 8513, 3101, 13, 4706, 1583, 29889, 510, 17801, 29918, 11294, 292, 6818, 29889, 3784, 3220, 7590, 29889, 6915, 29898, 13, 9651, 1583, 29889, 3167, 29918, 11294, 292, 29918, 8513, 29897, 13, 4706, 396, 4116, 442, 1660, 29924, 1120, 974, 5421, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 19207, 29889, 842, 1917, 29898, 1311, 29889, 2142, 29889, 657, 29918, 19207, 3101, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 1300, 520, 335, 24996, 29889, 842, 1917, 29898, 1311, 29889, 2142, 29889, 657, 29918, 1300, 520, 335, 29918, 18829, 3101, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29886, 15711, 3505, 29889, 842, 1917, 29898, 1311, 29889, 2142, 29889, 657, 29918, 29886, 15711, 29918, 2311, 3101, 13, 4706, 396, 1152, 540, 332, 4695, 1120, 974, 5421, 29901, 13, 4706, 628, 29873, 294, 353, 1583, 29889, 2142, 29889, 657, 29918, 354, 332, 4695, 29918, 29881, 2152, 294, 580, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 9970, 26023, 29889, 842, 1917, 29898, 29881, 2152, 294, 29961, 29900, 29962, 334, 29871, 29896, 29900, 29900, 29900, 29900, 29900, 29900, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 303, 335, 29990, 26023, 29889, 842, 1917, 29898, 29881, 2152, 294, 29961, 29896, 2314, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 303, 335, 29979, 26023, 29889, 842, 1917, 29898, 29881, 2152, 294, 29961, 29906, 2314, 13, 4706, 1208, 747, 353, 1583, 29889, 2142, 29889, 657, 29918, 354, 332, 4695, 29918, 1052, 26218, 580, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 18037, 7856, 747, 29889, 842, 1917, 29898, 1052, 747, 29961, 29900, 2314, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 303, 335, 29990, 7856, 747, 29889, 842, 1917, 29898, 1052, 747, 29961, 29896, 2314, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 303, 335, 29979, 7856, 747, 29889, 842, 1917, 29898, 1052, 747, 29961, 29906, 2314, 13, 4706, 5731, 29892, 6287, 353, 1583, 29889, 2142, 29889, 657, 29918, 354, 332, 4695, 29918, 5450, 29918, 7052, 580, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 303, 335, 21281, 29889, 842, 1917, 29898, 5450, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 303, 335, 17185, 29889, 842, 1917, 29898, 7052, 29897, 13, 4706, 396, 3295, 519, 777, 6055, 565, 3561, 29907, 4464, 338, 6136, 13, 4706, 565, 2320, 29883, 29918, 8513, 29901, 13, 9651, 1583, 29889, 13399, 3125, 29918, 1509, 3868, 332, 4695, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 13399, 3125, 29918, 1509, 17936, 292, 11730, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 510, 17801, 29918, 11294, 292, 6818, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 19207, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 396, 1207, 1120, 520, 335, 7292, 664, 373, 867, 4841, 2012, 310, 269, 29399, 13, 9651, 1583, 29889, 1643, 29918, 29888, 6099, 29918, 29946, 29889, 12038, 877, 6147, 520, 335, 7292, 313, 629, 4841, 29897, 25710, 13, 13, 1678, 822, 2318, 29918, 1884, 29918, 5504, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 13399, 3125, 29918, 1509, 12636, 442, 1660, 29924, 29889, 275, 17817, 7295, 13, 9651, 3777, 790, 29918, 17590, 353, 5852, 13, 9651, 540, 332, 4695, 29918, 17590, 353, 7700, 13, 9651, 2923, 29879, 29918, 17590, 353, 5852, 13, 4706, 25342, 1583, 29889, 13399, 3125, 29918, 1509, 3868, 332, 4695, 29889, 275, 17817, 7295, 13, 9651, 3777, 790, 29918, 17590, 353, 7700, 13, 9651, 540, 332, 4695, 29918, 17590, 353, 5852, 13, 9651, 2923, 29879, 29918, 17590, 353, 5852, 13, 4706, 25342, 1583, 29889, 13399, 3125, 29918, 1509, 17936, 292, 11730, 29889, 275, 17817, 7295, 13, 9651, 3777, 790, 29918, 17590, 353, 7700, 13, 9651, 540, 332, 4695, 29918, 17590, 353, 7700, 13, 9651, 2923, 29879, 29918, 17590, 353, 7700, 13, 4706, 1583, 29889, 2972, 3313, 29918, 10721, 29902, 1799, 29918, 2142, 29889, 842, 10861, 29898, 911, 790, 29918, 17590, 29897, 13, 4706, 1583, 29889, 2972, 3313, 29918, 354, 332, 4695, 29918, 2142, 29889, 842, 10861, 29898, 354, 332, 4695, 29918, 17590, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3317, 29956, 7858, 2593, 29889, 842, 10861, 29898, 12765, 29879, 29918, 17590, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3317, 855, 335, 29990, 26023, 29889, 842, 10861, 29898, 12765, 29879, 29918, 17590, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3317, 855, 335, 29979, 26023, 29889, 842, 10861, 29898, 12765, 29879, 29918, 17590, 29897, 13, 13, 1678, 822, 1735, 29918, 11294, 292, 29918, 8513, 29898, 1311, 1125, 13, 4706, 9995, 12024, 1404, 9659, 4607, 304, 376, 11294, 599, 29908, 1213, 15945, 13, 4706, 565, 1583, 29889, 510, 17801, 29918, 11294, 292, 6818, 29889, 3784, 3220, 580, 1275, 29871, 29896, 29901, 13, 9651, 2933, 353, 660, 3728, 3313, 29889, 19678, 29898, 13, 18884, 1583, 29892, 525, 17936, 599, 260, 5475, 742, 13, 18884, 525, 4013, 674, 1831, 599, 6136, 260, 5475, 363, 1120, 974, 5421, 23110, 322, 525, 13, 18884, 525, 957, 3539, 278, 1857, 9262, 310, 3407, 260, 5475, 29889, 525, 13, 18884, 525, 1323, 14150, 29973, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29892, 660, 3728, 3313, 29889, 19420, 29897, 13, 9651, 565, 2933, 1275, 660, 3728, 3313, 29889, 20434, 29901, 13, 18884, 1583, 29889, 1220, 6103, 29918, 999, 29911, 5475, 29889, 12038, 29898, 710, 29898, 13, 462, 1678, 1583, 29889, 29887, 29885, 29889, 657, 29918, 4925, 29918, 29873, 488, 29918, 1989, 29918, 1761, 3101, 29961, 29896, 13018, 29896, 1822, 6506, 877, 20333, 742, 6629, 876, 13, 18884, 1583, 29889, 1220, 6103, 29918, 999, 29911, 5475, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1683, 29901, 13, 18884, 396, 830, 1765, 304, 23110, 4464, 29871, 29900, 29901, 13, 18884, 1583, 29889, 510, 17801, 29918, 11294, 292, 6818, 29889, 1271, 10140, 1338, 29898, 5574, 29897, 13, 18884, 1583, 29889, 510, 17801, 29918, 11294, 292, 6818, 29889, 842, 7583, 3220, 29898, 29900, 29897, 13, 18884, 1583, 29889, 510, 17801, 29918, 11294, 292, 6818, 29889, 1271, 10140, 1338, 29898, 8824, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 1220, 6103, 29918, 999, 29911, 5475, 29889, 842, 10861, 29898, 5574, 29897, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 1059, 29918, 710, 353, 6629, 13, 4706, 565, 1583, 29889, 13399, 3125, 29918, 1509, 12636, 442, 1660, 29924, 29889, 275, 17817, 7295, 13, 9651, 1583, 29889, 2142, 29889, 842, 29918, 5696, 29898, 29900, 29897, 13, 4706, 25342, 1583, 29889, 13399, 3125, 29918, 1509, 3868, 332, 4695, 29889, 275, 17817, 7295, 13, 9651, 1583, 29889, 2142, 29889, 842, 29918, 5696, 29898, 29896, 29897, 13, 4706, 25342, 1583, 29889, 13399, 3125, 29918, 1509, 17936, 292, 11730, 29889, 275, 17817, 7295, 13, 9651, 1583, 29889, 2142, 29889, 842, 29918, 5696, 29898, 29906, 29897, 13, 13, 4706, 2551, 29892, 25900, 29918, 1761, 353, 3667, 29879, 29889, 15480, 29918, 29873, 488, 29918, 1761, 29898, 13, 9651, 1583, 29889, 1220, 6103, 29918, 999, 29911, 5475, 29889, 726, 3101, 13, 4706, 565, 2551, 29901, 13, 9651, 1583, 29889, 2142, 29889, 842, 29918, 999, 29918, 1376, 267, 29898, 29873, 488, 29918, 1761, 29897, 13, 4706, 1683, 29901, 13, 9651, 1059, 29918, 710, 353, 525, 1293, 310, 4629, 260, 5475, 28042, 20917, 6169, 13, 4706, 1583, 29889, 2142, 29889, 842, 29918, 11294, 292, 29918, 8513, 29898, 13, 9651, 1583, 29889, 510, 17801, 29918, 11294, 292, 6818, 29889, 3784, 3220, 3101, 13, 4706, 4236, 29918, 12765, 29879, 353, 518, 1311, 29889, 8896, 5592, 262, 3313, 29918, 3317, 29956, 7858, 2593, 29889, 1767, 580, 847, 29871, 29896, 29900, 29900, 29900, 29900, 29900, 29900, 29892, 13, 462, 268, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3317, 855, 335, 29990, 26023, 29889, 1767, 3285, 13, 462, 268, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3317, 855, 335, 29979, 26023, 29889, 1767, 580, 29962, 13, 4706, 1583, 29889, 2142, 29889, 842, 29918, 3317, 29918, 9970, 29918, 303, 335, 29918, 12765, 29898, 3317, 29918, 12765, 29879, 29897, 13, 4706, 1583, 29889, 2142, 29889, 842, 29918, 19207, 29898, 1311, 29889, 1028, 262, 3313, 29918, 19207, 29889, 1767, 3101, 13, 4706, 1583, 29889, 2142, 29889, 842, 29918, 1300, 520, 335, 29918, 18829, 29898, 1311, 29889, 1028, 262, 3313, 29918, 1300, 520, 335, 24996, 29889, 1767, 3101, 13, 4706, 1583, 29889, 2142, 29889, 842, 29918, 29886, 15711, 29918, 2311, 29898, 1311, 29889, 8896, 5592, 262, 3313, 29918, 29886, 15711, 3505, 29889, 1767, 3101, 13, 4706, 628, 29873, 294, 353, 518, 1311, 29889, 8896, 5592, 262, 3313, 29918, 9970, 26023, 29889, 1767, 580, 847, 29871, 29896, 29900, 29900, 29900, 29900, 29900, 29900, 29892, 13, 462, 29871, 1583, 29889, 8896, 5592, 262, 3313, 29918, 303, 335, 29990, 26023, 29889, 1767, 3285, 13, 462, 29871, 1583, 29889, 8896, 5592, 262, 3313, 29918, 303, 335, 29979, 26023, 29889, 1767, 580, 29962, 13, 4706, 1583, 29889, 2142, 29889, 842, 29918, 354, 332, 4695, 29918, 29881, 2152, 294, 29898, 29881, 2152, 294, 29897, 13, 4706, 1583, 29889, 2142, 29889, 842, 29918, 354, 332, 4695, 29918, 1052, 26218, 29898, 13, 9651, 518, 1311, 29889, 8896, 5592, 262, 3313, 29918, 18037, 7856, 747, 29889, 1767, 3285, 13, 632, 1583, 29889, 8896, 5592, 262, 3313, 29918, 303, 335, 29990, 7856, 747, 29889, 1767, 3285, 13, 632, 1583, 29889, 8896, 5592, 262, 3313, 29918, 303, 335, 29979, 7856, 747, 29889, 1767, 580, 2314, 13, 4706, 1583, 29889, 2142, 29889, 842, 29918, 354, 332, 4695, 29918, 5450, 29918, 7052, 29898, 13, 9651, 518, 1311, 29889, 8896, 5592, 262, 3313, 29918, 303, 335, 21281, 29889, 1767, 3285, 13, 632, 1583, 29889, 8896, 5592, 262, 3313, 29918, 303, 335, 17185, 29889, 1767, 580, 2314, 13, 4706, 565, 451, 1059, 29918, 710, 29901, 13, 9651, 2428, 2141, 16044, 580, 13, 4706, 1683, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 1311, 29892, 525, 2392, 742, 1059, 29918, 710, 29892, 660, 3728, 3313, 29889, 20434, 29897, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 1858, 25392, 29907, 14044, 261, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 2697, 4128, 363, 278, 1623, 5461, 408, 2276, 29892, 1065, 372, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 715, 29883, 29918, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 572, 29883, 353, 715, 29883, 29918, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 572, 25392, 29918, 14941, 261, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 4144, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1018, 29901, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 3784, 21472, 29889, 842, 1917, 29898, 1311, 29889, 572, 29883, 29889, 657, 29918, 13519, 3101, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 3784, 18984, 29889, 842, 1917, 29898, 1311, 29889, 572, 29883, 29889, 657, 29918, 19708, 3101, 13, 4706, 5174, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 2392, 742, 13, 18884, 525, 23323, 451, 1303, 1857, 6055, 515, 715, 25392, 27372, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 842, 8667, 29879, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 842, 29918, 5182, 29918, 16744, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2962, 29907, 14044, 292, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 2962, 29918, 14941, 292, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 370, 441, 29907, 14044, 292, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 370, 441, 29918, 14941, 292, 29897, 13, 13, 1678, 822, 731, 29918, 5182, 29918, 16744, 29898, 1311, 1125, 13, 4706, 1018, 29901, 13, 9651, 1583, 29889, 572, 29883, 29889, 842, 29918, 13519, 29898, 1311, 29889, 1028, 262, 3313, 29918, 5182, 21472, 29889, 1767, 3101, 13, 9651, 8709, 29898, 29900, 29889, 29945, 29897, 13, 9651, 1583, 29889, 1220, 6103, 29918, 3784, 21472, 29889, 12038, 29898, 710, 29898, 1311, 29889, 572, 29883, 29889, 657, 29918, 13519, 22130, 13, 9651, 1583, 29889, 572, 29883, 29889, 842, 29918, 19708, 29898, 1311, 29889, 1028, 262, 3313, 29918, 5182, 18984, 29889, 1767, 3101, 13, 9651, 8709, 29898, 29900, 29889, 29945, 29897, 13, 9651, 1583, 29889, 1220, 6103, 29918, 3784, 18984, 29889, 12038, 29898, 710, 29898, 1311, 29889, 572, 29883, 29889, 657, 29918, 19708, 22130, 13, 4706, 5174, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 2392, 742, 13, 18884, 525, 2744, 1059, 2179, 2955, 746, 9348, 278, 3646, 6055, 525, 13, 18884, 525, 517, 278, 715, 25392, 27372, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 13, 1678, 822, 1369, 29918, 14941, 292, 29898, 1311, 1125, 13, 4706, 1121, 353, 660, 3728, 3313, 29889, 27392, 29898, 13, 462, 268, 1583, 29892, 525, 28173, 304, 5330, 568, 715, 25392, 742, 13, 462, 268, 525, 17506, 366, 1854, 366, 864, 304, 1065, 278, 715, 25392, 27372, 472, 525, 718, 13, 462, 268, 1583, 29889, 1220, 6103, 29918, 3784, 21472, 29889, 726, 580, 718, 525, 399, 363, 525, 718, 13, 462, 268, 1583, 29889, 1220, 6103, 29918, 3784, 18984, 29889, 726, 580, 718, 525, 1375, 29973, 742, 13, 462, 268, 660, 3728, 3313, 29889, 20434, 891, 660, 3728, 3313, 29889, 19420, 29897, 13, 4706, 565, 1121, 1275, 660, 3728, 3313, 29889, 20434, 29901, 13, 9651, 1121, 353, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 29956, 25614, 29901, 5399, 11757, 29884, 398, 16034, 742, 13, 18884, 525, 29902, 3580, 8476, 13566, 29901, 320, 29876, 12148, 9659, 411, 376, 8949, 29908, 393, 278, 3725, 29924, 24171, 525, 13, 18884, 525, 275, 472, 379, 6259, 29950, 478, 2477, 29965, 5005, 7790, 29876, 3644, 451, 29892, 17571, 8476, 29991, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 891, 660, 3728, 3313, 29889, 4920, 441, 29897, 13, 9651, 565, 1121, 1275, 660, 3728, 3313, 29889, 20434, 29901, 13, 18884, 1583, 29889, 5910, 3125, 29918, 2962, 29907, 14044, 292, 29889, 842, 10861, 29898, 8824, 29897, 13, 18884, 1583, 29889, 5910, 3125, 29918, 370, 441, 29907, 14044, 292, 29889, 842, 10861, 29898, 5574, 29897, 13, 18884, 396, 14402, 29901, 10480, 29892, 1510, 5941, 292, 4660, 29889, 13, 18884, 1583, 29889, 572, 29883, 29889, 19826, 29918, 14941, 292, 580, 13, 13, 1678, 822, 27450, 29918, 14941, 292, 29898, 1311, 1125, 13, 4706, 1583, 29889, 572, 29883, 29889, 370, 441, 29918, 14941, 292, 580, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2962, 29907, 14044, 292, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2962, 29907, 14044, 292, 29889, 12038, 29898, 13, 9651, 525, 4763, 297, 29899, 305, 314, 495, 5941, 292, 1889, 1495, 13, 4706, 1583, 29889, 5910, 3125, 29918, 370, 441, 29907, 14044, 292, 29889, 842, 10861, 29898, 8824, 29897, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 28268, 496, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 15941, 269, 29399, 1728, 6382, 292, 29889, 4911, 508, 6084, 920, 1784, 269, 29399, 322, 13, 539, 278, 28967, 12003, 2264, 29889, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 9200, 29873, 608, 29892, 1667, 29918, 7165, 29918, 9990, 29892, 1667, 29918, 7165, 29918, 21001, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 29885, 2357, 29873, 608, 353, 9200, 29873, 608, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 353, 1667, 29918, 7165, 29918, 9990, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 353, 1667, 29918, 7165, 29918, 21001, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 9961, 496, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 396, 3789, 701, 7135, 322, 9521, 304, 2767, 7928, 14839, 2645, 2948, 29901, 13, 4706, 1583, 29889, 18035, 29918, 21001, 353, 1605, 3567, 580, 13, 4706, 1583, 29889, 18035, 29918, 21001, 29889, 29879, 29889, 6915, 29898, 1311, 29889, 5504, 29918, 18035, 29897, 13, 4706, 1583, 29889, 4951, 728, 29918, 21001, 353, 1605, 3567, 580, 13, 4706, 1583, 29889, 4951, 728, 29918, 21001, 29889, 29879, 29889, 6915, 29898, 1311, 29889, 4951, 728, 29918, 9961, 496, 29897, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 4537, 29903, 29399, 29889, 842, 6069, 29898, 29896, 29892, 29871, 29896, 29900, 29900, 29897, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 4537, 29903, 29399, 29889, 842, 15771, 14448, 29898, 29896, 29897, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 4537, 29903, 29399, 29889, 842, 1917, 29898, 29945, 29897, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 4537, 29903, 29399, 29889, 1767, 7590, 29889, 6915, 29898, 1311, 29889, 5504, 29918, 18035, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2962, 2052, 307, 496, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 2962, 29918, 9961, 496, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 370, 441, 2052, 307, 496, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 370, 441, 29918, 9961, 496, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2962, 2052, 307, 496, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 370, 441, 2052, 307, 496, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 1583, 29889, 18337, 29918, 11808, 353, 29871, 29900, 13, 4706, 1583, 29889, 9961, 496, 29918, 262, 29918, 18035, 353, 7700, 13, 4706, 1583, 29889, 370, 18054, 353, 7700, 13, 4706, 1583, 29889, 29920, 29918, 29885, 1608, 905, 353, 7700, 13, 4706, 1583, 29889, 3317, 29918, 29879, 29399, 353, 1583, 29889, 1028, 262, 3313, 29918, 4537, 29903, 29399, 29889, 1767, 580, 13, 4706, 1583, 29889, 5504, 29918, 18035, 580, 13, 13, 1678, 822, 788, 29918, 517, 29918, 1188, 29898, 1311, 29892, 10191, 1125, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 29898, 13239, 29889, 4830, 29918, 1188, 29918, 8269, 29898, 7645, 876, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 2767, 29918, 18035, 29898, 1311, 1125, 13, 4706, 1583, 29889, 3317, 29918, 29879, 29399, 353, 1583, 29889, 1028, 262, 3313, 29918, 4537, 29903, 29399, 29889, 1767, 580, 13, 4706, 565, 1583, 29889, 18337, 29918, 11808, 1405, 29871, 29900, 29901, 13, 9651, 9886, 29918, 2230, 29918, 710, 353, 313, 13, 18884, 525, 1678, 525, 718, 851, 29898, 524, 3552, 1311, 29889, 3317, 29918, 29879, 29399, 448, 1583, 29889, 18337, 29918, 11808, 11877, 29896, 29906, 876, 13, 18884, 718, 525, 6923, 2175, 1495, 13, 4706, 1683, 29901, 13, 9651, 9886, 29918, 2230, 29918, 710, 353, 6629, 13, 4706, 1583, 29889, 1643, 29918, 4882, 2052, 307, 496, 29889, 12038, 29898, 710, 29898, 1311, 29889, 18337, 29918, 11808, 29897, 718, 8207, 29915, 13, 462, 462, 3986, 718, 851, 29898, 1311, 29889, 3317, 29918, 29879, 29399, 29897, 13, 462, 462, 3986, 718, 9886, 29918, 2230, 29918, 710, 29897, 13, 4706, 1583, 29889, 18035, 4297, 29918, 9961, 496, 29889, 842, 1917, 29898, 13, 9651, 938, 29898, 1311, 29889, 18337, 29918, 11808, 29914, 1311, 29889, 3317, 29918, 29879, 29399, 334, 29871, 29896, 29900, 29900, 876, 13, 13, 1678, 822, 1369, 29918, 9961, 496, 29898, 1311, 1125, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2962, 2052, 307, 496, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 370, 441, 2052, 307, 496, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 1583, 29889, 3092, 3313, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 27996, 2264, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 4537, 29903, 29399, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 3301, 8618, 2477, 29950, 350, 3308, 29979, 1495, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 4706, 3244, 353, 3244, 292, 29889, 4899, 29898, 5182, 29922, 1311, 29889, 9961, 496, 29918, 7097, 29897, 13, 4706, 3244, 29889, 2962, 580, 13, 13, 1678, 822, 8341, 29918, 9961, 496, 29898, 1311, 1125, 13, 4706, 396, 17732, 889, 1607, 13, 4706, 1583, 29889, 1202, 29918, 517, 29918, 1188, 877, 29941, 29963, 8673, 29956, 29901, 17732, 292, 889, 1607, 29889, 1495, 13, 4706, 1583, 29889, 29885, 2357, 29873, 608, 29889, 8551, 29918, 3959, 1607, 580, 13, 4706, 565, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 2704, 29918, 3859, 580, 1405, 29871, 29900, 29901, 13, 9651, 1583, 29889, 1202, 29918, 517, 29918, 1188, 877, 1783, 2241, 29901, 4829, 2821, 292, 889, 1607, 29889, 1495, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 12071, 29918, 2704, 29918, 3859, 580, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 1311, 29892, 525, 2392, 742, 13, 462, 18884, 525, 22709, 29901, 17732, 292, 278, 889, 1607, 5229, 29889, 525, 13, 462, 18884, 525, 15870, 304, 2821, 7522, 29889, 742, 660, 3728, 3313, 29889, 20434, 29897, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 27047, 3553, 1307, 1495, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 4706, 396, 7704, 2643, 3800, 304, 1404, 322, 10092, 6795, 322, 6728, 2594, 29901, 13, 4706, 565, 451, 1583, 29889, 370, 18054, 29901, 13, 9651, 660, 3728, 3313, 29889, 19678, 29898, 13, 18884, 1583, 29892, 525, 2052, 307, 496, 7743, 742, 13, 18884, 851, 29898, 1311, 29889, 3317, 29918, 29879, 29399, 29897, 718, 525, 269, 29399, 505, 1063, 5700, 8472, 29889, 525, 13, 18884, 525, 11536, 4559, 10809, 6206, 29901, 525, 13, 18884, 718, 851, 29898, 1311, 29889, 3317, 29918, 29879, 29399, 334, 1583, 29889, 27996, 2264, 847, 29871, 29896, 29900, 29900, 29900, 29897, 718, 525, 29871, 30263, 29885, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 9651, 1583, 29889, 18337, 29918, 11808, 353, 29871, 29900, 13, 9651, 1583, 29889, 5504, 29918, 18035, 580, 13, 4706, 25342, 1583, 29889, 29920, 29918, 29885, 1608, 905, 29901, 13, 9651, 396, 7704, 9177, 2643, 565, 796, 29635, 17809, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 12071, 29918, 2704, 29918, 3859, 580, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 29999, 2602, 29635, 742, 13, 18884, 525, 1576, 1857, 796, 2602, 947, 451, 1993, 278, 1833, 2998, 525, 13, 18884, 525, 29999, 2602, 297, 317, 29933, 12665, 3027, 29889, 6975, 366, 7522, 3939, 796, 29973, 525, 13, 18884, 525, 9984, 1854, 393, 278, 796, 2602, 338, 1959, 1434, 28967, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 4706, 1683, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 2052, 307, 496, 633, 18054, 742, 13, 18884, 851, 29898, 1311, 29889, 18337, 29918, 11808, 29897, 718, 525, 269, 29399, 505, 1063, 5700, 29889, 525, 13, 18884, 525, 11536, 4559, 10809, 6206, 29901, 525, 13, 18884, 718, 851, 29898, 1311, 29889, 18337, 29918, 11808, 334, 1583, 29889, 27996, 2264, 847, 29871, 29896, 29900, 29900, 29900, 29897, 718, 525, 29871, 30263, 29885, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 9651, 1583, 29889, 18337, 29918, 11808, 353, 29871, 29900, 13, 9651, 1583, 29889, 5504, 29918, 18035, 580, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2962, 2052, 307, 496, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 370, 441, 2052, 307, 496, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 1583, 29889, 3092, 3313, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 27996, 2264, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 4537, 29903, 29399, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 1583, 29889, 9961, 496, 29918, 262, 29918, 18035, 353, 7700, 13, 13, 1678, 822, 2948, 29918, 7097, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9961, 496, 29918, 262, 29918, 18035, 353, 5852, 13, 4706, 1583, 29889, 370, 18054, 353, 7700, 13, 4706, 1583, 29889, 29920, 29918, 29885, 1608, 905, 353, 7700, 13, 4706, 1583, 29889, 18337, 29918, 11808, 353, 29871, 29900, 13, 4706, 1583, 29889, 3317, 29918, 29879, 29399, 353, 1583, 29889, 1028, 262, 3313, 29918, 4537, 29903, 29399, 29889, 1767, 580, 13, 4706, 1583, 29889, 27996, 2264, 353, 1583, 29889, 1028, 262, 3313, 29918, 27996, 2264, 29889, 1767, 580, 13, 4706, 1583, 29889, 18035, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 4706, 396, 3617, 1857, 503, 2602, 310, 7408, 29901, 13, 4706, 503, 29918, 3283, 353, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 19190, 29918, 29920, 29898, 10685, 29918, 19207, 29922, 29896, 29897, 13, 4706, 565, 503, 29918, 3283, 338, 6213, 470, 503, 29918, 3283, 529, 29871, 29900, 29901, 13, 9651, 396, 3967, 1449, 29901, 13, 9651, 503, 29918, 3283, 353, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 19190, 29918, 29920, 29898, 10685, 29918, 19207, 29922, 29906, 29897, 13, 9651, 565, 503, 29918, 3283, 338, 6213, 470, 503, 29918, 3283, 529, 29871, 29900, 29901, 13, 18884, 1583, 29889, 1202, 29918, 517, 29918, 1188, 29898, 13, 462, 1678, 525, 1783, 2241, 29901, 4829, 5183, 796, 2602, 29889, 28268, 496, 633, 18054, 29889, 1495, 13, 18884, 1583, 29889, 29885, 2357, 29873, 608, 29889, 12071, 29918, 2704, 29918, 3859, 580, 13, 18884, 1583, 29889, 370, 18054, 353, 5852, 13, 4706, 565, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 2704, 29918, 3859, 580, 1275, 29871, 29906, 29900, 29953, 29901, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 12071, 29918, 2704, 29918, 3859, 580, 13, 9651, 1583, 29889, 29920, 29918, 29885, 1608, 905, 353, 5852, 13, 9651, 1583, 29889, 370, 18054, 353, 5852, 13, 9651, 1583, 29889, 1202, 29918, 517, 29918, 1188, 29898, 13, 18884, 525, 1783, 2241, 29901, 796, 2602, 29635, 29889, 28268, 496, 633, 18054, 29889, 1495, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 14474, 796, 1495, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 4706, 565, 451, 1583, 29889, 370, 18054, 29901, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 28502, 29918, 3959, 1607, 580, 13, 9651, 1583, 29889, 1202, 29918, 517, 29918, 1188, 877, 29941, 29963, 8673, 29956, 29901, 14104, 292, 889, 1607, 304, 2978, 2602, 29889, 1495, 13, 9651, 565, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 2704, 29918, 3859, 580, 1405, 29871, 29900, 29901, 13, 18884, 1583, 29889, 1202, 29918, 517, 29918, 1188, 29898, 13, 462, 1678, 525, 1783, 2241, 29901, 4829, 8401, 889, 1607, 304, 2978, 2602, 29889, 525, 13, 462, 1678, 525, 2052, 307, 496, 633, 18054, 29889, 1495, 13, 18884, 1583, 29889, 370, 18054, 353, 5852, 13, 18884, 1583, 29889, 29885, 2357, 29873, 608, 29889, 12071, 29918, 2704, 29918, 3859, 580, 13, 4706, 396, 1275, 2751, 28268, 496, 2425, 1275, 2751, 25512, 13, 4706, 1550, 313, 1311, 29889, 18337, 29918, 11808, 529, 1583, 29889, 3317, 29918, 29879, 29399, 29897, 322, 451, 1583, 29889, 370, 18054, 29901, 13, 9651, 396, 25249, 304, 716, 503, 2602, 29901, 13, 9651, 503, 29918, 3283, 353, 503, 29918, 3283, 718, 313, 1311, 29889, 27996, 2264, 847, 29871, 29896, 29900, 29900, 29900, 29897, 13, 9651, 1583, 29889, 1202, 29918, 517, 29918, 1188, 29898, 13, 18884, 525, 29941, 29963, 8673, 29956, 29901, 25249, 304, 716, 796, 29901, 525, 718, 22372, 29900, 29901, 29889, 29941, 29888, 29913, 4286, 4830, 29898, 29920, 29918, 3283, 876, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 11631, 29918, 19190, 29918, 517, 29918, 29920, 29898, 29920, 29918, 3283, 29897, 13, 9651, 396, 7704, 716, 796, 2602, 297, 1667, 3474, 29901, 13, 9651, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 14474, 796, 1495, 13, 9651, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 9651, 396, 5399, 565, 727, 892, 9200, 29873, 608, 4828, 29901, 13, 9651, 565, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 2704, 29918, 3859, 580, 1405, 29871, 29900, 29901, 13, 18884, 1583, 29889, 1202, 29918, 517, 29918, 1188, 29898, 13, 462, 1678, 525, 1783, 2241, 29901, 796, 7408, 1108, 17809, 29889, 28268, 496, 633, 18054, 29889, 1495, 13, 18884, 1583, 29889, 370, 18054, 353, 5852, 13, 18884, 1583, 29889, 29885, 2357, 29873, 608, 29889, 12071, 29918, 2704, 29918, 3859, 580, 13, 18884, 2867, 13, 9651, 1583, 29889, 1202, 29918, 517, 29918, 1188, 877, 29941, 29963, 8673, 29956, 29901, 315, 329, 1259, 297, 6728, 6702, 13, 462, 9651, 718, 851, 29898, 1311, 29889, 27996, 2264, 29897, 718, 525, 302, 29885, 28967, 12003, 2264, 467, 1495, 13, 9651, 396, 1938, 278, 2948, 5700, 313, 7582, 29892, 3240, 1461, 29892, 297, 2978, 2602, 29897, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 1867, 29918, 8159, 29918, 9961, 496, 29918, 7582, 580, 13, 9651, 8709, 29898, 1311, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 8159, 29918, 7582, 29918, 19708, 580, 448, 29871, 29945, 29897, 13, 9651, 565, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 2704, 29918, 3859, 580, 1405, 29871, 29900, 29901, 13, 18884, 1583, 29889, 1202, 29918, 517, 29918, 1188, 29898, 13, 462, 1678, 525, 1783, 2241, 29901, 315, 329, 1259, 1108, 17809, 29889, 28268, 496, 633, 18054, 29889, 1495, 13, 18884, 1583, 29889, 370, 18054, 353, 5852, 13, 18884, 1583, 29889, 29885, 2357, 29873, 608, 29889, 12071, 29918, 2704, 29918, 3859, 580, 13, 18884, 2867, 13, 9651, 1683, 29901, 13, 18884, 1583, 29889, 1202, 29918, 517, 29918, 1188, 877, 29941, 29963, 8673, 29956, 29901, 28268, 496, 5700, 8676, 29889, 1495, 13, 18884, 1583, 29889, 18337, 29918, 11808, 4619, 29871, 29896, 13, 18884, 396, 10318, 6728, 2594, 322, 22780, 6795, 13, 18884, 1583, 29889, 18035, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 4706, 396, 1275, 2751, 2796, 310, 2948, 2425, 1275, 2751, 25512, 13, 4706, 396, 9954, 284, 393, 3244, 338, 2309, 29901, 13, 4706, 1583, 29889, 4951, 728, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 27450, 29918, 9961, 496, 29898, 1311, 1125, 13, 4706, 1583, 29889, 370, 18054, 353, 5852, 13, 4706, 1583, 29889, 5910, 3125, 29918, 370, 441, 2052, 307, 496, 29889, 842, 10861, 29898, 8824, 29897, 13, 13, 1678, 822, 3802, 2624, 29898, 1311, 29892, 1741, 1125, 13, 4706, 565, 451, 1583, 29889, 9961, 496, 29918, 262, 29918, 18035, 29901, 13, 9651, 1741, 29889, 16044, 580, 13, 4706, 1683, 29901, 13, 9651, 1741, 29889, 17281, 580, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 29889, 9961, 496, 29918, 262, 29918, 18035, 29901, 13, 9651, 2428, 2141, 16044, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 22351, 4308, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 10644, 339, 2658, 470, 27401, 263, 2323, 3515, 515, 4116, 442, 1660, 29924, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2295, 29892, 3031, 29892, 1667, 29918, 7165, 29918, 9990, 29892, 1667, 29918, 7165, 29918, 21001, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 16859, 353, 2295, 13, 4706, 1583, 29889, 12846, 353, 3031, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 353, 1667, 29918, 7165, 29918, 9990, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 353, 1667, 29918, 7165, 29918, 21001, 13, 4706, 1583, 29889, 4951, 728, 29918, 21001, 353, 1605, 3567, 580, 13, 4706, 1583, 29889, 4951, 728, 29918, 21001, 29889, 29879, 29889, 6915, 29898, 1311, 29889, 16192, 29918, 8835, 29897, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 3874, 29890, 29918, 2557, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 14334, 353, 851, 29898, 12673, 29889, 12673, 29889, 3707, 3101, 13, 4706, 396, 15154, 777, 4890, 515, 5335, 342, 481, 304, 679, 2854, 934, 1024, 29901, 13, 4706, 14334, 353, 14334, 7503, 29896, 29929, 1822, 21652, 3319, 536, 29898, 29883, 1125, 6213, 363, 274, 297, 525, 8956, 6169, 1800, 13, 4706, 1583, 29889, 1445, 29918, 978, 353, 525, 3027, 29918, 29915, 718, 14334, 13, 4706, 1583, 29889, 1220, 6103, 29918, 9507, 29889, 12038, 29898, 1311, 29889, 1445, 29918, 978, 29897, 13, 4706, 3515, 29918, 2311, 29892, 15526, 29918, 2311, 29892, 24013, 29918, 2230, 353, 1583, 29889, 12846, 29889, 657, 29918, 3874, 29890, 29918, 11027, 580, 13, 4706, 3787, 29918, 690, 29918, 1761, 353, 518, 13, 9651, 14210, 29881, 13105, 1273, 29881, 29915, 1273, 313, 690, 29961, 29900, 1402, 620, 29961, 29896, 2314, 363, 620, 297, 1583, 29889, 12846, 29889, 1254, 29949, 1525, 29918, 15989, 29962, 13, 4706, 1583, 29889, 510, 17801, 29918, 2557, 3505, 29889, 1202, 6913, 29898, 8899, 29918, 690, 29918, 1761, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 2557, 3505, 29889, 842, 7583, 3220, 29898, 2557, 29918, 2311, 29897, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29886, 15711, 3505, 29889, 842, 1917, 29898, 29886, 15711, 29918, 2311, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 29881, 5872, 2481, 29889, 1202, 6913, 29898, 1958, 29898, 710, 29892, 1583, 29889, 12846, 29889, 29928, 8851, 2208, 29918, 15307, 876, 13, 4706, 1583, 29889, 510, 17801, 29918, 29881, 5872, 2481, 29889, 842, 7583, 3220, 29898, 13, 9651, 1583, 29889, 12846, 29889, 29928, 8851, 2208, 29918, 15307, 29889, 2248, 29898, 29881, 5872, 29918, 2230, 876, 13, 4706, 1583, 29889, 5910, 3125, 29918, 16192, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 16192, 29918, 2557, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 7620, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 7620, 29918, 2557, 29897, 13, 13, 1678, 822, 12812, 29918, 2557, 29898, 1311, 1125, 13, 4706, 9995, 29083, 322, 4078, 263, 2323, 3515, 773, 278, 1857, 17229, 6055, 1213, 15945, 13, 4706, 1583, 29889, 1445, 29918, 978, 353, 1583, 29889, 1220, 6103, 29918, 9507, 29889, 726, 580, 13, 4706, 396, 16913, 322, 3394, 17229, 6055, 29901, 13, 4706, 4629, 29918, 29881, 5872, 29918, 2230, 353, 1583, 29889, 12846, 29889, 29928, 8851, 2208, 29918, 15307, 29961, 13, 9651, 1583, 29889, 510, 17801, 29918, 29881, 5872, 2481, 29889, 3784, 3220, 580, 29962, 13, 4706, 1583, 29889, 12846, 29889, 842, 29918, 3874, 29890, 29918, 11027, 29898, 1311, 29889, 510, 17801, 29918, 2557, 3505, 29889, 3784, 3220, 3285, 13, 462, 462, 259, 1583, 29889, 8896, 5592, 262, 3313, 29918, 29886, 15711, 3505, 29889, 1767, 3285, 13, 462, 462, 259, 4629, 29918, 29881, 5872, 29918, 2230, 29897, 13, 4706, 1583, 29889, 12846, 29889, 7302, 29918, 3874, 29890, 29918, 11027, 580, 13, 4706, 1583, 29889, 5910, 3125, 29918, 16192, 29889, 12038, 877, 15716, 1495, 13, 4706, 1583, 29889, 5910, 3125, 29918, 16192, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 7620, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 660, 4873, 29889, 5014, 13634, 580, 13, 4706, 3244, 353, 3244, 292, 29889, 4899, 29898, 5182, 29922, 1311, 29889, 19826, 29918, 16192, 29897, 13, 4706, 3244, 29889, 2962, 580, 13, 13, 1678, 822, 2189, 29918, 16192, 29898, 1311, 1125, 13, 4706, 9995, 10644, 1548, 263, 716, 3515, 29889, 11080, 3860, 297, 263, 3244, 1363, 372, 1122, 2125, 777, 13, 965, 931, 322, 14839, 881, 451, 3889, 911, 29889, 13, 4706, 9995, 13, 4706, 1583, 29889, 16192, 29918, 8698, 353, 1583, 29889, 12846, 29889, 562, 1548, 29918, 2557, 29898, 13, 9651, 1583, 29889, 16859, 1839, 562, 29939, 16215, 3188, 29918, 3972, 2033, 718, 525, 1966, 29915, 718, 1583, 29889, 1445, 29918, 978, 718, 15300, 29873, 361, 1495, 13, 4706, 1583, 29889, 4951, 728, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 12812, 29918, 8835, 29898, 1311, 1125, 13, 4706, 9995, 4013, 740, 338, 2000, 746, 278, 12812, 338, 4866, 29889, 13, 965, 2538, 300, 278, 14839, 322, 1510, 1121, 310, 17229, 1899, 29889, 13, 4706, 9995, 13, 4706, 1583, 29889, 5910, 3125, 29918, 16192, 29889, 12038, 877, 29083, 322, 17229, 1495, 13, 4706, 1583, 29889, 5910, 3125, 29918, 16192, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 7620, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 565, 1583, 29889, 16192, 29918, 8698, 29901, 13, 9651, 1583, 29889, 1202, 29918, 517, 29918, 1188, 877, 1783, 2241, 29901, 16740, 3515, 16692, 491, 1404, 29889, 1495, 13, 9651, 660, 3728, 3313, 29889, 19678, 29898, 13, 18884, 1583, 29892, 525, 4308, 16692, 742, 13, 18884, 525, 1576, 1967, 471, 16692, 322, 7160, 408, 525, 13, 18884, 718, 1583, 29889, 1445, 29918, 978, 718, 13, 18884, 15300, 29873, 361, 297, 278, 1857, 2967, 3884, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 4706, 1683, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 2392, 742, 13, 18884, 525, 2744, 1059, 288, 2764, 1127, 1550, 15661, 304, 1274, 1548, 278, 3515, 29901, 525, 13, 18884, 718, 1583, 29889, 12846, 29889, 657, 29918, 2704, 29918, 29883, 1071, 3285, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 9651, 1583, 29889, 12846, 29889, 12071, 29918, 2704, 29918, 3859, 580, 13, 13, 1678, 822, 4078, 29918, 2557, 29898, 1311, 1125, 13, 4706, 9995, 11371, 278, 1967, 5279, 7962, 297, 4116, 442, 1660, 29924, 1213, 15945, 13, 4706, 1583, 29889, 1445, 29918, 978, 353, 1583, 29889, 1220, 6103, 29918, 9507, 29889, 726, 580, 13, 4706, 2551, 353, 1583, 29889, 12846, 29889, 7620, 29918, 2557, 29898, 359, 29889, 2084, 29889, 7122, 29898, 13, 9651, 1583, 29889, 16859, 1839, 562, 29939, 16215, 3188, 29918, 3972, 7464, 1583, 29889, 1445, 29918, 978, 718, 15300, 29873, 361, 8785, 13, 4706, 565, 2551, 29901, 13, 9651, 1583, 29889, 1202, 29918, 517, 29918, 1188, 877, 1783, 2241, 29901, 16740, 3515, 7160, 491, 1404, 29889, 1495, 13, 9651, 660, 3728, 3313, 29889, 19678, 29898, 13, 18884, 1583, 29892, 525, 4308, 7160, 742, 13, 18884, 525, 1576, 1857, 1967, 4318, 297, 4116, 442, 1660, 29924, 471, 7160, 408, 525, 13, 18884, 718, 1583, 29889, 1445, 29918, 978, 718, 15300, 29873, 361, 297, 278, 1857, 2967, 3884, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 4706, 1683, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 2392, 742, 13, 18884, 525, 2744, 1059, 288, 2764, 1127, 1550, 15661, 304, 4078, 278, 1857, 525, 13, 18884, 525, 29903, 3034, 1660, 29924, 1967, 29901, 525, 13, 18884, 718, 1583, 29889, 12846, 29889, 657, 29918, 2704, 29918, 29883, 1071, 3285, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 9651, 1583, 29889, 12846, 29889, 12071, 29918, 2704, 29918, 3859, 580, 13, 13, 1678, 822, 788, 29918, 517, 29918, 1188, 29898, 1311, 29892, 10191, 1125, 13, 4706, 9995, 11403, 7135, 322, 9521, 304, 788, 385, 6251, 304, 278, 1667, 1480, 1213, 15945, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 29898, 13239, 29889, 4830, 29918, 1188, 29918, 8269, 29898, 7645, 876, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 382, 3912, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 8964, 382, 3912, 4660, 322, 1235, 1404, 4607, 22913, 373, 470, 1283, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3031, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 12846, 353, 3031, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 29872, 400, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 5910, 3125, 29918, 265, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 685, 29918, 265, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2696, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 685, 29918, 2696, 29897, 13, 4706, 1583, 29889, 5504, 29918, 4882, 580, 13, 13, 1678, 822, 2767, 29918, 4882, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 12846, 29889, 275, 29918, 29872, 400, 29918, 265, 7295, 13, 9651, 5112, 353, 660, 29925, 26456, 29898, 1311, 29889, 1643, 29918, 29923, 3912, 5709, 29889, 29886, 26456, 3101, 13, 9651, 5112, 29889, 842, 3306, 29898, 29984, 29925, 26456, 29889, 5907, 1626, 29892, 660, 3306, 29898, 17303, 29889, 1127, 876, 13, 9651, 1583, 29889, 1643, 29918, 29923, 3912, 5709, 29889, 842, 29925, 26456, 29898, 7830, 29897, 13, 9651, 1583, 29889, 1643, 29918, 29923, 3912, 5709, 29889, 12038, 877, 1164, 1495, 13, 9651, 1583, 29889, 5910, 3125, 29918, 265, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 5910, 3125, 29918, 2696, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 1683, 29901, 13, 9651, 5112, 353, 660, 29925, 26456, 29898, 1311, 29889, 1643, 29918, 29923, 3912, 5709, 29889, 29886, 26456, 3101, 13, 9651, 5112, 29889, 842, 3306, 29898, 29984, 29925, 26456, 29889, 5907, 1626, 29892, 660, 3306, 29898, 17303, 29889, 8517, 876, 13, 9651, 1583, 29889, 1643, 29918, 29923, 3912, 5709, 29889, 842, 29925, 26456, 29898, 7830, 29897, 13, 9651, 1583, 29889, 1643, 29918, 29923, 3912, 5709, 29889, 12038, 877, 27681, 1495, 13, 9651, 1583, 29889, 5910, 3125, 29918, 265, 29889, 842, 10861, 29898, 5574, 29897, 13, 9651, 1583, 29889, 5910, 3125, 29918, 2696, 29889, 842, 10861, 29898, 8824, 29897, 13, 13, 1678, 822, 2507, 29918, 265, 29898, 1311, 1125, 13, 4706, 1583, 29889, 5910, 3125, 29918, 265, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 265, 29889, 12038, 877, 15716, 1495, 13, 4706, 3244, 353, 3244, 292, 29889, 4899, 29898, 5182, 29922, 1311, 29889, 6717, 29918, 265, 29918, 9006, 29918, 392, 29918, 10685, 29897, 13, 4706, 3244, 29889, 2962, 580, 13, 13, 1678, 822, 2507, 29918, 2696, 29898, 1311, 1125, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2696, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2696, 29889, 12038, 877, 15716, 1495, 13, 4706, 660, 4873, 29889, 5014, 13634, 580, 13, 4706, 3244, 353, 3244, 292, 29889, 4899, 29898, 5182, 29922, 1311, 29889, 6717, 29918, 2696, 29918, 9006, 29918, 392, 29918, 10685, 29897, 13, 4706, 3244, 29889, 2962, 580, 13, 13, 1678, 822, 3638, 29918, 265, 29918, 9006, 29918, 392, 29918, 10685, 29898, 1311, 1125, 13, 4706, 1583, 29889, 12846, 29889, 685, 29918, 29872, 400, 29918, 265, 580, 13, 4706, 4236, 29918, 10685, 29918, 2230, 353, 29871, 29896, 29945, 13, 4706, 1550, 451, 1583, 29889, 12846, 29889, 275, 29918, 29872, 400, 29918, 265, 580, 322, 4236, 29918, 10685, 29918, 2230, 1405, 29871, 29900, 29901, 13, 9651, 8709, 29898, 29896, 29897, 13, 9651, 4236, 29918, 10685, 29918, 2230, 22361, 29871, 29896, 13, 4706, 1583, 29889, 5910, 3125, 29918, 265, 29889, 12038, 877, 1164, 1495, 13, 4706, 1583, 29889, 5504, 29918, 4882, 580, 13, 13, 1678, 822, 3638, 29918, 2696, 29918, 9006, 29918, 392, 29918, 10685, 29898, 1311, 1125, 13, 4706, 1583, 29889, 12846, 29889, 685, 29918, 29872, 400, 29918, 2696, 580, 13, 4706, 4236, 29918, 10685, 29918, 2230, 353, 29871, 29896, 29945, 13, 4706, 1550, 451, 1583, 29889, 12846, 29889, 275, 29918, 29872, 400, 29918, 2696, 580, 322, 4236, 29918, 10685, 29918, 2230, 1405, 29871, 29900, 29901, 13, 9651, 8709, 29898, 29896, 29897, 13, 9651, 4236, 29918, 10685, 29918, 2230, 22361, 29871, 29896, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2696, 29889, 12038, 877, 27681, 1495, 13, 4706, 1583, 29889, 5504, 29918, 4882, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 383, 29911, 2697, 9629, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 6359, 1985, 5418, 322, 380, 335, 29885, 362, 4128, 515, 1404, 1881, 470, 13, 539, 515, 4116, 442, 1660, 29924, 363, 4444, 399, 29928, 29914, 1254, 6259, 363, 5375, 260, 5475, 29914, 29949, 29963, 29879, 297, 13, 539, 8569, 5780, 29889, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3031, 29892, 1857, 29918, 9970, 29892, 1857, 29918, 303, 335, 29918, 29916, 29892, 1857, 29918, 303, 335, 29918, 29891, 29892, 13, 462, 17402, 29918, 8513, 29922, 8824, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 12846, 353, 3031, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 18037, 29918, 10154, 29918, 842, 29918, 7529, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 565, 17402, 29918, 8513, 29901, 13, 9651, 1583, 29889, 5910, 3125, 29918, 657, 4591, 12636, 442, 1660, 29924, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 657, 4591, 12636, 442, 1660, 29924, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 657, 29918, 3166, 29918, 12846, 29897, 13, 4706, 565, 1857, 29918, 9970, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3784, 20560, 29889, 842, 1917, 29898, 29896, 29900, 29900, 29900, 334, 1857, 29918, 9970, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3784, 20560, 29889, 842, 1917, 29898, 29900, 29897, 13, 4706, 565, 1857, 29918, 303, 335, 29918, 29916, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3784, 855, 335, 29990, 29889, 842, 1917, 29898, 3784, 29918, 303, 335, 29918, 29916, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3784, 855, 335, 29990, 29889, 842, 1917, 29898, 29900, 29897, 13, 4706, 565, 1857, 29918, 303, 335, 29918, 29891, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3784, 855, 335, 29979, 29889, 842, 1917, 29898, 3784, 29918, 303, 335, 29918, 29891, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3784, 855, 335, 29979, 29889, 842, 1917, 29898, 29900, 29897, 13, 13, 1678, 822, 679, 29918, 3166, 29918, 12846, 29898, 1311, 1125, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3784, 20560, 29889, 842, 1917, 29898, 29896, 29900, 29900, 29900, 334, 1583, 29889, 12846, 29889, 657, 29918, 9970, 3101, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3784, 855, 335, 29990, 29889, 842, 1917, 29898, 1311, 29889, 12846, 29889, 657, 29918, 303, 335, 29918, 29916, 3101, 13, 4706, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3784, 855, 335, 29979, 29889, 842, 1917, 29898, 1311, 29889, 12846, 29889, 657, 29918, 303, 335, 29918, 29891, 3101, 13, 13, 1678, 822, 736, 29918, 7529, 29898, 1311, 1125, 13, 4706, 736, 313, 1311, 29889, 1482, 29918, 9970, 29892, 1583, 29889, 1482, 29918, 303, 335, 29918, 29916, 29892, 1583, 29889, 1482, 29918, 303, 335, 29918, 29891, 29897, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 1583, 29889, 1482, 29918, 9970, 353, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3784, 20560, 29889, 1767, 580, 847, 29871, 29896, 29900, 29900, 29900, 13, 4706, 1583, 29889, 1482, 29918, 303, 335, 29918, 29916, 353, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3784, 855, 335, 29990, 29889, 1767, 580, 13, 4706, 1583, 29889, 1482, 29918, 303, 335, 29918, 29891, 353, 1583, 29889, 8896, 5592, 262, 3313, 29918, 3784, 855, 335, 29979, 29889, 1767, 580, 13, 4706, 2428, 2141, 16044, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 383, 29911, 16619, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 16619, 278, 7408, 304, 278, 4629, 25900, 470, 438, 29963, 2602, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 9200, 29873, 608, 29892, 14821, 29918, 5205, 29892, 6856, 29918, 12847, 29892, 13, 462, 6856, 29918, 4537, 29892, 25900, 29918, 4537, 29892, 15397, 29918, 4537, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 29885, 2357, 29873, 608, 353, 9200, 29873, 608, 13, 4706, 1583, 29889, 2395, 353, 14821, 29918, 5205, 13, 4706, 1583, 29889, 29887, 29885, 353, 6856, 29918, 12847, 13, 4706, 1583, 29889, 586, 29918, 4537, 353, 15397, 29918, 4537, 13, 4706, 1583, 29889, 7720, 29918, 4537, 353, 6856, 29918, 4537, 13, 4706, 1583, 29889, 29873, 488, 29918, 4537, 353, 25900, 29918, 4537, 13, 4706, 1583, 29889, 2704, 353, 7700, 13, 4706, 1583, 29889, 4951, 728, 29918, 21001, 353, 1605, 3567, 580, 13, 4706, 1583, 29889, 4951, 728, 29918, 21001, 29889, 29879, 29889, 6915, 29898, 1311, 29889, 11631, 29918, 5729, 9446, 29897, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 18037, 29918, 10154, 29918, 11631, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 5910, 3125, 29918, 11631, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 2962, 29918, 11631, 29897, 13, 4706, 565, 15397, 29918, 4537, 6736, 29871, 29900, 29901, 13, 9651, 1583, 29889, 1643, 29918, 11631, 8667, 29889, 12038, 877, 29949, 29963, 525, 718, 851, 29898, 586, 29918, 4537, 876, 13, 4706, 25342, 313, 7720, 29918, 4537, 6736, 29871, 29900, 29897, 322, 313, 29873, 488, 29918, 4537, 6736, 29871, 29900, 1125, 13, 9651, 1583, 29889, 1643, 29918, 11631, 8667, 29889, 12038, 29898, 13, 18884, 525, 5756, 29901, 1273, 29881, 29892, 323, 488, 29901, 1273, 29881, 29915, 1273, 313, 7720, 29918, 4537, 29892, 25900, 29918, 4537, 876, 13, 13, 1678, 822, 1369, 29918, 11631, 29898, 1311, 1125, 13, 4706, 1583, 29889, 2704, 353, 7700, 13, 4706, 1583, 29889, 5910, 3125, 29918, 11631, 29889, 12038, 877, 16890, 29891, 856, 3113, 4480, 29889, 1495, 13, 4706, 1583, 29889, 5910, 3125, 29918, 11631, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 3244, 353, 3244, 292, 29889, 4899, 29898, 5182, 29922, 1311, 29889, 11631, 29918, 392, 29918, 10685, 29897, 13, 4706, 3244, 29889, 2962, 580, 13, 13, 1678, 822, 4337, 29918, 392, 29918, 10685, 29898, 1311, 1125, 13, 4706, 396, 16012, 3646, 10350, 13, 4706, 565, 1583, 29889, 586, 29918, 4537, 6736, 29871, 29900, 29901, 13, 9651, 7408, 29918, 29916, 29892, 7408, 29918, 29891, 353, 1583, 29889, 2395, 29889, 657, 29918, 586, 29918, 1760, 276, 29918, 29879, 29898, 1311, 29889, 586, 29918, 4537, 29897, 13, 4706, 25342, 1583, 29889, 29873, 488, 29918, 4537, 6736, 29871, 29900, 29901, 13, 9651, 7408, 29918, 29916, 29892, 7408, 29918, 29891, 353, 1583, 29889, 29887, 29885, 29889, 657, 29918, 29873, 488, 29918, 1111, 24266, 29918, 29879, 29898, 13, 18884, 1583, 29889, 7720, 29918, 4537, 29892, 1583, 29889, 29873, 488, 29918, 4537, 29897, 13, 4706, 396, 2567, 4337, 278, 7408, 13, 4706, 1583, 29889, 29885, 2357, 29873, 608, 29889, 11631, 29918, 19190, 29918, 517, 29918, 3594, 3552, 19190, 29918, 29916, 29892, 7408, 29918, 29891, 876, 13, 4706, 565, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 2704, 29918, 3859, 580, 1405, 29871, 29900, 29901, 13, 9651, 1583, 29889, 2704, 353, 5852, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 12071, 29918, 2704, 29918, 3859, 580, 13, 4706, 396, 9954, 284, 393, 4337, 4866, 13, 4706, 1583, 29889, 4951, 728, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 4337, 29918, 5729, 9446, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 2704, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 1311, 29892, 525, 2392, 742, 13, 18884, 525, 2744, 1059, 471, 17809, 2645, 278, 4337, 29889, 525, 13, 18884, 525, 12148, 1018, 1449, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 4706, 1683, 29901, 13, 9651, 660, 3728, 3313, 29889, 19678, 29898, 1311, 29892, 525, 16619, 4866, 742, 13, 18884, 525, 1576, 7408, 756, 1063, 6153, 304, 278, 4629, 2602, 29889, 525, 13, 18884, 525, 1576, 4533, 637, 674, 367, 4784, 1156, 24795, 9280, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 9651, 2428, 2141, 16044, 580, 13, 4706, 396, 1174, 519, 2826, 1449, 29901, 13, 4706, 1583, 29889, 5910, 3125, 29918, 11631, 29889, 12038, 877, 16619, 1449, 1495, 13, 4706, 1583, 29889, 5910, 3125, 29918, 11631, 29889, 842, 10861, 29898, 5574, 29897, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 16843, 3057, 29928, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 5894, 689, 263, 4036, 29899, 20919, 29899, 4561, 1060, 29979, 29999, 10992, 1243, 29889, 1222, 27910, 29892, 871, 363, 13, 539, 6724, 29914, 8382, 3460, 29889, 9333, 1736, 411, 263, 9200, 29873, 608, 363, 1286, 1213, 15945, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 274, 16434, 29892, 9200, 29873, 608, 29892, 1667, 29918, 7165, 29918, 9990, 29892, 1667, 29918, 7165, 29918, 21001, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 16859, 353, 274, 16434, 13, 4706, 1583, 29889, 29885, 2357, 29873, 608, 353, 9200, 29873, 608, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 353, 1667, 29918, 7165, 29918, 9990, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 353, 1667, 29918, 7165, 29918, 21001, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 14817, 272, 29918, 1688, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 396, 3789, 701, 7135, 322, 9521, 304, 2767, 7928, 14839, 2645, 2948, 29901, 13, 4706, 1583, 29889, 18035, 29918, 21001, 353, 1605, 3567, 580, 13, 4706, 1583, 29889, 18035, 29918, 21001, 29889, 29879, 29889, 6915, 29898, 1311, 29889, 5504, 29918, 18035, 29897, 13, 4706, 1583, 29889, 4951, 728, 29918, 21001, 353, 1605, 3567, 580, 13, 4706, 1583, 29889, 4951, 728, 29918, 21001, 29889, 29879, 29889, 6915, 29898, 1311, 29889, 1688, 29918, 4951, 3276, 29897, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 19708, 29889, 842, 6069, 29898, 29896, 29892, 29871, 29929, 29929, 29929, 29929, 29897, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 19708, 29889, 842, 15771, 14448, 29898, 29896, 29900, 29897, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 19708, 29889, 842, 1917, 29898, 29896, 29900, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2962, 3057, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 2962, 29918, 8172, 29918, 20919, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 370, 441, 3057, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 370, 441, 29918, 8172, 29918, 20919, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2962, 3057, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 370, 441, 3057, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 1583, 29889, 1688, 29918, 262, 29918, 18035, 353, 7700, 13, 4706, 1583, 29889, 2962, 29918, 2230, 353, 6213, 13, 13, 1678, 822, 788, 29918, 517, 29918, 1188, 29898, 1311, 29892, 10191, 1125, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 29898, 13239, 29889, 4830, 29918, 1188, 29918, 8269, 29898, 7645, 876, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 2767, 29918, 18035, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 2962, 29918, 2230, 338, 451, 6213, 29901, 13, 9651, 560, 28170, 29918, 2230, 353, 931, 580, 448, 1583, 29889, 2962, 29918, 2230, 13, 9651, 565, 560, 28170, 29918, 2230, 1405, 1583, 29889, 19708, 334, 29871, 29953, 29900, 29901, 13, 18884, 1583, 29889, 1688, 29918, 262, 29918, 18035, 353, 7700, 13, 18884, 1583, 29889, 18035, 4297, 29889, 842, 1917, 29898, 29896, 29900, 29900, 29897, 13, 9651, 1683, 29901, 13, 18884, 1583, 29889, 18035, 4297, 29889, 842, 1917, 29898, 13, 462, 1678, 938, 29898, 295, 28170, 29918, 2230, 14571, 1311, 29889, 19708, 334, 29871, 29953, 29900, 29897, 334, 29871, 29896, 29900, 29900, 876, 13, 13, 1678, 822, 1369, 29918, 8172, 29918, 20919, 29898, 1311, 1125, 13, 4706, 1583, 29889, 370, 18054, 353, 7700, 13, 4706, 1583, 29889, 2962, 29918, 29920, 353, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 19190, 29918, 29920, 580, 13, 4706, 565, 1583, 29889, 2962, 29918, 29920, 338, 451, 6213, 29901, 13, 9651, 1583, 29889, 5910, 3125, 29918, 2962, 3057, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 5910, 3125, 29918, 370, 441, 3057, 29889, 842, 10861, 29898, 5574, 29897, 13, 9651, 1583, 29889, 3092, 3313, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 19708, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 18035, 4297, 29889, 842, 1917, 29898, 29900, 29897, 13, 9651, 3244, 353, 3244, 292, 29889, 4899, 29898, 5182, 29922, 1311, 29889, 8172, 29918, 20919, 29918, 7097, 29897, 13, 9651, 3244, 29889, 2962, 580, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 12071, 29918, 2704, 29918, 3859, 580, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 1311, 29892, 525, 2392, 742, 13, 18884, 525, 23323, 451, 1303, 1857, 503, 7408, 2602, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 13, 1678, 822, 27450, 29918, 8172, 29918, 20919, 29898, 1311, 1125, 13, 4706, 1583, 29889, 370, 18054, 353, 5852, 13, 4706, 1583, 29889, 1688, 29918, 262, 29918, 18035, 353, 7700, 13, 13, 1678, 822, 1243, 29918, 4951, 3276, 29898, 1311, 1125, 13, 4706, 1583, 29889, 1202, 29918, 517, 29918, 1188, 877, 29941, 29963, 8673, 29956, 29901, 16843, 1243, 7743, 29889, 1495, 13, 4706, 1583, 29889, 1202, 29918, 517, 29918, 1188, 877, 29941, 29963, 8673, 29956, 29901, 14104, 292, 1250, 304, 6257, 503, 2602, 29889, 1495, 13, 4706, 396, 5701, 1725, 4464, 1818, 367, 731, 304, 2089, 1363, 2923, 5517, 1405, 29871, 29906, 29900, 29900, 302, 29885, 13, 4706, 1583, 29889, 29885, 2357, 29873, 608, 29889, 11631, 29918, 19190, 29918, 517, 29918, 29920, 29898, 1311, 29889, 2962, 29918, 29920, 29892, 9109, 29918, 8513, 29922, 8824, 29897, 13, 4706, 565, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 2704, 29918, 3859, 580, 1405, 29871, 29900, 29901, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 12071, 29918, 2704, 29918, 3859, 580, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 2392, 742, 13, 18884, 525, 2392, 8401, 7408, 1250, 304, 6257, 2602, 29889, 3529, 525, 13, 18884, 525, 3198, 278, 1857, 503, 14821, 1434, 313, 276, 29897, 2962, 292, 263, 5096, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 4706, 565, 1583, 29889, 370, 18054, 29901, 13, 9651, 660, 3728, 3313, 29889, 19678, 29898, 13, 18884, 1583, 29892, 525, 4920, 18054, 742, 13, 18884, 525, 29924, 327, 272, 1243, 471, 633, 18054, 491, 1404, 6169, 13, 18884, 718, 11297, 29876, 12148, 1207, 1854, 393, 503, 14821, 338, 1250, 472, 6257, 525, 13, 18884, 525, 3283, 310, 525, 718, 851, 29898, 1311, 29889, 2962, 29918, 29920, 29897, 718, 15300, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 4706, 1683, 29901, 13, 9651, 660, 3728, 3313, 29889, 19678, 29898, 13, 18884, 1583, 29892, 525, 3057, 4866, 742, 13, 18884, 525, 29924, 327, 272, 1243, 4866, 7790, 29876, 29909, 3001, 310, 525, 13, 18884, 718, 851, 29898, 1311, 29889, 4537, 29918, 21150, 29897, 718, 525, 921, 12339, 16229, 892, 8560, 7790, 29876, 29915, 13, 18884, 525, 4557, 310, 4436, 29901, 525, 718, 851, 29898, 1311, 29889, 4537, 29918, 12523, 29897, 13, 18884, 718, 11297, 29876, 12148, 1207, 1854, 393, 503, 14821, 338, 1250, 472, 6257, 525, 13, 18884, 525, 3283, 310, 525, 718, 851, 29898, 1311, 29889, 2962, 29918, 29920, 29897, 718, 15300, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 2962, 3057, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 370, 441, 3057, 29889, 842, 10861, 29898, 8824, 29897, 13, 4706, 1583, 29889, 3092, 3313, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 19708, 29889, 842, 10861, 29898, 5574, 29897, 13, 4706, 1583, 29889, 1688, 29918, 262, 29918, 18035, 353, 7700, 13, 13, 1678, 822, 4036, 29918, 20919, 29918, 7097, 29898, 1311, 1125, 13, 4706, 1583, 29889, 1688, 29918, 262, 29918, 18035, 353, 5852, 13, 4706, 1583, 29889, 19708, 353, 1583, 29889, 1028, 262, 3313, 29918, 19708, 29889, 1767, 580, 13, 4706, 1583, 29889, 2962, 29918, 2230, 353, 931, 580, 13, 4706, 1583, 29889, 18035, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 4706, 1583, 29889, 4537, 29918, 21150, 353, 29871, 29900, 13, 4706, 1583, 29889, 4537, 29918, 12523, 353, 29871, 29900, 13, 4706, 1857, 29918, 29916, 29892, 1857, 29918, 29891, 353, 29871, 29900, 29892, 29871, 29900, 13, 4706, 1857, 29918, 29920, 353, 1583, 29889, 2962, 29918, 29920, 13, 4706, 396, 4673, 1480, 934, 29901, 13, 4706, 1480, 1445, 353, 1722, 29898, 1311, 29889, 16859, 1839, 562, 29939, 16215, 3188, 29918, 3972, 2033, 718, 525, 1966, 14817, 272, 29918, 1688, 29918, 1188, 29889, 3945, 742, 13, 462, 539, 525, 29893, 742, 6835, 292, 29922, 29896, 29897, 13, 4706, 1550, 1583, 29889, 1688, 29918, 262, 29918, 18035, 29901, 13, 9651, 396, 7370, 525, 8172, 29915, 6686, 13, 9651, 565, 1583, 29889, 4537, 29918, 21150, 1273, 29871, 29896, 29900, 1275, 29871, 29900, 29901, 13, 18884, 1320, 353, 29871, 29941, 29900, 29900, 29871, 396, 5520, 4337, 1432, 29871, 29896, 29900, 386, 11412, 13, 9651, 1683, 29901, 13, 18884, 1320, 353, 29871, 29945, 29900, 13, 9651, 1857, 29918, 29916, 4619, 313, 8172, 580, 448, 29871, 29900, 29889, 29945, 29897, 334, 1320, 13, 9651, 1857, 29918, 29891, 4619, 313, 8172, 580, 448, 29871, 29900, 29889, 29945, 29897, 334, 1320, 13, 9651, 565, 1583, 29889, 4537, 29918, 21150, 1273, 29871, 29906, 1275, 29871, 29900, 29901, 13, 18884, 1857, 29918, 29920, 4619, 313, 8172, 580, 448, 29871, 29900, 29889, 29945, 29897, 334, 29871, 29900, 29889, 29906, 13, 9651, 1683, 29901, 13, 18884, 1857, 29918, 29920, 4619, 29871, 29900, 29889, 29900, 29906, 29945, 13, 9651, 565, 1857, 29918, 29920, 529, 29871, 29900, 29901, 13, 18884, 1857, 29918, 29920, 353, 29871, 29900, 13, 9651, 396, 960, 1095, 310, 3635, 790, 519, 3464, 338, 7450, 29892, 748, 1250, 304, 6257, 1298, 13, 9651, 565, 313, 6897, 29898, 3784, 29918, 29916, 29897, 1405, 29871, 29953, 29900, 29900, 470, 13, 18884, 6425, 29898, 3784, 29918, 29891, 29897, 1405, 29871, 29953, 29900, 29900, 470, 13, 18884, 1857, 29918, 29920, 1405, 29871, 29953, 29900, 29900, 1125, 13, 18884, 1857, 29918, 29916, 29892, 1857, 29918, 29891, 353, 29871, 29900, 29892, 29871, 29900, 13, 18884, 1857, 29918, 29920, 353, 1583, 29889, 2962, 29918, 29920, 13, 9651, 1480, 1445, 29889, 3539, 877, 29912, 29900, 29901, 29889, 29941, 29888, 1118, 15300, 4830, 29898, 3784, 29918, 29916, 29897, 13, 462, 3986, 718, 22372, 29900, 29901, 29889, 29941, 29888, 1118, 15300, 4830, 29898, 3784, 29918, 29891, 29897, 13, 462, 3986, 718, 22372, 29900, 29901, 29889, 29941, 29888, 29913, 4286, 4830, 29898, 3784, 29918, 29920, 29897, 718, 11297, 29876, 1495, 13, 9651, 1583, 29889, 29885, 2357, 29873, 608, 29889, 11631, 29918, 19190, 29918, 517, 29918, 3594, 3552, 3784, 29918, 29916, 29892, 1857, 29918, 29891, 876, 13, 9651, 565, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 2704, 29918, 3859, 580, 1405, 29871, 29900, 29901, 13, 18884, 1583, 29889, 4537, 29918, 12523, 4619, 29871, 29896, 13, 18884, 1480, 1445, 29889, 3539, 877, 11432, 360, 4574, 4214, 1060, 29979, 16999, 12064, 29901, 525, 13, 462, 795, 718, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 2704, 29918, 29883, 1071, 580, 13, 462, 795, 718, 11297, 29876, 1495, 13, 18884, 1583, 29889, 29885, 2357, 29873, 608, 29889, 12071, 29918, 2704, 29918, 3859, 580, 13, 9651, 1683, 29901, 13, 18884, 1583, 29889, 29885, 2357, 29873, 608, 29889, 11631, 29918, 19190, 29918, 517, 29918, 29920, 29898, 3784, 29918, 29920, 29892, 9109, 29918, 8513, 29922, 8824, 29897, 13, 18884, 565, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 2704, 29918, 3859, 580, 1405, 29871, 29900, 29901, 13, 462, 1678, 1583, 29889, 4537, 29918, 12523, 4619, 29871, 29896, 13, 462, 1678, 1480, 1445, 29889, 3539, 877, 11432, 360, 4574, 4214, 796, 16999, 12064, 29901, 525, 13, 462, 462, 29871, 718, 1583, 29889, 29885, 2357, 29873, 608, 29889, 657, 29918, 2704, 29918, 29883, 1071, 580, 13, 462, 462, 29871, 718, 11297, 29876, 1495, 13, 462, 1678, 1583, 29889, 29885, 2357, 29873, 608, 29889, 12071, 29918, 2704, 29918, 3859, 580, 13, 18884, 1683, 29901, 13, 462, 1678, 1480, 1445, 29889, 3539, 877, 8949, 29905, 29876, 1495, 13, 13, 9651, 1583, 29889, 4537, 29918, 21150, 4619, 29871, 29896, 13, 9651, 1583, 29889, 18035, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 4706, 1480, 1445, 29889, 3539, 877, 23207, 8079, 14431, 29903, 29901, 525, 718, 851, 29898, 1311, 29889, 4537, 29918, 12523, 876, 13, 4706, 1480, 1445, 29889, 5358, 580, 13, 4706, 396, 9954, 284, 393, 3244, 338, 2309, 29901, 13, 4706, 1583, 29889, 4951, 728, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 27450, 29918, 1688, 29898, 1311, 1125, 13, 4706, 1583, 29889, 370, 18054, 353, 5852, 13, 4706, 1583, 29889, 5910, 3125, 29918, 370, 441, 3057, 29889, 842, 10861, 29898, 8824, 29897, 13, 13, 1678, 822, 3802, 2624, 29898, 1311, 29892, 1741, 1125, 13, 4706, 565, 451, 1583, 29889, 1688, 29918, 262, 29918, 18035, 29901, 13, 9651, 1741, 29889, 16044, 580, 13, 4706, 1683, 29901, 13, 9651, 1741, 29889, 17281, 580, 13, 13, 1678, 822, 3544, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 29889, 9961, 496, 29918, 262, 29918, 18035, 29901, 13, 9651, 2428, 2141, 16044, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 624, 431, 29949, 10699, 19920, 29898, 29984, 7647, 1125, 13, 1678, 9995, 10644, 1548, 263, 19281, 975, 1493, 286, 3628, 293, 1967, 29889, 450, 1404, 508, 6084, 278, 4423, 13, 539, 297, 7408, 10350, 322, 278, 2159, 310, 278, 286, 3628, 293, 29889, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2602, 29892, 2159, 29918, 14357, 29892, 13, 462, 2967, 29918, 3972, 29892, 22780, 29918, 11808, 29892, 13, 462, 3031, 29892, 7408, 29892, 288, 6925, 29892, 5939, 29892, 13, 462, 1667, 29918, 7165, 29918, 9990, 29892, 1667, 29918, 7165, 29918, 21001, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 303, 431, 29918, 586, 29918, 11671, 29887, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 4706, 1583, 29889, 3188, 29918, 3972, 353, 2967, 29918, 3972, 13, 4706, 1583, 29889, 18337, 29918, 11808, 353, 22780, 29918, 11808, 13, 4706, 1583, 29889, 12846, 353, 3031, 13, 4706, 1583, 29889, 19190, 353, 7408, 13, 4706, 1583, 29889, 586, 29885, 353, 288, 6925, 13, 4706, 1583, 29889, 2395, 353, 5939, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 353, 1667, 29918, 7165, 29918, 9990, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 353, 1667, 29918, 7165, 29918, 21001, 13, 4706, 396, 3789, 701, 7135, 322, 9521, 304, 2767, 7928, 14839, 2645, 2948, 29901, 13, 4706, 1583, 29889, 562, 29939, 29918, 7097, 29918, 21001, 353, 1605, 3567, 580, 13, 4706, 1583, 29889, 562, 29939, 29918, 7097, 29918, 21001, 29889, 29879, 29889, 6915, 29898, 1311, 29889, 5014, 29918, 7097, 29918, 25436, 29897, 13, 4706, 1583, 29889, 562, 29939, 29918, 7097, 29918, 9990, 353, 5462, 434, 580, 13, 4706, 1583, 29889, 370, 441, 29918, 9990, 353, 5462, 434, 580, 13, 4706, 1583, 29889, 562, 29939, 29918, 262, 29918, 18035, 353, 7700, 13, 4706, 1583, 29889, 5910, 3125, 29918, 562, 1548, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 562, 1548, 29918, 303, 431, 29918, 586, 29897, 13, 4706, 1583, 29889, 5910, 3125, 29918, 370, 441, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 370, 441, 29897, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 29990, 29889, 842, 1917, 29898, 3283, 29961, 29900, 2314, 13, 4706, 1583, 29889, 1028, 262, 3313, 29918, 29979, 29889, 842, 1917, 29898, 3283, 29961, 29896, 2314, 13, 4706, 1583, 29889, 2311, 29918, 14357, 353, 2159, 29918, 14357, 13, 4706, 1583, 29889, 2311, 29918, 1761, 353, 5159, 13, 4706, 1583, 29889, 29881, 332, 800, 353, 5159, 13, 4706, 363, 474, 297, 3464, 29898, 29955, 1125, 13, 9651, 396, 7704, 3625, 286, 3628, 293, 15786, 322, 278, 6590, 15899, 13, 9651, 396, 1411, 800, 297, 1375, 13, 9651, 4206, 29892, 28730, 353, 288, 6925, 29889, 1254, 7466, 29918, 29949, 29963, 29918, 14226, 29961, 29875, 3816, 29900, 1402, 288, 6925, 29889, 1254, 7466, 29918, 29949, 29963, 29918, 14226, 29961, 29875, 3816, 29896, 29962, 13, 9651, 2920, 353, 938, 3552, 22724, 334, 288, 6925, 29889, 1254, 7466, 29918, 29949, 29963, 29918, 29943, 4717, 2303, 29918, 22574, 13, 462, 4706, 448, 313, 22724, 29899, 29896, 29897, 334, 288, 6925, 29889, 1254, 7466, 29918, 29949, 29963, 29918, 29949, 5348, 29931, 3301, 29897, 13, 462, 4706, 334, 288, 6925, 29889, 1254, 7466, 29918, 29949, 29963, 29918, 2227, 29990, 6670, 29918, 14226, 847, 29871, 29896, 29900, 29900, 29900, 29897, 13, 9651, 3171, 353, 938, 3552, 5727, 334, 288, 6925, 29889, 1254, 7466, 29918, 29949, 29963, 29918, 29943, 4717, 2303, 29918, 9606, 22530, 13, 462, 308, 448, 313, 5727, 29899, 29896, 29897, 334, 288, 6925, 29889, 1254, 7466, 29918, 29949, 29963, 29918, 29949, 5348, 29931, 3301, 29897, 13, 462, 308, 334, 288, 6925, 29889, 1254, 7466, 29918, 29949, 29963, 29918, 2227, 29990, 6670, 29918, 14226, 847, 29871, 29896, 29900, 29900, 29900, 29897, 13, 9651, 931, 353, 938, 29898, 14486, 3552, 5727, 334, 28730, 334, 29871, 29896, 29900, 718, 29871, 29906, 29900, 29897, 847, 29871, 29953, 29900, 876, 13, 9651, 1583, 29889, 2311, 29918, 1761, 29889, 4397, 29898, 710, 29898, 2103, 29897, 718, 525, 29871, 30263, 29885, 13105, 525, 718, 851, 29898, 3545, 29897, 718, 525, 29871, 30263, 29885, 1495, 13, 9651, 1583, 29889, 29881, 332, 800, 29889, 4397, 877, 3373, 304, 525, 718, 851, 29898, 2230, 29897, 718, 525, 1375, 1495, 13, 4706, 396, 11657, 2159, 9262, 29901, 13, 4706, 1583, 29889, 510, 17801, 29918, 2311, 10378, 29889, 1202, 6913, 29898, 1311, 29889, 2311, 29918, 1761, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 2311, 10378, 29889, 842, 7583, 3220, 29898, 1311, 29889, 2311, 29918, 14357, 29897, 13, 4706, 1583, 29889, 510, 17801, 29918, 2311, 10378, 29889, 3784, 3220, 7590, 29889, 6915, 29898, 13, 9651, 1583, 29889, 5504, 29918, 19708, 29897, 13, 4706, 1583, 29889, 1643, 29918, 19708, 29889, 12038, 29898, 1311, 29889, 29881, 332, 800, 29961, 29906, 2314, 13, 4706, 1583, 29889, 24957, 29918, 1760, 276, 353, 1583, 29889, 2395, 29889, 657, 29918, 303, 431, 29918, 586, 29918, 1760, 276, 29918, 29879, 580, 13, 4706, 1583, 29889, 24957, 29918, 12574, 353, 1583, 29889, 2395, 29889, 657, 29918, 303, 431, 29918, 586, 29918, 12574, 29918, 29879, 580, 13, 4706, 1583, 29889, 24957, 29918, 2311, 29918, 14357, 353, 1583, 29889, 586, 29885, 29889, 657, 29918, 303, 431, 29918, 586, 29918, 2311, 29918, 14357, 580, 13, 13, 1678, 822, 1889, 29918, 7097, 29918, 25436, 29898, 1311, 1125, 13, 4706, 9995, 7032, 8260, 515, 278, 9521, 746, 263, 7135, 7182, 10008, 13, 965, 1550, 278, 1274, 23493, 310, 278, 19281, 975, 1493, 338, 2734, 29889, 13, 4706, 9995, 13, 4706, 10191, 353, 1583, 29889, 562, 29939, 29918, 7097, 29918, 9990, 29889, 657, 580, 13, 4706, 565, 10191, 1275, 525, 14474, 317, 6040, 1692, 24815, 2396, 13, 9651, 1583, 29889, 4294, 29918, 1482, 29918, 19190, 29918, 1066, 580, 13, 4706, 25342, 10191, 7503, 29896, 29945, 29962, 1275, 525, 14474, 13756, 29954, 26785, 2396, 13, 9651, 19649, 353, 938, 29898, 7645, 29961, 29896, 29945, 29901, 2314, 13, 9651, 1583, 29889, 18035, 4297, 29889, 842, 1917, 29898, 25376, 482, 29897, 13, 4706, 25342, 10191, 1275, 525, 1254, 7466, 438, 29963, 20134, 26925, 2396, 13, 9651, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 1254, 7466, 438, 29963, 20134, 26925, 1495, 13, 9651, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 9651, 1583, 29889, 5910, 3125, 29918, 562, 1548, 29889, 842, 10861, 29898, 5574, 29897, 13, 9651, 1583, 29889, 5910, 3125, 29918, 370, 441, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 3092, 3313, 29889, 842, 10861, 29898, 5574, 29897, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 29990, 29889, 842, 10861, 29898, 5574, 29897, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 29979, 29889, 842, 10861, 29898, 5574, 29897, 13, 9651, 1583, 29889, 510, 17801, 29918, 2311, 10378, 29889, 842, 10861, 29898, 5574, 29897, 13, 9651, 660, 3728, 3313, 29889, 19678, 29898, 13, 18884, 1583, 29892, 525, 855, 431, 6811, 1493, 1274, 23493, 4866, 742, 13, 18884, 525, 1576, 19281, 975, 1493, 471, 8676, 8472, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 9651, 1583, 29889, 562, 29939, 29918, 262, 29918, 18035, 353, 7700, 13, 4706, 25342, 10191, 1275, 525, 1254, 7466, 438, 29963, 13515, 6227, 11499, 2396, 13, 9651, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 1254, 7466, 438, 29963, 13515, 6227, 11499, 1495, 13, 9651, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 9651, 396, 11654, 487, 3517, 3978, 29901, 13, 9651, 1583, 29889, 2395, 29889, 842, 29918, 303, 431, 29918, 586, 29918, 12574, 29918, 29879, 29898, 1311, 29889, 24957, 29918, 12574, 29897, 13, 9651, 1583, 29889, 2395, 29889, 842, 29918, 303, 431, 29918, 586, 29918, 1760, 276, 29918, 29879, 29898, 1311, 29889, 24957, 29918, 1760, 276, 29897, 13, 9651, 1583, 29889, 586, 29885, 29889, 842, 29918, 303, 431, 29918, 586, 29918, 2311, 29918, 14357, 29898, 1311, 29889, 24957, 29918, 2311, 29918, 14357, 29897, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 2392, 2645, 19281, 975, 1493, 1274, 23493, 742, 13, 18884, 525, 2744, 1059, 10761, 2645, 278, 1274, 23493, 310, 278, 19281, 525, 13, 18884, 525, 957, 1493, 286, 3628, 293, 29889, 450, 1556, 5517, 4556, 526, 10240, 525, 13, 18884, 525, 11027, 310, 278, 7408, 1060, 29914, 29979, 10992, 20238, 470, 961, 5779, 29889, 8778, 525, 13, 18884, 525, 1552, 7408, 322, 1423, 3692, 278, 3464, 13071, 6790, 525, 13, 18884, 525, 262, 317, 29933, 12665, 3027, 526, 1959, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 9651, 1583, 29889, 562, 29939, 29918, 262, 29918, 18035, 353, 7700, 13, 9651, 1583, 29889, 5358, 580, 13, 4706, 25342, 10191, 1275, 525, 1254, 7466, 438, 29963, 17571, 8476, 2396, 13, 9651, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 27047, 3553, 1307, 1495, 13, 9651, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 9651, 396, 11654, 487, 3517, 3978, 29901, 13, 9651, 1583, 29889, 2395, 29889, 842, 29918, 303, 431, 29918, 586, 29918, 12574, 29918, 29879, 29898, 1311, 29889, 24957, 29918, 12574, 29897, 13, 9651, 1583, 29889, 2395, 29889, 842, 29918, 303, 431, 29918, 586, 29918, 1760, 276, 29918, 29879, 29898, 1311, 29889, 24957, 29918, 1760, 276, 29897, 13, 9651, 1583, 29889, 586, 29885, 29889, 842, 29918, 303, 431, 29918, 586, 29918, 2311, 29918, 14357, 29898, 1311, 29889, 24957, 29918, 2311, 29918, 14357, 29897, 13, 9651, 660, 3728, 3313, 29889, 19678, 29898, 13, 18884, 1583, 29892, 525, 855, 431, 6811, 1493, 1274, 23493, 633, 18054, 742, 13, 18884, 525, 1576, 19281, 975, 1493, 1274, 23493, 471, 633, 18054, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 9651, 1583, 29889, 562, 29939, 29918, 262, 29918, 18035, 353, 7700, 13, 9651, 1583, 29889, 5358, 580, 13, 13, 1678, 822, 2767, 29918, 19708, 29898, 1311, 1125, 13, 4706, 1583, 29889, 1643, 29918, 19708, 29889, 12038, 29898, 1311, 29889, 29881, 332, 800, 29961, 13, 9651, 1583, 29889, 510, 17801, 29918, 2311, 10378, 29889, 3784, 3220, 580, 2314, 13, 13, 1678, 822, 1510, 29918, 1482, 29918, 19190, 29918, 1066, 29898, 1311, 1125, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 14474, 1060, 29979, 1495, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 788, 29918, 517, 29918, 1188, 29898, 1311, 29892, 10191, 1125, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 29898, 13239, 29889, 4830, 29918, 1188, 29918, 8269, 29898, 7645, 876, 13, 4706, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 13, 1678, 822, 1274, 1548, 29918, 303, 431, 29918, 586, 29898, 1311, 1125, 13, 4706, 9995, 10644, 1548, 278, 19281, 975, 1493, 29889, 7255, 23493, 26529, 6057, 297, 13, 965, 263, 3244, 29889, 13, 4706, 9995, 13, 4706, 396, 7370, 1274, 23493, 871, 565, 382, 3912, 338, 373, 29901, 13, 4706, 565, 1583, 29889, 12846, 29889, 275, 29918, 29872, 400, 29918, 265, 7295, 13, 9651, 1583, 29889, 562, 29939, 29918, 262, 29918, 18035, 353, 5852, 13, 9651, 396, 16913, 3517, 19281, 438, 29963, 3978, 297, 1206, 1404, 27450, 29879, 1274, 29939, 29901, 13, 9651, 2602, 353, 313, 1311, 29889, 1028, 262, 3313, 29918, 29990, 29889, 1767, 3285, 1583, 29889, 1028, 262, 3313, 29918, 29979, 29889, 1767, 3101, 13, 9651, 2159, 29918, 14357, 353, 1583, 29889, 510, 17801, 29918, 2311, 10378, 29889, 3784, 3220, 580, 13, 9651, 1583, 29889, 1202, 29918, 517, 29918, 1188, 29898, 13, 18884, 525, 1783, 2241, 29901, 4911, 29899, 3827, 287, 1274, 23493, 310, 19281, 438, 29963, 286, 3628, 293, 4687, 29889, 1495, 13, 9651, 1583, 29889, 5910, 3125, 29918, 562, 1548, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 5910, 3125, 29918, 370, 441, 29889, 842, 10861, 29898, 5574, 29897, 13, 9651, 1583, 29889, 3092, 3313, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 29990, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 1028, 262, 3313, 29918, 29979, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 510, 17801, 29918, 2311, 10378, 29889, 842, 10861, 29898, 8824, 29897, 13, 9651, 1583, 29889, 18035, 4297, 29889, 842, 1917, 29898, 29900, 29897, 13, 9651, 1583, 29889, 3396, 29918, 7165, 29918, 9990, 29889, 649, 877, 1254, 7466, 438, 29963, 350, 3308, 29979, 1495, 13, 9651, 1583, 29889, 3396, 29918, 7165, 29918, 21001, 29889, 29879, 29889, 21976, 580, 13, 9651, 660, 4873, 29889, 5014, 13634, 580, 13, 9651, 19281, 29918, 562, 29939, 29918, 7097, 353, 3244, 292, 29889, 4899, 29898, 13, 462, 462, 29871, 3646, 29922, 562, 29939, 29918, 9891, 29889, 562, 1548, 29918, 303, 431, 29918, 586, 29892, 13, 462, 462, 29871, 6389, 7607, 1311, 29889, 3188, 29918, 3972, 29892, 1583, 29889, 18337, 29918, 11808, 29892, 13, 462, 462, 4706, 1583, 29889, 12846, 29892, 1583, 29889, 19190, 29892, 13, 462, 462, 4706, 2602, 29892, 2159, 29918, 14357, 29892, 13, 462, 462, 4706, 1583, 29889, 586, 29885, 29892, 1583, 29889, 2395, 29892, 13, 462, 462, 4706, 1583, 29889, 562, 29939, 29918, 7097, 29918, 9990, 29892, 13, 462, 462, 4706, 1583, 29889, 562, 29939, 29918, 7097, 29918, 21001, 29892, 13, 462, 462, 4706, 1583, 29889, 370, 441, 29918, 9990, 29892, 876, 13, 9651, 19281, 29918, 562, 29939, 29918, 7097, 29889, 2962, 580, 13, 4706, 1683, 29901, 13, 9651, 660, 3728, 3313, 29889, 27392, 29898, 13, 18884, 1583, 29892, 525, 29923, 3912, 1283, 742, 13, 18884, 525, 29923, 3912, 847, 1880, 11749, 338, 1283, 29889, 3529, 2507, 525, 13, 18884, 525, 277, 373, 1434, 6257, 278, 1274, 23493, 29889, 742, 13, 18884, 660, 3728, 3313, 29889, 20434, 29897, 13, 13, 1678, 822, 27450, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 370, 441, 29918, 9990, 29889, 6310, 7295, 13, 9651, 1583, 29889, 370, 441, 29918, 9990, 29889, 649, 877, 2882, 8476, 1495, 13, 9651, 1583, 29889, 5910, 3125, 29918, 370, 441, 29889, 842, 10861, 29898, 8824, 29897, 13, 13, 1678, 822, 3802, 2624, 29898, 1311, 29892, 1741, 1125, 13, 4706, 565, 451, 1583, 29889, 562, 29939, 29918, 262, 29918, 18035, 29901, 13, 9651, 1741, 29889, 16044, 580, 13, 4706, 1683, 29901, 13, 9651, 1741, 29889, 17281, 580, 13, 13, 29937, 2683, 2683, 2683, 2683, 9072, 489, 13, 13, 1990, 13611, 3313, 29898, 29984, 7647, 1125, 13, 1678, 9995, 8964, 278, 13611, 7928, 3800, 411, 5235, 1048, 317, 29933, 12665, 3027, 322, 278, 1857, 13, 539, 1873, 322, 6507, 2635, 29889, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 478, 1001, 13381, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 2254, 29965, 29875, 877, 636, 1966, 23569, 1966, 12717, 29918, 1884, 29889, 1481, 742, 1583, 29897, 13, 4706, 1583, 29889, 842, 5907, 2111, 2877, 29898, 17303, 29889, 4873, 19751, 29897, 13, 4706, 1583, 29889, 842, 5907, 12492, 29898, 29984, 12492, 877, 636, 1966, 2492, 1966, 4144, 29918, 29896, 29953, 1756, 29889, 1417, 8785, 13, 4706, 1583, 29889, 1643, 29918, 3259, 29889, 12038, 877, 6594, 525, 718, 478, 1001, 13381, 29897, 13, 4706, 1583, 29889, 1643, 12492, 29889, 842, 29925, 861, 1958, 29898, 29984, 29925, 861, 1958, 877, 636, 1966, 2492, 1966, 14569, 29889, 2732, 8785, 13, 4706, 1583, 29889, 842, 26262, 3505, 29898, 1311, 29889, 2311, 3101, 13, 4706, 1583, 29889, 4294, 580, 13, 2 ]
sequence_labeler.py
kamei86i/rnn-sequence-labeler
0
80955
<filename>sequence_labeler.py import tensorflow as tf from tensorflow.contrib import rnn import utils.data as du import numpy as np import random np.random.seed(1337) random.seed = 1337 class SequenceLabeler: def __init__(self, sequence_length, embedding, cell_size, num_classes, hls, gcap=5, lam=0.1, verbose=False): self.max_sequence_length = sequence_length self.embedding = embedding self.cell_size = cell_size self.num_classes = num_classes self.hls = hls self.verbose=verbose self.gcap = gcap self.lam = lam def build_network(self): with tf.variable_scope('input'): self.input_x = tf.placeholder(dtype=tf.int32, shape=[None, self.max_sequence_length], name="input_x") if self.verbose: print(self.input_x) self.input_y = tf.placeholder(dtype=tf.int32, shape=[None, self.max_sequence_length, self.num_classes], name="input_y") if self.verbose: print(self.input_y) self.dkp = tf.placeholder(dtype=tf.float32, name="dropout") if self.verbose: print(self.dkp) self.mask = tf.not_equal(self.input_x, tf.constant(0, dtype=tf.int32), name='mask') if self.verbose: print(self.mask) self.correct_labels = tf.argmax(self.input_y, axis=2, name='argmax_labels') if self.verbose: print(self.correct_labels) self.sequence_lengths = tf.reduce_sum(tf.cast(self.mask, tf.int32), axis=1, name='sequence_lengths') if self.verbose: print(self.sequence_lengths) with tf.variable_scope('embedding_layer'): emb_w = tf.Variable(trainable=self.embedding['trainable'], initial_value=self.embedding['weights'], dtype=tf.float32, name="embedding") token_embedded = tf.nn.embedding_lookup(emb_w, self.input_x, name="embedding_token") token_embedded = tf.nn.dropout(token_embedded, self.dkp, name="dropout_embedding") self.emb_loss = tf.nn.l2_loss(emb_w, name="embedding_loss") if self.verbose: print(token_embedded) with tf.variable_scope('bi_rnn'): with tf.variable_scope('forward'): fw_cell = rnn.GRUCell(num_units=self.cell_size) with tf.variable_scope('backward'): bw_cell = rnn.GRUCell(num_units=self.cell_size) with tf.variable_scope('rnn'): self.output, _ = tf.nn.bidirectional_dynamic_rnn(fw_cell, bw_cell, token_embedded, self.sequence_lengths, dtype=tf.float32) if self.verbose: print(self.output) self.output = tf.concat(self.output, axis=2, name="concat") self.output = tf.nn.dropout(self.output, self.dkp, name="rnn_dropout") if self.verbose: print(self.output) with tf.variable_scope('sequence_classifier'): in_size = self.cell_size * 2 self.classify = tf.unstack(self.output, axis=1, name="unstack") if self.verbose: print(self.classify) self.sequence_cl_loss = 0.0 if self.hls > 0: wh = tf.get_variable(name="W_hidden", dtype=tf.float32, initializer=tf.contrib.layers.xavier_initializer(), shape=[in_size, self.hls]) bh = tf.get_variable(name="b_hidden", dtype=tf.float32, initializer=tf.zeros_initializer(), shape=[self.hls]) self.sequence_cl_loss += tf.nn.l2_loss(wh) + tf.nn.l2_loss(bh) self.classify = [tf.nn.relu(tf.nn.xw_plus_b(x, wh, bh), name="hidden") for x in self.classify] in_size = self.hls wc = tf.get_variable(name="W_classify", dtype=tf.float32, initializer=tf.contrib.layers.xavier_initializer(), shape=[in_size, self.num_classes]) bc = tf.get_variable(name="b_classify", dtype=tf.float32, initializer=tf.zeros_initializer(), shape=[self.num_classes]) self.sequence_cl_loss += tf.nn.l2_loss(wc) + tf.nn.l2_loss(bc) self.scores = [tf.nn.xw_plus_b(x, wc, bc, name="scores") for x in self.classify] if self.verbose: print(self.scores) self.scores = tf.stack(self.scores, axis=1, name="stack") if self.verbose: print(self.scores) with tf.variable_scope('loss'): self.losses = tf.nn.sparse_softmax_cross_entropy_with_logits(labels=self.correct_labels, logits=self.scores) if self.verbose: print(self.losses) self.losses = tf.multiply(self.losses, tf.cast(self.mask, dtype=tf.float32), name='masked_losses') if self.verbose: print(self.losses) self.loss1 = tf.divide(tf.reduce_sum(self.losses, axis=1), tf.cast(self.sequence_lengths, dtype=tf.float32), name="masked_mean_losses") self.loss = tf.reduce_mean(self.loss1, name="mean_loss") + self.lam * self.emb_loss + self.lam * self.sequence_cl_loss if self.verbose: print(self.loss) tf.summary.scalar('loss', self.loss) with tf.variable_scope('measures'): self.predictions = tf.argmax(self.scores, axis=2, name='argmax_predictions') if self.verbose: print(self.predictions) self.correct_predictions = tf.cast(tf.equal(self.predictions, self.correct_labels), dtype=tf.float32, name='correct_predictions') if self.verbose: print(self.correct_predictions) self.correct_predictions = tf.boolean_mask(self.correct_predictions, self.mask, name="masked_correct_predictions") if self.verbose: print(self.correct_predictions) self.accuracy = tf.reduce_mean(self.correct_predictions, name="accuracy") if self.verbose: print(self.accuracy) tf.summary.scalar('accuracy', self.accuracy) def build_train_ops(self, lr): with tf.name_scope('train_op'): self.global_step = tf.Variable(0, name="global_step", trainable=False) optimizer = tf.train.AdamOptimizer(lr) gvs = optimizer.compute_gradients(self.loss) capped_gvs = [(tf.clip_by_norm(grad, self.gcap), var) for grad, var in gvs] self.train_op = optimizer.apply_gradients(capped_gvs, global_step=self.global_step, name="train_op") def summary(self): self.merged = tf.summary.merge_all() def train(self, session, batch_x, batch_y, dropout): feed_dict = { self.input_x: batch_x, self.input_y: batch_y, self.dkp: dropout } _, step, loss, summary, accuracy, mask, correct_labels, lengths, losses, loss1, scores = session.run( [self.train_op, self.global_step, self.loss, self.merged, self.accuracy, self.mask, self.correct_labels, self.sequence_lengths, self.losses, self.loss1, self.scores], feed_dict) return step, loss, summary, accuracy, mask, correct_labels, lengths, losses, loss1, scores def predict(self, session, x, y): feed_dict = { self.input_x: x, self.input_y: y, self.dkp: 1.0 } loss, accuracy, predictions = session.run( [self.loss, self.accuracy, self.predictions], feed_dict) return loss, accuracy, predictions if __name__ == '__main__': emb = du.initialize_random_embeddings(100, 20) sl = SequenceLabeler(20, emb, 16, 5, 12, True) sl.build_network()
[ 1, 529, 9507, 29958, 16506, 29918, 1643, 261, 29889, 2272, 13, 5215, 26110, 408, 15886, 13, 3166, 26110, 29889, 21570, 1053, 364, 15755, 13, 5215, 3667, 29879, 29889, 1272, 408, 868, 13, 13, 5215, 12655, 408, 7442, 13, 5215, 4036, 13, 9302, 29889, 8172, 29889, 26776, 29898, 29896, 29941, 29941, 29955, 29897, 13, 8172, 29889, 26776, 353, 29871, 29896, 29941, 29941, 29955, 13, 13, 13, 1990, 922, 3910, 4775, 261, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 5665, 29918, 2848, 29892, 23655, 29892, 3038, 29918, 2311, 29892, 954, 29918, 13203, 29892, 298, 3137, 29892, 330, 5030, 29922, 29945, 29892, 301, 314, 29922, 29900, 29889, 29896, 29892, 26952, 29922, 8824, 1125, 13, 4706, 1583, 29889, 3317, 29918, 16506, 29918, 2848, 353, 5665, 29918, 2848, 13, 4706, 1583, 29889, 17987, 8497, 353, 23655, 13, 4706, 1583, 29889, 3729, 29918, 2311, 353, 3038, 29918, 2311, 13, 4706, 1583, 29889, 1949, 29918, 13203, 353, 954, 29918, 13203, 13, 4706, 1583, 29889, 29882, 3137, 353, 298, 3137, 13, 4706, 1583, 29889, 369, 15828, 29922, 369, 15828, 13, 4706, 1583, 29889, 29887, 5030, 353, 330, 5030, 13, 4706, 1583, 29889, 5288, 353, 301, 314, 13, 13, 1678, 822, 2048, 29918, 11618, 29898, 1311, 1125, 13, 4706, 411, 15886, 29889, 11918, 29918, 6078, 877, 2080, 29374, 13, 9651, 1583, 29889, 2080, 29918, 29916, 353, 15886, 29889, 27074, 29898, 29881, 1853, 29922, 13264, 29889, 524, 29941, 29906, 29892, 8267, 11759, 8516, 29892, 1583, 29889, 3317, 29918, 16506, 29918, 2848, 1402, 1024, 543, 2080, 29918, 29916, 1159, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 1311, 29889, 2080, 29918, 29916, 29897, 13, 13, 9651, 1583, 29889, 2080, 29918, 29891, 353, 15886, 29889, 27074, 29898, 29881, 1853, 29922, 13264, 29889, 524, 29941, 29906, 29892, 8267, 11759, 8516, 29892, 1583, 29889, 3317, 29918, 16506, 29918, 2848, 29892, 1583, 29889, 1949, 29918, 13203, 1402, 1024, 543, 2080, 29918, 29891, 1159, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 1311, 29889, 2080, 29918, 29891, 29897, 13, 13, 9651, 1583, 29889, 8181, 29886, 353, 15886, 29889, 27074, 29898, 29881, 1853, 29922, 13264, 29889, 7411, 29941, 29906, 29892, 1024, 543, 8865, 449, 1159, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 1311, 29889, 8181, 29886, 29897, 13, 13, 9651, 1583, 29889, 13168, 353, 15886, 29889, 1333, 29918, 11745, 29898, 1311, 29889, 2080, 29918, 29916, 29892, 15886, 29889, 23362, 29898, 29900, 29892, 26688, 29922, 13264, 29889, 524, 29941, 29906, 511, 1024, 2433, 13168, 1495, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 1311, 29889, 13168, 29897, 13, 13, 9651, 1583, 29889, 15728, 29918, 21134, 353, 15886, 29889, 1191, 3317, 29898, 1311, 29889, 2080, 29918, 29891, 29892, 9685, 29922, 29906, 29892, 1024, 2433, 1191, 3317, 29918, 21134, 1495, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 1311, 29889, 15728, 29918, 21134, 29897, 13, 13, 9651, 1583, 29889, 16506, 29918, 2848, 29879, 353, 15886, 29889, 17469, 29918, 2083, 29898, 13264, 29889, 4384, 29898, 1311, 29889, 13168, 29892, 15886, 29889, 524, 29941, 29906, 511, 9685, 29922, 29896, 29892, 1024, 2433, 16506, 29918, 2848, 29879, 1495, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 1311, 29889, 16506, 29918, 2848, 29879, 29897, 13, 13, 4706, 411, 15886, 29889, 11918, 29918, 6078, 877, 17987, 8497, 29918, 13148, 29374, 13, 9651, 7232, 29918, 29893, 353, 15886, 29889, 16174, 29898, 14968, 519, 29922, 1311, 29889, 17987, 8497, 1839, 14968, 519, 7464, 2847, 29918, 1767, 29922, 1311, 29889, 17987, 8497, 1839, 705, 5861, 7464, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 29892, 1024, 543, 17987, 8497, 1159, 13, 9651, 5993, 29918, 17987, 7176, 353, 15886, 29889, 15755, 29889, 17987, 8497, 29918, 20401, 29898, 1590, 29918, 29893, 29892, 1583, 29889, 2080, 29918, 29916, 29892, 1024, 543, 17987, 8497, 29918, 6979, 1159, 13, 9651, 5993, 29918, 17987, 7176, 353, 15886, 29889, 15755, 29889, 8865, 449, 29898, 6979, 29918, 17987, 7176, 29892, 1583, 29889, 8181, 29886, 29892, 1024, 543, 8865, 449, 29918, 17987, 8497, 1159, 13, 9651, 1583, 29889, 1590, 29918, 6758, 353, 15886, 29889, 15755, 29889, 29880, 29906, 29918, 6758, 29898, 1590, 29918, 29893, 29892, 1024, 543, 17987, 8497, 29918, 6758, 1159, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 6979, 29918, 17987, 7176, 29897, 13, 13, 4706, 411, 15886, 29889, 11918, 29918, 6078, 877, 5365, 29918, 29878, 15755, 29374, 13, 9651, 411, 15886, 29889, 11918, 29918, 6078, 877, 11333, 29374, 13, 18884, 285, 29893, 29918, 3729, 353, 364, 15755, 29889, 14345, 29965, 4617, 29898, 1949, 29918, 348, 1169, 29922, 1311, 29889, 3729, 29918, 2311, 29897, 13, 13, 9651, 411, 15886, 29889, 11918, 29918, 6078, 877, 1627, 1328, 29374, 13, 18884, 289, 29893, 29918, 3729, 353, 364, 15755, 29889, 14345, 29965, 4617, 29898, 1949, 29918, 348, 1169, 29922, 1311, 29889, 3729, 29918, 2311, 29897, 13, 13, 9651, 411, 15886, 29889, 11918, 29918, 6078, 877, 29878, 15755, 29374, 13, 18884, 1583, 29889, 4905, 29892, 903, 353, 15886, 29889, 15755, 29889, 23883, 8684, 284, 29918, 16626, 29918, 29878, 15755, 29898, 25051, 29918, 3729, 29892, 289, 29893, 29918, 3729, 29892, 5993, 29918, 17987, 7176, 29892, 13, 462, 462, 462, 18884, 1583, 29889, 16506, 29918, 2848, 29879, 29892, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 29897, 13, 18884, 565, 1583, 29889, 369, 15828, 29901, 13, 462, 1678, 1596, 29898, 1311, 29889, 4905, 29897, 13, 13, 18884, 1583, 29889, 4905, 353, 15886, 29889, 17685, 29898, 1311, 29889, 4905, 29892, 9685, 29922, 29906, 29892, 1024, 543, 17685, 1159, 13, 18884, 1583, 29889, 4905, 353, 15886, 29889, 15755, 29889, 8865, 449, 29898, 1311, 29889, 4905, 29892, 1583, 29889, 8181, 29886, 29892, 1024, 543, 29878, 15755, 29918, 8865, 449, 1159, 13, 18884, 565, 1583, 29889, 369, 15828, 29901, 13, 462, 1678, 1596, 29898, 1311, 29889, 4905, 29897, 13, 13, 4706, 411, 15886, 29889, 11918, 29918, 6078, 877, 16506, 29918, 1990, 3709, 29374, 13, 9651, 297, 29918, 2311, 353, 1583, 29889, 3729, 29918, 2311, 334, 29871, 29906, 13, 9651, 1583, 29889, 1990, 1598, 353, 15886, 29889, 348, 1429, 29898, 1311, 29889, 4905, 29892, 9685, 29922, 29896, 29892, 1024, 543, 348, 1429, 1159, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 1311, 29889, 1990, 1598, 29897, 13, 13, 9651, 1583, 29889, 16506, 29918, 695, 29918, 6758, 353, 29871, 29900, 29889, 29900, 13, 13, 9651, 565, 1583, 29889, 29882, 3137, 1405, 29871, 29900, 29901, 13, 18884, 377, 353, 15886, 29889, 657, 29918, 11918, 29898, 978, 543, 29956, 29918, 10892, 613, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 29892, 2847, 3950, 29922, 13264, 29889, 21570, 29889, 29277, 29889, 29916, 18852, 29918, 11228, 3950, 3285, 13, 462, 462, 8267, 11759, 262, 29918, 2311, 29892, 1583, 29889, 29882, 3137, 2314, 13, 18884, 289, 29882, 353, 15886, 29889, 657, 29918, 11918, 29898, 978, 543, 29890, 29918, 10892, 613, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 29892, 2847, 3950, 29922, 13264, 29889, 3298, 359, 29918, 11228, 3950, 3285, 13, 462, 462, 8267, 11759, 1311, 29889, 29882, 3137, 2314, 13, 13, 18884, 1583, 29889, 16506, 29918, 695, 29918, 6758, 4619, 15886, 29889, 15755, 29889, 29880, 29906, 29918, 6758, 29898, 1332, 29897, 718, 15886, 29889, 15755, 29889, 29880, 29906, 29918, 6758, 29898, 29890, 29882, 29897, 13, 18884, 1583, 29889, 1990, 1598, 353, 518, 13264, 29889, 15755, 29889, 2674, 29884, 29898, 13264, 29889, 15755, 29889, 29916, 29893, 29918, 11242, 29918, 29890, 29898, 29916, 29892, 377, 29892, 289, 29882, 511, 1024, 543, 10892, 1159, 363, 921, 297, 1583, 29889, 1990, 1598, 29962, 13, 18884, 297, 29918, 2311, 353, 1583, 29889, 29882, 3137, 13, 13, 9651, 28678, 353, 15886, 29889, 657, 29918, 11918, 29898, 978, 543, 29956, 29918, 1990, 1598, 613, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 29892, 2847, 3950, 29922, 13264, 29889, 21570, 29889, 29277, 29889, 29916, 18852, 29918, 11228, 3950, 3285, 13, 462, 18884, 8267, 11759, 262, 29918, 2311, 29892, 1583, 29889, 1949, 29918, 13203, 2314, 13, 9651, 289, 29883, 353, 15886, 29889, 657, 29918, 11918, 29898, 978, 543, 29890, 29918, 1990, 1598, 613, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 29892, 2847, 3950, 29922, 13264, 29889, 3298, 359, 29918, 11228, 3950, 3285, 13, 462, 18884, 8267, 11759, 1311, 29889, 1949, 29918, 13203, 2314, 13, 13, 9651, 1583, 29889, 16506, 29918, 695, 29918, 6758, 4619, 15886, 29889, 15755, 29889, 29880, 29906, 29918, 6758, 29898, 29893, 29883, 29897, 718, 15886, 29889, 15755, 29889, 29880, 29906, 29918, 6758, 29898, 12328, 29897, 13, 13, 9651, 1583, 29889, 1557, 2361, 353, 518, 13264, 29889, 15755, 29889, 29916, 29893, 29918, 11242, 29918, 29890, 29898, 29916, 29892, 28678, 29892, 289, 29883, 29892, 1024, 543, 1557, 2361, 1159, 363, 921, 297, 1583, 29889, 1990, 1598, 29962, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 1311, 29889, 1557, 2361, 29897, 13, 9651, 1583, 29889, 1557, 2361, 353, 15886, 29889, 1429, 29898, 1311, 29889, 1557, 2361, 29892, 9685, 29922, 29896, 29892, 1024, 543, 1429, 1159, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 1311, 29889, 1557, 2361, 29897, 13, 13, 4706, 411, 15886, 29889, 11918, 29918, 6078, 877, 6758, 29374, 13, 9651, 1583, 29889, 6758, 267, 353, 15886, 29889, 15755, 29889, 29879, 5510, 29918, 2695, 3317, 29918, 19128, 29918, 296, 14441, 29918, 2541, 29918, 1188, 1169, 29898, 21134, 29922, 1311, 29889, 15728, 29918, 21134, 29892, 1480, 1169, 29922, 1311, 29889, 1557, 2361, 29897, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 1311, 29889, 6758, 267, 29897, 13, 9651, 1583, 29889, 6758, 267, 353, 15886, 29889, 18056, 368, 29898, 1311, 29889, 6758, 267, 29892, 15886, 29889, 4384, 29898, 1311, 29889, 13168, 29892, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 511, 1024, 2433, 13168, 287, 29918, 6758, 267, 1495, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 1311, 29889, 6758, 267, 29897, 13, 9651, 1583, 29889, 6758, 29896, 353, 15886, 29889, 4563, 680, 29898, 13264, 29889, 17469, 29918, 2083, 29898, 1311, 29889, 6758, 267, 29892, 9685, 29922, 29896, 511, 15886, 29889, 4384, 29898, 1311, 29889, 16506, 29918, 2848, 29879, 29892, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 511, 1024, 543, 13168, 287, 29918, 12676, 29918, 6758, 267, 1159, 13, 9651, 1583, 29889, 6758, 353, 15886, 29889, 17469, 29918, 12676, 29898, 1311, 29889, 6758, 29896, 29892, 1024, 543, 12676, 29918, 6758, 1159, 718, 1583, 29889, 5288, 334, 1583, 29889, 1590, 29918, 6758, 718, 1583, 29889, 5288, 334, 1583, 29889, 16506, 29918, 695, 29918, 6758, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 1311, 29889, 6758, 29897, 13, 9651, 15886, 29889, 7727, 29889, 19529, 279, 877, 6758, 742, 1583, 29889, 6758, 29897, 13, 13, 4706, 411, 15886, 29889, 11918, 29918, 6078, 877, 1004, 25414, 29374, 13, 9651, 1583, 29889, 27711, 1080, 353, 15886, 29889, 1191, 3317, 29898, 1311, 29889, 1557, 2361, 29892, 9685, 29922, 29906, 29892, 1024, 2433, 1191, 3317, 29918, 27711, 1080, 1495, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 1311, 29889, 27711, 1080, 29897, 13, 13, 9651, 1583, 29889, 15728, 29918, 27711, 1080, 353, 15886, 29889, 4384, 29898, 13264, 29889, 11745, 29898, 1311, 29889, 27711, 1080, 29892, 1583, 29889, 15728, 29918, 21134, 511, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 29892, 1024, 2433, 15728, 29918, 27711, 1080, 1495, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 1311, 29889, 15728, 29918, 27711, 1080, 29897, 13, 13, 9651, 1583, 29889, 15728, 29918, 27711, 1080, 353, 15886, 29889, 20054, 29918, 13168, 29898, 1311, 29889, 15728, 29918, 27711, 1080, 29892, 1583, 29889, 13168, 29892, 1024, 543, 13168, 287, 29918, 15728, 29918, 27711, 1080, 1159, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 1311, 29889, 15728, 29918, 27711, 1080, 29897, 13, 13, 9651, 1583, 29889, 562, 2764, 4135, 353, 15886, 29889, 17469, 29918, 12676, 29898, 1311, 29889, 15728, 29918, 27711, 1080, 29892, 1024, 543, 562, 2764, 4135, 1159, 13, 9651, 565, 1583, 29889, 369, 15828, 29901, 13, 18884, 1596, 29898, 1311, 29889, 562, 2764, 4135, 29897, 13, 9651, 15886, 29889, 7727, 29889, 19529, 279, 877, 562, 2764, 4135, 742, 1583, 29889, 562, 2764, 4135, 29897, 13, 13, 1678, 822, 2048, 29918, 14968, 29918, 3554, 29898, 1311, 29892, 301, 29878, 1125, 13, 4706, 411, 15886, 29889, 978, 29918, 6078, 877, 14968, 29918, 459, 29374, 13, 9651, 1583, 29889, 10945, 29918, 10568, 353, 15886, 29889, 16174, 29898, 29900, 29892, 1024, 543, 10945, 29918, 10568, 613, 7945, 519, 29922, 8824, 29897, 13, 9651, 5994, 3950, 353, 15886, 29889, 14968, 29889, 3253, 314, 20624, 326, 3950, 29898, 29212, 29897, 13, 9651, 330, 4270, 353, 5994, 3950, 29889, 26017, 29918, 5105, 10070, 29898, 1311, 29889, 6758, 29897, 13, 9651, 274, 17280, 29918, 29887, 4270, 353, 17288, 13264, 29889, 24049, 29918, 1609, 29918, 12324, 29898, 5105, 29892, 1583, 29889, 29887, 5030, 511, 722, 29897, 363, 4656, 29892, 722, 297, 330, 4270, 29962, 13, 9651, 1583, 29889, 14968, 29918, 459, 353, 5994, 3950, 29889, 7302, 29918, 5105, 10070, 29898, 29883, 17280, 29918, 29887, 4270, 29892, 5534, 29918, 10568, 29922, 1311, 29889, 10945, 29918, 10568, 29892, 13, 462, 462, 462, 965, 1024, 543, 14968, 29918, 459, 1159, 13, 13, 1678, 822, 15837, 29898, 1311, 1125, 13, 4706, 1583, 29889, 1050, 3192, 353, 15886, 29889, 7727, 29889, 14634, 29918, 497, 580, 13, 13, 1678, 822, 7945, 29898, 1311, 29892, 4867, 29892, 9853, 29918, 29916, 29892, 9853, 29918, 29891, 29892, 5768, 449, 1125, 13, 4706, 8343, 29918, 8977, 353, 426, 13, 9651, 1583, 29889, 2080, 29918, 29916, 29901, 9853, 29918, 29916, 29892, 13, 9651, 1583, 29889, 2080, 29918, 29891, 29901, 9853, 29918, 29891, 29892, 13, 9651, 1583, 29889, 8181, 29886, 29901, 5768, 449, 13, 4706, 500, 13, 13, 4706, 17117, 4331, 29892, 6410, 29892, 15837, 29892, 13600, 29892, 11105, 29892, 1959, 29918, 21134, 29892, 27497, 29892, 28495, 29892, 6410, 29896, 29892, 19435, 353, 4867, 29889, 3389, 29898, 13, 9651, 518, 1311, 29889, 14968, 29918, 459, 29892, 1583, 29889, 10945, 29918, 10568, 29892, 1583, 29889, 6758, 29892, 1583, 29889, 1050, 3192, 29892, 1583, 29889, 562, 2764, 4135, 29892, 1583, 29889, 13168, 29892, 1583, 29889, 15728, 29918, 21134, 29892, 1583, 29889, 16506, 29918, 2848, 29879, 29892, 1583, 29889, 6758, 267, 29892, 1583, 29889, 6758, 29896, 29892, 1583, 29889, 1557, 2361, 1402, 8343, 29918, 8977, 29897, 13, 4706, 736, 4331, 29892, 6410, 29892, 15837, 29892, 13600, 29892, 11105, 29892, 1959, 29918, 21134, 29892, 27497, 29892, 28495, 29892, 6410, 29896, 29892, 19435, 13, 13, 1678, 822, 8500, 29898, 1311, 29892, 4867, 29892, 921, 29892, 343, 1125, 13, 4706, 8343, 29918, 8977, 353, 426, 13, 9651, 1583, 29889, 2080, 29918, 29916, 29901, 921, 29892, 13, 9651, 1583, 29889, 2080, 29918, 29891, 29901, 343, 29892, 13, 9651, 1583, 29889, 8181, 29886, 29901, 29871, 29896, 29889, 29900, 13, 4706, 500, 13, 4706, 6410, 29892, 13600, 29892, 27303, 353, 4867, 29889, 3389, 29898, 13, 9651, 518, 1311, 29889, 6758, 29892, 1583, 29889, 562, 2764, 4135, 29892, 1583, 29889, 27711, 1080, 1402, 8343, 29918, 8977, 29897, 13, 4706, 736, 6410, 29892, 13600, 29892, 27303, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 7232, 353, 868, 29889, 24926, 29918, 8172, 29918, 17987, 29881, 886, 29898, 29896, 29900, 29900, 29892, 29871, 29906, 29900, 29897, 13, 1678, 2243, 353, 922, 3910, 4775, 261, 29898, 29906, 29900, 29892, 7232, 29892, 29871, 29896, 29953, 29892, 29871, 29945, 29892, 29871, 29896, 29906, 29892, 5852, 29897, 13, 1678, 2243, 29889, 4282, 29918, 11618, 580, 2 ]
website/forms.py
imanbayati/my-site
0
135609
from ctypes import resize from dataclasses import field from django import forms from website.models import Contact,Newsletter class NameForm(forms.Form): name = forms.CharField(label='Your Name',max_length=225) email = forms.EmailField(label='Your Email') subject = forms.CharField(label='Your Subject',max_length=300) message = forms.CharField(label='Your Message',widget=forms.Textarea(attrs={'cols':40,'rows':10})) class Contactform(forms.ModelForm): class Meta: model = Contact fields = '__all__' class Newsletterform(forms.ModelForm): class Meta: model = Newsletter fields = '__all__'
[ 1, 515, 274, 8768, 1053, 19490, 13, 3166, 848, 13203, 1053, 1746, 13, 3166, 9557, 1053, 7190, 13, 3166, 4700, 29889, 9794, 1053, 22387, 29892, 29328, 15670, 13, 13, 1990, 4408, 2500, 29898, 9514, 29889, 2500, 1125, 13, 1678, 1024, 353, 7190, 29889, 27890, 29898, 1643, 2433, 10858, 4408, 742, 3317, 29918, 2848, 29922, 29906, 29906, 29945, 29897, 13, 1678, 4876, 353, 7190, 29889, 9823, 3073, 29898, 1643, 2433, 10858, 22608, 1495, 13, 1678, 4967, 353, 7190, 29889, 27890, 29898, 1643, 2433, 10858, 3323, 622, 742, 3317, 29918, 2848, 29922, 29941, 29900, 29900, 29897, 13, 1678, 2643, 353, 7190, 29889, 27890, 29898, 1643, 2433, 10858, 7777, 742, 8030, 29922, 9514, 29889, 1626, 6203, 29898, 5552, 29879, 3790, 29915, 22724, 2396, 29946, 29900, 5501, 5727, 2396, 29896, 29900, 20073, 13, 259, 13, 268, 13, 1990, 22387, 689, 29898, 9514, 29889, 3195, 2500, 1125, 13, 268, 13, 1678, 770, 20553, 29901, 13, 4706, 1904, 353, 22387, 13, 4706, 4235, 353, 525, 1649, 497, 1649, 29915, 13, 308, 13, 1990, 10130, 15670, 689, 29898, 9514, 29889, 3195, 2500, 1125, 13, 268, 770, 20553, 29901, 13, 308, 1904, 353, 10130, 15670, 13, 308, 4235, 353, 525, 1649, 497, 1649, 29915, 2 ]
django/feedreader/urls.py
devm1023/angular-Django
0
149158
<gh_stars>0 from django.conf.urls import url from . import views urlpatterns = [ url(regex=r'^recententries$', view=views.get_recent_entries, name='entries'), url(regex=r'^deletefeed', view=views.delete_feed, name='delete_feed'), url(regex=r'^deletegroup', view=views.delete_group, name='delete_group'), url(regex=r'^feeds$', view=views.get_feeds, name='feeds'), url(regex=r'^groups$', view=views.get_groups, name='groups'), url(regex=r'^markallread$', view=views.mark_all_read, name='mark_all_read'), url(regex=r'^savefeed', view=views.save_feed, name='save_feed'), url(regex=r'^savegroup', view=views.save_group, name='save_group'), url(regex=r'^toggleread$', view=views.toggle_read, name='toggle_read'), ]
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 9557, 29889, 5527, 29889, 26045, 1053, 3142, 13, 13, 3166, 869, 1053, 8386, 13, 13, 2271, 11037, 29879, 353, 518, 13, 1678, 3142, 29898, 13087, 29922, 29878, 29915, 29985, 276, 1760, 26586, 29938, 742, 1776, 29922, 7406, 29889, 657, 29918, 276, 1760, 29918, 26586, 29892, 1024, 2433, 26586, 5477, 13, 1678, 3142, 29898, 13087, 29922, 29878, 29915, 29985, 8143, 18798, 742, 1776, 29922, 7406, 29889, 8143, 29918, 18798, 29892, 1024, 2433, 8143, 29918, 18798, 5477, 13, 1678, 3142, 29898, 13087, 29922, 29878, 29915, 29985, 8143, 2972, 742, 1776, 29922, 7406, 29889, 8143, 29918, 2972, 29892, 1024, 2433, 8143, 29918, 2972, 5477, 13, 1678, 3142, 29898, 13087, 29922, 29878, 29915, 29985, 1725, 5779, 29938, 742, 1776, 29922, 7406, 29889, 657, 29918, 1725, 5779, 29892, 1024, 2433, 1725, 5779, 5477, 13, 1678, 3142, 29898, 13087, 29922, 29878, 29915, 29985, 13155, 29938, 742, 1776, 29922, 7406, 29889, 657, 29918, 13155, 29892, 1024, 2433, 13155, 5477, 13, 1678, 3142, 29898, 13087, 29922, 29878, 29915, 29985, 3502, 497, 949, 29938, 742, 1776, 29922, 7406, 29889, 3502, 29918, 497, 29918, 949, 29892, 1024, 2433, 3502, 29918, 497, 29918, 949, 5477, 13, 1678, 3142, 29898, 13087, 29922, 29878, 29915, 29985, 7620, 18798, 742, 1776, 29922, 7406, 29889, 7620, 29918, 18798, 29892, 1024, 2433, 7620, 29918, 18798, 5477, 13, 1678, 3142, 29898, 13087, 29922, 29878, 29915, 29985, 7620, 2972, 742, 1776, 29922, 7406, 29889, 7620, 29918, 2972, 29892, 1024, 2433, 7620, 29918, 2972, 5477, 13, 1678, 3142, 29898, 13087, 29922, 29878, 29915, 29985, 29873, 468, 3820, 406, 328, 29938, 742, 1776, 29922, 7406, 29889, 13270, 29918, 949, 29892, 1024, 2433, 13270, 29918, 949, 5477, 13, 29962, 13, 2 ]
FuncionSeleccionPadres.py
BrendaMep/Proyecto1Reynas
0
75659
import numpy as np import random from FuncionAptitud import fitness lista = [0, 1, 2, 3, 4, 5, 6, 7] # son los valores en los que puede estar la reyna poblacion = np.empty((50,8)) for i in range(50): random.shuffle(lista) for j in range(8): poblacion[i, j] = lista[j] def padres(conjunto): r1 = random.random() r2 = random.random() Aptitud = ([]) A_norm = ([]) probabilidad = ([]) prob_acomulada = ([]) posibles_papas = ([]) for i in range(50): Aptitud.append(fitness(conjunto[i, :])) # contiene todos los ataques maximo = max(Aptitud) # es el que tiene mas ataques for i in range(50): A_norm.append(Aptitud[i]-maximo) suma = sum(A_norm) for i in range(50): probabilidad.append(A_norm[i]/ suma) # probabilidad de cada individuo de la población prob_acomulada = probabilidad for i in range(1,50): prob_acomulada[i] = prob_acomulada[i] + prob_acomulada[i-1] for i in range(50): if prob_acomulada[i]>= r1: posibles_papas.append(conjunto[i]) papa1 = posibles_papas[0] posibles_papas = ([]) for i in range(50): if prob_acomulada[i]>= r2: posibles_papas.append(conjunto[i]) papa2 = posibles_papas[0] return papa1,papa2 def selec_padres(poblacion): pob_padres = np.empty((100, 8)) j =0 while j in range(100): papas = padres(poblacion) pob_padres[j]= papas[0] pob_padres[j+1]= papas[1] j = j+2 return pob_padres
[ 1, 1053, 12655, 408, 7442, 13, 5215, 4036, 13, 3166, 383, 4661, 291, 29909, 415, 11267, 1053, 6216, 2264, 13, 13, 13, 19641, 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, 396, 1487, 1232, 659, 2361, 427, 1232, 712, 11493, 23673, 425, 337, 18477, 13, 29886, 711, 4620, 291, 353, 7442, 29889, 6310, 3552, 29945, 29900, 29892, 29947, 876, 13, 1454, 474, 297, 3464, 29898, 29945, 29900, 1125, 13, 1678, 4036, 29889, 845, 21897, 29898, 19641, 29897, 13, 1678, 363, 432, 297, 3464, 29898, 29947, 1125, 13, 4706, 6130, 4620, 291, 29961, 29875, 29892, 432, 29962, 353, 15023, 29961, 29926, 29962, 13, 13, 1753, 17132, 690, 29898, 535, 29926, 12578, 1125, 13, 1678, 364, 29896, 353, 4036, 29889, 8172, 580, 13, 1678, 364, 29906, 353, 4036, 29889, 8172, 580, 13, 1678, 319, 415, 11267, 353, 9310, 2314, 13, 1678, 319, 29918, 12324, 353, 9310, 2314, 13, 1678, 23950, 2368, 353, 9310, 2314, 13, 1678, 2070, 29918, 29874, 510, 352, 1114, 353, 9310, 2314, 13, 1678, 926, 13876, 29918, 29886, 481, 294, 353, 9310, 2314, 13, 1678, 363, 474, 297, 3464, 29898, 29945, 29900, 1125, 13, 4706, 319, 415, 11267, 29889, 4397, 29898, 9202, 2264, 29898, 535, 29926, 12578, 29961, 29875, 29892, 584, 12622, 259, 396, 8651, 10843, 1232, 472, 29874, 1912, 13, 1678, 5256, 29877, 353, 4236, 29898, 29909, 415, 11267, 29897, 462, 308, 396, 831, 560, 712, 10258, 5516, 472, 29874, 1912, 13, 1678, 363, 474, 297, 3464, 29898, 29945, 29900, 1125, 13, 4706, 319, 29918, 12324, 29889, 4397, 29898, 29909, 415, 11267, 29961, 29875, 29962, 29899, 27525, 29877, 29897, 13, 1678, 2533, 29874, 353, 2533, 29898, 29909, 29918, 12324, 29897, 13, 1678, 363, 474, 297, 3464, 29898, 29945, 29900, 1125, 13, 4706, 23950, 2368, 29889, 4397, 29898, 29909, 29918, 12324, 29961, 29875, 16261, 2533, 29874, 29897, 259, 396, 23950, 2368, 316, 9747, 4348, 25608, 316, 425, 13172, 13, 1678, 2070, 29918, 29874, 510, 352, 1114, 353, 23950, 2368, 13, 1678, 363, 474, 297, 3464, 29898, 29896, 29892, 29945, 29900, 1125, 13, 4706, 2070, 29918, 29874, 510, 352, 1114, 29961, 29875, 29962, 353, 2070, 29918, 29874, 510, 352, 1114, 29961, 29875, 29962, 718, 2070, 29918, 29874, 510, 352, 1114, 29961, 29875, 29899, 29896, 29962, 13, 1678, 363, 474, 297, 3464, 29898, 29945, 29900, 1125, 13, 4706, 565, 2070, 29918, 29874, 510, 352, 1114, 29961, 29875, 29962, 18572, 364, 29896, 29901, 13, 9651, 926, 13876, 29918, 29886, 481, 294, 29889, 4397, 29898, 535, 29926, 12578, 29961, 29875, 2314, 13, 1678, 23872, 29896, 353, 926, 13876, 29918, 29886, 481, 294, 29961, 29900, 29962, 13, 1678, 926, 13876, 29918, 29886, 481, 294, 353, 9310, 2314, 13, 1678, 363, 474, 297, 3464, 29898, 29945, 29900, 1125, 13, 4706, 565, 2070, 29918, 29874, 510, 352, 1114, 29961, 29875, 29962, 18572, 364, 29906, 29901, 13, 9651, 926, 13876, 29918, 29886, 481, 294, 29889, 4397, 29898, 535, 29926, 12578, 29961, 29875, 2314, 13, 1678, 23872, 29906, 353, 926, 13876, 29918, 29886, 481, 294, 29961, 29900, 29962, 13, 1678, 736, 23872, 29896, 29892, 29886, 14274, 29906, 13, 13, 13, 1753, 16954, 29883, 29918, 8305, 690, 29898, 29886, 711, 4620, 291, 1125, 13, 1678, 6130, 29918, 8305, 690, 353, 7442, 29889, 6310, 3552, 29896, 29900, 29900, 29892, 29871, 29947, 876, 13, 1678, 432, 353, 29900, 13, 1678, 1550, 432, 297, 3464, 29898, 29896, 29900, 29900, 1125, 13, 4706, 3500, 294, 353, 17132, 690, 29898, 29886, 711, 4620, 291, 29897, 13, 4706, 6130, 29918, 8305, 690, 29961, 29926, 13192, 3500, 294, 29961, 29900, 29962, 13, 4706, 6130, 29918, 8305, 690, 29961, 29926, 29974, 29896, 13192, 3500, 294, 29961, 29896, 29962, 13, 4706, 432, 353, 432, 29974, 29906, 13, 1678, 736, 6130, 29918, 8305, 690, 13, 2 ]
pytorch3d/implicitron/dataset/dataset_zoo.py
JulianKnodt/pytorch3d
0
39576
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import copy import json import os from typing import Any, Dict, List, Optional, Sequence from iopath.common.file_io import PathManager from .implicitron_dataset import ImplicitronDataset, ImplicitronDatasetBase from .utils import ( DATASET_TYPE_KNOWN, DATASET_TYPE_TEST, DATASET_TYPE_TRAIN, DATASET_TYPE_UNKNOWN, ) # TODO from dataset.dataset_configs import DATASET_CONFIGS DATASET_CONFIGS: Dict[str, Dict[str, Any]] = { "default": { "box_crop": True, "box_crop_context": 0.3, "image_width": 800, "image_height": 800, "remove_empty_masks": True, } } # fmt: off CO3D_CATEGORIES: List[str] = list(reversed([ "baseballbat", "banana", "bicycle", "microwave", "tv", "cellphone", "toilet", "hairdryer", "couch", "kite", "pizza", "umbrella", "wineglass", "laptop", "hotdog", "stopsign", "frisbee", "baseballglove", "cup", "parkingmeter", "backpack", "toyplane", "toybus", "handbag", "chair", "keyboard", "car", "motorcycle", "carrot", "bottle", "sandwich", "remote", "bowl", "skateboard", "toaster", "mouse", "toytrain", "book", "toytruck", "orange", "broccoli", "plant", "teddybear", "suitcase", "bench", "ball", "cake", "vase", "hydrant", "apple", "donut", ])) # fmt: on _CO3D_DATASET_ROOT: str = os.getenv("CO3D_DATASET_ROOT", "") def dataset_zoo( dataset_name: str = "co3d_singlesequence", dataset_root: str = _CO3D_DATASET_ROOT, category: str = "DEFAULT", limit_to: int = -1, limit_sequences_to: int = -1, n_frames_per_sequence: int = -1, test_on_train: bool = False, load_point_clouds: bool = False, mask_images: bool = False, mask_depths: bool = False, restrict_sequence_name: Sequence[str] = (), test_restrict_sequence_id: int = -1, assert_single_seq: bool = False, only_test_set: bool = False, aux_dataset_kwargs: dict = DATASET_CONFIGS["default"], path_manager: Optional[PathManager] = None, ) -> Dict[str, ImplicitronDatasetBase]: """ Generates the training / validation and testing dataset objects. Args: dataset_name: The name of the returned dataset. dataset_root: The root folder of the dataset. category: The object category of the dataset. limit_to: Limit the dataset to the first #limit_to frames. limit_sequences_to: Limit the dataset to the first #limit_sequences_to sequences. n_frames_per_sequence: Randomly sample #n_frames_per_sequence frames in each sequence. test_on_train: Construct validation and test datasets from the training subset. load_point_clouds: Enable returning scene point clouds from the dataset. mask_images: Mask the loaded images with segmentation masks. mask_depths: Mask the loaded depths with segmentation masks. restrict_sequence_name: Restrict the dataset sequences to the ones present in the given list of names. test_restrict_sequence_id: The ID of the loaded sequence. Active for dataset_name='co3d_singlesequence'. assert_single_seq: Assert that only frames from a single sequence are present in all generated datasets. only_test_set: Load only the test set. aux_dataset_kwargs: Specifies additional arguments to the ImplicitronDataset constructor call. Returns: datasets: A dictionary containing the `"dataset_subset_name": torch_dataset_object` key, value pairs. """ restrict_sequence_name = tuple(restrict_sequence_name) aux_dataset_kwargs = dict(aux_dataset_kwargs) datasets = {} # TODO: # - implement loading multiple categories if dataset_name in ["co3d_singlesequence", "co3d_multisequence"]: # This maps the common names of the dataset subsets ("train"/"val"/"test") # to the names of the subsets in the CO3D dataset. set_names_mapping = _get_co3d_set_names_mapping( dataset_name, test_on_train, only_test_set, ) # load the evaluation batches task = dataset_name.split("_")[-1] batch_indices_path = os.path.join( dataset_root, category, f"eval_batches_{task}.json", ) if not os.path.isfile(batch_indices_path): # The batch indices file does not exist. # Most probably the user has not specified the root folder. raise ValueError("Please specify a correct dataset_root folder.") with open(batch_indices_path, "r") as f: eval_batch_index = json.load(f) if task == "singlesequence": assert ( test_restrict_sequence_id is not None and test_restrict_sequence_id >= 0 ), ( "Please specify an integer id 'test_restrict_sequence_id'" + " of the sequence considered for 'singlesequence'" + " training and evaluation." ) assert len(restrict_sequence_name) == 0, ( "For the 'singlesequence' task, the restrict_sequence_name has" " to be unset while test_restrict_sequence_id has to be set to an" " integer defining the order of the evaluation sequence." ) # a sort-stable set() equivalent: eval_batches_sequence_names = list( {b[0][0]: None for b in eval_batch_index}.keys() ) eval_sequence_name = eval_batches_sequence_names[test_restrict_sequence_id] eval_batch_index = [ b for b in eval_batch_index if b[0][0] == eval_sequence_name ] # overwrite the restrict_sequence_name restrict_sequence_name = [eval_sequence_name] for dataset, subsets in set_names_mapping.items(): frame_file = os.path.join(dataset_root, category, "frame_annotations.jgz") assert os.path.isfile(frame_file) sequence_file = os.path.join( dataset_root, category, "sequence_annotations.jgz" ) assert os.path.isfile(sequence_file) subset_lists_file = os.path.join(dataset_root, category, "set_lists.json") assert os.path.isfile(subset_lists_file) # TODO: maybe directly in param list params = { **copy.deepcopy(aux_dataset_kwargs), "frame_annotations_file": frame_file, "sequence_annotations_file": sequence_file, "subset_lists_file": subset_lists_file, "dataset_root": dataset_root, "limit_to": limit_to, "limit_sequences_to": limit_sequences_to, "n_frames_per_sequence": n_frames_per_sequence if dataset == "train" else -1, "subsets": subsets, "load_point_clouds": load_point_clouds, "mask_images": mask_images, "mask_depths": mask_depths, "pick_sequence": restrict_sequence_name, "path_manager": path_manager, } datasets[dataset] = ImplicitronDataset(**params) if dataset == "test": if len(restrict_sequence_name) > 0: eval_batch_index = [ b for b in eval_batch_index if b[0][0] in restrict_sequence_name ] datasets[dataset].eval_batches = datasets[ dataset ].seq_frame_index_to_dataset_index(eval_batch_index) if assert_single_seq: # check theres only one sequence in all datasets assert ( len( { e["frame_annotation"].sequence_name for dset in datasets.values() for e in dset.frame_annots } ) <= 1 ), "Multiple sequences loaded but expected one" else: raise ValueError(f"Unsupported dataset: {dataset_name}") if test_on_train: datasets["val"] = datasets["train"] datasets["test"] = datasets["train"] return datasets def _get_co3d_set_names_mapping( dataset_name: str, test_on_train: bool, only_test: bool, ) -> Dict[str, List[str]]: """ Returns the mapping of the common dataset subset names ("train"/"val"/"test") to the names of the corresponding subsets in the CO3D dataset ("test_known"/"test_unseen"/"train_known"/"train_unseen"). """ single_seq = dataset_name == "co3d_singlesequence" if only_test: set_names_mapping = {} else: set_names_mapping = { "train": [ (DATASET_TYPE_TEST if single_seq else DATASET_TYPE_TRAIN) + "_" + DATASET_TYPE_KNOWN ] } if not test_on_train: prefixes = [DATASET_TYPE_TEST] if not single_seq: prefixes.append(DATASET_TYPE_TRAIN) set_names_mapping.update( { dset: [ p + "_" + t for p in prefixes for t in [DATASET_TYPE_KNOWN, DATASET_TYPE_UNKNOWN] ] for dset in ["val", "test"] } ) return set_names_mapping
[ 1, 396, 14187, 1266, 313, 29883, 29897, 20553, 28096, 29879, 29892, 9266, 29889, 322, 23736, 1078, 29889, 13, 29937, 2178, 10462, 21676, 29889, 13, 29937, 13, 29937, 910, 2752, 775, 338, 7794, 21144, 1090, 278, 350, 7230, 29899, 3293, 19405, 1476, 297, 278, 13, 29937, 365, 2965, 1430, 1660, 934, 297, 278, 3876, 3884, 310, 445, 2752, 5447, 29889, 13, 13, 13, 5215, 3509, 13, 5215, 4390, 13, 5215, 2897, 13, 3166, 19229, 1053, 3139, 29892, 360, 919, 29892, 2391, 29892, 28379, 29892, 922, 3910, 13, 13, 3166, 474, 459, 493, 29889, 9435, 29889, 1445, 29918, 601, 1053, 10802, 3260, 13, 13, 3166, 869, 6574, 4019, 1617, 29918, 24713, 1053, 14305, 4019, 1617, 16390, 24541, 29892, 14305, 4019, 1617, 16390, 24541, 5160, 13, 3166, 869, 13239, 1053, 313, 13, 1678, 27640, 8127, 29911, 29918, 11116, 29918, 29968, 6632, 16048, 29892, 13, 1678, 27640, 8127, 29911, 29918, 11116, 29918, 18267, 29892, 13, 1678, 27640, 8127, 29911, 29918, 11116, 29918, 29911, 4717, 1177, 29892, 13, 1678, 27640, 8127, 29911, 29918, 11116, 29918, 3904, 29968, 6632, 16048, 29892, 13, 29897, 13, 13, 13, 29937, 14402, 515, 8783, 29889, 24713, 29918, 2917, 29879, 1053, 27640, 8127, 29911, 29918, 6007, 3738, 10749, 13, 25832, 8127, 29911, 29918, 6007, 3738, 10749, 29901, 360, 919, 29961, 710, 29892, 360, 919, 29961, 710, 29892, 3139, 5262, 353, 426, 13, 1678, 376, 4381, 1115, 426, 13, 4706, 376, 1884, 29918, 29883, 1336, 1115, 5852, 29892, 13, 4706, 376, 1884, 29918, 29883, 1336, 29918, 4703, 1115, 29871, 29900, 29889, 29941, 29892, 13, 4706, 376, 3027, 29918, 2103, 1115, 29871, 29947, 29900, 29900, 29892, 13, 4706, 376, 3027, 29918, 3545, 1115, 29871, 29947, 29900, 29900, 29892, 13, 4706, 376, 5992, 29918, 6310, 29918, 13168, 29879, 1115, 5852, 29892, 13, 1678, 500, 13, 29913, 13, 13, 29937, 19200, 29901, 1283, 13, 3217, 29941, 29928, 29918, 29907, 3040, 29954, 1955, 29059, 29901, 2391, 29961, 710, 29962, 353, 1051, 29898, 276, 874, 287, 4197, 13, 1678, 376, 3188, 2135, 10222, 613, 376, 2571, 1648, 613, 376, 29890, 4245, 2841, 613, 376, 13076, 798, 1351, 613, 376, 12427, 613, 13, 1678, 376, 3729, 6710, 613, 376, 517, 488, 29873, 613, 376, 29882, 1466, 29881, 719, 261, 613, 376, 29883, 3222, 613, 376, 29895, 568, 613, 376, 29886, 24990, 613, 13, 1678, 376, 398, 1030, 13520, 613, 376, 5080, 387, 605, 613, 376, 433, 16002, 613, 13, 1678, 376, 8711, 26169, 613, 376, 303, 3554, 647, 613, 376, 1341, 275, 915, 29872, 613, 376, 3188, 2135, 29887, 417, 345, 613, 13, 1678, 376, 5231, 613, 376, 6378, 292, 29391, 613, 376, 1627, 4058, 613, 376, 517, 29891, 22116, 613, 376, 517, 29891, 8262, 613, 13, 1678, 376, 3179, 23156, 613, 376, 305, 1466, 613, 376, 1989, 3377, 613, 376, 4287, 613, 376, 14817, 272, 23090, 613, 13, 1678, 376, 4287, 5450, 613, 376, 29890, 1501, 280, 613, 376, 29879, 392, 16416, 613, 376, 16674, 613, 376, 17729, 29880, 613, 376, 808, 403, 3377, 613, 13, 1678, 376, 517, 1901, 613, 376, 15769, 613, 376, 517, 29891, 14968, 613, 376, 2909, 613, 376, 517, 29891, 509, 2707, 613, 13, 1678, 376, 272, 927, 613, 376, 6729, 617, 5079, 613, 376, 24389, 613, 376, 9446, 4518, 29890, 799, 613, 13, 1678, 376, 29658, 4878, 613, 376, 1785, 305, 613, 376, 2135, 613, 376, 1113, 446, 613, 13, 1678, 376, 29894, 559, 613, 376, 29882, 2941, 21867, 613, 376, 11548, 613, 376, 9176, 329, 613, 13, 12622, 13, 29937, 19200, 29901, 373, 13, 13, 29918, 3217, 29941, 29928, 29918, 25832, 8127, 29911, 29918, 21289, 29901, 851, 353, 2897, 29889, 657, 6272, 703, 3217, 29941, 29928, 29918, 25832, 8127, 29911, 29918, 21289, 613, 20569, 13, 13, 13, 1753, 8783, 29918, 2502, 29877, 29898, 13, 1678, 8783, 29918, 978, 29901, 851, 353, 376, 1111, 29941, 29881, 29918, 2976, 793, 1686, 663, 613, 13, 1678, 8783, 29918, 4632, 29901, 851, 353, 903, 3217, 29941, 29928, 29918, 25832, 8127, 29911, 29918, 21289, 29892, 13, 1678, 7663, 29901, 851, 353, 376, 23397, 613, 13, 1678, 4046, 29918, 517, 29901, 938, 353, 448, 29896, 29892, 13, 1678, 4046, 29918, 6831, 2063, 29918, 517, 29901, 938, 353, 448, 29896, 29892, 13, 1678, 302, 29918, 19935, 29918, 546, 29918, 16506, 29901, 938, 353, 448, 29896, 29892, 13, 1678, 1243, 29918, 265, 29918, 14968, 29901, 6120, 353, 7700, 29892, 13, 1678, 2254, 29918, 3149, 29918, 9274, 29879, 29901, 6120, 353, 7700, 29892, 13, 1678, 11105, 29918, 8346, 29901, 6120, 353, 7700, 29892, 13, 1678, 11105, 29918, 19488, 29879, 29901, 6120, 353, 7700, 29892, 13, 1678, 9250, 29918, 16506, 29918, 978, 29901, 922, 3910, 29961, 710, 29962, 353, 313, 511, 13, 1678, 1243, 29918, 5060, 4146, 29918, 16506, 29918, 333, 29901, 938, 353, 448, 29896, 29892, 13, 1678, 4974, 29918, 14369, 29918, 11762, 29901, 6120, 353, 7700, 29892, 13, 1678, 871, 29918, 1688, 29918, 842, 29901, 6120, 353, 7700, 29892, 13, 1678, 3479, 29918, 24713, 29918, 19290, 29901, 9657, 353, 27640, 8127, 29911, 29918, 6007, 3738, 10749, 3366, 4381, 12436, 13, 1678, 2224, 29918, 12847, 29901, 28379, 29961, 2605, 3260, 29962, 353, 6213, 29892, 13, 29897, 1599, 360, 919, 29961, 710, 29892, 14305, 4019, 1617, 16390, 24541, 5160, 5387, 13, 1678, 9995, 13, 1678, 3251, 1078, 278, 6694, 847, 8845, 322, 6724, 8783, 3618, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 8783, 29918, 978, 29901, 450, 1024, 310, 278, 4133, 8783, 29889, 13, 4706, 8783, 29918, 4632, 29901, 450, 3876, 4138, 310, 278, 8783, 29889, 13, 4706, 7663, 29901, 450, 1203, 7663, 310, 278, 8783, 29889, 13, 4706, 4046, 29918, 517, 29901, 9628, 277, 278, 8783, 304, 278, 937, 396, 13400, 29918, 517, 16608, 29889, 13, 4706, 4046, 29918, 6831, 2063, 29918, 517, 29901, 9628, 277, 278, 8783, 304, 278, 937, 13, 9651, 396, 13400, 29918, 6831, 2063, 29918, 517, 15602, 29889, 13, 4706, 302, 29918, 19935, 29918, 546, 29918, 16506, 29901, 16968, 368, 4559, 396, 29876, 29918, 19935, 29918, 546, 29918, 16506, 16608, 13, 9651, 297, 1269, 5665, 29889, 13, 4706, 1243, 29918, 265, 29918, 14968, 29901, 1281, 4984, 8845, 322, 1243, 20035, 515, 13, 9651, 278, 6694, 11306, 29889, 13, 4706, 2254, 29918, 3149, 29918, 9274, 29879, 29901, 1174, 519, 7863, 9088, 1298, 27091, 515, 278, 8783, 29889, 13, 4706, 11105, 29918, 8346, 29901, 341, 1278, 278, 7500, 4558, 411, 10768, 362, 11105, 29879, 29889, 13, 4706, 11105, 29918, 19488, 29879, 29901, 341, 1278, 278, 7500, 10809, 29879, 411, 10768, 362, 11105, 29879, 29889, 13, 4706, 9250, 29918, 16506, 29918, 978, 29901, 11654, 4146, 278, 8783, 15602, 304, 278, 6743, 13, 9651, 2198, 297, 278, 2183, 1051, 310, 2983, 29889, 13, 4706, 1243, 29918, 5060, 4146, 29918, 16506, 29918, 333, 29901, 450, 3553, 310, 278, 7500, 5665, 29889, 13, 9651, 10731, 363, 8783, 29918, 978, 2433, 1111, 29941, 29881, 29918, 2976, 793, 1686, 663, 4286, 13, 4706, 4974, 29918, 14369, 29918, 11762, 29901, 16499, 393, 871, 16608, 515, 263, 2323, 5665, 13, 9651, 526, 2198, 297, 599, 5759, 20035, 29889, 13, 4706, 871, 29918, 1688, 29918, 842, 29901, 16012, 871, 278, 1243, 731, 29889, 13, 4706, 3479, 29918, 24713, 29918, 19290, 29901, 12048, 11057, 5684, 6273, 304, 278, 13, 9651, 14305, 4019, 1617, 16390, 24541, 5823, 1246, 29889, 13, 13, 1678, 16969, 29901, 13, 4706, 20035, 29901, 319, 8600, 6943, 278, 13, 9651, 10248, 24713, 29918, 6484, 29918, 978, 1115, 4842, 305, 29918, 24713, 29918, 3318, 29952, 1820, 29892, 995, 11000, 29889, 13, 1678, 9995, 13, 1678, 9250, 29918, 16506, 29918, 978, 353, 18761, 29898, 5060, 4146, 29918, 16506, 29918, 978, 29897, 13, 1678, 3479, 29918, 24713, 29918, 19290, 353, 9657, 29898, 2993, 29918, 24713, 29918, 19290, 29897, 13, 13, 1678, 20035, 353, 6571, 13, 13, 1678, 396, 14402, 29901, 13, 1678, 396, 448, 2334, 8363, 2999, 13997, 13, 13, 1678, 565, 8783, 29918, 978, 297, 6796, 1111, 29941, 29881, 29918, 2976, 793, 1686, 663, 613, 376, 1111, 29941, 29881, 29918, 4713, 895, 3910, 3108, 29901, 13, 4706, 396, 910, 11053, 278, 3619, 2983, 310, 278, 8783, 27639, 4852, 14968, 29908, 12975, 791, 29908, 12975, 1688, 1159, 13, 4706, 396, 304, 278, 2983, 310, 278, 27639, 297, 278, 4810, 29941, 29928, 8783, 29889, 13, 4706, 731, 29918, 7039, 29918, 20698, 353, 903, 657, 29918, 1111, 29941, 29881, 29918, 842, 29918, 7039, 29918, 20698, 29898, 13, 9651, 8783, 29918, 978, 29892, 13, 9651, 1243, 29918, 265, 29918, 14968, 29892, 13, 9651, 871, 29918, 1688, 29918, 842, 29892, 13, 4706, 1723, 13, 13, 4706, 396, 2254, 278, 17983, 9853, 267, 13, 4706, 3414, 353, 8783, 29918, 978, 29889, 5451, 703, 29918, 1159, 14352, 29896, 29962, 13, 4706, 9853, 29918, 513, 1575, 29918, 2084, 353, 2897, 29889, 2084, 29889, 7122, 29898, 13, 9651, 8783, 29918, 4632, 29892, 13, 9651, 7663, 29892, 13, 9651, 285, 29908, 14513, 29918, 16175, 267, 648, 7662, 1836, 3126, 613, 13, 4706, 1723, 13, 4706, 565, 451, 2897, 29889, 2084, 29889, 275, 1445, 29898, 16175, 29918, 513, 1575, 29918, 2084, 1125, 13, 9651, 396, 450, 9853, 16285, 934, 947, 451, 1863, 29889, 13, 9651, 396, 7849, 3117, 278, 1404, 756, 451, 6790, 278, 3876, 4138, 29889, 13, 9651, 12020, 7865, 2392, 703, 12148, 6084, 263, 1959, 8783, 29918, 4632, 4138, 23157, 13, 13, 4706, 411, 1722, 29898, 16175, 29918, 513, 1575, 29918, 2084, 29892, 376, 29878, 1159, 408, 285, 29901, 13, 9651, 19745, 29918, 16175, 29918, 2248, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 13, 4706, 565, 3414, 1275, 376, 2976, 793, 1686, 663, 1115, 13, 9651, 4974, 313, 13, 18884, 1243, 29918, 5060, 4146, 29918, 16506, 29918, 333, 338, 451, 6213, 322, 1243, 29918, 5060, 4146, 29918, 16506, 29918, 333, 6736, 29871, 29900, 13, 9651, 10353, 313, 13, 18884, 376, 12148, 6084, 385, 6043, 1178, 525, 1688, 29918, 5060, 4146, 29918, 16506, 29918, 333, 11838, 13, 18884, 718, 376, 310, 278, 5665, 5545, 363, 525, 2976, 793, 1686, 663, 11838, 13, 18884, 718, 376, 6694, 322, 17983, 1213, 13, 9651, 1723, 13, 9651, 4974, 7431, 29898, 5060, 4146, 29918, 16506, 29918, 978, 29897, 1275, 29871, 29900, 29892, 313, 13, 18884, 376, 2831, 278, 525, 2976, 793, 1686, 663, 29915, 3414, 29892, 278, 9250, 29918, 16506, 29918, 978, 756, 29908, 13, 18884, 376, 304, 367, 443, 842, 1550, 1243, 29918, 5060, 4146, 29918, 16506, 29918, 333, 756, 304, 367, 731, 304, 385, 29908, 13, 18884, 376, 6043, 16184, 278, 1797, 310, 278, 17983, 5665, 1213, 13, 9651, 1723, 13, 9651, 396, 263, 2656, 29899, 13844, 731, 580, 7126, 29901, 13, 9651, 19745, 29918, 16175, 267, 29918, 16506, 29918, 7039, 353, 1051, 29898, 13, 18884, 426, 29890, 29961, 29900, 3816, 29900, 5387, 6213, 363, 289, 297, 19745, 29918, 16175, 29918, 2248, 1836, 8149, 580, 13, 9651, 1723, 13, 9651, 19745, 29918, 16506, 29918, 978, 353, 19745, 29918, 16175, 267, 29918, 16506, 29918, 7039, 29961, 1688, 29918, 5060, 4146, 29918, 16506, 29918, 333, 29962, 13, 9651, 19745, 29918, 16175, 29918, 2248, 353, 518, 13, 18884, 289, 363, 289, 297, 19745, 29918, 16175, 29918, 2248, 565, 289, 29961, 29900, 3816, 29900, 29962, 1275, 19745, 29918, 16506, 29918, 978, 13, 9651, 4514, 13, 9651, 396, 26556, 278, 9250, 29918, 16506, 29918, 978, 13, 9651, 9250, 29918, 16506, 29918, 978, 353, 518, 14513, 29918, 16506, 29918, 978, 29962, 13, 13, 4706, 363, 8783, 29892, 27639, 297, 731, 29918, 7039, 29918, 20698, 29889, 7076, 7295, 13, 9651, 3515, 29918, 1445, 353, 2897, 29889, 2084, 29889, 7122, 29898, 24713, 29918, 4632, 29892, 7663, 29892, 376, 2557, 29918, 6735, 800, 29889, 29926, 18828, 1159, 13, 9651, 4974, 2897, 29889, 2084, 29889, 275, 1445, 29898, 2557, 29918, 1445, 29897, 13, 13, 9651, 5665, 29918, 1445, 353, 2897, 29889, 2084, 29889, 7122, 29898, 13, 18884, 8783, 29918, 4632, 29892, 7663, 29892, 376, 16506, 29918, 6735, 800, 29889, 29926, 18828, 29908, 13, 9651, 1723, 13, 9651, 4974, 2897, 29889, 2084, 29889, 275, 1445, 29898, 16506, 29918, 1445, 29897, 13, 13, 9651, 11306, 29918, 21513, 29918, 1445, 353, 2897, 29889, 2084, 29889, 7122, 29898, 24713, 29918, 4632, 29892, 7663, 29892, 376, 842, 29918, 21513, 29889, 3126, 1159, 13, 9651, 4974, 2897, 29889, 2084, 29889, 275, 1445, 29898, 6484, 29918, 21513, 29918, 1445, 29897, 13, 13, 9651, 396, 14402, 29901, 5505, 4153, 297, 1828, 1051, 13, 9651, 8636, 353, 426, 13, 18884, 3579, 8552, 29889, 24535, 8552, 29898, 2993, 29918, 24713, 29918, 19290, 511, 13, 18884, 376, 2557, 29918, 6735, 800, 29918, 1445, 1115, 3515, 29918, 1445, 29892, 13, 18884, 376, 16506, 29918, 6735, 800, 29918, 1445, 1115, 5665, 29918, 1445, 29892, 13, 18884, 376, 6484, 29918, 21513, 29918, 1445, 1115, 11306, 29918, 21513, 29918, 1445, 29892, 13, 18884, 376, 24713, 29918, 4632, 1115, 8783, 29918, 4632, 29892, 13, 18884, 376, 13400, 29918, 517, 1115, 4046, 29918, 517, 29892, 13, 18884, 376, 13400, 29918, 6831, 2063, 29918, 517, 1115, 4046, 29918, 6831, 2063, 29918, 517, 29892, 13, 18884, 376, 29876, 29918, 19935, 29918, 546, 29918, 16506, 1115, 302, 29918, 19935, 29918, 546, 29918, 16506, 13, 18884, 565, 8783, 1275, 376, 14968, 29908, 13, 18884, 1683, 448, 29896, 29892, 13, 18884, 376, 6484, 29879, 1115, 27639, 29892, 13, 18884, 376, 1359, 29918, 3149, 29918, 9274, 29879, 1115, 2254, 29918, 3149, 29918, 9274, 29879, 29892, 13, 18884, 376, 13168, 29918, 8346, 1115, 11105, 29918, 8346, 29892, 13, 18884, 376, 13168, 29918, 19488, 29879, 1115, 11105, 29918, 19488, 29879, 29892, 13, 18884, 376, 23945, 29918, 16506, 1115, 9250, 29918, 16506, 29918, 978, 29892, 13, 18884, 376, 2084, 29918, 12847, 1115, 2224, 29918, 12847, 29892, 13, 9651, 500, 13, 13, 9651, 20035, 29961, 24713, 29962, 353, 14305, 4019, 1617, 16390, 24541, 29898, 1068, 7529, 29897, 13, 9651, 565, 8783, 1275, 376, 1688, 1115, 13, 18884, 565, 7431, 29898, 5060, 4146, 29918, 16506, 29918, 978, 29897, 1405, 29871, 29900, 29901, 13, 462, 1678, 19745, 29918, 16175, 29918, 2248, 353, 518, 13, 462, 4706, 289, 363, 289, 297, 19745, 29918, 16175, 29918, 2248, 565, 289, 29961, 29900, 3816, 29900, 29962, 297, 9250, 29918, 16506, 29918, 978, 13, 462, 1678, 4514, 13, 13, 18884, 20035, 29961, 24713, 1822, 14513, 29918, 16175, 267, 353, 20035, 29961, 13, 462, 1678, 8783, 13, 462, 1822, 11762, 29918, 2557, 29918, 2248, 29918, 517, 29918, 24713, 29918, 2248, 29898, 14513, 29918, 16175, 29918, 2248, 29897, 13, 13, 4706, 565, 4974, 29918, 14369, 29918, 11762, 29901, 13, 9651, 396, 1423, 266, 11175, 871, 697, 5665, 297, 599, 20035, 13, 9651, 4974, 313, 13, 18884, 7431, 29898, 13, 462, 1678, 426, 13, 462, 4706, 321, 3366, 2557, 29918, 18317, 16862, 16506, 29918, 978, 13, 462, 4706, 363, 270, 842, 297, 20035, 29889, 5975, 580, 13, 462, 4706, 363, 321, 297, 270, 842, 29889, 2557, 29918, 812, 1862, 13, 462, 1678, 500, 13, 18884, 1723, 13, 18884, 5277, 29871, 29896, 13, 9651, 10353, 376, 15329, 552, 15602, 7500, 541, 3806, 697, 29908, 13, 13, 1678, 1683, 29901, 13, 4706, 12020, 7865, 2392, 29898, 29888, 29908, 25807, 29884, 3016, 287, 8783, 29901, 426, 24713, 29918, 978, 27195, 13, 13, 1678, 565, 1243, 29918, 265, 29918, 14968, 29901, 13, 4706, 20035, 3366, 791, 3108, 353, 20035, 3366, 14968, 3108, 13, 4706, 20035, 3366, 1688, 3108, 353, 20035, 3366, 14968, 3108, 13, 13, 1678, 736, 20035, 13, 13, 13, 1753, 903, 657, 29918, 1111, 29941, 29881, 29918, 842, 29918, 7039, 29918, 20698, 29898, 13, 1678, 8783, 29918, 978, 29901, 851, 29892, 13, 1678, 1243, 29918, 265, 29918, 14968, 29901, 6120, 29892, 13, 1678, 871, 29918, 1688, 29901, 6120, 29892, 13, 29897, 1599, 360, 919, 29961, 710, 29892, 2391, 29961, 710, 5262, 29901, 13, 1678, 9995, 13, 1678, 16969, 278, 10417, 310, 278, 3619, 8783, 11306, 2983, 4852, 14968, 29908, 12975, 791, 29908, 12975, 1688, 1159, 13, 1678, 304, 278, 2983, 310, 278, 6590, 27639, 297, 278, 4810, 29941, 29928, 8783, 13, 1678, 4852, 1688, 29918, 5203, 29908, 12975, 1688, 29918, 348, 28026, 29908, 12975, 14968, 29918, 5203, 29908, 12975, 14968, 29918, 348, 28026, 2564, 13, 1678, 9995, 13, 1678, 2323, 29918, 11762, 353, 8783, 29918, 978, 1275, 376, 1111, 29941, 29881, 29918, 2976, 793, 1686, 663, 29908, 13, 13, 1678, 565, 871, 29918, 1688, 29901, 13, 4706, 731, 29918, 7039, 29918, 20698, 353, 6571, 13, 1678, 1683, 29901, 13, 4706, 731, 29918, 7039, 29918, 20698, 353, 426, 13, 9651, 376, 14968, 1115, 518, 13, 18884, 313, 25832, 8127, 29911, 29918, 11116, 29918, 18267, 565, 2323, 29918, 11762, 1683, 27640, 8127, 29911, 29918, 11116, 29918, 29911, 4717, 1177, 29897, 13, 18884, 718, 11119, 29908, 13, 18884, 718, 27640, 8127, 29911, 29918, 11116, 29918, 29968, 6632, 16048, 13, 9651, 4514, 13, 4706, 500, 13, 1678, 565, 451, 1243, 29918, 265, 29918, 14968, 29901, 13, 4706, 10944, 267, 353, 518, 25832, 8127, 29911, 29918, 11116, 29918, 18267, 29962, 13, 4706, 565, 451, 2323, 29918, 11762, 29901, 13, 9651, 10944, 267, 29889, 4397, 29898, 25832, 8127, 29911, 29918, 11116, 29918, 29911, 4717, 1177, 29897, 13, 4706, 731, 29918, 7039, 29918, 20698, 29889, 5504, 29898, 13, 9651, 426, 13, 18884, 270, 842, 29901, 518, 13, 462, 1678, 282, 718, 11119, 29908, 718, 260, 13, 462, 1678, 363, 282, 297, 10944, 267, 13, 462, 1678, 363, 260, 297, 518, 25832, 8127, 29911, 29918, 11116, 29918, 29968, 6632, 16048, 29892, 27640, 8127, 29911, 29918, 11116, 29918, 3904, 29968, 6632, 16048, 29962, 13, 18884, 4514, 13, 18884, 363, 270, 842, 297, 6796, 791, 613, 376, 1688, 3108, 13, 9651, 500, 13, 4706, 1723, 13, 13, 1678, 736, 731, 29918, 7039, 29918, 20698, 13, 2 ]
mp3player.py
athavus/Mp3Player
2
176504
from pygame import mixer from PySimpleGUI import PySimpleGUI as sg sg.theme('DarkPurple1') # Definição do tema da interface do programa layout = [ [sg.Text('MP3 PLAYER'.center(50), font='Consolas')], # Título do programa [sg.Text('NOME DA MÚSICA:', font='Consolas'), sg.Input(key='music', size=(42, 1))], # Input da música que será tocada [sg.Button('▶', size=(55, 1))] # Botão para fazer tocar a música ] janela = sg.Window('Mp3 player', layout) # Criação da janela while True: try: # Tentativa de abrir o arquivo da música e da leitura dos inputs de cima eventos, valores = janela.read() musica = open(valores['music']) except: # Caso o usuário não coloque um valor válido no input, temos uma mensagem de Erro! Porém o programa não se encerra print('Erro! :/') else: # Se tudo ocorrer corretamente, chegamos nesta condição onde o player enfim toca a música if eventos == sg.WIN_CLOSED: break if eventos == '▶': mixer.init() # Iniciador do mixer do Pygame mixer.music.load(musica) # Comando que carrega a música recebida pelo input mixer.music.play() # Comando que toca a música que foi recebida pelo input print(f'Está tocando {valores["music"]}... Aproveite') # Comando que mostra a música que está tocando
[ 1, 515, 22028, 1053, 6837, 261, 30004, 13, 3166, 10772, 15427, 29954, 3120, 1053, 10772, 15427, 29954, 3120, 408, 269, 29887, 30004, 13, 30004, 13, 5311, 29889, 18193, 877, 29928, 935, 29925, 332, 552, 29896, 1495, 396, 5282, 2172, 2340, 437, 23312, 1146, 5067, 437, 16914, 30004, 13, 30004, 13, 2680, 353, 518, 30004, 13, 1678, 518, 5311, 29889, 1626, 877, 3580, 29941, 349, 18799, 1001, 4286, 5064, 29898, 29945, 29900, 511, 4079, 2433, 13696, 16118, 1495, 1402, 396, 323, 2468, 7207, 437, 16914, 30004, 13, 1678, 518, 5311, 29889, 1626, 877, 6632, 2303, 21330, 341, 30161, 29903, 2965, 29909, 29901, 742, 4079, 2433, 13696, 16118, 5477, 269, 29887, 29889, 4290, 29898, 1989, 2433, 23596, 742, 2159, 7607, 29946, 29906, 29892, 29871, 29896, 876, 1402, 396, 10567, 1146, 15433, 712, 724, 29976, 304, 29883, 1114, 30004, 13, 1678, 518, 5311, 29889, 3125, 877, 30965, 742, 2159, 7607, 29945, 29945, 29892, 29871, 29896, 28166, 396, 11273, 1368, 1702, 16928, 261, 304, 4287, 263, 15433, 30004, 13, 29962, 259, 6756, 13, 8931, 3100, 353, 269, 29887, 29889, 5907, 877, 29924, 29886, 29941, 4847, 742, 5912, 29897, 396, 315, 2849, 2340, 1146, 5496, 3100, 30004, 13, 30004, 13, 8000, 5852, 29901, 30004, 13, 1678, 1018, 29901, 396, 323, 296, 8657, 316, 633, 12416, 288, 19325, 4243, 1146, 15433, 321, 1146, 454, 277, 2002, 3248, 10970, 316, 274, 2946, 30004, 13, 4706, 1741, 359, 29892, 659, 2361, 353, 5496, 3100, 29889, 949, 26471, 13, 4706, 27383, 353, 1722, 29898, 791, 2361, 1839, 23596, 2033, 8443, 13, 1678, 5174, 29901, 396, 6960, 29877, 288, 502, 29884, 12288, 8145, 784, 29877, 802, 1922, 16497, 12196, 1941, 694, 1881, 29892, 1350, 359, 3672, 18664, 13904, 316, 1425, 307, 29991, 7102, 2249, 288, 16914, 8145, 409, 2094, 261, 336, 30004, 13, 4706, 1596, 877, 2110, 307, 29991, 584, 29914, 1495, 30004, 13, 1678, 1683, 29901, 396, 922, 260, 5333, 288, 2616, 2872, 1034, 2267, 2503, 29892, 923, 29887, 14054, 302, 4405, 2148, 12556, 16504, 288, 4847, 12377, 326, 304, 1113, 263, 15433, 30004, 13, 4706, 565, 1741, 359, 1275, 269, 29887, 29889, 25152, 29918, 29907, 3927, 1660, 29928, 29901, 30004, 13, 9651, 2867, 30004, 13, 4706, 565, 1741, 359, 1275, 525, 30965, 2396, 30004, 13, 9651, 6837, 261, 29889, 2344, 580, 396, 512, 1654, 3136, 437, 6837, 261, 437, 349, 4790, 420, 30004, 13, 9651, 6837, 261, 29889, 23596, 29889, 1359, 29898, 8366, 983, 29897, 396, 422, 1743, 712, 1559, 1727, 29874, 263, 15433, 2414, 29890, 1458, 10845, 1881, 30004, 13, 9651, 6837, 261, 29889, 23596, 29889, 1456, 580, 396, 422, 1743, 712, 304, 1113, 263, 15433, 712, 4732, 2414, 29890, 1458, 10845, 1881, 30004, 13, 9651, 1596, 29898, 29888, 29915, 12787, 29976, 304, 29883, 1743, 426, 791, 2361, 3366, 23596, 3108, 29913, 856, 319, 771, 345, 568, 1495, 396, 422, 1743, 712, 27588, 263, 15433, 712, 7919, 304, 29883, 1743, 30004, 13, 2 ]
src/pkg/caendr/caendr/services/sql/etl/__init__.py
AndersenLab/CAENDR
3
1602015
<reponame>AndersenLab/CAENDR from .strains import load_strains from .wormbase import load_genes_summary, load_genes, load_orthologs from .homologs import load_homologs from .strain_annotated_variants import load_strain_annotated_variants
[ 1, 529, 276, 1112, 420, 29958, 2855, 414, 264, 28632, 29914, 5454, 1430, 8353, 13, 3166, 869, 4151, 1144, 1053, 2254, 29918, 4151, 1144, 13, 3166, 869, 29893, 555, 3188, 1053, 2254, 29918, 1885, 267, 29918, 7727, 29892, 2254, 29918, 1885, 267, 29892, 2254, 29918, 2072, 1189, 29879, 13, 3166, 869, 9706, 1189, 29879, 1053, 2254, 29918, 9706, 1189, 29879, 13, 3166, 869, 4151, 262, 29918, 6735, 630, 29918, 5927, 1934, 1053, 2254, 29918, 4151, 262, 29918, 6735, 630, 29918, 5927, 1934, 2 ]
itp1_8a.py
ShinjiKatoA16/aoj-itp
0
168514
<reponame>ShinjiKatoA16/aoj-itp #!/usr/bin/python3 # -*- coding: utf-8 -*- import sys from string import ascii_lowercase as asc_l, ascii_uppercase as asc_u table = str.maketrans(asc_l+asc_u, asc_u+asc_l) s = sys.stdin.readline() print(s.translate(table), end='')
[ 1, 529, 276, 1112, 420, 29958, 2713, 262, 2397, 29968, 1219, 29909, 29896, 29953, 29914, 29874, 3848, 29899, 277, 29886, 13, 29937, 14708, 4855, 29914, 2109, 29914, 4691, 29941, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 5215, 10876, 13, 3166, 1347, 1053, 408, 18869, 29918, 13609, 4878, 408, 12066, 29918, 29880, 29892, 408, 18869, 29918, 21064, 4878, 408, 12066, 29918, 29884, 13, 13, 2371, 353, 851, 29889, 29885, 557, 18184, 550, 29898, 6151, 29918, 29880, 29974, 6151, 29918, 29884, 29892, 12066, 29918, 29884, 29974, 6151, 29918, 29880, 29897, 13, 13, 29879, 353, 10876, 29889, 4172, 262, 29889, 949, 1220, 580, 13, 2158, 29898, 29879, 29889, 21652, 29898, 2371, 511, 1095, 2433, 1495, 13, 2 ]
src/views/help.py
Amin-egn/Recipient
1
165881
<reponame>Amin-egn/Recipient<gh_stars>1-10 class Help(object): """Help View""" def __init__(self, ui): self.ui = ui self.tab = ui.contents.help # connect signals self.ui.menu.btnHelp.clicked.connect(self.tab_handler) def tab_handler(self): self.ui.contents.showTab(self.ui.contents.HELP)
[ 1, 529, 276, 1112, 420, 29958, 29909, 1195, 29899, 26567, 29914, 1123, 7334, 993, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 1990, 22305, 29898, 3318, 1125, 13, 1678, 9995, 29648, 4533, 15945, 29908, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 14313, 1125, 13, 4706, 1583, 29889, 1481, 353, 14313, 13, 4706, 1583, 29889, 3891, 353, 14313, 29889, 10853, 29889, 8477, 13, 4706, 396, 4511, 18470, 13, 4706, 1583, 29889, 1481, 29889, 6510, 29889, 7290, 29648, 29889, 3808, 287, 29889, 6915, 29898, 1311, 29889, 3891, 29918, 13789, 29897, 13, 13, 1678, 822, 4434, 29918, 13789, 29898, 1311, 1125, 13, 4706, 1583, 29889, 1481, 29889, 10853, 29889, 4294, 8863, 29898, 1311, 29889, 1481, 29889, 10853, 29889, 29950, 6670, 29925, 29897, 13, 2 ]
app/ext/api/services/file_services.py
fredsonchaves07/foodfy
0
1617476
from app.ext.api.models.file import Files from app.ext.database import db def create_file(filename, path): file = Files() file.name = filename file.path = path db.session.add(file) db.session.commit() return file.as_dict() def update_file(file_id, filename, path): file = get_file_by_id(file_id) file.name = filename file.path = path db.session.commit() return file.as_dict() def get_file_by_id(file_id): file = Files.query.filter_by(id=file_id).first() return file def delete_file(file_id): file = get_file_by_id(file_id) db.session.delete(file) db.session.commit()
[ 1, 515, 623, 29889, 1062, 29889, 2754, 29889, 9794, 29889, 1445, 1053, 12745, 13, 3166, 623, 29889, 1062, 29889, 9803, 1053, 4833, 13, 13, 13, 1753, 1653, 29918, 1445, 29898, 9507, 29892, 2224, 1125, 13, 1678, 934, 353, 12745, 580, 13, 13, 1678, 934, 29889, 978, 353, 10422, 13, 1678, 934, 29889, 2084, 353, 2224, 13, 13, 1678, 4833, 29889, 7924, 29889, 1202, 29898, 1445, 29897, 13, 1678, 4833, 29889, 7924, 29889, 15060, 580, 13, 13, 1678, 736, 934, 29889, 294, 29918, 8977, 580, 13, 13, 13, 1753, 2767, 29918, 1445, 29898, 1445, 29918, 333, 29892, 10422, 29892, 2224, 1125, 13, 1678, 934, 353, 679, 29918, 1445, 29918, 1609, 29918, 333, 29898, 1445, 29918, 333, 29897, 13, 13, 1678, 934, 29889, 978, 353, 10422, 13, 1678, 934, 29889, 2084, 353, 2224, 13, 13, 1678, 4833, 29889, 7924, 29889, 15060, 580, 13, 13, 1678, 736, 934, 29889, 294, 29918, 8977, 580, 13, 13, 13, 1753, 679, 29918, 1445, 29918, 1609, 29918, 333, 29898, 1445, 29918, 333, 1125, 13, 1678, 934, 353, 12745, 29889, 1972, 29889, 4572, 29918, 1609, 29898, 333, 29922, 1445, 29918, 333, 467, 4102, 580, 13, 13, 1678, 736, 934, 13, 13, 13, 1753, 5217, 29918, 1445, 29898, 1445, 29918, 333, 1125, 13, 1678, 934, 353, 679, 29918, 1445, 29918, 1609, 29918, 333, 29898, 1445, 29918, 333, 29897, 13, 13, 1678, 4833, 29889, 7924, 29889, 8143, 29898, 1445, 29897, 13, 1678, 4833, 29889, 7924, 29889, 15060, 580, 13, 2 ]
FastAutoAugment/pointaug/__init__.py
ironluffy/fast-autoaugment
0
152074
<reponame>ironluffy/fast-autoaugment from .train import train from .test import test from .test import test_model
[ 1, 529, 276, 1112, 420, 29958, 381, 265, 29880, 3096, 29891, 29914, 11255, 29899, 6921, 2987, 358, 13, 3166, 869, 14968, 1053, 7945, 13, 3166, 869, 1688, 1053, 1243, 13, 3166, 869, 1688, 1053, 1243, 29918, 4299, 2 ]
tools/examples.py
Hellowlol/plexapi
4
19018
<filename>tools/examples.py # -*- coding: utf-8 -*- """ PlexAPI Examples As of Plex version 0.9.11 I noticed that you must be logged in to browse even the plex server locatewd at localhost. You can run this example suite with the following command: >> python examples.py -u <USERNAME> -p <PASSWORD> -s <SERVERNAME> """ import argparse, sys from collections import defaultdict from os.path import dirname, abspath sys.path.append(dirname(dirname(abspath(__file__)))) from utils import fetch_server, iter_tests, register @register() def list_unwatched_movies(plex): """ Example 1: List all unwatched movies. """ movies = plex.library.section('Movies') for video in movies.search(unwatched=True, maxresults=10, sort='addedAt:desc'): print(' %s' % video.title) @register() def mark_all_friends_episodes_watched(plex): """ Example 2: Mark all Friends episodes watched. """ plex.library.section('TV Shows').get('Friends').markWatched() @register() def list_connected_clients(plex): """ Example 3: List clients connected to the server. """ for client in plex.clients(): print(client.title) @register() def play_avatar_on_client(plex): """ Example 4: Play the Movie Avatar on my iPhone. Note: Client must be on same network as server. """ avatar = plex.library.section('Movies').get('Avatar') client = plex.client('iphone-mike') client.playMedia(avatar) @register() def list_animated_movies(plex): """ Example 5: List all animated movies from the 90s. """ movies = plex.library.section('Movies') for video in movies.search(genre='animation', decade=1990): print(' %s (%s)' % (video.title, video.year)) @register() def follow_the_talent(plex): """ Example 6: List all movies directed by the same person as Jurassic Park. """ movies = plex.library.section('Movies') jurassic_park = movies.get('Jurassic Park') for movie in movies.search(director=jurassic_park.directors): print(movie.title) @register() def list_files(plex): """ Example 7: List files for the latest episode of Friends. """ thelastone = plex.library.section('TV Shows').get('Friends').episodes()[-1] for part in thelastone.iterParts(): print(part.file) @register() def get_stream_url(plex): """ Example 8: Get a URL you can open in VLC, MPV, etc. """ jurassic_park = plex.library.section('Movies').get('Jurassic Park') print('Try running the following command:') print('vlc "%s"' % jurassic_park.getStreamURL(videoResolution='800x600')) @register() def most_streamed_titles(plex): """ Example 9: List the most played movies. """ popular = defaultdict(int) for item in plex.history(): if item.TYPE == 'movie': popular[item.title] += 1 popular = sorted(popular.items(), key=lambda x:x[1], reverse=True) for title, count in popular[:5]: print('%s (%s plays)' % (title, count)) @register() def most_active_users(plex): """ Example 10: List the most active users. """ users = defaultdict(int) for item in plex.history(): print(item.TYPE) users[item.username] += 1 users = sorted(users.items(), key=lambda x:x[1], reverse=True) for user, count in users[:5]: print('%s (%s plays)' % (user, count)) if __name__ == '__main__': # There are three ways to authenticate: # 1. If the server is running on localhost, just run without any auth. # 2. Pass in --username, --password, and --resource. # 3. Pass in --baseurl, --token parser = argparse.ArgumentParser(description='Run PlexAPI examples.') parser.add_argument('-u', '--username', help='Username for your MyPlex account.') parser.add_argument('-p', '--password', help='Password for your MyPlex account.') parser.add_argument('-r', '--resource', help='Name of the Plex resource (requires user/pass).') parser.add_argument('-b', '--baseurl', help='Baseurl needed for auth token authentication') parser.add_argument('-t', '--token', help='Auth token (instead of user/pass)') parser.add_argument('-q', '--example', help='Only run the specified example.') parser.add_argument('-v', '--verbose', default=False, action='store_true', help='Print verbose logging.') args = parser.parse_args() plex, account = fetch_server(args) for example in iter_tests(args.example): example['func'](plex)
[ 1, 529, 9507, 29958, 8504, 29914, 19057, 29889, 2272, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 15945, 29908, 13, 29925, 2506, 8787, 1222, 9422, 13, 2887, 310, 349, 2506, 1873, 29871, 29900, 29889, 29929, 29889, 29896, 29896, 306, 10548, 393, 366, 1818, 367, 13817, 297, 13, 517, 3347, 344, 1584, 278, 282, 2506, 1923, 26694, 9970, 472, 15683, 29889, 887, 508, 13, 3389, 445, 1342, 9460, 411, 278, 1494, 1899, 29901, 13, 13, 6778, 3017, 6455, 29889, 2272, 448, 29884, 529, 11889, 5813, 29958, 448, 29886, 529, 25711, 17013, 29958, 448, 29879, 529, 18603, 5813, 29958, 13, 15945, 29908, 13, 5215, 1852, 5510, 29892, 10876, 13, 3166, 16250, 1053, 2322, 8977, 13, 3166, 2897, 29889, 2084, 1053, 4516, 978, 29892, 633, 1028, 493, 13, 9675, 29889, 2084, 29889, 4397, 29898, 25721, 29898, 25721, 29898, 370, 1028, 493, 22168, 1445, 1649, 13697, 13, 3166, 3667, 29879, 1053, 6699, 29918, 2974, 29892, 4256, 29918, 21150, 29892, 6036, 13, 13, 13, 29992, 9573, 580, 13, 1753, 1051, 29918, 348, 12344, 287, 29918, 13529, 583, 29898, 10709, 1125, 13, 1678, 9995, 8741, 29871, 29896, 29901, 2391, 599, 443, 12344, 287, 2351, 583, 29889, 9995, 13, 1678, 2351, 583, 353, 282, 2506, 29889, 5258, 29889, 2042, 877, 29924, 586, 583, 1495, 13, 1678, 363, 4863, 297, 2351, 583, 29889, 4478, 29898, 348, 12344, 287, 29922, 5574, 29892, 4236, 9902, 29922, 29896, 29900, 29892, 2656, 2433, 23959, 4178, 29901, 14273, 29374, 13, 4706, 1596, 877, 29871, 1273, 29879, 29915, 1273, 4863, 29889, 3257, 29897, 13, 13, 13, 29992, 9573, 580, 13, 1753, 2791, 29918, 497, 29918, 7932, 1975, 29918, 1022, 275, 2631, 29918, 12344, 287, 29898, 10709, 1125, 13, 1678, 9995, 8741, 29871, 29906, 29901, 4485, 599, 11169, 1975, 23238, 20654, 29889, 9995, 13, 1678, 282, 2506, 29889, 5258, 29889, 2042, 877, 8050, 1383, 1242, 2824, 657, 877, 27034, 1975, 2824, 3502, 24709, 287, 580, 13, 13, 13, 29992, 9573, 580, 13, 1753, 1051, 29918, 18045, 29918, 11303, 1237, 29898, 10709, 1125, 13, 1678, 9995, 8741, 29871, 29941, 29901, 2391, 13154, 6631, 304, 278, 1923, 29889, 9995, 13, 1678, 363, 3132, 297, 282, 2506, 29889, 11303, 1237, 7295, 13, 4706, 1596, 29898, 4645, 29889, 3257, 29897, 13, 13, 13, 29992, 9573, 580, 13, 1753, 1708, 29918, 485, 14873, 29918, 265, 29918, 4645, 29898, 10709, 1125, 13, 1678, 9995, 8741, 29871, 29946, 29901, 7412, 278, 7871, 7740, 14873, 373, 590, 18483, 29889, 13, 4706, 3940, 29901, 12477, 1818, 367, 373, 1021, 3564, 408, 1923, 29889, 13, 1678, 9995, 13, 1678, 1029, 14873, 353, 282, 2506, 29889, 5258, 29889, 2042, 877, 29924, 586, 583, 2824, 657, 877, 29909, 9046, 279, 1495, 13, 1678, 3132, 353, 282, 2506, 29889, 4645, 877, 29875, 6710, 29899, 2460, 446, 1495, 13, 1678, 3132, 29889, 1456, 10572, 29898, 485, 14873, 29897, 13, 13, 13, 29992, 9573, 580, 13, 1753, 1051, 29918, 11576, 630, 29918, 13529, 583, 29898, 10709, 1125, 13, 1678, 9995, 8741, 29871, 29945, 29901, 2391, 599, 17524, 2351, 583, 515, 278, 29871, 29929, 29900, 29879, 29889, 9995, 13, 1678, 2351, 583, 353, 282, 2506, 29889, 5258, 29889, 2042, 877, 29924, 586, 583, 1495, 13, 1678, 363, 4863, 297, 2351, 583, 29889, 4478, 29898, 1885, 276, 2433, 18962, 742, 316, 6332, 29922, 29896, 29929, 29929, 29900, 1125, 13, 4706, 1596, 877, 29871, 1273, 29879, 313, 29995, 29879, 16029, 1273, 313, 9641, 29889, 3257, 29892, 4863, 29889, 6360, 876, 13, 13, 13, 29992, 9573, 580, 13, 1753, 1101, 29918, 1552, 29918, 20411, 296, 29898, 10709, 1125, 13, 1678, 9995, 8741, 29871, 29953, 29901, 2391, 599, 2351, 583, 10624, 491, 278, 1021, 2022, 408, 16081, 465, 293, 4815, 29889, 9995, 13, 1678, 2351, 583, 353, 282, 2506, 29889, 5258, 29889, 2042, 877, 29924, 586, 583, 1495, 13, 1678, 11099, 465, 293, 29918, 6378, 353, 2351, 583, 29889, 657, 877, 29967, 332, 465, 293, 4815, 1495, 13, 1678, 363, 14064, 297, 2351, 583, 29889, 4478, 29898, 11851, 272, 29922, 29926, 332, 465, 293, 29918, 6378, 29889, 11851, 943, 1125, 13, 4706, 1596, 29898, 27362, 29889, 3257, 29897, 13, 13, 13, 29992, 9573, 580, 13, 1753, 1051, 29918, 5325, 29898, 10709, 1125, 13, 1678, 9995, 8741, 29871, 29955, 29901, 2391, 2066, 363, 278, 9281, 12720, 310, 11169, 1975, 29889, 9995, 13, 1678, 278, 4230, 650, 353, 282, 2506, 29889, 5258, 29889, 2042, 877, 8050, 1383, 1242, 2824, 657, 877, 27034, 1975, 2824, 1022, 275, 2631, 580, 14352, 29896, 29962, 13, 1678, 363, 760, 297, 278, 4230, 650, 29889, 1524, 29925, 5708, 7295, 13, 4706, 1596, 29898, 1595, 29889, 1445, 29897, 13, 13, 13, 29992, 9573, 580, 13, 1753, 679, 29918, 5461, 29918, 2271, 29898, 10709, 1125, 13, 1678, 9995, 8741, 29871, 29947, 29901, 3617, 263, 3988, 366, 508, 1722, 297, 478, 12182, 29892, 16379, 29963, 29892, 2992, 29889, 9995, 13, 1678, 11099, 465, 293, 29918, 6378, 353, 282, 2506, 29889, 5258, 29889, 2042, 877, 29924, 586, 583, 2824, 657, 877, 29967, 332, 465, 293, 4815, 1495, 13, 1678, 1596, 877, 15870, 2734, 278, 1494, 1899, 29901, 1495, 13, 1678, 1596, 877, 20901, 29883, 11860, 29879, 29908, 29915, 1273, 11099, 465, 293, 29918, 6378, 29889, 657, 3835, 4219, 29898, 9641, 12375, 918, 2433, 29947, 29900, 29900, 29916, 29953, 29900, 29900, 8785, 13, 268, 13, 13, 29992, 9573, 580, 13, 1753, 1556, 29918, 5461, 287, 29918, 23545, 793, 29898, 10709, 1125, 13, 1678, 9995, 8741, 29871, 29929, 29901, 2391, 278, 1556, 5318, 2351, 583, 29889, 9995, 13, 1678, 5972, 353, 2322, 8977, 29898, 524, 29897, 13, 1678, 363, 2944, 297, 282, 2506, 29889, 18434, 7295, 13, 4706, 565, 2944, 29889, 11116, 1275, 525, 27362, 2396, 13, 9651, 5972, 29961, 667, 29889, 3257, 29962, 4619, 29871, 29896, 13, 1678, 5972, 353, 12705, 29898, 7323, 1070, 29889, 7076, 3285, 1820, 29922, 2892, 921, 29901, 29916, 29961, 29896, 1402, 11837, 29922, 5574, 29897, 13, 1678, 363, 3611, 29892, 2302, 297, 5972, 7503, 29945, 5387, 13, 4706, 1596, 877, 29995, 29879, 313, 29995, 29879, 13582, 16029, 1273, 313, 3257, 29892, 2302, 876, 13, 308, 13, 13, 29992, 9573, 580, 13, 1753, 1556, 29918, 4925, 29918, 7193, 29898, 10709, 1125, 13, 1678, 9995, 8741, 29871, 29896, 29900, 29901, 2391, 278, 1556, 6136, 4160, 29889, 9995, 13, 1678, 4160, 353, 2322, 8977, 29898, 524, 29897, 13, 1678, 363, 2944, 297, 282, 2506, 29889, 18434, 7295, 13, 4706, 1596, 29898, 667, 29889, 11116, 29897, 13, 4706, 4160, 29961, 667, 29889, 6786, 29962, 4619, 29871, 29896, 13, 1678, 4160, 353, 12705, 29898, 7193, 29889, 7076, 3285, 1820, 29922, 2892, 921, 29901, 29916, 29961, 29896, 1402, 11837, 29922, 5574, 29897, 13, 1678, 363, 1404, 29892, 2302, 297, 4160, 7503, 29945, 5387, 13, 4706, 1596, 877, 29995, 29879, 313, 29995, 29879, 13582, 16029, 1273, 313, 1792, 29892, 2302, 876, 13, 268, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 396, 1670, 526, 2211, 5837, 304, 15585, 403, 29901, 13, 1678, 396, 259, 29896, 29889, 960, 278, 1923, 338, 2734, 373, 15683, 29892, 925, 1065, 1728, 738, 4817, 29889, 13, 1678, 396, 259, 29906, 29889, 6978, 297, 1192, 6786, 29892, 1192, 5630, 29892, 322, 1192, 10314, 29889, 13, 1678, 396, 259, 29941, 29889, 6978, 297, 1192, 3188, 2271, 29892, 1192, 6979, 13, 1678, 13812, 353, 1852, 5510, 29889, 15730, 11726, 29898, 8216, 2433, 6558, 349, 2506, 8787, 6455, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29884, 742, 525, 489, 6786, 742, 1371, 2433, 20249, 363, 596, 1619, 29925, 2506, 3633, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29886, 742, 525, 489, 5630, 742, 1371, 2433, 10048, 363, 596, 1619, 29925, 2506, 3633, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29878, 742, 525, 489, 10314, 742, 1371, 2433, 1170, 310, 278, 349, 2506, 6503, 313, 276, 339, 2658, 1404, 29914, 3364, 467, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29890, 742, 525, 489, 3188, 2271, 742, 1371, 2433, 5160, 2271, 4312, 363, 4817, 5993, 10760, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29873, 742, 525, 489, 6979, 742, 1371, 2433, 6444, 5993, 313, 2611, 1479, 310, 1404, 29914, 3364, 29897, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29939, 742, 525, 489, 4773, 742, 1371, 2433, 11730, 1065, 278, 6790, 1342, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 29899, 29894, 742, 525, 489, 369, 15828, 742, 2322, 29922, 8824, 29892, 3158, 2433, 8899, 29918, 3009, 742, 1371, 2433, 11816, 26952, 12183, 29889, 1495, 13, 1678, 6389, 353, 13812, 29889, 5510, 29918, 5085, 580, 13, 1678, 282, 2506, 29892, 3633, 353, 6699, 29918, 2974, 29898, 5085, 29897, 13, 1678, 363, 1342, 297, 4256, 29918, 21150, 29898, 5085, 29889, 4773, 1125, 13, 4706, 1342, 1839, 9891, 29915, 850, 10709, 29897, 13, 2 ]
Templates/Scripts/src/CGM2/CGM22_workflow.py
sremm/qualisys_CGM2_workflow
0
197132
<reponame>sremm/qualisys_CGM2_workflow # -*- coding: utf-8 -*- import matplotlib.pyplot as plt import logging import os import shutil import pyCGM2 from pyCGM2.Model.CGM2 import cgm from pyCGM2.Lib.CGM import cgm2_2 from pyCGM2.Utils import files from pyCGM2.Utils.utils import * from pyCGM2.qtm import qtmTools from pyCGM2 import enums from pyCGM2.Tools import btkTools from pyCGM2.Lib import eventDetector,analysis,plot from pyCGM2.Report import normativeDatasets from pyCGM2.Signal import signal_processing from pyCGM2.ForcePlates import forceplates import warnings warnings.simplefilter(action='ignore', category=FutureWarning) import argparse from pyCGM2.Inspect import inspectFilters, inspectProcedures from pyCGM2 import log; log.setLogger(level = logging.INFO) with open('pyCGM2.log', 'w'): pass MARKERSETS={"Lower limb tracking markers": cgm.CGM1.LOWERLIMB_TRACKING_MARKERS, "Thorax tracking markers": cgm.CGM1.THORAX_TRACKING_MARKERS, "Upper limb tracking markers": cgm.CGM1.UPPERLIMB_TRACKING_MARKERS, "Calibration markers": ["LKNM","RKNM","LMED","RMED","LKAX","LKD1","LKD2","RKAX","RKD1","RKD2"]} def main(): logging.info("------------------------------------------------") logging.info("------------QTM - pyCGM2 Workflow---------------") logging.info("------------------------------------------------") file="session.xml" sessionXML = files.readXml(os.getcwd()+"\\",file) sessionDate = files.getFileCreationDate(os.getcwd()+"\\"+file) #--------------------------------------------------------------------------- #management of the Processed folder DATA_PATH = os.getcwd()+"\\"+"processed\\" files.createDir(DATA_PATH) staticMeasurement = qtmTools.findStatic(sessionXML) calibrateFilenameLabelled = qtmTools.getFilename(staticMeasurement) if not os.path.isfile(DATA_PATH+calibrateFilenameLabelled): shutil.copyfile(os.getcwd()+"\\"+calibrateFilenameLabelled,DATA_PATH+calibrateFilenameLabelled) logging.info("qualisys exported c3d file [%s] copied to processed folder"%(calibrateFilenameLabelled)) dynamicMeasurements= qtmTools.findDynamic(sessionXML) for dynamicMeasurement in dynamicMeasurements: reconstructFilenameLabelled = qtmTools.getFilename(dynamicMeasurement) if not os.path.isfile(DATA_PATH+reconstructFilenameLabelled): shutil.copyfile(os.getcwd()+"\\"+reconstructFilenameLabelled,DATA_PATH+reconstructFilenameLabelled) logging.info("qualisys exported c3d file [%s] copied to processed folder"%(reconstructFilenameLabelled)) acq=btkTools.smartReader(str(DATA_PATH+reconstructFilenameLabelled)) if btkTools.checkForcePlateExist(acq): if "5" in btkTools.smartGetMetadata(acq,"FORCE_PLATFORM","TYPE"): forceplates.correctForcePlateType5(acq) acq,zeniState = eventDetector.zeni(acq) if zeniState: btkTools.smartWriter(acq, str(DATA_PATH + reconstructFilenameLabelled)) cmd = "Mokka.exe \"%s\""%(str(DATA_PATH + reconstructFilenameLabelled)) os.system(cmd) # --------------------------GLOBAL SETTINGS ------------------------------------ # global setting ( in user/AppData) if os.path.isfile(pyCGM2.PYCGM2_APPDATA_PATH + "CGM2_2-pyCGM2.settings"): settings = files.openFile(pyCGM2.PYCGM2_APPDATA_PATH,"CGM2_2-pyCGM2.settings") else: settings = files.openFile(pyCGM2.PYCGM2_SETTINGS_FOLDER,"CGM2_2-pyCGM2.settings") # --------------------------MP ------------------------------------ required_mp,optional_mp = qtmTools.SubjectMp(sessionXML) # --Check MP inspectprocedure = inspectProcedures.AnthropometricDataQualityProcedure(required_mp) inspector = inspectFilters.QualityFilter(inspectprocedure) inspector.run() # translators management translators = files.getTranslators(os.getcwd()+"\\","CGM2_2.translators") if not translators: translators = settings["Translators"] # ikweight ikWeight = files.getIKweightSet(DATA_PATH,"CGM2_2.ikw") if not ikWeight: ikWeight = settings["Fitting"]["Weight"] # --------------------------MODEL CALIBRATION ----------------------- logging.info("--------------------------MODEL CALIBRATION -----------------------") staticMeasurement = qtmTools.findStatic(sessionXML) calibrateFilenameLabelled = qtmTools.getFilename(staticMeasurement) logging.info("----- CALIBRATION- static file [%s]--"%(calibrateFilenameLabelled)) leftFlatFoot = toBool(staticMeasurement.Left_foot_normalised_to_static_trial.text) rightFlatFoot = toBool(staticMeasurement.Right_foot_normalised_to_static_trial.text) headFlat = toBool(staticMeasurement.Head_normalised_to_static_trial.text) markerDiameter = float(staticMeasurement.Marker_diameter.text)*1000.0 hjcMethod = settings["Calibration"]["HJC"] pointSuffix = None # Calibration checking # -------------------- acqStatic = btkTools.smartReader(DATA_PATH+calibrateFilenameLabelled) for key in MARKERSETS.keys(): logging.info("[pyCGM2] Checking of the %s"%(key)) # presence ip_presence = inspectProcedures.MarkerPresenceQualityProcedure(acqStatic, markers = MARKERSETS[key]) inspector = inspectFilters.QualityFilter(ip_presence) inspector.run() if ip_presence.markersIn !=[]: ip_gap = inspectProcedures.GapQualityProcedure(acqStatic, markers = ip_presence.markersIn) inspector = inspectFilters.QualityFilter(ip_gap) inspector.run() ip_swap = inspectProcedures.SwappingMarkerQualityProcedure(acqStatic, markers = ip_presence.markersIn) inspector = inspectFilters.QualityFilter(ip_swap) inspector.run() ip_pos = inspectProcedures.MarkerPositionQualityProcedure(acqStatic, markers = ip_presence.markersIn) inspector = inspectFilters.QualityFilter(ip_pos) # Calibration operation # -------------------- logging.info("[pyCGM2] --- calibration operation ---") model,acqStatic = cgm2_2.calibrate(DATA_PATH, calibrateFilenameLabelled, translators,settings, required_mp,optional_mp, False, leftFlatFoot,rightFlatFoot,headFlat,markerDiameter, hjcMethod, pointSuffix) logging.info("----- CALIBRATION- static file [%s]-----> DONE"%(calibrateFilenameLabelled)) # --------------------------MODEL FITTING ---------------------------------- logging.info("--------------------------MODEL FITTING ----------------------------------") dynamicMeasurements= qtmTools.findDynamic(sessionXML) modelledC3ds = list() eventInspectorStates = list() for dynamicMeasurement in dynamicMeasurements: reconstructFilenameLabelled = qtmTools.getFilename(dynamicMeasurement) logging.info("----Processing of [%s]-----"%(reconstructFilenameLabelled)) mfpa = qtmTools.getForcePlateAssigment(dynamicMeasurement) momentProjection_text = dynamicMeasurement.Moment_Projection.text if momentProjection_text == "Default": momentProjection_text = settings["Fitting"]["Moment Projection"] if momentProjection_text == "Distal": momentProjection = enums.MomentProjection.Distal elif momentProjection_text == "Proximal": momentProjection = enums.MomentProjection.Proximal elif momentProjection_text == "Global": momentProjection = enums.MomentProjection.Global elif momentProjection_text == "JCS": momentProjection = enums.MomentProjection.JCS acq = btkTools.smartReader(DATA_PATH+reconstructFilenameLabelled) # Fitting checking # -------------------- for key in MARKERSETS.keys(): if key != "Calibration markers": logging.info("[pyCGM2] Checking of the %s"%(key)) # presence ip_presence = inspectProcedures.MarkerPresenceQualityProcedure(acq, markers = MARKERSETS[key]) inspector = inspectFilters.QualityFilter(ip_presence) inspector.run() if ip_presence.markersIn !=[]: ip_gap = inspectProcedures.GapQualityProcedure(acq, markers = ip_presence.markersIn) inspector = inspectFilters.QualityFilter(ip_gap) inspector.run() ip_swap = inspectProcedures.SwappingMarkerQualityProcedure(acq, markers = ip_presence.markersIn) inspector = inspectFilters.QualityFilter(ip_swap) inspector.run() ip_pos = inspectProcedures.MarkerPositionQualityProcedure(acq, markers = ip_presence.markersIn) inspector = inspectFilters.QualityFilter(ip_pos) # filtering # ----------------------- # marker order = int(float(dynamicMeasurement.Marker_lowpass_filter_order.text)) fc = float(dynamicMeasurement.Marker_lowpass_filter_frequency.text) signal_processing.markerFiltering(acq,order=order, fc =fc) # management of force plate type 5 and force plate filtering order = int(float(dynamicMeasurement.Forceplate_lowpass_filter_order.text)) fc = float(dynamicMeasurement.Forceplate_lowpass_filter_frequency.text) if order!=0 and fc!=0: acq = btkTools.smartReader(DATA_PATH+reconstructFilenameLabelled) if btkTools.checkForcePlateExist(acq): if "5" in btkTools.smartGetMetadata(acq,"FORCE_PLATFORM","TYPE"): forceplates.correctForcePlateType5(acq) signal_processing.markerFiltering(acq,order=order, fc =fc) else: if btkTools.checkForcePlateExist(acq): if "5" in btkTools.smartGetMetadata(acq,"FORCE_PLATFORM","TYPE"): forceplates.correctForcePlateType5(acq) btkTools.smartWriter(acq,DATA_PATH+reconstructFilenameLabelled) # event checking # ----------------------- inspectprocedureEvents = inspectProcedures.GaitEventQualityProcedure(acq) inspector = inspectFilters.QualityFilter(inspectprocedureEvents) inspector.run() eventInspectorStates.append(inspectprocedureEvents.state) # fitting operation # ----------------------- logging.info("[pyCGM2] --- Fitting operation ---") acqGait = cgm2_2.fitting(model,DATA_PATH, reconstructFilenameLabelled, translators,settings, markerDiameter, pointSuffix, mfpa,momentProjection) outFilename = reconstructFilenameLabelled#[:-4] + "_CGM1.c3d" btkTools.smartWriter(acqGait, str(DATA_PATH + outFilename)) modelledC3ds.append(outFilename) logging.info("----Processing of [%s]-----> DONE"%(reconstructFilenameLabelled)) # --------------------------GAIT PROCESSING ----------------------- if not all(eventInspectorStates): raise Exception ("[pyCGM2] Impossible to run Gait processing. Badly gait event detection. check the log file") logging.info("---------------------GAIT PROCESSING -----------------------") nds = normativeDatasets.Schwartz2008("Free") types = qtmTools.detectMeasurementType(sessionXML) for type in types: modelledTrials = list() for dynamicMeasurement in dynamicMeasurements: if qtmTools.isType(dynamicMeasurement,type): filename = qtmTools.getFilename(dynamicMeasurement) modelledTrials.append(filename)#.replace(".c3d","_CGM1.c3d")) subjectMd = {"patientName": sessionXML.find("Last_name").text +" "+ sessionXML.find("First_name").text, "bodyHeight": sessionXML.find("Height").text, "bodyWeight": sessionXML.find("Weight").text , "diagnosis": sessionXML.find("Diagnosis").text, "dob": sessionXML.find("Date_of_birth").text, "sex": sessionXML.find("Sex").text, "test condition": type, "gmfcs": sessionXML.find("Gross_Motor_Function_Classification").text, "fms": sessionXML.find("Functional_Mobility_Scale").text} analysisInstance = analysis.makeAnalysis( DATA_PATH,modelledTrials, subjectInfo=None, experimentalInfo=None, modelInfo=None, pointLabelSuffix=None) title = type # spatiotemporal plot.plot_spatioTemporal(DATA_PATH,analysisInstance, exportPdf=True, outputName=title, show=None, title=title) #Kinematics if model.m_bodypart in [enums.BodyPart.LowerLimb,enums.BodyPart.LowerLimbTrunk, enums.BodyPart.FullBody]: plot.plot_DescriptiveKinematic(DATA_PATH,analysisInstance,"LowerLimb", nds, exportPdf=True, outputName=title, pointLabelSuffix=pointSuffix, show=False, title=title) plot.plot_ConsistencyKinematic(DATA_PATH,analysisInstance,"LowerLimb", nds, exportPdf=True, outputName=title, pointLabelSuffix=pointSuffix, show=False, title=title) if model.m_bodypart in [enums.BodyPart.LowerLimbTrunk, enums.BodyPart.FullBody]: plot.plot_DescriptiveKinematic(DATA_PATH,analysisInstance,"Trunk", nds, exportPdf=True, outputName=title, pointLabelSuffix=pointSuffix, show=False, title=title) plot.plot_ConsistencyKinematic(DATA_PATH,analysisInstance,"Trunk", nds, exportPdf=True, outputName=title, pointLabelSuffix=pointSuffix, show=False, title=title) if model.m_bodypart in [enums.BodyPart.UpperLimb, enums.BodyPart.FullBody]: pass # TODO plot upperlimb panel #Kinetics if model.m_bodypart in [enums.BodyPart.LowerLimb,enums.BodyPart.LowerLimbTrunk, enums.BodyPart.FullBody]: plot.plot_DescriptiveKinetic(DATA_PATH,analysisInstance,"LowerLimb", nds, exportPdf=True, outputName=title, pointLabelSuffix=pointSuffix, show=False, title=title) plot.plot_ConsistencyKinetic(DATA_PATH,analysisInstance,"LowerLimb", nds, exportPdf=True, outputName=title, pointLabelSuffix=pointSuffix, show=False, title=title) #MAP plot.plot_MAP(DATA_PATH,analysisInstance, nds, exportPdf=True, outputName=title,pointLabelSuffix=pointSuffix, show=False, title=title) plt.show(False) logging.info("----- Gait Processing -----> DONE") if __name__ == "__main__": parser = argparse.ArgumentParser(description='CGM21 workflow') # parser.add_argument('--noGaitEventDetection', action='store_true', help='no gait event detection') # parser.add_argument('--noGaitProcessing', action='store_true', help='no gait processing') args = parser.parse_args() main()
[ 1, 529, 276, 1112, 420, 29958, 29879, 1745, 29885, 29914, 339, 5711, 952, 29918, 11135, 29924, 29906, 29918, 1287, 1731, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 30004, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 30004, 13, 5215, 12183, 30004, 13, 5215, 2897, 30004, 13, 5215, 528, 4422, 30004, 13, 30004, 13, 5215, 11451, 11135, 29924, 29906, 30004, 13, 3166, 11451, 11135, 29924, 29906, 29889, 3195, 29889, 11135, 29924, 29906, 1053, 274, 29887, 29885, 30004, 13, 3166, 11451, 11135, 29924, 29906, 29889, 14868, 29889, 11135, 29924, 1053, 29871, 274, 29887, 29885, 29906, 29918, 29906, 30004, 13, 3166, 11451, 11135, 29924, 29906, 29889, 12177, 1053, 2066, 30004, 13, 3166, 11451, 11135, 29924, 29906, 29889, 12177, 29889, 13239, 1053, 334, 30004, 13, 3166, 11451, 11135, 29924, 29906, 29889, 17915, 29885, 1053, 3855, 18276, 24183, 30004, 13, 3166, 11451, 11135, 29924, 29906, 1053, 427, 6762, 30004, 13, 3166, 11451, 11135, 29924, 29906, 29889, 24183, 1053, 289, 11178, 24183, 30004, 13, 3166, 29871, 11451, 11135, 29924, 29906, 29889, 14868, 1053, 1741, 6362, 3019, 29892, 15916, 29892, 5317, 30004, 13, 3166, 11451, 11135, 29924, 29906, 29889, 13020, 1053, 6056, 1230, 16390, 294, 1691, 30004, 13, 3166, 11451, 11135, 29924, 29906, 29889, 10140, 284, 1053, 7182, 29918, 19170, 30004, 13, 3166, 11451, 11135, 29924, 29906, 29889, 2831, 346, 3247, 1078, 1053, 4889, 9884, 30004, 13, 5215, 18116, 30004, 13, 25442, 886, 29889, 12857, 4572, 29898, 2467, 2433, 17281, 742, 7663, 29922, 20154, 22709, 8443, 13, 5215, 1852, 5510, 30004, 13, 30004, 13, 3166, 11451, 11135, 29924, 29906, 29889, 797, 21494, 1053, 16096, 3434, 2153, 29892, 16096, 1184, 1133, 1973, 30004, 13, 30004, 13, 3166, 11451, 11135, 29924, 29906, 1053, 1480, 2104, 13, 1188, 29889, 842, 16363, 29898, 5563, 353, 12183, 29889, 11690, 8443, 13, 2541, 1722, 877, 2272, 11135, 29924, 29906, 29889, 1188, 742, 525, 29893, 29374, 259, 1209, 30004, 13, 30004, 13, 30004, 13, 30004, 13, 30004, 13, 1529, 29934, 29968, 1001, 1660, 9375, 3790, 29908, 19357, 2485, 29890, 23110, 29320, 1115, 274, 29887, 29885, 29889, 11135, 29924, 29896, 29889, 27998, 1001, 5265, 9486, 29918, 5659, 11375, 4214, 29918, 1529, 29934, 29968, 23598, 11167, 13, 9651, 376, 1349, 272, 1165, 23110, 29320, 1115, 274, 29887, 29885, 29889, 11135, 29924, 29896, 29889, 4690, 1955, 6604, 29918, 5659, 11375, 4214, 29918, 1529, 29934, 29968, 23598, 11167, 13, 9651, 376, 26214, 2485, 29890, 23110, 29320, 1115, 274, 29887, 29885, 29889, 11135, 29924, 29896, 29889, 4897, 13171, 5265, 9486, 29918, 5659, 11375, 4214, 29918, 1529, 29934, 29968, 23598, 11167, 13, 9651, 376, 7856, 26218, 29320, 1115, 6796, 29931, 29968, 29940, 29924, 3284, 29934, 29968, 29940, 29924, 3284, 29931, 2303, 29928, 3284, 29934, 2303, 29928, 3284, 29931, 29968, 6604, 3284, 29931, 29968, 29928, 29896, 3284, 29931, 29968, 29928, 29906, 3284, 29934, 29968, 6604, 3284, 29934, 29968, 29928, 29896, 3284, 29934, 29968, 29928, 29906, 3108, 8117, 13, 30004, 13, 30004, 13, 1753, 1667, 7295, 30004, 13, 30004, 13, 1678, 12183, 29889, 3888, 703, 2683, 2683, 2683, 1159, 30004, 13, 1678, 12183, 29889, 3888, 703, 9072, 29984, 23081, 448, 11451, 11135, 29924, 29906, 5244, 1731, 9072, 5634, 1159, 30004, 13, 1678, 12183, 29889, 3888, 703, 2683, 2683, 2683, 1159, 30004, 13, 1678, 934, 543, 7924, 29889, 3134, 19451, 13, 1678, 4867, 9165, 353, 2066, 29889, 949, 11089, 29898, 359, 29889, 657, 29883, 9970, 580, 13578, 1966, 613, 1445, 8443, 13, 1678, 4867, 2539, 353, 2066, 29889, 657, 2283, 9832, 362, 2539, 29898, 359, 29889, 657, 29883, 9970, 580, 13578, 1966, 17969, 1445, 8443, 13, 30004, 13, 30004, 13, 1678, 396, 2683, 2683, 2683, 2683, 1378, 5634, 30004, 13, 1678, 396, 21895, 310, 278, 10554, 287, 4138, 30004, 13, 1678, 360, 8254, 29918, 10145, 353, 2897, 29889, 657, 29883, 9970, 580, 13578, 1966, 29908, 13578, 5014, 287, 1966, 19451, 13, 1678, 2066, 29889, 3258, 9170, 29898, 14573, 29918, 10145, 8443, 13, 30004, 13, 1678, 2294, 6816, 3745, 358, 353, 3855, 18276, 24183, 29889, 2886, 17046, 29898, 7924, 9165, 8443, 13, 1678, 1208, 4626, 403, 3434, 3871, 4775, 839, 353, 3855, 18276, 24183, 29889, 657, 3434, 3871, 29898, 7959, 6816, 3745, 358, 8443, 13, 1678, 565, 451, 2897, 29889, 2084, 29889, 275, 1445, 29898, 14573, 29918, 10145, 29974, 1052, 4626, 403, 3434, 3871, 4775, 839, 1125, 30004, 13, 4706, 528, 4422, 29889, 8552, 1445, 29898, 359, 29889, 657, 29883, 9970, 580, 13578, 1966, 17969, 1052, 4626, 403, 3434, 3871, 4775, 839, 29892, 14573, 29918, 10145, 29974, 1052, 4626, 403, 3434, 3871, 4775, 839, 8443, 13, 4706, 12183, 29889, 3888, 703, 339, 5711, 952, 5609, 287, 274, 29941, 29881, 934, 518, 29995, 29879, 29962, 13746, 304, 19356, 4138, 29908, 29995, 29898, 1052, 4626, 403, 3434, 3871, 4775, 839, 876, 30004, 13, 30004, 13, 1678, 7343, 6816, 3745, 1860, 29922, 3855, 18276, 24183, 29889, 2886, 24001, 29898, 7924, 9165, 8443, 13, 1678, 363, 7343, 6816, 3745, 358, 297, 7343, 6816, 3745, 1860, 29901, 30004, 13, 4706, 337, 11433, 3434, 3871, 4775, 839, 353, 3855, 18276, 24183, 29889, 657, 3434, 3871, 29898, 16626, 6816, 3745, 358, 8443, 13, 4706, 565, 451, 2897, 29889, 2084, 29889, 275, 1445, 29898, 14573, 29918, 10145, 29974, 276, 11433, 3434, 3871, 4775, 839, 1125, 30004, 13, 9651, 528, 4422, 29889, 8552, 1445, 29898, 359, 29889, 657, 29883, 9970, 580, 13578, 1966, 17969, 276, 11433, 3434, 3871, 4775, 839, 29892, 14573, 29918, 10145, 29974, 276, 11433, 3434, 3871, 4775, 839, 8443, 13, 9651, 12183, 29889, 3888, 703, 339, 5711, 952, 5609, 287, 274, 29941, 29881, 934, 518, 29995, 29879, 29962, 13746, 304, 19356, 4138, 29908, 29995, 29898, 276, 11433, 3434, 3871, 4775, 839, 876, 30004, 13, 30004, 13, 9651, 1274, 29939, 29922, 3116, 29895, 24183, 29889, 3844, 442, 6982, 29898, 710, 29898, 14573, 29918, 10145, 29974, 276, 11433, 3434, 3871, 4775, 839, 876, 30004, 13, 30004, 13, 9651, 565, 289, 11178, 24183, 29889, 3198, 2831, 346, 3247, 403, 1252, 391, 29898, 562, 29939, 1125, 30004, 13, 18884, 565, 376, 29945, 29908, 297, 289, 11178, 24183, 29889, 3844, 442, 2577, 18417, 29898, 562, 29939, 1699, 22051, 4741, 29918, 7390, 1299, 19094, 3284, 11116, 29908, 1125, 30004, 13, 462, 1678, 4889, 9884, 29889, 15728, 2831, 346, 3247, 403, 1542, 29945, 29898, 562, 29939, 8443, 13, 30004, 13, 9651, 1274, 29939, 29892, 2256, 29875, 2792, 353, 1741, 6362, 3019, 29889, 2256, 29875, 29898, 562, 29939, 8443, 13, 30004, 13, 9651, 565, 503, 11344, 2792, 29901, 30004, 13, 18884, 289, 11178, 24183, 29889, 3844, 442, 10507, 29898, 562, 29939, 29892, 851, 29898, 14573, 29918, 10145, 718, 337, 11433, 3434, 3871, 4775, 839, 876, 30004, 13, 30004, 13, 18884, 9920, 353, 376, 29924, 554, 1335, 29889, 8097, 13218, 29995, 29879, 5931, 29908, 29995, 29898, 710, 29898, 14573, 29918, 10145, 718, 337, 11433, 3434, 3871, 4775, 839, 876, 30004, 13, 18884, 2897, 29889, 5205, 29898, 9006, 8443, 13, 30004, 13, 1678, 396, 448, 2683, 1378, 29899, 29954, 28902, 1964, 11368, 29911, 4214, 29903, 448, 2683, 2683, 5634, 30004, 13, 1678, 396, 5534, 4444, 313, 297, 1404, 29914, 27674, 8443, 13, 30004, 13, 1678, 565, 2897, 29889, 2084, 29889, 275, 1445, 29898, 2272, 11135, 29924, 29906, 29889, 20055, 11135, 29924, 29906, 29918, 20576, 14573, 29918, 10145, 718, 376, 11135, 29924, 29906, 29918, 29906, 29899, 2272, 11135, 29924, 29906, 29889, 11027, 29908, 1125, 30004, 13, 4706, 6055, 353, 2066, 29889, 3150, 2283, 29898, 2272, 11135, 29924, 29906, 29889, 20055, 11135, 29924, 29906, 29918, 20576, 14573, 29918, 10145, 1699, 11135, 29924, 29906, 29918, 29906, 29899, 2272, 11135, 29924, 29906, 29889, 11027, 1159, 30004, 13, 1678, 1683, 29901, 30004, 13, 4706, 6055, 353, 2066, 29889, 3150, 2283, 29898, 2272, 11135, 29924, 29906, 29889, 20055, 11135, 29924, 29906, 29918, 10490, 29911, 4214, 29903, 29918, 29943, 5607, 8032, 1699, 11135, 29924, 29906, 29918, 29906, 29899, 2272, 11135, 29924, 29906, 29889, 11027, 1159, 30004, 13, 1678, 396, 448, 2683, 1378, 29899, 3580, 448, 2683, 2683, 5634, 30004, 13, 1678, 3734, 29918, 1526, 29892, 25253, 29918, 1526, 353, 3855, 18276, 24183, 29889, 20622, 29924, 29886, 29898, 7924, 9165, 8443, 13, 30004, 13, 1678, 396, 1192, 5596, 16379, 30004, 13, 1678, 16096, 771, 26600, 353, 16096, 1184, 1133, 1973, 29889, 2744, 386, 1336, 14066, 1469, 24399, 537, 1184, 26600, 29898, 12403, 29918, 1526, 8443, 13, 1678, 16096, 272, 353, 16096, 3434, 2153, 29889, 24399, 537, 5072, 29898, 1144, 1103, 771, 26600, 8443, 13, 1678, 16096, 272, 29889, 3389, 26471, 13, 30004, 13, 30004, 13, 1678, 396, 29871, 5578, 4097, 10643, 30004, 13, 1678, 5578, 4097, 353, 2066, 29889, 657, 4300, 29880, 4097, 29898, 359, 29889, 657, 29883, 9970, 580, 13578, 1966, 3284, 11135, 29924, 29906, 29918, 29906, 29889, 3286, 29880, 4097, 1159, 30004, 13, 1678, 565, 451, 5578, 4097, 29901, 29871, 5578, 4097, 353, 6055, 3366, 4300, 29880, 4097, 3108, 30004, 13, 30004, 13, 1678, 396, 29871, 12380, 7915, 30004, 13, 1678, 12380, 22676, 353, 2066, 29889, 657, 23328, 7915, 2697, 29898, 14573, 29918, 10145, 1699, 11135, 29924, 29906, 29918, 29906, 29889, 638, 29893, 1159, 30004, 13, 1678, 565, 451, 12380, 22676, 29901, 29871, 12380, 22676, 353, 6055, 3366, 29943, 5367, 3108, 3366, 22676, 3108, 30004, 13, 30004, 13, 30004, 13, 1678, 396, 448, 2683, 1378, 29899, 20387, 29931, 315, 1964, 8979, 29934, 8098, 448, 2683, 22158, 30004, 13, 1678, 12183, 29889, 3888, 703, 2683, 28400, 20387, 29931, 315, 1964, 8979, 29934, 8098, 448, 2683, 22158, 1159, 30004, 13, 1678, 2294, 6816, 3745, 358, 353, 3855, 18276, 24183, 29889, 2886, 17046, 29898, 7924, 9165, 8443, 13, 1678, 1208, 4626, 403, 3434, 3871, 4775, 839, 353, 3855, 18276, 24183, 29889, 657, 3434, 3871, 29898, 7959, 6816, 3745, 358, 8443, 13, 30004, 13, 1678, 12183, 29889, 3888, 703, 23648, 315, 1964, 8979, 29934, 8098, 29899, 29871, 2294, 934, 518, 29995, 29879, 29962, 13869, 29995, 29898, 1052, 4626, 403, 3434, 3871, 4775, 839, 876, 30004, 13, 30004, 13, 1678, 2175, 29943, 5066, 13440, 353, 304, 24693, 29898, 7959, 6816, 3745, 358, 29889, 8091, 29918, 6661, 29918, 8945, 3368, 29918, 517, 29918, 7959, 29918, 3626, 284, 29889, 726, 8443, 13, 1678, 1492, 29943, 5066, 13440, 353, 304, 24693, 29898, 7959, 6816, 3745, 358, 29889, 7341, 29918, 6661, 29918, 8945, 3368, 29918, 517, 29918, 7959, 29918, 3626, 284, 29889, 726, 8443, 13, 1678, 2343, 29943, 5066, 353, 304, 24693, 29898, 7959, 6816, 3745, 358, 29889, 5494, 29918, 8945, 3368, 29918, 517, 29918, 7959, 29918, 3626, 284, 29889, 726, 8443, 13, 30004, 13, 1678, 17456, 29928, 2829, 1308, 353, 5785, 29898, 7959, 6816, 3745, 358, 29889, 24619, 29918, 29881, 2829, 1308, 29889, 726, 11877, 29896, 29900, 29900, 29900, 29889, 29900, 30004, 13, 1678, 298, 29926, 29883, 4062, 353, 6055, 3366, 7856, 26218, 3108, 3366, 29950, 29967, 29907, 3108, 30004, 13, 1678, 1298, 29903, 3096, 861, 353, 6213, 30004, 13, 30004, 13, 1678, 396, 3037, 26218, 8454, 30004, 13, 1678, 396, 448, 2683, 5634, 30004, 13, 1678, 1274, 29939, 17046, 353, 289, 11178, 24183, 29889, 3844, 442, 6982, 29898, 14573, 29918, 10145, 29974, 1052, 4626, 403, 3434, 3871, 4775, 839, 8443, 13, 1678, 363, 1820, 297, 23851, 29968, 1001, 1660, 9375, 29889, 8149, 7295, 30004, 13, 4706, 12183, 29889, 3888, 703, 29961, 2272, 11135, 29924, 29906, 29962, 5399, 292, 310, 278, 1273, 29879, 29908, 29995, 29898, 1989, 876, 30004, 13, 30004, 13, 4706, 396, 10122, 30004, 13, 4706, 10377, 29918, 4569, 663, 353, 16096, 1184, 1133, 1973, 29889, 24619, 13504, 663, 24399, 537, 1184, 26600, 29898, 562, 29939, 17046, 11167, 13, 462, 462, 4706, 29320, 353, 23851, 29968, 1001, 1660, 9375, 29961, 1989, 2314, 30004, 13, 4706, 16096, 272, 353, 16096, 3434, 2153, 29889, 24399, 537, 5072, 29898, 666, 29918, 4569, 663, 8443, 13, 4706, 16096, 272, 29889, 3389, 26471, 13, 30004, 13, 4706, 565, 10377, 29918, 4569, 663, 29889, 3502, 414, 797, 2804, 2636, 29901, 30004, 13, 30004, 13, 9651, 10377, 29918, 29887, 481, 353, 16096, 1184, 1133, 1973, 29889, 29954, 481, 24399, 537, 1184, 26600, 29898, 562, 29939, 17046, 11167, 13, 462, 462, 308, 29320, 353, 10377, 29918, 4569, 663, 29889, 3502, 414, 797, 8443, 13, 9651, 16096, 272, 353, 16096, 3434, 2153, 29889, 24399, 537, 5072, 29898, 666, 29918, 29887, 481, 8443, 13, 9651, 16096, 272, 29889, 3389, 26471, 13, 30004, 13, 9651, 10377, 29918, 26276, 353, 16096, 1184, 1133, 1973, 29889, 10840, 20304, 24619, 24399, 537, 1184, 26600, 29898, 562, 29939, 17046, 11167, 13, 462, 462, 18884, 29320, 353, 10377, 29918, 4569, 663, 29889, 3502, 414, 797, 8443, 13, 9651, 16096, 272, 353, 16096, 3434, 2153, 29889, 24399, 537, 5072, 29898, 666, 29918, 26276, 8443, 13, 9651, 16096, 272, 29889, 3389, 26471, 13, 30004, 13, 9651, 10377, 29918, 1066, 353, 16096, 1184, 1133, 1973, 29889, 24619, 8003, 24399, 537, 1184, 26600, 29898, 562, 29939, 17046, 11167, 13, 462, 462, 308, 29320, 353, 10377, 29918, 4569, 663, 29889, 3502, 414, 797, 8443, 13, 9651, 16096, 272, 353, 16096, 3434, 2153, 29889, 24399, 537, 5072, 29898, 666, 29918, 1066, 8443, 13, 30004, 13, 1678, 396, 3037, 26218, 5858, 30004, 13, 1678, 396, 448, 2683, 5634, 30004, 13, 1678, 12183, 29889, 3888, 703, 29961, 2272, 11135, 29924, 29906, 29962, 11474, 1208, 26218, 5858, 11474, 1159, 30004, 13, 1678, 1904, 29892, 562, 29939, 17046, 353, 274, 29887, 29885, 29906, 29918, 29906, 29889, 1052, 4626, 403, 29898, 14573, 29918, 10145, 11167, 13, 4706, 1208, 4626, 403, 3434, 3871, 4775, 839, 11167, 13, 4706, 5578, 4097, 29892, 11027, 11167, 13, 4706, 3734, 29918, 1526, 29892, 25253, 29918, 1526, 11167, 13, 4706, 7700, 11167, 13, 4706, 2175, 29943, 5066, 13440, 29892, 1266, 29943, 5066, 13440, 29892, 2813, 29943, 5066, 29892, 22976, 29928, 2829, 1308, 11167, 13, 4706, 298, 29926, 29883, 4062, 11167, 13, 4706, 1298, 29903, 3096, 861, 8443, 13, 30004, 13, 30004, 13, 1678, 12183, 29889, 3888, 703, 23648, 315, 1964, 8979, 29934, 8098, 29899, 29871, 2294, 934, 518, 29995, 29879, 29962, 807, 976, 360, 12413, 29908, 29995, 29898, 1052, 4626, 403, 3434, 3871, 4775, 839, 876, 30004, 13, 30004, 13, 1678, 396, 448, 2683, 1378, 29899, 20387, 29931, 383, 1806, 29911, 4214, 448, 2683, 2683, 29899, 30004, 13, 1678, 12183, 29889, 3888, 703, 2683, 28400, 20387, 29931, 383, 1806, 29911, 4214, 448, 2683, 2683, 29899, 1159, 30004, 13, 1678, 7343, 6816, 3745, 1860, 29922, 3855, 18276, 24183, 29889, 2886, 24001, 29898, 7924, 9165, 8443, 13, 30004, 13, 1678, 1904, 839, 29907, 29941, 6289, 353, 1051, 26471, 13, 1678, 1741, 797, 21494, 272, 855, 1078, 353, 1051, 26471, 13, 1678, 363, 7343, 6816, 3745, 358, 297, 7343, 6816, 3745, 1860, 29901, 30004, 13, 30004, 13, 4706, 337, 11433, 3434, 3871, 4775, 839, 353, 3855, 18276, 24183, 29889, 657, 3434, 3871, 29898, 16626, 6816, 3745, 358, 8443, 13, 30004, 13, 4706, 12183, 29889, 3888, 703, 807, 7032, 292, 310, 518, 29995, 29879, 29962, 23648, 29908, 29995, 29898, 276, 11433, 3434, 3871, 4775, 839, 876, 30004, 13, 4706, 286, 29888, 3274, 353, 3855, 18276, 24183, 29889, 657, 2831, 346, 3247, 403, 7900, 335, 358, 29898, 16626, 6816, 3745, 358, 8443, 13, 4706, 3256, 1184, 6929, 29918, 726, 353, 7343, 6816, 3745, 358, 29889, 29924, 2932, 29918, 1184, 6929, 29889, 726, 30004, 13, 4706, 565, 3256, 1184, 6929, 29918, 726, 1275, 376, 4592, 1115, 30004, 13, 9651, 3256, 1184, 6929, 29918, 726, 353, 6055, 3366, 29943, 5367, 3108, 3366, 29924, 2932, 1019, 6929, 3108, 30004, 13, 4706, 565, 3256, 1184, 6929, 29918, 726, 1275, 376, 13398, 284, 1115, 30004, 13, 9651, 3256, 1184, 6929, 353, 427, 6762, 29889, 29924, 2932, 1184, 6929, 29889, 13398, 284, 30004, 13, 4706, 25342, 3256, 1184, 6929, 29918, 726, 1275, 376, 1184, 2657, 284, 1115, 30004, 13, 9651, 3256, 1184, 6929, 353, 259, 427, 6762, 29889, 29924, 2932, 1184, 6929, 29889, 1184, 2657, 284, 30004, 13, 4706, 25342, 3256, 1184, 6929, 29918, 726, 1275, 376, 12756, 1115, 30004, 13, 9651, 3256, 1184, 6929, 353, 259, 427, 6762, 29889, 29924, 2932, 1184, 6929, 29889, 12756, 30004, 13, 4706, 25342, 3256, 1184, 6929, 29918, 726, 1275, 376, 29967, 9295, 1115, 30004, 13, 9651, 3256, 1184, 6929, 353, 29871, 427, 6762, 29889, 29924, 2932, 1184, 6929, 29889, 29967, 9295, 30004, 13, 30004, 13, 30004, 13, 30004, 13, 4706, 1274, 29939, 353, 289, 11178, 24183, 29889, 3844, 442, 6982, 29898, 14573, 29918, 10145, 29974, 276, 11433, 3434, 3871, 4775, 839, 8443, 13, 30004, 13, 4706, 396, 383, 5367, 8454, 30004, 13, 4706, 396, 448, 2683, 5634, 30004, 13, 4706, 363, 1820, 297, 23851, 29968, 1001, 1660, 9375, 29889, 8149, 7295, 30004, 13, 9651, 565, 1820, 2804, 376, 7856, 26218, 29320, 1115, 30004, 13, 30004, 13, 18884, 12183, 29889, 3888, 703, 29961, 2272, 11135, 29924, 29906, 29962, 5399, 292, 310, 278, 1273, 29879, 29908, 29995, 29898, 1989, 876, 30004, 13, 18884, 396, 10122, 30004, 13, 18884, 10377, 29918, 4569, 663, 353, 16096, 1184, 1133, 1973, 29889, 24619, 13504, 663, 24399, 537, 1184, 26600, 29898, 562, 29939, 11167, 13, 462, 462, 18884, 29320, 353, 23851, 29968, 1001, 1660, 9375, 29961, 1989, 2314, 30004, 13, 18884, 16096, 272, 353, 16096, 3434, 2153, 29889, 24399, 537, 5072, 29898, 666, 29918, 4569, 663, 8443, 13, 18884, 16096, 272, 29889, 3389, 26471, 13, 30004, 13, 18884, 565, 10377, 29918, 4569, 663, 29889, 3502, 414, 797, 2804, 2636, 29901, 30004, 13, 30004, 13, 462, 1678, 10377, 29918, 29887, 481, 353, 16096, 1184, 1133, 1973, 29889, 29954, 481, 24399, 537, 1184, 26600, 29898, 562, 29939, 11167, 13, 462, 462, 462, 29320, 353, 10377, 29918, 4569, 663, 29889, 3502, 414, 797, 8443, 13, 462, 1678, 16096, 272, 353, 16096, 3434, 2153, 29889, 24399, 537, 5072, 29898, 666, 29918, 29887, 481, 8443, 13, 462, 1678, 16096, 272, 29889, 3389, 26471, 13, 30004, 13, 462, 1678, 10377, 29918, 26276, 353, 16096, 1184, 1133, 1973, 29889, 10840, 20304, 24619, 24399, 537, 1184, 26600, 29898, 562, 29939, 11167, 13, 462, 462, 462, 4706, 29320, 353, 10377, 29918, 4569, 663, 29889, 3502, 414, 797, 8443, 13, 462, 1678, 16096, 272, 353, 16096, 3434, 2153, 29889, 24399, 537, 5072, 29898, 666, 29918, 26276, 8443, 13, 462, 1678, 16096, 272, 29889, 3389, 26471, 13, 30004, 13, 462, 1678, 10377, 29918, 1066, 353, 16096, 1184, 1133, 1973, 29889, 24619, 8003, 24399, 537, 1184, 26600, 29898, 562, 29939, 11167, 13, 462, 462, 462, 29320, 353, 10377, 29918, 4569, 663, 29889, 3502, 414, 797, 8443, 13, 462, 1678, 16096, 272, 353, 16096, 3434, 2153, 29889, 24399, 537, 5072, 29898, 666, 29918, 1066, 8443, 13, 30004, 13, 30004, 13, 4706, 396, 21166, 30004, 13, 4706, 396, 448, 2683, 22158, 30004, 13, 30004, 13, 4706, 396, 17456, 30004, 13, 4706, 1797, 353, 938, 29898, 7411, 29898, 16626, 6816, 3745, 358, 29889, 24619, 29918, 677, 3364, 29918, 4572, 29918, 2098, 29889, 726, 876, 30004, 13, 4706, 285, 29883, 353, 5785, 29898, 16626, 6816, 3745, 358, 29889, 24619, 29918, 677, 3364, 29918, 4572, 29918, 10745, 23860, 29889, 726, 8443, 13, 30004, 13, 4706, 7182, 29918, 19170, 29889, 22976, 5072, 292, 29898, 562, 29939, 29892, 2098, 29922, 2098, 29892, 285, 29883, 353, 13801, 8443, 13, 30004, 13, 4706, 396, 10643, 310, 4889, 15284, 1134, 29871, 29945, 322, 4889, 15284, 21166, 30004, 13, 4706, 1797, 353, 938, 29898, 7411, 29898, 16626, 6816, 3745, 358, 29889, 2831, 346, 2341, 29918, 677, 3364, 29918, 4572, 29918, 2098, 29889, 726, 876, 30004, 13, 4706, 285, 29883, 353, 5785, 29898, 16626, 6816, 3745, 358, 29889, 2831, 346, 2341, 29918, 677, 3364, 29918, 4572, 29918, 10745, 23860, 29889, 726, 8443, 13, 30004, 13, 4706, 565, 1797, 19216, 29900, 322, 285, 29883, 19216, 29900, 29901, 30004, 13, 9651, 1274, 29939, 353, 289, 11178, 24183, 29889, 3844, 442, 6982, 29898, 14573, 29918, 10145, 29974, 276, 11433, 3434, 3871, 4775, 839, 8443, 13, 9651, 565, 289, 11178, 24183, 29889, 3198, 2831, 346, 3247, 403, 1252, 391, 29898, 562, 29939, 1125, 30004, 13, 18884, 565, 376, 29945, 29908, 297, 289, 11178, 24183, 29889, 3844, 442, 2577, 18417, 29898, 562, 29939, 1699, 22051, 4741, 29918, 7390, 1299, 19094, 3284, 11116, 29908, 1125, 30004, 13, 462, 1678, 4889, 9884, 29889, 15728, 2831, 346, 3247, 403, 1542, 29945, 29898, 562, 29939, 8443, 13, 9651, 7182, 29918, 19170, 29889, 22976, 5072, 292, 29898, 562, 29939, 29892, 2098, 29922, 2098, 29892, 285, 29883, 353, 13801, 8443, 13, 4706, 1683, 29901, 30004, 13, 9651, 565, 289, 11178, 24183, 29889, 3198, 2831, 346, 3247, 403, 1252, 391, 29898, 562, 29939, 1125, 30004, 13, 18884, 565, 376, 29945, 29908, 297, 289, 11178, 24183, 29889, 3844, 442, 2577, 18417, 29898, 562, 29939, 1699, 22051, 4741, 29918, 7390, 1299, 19094, 3284, 11116, 29908, 1125, 30004, 13, 462, 1678, 4889, 9884, 29889, 15728, 2831, 346, 3247, 403, 1542, 29945, 29898, 562, 29939, 8443, 13, 30004, 13, 30004, 13, 4706, 289, 11178, 24183, 29889, 3844, 442, 10507, 29898, 562, 29939, 29892, 14573, 29918, 10145, 29974, 276, 11433, 3434, 3871, 4775, 839, 8443, 13, 30004, 13, 30004, 13, 4706, 396, 1741, 8454, 30004, 13, 4706, 396, 448, 2683, 22158, 30004, 13, 4706, 16096, 771, 26600, 13634, 353, 16096, 1184, 1133, 1973, 29889, 29954, 1249, 2624, 24399, 537, 1184, 26600, 29898, 562, 29939, 8443, 13, 4706, 16096, 272, 353, 16096, 3434, 2153, 29889, 24399, 537, 5072, 29898, 1144, 1103, 771, 26600, 13634, 8443, 13, 4706, 16096, 272, 29889, 3389, 26471, 13, 4706, 1741, 797, 21494, 272, 855, 1078, 29889, 4397, 29898, 1144, 1103, 771, 26600, 13634, 29889, 3859, 8443, 13, 30004, 13, 30004, 13, 4706, 396, 28221, 5858, 30004, 13, 4706, 396, 448, 2683, 22158, 30004, 13, 4706, 12183, 29889, 3888, 703, 29961, 2272, 11135, 29924, 29906, 29962, 11474, 383, 5367, 5858, 11474, 1159, 30004, 13, 4706, 1274, 29939, 29954, 1249, 353, 274, 29887, 29885, 29906, 29918, 29906, 29889, 29888, 5367, 29898, 4299, 29892, 14573, 29918, 10145, 29892, 337, 11433, 3434, 3871, 4775, 839, 11167, 13, 9651, 5578, 4097, 29892, 11027, 11167, 13, 9651, 17456, 29928, 2829, 1308, 11167, 13, 9651, 1298, 29903, 3096, 861, 11167, 13, 9651, 286, 29888, 3274, 29892, 29885, 2932, 1184, 6929, 8443, 13, 30004, 13, 4706, 714, 3434, 3871, 353, 337, 11433, 3434, 3871, 4775, 839, 29937, 7503, 29899, 29946, 29962, 718, 11119, 11135, 29924, 29896, 29889, 29883, 29941, 29881, 19451, 13, 4706, 289, 11178, 24183, 29889, 3844, 442, 10507, 29898, 562, 29939, 29954, 1249, 29892, 851, 29898, 14573, 29918, 10145, 718, 714, 3434, 3871, 876, 30004, 13, 4706, 1904, 839, 29907, 29941, 6289, 29889, 4397, 29898, 449, 3434, 3871, 8443, 13, 30004, 13, 4706, 12183, 29889, 3888, 703, 807, 7032, 292, 310, 518, 29995, 29879, 29962, 807, 976, 360, 12413, 29908, 29995, 29898, 276, 11433, 3434, 3871, 4775, 839, 876, 30004, 13, 30004, 13, 30004, 13, 1678, 396, 448, 2683, 1378, 29899, 12739, 1806, 13756, 23524, 4214, 448, 2683, 22158, 30004, 13, 1678, 565, 451, 599, 29898, 3696, 797, 21494, 272, 855, 1078, 1125, 30004, 13, 4706, 12020, 8960, 4852, 29961, 2272, 11135, 29924, 29906, 29962, 1954, 27338, 304, 1065, 402, 1249, 9068, 29889, 9178, 368, 330, 1249, 1741, 15326, 29889, 1423, 278, 1480, 934, 1159, 30004, 13, 1678, 12183, 29889, 3888, 703, 2683, 23648, 12739, 1806, 13756, 23524, 4214, 448, 2683, 22158, 1159, 30004, 13, 30004, 13, 268, 299, 29879, 353, 6056, 1230, 16390, 294, 1691, 29889, 4504, 10305, 29920, 29906, 29900, 29900, 29947, 703, 20475, 1159, 30004, 13, 30004, 13, 1678, 4072, 353, 3855, 18276, 24183, 29889, 4801, 522, 6816, 3745, 358, 1542, 29898, 7924, 9165, 8443, 13, 1678, 363, 1134, 297, 4072, 29901, 30004, 13, 30004, 13, 4706, 1904, 839, 29565, 1338, 353, 1051, 26471, 13, 4706, 363, 7343, 6816, 3745, 358, 297, 7343, 6816, 3745, 1860, 29901, 30004, 13, 9651, 565, 29871, 3855, 18276, 24183, 29889, 275, 1542, 29898, 16626, 6816, 3745, 358, 29892, 1853, 1125, 30004, 13, 18884, 10422, 353, 3855, 18276, 24183, 29889, 657, 3434, 3871, 29898, 16626, 6816, 3745, 358, 8443, 13, 18884, 1904, 839, 29565, 1338, 29889, 4397, 29898, 9507, 29897, 29937, 29889, 6506, 17350, 29883, 29941, 29881, 3284, 29918, 11135, 29924, 29896, 29889, 29883, 29941, 29881, 5783, 30004, 13, 30004, 13, 30004, 13, 4706, 4967, 29924, 29881, 353, 8853, 5031, 993, 1170, 1115, 4867, 9165, 29889, 2886, 703, 8897, 29918, 978, 2564, 726, 718, 29908, 15691, 4867, 9165, 29889, 2886, 703, 6730, 29918, 978, 2564, 726, 11167, 13, 462, 1678, 376, 2587, 7011, 1115, 4867, 9165, 29889, 2886, 703, 7011, 2564, 726, 11167, 13, 462, 1678, 376, 2587, 22676, 1115, 4867, 9165, 29889, 2886, 703, 22676, 2564, 726, 1919, 30004, 13, 462, 1678, 376, 6051, 4211, 19263, 1115, 4867, 9165, 29889, 2886, 703, 12130, 4211, 19263, 2564, 726, 11167, 13, 462, 1678, 376, 11152, 1115, 4867, 9165, 29889, 2886, 703, 2539, 29918, 974, 29918, 29890, 7515, 2564, 726, 11167, 13, 462, 1678, 376, 14167, 1115, 4867, 9165, 29889, 2886, 703, 29903, 735, 2564, 726, 11167, 13, 462, 1678, 376, 1688, 4195, 1115, 1134, 11167, 13, 462, 1678, 376, 29887, 29885, 29888, 2395, 1115, 4867, 9165, 29889, 2886, 703, 29954, 2124, 29918, 29924, 327, 272, 29918, 6678, 29918, 2385, 2450, 2564, 726, 11167, 13, 462, 1678, 376, 29888, 1516, 1115, 4867, 9165, 29889, 2886, 703, 6678, 284, 29918, 29924, 711, 1793, 29918, 17185, 2564, 726, 8117, 13, 30004, 13, 30004, 13, 4706, 7418, 4998, 353, 7418, 29889, 5675, 21067, 4848, 29898, 30004, 13, 9651, 360, 8254, 29918, 10145, 29892, 4299, 839, 29565, 1338, 11167, 13, 9651, 4967, 3401, 29922, 8516, 11167, 13, 9651, 17986, 3401, 29922, 8516, 11167, 13, 9651, 1904, 3401, 29922, 8516, 11167, 13, 9651, 1298, 4775, 29903, 3096, 861, 29922, 8516, 8443, 13, 30004, 13, 4706, 3611, 353, 1134, 30004, 13, 30004, 13, 4706, 396, 805, 2219, 327, 9059, 284, 30004, 13, 4706, 6492, 29889, 5317, 29918, 1028, 20819, 5776, 1971, 284, 29898, 14573, 29918, 10145, 29892, 15916, 4998, 11167, 13, 9651, 5609, 29925, 2176, 29922, 5574, 11167, 13, 9651, 1962, 1170, 29922, 3257, 11167, 13, 9651, 1510, 29922, 8516, 11167, 13, 9651, 3611, 29922, 3257, 8443, 13, 30004, 13, 4706, 396, 29968, 262, 4579, 1199, 30004, 13, 4706, 565, 1904, 29889, 29885, 29918, 29890, 397, 1478, 442, 297, 518, 264, 6762, 29889, 8434, 7439, 29889, 19357, 29931, 19977, 29892, 264, 6762, 29889, 8434, 7439, 29889, 19357, 29931, 19977, 2308, 2960, 29892, 427, 6762, 29889, 8434, 7439, 29889, 13658, 8434, 5387, 30004, 13, 9651, 6492, 29889, 5317, 29918, 4002, 924, 573, 29968, 262, 19217, 29898, 14573, 29918, 10145, 29892, 15916, 4998, 1699, 19357, 29931, 19977, 15231, 13, 462, 299, 29879, 11167, 13, 18884, 5609, 29925, 2176, 29922, 5574, 11167, 13, 18884, 1962, 1170, 29922, 3257, 11167, 13, 18884, 1298, 4775, 29903, 3096, 861, 29922, 3149, 29903, 3096, 861, 11167, 13, 18884, 1510, 29922, 8824, 11167, 13, 18884, 3611, 29922, 3257, 8443, 13, 30004, 13, 9651, 6492, 29889, 5317, 29918, 13696, 391, 3819, 29968, 262, 19217, 29898, 14573, 29918, 10145, 29892, 15916, 4998, 1699, 19357, 29931, 19977, 15231, 13, 462, 299, 29879, 11167, 13, 18884, 5609, 29925, 2176, 29922, 5574, 11167, 13, 18884, 1962, 1170, 29922, 3257, 11167, 13, 18884, 1298, 4775, 29903, 3096, 861, 29922, 3149, 29903, 3096, 861, 11167, 13, 18884, 1510, 29922, 8824, 11167, 13, 18884, 3611, 29922, 3257, 8443, 13, 4706, 565, 1904, 29889, 29885, 29918, 29890, 397, 1478, 442, 297, 518, 264, 6762, 29889, 8434, 7439, 29889, 19357, 29931, 19977, 2308, 2960, 29892, 427, 6762, 29889, 8434, 7439, 29889, 13658, 8434, 5387, 30004, 13, 9651, 6492, 29889, 5317, 29918, 4002, 924, 573, 29968, 262, 19217, 29898, 14573, 29918, 10145, 29892, 15916, 4998, 1699, 2308, 2960, 15231, 13, 462, 299, 29879, 11167, 13, 18884, 5609, 29925, 2176, 29922, 5574, 11167, 13, 18884, 1962, 1170, 29922, 3257, 11167, 13, 18884, 1298, 4775, 29903, 3096, 861, 29922, 3149, 29903, 3096, 861, 11167, 13, 18884, 1510, 29922, 8824, 11167, 13, 18884, 3611, 29922, 3257, 8443, 13, 30004, 13, 9651, 6492, 29889, 5317, 29918, 13696, 391, 3819, 29968, 262, 19217, 29898, 14573, 29918, 10145, 29892, 15916, 4998, 1699, 2308, 2960, 15231, 13, 462, 299, 29879, 11167, 13, 18884, 5609, 29925, 2176, 29922, 5574, 11167, 13, 18884, 1962, 1170, 29922, 3257, 11167, 13, 18884, 1298, 4775, 29903, 3096, 861, 29922, 3149, 29903, 3096, 861, 11167, 13, 18884, 1510, 29922, 8824, 11167, 13, 18884, 3611, 29922, 3257, 8443, 13, 30004, 13, 4706, 565, 1904, 29889, 29885, 29918, 29890, 397, 1478, 442, 297, 518, 264, 6762, 29889, 8434, 7439, 29889, 26214, 29931, 19977, 29892, 427, 6762, 29889, 8434, 7439, 29889, 13658, 8434, 5387, 30004, 13, 9651, 1209, 396, 14402, 6492, 7568, 2576, 29890, 9451, 30004, 13, 30004, 13, 30004, 13, 4706, 396, 29968, 10157, 1199, 30004, 13, 4706, 565, 1904, 29889, 29885, 29918, 29890, 397, 1478, 442, 297, 518, 264, 6762, 29889, 8434, 7439, 29889, 19357, 29931, 19977, 29892, 264, 6762, 29889, 8434, 7439, 29889, 19357, 29931, 19977, 2308, 2960, 29892, 427, 6762, 29889, 8434, 7439, 29889, 13658, 8434, 5387, 30004, 13, 9651, 6492, 29889, 5317, 29918, 4002, 924, 573, 29968, 262, 7492, 29898, 14573, 29918, 10145, 29892, 15916, 4998, 1699, 19357, 29931, 19977, 15231, 13, 462, 299, 29879, 11167, 13, 18884, 5609, 29925, 2176, 29922, 5574, 11167, 13, 18884, 1962, 1170, 29922, 3257, 11167, 13, 18884, 1298, 4775, 29903, 3096, 861, 29922, 3149, 29903, 3096, 861, 11167, 13, 18884, 1510, 29922, 8824, 11167, 13, 18884, 3611, 29922, 3257, 8443, 13, 30004, 13, 9651, 6492, 29889, 5317, 29918, 13696, 391, 3819, 29968, 262, 7492, 29898, 14573, 29918, 10145, 29892, 15916, 4998, 1699, 19357, 29931, 19977, 15231, 13, 462, 299, 29879, 11167, 13, 18884, 5609, 29925, 2176, 29922, 5574, 11167, 13, 18884, 1962, 1170, 29922, 3257, 11167, 13, 18884, 1298, 4775, 29903, 3096, 861, 29922, 3149, 29903, 3096, 861, 11167, 13, 18884, 1510, 29922, 8824, 11167, 13, 18884, 3611, 29922, 3257, 8443, 13, 30004, 13, 4706, 396, 23827, 30004, 13, 4706, 6492, 29889, 5317, 29918, 23827, 29898, 14573, 29918, 10145, 29892, 15916, 4998, 11167, 13, 632, 299, 29879, 11167, 13, 9651, 5609, 29925, 2176, 29922, 5574, 11167, 13, 9651, 1962, 1170, 29922, 3257, 29892, 3149, 4775, 29903, 3096, 861, 29922, 3149, 29903, 3096, 861, 11167, 13, 9651, 1510, 29922, 8824, 11167, 13, 9651, 3611, 29922, 3257, 8443, 13, 30004, 13, 4706, 14770, 29889, 4294, 29898, 8824, 8443, 13, 4706, 12183, 29889, 3888, 703, 23648, 402, 1249, 10554, 292, 448, 807, 29958, 360, 12413, 1159, 30004, 13, 30004, 13, 30004, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 30004, 13, 30004, 13, 1678, 13812, 353, 1852, 5510, 29889, 15730, 11726, 29898, 8216, 2433, 11135, 29924, 29906, 29896, 27321, 1495, 30004, 13, 1678, 396, 13812, 29889, 1202, 29918, 23516, 877, 489, 1217, 29954, 1249, 2624, 29928, 2650, 428, 742, 3158, 2433, 8899, 29918, 3009, 742, 1371, 2433, 1217, 330, 1249, 1741, 15326, 1495, 30004, 13, 1678, 396, 13812, 29889, 1202, 29918, 23516, 877, 489, 1217, 29954, 1249, 7032, 292, 742, 3158, 2433, 8899, 29918, 3009, 742, 1371, 2433, 1217, 330, 1249, 9068, 1495, 30004, 13, 30004, 13, 30004, 13, 1678, 6389, 353, 13812, 29889, 5510, 29918, 5085, 26471, 13, 30004, 13, 1678, 1667, 26471, 13, 2 ]
corona.py
taylordotfish/coronavirus-irc-bot
0
134307
from utils import json_request irc_formatting = True def format(number, sign = False): if irc_formatting: if sign: return '\x02\x0304{:+}\x03\x02'.format(number) else: return '\x02\x0304{}\x03\x02'.format(number) else: if sign: return '{:+}'.format(number) else: return str(number) def get_country_status(query): data = json_request('https://api.covid19api.com/summary') if not data: return None for country in data["Countries"]: if country["Country"].lower() == query or country["Slug"] == query or country["CountryCode"].lower() == query: confirmed = format(country["TotalConfirmed"]) new_cases = format(country["NewConfirmed"], sign=True) deaths = format(country["TotalDeaths"]) new_deaths = format(country["NewDeaths"], sign=True) info = 'Total Cases: {} ({}) - Total Deaths: {} ({})'.format(confirmed, new_cases, deaths, new_deaths) return info def get_italy_status(): data = json_request('https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-json/dpc-covid19-ita-andamento-nazionale.json') if not data: return None latest = data[-1] yesterday = data[-2] totale_positivi = format(latest["totale_positivi"]) variazione_totale_positivi = format(latest["variazione_totale_positivi"], sign = True) nuovi_positivi = format(latest["nuovi_positivi"], sign = True) deceduti = format(latest["deceduti"]) nuovi_deceduti = format(latest["deceduti"] - yesterday["deceduti"], sign = True) dimessi = format(latest["dimessi_guariti"]) nuovi_dimessi = format(latest["dimessi_guariti"] - yesterday["dimessi_guariti"], sign = True) totale_casi = format(latest["totale_casi"]) info = 'Totale attualmente positivi: {} ({}) - Deceduti: {} ({}) - Dimessi guariti: {} ({}) - Totale casi: {} ({})' \ .format(totale_positivi, variazione_totale_positivi, deceduti, nuovi_deceduti, dimessi, nuovi_dimessi, totale_casi, nuovi_positivi) return info def get_italy_regione(query): data = json_request('https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-json/dpc-covid19-ita-regioni-latest.json') if not data: return None for regione in data: if regione["denominazione_regione"].lower() == query: totale_positivi = format(regione["totale_positivi"]) variazione_totale_positivi = format(regione["variazione_totale_positivi"], sign = True) nuovi_positivi = format(regione["nuovi_positivi"], sign = True) dimessi_guariti = format(regione["dimessi_guariti"]) deceduti = format(regione["deceduti"]) totale_casi = format(regione["totale_casi"]) tamponi = format(regione["tamponi"]) info = 'Attualmente positivi: {} ({}) - Dimessi guariti: {} - Deceduti: {} - Totale casi: {} ({}) - Tamponi: {}' \ .format(totale_positivi, variazione_totale_positivi, dimessi_guariti, deceduti, totale_casi, nuovi_positivi, tamponi) return info def get_italy_province(query): data = json_request('https://raw.githubusercontent.com/pcm-dpc/COVID-19/master/dati-json/dpc-covid19-ita-province-latest.json') if not data: return None for provincia in data: if provincia["denominazione_provincia"].lower() == query: totale_casi = format(provincia["totale_casi"]) info = 'Totale Casi: {}'.format(totale_casi) return info def get_global_status(): data = json_request('https://api.covid19api.com/summary') if not data: return None confirmed = format(data["Global"]["TotalConfirmed"]) deaths = format(data["Global"]["TotalDeaths"]) new_cases = format(data["Global"]["NewConfirmed"], sign=True) new_deaths = format(data["Global"]["NewDeaths"], sign=True) info = 'Total Cases: {} ({}) - Total Deaths: {} ({})'.format(confirmed, new_cases, deaths, new_deaths) return info def elaborate_query(query): if query == "global": return get_global_status() if query == "italy" or query == "italia": return get_italy_status() info = get_country_status(query) if info: return info info = get_italy_regione(query) if info: return info info = get_italy_province(query) if info: return info return "I don't know bro"
[ 1, 515, 3667, 29879, 1053, 4390, 29918, 3827, 13, 13, 2076, 29918, 689, 23980, 353, 5852, 13, 13, 1753, 3402, 29898, 4537, 29892, 1804, 353, 7700, 1125, 13, 1678, 565, 29871, 2076, 29918, 689, 23980, 29901, 13, 4706, 565, 1804, 29901, 13, 9651, 736, 11297, 29916, 29900, 29906, 29905, 29916, 29900, 29941, 29900, 29946, 25641, 29974, 1012, 29916, 29900, 29941, 29905, 29916, 29900, 29906, 4286, 4830, 29898, 4537, 29897, 13, 4706, 1683, 29901, 13, 9651, 736, 11297, 29916, 29900, 29906, 29905, 29916, 29900, 29941, 29900, 29946, 29912, 1012, 29916, 29900, 29941, 29905, 29916, 29900, 29906, 4286, 4830, 29898, 4537, 29897, 13, 1678, 1683, 29901, 13, 4706, 565, 1804, 29901, 13, 9651, 736, 22372, 29901, 29974, 29913, 4286, 4830, 29898, 4537, 29897, 13, 4706, 1683, 29901, 13, 9651, 736, 851, 29898, 4537, 29897, 13, 13, 13, 1753, 679, 29918, 13509, 29918, 4882, 29898, 1972, 1125, 13, 1678, 848, 353, 4390, 29918, 3827, 877, 991, 597, 2754, 29889, 24542, 333, 29896, 29929, 2754, 29889, 510, 29914, 7727, 1495, 13, 1678, 565, 451, 848, 29901, 13, 4706, 736, 6213, 13, 13, 1678, 363, 4234, 297, 848, 3366, 3981, 2722, 3108, 29901, 13, 4706, 565, 4234, 3366, 20779, 16862, 13609, 580, 1275, 2346, 470, 4234, 3366, 16973, 688, 3108, 1275, 2346, 470, 4234, 3366, 20779, 3399, 16862, 13609, 580, 1275, 2346, 29901, 13, 9651, 16725, 353, 3402, 29898, 13509, 3366, 11536, 16376, 381, 2168, 20068, 13, 9651, 716, 29918, 11436, 353, 3402, 29898, 13509, 3366, 4373, 16376, 381, 2168, 12436, 1804, 29922, 5574, 29897, 13, 9651, 4892, 29879, 353, 3402, 29898, 13509, 3366, 11536, 2772, 493, 29879, 20068, 13, 9651, 716, 29918, 311, 493, 29879, 353, 3402, 29898, 13509, 3366, 4373, 2772, 493, 29879, 12436, 1804, 29922, 5574, 29897, 13, 13, 9651, 5235, 353, 525, 11536, 315, 2129, 29901, 6571, 21313, 1800, 448, 14990, 14450, 29879, 29901, 6571, 21313, 1800, 4286, 4830, 29898, 5527, 381, 2168, 29892, 716, 29918, 11436, 29892, 4892, 29879, 29892, 716, 29918, 311, 493, 29879, 29897, 13, 9651, 736, 5235, 13, 13, 1753, 679, 29918, 2410, 29891, 29918, 4882, 7295, 13, 1678, 848, 353, 4390, 29918, 3827, 877, 991, 597, 1610, 29889, 3292, 1792, 3051, 29889, 510, 29914, 29886, 4912, 29899, 6099, 29883, 29914, 3217, 13044, 29899, 29896, 29929, 29914, 6207, 29914, 29881, 2219, 29899, 3126, 29914, 6099, 29883, 29899, 24542, 333, 29896, 29929, 29899, 2028, 29899, 392, 4487, 29899, 29876, 24916, 29889, 3126, 1495, 13, 1678, 565, 451, 848, 29901, 13, 4706, 736, 6213, 13, 13, 1678, 9281, 353, 848, 14352, 29896, 29962, 13, 1678, 22600, 353, 848, 14352, 29906, 29962, 13, 1678, 26104, 29918, 1066, 277, 8107, 353, 3402, 29898, 12333, 3366, 4260, 744, 29918, 1066, 277, 8107, 20068, 13, 1678, 722, 423, 4246, 29918, 4260, 744, 29918, 1066, 277, 8107, 353, 3402, 29898, 12333, 3366, 1707, 423, 4246, 29918, 4260, 744, 29918, 1066, 277, 8107, 12436, 1804, 353, 5852, 29897, 13, 1678, 4948, 6895, 29918, 1066, 277, 8107, 353, 3402, 29898, 12333, 3366, 3433, 6895, 29918, 1066, 277, 8107, 12436, 1804, 353, 5852, 29897, 13, 1678, 316, 1133, 11321, 353, 3402, 29898, 12333, 3366, 311, 1133, 11321, 20068, 13, 1678, 4948, 6895, 29918, 311, 1133, 11321, 353, 3402, 29898, 12333, 3366, 311, 1133, 11321, 3108, 448, 22600, 3366, 311, 1133, 11321, 12436, 1804, 353, 5852, 29897, 13, 1678, 3964, 404, 29875, 353, 3402, 29898, 12333, 3366, 6229, 404, 29875, 29918, 2543, 279, 4812, 20068, 13, 1678, 4948, 6895, 29918, 6229, 404, 29875, 353, 3402, 29898, 12333, 3366, 6229, 404, 29875, 29918, 2543, 279, 4812, 3108, 448, 22600, 3366, 6229, 404, 29875, 29918, 2543, 279, 4812, 12436, 1804, 353, 5852, 29897, 13, 1678, 26104, 29918, 29883, 6840, 353, 3402, 29898, 12333, 3366, 4260, 744, 29918, 29883, 6840, 20068, 13, 13, 1678, 5235, 353, 525, 29911, 327, 744, 1098, 14162, 13686, 8107, 29901, 6571, 21313, 1800, 448, 3826, 287, 11321, 29901, 6571, 21313, 1800, 448, 4792, 404, 29875, 1410, 279, 4812, 29901, 6571, 21313, 1800, 448, 19013, 744, 22682, 29901, 6571, 21313, 1800, 29915, 320, 13, 9651, 869, 4830, 29898, 4260, 744, 29918, 1066, 277, 8107, 29892, 722, 423, 4246, 29918, 4260, 744, 29918, 1066, 277, 8107, 29892, 316, 1133, 11321, 29892, 4948, 6895, 29918, 311, 1133, 11321, 29892, 3964, 404, 29875, 29892, 4948, 6895, 29918, 6229, 404, 29875, 29892, 26104, 29918, 29883, 6840, 29892, 4948, 6895, 29918, 1066, 277, 8107, 29897, 13, 268, 13, 1678, 736, 5235, 13, 13, 1753, 679, 29918, 2410, 29891, 29918, 1727, 1421, 29898, 1972, 1125, 13, 1678, 848, 353, 4390, 29918, 3827, 877, 991, 597, 1610, 29889, 3292, 1792, 3051, 29889, 510, 29914, 29886, 4912, 29899, 6099, 29883, 29914, 3217, 13044, 29899, 29896, 29929, 29914, 6207, 29914, 29881, 2219, 29899, 3126, 29914, 6099, 29883, 29899, 24542, 333, 29896, 29929, 29899, 2028, 29899, 1727, 3688, 29899, 12333, 29889, 3126, 1495, 13, 1678, 565, 451, 848, 29901, 13, 4706, 736, 6213, 13, 13, 1678, 363, 1072, 1421, 297, 848, 29901, 13, 4706, 565, 1072, 1421, 3366, 1145, 5817, 3343, 29918, 1727, 1421, 16862, 13609, 580, 1275, 2346, 29901, 13, 9651, 26104, 29918, 1066, 277, 8107, 353, 3402, 29898, 1727, 1421, 3366, 4260, 744, 29918, 1066, 277, 8107, 20068, 13, 9651, 722, 423, 4246, 29918, 4260, 744, 29918, 1066, 277, 8107, 353, 3402, 29898, 1727, 1421, 3366, 1707, 423, 4246, 29918, 4260, 744, 29918, 1066, 277, 8107, 12436, 1804, 353, 5852, 29897, 13, 9651, 4948, 6895, 29918, 1066, 277, 8107, 353, 3402, 29898, 1727, 1421, 3366, 3433, 6895, 29918, 1066, 277, 8107, 12436, 1804, 353, 5852, 29897, 13, 9651, 3964, 404, 29875, 29918, 2543, 279, 4812, 353, 3402, 29898, 1727, 1421, 3366, 6229, 404, 29875, 29918, 2543, 279, 4812, 20068, 13, 9651, 316, 1133, 11321, 353, 3402, 29898, 1727, 1421, 3366, 311, 1133, 11321, 20068, 13, 9651, 26104, 29918, 29883, 6840, 353, 3402, 29898, 1727, 1421, 3366, 4260, 744, 29918, 29883, 6840, 20068, 13, 9651, 21308, 1112, 29875, 353, 3402, 29898, 1727, 1421, 3366, 29873, 314, 1112, 29875, 20068, 13, 13, 9651, 5235, 353, 525, 4165, 14162, 13686, 8107, 29901, 6571, 21313, 1800, 448, 4792, 404, 29875, 1410, 279, 4812, 29901, 6571, 448, 3826, 287, 11321, 29901, 6571, 448, 19013, 744, 22682, 29901, 6571, 21313, 1800, 448, 16939, 1112, 29875, 29901, 6571, 29915, 320, 13, 462, 1678, 869, 4830, 29898, 4260, 744, 29918, 1066, 277, 8107, 29892, 722, 423, 4246, 29918, 4260, 744, 29918, 1066, 277, 8107, 29892, 3964, 404, 29875, 29918, 2543, 279, 4812, 29892, 316, 1133, 11321, 29892, 26104, 29918, 29883, 6840, 29892, 4948, 6895, 29918, 1066, 277, 8107, 29892, 21308, 1112, 29875, 29897, 13, 13, 9651, 736, 5235, 13, 13, 1753, 679, 29918, 2410, 29891, 29918, 16123, 1239, 29898, 1972, 1125, 13, 1678, 848, 353, 4390, 29918, 3827, 877, 991, 597, 1610, 29889, 3292, 1792, 3051, 29889, 510, 29914, 29886, 4912, 29899, 6099, 29883, 29914, 3217, 13044, 29899, 29896, 29929, 29914, 6207, 29914, 29881, 2219, 29899, 3126, 29914, 6099, 29883, 29899, 24542, 333, 29896, 29929, 29899, 2028, 29899, 16123, 1239, 29899, 12333, 29889, 3126, 1495, 13, 1678, 565, 451, 848, 29901, 13, 4706, 736, 6213, 13, 13, 1678, 363, 13324, 297, 848, 29901, 13, 4706, 565, 13324, 3366, 1145, 5817, 3343, 29918, 771, 3845, 1512, 16862, 13609, 580, 1275, 2346, 29901, 13, 9651, 26104, 29918, 29883, 6840, 353, 3402, 29898, 771, 3845, 1512, 3366, 4260, 744, 29918, 29883, 6840, 20068, 13, 632, 13, 9651, 5235, 353, 525, 29911, 327, 744, 315, 6840, 29901, 6571, 4286, 4830, 29898, 4260, 744, 29918, 29883, 6840, 29897, 13, 9651, 736, 5235, 13, 13, 13, 1753, 679, 29918, 10945, 29918, 4882, 7295, 13, 1678, 848, 353, 4390, 29918, 3827, 877, 991, 597, 2754, 29889, 24542, 333, 29896, 29929, 2754, 29889, 510, 29914, 7727, 1495, 13, 1678, 565, 451, 848, 29901, 13, 4706, 736, 6213, 13, 13, 1678, 16725, 353, 3402, 29898, 1272, 3366, 12756, 3108, 3366, 11536, 16376, 381, 2168, 20068, 13, 1678, 4892, 29879, 353, 3402, 29898, 1272, 3366, 12756, 3108, 3366, 11536, 2772, 493, 29879, 20068, 13, 1678, 716, 29918, 11436, 353, 3402, 29898, 1272, 3366, 12756, 3108, 3366, 4373, 16376, 381, 2168, 12436, 1804, 29922, 5574, 29897, 13, 1678, 716, 29918, 311, 493, 29879, 353, 3402, 29898, 1272, 3366, 12756, 3108, 3366, 4373, 2772, 493, 29879, 12436, 1804, 29922, 5574, 29897, 13, 13, 1678, 5235, 353, 525, 11536, 315, 2129, 29901, 6571, 21313, 1800, 448, 14990, 14450, 29879, 29901, 6571, 21313, 1800, 4286, 4830, 29898, 5527, 381, 2168, 29892, 716, 29918, 11436, 29892, 4892, 29879, 29892, 716, 29918, 311, 493, 29879, 29897, 13, 1678, 736, 5235, 13, 13, 1753, 19430, 29918, 1972, 29898, 1972, 1125, 13, 1678, 565, 2346, 1275, 376, 10945, 1115, 13, 4706, 736, 679, 29918, 10945, 29918, 4882, 580, 13, 268, 13, 1678, 565, 2346, 1275, 376, 2410, 29891, 29908, 470, 2346, 1275, 376, 2410, 423, 1115, 13, 4706, 736, 679, 29918, 2410, 29891, 29918, 4882, 580, 13, 13, 1678, 5235, 353, 679, 29918, 13509, 29918, 4882, 29898, 1972, 29897, 13, 1678, 565, 5235, 29901, 13, 4706, 736, 5235, 13, 13, 1678, 5235, 353, 679, 29918, 2410, 29891, 29918, 1727, 1421, 29898, 1972, 29897, 13, 1678, 565, 5235, 29901, 13, 4706, 736, 5235, 13, 268, 13, 1678, 5235, 353, 679, 29918, 2410, 29891, 29918, 16123, 1239, 29898, 1972, 29897, 13, 1678, 565, 5235, 29901, 13, 4706, 736, 5235, 13, 268, 13, 1678, 736, 376, 29902, 1016, 29915, 29873, 1073, 2545, 29908, 13, 2 ]
VFF/psi_statistics.py
st--/VFF
1
82524
# Copyright 2016 <NAME> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import tensorflow as tf import numpy as np def psi1(mean, var, a, b, ms): # this bit is the same as Kuf on the mean omegas = 2.0 * np.pi * ms / (b - a) Kuf_cos = tf.transpose(tf.cos(omegas * (mean - a))) omegas = omegas[omegas != 0] # don't compute zeros freq. Kuf_sin = tf.transpose(tf.sin(omegas * (mean - a))) # this bit depends on the variance a = tf.transpose(tf.exp(-tf.square(omegas) * var / 2)) Psi1_cos = Kuf_cos * a Psi1_sin = Kuf_sin * a return tf.concat([Psi1_cos, Psi1_sin], axis=0) def psi2(mean, var, a, b, ms): # mean and var must be N x 1 # this bit is the same as Kuf on the mean omegas = 2.0 * np.pi * ms / (b - a) omegas_add = tf.reshape(omegas, (-1, 1)) + tf.reshape(omegas, (1, -1)) omegas_diff = tf.reshape(omegas, (-1, 1)) - tf.reshape(omegas, (1, -1)) omegas_add = tf.expand_dims(omegas_add, 0) omegas_diff = tf.expand_dims(omegas_diff, 0) exp_add = tf.exp(-tf.expand_dims(var, 1) * tf.square(omegas_add) / 2) exp_diff = tf.exp(-var * tf.square(omegas_diff) / 2) # TODO def uniform(a, b, ms, low, up): # here's the cosine part. omegas_cos = 2.0 * np.pi * ms / (b - a) w = omegas_cos.reshape(-1, 1) m = omegas_cos.reshape(1, -1) # integral_a^b cos(w x) cos(m x) dx = (-m sin(a m) cos(a w)+w cos(a m) sin(a w)+m sin(b m) cos(b w)-w cos(b m) sin(b w))/(m^2-w^2) coscos = ( -m * tf.sin(low * m) * tf.cos(low * w) + w * tf.cos(low * m) * tf.sin(low * w) + m * tf.sin(up * m) * tf.cos(up * w) - w * tf.cos(up * m) * tf.sin(up * w) ) / (tf.square(m) - tf.square(w)) # integral_a^b cos^2(w x) dx = (2 w (b-a)-sin(2 a w)+sin(2 b w))/(4 w) cos2 = (2 * w * (up - low) - tf.sin(2 * low * w) + tf.sin(2 * up * w)) / (4 * w) # here's the sin part omegas_sin = omegas_cos[omegas_cos != 0] # don't compute omega=0 w = omegas_sin.reshape(-1, 1) m = omegas_sin.reshape(1, -1) # integral_a^b sin(w x) sin(m x) dx = (-w sin(a m) cos(a w)+m cos(a m) sin(a w)+w sin(b m) cos(b w)-m cos(b m) sin(b w))/(m^2-w^2) sinsin = ( -w * tf.sin(low * m) * tf.cos(low * w) + m * tf.cos(low * m) * tf.sin(low * w) + w * tf.sin(up * m) * tf.cos(up * w) - m * tf.cos(up * m) * tf.sin(up * w) ) / (tf.square(m) - tf.square(w)) # integral_a^b sin^2(w x) dx = (2 w (b-a)+sin(2 a w)-sin(2 b w))/(4 w) sin2 = (2 * w * (up - low) + tf.sin(2 * a * w) - tf.sin(2 * up * w)) / (4 * w) # here the 'cross' part # integral_a^b cos(w x) sin(m x) dx = (w sin(a m) sin(a w)+m cos(a m) cos(a w)-w sin(b m) sin(b w)-m cos(b m) cos(b w))/(m^2-w^2) w = omegas_cos.reshape(-1, 1) m = omegas_sin.reshape(1, -1) sincos = ( w * tf.sin(low * m) * tf.sin(low * w) + m * tf.cos(low * m) * tf.cos(low * w) - w * tf.sin(up * m) * tf.sin(up * w) - m * tf.cos(up * m) * tf.cos(up * w) ) / (tf.square(m) - tf.square(w)) return coscos, cos2, sinsin, sin2, sincos # integral_a^b sin(w x) sin(m x) dx = (-w sin(a m) cos(a w)+m cos(a m) sin(a w)+w sin(b m) cos(b w)-m cos(b m) sin(b w))/(m^2-w^2)
[ 1, 396, 14187, 1266, 29871, 29906, 29900, 29896, 29953, 529, 5813, 29958, 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, 13, 13, 5215, 26110, 408, 15886, 13, 5215, 12655, 408, 7442, 13, 13, 13, 1753, 282, 1039, 29896, 29898, 12676, 29892, 722, 29892, 263, 29892, 289, 29892, 10887, 1125, 13, 13, 1678, 396, 445, 2586, 338, 278, 1021, 408, 476, 1137, 373, 278, 2099, 13, 1678, 2703, 387, 294, 353, 29871, 29906, 29889, 29900, 334, 7442, 29889, 1631, 334, 10887, 847, 313, 29890, 448, 263, 29897, 13, 1678, 476, 1137, 29918, 3944, 353, 15886, 29889, 3286, 4220, 29898, 13264, 29889, 3944, 29898, 290, 387, 294, 334, 313, 12676, 448, 263, 4961, 13, 1678, 2703, 387, 294, 353, 2703, 387, 294, 29961, 290, 387, 294, 2804, 29871, 29900, 29962, 29871, 396, 1016, 29915, 29873, 10272, 24786, 3005, 29939, 29889, 13, 1678, 476, 1137, 29918, 5223, 353, 15886, 29889, 3286, 4220, 29898, 13264, 29889, 5223, 29898, 290, 387, 294, 334, 313, 12676, 448, 263, 4961, 13, 13, 1678, 396, 445, 2586, 7111, 373, 278, 20162, 13, 1678, 263, 353, 15886, 29889, 3286, 4220, 29898, 13264, 29889, 4548, 6278, 13264, 29889, 17619, 29898, 290, 387, 294, 29897, 334, 722, 847, 29871, 29906, 876, 13, 1678, 349, 1039, 29896, 29918, 3944, 353, 476, 1137, 29918, 3944, 334, 263, 13, 1678, 349, 1039, 29896, 29918, 5223, 353, 476, 1137, 29918, 5223, 334, 263, 13, 13, 1678, 736, 15886, 29889, 17685, 4197, 14118, 29896, 29918, 3944, 29892, 349, 1039, 29896, 29918, 5223, 1402, 9685, 29922, 29900, 29897, 13, 13, 13, 1753, 282, 1039, 29906, 29898, 12676, 29892, 722, 29892, 263, 29892, 289, 29892, 10887, 1125, 13, 1678, 396, 2099, 322, 722, 1818, 367, 405, 921, 29871, 29896, 13, 13, 1678, 396, 445, 2586, 338, 278, 1021, 408, 476, 1137, 373, 278, 2099, 13, 1678, 2703, 387, 294, 353, 29871, 29906, 29889, 29900, 334, 7442, 29889, 1631, 334, 10887, 847, 313, 29890, 448, 263, 29897, 13, 1678, 2703, 387, 294, 29918, 1202, 353, 15886, 29889, 690, 14443, 29898, 290, 387, 294, 29892, 8521, 29896, 29892, 29871, 29896, 876, 718, 15886, 29889, 690, 14443, 29898, 290, 387, 294, 29892, 313, 29896, 29892, 448, 29896, 876, 13, 1678, 2703, 387, 294, 29918, 12765, 353, 15886, 29889, 690, 14443, 29898, 290, 387, 294, 29892, 8521, 29896, 29892, 29871, 29896, 876, 448, 15886, 29889, 690, 14443, 29898, 290, 387, 294, 29892, 313, 29896, 29892, 448, 29896, 876, 13, 1678, 2703, 387, 294, 29918, 1202, 353, 15886, 29889, 18837, 29918, 6229, 29879, 29898, 290, 387, 294, 29918, 1202, 29892, 29871, 29900, 29897, 13, 1678, 2703, 387, 294, 29918, 12765, 353, 15886, 29889, 18837, 29918, 6229, 29879, 29898, 290, 387, 294, 29918, 12765, 29892, 29871, 29900, 29897, 13, 13, 1678, 1518, 29918, 1202, 353, 15886, 29889, 4548, 6278, 13264, 29889, 18837, 29918, 6229, 29879, 29898, 1707, 29892, 29871, 29896, 29897, 334, 15886, 29889, 17619, 29898, 290, 387, 294, 29918, 1202, 29897, 847, 29871, 29906, 29897, 13, 1678, 1518, 29918, 12765, 353, 15886, 29889, 4548, 6278, 1707, 334, 15886, 29889, 17619, 29898, 290, 387, 294, 29918, 12765, 29897, 847, 29871, 29906, 29897, 13, 13, 1678, 396, 14402, 13, 13, 13, 1753, 9090, 29898, 29874, 29892, 289, 29892, 10887, 29892, 4482, 29892, 701, 1125, 13, 1678, 396, 1244, 29915, 29879, 278, 6776, 457, 760, 29889, 13, 1678, 2703, 387, 294, 29918, 3944, 353, 29871, 29906, 29889, 29900, 334, 7442, 29889, 1631, 334, 10887, 847, 313, 29890, 448, 263, 29897, 13, 1678, 281, 353, 2703, 387, 294, 29918, 3944, 29889, 690, 14443, 6278, 29896, 29892, 29871, 29896, 29897, 13, 1678, 286, 353, 2703, 387, 294, 29918, 3944, 29889, 690, 14443, 29898, 29896, 29892, 448, 29896, 29897, 13, 1678, 396, 10160, 29918, 29874, 29985, 29890, 6776, 29898, 29893, 921, 29897, 6776, 29898, 29885, 921, 29897, 15414, 353, 8521, 29885, 4457, 29898, 29874, 286, 29897, 6776, 29898, 29874, 281, 7240, 29893, 6776, 29898, 29874, 286, 29897, 4457, 29898, 29874, 281, 7240, 29885, 4457, 29898, 29890, 286, 29897, 6776, 29898, 29890, 281, 6817, 29893, 6776, 29898, 29890, 286, 29897, 4457, 29898, 29890, 281, 876, 14571, 29885, 29985, 29906, 29899, 29893, 29985, 29906, 29897, 13, 1678, 6776, 3944, 353, 313, 13, 4706, 448, 29885, 334, 15886, 29889, 5223, 29898, 677, 334, 286, 29897, 334, 15886, 29889, 3944, 29898, 677, 334, 281, 29897, 13, 4706, 718, 281, 334, 15886, 29889, 3944, 29898, 677, 334, 286, 29897, 334, 15886, 29889, 5223, 29898, 677, 334, 281, 29897, 13, 4706, 718, 286, 334, 15886, 29889, 5223, 29898, 786, 334, 286, 29897, 334, 15886, 29889, 3944, 29898, 786, 334, 281, 29897, 13, 4706, 448, 281, 334, 15886, 29889, 3944, 29898, 786, 334, 286, 29897, 334, 15886, 29889, 5223, 29898, 786, 334, 281, 29897, 13, 1678, 1723, 847, 313, 13264, 29889, 17619, 29898, 29885, 29897, 448, 15886, 29889, 17619, 29898, 29893, 876, 13, 13, 1678, 396, 10160, 29918, 29874, 29985, 29890, 6776, 29985, 29906, 29898, 29893, 921, 29897, 15414, 353, 313, 29906, 281, 313, 29890, 29899, 29874, 6817, 5223, 29898, 29906, 263, 281, 7240, 5223, 29898, 29906, 289, 281, 876, 14571, 29946, 281, 29897, 13, 1678, 6776, 29906, 353, 313, 29906, 334, 281, 334, 313, 786, 448, 4482, 29897, 448, 15886, 29889, 5223, 29898, 29906, 334, 4482, 334, 281, 29897, 718, 15886, 29889, 5223, 29898, 29906, 334, 701, 334, 281, 876, 847, 313, 29946, 334, 281, 29897, 13, 13, 1678, 396, 1244, 29915, 29879, 278, 4457, 760, 13, 13, 1678, 2703, 387, 294, 29918, 5223, 353, 2703, 387, 294, 29918, 3944, 29961, 290, 387, 294, 29918, 3944, 2804, 29871, 29900, 29962, 29871, 396, 1016, 29915, 29873, 10272, 2703, 2442, 29922, 29900, 13, 1678, 281, 353, 2703, 387, 294, 29918, 5223, 29889, 690, 14443, 6278, 29896, 29892, 29871, 29896, 29897, 13, 1678, 286, 353, 2703, 387, 294, 29918, 5223, 29889, 690, 14443, 29898, 29896, 29892, 448, 29896, 29897, 13, 1678, 396, 10160, 29918, 29874, 29985, 29890, 4457, 29898, 29893, 921, 29897, 4457, 29898, 29885, 921, 29897, 15414, 353, 8521, 29893, 4457, 29898, 29874, 286, 29897, 6776, 29898, 29874, 281, 7240, 29885, 6776, 29898, 29874, 286, 29897, 4457, 29898, 29874, 281, 7240, 29893, 4457, 29898, 29890, 286, 29897, 6776, 29898, 29890, 281, 6817, 29885, 6776, 29898, 29890, 286, 29897, 4457, 29898, 29890, 281, 876, 14571, 29885, 29985, 29906, 29899, 29893, 29985, 29906, 29897, 13, 1678, 269, 1144, 262, 353, 313, 13, 4706, 448, 29893, 334, 15886, 29889, 5223, 29898, 677, 334, 286, 29897, 334, 15886, 29889, 3944, 29898, 677, 334, 281, 29897, 13, 4706, 718, 286, 334, 15886, 29889, 3944, 29898, 677, 334, 286, 29897, 334, 15886, 29889, 5223, 29898, 677, 334, 281, 29897, 13, 4706, 718, 281, 334, 15886, 29889, 5223, 29898, 786, 334, 286, 29897, 334, 15886, 29889, 3944, 29898, 786, 334, 281, 29897, 13, 4706, 448, 286, 334, 15886, 29889, 3944, 29898, 786, 334, 286, 29897, 334, 15886, 29889, 5223, 29898, 786, 334, 281, 29897, 13, 1678, 1723, 847, 313, 13264, 29889, 17619, 29898, 29885, 29897, 448, 15886, 29889, 17619, 29898, 29893, 876, 13, 13, 1678, 396, 10160, 29918, 29874, 29985, 29890, 4457, 29985, 29906, 29898, 29893, 921, 29897, 15414, 353, 313, 29906, 281, 313, 29890, 29899, 29874, 7240, 5223, 29898, 29906, 263, 281, 6817, 5223, 29898, 29906, 289, 281, 876, 14571, 29946, 281, 29897, 13, 1678, 4457, 29906, 353, 313, 29906, 334, 281, 334, 313, 786, 448, 4482, 29897, 718, 15886, 29889, 5223, 29898, 29906, 334, 263, 334, 281, 29897, 448, 15886, 29889, 5223, 29898, 29906, 334, 701, 334, 281, 876, 847, 313, 29946, 334, 281, 29897, 13, 13, 1678, 396, 1244, 278, 525, 19128, 29915, 760, 13, 1678, 396, 10160, 29918, 29874, 29985, 29890, 6776, 29898, 29893, 921, 29897, 4457, 29898, 29885, 921, 29897, 15414, 353, 313, 29893, 4457, 29898, 29874, 286, 29897, 4457, 29898, 29874, 281, 7240, 29885, 6776, 29898, 29874, 286, 29897, 6776, 29898, 29874, 281, 6817, 29893, 4457, 29898, 29890, 286, 29897, 4457, 29898, 29890, 281, 6817, 29885, 6776, 29898, 29890, 286, 29897, 6776, 29898, 29890, 281, 876, 14571, 29885, 29985, 29906, 29899, 29893, 29985, 29906, 29897, 13, 1678, 281, 353, 2703, 387, 294, 29918, 3944, 29889, 690, 14443, 6278, 29896, 29892, 29871, 29896, 29897, 13, 1678, 286, 353, 2703, 387, 294, 29918, 5223, 29889, 690, 14443, 29898, 29896, 29892, 448, 29896, 29897, 13, 1678, 269, 3742, 359, 353, 313, 13, 4706, 281, 334, 15886, 29889, 5223, 29898, 677, 334, 286, 29897, 334, 15886, 29889, 5223, 29898, 677, 334, 281, 29897, 13, 4706, 718, 286, 334, 15886, 29889, 3944, 29898, 677, 334, 286, 29897, 334, 15886, 29889, 3944, 29898, 677, 334, 281, 29897, 13, 4706, 448, 281, 334, 15886, 29889, 5223, 29898, 786, 334, 286, 29897, 334, 15886, 29889, 5223, 29898, 786, 334, 281, 29897, 13, 4706, 448, 286, 334, 15886, 29889, 3944, 29898, 786, 334, 286, 29897, 334, 15886, 29889, 3944, 29898, 786, 334, 281, 29897, 13, 1678, 1723, 847, 313, 13264, 29889, 17619, 29898, 29885, 29897, 448, 15886, 29889, 17619, 29898, 29893, 876, 13, 13, 1678, 736, 6776, 3944, 29892, 6776, 29906, 29892, 269, 1144, 262, 29892, 4457, 29906, 29892, 269, 3742, 359, 13, 13, 1678, 396, 10160, 29918, 29874, 29985, 29890, 4457, 29898, 29893, 921, 29897, 4457, 29898, 29885, 921, 29897, 15414, 353, 8521, 29893, 4457, 29898, 29874, 286, 29897, 6776, 29898, 29874, 281, 7240, 29885, 6776, 29898, 29874, 286, 29897, 4457, 29898, 29874, 281, 7240, 29893, 4457, 29898, 29890, 286, 29897, 6776, 29898, 29890, 281, 6817, 29885, 6776, 29898, 29890, 286, 29897, 4457, 29898, 29890, 281, 876, 14571, 29885, 29985, 29906, 29899, 29893, 29985, 29906, 29897, 13, 2 ]
Recommender/build.py
teamclouday/Mooner
0
1617393
<filename>Recommender/build.py # This file will build a database for each of the ids in crawled csv # How it works # For each of the ids, read through the tweets # run Sentiment model and Topic model on them # calculate a representative value for these features # store the result into a database (could be a csv file) from model import * # define topic category map # 0 1 2 3 4 5 # my_topics = ['computers', 'science', 'sports', 'religions', 'politics', 'others'] # topic_map = { # 0: 5, # 1: 0, # 2: 0, # 3: 0, # 4: 0, # 5: 0, # 6: 5, # 7: 2, # 8: 2, # 9: 2, # 10: 2, # 11: 1, # 12: 1, # 13: 1, # 14: 1, # 15: 3, # 16: 4, # 17: 4, # 18: 4, # 19: 3 # } if __name__ == "__main__": if not os.path.exists("data.csv"): # load models model_senti = ModelSentiment() model_topic = ModelTopic() # load tweets dataframe tweets_data = pd.read_csv(os.path.join("..", "DataProcess", "tweets_200_processed.csv")) # preprocess all text tweets_data["Tweet"] = tweets_data["Tweet"].apply(preprocess) # setup output data output = [] # get all user ids userids = tweets_data["User ID"].unique() # groupby ids data = tweets_data.groupby(["User ID"]) print("Number of IDs = {}".format(len(userids))) for i, userid in enumerate(userids): user_topics = np.zeros(20) tweets = data.get_group(userid)["Tweet"].tolist() print("Current ID = {} - With {} tweets".format(userid, len(tweets)), end="") pos_neg = np.array(model_senti.run(tweets)) print("\tPostive Negative decided", end="") topics = np.array(model_topic.run(tweets)) print("\tTopic extracted") pos_neg = pos_neg * 2 - 1 # convert from range [0, 1] to range [-1, 1] topics = topics * 100 # convert probability from [0, 1] to [0, 100] for sign, dist in zip(pos_neg, topics): user_topics += sign * dist user_topics /= len(tweets) # take average # # process postive or negatives # for sign, topic in zip(pos_neg, topics): # # if not strong, then ignore # # if sign > 0.6 and sign < 0.7: # # continue # # else decide the sign # sign = -1 if sign <= 0.65 else 1 # topic = topic_map[topic] # find target index # user_topics[topic] += sign # # average the topics # user_topics = [x / len(tweets) for x in user_topics] user_topics = user_topics.tolist() output.append([userid] + user_topics) # store the data print("Processed - {} IDs left".format(len(userids) - i - 1)) df = pd.DataFrame(output, columns=['ID', 'alt.atheism', 'comp.graphics', 'comp.os.ms-windows.misc', 'comp.sys.ibm.pc.hardware', 'comp.sys.mac.hardware', 'comp.windows.x', 'misc.forsale', 'rec.autos', 'rec.motorcycles', 'rec.sport.baseball', 'rec.sport.hockey', 'sci.crypt', 'sci.electronics', 'sci.med', 'sci.space', 'soc.religion.christian', 'talk.politics.guns', 'talk.politics.mideast', 'talk.politics.misc', 'talk.religion.misc']) df.to_csv("data.csv", index=False) print("Complete")
[ 1, 529, 9507, 29958, 1123, 2055, 1581, 29914, 4282, 29889, 2272, 13, 29937, 910, 934, 674, 2048, 263, 2566, 363, 1269, 310, 278, 18999, 297, 29349, 839, 11799, 13, 29937, 1128, 372, 1736, 13, 29937, 1152, 1269, 310, 278, 18999, 29892, 1303, 1549, 278, 7780, 1691, 13, 29937, 1065, 28048, 2073, 1904, 322, 7488, 293, 1904, 373, 963, 13, 29937, 8147, 263, 21097, 995, 363, 1438, 5680, 13, 29937, 3787, 278, 1121, 964, 263, 2566, 313, 26680, 367, 263, 11799, 934, 29897, 13, 13, 3166, 1904, 1053, 334, 13, 13, 29937, 4529, 11261, 7663, 2910, 13, 29937, 632, 29900, 632, 29896, 965, 29906, 3986, 29941, 632, 29946, 9651, 29945, 13, 29937, 590, 29918, 3332, 1199, 353, 6024, 12097, 414, 742, 525, 29879, 15277, 742, 525, 29879, 4011, 742, 525, 2674, 335, 1080, 742, 525, 20087, 1199, 742, 525, 720, 414, 2033, 13, 29937, 11261, 29918, 1958, 353, 426, 13, 29937, 418, 29900, 29901, 29871, 29945, 29892, 13, 29937, 418, 29896, 29901, 29871, 29900, 29892, 13, 29937, 418, 29906, 29901, 29871, 29900, 29892, 13, 29937, 418, 29941, 29901, 29871, 29900, 29892, 13, 29937, 418, 29946, 29901, 29871, 29900, 29892, 13, 29937, 418, 29945, 29901, 29871, 29900, 29892, 13, 29937, 418, 29953, 29901, 29871, 29945, 29892, 13, 29937, 418, 29955, 29901, 29871, 29906, 29892, 13, 29937, 418, 29947, 29901, 29871, 29906, 29892, 13, 29937, 418, 29929, 29901, 29871, 29906, 29892, 13, 29937, 418, 29896, 29900, 29901, 29871, 29906, 29892, 13, 29937, 418, 29896, 29896, 29901, 29871, 29896, 29892, 13, 29937, 418, 29896, 29906, 29901, 29871, 29896, 29892, 13, 29937, 418, 29896, 29941, 29901, 29871, 29896, 29892, 13, 29937, 418, 29896, 29946, 29901, 29871, 29896, 29892, 13, 29937, 418, 29896, 29945, 29901, 29871, 29941, 29892, 13, 29937, 418, 29896, 29953, 29901, 29871, 29946, 29892, 13, 29937, 418, 29896, 29955, 29901, 29871, 29946, 29892, 13, 29937, 418, 29896, 29947, 29901, 29871, 29946, 29892, 13, 29937, 418, 29896, 29929, 29901, 29871, 29941, 13, 29937, 500, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 565, 451, 2897, 29889, 2084, 29889, 9933, 703, 1272, 29889, 7638, 29908, 1125, 13, 4706, 396, 2254, 4733, 13, 4706, 1904, 29918, 29879, 7268, 353, 8125, 29903, 296, 2073, 580, 13, 4706, 1904, 29918, 13010, 353, 8125, 7031, 293, 580, 13, 4706, 396, 2254, 7780, 1691, 12205, 13, 4706, 7780, 1691, 29918, 1272, 353, 10518, 29889, 949, 29918, 7638, 29898, 359, 29889, 2084, 29889, 7122, 703, 636, 613, 376, 1469, 7032, 613, 376, 29873, 705, 1691, 29918, 29906, 29900, 29900, 29918, 5014, 287, 29889, 7638, 5783, 13, 4706, 396, 758, 5014, 599, 1426, 13, 4706, 7780, 1691, 29918, 1272, 3366, 29911, 16668, 3108, 353, 7780, 1691, 29918, 1272, 3366, 29911, 16668, 16862, 7302, 29898, 1457, 5014, 29897, 13, 4706, 396, 6230, 1962, 848, 13, 4706, 1962, 353, 5159, 13, 4706, 396, 679, 599, 1404, 18999, 13, 4706, 1404, 4841, 353, 7780, 1691, 29918, 1272, 3366, 2659, 3553, 16862, 13092, 580, 13, 4706, 396, 2318, 1609, 18999, 13, 4706, 848, 353, 7780, 1691, 29918, 1272, 29889, 27789, 29898, 3366, 2659, 3553, 20068, 13, 4706, 1596, 703, 4557, 310, 23481, 353, 6571, 1642, 4830, 29898, 2435, 29898, 1792, 4841, 4961, 13, 4706, 363, 474, 29892, 1404, 333, 297, 26985, 29898, 1792, 4841, 1125, 13, 9651, 1404, 29918, 3332, 1199, 353, 7442, 29889, 3298, 359, 29898, 29906, 29900, 29897, 13, 9651, 7780, 1691, 353, 848, 29889, 657, 29918, 2972, 29898, 1792, 333, 29897, 3366, 29911, 16668, 16862, 25027, 391, 580, 13, 9651, 1596, 703, 7583, 3553, 353, 6571, 448, 2973, 6571, 7780, 1691, 1642, 4830, 29898, 1792, 333, 29892, 7431, 29898, 29873, 705, 1691, 8243, 1095, 543, 1159, 13, 9651, 926, 29918, 10052, 353, 7442, 29889, 2378, 29898, 4299, 29918, 29879, 7268, 29889, 3389, 29898, 29873, 705, 1691, 876, 13, 9651, 1596, 14182, 29873, 6747, 573, 12610, 1230, 8459, 613, 1095, 543, 1159, 13, 9651, 23820, 353, 7442, 29889, 2378, 29898, 4299, 29918, 13010, 29889, 3389, 29898, 29873, 705, 1691, 876, 13, 9651, 1596, 14182, 29873, 7031, 293, 23892, 1159, 13, 9651, 926, 29918, 10052, 353, 926, 29918, 10052, 334, 29871, 29906, 448, 29871, 29896, 396, 3588, 515, 3464, 518, 29900, 29892, 29871, 29896, 29962, 304, 3464, 21069, 29896, 29892, 29871, 29896, 29962, 13, 9651, 23820, 353, 23820, 334, 29871, 29896, 29900, 29900, 396, 3588, 6976, 515, 518, 29900, 29892, 29871, 29896, 29962, 304, 518, 29900, 29892, 29871, 29896, 29900, 29900, 29962, 13, 9651, 363, 1804, 29892, 1320, 297, 14319, 29898, 1066, 29918, 10052, 29892, 23820, 1125, 13, 18884, 1404, 29918, 3332, 1199, 4619, 1804, 334, 1320, 13, 9651, 1404, 29918, 3332, 1199, 847, 29922, 7431, 29898, 29873, 705, 1691, 29897, 396, 2125, 6588, 13, 9651, 396, 396, 1889, 1400, 573, 470, 3480, 5056, 13, 9651, 396, 363, 1804, 29892, 11261, 297, 14319, 29898, 1066, 29918, 10052, 29892, 23820, 1125, 13, 9651, 396, 268, 396, 565, 451, 4549, 29892, 769, 11455, 13, 9651, 396, 268, 396, 565, 1804, 1405, 29871, 29900, 29889, 29953, 322, 1804, 529, 29871, 29900, 29889, 29955, 29901, 13, 9651, 396, 268, 396, 268, 6773, 13, 9651, 396, 268, 396, 1683, 11097, 278, 1804, 13, 9651, 396, 268, 1804, 353, 448, 29896, 565, 1804, 5277, 29871, 29900, 29889, 29953, 29945, 1683, 29871, 29896, 13, 9651, 396, 268, 11261, 353, 11261, 29918, 1958, 29961, 13010, 29962, 396, 1284, 3646, 2380, 13, 9651, 396, 268, 1404, 29918, 3332, 1199, 29961, 13010, 29962, 4619, 1804, 13, 9651, 396, 396, 6588, 278, 23820, 13, 9651, 396, 1404, 29918, 3332, 1199, 353, 518, 29916, 847, 7431, 29898, 29873, 705, 1691, 29897, 363, 921, 297, 1404, 29918, 3332, 1199, 29962, 13, 9651, 1404, 29918, 3332, 1199, 353, 1404, 29918, 3332, 1199, 29889, 25027, 391, 580, 13, 9651, 1962, 29889, 4397, 4197, 1792, 333, 29962, 718, 1404, 29918, 3332, 1199, 29897, 396, 3787, 278, 848, 13, 9651, 1596, 703, 7032, 287, 448, 6571, 23481, 2175, 1642, 4830, 29898, 2435, 29898, 1792, 4841, 29897, 448, 474, 448, 29871, 29896, 876, 13, 4706, 4489, 353, 10518, 29889, 17271, 29898, 4905, 29892, 4341, 29922, 1839, 1367, 742, 13, 462, 462, 965, 525, 1997, 29889, 271, 354, 1608, 742, 13, 462, 462, 965, 525, 2388, 29889, 6420, 742, 13, 462, 462, 965, 525, 2388, 29889, 359, 29889, 1516, 29899, 10499, 29889, 29885, 10669, 742, 13, 462, 462, 965, 525, 2388, 29889, 9675, 29889, 29690, 29889, 6739, 29889, 6800, 2519, 742, 13, 462, 462, 965, 525, 2388, 29889, 9675, 29889, 8628, 29889, 6800, 2519, 742, 13, 462, 462, 965, 525, 2388, 29889, 10499, 29889, 29916, 742, 13, 462, 462, 965, 525, 29885, 10669, 29889, 29888, 943, 744, 742, 13, 462, 462, 965, 525, 3757, 29889, 1300, 359, 742, 13, 462, 462, 965, 525, 3757, 29889, 14817, 272, 1270, 7799, 742, 13, 462, 462, 965, 525, 3757, 29889, 29879, 637, 29889, 3188, 2135, 742, 13, 462, 462, 965, 525, 3757, 29889, 29879, 637, 29889, 1251, 384, 1032, 742, 13, 462, 462, 965, 525, 26167, 29889, 29883, 4641, 742, 13, 462, 462, 965, 525, 26167, 29889, 15436, 1617, 1199, 742, 13, 462, 462, 965, 525, 26167, 29889, 2168, 742, 13, 462, 462, 965, 525, 26167, 29889, 3493, 742, 13, 462, 462, 965, 525, 29879, 542, 29889, 2674, 335, 291, 29889, 305, 2021, 713, 742, 13, 462, 462, 965, 525, 29873, 2235, 29889, 20087, 1199, 29889, 29887, 6948, 742, 13, 462, 462, 965, 525, 29873, 2235, 29889, 20087, 1199, 29889, 29885, 680, 579, 742, 13, 462, 462, 965, 525, 29873, 2235, 29889, 20087, 1199, 29889, 29885, 10669, 742, 13, 462, 462, 965, 525, 29873, 2235, 29889, 2674, 335, 291, 29889, 29885, 10669, 11287, 13, 4706, 4489, 29889, 517, 29918, 7638, 703, 1272, 29889, 7638, 613, 2380, 29922, 8824, 29897, 13, 4706, 1596, 703, 17813, 1159, 2 ]
post/admin.py
bramvankooten/dienst2
1
164430
from __future__ import unicode_literals from django.contrib import admin from post.models import * @admin.register(Category) class CategoryAdmin(admin.ModelAdmin): """CategoryAdmin""" search_fields = ("name",) list_display = ("name", "grouping", "counting") @admin.register(Contact) class SourceAdmin(admin.ModelAdmin): """SourceAdmin""" search_fields = ("name",) list_filter = ("location",) list_display = ("name", "location") @admin.register(Item) class ItemAdmin(admin.ModelAdmin): """ItemAdmin""" date_hierarchy = "date" search_fields = ("description",) list_filter = ("sender", "recipient", "category") list_display = ("description", "date", "sender", "recipient", "category")
[ 1, 515, 4770, 29888, 9130, 1649, 1053, 29104, 29918, 20889, 1338, 13, 13, 3166, 9557, 29889, 21570, 1053, 4113, 13, 13, 3166, 1400, 29889, 9794, 1053, 334, 13, 13, 13, 29992, 6406, 29889, 9573, 29898, 10900, 29897, 13, 1990, 17943, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 9995, 10900, 12754, 15945, 29908, 13, 13, 1678, 2740, 29918, 9621, 353, 4852, 978, 613, 29897, 13, 1678, 1051, 29918, 4990, 353, 4852, 978, 613, 376, 2972, 292, 613, 376, 2798, 292, 1159, 13, 13, 13, 29992, 6406, 29889, 9573, 29898, 13443, 29897, 13, 1990, 7562, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 9995, 4435, 12754, 15945, 29908, 13, 13, 1678, 2740, 29918, 9621, 353, 4852, 978, 613, 29897, 13, 1678, 1051, 29918, 4572, 353, 4852, 5479, 613, 29897, 13, 1678, 1051, 29918, 4990, 353, 4852, 978, 613, 376, 5479, 1159, 13, 13, 13, 29992, 6406, 29889, 9573, 29898, 2001, 29897, 13, 1990, 10976, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 9995, 2001, 12754, 15945, 29908, 13, 13, 1678, 2635, 29918, 29882, 631, 12040, 353, 376, 1256, 29908, 13, 1678, 2740, 29918, 9621, 353, 4852, 8216, 613, 29897, 13, 1678, 1051, 29918, 4572, 353, 4852, 15452, 613, 376, 4361, 29886, 993, 613, 376, 7320, 1159, 13, 1678, 1051, 29918, 4990, 353, 4852, 8216, 613, 376, 1256, 613, 376, 15452, 613, 376, 4361, 29886, 993, 613, 376, 7320, 1159, 13, 2 ]
gollahalli_cms/welcome/tests/test_apps.py
akshaybabloo/gollahalli-cms
1
1606831
<filename>gollahalli_cms/welcome/tests/test_apps.py<gh_stars>1-10 from django.apps import apps from django.test import TestCase from welcome.apps import WelcomeConfig class WelcomeConfigTests(TestCase): """ Test case for ``EditorConfig`` """ def test_welcome_config(self): """ Testing ``EditorConfig`` class. """ app = WelcomeConfig self.assertEqual(app.name, 'welcome') self.assertEqual(apps.get_app_config('welcome').name, 'welcome')
[ 1, 529, 9507, 29958, 29887, 324, 433, 4077, 492, 29918, 29883, 1516, 29914, 20466, 2763, 29914, 21150, 29914, 1688, 29918, 13371, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 9557, 29889, 13371, 1053, 11446, 13, 3166, 9557, 29889, 1688, 1053, 4321, 8259, 13, 13, 3166, 12853, 29889, 13371, 1053, 21829, 3991, 13, 13, 13, 1990, 21829, 3991, 24376, 29898, 3057, 8259, 1125, 13, 1678, 9995, 13, 1678, 4321, 1206, 363, 4954, 15280, 3991, 16159, 13, 1678, 9995, 13, 13, 1678, 822, 1243, 29918, 20466, 2763, 29918, 2917, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 4321, 292, 4954, 15280, 3991, 16159, 770, 29889, 13, 4706, 9995, 13, 4706, 623, 353, 21829, 3991, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 932, 29889, 978, 29892, 525, 20466, 2763, 1495, 13, 4706, 1583, 29889, 9294, 9843, 29898, 13371, 29889, 657, 29918, 932, 29918, 2917, 877, 20466, 2763, 2824, 978, 29892, 525, 20466, 2763, 1495, 13, 2 ]
main.py
jakebailey/pyright-action-test
0
118715
<reponame>jakebailey/pyright-action-test<filename>main.py from typing import List x: List[int] = [] x.append(1234) x.append("not a number")
[ 1, 529, 276, 1112, 420, 29958, 29926, 1296, 2291, 15168, 29914, 2272, 1266, 29899, 2467, 29899, 1688, 29966, 9507, 29958, 3396, 29889, 2272, 13, 3166, 19229, 1053, 2391, 13, 13, 13, 29916, 29901, 2391, 29961, 524, 29962, 353, 5159, 13, 13, 29916, 29889, 4397, 29898, 29896, 29906, 29941, 29946, 29897, 13, 29916, 29889, 4397, 703, 1333, 263, 1353, 1159, 13, 2 ]
cache.py
ivclab/Label_Reuse_Semisupervised
2
53497
import torch from torch import nn class Cache(nn.Module): def __init__(self, n_entries, entry_size): super(Cache, self).__init__() self.n_entries = n_entries self.entry_size = entry_size self.register_buffer( name='idx_sparse', tensor=torch.zeros((n_entries, entry_size), dtype=torch.long) ) self.register_buffer( name='value_sparse', tensor=torch.zeros((n_entries, entry_size)) ) def forward(self): return def read(self, idx): return self.idx_sparse[idx], self.value_sparse[idx] def write(self, idx, idx_sparse, value_sparse): self.idx_sparse[idx] = idx_sparse self.value_sparse[idx] = value_sparse return
[ 1, 1053, 4842, 305, 29871, 13, 3166, 4842, 305, 1053, 302, 29876, 29871, 13, 13, 1990, 28540, 29898, 15755, 29889, 7355, 1125, 29871, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 302, 29918, 26586, 29892, 6251, 29918, 2311, 1125, 29871, 13, 4706, 2428, 29898, 10408, 29892, 1583, 467, 1649, 2344, 1649, 580, 29871, 13, 308, 13, 4706, 1583, 29889, 29876, 29918, 26586, 353, 302, 29918, 26586, 29871, 13, 4706, 1583, 29889, 8269, 29918, 2311, 353, 6251, 29918, 2311, 29871, 13, 4706, 1583, 29889, 9573, 29918, 9040, 29898, 13, 9651, 1024, 2433, 13140, 29918, 29879, 5510, 742, 29871, 13, 9651, 12489, 29922, 7345, 305, 29889, 3298, 359, 3552, 29876, 29918, 26586, 29892, 6251, 29918, 2311, 511, 26688, 29922, 7345, 305, 29889, 5426, 29897, 13, 4706, 1723, 13, 4706, 1583, 29889, 9573, 29918, 9040, 29898, 13, 9651, 1024, 2433, 1767, 29918, 29879, 5510, 742, 29871, 13, 9651, 12489, 29922, 7345, 305, 29889, 3298, 359, 3552, 29876, 29918, 26586, 29892, 6251, 29918, 2311, 876, 13, 4706, 1723, 13, 268, 13, 1678, 822, 6375, 29898, 1311, 1125, 29871, 13, 4706, 736, 29871, 13, 308, 13, 1678, 822, 1303, 29898, 1311, 29892, 22645, 1125, 29871, 13, 4706, 736, 1583, 29889, 13140, 29918, 29879, 5510, 29961, 13140, 1402, 1583, 29889, 1767, 29918, 29879, 5510, 29961, 13140, 29962, 29871, 13, 268, 13, 1678, 822, 2436, 29898, 1311, 29892, 22645, 29892, 22645, 29918, 29879, 5510, 29892, 995, 29918, 29879, 5510, 1125, 29871, 13, 4706, 1583, 29889, 13140, 29918, 29879, 5510, 29961, 13140, 29962, 353, 22645, 29918, 29879, 5510, 29871, 13, 4706, 1583, 29889, 1767, 29918, 29879, 5510, 29961, 13140, 29962, 353, 995, 29918, 29879, 5510, 29871, 13, 4706, 736, 29871, 2 ]
ldbcache.py
Exahilosys/ldbcache
0
39112
import pathing import collections import itertools import copy __all__ = ('Tree', 'Cache', 'Entry', 'EntryCache', 'RowCache', 'BulkRowCache', 'AlikeBulkRowCache') class Tree(dict): """ Simple **BTree** implementation. """ __slots__ = () def _make(self): """ Create a subtree; called with no arguments. """ return () def _crawl(self, keys, stop = True, fail = False): """ Reach the node corresponding to ``keys``. If set to not ``stop``, create subtrees. Yield are nodes along the path. """ node = self keys = iter(keys) while True: yield node try: key = next(keys) except StopIteration: break try: node = node[key] except KeyError: if stop: if fail: raise return args = self._make() node[key] = node = self.__class__(*args) def select(self, keys): """ Get the value corresponding to ``keys``. """ (*trees, value) = self._crawl(keys, fail = True) return value def create(self, keys, value): """ Place a value at ``keys``, creating subtrees. """ (*keys, key) = keys (*trees, tree) = self._crawl(keys, stop = False) tree[key] = value def _brush(self, keys): """ Remove the final value and all empty subtrees along ``keys``. """ trees = self._crawl(keys) pairs = tuple(zip(trees, keys)) for (tree, key) in reversed(pairs): yield tree.pop(key) if tree: break def delete(self, keys): """ Remove and return the value at ``keys``, deleting empty subtrees. """ (value, *trees) = self._brush(keys) return value def switch(self, old, new): """ Move the value at ``old`` to ``new``, deleting and creating subtrees. """ node = Tree.delete(self, old) Tree.create(self, new, node) return node class Cache(Tree): """ Same as :class:`.Tree`, but declaring its expected depth allows for floor traversing. """ __slots__ = ('_depth',) def __init__(self, depth): super().__init__() self._depth = depth @property def depth(self): """ Get the expected depth. """ return self._depth def _make(self): depth = self._depth - 1 return (depth,) def traverse(self): """ Yield ``(keys, value)`` pairs. """ yield from pathing.derive(self, min = self._depth, max = self._depth) def entries(self): """ Yield all floor values. """ for (keys, value) in self.traverse(): yield value def __repr__(self): entries = tuple(self.entries()) size = len(entries) return f'<Cache({size})>' class Entry: """ :class:`dict`\-like attribute-accessible and read-only representation of data. .. code-block:: py >>> entry = Entry({'name': 'Pup', 'age': 6}) >>> entry.name 'Pup' >>> list(entry) ['name', 'age'] """ __slots__ = ('__data__',) def __init__(self, data = None, direct = False): self.__data__ = {} if data is None else data if direct else data.copy() def __getitem__(self, key): return self.__data__[key] def __getattr__(self, key): try: value = self[key] except KeyError as error: raise AttributeError(*error.args) from None return value def __copy__(self): data = self.__data__.copy() fake = self.__class__(data, True) return fake def __deepcopy__(self, memo): fake = copy.copy(self) data = fake.__data__ for (key, value) in data.items(): data[key] = copy.deepcopy(value) return fake def __iter__(self): yield from self.__data__.keys() def __repr__(self): items = self.__data__.items() make = '{0}={1}'.format show = '|'.join(itertools.starmap(make, items)) return f'<{self.__class__.__name__}({show})>' def _create(value): """ Create or return an entry from the value. """ return value if isinstance(value, Entry) else Entry(value) def _modify(entry, data): """ Modify an :class:`.Entry` with the data. """ entry.__data__.update(data) class EntryCache(Cache): """ Store, create and modify :class:`.Entry` instances. """ __slots__ = ('_manage',) _Asset = collections.namedtuple('Asset', 'create modify') def __init__(self, depth, create = _create, modify = _modify): super().__init__(depth) self._manage = self._Asset(create, modify) def _make(self, *args, **kwargs): args = super()._make() return (*args, self._manage.create, self._manage.modify) def create(self, keys, data): """ Create and put an entry at ``keys``. """ entry = self._manage.create(data) super().create(keys, entry) return entry def modify(self, keys, data): """ Modify the entry at ``keys``\'s with ``data`` and return ``(old, new)``. """ entry = Tree.select(self, keys) dummy = copy.deepcopy(entry) self._manage.modify(entry, data) return (dummy, entry) class RowCache(EntryCache): """ Knowing primary allows for better handling. """ __slots__ = ('_primary',) def __init__(self, primary): super().__init__(len(primary)) self._primary = primary @property def primary(self): """ Get the primary keys. """ return self._primary def _make(self): primary = self._primary[:1] return (primary,) def query(self, data): """ Get all available values against the ``data``\'s primary keys. """ store = [] try: store.extend(data[key] for key in self._primary) except KeyError: pass return tuple(store) def create(self, data): """ Create and put an entry in the spot designated by its primary keys. """ keys = self.query(data) result = super().create(keys, data) return result def modify(self, keys, data): """ Modify an entry and change its spot if necessary. """ result = super().modify(keys, data) new = self.query(data) size = len(new) old = keys[:size] if not tuple(old) == new: super().switch(old, new) return result class BulkRowCache(RowCache): """ Similar to its base, but data inputs should be arrays of data. """ __slots__ = () def create(self, data): """ Create and return all entries. """ results = [] for data in data: result = super().create(data) results.append(result) return tuple(results) def modify(self, keys, data): """ Modify all entries at ``keys`` and change their spot if necessary. The keys don't need to be a full path to specific entries. .. tip:: - Assume two entries exist at ``(0, 1, 2)`` and ``(0, 1, 4)``. - Updating ``(0, 1)`` requires ``data`` to be a two-item array. - That array should contain the respective data in order. """ node = super().select(keys) depth = self._depth - len(keys) items = pathing.derive(node, max = depth, min = depth) try: (subkeys, _entries) = zip(*items) except ValueError: subkeys = () results = [] for (subkeys, data) in zip(subkeys, data): curkeys = (*keys, *subkeys) result = super().modify(curkeys, data) results.append(result) return results class SoftBulkRowCache(BulkRowCache): """ Lookup methods return an array of entries, or empty instead of failing. """ __slots__ = () @classmethod def _flat(cls, node): """ Turn the node into either a tree's entries or a single-item array. """ return tuple(node.entries()) if isinstance(node, cls) else (node,) def select(self, keys): """ Refer to :meth:`.Tree.select`. """ try: node = super().select(keys) except KeyError: result = () else: result = self._flat(node) return result def modify(self, keys, data): """ Refer to :meth:`.BulkRowCache.modify`. """ try: result = super().modify(keys, data) except KeyError: result = () return result def delete(self, keys): """ Refer to :meth:`.Tree.delete`. """ try: node = super().delete(keys) except KeyError: result = () else: result = self._flat(node) return result class AlikeBulkRowCache(SoftBulkRowCache): """ Active methods accept ``(keys, data)`` for consistency. """ __slots__ = () def create(self, keys, data): """ ``data`` is used, ``keys`` is not. Refer to :meth:`.BulkRowCache.create`. """ result = super().create(data) return result def modify(self, keys, data): """ ``data`` and ``keys`` are used. Refer to :meth:`.SoftBulkRowCache.modify`. """ result = super().modify(keys, data) return result def delete(self, keys, data): """ ``keys`` is used, ``data`` is not. Refer to :meth:`.SoftBulkRowCache.delete`. """ result = super().delete(keys) return result
[ 1, 1053, 2224, 292, 13, 5215, 16250, 13, 5215, 4256, 8504, 13, 5215, 3509, 13, 13, 13, 1649, 497, 1649, 353, 6702, 9643, 742, 525, 10408, 742, 525, 9634, 742, 525, 9634, 10408, 742, 525, 4301, 10408, 742, 525, 29933, 24456, 4301, 10408, 742, 13, 965, 525, 29909, 4561, 29933, 24456, 4301, 10408, 1495, 13, 13, 13, 1990, 15472, 29898, 8977, 1125, 13, 13, 1678, 9995, 13, 1678, 12545, 3579, 29933, 9643, 1068, 5314, 29889, 13, 1678, 9995, 13, 13, 1678, 4770, 2536, 1862, 1649, 353, 3861, 13, 13, 1678, 822, 903, 5675, 29898, 1311, 1125, 13, 13, 4706, 9995, 13, 4706, 6204, 263, 1014, 8336, 29936, 2000, 411, 694, 6273, 29889, 13, 4706, 9995, 13, 13, 4706, 736, 3861, 13, 13, 1678, 822, 903, 29883, 1610, 29880, 29898, 1311, 29892, 6611, 29892, 5040, 353, 5852, 29892, 4418, 353, 7700, 1125, 13, 13, 4706, 9995, 13, 4706, 830, 496, 278, 2943, 6590, 304, 4954, 8149, 29952, 1412, 13, 13, 4706, 960, 731, 304, 451, 4954, 9847, 29952, 1673, 1653, 1014, 28737, 29889, 13, 13, 4706, 612, 969, 526, 7573, 3412, 278, 2224, 29889, 13, 4706, 9995, 13, 13, 4706, 2943, 353, 1583, 13, 4706, 6611, 353, 4256, 29898, 8149, 29897, 13, 4706, 1550, 5852, 29901, 13, 9651, 7709, 2943, 13, 9651, 1018, 29901, 13, 18884, 1820, 353, 2446, 29898, 8149, 29897, 13, 9651, 5174, 22303, 13463, 362, 29901, 13, 18884, 2867, 13, 9651, 1018, 29901, 13, 18884, 2943, 353, 2943, 29961, 1989, 29962, 13, 9651, 5174, 7670, 2392, 29901, 13, 18884, 565, 5040, 29901, 13, 462, 1678, 565, 4418, 29901, 13, 462, 4706, 12020, 13, 462, 1678, 736, 13, 18884, 6389, 353, 1583, 3032, 5675, 580, 13, 18884, 2943, 29961, 1989, 29962, 353, 2943, 353, 1583, 17255, 1990, 1649, 10456, 5085, 29897, 13, 13, 1678, 822, 1831, 29898, 1311, 29892, 6611, 1125, 13, 13, 4706, 9995, 13, 4706, 3617, 278, 995, 6590, 304, 4954, 8149, 29952, 1412, 13, 4706, 9995, 13, 13, 4706, 3070, 28737, 29892, 995, 29897, 353, 1583, 3032, 29883, 1610, 29880, 29898, 8149, 29892, 4418, 353, 5852, 29897, 13, 4706, 736, 995, 13, 13, 1678, 822, 1653, 29898, 1311, 29892, 6611, 29892, 995, 1125, 13, 13, 4706, 9995, 13, 4706, 15484, 263, 995, 472, 4954, 8149, 29952, 1673, 4969, 1014, 28737, 29889, 13, 4706, 9995, 13, 13, 4706, 3070, 8149, 29892, 1820, 29897, 353, 6611, 13, 4706, 3070, 28737, 29892, 5447, 29897, 353, 1583, 3032, 29883, 1610, 29880, 29898, 8149, 29892, 5040, 353, 7700, 29897, 13, 4706, 5447, 29961, 1989, 29962, 353, 995, 13, 13, 1678, 822, 903, 1182, 1878, 29898, 1311, 29892, 6611, 1125, 13, 13, 4706, 9995, 13, 4706, 15154, 278, 2186, 995, 322, 599, 4069, 1014, 28737, 3412, 4954, 8149, 29952, 1412, 13, 4706, 9995, 13, 13, 4706, 10697, 353, 1583, 3032, 29883, 1610, 29880, 29898, 8149, 29897, 13, 4706, 11000, 353, 18761, 29898, 7554, 29898, 28737, 29892, 6611, 876, 13, 4706, 363, 313, 8336, 29892, 1820, 29897, 297, 18764, 287, 29898, 29886, 7121, 1125, 13, 9651, 7709, 5447, 29889, 7323, 29898, 1989, 29897, 13, 9651, 565, 5447, 29901, 13, 18884, 2867, 13, 13, 1678, 822, 5217, 29898, 1311, 29892, 6611, 1125, 13, 13, 4706, 9995, 13, 4706, 15154, 322, 736, 278, 995, 472, 4954, 8149, 29952, 1673, 21228, 4069, 1014, 28737, 29889, 13, 4706, 9995, 13, 13, 4706, 313, 1767, 29892, 334, 28737, 29897, 353, 1583, 3032, 1182, 1878, 29898, 8149, 29897, 13, 13, 4706, 736, 995, 13, 13, 1678, 822, 4607, 29898, 1311, 29892, 2030, 29892, 716, 1125, 13, 13, 4706, 9995, 13, 4706, 25249, 278, 995, 472, 4954, 1025, 16159, 304, 4954, 1482, 29952, 1673, 21228, 322, 4969, 1014, 28737, 29889, 13, 4706, 9995, 13, 13, 4706, 2943, 353, 15472, 29889, 8143, 29898, 1311, 29892, 2030, 29897, 13, 4706, 15472, 29889, 3258, 29898, 1311, 29892, 716, 29892, 2943, 29897, 13, 13, 4706, 736, 2943, 13, 13, 13, 1990, 28540, 29898, 9643, 1125, 13, 13, 1678, 9995, 13, 1678, 19491, 408, 584, 1990, 29901, 1412, 9643, 1673, 541, 25136, 967, 3806, 10809, 6511, 363, 11904, 13, 1678, 13310, 292, 29889, 13, 1678, 9995, 13, 13, 1678, 4770, 2536, 1862, 1649, 353, 6702, 29918, 19488, 742, 29897, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 10809, 1125, 13, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 13, 4706, 1583, 3032, 19488, 353, 10809, 13, 13, 1678, 732, 6799, 13, 1678, 822, 10809, 29898, 1311, 1125, 13, 13, 4706, 9995, 13, 4706, 3617, 278, 3806, 10809, 29889, 13, 4706, 9995, 13, 13, 4706, 736, 1583, 3032, 19488, 13, 13, 1678, 822, 903, 5675, 29898, 1311, 1125, 13, 13, 4706, 10809, 353, 1583, 3032, 19488, 448, 29871, 29896, 13, 13, 4706, 736, 313, 19488, 29892, 29897, 13, 13, 1678, 822, 29370, 29898, 1311, 1125, 13, 13, 4706, 9995, 13, 4706, 612, 969, 4954, 29898, 8149, 29892, 995, 3569, 29952, 11000, 29889, 13, 4706, 9995, 13, 13, 4706, 7709, 515, 2224, 292, 29889, 672, 573, 29898, 1311, 29892, 1375, 353, 1583, 3032, 19488, 29892, 4236, 353, 1583, 3032, 19488, 29897, 13, 13, 1678, 822, 9976, 29898, 1311, 1125, 13, 13, 4706, 9995, 13, 4706, 612, 969, 599, 11904, 1819, 29889, 13, 4706, 9995, 13, 13, 4706, 363, 313, 8149, 29892, 995, 29897, 297, 1583, 29889, 3018, 3901, 7295, 13, 13, 9651, 7709, 995, 13, 13, 1678, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 13, 4706, 9976, 353, 18761, 29898, 1311, 29889, 26586, 3101, 13, 4706, 2159, 353, 7431, 29898, 26586, 29897, 13, 13, 4706, 736, 285, 29915, 29966, 10408, 3319, 2311, 1800, 16299, 13, 13, 13, 1990, 28236, 29901, 13, 13, 1678, 9995, 13, 1678, 584, 1990, 18078, 8977, 29952, 29905, 29899, 4561, 5352, 29899, 5943, 1821, 322, 1303, 29899, 6194, 8954, 310, 13, 1678, 848, 29889, 13, 13, 1678, 6317, 775, 29899, 1271, 1057, 11451, 13, 13, 4706, 8653, 6251, 353, 28236, 3319, 29915, 978, 2396, 525, 29925, 786, 742, 525, 482, 2396, 29871, 29953, 1800, 13, 4706, 8653, 6251, 29889, 978, 13, 4706, 525, 29925, 786, 29915, 13, 4706, 8653, 1051, 29898, 8269, 29897, 13, 4706, 6024, 978, 742, 525, 482, 2033, 13, 1678, 9995, 13, 13, 1678, 4770, 2536, 1862, 1649, 353, 6702, 1649, 1272, 1649, 742, 29897, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 848, 353, 6213, 29892, 1513, 353, 7700, 1125, 13, 13, 4706, 1583, 17255, 1272, 1649, 353, 6571, 565, 848, 338, 6213, 1683, 848, 565, 1513, 1683, 848, 29889, 8552, 580, 13, 13, 1678, 822, 4770, 657, 667, 12035, 1311, 29892, 1820, 1125, 13, 13, 4706, 736, 1583, 17255, 1272, 1649, 29961, 1989, 29962, 13, 13, 1678, 822, 4770, 657, 5552, 12035, 1311, 29892, 1820, 1125, 13, 13, 4706, 1018, 29901, 13, 9651, 995, 353, 1583, 29961, 1989, 29962, 13, 4706, 5174, 7670, 2392, 408, 1059, 29901, 13, 9651, 12020, 23833, 2392, 10456, 2704, 29889, 5085, 29897, 515, 6213, 13, 13, 4706, 736, 995, 13, 13, 1678, 822, 4770, 8552, 12035, 1311, 1125, 13, 13, 4706, 848, 353, 1583, 17255, 1272, 26914, 8552, 580, 13, 4706, 25713, 353, 1583, 17255, 1990, 12035, 1272, 29892, 5852, 29897, 13, 13, 4706, 736, 25713, 13, 13, 1678, 822, 4770, 24535, 8552, 12035, 1311, 29892, 2626, 29877, 1125, 13, 13, 4706, 25713, 353, 3509, 29889, 8552, 29898, 1311, 29897, 13, 4706, 848, 353, 25713, 17255, 1272, 1649, 13, 4706, 363, 313, 1989, 29892, 995, 29897, 297, 848, 29889, 7076, 7295, 13, 9651, 848, 29961, 1989, 29962, 353, 3509, 29889, 24535, 8552, 29898, 1767, 29897, 13, 13, 4706, 736, 25713, 13, 13, 1678, 822, 4770, 1524, 12035, 1311, 1125, 13, 13, 4706, 7709, 515, 1583, 17255, 1272, 26914, 8149, 580, 13, 13, 1678, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 13, 4706, 4452, 353, 1583, 17255, 1272, 26914, 7076, 580, 13, 4706, 1207, 353, 22372, 29900, 29913, 3790, 29896, 29913, 4286, 4830, 13, 4706, 1510, 353, 525, 29989, 4286, 7122, 29898, 1524, 8504, 29889, 8508, 1958, 29898, 5675, 29892, 4452, 876, 13, 13, 4706, 736, 285, 29915, 29966, 29912, 1311, 17255, 1990, 1649, 17255, 978, 1649, 2119, 29912, 4294, 1800, 16299, 13, 13, 13, 1753, 903, 3258, 29898, 1767, 1125, 13, 13, 1678, 9995, 13, 1678, 6204, 470, 736, 385, 6251, 515, 278, 995, 29889, 13, 1678, 9995, 13, 13, 1678, 736, 995, 565, 338, 8758, 29898, 1767, 29892, 28236, 29897, 1683, 28236, 29898, 1767, 29897, 13, 13, 13, 1753, 903, 1545, 1598, 29898, 8269, 29892, 848, 1125, 13, 13, 1678, 9995, 13, 1678, 3382, 1598, 385, 584, 1990, 29901, 1412, 9634, 29952, 411, 278, 848, 29889, 13, 1678, 9995, 13, 13, 1678, 6251, 17255, 1272, 26914, 5504, 29898, 1272, 29897, 13, 13, 13, 1990, 28236, 10408, 29898, 10408, 1125, 13, 13, 1678, 9995, 13, 1678, 14491, 29892, 1653, 322, 6623, 584, 1990, 29901, 1412, 9634, 29952, 8871, 29889, 13, 1678, 9995, 13, 13, 1678, 4770, 2536, 1862, 1649, 353, 6702, 29918, 1171, 482, 742, 29897, 13, 13, 1678, 903, 26405, 353, 16250, 29889, 17514, 23583, 877, 26405, 742, 525, 3258, 6623, 1495, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 10809, 29892, 1653, 353, 903, 3258, 29892, 6623, 353, 903, 1545, 1598, 1125, 13, 13, 4706, 2428, 2141, 1649, 2344, 12035, 19488, 29897, 13, 4706, 1583, 3032, 1171, 482, 353, 1583, 3032, 26405, 29898, 3258, 29892, 6623, 29897, 13, 13, 1678, 822, 903, 5675, 29898, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 13, 4706, 6389, 353, 2428, 2141, 29918, 5675, 580, 13, 13, 4706, 736, 3070, 5085, 29892, 1583, 3032, 1171, 482, 29889, 3258, 29892, 1583, 3032, 1171, 482, 29889, 1545, 1598, 29897, 13, 13, 1678, 822, 1653, 29898, 1311, 29892, 6611, 29892, 848, 1125, 13, 13, 4706, 9995, 13, 4706, 6204, 322, 1925, 385, 6251, 472, 4954, 8149, 29952, 1412, 13, 4706, 9995, 13, 13, 4706, 6251, 353, 1583, 3032, 1171, 482, 29889, 3258, 29898, 1272, 29897, 13, 4706, 2428, 2141, 3258, 29898, 8149, 29892, 6251, 29897, 13, 13, 4706, 736, 6251, 13, 13, 1678, 822, 6623, 29898, 1311, 29892, 6611, 29892, 848, 1125, 13, 13, 4706, 9995, 13, 4706, 3382, 1598, 278, 6251, 472, 4954, 8149, 16159, 20333, 29879, 411, 4954, 1272, 16159, 322, 736, 4954, 29898, 1025, 29892, 716, 3569, 1412, 13, 4706, 9995, 13, 13, 4706, 6251, 353, 15472, 29889, 2622, 29898, 1311, 29892, 6611, 29897, 13, 4706, 20254, 353, 3509, 29889, 24535, 8552, 29898, 8269, 29897, 13, 4706, 1583, 3032, 1171, 482, 29889, 1545, 1598, 29898, 8269, 29892, 848, 29897, 13, 13, 4706, 736, 313, 29881, 11770, 29892, 6251, 29897, 13, 13, 13, 1990, 11438, 10408, 29898, 9634, 10408, 1125, 13, 13, 1678, 9995, 13, 1678, 19320, 292, 7601, 6511, 363, 2253, 11415, 29889, 13, 1678, 9995, 13, 13, 1678, 4770, 2536, 1862, 1649, 353, 6702, 29918, 16072, 742, 29897, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 7601, 1125, 13, 13, 4706, 2428, 2141, 1649, 2344, 12035, 2435, 29898, 16072, 876, 13, 13, 4706, 1583, 3032, 16072, 353, 7601, 13, 13, 1678, 732, 6799, 13, 1678, 822, 7601, 29898, 1311, 1125, 13, 13, 4706, 9995, 13, 4706, 3617, 278, 7601, 6611, 29889, 13, 4706, 9995, 13, 13, 4706, 736, 1583, 3032, 16072, 13, 13, 1678, 822, 903, 5675, 29898, 1311, 1125, 13, 13, 4706, 7601, 353, 1583, 3032, 16072, 7503, 29896, 29962, 13, 13, 4706, 736, 313, 16072, 29892, 29897, 13, 13, 1678, 822, 2346, 29898, 1311, 29892, 848, 1125, 13, 13, 4706, 9995, 13, 4706, 3617, 599, 3625, 1819, 2750, 278, 4954, 1272, 16159, 20333, 29879, 7601, 6611, 29889, 13, 4706, 9995, 13, 13, 4706, 3787, 353, 5159, 13, 13, 4706, 1018, 29901, 13, 9651, 3787, 29889, 21843, 29898, 1272, 29961, 1989, 29962, 363, 1820, 297, 1583, 3032, 16072, 29897, 13, 4706, 5174, 7670, 2392, 29901, 13, 9651, 1209, 13, 13, 4706, 736, 18761, 29898, 8899, 29897, 13, 13, 1678, 822, 1653, 29898, 1311, 29892, 848, 1125, 13, 13, 4706, 9995, 13, 4706, 6204, 322, 1925, 385, 6251, 297, 278, 9758, 25373, 491, 967, 7601, 6611, 29889, 13, 4706, 9995, 13, 13, 4706, 6611, 353, 1583, 29889, 1972, 29898, 1272, 29897, 13, 4706, 1121, 353, 2428, 2141, 3258, 29898, 8149, 29892, 848, 29897, 13, 13, 4706, 736, 1121, 13, 13, 1678, 822, 6623, 29898, 1311, 29892, 6611, 29892, 848, 1125, 13, 13, 4706, 9995, 13, 4706, 3382, 1598, 385, 6251, 322, 1735, 967, 9758, 565, 5181, 29889, 13, 4706, 9995, 13, 13, 4706, 1121, 353, 2428, 2141, 1545, 1598, 29898, 8149, 29892, 848, 29897, 13, 13, 4706, 716, 353, 1583, 29889, 1972, 29898, 1272, 29897, 13, 4706, 2159, 353, 7431, 29898, 1482, 29897, 13, 4706, 2030, 353, 6611, 7503, 2311, 29962, 13, 4706, 565, 451, 18761, 29898, 1025, 29897, 1275, 716, 29901, 13, 9651, 2428, 2141, 15123, 29898, 1025, 29892, 716, 29897, 13, 13, 4706, 736, 1121, 13, 13, 13, 1990, 8313, 29895, 4301, 10408, 29898, 4301, 10408, 1125, 13, 13, 1678, 9995, 13, 1678, 13999, 304, 967, 2967, 29892, 541, 848, 10970, 881, 367, 7049, 310, 848, 29889, 13, 1678, 9995, 13, 13, 1678, 4770, 2536, 1862, 1649, 353, 3861, 13, 13, 1678, 822, 1653, 29898, 1311, 29892, 848, 1125, 13, 13, 4706, 9995, 13, 4706, 6204, 322, 736, 599, 9976, 29889, 13, 4706, 9995, 13, 13, 4706, 2582, 353, 5159, 13, 4706, 363, 848, 297, 848, 29901, 13, 9651, 1121, 353, 2428, 2141, 3258, 29898, 1272, 29897, 13, 9651, 2582, 29889, 4397, 29898, 2914, 29897, 13, 13, 4706, 736, 18761, 29898, 9902, 29897, 13, 13, 1678, 822, 6623, 29898, 1311, 29892, 6611, 29892, 848, 1125, 13, 13, 4706, 9995, 13, 4706, 3382, 1598, 599, 9976, 472, 4954, 8149, 16159, 322, 1735, 1009, 9758, 565, 5181, 29889, 13, 13, 4706, 450, 6611, 1016, 29915, 29873, 817, 304, 367, 263, 2989, 2224, 304, 2702, 9976, 29889, 13, 13, 4706, 6317, 6872, 1057, 13, 13, 9651, 448, 22680, 1023, 9976, 1863, 472, 4954, 29898, 29900, 29892, 29871, 29896, 29892, 29871, 29906, 3569, 29952, 322, 4954, 29898, 29900, 29892, 29871, 29896, 29892, 29871, 29946, 3569, 1412, 13, 9651, 448, 5020, 26747, 4954, 29898, 29900, 29892, 29871, 29896, 3569, 29952, 6858, 4954, 1272, 16159, 304, 367, 263, 1023, 29899, 667, 1409, 29889, 13, 9651, 448, 2193, 1409, 881, 1712, 278, 18067, 848, 297, 1797, 29889, 13, 4706, 9995, 13, 13, 4706, 2943, 353, 2428, 2141, 2622, 29898, 8149, 29897, 13, 4706, 10809, 353, 1583, 3032, 19488, 448, 7431, 29898, 8149, 29897, 13, 13, 4706, 4452, 353, 2224, 292, 29889, 672, 573, 29898, 3177, 29892, 4236, 353, 10809, 29892, 1375, 353, 10809, 29897, 13, 4706, 1018, 29901, 13, 9651, 313, 1491, 8149, 29892, 903, 26586, 29897, 353, 14319, 10456, 7076, 29897, 13, 4706, 5174, 7865, 2392, 29901, 13, 9651, 1014, 8149, 353, 3861, 13, 13, 4706, 2582, 353, 5159, 13, 4706, 363, 313, 1491, 8149, 29892, 848, 29897, 297, 14319, 29898, 1491, 8149, 29892, 848, 1125, 13, 9651, 3151, 8149, 353, 3070, 8149, 29892, 334, 1491, 8149, 29897, 13, 9651, 1121, 353, 2428, 2141, 1545, 1598, 29898, 2764, 8149, 29892, 848, 29897, 13, 9651, 2582, 29889, 4397, 29898, 2914, 29897, 13, 13, 4706, 736, 2582, 13, 13, 13, 1990, 1105, 615, 29933, 24456, 4301, 10408, 29898, 29933, 24456, 4301, 10408, 1125, 13, 13, 1678, 9995, 13, 1678, 7419, 786, 3519, 736, 385, 1409, 310, 9976, 29892, 470, 4069, 2012, 310, 17581, 29889, 13, 1678, 9995, 13, 13, 1678, 4770, 2536, 1862, 1649, 353, 3861, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 903, 20620, 29898, 25932, 29892, 2943, 1125, 13, 13, 4706, 9995, 13, 4706, 9603, 278, 2943, 964, 2845, 263, 5447, 29915, 29879, 9976, 470, 263, 2323, 29899, 667, 1409, 29889, 13, 4706, 9995, 13, 13, 4706, 736, 18761, 29898, 3177, 29889, 26586, 3101, 565, 338, 8758, 29898, 3177, 29892, 1067, 29879, 29897, 1683, 313, 3177, 29892, 29897, 13, 13, 1678, 822, 1831, 29898, 1311, 29892, 6611, 1125, 13, 13, 4706, 9995, 13, 4706, 4118, 304, 584, 29885, 621, 29901, 1412, 9643, 29889, 2622, 1412, 13, 4706, 9995, 13, 13, 4706, 1018, 29901, 13, 9651, 2943, 353, 2428, 2141, 2622, 29898, 8149, 29897, 13, 4706, 5174, 7670, 2392, 29901, 13, 9651, 1121, 353, 3861, 13, 4706, 1683, 29901, 13, 9651, 1121, 353, 1583, 3032, 20620, 29898, 3177, 29897, 13, 13, 4706, 736, 1121, 13, 13, 1678, 822, 6623, 29898, 1311, 29892, 6611, 29892, 848, 1125, 13, 13, 4706, 9995, 13, 4706, 4118, 304, 584, 29885, 621, 29901, 1412, 29933, 24456, 4301, 10408, 29889, 1545, 1598, 1412, 13, 4706, 9995, 13, 13, 4706, 1018, 29901, 13, 9651, 1121, 353, 2428, 2141, 1545, 1598, 29898, 8149, 29892, 848, 29897, 13, 4706, 5174, 7670, 2392, 29901, 13, 9651, 1121, 353, 3861, 13, 13, 4706, 736, 1121, 13, 13, 1678, 822, 5217, 29898, 1311, 29892, 6611, 1125, 13, 13, 4706, 9995, 13, 4706, 4118, 304, 584, 29885, 621, 29901, 1412, 9643, 29889, 8143, 1412, 13, 4706, 9995, 13, 13, 4706, 1018, 29901, 13, 9651, 2943, 353, 2428, 2141, 8143, 29898, 8149, 29897, 13, 4706, 5174, 7670, 2392, 29901, 13, 9651, 1121, 353, 3861, 13, 4706, 1683, 29901, 13, 9651, 1121, 353, 1583, 3032, 20620, 29898, 3177, 29897, 13, 13, 4706, 736, 1121, 13, 13, 13, 1990, 319, 4561, 29933, 24456, 4301, 10408, 29898, 6295, 615, 29933, 24456, 4301, 10408, 1125, 13, 13, 1678, 9995, 13, 1678, 10731, 3519, 3544, 4954, 29898, 8149, 29892, 848, 3569, 29952, 363, 5718, 3819, 29889, 13, 1678, 9995, 13, 13, 1678, 4770, 2536, 1862, 1649, 353, 3861, 13, 13, 1678, 822, 1653, 29898, 1311, 29892, 6611, 29892, 848, 1125, 13, 13, 4706, 9995, 13, 4706, 4954, 1272, 16159, 338, 1304, 29892, 4954, 8149, 16159, 338, 451, 29889, 13, 13, 4706, 4118, 304, 584, 29885, 621, 29901, 1412, 29933, 24456, 4301, 10408, 29889, 3258, 1412, 13, 4706, 9995, 13, 13, 4706, 1121, 353, 2428, 2141, 3258, 29898, 1272, 29897, 13, 13, 4706, 736, 1121, 13, 13, 1678, 822, 6623, 29898, 1311, 29892, 6611, 29892, 848, 1125, 13, 13, 4706, 9995, 13, 4706, 4954, 1272, 16159, 322, 4954, 8149, 16159, 526, 1304, 29889, 13, 13, 4706, 4118, 304, 584, 29885, 621, 29901, 1412, 6295, 615, 29933, 24456, 4301, 10408, 29889, 1545, 1598, 1412, 13, 4706, 9995, 13, 13, 4706, 1121, 353, 2428, 2141, 1545, 1598, 29898, 8149, 29892, 848, 29897, 13, 13, 4706, 736, 1121, 13, 13, 1678, 822, 5217, 29898, 1311, 29892, 6611, 29892, 848, 1125, 13, 13, 4706, 9995, 13, 4706, 4954, 8149, 16159, 338, 1304, 29892, 4954, 1272, 16159, 338, 451, 29889, 13, 13, 4706, 4118, 304, 584, 29885, 621, 29901, 1412, 6295, 615, 29933, 24456, 4301, 10408, 29889, 8143, 1412, 13, 4706, 9995, 13, 13, 4706, 1121, 353, 2428, 2141, 8143, 29898, 8149, 29897, 13, 13, 4706, 736, 1121, 13, 2 ]
web/service/NetService.py
hao707822882/Bichon
0
88296
<gh_stars>0 # _*_ coding:utf-8 _*_ from web.broker.BrokerService import BrokerService from com.Config import Config __author__ = 'Administrator' class NetService(object): def __init__(self): self.before = {} pass '''获取net详细信息''' def getNetInfo(self, hostKey): broker = BrokerService.getBroker(hostKey) return broker.getNetInfo() ''' { "data": { "Loopback Pseudo-Interface 1": [ 0, 0, 0, 0, 0, 0, 0, 0 ], "\u672c\u5730\u8fde\u63a5 2": [ 29258726, 276679541, 230171, 275475, 0, 0, 0, 0 ] }, "time": 1453348072.861 } ''' def getOutSpeed(self, host, data): beforeData = self.before.get(host) nowTime = data["time"] nowData = {} self.before[host] = data if beforeData is not None: beforeTime = beforeData["time"] beforeData = beforeData["data"] for beforeKey in beforeData: if beforeKey.encode("utf-8") == Config.eht: beforeData = beforeData[beforeKey] break else: return 0 data = data["data"] for nowKey in data: if nowKey.encode("utf-8") == Config.eht: nowData = data[beforeKey] break if nowData is not None: allUp = nowData[0] - beforeData[0] time = nowTime - beforeTime return allUp / 1024 / time
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 903, 29930, 29918, 14137, 29901, 9420, 29899, 29947, 903, 29930, 29918, 13, 3166, 1856, 29889, 6729, 3946, 29889, 29857, 3946, 3170, 1053, 4358, 3946, 3170, 13, 3166, 419, 29889, 3991, 1053, 12782, 13, 13, 1649, 8921, 1649, 353, 525, 12754, 2132, 1061, 29915, 13, 13, 13, 1990, 12670, 3170, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 1583, 29889, 11083, 353, 6571, 13, 4706, 1209, 13, 13, 1678, 14550, 31024, 30683, 1212, 235, 178, 169, 234, 190, 137, 30689, 31021, 12008, 13, 13, 1678, 822, 679, 6779, 3401, 29898, 1311, 29892, 3495, 2558, 1125, 13, 4706, 2545, 3946, 353, 4358, 3946, 3170, 29889, 657, 29857, 3946, 29898, 3069, 2558, 29897, 13, 4706, 736, 2545, 3946, 29889, 657, 6779, 3401, 580, 13, 13, 1678, 14550, 13, 1678, 426, 13, 1678, 376, 1272, 1115, 426, 13, 418, 376, 18405, 1627, 17646, 5333, 29899, 10448, 29871, 29896, 1115, 518, 13, 308, 29900, 29892, 13, 308, 29900, 29892, 13, 308, 29900, 29892, 13, 308, 29900, 29892, 13, 308, 29900, 29892, 13, 308, 29900, 29892, 13, 308, 29900, 29892, 13, 308, 29900, 13, 418, 21251, 13, 418, 6634, 29884, 29953, 29955, 29906, 29883, 29905, 29884, 29945, 29955, 29941, 29900, 29905, 29884, 29947, 29888, 311, 29905, 29884, 29953, 29941, 29874, 29945, 29871, 29906, 1115, 518, 13, 308, 29906, 29929, 29906, 29945, 29947, 29955, 29906, 29953, 29892, 13, 308, 29906, 29955, 29953, 29953, 29955, 29929, 29945, 29946, 29896, 29892, 13, 308, 29906, 29941, 29900, 29896, 29955, 29896, 29892, 13, 308, 29906, 29955, 29945, 29946, 29955, 29945, 29892, 13, 308, 29900, 29892, 13, 308, 29900, 29892, 13, 308, 29900, 29892, 13, 308, 29900, 13, 418, 4514, 13, 1678, 2981, 13, 1678, 376, 2230, 1115, 29871, 29896, 29946, 29945, 29941, 29941, 29946, 29947, 29900, 29955, 29906, 29889, 29947, 29953, 29896, 13, 29871, 500, 13, 1678, 14550, 13, 13, 1678, 822, 679, 3744, 26539, 29898, 1311, 29892, 3495, 29892, 848, 1125, 13, 4706, 1434, 1469, 353, 1583, 29889, 11083, 29889, 657, 29898, 3069, 29897, 13, 4706, 1286, 2481, 353, 848, 3366, 2230, 3108, 13, 4706, 1286, 1469, 353, 6571, 13, 4706, 1583, 29889, 11083, 29961, 3069, 29962, 353, 848, 13, 4706, 565, 1434, 1469, 338, 451, 6213, 29901, 13, 9651, 1434, 2481, 353, 1434, 1469, 3366, 2230, 3108, 13, 9651, 1434, 1469, 353, 1434, 1469, 3366, 1272, 3108, 13, 9651, 363, 1434, 2558, 297, 1434, 1469, 29901, 13, 18884, 565, 1434, 2558, 29889, 12508, 703, 9420, 29899, 29947, 1159, 1275, 12782, 29889, 29872, 400, 29901, 13, 462, 1678, 1434, 1469, 353, 1434, 1469, 29961, 11083, 2558, 29962, 13, 462, 1678, 2867, 13, 4706, 1683, 29901, 13, 9651, 736, 29871, 29900, 13, 13, 4706, 848, 353, 848, 3366, 1272, 3108, 13, 4706, 363, 1286, 2558, 297, 848, 29901, 13, 9651, 565, 1286, 2558, 29889, 12508, 703, 9420, 29899, 29947, 1159, 1275, 12782, 29889, 29872, 400, 29901, 13, 18884, 1286, 1469, 353, 848, 29961, 11083, 2558, 29962, 13, 18884, 2867, 13, 4706, 565, 1286, 1469, 338, 451, 6213, 29901, 13, 9651, 599, 3373, 353, 1286, 1469, 29961, 29900, 29962, 448, 1434, 1469, 29961, 29900, 29962, 13, 9651, 931, 353, 1286, 2481, 448, 1434, 2481, 13, 9651, 736, 599, 3373, 847, 29871, 29896, 29900, 29906, 29946, 847, 931, 13, 2 ]
doppel/__init__.py
bburns632/doppel-cli
0
151194
<filename>doppel/__init__.py __all__ = [ 'PackageAPI', 'PackageCollection' ] from doppel.PackageAPI import PackageAPI from doppel.PackageCollection import PackageCollection from doppel.DoppelTestError import DoppelTestError from doppel.reporters import SimpleReporter
[ 1, 529, 9507, 29958, 1867, 17344, 29914, 1649, 2344, 26914, 2272, 13, 1649, 497, 1649, 353, 518, 13, 1678, 525, 14459, 8787, 742, 13, 1678, 525, 14459, 7196, 29915, 13, 29962, 13, 13, 3166, 437, 17344, 29889, 14459, 8787, 1053, 22029, 8787, 13, 3166, 437, 17344, 29889, 14459, 7196, 1053, 22029, 7196, 13, 3166, 437, 17344, 29889, 6132, 17344, 3057, 2392, 1053, 1938, 17344, 3057, 2392, 13, 3166, 437, 17344, 29889, 276, 1971, 2153, 1053, 12545, 5612, 9555, 13, 2 ]
merger.py
theianrobertson/starbucks-names
0
193526
<gh_stars>0 """Merge a name and a cup""" import glob import random import os import sys from PIL import Image, ImageFilter import config def crop_image(image): """Crop an image to not include whatever is just white Parameters ---------- image : PIL image """ max_x = 0 min_x = image.width - 1 max_y = 0 min_y = image.height - 1 for x in range(image.width): for y in range(image.height): if image.getpixel((x, y)) != (255, 255, 255, 255): if x < min_x: min_x = x if x > max_x: max_x = x if y < min_y: min_y = y if y > max_y: max_y = y return image.crop((min_x, min_y, max_x, max_y)) def merge_images(cup, name_file, new_file): """Merge two images Parameters ---------- cup : dict Dictionary with info about the cup name_file : str String with the name file new_file : str The new file name """ cup_file = os.path.join(config.CUPS_DIR, cup['filename']) cup_image = Image.open(cup_file) name_image = Image.open(name_file) name_image = crop_image(name_image) #Resize the name image name_size = ( cup['x_bottom'] - cup['x_top'], cup['y_bottom'] - cup['y_top']) name_image = name_image.resize(name_size, Image.ANTIALIAS) #Just use all-black name_blurred = Image.new('RGB',name_image.size,(0,0,0)) #Create a mask (invisible if >= 240 in greyscale) mask = name_image.convert('L') mask = Image.eval(mask, lambda x: abs(x - 255)) #Paste into the base image and save. cup_image.paste(name_blurred, (cup['x_top'], cup['y_top']), mask=mask) cup_image.save(new_file, 'JPEG', quality=90) def main(): try: name_file = os.path.join(config.NAMES_DIR, sys.argv[1] + '.jpg') except IndexError: name_files = glob.glob(os.path.join(config.NAMES_DIR, '*.jpg')) name_file = random.choice(name_files) merge_images( random.choice(config.CUPS), name_file, 'test_file.jpg') if __name__ == '__main__': main()
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 15945, 29908, 15836, 479, 263, 1024, 322, 263, 18002, 15945, 29908, 13, 13, 5215, 13149, 13, 5215, 4036, 13, 5215, 2897, 13, 5215, 10876, 13, 3166, 349, 6227, 1053, 7084, 29892, 7084, 5072, 13, 5215, 2295, 13, 13, 1753, 274, 1336, 29918, 3027, 29898, 3027, 1125, 13, 1678, 9995, 29907, 1336, 385, 1967, 304, 451, 3160, 6514, 338, 925, 4796, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 1967, 584, 349, 6227, 1967, 13, 1678, 9995, 13, 1678, 4236, 29918, 29916, 353, 29871, 29900, 13, 1678, 1375, 29918, 29916, 353, 1967, 29889, 2103, 448, 29871, 29896, 13, 1678, 4236, 29918, 29891, 353, 29871, 29900, 13, 1678, 1375, 29918, 29891, 353, 1967, 29889, 3545, 448, 29871, 29896, 13, 1678, 363, 921, 297, 3464, 29898, 3027, 29889, 2103, 1125, 13, 4706, 363, 343, 297, 3464, 29898, 3027, 29889, 3545, 1125, 13, 9651, 565, 1967, 29889, 657, 29886, 15711, 3552, 29916, 29892, 343, 876, 2804, 313, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 1125, 13, 18884, 565, 921, 529, 1375, 29918, 29916, 29901, 13, 462, 1678, 1375, 29918, 29916, 353, 921, 13, 18884, 565, 921, 1405, 4236, 29918, 29916, 29901, 13, 462, 1678, 4236, 29918, 29916, 353, 921, 13, 18884, 565, 343, 529, 1375, 29918, 29891, 29901, 13, 462, 1678, 1375, 29918, 29891, 353, 343, 13, 18884, 565, 343, 1405, 4236, 29918, 29891, 29901, 13, 462, 1678, 4236, 29918, 29891, 353, 343, 13, 1678, 736, 1967, 29889, 29883, 1336, 3552, 1195, 29918, 29916, 29892, 1375, 29918, 29891, 29892, 4236, 29918, 29916, 29892, 4236, 29918, 29891, 876, 13, 13, 13, 1753, 10366, 29918, 8346, 29898, 5231, 29892, 1024, 29918, 1445, 29892, 716, 29918, 1445, 1125, 13, 1678, 9995, 15836, 479, 1023, 4558, 13, 13, 1678, 12662, 2699, 13, 1678, 448, 1378, 29899, 13, 1678, 18002, 584, 9657, 13, 4706, 13343, 411, 5235, 1048, 278, 18002, 13, 1678, 1024, 29918, 1445, 584, 851, 13, 4706, 1714, 411, 278, 1024, 934, 13, 1678, 716, 29918, 1445, 584, 851, 13, 4706, 450, 716, 934, 1024, 13, 1678, 9995, 13, 1678, 18002, 29918, 1445, 353, 2897, 29889, 2084, 29889, 7122, 29898, 2917, 29889, 29907, 4897, 29903, 29918, 9464, 29892, 18002, 1839, 9507, 11287, 13, 1678, 18002, 29918, 3027, 353, 7084, 29889, 3150, 29898, 5231, 29918, 1445, 29897, 13, 1678, 1024, 29918, 3027, 353, 7084, 29889, 3150, 29898, 978, 29918, 1445, 29897, 13, 1678, 1024, 29918, 3027, 353, 274, 1336, 29918, 3027, 29898, 978, 29918, 3027, 29897, 13, 13, 1678, 396, 1666, 675, 278, 1024, 1967, 13, 1678, 1024, 29918, 2311, 353, 313, 13, 4706, 18002, 1839, 29916, 29918, 8968, 2033, 448, 18002, 1839, 29916, 29918, 3332, 7464, 18002, 1839, 29891, 29918, 8968, 2033, 448, 18002, 1839, 29891, 29918, 3332, 11287, 13, 1678, 1024, 29918, 3027, 353, 1024, 29918, 3027, 29889, 21476, 29898, 978, 29918, 2311, 29892, 7084, 29889, 13566, 25758, 29902, 3289, 29897, 13, 13, 1678, 396, 14084, 671, 599, 29899, 8517, 13, 1678, 1024, 29918, 2204, 332, 1127, 353, 7084, 29889, 1482, 877, 28212, 742, 978, 29918, 3027, 29889, 2311, 22657, 29900, 29892, 29900, 29892, 29900, 876, 13, 13, 1678, 396, 4391, 263, 11105, 313, 262, 12872, 565, 6736, 29871, 29906, 29946, 29900, 297, 1395, 952, 29883, 744, 29897, 13, 1678, 11105, 353, 1024, 29918, 3027, 29889, 13441, 877, 29931, 1495, 13, 1678, 11105, 353, 7084, 29889, 14513, 29898, 13168, 29892, 14013, 921, 29901, 6425, 29898, 29916, 448, 29871, 29906, 29945, 29945, 876, 13, 13, 1678, 396, 29925, 4350, 964, 278, 2967, 1967, 322, 4078, 29889, 13, 1678, 18002, 29918, 3027, 29889, 16179, 29898, 978, 29918, 2204, 332, 1127, 29892, 313, 5231, 1839, 29916, 29918, 3332, 7464, 18002, 1839, 29891, 29918, 3332, 2033, 511, 11105, 29922, 13168, 29897, 13, 1678, 18002, 29918, 3027, 29889, 7620, 29898, 1482, 29918, 1445, 29892, 525, 29967, 4162, 29954, 742, 11029, 29922, 29929, 29900, 29897, 13, 13, 13, 1753, 1667, 7295, 13, 1678, 1018, 29901, 13, 4706, 1024, 29918, 1445, 353, 2897, 29889, 2084, 29889, 7122, 29898, 2917, 29889, 5813, 29903, 29918, 9464, 29892, 10876, 29889, 19218, 29961, 29896, 29962, 718, 15300, 6173, 1495, 13, 1678, 5174, 11374, 2392, 29901, 13, 4706, 1024, 29918, 5325, 353, 13149, 29889, 23705, 29898, 359, 29889, 2084, 29889, 7122, 29898, 2917, 29889, 5813, 29903, 29918, 9464, 29892, 525, 10521, 6173, 8785, 13, 4706, 1024, 29918, 1445, 353, 4036, 29889, 16957, 29898, 978, 29918, 5325, 29897, 13, 1678, 10366, 29918, 8346, 29898, 13, 4706, 4036, 29889, 16957, 29898, 2917, 29889, 29907, 4897, 29903, 511, 13, 4706, 1024, 29918, 1445, 29892, 13, 4706, 525, 1688, 29918, 1445, 29889, 6173, 1495, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1667, 580, 2 ]
tests/models.py
sobolevn/django-fakery
1
144879
<filename>tests/models.py from decimal import Decimal from django import VERSION as django_version from django.contrib.postgres import fields as postgres_fields from django.db import models from django_fakery.compat import HAS_GEOS class Chef(models.Model): slug = models.SlugField() first_name = models.CharField(max_length=60) last_name = models.CharField(max_length=60) uuid_id = models.UUIDField() email_address = models.EmailField() twitter_profile = models.URLField() def __str__(self): return "Chef {} {}".format(self.first_name, self.last_name) class Topping(models.Model): name = models.CharField(max_length=60) class Pizza(models.Model): THICKNESSES = ((0, "thin"), (1, "thick"), (2, "deep dish")) name = models.CharField(max_length=50) price = models.DecimalField(null=True, decimal_places=2, max_digits=4) gluten_free = models.BooleanField(default=False) vegan = models.BooleanField() description = models.TextField(blank=True) thickness = models.CharField(max_length=50, choices=THICKNESSES) baked_on = models.DateTimeField() expiration = models.DateField() rating = models.PositiveSmallIntegerField() chef = models.ForeignKey( Chef, on_delete=models.CASCADE, related_name="invented_pizzas" ) critic = models.ForeignKey( Chef, null=True, on_delete=models.CASCADE, related_name="reviewed_pizzas" ) toppings = models.ManyToManyField(Topping, related_name="pizzas") unique_comment = models.TextField(unique=True) def get_price(self, tax): return (Decimal("7.99") + (Decimal("7.99") * Decimal(tax))).quantize( Decimal("0.01") ) if HAS_GEOS: from django.contrib.gis.db import models as geo_models if django_version < (1, 9, 0): class Pizzeria(geo_models.Model): hq = geo_models.PointField() directions = geo_models.LineStringField() floor_plan = geo_models.PolygonField() locations = geo_models.MultiPointField() routes = geo_models.MultiLineStringField() delivery_areas = geo_models.MultiPolygonField() all_the_things = geo_models.GeometryCollectionField() else: class Pizzeria(geo_models.Model): hq = geo_models.PointField() directions = geo_models.LineStringField() floor_plan = geo_models.PolygonField() locations = geo_models.MultiPointField() routes = geo_models.MultiLineStringField() delivery_areas = geo_models.MultiPolygonField() all_the_things = geo_models.GeometryCollectionField() rast = geo_models.RasterField() if django_version < (1, 9, 0): class SpecialtyPizza(models.Model): toppings = postgres_fields.ArrayField(models.CharField(max_length=20), size=4) metadata = postgres_fields.HStoreField() price_range = postgres_fields.IntegerRangeField() sales = postgres_fields.BigIntegerRangeField() available_on = postgres_fields.DateTimeRangeField() season = postgres_fields.DateRangeField() else: class SpecialtyPizza(models.Model): name = models.CharField(max_length=50) toppings = postgres_fields.ArrayField(models.CharField(max_length=20), size=4) metadata = postgres_fields.HStoreField() price_range = postgres_fields.IntegerRangeField() sales = postgres_fields.BigIntegerRangeField() available_on = postgres_fields.DateTimeRangeField() season = postgres_fields.DateRangeField() nutritional_values = postgres_fields.JSONField()
[ 1, 529, 9507, 29958, 21150, 29914, 9794, 29889, 2272, 13, 3166, 13677, 1053, 3826, 3039, 13, 13, 3166, 9557, 1053, 478, 1001, 13381, 408, 9557, 29918, 3259, 13, 3166, 9557, 29889, 21570, 29889, 2490, 7201, 1053, 4235, 408, 1400, 7201, 29918, 9621, 13, 3166, 9557, 29889, 2585, 1053, 4733, 13, 13, 3166, 9557, 29918, 29888, 557, 708, 29889, 12667, 1053, 379, 3289, 29918, 1692, 3267, 13, 13, 13, 1990, 6561, 29888, 29898, 9794, 29889, 3195, 1125, 13, 1678, 2243, 688, 353, 4733, 29889, 16973, 688, 3073, 580, 13, 1678, 937, 29918, 978, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29953, 29900, 29897, 13, 1678, 1833, 29918, 978, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29953, 29900, 29897, 13, 1678, 318, 5416, 29918, 333, 353, 4733, 29889, 29965, 11150, 3073, 580, 13, 1678, 4876, 29918, 7328, 353, 4733, 29889, 9823, 3073, 580, 13, 1678, 23394, 29918, 10185, 353, 4733, 29889, 4219, 3073, 580, 13, 13, 1678, 822, 4770, 710, 12035, 1311, 1125, 13, 4706, 736, 376, 26856, 29888, 6571, 6571, 1642, 4830, 29898, 1311, 29889, 4102, 29918, 978, 29892, 1583, 29889, 4230, 29918, 978, 29897, 13, 13, 13, 1990, 1763, 3262, 29898, 9794, 29889, 3195, 1125, 13, 1678, 1024, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29953, 29900, 29897, 13, 13, 13, 1990, 349, 24990, 29898, 9794, 29889, 3195, 1125, 13, 1678, 3446, 2965, 29968, 29940, 2890, 1660, 29903, 353, 5135, 29900, 29892, 376, 386, 262, 4968, 313, 29896, 29892, 376, 27996, 4968, 313, 29906, 29892, 376, 24535, 270, 728, 5783, 13, 13, 1678, 1024, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29945, 29900, 29897, 13, 1678, 8666, 353, 4733, 29889, 23307, 3073, 29898, 4304, 29922, 5574, 29892, 13677, 29918, 29886, 6048, 29922, 29906, 29892, 4236, 29918, 7501, 1169, 29922, 29946, 29897, 13, 1678, 3144, 6935, 29918, 9021, 353, 4733, 29889, 18146, 3073, 29898, 4381, 29922, 8824, 29897, 13, 1678, 12461, 273, 353, 4733, 29889, 18146, 3073, 580, 13, 1678, 6139, 353, 4733, 29889, 15778, 29898, 19465, 29922, 5574, 29897, 13, 1678, 12003, 2264, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29945, 29900, 29892, 19995, 29922, 4690, 2965, 29968, 29940, 2890, 1660, 29903, 29897, 13, 1678, 289, 12535, 29918, 265, 353, 4733, 29889, 11384, 3073, 580, 13, 1678, 1518, 12232, 353, 4733, 29889, 2539, 3073, 580, 13, 1678, 21700, 353, 4733, 29889, 9135, 3321, 12636, 497, 7798, 3073, 580, 13, 13, 1678, 14547, 353, 4733, 29889, 27755, 2558, 29898, 13, 4706, 6561, 29888, 29892, 373, 29918, 8143, 29922, 9794, 29889, 29907, 3289, 5454, 2287, 29892, 4475, 29918, 978, 543, 262, 794, 287, 29918, 29886, 4981, 294, 29908, 13, 1678, 1723, 13, 1678, 11164, 353, 4733, 29889, 27755, 2558, 29898, 13, 4706, 6561, 29888, 29892, 1870, 29922, 5574, 29892, 373, 29918, 8143, 29922, 9794, 29889, 29907, 3289, 5454, 2287, 29892, 4475, 29918, 978, 543, 27828, 287, 29918, 29886, 4981, 294, 29908, 13, 1678, 1723, 13, 1678, 304, 27775, 353, 4733, 29889, 14804, 1762, 14804, 3073, 29898, 1762, 3262, 29892, 4475, 29918, 978, 543, 29886, 4981, 294, 1159, 13, 1678, 5412, 29918, 9342, 353, 4733, 29889, 15778, 29898, 13092, 29922, 5574, 29897, 13, 13, 1678, 822, 679, 29918, 9175, 29898, 1311, 29892, 8818, 1125, 13, 4706, 736, 313, 23307, 703, 29955, 29889, 29929, 29929, 1159, 718, 313, 23307, 703, 29955, 29889, 29929, 29929, 1159, 334, 3826, 3039, 29898, 20725, 876, 467, 12150, 675, 29898, 13, 9651, 3826, 3039, 703, 29900, 29889, 29900, 29896, 1159, 13, 4706, 1723, 13, 13, 13, 361, 379, 3289, 29918, 1692, 3267, 29901, 13, 1678, 515, 9557, 29889, 21570, 29889, 29887, 275, 29889, 2585, 1053, 4733, 408, 1737, 29877, 29918, 9794, 13, 13, 1678, 565, 9557, 29918, 3259, 529, 313, 29896, 29892, 29871, 29929, 29892, 29871, 29900, 1125, 13, 13, 4706, 770, 349, 466, 3298, 423, 29898, 24756, 29918, 9794, 29889, 3195, 1125, 13, 9651, 298, 29939, 353, 1737, 29877, 29918, 9794, 29889, 5228, 3073, 580, 13, 9651, 18112, 353, 1737, 29877, 29918, 9794, 29889, 3542, 1231, 3073, 580, 13, 9651, 11904, 29918, 9018, 353, 1737, 29877, 29918, 9794, 29889, 7713, 17125, 3073, 580, 13, 9651, 14354, 353, 1737, 29877, 29918, 9794, 29889, 15329, 5228, 3073, 580, 13, 9651, 12049, 353, 1737, 29877, 29918, 9794, 29889, 15329, 3542, 1231, 3073, 580, 13, 9651, 28289, 29918, 598, 294, 353, 1737, 29877, 29918, 9794, 29889, 15329, 7713, 17125, 3073, 580, 13, 9651, 599, 29918, 1552, 29918, 386, 886, 353, 1737, 29877, 29918, 9794, 29889, 7999, 7843, 7196, 3073, 580, 13, 13, 1678, 1683, 29901, 13, 13, 4706, 770, 349, 466, 3298, 423, 29898, 24756, 29918, 9794, 29889, 3195, 1125, 13, 9651, 298, 29939, 353, 1737, 29877, 29918, 9794, 29889, 5228, 3073, 580, 13, 9651, 18112, 353, 1737, 29877, 29918, 9794, 29889, 3542, 1231, 3073, 580, 13, 9651, 11904, 29918, 9018, 353, 1737, 29877, 29918, 9794, 29889, 7713, 17125, 3073, 580, 13, 9651, 14354, 353, 1737, 29877, 29918, 9794, 29889, 15329, 5228, 3073, 580, 13, 9651, 12049, 353, 1737, 29877, 29918, 9794, 29889, 15329, 3542, 1231, 3073, 580, 13, 9651, 28289, 29918, 598, 294, 353, 1737, 29877, 29918, 9794, 29889, 15329, 7713, 17125, 3073, 580, 13, 9651, 599, 29918, 1552, 29918, 386, 886, 353, 1737, 29877, 29918, 9794, 29889, 7999, 7843, 7196, 3073, 580, 13, 9651, 364, 579, 353, 1737, 29877, 29918, 9794, 29889, 29934, 1901, 3073, 580, 13, 13, 13, 361, 9557, 29918, 3259, 529, 313, 29896, 29892, 29871, 29929, 29892, 29871, 29900, 1125, 13, 13, 1678, 770, 12630, 1017, 29925, 24990, 29898, 9794, 29889, 3195, 1125, 13, 4706, 304, 27775, 353, 1400, 7201, 29918, 9621, 29889, 2588, 3073, 29898, 9794, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29906, 29900, 511, 2159, 29922, 29946, 29897, 13, 4706, 15562, 353, 1400, 7201, 29918, 9621, 29889, 29950, 9044, 3073, 580, 13, 4706, 8666, 29918, 3881, 353, 1400, 7201, 29918, 9621, 29889, 7798, 6069, 3073, 580, 13, 4706, 16538, 353, 1400, 7201, 29918, 9621, 29889, 6970, 7798, 6069, 3073, 580, 13, 4706, 3625, 29918, 265, 353, 1400, 7201, 29918, 9621, 29889, 11384, 6069, 3073, 580, 13, 4706, 4259, 353, 1400, 7201, 29918, 9621, 29889, 2539, 6069, 3073, 580, 13, 13, 13, 2870, 29901, 13, 13, 1678, 770, 12630, 1017, 29925, 24990, 29898, 9794, 29889, 3195, 1125, 13, 4706, 1024, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29945, 29900, 29897, 13, 4706, 304, 27775, 353, 1400, 7201, 29918, 9621, 29889, 2588, 3073, 29898, 9794, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29906, 29900, 511, 2159, 29922, 29946, 29897, 13, 4706, 15562, 353, 1400, 7201, 29918, 9621, 29889, 29950, 9044, 3073, 580, 13, 4706, 8666, 29918, 3881, 353, 1400, 7201, 29918, 9621, 29889, 7798, 6069, 3073, 580, 13, 4706, 16538, 353, 1400, 7201, 29918, 9621, 29889, 6970, 7798, 6069, 3073, 580, 13, 4706, 3625, 29918, 265, 353, 1400, 7201, 29918, 9621, 29889, 11384, 6069, 3073, 580, 13, 4706, 4259, 353, 1400, 7201, 29918, 9621, 29889, 2539, 6069, 3073, 580, 13, 4706, 18254, 29878, 3245, 29918, 5975, 353, 1400, 7201, 29918, 9621, 29889, 7249, 3073, 580, 13, 2 ]
src/geometry.py
nyucan/can-racecar-ros
1
166935
<reponame>nyucan/can-racecar-ros<gh_stars>1-10 #!/usr/bin/env python import numpy as np def calculate_theta(x, y): """ Extimate the theta. From -pi to pi. """ square_sum = np.sqrt(np.square(x) + np.square(y)) sin_theta = np.divide(y, square_sum) cos_theta = np.divide(x, square_sum) theta = np.zeros_like(square_sum) pos_cos = cos_theta >= 0 theta[pos_cos] = np.arcsin(sin_theta[pos_cos]) neg_cos_pos_sin = np.logical_and(cos_theta < 0, sin_theta >= 0) theta[neg_cos_pos_sin] = np.pi - np.arcsin(sin_theta[neg_cos_pos_sin]) neg_cos_neg_sin = np.logical_and(cos_theta < 0, sin_theta < 0) theta[neg_cos_neg_sin] = -np.pi - np.arcsin(sin_theta[neg_cos_neg_sin]) theta = np.nan_to_num(theta) return theta def calculate_diff_theta(theta1, theta2): diff = theta1 - theta2 if diff > np.pi: diff = -diff + 2 * np.pi elif diff < -np.pi: diff = diff + 2 * np.pi diff = -diff return diff class Drawer(object): def __init__(self, x_func, y_func): self.x_func = x_func self.y_func = y_func def draw(self, resolution=200): theta = np.linspace(0, 2 * np.pi, num=resolution, endpoint=False) sampled_x = self.x_func(theta) sampled_y = self.y_func(theta) return sampled_x, sampled_y class Path(object): def __init__(self, xs, ys): self._x = np.asarray(xs) self._y = np.asarray(ys) self._theta = calculate_theta(xs, ys) self.resolution = len(xs) def get_x(self): return self._x def get_y(self): return self._y def distance_to(self, x, y): # calculate the shortest distance between a point to this curve # return the distance and the coordinate of the point on the curve if self._x is None and self._y is None: self._x, self._y = self.sample() distance = np.square(self._x - x) + np.square(self._y - y) dis_min, idx_min = np.min(distance), np.argmin(distance) return dis_min, (self._x[idx_min], self._y[idx_min]) def contains(self, x, y): theta_xy = calculate_theta(x, y) idx = np.argmin(np.abs(self._theta - theta_xy)) origin_to_path = np.square(self._x[idx]) + np.square(self._y[idx]) origin_to_xy = np.square(x) + np.square(y) return origin_to_xy < origin_to_path def estimate_derivative(self, theta): idx = np.argmin(np.abs(self._theta - theta)) next_idx = idx + 1 if idx < self.resolution - 1 else 0 last_idx = idx - 1 if idx > 0 else self.resolution - 1 delta_x = self._x[last_idx] - self._x[next_idx] delta_y = self._y[last_idx] - self._y[next_idx] return calculate_theta(delta_x, delta_y) class OvalPath(Path): def __init__(self, a, b, resolution=500): x_func = lambda t: a * np.cos(t) y_func = lambda t: b * np.sin(t) drawer = Drawer(x_func, y_func) super(OvalPath, self).__init__(*drawer.draw(resolution=resolution)) class SimpleTrack(Path): def __init__(self, scale=2, resolution=500, x_range=(-6, 6)): self.scale = scale self.resolution = resolution self.x_range = x_range super(SimpleTrack, self).__init__(*self.draw()) def draw(self): nums = np.array([0.3, 0.4, 0.3]) * (self.resolution / 2) sampled_x11 = np.linspace(self.x_range[0], self.x_range[0] + 0.35, num=round(nums[0])) sampled_x12 = np.linspace(self.x_range[0] + 0.35, self.x_range[1] - 0.35, num=round(nums[1])) sampled_x13 = np.linspace(self.x_range[1] - 0.35, self.x_range[1], num=round(nums[2])) sampled_x1 = np.concatenate((sampled_x11, sampled_x12, sampled_x13)) sampled_x2 = np.linspace(*self.x_range, num=round(self.resolution / 2))[::-1] y1 = [self._y2_func(x) for x in sampled_x1] y2 = [self._y1_func(x) for x in sampled_x2] sampled_x = np.concatenate((sampled_x1, sampled_x2)) sampled_y = np.asarray(y1 + y2) return sampled_x, sampled_y def _y1_func(self, x): s = self.scale if x < -2 * s: return 0 elif x < -1 * s: return np.sqrt(s ** 2 - (x + 1 * s) ** 2) elif x < 1 * s: return s elif x < 2 * s: return np.sqrt(s ** 2 - (x - 1 * s) ** 2) else: return 0 def _y2_func(self, x): s = self.scale if x < -2 * s: return 0 elif x < -1 * s: return -np.sqrt(s ** 2 - (x + 1 * s) ** 2) elif x < 1 * s: return -s elif x < 2 * s: return -np.sqrt(s ** 2 - (x - 1 * s) ** 2) else: return 0 oval_path = OvalPath(5, 3, 500) simple_track = SimpleTrack(scale=3, resolution=1000, x_range=(-6, 6))
[ 1, 529, 276, 1112, 420, 29958, 1460, 1682, 273, 29914, 3068, 29899, 25525, 4287, 29899, 1883, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 5215, 12655, 408, 7442, 13, 13, 13, 1753, 8147, 29918, 3416, 29898, 29916, 29892, 343, 1125, 13, 1678, 9995, 7338, 6490, 278, 278, 941, 29889, 3645, 448, 1631, 304, 2930, 29889, 9995, 13, 1678, 6862, 29918, 2083, 353, 7442, 29889, 3676, 29898, 9302, 29889, 17619, 29898, 29916, 29897, 718, 7442, 29889, 17619, 29898, 29891, 876, 13, 1678, 4457, 29918, 3416, 353, 7442, 29889, 4563, 680, 29898, 29891, 29892, 6862, 29918, 2083, 29897, 13, 1678, 6776, 29918, 3416, 353, 7442, 29889, 4563, 680, 29898, 29916, 29892, 6862, 29918, 2083, 29897, 13, 1678, 278, 941, 353, 7442, 29889, 3298, 359, 29918, 4561, 29898, 17619, 29918, 2083, 29897, 13, 13, 1678, 926, 29918, 3944, 353, 6776, 29918, 3416, 6736, 29871, 29900, 13, 1678, 278, 941, 29961, 1066, 29918, 3944, 29962, 353, 7442, 29889, 279, 2395, 262, 29898, 5223, 29918, 3416, 29961, 1066, 29918, 3944, 2314, 13, 1678, 3480, 29918, 3944, 29918, 1066, 29918, 5223, 353, 7442, 29889, 1188, 936, 29918, 392, 29898, 3944, 29918, 3416, 529, 29871, 29900, 29892, 4457, 29918, 3416, 6736, 29871, 29900, 29897, 13, 1678, 278, 941, 29961, 10052, 29918, 3944, 29918, 1066, 29918, 5223, 29962, 353, 7442, 29889, 1631, 448, 7442, 29889, 279, 2395, 262, 29898, 5223, 29918, 3416, 29961, 10052, 29918, 3944, 29918, 1066, 29918, 5223, 2314, 13, 1678, 3480, 29918, 3944, 29918, 10052, 29918, 5223, 353, 7442, 29889, 1188, 936, 29918, 392, 29898, 3944, 29918, 3416, 529, 29871, 29900, 29892, 4457, 29918, 3416, 529, 29871, 29900, 29897, 13, 1678, 278, 941, 29961, 10052, 29918, 3944, 29918, 10052, 29918, 5223, 29962, 353, 448, 9302, 29889, 1631, 448, 7442, 29889, 279, 2395, 262, 29898, 5223, 29918, 3416, 29961, 10052, 29918, 3944, 29918, 10052, 29918, 5223, 2314, 13, 29871, 13, 1678, 278, 941, 353, 7442, 29889, 13707, 29918, 517, 29918, 1949, 29898, 3416, 29897, 13, 1678, 736, 278, 941, 13, 13, 13, 1753, 8147, 29918, 12765, 29918, 3416, 29898, 3416, 29896, 29892, 278, 941, 29906, 1125, 13, 1678, 2923, 353, 278, 941, 29896, 448, 278, 941, 29906, 13, 1678, 565, 2923, 1405, 7442, 29889, 1631, 29901, 13, 4706, 2923, 353, 448, 12765, 718, 29871, 29906, 334, 7442, 29889, 1631, 13, 1678, 25342, 2923, 529, 448, 9302, 29889, 1631, 29901, 13, 4706, 2923, 353, 2923, 718, 29871, 29906, 334, 7442, 29889, 1631, 13, 1678, 2923, 353, 448, 12765, 13, 1678, 736, 2923, 13, 13, 13, 1990, 16322, 556, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 921, 29918, 9891, 29892, 343, 29918, 9891, 1125, 13, 4706, 1583, 29889, 29916, 29918, 9891, 353, 921, 29918, 9891, 13, 4706, 1583, 29889, 29891, 29918, 9891, 353, 343, 29918, 9891, 13, 13, 1678, 822, 4216, 29898, 1311, 29892, 10104, 29922, 29906, 29900, 29900, 1125, 13, 4706, 278, 941, 353, 7442, 29889, 1915, 3493, 29898, 29900, 29892, 29871, 29906, 334, 7442, 29889, 1631, 29892, 954, 29922, 9778, 918, 29892, 16248, 29922, 8824, 29897, 13, 4706, 4559, 29881, 29918, 29916, 353, 1583, 29889, 29916, 29918, 9891, 29898, 3416, 29897, 13, 4706, 4559, 29881, 29918, 29891, 353, 1583, 29889, 29891, 29918, 9891, 29898, 3416, 29897, 13, 4706, 736, 4559, 29881, 29918, 29916, 29892, 4559, 29881, 29918, 29891, 13, 1678, 13, 13, 1990, 10802, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 14492, 29892, 343, 29879, 1125, 13, 4706, 1583, 3032, 29916, 353, 7442, 29889, 294, 2378, 29898, 10351, 29897, 13, 4706, 1583, 3032, 29891, 353, 7442, 29889, 294, 2378, 29898, 952, 29897, 13, 4706, 1583, 3032, 3416, 353, 8147, 29918, 3416, 29898, 10351, 29892, 343, 29879, 29897, 13, 4706, 1583, 29889, 9778, 918, 353, 7431, 29898, 10351, 29897, 13, 13, 1678, 822, 679, 29918, 29916, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 29916, 13, 13, 1678, 822, 679, 29918, 29891, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 29891, 13, 268, 13, 1678, 822, 5418, 29918, 517, 29898, 1311, 29892, 921, 29892, 343, 1125, 13, 4706, 396, 8147, 278, 3273, 342, 5418, 1546, 263, 1298, 304, 445, 11672, 13, 4706, 396, 736, 278, 5418, 322, 278, 14821, 310, 278, 1298, 373, 278, 11672, 13, 4706, 565, 1583, 3032, 29916, 338, 6213, 322, 1583, 3032, 29891, 338, 6213, 29901, 13, 9651, 1583, 3032, 29916, 29892, 1583, 3032, 29891, 353, 1583, 29889, 11249, 580, 13, 4706, 5418, 353, 7442, 29889, 17619, 29898, 1311, 3032, 29916, 448, 921, 29897, 718, 7442, 29889, 17619, 29898, 1311, 3032, 29891, 448, 343, 29897, 13, 4706, 766, 29918, 1195, 29892, 22645, 29918, 1195, 353, 7442, 29889, 1195, 29898, 19244, 511, 7442, 29889, 1191, 1195, 29898, 19244, 29897, 13, 4706, 736, 766, 29918, 1195, 29892, 313, 1311, 3032, 29916, 29961, 13140, 29918, 1195, 1402, 1583, 3032, 29891, 29961, 13140, 29918, 1195, 2314, 13, 13, 1678, 822, 3743, 29898, 1311, 29892, 921, 29892, 343, 1125, 13, 4706, 278, 941, 29918, 3594, 353, 8147, 29918, 3416, 29898, 29916, 29892, 343, 29897, 13, 4706, 22645, 353, 7442, 29889, 1191, 1195, 29898, 9302, 29889, 6897, 29898, 1311, 3032, 3416, 448, 278, 941, 29918, 3594, 876, 13, 4706, 3978, 29918, 517, 29918, 2084, 353, 7442, 29889, 17619, 29898, 1311, 3032, 29916, 29961, 13140, 2314, 718, 7442, 29889, 17619, 29898, 1311, 3032, 29891, 29961, 13140, 2314, 29871, 13, 4706, 3978, 29918, 517, 29918, 3594, 353, 7442, 29889, 17619, 29898, 29916, 29897, 718, 7442, 29889, 17619, 29898, 29891, 29897, 13, 4706, 736, 3978, 29918, 517, 29918, 3594, 529, 3978, 29918, 517, 29918, 2084, 13, 13, 1678, 822, 12678, 29918, 672, 440, 1230, 29898, 1311, 29892, 278, 941, 1125, 13, 4706, 22645, 353, 7442, 29889, 1191, 1195, 29898, 9302, 29889, 6897, 29898, 1311, 3032, 3416, 448, 278, 941, 876, 13, 4706, 2446, 29918, 13140, 353, 22645, 718, 29871, 29896, 565, 22645, 529, 1583, 29889, 9778, 918, 448, 29871, 29896, 1683, 29871, 29900, 13, 4706, 1833, 29918, 13140, 353, 22645, 448, 29871, 29896, 565, 22645, 1405, 29871, 29900, 1683, 1583, 29889, 9778, 918, 448, 29871, 29896, 13, 4706, 19471, 29918, 29916, 353, 1583, 3032, 29916, 29961, 4230, 29918, 13140, 29962, 448, 1583, 3032, 29916, 29961, 4622, 29918, 13140, 29962, 13, 4706, 19471, 29918, 29891, 353, 1583, 3032, 29891, 29961, 4230, 29918, 13140, 29962, 448, 1583, 3032, 29891, 29961, 4622, 29918, 13140, 29962, 13, 4706, 736, 8147, 29918, 3416, 29898, 4181, 29918, 29916, 29892, 19471, 29918, 29891, 29897, 13, 13, 13, 1990, 438, 791, 2605, 29898, 2605, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 263, 29892, 289, 29892, 10104, 29922, 29945, 29900, 29900, 1125, 13, 4706, 921, 29918, 9891, 353, 14013, 260, 29901, 263, 334, 7442, 29889, 3944, 29898, 29873, 29897, 13, 4706, 343, 29918, 9891, 353, 14013, 260, 29901, 289, 334, 7442, 29889, 5223, 29898, 29873, 29897, 13, 4706, 7482, 556, 353, 16322, 556, 29898, 29916, 29918, 9891, 29892, 343, 29918, 9891, 29897, 13, 4706, 2428, 29898, 29949, 791, 2605, 29892, 1583, 467, 1649, 2344, 1649, 10456, 19811, 556, 29889, 4012, 29898, 9778, 918, 29922, 9778, 918, 876, 13, 13, 13, 1990, 12545, 17936, 29898, 2605, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 6287, 29922, 29906, 29892, 10104, 29922, 29945, 29900, 29900, 29892, 921, 29918, 3881, 29922, 6278, 29953, 29892, 29871, 29953, 22164, 13, 4706, 1583, 29889, 7052, 353, 6287, 13, 4706, 1583, 29889, 9778, 918, 353, 10104, 13, 4706, 1583, 29889, 29916, 29918, 3881, 353, 921, 29918, 3881, 13, 4706, 2428, 29898, 15427, 17936, 29892, 1583, 467, 1649, 2344, 1649, 10456, 1311, 29889, 4012, 3101, 13, 13, 1678, 822, 4216, 29898, 1311, 1125, 13, 4706, 954, 29879, 353, 7442, 29889, 2378, 4197, 29900, 29889, 29941, 29892, 29871, 29900, 29889, 29946, 29892, 29871, 29900, 29889, 29941, 2314, 334, 313, 1311, 29889, 9778, 918, 847, 29871, 29906, 29897, 13, 4706, 4559, 29881, 29918, 29916, 29896, 29896, 353, 7442, 29889, 1915, 3493, 29898, 1311, 29889, 29916, 29918, 3881, 29961, 29900, 1402, 1583, 29889, 29916, 29918, 3881, 29961, 29900, 29962, 718, 29871, 29900, 29889, 29941, 29945, 29892, 954, 29922, 14486, 29898, 1949, 29879, 29961, 29900, 12622, 13, 4706, 4559, 29881, 29918, 29916, 29896, 29906, 353, 7442, 29889, 1915, 3493, 29898, 1311, 29889, 29916, 29918, 3881, 29961, 29900, 29962, 718, 29871, 29900, 29889, 29941, 29945, 29892, 1583, 29889, 29916, 29918, 3881, 29961, 29896, 29962, 448, 29871, 29900, 29889, 29941, 29945, 29892, 954, 29922, 14486, 29898, 1949, 29879, 29961, 29896, 12622, 13, 4706, 4559, 29881, 29918, 29916, 29896, 29941, 353, 7442, 29889, 1915, 3493, 29898, 1311, 29889, 29916, 29918, 3881, 29961, 29896, 29962, 448, 29871, 29900, 29889, 29941, 29945, 29892, 1583, 29889, 29916, 29918, 3881, 29961, 29896, 1402, 954, 29922, 14486, 29898, 1949, 29879, 29961, 29906, 12622, 13, 4706, 4559, 29881, 29918, 29916, 29896, 353, 7442, 29889, 535, 29883, 2579, 403, 3552, 11249, 29881, 29918, 29916, 29896, 29896, 29892, 4559, 29881, 29918, 29916, 29896, 29906, 29892, 4559, 29881, 29918, 29916, 29896, 29941, 876, 13, 4706, 4559, 29881, 29918, 29916, 29906, 353, 7442, 29889, 1915, 3493, 10456, 1311, 29889, 29916, 29918, 3881, 29892, 954, 29922, 14486, 29898, 1311, 29889, 9778, 918, 847, 29871, 29906, 876, 29961, 1057, 29899, 29896, 29962, 13, 4706, 343, 29896, 353, 518, 1311, 3032, 29891, 29906, 29918, 9891, 29898, 29916, 29897, 363, 921, 297, 4559, 29881, 29918, 29916, 29896, 29962, 13, 4706, 343, 29906, 353, 518, 1311, 3032, 29891, 29896, 29918, 9891, 29898, 29916, 29897, 363, 921, 297, 4559, 29881, 29918, 29916, 29906, 29962, 13, 4706, 4559, 29881, 29918, 29916, 353, 7442, 29889, 535, 29883, 2579, 403, 3552, 11249, 29881, 29918, 29916, 29896, 29892, 4559, 29881, 29918, 29916, 29906, 876, 13, 4706, 4559, 29881, 29918, 29891, 353, 7442, 29889, 294, 2378, 29898, 29891, 29896, 718, 343, 29906, 29897, 13, 4706, 736, 4559, 29881, 29918, 29916, 29892, 4559, 29881, 29918, 29891, 13, 13, 1678, 822, 903, 29891, 29896, 29918, 9891, 29898, 1311, 29892, 921, 1125, 13, 4706, 269, 353, 1583, 29889, 7052, 13, 4706, 565, 921, 529, 448, 29906, 334, 269, 29901, 13, 9651, 736, 29871, 29900, 13, 4706, 25342, 921, 529, 448, 29896, 334, 269, 29901, 13, 9651, 736, 7442, 29889, 3676, 29898, 29879, 3579, 29871, 29906, 448, 313, 29916, 718, 29871, 29896, 334, 269, 29897, 3579, 29871, 29906, 29897, 13, 4706, 25342, 921, 529, 29871, 29896, 334, 269, 29901, 13, 9651, 736, 269, 13, 4706, 25342, 921, 529, 29871, 29906, 334, 269, 29901, 13, 9651, 736, 7442, 29889, 3676, 29898, 29879, 3579, 29871, 29906, 448, 313, 29916, 448, 29871, 29896, 334, 269, 29897, 3579, 29871, 29906, 29897, 13, 4706, 1683, 29901, 13, 9651, 736, 29871, 29900, 13, 13, 1678, 822, 903, 29891, 29906, 29918, 9891, 29898, 1311, 29892, 921, 1125, 13, 4706, 269, 353, 1583, 29889, 7052, 13, 4706, 565, 921, 529, 448, 29906, 334, 269, 29901, 13, 9651, 736, 29871, 29900, 13, 4706, 25342, 921, 529, 448, 29896, 334, 269, 29901, 13, 9651, 736, 448, 9302, 29889, 3676, 29898, 29879, 3579, 29871, 29906, 448, 313, 29916, 718, 29871, 29896, 334, 269, 29897, 3579, 29871, 29906, 29897, 13, 4706, 25342, 921, 529, 29871, 29896, 334, 269, 29901, 13, 9651, 736, 448, 29879, 13, 4706, 25342, 921, 529, 29871, 29906, 334, 269, 29901, 13, 9651, 736, 448, 9302, 29889, 3676, 29898, 29879, 3579, 29871, 29906, 448, 313, 29916, 448, 29871, 29896, 334, 269, 29897, 3579, 29871, 29906, 29897, 13, 4706, 1683, 29901, 13, 9651, 736, 29871, 29900, 13, 13, 13, 10611, 29918, 2084, 353, 438, 791, 2605, 29898, 29945, 29892, 29871, 29941, 29892, 29871, 29945, 29900, 29900, 29897, 13, 12857, 29918, 11294, 353, 12545, 17936, 29898, 7052, 29922, 29941, 29892, 10104, 29922, 29896, 29900, 29900, 29900, 29892, 921, 29918, 3881, 29922, 6278, 29953, 29892, 29871, 29953, 876, 13, 2 ]
st2api/st2api/controllers/v1/actionalias.py
totalkyos/stack-storm
1
128073
<gh_stars>1-10 # Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import pecan import six from mongoengine import ValidationError from st2api.controllers import resource from st2common import log as logging from st2common.exceptions.apivalidation import ValueValidationException from st2common.models.api.action import ActionAliasAPI from st2common.persistence.actionalias import ActionAlias from st2common.models.api.base import jsexpose from st2common.rbac.types import PermissionType from st2common.rbac.decorators import request_user_has_permission from st2common.rbac.decorators import request_user_has_resource_api_permission from st2common.rbac.decorators import request_user_has_resource_db_permission http_client = six.moves.http_client LOG = logging.getLogger(__name__) class ActionAliasController(resource.ContentPackResourceController): """ Implements the RESTful interface for ActionAliases. """ model = ActionAliasAPI access = ActionAlias supported_filters = { 'name': 'name', 'pack': 'pack' } query_options = { 'sort': ['pack', 'name'] } @request_user_has_permission(permission_type=PermissionType.ACTION_ALIAS_LIST) @jsexpose() def get_all(self, **kwargs): return super(ActionAliasController, self)._get_all(**kwargs) @request_user_has_resource_db_permission(permission_type=PermissionType.ACTION_ALIAS_VIEW) @jsexpose(arg_types=[str]) def get_one(self, ref_or_id): return super(ActionAliasController, self)._get_one(ref_or_id) @jsexpose(body_cls=ActionAliasAPI, status_code=http_client.CREATED) @request_user_has_resource_api_permission(permission_type=PermissionType.ACTION_ALIAS_CREATE) def post(self, action_alias): """ Create a new ActionAlias. Handles requests: POST /actionalias/ """ try: action_alias_db = ActionAliasAPI.to_model(action_alias) LOG.debug('/actionalias/ POST verified ActionAliasAPI and formulated ActionAliasDB=%s', action_alias_db) action_alias_db = ActionAlias.add_or_update(action_alias_db) except (ValidationError, ValueError, ValueValidationException) as e: LOG.exception('Validation failed for action alias data=%s.', action_alias) pecan.abort(http_client.BAD_REQUEST, str(e)) return extra = {'action_alias_db': action_alias_db} LOG.audit('Action alias created. ActionAlias.id=%s' % (action_alias_db.id), extra=extra) action_alias_api = ActionAliasAPI.from_model(action_alias_db) return action_alias_api @request_user_has_resource_db_permission(permission_type=PermissionType.ACTION_MODIFY) @jsexpose(arg_types=[str], body_cls=ActionAliasAPI) def put(self, action_alias_ref_or_id, action_alias): action_alias_db = self._get_by_ref_or_id(ref_or_id=action_alias_ref_or_id) LOG.debug('PUT /actionalias/ lookup with id=%s found object: %s', action_alias_ref_or_id, action_alias_db) try: if action_alias.id is not None and action_alias.id is not '' and \ action_alias.id != action_alias_ref_or_id: LOG.warning('Discarding mismatched id=%s found in payload and using uri_id=%s.', action_alias.id, action_alias_ref_or_id) old_action_alias_db = action_alias_db action_alias_db = ActionAliasAPI.to_model(action_alias) action_alias_db.id = action_alias_ref_or_id action_alias_db = ActionAlias.add_or_update(action_alias_db) except (ValidationError, ValueError) as e: LOG.exception('Validation failed for action alias data=%s', action_alias) pecan.abort(http_client.BAD_REQUEST, str(e)) return extra = {'old_action_alias_db': old_action_alias_db, 'new_action_alias_db': action_alias_db} LOG.audit('Action alias updated. ActionAlias.id=%s.' % (action_alias_db.id), extra=extra) action_alias_api = ActionAliasAPI.from_model(action_alias_db) return action_alias_api @request_user_has_resource_db_permission(permission_type=PermissionType.ACTION_ALIAS_DELETE) @jsexpose(arg_types=[str], status_code=http_client.NO_CONTENT) def delete(self, action_alias_ref_or_id): """ Delete an action alias. Handles requests: DELETE /actionalias/1 """ action_alias_db = self._get_by_ref_or_id(ref_or_id=action_alias_ref_or_id) LOG.debug('DELETE /actionalias/ lookup with id=%s found object: %s', action_alias_ref_or_id, action_alias_db) try: ActionAlias.delete(action_alias_db) except Exception as e: LOG.exception('Database delete encountered exception during delete of id="%s".', action_alias_ref_or_id) pecan.abort(http_client.INTERNAL_SERVER_ERROR, str(e)) return extra = {'action_alias_db': action_alias_db} LOG.audit('Action alias deleted. ActionAlias.id=%s.' % (action_alias_db.id), extra=extra)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 10413, 21144, 304, 278, 10292, 855, 555, 29892, 9266, 6702, 7264, 855, 555, 1495, 1090, 697, 470, 901, 13, 29937, 17737, 3406, 19405, 8571, 4110, 29889, 29871, 2823, 278, 6058, 12107, 934, 13235, 411, 13, 29937, 445, 664, 363, 5684, 2472, 11211, 3509, 1266, 27428, 29889, 13, 29937, 450, 3339, 29943, 7794, 11259, 445, 934, 304, 887, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 13, 29937, 313, 1552, 376, 29931, 293, 1947, 1496, 366, 1122, 451, 671, 445, 934, 5174, 297, 752, 13036, 411, 13, 29937, 278, 19245, 29889, 29871, 887, 1122, 4017, 263, 3509, 310, 278, 19245, 472, 13, 29937, 13, 29937, 268, 1732, 597, 1636, 29889, 4288, 29889, 990, 29914, 506, 11259, 29914, 27888, 1430, 1660, 29899, 29906, 29889, 29900, 13, 29937, 13, 29937, 25870, 3734, 491, 22903, 4307, 470, 15502, 304, 297, 5007, 29892, 7047, 13, 29937, 13235, 1090, 278, 19245, 338, 13235, 373, 385, 376, 3289, 8519, 29908, 350, 3289, 3235, 29892, 13, 29937, 399, 1806, 8187, 2692, 399, 1718, 29934, 13566, 29059, 6323, 8707, 29928, 22122, 29903, 8079, 13764, 29979, 476, 22255, 29892, 2845, 4653, 470, 2411, 2957, 29889, 13, 29937, 2823, 278, 19245, 363, 278, 2702, 4086, 14765, 1076, 11239, 322, 13, 29937, 27028, 1090, 278, 19245, 29889, 13, 13, 5215, 13209, 273, 13, 5215, 4832, 13, 13, 3166, 19476, 10599, 1053, 15758, 362, 2392, 13, 3166, 380, 29906, 2754, 29889, 1285, 11897, 1053, 6503, 13, 3166, 380, 29906, 9435, 1053, 1480, 408, 12183, 13, 3166, 380, 29906, 9435, 29889, 11739, 29879, 29889, 481, 2561, 333, 362, 1053, 7865, 19448, 2451, 13, 3166, 380, 29906, 9435, 29889, 9794, 29889, 2754, 29889, 2467, 1053, 9123, 29909, 18849, 8787, 13, 3166, 380, 29906, 9435, 29889, 28249, 29889, 2467, 19973, 1053, 9123, 29909, 18849, 13, 3166, 380, 29906, 9435, 29889, 9794, 29889, 2754, 29889, 3188, 1053, 432, 14167, 4220, 13, 3166, 380, 29906, 9435, 29889, 6050, 562, 29889, 8768, 1053, 20894, 2333, 1542, 13, 3166, 380, 29906, 9435, 29889, 6050, 562, 29889, 19557, 4097, 1053, 2009, 29918, 1792, 29918, 5349, 29918, 16074, 13, 3166, 380, 29906, 9435, 29889, 6050, 562, 29889, 19557, 4097, 1053, 2009, 29918, 1792, 29918, 5349, 29918, 10314, 29918, 2754, 29918, 16074, 13, 3166, 380, 29906, 9435, 29889, 6050, 562, 29889, 19557, 4097, 1053, 2009, 29918, 1792, 29918, 5349, 29918, 10314, 29918, 2585, 29918, 16074, 13, 13, 1124, 29918, 4645, 353, 4832, 29889, 13529, 267, 29889, 1124, 29918, 4645, 13, 13, 14480, 353, 12183, 29889, 657, 16363, 22168, 978, 1649, 29897, 13, 13, 13, 1990, 9123, 29909, 18849, 2956, 29898, 10314, 29889, 3916, 16638, 6848, 2956, 1125, 13, 1678, 9995, 13, 4706, 1954, 9711, 278, 16759, 1319, 5067, 363, 9123, 29909, 492, 2129, 29889, 13, 1678, 9995, 13, 1678, 1904, 353, 9123, 29909, 18849, 8787, 13, 1678, 2130, 353, 9123, 29909, 18849, 13, 1678, 6969, 29918, 26705, 353, 426, 13, 4706, 525, 978, 2396, 525, 978, 742, 13, 4706, 525, 4058, 2396, 525, 4058, 29915, 13, 1678, 500, 13, 13, 1678, 2346, 29918, 6768, 353, 426, 13, 4706, 525, 6605, 2396, 6024, 4058, 742, 525, 978, 2033, 13, 1678, 500, 13, 13, 1678, 732, 3827, 29918, 1792, 29918, 5349, 29918, 16074, 29898, 16074, 29918, 1853, 29922, 27293, 1542, 29889, 24705, 29918, 1964, 29902, 3289, 29918, 24360, 29897, 13, 1678, 732, 29926, 14167, 4220, 580, 13, 1678, 822, 679, 29918, 497, 29898, 1311, 29892, 3579, 19290, 1125, 13, 4706, 736, 2428, 29898, 4276, 29909, 18849, 2956, 29892, 1583, 467, 29918, 657, 29918, 497, 29898, 1068, 19290, 29897, 13, 13, 1678, 732, 3827, 29918, 1792, 29918, 5349, 29918, 10314, 29918, 2585, 29918, 16074, 29898, 16074, 29918, 1853, 29922, 27293, 1542, 29889, 24705, 29918, 1964, 29902, 3289, 29918, 29963, 8673, 29956, 29897, 13, 1678, 732, 29926, 14167, 4220, 29898, 1191, 29918, 8768, 11759, 710, 2314, 13, 1678, 822, 679, 29918, 650, 29898, 1311, 29892, 2143, 29918, 272, 29918, 333, 1125, 13, 4706, 736, 2428, 29898, 4276, 29909, 18849, 2956, 29892, 1583, 467, 29918, 657, 29918, 650, 29898, 999, 29918, 272, 29918, 333, 29897, 13, 13, 1678, 732, 29926, 14167, 4220, 29898, 2587, 29918, 25932, 29922, 4276, 29909, 18849, 8787, 29892, 4660, 29918, 401, 29922, 1124, 29918, 4645, 29889, 27045, 29928, 29897, 13, 1678, 732, 3827, 29918, 1792, 29918, 5349, 29918, 10314, 29918, 2754, 29918, 16074, 29898, 16074, 29918, 1853, 29922, 27293, 1542, 29889, 24705, 29918, 1964, 29902, 3289, 29918, 27045, 29897, 13, 1678, 822, 1400, 29898, 1311, 29892, 3158, 29918, 19973, 1125, 13, 4706, 9995, 13, 9651, 6204, 263, 716, 9123, 29909, 18849, 29889, 13, 13, 9651, 5166, 793, 7274, 29901, 13, 18884, 11971, 847, 2467, 19973, 29914, 13, 4706, 9995, 13, 4706, 1018, 29901, 13, 9651, 3158, 29918, 19973, 29918, 2585, 353, 9123, 29909, 18849, 8787, 29889, 517, 29918, 4299, 29898, 2467, 29918, 19973, 29897, 13, 9651, 25401, 29889, 8382, 11219, 2467, 19973, 29914, 11971, 26834, 9123, 29909, 18849, 8787, 322, 883, 7964, 9123, 29909, 18849, 4051, 16328, 29879, 742, 13, 462, 418, 3158, 29918, 19973, 29918, 2585, 29897, 13, 9651, 3158, 29918, 19973, 29918, 2585, 353, 9123, 29909, 18849, 29889, 1202, 29918, 272, 29918, 5504, 29898, 2467, 29918, 19973, 29918, 2585, 29897, 13, 4706, 5174, 313, 19448, 2392, 29892, 7865, 2392, 29892, 7865, 19448, 2451, 29897, 408, 321, 29901, 13, 9651, 25401, 29889, 11739, 877, 19448, 5229, 363, 3158, 13995, 848, 16328, 29879, 29889, 742, 3158, 29918, 19973, 29897, 13, 9651, 13209, 273, 29889, 370, 441, 29898, 1124, 29918, 4645, 29889, 29933, 3035, 29918, 16244, 29892, 851, 29898, 29872, 876, 13, 9651, 736, 13, 13, 4706, 4805, 353, 11117, 2467, 29918, 19973, 29918, 2585, 2396, 3158, 29918, 19973, 29918, 2585, 29913, 13, 4706, 25401, 29889, 15052, 277, 877, 4276, 13995, 2825, 29889, 9123, 29909, 18849, 29889, 333, 16328, 29879, 29915, 1273, 313, 2467, 29918, 19973, 29918, 2585, 29889, 333, 511, 4805, 29922, 17833, 29897, 13, 4706, 3158, 29918, 19973, 29918, 2754, 353, 9123, 29909, 18849, 8787, 29889, 3166, 29918, 4299, 29898, 2467, 29918, 19973, 29918, 2585, 29897, 13, 13, 4706, 736, 3158, 29918, 19973, 29918, 2754, 13, 13, 1678, 732, 3827, 29918, 1792, 29918, 5349, 29918, 10314, 29918, 2585, 29918, 16074, 29898, 16074, 29918, 1853, 29922, 27293, 1542, 29889, 24705, 29918, 6720, 4571, 29943, 29979, 29897, 13, 1678, 732, 29926, 14167, 4220, 29898, 1191, 29918, 8768, 11759, 710, 1402, 3573, 29918, 25932, 29922, 4276, 29909, 18849, 8787, 29897, 13, 1678, 822, 1925, 29898, 1311, 29892, 3158, 29918, 19973, 29918, 999, 29918, 272, 29918, 333, 29892, 3158, 29918, 19973, 1125, 13, 4706, 3158, 29918, 19973, 29918, 2585, 353, 1583, 3032, 657, 29918, 1609, 29918, 999, 29918, 272, 29918, 333, 29898, 999, 29918, 272, 29918, 333, 29922, 2467, 29918, 19973, 29918, 999, 29918, 272, 29918, 333, 29897, 13, 4706, 25401, 29889, 8382, 877, 12336, 847, 2467, 19973, 29914, 16280, 411, 1178, 16328, 29879, 1476, 1203, 29901, 1273, 29879, 742, 3158, 29918, 19973, 29918, 999, 29918, 272, 29918, 333, 29892, 13, 462, 29871, 3158, 29918, 19973, 29918, 2585, 29897, 13, 13, 4706, 1018, 29901, 13, 9651, 565, 3158, 29918, 19973, 29889, 333, 338, 451, 6213, 322, 3158, 29918, 19973, 29889, 333, 338, 451, 6629, 322, 320, 13, 1669, 3158, 29918, 19973, 29889, 333, 2804, 3158, 29918, 19973, 29918, 999, 29918, 272, 29918, 333, 29901, 13, 18884, 25401, 29889, 27392, 877, 4205, 7543, 292, 29635, 287, 1178, 16328, 29879, 1476, 297, 20092, 322, 773, 21333, 29918, 333, 16328, 29879, 29889, 742, 13, 462, 9651, 3158, 29918, 19973, 29889, 333, 29892, 3158, 29918, 19973, 29918, 999, 29918, 272, 29918, 333, 29897, 13, 9651, 2030, 29918, 2467, 29918, 19973, 29918, 2585, 353, 3158, 29918, 19973, 29918, 2585, 13, 9651, 3158, 29918, 19973, 29918, 2585, 353, 9123, 29909, 18849, 8787, 29889, 517, 29918, 4299, 29898, 2467, 29918, 19973, 29897, 13, 9651, 3158, 29918, 19973, 29918, 2585, 29889, 333, 353, 3158, 29918, 19973, 29918, 999, 29918, 272, 29918, 333, 13, 9651, 3158, 29918, 19973, 29918, 2585, 353, 9123, 29909, 18849, 29889, 1202, 29918, 272, 29918, 5504, 29898, 2467, 29918, 19973, 29918, 2585, 29897, 13, 4706, 5174, 313, 19448, 2392, 29892, 7865, 2392, 29897, 408, 321, 29901, 13, 9651, 25401, 29889, 11739, 877, 19448, 5229, 363, 3158, 13995, 848, 16328, 29879, 742, 3158, 29918, 19973, 29897, 13, 9651, 13209, 273, 29889, 370, 441, 29898, 1124, 29918, 4645, 29889, 29933, 3035, 29918, 16244, 29892, 851, 29898, 29872, 876, 13, 9651, 736, 13, 13, 4706, 4805, 353, 11117, 1025, 29918, 2467, 29918, 19973, 29918, 2585, 2396, 2030, 29918, 2467, 29918, 19973, 29918, 2585, 29892, 525, 1482, 29918, 2467, 29918, 19973, 29918, 2585, 2396, 3158, 29918, 19973, 29918, 2585, 29913, 13, 4706, 25401, 29889, 15052, 277, 877, 4276, 13995, 4784, 29889, 9123, 29909, 18849, 29889, 333, 16328, 29879, 6169, 1273, 313, 2467, 29918, 19973, 29918, 2585, 29889, 333, 511, 4805, 29922, 17833, 29897, 13, 4706, 3158, 29918, 19973, 29918, 2754, 353, 9123, 29909, 18849, 8787, 29889, 3166, 29918, 4299, 29898, 2467, 29918, 19973, 29918, 2585, 29897, 13, 13, 4706, 736, 3158, 29918, 19973, 29918, 2754, 13, 13, 1678, 732, 3827, 29918, 1792, 29918, 5349, 29918, 10314, 29918, 2585, 29918, 16074, 29898, 16074, 29918, 1853, 29922, 27293, 1542, 29889, 24705, 29918, 1964, 29902, 3289, 29918, 2287, 18476, 29897, 13, 1678, 732, 29926, 14167, 4220, 29898, 1191, 29918, 8768, 11759, 710, 1402, 4660, 29918, 401, 29922, 1124, 29918, 4645, 29889, 6632, 29918, 22412, 3919, 29897, 13, 1678, 822, 5217, 29898, 1311, 29892, 3158, 29918, 19973, 29918, 999, 29918, 272, 29918, 333, 1125, 13, 4706, 9995, 13, 9651, 21267, 385, 3158, 13995, 29889, 13, 13, 9651, 5166, 793, 7274, 29901, 13, 18884, 5012, 18476, 847, 2467, 19973, 29914, 29896, 13, 4706, 9995, 13, 4706, 3158, 29918, 19973, 29918, 2585, 353, 1583, 3032, 657, 29918, 1609, 29918, 999, 29918, 272, 29918, 333, 29898, 999, 29918, 272, 29918, 333, 29922, 2467, 29918, 19973, 29918, 999, 29918, 272, 29918, 333, 29897, 13, 4706, 25401, 29889, 8382, 877, 2287, 18476, 847, 2467, 19973, 29914, 16280, 411, 1178, 16328, 29879, 1476, 1203, 29901, 1273, 29879, 742, 3158, 29918, 19973, 29918, 999, 29918, 272, 29918, 333, 29892, 13, 462, 29871, 3158, 29918, 19973, 29918, 2585, 29897, 13, 4706, 1018, 29901, 13, 9651, 9123, 29909, 18849, 29889, 8143, 29898, 2467, 29918, 19973, 29918, 2585, 29897, 13, 4706, 5174, 8960, 408, 321, 29901, 13, 9651, 25401, 29889, 11739, 877, 9112, 5217, 18169, 3682, 2645, 5217, 310, 1178, 543, 29995, 29879, 1642, 742, 13, 462, 3986, 3158, 29918, 19973, 29918, 999, 29918, 272, 29918, 333, 29897, 13, 9651, 13209, 273, 29889, 370, 441, 29898, 1124, 29918, 4645, 29889, 23845, 29940, 1964, 29918, 18603, 29918, 11432, 29892, 851, 29898, 29872, 876, 13, 9651, 736, 13, 13, 4706, 4805, 353, 11117, 2467, 29918, 19973, 29918, 2585, 2396, 3158, 29918, 19973, 29918, 2585, 29913, 13, 4706, 25401, 29889, 15052, 277, 877, 4276, 13995, 11132, 29889, 9123, 29909, 18849, 29889, 333, 16328, 29879, 6169, 1273, 313, 2467, 29918, 19973, 29918, 2585, 29889, 333, 511, 4805, 29922, 17833, 29897, 13, 2 ]
python/testData/codeInsight/controlflow/tryraisefinally.py
jnthn/intellij-community
2
195233
<reponame>jnthn/intellij-community try: raise KeyboardInterrupt finally: print 'test'
[ 1, 529, 276, 1112, 420, 29958, 29926, 20800, 29876, 29914, 28820, 29899, 23834, 13, 2202, 29901, 13, 1678, 12020, 7670, 3377, 4074, 6685, 13, 4951, 635, 29901, 13, 1678, 1596, 525, 1688, 29915, 2 ]
fjarrsyn/tests/test_agent_setup_mould_act_3.py
anderzzz/fjarrsyn
0
72661
<filename>fjarrsyn/tests/test_agent_setup_mould_act_3.py '''Integration test of agent setup of Moulder and Actuator organs with multiple output Directions and Resource Maps ''' import pytest from fjarrsyn.core.agent import Agent from fjarrsyn.core.instructor import Moulder, Actuator from fjarrsyn.core.message import Belief, Direction, Resource, MessageOperator from fjarrsyn.core.scaffold_map import ResourceMap, MapCollection from fjarrsyn.core.array import EmptyFlashError REF_REPO = [('v', 0, 1.0), ('h', -1, 0.5), ('v', -1, 1.0), ('h', 1, 0.5)] REF_E = [15.0, 10.0] def isclose(a, b, rel_tol=1e-9, abs_tol=0.0): return abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol) def make_decision(s, h, a): energy_tot = 0.0 if s < 50.0: return 0, 0.0, 0, 0.0, energy_tot else: h_m = 0.5 a_m = 1.0 if h < 1.0: h_d = -1 energy_tot += 5.0 else: h_d = 1 energy_tot += 3.0 if a < -0.3: a_d = -1 energy_tot += 2.0 elif a > 0.3: a_d = 1 energy_tot += 2.0 else: a_d = 0 energy_tot += 0.0 return h_d, h_m, a_d, a_m, -1.0 * energy_tot REPO = [] def move_rule_horizontal(d, m): REPO.append(('h',d,m)) def move_rule_vertical(d, m): REPO.append(('v',d,m)) def test_main(): # # Define Messages # belief = Belief('Projectile status', ('speed', 'height', 'angle')) belief.set_values([100.0, 0.3, 0.2]) direction = Direction('motion', ('horizontal direction', 'horizontal magnitude', 'vertical direction', 'vertical magnitude')) # # Define Scaffold and Map for it # agent_resources = Resource('internal_resource', ('internal_energy',)) agent_resources.set_values(20.0) change_energy = ResourceMap('adjust_energy', 'delta', 'internal_energy', ('expend_energy',)) # # Define Organs and their associated messages # moulder = Moulder('take evasive action?', make_decision, belief, direction, change_energy) splitter_1 = MessageOperator(direction, slice_labels=['horizontal direction', 'horizontal magnitude']) splitter_2 = MessageOperator(direction, slice_labels=['vertical direction', 'vertical magnitude']) actuator1 = Actuator('move left right', move_rule_horizontal, splitter_1) actuator2 = Actuator('move up down', move_rule_vertical, splitter_2) # # Initialize Agent # agent = Agent('test_agent', strict_engine=True) agent.set_organ(moulder) agent.set_organ(actuator1) agent.set_organ(actuator2) agent.set_scaffold(agent_resources) agent.set_message(belief) # # Decide on direction and execute action # agent.mould('take evasive action?') agent.act('move up down') agent.act('move left right') assert (agent.resource['internal_energy'] == REF_E[0]) belief.set_values([100.0, 1.3, -0.5]) agent.mould('take evasive action?') agent.act('move up down') agent.act('move left right') assert (agent.resource['internal_energy'] == REF_E[1]) for e1, e2 in zip(REPO, REF_REPO): assert(e1 == e2) try: agent.act('move up down') raise AssertionError('Action without preceding moulding did not raise exception') except EmptyFlashError: pass else: raise AssertionError('Action without preceding moulding did not raise expected exception') try: agent.act('move left right') raise AssertionError('Action without preceding moulding did not raise exception') except EmptyFlashError: pass else: raise AssertionError('Action without preceding moulding did not raise expected exception')
[ 1, 529, 9507, 29958, 29888, 4758, 2288, 948, 29914, 21150, 29914, 1688, 29918, 14748, 29918, 14669, 29918, 29885, 483, 29918, 627, 29918, 29941, 29889, 2272, 13, 12008, 23573, 362, 1243, 310, 10823, 6230, 310, 341, 483, 261, 322, 3185, 29884, 1061, 1638, 550, 411, 2999, 13, 4905, 14818, 1953, 322, 18981, 25846, 13, 13, 12008, 13, 5215, 11451, 1688, 13, 3166, 285, 4758, 2288, 948, 29889, 3221, 29889, 14748, 1053, 28330, 13, 13, 3166, 285, 4758, 2288, 948, 29889, 3221, 29889, 2611, 1247, 272, 1053, 341, 483, 261, 29892, 3185, 29884, 1061, 13, 3166, 285, 4758, 2288, 948, 29889, 3221, 29889, 4906, 1053, 3741, 2575, 29892, 360, 8684, 29892, 18981, 29892, 7777, 26486, 13, 3166, 285, 4758, 2288, 948, 29889, 3221, 29889, 29879, 1113, 600, 1025, 29918, 1958, 1053, 18981, 3388, 29892, 7315, 7196, 13, 3166, 285, 4758, 2288, 948, 29889, 3221, 29889, 2378, 1053, 2812, 2349, 8754, 1161, 2392, 13, 13, 25866, 29918, 1525, 13152, 353, 518, 877, 29894, 742, 29871, 29900, 29892, 29871, 29896, 29889, 29900, 511, 6702, 29882, 742, 448, 29896, 29892, 29871, 29900, 29889, 29945, 511, 6702, 29894, 742, 448, 29896, 29892, 29871, 29896, 29889, 29900, 511, 6702, 29882, 742, 29871, 29896, 29892, 29871, 29900, 29889, 29945, 4638, 13, 25866, 29918, 29923, 353, 518, 29896, 29945, 29889, 29900, 29892, 29871, 29896, 29900, 29889, 29900, 29962, 13, 13, 1753, 338, 5358, 29898, 29874, 29892, 289, 29892, 1104, 29918, 25027, 29922, 29896, 29872, 29899, 29929, 29892, 6425, 29918, 25027, 29922, 29900, 29889, 29900, 1125, 13, 1678, 736, 6425, 29898, 29874, 29899, 29890, 29897, 5277, 4236, 29898, 2674, 29918, 25027, 334, 4236, 29898, 6897, 29898, 29874, 511, 6425, 29898, 29890, 8243, 6425, 29918, 25027, 29897, 13, 13, 1753, 1207, 29918, 7099, 2459, 29898, 29879, 29892, 298, 29892, 263, 1125, 13, 1678, 5864, 29918, 4260, 353, 29871, 29900, 29889, 29900, 13, 1678, 565, 269, 529, 29871, 29945, 29900, 29889, 29900, 29901, 13, 4706, 736, 29871, 29900, 29892, 29871, 29900, 29889, 29900, 29892, 29871, 29900, 29892, 29871, 29900, 29889, 29900, 29892, 5864, 29918, 4260, 13, 1678, 1683, 29901, 13, 4706, 298, 29918, 29885, 353, 29871, 29900, 29889, 29945, 13, 4706, 263, 29918, 29885, 353, 29871, 29896, 29889, 29900, 13, 4706, 565, 298, 529, 29871, 29896, 29889, 29900, 29901, 13, 9651, 298, 29918, 29881, 353, 448, 29896, 13, 9651, 5864, 29918, 4260, 4619, 29871, 29945, 29889, 29900, 13, 4706, 1683, 29901, 13, 9651, 298, 29918, 29881, 353, 29871, 29896, 13, 9651, 5864, 29918, 4260, 4619, 29871, 29941, 29889, 29900, 13, 13, 4706, 565, 263, 529, 448, 29900, 29889, 29941, 29901, 13, 9651, 263, 29918, 29881, 353, 448, 29896, 13, 9651, 5864, 29918, 4260, 4619, 29871, 29906, 29889, 29900, 13, 4706, 25342, 263, 1405, 29871, 29900, 29889, 29941, 29901, 13, 9651, 263, 29918, 29881, 353, 29871, 29896, 13, 9651, 5864, 29918, 4260, 4619, 29871, 29906, 29889, 29900, 13, 4706, 1683, 29901, 29871, 13, 9651, 263, 29918, 29881, 353, 29871, 29900, 13, 9651, 5864, 29918, 4260, 4619, 29871, 29900, 29889, 29900, 13, 13, 4706, 736, 298, 29918, 29881, 29892, 298, 29918, 29885, 29892, 263, 29918, 29881, 29892, 263, 29918, 29885, 29892, 448, 29896, 29889, 29900, 334, 5864, 29918, 4260, 13, 13, 1525, 13152, 353, 5159, 13, 1753, 4337, 29918, 7491, 29918, 22672, 29898, 29881, 29892, 286, 1125, 13, 1678, 5195, 13152, 29889, 4397, 29898, 877, 29882, 742, 29881, 29892, 29885, 876, 13, 1753, 4337, 29918, 7491, 29918, 18575, 29898, 29881, 29892, 286, 1125, 13, 1678, 5195, 13152, 29889, 4397, 29898, 877, 29894, 742, 29881, 29892, 29885, 876, 13, 13, 1753, 1243, 29918, 3396, 7295, 13, 1678, 396, 13, 1678, 396, 22402, 11946, 1179, 13, 1678, 396, 13, 1678, 17750, 353, 3741, 2575, 877, 7653, 488, 4660, 742, 6702, 19322, 742, 525, 3545, 742, 525, 2521, 8785, 13, 1678, 17750, 29889, 842, 29918, 5975, 4197, 29896, 29900, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29941, 29892, 29871, 29900, 29889, 29906, 2314, 13, 1678, 5305, 353, 360, 8684, 877, 29885, 8194, 742, 6702, 22672, 5305, 742, 13, 462, 462, 268, 525, 22672, 18497, 742, 13, 462, 462, 268, 525, 18575, 5305, 742, 13, 462, 462, 268, 525, 18575, 18497, 8785, 13, 13, 1678, 396, 13, 1678, 396, 22402, 317, 1113, 600, 1025, 322, 7315, 363, 372, 13, 1678, 396, 13, 1678, 10823, 29918, 13237, 353, 18981, 877, 7564, 29918, 10314, 742, 6702, 7564, 29918, 27548, 742, 876, 13, 1678, 10823, 29918, 13237, 29889, 842, 29918, 5975, 29898, 29906, 29900, 29889, 29900, 29897, 13, 1678, 1735, 29918, 27548, 353, 18981, 3388, 877, 328, 5143, 29918, 27548, 742, 525, 4181, 742, 525, 7564, 29918, 27548, 742, 6702, 4548, 355, 29918, 27548, 742, 876, 13, 13, 1678, 396, 13, 1678, 396, 22402, 1394, 29887, 550, 322, 1009, 6942, 7191, 13, 1678, 396, 13, 1678, 286, 483, 261, 353, 341, 483, 261, 877, 19730, 3415, 294, 573, 3158, 29973, 742, 1207, 29918, 7099, 2459, 29892, 13, 462, 418, 17750, 29892, 5305, 29892, 13, 462, 418, 1735, 29918, 27548, 29897, 13, 1678, 6219, 357, 29918, 29896, 353, 7777, 26486, 29898, 20845, 29892, 22780, 29918, 21134, 29922, 1839, 22672, 5305, 742, 13, 462, 462, 462, 3986, 525, 22672, 18497, 11287, 13, 1678, 6219, 357, 29918, 29906, 353, 7777, 26486, 29898, 20845, 29892, 22780, 29918, 21134, 29922, 1839, 18575, 5305, 742, 13, 462, 462, 462, 3986, 525, 18575, 18497, 11287, 13, 1678, 20331, 1061, 29896, 353, 3185, 29884, 1061, 877, 11631, 2175, 1492, 742, 4337, 29918, 7491, 29918, 22672, 29892, 6219, 357, 29918, 29896, 29897, 13, 1678, 20331, 1061, 29906, 353, 3185, 29884, 1061, 877, 11631, 701, 1623, 742, 4337, 29918, 7491, 29918, 18575, 29892, 6219, 357, 29918, 29906, 29897, 13, 13, 1678, 396, 13, 1678, 396, 25455, 28330, 13, 1678, 396, 13, 1678, 10823, 353, 28330, 877, 1688, 29918, 14748, 742, 9406, 29918, 10599, 29922, 5574, 29897, 13, 1678, 10823, 29889, 842, 29918, 6388, 29898, 29885, 483, 261, 29897, 13, 1678, 10823, 29889, 842, 29918, 6388, 29898, 627, 29884, 1061, 29896, 29897, 13, 1678, 10823, 29889, 842, 29918, 6388, 29898, 627, 29884, 1061, 29906, 29897, 13, 1678, 10823, 29889, 842, 29918, 29879, 1113, 600, 1025, 29898, 14748, 29918, 13237, 29897, 13, 1678, 10823, 29889, 842, 29918, 4906, 29898, 6596, 2575, 29897, 13, 13, 1678, 396, 13, 1678, 396, 897, 8204, 373, 5305, 322, 6222, 3158, 13, 1678, 396, 13, 1678, 10823, 29889, 29885, 483, 877, 19730, 3415, 294, 573, 3158, 29973, 1495, 13, 1678, 10823, 29889, 627, 877, 11631, 701, 1623, 1495, 13, 1678, 10823, 29889, 627, 877, 11631, 2175, 1492, 1495, 13, 1678, 4974, 313, 14748, 29889, 10314, 1839, 7564, 29918, 27548, 2033, 1275, 5195, 29943, 29918, 29923, 29961, 29900, 2314, 13, 1678, 17750, 29889, 842, 29918, 5975, 4197, 29896, 29900, 29900, 29889, 29900, 29892, 29871, 29896, 29889, 29941, 29892, 448, 29900, 29889, 29945, 2314, 13, 1678, 10823, 29889, 29885, 483, 877, 19730, 3415, 294, 573, 3158, 29973, 1495, 13, 1678, 10823, 29889, 627, 877, 11631, 701, 1623, 1495, 13, 1678, 10823, 29889, 627, 877, 11631, 2175, 1492, 1495, 13, 1678, 4974, 313, 14748, 29889, 10314, 1839, 7564, 29918, 27548, 2033, 1275, 5195, 29943, 29918, 29923, 29961, 29896, 2314, 13, 1678, 363, 321, 29896, 29892, 321, 29906, 297, 14319, 29898, 1525, 13152, 29892, 5195, 29943, 29918, 1525, 13152, 1125, 13, 4706, 4974, 29898, 29872, 29896, 1275, 321, 29906, 29897, 13, 13, 1678, 1018, 29901, 13, 4706, 10823, 29889, 627, 877, 11631, 701, 1623, 1495, 13, 4706, 12020, 16499, 291, 2392, 877, 4276, 1728, 26328, 286, 483, 292, 1258, 451, 12020, 3682, 1495, 13, 1678, 5174, 2812, 2349, 8754, 1161, 2392, 29901, 13, 4706, 1209, 13, 1678, 1683, 29901, 13, 4706, 12020, 16499, 291, 2392, 877, 4276, 1728, 26328, 286, 483, 292, 1258, 451, 12020, 3806, 3682, 1495, 13, 1678, 1018, 29901, 13, 4706, 10823, 29889, 627, 877, 11631, 2175, 1492, 1495, 13, 4706, 12020, 16499, 291, 2392, 877, 4276, 1728, 26328, 286, 483, 292, 1258, 451, 12020, 3682, 1495, 13, 1678, 5174, 2812, 2349, 8754, 1161, 2392, 29901, 13, 4706, 1209, 13, 1678, 1683, 29901, 13, 4706, 12020, 16499, 291, 2392, 877, 4276, 1728, 26328, 286, 483, 292, 1258, 451, 12020, 3806, 3682, 1495, 13, 2 ]
__init__.py
Alex2Yang97/recommender
0
44528
<reponame>Alex2Yang97/recommender # -*- coding:utf8 -*- """ @Author: Zhirui(<NAME> @Date: 2021/4/25 下午11:07 """
[ 1, 529, 276, 1112, 420, 29958, 17406, 29906, 29979, 574, 29929, 29955, 29914, 276, 2055, 1581, 13, 29937, 448, 29930, 29899, 14137, 29901, 9420, 29947, 448, 29930, 29899, 13, 15945, 29908, 13, 29992, 13720, 29901, 27134, 381, 1481, 29898, 29966, 5813, 29958, 13, 29992, 2539, 29901, 29871, 29906, 29900, 29906, 29896, 29914, 29946, 29914, 29906, 29945, 29871, 30557, 232, 144, 139, 29896, 29896, 29901, 29900, 29955, 13, 15945, 29908, 2 ]
tests/conftest.py
Evpok/camphr
0
1617824
import os from pathlib import Path import omegaconf import pytest import sentencepiece as spm import torch from spacy.vocab import Vocab from camphr.lang.juman import Japanese as Juman from camphr.lang.mecab import Japanese as Mecab from camphr.models import create_model from camphr.pipelines.transformers.model import TRANSFORMERS_MODEL from .utils import FIXTURE_DIR, TRF_TESTMODEL_PATH, check_juman, check_lang, check_mecab def pytest_addoption(parser): parser.addoption( "--runslow", action="store_true", default=False, help="run slow tests" ) def pytest_configure(config): config.addinivalue_line("markers", "slow: mark test as slow to run") def pytest_collection_modifyitems(config, items): if config.getoption("--runslow"): # --runslow given in cli: do not skip slow tests return skip_slow = pytest.mark.skip(reason="need --runslow option to run") for item in items: if "slow" in item.keywords: item.add_marker(skip_slow) @pytest.fixture(scope="session") def mecab_tokenizer(): if not check_mecab(): pytest.skip("mecab is required") return Mecab.Defaults.create_tokenizer(dicdir="/usr/local/lib/mecab/dic/ipadic") @pytest.fixture(scope="session", params=[True, False]) def juman_tokenizer(request): if not check_juman(): pytest.skip() return Juman.Defaults.create_tokenizer(juman_kwargs={"jumanpp": request.param}) @pytest.fixture(scope="session") def spiece_path(): return str(FIXTURE_DIR / "spiece.model") @pytest.fixture(scope="session") def spiece(spiece_path): s = spm.SentencePieceProcessor() s.load(spiece_path) return s @pytest.fixture(scope="session") def vocab(): return Vocab() @pytest.fixture def cuda(): return torch.device("cuda") @pytest.fixture(scope="session", params=["cuda", "cpu"]) def device(request): if request.param == "cpu": return torch.device("cpu") if not torch.cuda.is_available(): pytest.skip("cuda is required") return torch.device("cuda") ALL_LANGS = ["ja_mecab", "ja_juman"] @pytest.fixture(scope="session", params=ALL_LANGS) def lang(request): if not check_lang(request.param): pytest.skip(f"No requirements for {request.param}") return request.param @pytest.fixture(scope="session", params=TRF_TESTMODEL_PATH) def trf_name_or_path(request): if "bert-base-japanese" in request.param and not check_mecab(): pytest.skip("mecab is required") return request.param @pytest.fixture(scope="session", params=TRF_TESTMODEL_PATH) def trf_testmodel_path(request) -> str: return request.param @pytest.fixture(scope="session") def trf_model_config(lang, trf_name_or_path, device): return omegaconf.OmegaConf.create( f""" lang: name: {lang} optimizer: class: torch.optim.SGD params: lr: 0.01 pipeline: {TRANSFORMERS_MODEL}: trf_name_or_path: {trf_name_or_path} """ ) @pytest.fixture(scope="module") def nlp_trf_model(trf_model_config, device): _nlp = create_model(trf_model_config) _nlp.to(device) return _nlp @pytest.fixture def chdir(tmp_path: Path): tmp_path.mkdir(exist_ok=True) cwd = os.getcwd() os.chdir(tmp_path) yield os.chdir(cwd)
[ 1, 1053, 2897, 13, 3166, 2224, 1982, 1053, 10802, 13, 13, 5215, 2703, 2442, 5527, 13, 5215, 11451, 1688, 13, 5215, 10541, 12343, 346, 408, 805, 29885, 13, 5215, 4842, 305, 13, 3166, 805, 4135, 29889, 29894, 542, 370, 1053, 478, 542, 370, 13, 13, 3166, 3949, 24588, 29889, 3893, 29889, 29926, 7889, 1053, 10369, 408, 435, 7889, 13, 3166, 3949, 24588, 29889, 3893, 29889, 29885, 687, 370, 1053, 10369, 408, 341, 687, 370, 13, 3166, 3949, 24588, 29889, 9794, 1053, 1653, 29918, 4299, 13, 3166, 3949, 24588, 29889, 13096, 24210, 29889, 9067, 414, 29889, 4299, 1053, 10014, 2190, 29903, 19094, 23598, 29918, 20387, 29931, 13, 13, 3166, 869, 13239, 1053, 383, 6415, 29911, 11499, 29918, 9464, 29892, 10014, 29943, 29918, 18267, 20387, 29931, 29918, 10145, 29892, 1423, 29918, 29926, 7889, 29892, 1423, 29918, 3893, 29892, 1423, 29918, 29885, 687, 370, 13, 13, 13, 1753, 11451, 1688, 29918, 1202, 3385, 29898, 16680, 1125, 13, 1678, 13812, 29889, 1202, 3385, 29898, 13, 4706, 376, 489, 3389, 28544, 613, 3158, 543, 8899, 29918, 3009, 613, 2322, 29922, 8824, 29892, 1371, 543, 3389, 5232, 6987, 29908, 13, 1678, 1723, 13, 13, 13, 1753, 11451, 1688, 29918, 17591, 29898, 2917, 1125, 13, 1678, 2295, 29889, 1202, 262, 2561, 434, 29918, 1220, 703, 3502, 414, 613, 376, 28544, 29901, 2791, 1243, 408, 5232, 304, 1065, 1159, 13, 13, 13, 1753, 11451, 1688, 29918, 10855, 29918, 1545, 1598, 7076, 29898, 2917, 29892, 4452, 1125, 13, 1678, 565, 2295, 29889, 657, 3385, 703, 489, 3389, 28544, 29908, 1125, 13, 4706, 396, 1192, 3389, 28544, 2183, 297, 9335, 29901, 437, 451, 14383, 5232, 6987, 13, 4706, 736, 13, 1678, 14383, 29918, 28544, 353, 11451, 1688, 29889, 3502, 29889, 11014, 29898, 23147, 543, 26180, 1192, 3389, 28544, 2984, 304, 1065, 1159, 13, 1678, 363, 2944, 297, 4452, 29901, 13, 4706, 565, 376, 28544, 29908, 297, 2944, 29889, 1989, 9303, 29901, 13, 9651, 2944, 29889, 1202, 29918, 22976, 29898, 11014, 29918, 28544, 29897, 13, 13, 13, 29992, 2272, 1688, 29889, 7241, 15546, 29898, 6078, 543, 7924, 1159, 13, 1753, 592, 29883, 370, 29918, 6979, 3950, 7295, 13, 1678, 565, 451, 1423, 29918, 29885, 687, 370, 7295, 13, 4706, 11451, 1688, 29889, 11014, 703, 29885, 687, 370, 338, 3734, 1159, 13, 1678, 736, 341, 687, 370, 29889, 24863, 29889, 3258, 29918, 6979, 3950, 29898, 27774, 3972, 13802, 4855, 29914, 2997, 29914, 1982, 29914, 29885, 687, 370, 29914, 27774, 29914, 666, 26538, 1159, 13, 13, 13, 29992, 2272, 1688, 29889, 7241, 15546, 29898, 6078, 543, 7924, 613, 8636, 11759, 5574, 29892, 7700, 2314, 13, 1753, 432, 7889, 29918, 6979, 3950, 29898, 3827, 1125, 13, 1678, 565, 451, 1423, 29918, 29926, 7889, 7295, 13, 4706, 11451, 1688, 29889, 11014, 580, 13, 1678, 736, 435, 7889, 29889, 24863, 29889, 3258, 29918, 6979, 3950, 29898, 29926, 7889, 29918, 19290, 3790, 29908, 29926, 7889, 407, 1115, 2009, 29889, 3207, 1800, 13, 13, 13, 29992, 2272, 1688, 29889, 7241, 15546, 29898, 6078, 543, 7924, 1159, 13, 1753, 805, 347, 346, 29918, 2084, 7295, 13, 1678, 736, 851, 29898, 3738, 12188, 11499, 29918, 9464, 847, 376, 1028, 347, 346, 29889, 4299, 1159, 13, 13, 13, 29992, 2272, 1688, 29889, 7241, 15546, 29898, 6078, 543, 7924, 1159, 13, 1753, 805, 347, 346, 29898, 1028, 347, 346, 29918, 2084, 1125, 13, 1678, 269, 353, 805, 29885, 29889, 29903, 296, 663, 29925, 347, 346, 18689, 580, 13, 1678, 269, 29889, 1359, 29898, 1028, 347, 346, 29918, 2084, 29897, 13, 1678, 736, 269, 13, 13, 13, 29992, 2272, 1688, 29889, 7241, 15546, 29898, 6078, 543, 7924, 1159, 13, 1753, 7931, 370, 7295, 13, 1678, 736, 478, 542, 370, 580, 13, 13, 13, 29992, 2272, 1688, 29889, 7241, 15546, 13, 1753, 274, 6191, 7295, 13, 1678, 736, 4842, 305, 29889, 10141, 703, 29883, 6191, 1159, 13, 13, 13, 29992, 2272, 1688, 29889, 7241, 15546, 29898, 6078, 543, 7924, 613, 8636, 29922, 3366, 29883, 6191, 613, 376, 21970, 20068, 13, 1753, 4742, 29898, 3827, 1125, 13, 1678, 565, 2009, 29889, 3207, 1275, 376, 21970, 1115, 13, 4706, 736, 4842, 305, 29889, 10141, 703, 21970, 1159, 13, 1678, 565, 451, 4842, 305, 29889, 29883, 6191, 29889, 275, 29918, 16515, 7295, 13, 4706, 11451, 1688, 29889, 11014, 703, 29883, 6191, 338, 3734, 1159, 13, 1678, 736, 4842, 305, 29889, 10141, 703, 29883, 6191, 1159, 13, 13, 13, 9818, 29918, 29931, 2190, 10749, 353, 6796, 1764, 29918, 29885, 687, 370, 613, 376, 1764, 29918, 29926, 7889, 3108, 13, 13, 13, 29992, 2272, 1688, 29889, 7241, 15546, 29898, 6078, 543, 7924, 613, 8636, 29922, 9818, 29918, 29931, 2190, 10749, 29897, 13, 1753, 6361, 29898, 3827, 1125, 13, 1678, 565, 451, 1423, 29918, 3893, 29898, 3827, 29889, 3207, 1125, 13, 4706, 11451, 1688, 29889, 11014, 29898, 29888, 29908, 3782, 11780, 363, 426, 3827, 29889, 3207, 27195, 13, 1678, 736, 2009, 29889, 3207, 13, 13, 13, 29992, 2272, 1688, 29889, 7241, 15546, 29898, 6078, 543, 7924, 613, 8636, 29922, 5659, 29943, 29918, 18267, 20387, 29931, 29918, 10145, 29897, 13, 1753, 534, 29888, 29918, 978, 29918, 272, 29918, 2084, 29898, 3827, 1125, 13, 1678, 565, 376, 2151, 29899, 3188, 29899, 29926, 21419, 968, 29908, 297, 2009, 29889, 3207, 322, 451, 1423, 29918, 29885, 687, 370, 7295, 13, 4706, 11451, 1688, 29889, 11014, 703, 29885, 687, 370, 338, 3734, 1159, 13, 1678, 736, 2009, 29889, 3207, 13, 13, 13, 29992, 2272, 1688, 29889, 7241, 15546, 29898, 6078, 543, 7924, 613, 8636, 29922, 5659, 29943, 29918, 18267, 20387, 29931, 29918, 10145, 29897, 13, 1753, 534, 29888, 29918, 1688, 4299, 29918, 2084, 29898, 3827, 29897, 1599, 851, 29901, 13, 1678, 736, 2009, 29889, 3207, 13, 13, 13, 29992, 2272, 1688, 29889, 7241, 15546, 29898, 6078, 543, 7924, 1159, 13, 1753, 534, 29888, 29918, 4299, 29918, 2917, 29898, 3893, 29892, 534, 29888, 29918, 978, 29918, 272, 29918, 2084, 29892, 4742, 1125, 13, 1678, 736, 2703, 2442, 5527, 29889, 5981, 16376, 29889, 3258, 29898, 13, 4706, 285, 15945, 29908, 13, 1678, 6361, 29901, 13, 4706, 1024, 29901, 426, 3893, 29913, 13, 4706, 5994, 3950, 29901, 13, 9651, 770, 29901, 4842, 305, 29889, 20640, 29889, 26016, 29928, 13, 9651, 8636, 29901, 13, 18884, 301, 29878, 29901, 29871, 29900, 29889, 29900, 29896, 13, 1678, 16439, 29901, 13, 4706, 426, 26813, 29903, 19094, 23598, 29918, 20387, 29931, 6177, 13, 3986, 534, 29888, 29918, 978, 29918, 272, 29918, 2084, 29901, 426, 509, 29888, 29918, 978, 29918, 272, 29918, 2084, 29913, 13, 1678, 9995, 13, 1678, 1723, 13, 13, 13, 29992, 2272, 1688, 29889, 7241, 15546, 29898, 6078, 543, 5453, 1159, 13, 1753, 302, 22833, 29918, 509, 29888, 29918, 4299, 29898, 509, 29888, 29918, 4299, 29918, 2917, 29892, 4742, 1125, 13, 1678, 903, 12938, 29886, 353, 1653, 29918, 4299, 29898, 509, 29888, 29918, 4299, 29918, 2917, 29897, 13, 1678, 903, 12938, 29886, 29889, 517, 29898, 10141, 29897, 13, 1678, 736, 903, 12938, 29886, 13, 13, 13, 29992, 2272, 1688, 29889, 7241, 15546, 13, 1753, 521, 3972, 29898, 7050, 29918, 2084, 29901, 10802, 1125, 13, 1678, 13128, 29918, 2084, 29889, 11256, 3972, 29898, 28997, 29918, 554, 29922, 5574, 29897, 13, 1678, 274, 9970, 353, 2897, 29889, 657, 29883, 9970, 580, 13, 1678, 2897, 29889, 305, 3972, 29898, 7050, 29918, 2084, 29897, 13, 1678, 7709, 13, 1678, 2897, 29889, 305, 3972, 29898, 29883, 9970, 29897, 13, 2 ]
tests/commands/test_release.py
williamirick/hatch
2,549
172858
import os from click.testing import CliRunner from twine.utils import TEST_REPOSITORY from hatch.cli import hatch from hatch.env import install_packages from hatch.settings import SETTINGS_FILE, copy_default_settings, save_settings from hatch.utils import env_vars, temp_chdir, temp_move_path from hatch.venv import create_venv, venv from ..utils import requires_internet PACKAGE_NAME = 'e00f69943529ccc38058' USERNAME = '__token__' PASSWORD = ( '<KEY>' '<KEY>' ) ENV_VARS = {'TWINE_PASSWORD': PASSWORD} @requires_internet def test_cwd(): with temp_chdir() as d: runner = CliRunner() runner.invoke(hatch, ['init', PACKAGE_NAME, '--basic', '-ne']) runner.invoke(hatch, ['build']) os.chdir(os.path.join(d, 'dist')) with env_vars(ENV_VARS): result = runner.invoke(hatch, ['release', '-u', USERNAME, '-t']) assert result.exit_code == 0 @requires_internet def test_username_env(): with temp_chdir() as d: runner = CliRunner() runner.invoke(hatch, ['init', PACKAGE_NAME, '--basic', '-ne']) runner.invoke(hatch, ['build']) os.chdir(os.path.join(d, 'dist')) with temp_move_path(SETTINGS_FILE, d): settings = copy_default_settings() settings['pypi_username'] = '' save_settings(settings) extra_env_vars = {'TWINE_USERNAME': USERNAME, **ENV_VARS} with env_vars(extra_env_vars): result = runner.invoke(hatch, ['release', '-t']) assert result.exit_code == 0 @requires_internet def test_cwd_dist_exists(): with temp_chdir(): runner = CliRunner() runner.invoke(hatch, ['init', PACKAGE_NAME, '--basic', '-ne']) runner.invoke(hatch, ['build']) with env_vars(ENV_VARS): result = runner.invoke(hatch, ['release', '-u', USERNAME, '-t']) assert result.exit_code == 0 @requires_internet def test_package(): with temp_chdir() as d: runner = CliRunner() runner.invoke(hatch, ['new', PACKAGE_NAME, '--basic', '-ne']) runner.invoke(hatch, ['build', '-p', PACKAGE_NAME]) package_dir = os.path.join(d, PACKAGE_NAME) venv_dir = os.path.join(d, 'venv') create_venv(venv_dir) with venv(venv_dir, evars=ENV_VARS): os.chdir(package_dir) install_packages(['-e', '.']) os.chdir(d) result = runner.invoke(hatch, ['release', PACKAGE_NAME, '-u', USERNAME, '-t']) assert result.exit_code == 0 def test_package_not_exist(): with temp_chdir() as d: runner = CliRunner() venv_dir = os.path.join(d, 'venv') create_venv(venv_dir) with venv(venv_dir, evars=ENV_VARS): result = runner.invoke(hatch, ['release', PACKAGE_NAME, '-u', USERNAME, '-t']) assert result.exit_code == 1 assert '`{}` is not an editable package.'.format(PACKAGE_NAME) in result.output @requires_internet def test_local(): with temp_chdir() as d: runner = CliRunner() runner.invoke(hatch, ['new', PACKAGE_NAME, '--basic', '-ne']) runner.invoke(hatch, ['build', '-p', PACKAGE_NAME]) package_dir = os.path.join(d, PACKAGE_NAME) venv_dir = os.path.join(d, 'venv') create_venv(venv_dir) with venv(venv_dir, evars=ENV_VARS): install_packages(['-e', package_dir]) result = runner.invoke(hatch, ['release', '-l', '-u', USERNAME, '-t']) assert result.exit_code == 0 def test_local_not_exist(): with temp_chdir() as d: runner = CliRunner() venv_dir = os.path.join(d, 'venv') create_venv(venv_dir) with venv(venv_dir): result = runner.invoke(hatch, ['release', '-l']) assert result.exit_code == 1 assert 'There are no local packages available.' in result.output @requires_internet def test_local_multiple(): with temp_chdir() as d: runner = CliRunner() runner.invoke(hatch, ['new', 'ok', '--basic', '-ne']) runner.invoke(hatch, ['new', 'ko', '--basic', '-ne']) venv_dir = os.path.join(d, 'venv') create_venv(venv_dir) with venv(venv_dir): install_packages(['-e', os.path.join(d, 'ok')]) install_packages(['-e', os.path.join(d, 'ko')]) result = runner.invoke(hatch, ['release', '-l']) assert result.exit_code == 1 assert ( 'There are multiple local packages available. ' 'Select one with the optional argument.' ) in result.output @requires_internet def test_path_relative(): with temp_chdir(): runner = CliRunner() runner.invoke(hatch, ['init', PACKAGE_NAME, '--basic', '-ne']) runner.invoke(hatch, ['build']) with env_vars(ENV_VARS): result = runner.invoke(hatch, ['release', '-p', 'dist', '-u', USERNAME, '-t']) print(result.output) assert result.exit_code == 0 @requires_internet def test_path_full(): with temp_chdir() as d: runner = CliRunner() runner.invoke(hatch, ['new', PACKAGE_NAME, '--basic', '-ne']) runner.invoke(hatch, ['new', 'ko', '--basic', '-ne']) runner.invoke(hatch, ['build', '-p', PACKAGE_NAME]) build_dir = os.path.join(d, PACKAGE_NAME, 'dist') os.chdir(os.path.join(d, 'ko')) with env_vars(ENV_VARS): result = runner.invoke(hatch, ['release', '-p', build_dir, '-u', USERNAME, '-t']) assert result.exit_code == 0 def test_path_full_not_exist(): with temp_chdir() as d: runner = CliRunner() runner.invoke(hatch, ['new', PACKAGE_NAME, '--basic', '-ne']) full_path = os.path.join(d, 'dist') result = runner.invoke(hatch, ['release', '-p', full_path]) assert result.exit_code == 1 assert 'Directory `{}` does not exist.'.format(full_path) in result.output @requires_internet def test_config_username(): with temp_chdir() as d: runner = CliRunner() runner.invoke(hatch, ['init', PACKAGE_NAME, '--basic', '-ne']) runner.invoke(hatch, ['build']) with temp_move_path(SETTINGS_FILE, d): settings = copy_default_settings() settings['pypi_username'] = USERNAME save_settings(settings) with env_vars(ENV_VARS): result = runner.invoke(hatch, ['release', '-p', 'dist', '-t']) assert result.exit_code == 0 def test_config_not_exist(): with temp_chdir() as d: runner = CliRunner() runner.invoke(hatch, ['init', PACKAGE_NAME, '--basic', '-ne']) runner.invoke(hatch, ['build']) with temp_move_path(SETTINGS_FILE, d): with env_vars(ENV_VARS): result = runner.invoke(hatch, ['release', '-p', 'dist', '-t']) assert result.exit_code == 1 assert 'Unable to locate config file. Try `hatch config --restore`.' in result.output def test_config_username_empty(): with temp_chdir() as d: runner = CliRunner() runner.invoke(hatch, ['init', PACKAGE_NAME, '--basic', '-ne']) runner.invoke(hatch, ['build']) with temp_move_path(SETTINGS_FILE, d): settings = copy_default_settings() settings['pypi_username'] = '' save_settings(settings) with env_vars(ENV_VARS): result = runner.invoke(hatch, ['release', '-p', 'dist', '-t']) assert result.exit_code == 1 assert ( 'A username must be supplied via -u/--username, ' 'in {} as pypi_username, or in the TWINE_USERNAME environment variable.'.format(SETTINGS_FILE) ) in result.output def test_strict(): with temp_chdir(): runner = CliRunner() runner.invoke(hatch, ['init', PACKAGE_NAME, '--basic', '-ne']) runner.invoke(hatch, ['build']) with env_vars(ENV_VARS): result = runner.invoke(hatch, ['release', '-p', 'dist', '-u', USERNAME, '-t', '-s']) assert result.exit_code == 1 def test_repository_local(): with temp_chdir() as d: runner = CliRunner() runner.invoke(hatch, ['new', PACKAGE_NAME, '--basic', '-ne']) runner.invoke(hatch, ['build', '-p', PACKAGE_NAME]) package_dir = os.path.join(d, PACKAGE_NAME) venv_dir = os.path.join(d, 'venv') create_venv(venv_dir) # Make sure there's no configuration with temp_move_path(os.path.expanduser("~/.pypirc"), d): with venv(venv_dir, evars=ENV_VARS): install_packages(['-e', package_dir]) # Will error, since there's no configuration parameter for # this URL result = runner.invoke(hatch, ['release', '-l', '-u', USERNAME, '-r', TEST_REPOSITORY]) assert result.exit_code == 1 @requires_internet def test_repository_url_local(): with temp_chdir() as d: runner = CliRunner() runner.invoke(hatch, ['new', PACKAGE_NAME, '--basic', '-ne']) runner.invoke(hatch, ['build', '-p', PACKAGE_NAME]) package_dir = os.path.join(d, PACKAGE_NAME) venv_dir = os.path.join(d, 'venv') create_venv(venv_dir) with venv(venv_dir, evars=ENV_VARS): install_packages(['-e', package_dir]) result = runner.invoke(hatch, ['release', '-l', '-u', USERNAME, '--repo-url', TEST_REPOSITORY]) assert result.exit_code == 0 @requires_internet def test_repository_and_repository_url_local(): with temp_chdir() as d: runner = CliRunner() runner.invoke(hatch, ['new', PACKAGE_NAME, '--basic', '-ne']) runner.invoke(hatch, ['build', '-p', PACKAGE_NAME]) package_dir = os.path.join(d, PACKAGE_NAME) venv_dir = os.path.join(d, 'venv') create_venv(venv_dir) with venv(venv_dir, evars=ENV_VARS): install_packages(['-e', package_dir]) result = runner.invoke(hatch, ['release', '-l', '-u', USERNAME, '--repo', TEST_REPOSITORY, '--repo-url', TEST_REPOSITORY]) assert result.exit_code == 0 @requires_internet def test_repository_env_vars(): with temp_chdir() as d: runner = CliRunner() runner.invoke(hatch, ['new', PACKAGE_NAME, '--basic', '-ne']) runner.invoke(hatch, ['build', '-p', PACKAGE_NAME]) package_dir = os.path.join(d, PACKAGE_NAME) venv_dir = os.path.join(d, 'venv') create_venv(venv_dir) extra_env_vars = {'TWINE_REPOSITORY': TEST_REPOSITORY, 'TWINE_REPOSITORY_URL': TEST_REPOSITORY, **ENV_VARS} with venv(venv_dir, evars=extra_env_vars): install_packages(['-e', package_dir]) result = runner.invoke(hatch, ['release', '-l', '-u', USERNAME]) assert result.exit_code == 0 @requires_internet def test_repository_and_test(): with temp_chdir() as d: runner = CliRunner() runner.invoke(hatch, ['new', PACKAGE_NAME, '--basic', '-ne']) runner.invoke(hatch, ['build', '-p', PACKAGE_NAME]) package_dir = os.path.join(d, PACKAGE_NAME) venv_dir = os.path.join(d, 'venv') create_venv(venv_dir) with venv(venv_dir, evars=ENV_VARS): install_packages(['-e', package_dir]) result = runner.invoke(hatch, ['release', '-l', '-u', USERNAME, '-r', TEST_REPOSITORY, '-t']) assert result.exit_code == 1 assert "Cannot specify both --test and --repo." in result.output with venv(venv_dir, evars=ENV_VARS): result = runner.invoke(hatch, ['release', '-l', '-u', USERNAME, '--repo-url', TEST_REPOSITORY, '-t']) assert result.exit_code == 1 assert "Cannot specify both --test and --repo-url." in result.output with venv(venv_dir, evars=ENV_VARS): result = runner.invoke(hatch, ['release', '-l', '-u', USERNAME, '-r', TEST_REPOSITORY, '-ru', TEST_REPOSITORY, '-t']) assert result.exit_code == 1 assert "Cannot specify both --test and --repo." in result.output assert "Cannot specify both --test and --repo-url." in result.output
[ 1, 1053, 2897, 13, 13, 3166, 2828, 29889, 13424, 1053, 315, 492, 16802, 13, 3166, 3252, 457, 29889, 13239, 1053, 17067, 1254, 29918, 1525, 24815, 1806, 18929, 13, 13, 3166, 298, 905, 29889, 11303, 1053, 298, 905, 13, 3166, 298, 905, 29889, 6272, 1053, 2601, 29918, 8318, 13, 3166, 298, 905, 29889, 11027, 1053, 11368, 29911, 4214, 29903, 29918, 7724, 29892, 3509, 29918, 4381, 29918, 11027, 29892, 4078, 29918, 11027, 13, 3166, 298, 905, 29889, 13239, 1053, 8829, 29918, 16908, 29892, 5694, 29918, 305, 3972, 29892, 5694, 29918, 11631, 29918, 2084, 13, 3166, 298, 905, 29889, 854, 29894, 1053, 1653, 29918, 854, 29894, 29892, 6003, 29894, 13, 3166, 6317, 13239, 1053, 6858, 29918, 14168, 300, 13, 13, 29925, 11375, 10461, 29918, 5813, 353, 525, 29872, 29900, 29900, 29888, 29953, 29929, 29929, 29946, 29941, 29945, 29906, 29929, 26854, 29941, 29947, 29900, 29945, 29947, 29915, 13, 11889, 5813, 353, 525, 1649, 6979, 1649, 29915, 13, 25711, 17013, 353, 313, 13, 1678, 12801, 10818, 16299, 13, 1678, 12801, 10818, 16299, 13, 29897, 13, 25838, 29918, 26865, 29903, 353, 11117, 16240, 8895, 29918, 25711, 17013, 2396, 17687, 1799, 17013, 29913, 13, 13, 13, 29992, 276, 339, 2658, 29918, 14168, 300, 13, 1753, 1243, 29918, 29883, 9970, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 2344, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 4282, 11287, 13, 4706, 2897, 29889, 305, 3972, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 5721, 8785, 13, 13, 4706, 411, 8829, 29918, 16908, 29898, 25838, 29918, 26865, 29903, 1125, 13, 9651, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29884, 742, 3148, 1001, 5813, 29892, 17411, 29873, 11287, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29900, 13, 13, 29992, 276, 339, 2658, 29918, 14168, 300, 13, 1753, 1243, 29918, 6786, 29918, 6272, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 2344, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 4282, 11287, 13, 4706, 2897, 29889, 305, 3972, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 5721, 8785, 13, 13, 4706, 411, 5694, 29918, 11631, 29918, 2084, 29898, 10490, 29911, 4214, 29903, 29918, 7724, 29892, 270, 1125, 13, 9651, 6055, 353, 3509, 29918, 4381, 29918, 11027, 580, 13, 9651, 6055, 1839, 29886, 1478, 29875, 29918, 6786, 2033, 353, 6629, 13, 9651, 4078, 29918, 11027, 29898, 11027, 29897, 13, 9651, 4805, 29918, 6272, 29918, 16908, 353, 11117, 16240, 8895, 29918, 11889, 5813, 2396, 3148, 1001, 5813, 29892, 3579, 25838, 29918, 26865, 29903, 29913, 13, 9651, 411, 8829, 29918, 16908, 29898, 17833, 29918, 6272, 29918, 16908, 1125, 13, 18884, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29873, 11287, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29900, 13, 13, 29992, 276, 339, 2658, 29918, 14168, 300, 13, 1753, 1243, 29918, 29883, 9970, 29918, 5721, 29918, 9933, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 7295, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 2344, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 4282, 11287, 13, 13, 4706, 411, 8829, 29918, 16908, 29898, 25838, 29918, 26865, 29903, 1125, 13, 9651, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29884, 742, 3148, 1001, 5813, 29892, 17411, 29873, 11287, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29900, 13, 13, 13, 29992, 276, 339, 2658, 29918, 14168, 300, 13, 1753, 1243, 29918, 5113, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 1482, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 4282, 742, 17411, 29886, 742, 349, 11375, 10461, 29918, 5813, 2314, 13, 4706, 3577, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 349, 11375, 10461, 29918, 5813, 29897, 13, 13, 4706, 6003, 29894, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 854, 29894, 1495, 13, 4706, 1653, 29918, 854, 29894, 29898, 854, 29894, 29918, 3972, 29897, 13, 13, 4706, 411, 6003, 29894, 29898, 854, 29894, 29918, 3972, 29892, 3415, 1503, 29922, 25838, 29918, 26865, 29903, 1125, 13, 9651, 2897, 29889, 305, 3972, 29898, 5113, 29918, 3972, 29897, 13, 9651, 2601, 29918, 8318, 18959, 29899, 29872, 742, 15300, 11287, 13, 9651, 2897, 29889, 305, 3972, 29898, 29881, 29897, 13, 13, 9651, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 349, 11375, 10461, 29918, 5813, 29892, 17411, 29884, 742, 3148, 1001, 5813, 29892, 17411, 29873, 11287, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29900, 13, 13, 13, 1753, 1243, 29918, 5113, 29918, 1333, 29918, 28997, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 6003, 29894, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 854, 29894, 1495, 13, 4706, 1653, 29918, 854, 29894, 29898, 854, 29894, 29918, 3972, 29897, 13, 13, 4706, 411, 6003, 29894, 29898, 854, 29894, 29918, 3972, 29892, 3415, 1503, 29922, 25838, 29918, 26865, 29903, 1125, 13, 9651, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 349, 11375, 10461, 29918, 5813, 29892, 17411, 29884, 742, 3148, 1001, 5813, 29892, 17411, 29873, 11287, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29896, 13, 4706, 4974, 525, 29952, 8875, 29952, 338, 451, 385, 3863, 519, 3577, 29889, 4286, 4830, 29898, 29925, 11375, 10461, 29918, 5813, 29897, 297, 1121, 29889, 4905, 13, 13, 13, 29992, 276, 339, 2658, 29918, 14168, 300, 13, 1753, 1243, 29918, 2997, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 1482, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 4282, 742, 17411, 29886, 742, 349, 11375, 10461, 29918, 5813, 2314, 13, 4706, 3577, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 349, 11375, 10461, 29918, 5813, 29897, 13, 13, 4706, 6003, 29894, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 854, 29894, 1495, 13, 4706, 1653, 29918, 854, 29894, 29898, 854, 29894, 29918, 3972, 29897, 13, 13, 4706, 411, 6003, 29894, 29898, 854, 29894, 29918, 3972, 29892, 3415, 1503, 29922, 25838, 29918, 26865, 29903, 1125, 13, 9651, 2601, 29918, 8318, 18959, 29899, 29872, 742, 3577, 29918, 3972, 2314, 13, 9651, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29880, 742, 17411, 29884, 742, 3148, 1001, 5813, 29892, 17411, 29873, 11287, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29900, 13, 13, 13, 1753, 1243, 29918, 2997, 29918, 1333, 29918, 28997, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 6003, 29894, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 854, 29894, 1495, 13, 4706, 1653, 29918, 854, 29894, 29898, 854, 29894, 29918, 3972, 29897, 13, 13, 4706, 411, 6003, 29894, 29898, 854, 29894, 29918, 3972, 1125, 13, 9651, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29880, 11287, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29896, 13, 4706, 4974, 525, 8439, 526, 694, 1887, 9741, 3625, 6169, 297, 1121, 29889, 4905, 13, 13, 13, 29992, 276, 339, 2658, 29918, 14168, 300, 13, 1753, 1243, 29918, 2997, 29918, 20787, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 1482, 742, 525, 554, 742, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 1482, 742, 525, 2901, 742, 525, 489, 16121, 742, 17411, 484, 11287, 13, 13, 4706, 6003, 29894, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 854, 29894, 1495, 13, 4706, 1653, 29918, 854, 29894, 29898, 854, 29894, 29918, 3972, 29897, 13, 13, 4706, 411, 6003, 29894, 29898, 854, 29894, 29918, 3972, 1125, 13, 9651, 2601, 29918, 8318, 18959, 29899, 29872, 742, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 554, 1495, 2314, 13, 9651, 2601, 29918, 8318, 18959, 29899, 29872, 742, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 2901, 1495, 2314, 13, 13, 9651, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29880, 11287, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29896, 13, 4706, 4974, 313, 13, 9651, 525, 8439, 526, 2999, 1887, 9741, 3625, 29889, 525, 13, 9651, 525, 3549, 697, 411, 278, 13136, 2980, 6169, 13, 4706, 1723, 297, 1121, 29889, 4905, 13, 13, 13, 29992, 276, 339, 2658, 29918, 14168, 300, 13, 1753, 1243, 29918, 2084, 29918, 22925, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 7295, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 2344, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 4282, 11287, 13, 13, 4706, 411, 8829, 29918, 16908, 29898, 25838, 29918, 26865, 29903, 1125, 13, 9651, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29886, 742, 525, 5721, 742, 17411, 29884, 742, 3148, 1001, 5813, 29892, 17411, 29873, 11287, 13, 13, 4706, 1596, 29898, 2914, 29889, 4905, 29897, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29900, 13, 13, 13, 29992, 276, 339, 2658, 29918, 14168, 300, 13, 1753, 1243, 29918, 2084, 29918, 8159, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 1482, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 1482, 742, 525, 2901, 742, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 4282, 742, 17411, 29886, 742, 349, 11375, 10461, 29918, 5813, 2314, 13, 4706, 2048, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 349, 11375, 10461, 29918, 5813, 29892, 525, 5721, 1495, 13, 13, 4706, 2897, 29889, 305, 3972, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 2901, 8785, 13, 4706, 411, 8829, 29918, 16908, 29898, 25838, 29918, 26865, 29903, 1125, 13, 9651, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29886, 742, 2048, 29918, 3972, 29892, 17411, 29884, 742, 3148, 1001, 5813, 29892, 17411, 29873, 11287, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29900, 13, 13, 13, 1753, 1243, 29918, 2084, 29918, 8159, 29918, 1333, 29918, 28997, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 1482, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 13, 4706, 2989, 29918, 2084, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 5721, 1495, 13, 4706, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29886, 742, 2989, 29918, 2084, 2314, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29896, 13, 4706, 4974, 525, 9882, 421, 8875, 29952, 947, 451, 1863, 29889, 4286, 4830, 29898, 8159, 29918, 2084, 29897, 297, 1121, 29889, 4905, 13, 13, 13, 29992, 276, 339, 2658, 29918, 14168, 300, 13, 1753, 1243, 29918, 2917, 29918, 6786, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 2344, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 4282, 11287, 13, 13, 4706, 411, 5694, 29918, 11631, 29918, 2084, 29898, 10490, 29911, 4214, 29903, 29918, 7724, 29892, 270, 1125, 13, 9651, 6055, 353, 3509, 29918, 4381, 29918, 11027, 580, 13, 9651, 6055, 1839, 29886, 1478, 29875, 29918, 6786, 2033, 353, 3148, 1001, 5813, 13, 9651, 4078, 29918, 11027, 29898, 11027, 29897, 13, 9651, 411, 8829, 29918, 16908, 29898, 25838, 29918, 26865, 29903, 1125, 13, 18884, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29886, 742, 525, 5721, 742, 17411, 29873, 11287, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29900, 13, 13, 13, 1753, 1243, 29918, 2917, 29918, 1333, 29918, 28997, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 2344, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 4282, 11287, 13, 13, 4706, 411, 5694, 29918, 11631, 29918, 2084, 29898, 10490, 29911, 4214, 29903, 29918, 7724, 29892, 270, 1125, 13, 9651, 411, 8829, 29918, 16908, 29898, 25838, 29918, 26865, 29903, 1125, 13, 18884, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29886, 742, 525, 5721, 742, 17411, 29873, 11287, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29896, 13, 4706, 4974, 525, 2525, 519, 304, 26694, 2295, 934, 29889, 3967, 421, 29882, 905, 2295, 1192, 5060, 487, 1412, 29915, 297, 1121, 29889, 4905, 13, 13, 13, 1753, 1243, 29918, 2917, 29918, 6786, 29918, 6310, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 2344, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 4282, 11287, 13, 13, 4706, 411, 5694, 29918, 11631, 29918, 2084, 29898, 10490, 29911, 4214, 29903, 29918, 7724, 29892, 270, 1125, 13, 9651, 6055, 353, 3509, 29918, 4381, 29918, 11027, 580, 13, 9651, 6055, 1839, 29886, 1478, 29875, 29918, 6786, 2033, 353, 6629, 13, 9651, 4078, 29918, 11027, 29898, 11027, 29897, 13, 9651, 411, 8829, 29918, 16908, 29898, 25838, 29918, 26865, 29903, 1125, 13, 18884, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29886, 742, 525, 5721, 742, 17411, 29873, 11287, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29896, 13, 4706, 4974, 313, 13, 9651, 525, 29909, 8952, 1818, 367, 19056, 3025, 448, 29884, 29914, 489, 6786, 29892, 525, 13, 9651, 525, 262, 6571, 408, 282, 1478, 29875, 29918, 6786, 29892, 470, 297, 278, 323, 29956, 8895, 29918, 11889, 5813, 5177, 2286, 29889, 4286, 4830, 29898, 10490, 29911, 4214, 29903, 29918, 7724, 29897, 13, 4706, 1723, 297, 1121, 29889, 4905, 13, 13, 13, 1753, 1243, 29918, 710, 919, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 7295, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 2344, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 4282, 11287, 13, 13, 4706, 411, 8829, 29918, 16908, 29898, 25838, 29918, 26865, 29903, 1125, 13, 9651, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29886, 742, 525, 5721, 742, 17411, 29884, 742, 3148, 1001, 5813, 29892, 17411, 29873, 742, 17411, 29879, 11287, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29896, 13, 13, 13, 1753, 1243, 29918, 19033, 29918, 2997, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 1482, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 4282, 742, 17411, 29886, 742, 349, 11375, 10461, 29918, 5813, 2314, 13, 4706, 3577, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 349, 11375, 10461, 29918, 5813, 29897, 13, 13, 4706, 6003, 29894, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 854, 29894, 1495, 13, 4706, 1653, 29918, 854, 29894, 29898, 854, 29894, 29918, 3972, 29897, 13, 13, 4706, 396, 8561, 1854, 727, 29915, 29879, 694, 5285, 13, 4706, 411, 5694, 29918, 11631, 29918, 2084, 29898, 359, 29889, 2084, 29889, 18837, 1792, 703, 30022, 6294, 29886, 1478, 2076, 4968, 270, 1125, 13, 9651, 411, 6003, 29894, 29898, 854, 29894, 29918, 3972, 29892, 3415, 1503, 29922, 25838, 29918, 26865, 29903, 1125, 13, 18884, 2601, 29918, 8318, 18959, 29899, 29872, 742, 3577, 29918, 3972, 2314, 13, 18884, 396, 2811, 1059, 29892, 1951, 727, 29915, 29879, 694, 5285, 3443, 363, 13, 18884, 396, 445, 3988, 13, 18884, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29880, 742, 17411, 29884, 742, 3148, 1001, 5813, 29892, 17411, 29878, 742, 17067, 1254, 29918, 1525, 24815, 1806, 18929, 2314, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29896, 13, 13, 13, 29992, 276, 339, 2658, 29918, 14168, 300, 13, 1753, 1243, 29918, 19033, 29918, 2271, 29918, 2997, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 1482, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 4282, 742, 17411, 29886, 742, 349, 11375, 10461, 29918, 5813, 2314, 13, 4706, 3577, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 349, 11375, 10461, 29918, 5813, 29897, 13, 13, 4706, 6003, 29894, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 854, 29894, 1495, 13, 4706, 1653, 29918, 854, 29894, 29898, 854, 29894, 29918, 3972, 29897, 13, 13, 4706, 411, 6003, 29894, 29898, 854, 29894, 29918, 3972, 29892, 3415, 1503, 29922, 25838, 29918, 26865, 29903, 1125, 13, 9651, 2601, 29918, 8318, 18959, 29899, 29872, 742, 3577, 29918, 3972, 2314, 13, 9651, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29880, 742, 17411, 29884, 742, 3148, 1001, 5813, 29892, 13, 462, 462, 965, 525, 489, 20095, 29899, 2271, 742, 17067, 1254, 29918, 1525, 24815, 1806, 18929, 2314, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29900, 13, 13, 13, 29992, 276, 339, 2658, 29918, 14168, 300, 13, 1753, 1243, 29918, 19033, 29918, 392, 29918, 19033, 29918, 2271, 29918, 2997, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 1482, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 4282, 742, 17411, 29886, 742, 349, 11375, 10461, 29918, 5813, 2314, 13, 4706, 3577, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 349, 11375, 10461, 29918, 5813, 29897, 13, 13, 4706, 6003, 29894, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 854, 29894, 1495, 13, 4706, 1653, 29918, 854, 29894, 29898, 854, 29894, 29918, 3972, 29897, 13, 13, 4706, 411, 6003, 29894, 29898, 854, 29894, 29918, 3972, 29892, 3415, 1503, 29922, 25838, 29918, 26865, 29903, 1125, 13, 9651, 2601, 29918, 8318, 18959, 29899, 29872, 742, 3577, 29918, 3972, 2314, 13, 9651, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29880, 742, 17411, 29884, 742, 3148, 1001, 5813, 29892, 13, 462, 462, 965, 525, 489, 20095, 742, 17067, 1254, 29918, 1525, 24815, 1806, 18929, 29892, 13, 462, 462, 965, 525, 489, 20095, 29899, 2271, 742, 17067, 1254, 29918, 1525, 24815, 1806, 18929, 2314, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29900, 13, 13, 29992, 276, 339, 2658, 29918, 14168, 300, 13, 1753, 1243, 29918, 19033, 29918, 6272, 29918, 16908, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 1482, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 4282, 742, 17411, 29886, 742, 349, 11375, 10461, 29918, 5813, 2314, 13, 4706, 3577, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 349, 11375, 10461, 29918, 5813, 29897, 13, 13, 4706, 6003, 29894, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 854, 29894, 1495, 13, 4706, 1653, 29918, 854, 29894, 29898, 854, 29894, 29918, 3972, 29897, 13, 13, 4706, 4805, 29918, 6272, 29918, 16908, 353, 11117, 16240, 8895, 29918, 1525, 24815, 1806, 18929, 2396, 17067, 1254, 29918, 1525, 24815, 1806, 18929, 29892, 525, 16240, 8895, 29918, 1525, 24815, 1806, 18929, 29918, 4219, 2396, 17067, 1254, 29918, 1525, 24815, 1806, 18929, 29892, 3579, 25838, 29918, 26865, 29903, 29913, 13, 4706, 411, 6003, 29894, 29898, 854, 29894, 29918, 3972, 29892, 3415, 1503, 29922, 17833, 29918, 6272, 29918, 16908, 1125, 13, 9651, 2601, 29918, 8318, 18959, 29899, 29872, 742, 3577, 29918, 3972, 2314, 13, 9651, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29880, 742, 17411, 29884, 742, 3148, 1001, 5813, 2314, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29900, 13, 13, 13, 29992, 276, 339, 2658, 29918, 14168, 300, 13, 1753, 1243, 29918, 19033, 29918, 392, 29918, 1688, 7295, 13, 1678, 411, 5694, 29918, 305, 3972, 580, 408, 270, 29901, 13, 4706, 28877, 353, 315, 492, 16802, 580, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 1482, 742, 349, 11375, 10461, 29918, 5813, 29892, 525, 489, 16121, 742, 17411, 484, 11287, 13, 4706, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 4282, 742, 17411, 29886, 742, 349, 11375, 10461, 29918, 5813, 2314, 13, 4706, 3577, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 349, 11375, 10461, 29918, 5813, 29897, 13, 13, 4706, 6003, 29894, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 29881, 29892, 525, 854, 29894, 1495, 13, 4706, 1653, 29918, 854, 29894, 29898, 854, 29894, 29918, 3972, 29897, 13, 13, 4706, 411, 6003, 29894, 29898, 854, 29894, 29918, 3972, 29892, 3415, 1503, 29922, 25838, 29918, 26865, 29903, 1125, 13, 9651, 2601, 29918, 8318, 18959, 29899, 29872, 742, 3577, 29918, 3972, 2314, 13, 9651, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29880, 742, 17411, 29884, 742, 3148, 1001, 5813, 29892, 13, 462, 462, 965, 17411, 29878, 742, 17067, 1254, 29918, 1525, 24815, 1806, 18929, 29892, 13, 462, 462, 965, 17411, 29873, 11287, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29896, 13, 4706, 4974, 376, 29089, 6084, 1716, 1192, 1688, 322, 1192, 20095, 1213, 297, 1121, 29889, 4905, 13, 13, 4706, 411, 6003, 29894, 29898, 854, 29894, 29918, 3972, 29892, 3415, 1503, 29922, 25838, 29918, 26865, 29903, 1125, 13, 9651, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29880, 742, 17411, 29884, 742, 3148, 1001, 5813, 29892, 13, 462, 462, 965, 525, 489, 20095, 29899, 2271, 742, 17067, 1254, 29918, 1525, 24815, 1806, 18929, 29892, 13, 462, 462, 965, 17411, 29873, 11287, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29896, 13, 4706, 4974, 376, 29089, 6084, 1716, 1192, 1688, 322, 1192, 20095, 29899, 2271, 1213, 297, 1121, 29889, 4905, 13, 13, 4706, 411, 6003, 29894, 29898, 854, 29894, 29918, 3972, 29892, 3415, 1503, 29922, 25838, 29918, 26865, 29903, 1125, 13, 9651, 1121, 353, 28877, 29889, 9772, 29898, 29882, 905, 29892, 6024, 14096, 742, 17411, 29880, 742, 17411, 29884, 742, 3148, 1001, 5813, 29892, 13, 462, 462, 965, 17411, 29878, 742, 17067, 1254, 29918, 1525, 24815, 1806, 18929, 29892, 13, 462, 462, 965, 17411, 582, 742, 17067, 1254, 29918, 1525, 24815, 1806, 18929, 29892, 13, 462, 462, 965, 17411, 29873, 11287, 13, 13, 4706, 4974, 1121, 29889, 13322, 29918, 401, 1275, 29871, 29896, 13, 4706, 4974, 376, 29089, 6084, 1716, 1192, 1688, 322, 1192, 20095, 1213, 297, 1121, 29889, 4905, 13, 4706, 4974, 376, 29089, 6084, 1716, 1192, 1688, 322, 1192, 20095, 29899, 2271, 1213, 297, 1121, 29889, 4905, 13, 2 ]
test_pkg.py
rtmigo/neatest_py
3
99015
from chkpkg import Package if __name__ == "__main__": with Package() as pkg: pkg.run_python_code('import neatest; neatest.print_version()') pkg.run_shell_code('neatest --version') print("\nPackage is OK!")
[ 1, 515, 521, 29895, 15865, 1053, 22029, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 411, 22029, 580, 408, 282, 9415, 29901, 13, 4706, 282, 9415, 29889, 3389, 29918, 4691, 29918, 401, 877, 5215, 28539, 342, 29936, 28539, 342, 29889, 2158, 29918, 3259, 580, 1495, 13, 4706, 282, 9415, 29889, 3389, 29918, 15903, 29918, 401, 877, 484, 271, 342, 1192, 3259, 1495, 13, 13, 1678, 1596, 14182, 29876, 14459, 338, 9280, 29991, 1159, 13, 13, 2 ]
pythonQuiz.py
Lakhankumawat/Python-Quiz
0
76219
<reponame>Lakhankumawat/Python-Quiz def q1(): print("hello" * 5) def q2(): x, y = 4, 5 y, x = x, y print(x) print(y) def q3(): z = 9 lst = [0] * z print(lst[:-1]) def q4(): def help(x): return x % 2 == 0 lst = [i**2 for i in range(10)] lst = filter(help, lst) print(list(lst)[::2]) def q5(): z = 0 for i in range(1, 10): if (i + 1 // 2) % 7 == 0: break else: z += int(i % 2 == 0) print(z) else: print('end') def q6(): import math for i in range(1, 100): if math.sqrt(i) == (i - 5)**2: print(i) break else: print('no') def q7(): class A: def __init__(self, x): self.x = x def __eq__(self, o): return self.x == o.x a = A(2) b = A(2) print(a == b) print(a is b) print(b is a) print(a is a) print(a == a) def q8(): class A: def __init__(self, x, y): self.x = x self.y = y def print(self): print(self.x, self.y) class B(A): def print(self): print(self.y, self.x) class C(B): def __init__(self, x, y, z): super().__init__(x, y) self.z = z d = A(2, 4) e = B(4, 5) g = C(3, 4, 7) g.x = g.z d.print() e.print() g.print() def q9(): def x(z): def q(x, y): x = y + z + x print(x) return q for i in range(10): func = x(i) func(i, i-1) def q10(): def d(f): def w(*args, **kwargs): r = f(*args, **kwargs) r += 1 return r return w @d def a(x): return x + 1 print(a(5)) def q11(): print(*list(map(lambda x: chr(ord(x) + 1), ["a", "b", "c"]))) def q12(): x = 0.1 y = 0.10000000000000001 print(x == y) def q13(): x = [True, 1, "a", "b", "2"] print(any(x)) def q14(): x = ["a", 1, 2, 3, 4] y = z = x z[1] = 7 y[3] = 2 x[2] = 9 print(x) print(y) print(z) def q15(): print(1 == True) print("1" == 1) def q16(): x = b'1001' y = b'1010' z = x + y print(z) def q17(): x = 0b1001 y = 0b1010 z = x + y print(z)
[ 1, 529, 276, 1112, 420, 29958, 29931, 19426, 804, 398, 1450, 271, 29914, 11980, 29899, 2182, 466, 13, 1753, 3855, 29896, 7295, 13, 12, 2158, 703, 12199, 29908, 334, 29871, 29945, 29897, 13, 13, 1753, 3855, 29906, 7295, 13, 12, 29916, 29892, 343, 353, 29871, 29946, 29892, 29871, 29945, 13, 12, 29891, 29892, 921, 353, 921, 29892, 343, 13, 12, 2158, 29898, 29916, 29897, 13, 12, 2158, 29898, 29891, 29897, 13, 13, 1753, 3855, 29941, 7295, 13, 12, 29920, 353, 29871, 29929, 13, 12, 20155, 353, 518, 29900, 29962, 334, 503, 13, 12, 2158, 29898, 20155, 7503, 29899, 29896, 2314, 13, 13, 1753, 3855, 29946, 7295, 13, 12, 1753, 1371, 29898, 29916, 1125, 13, 12, 12, 2457, 921, 1273, 29871, 29906, 1275, 29871, 29900, 13, 13, 12, 20155, 353, 518, 29875, 1068, 29906, 363, 474, 297, 3464, 29898, 29896, 29900, 4638, 29871, 13, 12, 20155, 353, 4175, 29898, 8477, 29892, 24471, 29897, 29871, 13, 12, 2158, 29898, 1761, 29898, 20155, 9601, 1057, 29906, 2314, 29871, 13, 13, 1753, 3855, 29945, 7295, 13, 12, 29920, 353, 29871, 29900, 13, 12, 1454, 474, 297, 3464, 29898, 29896, 29892, 29871, 29896, 29900, 1125, 13, 12, 12, 361, 313, 29875, 718, 29871, 29896, 849, 29871, 29906, 29897, 1273, 29871, 29955, 1275, 29871, 29900, 29901, 13, 12, 12, 12, 8690, 13, 12, 12, 2870, 29901, 13, 12, 12, 12, 29920, 4619, 938, 29898, 29875, 1273, 29871, 29906, 1275, 29871, 29900, 29897, 13, 12, 12, 12, 2158, 29898, 29920, 29897, 13, 12, 2870, 29901, 13, 12, 12, 2158, 877, 355, 1495, 13, 13, 1753, 3855, 29953, 7295, 13, 12, 5215, 5844, 13, 13, 12, 1454, 474, 297, 3464, 29898, 29896, 29892, 29871, 29896, 29900, 29900, 1125, 13, 12, 12, 361, 5844, 29889, 3676, 29898, 29875, 29897, 1275, 313, 29875, 448, 29871, 29945, 29897, 1068, 29906, 29901, 13, 12, 12, 12, 2158, 29898, 29875, 29897, 13, 12, 12, 12, 8690, 13, 12, 2870, 29901, 13, 12, 12, 2158, 877, 1217, 1495, 13, 13, 1753, 3855, 29955, 7295, 13, 12, 1990, 319, 29901, 13, 12, 12, 1753, 4770, 2344, 12035, 1311, 29892, 921, 1125, 13, 12, 12, 12, 1311, 29889, 29916, 353, 921, 13, 13, 12, 12, 1753, 4770, 1837, 12035, 1311, 29892, 288, 1125, 13, 12, 12, 12, 2457, 1583, 29889, 29916, 1275, 288, 29889, 29916, 13, 13, 12, 29874, 353, 319, 29898, 29906, 29897, 13, 12, 29890, 353, 319, 29898, 29906, 29897, 13, 12, 2158, 29898, 29874, 1275, 289, 29897, 13, 12, 2158, 29898, 29874, 338, 289, 29897, 13, 12, 2158, 29898, 29890, 338, 263, 29897, 13, 12, 2158, 29898, 29874, 338, 263, 29897, 13, 12, 2158, 29898, 29874, 1275, 263, 29897, 13, 13, 1753, 3855, 29947, 7295, 13, 12, 1990, 319, 29901, 13, 12, 12, 1753, 4770, 2344, 12035, 1311, 29892, 921, 29892, 343, 1125, 13, 12, 12, 12, 1311, 29889, 29916, 353, 921, 13, 12, 12, 12, 1311, 29889, 29891, 353, 343, 13, 13, 12, 12, 1753, 1596, 29898, 1311, 1125, 13, 12, 12, 12, 2158, 29898, 1311, 29889, 29916, 29892, 1583, 29889, 29891, 29897, 13, 13, 12, 1990, 350, 29898, 29909, 1125, 13, 12, 12, 1753, 1596, 29898, 1311, 1125, 13, 12, 12, 12, 2158, 29898, 1311, 29889, 29891, 29892, 1583, 29889, 29916, 29897, 13, 13, 12, 1990, 315, 29898, 29933, 1125, 13, 12, 12, 1753, 4770, 2344, 12035, 1311, 29892, 921, 29892, 343, 29892, 503, 1125, 13, 12, 12, 12, 9136, 2141, 1649, 2344, 12035, 29916, 29892, 343, 29897, 13, 12, 12, 12, 1311, 29889, 29920, 353, 503, 13, 13, 12, 29881, 353, 319, 29898, 29906, 29892, 29871, 29946, 29897, 13, 12, 29872, 353, 350, 29898, 29946, 29892, 29871, 29945, 29897, 13, 12, 29887, 353, 315, 29898, 29941, 29892, 29871, 29946, 29892, 29871, 29955, 29897, 13, 12, 29887, 29889, 29916, 353, 330, 29889, 29920, 13, 12, 29881, 29889, 2158, 580, 13, 12, 29872, 29889, 2158, 580, 13, 12, 29887, 29889, 2158, 580, 13, 13, 1753, 3855, 29929, 7295, 13, 12, 1753, 921, 29898, 29920, 1125, 13, 12, 12, 1753, 3855, 29898, 29916, 29892, 343, 1125, 13, 12, 12, 12, 29916, 353, 343, 718, 503, 718, 921, 13, 12, 12, 12, 2158, 29898, 29916, 29897, 13, 13, 12, 12, 2457, 3855, 13, 13, 12, 1454, 474, 297, 3464, 29898, 29896, 29900, 1125, 13, 12, 12, 9891, 353, 921, 29898, 29875, 29897, 13, 12, 12, 9891, 29898, 29875, 29892, 474, 29899, 29896, 29897, 13, 13, 1753, 3855, 29896, 29900, 7295, 13, 12, 1753, 270, 29898, 29888, 1125, 13, 12, 12, 1753, 281, 10456, 5085, 29892, 3579, 19290, 1125, 13, 12, 12, 12, 29878, 353, 285, 10456, 5085, 29892, 3579, 19290, 29897, 29871, 13, 12, 12, 12, 29878, 4619, 29871, 29896, 29871, 13, 12, 12, 12, 2457, 364, 29871, 13, 13, 12, 12, 2457, 281, 13, 13, 12, 29992, 29881, 13, 12, 1753, 263, 29898, 29916, 1125, 13, 12, 12, 2457, 921, 718, 29871, 29896, 13, 13, 12, 2158, 29898, 29874, 29898, 29945, 876, 13, 13, 1753, 3855, 29896, 29896, 7295, 13, 12, 2158, 10456, 1761, 29898, 1958, 29898, 2892, 921, 29901, 18460, 29898, 536, 29898, 29916, 29897, 718, 29871, 29896, 511, 6796, 29874, 613, 376, 29890, 613, 376, 29883, 3108, 4961, 13, 13, 13, 1753, 3855, 29896, 29906, 7295, 13, 12, 29916, 353, 29871, 29900, 29889, 29896, 13, 12, 29891, 353, 29871, 29900, 29889, 29896, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29896, 13, 12, 2158, 29898, 29916, 1275, 343, 29897, 13, 13, 1753, 3855, 29896, 29941, 7295, 13, 12, 29916, 353, 518, 5574, 29892, 29871, 29896, 29892, 376, 29874, 613, 376, 29890, 613, 376, 29906, 3108, 13, 12, 2158, 29898, 1384, 29898, 29916, 876, 29871, 13, 13, 1753, 3855, 29896, 29946, 7295, 13, 12, 29916, 353, 6796, 29874, 613, 29871, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 29871, 29946, 29962, 13, 12, 29891, 353, 503, 353, 921, 13, 12, 29920, 29961, 29896, 29962, 353, 29871, 29955, 13, 12, 29891, 29961, 29941, 29962, 353, 29871, 29906, 13, 12, 29916, 29961, 29906, 29962, 353, 29871, 29929, 13, 12, 2158, 29898, 29916, 29897, 13, 12, 2158, 29898, 29891, 29897, 13, 12, 2158, 29898, 29920, 29897, 13, 13, 1753, 3855, 29896, 29945, 7295, 13, 12, 2158, 29898, 29896, 1275, 5852, 29897, 13, 12, 2158, 703, 29896, 29908, 1275, 29871, 29896, 29897, 13, 13, 1753, 3855, 29896, 29953, 7295, 13, 12, 29916, 353, 289, 29915, 29896, 29900, 29900, 29896, 29915, 13, 12, 29891, 353, 289, 29915, 29896, 29900, 29896, 29900, 29915, 13, 12, 29920, 353, 921, 718, 343, 13, 12, 2158, 29898, 29920, 29897, 13, 13, 1753, 3855, 29896, 29955, 7295, 13, 12, 29916, 353, 29871, 29900, 29890, 29896, 29900, 29900, 29896, 13, 12, 29891, 353, 29871, 29900, 29890, 29896, 29900, 29896, 29900, 13, 12, 29920, 353, 921, 718, 343, 13, 12, 2158, 29898, 29920, 29897, 13, 2 ]
Protheus_WebApp/Modules/SIGAAGR/OGA250TestCase.py
98llm/tir-script-samples
17
171464
<reponame>98llm/tir-script-samples from tir import Webapp import unittest class OGA250(unittest.TestCase): @classmethod def setUpClass(inst): from datetime import datetime DateSystem = datetime.today().strftime('%d/%m/%Y') inst.oHelper = Webapp() inst.oHelper.Setup('SIGAAGR',DateSystem,'T1','D MG 01 ') def test_OGA250_CT001(self): #Cenário 001: Entrada por produção - nova comercialização self.oHelper.Program('OGA250') self.oHelper.AddParameter("MV_AGRA001", "", ".T.", ".T.", ".T.") self.oHelper.AddParameter("MV_AGRO002", "", ".T.", ".T.", ".T.") self.oHelper.AddParameter("MV_SIGAAGR","",".T.",".T.",".T.") self.oHelper.AddParameter("MV_ARM251A", "", "001", "001", "001") self.oHelper.AddParameter("MV_AGRTMPR", "", "010", "010", "010") self.oHelper.AddParameter("MV_AGRTMPS", "", "001", "001", "001") self.oHelper.AddParameter("MV_AGRTMRQ", "", "501", "501", "501") self.oHelper.SetParameters() self.oHelper.WaitShow("Romaneios com Pesagem") self.oHelper.SetKey("F12") self.oHelper.SetValue("MV_PAR01", "000001", name_attr=True) self.oHelper.SetButton("Ok") self.oHelper.SetButton("Incluir") self.oHelper.SetButton("Ok") self.oHelper.SetValue("Tipo", "1") self.oHelper.SetValue("Cod.Entidade", "000001") self.oHelper.SetValue("Loj.Entidade", "01") self.oHelper.ClickFolder("Analise") self.oHelper.SetValue("Cod. Safra", "1920") self.oHelper.SetValue("Cod. Produto", "AGR-FARDAO-ALGODAO") self.oHelper.SetValue("Local", "01") self.oHelper.SetValue("Fazenda", "01") self.oHelper.SetValue("Un. Benef.", "01") self.oHelper.SetButton("Outras Ações", "Vincular Fardões") self.oHelper.ClickBox("Código","000033", grid_number=1) self.oHelper.SetButton(">>") self.oHelper.SetButton("Salvar") self.oHelper.SetButton("Outras Ações", "Pesagem") self.oHelper.SetValue("nPeso", "1000", name_attr=True) self.oHelper.SetButton("Confirmar") self.oHelper.SetButton("Outras Ações", "Pesagem") self.oHelper.SetValue("nPeso", "101000", name_attr=True) self.oHelper.SetButton("Confirmar") self.oHelper.SetButton("Confirmar") self.oHelper.SetButton("Fechar") self.oHelper.SetButton("Outras Ações", "Atualizar") self.oHelper.SetButton("Sim") self.oHelper.SetButton("Outras Ações", "Confirmar") self.oHelper.WaitHide("Aguarde") self.oHelper.SetButton("Visualizar") self.oHelper.ClickFolder("Pesagem") self.oHelper.CheckResult("NJJ_PSSUBT", "100.000,00") self.oHelper.ClickFolder("Controle") self.oHelper.CheckResult("NJJ_STATUS", "3 - Confirmado") self.oHelper.AssertTrue() self.oHelper.SetButton("Fechar") self.oHelper.SetButton("x") def test_OGA250_CT002(self): #Cenário 002: Exclusão documento de saída e reabertura do romaneio (atualizado) self.oHelper.SetLateralMenu("Atualizações > Gestão Agrícola > Faturamento > Exclus. Doc. Saída") ###self.oHelper.Program("MATA521A") self.oHelper.AddParameter("MV_SIGAAGR","",".T.",".T.",".T.") self.oHelper.SetParameters() self.oHelper.SetValue("Modelo de Interface ?" ,"Marcacao") self.oHelper.SetValue("Selecionar itens ?" ,"Nao") self.oHelper.SetValue("Dt.Emissao de ?" ,"01/01/2000") self.oHelper.SetValue("Dt.Emissao ate ?" ,"31/12/2045") self.oHelper.SetValue("Serie de ?" ,"001") self.oHelper.SetValue("Serie ate ?" ,"001") self.oHelper.SetValue("Documento de ?" ,"T2501K") self.oHelper.SetValue("Documento ate ?" ,"T2501K") self.oHelper.SetButton("OK") self.oHelper.ClickBox("Numero","T2501K") self.oHelper.SetButton("Outras Ações","Excluir") self.oHelper.SetButton("Sim") self.oHelper.WaitProcessing("Estorno dos documentos de saida") self.oHelper.SetButton("x") self.oHelper.Program('OGA250') self.oHelper.SearchBrowse("D MG 01 0000000135", "Filial+cod.romaneio") self.oHelper.SetButton("Visualizar") self.oHelper.ClickFolder("Controle") self.oHelper.CheckResult("NJJ_STATUS", "2 - Atualizado") self.oHelper.AssertTrue() self.oHelper.SetButton("Fechar") self.oHelper.SetButton("x") def test_OGA250_CT003(self): #Cenário 003: Exclusão documento de saída e reabertura do romaneio (atualizado) self.oHelper.SetLateralMenu("Atualizações > Gestão Agrícola > Faturamento > Exclus. Doc. Saída") #self.oHelper.Program("MATA521A") self.oHelper.AddParameter("MV_SIGAAGR","",".T.",".T.",".T.") self.oHelper.SetParameters() self.oHelper.SetValue("Modelo de Interface ?" ,"Marcacao") self.oHelper.SetValue("Selecionar itens ?" ,"Nao") self.oHelper.SetValue("Dt.Emissao de ?" ,"01/01/2000") self.oHelper.SetValue("Dt.Emissao ate ?" ,"31/12/2045") self.oHelper.SetValue("Serie de ?" ,"001") self.oHelper.SetValue("Serie ate ?" ,"001") self.oHelper.SetValue("Documento de ?" ,"T2501L") self.oHelper.SetValue("Documento ate ?" ,"T2501L") self.oHelper.SetButton("OK") self.oHelper.ClickBox("Numero","T2501L") self.oHelper.SetButton("Outras Ações","Excluir") self.oHelper.SetButton("Sim") self.oHelper.WaitProcessing("Estorno dos documentos de saida") self.oHelper.SetButton("x") self.oHelper.Program('OGA250') self.oHelper.SearchBrowse("D MG 01 0000000136", "Filial+cod.romaneio") self.oHelper.SetButton("Visualizar") self.oHelper.ClickFolder("Controle") self.oHelper.CheckResult("NJJ_STATUS", "2 - Atualizado") self.oHelper.AssertTrue() self.oHelper.SetButton("Fechar") self.oHelper.SetButton("x") def test_OGA250_CT004(self): #cenario exclusão doc entrada #Cenário 004: Exclusão documento de entrada e reabertura do romaneio (atualizado) self.oHelper.Program('MATA103') self.oHelper.AddParameter("MV_SIGAAGR","",".T.",".T.",".T.") self.oHelper.SetParameters() self.oHelper.SearchBrowse("D MG 01 T25023", "Filial+numero") self.oHelper.SetButton('Outras Ações', "Excluir") self.oHelper.SetButton("Confirmar") self.oHelper.SetButton("x") self.oHelper.Program('OGA250') self.oHelper.SearchBrowse("D MG 01 0000000147", "Filial+cod.romaneio") self.oHelper.SetButton("Visualizar") self.oHelper.ClickFolder("Controle") self.oHelper.CheckResult("NJJ_STATUS", "2 - Atualizado") self.oHelper.AssertTrue() self.oHelper.SetButton("Fechar") self.oHelper.SetButton("x") def test_OGA250_CT005(self): #Cenário 005: Expedição Algodão sem IE - Novo Negócio if self.oHelper.GetRelease() >= "12.1.028": self.oHelper.Program('OGA250') self.oHelper.AddParameter("MV_AGRA001", "", ".T.", ".T.", ".T.") self.oHelper.AddParameter("MV_AGRO002", "", ".T.", ".T.", ".T.") self.oHelper.AddParameter("MV_SIGAAGR", "", ".T.", ".T.", ".T.") self.oHelper.AddParameter("MV_OGDECPS", "", "2", "2", "2") self.oHelper.AddParameter("MV_AGRTMPP", "", "501", "501", "501") self.oHelper.SetParameters() self.oHelper.WaitShow("Romaneios com Pesagem") self.oHelper.SearchBrowse("D MG 01 0000000154", "Filial+cod.romaneio") self.oHelper.SetButton("Alterar") self.oHelper.ClickFolder("Comercialização") self.oHelper.SetValue("Intervalo", "001", grid=True) self.oHelper.SetValue("Id Regra", "002", grid=True) self.oHelper.LoadGrid() self.oHelper.SetButton("Confirmar") self.oHelper.SetButton("Fechar") self.oHelper.SetButton("Outras Ações","Vincular Fardos") self.oHelper.ClickBox("Filial",select_all=True, grid_number=1) self.oHelper.SetButton(">>") self.oHelper.SetButton("Salvar") self.oHelper.SetButton("Outras Ações","Atualizar") self.oHelper.SetButton("Sim") self.oHelper.SetButton("Outras Ações","Confirmar") self.oHelper.WaitShow("Serie / Notas") self.oHelper.SetButton("Ok") self.oHelper.SetButton("Ok") self.oHelper.SetButton("Cancelar") self.oHelper.SetButton("Visualizar") self.oHelper.ClickFolder("Controle") self.oHelper.CheckResult("NJJ_STATUS", "3 - Confirmado") self.oHelper.AssertTrue() self.oHelper.SetButton("Fechar") self.oHelper.SetButton("x") @classmethod def tearDownClass(inst): inst.oHelper.TearDown() if __name__ == '__main__': unittest.main()
[ 1, 529, 276, 1112, 420, 29958, 29929, 29947, 645, 29885, 29914, 29873, 381, 29899, 2154, 29899, 27736, 13, 3166, 19493, 1053, 2563, 932, 13, 5215, 443, 27958, 13, 13, 1990, 438, 12739, 29906, 29945, 29900, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 12, 29992, 1990, 5696, 13, 12, 1753, 731, 3373, 2385, 29898, 2611, 1125, 462, 13, 12, 12, 3166, 12865, 1053, 12865, 13, 12, 12, 2539, 3924, 353, 12865, 29889, 27765, 2141, 710, 615, 603, 877, 29995, 29881, 22584, 29885, 22584, 29979, 1495, 13, 12, 12, 13, 12, 12, 2611, 29889, 29877, 10739, 353, 2563, 932, 580, 462, 13, 12, 12, 2611, 29889, 29877, 10739, 29889, 26947, 877, 5425, 29954, 6344, 14345, 742, 2539, 3924, 5501, 29911, 29896, 3788, 29928, 341, 29954, 29871, 29900, 29896, 25710, 462, 462, 13, 12, 12, 13, 12, 1753, 1243, 29918, 29949, 12739, 29906, 29945, 29900, 29918, 1783, 29900, 29900, 29896, 29898, 1311, 1125, 462, 462, 308, 13, 12, 12, 29937, 29907, 264, 12288, 29871, 29900, 29900, 29896, 29901, 1174, 509, 1114, 1277, 1391, 2340, 448, 26121, 24891, 20945, 462, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 9283, 877, 29949, 12739, 29906, 29945, 29900, 1495, 462, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2528, 9329, 703, 29924, 29963, 29918, 10051, 4717, 29900, 29900, 29896, 613, 12633, 11393, 29911, 19602, 11393, 29911, 19602, 11393, 29911, 23157, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2528, 9329, 703, 29924, 29963, 29918, 10051, 1672, 29900, 29900, 29906, 613, 12633, 11393, 29911, 19602, 11393, 29911, 19602, 11393, 29911, 23157, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2528, 9329, 703, 29924, 29963, 29918, 5425, 29954, 6344, 14345, 3284, 613, 1642, 29911, 19602, 1642, 29911, 19602, 1642, 29911, 23157, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2528, 9329, 703, 29924, 29963, 29918, 1718, 29924, 29906, 29945, 29896, 29909, 613, 12633, 376, 29900, 29900, 29896, 613, 376, 29900, 29900, 29896, 613, 376, 29900, 29900, 29896, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2528, 9329, 703, 29924, 29963, 29918, 10051, 13079, 3580, 29934, 613, 12633, 376, 29900, 29896, 29900, 613, 376, 29900, 29896, 29900, 613, 376, 29900, 29896, 29900, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2528, 9329, 703, 29924, 29963, 29918, 10051, 13079, 3580, 29903, 613, 12633, 376, 29900, 29900, 29896, 613, 376, 29900, 29900, 29896, 613, 376, 29900, 29900, 29896, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2528, 9329, 703, 29924, 29963, 29918, 10051, 13079, 21055, 29984, 613, 12633, 376, 29945, 29900, 29896, 613, 376, 29945, 29900, 29896, 613, 376, 29945, 29900, 29896, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 11507, 580, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 15716, 8964, 703, 29934, 290, 1662, 2363, 419, 349, 267, 13904, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 2558, 703, 29943, 29896, 29906, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 29924, 29963, 29918, 16320, 29900, 29896, 613, 376, 29900, 29900, 29900, 29900, 29900, 29896, 613, 1024, 29918, 5552, 29922, 5574, 29897, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 20434, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 797, 695, 29884, 381, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 20434, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 29911, 22955, 613, 376, 29896, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 29907, 397, 29889, 5292, 5558, 613, 376, 29900, 29900, 29900, 29900, 29900, 29896, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 3410, 29926, 29889, 5292, 5558, 613, 376, 29900, 29896, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 4164, 12924, 703, 21067, 895, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 29907, 397, 29889, 14795, 336, 613, 376, 29896, 29929, 29906, 29900, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 29907, 397, 29889, 1019, 29881, 3066, 613, 376, 10051, 29934, 29899, 29943, 1718, 7698, 29949, 29899, 1964, 17080, 7698, 29949, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 7717, 613, 259, 376, 29900, 29896, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 29943, 834, 8395, 613, 376, 29900, 29896, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 2525, 29889, 4111, 1389, 19602, 376, 29900, 29896, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 3744, 3417, 319, 5616, 613, 376, 29963, 3742, 1070, 383, 538, 4420, 1159, 3986, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 4164, 3313, 703, 29907, 17613, 3284, 29900, 29900, 29900, 29900, 29941, 29941, 613, 6856, 29918, 4537, 29922, 29896, 29897, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 6778, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 20392, 1707, 1159, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 3744, 3417, 319, 5616, 613, 376, 29925, 267, 13904, 1159, 1678, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 29876, 29925, 20135, 613, 376, 29896, 29900, 29900, 29900, 613, 1024, 29918, 5552, 29922, 5574, 29897, 539, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 16376, 381, 3034, 1159, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 3744, 3417, 319, 5616, 613, 376, 29925, 267, 13904, 1159, 1678, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 29876, 29925, 20135, 613, 376, 29896, 29900, 29896, 29900, 29900, 29900, 613, 1024, 29918, 5552, 29922, 5574, 29897, 539, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 16376, 381, 3034, 1159, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 16376, 381, 3034, 1159, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 8263, 3090, 1159, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 3744, 3417, 319, 5616, 613, 376, 4178, 950, 15356, 1159, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 8942, 1159, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 3744, 3417, 319, 5616, 613, 376, 16376, 381, 3034, 1159, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 15716, 29950, 680, 703, 29909, 2543, 19755, 1159, 13, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 16227, 15356, 1159, 1678, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 4164, 12924, 703, 29925, 267, 13904, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 5596, 3591, 703, 29940, 29967, 29967, 29918, 29925, 1799, 7466, 29911, 613, 376, 29896, 29900, 29900, 29889, 29900, 29900, 29900, 29892, 29900, 29900, 1159, 795, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 4164, 12924, 703, 1323, 12154, 1159, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 5596, 3591, 703, 29940, 29967, 29967, 29918, 27047, 613, 376, 29941, 448, 10811, 3568, 912, 1159, 418, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 14697, 5574, 580, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 8263, 3090, 1159, 259, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 29916, 1159, 308, 13, 12, 12, 13, 12, 1753, 1243, 29918, 29949, 12739, 29906, 29945, 29900, 29918, 1783, 29900, 29900, 29906, 29898, 1311, 1125, 462, 268, 13, 12, 12, 29937, 29907, 264, 12288, 29871, 29900, 29900, 29906, 29901, 1222, 7009, 1368, 1842, 29877, 316, 872, 28815, 321, 337, 370, 814, 2002, 437, 6017, 1662, 601, 313, 271, 950, 17566, 29897, 965, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 29931, 1008, 284, 6823, 703, 4178, 950, 6619, 5616, 1405, 19817, 1368, 16503, 29983, 15519, 1405, 383, 1337, 4487, 1405, 1222, 7009, 29889, 28197, 29889, 5701, 28815, 1159, 539, 13, 12, 12, 2277, 29937, 1311, 29889, 29877, 10739, 29889, 9283, 703, 29924, 8254, 29945, 29906, 29896, 29909, 1159, 462, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2528, 9329, 703, 29924, 29963, 29918, 5425, 29954, 6344, 14345, 3284, 613, 1642, 29911, 19602, 1642, 29911, 19602, 1642, 29911, 23157, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 11507, 580, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 3195, 29877, 316, 25796, 1577, 29908, 1678, 1699, 29924, 5666, 562, 6241, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 2008, 280, 12401, 279, 372, 575, 1577, 29908, 539, 1699, 29940, 6241, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 29928, 29873, 29889, 6026, 790, 6241, 316, 1577, 29908, 3986, 1699, 29900, 29896, 29914, 29900, 29896, 29914, 29906, 29900, 29900, 29900, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 29928, 29873, 29889, 6026, 790, 6241, 263, 371, 1577, 29908, 308, 1699, 29941, 29896, 29914, 29896, 29906, 29914, 29906, 29900, 29946, 29945, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 1748, 347, 316, 1577, 29908, 1669, 1699, 29900, 29900, 29896, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 1748, 347, 263, 371, 1577, 29908, 795, 1699, 29900, 29900, 29896, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 6268, 29877, 316, 1577, 29908, 965, 1699, 29911, 29906, 29945, 29900, 29896, 29968, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 6268, 29877, 263, 371, 1577, 29908, 3986, 1699, 29911, 29906, 29945, 29900, 29896, 29968, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 8949, 1159, 965, 13, 12, 12, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 4164, 3313, 703, 8009, 1489, 3284, 29911, 29906, 29945, 29900, 29896, 29968, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 3744, 3417, 319, 5616, 3284, 1252, 695, 29884, 381, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 8942, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 15716, 7032, 292, 703, 12787, 16378, 3248, 1842, 359, 316, 872, 1458, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 29916, 1159, 462, 13, 12, 12, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 9283, 877, 29949, 12739, 29906, 29945, 29900, 1495, 462, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 7974, 29933, 798, 344, 703, 29928, 341, 29954, 29871, 29900, 29896, 29871, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29896, 29941, 29945, 613, 376, 3434, 616, 29974, 19284, 29889, 456, 1662, 601, 1159, 259, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 16227, 15356, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 4164, 12924, 703, 1323, 12154, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 5596, 3591, 703, 29940, 29967, 29967, 29918, 27047, 613, 376, 29906, 448, 2180, 950, 17566, 1159, 418, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 14697, 5574, 580, 259, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 8263, 3090, 1159, 259, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 29916, 1159, 308, 13, 12, 12, 29871, 13, 12, 1753, 1243, 29918, 29949, 12739, 29906, 29945, 29900, 29918, 1783, 29900, 29900, 29941, 29898, 1311, 1125, 462, 632, 13, 12, 12, 29937, 29907, 264, 12288, 29871, 29900, 29900, 29941, 29901, 1222, 7009, 1368, 1842, 29877, 316, 872, 28815, 321, 337, 370, 814, 2002, 437, 6017, 1662, 601, 313, 271, 950, 17566, 29897, 1678, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 29931, 1008, 284, 6823, 703, 4178, 950, 6619, 5616, 1405, 19817, 1368, 16503, 29983, 15519, 1405, 383, 1337, 4487, 1405, 1222, 7009, 29889, 28197, 29889, 5701, 28815, 1159, 1669, 13, 12, 12, 29937, 1311, 29889, 29877, 10739, 29889, 9283, 703, 29924, 8254, 29945, 29906, 29896, 29909, 1159, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2528, 9329, 703, 29924, 29963, 29918, 5425, 29954, 6344, 14345, 3284, 613, 1642, 29911, 19602, 1642, 29911, 19602, 1642, 29911, 23157, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 11507, 580, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 3195, 29877, 316, 25796, 1577, 29908, 1678, 1699, 29924, 5666, 562, 6241, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 2008, 280, 12401, 279, 372, 575, 1577, 29908, 539, 1699, 29940, 6241, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 29928, 29873, 29889, 6026, 790, 6241, 316, 1577, 29908, 3986, 1699, 29900, 29896, 29914, 29900, 29896, 29914, 29906, 29900, 29900, 29900, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 29928, 29873, 29889, 6026, 790, 6241, 263, 371, 1577, 29908, 308, 1699, 29941, 29896, 29914, 29896, 29906, 29914, 29906, 29900, 29946, 29945, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 1748, 347, 316, 1577, 29908, 1669, 1699, 29900, 29900, 29896, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 1748, 347, 263, 371, 1577, 29908, 795, 1699, 29900, 29900, 29896, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 6268, 29877, 316, 1577, 29908, 965, 1699, 29911, 29906, 29945, 29900, 29896, 29931, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 6268, 29877, 263, 371, 1577, 29908, 3986, 1699, 29911, 29906, 29945, 29900, 29896, 29931, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 8949, 1159, 965, 13, 12, 12, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 4164, 3313, 703, 8009, 1489, 3284, 29911, 29906, 29945, 29900, 29896, 29931, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 3744, 3417, 319, 5616, 3284, 1252, 695, 29884, 381, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 8942, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 15716, 7032, 292, 703, 12787, 16378, 3248, 1842, 359, 316, 872, 1458, 1159, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 29916, 1159, 462, 13, 12, 12, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 9283, 877, 29949, 12739, 29906, 29945, 29900, 1495, 539, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 7974, 29933, 798, 344, 703, 29928, 341, 29954, 29871, 29900, 29896, 29871, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29896, 29941, 29953, 613, 376, 3434, 616, 29974, 19284, 29889, 456, 1662, 601, 1159, 259, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 16227, 15356, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 4164, 12924, 703, 1323, 12154, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 5596, 3591, 703, 29940, 29967, 29967, 29918, 27047, 613, 376, 29906, 448, 2180, 950, 17566, 1159, 418, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 14697, 5574, 580, 268, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 8263, 3090, 1159, 259, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 29916, 1159, 308, 13, 12, 12, 12, 29871, 13, 12, 1753, 1243, 29918, 29949, 12739, 29906, 29945, 29900, 29918, 1783, 29900, 29900, 29946, 29898, 1311, 1125, 1678, 396, 10278, 2628, 13489, 1368, 1574, 9953, 1114, 3986, 13, 12, 12, 29937, 29907, 264, 12288, 29871, 29900, 29900, 29946, 29901, 1222, 7009, 1368, 1842, 29877, 316, 9953, 1114, 321, 337, 370, 814, 2002, 437, 6017, 1662, 601, 313, 271, 950, 17566, 29897, 462, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 9283, 877, 29924, 8254, 29896, 29900, 29941, 1495, 12, 12, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2528, 9329, 703, 29924, 29963, 29918, 5425, 29954, 6344, 14345, 3284, 613, 1642, 29911, 19602, 1642, 29911, 19602, 1642, 29911, 23157, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 11507, 580, 308, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 7974, 29933, 798, 344, 703, 29928, 341, 29954, 29871, 29900, 29896, 323, 29906, 29945, 29900, 29906, 29941, 613, 376, 3434, 616, 29974, 1949, 1489, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 877, 3744, 3417, 319, 5616, 742, 376, 1252, 695, 29884, 381, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 16376, 381, 3034, 1159, 462, 259, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 29916, 1159, 462, 13, 12, 12, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 9283, 877, 29949, 12739, 29906, 29945, 29900, 1495, 462, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 7974, 29933, 798, 344, 703, 29928, 341, 29954, 29871, 29900, 29896, 29871, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29896, 29946, 29955, 613, 376, 3434, 616, 29974, 19284, 29889, 456, 1662, 601, 1159, 259, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 16227, 15356, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 4164, 12924, 703, 1323, 12154, 1159, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 5596, 3591, 703, 29940, 29967, 29967, 29918, 27047, 613, 376, 29906, 448, 2180, 950, 17566, 1159, 418, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 14697, 5574, 580, 268, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 8263, 3090, 1159, 259, 13, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 29916, 1159, 308, 13, 13, 12, 1753, 1243, 29918, 29949, 12739, 29906, 29945, 29900, 29918, 1783, 29900, 29900, 29945, 29898, 1311, 1125, 462, 462, 308, 13, 12, 12, 29937, 29907, 264, 12288, 29871, 29900, 29900, 29945, 29901, 1222, 9795, 12556, 11545, 397, 1368, 3031, 7159, 448, 2864, 29877, 12610, 29980, 3934, 13, 12, 12, 361, 1583, 29889, 29877, 10739, 29889, 2577, 19729, 580, 6736, 376, 29896, 29906, 29889, 29896, 29889, 29900, 29906, 29947, 1115, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 9283, 877, 29949, 12739, 29906, 29945, 29900, 1495, 462, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2528, 9329, 703, 29924, 29963, 29918, 10051, 4717, 29900, 29900, 29896, 613, 12633, 11393, 29911, 19602, 11393, 29911, 19602, 11393, 29911, 23157, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2528, 9329, 703, 29924, 29963, 29918, 10051, 1672, 29900, 29900, 29906, 613, 12633, 11393, 29911, 19602, 11393, 29911, 19602, 11393, 29911, 23157, 308, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2528, 9329, 703, 29924, 29963, 29918, 5425, 29954, 6344, 14345, 613, 12633, 11393, 29911, 19602, 11393, 29911, 19602, 11393, 29911, 23157, 308, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2528, 9329, 703, 29924, 29963, 29918, 29949, 29954, 2287, 6271, 29903, 613, 12633, 376, 29906, 613, 376, 29906, 613, 376, 29906, 1159, 308, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2528, 9329, 703, 29924, 29963, 29918, 10051, 13079, 3580, 29925, 613, 12633, 376, 29945, 29900, 29896, 613, 376, 29945, 29900, 29896, 613, 376, 29945, 29900, 29896, 1159, 308, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 11507, 580, 308, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 15716, 8964, 703, 29934, 290, 1662, 2363, 419, 349, 267, 13904, 1159, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 7974, 29933, 798, 344, 703, 29928, 341, 29954, 29871, 29900, 29896, 29871, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29896, 29945, 29946, 613, 376, 3434, 616, 29974, 19284, 29889, 456, 1662, 601, 1159, 259, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 2499, 357, 279, 1159, 308, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 4164, 12924, 703, 1523, 261, 1455, 20945, 1159, 13, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 12506, 29877, 613, 376, 29900, 29900, 29896, 613, 6856, 29922, 5574, 29897, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 1917, 703, 1204, 2169, 336, 613, 29871, 376, 29900, 29900, 29906, 613, 6856, 29922, 5574, 29897, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 5896, 5756, 580, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 16376, 381, 3034, 1159, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 8263, 3090, 1159, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 3744, 3417, 319, 5616, 3284, 29963, 3742, 1070, 383, 538, 359, 1159, 308, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 4164, 3313, 703, 3434, 616, 613, 2622, 29918, 497, 29922, 5574, 29892, 6856, 29918, 4537, 29922, 29896, 29897, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 6778, 1159, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 20392, 1707, 1159, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 3744, 3417, 319, 5616, 3284, 4178, 950, 15356, 1159, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 8942, 1159, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 3744, 3417, 319, 5616, 3284, 16376, 381, 3034, 1159, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 15716, 8964, 703, 1748, 347, 847, 2216, 294, 1159, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 20434, 1159, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 20434, 1159, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 19420, 279, 1159, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 16227, 15356, 1159, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 4164, 12924, 703, 1323, 12154, 1159, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 5596, 3591, 703, 29940, 29967, 29967, 29918, 27047, 613, 376, 29941, 448, 10811, 3568, 912, 1159, 418, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 14697, 5574, 580, 308, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 8263, 3090, 1159, 259, 13, 12, 12, 12, 1311, 29889, 29877, 10739, 29889, 2697, 3125, 703, 29916, 1159, 539, 13, 12, 12, 12, 12, 12, 259, 13, 12, 29992, 1990, 5696, 13, 12, 1753, 734, 279, 6767, 2385, 29898, 2611, 1125, 13, 12, 12, 2611, 29889, 29877, 10739, 29889, 29911, 799, 6767, 580, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 12, 348, 27958, 29889, 3396, 580, 13, 13, 2 ]
Listeners/messageListener.py
Aggis15/T4NK0R
0
126679
<filename>Listeners/messageListener.py import discord from discord.ext import commands import json import random as r from dotenv import load_dotenv import os import asyncpg import logging from PIL import Image, ImageFont, ImageDraw from resizeimage import resizeimage import requests load_dotenv() # Logging logging.basicConfig( filename="./logs/discordlogs.log", filemode="w", format="%(name)s - %(levelname)s - %(message)s", ) logger = logging.getLogger() logger.setLevel(logging.INFO) # Initiate json file = open("config.json") data = json.load(file) # Public Vars prefix = data["prefix"] DB_HOST = os.environ.get("DB_HOST") DB_USER = os.environ.get("DB_USER") DB_PASS = <PASSWORD>("DB_<PASSWORD>") DB_NAME = os.environ.get("DB_NAME") DB_PORT = os.environ.get("DB_PORT") LEVEL_TABLE_NAME = os.environ.get("LEVEL_TABLE_NAME") startingXP = data["XP"]["startingXP"] whitelistChannels = data["whitelistChannels"] levelupChat = data["channelIDs"]["levelupChat"] class MessageListener(commands.Cog): def __init__(self, bot): self.bot = bot # Create cooldown bucket self.cd_mapping = commands.CooldownMapping.from_cooldown( 100, 120, commands.BucketType.member ) self.startingXP = startingXP self.levelupChat = levelupChat def xp(self): return r.randint(1, 100) @commands.Cog.listener() async def on_message(self, message): await self.bot.process_commands(message) conn = await asyncpg.connect( f"postgres://{DB_USER}:{DB_PASS}@{DB_HOST}:{DB_PORT}/{DB_NAME}" ) levelNameAfterLevelUp = "" if message.author.bot: return elif message.channel.id in whitelistChannels: return else: await self.bot.process_commands(message) bucket = self.cd_mapping.get_bucket(message) retry_after = bucket.update_rate_limit() if not retry_after: xp_val = self.xp() await conn.execute( f"INSERT INTO {LEVEL_TABLE_NAME} (username, userid, currentxp, neededxp) VALUES ('{message.author.name}', {message.author.id}, {xp_val}, {startingXP}) ON CONFLICT (userid) DO UPDATE SET currentxp = {LEVEL_TABLE_NAME}.currentxp + {xp_val}" ) xp = await conn.fetchval( f"SELECT currentxp FROM {LEVEL_TABLE_NAME} WHERE userid = {message.author.id}" ) await conn.execute( f"UPDATE {LEVEL_TABLE_NAME} SET neededxp = {LEVEL_TABLE_NAME}.neededxp - {xp_val} WHERE userid = {message.author.id}" ) neededXP = await conn.fetchval( f"SELECT neededxp FROM {LEVEL_TABLE_NAME} WHERE userid = {message.author.id}" ) if neededXP <= 0: await conn.execute( f"UPDATE {LEVEL_TABLE_NAME} SET currentlevel = {LEVEL_TABLE_NAME}.currentlevel + 1 WHERE userid = {message.author.id}" ) level = await conn.fetchval( f"SELECT currentlevel FROM {LEVEL_TABLE_NAME} WHERE userid = {message.author.id}" ) for levelNames in data["levelNames"]: if level >= int(levelNames): levelNameAfterLevelUp = data["levelNames"][levelNames] break await conn.execute( f"UPDATE {LEVEL_TABLE_NAME} SET levelname = '{levelNameAfterLevelUp}' WHERE userid = {message.author.id}" ) untilLevelUp = int(str(xp)[-2:]) untilLevelUp = startingXP * level - untilLevelUp await conn.execute( f"UPDATE {LEVEL_TABLE_NAME} SET neededxp = {untilLevelUp} WHERE userid = {message.author.id}" ) notify = await conn.fetchval( f"SELECT doNotify FROM {LEVEL_TABLE_NAME} WHERE userid = {message.author.id}" ) if notify: doOverrideLevel = await conn.fetchval( f"SELECT dooverridelevelname FROM {LEVEL_TABLE_NAME} WHERE userid = {message.author.id}" ) if doOverrideLevel is True: levelNameAfterLevelUp = await conn.fetchval( f"SELECT overridelevelname FROM {LEVEL_TABLE_NAME} WHERE userid = {message.author.id}" ) untilLevelUp = await conn.fetchval( f"SELECT neededxp FROM {LEVEL_TABLE_NAME} WHERE userid = {message.author.id}" ) # Edit the default image to add the text then send it defaultImage = Image.open("./Images/levelImage.png") getAvatar = requests.get(message.author.avatar.url) with open( f"./Images/avatarCache/{message.author.id}.png", "wb" ) as outfile: outfile.write(getAvatar.content) avatarImage = Image.open( f"./Images/avatarCache/{message.author.id}.png" ) # Crop the avatar to make it a circle width, height = avatarImage.size x = width - height img_cropped = avatarImage.crop((x, 0, x + height, height)) mask = Image.new("L", img_cropped.size) mask_draw = ImageDraw.Draw(mask) width, height = img_cropped.size mask_draw.ellipse((0, 0, width, height), fill=255) img_cropped.putalpha(mask) img_cropped.save( f"./Images/avatarCache/{message.author.id}.png" ) # Resize the avatar to fit the image resizeAvatar = Image.open( f"./Images/avatarCache/{message.author.id}.png" ) resizeAvatar = resizeimage.resize_width(resizeAvatar, 100) resizeAvatar.save( f"./Images/avatarCache/{message.author.id}.png", resizeAvatar.format, ) # Add the text draw = ImageDraw.Draw(defaultImage) levelFont = ImageFont.truetype("Bungee-Regular.ttf", 20) xpFont = ImageFont.truetype("Bungee-Regular.ttf", 18) untilLevelUpFont = ImageFont.truetype("Bungee-Regular.ttf", 16) draw.text( (234, 94), f"{level} ({levelNameAfterLevelUp})", (255, 255, 255), font=levelFont, ) draw.text((185, 55), str(xp), (255, 255, 255), font=xpFont) draw.text( (271, 31), str(untilLevelUp), (255, 255, 255), font=untilLevelUpFont, ) # Add the image, then save resizedAvatar = Image.open( f"./Images/avatarCache/{message.author.id}.png" ) defaultImage.paste(resizedAvatar, (27, 25), resizedAvatar) defaultImage.save("./Images/levelImageReady.png") levelupChannel = self.bot.get_channel(self.levelupChat) await levelupChannel.send( f"{message.author.mention} You have reached the next level!", file=discord.File("./Images/levelImageReady.png"), ) logger.info( f"{message.author.name} with ID: {message.author.id} has logged {xp_val} XP" ) await conn.close() def setup(bot): bot.add_cog(MessageListener(bot))
[ 1, 529, 9507, 29958, 1293, 264, 414, 29914, 4906, 3962, 29889, 2272, 13, 5215, 2313, 536, 13, 3166, 2313, 536, 29889, 1062, 1053, 8260, 13, 5215, 4390, 13, 5215, 4036, 408, 364, 13, 3166, 8329, 6272, 1053, 2254, 29918, 6333, 6272, 13, 5215, 2897, 13, 5215, 7465, 4061, 13, 5215, 12183, 13, 3166, 349, 6227, 1053, 7084, 29892, 7084, 9824, 29892, 7084, 8537, 13, 3166, 19490, 3027, 1053, 19490, 3027, 13, 5215, 7274, 13, 13, 1359, 29918, 6333, 6272, 580, 13, 13, 29937, 4522, 3460, 13, 21027, 29889, 16121, 3991, 29898, 13, 1678, 10422, 543, 6904, 20756, 29914, 2218, 16090, 20756, 29889, 1188, 613, 13, 1678, 934, 8513, 543, 29893, 613, 13, 1678, 3402, 543, 29995, 29898, 978, 29897, 29879, 448, 1273, 29898, 5563, 978, 29897, 29879, 448, 1273, 29898, 4906, 29897, 29879, 613, 13, 29897, 13, 21707, 353, 12183, 29889, 657, 16363, 580, 13, 21707, 29889, 842, 10108, 29898, 21027, 29889, 11690, 29897, 13, 13, 29937, 512, 4812, 403, 4390, 13, 1445, 353, 1722, 703, 2917, 29889, 3126, 1159, 13, 1272, 353, 4390, 29889, 1359, 29898, 1445, 29897, 13, 13, 29937, 5236, 478, 1503, 13, 13506, 353, 848, 3366, 13506, 3108, 13, 4051, 29918, 20832, 353, 2897, 29889, 21813, 29889, 657, 703, 4051, 29918, 20832, 1159, 13, 4051, 29918, 11889, 353, 2897, 29889, 21813, 29889, 657, 703, 4051, 29918, 11889, 1159, 13, 4051, 29918, 25711, 353, 529, 25711, 17013, 29958, 703, 4051, 29918, 29966, 25711, 17013, 29958, 1159, 13, 4051, 29918, 5813, 353, 2897, 29889, 21813, 29889, 657, 703, 4051, 29918, 5813, 1159, 13, 4051, 29918, 15082, 353, 2897, 29889, 21813, 29889, 657, 703, 4051, 29918, 15082, 1159, 13, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 353, 2897, 29889, 21813, 29889, 657, 703, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 1159, 13, 2962, 292, 29990, 29925, 353, 848, 3366, 29990, 29925, 3108, 3366, 2962, 292, 29990, 29925, 3108, 13, 1332, 7454, 391, 1451, 12629, 353, 848, 3366, 1332, 7454, 391, 1451, 12629, 3108, 13, 5563, 786, 1451, 271, 353, 848, 3366, 12719, 1367, 29879, 3108, 3366, 5563, 786, 1451, 271, 3108, 13, 13, 13, 1990, 7777, 3962, 29898, 26381, 29889, 29907, 468, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 9225, 1125, 13, 4706, 1583, 29889, 7451, 353, 9225, 13, 4706, 396, 6204, 1302, 1025, 776, 20968, 13, 4706, 1583, 29889, 2252, 29918, 20698, 353, 8260, 29889, 7967, 1025, 776, 15845, 29889, 3166, 29918, 1111, 1025, 776, 29898, 13, 632, 29896, 29900, 29900, 29892, 29871, 29896, 29906, 29900, 29892, 8260, 29889, 29933, 2707, 300, 1542, 29889, 14242, 13, 4706, 1723, 13, 4706, 1583, 29889, 2962, 292, 29990, 29925, 353, 6257, 29990, 29925, 13, 4706, 1583, 29889, 5563, 786, 1451, 271, 353, 3233, 786, 1451, 271, 13, 13, 1678, 822, 921, 29886, 29898, 1311, 1125, 13, 4706, 736, 364, 29889, 9502, 524, 29898, 29896, 29892, 29871, 29896, 29900, 29900, 29897, 13, 13, 1678, 732, 26381, 29889, 29907, 468, 29889, 25894, 580, 13, 1678, 7465, 822, 373, 29918, 4906, 29898, 1311, 29892, 2643, 1125, 13, 4706, 7272, 1583, 29889, 7451, 29889, 5014, 29918, 26381, 29898, 4906, 29897, 13, 4706, 11009, 353, 7272, 7465, 4061, 29889, 6915, 29898, 13, 9651, 285, 29908, 2490, 7201, 597, 29912, 4051, 29918, 11889, 6177, 29912, 4051, 29918, 25711, 29913, 28312, 4051, 29918, 20832, 6177, 29912, 4051, 29918, 15082, 6822, 29912, 4051, 29918, 5813, 5038, 13, 4706, 1723, 13, 4706, 3233, 1170, 13555, 10108, 3373, 353, 5124, 13, 4706, 565, 2643, 29889, 8921, 29889, 7451, 29901, 13, 9651, 736, 13, 4706, 25342, 2643, 29889, 12719, 29889, 333, 297, 377, 7454, 391, 1451, 12629, 29901, 13, 9651, 736, 13, 4706, 1683, 29901, 13, 9651, 7272, 1583, 29889, 7451, 29889, 5014, 29918, 26381, 29898, 4906, 29897, 13, 9651, 20968, 353, 1583, 29889, 2252, 29918, 20698, 29889, 657, 29918, 21454, 29898, 4906, 29897, 13, 9651, 337, 2202, 29918, 7045, 353, 20968, 29889, 5504, 29918, 10492, 29918, 13400, 580, 13, 9651, 565, 451, 337, 2202, 29918, 7045, 29901, 13, 18884, 921, 29886, 29918, 791, 353, 1583, 29889, 26330, 580, 13, 18884, 7272, 11009, 29889, 7978, 29898, 13, 462, 1678, 285, 29908, 19460, 11646, 426, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 29913, 313, 6786, 29892, 1404, 333, 29892, 1857, 26330, 29892, 4312, 26330, 29897, 15673, 6702, 29912, 4906, 29889, 8921, 29889, 978, 29913, 742, 426, 4906, 29889, 8921, 29889, 333, 1118, 426, 26330, 29918, 791, 1118, 426, 2962, 292, 29990, 29925, 1800, 29871, 6732, 8707, 29943, 5265, 1783, 313, 1792, 333, 29897, 11662, 16924, 11368, 1857, 26330, 353, 426, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 1836, 3784, 26330, 718, 426, 26330, 29918, 791, 5038, 13, 18884, 1723, 13, 18884, 921, 29886, 353, 7272, 11009, 29889, 9155, 791, 29898, 13, 462, 1678, 285, 29908, 6404, 1857, 26330, 3895, 426, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 29913, 5754, 1404, 333, 353, 426, 4906, 29889, 8921, 29889, 333, 5038, 13, 18884, 1723, 13, 18884, 7272, 11009, 29889, 7978, 29898, 13, 462, 1678, 285, 29908, 14474, 426, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 29913, 11368, 4312, 26330, 353, 426, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 1836, 484, 19226, 26330, 448, 426, 26330, 29918, 791, 29913, 5754, 1404, 333, 353, 426, 4906, 29889, 8921, 29889, 333, 5038, 13, 18884, 1723, 13, 18884, 4312, 29990, 29925, 353, 7272, 11009, 29889, 9155, 791, 29898, 13, 462, 1678, 285, 29908, 6404, 4312, 26330, 3895, 426, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 29913, 5754, 1404, 333, 353, 426, 4906, 29889, 8921, 29889, 333, 5038, 13, 18884, 1723, 13, 18884, 565, 4312, 29990, 29925, 5277, 29871, 29900, 29901, 13, 462, 1678, 7272, 11009, 29889, 7978, 29898, 13, 462, 4706, 285, 29908, 14474, 426, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 29913, 11368, 1857, 5563, 353, 426, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 1836, 3784, 5563, 718, 29871, 29896, 5754, 1404, 333, 353, 426, 4906, 29889, 8921, 29889, 333, 5038, 13, 462, 1678, 1723, 13, 462, 1678, 3233, 353, 7272, 11009, 29889, 9155, 791, 29898, 13, 462, 4706, 285, 29908, 6404, 1857, 5563, 3895, 426, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 29913, 5754, 1404, 333, 353, 426, 4906, 29889, 8921, 29889, 333, 5038, 13, 462, 1678, 1723, 13, 462, 1678, 363, 3233, 8659, 297, 848, 3366, 5563, 8659, 3108, 29901, 13, 462, 4706, 565, 3233, 6736, 938, 29898, 5563, 8659, 1125, 13, 462, 9651, 3233, 1170, 13555, 10108, 3373, 353, 848, 3366, 5563, 8659, 3108, 29961, 5563, 8659, 29962, 13, 462, 9651, 2867, 13, 462, 1678, 7272, 11009, 29889, 7978, 29898, 13, 462, 4706, 285, 29908, 14474, 426, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 29913, 11368, 3233, 978, 353, 22372, 5563, 1170, 13555, 10108, 3373, 10162, 5754, 1404, 333, 353, 426, 4906, 29889, 8921, 29889, 333, 5038, 13, 462, 1678, 1723, 13, 462, 1678, 2745, 10108, 3373, 353, 938, 29898, 710, 29898, 26330, 9601, 29899, 29906, 29901, 2314, 13, 462, 1678, 2745, 10108, 3373, 353, 6257, 29990, 29925, 334, 3233, 448, 2745, 10108, 3373, 13, 462, 1678, 7272, 11009, 29889, 7978, 29898, 13, 462, 4706, 285, 29908, 14474, 426, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 29913, 11368, 4312, 26330, 353, 426, 29305, 10108, 3373, 29913, 5754, 1404, 333, 353, 426, 4906, 29889, 8921, 29889, 333, 5038, 13, 462, 1678, 1723, 13, 462, 1678, 26051, 353, 7272, 11009, 29889, 9155, 791, 29898, 13, 462, 4706, 285, 29908, 6404, 437, 3664, 1598, 3895, 426, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 29913, 5754, 1404, 333, 353, 426, 4906, 29889, 8921, 29889, 333, 5038, 13, 462, 1678, 1723, 13, 462, 1678, 565, 26051, 29901, 13, 462, 4706, 437, 4640, 10108, 353, 7272, 11009, 29889, 9155, 791, 29898, 13, 462, 9651, 285, 29908, 6404, 437, 15752, 5563, 978, 3895, 426, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 29913, 5754, 1404, 333, 353, 426, 4906, 29889, 8921, 29889, 333, 5038, 13, 462, 4706, 1723, 13, 462, 4706, 565, 437, 4640, 10108, 338, 5852, 29901, 13, 462, 9651, 3233, 1170, 13555, 10108, 3373, 353, 7272, 11009, 29889, 9155, 791, 29898, 13, 462, 18884, 285, 29908, 6404, 5712, 5563, 978, 3895, 426, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 29913, 5754, 1404, 333, 353, 426, 4906, 29889, 8921, 29889, 333, 5038, 13, 462, 9651, 1723, 13, 462, 4706, 2745, 10108, 3373, 353, 7272, 11009, 29889, 9155, 791, 29898, 13, 462, 9651, 285, 29908, 6404, 4312, 26330, 3895, 426, 1307, 29963, 6670, 29918, 21009, 29918, 5813, 29913, 5754, 1404, 333, 353, 426, 4906, 29889, 8921, 29889, 333, 5038, 13, 462, 4706, 1723, 13, 462, 4706, 396, 7641, 278, 2322, 1967, 304, 788, 278, 1426, 769, 3638, 372, 13, 462, 4706, 2322, 2940, 353, 7084, 29889, 3150, 703, 6904, 20163, 29914, 5563, 2940, 29889, 2732, 1159, 13, 462, 4706, 679, 29909, 9046, 279, 353, 7274, 29889, 657, 29898, 4906, 29889, 8921, 29889, 485, 14873, 29889, 2271, 29897, 13, 462, 4706, 411, 1722, 29898, 13, 462, 9651, 285, 1642, 29914, 20163, 29914, 485, 14873, 10408, 19248, 4906, 29889, 8921, 29889, 333, 1836, 2732, 613, 376, 29893, 29890, 29908, 13, 462, 4706, 1723, 408, 714, 1445, 29901, 13, 462, 9651, 714, 1445, 29889, 3539, 29898, 657, 29909, 9046, 279, 29889, 3051, 29897, 13, 462, 4706, 1029, 14873, 2940, 353, 7084, 29889, 3150, 29898, 13, 462, 9651, 285, 1642, 29914, 20163, 29914, 485, 14873, 10408, 19248, 4906, 29889, 8921, 29889, 333, 1836, 2732, 29908, 13, 462, 4706, 1723, 13, 462, 4706, 396, 315, 1336, 278, 1029, 14873, 304, 1207, 372, 263, 8607, 13, 462, 4706, 2920, 29892, 3171, 353, 1029, 14873, 2940, 29889, 2311, 13, 462, 4706, 921, 353, 2920, 448, 3171, 13, 462, 4706, 10153, 29918, 24077, 2986, 353, 1029, 14873, 2940, 29889, 29883, 1336, 3552, 29916, 29892, 29871, 29900, 29892, 921, 718, 3171, 29892, 3171, 876, 13, 462, 4706, 11105, 353, 7084, 29889, 1482, 703, 29931, 613, 10153, 29918, 24077, 2986, 29889, 2311, 29897, 13, 462, 4706, 11105, 29918, 4012, 353, 7084, 8537, 29889, 8537, 29898, 13168, 29897, 13, 462, 4706, 2920, 29892, 3171, 353, 10153, 29918, 24077, 2986, 29889, 2311, 13, 462, 4706, 11105, 29918, 4012, 29889, 295, 5843, 3552, 29900, 29892, 29871, 29900, 29892, 2920, 29892, 3171, 511, 5445, 29922, 29906, 29945, 29945, 29897, 13, 462, 4706, 10153, 29918, 24077, 2986, 29889, 649, 2312, 29898, 13168, 29897, 13, 462, 4706, 10153, 29918, 24077, 2986, 29889, 7620, 29898, 13, 462, 9651, 285, 1642, 29914, 20163, 29914, 485, 14873, 10408, 19248, 4906, 29889, 8921, 29889, 333, 1836, 2732, 29908, 13, 462, 4706, 1723, 13, 462, 4706, 396, 2538, 675, 278, 1029, 14873, 304, 6216, 278, 1967, 13, 462, 4706, 19490, 29909, 9046, 279, 353, 7084, 29889, 3150, 29898, 13, 462, 9651, 285, 1642, 29914, 20163, 29914, 485, 14873, 10408, 19248, 4906, 29889, 8921, 29889, 333, 1836, 2732, 29908, 13, 462, 4706, 1723, 13, 462, 4706, 19490, 29909, 9046, 279, 353, 19490, 3027, 29889, 21476, 29918, 2103, 29898, 21476, 29909, 9046, 279, 29892, 29871, 29896, 29900, 29900, 29897, 13, 462, 4706, 19490, 29909, 9046, 279, 29889, 7620, 29898, 13, 462, 9651, 285, 1642, 29914, 20163, 29914, 485, 14873, 10408, 19248, 4906, 29889, 8921, 29889, 333, 1836, 2732, 613, 13, 462, 9651, 19490, 29909, 9046, 279, 29889, 4830, 29892, 13, 462, 4706, 1723, 13, 462, 4706, 396, 3462, 278, 1426, 13, 462, 4706, 4216, 353, 7084, 8537, 29889, 8537, 29898, 4381, 2940, 29897, 13, 462, 4706, 3233, 9824, 353, 7084, 9824, 29889, 509, 14484, 668, 703, 29933, 19440, 29872, 29899, 4597, 1070, 29889, 698, 29888, 613, 29871, 29906, 29900, 29897, 13, 462, 4706, 921, 29886, 9824, 353, 7084, 9824, 29889, 509, 14484, 668, 703, 29933, 19440, 29872, 29899, 4597, 1070, 29889, 698, 29888, 613, 29871, 29896, 29947, 29897, 13, 462, 4706, 2745, 10108, 3373, 9824, 353, 7084, 9824, 29889, 509, 14484, 668, 703, 29933, 19440, 29872, 29899, 4597, 1070, 29889, 698, 29888, 613, 29871, 29896, 29953, 29897, 13, 462, 4706, 4216, 29889, 726, 29898, 13, 462, 9651, 313, 29906, 29941, 29946, 29892, 29871, 29929, 29946, 511, 13, 462, 9651, 285, 29908, 29912, 5563, 29913, 21313, 5563, 1170, 13555, 10108, 3373, 1800, 613, 13, 462, 9651, 313, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 511, 13, 462, 9651, 4079, 29922, 5563, 9824, 29892, 13, 462, 4706, 1723, 13, 462, 4706, 4216, 29889, 726, 3552, 29896, 29947, 29945, 29892, 29871, 29945, 29945, 511, 851, 29898, 26330, 511, 313, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 511, 4079, 29922, 26330, 9824, 29897, 13, 462, 4706, 4216, 29889, 726, 29898, 13, 462, 9651, 313, 29906, 29955, 29896, 29892, 29871, 29941, 29896, 511, 13, 462, 9651, 851, 29898, 29305, 10108, 3373, 511, 13, 462, 9651, 313, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 29892, 29871, 29906, 29945, 29945, 511, 13, 462, 9651, 4079, 29922, 29305, 10108, 3373, 9824, 29892, 13, 462, 4706, 1723, 13, 462, 4706, 396, 3462, 278, 1967, 29892, 769, 4078, 13, 462, 4706, 620, 1891, 29909, 9046, 279, 353, 7084, 29889, 3150, 29898, 13, 462, 9651, 285, 1642, 29914, 20163, 29914, 485, 14873, 10408, 19248, 4906, 29889, 8921, 29889, 333, 1836, 2732, 29908, 13, 462, 4706, 1723, 13, 462, 4706, 2322, 2940, 29889, 16179, 29898, 690, 1891, 29909, 9046, 279, 29892, 313, 29906, 29955, 29892, 29871, 29906, 29945, 511, 620, 1891, 29909, 9046, 279, 29897, 13, 462, 4706, 2322, 2940, 29889, 7620, 703, 6904, 20163, 29914, 5563, 2940, 28181, 29889, 2732, 1159, 13, 462, 4706, 3233, 786, 13599, 353, 1583, 29889, 7451, 29889, 657, 29918, 12719, 29898, 1311, 29889, 5563, 786, 1451, 271, 29897, 13, 462, 4706, 7272, 3233, 786, 13599, 29889, 6717, 29898, 13, 462, 9651, 285, 29908, 29912, 4906, 29889, 8921, 29889, 358, 291, 29913, 887, 505, 7450, 278, 2446, 3233, 29991, 613, 13, 462, 9651, 934, 29922, 2218, 16090, 29889, 2283, 703, 6904, 20163, 29914, 5563, 2940, 28181, 29889, 2732, 4968, 13, 462, 4706, 1723, 13, 18884, 17927, 29889, 3888, 29898, 13, 462, 1678, 285, 29908, 29912, 4906, 29889, 8921, 29889, 978, 29913, 411, 3553, 29901, 426, 4906, 29889, 8921, 29889, 333, 29913, 756, 13817, 426, 26330, 29918, 791, 29913, 28932, 29908, 13, 18884, 1723, 13, 4706, 7272, 11009, 29889, 5358, 580, 13, 13, 13, 1753, 6230, 29898, 7451, 1125, 13, 1678, 9225, 29889, 1202, 29918, 29883, 468, 29898, 3728, 3962, 29898, 7451, 876, 13, 2 ]
backend/unpp_api/apps/sanctionslist/migrations/0003_auto_20180615_1224.py
unicef/un-partner-portal
6
147648
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-06-15 12:24 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('partner', '0063_auto_20180612_0625'), ('sanctionslist', '0002_auto_20180612_1142'), ] operations = [ migrations.AlterUniqueTogether( name='sanctionednamematch', unique_together=set([('name', 'partner')]), ), ]
[ 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, 29896, 29941, 373, 29871, 29906, 29900, 29896, 29947, 29899, 29900, 29953, 29899, 29896, 29945, 29871, 29896, 29906, 29901, 29906, 29946, 13, 3166, 4770, 29888, 9130, 1649, 1053, 29104, 29918, 20889, 1338, 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, 1595, 1089, 742, 525, 29900, 29900, 29953, 29941, 29918, 6921, 29918, 29906, 29900, 29896, 29947, 29900, 29953, 29896, 29906, 29918, 29900, 29953, 29906, 29945, 5477, 13, 4706, 6702, 28455, 1953, 1761, 742, 525, 29900, 29900, 29900, 29906, 29918, 6921, 29918, 29906, 29900, 29896, 29947, 29900, 29953, 29896, 29906, 29918, 29896, 29896, 29946, 29906, 5477, 13, 1678, 4514, 13, 13, 1678, 6931, 353, 518, 13, 4706, 9725, 800, 29889, 2499, 357, 8110, 802, 29911, 12966, 29898, 13, 9651, 1024, 2433, 28455, 428, 287, 8588, 331, 905, 742, 13, 9651, 5412, 29918, 29873, 12966, 29922, 842, 4197, 877, 978, 742, 525, 1595, 1089, 1495, 11724, 13, 4706, 10353, 13, 1678, 4514, 13, 2 ]
exercise/2/2-5/test-all-code.py
toorevitimirp/SICP
0
51480
<reponame>toorevitimirp/SICP<gh_stars>0 import os import subprocess class Tester(object): def __init__(self, dir='./'): self.dir = dir self.report_fn = "report.txt" self.interpreter = "racket" self.suffix = ".rkt" def _program_files(self): programs_list = [] all_files = os.listdir(self.dir) for fn in all_files: if os.path.isfile(fn) and \ os.path.splitext(fn)[-1]==".rkt": programs_list.append(fn) return programs_list def run_programs(self): self._empty_report() fns = self._program_files() print(fns) for fn in fns: cmd = self.interpreter + " " + fn # print(fn,":",end='') status, output = subprocess.getstatusoutput(cmd) self._report(fn, status, output) def _report(self, fn, status, output): print("+"*70) print(fn,":",status) print(status) print(output) # with open(self.report_fn, 'w+') as f: # f.writelines(fn+":"+str(status)) # f.writelines(output) # f.writelines("+"*50) def _empty_report(self): pass # with open(self.report_fn, 'r+') as f: # f.seek(0) # f.truncate() if __name__ == "__main__": t = Tester() t.run_programs()
[ 1, 529, 276, 1112, 420, 29958, 517, 487, 29894, 277, 17216, 29886, 29914, 29903, 2965, 29925, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 2897, 13, 5215, 1014, 5014, 13, 13, 13, 1990, 323, 4156, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 4516, 2433, 6904, 29374, 13, 4706, 1583, 29889, 3972, 353, 4516, 13, 4706, 1583, 29889, 12276, 29918, 9144, 353, 376, 12276, 29889, 3945, 29908, 13, 4706, 1583, 29889, 1639, 1457, 357, 353, 376, 336, 3522, 29908, 13, 4706, 1583, 29889, 2146, 600, 861, 353, 11393, 29878, 1193, 29908, 13, 13, 1678, 822, 903, 8860, 29918, 5325, 29898, 1311, 1125, 13, 4706, 11104, 29918, 1761, 353, 5159, 13, 4706, 599, 29918, 5325, 353, 2897, 29889, 1761, 3972, 29898, 1311, 29889, 3972, 29897, 13, 4706, 363, 7876, 297, 599, 29918, 5325, 29901, 13, 9651, 565, 2897, 29889, 2084, 29889, 275, 1445, 29898, 9144, 29897, 322, 320, 13, 18884, 2897, 29889, 2084, 29889, 23579, 568, 486, 29898, 9144, 9601, 29899, 29896, 13192, 29569, 29878, 1193, 1115, 13, 18884, 11104, 29918, 1761, 29889, 4397, 29898, 9144, 29897, 13, 4706, 736, 11104, 29918, 1761, 13, 13, 1678, 822, 1065, 29918, 8860, 29879, 29898, 1311, 1125, 13, 4706, 1583, 3032, 6310, 29918, 12276, 580, 13, 4706, 285, 1983, 353, 1583, 3032, 8860, 29918, 5325, 580, 13, 4706, 1596, 29898, 29888, 1983, 29897, 13, 4706, 363, 7876, 297, 285, 1983, 29901, 13, 9651, 9920, 353, 1583, 29889, 1639, 1457, 357, 718, 376, 376, 718, 7876, 13, 9651, 396, 1596, 29898, 9144, 29892, 1115, 613, 355, 2433, 1495, 13, 9651, 4660, 29892, 1962, 353, 1014, 5014, 29889, 657, 4882, 4905, 29898, 9006, 29897, 13, 9651, 1583, 3032, 12276, 29898, 9144, 29892, 4660, 29892, 1962, 29897, 13, 268, 13, 1678, 822, 903, 12276, 29898, 1311, 29892, 7876, 29892, 4660, 29892, 1962, 1125, 13, 4706, 1596, 703, 13578, 29930, 29955, 29900, 29897, 13, 4706, 1596, 29898, 9144, 29892, 1115, 613, 4882, 29897, 13, 4706, 1596, 29898, 4882, 29897, 13, 4706, 1596, 29898, 4905, 29897, 13, 4706, 396, 411, 1722, 29898, 1311, 29889, 12276, 29918, 9144, 29892, 525, 29893, 29974, 1495, 408, 285, 29901, 29871, 13, 4706, 396, 268, 285, 29889, 8231, 24210, 29898, 9144, 29974, 4710, 29974, 710, 29898, 4882, 876, 4706, 13, 4706, 396, 268, 285, 29889, 8231, 24210, 29898, 4905, 29897, 13, 4706, 396, 268, 285, 29889, 8231, 24210, 703, 13578, 29930, 29945, 29900, 29897, 13, 13, 1678, 822, 903, 6310, 29918, 12276, 29898, 1311, 1125, 13, 4706, 1209, 13, 4706, 396, 411, 1722, 29898, 1311, 29889, 12276, 29918, 9144, 29892, 525, 29878, 29974, 1495, 408, 285, 29901, 13, 4706, 396, 268, 285, 29889, 344, 1416, 29898, 29900, 29897, 13, 4706, 396, 268, 285, 29889, 509, 4661, 403, 580, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 260, 353, 323, 4156, 580, 13, 1678, 260, 29889, 3389, 29918, 8860, 29879, 580, 2 ]
dp101/lcs.py
cp105/dynamic_programming_101
0
185949
""" The longest common subsequence (LCS) problem is the problem of finding the longest subsequence common to all sequences in a set of sequences (often just two sequences). It differs from the longest common substring problem: unlike substrings, subsequences are not required to occupy consecutive positions within the original sequences. https://en.wikipedia.org/wiki/Longest_common_subsequence_problem function "lcs(sq1, sq2)" takes in two sequences of numbers as arguments. The function returns the longest common subsequence of sq1 and sq2. """ def lcs_(sq1, sq2, memo): if (len(sq1), len(sq2)) in memo: return memo[(len(sq1), len(sq2))] elif not sq1 or not sq2: return [] elif sq1[0] == sq2[0]: return [sq1[0]] + lcs_(sq1[1:], sq2[1:], memo) a = lcs_(sq1, sq2[1:], memo) b = lcs_(sq1[1:], sq2, memo) if len(a) > len(b): memo[(len(sq1), len(sq2))] = a return a else: memo[(len(sq1), len(sq2))] = b return b def lcs(sq1, sq2): return lcs_(sq1, sq2, {})
[ 1, 9995, 13, 13, 1576, 27217, 3619, 1014, 16506, 313, 29931, 9295, 29897, 1108, 338, 278, 1108, 310, 9138, 278, 27217, 1014, 16506, 3619, 304, 13, 497, 15602, 297, 263, 731, 310, 15602, 313, 29877, 15535, 925, 1023, 15602, 467, 13, 3112, 2923, 414, 515, 278, 27217, 3619, 28228, 1108, 29901, 25531, 1014, 19651, 29892, 9602, 2063, 526, 451, 3734, 304, 13, 16770, 29891, 18942, 11909, 2629, 278, 2441, 15602, 29889, 13, 991, 597, 264, 29889, 6011, 29889, 990, 29914, 4594, 29914, 8208, 342, 29918, 9435, 29918, 1491, 16506, 29918, 17199, 13, 13, 2220, 376, 29880, 2395, 29898, 3044, 29896, 29892, 18074, 29906, 5513, 4893, 297, 1023, 15602, 310, 3694, 408, 6273, 29889, 13, 1576, 740, 3639, 278, 27217, 3619, 1014, 16506, 310, 18074, 29896, 322, 18074, 29906, 29889, 13, 13, 15945, 29908, 13, 13, 13, 1753, 301, 2395, 23538, 3044, 29896, 29892, 18074, 29906, 29892, 2626, 29877, 1125, 13, 1678, 565, 313, 2435, 29898, 3044, 29896, 511, 7431, 29898, 3044, 29906, 876, 297, 2626, 29877, 29901, 13, 4706, 736, 2626, 29877, 15625, 2435, 29898, 3044, 29896, 511, 7431, 29898, 3044, 29906, 28166, 13, 1678, 25342, 451, 18074, 29896, 470, 451, 18074, 29906, 29901, 13, 4706, 736, 5159, 13, 1678, 25342, 18074, 29896, 29961, 29900, 29962, 1275, 18074, 29906, 29961, 29900, 5387, 13, 4706, 736, 518, 3044, 29896, 29961, 29900, 5262, 718, 301, 2395, 23538, 3044, 29896, 29961, 29896, 29901, 1402, 18074, 29906, 29961, 29896, 29901, 1402, 2626, 29877, 29897, 13, 1678, 263, 353, 301, 2395, 23538, 3044, 29896, 29892, 18074, 29906, 29961, 29896, 29901, 1402, 2626, 29877, 29897, 13, 1678, 289, 353, 301, 2395, 23538, 3044, 29896, 29961, 29896, 29901, 1402, 18074, 29906, 29892, 2626, 29877, 29897, 13, 1678, 565, 7431, 29898, 29874, 29897, 1405, 7431, 29898, 29890, 1125, 13, 4706, 2626, 29877, 15625, 2435, 29898, 3044, 29896, 511, 7431, 29898, 3044, 29906, 28166, 353, 263, 13, 4706, 736, 263, 13, 1678, 1683, 29901, 13, 4706, 2626, 29877, 15625, 2435, 29898, 3044, 29896, 511, 7431, 29898, 3044, 29906, 28166, 353, 289, 13, 4706, 736, 289, 13, 13, 13, 1753, 301, 2395, 29898, 3044, 29896, 29892, 18074, 29906, 1125, 13, 1678, 736, 301, 2395, 23538, 3044, 29896, 29892, 18074, 29906, 29892, 426, 1800, 13, 2 ]
sasquatch/error/exec.py
tmacro/s4
6
27433
from .base import SQError, BaseErrorHelper from .context import ContextAwareError class ExecutionError(SQError): '''raised when an error is encountered during script execution''' class ExecErrorHelper(BaseErrorHelper): _default = ExecutionError @staticmethod def throw(cls = ExecutionError, **kwargs): if 'ctx' in kwargs and kwargs['ctx'] is not None: ctx = kwargs.get('ctx') return BaseErrorHelper.throw(cls, **ctx._asdict(), **kwargs) class MissingKeywordError(ExecutionError): '''Raised when a required keyword argument can not be collected''' _msg = 'Unable to collect keyword {keyword}' class InvalidFilePathError(ContextAwareError, ExecutionError): '''Raised when a file path passed as input does not exist or is invalid''' _msg = 'Path {filepath} is not a valid location'
[ 1, 515, 869, 3188, 1053, 317, 29984, 2392, 29892, 7399, 2392, 10739, 13, 3166, 869, 4703, 1053, 15228, 29909, 2519, 2392, 13, 13, 1990, 11080, 918, 2392, 29898, 29903, 29984, 2392, 1125, 13, 12, 12008, 336, 3368, 746, 385, 1059, 338, 18169, 2645, 2471, 8225, 12008, 13, 13, 1990, 11080, 2392, 10739, 29898, 5160, 2392, 10739, 1125, 13, 12, 29918, 4381, 353, 11080, 918, 2392, 13, 12, 29992, 7959, 5696, 13, 12, 1753, 3183, 29898, 25932, 353, 11080, 918, 2392, 29892, 3579, 19290, 1125, 13, 12, 12, 361, 525, 13073, 29915, 297, 9049, 5085, 322, 9049, 5085, 1839, 13073, 2033, 338, 451, 6213, 29901, 13, 12, 12, 12, 13073, 353, 9049, 5085, 29889, 657, 877, 13073, 1495, 13, 12, 12, 12, 2457, 7399, 2392, 10739, 29889, 20539, 29898, 25932, 29892, 3579, 13073, 3032, 294, 8977, 3285, 3579, 19290, 29897, 13, 13, 13, 1990, 4750, 292, 2558, 1742, 2392, 29898, 20418, 2392, 1125, 13, 12, 12008, 29934, 1759, 287, 746, 263, 3734, 13553, 2980, 508, 451, 367, 16531, 12008, 13, 12, 29918, 7645, 353, 525, 2525, 519, 304, 6314, 13553, 426, 26766, 10162, 13, 13, 1990, 21403, 2283, 2605, 2392, 29898, 2677, 29909, 2519, 2392, 29892, 11080, 918, 2392, 1125, 13, 12, 12008, 29934, 1759, 287, 746, 263, 934, 2224, 4502, 408, 1881, 947, 451, 1863, 470, 338, 8340, 12008, 13, 12, 29918, 7645, 353, 525, 2605, 426, 1445, 2084, 29913, 338, 451, 263, 2854, 4423, 29915, 13, 2 ]
lib/rucio/core/transfer.py
ChristophAmes/rucio
0
74440
<gh_stars>0 # -*- coding: utf-8 -*- # Copyright 2013-2021 CERN # # 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. # # Authors: # - <NAME> <<EMAIL>>, 2013-2021 # - <NAME> <<EMAIL>>, 2017-2021 # - <NAME> <<EMAIL>>, 2017 # - <NAME> <<EMAIL>>, 2018 # - <NAME> <<EMAIL>>, 2018-2021 # - dciangot <<EMAIL>>, 2018 # - <NAME> <<EMAIL>>, 2018-2019 # - <NAME> <<EMAIL>>, 2018 # - <NAME> <<EMAIL>>, 2019 # - <NAME> <<EMAIL>>, 2019 # - <NAME> <<EMAIL>>, 2019-2021 # - <NAME>' <<EMAIL>>, 2019 # - <NAME> <<EMAIL>>, 2019-2020 # - <NAME> <<EMAIL>>, 2020 # - <NAME> <<EMAIL>>, 2020 # - <NAME> <<EMAIL>>, 2020 # - <NAME> <<EMAIL>>, 2020 # - <NAME> <<EMAIL>>, 2020 # - <NAME> <<EMAIL>>, 2021 # - <NAME> <<EMAIL>>, 2021 from __future__ import division import copy import datetime import imp import json import logging import re import time from typing import TYPE_CHECKING from dogpile.cache import make_region from dogpile.cache.api import NoValue from sqlalchemy import and_ from sqlalchemy.exc import IntegrityError from sqlalchemy.sql.expression import false from rucio.common import constants from rucio.common.config import config_get from rucio.common.constants import SUPPORTED_PROTOCOLS, FTS_STATE from rucio.common.exception import (InvalidRSEExpression, NoDistance, RequestNotFound, RSEProtocolNotSupported, RucioException, UnsupportedOperation) from rucio.common.rse_attributes import get_rse_attributes from rucio.common.types import InternalAccount from rucio.common.utils import construct_surl from rucio.core import did, message as message_core, request as request_core from rucio.core.config import get as core_config_get from rucio.core.monitor import record_counter, record_timer from rucio.core.oidc import get_token_for_account_operation from rucio.core.replica import add_replicas from rucio.core.request import queue_requests, set_requests_state from rucio.core.rse import get_rse_name, get_rse_vo, list_rses, get_rse_supported_checksums from rucio.core.rse_expression_parser import parse_expression from rucio.db.sqla import models, filter_thread_work from rucio.db.sqla.constants import DIDType, RequestState, RSEType, RequestType, ReplicaState from rucio.db.sqla.session import read_session, transactional_session from rucio.rse import rsemanager as rsemgr from rucio.transfertool.fts3 import FTS3Transfertool from rucio.transfertool.mock import MockTransfertool if TYPE_CHECKING: from typing import List, Tuple # Extra modules: Only imported if available EXTRA_MODULES = {'globus_sdk': False} for extra_module in EXTRA_MODULES: try: imp.find_module(extra_module) EXTRA_MODULES[extra_module] = True except ImportError: EXTRA_MODULES[extra_module] = False if EXTRA_MODULES['globus_sdk']: from rucio.transfertool.globus import GlobusTransferTool # pylint: disable=import-error """ The core transfer.py is specifically for handling transfer-requests, thus requests where the external_id is already known. Requests accessed by request_id are covered in the core request.py """ REGION_SHORT = make_region().configure('dogpile.cache.memcached', expiration_time=600, arguments={'url': config_get('cache', 'url', False, '127.0.0.1:11211'), 'distributed_lock': True}) ALLOW_USER_OIDC_TOKENS = config_get('conveyor', 'allow_user_oidc_tokens', False, False) REQUEST_OIDC_SCOPE = config_get('conveyor', 'request_oidc_scope', False, 'fts:submit-transfer') REQUEST_OIDC_AUDIENCE = config_get('conveyor', 'request_oidc_audience', False, 'fts:example') WEBDAV_TRANSFER_MODE = config_get('conveyor', 'webdav_transfer_mode', False, None) def submit_bulk_transfers(external_host, files, transfertool='fts3', job_params={}, timeout=None, user_transfer_job=False, logger=logging.log): """ Submit transfer request to a transfertool. :param external_host: External host name as string :param files: List of Dictionary containing request file. :param transfertool: Transfertool as a string. :param job_params: Metadata key/value pairs for all files as a dictionary. :param logger: Optional decorated logger that can be passed from the calling daemons or servers. :returns: Transfertool external ID. """ record_counter('core.request.submit_transfer') transfer_id = None if transfertool == 'fts3': start_time = time.time() job_files = [] for file in files: job_file = {} for key in file: if key == 'sources': # convert sources from (src_rse, url, src_rse_id, rank) to url job_file[key] = [] for source in file[key]: job_file[key].append(source[1]) else: job_file[key] = file[key] job_files.append(job_file) # getting info about account and OIDC support of the RSEs use_oidc = job_params.get('use_oidc', False) transfer_token = None if use_oidc: logger(logging.DEBUG, 'OAuth2/OIDC available at RSEs') account = job_params.get('account', None) getadmintoken = False if ALLOW_USER_OIDC_TOKENS is False: getadmintoken = True logger(logging.DEBUG, 'Attempting to get a token for account %s. Admin token option set to %s' % (account, getadmintoken)) # find the appropriate OIDC token and exchange it (for user accounts) if necessary token_dict = get_token_for_account_operation(account, req_audience=REQUEST_OIDC_AUDIENCE, req_scope=REQUEST_OIDC_SCOPE, admin=getadmintoken) if token_dict is not None: logger(logging.DEBUG, 'Access token has been granted.') if 'token' in token_dict: logger(logging.DEBUG, 'Access token used as transfer token.') transfer_token = token_dict['token'] transfer_id = FTS3Transfertool(external_host=external_host, token=transfer_token).submit(files=job_files, job_params=job_params, timeout=timeout) record_timer('core.request.submit_transfers_fts3', (time.time() - start_time) * 1000 / len(files)) elif transfertool == 'globus': logger(logging.DEBUG, '... Starting globus xfer ...') job_files = [] for file in files: job_file = {} for key in file: if key == 'sources': # convert sources from (src_rse, url, src_rse_id, rank) to url job_file[key] = [] for source in file[key]: job_file[key].append(source[1]) else: job_file[key] = file[key] job_files.append(job_file) logger(logging.DEBUG, 'job_files: %s' % job_files) transfer_id = GlobusTransferTool(external_host=None).bulk_submit(submitjob=job_files, timeout=timeout) elif transfertool == 'mock': transfer_id = MockTransfertool(external_host=None).submit(files, None) return transfer_id @transactional_session def prepare_sources_for_transfers(transfers, session=None): """ Prepare the sources for transfers. :param transfers: Dictionary containing request transfer info. :param session: Database session to use. """ try: for request_id in transfers: rowcount = session.query(models.Request)\ .filter_by(id=request_id)\ .filter(models.Request.state == RequestState.QUEUED)\ .update({'state': transfers[request_id]['state'], 'external_id': transfers[request_id]['external_id'], 'external_host': transfers[request_id]['external_host'], 'dest_url': transfers[request_id]['dest_url'], 'submitted_at': datetime.datetime.utcnow()}, synchronize_session=False) if rowcount == 0: raise RequestNotFound("Failed to prepare transfer: request %s does not exist or is not in queued state" % (request_id)) if 'file' in transfers[request_id]: file = transfers[request_id]['file'] for src_rse, src_url, src_rse_id, rank in file['sources']: src_rowcount = session.query(models.Source)\ .filter_by(request_id=request_id)\ .filter(models.Source.rse_id == src_rse_id)\ .update({'is_using': True}, synchronize_session=False) if src_rowcount == 0: models.Source(request_id=file['metadata']['request_id'], scope=file['metadata']['scope'], name=file['metadata']['name'], rse_id=src_rse_id, dest_rse_id=file['metadata']['dest_rse_id'], ranking=rank if rank else 0, bytes=file['metadata']['filesize'], url=src_url, is_using=True).\ save(session=session, flush=False) except IntegrityError as error: raise RucioException(error.args) @transactional_session def set_transfers_state(transfers, submitted_at, session=None): """ Update the transfer info of a request. :param transfers: Dictionary containing request transfer info. :param session: Database session to use. """ try: for request_id in transfers: rowcount = session.query(models.Request)\ .filter_by(id=request_id)\ .filter(models.Request.state == RequestState.SUBMITTING)\ .update({'state': transfers[request_id]['state'], 'external_id': transfers[request_id]['external_id'], 'external_host': transfers[request_id]['external_host'], 'source_rse_id': transfers[request_id]['src_rse_id'], 'submitted_at': submitted_at}, synchronize_session=False) if rowcount == 0: raise RucioException("Failed to set requests %s tansfer %s: request doesn't exist or is not in SUBMITTING state" % (request_id, transfers[request_id])) request_type = transfers[request_id].get('request_type', None) msg = {'request-id': request_id, 'request-type': request_type, 'scope': transfers[request_id]['scope'].external, 'name': transfers[request_id]['name'], 'src-rse-id': transfers[request_id]['metadata'].get('src_rse_id', None), 'src-rse': transfers[request_id]['metadata'].get('src_rse', None), 'dst-rse-id': transfers[request_id]['metadata'].get('dst_rse_id', None), 'dst-rse': transfers[request_id]['metadata'].get('dst_rse', None), 'state': transfers[request_id]['state'], 'activity': transfers[request_id]['metadata'].get('activity', None), 'file-size': transfers[request_id]['metadata'].get('filesize', None), 'bytes': transfers[request_id]['metadata'].get('filesize', None), 'checksum-md5': transfers[request_id]['metadata'].get('md5', None), 'checksum-adler': transfers[request_id]['metadata'].get('adler32', None), 'external-id': transfers[request_id]['external_id'], 'external-host': transfers[request_id]['external_host'], 'queued_at': str(submitted_at)} if transfers[request_id]['scope'].vo != 'def': msg['vo'] = transfers[request_id]['scope'].vo if msg['request-type']: transfer_status = '%s-%s' % (msg['request-type'].name, msg['state'].name) else: transfer_status = 'transfer-%s' % msg['state'] transfer_status = transfer_status.lower() message_core.add_message(transfer_status, msg, session=session) except IntegrityError as error: raise RucioException(error.args) def bulk_query_transfers(request_host, transfer_ids, transfertool='fts3', timeout=None, logger=logging.log): """ Query the status of a transfer. :param request_host: Name of the external host. :param transfer_ids: List of (External-ID as a 32 character hex string) :param transfertool: Transfertool name as a string. :param logger: Optional decorated logger that can be passed from the calling daemons or servers. :returns: Request status information as a dictionary. """ record_counter('core.request.bulk_query_transfers') if transfertool == 'fts3': try: start_time = time.time() fts_resps = FTS3Transfertool(external_host=request_host).bulk_query(transfer_ids=transfer_ids, timeout=timeout) record_timer('core.request.bulk_query_transfers', (time.time() - start_time) * 1000 / len(transfer_ids)) except Exception: raise for transfer_id in transfer_ids: if transfer_id not in fts_resps: fts_resps[transfer_id] = Exception("Transfer id %s is not returned" % transfer_id) if fts_resps[transfer_id] and not isinstance(fts_resps[transfer_id], Exception): for request_id in fts_resps[transfer_id]: if fts_resps[transfer_id][request_id]['file_state'] in (FTS_STATE.FAILED, FTS_STATE.FINISHEDDIRTY, FTS_STATE.CANCELED): fts_resps[transfer_id][request_id]['new_state'] = RequestState.FAILED elif fts_resps[transfer_id][request_id]['file_state'] in FTS_STATE.FINISHED: fts_resps[transfer_id][request_id]['new_state'] = RequestState.DONE return fts_resps elif transfertool == 'globus': try: start_time = time.time() logger(logging.DEBUG, 'transfer_ids: %s' % transfer_ids) responses = GlobusTransferTool(external_host=None).bulk_query(transfer_ids=transfer_ids, timeout=timeout) record_timer('core.request.bulk_query_transfers', (time.time() - start_time) * 1000 / len(transfer_ids)) except Exception: raise for k, v in responses.items(): if v == 'FAILED': responses[k] = RequestState.FAILED elif v == 'SUCCEEDED': responses[k] = RequestState.DONE else: responses[k] = RequestState.SUBMITTED return responses else: raise NotImplementedError return None @transactional_session def set_transfer_update_time(external_host, transfer_id, update_time=datetime.datetime.utcnow(), session=None): """ Update the state of a request. Fails silently if the transfer_id does not exist. :param external_host: Selected external host as string in format protocol://fqdn:port :param transfer_id: External transfer job id as a string. :param update_time: Time stamp. :param session: Database session to use. """ record_counter('core.request.set_transfer_update_time') try: rowcount = session.query(models.Request).filter_by(external_id=transfer_id, state=RequestState.SUBMITTED).update({'updated_at': update_time}, synchronize_session=False) except IntegrityError as error: raise RucioException(error.args) if not rowcount: raise UnsupportedOperation("Transfer %s doesn't exist or its status is not submitted." % (transfer_id)) def query_latest(external_host, state, last_nhours=1, logger=logging.log): """ Query the latest transfers in last n hours with state. :param external_host: FTS host name as a string. :param state: FTS job state as a string or a dictionary. :param last_nhours: Latest n hours as an integer. :param logger: Optional decorated logger that can be passed from the calling daemons or servers. :returns: Requests status information as a dictionary. """ record_counter('core.request.query_latest') start_time = time.time() resps = FTS3Transfertool(external_host=external_host).query_latest(state=state, last_nhours=last_nhours) record_timer('core.request.query_latest_fts3.%s.%s_hours' % (external_host, last_nhours), (time.time() - start_time) * 1000) if not resps: return ret_resps = [] for resp in resps: if 'job_metadata' not in resp or resp['job_metadata'] is None or 'issuer' not in resp['job_metadata'] or resp['job_metadata']['issuer'] != 'rucio': continue if 'request_id' not in resp['job_metadata']: # submitted by new submitter try: logger(logging.DEBUG, "Transfer %s on %s is %s, decrease its updated_at." % (resp['job_id'], external_host, resp['job_state'])) set_transfer_update_time(external_host, resp['job_id'], datetime.datetime.utcnow() - datetime.timedelta(hours=24)) except Exception as error: logger(logging.DEBUG, "Exception happened when updating transfer updatetime: %s" % str(error).replace('\n', '')) return ret_resps @transactional_session def touch_transfer(external_host, transfer_id, session=None): """ Update the timestamp of requests in a transfer. Fails silently if the transfer_id does not exist. :param request_host: Name of the external host. :param transfer_id: External transfer job id as a string. :param session: Database session to use. """ record_counter('core.request.touch_transfer') try: # don't touch it if it's already touched in 30 seconds session.query(models.Request).with_hint(models.Request, "INDEX(REQUESTS REQUESTS_EXTERNALID_UQ)", 'oracle')\ .filter_by(external_id=transfer_id)\ .filter(models.Request.state == RequestState.SUBMITTED)\ .filter(models.Request.updated_at < datetime.datetime.utcnow() - datetime.timedelta(seconds=30))\ .update({'updated_at': datetime.datetime.utcnow()}, synchronize_session=False) except IntegrityError as error: raise RucioException(error.args) @transactional_session def update_transfer_state(external_host, transfer_id, state, session=None, logger=logging.log): """ Used by poller to update the internal state of transfer, after the response by the external transfertool. :param request_host: Name of the external host. :param transfer_id: External transfer job id as a string. :param state: Request state as a string. :param session: The database session to use. :param logger: Optional decorated logger that can be passed from the calling daemons or servers. :returns commit_or_rollback: Boolean. """ try: if state == RequestState.LOST: reqs = request_core.get_requests_by_transfer(external_host, transfer_id, session=session) for req in reqs: logger(logging.INFO, 'REQUEST %s OF TRANSFER %s ON %s STATE %s' % (str(req['request_id']), external_host, transfer_id, str(state))) src_rse_id = req.get('source_rse_id', None) dst_rse_id = req.get('dest_rse_id', None) src_rse = None dst_rse = None if src_rse_id: src_rse = get_rse_name(src_rse_id, session=session) if dst_rse_id: dst_rse = get_rse_name(dst_rse_id, session=session) response = {'new_state': state, 'transfer_id': transfer_id, 'job_state': state, 'src_url': None, 'dst_url': req['dest_url'], 'duration': 0, 'reason': "The FTS job lost", 'scope': req.get('scope', None), 'name': req.get('name', None), 'src_rse': src_rse, 'dst_rse': dst_rse, 'request_id': req.get('request_id', None), 'activity': req.get('activity', None), 'src_rse_id': req.get('source_rse_id', None), 'dst_rse_id': req.get('dest_rse_id', None), 'previous_attempt_id': req.get('previous_attempt_id', None), 'adler32': req.get('adler32', None), 'md5': req.get('md5', None), 'filesize': req.get('filesize', None), 'external_host': external_host, 'job_m_replica': None, 'created_at': req.get('created_at', None), 'submitted_at': req.get('submitted_at', None), 'details': None, 'account': req.get('account', None)} err_msg = request_core.get_transfer_error(response['new_state'], response['reason'] if 'reason' in response else None) request_core.set_request_state(req['request_id'], response['new_state'], transfer_id=transfer_id, src_rse_id=src_rse_id, err_msg=err_msg, session=session) request_core.add_monitor_message(req, response, session=session) else: __set_transfer_state(external_host, transfer_id, state, session=session) return True except UnsupportedOperation as error: logger(logging.WARNING, "Transfer %s on %s doesn't exist - Error: %s" % (transfer_id, external_host, str(error).replace('\n', ''))) return False @transactional_session def get_hops(source_rse_id, dest_rse_id, include_multihop=False, multihop_rses=None, limit_dest_schemes=None, session=None): """ Get a list of hops needed to transfer date from source_rse_id to dest_rse_id. Ideally, the list will only include one item (dest_rse_id) since no hops are needed. :param source_rse_id: Source RSE id of the transfer. :param dest_rse_id: Dest RSE id of the transfer. :param include_multihop: If no direct link can be made, also include multihop transfers. :param multihop_rses: List of RSE ids that can be used for multihop. :param limit_dest_schemes: List of destination schemes the matching scheme algorithm should be limited to for a single hop. :returns: List of hops in the format [{'source_rse_id': source_rse_id, 'source_scheme': 'srm', 'source_scheme_priority': N, 'dest_rse_id': dest_rse_id, 'dest_scheme': 'srm', 'dest_scheme_priority': N}] :raises: NoDistance """ if not limit_dest_schemes: limit_dest_schemes = [] # Check if there is a cached result result = REGION_SHORT.get('get_hops_%s_%s_%s' % (str(source_rse_id), str(dest_rse_id), ''.join(sorted(limit_dest_schemes)))) if not isinstance(result, NoValue): return result if multihop_rses is None: multihop_rses = [] # TODO: Might be problematic to always load the distance_graph, since it might be expensiv # Load the graph from the distances table # distance_graph = __load_distance_graph(session=session) distance_graph = {} distance_graph[source_rse_id] = __load_outgoing_distances_node(rse_id=source_rse_id, session=session) # 1. Check if there is a direct connection between source and dest: if distance_graph.get(source_rse_id, {dest_rse_id: None}).get(dest_rse_id) is not None: # Check if there is a protocol match between the two RSEs try: matching_scheme = rsemgr.find_matching_scheme(rse_settings_dest=__load_rse_settings(rse_id=dest_rse_id, session=session), rse_settings_src=__load_rse_settings(rse_id=source_rse_id, session=session), operation_src='third_party_copy', operation_dest='third_party_copy', domain='wan', scheme=limit_dest_schemes if limit_dest_schemes else None) path = [{'source_rse_id': source_rse_id, 'dest_rse_id': dest_rse_id, 'source_scheme': matching_scheme[1], 'dest_scheme': matching_scheme[0], 'source_scheme_priority': matching_scheme[3], 'dest_scheme_priority': matching_scheme[2]}] REGION_SHORT.set('get_hops_%s_%s_%s' % (str(source_rse_id), str(dest_rse_id), ''.join(sorted(limit_dest_schemes))), path) return path except RSEProtocolNotSupported as error: if include_multihop: # Delete the edge from the graph del distance_graph[source_rse_id][dest_rse_id] else: raise error if not include_multihop: raise NoDistance() # 2. There is no connection or no scheme match --> Try a multi hop --> Dijkstra algorithm HOP_PENALTY = core_config_get('transfers', 'hop_penalty', default=10, session=session) # Penalty to be applied to each further hop # Check if the destination RSE is an island RSE: if not __load_inbound_distances_node(rse_id=dest_rse_id, session=session): raise NoDistance() visited_nodes = {source_rse_id: {'distance': 0, 'path': []}} # Dijkstra already visisted nodes # {rse_id: {'path': [{'source_rse_id':, 'dest_rse_id':, 'source_scheme', 'dest_scheme': }], # 'distance': X} # } to_visit = [source_rse_id] # Nodes to visit, once list is empty, break loop local_optimum = 9999 # Local optimum to accelerated search while to_visit: for current_node in copy.deepcopy(to_visit): to_visit.remove(current_node) current_distance = visited_nodes[current_node]['distance'] current_path = visited_nodes[current_node]['path'] if current_node not in distance_graph: distance_graph[current_node] = __load_outgoing_distances_node(rse_id=current_node, session=session) for out_v in distance_graph[current_node]: # Check if the distance would be smaller if distance_graph[current_node][out_v] is None: continue if visited_nodes.get(out_v, {'distance': 9999})['distance'] > current_distance + distance_graph[current_node][out_v] + HOP_PENALTY\ and local_optimum > current_distance + distance_graph[current_node][out_v] + HOP_PENALTY: # Check if the intermediate RSE is enabled for multihop if out_v != dest_rse_id and out_v not in multihop_rses: continue # Check if there is a compatible protocol pair try: matching_scheme = rsemgr.find_matching_scheme(rse_settings_dest=__load_rse_settings(rse_id=out_v, session=session), rse_settings_src=__load_rse_settings(rse_id=current_node, session=session), operation_src='third_party_copy', operation_dest='third_party_copy', domain='wan', scheme=limit_dest_schemes if out_v == dest_rse_id and limit_dest_schemes else None) visited_nodes[out_v] = {'distance': current_distance + distance_graph[current_node][out_v] + HOP_PENALTY, 'path': current_path + [{'source_rse_id': current_node, 'dest_rse_id': out_v, 'source_scheme': matching_scheme[1], 'dest_scheme': matching_scheme[0], 'source_scheme_priority': matching_scheme[3], 'dest_scheme_priority': matching_scheme[2]}]} if out_v != dest_rse_id: to_visit.append(out_v) else: local_optimum = current_distance + distance_graph[current_node][out_v] + HOP_PENALTY except RSEProtocolNotSupported: pass if dest_rse_id in visited_nodes: REGION_SHORT.set('get_hops_%s_%s_%s' % (str(source_rse_id), str(dest_rse_id), ''.join(sorted(limit_dest_schemes))), visited_nodes[dest_rse_id]['path']) return visited_nodes[dest_rse_id]['path'] else: raise NoDistance() def get_attributes(attributes): dict_attributes = {} if attributes: if isinstance(attributes, dict): attr = json.loads(json.dumps(attributes)) else: attr = json.loads(str(attributes)) # parse source expression dict_attributes['source_replica_expression'] = attr["source_replica_expression"] if (attr and "source_replica_expression" in attr) else None dict_attributes['allow_tape_source'] = attr["allow_tape_source"] if (attr and "allow_tape_source" in attr) else True dict_attributes['dsn'] = attr["ds_name"] if (attr and "ds_name" in attr) else None dict_attributes['lifetime'] = attr.get('lifetime', -1) return dict_attributes def get_dsn(scope, name, dsn): if dsn: return dsn # select a containing dataset for parent in did.list_parent_dids(scope, name): if parent['type'] == DIDType.DATASET: return parent['name'] return 'other' def __build_dest_url(scope, name, protocol, dest_rse_attrs, dest_is_deterministic, dest_is_tape, dict_attributes, retry_count, activity): """ Private helper function to build destination URL when retrieving transfers to execute. """ if dest_is_deterministic: dest_url = list(protocol.lfns2pfns(lfns={'scope': scope.external, 'name': name}).values())[0] else: # compute dest url in case of non deterministic # naming convention, etc. dsn = get_dsn(scope, name, dict_attributes.get('dsn', None)) # DQ2 path always starts with /, but prefix might not end with / naming_convention = dest_rse_attrs.get('naming_convention', None) dest_path = construct_surl(dsn, name, naming_convention) if dest_is_tape: if retry_count or activity == 'Recovery': dest_path = '%s_%i' % (dest_path, int(time.time())) dest_url = list(protocol.lfns2pfns(lfns={'scope': scope.external, 'name': name, 'path': dest_path}).values())[0] return dest_url def __rewrite_source_url(source_url, source_sign_url, dest_sign_url, source_scheme): """ Parametrize source url for some special cases of source and destination schemes """ if dest_sign_url == 'gcs': if source_scheme in ['davs', 'https']: source_url += '?copy_mode=push' elif dest_sign_url == 's3': if source_scheme in ['davs', 'https']: source_url += '?copy_mode=push' elif WEBDAV_TRANSFER_MODE: if source_scheme in ['davs', 'https']: source_url += '?copy_mode=%s' % WEBDAV_TRANSFER_MODE source_sign_url_map = {'gcs': 'gclouds', 's3': 's3s'} if source_sign_url in source_sign_url_map: if source_url[:7] == 'davs://': source_url = source_sign_url_map[source_sign_url] + source_url[4:] if source_url[:8] == 'https://': source_url = source_sign_url_map[source_sign_url] + source_url[5:] if source_url[:12] == 'srm+https://': source_url = 'srm' + source_url[10:] return source_url def __rewrite_dest_url(dest_url, dest_sign_url, dest_scheme): """ Parametrize destination url for some special cases of destination schemes """ if dest_sign_url == 'gcs': dest_url = re.sub('davs', 'gclouds', dest_url) dest_url = re.sub('https', 'gclouds', dest_url) elif dest_sign_url == 's3': dest_url = re.sub('davs', 's3s', dest_url) dest_url = re.sub('https', 's3s', dest_url) if dest_url[:12] == 'srm+https://': dest_url = 'srm' + dest_url[10:] return dest_url @transactional_session def get_transfer_requests_and_source_replicas(total_workers=0, worker_number=0, limit=None, activity=None, older_than=None, rses=None, schemes=None, bring_online=43200, retry_other_fts=False, failover_schemes=None, transfertool=None, logger=logging.log, session=None): """ Get transfer requests and the associated source replicas :param total_workers: Number of total workers. :param worker_number: Id of the executing worker. :param limit: Limit. :param activity: Activity. :param older_than: Get transfers older than. :param rses: Include RSES. :param schemes: Include schemes. :param bring_online: Bring online timeout. :param retry_other_fts: Retry other fts servers. :param failover_schemes: Failover schemes. :param transfertool: The transfer tool as specified in rucio.cfg. :param logger: Optional decorated logger that can be passed from the calling daemons or servers. :param session: The database session in use. :returns: transfers, reqs_no_source, reqs_scheme_mismatch, reqs_only_tape_source """ req_sources = __list_transfer_requests_and_source_replicas(total_workers=total_workers, worker_number=worker_number, limit=limit, activity=activity, older_than=older_than, rses=rses, request_state=RequestState.QUEUED, transfertool=transfertool, session=session) class _LocalContext: def __init__(self, session): self.session = session self.rse_id_to_name_map = {} self.rse_id_to_info_map = {} self.rse_id_to_attrs_map = {} self.protocols = {} def _ensure_rse_loaded(self, rse_id): if rse_id not in self.rse_id_to_name_map: rse_name = get_rse_name(rse_id=rse_id, session=self.session) self.rse_id_to_name_map[rse_id] = rse_name self.rse_id_to_info_map[rse_id] = rsemgr.get_rse_info(rse=rse_name, vo=get_rse_vo(rse_id=rse_id, session=self.session), session=self.session) self.rse_id_to_attrs_map[rse_id] = get_rse_attributes(rse_id, session=self.session) def rse_name(self, rse_id): self._ensure_rse_loaded(rse_id) return self.rse_id_to_name_map[rse_id] def rse_info(self, rse_id): self._ensure_rse_loaded(rse_id) return self.rse_id_to_info_map[rse_id] def rse_attrs(self, rse_id): self._ensure_rse_loaded(rse_id) return self.rse_id_to_attrs_map[rse_id] def is_tape_rse(self, rse_id): _rse_info = self.rse_info(rse_id) if _rse_info['rse_type'] == RSEType.TAPE or _rse_info['rse_type'] == 'TAPE': return True return False def protocol(self, rse_id, scheme, operation): protocol_key = '%s_%s_%s' % (operation, rse_id, scheme) protocol = self.protocols.get(protocol_key) if not protocol: protocol = rsemgr.create_protocol(self.rse_info(rse_id), 'third_party_copy', scheme) self.protocols[protocol_key] = protocol return protocol ctx = _LocalContext(session) unavailable_read_rse_ids = __get_unavailable_rse_ids(operation='read', session=session) unavailable_write_rse_ids = __get_unavailable_rse_ids(operation='write', session=session) bring_online_local = bring_online transfers, reqs_no_source, reqs_only_tape_source, reqs_scheme_mismatch = {}, [], [], [] multi_hop_dict = {} multihop_rses = [] try: multihop_rses = [rse['id'] for rse in parse_expression('available_for_multihop=true')] except InvalidRSEExpression: multihop_rses = [] for req_id, rule_id, scope, name, md5, adler32, bytes, activity, attributes, previous_attempt_id, dest_rse_id, account, source_rse_id, rse, deterministic, rse_type, path, retry_count, src_url, ranking, link_ranking in req_sources: if ranking is None: ranking = 0 multihop = False # Add req to req_no_source list (Will be removed later if needed) if req_id not in reqs_no_source: reqs_no_source.append(req_id) # source_rse_id will be None if no source replicas # rse will be None if rse is staging area if source_rse_id is None or rse is None: continue if rses and dest_rse_id not in rses: continue dest_rse_name = ctx.rse_name(dest_rse_id) source_rse_name = ctx.rse_name(source_rse_id) dict_attributes = get_attributes(attributes) # Check if the source and destination are blocked if source_rse_id in unavailable_read_rse_ids: continue if dest_rse_id in unavailable_write_rse_ids: logger(logging.WARNING, 'RSE %s is blocked for write. Will skip the submission of new jobs', dest_rse_name) continue # parse source expression source_replica_expression = dict_attributes.get('source_replica_expression', None) if source_replica_expression: try: parsed_rses = parse_expression(source_replica_expression, session=session) except InvalidRSEExpression as error: logger(logging.ERROR, "Invalid RSE exception %s: %s", source_replica_expression, str(error)) continue else: allowed_rses = [x['id'] for x in parsed_rses] if source_rse_id not in allowed_rses: continue # Call the get_hops function to create a list of RSEs used for the transfer # In case the source_rse and the dest_rse are connected, the list contains only the destination RSE # In case of non-connected, the list contains all the intermediary RSEs list_hops = [] include_multihop = False if transfertool in ['fts3', None]: include_multihop = core_config_get('transfers', 'use_multihop', default=False, expiration_time=600, session=session) try: list_hops = get_hops(source_rse_id, dest_rse_id, include_multihop=include_multihop, multihop_rses=multihop_rses, limit_dest_schemes=transfers.get(req_id, {}).get('schemes', None), session=session) if len(list_hops) > 1: logger(logging.DEBUG, 'From %s to %s requires multihop: %s', source_rse_id, dest_rse_id, list_hops) multihop = True multi_hop_dict[req_id] = (list_hops, dict_attributes, retry_count) except NoDistance: logger(logging.WARNING, "Request %s: no link from %s to %s", req_id, source_rse_name, dest_rse_name) if req_id in reqs_scheme_mismatch: reqs_scheme_mismatch.remove(req_id) if req_id not in reqs_no_source: reqs_no_source.append(req_id) continue except RSEProtocolNotSupported: logger(logging.WARNING, "Request %s: no matching protocol between %s and %s", req_id, source_rse_name, dest_rse_name) if req_id in reqs_no_source: reqs_no_source.remove(req_id) if req_id not in reqs_scheme_mismatch: reqs_scheme_mismatch.append(req_id) continue source_scheme = list_hops[0]['source_scheme'] dest_scheme = list_hops[-1]['dest_scheme'] dest_scheme_priority = list_hops[-1]['dest_scheme_priority'] allow_tape_source = True try: # Get source protocol source_protocol = ctx.protocol(source_rse_id, source_scheme, 'read') source_sign_url = ctx.rse_attrs(source_rse_id).get('sign_url', None) dest_sign_url = ctx.rse_attrs(dest_rse_id).get('sign_url', None) # Compute the source URL source_url = list(source_protocol.lfns2pfns(lfns={'scope': scope.external, 'name': name, 'path': path}).values())[0] source_url = __rewrite_source_url(source_url, source_sign_url=source_sign_url, dest_sign_url=dest_sign_url, source_scheme=source_scheme) # If the request_id is not already in the transfer dictionary, need to compute the destination URL if req_id not in transfers: # parse allow tape source expression, not finally version. # allow_tape_source = attr["allow_tape_source"] if (attr and "allow_tape_source" in attr) else True allow_tape_source = True # Extend the metadata dictionary with request attributes transfer_src_type = "DISK" transfer_dst_type = "DISK" overwrite, bring_online = True, None if ctx.is_tape_rse(source_rse_id) or ctx.rse_attrs(source_rse_id).get('staging_required', False): bring_online = bring_online_local transfer_src_type = "TAPE" if not allow_tape_source: if req_id not in reqs_only_tape_source: reqs_only_tape_source.append(req_id) if req_id in reqs_no_source: reqs_no_source.remove(req_id) continue if ctx.is_tape_rse(dest_rse_id): overwrite = False transfer_dst_type = "TAPE" # Get destination protocol dest_protocol = ctx.protocol(dest_rse_id, dest_scheme, 'write') # Compute the destination url dest_url = __build_dest_url(scope=scope, name=name, protocol=dest_protocol, dest_rse_attrs=ctx.rse_attrs(dest_rse_id), dest_is_deterministic=ctx.rse_info(dest_rse_id)['deterministic'], dest_is_tape=ctx.is_tape_rse(dest_rse_id), dict_attributes=dict_attributes, retry_count=retry_count, activity=activity) dest_url = __rewrite_dest_url(dest_url, dest_sign_url=dest_sign_url, dest_scheme=dest_scheme) # Get dest space token dest_spacetoken = None if dest_protocol.attributes and 'extended_attributes' in dest_protocol.attributes and \ dest_protocol.attributes['extended_attributes'] and 'space_token' in dest_protocol.attributes['extended_attributes']: dest_spacetoken = dest_protocol.attributes['extended_attributes']['space_token'] use_ipv4 = ctx.rse_attrs(source_rse_id).get('use_ipv4', False) or ctx.rse_attrs(dest_rse_id).get('use_ipv4', False) # get external_host + strict_copy + archive timeout strict_copy = ctx.rse_attrs(dest_rse_id).get('strict_copy', False) fts_hosts = ctx.rse_attrs(dest_rse_id).get('fts', None) archive_timeout = ctx.rse_attrs(dest_rse_id).get('archive_timeout', None) if source_sign_url == 'gcs': fts_hosts = ctx.rse_attrs(source_rse_id).get('fts', None) source_globus_endpoint_id = ctx.rse_attrs(source_rse_id).get('globus_endpoint_id', None) dest_globus_endpoint_id = ctx.rse_attrs(dest_rse_id).get('globus_endpoint_id', None) if transfertool == 'fts3' and not fts_hosts: logger(logging.ERROR, 'Destination RSE %s FTS attribute not defined - SKIP REQUEST %s', dest_rse_name, req_id) continue if transfertool == 'globus' and (not dest_globus_endpoint_id or not source_globus_endpoint_id): logger(logging.ERROR, 'Destination RSE %s Globus endpoint attributes not defined - SKIP REQUEST %s', dest_rse_name, req_id) continue if retry_count is None: retry_count = 0 external_host = '' if fts_hosts: fts_list = fts_hosts.split(",") external_host = fts_list[0] if retry_other_fts: external_host = fts_list[retry_count % len(fts_list)] # Get the checksum validation strategy (none, source, destination or both) verify_checksum = 'both' if not ctx.rse_attrs(dest_rse_id).get('verify_checksum', True): if not ctx.rse_attrs(source_rse_id).get('verify_checksum', True): verify_checksum = 'none' else: verify_checksum = 'source' else: if not ctx.rse_attrs(source_rse_id).get('verify_checksum', True): verify_checksum = 'destination' else: verify_checksum = 'both' source_rse_checksums = get_rse_supported_checksums(source_rse_id, session=session) dest_rse_checksums = get_rse_supported_checksums(dest_rse_id, session=session) common_checksum_names = set(source_rse_checksums).intersection(dest_rse_checksums) if len(common_checksum_names) == 0: logger(logging.INFO, 'No common checksum method. Verifying destination only.') verify_checksum = 'destination' # Fill the transfer dictionary including file_metadata file_metadata = {'request_id': req_id, 'scope': scope, 'name': name, 'activity': activity, 'request_type': RequestType.TRANSFER, 'src_type': transfer_src_type, 'dst_type': transfer_dst_type, 'src_rse': source_rse_name, 'dst_rse': dest_rse_name, 'src_rse_id': source_rse_id, 'dest_rse_id': dest_rse_id, 'filesize': bytes, 'md5': md5, 'adler32': adler32, 'verify_checksum': verify_checksum, 'source_globus_endpoint_id': source_globus_endpoint_id, 'dest_globus_endpoint_id': dest_globus_endpoint_id} if previous_attempt_id: file_metadata['previous_attempt_id'] = previous_attempt_id transfers[req_id] = {'request_id': req_id, 'schemes': __add_compatible_schemes(schemes=[dest_scheme], allowed_schemes=SUPPORTED_PROTOCOLS), 'account': account, # 'src_urls': [source_url], 'sources': [(rse, source_url, source_rse_id, ranking, link_ranking)], 'dest_urls': [dest_url], 'src_spacetoken': None, 'dest_spacetoken': dest_spacetoken, 'overwrite': overwrite, 'bring_online': bring_online, 'copy_pin_lifetime': dict_attributes.get('lifetime', 172800), 'external_host': external_host, 'selection_strategy': 'auto', 'rule_id': rule_id, 'file_metadata': file_metadata, 'dest_scheme_priority': dest_scheme_priority} if multihop: transfers[req_id]['multihop'] = True transfers[req_id]['initial_request_id'] = req_id if strict_copy: transfers[req_id]['strict_copy'] = strict_copy if use_ipv4: transfers[req_id]['use_ipv4'] = True if archive_timeout and ctx.is_tape_rse(dest_rse_id): try: transfers[req_id]['archive_timeout'] = int(archive_timeout) logger(logging.DEBUG, 'Added archive timeout to transfer.') except ValueError: logger(logging.WARNING, 'Could not set archive_timeout for %s. Must be integer.', dest_url) pass else: # parse allow tape source expression, not finally version. allow_tape_source = dict_attributes.get('allow_tape_source', None) # No check yet if the previous one is a multihop or not. # TODO : Check if the current transfer is better than the previous one if multihop: continue # The transfer queued previously is a multihop, but this one is direct. # Reset the sources, remove the multihop flag if transfers[req_id].get('multihop', False): transfers[req_id].pop('multihop', None) transfers[req_id]['sources'] = [] current_source_is_tape = transfers[req_id]['bring_online'] new_source_is_tape = ctx.is_tape_rse(source_rse_id) or ctx.rse_attrs(source_rse_id).get('staging_required', False) if new_source_is_tape and not allow_tape_source: continue if current_source_is_tape and not new_source_is_tape or \ new_source_is_tape and not current_source_is_tape: # Tape and Disk sources must not be used at the same time. # Either keep existing sources unchanged, or substitute all existing source with the new source. # Find the best ranking among existing sources avail_top_ranking = None for founded_source in transfers[req_id]['sources']: if avail_top_ranking is None: avail_top_ranking = founded_source[3] continue if founded_source[3] is not None and founded_source[3] > avail_top_ranking: avail_top_ranking = founded_source[3] # If ranking of the new source is better. On equal ranking, prefer Disk over Tape. if avail_top_ranking is None or (ranking > avail_top_ranking) or (ranking >= avail_top_ranking and current_source_is_tape): transfers[req_id]['sources'] = [] transfers[req_id]['bring_online'] = bring_online_local if new_source_is_tape else None transfers[req_id]['file_metadata']['src_type'] = 'TAPE' if new_source_is_tape else 'DISK' transfers[req_id]['file_metadata']['src_rse'] = rse else: continue if current_source_is_tape and new_source_is_tape: # multiple Tape source replicas are not allowed in FTS3. # Either keep the old source. Or substitute it with the new one. if ranking > transfers[req_id]['sources'][0][3] or (ranking == transfers[req_id]['sources'][0][3] and link_ranking < transfers[req_id]['sources'][0][4]): transfers[req_id]['sources'] = [] transfers[req_id]['bring_online'] = bring_online_local transfers[req_id]['file_metadata']['src_rse'] = rse else: continue transfers[req_id]['sources'].append((rse, source_url, source_rse_id, ranking, link_ranking)) # if one source has force IPv4, force IPv4 for the whole job use_ipv4 = ctx.rse_attrs(source_rse_id).get('use_ipv4', False) if use_ipv4: transfers[req_id]['use_ipv4'] = True except Exception: logger(logging.CRITICAL, "Exception happened when trying to get transfer for request %s:" % (req_id), exc_info=True) break # checking OIDC AuthN/Z support per destination and soucre RSEs; # assumes use of boolean 'oidc_support' RSE attribute for req_id in transfers: use_oidc = False dest_rse_id = transfers[req_id]['file_metadata']['dest_rse_id'] if 'oidc_support' in ctx.rse_attrs(dest_rse_id): use_oidc = ctx.rse_attrs(dest_rse_id)['oidc_support'] else: transfers[req_id]['use_oidc'] = use_oidc continue for source in transfers[req_id]['sources']: source_rse_id = source[2] if 'oidc_support' in ctx.rse_attrs(source_rse_id): use_oidc = use_oidc and ctx.rse_attrs(source_rse_id)['oidc_support'] else: use_oidc = False if not use_oidc: break # OIDC token will be requested for the account of this tranfer transfers[req_id]['use_oidc'] = use_oidc for req_id in copy.deepcopy(transfers): # If the transfer is a multihop, need to create the intermediate replicas, intermediate requests and the transfers if transfers[req_id].get('multihop', False): parent_request = None scope = transfers[req_id]['file_metadata']['scope'] name = transfers[req_id]['file_metadata']['name'] list_multihop, dict_attributes, retry_count = multi_hop_dict[req_id] parent_requests = [] for hop in list_multihop: # hop = {'source_rse_id': source_rse_id, 'source_scheme': 'srm', 'source_scheme_priority': N, 'dest_rse_id': dest_rse_id, 'dest_scheme': 'srm', 'dest_scheme_priority': N} source_scheme = hop['source_scheme'] source_rse_id = hop['source_rse_id'] dest_rse_id = hop['dest_rse_id'] source_rse_name = ctx.rse_name(source_rse_id) dest_rse_name = ctx.rse_name(dest_rse_id) dest_rse_vo = get_rse_vo(rse_id=hop['dest_rse_id'], session=session) transfer_src_type = "DISK" transfer_dst_type = "DISK" allow_tape_source = True # Compute the source URL. We don't need to fill the rse_mapping and rse_attrs for the intermediate RSEs cause it has already been done before source_protocol = ctx.protocol(source_rse_id, source_scheme, 'read') source_url = list(source_protocol.lfns2pfns(lfns={'scope': scope.external, 'name': name, 'path': None}).values())[0] if transfers[req_id]['file_metadata']['dest_rse_id'] != hop['dest_rse_id']: files = [{'scope': scope, 'name': name, 'bytes': transfers[req_id]['file_metadata']['filesize'], 'adler32': transfers[req_id]['file_metadata']['adler32'], 'md5': transfers[req_id]['file_metadata']['md5'], 'state': 'C'}] try: add_replicas(rse_id=hop['dest_rse_id'], files=files, account=InternalAccount('root', vo=dest_rse_vo), ignore_availability=False, dataset_meta=None, session=session) except Exception as error: logger(logging.ERROR, 'Problem adding replicas %s:%s on %s : %s', scope, name, dest_rse_name, str(error)) req_attributes = {'activity': transfers[req_id]['file_metadata']['activity'], 'source_replica_expression': None, 'lifetime': None, 'ds_scope': None, 'ds_name': None, 'bytes': transfers[req_id]['file_metadata']['filesize'], 'md5': transfers[req_id]['file_metadata']['md5'], 'adler32': transfers[req_id]['file_metadata']['adler32'], 'priority': None, 'allow_tape_source': True} new_req = queue_requests(requests=[{'dest_rse_id': dest_rse_id, 'scope': scope, 'name': name, 'rule_id': '00000000000000000000000000000000', # Dummy Rule ID used for multihop. TODO: Replace with actual rule_id once we can flag intermediate requests 'attributes': req_attributes, 'request_type': RequestType.TRANSFER, 'retry_count': retry_count, 'account': InternalAccount('root', vo=dest_rse_vo), 'requested_at': datetime.datetime.now()}], session=session) # If a request already exists, new_req will be an empty list. if not new_req: # Need to fail all the intermediate requests + the initial one and exit the multihop loop logger(logging.WARNING, 'Multihop : A request already exists for the transfer between %s and %s. Will cancel all the parent requests', source_rse_name, dest_rse_name) parent_requests.append(req_id) try: set_requests_state(request_ids=parent_requests, new_state=RequestState.FAILED, session=session) except UnsupportedOperation: logger(logging.ERROR, 'Multihop : Cannot cancel all the parent requests : %s', str(parent_requests)) # Remove from the transfer dictionary all the requests for cur_req_id in parent_requests: transfers.pop(cur_req_id, None) break new_req_id = new_req[0]['id'] parent_requests.append(new_req_id) set_requests_state(request_ids=[new_req_id, ], new_state=RequestState.QUEUED, session=session) logger(logging.DEBUG, 'New request created for the transfer between %s and %s : %s', source_rse_name, dest_rse_name, new_req_id) # Here we will compute the destination URL # Get destination protocol dest_rse_id = hop['dest_rse_id'] dest_scheme = hop['dest_scheme'] dest_protocol = ctx.protocol(dest_rse_id, dest_scheme, 'write') # Get dest space token dest_spacetoken = None if dest_protocol.attributes and 'extended_attributes' in dest_protocol.attributes and \ dest_protocol.attributes['extended_attributes'] and 'space_token' in dest_protocol.attributes['extended_attributes']: dest_spacetoken = dest_protocol.attributes['extended_attributes']['space_token'] # Compute the destination url dest_url = __build_dest_url(scope=scope, name=name, protocol=dest_protocol, dest_rse_attrs=ctx.rse_attrs(dest_rse_id), dest_is_deterministic=ctx.rse_info(dest_rse_id)['deterministic'], dest_is_tape=ctx.is_tape_rse(dest_rse_id), dict_attributes=dict_attributes, retry_count=retry_count, activity=activity) # Extend the metadata dictionary with request attributes overwrite, bring_online = True, None if ctx.is_tape_rse(source_rse_id): bring_online = bring_online_local transfer_src_type = "TAPE" if not allow_tape_source: if req_id not in reqs_only_tape_source: reqs_only_tape_source.append(req_id) if req_id in reqs_no_source: reqs_no_source.remove(req_id) continue if ctx.is_tape_rse(dest_rse_id): overwrite = False transfer_dst_type = "TAPE" file_metadata = {'request_id': new_req_id, 'scope': scope, 'name': name, 'activity': transfers[req_id]['file_metadata']['activity'], 'request_type': RequestType.TRANSFER, 'src_type': transfer_src_type, 'dst_type': transfer_dst_type, 'src_rse': source_rse_name, 'dst_rse': dest_rse_name, 'src_rse_id': source_rse_id, 'dest_rse_id': dest_rse_id, 'filesize': transfers[req_id]['file_metadata']['filesize'], 'md5': transfers[req_id]['file_metadata']['md5'], 'adler32': transfers[req_id]['file_metadata']['adler32'], 'verify_checksum': transfers[req_id]['file_metadata']['verify_checksum'], 'source_globus_endpoint_id': transfers[req_id]['file_metadata']['source_globus_endpoint_id'], 'dest_globus_endpoint_id': transfers[req_id]['file_metadata']['dest_globus_endpoint_id']} transfers[new_req_id] = {'request_id': new_req_id, 'initial_request_id': req_id, 'parent_request': parent_request, 'account': InternalAccount('root'), 'schemes': __add_compatible_schemes(schemes=[dest_scheme], allowed_schemes=SUPPORTED_PROTOCOLS), # 'src_urls': [source_url], 'sources': [(source_rse_name, source_url, source_rse_id, 0, 0)], 'dest_urls': [dest_url], 'src_spacetoken': None, 'dest_spacetoken': dest_spacetoken, 'overwrite': transfers[req_id]['overwrite'], 'bring_online': bring_online, 'copy_pin_lifetime': transfers[req_id]['copy_pin_lifetime'], 'external_host': transfers[req_id]['external_host'], 'selection_strategy': 'auto', 'rule_id': transfers[req_id]['rule_id'], 'multihop': True, 'file_metadata': file_metadata} parent_request = new_req_id else: # For the last hop, we just need to correct the source transfers[req_id]['parent_request'] = parent_request transfers[req_id]['file_metadata']['src_rse_id'] = source_rse_id transfers[req_id]['file_metadata']['src_rse'] = source_rse_name # We make the assumption that the hop is never made through TAPE transfers[req_id]['file_metadata']['src_type'] = 'DISK' transfers[req_id]['sources'] = [(source_rse_name, source_url, source_rse_id, 0, 0)] transfers[req_id]['bring_online'] = bring_online if req_id in reqs_no_source: reqs_no_source.remove(req_id) if req_id in reqs_only_tape_source: reqs_only_tape_source.remove(req_id) if req_id in reqs_scheme_mismatch: reqs_scheme_mismatch.remove(req_id) return transfers, reqs_no_source, reqs_scheme_mismatch, reqs_only_tape_source @read_session def __list_transfer_requests_and_source_replicas(total_workers=0, worker_number=0, limit=None, activity=None, older_than=None, rses=None, request_state=None, transfertool=None, session=None) -> "List[Tuple]": """ List requests with source replicas :param total_workers: Number of total workers. :param worker_number: Id of the executing worker. :param limit: Integer of requests to retrieve. :param activity: Activity to be selected. :param older_than: Only select requests older than this DateTime. :param rses: List of rse_id to select requests. :param transfertool: The transfer tool as specified in rucio.cfg. :param session: Database session to use. :returns: List. """ if request_state is None: request_state = RequestState.QUEUED sub_requests = session.query(models.Request.id, models.Request.rule_id, models.Request.scope, models.Request.name, models.Request.md5, models.Request.adler32, models.Request.bytes, models.Request.activity, models.Request.attributes, models.Request.previous_attempt_id, models.Request.dest_rse_id, models.Request.retry_count, models.Request.account, models.Request.created_at) \ .with_hint(models.Request, "INDEX(REQUESTS REQUESTS_TYP_STA_UPD_IDX)", 'oracle') \ .filter(models.Request.state == request_state) \ .filter(models.Request.request_type == RequestType.TRANSFER) \ .join(models.RSE, models.RSE.id == models.Request.dest_rse_id) \ .filter(models.RSE.deleted == false()) \ .order_by(models.Request.created_at) \ .filter(models.RSE.availability.in_((2, 3, 6, 7))) if isinstance(older_than, datetime.datetime): sub_requests = sub_requests.filter(models.Request.requested_at < older_than) if activity: sub_requests = sub_requests.filter(models.Request.activity == activity) # if a transfertool is specified make sure to filter for those requests and apply related index if transfertool: sub_requests = sub_requests.filter(models.Request.transfertool == transfertool) sub_requests = sub_requests.with_hint(models.Request, "INDEX(REQUESTS REQUESTS_TYP_STA_TRA_ACT_IDX)", 'oracle') else: sub_requests = sub_requests.with_hint(models.Request, "INDEX(REQUESTS REQUESTS_TYP_STA_UPD_IDX)", 'oracle') sub_requests = filter_thread_work(session=session, query=sub_requests, total_threads=total_workers, thread_id=worker_number, hash_variable='requests.id') if limit: sub_requests = sub_requests.limit(limit) sub_requests = sub_requests.subquery() query = session.query(sub_requests.c.id, sub_requests.c.rule_id, sub_requests.c.scope, sub_requests.c.name, sub_requests.c.md5, sub_requests.c.adler32, sub_requests.c.bytes, sub_requests.c.activity, sub_requests.c.attributes, sub_requests.c.previous_attempt_id, sub_requests.c.dest_rse_id, sub_requests.c.account, models.RSEFileAssociation.rse_id, models.RSE.rse, models.RSE.deterministic, models.RSE.rse_type, models.RSEFileAssociation.path, sub_requests.c.retry_count, models.Source.url, models.Source.ranking.label("source_ranking"), models.Distance.ranking.label("distance_ranking")) \ .order_by(sub_requests.c.created_at) \ .outerjoin(models.RSEFileAssociation, and_(sub_requests.c.scope == models.RSEFileAssociation.scope, sub_requests.c.name == models.RSEFileAssociation.name, models.RSEFileAssociation.state == ReplicaState.AVAILABLE, sub_requests.c.dest_rse_id != models.RSEFileAssociation.rse_id)) \ .with_hint(models.RSEFileAssociation, "+ index(replicas REPLICAS_PK)", 'oracle') \ .outerjoin(models.RSE, and_(models.RSE.id == models.RSEFileAssociation.rse_id, models.RSE.deleted == false())) \ .outerjoin(models.Source, and_(sub_requests.c.id == models.Source.request_id, models.RSE.id == models.Source.rse_id)) \ .with_hint(models.Source, "+ index(sources SOURCES_PK)", 'oracle') \ .outerjoin(models.Distance, and_(sub_requests.c.dest_rse_id == models.Distance.dest_rse_id, models.RSEFileAssociation.rse_id == models.Distance.src_rse_id)) \ .with_hint(models.Distance, "+ index(distances DISTANCES_PK)", 'oracle') # if transfertool specified, select only the requests where the source rses are set up for the transfer tool if transfertool: query = query.subquery() query = session.query(query) \ .join(models.RSEAttrAssociation, models.RSEAttrAssociation.rse_id == query.c.rse_id) \ .filter(models.RSEAttrAssociation.key == 'transfertool', models.RSEAttrAssociation.value.like('%' + transfertool + '%')) if rses: result = [] for item in query.all(): dest_rse_id = item[10] if dest_rse_id in rses: result.append(item) return result return query.all() @transactional_session def __set_transfer_state(external_host, transfer_id, new_state, session=None): """ Update the state of a transfer. Fails silently if the transfer_id does not exist. :param external_host: Selected external host as string in format protocol://fqdn:port :param transfer_id: External transfer job id as a string. :param new_state: New state as string. :param session: Database session to use. """ record_counter('core.request.set_transfer_state') try: rowcount = session.query(models.Request).filter_by(external_id=transfer_id).update({'state': new_state, 'updated_at': datetime.datetime.utcnow()}, synchronize_session=False) except IntegrityError as error: raise RucioException(error.args) if not rowcount: raise UnsupportedOperation("Transfer %s on %s state %s cannot be updated." % (transfer_id, external_host, new_state)) @read_session def __get_unavailable_rse_ids(operation, session=None, logger=logging.log): """ :param logger: Optional decorated logger that can be passed from the calling daemons or servers. Get unavailable rse ids for a given operation : read, write, delete """ if operation not in ['read', 'write', 'delete']: logger(logging.ERROR, "Wrong operation specified : %s" % (operation)) return [] key = 'unavailable_%s_rse_ids' % operation result = REGION_SHORT.get(key) if isinstance(result, NoValue): try: logger(logging.DEBUG, "Refresh unavailable %s rses" % operation) availability_key = 'availability_%s' % operation unavailable_rses = list_rses(filters={availability_key: False}, session=session) unavailable_rse_ids = [rse['id'] for rse in unavailable_rses] REGION_SHORT.set(key, unavailable_rse_ids) return unavailable_rse_ids except Exception: logger(logging.ERROR, "Failed to refresh unavailable %s rses, error" % (operation), exc_info=True) return [] return result def __add_compatible_schemes(schemes, allowed_schemes): """ Add the compatible schemes to a list of schemes :param schemes: Schemes as input. :param allowed_schemes: Allowed schemes, only these can be in the output. :returns: List of schemes """ return_schemes = [] for scheme in schemes: if scheme in allowed_schemes: return_schemes.append(scheme) for scheme_map_scheme in constants.SCHEME_MAP.get(scheme, []): if scheme_map_scheme not in allowed_schemes: continue else: return_schemes.append(scheme_map_scheme) return list(set(return_schemes)) @transactional_session def __load_inbound_distances_node(rse_id, session=None): """ Loads the inbound edges of the distance graph for one node. :param rse_id: RSE id to load the edges for. :param session: The DB Session to use. :returns: Dictionary based graph object. """ result = REGION_SHORT.get('inbound_edges_%s' % str(rse_id)) if isinstance(result, NoValue): inbound_edges = {} for distance in session.query(models.Distance).join(models.RSE, models.RSE.id == models.Distance.src_rse_id) \ .filter(models.Distance.dest_rse_id == rse_id) \ .filter(models.RSE.deleted == false()).all(): if distance.ranking is None: continue ranking = distance.ranking if distance.ranking >= 0 else 0 inbound_edges[distance.src_rse_id] = ranking REGION_SHORT.set('inbound_edges_%s' % str(rse_id), inbound_edges) result = inbound_edges return result @transactional_session def __load_outgoing_distances_node(rse_id, session=None): """ Loads the outgoing edges of the distance graph for one node. :param rse_id: RSE id to load the edges for. :param session: The DB Session to use. :returns: Dictionary based graph object. """ result = REGION_SHORT.get('outgoing_edges_%s' % str(rse_id)) if isinstance(result, NoValue): outgoing_edges = {} for distance in session.query(models.Distance).join(models.RSE, models.RSE.id == models.Distance.dest_rse_id)\ .filter(models.Distance.src_rse_id == rse_id)\ .filter(models.RSE.deleted == false()).all(): if distance.ranking is None: continue ranking = distance.ranking if distance.ranking >= 0 else 0 outgoing_edges[distance.dest_rse_id] = ranking REGION_SHORT.set('outgoing_edges_%s' % str(rse_id), outgoing_edges) result = outgoing_edges return result @transactional_session def __load_rse_settings(rse_id, session=None): """ Loads the RSE settings from cache. :param rse_id: RSE id to load the settings from. :param session: The DB Session to use. :returns: Dict of RSE Settings """ result = REGION_SHORT.get('rse_settings_%s' % str(rse_id)) if isinstance(result, NoValue): result = rsemgr.get_rse_info(rse=get_rse_name(rse_id=rse_id, session=session), vo=get_rse_vo(rse_id=rse_id, session=session), session=session) REGION_SHORT.set('rse_settings_%s' % str(rse_id), result) return result
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29896, 29941, 29899, 29906, 29900, 29906, 29896, 315, 1001, 29940, 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, 1678, 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, 29937, 13189, 943, 29901, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29896, 29941, 29899, 29906, 29900, 29906, 29896, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29896, 29955, 29899, 29906, 29900, 29906, 29896, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29896, 29955, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29896, 29947, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29896, 29947, 29899, 29906, 29900, 29906, 29896, 13, 29937, 448, 270, 455, 574, 327, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29896, 29947, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29896, 29947, 29899, 29906, 29900, 29896, 29929, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29896, 29947, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29896, 29929, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29896, 29929, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29896, 29929, 29899, 29906, 29900, 29906, 29896, 13, 29937, 448, 529, 5813, 16299, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29896, 29929, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29896, 29929, 29899, 29906, 29900, 29906, 29900, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29906, 29900, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29906, 29900, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29906, 29900, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29906, 29900, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29906, 29900, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29906, 29896, 13, 29937, 448, 529, 5813, 29958, 3532, 26862, 6227, 6778, 29892, 29871, 29906, 29900, 29906, 29896, 13, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8542, 13, 13, 5215, 3509, 13, 5215, 12865, 13, 5215, 2411, 13, 5215, 4390, 13, 5215, 12183, 13, 5215, 337, 13, 5215, 931, 13, 3166, 19229, 1053, 323, 6959, 29918, 3210, 16658, 4214, 13, 13, 3166, 11203, 29886, 488, 29889, 8173, 1053, 1207, 29918, 12803, 13, 3166, 11203, 29886, 488, 29889, 8173, 29889, 2754, 1053, 1939, 1917, 13, 3166, 4576, 284, 305, 6764, 1053, 322, 29918, 13, 3166, 4576, 284, 305, 6764, 29889, 735, 29883, 1053, 17100, 537, 2392, 13, 3166, 4576, 284, 305, 6764, 29889, 2850, 29889, 17471, 1053, 2089, 13, 13, 3166, 5796, 3934, 29889, 9435, 1053, 17727, 13, 3166, 5796, 3934, 29889, 9435, 29889, 2917, 1053, 2295, 29918, 657, 13, 3166, 5796, 3934, 29889, 9435, 29889, 3075, 1934, 1053, 317, 4897, 15082, 3352, 29918, 8618, 4986, 3217, 8547, 29892, 383, 9375, 29918, 19713, 13, 3166, 5796, 3934, 29889, 9435, 29889, 11739, 1053, 313, 13919, 29934, 1660, 10960, 29892, 1939, 27469, 29892, 13, 462, 462, 1678, 10729, 17413, 29892, 390, 1660, 17830, 3664, 14039, 287, 29892, 13, 462, 462, 1678, 9723, 3934, 2451, 29892, 853, 23765, 10925, 29897, 13, 3166, 5796, 3934, 29889, 9435, 29889, 29878, 344, 29918, 15697, 1053, 679, 29918, 29878, 344, 29918, 15697, 13, 3166, 5796, 3934, 29889, 9435, 29889, 8768, 1053, 512, 1890, 10601, 13, 3166, 5796, 3934, 29889, 9435, 29889, 13239, 1053, 3386, 29918, 29879, 2271, 13, 3166, 5796, 3934, 29889, 3221, 1053, 1258, 29892, 2643, 408, 2643, 29918, 3221, 29892, 2009, 408, 2009, 29918, 3221, 13, 3166, 5796, 3934, 29889, 3221, 29889, 2917, 1053, 679, 408, 7136, 29918, 2917, 29918, 657, 13, 3166, 5796, 3934, 29889, 3221, 29889, 3712, 2105, 1053, 2407, 29918, 11808, 29892, 2407, 29918, 20404, 13, 3166, 5796, 3934, 29889, 3221, 29889, 3398, 29883, 1053, 679, 29918, 6979, 29918, 1454, 29918, 10149, 29918, 16453, 13, 3166, 5796, 3934, 29889, 3221, 29889, 3445, 10123, 1053, 788, 29918, 3445, 506, 294, 13, 3166, 5796, 3934, 29889, 3221, 29889, 3827, 1053, 9521, 29918, 24830, 29892, 731, 29918, 24830, 29918, 3859, 13, 3166, 5796, 3934, 29889, 3221, 29889, 29878, 344, 1053, 679, 29918, 29878, 344, 29918, 978, 29892, 679, 29918, 29878, 344, 29918, 1365, 29892, 1051, 29918, 2288, 267, 29892, 679, 29918, 29878, 344, 29918, 23765, 29918, 3198, 2083, 29879, 13, 3166, 5796, 3934, 29889, 3221, 29889, 29878, 344, 29918, 17471, 29918, 16680, 1053, 6088, 29918, 17471, 13, 3166, 5796, 3934, 29889, 2585, 29889, 3044, 433, 1053, 4733, 29892, 4175, 29918, 7097, 29918, 1287, 13, 3166, 5796, 3934, 29889, 2585, 29889, 3044, 433, 29889, 3075, 1934, 1053, 360, 1367, 1542, 29892, 10729, 2792, 29892, 390, 1660, 1542, 29892, 10729, 1542, 29892, 10088, 10123, 2792, 13, 3166, 5796, 3934, 29889, 2585, 29889, 3044, 433, 29889, 7924, 1053, 1303, 29918, 7924, 29892, 10804, 284, 29918, 7924, 13, 3166, 5796, 3934, 29889, 29878, 344, 1053, 20371, 11422, 1875, 408, 364, 12846, 629, 13, 3166, 5796, 3934, 29889, 3286, 571, 10154, 29889, 615, 29879, 29941, 1053, 383, 9375, 29941, 4300, 571, 10154, 13, 3166, 5796, 3934, 29889, 3286, 571, 10154, 29889, 17640, 1053, 26297, 4300, 571, 10154, 13, 13, 361, 323, 6959, 29918, 3210, 16658, 4214, 29901, 13, 1678, 515, 19229, 1053, 2391, 29892, 12603, 552, 13, 13, 29937, 7338, 336, 10585, 29901, 9333, 19673, 565, 3625, 13, 12194, 4717, 29918, 6720, 14849, 17101, 353, 11117, 23705, 375, 29918, 15348, 2396, 7700, 29913, 13, 13, 1454, 4805, 29918, 5453, 297, 8528, 29911, 4717, 29918, 6720, 14849, 17101, 29901, 13, 1678, 1018, 29901, 13, 4706, 2411, 29889, 2886, 29918, 5453, 29898, 17833, 29918, 5453, 29897, 13, 4706, 8528, 29911, 4717, 29918, 6720, 14849, 17101, 29961, 17833, 29918, 5453, 29962, 353, 5852, 13, 1678, 5174, 16032, 2392, 29901, 13, 4706, 8528, 29911, 4717, 29918, 6720, 14849, 17101, 29961, 17833, 29918, 5453, 29962, 353, 7700, 13, 13, 361, 8528, 29911, 4717, 29918, 6720, 14849, 17101, 1839, 23705, 375, 29918, 15348, 2033, 29901, 13, 1678, 515, 5796, 3934, 29889, 3286, 571, 10154, 29889, 23705, 375, 1053, 402, 2127, 375, 4300, 571, 12229, 29871, 396, 282, 2904, 524, 29901, 11262, 29922, 5215, 29899, 2704, 13, 13, 13, 15945, 29908, 13, 1576, 7136, 6782, 29889, 2272, 338, 10816, 363, 11415, 6782, 29899, 24830, 29892, 4550, 7274, 13, 3062, 278, 7029, 29918, 333, 338, 2307, 2998, 29889, 13, 3089, 29879, 20592, 491, 2009, 29918, 333, 29871, 526, 10664, 297, 278, 7136, 2009, 29889, 2272, 13, 15945, 29908, 13, 13, 18166, 2725, 29918, 7068, 8476, 353, 1207, 29918, 12803, 2141, 17591, 877, 26169, 29886, 488, 29889, 8173, 29889, 6954, 29883, 3791, 742, 13, 462, 462, 539, 1518, 12232, 29918, 2230, 29922, 29953, 29900, 29900, 29892, 13, 462, 462, 539, 6273, 3790, 29915, 2271, 2396, 2295, 29918, 657, 877, 8173, 742, 525, 2271, 742, 7700, 29892, 525, 29896, 29906, 29955, 29889, 29900, 29889, 29900, 29889, 29896, 29901, 29896, 29896, 29906, 29896, 29896, 5477, 525, 5721, 7541, 29918, 908, 2396, 5852, 1800, 13, 1964, 27998, 29918, 11889, 29918, 29949, 1367, 29907, 29918, 4986, 29968, 1430, 29903, 353, 2295, 29918, 657, 877, 535, 6950, 272, 742, 525, 9536, 29918, 1792, 29918, 3398, 29883, 29918, 517, 12360, 742, 7700, 29892, 7700, 29897, 13, 16244, 29918, 29949, 1367, 29907, 29918, 29903, 3217, 4162, 353, 2295, 29918, 657, 877, 535, 6950, 272, 742, 525, 3827, 29918, 3398, 29883, 29918, 6078, 742, 7700, 29892, 525, 615, 29879, 29901, 7892, 29899, 3286, 571, 1495, 13, 16244, 29918, 29949, 1367, 29907, 29918, 25951, 4571, 1430, 4741, 353, 2295, 29918, 657, 877, 535, 6950, 272, 742, 525, 3827, 29918, 3398, 29883, 29918, 28863, 663, 742, 7700, 29892, 525, 615, 29879, 29901, 4773, 1495, 13, 13, 8851, 29121, 7520, 29918, 26813, 20322, 1001, 29918, 20387, 353, 2295, 29918, 657, 877, 535, 6950, 272, 742, 525, 2676, 29881, 485, 29918, 3286, 571, 29918, 8513, 742, 7700, 29892, 6213, 29897, 13, 13, 13, 1753, 9752, 29918, 8645, 29895, 29918, 3286, 25534, 29898, 23176, 29918, 3069, 29892, 2066, 29892, 6782, 10154, 2433, 615, 29879, 29941, 742, 4982, 29918, 7529, 3790, 1118, 11815, 29922, 8516, 29892, 1404, 29918, 3286, 571, 29918, 9057, 29922, 8824, 29892, 17927, 29922, 21027, 29889, 1188, 1125, 13, 1678, 9995, 13, 1678, 3323, 2415, 6782, 2009, 304, 263, 6782, 10154, 29889, 13, 1678, 584, 3207, 7029, 29918, 3069, 29901, 29871, 3985, 3495, 1024, 408, 1347, 13, 1678, 584, 3207, 2066, 29901, 3986, 2391, 310, 13343, 6943, 2009, 934, 29889, 13, 1678, 584, 3207, 6782, 10154, 29901, 259, 17934, 10154, 408, 263, 1347, 29889, 13, 1678, 584, 3207, 4982, 29918, 7529, 29901, 268, 4737, 7221, 1820, 29914, 1767, 11000, 363, 599, 2066, 408, 263, 8600, 29889, 13, 1678, 584, 3207, 17927, 29901, 308, 28379, 10200, 630, 17927, 393, 508, 367, 4502, 515, 278, 5432, 1146, 331, 787, 470, 12424, 29889, 13, 1678, 584, 18280, 29901, 795, 17934, 10154, 7029, 3553, 29889, 13, 1678, 9995, 13, 13, 1678, 2407, 29918, 11808, 877, 3221, 29889, 3827, 29889, 7892, 29918, 3286, 571, 1495, 13, 13, 1678, 6782, 29918, 333, 353, 6213, 13, 13, 1678, 565, 6782, 10154, 1275, 525, 615, 29879, 29941, 2396, 13, 4706, 1369, 29918, 2230, 353, 931, 29889, 2230, 580, 13, 4706, 4982, 29918, 5325, 353, 5159, 13, 4706, 363, 934, 297, 2066, 29901, 13, 9651, 4982, 29918, 1445, 353, 6571, 13, 9651, 363, 1820, 297, 934, 29901, 13, 18884, 565, 1820, 1275, 525, 29879, 2863, 2396, 13, 462, 1678, 396, 3588, 8974, 515, 313, 4351, 29918, 29878, 344, 29892, 3142, 29892, 4765, 29918, 29878, 344, 29918, 333, 29892, 7115, 29897, 304, 3142, 13, 462, 1678, 4982, 29918, 1445, 29961, 1989, 29962, 353, 5159, 13, 462, 1678, 363, 2752, 297, 934, 29961, 1989, 5387, 13, 462, 4706, 4982, 29918, 1445, 29961, 1989, 1822, 4397, 29898, 4993, 29961, 29896, 2314, 13, 18884, 1683, 29901, 13, 462, 1678, 4982, 29918, 1445, 29961, 1989, 29962, 353, 934, 29961, 1989, 29962, 13, 9651, 4982, 29918, 5325, 29889, 4397, 29898, 9057, 29918, 1445, 29897, 13, 13, 4706, 396, 2805, 5235, 1048, 3633, 322, 438, 1367, 29907, 2304, 310, 278, 390, 1660, 29879, 13, 4706, 671, 29918, 3398, 29883, 353, 4982, 29918, 7529, 29889, 657, 877, 1509, 29918, 3398, 29883, 742, 7700, 29897, 13, 4706, 6782, 29918, 6979, 353, 6213, 13, 4706, 565, 671, 29918, 3398, 29883, 29901, 13, 9651, 17927, 29898, 21027, 29889, 18525, 29892, 525, 29949, 6444, 29906, 29914, 29949, 1367, 29907, 3625, 472, 390, 1660, 29879, 1495, 13, 9651, 3633, 353, 4982, 29918, 7529, 29889, 657, 877, 10149, 742, 6213, 29897, 13, 9651, 679, 6406, 6979, 353, 7700, 13, 9651, 565, 15149, 9806, 29918, 11889, 29918, 29949, 1367, 29907, 29918, 4986, 29968, 1430, 29903, 338, 7700, 29901, 13, 18884, 679, 6406, 6979, 353, 5852, 13, 9651, 17927, 29898, 21027, 29889, 18525, 29892, 525, 4165, 3456, 292, 304, 679, 263, 5993, 363, 3633, 1273, 29879, 29889, 10229, 5993, 2984, 731, 304, 1273, 29879, 29915, 1273, 313, 10149, 29892, 679, 6406, 6979, 876, 13, 9651, 396, 1284, 278, 8210, 438, 1367, 29907, 5993, 322, 14523, 372, 313, 1454, 1404, 15303, 29897, 565, 5181, 13, 9651, 5993, 29918, 8977, 353, 679, 29918, 6979, 29918, 1454, 29918, 10149, 29918, 16453, 29898, 10149, 29892, 12428, 29918, 28863, 663, 29922, 16244, 29918, 29949, 1367, 29907, 29918, 25951, 4571, 1430, 4741, 29892, 12428, 29918, 6078, 29922, 16244, 29918, 29949, 1367, 29907, 29918, 29903, 3217, 4162, 29892, 4113, 29922, 657, 6406, 6979, 29897, 13, 9651, 565, 5993, 29918, 8977, 338, 451, 6213, 29901, 13, 18884, 17927, 29898, 21027, 29889, 18525, 29892, 525, 6638, 5993, 756, 1063, 16896, 29889, 1495, 13, 18884, 565, 525, 6979, 29915, 297, 5993, 29918, 8977, 29901, 13, 462, 1678, 17927, 29898, 21027, 29889, 18525, 29892, 525, 6638, 5993, 1304, 408, 6782, 5993, 29889, 1495, 13, 462, 1678, 6782, 29918, 6979, 353, 5993, 29918, 8977, 1839, 6979, 2033, 13, 4706, 6782, 29918, 333, 353, 383, 9375, 29941, 4300, 571, 10154, 29898, 23176, 29918, 3069, 29922, 23176, 29918, 3069, 29892, 5993, 29922, 3286, 571, 29918, 6979, 467, 7892, 29898, 5325, 29922, 9057, 29918, 5325, 29892, 4982, 29918, 7529, 29922, 9057, 29918, 7529, 29892, 11815, 29922, 15619, 29897, 13, 4706, 2407, 29918, 20404, 877, 3221, 29889, 3827, 29889, 7892, 29918, 3286, 25534, 29918, 615, 29879, 29941, 742, 313, 2230, 29889, 2230, 580, 448, 1369, 29918, 2230, 29897, 334, 29871, 29896, 29900, 29900, 29900, 847, 7431, 29898, 5325, 876, 13, 1678, 25342, 6782, 10154, 1275, 525, 23705, 375, 2396, 13, 4706, 17927, 29898, 21027, 29889, 18525, 29892, 525, 856, 23748, 13149, 375, 921, 571, 2023, 1495, 13, 4706, 4982, 29918, 5325, 353, 5159, 13, 4706, 363, 934, 297, 2066, 29901, 13, 9651, 4982, 29918, 1445, 353, 6571, 13, 9651, 363, 1820, 297, 934, 29901, 13, 18884, 565, 1820, 1275, 525, 29879, 2863, 2396, 13, 462, 1678, 396, 3588, 8974, 515, 313, 4351, 29918, 29878, 344, 29892, 3142, 29892, 4765, 29918, 29878, 344, 29918, 333, 29892, 7115, 29897, 304, 3142, 13, 462, 1678, 4982, 29918, 1445, 29961, 1989, 29962, 353, 5159, 13, 462, 1678, 363, 2752, 297, 934, 29961, 1989, 5387, 13, 462, 4706, 4982, 29918, 1445, 29961, 1989, 1822, 4397, 29898, 4993, 29961, 29896, 2314, 13, 18884, 1683, 29901, 13, 462, 1678, 4982, 29918, 1445, 29961, 1989, 29962, 353, 934, 29961, 1989, 29962, 13, 9651, 4982, 29918, 5325, 29889, 4397, 29898, 9057, 29918, 1445, 29897, 13, 4706, 17927, 29898, 21027, 29889, 18525, 29892, 525, 9057, 29918, 5325, 29901, 1273, 29879, 29915, 1273, 4982, 29918, 5325, 29897, 13, 4706, 6782, 29918, 333, 353, 402, 2127, 375, 4300, 571, 12229, 29898, 23176, 29918, 3069, 29922, 8516, 467, 8645, 29895, 29918, 7892, 29898, 7892, 9057, 29922, 9057, 29918, 5325, 29892, 11815, 29922, 15619, 29897, 13, 1678, 25342, 6782, 10154, 1275, 525, 17640, 2396, 13, 4706, 6782, 29918, 333, 353, 26297, 4300, 571, 10154, 29898, 23176, 29918, 3069, 29922, 8516, 467, 7892, 29898, 5325, 29892, 6213, 29897, 13, 1678, 736, 6782, 29918, 333, 13, 13, 13, 29992, 20736, 284, 29918, 7924, 13, 1753, 19012, 29918, 29879, 2863, 29918, 1454, 29918, 3286, 25534, 29898, 3286, 25534, 29892, 4867, 29922, 8516, 1125, 13, 1678, 9995, 13, 1678, 349, 3445, 598, 278, 8974, 363, 1301, 25534, 29889, 13, 1678, 584, 3207, 1301, 25534, 29901, 29871, 13343, 6943, 2009, 6782, 5235, 29889, 13, 1678, 584, 3207, 4867, 29901, 1678, 5470, 4867, 304, 671, 29889, 13, 1678, 9995, 13, 13, 1678, 1018, 29901, 13, 4706, 363, 2009, 29918, 333, 297, 1301, 25534, 29901, 13, 9651, 1948, 2798, 353, 4867, 29889, 1972, 29898, 9794, 29889, 3089, 2144, 13, 462, 795, 869, 4572, 29918, 1609, 29898, 333, 29922, 3827, 29918, 333, 2144, 13, 462, 795, 869, 4572, 29898, 9794, 29889, 3089, 29889, 3859, 1275, 10729, 2792, 29889, 11144, 29965, 3352, 2144, 13, 462, 795, 869, 5504, 3319, 29915, 3859, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 3859, 7464, 13, 462, 462, 539, 525, 23176, 29918, 333, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 23176, 29918, 333, 7464, 13, 462, 462, 539, 525, 23176, 29918, 3069, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 23176, 29918, 3069, 7464, 13, 462, 462, 539, 525, 7854, 29918, 2271, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 7854, 29918, 2271, 7464, 13, 462, 462, 539, 525, 1491, 29885, 4430, 29918, 271, 2396, 12865, 29889, 12673, 29889, 329, 29883, 3707, 580, 1118, 13, 462, 462, 418, 12231, 675, 29918, 7924, 29922, 8824, 29897, 13, 9651, 565, 1948, 2798, 1275, 29871, 29900, 29901, 13, 18884, 12020, 10729, 17413, 703, 17776, 304, 19012, 6782, 29901, 2009, 1273, 29879, 947, 451, 1863, 470, 338, 451, 297, 712, 6742, 2106, 29908, 1273, 313, 3827, 29918, 333, 876, 13, 13, 9651, 565, 525, 1445, 29915, 297, 1301, 25534, 29961, 3827, 29918, 333, 5387, 13, 18884, 934, 353, 1301, 25534, 29961, 3827, 29918, 333, 22322, 1445, 2033, 13, 18884, 363, 4765, 29918, 29878, 344, 29892, 4765, 29918, 2271, 29892, 4765, 29918, 29878, 344, 29918, 333, 29892, 7115, 297, 934, 1839, 29879, 2863, 2033, 29901, 13, 462, 1678, 4765, 29918, 798, 2798, 353, 4867, 29889, 1972, 29898, 9794, 29889, 4435, 2144, 13, 462, 462, 3986, 869, 4572, 29918, 1609, 29898, 3827, 29918, 333, 29922, 3827, 29918, 333, 2144, 13, 462, 462, 3986, 869, 4572, 29898, 9794, 29889, 4435, 29889, 29878, 344, 29918, 333, 1275, 4765, 29918, 29878, 344, 29918, 333, 2144, 13, 462, 462, 3986, 869, 5504, 3319, 29915, 275, 29918, 4746, 2396, 5852, 1118, 12231, 675, 29918, 7924, 29922, 8824, 29897, 13, 462, 1678, 565, 4765, 29918, 798, 2798, 1275, 29871, 29900, 29901, 13, 462, 4706, 4733, 29889, 4435, 29898, 3827, 29918, 333, 29922, 1445, 1839, 19635, 16215, 3827, 29918, 333, 7464, 13, 462, 462, 418, 6874, 29922, 1445, 1839, 19635, 16215, 6078, 7464, 13, 462, 462, 418, 1024, 29922, 1445, 1839, 19635, 16215, 978, 7464, 13, 462, 462, 418, 364, 344, 29918, 333, 29922, 4351, 29918, 29878, 344, 29918, 333, 29892, 13, 462, 462, 418, 2731, 29918, 29878, 344, 29918, 333, 29922, 1445, 1839, 19635, 16215, 7854, 29918, 29878, 344, 29918, 333, 7464, 13, 462, 462, 418, 24034, 29922, 10003, 565, 7115, 1683, 29871, 29900, 29892, 13, 462, 462, 418, 6262, 29922, 1445, 1839, 19635, 16215, 5325, 675, 7464, 13, 462, 462, 418, 3142, 29922, 4351, 29918, 2271, 29892, 13, 462, 462, 418, 338, 29918, 4746, 29922, 5574, 467, 29905, 13, 462, 9651, 4078, 29898, 7924, 29922, 7924, 29892, 28371, 29922, 8824, 29897, 13, 13, 1678, 5174, 17100, 537, 2392, 408, 1059, 29901, 13, 4706, 12020, 9723, 3934, 2451, 29898, 2704, 29889, 5085, 29897, 13, 13, 13, 29992, 20736, 284, 29918, 7924, 13, 1753, 731, 29918, 3286, 25534, 29918, 3859, 29898, 3286, 25534, 29892, 18397, 29918, 271, 29892, 4867, 29922, 8516, 1125, 13, 1678, 9995, 13, 1678, 10318, 278, 6782, 5235, 310, 263, 2009, 29889, 13, 1678, 584, 3207, 1301, 25534, 29901, 29871, 13343, 6943, 2009, 6782, 5235, 29889, 13, 1678, 584, 3207, 4867, 29901, 1678, 5470, 4867, 304, 671, 29889, 13, 1678, 9995, 13, 13, 1678, 1018, 29901, 13, 4706, 363, 2009, 29918, 333, 297, 1301, 25534, 29901, 13, 9651, 1948, 2798, 353, 4867, 29889, 1972, 29898, 9794, 29889, 3089, 2144, 13, 462, 795, 869, 4572, 29918, 1609, 29898, 333, 29922, 3827, 29918, 333, 2144, 13, 462, 795, 869, 4572, 29898, 9794, 29889, 3089, 29889, 3859, 1275, 10729, 2792, 29889, 20633, 26349, 29911, 4214, 2144, 13, 462, 795, 869, 5504, 3319, 29915, 3859, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 3859, 7464, 13, 462, 462, 539, 525, 23176, 29918, 333, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 23176, 29918, 333, 7464, 13, 462, 462, 539, 525, 23176, 29918, 3069, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 23176, 29918, 3069, 7464, 13, 462, 462, 539, 525, 4993, 29918, 29878, 344, 29918, 333, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 4351, 29918, 29878, 344, 29918, 333, 7464, 13, 462, 462, 539, 525, 1491, 29885, 4430, 29918, 271, 2396, 18397, 29918, 271, 1118, 13, 462, 462, 418, 12231, 675, 29918, 7924, 29922, 8824, 29897, 13, 9651, 565, 1948, 2798, 1275, 29871, 29900, 29901, 13, 18884, 12020, 9723, 3934, 2451, 703, 17776, 304, 731, 7274, 1273, 29879, 260, 550, 571, 1273, 29879, 29901, 2009, 1838, 29915, 29873, 1863, 470, 338, 451, 297, 27092, 26349, 29911, 4214, 2106, 29908, 1273, 313, 3827, 29918, 333, 29892, 1301, 25534, 29961, 3827, 29918, 333, 12622, 13, 13, 9651, 2009, 29918, 1853, 353, 1301, 25534, 29961, 3827, 29918, 333, 1822, 657, 877, 3827, 29918, 1853, 742, 6213, 29897, 13, 13, 9651, 10191, 353, 11117, 3827, 29899, 333, 2396, 2009, 29918, 333, 29892, 13, 462, 259, 525, 3827, 29899, 1853, 2396, 2009, 29918, 1853, 29892, 13, 462, 259, 525, 6078, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 6078, 13359, 23176, 29892, 13, 462, 259, 525, 978, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 978, 7464, 13, 462, 259, 525, 4351, 29899, 29878, 344, 29899, 333, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 19635, 13359, 657, 877, 4351, 29918, 29878, 344, 29918, 333, 742, 6213, 511, 13, 462, 259, 525, 4351, 29899, 29878, 344, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 19635, 13359, 657, 877, 4351, 29918, 29878, 344, 742, 6213, 511, 13, 462, 259, 525, 22992, 29899, 29878, 344, 29899, 333, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 19635, 13359, 657, 877, 22992, 29918, 29878, 344, 29918, 333, 742, 6213, 511, 13, 462, 259, 525, 22992, 29899, 29878, 344, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 19635, 13359, 657, 877, 22992, 29918, 29878, 344, 742, 6213, 511, 13, 462, 259, 525, 3859, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 3859, 7464, 13, 462, 259, 525, 10072, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 19635, 13359, 657, 877, 10072, 742, 6213, 511, 13, 462, 259, 525, 1445, 29899, 2311, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 19635, 13359, 657, 877, 5325, 675, 742, 6213, 511, 13, 462, 259, 525, 13193, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 19635, 13359, 657, 877, 5325, 675, 742, 6213, 511, 13, 462, 259, 525, 3198, 2083, 29899, 3487, 29945, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 19635, 13359, 657, 877, 3487, 29945, 742, 6213, 511, 13, 462, 259, 525, 3198, 2083, 29899, 328, 1358, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 19635, 13359, 657, 877, 328, 1358, 29941, 29906, 742, 6213, 511, 13, 462, 259, 525, 23176, 29899, 333, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 23176, 29918, 333, 7464, 13, 462, 259, 525, 23176, 29899, 3069, 2396, 1301, 25534, 29961, 3827, 29918, 333, 22322, 23176, 29918, 3069, 7464, 13, 462, 259, 525, 802, 6742, 29918, 271, 2396, 851, 29898, 1491, 29885, 4430, 29918, 271, 2915, 13, 9651, 565, 1301, 25534, 29961, 3827, 29918, 333, 22322, 6078, 13359, 1365, 2804, 525, 1753, 2396, 13, 18884, 10191, 1839, 1365, 2033, 353, 1301, 25534, 29961, 3827, 29918, 333, 22322, 6078, 13359, 1365, 13, 13, 9651, 565, 10191, 1839, 3827, 29899, 1853, 2033, 29901, 13, 18884, 6782, 29918, 4882, 353, 14210, 29879, 19222, 29879, 29915, 1273, 313, 7645, 1839, 3827, 29899, 1853, 13359, 978, 29892, 10191, 1839, 3859, 13359, 978, 29897, 13, 9651, 1683, 29901, 13, 18884, 6782, 29918, 4882, 353, 525, 3286, 571, 19222, 29879, 29915, 1273, 10191, 1839, 3859, 2033, 13, 9651, 6782, 29918, 4882, 353, 6782, 29918, 4882, 29889, 13609, 580, 13, 13, 9651, 2643, 29918, 3221, 29889, 1202, 29918, 4906, 29898, 3286, 571, 29918, 4882, 29892, 10191, 29892, 4867, 29922, 7924, 29897, 13, 13, 1678, 5174, 17100, 537, 2392, 408, 1059, 29901, 13, 4706, 12020, 9723, 3934, 2451, 29898, 2704, 29889, 5085, 29897, 13, 13, 13, 1753, 21610, 29918, 1972, 29918, 3286, 25534, 29898, 3827, 29918, 3069, 29892, 6782, 29918, 4841, 29892, 6782, 10154, 2433, 615, 29879, 29941, 742, 11815, 29922, 8516, 29892, 17927, 29922, 21027, 29889, 1188, 1125, 13, 1678, 9995, 13, 1678, 13641, 278, 4660, 310, 263, 6782, 29889, 13, 1678, 584, 3207, 2009, 29918, 3069, 29901, 29871, 4408, 310, 278, 7029, 3495, 29889, 13, 1678, 584, 3207, 6782, 29918, 4841, 29901, 29871, 2391, 310, 313, 25865, 29899, 1367, 408, 263, 29871, 29941, 29906, 2931, 15090, 1347, 29897, 13, 1678, 584, 3207, 6782, 10154, 29901, 29871, 17934, 10154, 1024, 408, 263, 1347, 29889, 13, 1678, 584, 3207, 17927, 29901, 4706, 28379, 10200, 630, 17927, 393, 508, 367, 4502, 515, 278, 5432, 1146, 331, 787, 470, 12424, 29889, 13, 1678, 584, 18280, 29901, 632, 10729, 4660, 2472, 408, 263, 8600, 29889, 13, 1678, 9995, 13, 13, 1678, 2407, 29918, 11808, 877, 3221, 29889, 3827, 29889, 8645, 29895, 29918, 1972, 29918, 3286, 25534, 1495, 13, 13, 1678, 565, 6782, 10154, 1275, 525, 615, 29879, 29941, 2396, 13, 4706, 1018, 29901, 13, 9651, 1369, 29918, 2230, 353, 931, 29889, 2230, 580, 13, 9651, 285, 1372, 29918, 690, 567, 353, 383, 9375, 29941, 4300, 571, 10154, 29898, 23176, 29918, 3069, 29922, 3827, 29918, 3069, 467, 8645, 29895, 29918, 1972, 29898, 3286, 571, 29918, 4841, 29922, 3286, 571, 29918, 4841, 29892, 11815, 29922, 15619, 29897, 13, 9651, 2407, 29918, 20404, 877, 3221, 29889, 3827, 29889, 8645, 29895, 29918, 1972, 29918, 3286, 25534, 742, 313, 2230, 29889, 2230, 580, 448, 1369, 29918, 2230, 29897, 334, 29871, 29896, 29900, 29900, 29900, 847, 7431, 29898, 3286, 571, 29918, 4841, 876, 13, 4706, 5174, 8960, 29901, 13, 9651, 12020, 13, 13, 4706, 363, 6782, 29918, 333, 297, 6782, 29918, 4841, 29901, 13, 9651, 565, 6782, 29918, 333, 451, 297, 285, 1372, 29918, 690, 567, 29901, 13, 18884, 285, 1372, 29918, 690, 567, 29961, 3286, 571, 29918, 333, 29962, 353, 8960, 703, 4300, 571, 1178, 1273, 29879, 338, 451, 4133, 29908, 1273, 6782, 29918, 333, 29897, 13, 9651, 565, 285, 1372, 29918, 690, 567, 29961, 3286, 571, 29918, 333, 29962, 322, 451, 338, 8758, 29898, 615, 29879, 29918, 690, 567, 29961, 3286, 571, 29918, 333, 1402, 8960, 1125, 13, 18884, 363, 2009, 29918, 333, 297, 285, 1372, 29918, 690, 567, 29961, 3286, 571, 29918, 333, 5387, 13, 462, 1678, 565, 285, 1372, 29918, 690, 567, 29961, 3286, 571, 29918, 333, 3816, 3827, 29918, 333, 22322, 1445, 29918, 3859, 2033, 297, 313, 7818, 29903, 29918, 19713, 29889, 4519, 29902, 20566, 29892, 13, 462, 462, 462, 462, 9651, 383, 9375, 29918, 19713, 29889, 29943, 1177, 3235, 29950, 3352, 9464, 15631, 29892, 13, 462, 462, 462, 462, 9651, 383, 9375, 29918, 19713, 29889, 29907, 23219, 20566, 1125, 13, 462, 4706, 285, 1372, 29918, 690, 567, 29961, 3286, 571, 29918, 333, 3816, 3827, 29918, 333, 22322, 1482, 29918, 3859, 2033, 353, 10729, 2792, 29889, 4519, 29902, 20566, 13, 462, 1678, 25342, 285, 1372, 29918, 690, 567, 29961, 3286, 571, 29918, 333, 3816, 3827, 29918, 333, 22322, 1445, 29918, 3859, 2033, 297, 383, 9375, 29918, 19713, 29889, 29943, 1177, 3235, 29950, 3352, 29901, 13, 462, 4706, 285, 1372, 29918, 690, 567, 29961, 3286, 571, 29918, 333, 3816, 3827, 29918, 333, 22322, 1482, 29918, 3859, 2033, 353, 10729, 2792, 29889, 29928, 12413, 13, 4706, 736, 285, 1372, 29918, 690, 567, 13, 1678, 25342, 6782, 10154, 1275, 525, 23705, 375, 2396, 13, 4706, 1018, 29901, 13, 9651, 1369, 29918, 2230, 353, 931, 29889, 2230, 580, 13, 9651, 17927, 29898, 21027, 29889, 18525, 29892, 525, 3286, 571, 29918, 4841, 29901, 1273, 29879, 29915, 1273, 6782, 29918, 4841, 29897, 13, 9651, 20890, 353, 402, 2127, 375, 4300, 571, 12229, 29898, 23176, 29918, 3069, 29922, 8516, 467, 8645, 29895, 29918, 1972, 29898, 3286, 571, 29918, 4841, 29922, 3286, 571, 29918, 4841, 29892, 11815, 29922, 15619, 29897, 13, 9651, 2407, 29918, 20404, 877, 3221, 29889, 3827, 29889, 8645, 29895, 29918, 1972, 29918, 3286, 25534, 742, 313, 2230, 29889, 2230, 580, 448, 1369, 29918, 2230, 29897, 334, 29871, 29896, 29900, 29900, 29900, 847, 7431, 29898, 3286, 571, 29918, 4841, 876, 13, 4706, 5174, 8960, 29901, 13, 9651, 12020, 13, 13, 4706, 363, 413, 29892, 325, 297, 20890, 29889, 7076, 7295, 13, 9651, 565, 325, 1275, 525, 4519, 29902, 20566, 2396, 13, 18884, 20890, 29961, 29895, 29962, 353, 10729, 2792, 29889, 4519, 29902, 20566, 13, 9651, 25342, 325, 1275, 525, 14605, 4174, 17896, 2287, 29928, 2396, 13, 18884, 20890, 29961, 29895, 29962, 353, 10729, 2792, 29889, 29928, 12413, 13, 9651, 1683, 29901, 13, 18884, 20890, 29961, 29895, 29962, 353, 10729, 2792, 29889, 20633, 26349, 29911, 3352, 13, 4706, 736, 20890, 13, 1678, 1683, 29901, 13, 4706, 12020, 2216, 1888, 2037, 287, 2392, 13, 13, 1678, 736, 6213, 13, 13, 13, 29992, 20736, 284, 29918, 7924, 13, 1753, 731, 29918, 3286, 571, 29918, 5504, 29918, 2230, 29898, 23176, 29918, 3069, 29892, 6782, 29918, 333, 29892, 2767, 29918, 2230, 29922, 12673, 29889, 12673, 29889, 329, 29883, 3707, 3285, 4867, 29922, 8516, 1125, 13, 1678, 9995, 13, 1678, 10318, 278, 2106, 310, 263, 2009, 29889, 383, 2234, 4047, 2705, 565, 278, 6782, 29918, 333, 947, 451, 1863, 29889, 13, 1678, 584, 3207, 7029, 29918, 3069, 29901, 29871, 22012, 7029, 3495, 408, 1347, 297, 3402, 9608, 597, 29888, 29939, 5200, 29901, 637, 13, 1678, 584, 3207, 6782, 29918, 333, 29901, 1678, 3985, 6782, 4982, 1178, 408, 263, 1347, 29889, 13, 1678, 584, 3207, 2767, 29918, 2230, 29901, 1678, 5974, 25214, 29889, 13, 1678, 584, 3207, 4867, 29901, 4706, 5470, 4867, 304, 671, 29889, 13, 1678, 9995, 13, 13, 1678, 2407, 29918, 11808, 877, 3221, 29889, 3827, 29889, 842, 29918, 3286, 571, 29918, 5504, 29918, 2230, 1495, 13, 13, 1678, 1018, 29901, 13, 4706, 1948, 2798, 353, 4867, 29889, 1972, 29898, 9794, 29889, 3089, 467, 4572, 29918, 1609, 29898, 23176, 29918, 333, 29922, 3286, 571, 29918, 333, 29892, 2106, 29922, 3089, 2792, 29889, 20633, 26349, 29911, 3352, 467, 5504, 3319, 29915, 21402, 29918, 271, 2396, 2767, 29918, 2230, 1118, 12231, 675, 29918, 7924, 29922, 8824, 29897, 13, 1678, 5174, 17100, 537, 2392, 408, 1059, 29901, 13, 4706, 12020, 9723, 3934, 2451, 29898, 2704, 29889, 5085, 29897, 13, 13, 1678, 565, 451, 1948, 2798, 29901, 13, 4706, 12020, 853, 23765, 10925, 703, 4300, 571, 1273, 29879, 1838, 29915, 29873, 1863, 470, 967, 4660, 338, 451, 18397, 1213, 1273, 313, 3286, 571, 29918, 333, 876, 13, 13, 13, 1753, 2346, 29918, 12333, 29898, 23176, 29918, 3069, 29892, 2106, 29892, 1833, 29918, 29876, 29882, 2470, 29922, 29896, 29892, 17927, 29922, 21027, 29889, 1188, 1125, 13, 1678, 9995, 13, 1678, 13641, 278, 9281, 1301, 25534, 297, 1833, 302, 6199, 411, 2106, 29889, 13, 1678, 584, 3207, 7029, 29918, 3069, 29901, 29871, 383, 9375, 3495, 1024, 408, 263, 1347, 29889, 13, 1678, 584, 3207, 2106, 29901, 3986, 383, 9375, 4982, 2106, 408, 263, 1347, 470, 263, 8600, 29889, 13, 1678, 584, 3207, 1833, 29918, 29876, 29882, 2470, 29901, 1678, 7053, 342, 302, 6199, 408, 385, 6043, 29889, 13, 1678, 584, 3207, 17927, 29901, 308, 28379, 10200, 630, 17927, 393, 508, 367, 4502, 515, 278, 5432, 1146, 331, 787, 470, 12424, 29889, 13, 1678, 584, 18280, 29901, 795, 10729, 29879, 4660, 2472, 408, 263, 8600, 29889, 13, 1678, 9995, 13, 13, 1678, 2407, 29918, 11808, 877, 3221, 29889, 3827, 29889, 1972, 29918, 12333, 1495, 13, 13, 1678, 1369, 29918, 2230, 353, 931, 29889, 2230, 580, 13, 1678, 620, 567, 353, 383, 9375, 29941, 4300, 571, 10154, 29898, 23176, 29918, 3069, 29922, 23176, 29918, 3069, 467, 1972, 29918, 12333, 29898, 3859, 29922, 3859, 29892, 1833, 29918, 29876, 29882, 2470, 29922, 4230, 29918, 29876, 29882, 2470, 29897, 13, 1678, 2407, 29918, 20404, 877, 3221, 29889, 3827, 29889, 1972, 29918, 12333, 29918, 615, 29879, 29941, 29889, 29995, 29879, 29889, 29995, 29879, 29918, 29882, 2470, 29915, 1273, 313, 23176, 29918, 3069, 29892, 1833, 29918, 29876, 29882, 2470, 511, 313, 2230, 29889, 2230, 580, 448, 1369, 29918, 2230, 29897, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 13, 1678, 565, 451, 620, 567, 29901, 13, 4706, 736, 13, 13, 1678, 3240, 29918, 690, 567, 353, 5159, 13, 1678, 363, 4613, 297, 620, 567, 29901, 13, 4706, 565, 525, 9057, 29918, 19635, 29915, 451, 297, 4613, 470, 4613, 1839, 9057, 29918, 19635, 2033, 338, 6213, 470, 525, 790, 2853, 29915, 451, 297, 4613, 1839, 9057, 29918, 19635, 2033, 470, 4613, 1839, 9057, 29918, 19635, 16215, 790, 2853, 2033, 2804, 525, 582, 3934, 2396, 13, 9651, 6773, 13, 13, 4706, 565, 525, 3827, 29918, 333, 29915, 451, 297, 4613, 1839, 9057, 29918, 19635, 2033, 29901, 13, 9651, 396, 18397, 491, 716, 9752, 357, 13, 9651, 1018, 29901, 13, 18884, 17927, 29898, 21027, 29889, 18525, 29892, 376, 4300, 571, 1273, 29879, 373, 1273, 29879, 338, 1273, 29879, 29892, 23806, 967, 4784, 29918, 271, 1213, 1273, 313, 13713, 1839, 9057, 29918, 333, 7464, 7029, 29918, 3069, 29892, 4613, 1839, 9057, 29918, 3859, 25901, 13, 18884, 731, 29918, 3286, 571, 29918, 5504, 29918, 2230, 29898, 23176, 29918, 3069, 29892, 4613, 1839, 9057, 29918, 333, 7464, 12865, 29889, 12673, 29889, 329, 29883, 3707, 580, 448, 12865, 29889, 9346, 287, 2554, 29898, 29882, 2470, 29922, 29906, 29946, 876, 13, 9651, 5174, 8960, 408, 1059, 29901, 13, 18884, 17927, 29898, 21027, 29889, 18525, 29892, 376, 2451, 9559, 746, 13271, 6782, 3329, 271, 5410, 29901, 1273, 29879, 29908, 1273, 851, 29898, 2704, 467, 6506, 28909, 29876, 742, 6629, 876, 13, 13, 1678, 736, 3240, 29918, 690, 567, 13, 13, 13, 29992, 20736, 284, 29918, 7924, 13, 1753, 6023, 29918, 3286, 571, 29898, 23176, 29918, 3069, 29892, 6782, 29918, 333, 29892, 4867, 29922, 8516, 1125, 13, 1678, 9995, 13, 1678, 10318, 278, 14334, 310, 7274, 297, 263, 6782, 29889, 383, 2234, 4047, 2705, 565, 278, 6782, 29918, 333, 947, 451, 1863, 29889, 13, 1678, 584, 3207, 2009, 29918, 3069, 29901, 259, 4408, 310, 278, 7029, 3495, 29889, 13, 1678, 584, 3207, 6782, 29918, 333, 29901, 1678, 3985, 6782, 4982, 1178, 408, 263, 1347, 29889, 13, 1678, 584, 3207, 4867, 29901, 4706, 5470, 4867, 304, 671, 29889, 13, 1678, 9995, 13, 13, 1678, 2407, 29918, 11808, 877, 3221, 29889, 3827, 29889, 16747, 29918, 3286, 571, 1495, 13, 13, 1678, 1018, 29901, 13, 4706, 396, 1016, 29915, 29873, 6023, 372, 565, 372, 29915, 29879, 2307, 23051, 297, 29871, 29941, 29900, 6923, 13, 4706, 4867, 29889, 1972, 29898, 9794, 29889, 3089, 467, 2541, 29918, 29882, 524, 29898, 9794, 29889, 3089, 29892, 376, 27992, 29898, 16244, 29903, 5195, 14130, 29903, 29918, 5746, 4945, 29940, 1964, 1367, 29918, 29965, 29984, 19123, 525, 11347, 1495, 29905, 13, 462, 462, 268, 869, 4572, 29918, 1609, 29898, 23176, 29918, 333, 29922, 3286, 571, 29918, 333, 2144, 13, 462, 462, 268, 869, 4572, 29898, 9794, 29889, 3089, 29889, 3859, 1275, 10729, 2792, 29889, 20633, 26349, 29911, 3352, 2144, 13, 462, 462, 268, 869, 4572, 29898, 9794, 29889, 3089, 29889, 21402, 29918, 271, 529, 12865, 29889, 12673, 29889, 329, 29883, 3707, 580, 448, 12865, 29889, 9346, 287, 2554, 29898, 23128, 29922, 29941, 29900, 28986, 13, 462, 462, 268, 869, 5504, 3319, 29915, 21402, 29918, 271, 2396, 12865, 29889, 12673, 29889, 329, 29883, 3707, 580, 1118, 12231, 675, 29918, 7924, 29922, 8824, 29897, 13, 1678, 5174, 17100, 537, 2392, 408, 1059, 29901, 13, 4706, 12020, 9723, 3934, 2451, 29898, 2704, 29889, 5085, 29897, 13, 13, 13, 29992, 20736, 284, 29918, 7924, 13, 1753, 2767, 29918, 3286, 571, 29918, 3859, 29898, 23176, 29918, 3069, 29892, 6782, 29918, 333, 29892, 2106, 29892, 4867, 29922, 8516, 29892, 17927, 29922, 21027, 29889, 1188, 1125, 13, 1678, 9995, 13, 1678, 501, 8485, 491, 1248, 1358, 304, 2767, 278, 7463, 2106, 310, 6782, 29892, 13, 1678, 1156, 278, 2933, 491, 278, 7029, 6782, 10154, 29889, 13, 1678, 584, 3207, 2009, 29918, 3069, 29901, 3986, 4408, 310, 278, 7029, 3495, 29889, 13, 1678, 584, 3207, 6782, 29918, 333, 29901, 965, 3985, 6782, 4982, 1178, 408, 263, 1347, 29889, 13, 1678, 584, 3207, 2106, 29901, 462, 10729, 2106, 408, 263, 1347, 29889, 13, 1678, 584, 3207, 4867, 29901, 1669, 450, 2566, 4867, 304, 671, 29889, 13, 1678, 584, 3207, 17927, 29901, 18884, 28379, 10200, 630, 17927, 393, 508, 367, 4502, 515, 278, 5432, 1146, 331, 787, 470, 12424, 29889, 13, 1678, 584, 18280, 9063, 29918, 272, 29918, 1245, 1627, 29901, 29871, 11185, 29889, 13, 1678, 9995, 13, 13, 1678, 1018, 29901, 13, 4706, 565, 2106, 1275, 10729, 2792, 29889, 29931, 3718, 29901, 13, 9651, 12428, 29879, 353, 2009, 29918, 3221, 29889, 657, 29918, 24830, 29918, 1609, 29918, 3286, 571, 29898, 23176, 29918, 3069, 29892, 6782, 29918, 333, 29892, 4867, 29922, 7924, 29897, 13, 9651, 363, 12428, 297, 12428, 29879, 29901, 13, 18884, 17927, 29898, 21027, 29889, 11690, 29892, 525, 16244, 1273, 29879, 8079, 10014, 2190, 20322, 1001, 1273, 29879, 6732, 1273, 29879, 6850, 3040, 1273, 29879, 29915, 1273, 313, 710, 29898, 7971, 1839, 3827, 29918, 333, 2033, 511, 7029, 29918, 3069, 29892, 6782, 29918, 333, 29892, 851, 29898, 3859, 4961, 13, 18884, 4765, 29918, 29878, 344, 29918, 333, 353, 12428, 29889, 657, 877, 4993, 29918, 29878, 344, 29918, 333, 742, 6213, 29897, 13, 18884, 29743, 29918, 29878, 344, 29918, 333, 353, 12428, 29889, 657, 877, 7854, 29918, 29878, 344, 29918, 333, 742, 6213, 29897, 13, 18884, 4765, 29918, 29878, 344, 353, 6213, 13, 18884, 29743, 29918, 29878, 344, 353, 6213, 13, 18884, 565, 4765, 29918, 29878, 344, 29918, 333, 29901, 13, 462, 1678, 4765, 29918, 29878, 344, 353, 679, 29918, 29878, 344, 29918, 978, 29898, 4351, 29918, 29878, 344, 29918, 333, 29892, 4867, 29922, 7924, 29897, 13, 18884, 565, 29743, 29918, 29878, 344, 29918, 333, 29901, 13, 462, 1678, 29743, 29918, 29878, 344, 353, 679, 29918, 29878, 344, 29918, 978, 29898, 22992, 29918, 29878, 344, 29918, 333, 29892, 4867, 29922, 7924, 29897, 13, 18884, 2933, 353, 11117, 1482, 29918, 3859, 2396, 2106, 29892, 13, 462, 9651, 525, 3286, 571, 29918, 333, 2396, 6782, 29918, 333, 29892, 13, 462, 9651, 525, 9057, 29918, 3859, 2396, 2106, 29892, 13, 462, 9651, 525, 4351, 29918, 2271, 2396, 6213, 29892, 13, 462, 9651, 525, 22992, 29918, 2271, 2396, 12428, 1839, 7854, 29918, 2271, 7464, 13, 462, 9651, 525, 19708, 2396, 29871, 29900, 29892, 13, 462, 9651, 525, 23147, 2396, 376, 1576, 383, 9375, 4982, 5714, 613, 13, 462, 9651, 525, 6078, 2396, 12428, 29889, 657, 877, 6078, 742, 6213, 511, 13, 462, 9651, 525, 978, 2396, 12428, 29889, 657, 877, 978, 742, 6213, 511, 13, 462, 9651, 525, 4351, 29918, 29878, 344, 2396, 4765, 29918, 29878, 344, 29892, 13, 462, 9651, 525, 22992, 29918, 29878, 344, 2396, 29743, 29918, 29878, 344, 29892, 13, 462, 9651, 525, 3827, 29918, 333, 2396, 12428, 29889, 657, 877, 3827, 29918, 333, 742, 6213, 511, 13, 462, 9651, 525, 10072, 2396, 12428, 29889, 657, 877, 10072, 742, 6213, 511, 13, 462, 9651, 525, 4351, 29918, 29878, 344, 29918, 333, 2396, 12428, 29889, 657, 877, 4993, 29918, 29878, 344, 29918, 333, 742, 6213, 511, 13, 462, 9651, 525, 22992, 29918, 29878, 344, 29918, 333, 2396, 12428, 29889, 657, 877, 7854, 29918, 29878, 344, 29918, 333, 742, 6213, 511, 13, 462, 9651, 525, 24957, 29918, 1131, 3456, 29918, 333, 2396, 12428, 29889, 657, 877, 24957, 29918, 1131, 3456, 29918, 333, 742, 6213, 511, 13, 462, 9651, 525, 328, 1358, 29941, 29906, 2396, 12428, 29889, 657, 877, 328, 1358, 29941, 29906, 742, 6213, 511, 13, 462, 9651, 525, 3487, 29945, 2396, 12428, 29889, 657, 877, 3487, 29945, 742, 6213, 511, 13, 462, 9651, 525, 5325, 675, 2396, 12428, 29889, 657, 877, 5325, 675, 742, 6213, 511, 13, 462, 9651, 525, 23176, 29918, 3069, 2396, 7029, 29918, 3069, 29892, 13, 462, 9651, 525, 9057, 29918, 29885, 29918, 3445, 10123, 2396, 6213, 29892, 13, 462, 9651, 525, 11600, 29918, 271, 2396, 12428, 29889, 657, 877, 11600, 29918, 271, 742, 6213, 511, 13, 462, 9651, 525, 1491, 29885, 4430, 29918, 271, 2396, 12428, 29889, 657, 877, 1491, 29885, 4430, 29918, 271, 742, 6213, 511, 13, 462, 9651, 525, 14144, 2396, 6213, 29892, 13, 462, 9651, 525, 10149, 2396, 12428, 29889, 657, 877, 10149, 742, 6213, 2915, 13, 13, 18884, 4589, 29918, 7645, 353, 2009, 29918, 3221, 29889, 657, 29918, 3286, 571, 29918, 2704, 29898, 5327, 1839, 1482, 29918, 3859, 7464, 2933, 1839, 23147, 2033, 565, 525, 23147, 29915, 297, 2933, 1683, 6213, 29897, 13, 18884, 2009, 29918, 3221, 29889, 842, 29918, 3827, 29918, 3859, 29898, 7971, 1839, 3827, 29918, 333, 7464, 13, 462, 462, 1669, 2933, 1839, 1482, 29918, 3859, 7464, 13, 462, 462, 1669, 6782, 29918, 333, 29922, 3286, 571, 29918, 333, 29892, 13, 462, 462, 1669, 4765, 29918, 29878, 344, 29918, 333, 29922, 4351, 29918, 29878, 344, 29918, 333, 29892, 13, 462, 462, 1669, 4589, 29918, 7645, 29922, 3127, 29918, 7645, 29892, 13, 462, 462, 1669, 4867, 29922, 7924, 29897, 13, 13, 18884, 2009, 29918, 3221, 29889, 1202, 29918, 3712, 2105, 29918, 4906, 29898, 7971, 29892, 2933, 29892, 4867, 29922, 7924, 29897, 13, 4706, 1683, 29901, 13, 9651, 4770, 842, 29918, 3286, 571, 29918, 3859, 29898, 23176, 29918, 3069, 29892, 6782, 29918, 333, 29892, 2106, 29892, 4867, 29922, 7924, 29897, 13, 4706, 736, 5852, 13, 1678, 5174, 853, 23765, 10925, 408, 1059, 29901, 13, 4706, 17927, 29898, 21027, 29889, 29956, 25614, 29892, 376, 4300, 571, 1273, 29879, 373, 1273, 29879, 1838, 29915, 29873, 1863, 448, 4829, 29901, 1273, 29879, 29908, 1273, 313, 3286, 571, 29918, 333, 29892, 7029, 29918, 3069, 29892, 851, 29898, 2704, 467, 6506, 28909, 29876, 742, 6629, 4961, 13, 4706, 736, 7700, 13, 13, 13, 29992, 20736, 284, 29918, 7924, 13, 1753, 679, 29918, 29882, 3554, 29898, 4993, 29918, 29878, 344, 29918, 333, 29892, 2731, 29918, 29878, 344, 29918, 333, 29892, 3160, 29918, 4713, 4861, 459, 29922, 8824, 29892, 2473, 29882, 459, 29918, 2288, 267, 29922, 8516, 29892, 4046, 29918, 7854, 29918, 816, 13826, 29922, 8516, 29892, 4867, 29922, 8516, 1125, 13, 1678, 9995, 13, 1678, 3617, 263, 1051, 310, 298, 3554, 4312, 304, 6782, 2635, 515, 2752, 29918, 29878, 344, 29918, 333, 304, 2731, 29918, 29878, 344, 29918, 333, 29889, 13, 1678, 13001, 635, 29892, 278, 1051, 674, 871, 3160, 697, 2944, 313, 7854, 29918, 29878, 344, 29918, 333, 29897, 1951, 694, 298, 3554, 526, 4312, 29889, 13, 1678, 584, 3207, 2752, 29918, 29878, 344, 29918, 333, 29901, 539, 7562, 390, 1660, 1178, 310, 278, 6782, 29889, 13, 1678, 584, 3207, 2731, 29918, 29878, 344, 29918, 333, 29901, 308, 15435, 390, 1660, 1178, 310, 278, 6782, 29889, 13, 1678, 584, 3207, 3160, 29918, 4713, 4861, 459, 29901, 1678, 960, 694, 1513, 1544, 508, 367, 1754, 29892, 884, 3160, 2473, 29882, 459, 1301, 25534, 29889, 13, 1678, 584, 3207, 2473, 29882, 459, 29918, 2288, 267, 29901, 539, 2391, 310, 390, 1660, 18999, 393, 508, 367, 1304, 363, 2473, 29882, 459, 29889, 13, 1678, 584, 3207, 4046, 29918, 7854, 29918, 816, 13826, 29901, 29871, 2391, 310, 12551, 27715, 278, 9686, 11380, 5687, 881, 367, 9078, 304, 363, 263, 2323, 8171, 29889, 13, 1678, 584, 18280, 29901, 462, 259, 2391, 310, 298, 3554, 297, 278, 3402, 518, 10998, 4993, 29918, 29878, 344, 29918, 333, 2396, 2752, 29918, 29878, 344, 29918, 333, 29892, 525, 4993, 29918, 816, 2004, 2396, 525, 29879, 1758, 742, 525, 4993, 29918, 816, 2004, 29918, 29886, 21766, 2396, 405, 29892, 525, 7854, 29918, 29878, 344, 29918, 333, 2396, 2731, 29918, 29878, 344, 29918, 333, 29892, 525, 7854, 29918, 816, 2004, 2396, 525, 29879, 1758, 742, 525, 7854, 29918, 816, 2004, 29918, 29886, 21766, 2396, 405, 6525, 13, 1678, 584, 336, 4637, 29901, 462, 1678, 1939, 27469, 13, 1678, 9995, 13, 1678, 565, 451, 4046, 29918, 7854, 29918, 816, 13826, 29901, 13, 4706, 4046, 29918, 7854, 29918, 816, 13826, 353, 5159, 13, 13, 1678, 396, 5399, 565, 727, 338, 263, 22152, 1121, 13, 1678, 1121, 353, 5195, 29954, 2725, 29918, 7068, 8476, 29889, 657, 877, 657, 29918, 29882, 3554, 29918, 29995, 29879, 29918, 29995, 29879, 29918, 29995, 29879, 29915, 1273, 313, 710, 29898, 4993, 29918, 29878, 344, 29918, 333, 511, 851, 29898, 7854, 29918, 29878, 344, 29918, 333, 511, 525, 4286, 7122, 29898, 24582, 29898, 13400, 29918, 7854, 29918, 816, 13826, 13697, 13, 1678, 565, 451, 338, 8758, 29898, 2914, 29892, 1939, 1917, 1125, 13, 4706, 736, 1121, 13, 13, 1678, 565, 2473, 29882, 459, 29918, 2288, 267, 338, 6213, 29901, 13, 4706, 2473, 29882, 459, 29918, 2288, 267, 353, 5159, 13, 13, 1678, 396, 14402, 29901, 341, 523, 367, 1108, 2454, 304, 2337, 2254, 278, 5418, 29918, 4262, 29892, 1951, 372, 1795, 367, 1518, 575, 440, 13, 13, 1678, 396, 16012, 278, 3983, 515, 278, 24610, 1591, 13, 1678, 396, 5418, 29918, 4262, 353, 4770, 1359, 29918, 19244, 29918, 4262, 29898, 7924, 29922, 7924, 29897, 13, 1678, 5418, 29918, 4262, 353, 6571, 13, 1678, 5418, 29918, 4262, 29961, 4993, 29918, 29878, 344, 29918, 333, 29962, 353, 4770, 1359, 29918, 449, 17696, 29918, 5721, 2925, 29918, 3177, 29898, 29878, 344, 29918, 333, 29922, 4993, 29918, 29878, 344, 29918, 333, 29892, 4867, 29922, 7924, 29897, 13, 13, 1678, 396, 29871, 29896, 29889, 5399, 565, 727, 338, 263, 1513, 3957, 1546, 2752, 322, 2731, 29901, 13, 1678, 565, 5418, 29918, 4262, 29889, 657, 29898, 4993, 29918, 29878, 344, 29918, 333, 29892, 426, 7854, 29918, 29878, 344, 29918, 333, 29901, 6213, 7690, 657, 29898, 7854, 29918, 29878, 344, 29918, 333, 29897, 338, 451, 6213, 29901, 13, 4706, 396, 5399, 565, 727, 338, 263, 9608, 1993, 1546, 278, 1023, 390, 1660, 29879, 13, 4706, 1018, 29901, 13, 9651, 9686, 29918, 816, 2004, 353, 364, 12846, 629, 29889, 2886, 29918, 4352, 292, 29918, 816, 2004, 29898, 29878, 344, 29918, 11027, 29918, 7854, 29922, 1649, 1359, 29918, 29878, 344, 29918, 11027, 29898, 29878, 344, 29918, 333, 29922, 7854, 29918, 29878, 344, 29918, 333, 29892, 4867, 29922, 7924, 511, 13, 462, 462, 462, 3986, 364, 344, 29918, 11027, 29918, 4351, 29922, 1649, 1359, 29918, 29878, 344, 29918, 11027, 29898, 29878, 344, 29918, 333, 29922, 4993, 29918, 29878, 344, 29918, 333, 29892, 4867, 29922, 7924, 511, 13, 462, 462, 462, 3986, 5858, 29918, 4351, 2433, 22585, 29918, 22633, 29918, 8552, 742, 13, 462, 462, 462, 3986, 5858, 29918, 7854, 2433, 22585, 29918, 22633, 29918, 8552, 742, 13, 462, 462, 462, 3986, 5354, 2433, 11440, 742, 13, 462, 462, 462, 3986, 11380, 29922, 13400, 29918, 7854, 29918, 816, 13826, 565, 4046, 29918, 7854, 29918, 816, 13826, 1683, 6213, 29897, 13, 9651, 2224, 353, 518, 10998, 4993, 29918, 29878, 344, 29918, 333, 2396, 2752, 29918, 29878, 344, 29918, 333, 29892, 13, 462, 268, 525, 7854, 29918, 29878, 344, 29918, 333, 2396, 2731, 29918, 29878, 344, 29918, 333, 29892, 13, 462, 268, 525, 4993, 29918, 816, 2004, 2396, 9686, 29918, 816, 2004, 29961, 29896, 1402, 13, 462, 268, 525, 7854, 29918, 816, 2004, 2396, 9686, 29918, 816, 2004, 29961, 29900, 1402, 13, 462, 268, 525, 4993, 29918, 816, 2004, 29918, 29886, 21766, 2396, 9686, 29918, 816, 2004, 29961, 29941, 1402, 13, 462, 268, 525, 7854, 29918, 816, 2004, 29918, 29886, 21766, 2396, 9686, 29918, 816, 2004, 29961, 29906, 29962, 6525, 13, 9651, 5195, 29954, 2725, 29918, 7068, 8476, 29889, 842, 877, 657, 29918, 29882, 3554, 29918, 29995, 29879, 29918, 29995, 29879, 29918, 29995, 29879, 29915, 1273, 313, 710, 29898, 4993, 29918, 29878, 344, 29918, 333, 511, 851, 29898, 7854, 29918, 29878, 344, 29918, 333, 511, 525, 4286, 7122, 29898, 24582, 29898, 13400, 29918, 7854, 29918, 816, 13826, 876, 511, 2224, 29897, 13, 9651, 736, 2224, 13, 4706, 5174, 390, 1660, 17830, 3664, 14039, 287, 408, 1059, 29901, 13, 9651, 565, 3160, 29918, 4713, 4861, 459, 29901, 13, 18884, 396, 21267, 278, 7636, 515, 278, 3983, 13, 18884, 628, 5418, 29918, 4262, 29961, 4993, 29918, 29878, 344, 29918, 333, 3816, 7854, 29918, 29878, 344, 29918, 333, 29962, 13, 9651, 1683, 29901, 13, 18884, 12020, 1059, 13, 13, 1678, 565, 451, 3160, 29918, 4713, 4861, 459, 29901, 13, 4706, 12020, 1939, 27469, 580, 13, 13, 1678, 396, 29871, 29906, 29889, 1670, 338, 694, 3957, 470, 694, 11380, 1993, 6660, 3967, 263, 2473, 8171, 6660, 360, 13535, 4151, 5687, 13, 1678, 379, 4590, 29918, 29925, 1430, 1964, 15631, 353, 7136, 29918, 2917, 29918, 657, 877, 3286, 25534, 742, 525, 29882, 459, 29918, 2238, 18745, 742, 2322, 29922, 29896, 29900, 29892, 4867, 29922, 7924, 29897, 29871, 396, 7363, 18745, 304, 367, 7436, 304, 1269, 4340, 8171, 13, 13, 1678, 396, 5399, 565, 278, 12551, 390, 1660, 338, 385, 11359, 390, 1660, 29901, 13, 1678, 565, 451, 4770, 1359, 29918, 262, 9917, 29918, 5721, 2925, 29918, 3177, 29898, 29878, 344, 29918, 333, 29922, 7854, 29918, 29878, 344, 29918, 333, 29892, 4867, 29922, 7924, 1125, 13, 4706, 12020, 1939, 27469, 580, 13, 13, 1678, 16669, 29918, 18010, 353, 426, 4993, 29918, 29878, 344, 29918, 333, 29901, 11117, 19244, 2396, 29871, 29900, 29892, 13, 462, 462, 268, 525, 2084, 2396, 5159, 930, 29871, 396, 360, 13535, 4151, 2307, 1998, 12652, 7573, 13, 1678, 396, 426, 29878, 344, 29918, 333, 29901, 11117, 2084, 2396, 518, 10998, 4993, 29918, 29878, 344, 29918, 333, 2396, 29892, 525, 7854, 29918, 29878, 344, 29918, 333, 2396, 29892, 525, 4993, 29918, 816, 2004, 742, 525, 7854, 29918, 816, 2004, 2396, 500, 1402, 13, 1678, 396, 965, 525, 19244, 2396, 1060, 29913, 13, 1678, 396, 500, 13, 1678, 304, 29918, 1730, 277, 353, 518, 4993, 29918, 29878, 344, 29918, 333, 29962, 29871, 396, 405, 2631, 304, 6493, 29892, 2748, 1051, 338, 4069, 29892, 2867, 2425, 13, 1678, 1887, 29918, 3670, 12539, 353, 29871, 29929, 29929, 29929, 29929, 29871, 396, 9959, 5994, 398, 304, 15592, 630, 2740, 13, 13, 1678, 1550, 304, 29918, 1730, 277, 29901, 13, 4706, 363, 1857, 29918, 3177, 297, 3509, 29889, 24535, 8552, 29898, 517, 29918, 1730, 277, 1125, 13, 9651, 304, 29918, 1730, 277, 29889, 5992, 29898, 3784, 29918, 3177, 29897, 13, 9651, 1857, 29918, 19244, 353, 16669, 29918, 18010, 29961, 3784, 29918, 3177, 22322, 19244, 2033, 13, 9651, 1857, 29918, 2084, 353, 16669, 29918, 18010, 29961, 3784, 29918, 3177, 22322, 2084, 2033, 13, 13, 9651, 565, 1857, 29918, 3177, 451, 297, 5418, 29918, 4262, 29901, 13, 18884, 5418, 29918, 4262, 29961, 3784, 29918, 3177, 29962, 353, 4770, 1359, 29918, 449, 17696, 29918, 5721, 2925, 29918, 3177, 29898, 29878, 344, 29918, 333, 29922, 3784, 29918, 3177, 29892, 4867, 29922, 7924, 29897, 13, 13, 9651, 363, 714, 29918, 29894, 297, 5418, 29918, 4262, 29961, 3784, 29918, 3177, 5387, 13, 18884, 396, 5399, 565, 278, 5418, 723, 367, 7968, 13, 18884, 565, 5418, 29918, 4262, 29961, 3784, 29918, 3177, 3816, 449, 29918, 29894, 29962, 338, 6213, 29901, 13, 462, 1678, 6773, 13, 18884, 565, 16669, 29918, 18010, 29889, 657, 29898, 449, 29918, 29894, 29892, 11117, 19244, 2396, 29871, 29929, 29929, 29929, 29929, 1800, 1839, 19244, 2033, 1405, 1857, 29918, 19244, 718, 5418, 29918, 4262, 29961, 3784, 29918, 3177, 3816, 449, 29918, 29894, 29962, 718, 379, 4590, 29918, 29925, 1430, 1964, 15631, 29905, 13, 462, 259, 322, 1887, 29918, 3670, 12539, 1405, 1857, 29918, 19244, 718, 5418, 29918, 4262, 29961, 3784, 29918, 3177, 3816, 449, 29918, 29894, 29962, 718, 379, 4590, 29918, 29925, 1430, 1964, 15631, 29901, 13, 462, 1678, 396, 5399, 565, 278, 19697, 390, 1660, 338, 9615, 363, 2473, 29882, 459, 13, 462, 1678, 565, 714, 29918, 29894, 2804, 2731, 29918, 29878, 344, 29918, 333, 322, 714, 29918, 29894, 451, 297, 2473, 29882, 459, 29918, 2288, 267, 29901, 13, 462, 4706, 6773, 13, 462, 1678, 396, 5399, 565, 727, 338, 263, 15878, 9608, 5101, 13, 462, 1678, 1018, 29901, 13, 462, 4706, 9686, 29918, 816, 2004, 353, 364, 12846, 629, 29889, 2886, 29918, 4352, 292, 29918, 816, 2004, 29898, 29878, 344, 29918, 11027, 29918, 7854, 29922, 1649, 1359, 29918, 29878, 344, 29918, 11027, 29898, 29878, 344, 29918, 333, 29922, 449, 29918, 29894, 29892, 4867, 29922, 7924, 511, 13, 462, 462, 462, 462, 418, 364, 344, 29918, 11027, 29918, 4351, 29922, 1649, 1359, 29918, 29878, 344, 29918, 11027, 29898, 29878, 344, 29918, 333, 29922, 3784, 29918, 3177, 29892, 4867, 29922, 7924, 511, 13, 462, 462, 462, 462, 418, 5858, 29918, 4351, 2433, 22585, 29918, 22633, 29918, 8552, 742, 13, 462, 462, 462, 462, 418, 5858, 29918, 7854, 2433, 22585, 29918, 22633, 29918, 8552, 742, 13, 462, 462, 462, 462, 418, 5354, 2433, 11440, 742, 13, 462, 462, 462, 462, 418, 11380, 29922, 13400, 29918, 7854, 29918, 816, 13826, 565, 714, 29918, 29894, 1275, 2731, 29918, 29878, 344, 29918, 333, 322, 4046, 29918, 7854, 29918, 816, 13826, 1683, 6213, 29897, 13, 462, 4706, 16669, 29918, 18010, 29961, 449, 29918, 29894, 29962, 353, 11117, 19244, 2396, 1857, 29918, 19244, 718, 5418, 29918, 4262, 29961, 3784, 29918, 3177, 3816, 449, 29918, 29894, 29962, 718, 379, 4590, 29918, 29925, 1430, 1964, 15631, 29892, 13, 462, 462, 18884, 525, 2084, 2396, 1857, 29918, 2084, 718, 518, 10998, 4993, 29918, 29878, 344, 29918, 333, 2396, 1857, 29918, 3177, 29892, 13, 462, 462, 462, 462, 308, 525, 7854, 29918, 29878, 344, 29918, 333, 2396, 714, 29918, 29894, 29892, 13, 462, 462, 462, 462, 308, 525, 4993, 29918, 816, 2004, 2396, 9686, 29918, 816, 2004, 29961, 29896, 1402, 13, 462, 462, 462, 462, 308, 525, 7854, 29918, 816, 2004, 2396, 9686, 29918, 816, 2004, 29961, 29900, 1402, 13, 462, 462, 462, 462, 308, 525, 4993, 29918, 816, 2004, 29918, 29886, 21766, 2396, 9686, 29918, 816, 2004, 29961, 29941, 1402, 13, 462, 462, 462, 462, 308, 525, 7854, 29918, 816, 2004, 29918, 29886, 21766, 2396, 9686, 29918, 816, 2004, 29961, 29906, 29962, 6525, 29913, 13, 462, 4706, 565, 714, 29918, 29894, 2804, 2731, 29918, 29878, 344, 29918, 333, 29901, 13, 462, 9651, 304, 29918, 1730, 277, 29889, 4397, 29898, 449, 29918, 29894, 29897, 13, 462, 4706, 1683, 29901, 13, 462, 9651, 1887, 29918, 3670, 12539, 353, 1857, 29918, 19244, 718, 5418, 29918, 4262, 29961, 3784, 29918, 3177, 3816, 449, 29918, 29894, 29962, 718, 379, 4590, 29918, 29925, 1430, 1964, 15631, 13, 462, 1678, 5174, 390, 1660, 17830, 3664, 14039, 287, 29901, 13, 462, 4706, 1209, 13, 1678, 565, 2731, 29918, 29878, 344, 29918, 333, 297, 16669, 29918, 18010, 29901, 13, 4706, 5195, 29954, 2725, 29918, 7068, 8476, 29889, 842, 877, 657, 29918, 29882, 3554, 29918, 29995, 29879, 29918, 29995, 29879, 29918, 29995, 29879, 29915, 1273, 313, 710, 29898, 4993, 29918, 29878, 344, 29918, 333, 511, 851, 29898, 7854, 29918, 29878, 344, 29918, 333, 511, 525, 4286, 7122, 29898, 24582, 29898, 13400, 29918, 7854, 29918, 816, 13826, 876, 511, 16669, 29918, 18010, 29961, 7854, 29918, 29878, 344, 29918, 333, 22322, 2084, 11287, 13, 4706, 736, 16669, 29918, 18010, 29961, 7854, 29918, 29878, 344, 29918, 333, 22322, 2084, 2033, 13, 1678, 1683, 29901, 13, 4706, 12020, 1939, 27469, 580, 13, 13, 13, 1753, 679, 29918, 15697, 29898, 15697, 1125, 13, 1678, 9657, 29918, 15697, 353, 6571, 13, 1678, 565, 8393, 29901, 13, 4706, 565, 338, 8758, 29898, 15697, 29892, 9657, 1125, 13, 9651, 12421, 353, 4390, 29889, 18132, 29898, 3126, 29889, 29881, 17204, 29898, 15697, 876, 13, 4706, 1683, 29901, 13, 9651, 12421, 353, 4390, 29889, 18132, 29898, 710, 29898, 15697, 876, 13, 1678, 396, 6088, 2752, 4603, 13, 1678, 9657, 29918, 15697, 1839, 4993, 29918, 3445, 10123, 29918, 17471, 2033, 353, 12421, 3366, 4993, 29918, 3445, 10123, 29918, 17471, 3108, 565, 313, 5552, 322, 376, 4993, 29918, 3445, 10123, 29918, 17471, 29908, 297, 12421, 29897, 1683, 6213, 13, 1678, 9657, 29918, 15697, 1839, 9536, 29918, 941, 412, 29918, 4993, 2033, 353, 12421, 3366, 9536, 29918, 941, 412, 29918, 4993, 3108, 565, 313, 5552, 322, 376, 9536, 29918, 941, 412, 29918, 4993, 29908, 297, 12421, 29897, 1683, 5852, 13, 1678, 9657, 29918, 15697, 1839, 6289, 29876, 2033, 353, 12421, 3366, 6289, 29918, 978, 3108, 565, 313, 5552, 322, 376, 6289, 29918, 978, 29908, 297, 12421, 29897, 1683, 6213, 13, 1678, 9657, 29918, 15697, 1839, 29880, 361, 5410, 2033, 353, 12421, 29889, 657, 877, 29880, 361, 5410, 742, 448, 29896, 29897, 13, 1678, 736, 9657, 29918, 15697, 13, 13, 13, 1753, 679, 29918, 6289, 29876, 29898, 6078, 29892, 1024, 29892, 270, 16586, 1125, 13, 1678, 565, 270, 16586, 29901, 13, 4706, 736, 270, 16586, 13, 1678, 396, 1831, 263, 6943, 8783, 13, 1678, 363, 3847, 297, 1258, 29889, 1761, 29918, 3560, 29918, 29881, 4841, 29898, 6078, 29892, 1024, 1125, 13, 4706, 565, 3847, 1839, 1853, 2033, 1275, 360, 1367, 1542, 29889, 25832, 8127, 29911, 29901, 13, 9651, 736, 3847, 1839, 978, 2033, 13, 1678, 736, 525, 1228, 29915, 13, 13, 13, 1753, 4770, 4282, 29918, 7854, 29918, 2271, 29898, 6078, 29892, 1024, 29892, 9608, 29892, 2731, 29918, 29878, 344, 29918, 5552, 29879, 29892, 2731, 29918, 275, 29918, 4801, 837, 262, 4695, 29892, 2731, 29918, 275, 29918, 941, 412, 29892, 9657, 29918, 15697, 29892, 337, 2202, 29918, 2798, 29892, 6354, 1125, 13, 1678, 9995, 13, 1678, 12230, 16876, 740, 304, 2048, 12551, 3988, 746, 5663, 15387, 1301, 25534, 304, 6222, 29889, 13, 1678, 9995, 13, 13, 1678, 565, 2731, 29918, 275, 29918, 4801, 837, 262, 4695, 29901, 13, 4706, 2731, 29918, 2271, 353, 1051, 29898, 20464, 29889, 29880, 29888, 1983, 29906, 7810, 1983, 29898, 29880, 29888, 1983, 3790, 29915, 6078, 2396, 6874, 29889, 23176, 29892, 525, 978, 2396, 1024, 7690, 5975, 3101, 29961, 29900, 29962, 13, 1678, 1683, 29901, 13, 4706, 396, 10272, 2731, 3142, 297, 1206, 310, 1661, 11806, 4695, 13, 4706, 396, 22006, 15687, 29892, 2992, 29889, 13, 4706, 270, 16586, 353, 679, 29918, 6289, 29876, 29898, 6078, 29892, 1024, 29892, 9657, 29918, 15697, 29889, 657, 877, 6289, 29876, 742, 6213, 876, 13, 4706, 396, 360, 29984, 29906, 2224, 2337, 8665, 411, 847, 29892, 541, 10944, 1795, 451, 1095, 411, 847, 13, 4706, 22006, 29918, 535, 7316, 353, 2731, 29918, 29878, 344, 29918, 5552, 29879, 29889, 657, 877, 8588, 292, 29918, 535, 7316, 742, 6213, 29897, 13, 4706, 2731, 29918, 2084, 353, 3386, 29918, 29879, 2271, 29898, 6289, 29876, 29892, 1024, 29892, 22006, 29918, 535, 7316, 29897, 13, 4706, 565, 2731, 29918, 275, 29918, 941, 412, 29901, 13, 9651, 565, 337, 2202, 29918, 2798, 470, 6354, 1275, 525, 4789, 22205, 2396, 13, 18884, 2731, 29918, 2084, 353, 14210, 29879, 29918, 29995, 29875, 29915, 1273, 313, 7854, 29918, 2084, 29892, 938, 29898, 2230, 29889, 2230, 22130, 13, 13, 4706, 2731, 29918, 2271, 353, 1051, 29898, 20464, 29889, 29880, 29888, 1983, 29906, 7810, 1983, 29898, 29880, 29888, 1983, 3790, 29915, 6078, 2396, 6874, 29889, 23176, 29892, 525, 978, 2396, 1024, 29892, 525, 2084, 2396, 2731, 29918, 2084, 7690, 5975, 3101, 29961, 29900, 29962, 13, 13, 1678, 736, 2731, 29918, 2271, 13, 13, 13, 1753, 4770, 23174, 29918, 4993, 29918, 2271, 29898, 4993, 29918, 2271, 29892, 2752, 29918, 4530, 29918, 2271, 29892, 2731, 29918, 4530, 29918, 2271, 29892, 2752, 29918, 816, 2004, 1125, 13, 1678, 9995, 13, 1678, 12662, 300, 374, 911, 2752, 3142, 363, 777, 4266, 4251, 310, 2752, 322, 12551, 27715, 13, 1678, 9995, 13, 1678, 565, 2731, 29918, 4530, 29918, 2271, 1275, 525, 29887, 2395, 2396, 13, 4706, 565, 2752, 29918, 816, 2004, 297, 6024, 29881, 485, 29879, 742, 525, 991, 2033, 29901, 13, 9651, 2752, 29918, 2271, 4619, 525, 29973, 8552, 29918, 8513, 29922, 5910, 29915, 13, 1678, 25342, 2731, 29918, 4530, 29918, 2271, 1275, 525, 29879, 29941, 2396, 13, 4706, 565, 2752, 29918, 816, 2004, 297, 6024, 29881, 485, 29879, 742, 525, 991, 2033, 29901, 13, 9651, 2752, 29918, 2271, 4619, 525, 29973, 8552, 29918, 8513, 29922, 5910, 29915, 13, 1678, 25342, 399, 25752, 29928, 7520, 29918, 26813, 20322, 1001, 29918, 20387, 29901, 13, 4706, 565, 2752, 29918, 816, 2004, 297, 6024, 29881, 485, 29879, 742, 525, 991, 2033, 29901, 13, 9651, 2752, 29918, 2271, 4619, 525, 29973, 8552, 29918, 8513, 16328, 29879, 29915, 1273, 399, 25752, 29928, 7520, 29918, 26813, 20322, 1001, 29918, 20387, 13, 13, 1678, 2752, 29918, 4530, 29918, 2271, 29918, 1958, 353, 11117, 29887, 2395, 2396, 525, 29887, 9274, 29879, 742, 525, 29879, 29941, 2396, 525, 29879, 29941, 29879, 10827, 13, 1678, 565, 2752, 29918, 4530, 29918, 2271, 297, 2752, 29918, 4530, 29918, 2271, 29918, 1958, 29901, 13, 4706, 565, 2752, 29918, 2271, 7503, 29955, 29962, 1275, 525, 29881, 485, 29879, 597, 2396, 13, 9651, 2752, 29918, 2271, 353, 2752, 29918, 4530, 29918, 2271, 29918, 1958, 29961, 4993, 29918, 4530, 29918, 2271, 29962, 718, 2752, 29918, 2271, 29961, 29946, 17531, 13, 4706, 565, 2752, 29918, 2271, 7503, 29947, 29962, 1275, 525, 991, 597, 2396, 13, 9651, 2752, 29918, 2271, 353, 2752, 29918, 4530, 29918, 2271, 29918, 1958, 29961, 4993, 29918, 4530, 29918, 2271, 29962, 718, 2752, 29918, 2271, 29961, 29945, 17531, 13, 13, 1678, 565, 2752, 29918, 2271, 7503, 29896, 29906, 29962, 1275, 525, 29879, 1758, 29974, 991, 597, 2396, 13, 4706, 2752, 29918, 2271, 353, 525, 29879, 1758, 29915, 718, 2752, 29918, 2271, 29961, 29896, 29900, 17531, 13, 1678, 736, 2752, 29918, 2271, 13, 13, 13, 1753, 4770, 23174, 29918, 7854, 29918, 2271, 29898, 7854, 29918, 2271, 29892, 2731, 29918, 4530, 29918, 2271, 29892, 2731, 29918, 816, 2004, 1125, 13, 1678, 9995, 13, 1678, 12662, 300, 374, 911, 12551, 3142, 363, 777, 4266, 4251, 310, 12551, 27715, 13, 1678, 9995, 13, 1678, 565, 2731, 29918, 4530, 29918, 2271, 1275, 525, 29887, 2395, 2396, 13, 4706, 2731, 29918, 2271, 353, 337, 29889, 1491, 877, 29881, 485, 29879, 742, 525, 29887, 9274, 29879, 742, 2731, 29918, 2271, 29897, 13, 4706, 2731, 29918, 2271, 353, 337, 29889, 1491, 877, 991, 742, 525, 29887, 9274, 29879, 742, 2731, 29918, 2271, 29897, 13, 1678, 25342, 2731, 29918, 4530, 29918, 2271, 1275, 525, 29879, 29941, 2396, 13, 4706, 2731, 29918, 2271, 353, 337, 29889, 1491, 877, 29881, 485, 29879, 742, 525, 29879, 29941, 29879, 742, 2731, 29918, 2271, 29897, 13, 4706, 2731, 29918, 2271, 353, 337, 29889, 1491, 877, 991, 742, 525, 29879, 29941, 29879, 742, 2731, 29918, 2271, 29897, 13, 13, 1678, 565, 2731, 29918, 2271, 7503, 29896, 29906, 29962, 1275, 525, 29879, 1758, 29974, 991, 597, 2396, 13, 4706, 2731, 29918, 2271, 353, 525, 29879, 1758, 29915, 718, 2731, 29918, 2271, 29961, 29896, 29900, 17531, 13, 1678, 736, 2731, 29918, 2271, 13, 13, 13, 29992, 20736, 284, 29918, 7924, 13, 1753, 679, 29918, 3286, 571, 29918, 24830, 29918, 392, 29918, 4993, 29918, 3445, 506, 294, 29898, 7827, 29918, 1287, 414, 29922, 29900, 29892, 15645, 29918, 4537, 29922, 29900, 29892, 4046, 29922, 8516, 29892, 6354, 29922, 8516, 29892, 9642, 29918, 27603, 29922, 8516, 29892, 20371, 267, 29922, 8516, 29892, 27715, 29922, 8516, 29892, 13, 462, 462, 795, 6963, 29918, 14627, 29922, 29946, 29941, 29906, 29900, 29900, 29892, 337, 2202, 29918, 1228, 29918, 615, 29879, 29922, 8824, 29892, 4418, 957, 29918, 816, 13826, 29922, 8516, 29892, 6782, 10154, 29922, 8516, 29892, 17927, 29922, 21027, 29889, 1188, 29892, 4867, 29922, 8516, 1125, 13, 1678, 9995, 13, 1678, 3617, 6782, 7274, 322, 278, 6942, 2752, 1634, 506, 294, 13, 1678, 584, 3207, 3001, 29918, 1287, 414, 29901, 308, 9681, 310, 3001, 17162, 29889, 13, 1678, 584, 3207, 15645, 29918, 4537, 29901, 308, 5163, 310, 278, 14012, 15645, 29889, 13, 1678, 584, 3207, 4046, 29901, 462, 9628, 277, 29889, 13, 1678, 584, 3207, 6354, 29901, 795, 13414, 29889, 13, 1678, 584, 3207, 9642, 29918, 27603, 29901, 9651, 3617, 1301, 25534, 9642, 1135, 29889, 13, 1678, 584, 3207, 20371, 267, 29901, 462, 29871, 512, 2325, 390, 1660, 29903, 29889, 13, 1678, 584, 3207, 27715, 29901, 1669, 512, 2325, 27715, 29889, 13, 1678, 584, 3207, 6963, 29918, 14627, 29901, 3986, 1771, 292, 7395, 11815, 29889, 13, 1678, 584, 3207, 337, 2202, 29918, 1228, 29918, 615, 29879, 29901, 539, 4649, 719, 916, 285, 1372, 12424, 29889, 13, 1678, 584, 3207, 4418, 957, 29918, 816, 13826, 29901, 418, 29098, 957, 27715, 29889, 13, 1678, 584, 3207, 6782, 10154, 29901, 3986, 450, 6782, 5780, 408, 6790, 297, 5796, 3934, 29889, 16859, 29889, 13, 1678, 584, 3207, 17927, 29901, 18884, 28379, 10200, 630, 17927, 393, 508, 367, 4502, 515, 278, 5432, 1146, 331, 787, 470, 12424, 29889, 13, 1678, 584, 3207, 4867, 29901, 1669, 450, 2566, 4867, 297, 671, 29889, 13, 1678, 584, 18280, 29901, 462, 268, 1301, 25534, 29892, 12428, 29879, 29918, 1217, 29918, 4993, 29892, 12428, 29879, 29918, 816, 2004, 29918, 29885, 1608, 905, 29892, 12428, 29879, 29918, 6194, 29918, 941, 412, 29918, 4993, 13, 1678, 9995, 13, 13, 1678, 12428, 29918, 29879, 2863, 353, 4770, 1761, 29918, 3286, 571, 29918, 24830, 29918, 392, 29918, 4993, 29918, 3445, 506, 294, 29898, 7827, 29918, 1287, 414, 29922, 7827, 29918, 1287, 414, 29892, 13, 462, 462, 462, 1669, 15645, 29918, 4537, 29922, 24602, 29918, 4537, 29892, 13, 462, 462, 462, 1669, 4046, 29922, 13400, 29892, 13, 462, 462, 462, 1669, 6354, 29922, 10072, 29892, 13, 462, 462, 462, 1669, 9642, 29918, 27603, 29922, 3194, 29918, 27603, 29892, 13, 462, 462, 462, 1669, 20371, 267, 29922, 2288, 267, 29892, 13, 462, 462, 462, 1669, 2009, 29918, 3859, 29922, 3089, 2792, 29889, 11144, 29965, 3352, 29892, 13, 462, 462, 462, 1669, 6782, 10154, 29922, 3286, 571, 10154, 29892, 13, 462, 462, 462, 1669, 4867, 29922, 7924, 29897, 13, 13, 1678, 770, 903, 7717, 2677, 29901, 13, 4706, 822, 4770, 2344, 12035, 1311, 29892, 4867, 1125, 13, 9651, 1583, 29889, 7924, 353, 4867, 13, 9651, 1583, 29889, 29878, 344, 29918, 333, 29918, 517, 29918, 978, 29918, 1958, 353, 6571, 13, 9651, 1583, 29889, 29878, 344, 29918, 333, 29918, 517, 29918, 3888, 29918, 1958, 353, 6571, 13, 9651, 1583, 29889, 29878, 344, 29918, 333, 29918, 517, 29918, 5552, 29879, 29918, 1958, 353, 6571, 13, 9651, 1583, 29889, 20464, 29879, 353, 6571, 13, 13, 4706, 822, 903, 7469, 29918, 29878, 344, 29918, 15638, 29898, 1311, 29892, 364, 344, 29918, 333, 1125, 13, 9651, 565, 364, 344, 29918, 333, 451, 297, 1583, 29889, 29878, 344, 29918, 333, 29918, 517, 29918, 978, 29918, 1958, 29901, 13, 18884, 364, 344, 29918, 978, 353, 679, 29918, 29878, 344, 29918, 978, 29898, 29878, 344, 29918, 333, 29922, 29878, 344, 29918, 333, 29892, 4867, 29922, 1311, 29889, 7924, 29897, 13, 18884, 1583, 29889, 29878, 344, 29918, 333, 29918, 517, 29918, 978, 29918, 1958, 29961, 29878, 344, 29918, 333, 29962, 353, 364, 344, 29918, 978, 13, 18884, 1583, 29889, 29878, 344, 29918, 333, 29918, 517, 29918, 3888, 29918, 1958, 29961, 29878, 344, 29918, 333, 29962, 353, 364, 12846, 629, 29889, 657, 29918, 29878, 344, 29918, 3888, 29898, 29878, 344, 29922, 29878, 344, 29918, 978, 29892, 13, 462, 462, 462, 462, 418, 992, 29922, 657, 29918, 29878, 344, 29918, 1365, 29898, 29878, 344, 29918, 333, 29922, 29878, 344, 29918, 333, 29892, 4867, 29922, 1311, 29889, 7924, 511, 13, 462, 462, 462, 462, 418, 4867, 29922, 1311, 29889, 7924, 29897, 13, 18884, 1583, 29889, 29878, 344, 29918, 333, 29918, 517, 29918, 5552, 29879, 29918, 1958, 29961, 29878, 344, 29918, 333, 29962, 353, 679, 29918, 29878, 344, 29918, 15697, 29898, 29878, 344, 29918, 333, 29892, 4867, 29922, 1311, 29889, 7924, 29897, 13, 13, 4706, 822, 364, 344, 29918, 978, 29898, 1311, 29892, 364, 344, 29918, 333, 1125, 13, 9651, 1583, 3032, 7469, 29918, 29878, 344, 29918, 15638, 29898, 29878, 344, 29918, 333, 29897, 13, 9651, 736, 1583, 29889, 29878, 344, 29918, 333, 29918, 517, 29918, 978, 29918, 1958, 29961, 29878, 344, 29918, 333, 29962, 13, 13, 4706, 822, 364, 344, 29918, 3888, 29898, 1311, 29892, 364, 344, 29918, 333, 1125, 13, 9651, 1583, 3032, 7469, 29918, 29878, 344, 29918, 15638, 29898, 29878, 344, 29918, 333, 29897, 13, 9651, 736, 1583, 29889, 29878, 344, 29918, 333, 29918, 517, 29918, 3888, 29918, 1958, 29961, 29878, 344, 29918, 333, 29962, 13, 13, 4706, 822, 364, 344, 29918, 5552, 29879, 29898, 1311, 29892, 364, 344, 29918, 333, 1125, 13, 9651, 1583, 3032, 7469, 29918, 29878, 344, 29918, 15638, 29898, 29878, 344, 29918, 333, 29897, 13, 9651, 736, 1583, 29889, 29878, 344, 29918, 333, 29918, 517, 29918, 5552, 29879, 29918, 1958, 29961, 29878, 344, 29918, 333, 29962, 13, 13, 4706, 822, 338, 29918, 941, 412, 29918, 29878, 344, 29898, 1311, 29892, 364, 344, 29918, 333, 1125, 13, 9651, 903, 29878, 344, 29918, 3888, 353, 1583, 29889, 29878, 344, 29918, 3888, 29898, 29878, 344, 29918, 333, 29897, 13, 9651, 565, 903, 29878, 344, 29918, 3888, 1839, 29878, 344, 29918, 1853, 2033, 1275, 390, 1660, 1542, 29889, 29911, 3301, 29923, 470, 903, 29878, 344, 29918, 3888, 1839, 29878, 344, 29918, 1853, 2033, 1275, 525, 29911, 3301, 29923, 2396, 13, 18884, 736, 5852, 13, 9651, 736, 7700, 13, 13, 4706, 822, 9608, 29898, 1311, 29892, 364, 344, 29918, 333, 29892, 11380, 29892, 5858, 1125, 13, 9651, 9608, 29918, 1989, 353, 14210, 29879, 29918, 29995, 29879, 29918, 29995, 29879, 29915, 1273, 313, 16453, 29892, 364, 344, 29918, 333, 29892, 11380, 29897, 13, 9651, 9608, 353, 1583, 29889, 20464, 29879, 29889, 657, 29898, 20464, 29918, 1989, 29897, 13, 9651, 565, 451, 9608, 29901, 13, 18884, 9608, 353, 364, 12846, 629, 29889, 3258, 29918, 20464, 29898, 1311, 29889, 29878, 344, 29918, 3888, 29898, 29878, 344, 29918, 333, 511, 525, 22585, 29918, 22633, 29918, 8552, 742, 11380, 29897, 13, 18884, 1583, 29889, 20464, 29879, 29961, 20464, 29918, 1989, 29962, 353, 9608, 13, 9651, 736, 9608, 13, 13, 1678, 12893, 353, 903, 7717, 2677, 29898, 7924, 29897, 13, 1678, 443, 16515, 29918, 949, 29918, 29878, 344, 29918, 4841, 353, 4770, 657, 29918, 348, 16515, 29918, 29878, 344, 29918, 4841, 29898, 16453, 2433, 949, 742, 4867, 29922, 7924, 29897, 13, 1678, 443, 16515, 29918, 3539, 29918, 29878, 344, 29918, 4841, 353, 4770, 657, 29918, 348, 16515, 29918, 29878, 344, 29918, 4841, 29898, 16453, 2433, 3539, 742, 4867, 29922, 7924, 29897, 13, 13, 1678, 6963, 29918, 14627, 29918, 2997, 353, 6963, 29918, 14627, 13, 1678, 1301, 25534, 29892, 12428, 29879, 29918, 1217, 29918, 4993, 29892, 12428, 29879, 29918, 6194, 29918, 941, 412, 29918, 4993, 29892, 12428, 29879, 29918, 816, 2004, 29918, 29885, 1608, 905, 353, 24335, 19997, 19997, 5159, 13, 1678, 2473, 29918, 29882, 459, 29918, 8977, 353, 6571, 13, 13, 1678, 2473, 29882, 459, 29918, 2288, 267, 353, 5159, 13, 1678, 1018, 29901, 13, 4706, 2473, 29882, 459, 29918, 2288, 267, 353, 518, 29878, 344, 1839, 333, 2033, 363, 364, 344, 297, 6088, 29918, 17471, 877, 16515, 29918, 1454, 29918, 4713, 4861, 459, 29922, 3009, 1495, 29962, 13, 1678, 5174, 21403, 29934, 1660, 10960, 29901, 13, 4706, 2473, 29882, 459, 29918, 2288, 267, 353, 5159, 13, 13, 1678, 363, 12428, 29918, 333, 29892, 5751, 29918, 333, 29892, 6874, 29892, 1024, 29892, 22821, 29945, 29892, 594, 1358, 29941, 29906, 29892, 6262, 29892, 6354, 29892, 8393, 29892, 3517, 29918, 1131, 3456, 29918, 333, 29892, 2731, 29918, 29878, 344, 29918, 333, 29892, 3633, 29892, 2752, 29918, 29878, 344, 29918, 333, 29892, 364, 344, 29892, 11806, 4695, 29892, 364, 344, 29918, 1853, 29892, 2224, 29892, 337, 2202, 29918, 2798, 29892, 4765, 29918, 2271, 29892, 24034, 29892, 1544, 29918, 661, 9292, 297, 12428, 29918, 29879, 2863, 29901, 13, 13, 4706, 565, 24034, 338, 6213, 29901, 13, 9651, 24034, 353, 29871, 29900, 13, 13, 4706, 2473, 29882, 459, 353, 7700, 13, 13, 4706, 396, 3462, 12428, 304, 12428, 29918, 1217, 29918, 4993, 1051, 313, 12984, 367, 6206, 2678, 565, 4312, 29897, 13, 4706, 565, 12428, 29918, 333, 451, 297, 12428, 29879, 29918, 1217, 29918, 4993, 29901, 13, 9651, 12428, 29879, 29918, 1217, 29918, 4993, 29889, 4397, 29898, 7971, 29918, 333, 29897, 13, 13, 4706, 396, 2752, 29918, 29878, 344, 29918, 333, 674, 367, 6213, 565, 694, 2752, 1634, 506, 294, 13, 4706, 396, 364, 344, 674, 367, 6213, 565, 364, 344, 338, 380, 6751, 4038, 13, 4706, 565, 2752, 29918, 29878, 344, 29918, 333, 338, 6213, 470, 364, 344, 338, 6213, 29901, 13, 9651, 6773, 13, 13, 4706, 565, 20371, 267, 322, 2731, 29918, 29878, 344, 29918, 333, 451, 297, 20371, 267, 29901, 13, 9651, 6773, 13, 13, 4706, 2731, 29918, 29878, 344, 29918, 978, 353, 12893, 29889, 29878, 344, 29918, 978, 29898, 7854, 29918, 29878, 344, 29918, 333, 29897, 13, 4706, 2752, 29918, 29878, 344, 29918, 978, 353, 12893, 29889, 29878, 344, 29918, 978, 29898, 4993, 29918, 29878, 344, 29918, 333, 29897, 13, 13, 4706, 9657, 29918, 15697, 353, 679, 29918, 15697, 29898, 15697, 29897, 13, 13, 4706, 396, 5399, 565, 278, 2752, 322, 12551, 526, 24370, 13, 4706, 565, 2752, 29918, 29878, 344, 29918, 333, 297, 443, 16515, 29918, 949, 29918, 29878, 344, 29918, 4841, 29901, 13, 9651, 6773, 13, 4706, 565, 2731, 29918, 29878, 344, 29918, 333, 297, 443, 16515, 29918, 3539, 29918, 29878, 344, 29918, 4841, 29901, 13, 9651, 17927, 29898, 21027, 29889, 29956, 25614, 29892, 525, 29934, 1660, 1273, 29879, 338, 24370, 363, 2436, 29889, 2811, 14383, 278, 29240, 310, 716, 17643, 742, 2731, 29918, 29878, 344, 29918, 978, 29897, 13, 9651, 6773, 13, 13, 4706, 396, 6088, 2752, 4603, 13, 4706, 2752, 29918, 3445, 10123, 29918, 17471, 353, 9657, 29918, 15697, 29889, 657, 877, 4993, 29918, 3445, 10123, 29918, 17471, 742, 6213, 29897, 13, 4706, 565, 2752, 29918, 3445, 10123, 29918, 17471, 29901, 13, 9651, 1018, 29901, 13, 18884, 21213, 29918, 2288, 267, 353, 6088, 29918, 17471, 29898, 4993, 29918, 3445, 10123, 29918, 17471, 29892, 4867, 29922, 7924, 29897, 13, 9651, 5174, 21403, 29934, 1660, 10960, 408, 1059, 29901, 13, 18884, 17927, 29898, 21027, 29889, 11432, 29892, 376, 13919, 390, 1660, 3682, 1273, 29879, 29901, 1273, 29879, 613, 2752, 29918, 3445, 10123, 29918, 17471, 29892, 851, 29898, 2704, 876, 13, 18884, 6773, 13, 9651, 1683, 29901, 13, 18884, 6068, 29918, 2288, 267, 353, 518, 29916, 1839, 333, 2033, 363, 921, 297, 21213, 29918, 2288, 267, 29962, 13, 18884, 565, 2752, 29918, 29878, 344, 29918, 333, 451, 297, 6068, 29918, 2288, 267, 29901, 13, 462, 1678, 6773, 13, 13, 4706, 396, 8251, 278, 679, 29918, 29882, 3554, 740, 304, 1653, 263, 1051, 310, 390, 1660, 29879, 1304, 363, 278, 6782, 13, 4706, 396, 512, 1206, 278, 2752, 29918, 29878, 344, 322, 278, 2731, 29918, 29878, 344, 526, 6631, 29892, 278, 1051, 3743, 871, 278, 12551, 390, 1660, 13, 4706, 396, 512, 1206, 310, 1661, 29899, 18045, 29892, 278, 1051, 3743, 599, 278, 1006, 4210, 653, 390, 1660, 29879, 13, 4706, 1051, 29918, 29882, 3554, 353, 5159, 13, 4706, 3160, 29918, 4713, 4861, 459, 353, 7700, 13, 4706, 565, 6782, 10154, 297, 6024, 615, 29879, 29941, 742, 6213, 5387, 13, 9651, 3160, 29918, 4713, 4861, 459, 353, 7136, 29918, 2917, 29918, 657, 877, 3286, 25534, 742, 525, 1509, 29918, 4713, 4861, 459, 742, 2322, 29922, 8824, 29892, 1518, 12232, 29918, 2230, 29922, 29953, 29900, 29900, 29892, 4867, 29922, 7924, 29897, 13, 13, 4706, 1018, 29901, 13, 9651, 1051, 29918, 29882, 3554, 353, 679, 29918, 29882, 3554, 29898, 4993, 29918, 29878, 344, 29918, 333, 29892, 13, 462, 462, 2731, 29918, 29878, 344, 29918, 333, 29892, 13, 462, 462, 3160, 29918, 4713, 4861, 459, 29922, 2856, 29918, 4713, 4861, 459, 29892, 13, 462, 462, 2473, 29882, 459, 29918, 2288, 267, 29922, 4713, 4861, 459, 29918, 2288, 267, 29892, 13, 462, 462, 4046, 29918, 7854, 29918, 816, 13826, 29922, 3286, 25534, 29889, 657, 29898, 7971, 29918, 333, 29892, 6571, 467, 657, 877, 816, 13826, 742, 6213, 511, 13, 462, 462, 4867, 29922, 7924, 29897, 13, 9651, 565, 7431, 29898, 1761, 29918, 29882, 3554, 29897, 1405, 29871, 29896, 29901, 13, 18884, 17927, 29898, 21027, 29889, 18525, 29892, 525, 4591, 1273, 29879, 304, 1273, 29879, 6858, 2473, 29882, 459, 29901, 1273, 29879, 742, 2752, 29918, 29878, 344, 29918, 333, 29892, 2731, 29918, 29878, 344, 29918, 333, 29892, 1051, 29918, 29882, 3554, 29897, 13, 18884, 2473, 29882, 459, 353, 5852, 13, 18884, 2473, 29918, 29882, 459, 29918, 8977, 29961, 7971, 29918, 333, 29962, 353, 313, 1761, 29918, 29882, 3554, 29892, 9657, 29918, 15697, 29892, 337, 2202, 29918, 2798, 29897, 13, 4706, 5174, 1939, 27469, 29901, 13, 9651, 17927, 29898, 21027, 29889, 29956, 25614, 29892, 376, 3089, 1273, 29879, 29901, 694, 1544, 515, 1273, 29879, 304, 1273, 29879, 613, 12428, 29918, 333, 29892, 2752, 29918, 29878, 344, 29918, 978, 29892, 2731, 29918, 29878, 344, 29918, 978, 29897, 13, 9651, 565, 12428, 29918, 333, 297, 12428, 29879, 29918, 816, 2004, 29918, 29885, 1608, 905, 29901, 13, 18884, 12428, 29879, 29918, 816, 2004, 29918, 29885, 1608, 905, 29889, 5992, 29898, 7971, 29918, 333, 29897, 13, 9651, 565, 12428, 29918, 333, 451, 297, 12428, 29879, 29918, 1217, 29918, 4993, 29901, 13, 18884, 12428, 29879, 29918, 1217, 29918, 4993, 29889, 4397, 29898, 7971, 29918, 333, 29897, 13, 9651, 6773, 13, 4706, 5174, 390, 1660, 17830, 3664, 14039, 287, 29901, 13, 9651, 17927, 29898, 21027, 29889, 29956, 25614, 29892, 376, 3089, 1273, 29879, 29901, 694, 9686, 9608, 1546, 1273, 29879, 322, 1273, 29879, 613, 12428, 29918, 333, 29892, 2752, 29918, 29878, 344, 29918, 978, 29892, 2731, 29918, 29878, 344, 29918, 978, 29897, 13, 9651, 565, 12428, 29918, 333, 297, 12428, 29879, 29918, 1217, 29918, 4993, 29901, 13, 18884, 12428, 29879, 29918, 1217, 29918, 4993, 29889, 5992, 29898, 7971, 29918, 333, 29897, 13, 9651, 565, 12428, 29918, 333, 451, 297, 12428, 29879, 29918, 816, 2004, 29918, 29885, 1608, 905, 29901, 13, 18884, 12428, 29879, 29918, 816, 2004, 29918, 29885, 1608, 905, 29889, 4397, 29898, 7971, 29918, 333, 29897, 13, 9651, 6773, 13, 13, 4706, 2752, 29918, 816, 2004, 353, 1051, 29918, 29882, 3554, 29961, 29900, 22322, 4993, 29918, 816, 2004, 2033, 13, 4706, 2731, 29918, 816, 2004, 353, 1051, 29918, 29882, 3554, 14352, 29896, 22322, 7854, 29918, 816, 2004, 2033, 13, 4706, 2731, 29918, 816, 2004, 29918, 29886, 21766, 353, 1051, 29918, 29882, 3554, 14352, 29896, 22322, 7854, 29918, 816, 2004, 29918, 29886, 21766, 2033, 13, 13, 4706, 2758, 29918, 941, 412, 29918, 4993, 353, 5852, 13, 4706, 1018, 29901, 13, 9651, 396, 3617, 2752, 9608, 13, 9651, 2752, 29918, 20464, 353, 12893, 29889, 20464, 29898, 4993, 29918, 29878, 344, 29918, 333, 29892, 2752, 29918, 816, 2004, 29892, 525, 949, 1495, 13, 13, 9651, 2752, 29918, 4530, 29918, 2271, 353, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 4993, 29918, 29878, 344, 29918, 333, 467, 657, 877, 4530, 29918, 2271, 742, 6213, 29897, 13, 9651, 2731, 29918, 4530, 29918, 2271, 353, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 7854, 29918, 29878, 344, 29918, 333, 467, 657, 877, 4530, 29918, 2271, 742, 6213, 29897, 13, 13, 9651, 396, 11796, 29872, 278, 2752, 3988, 13, 9651, 2752, 29918, 2271, 353, 1051, 29898, 4993, 29918, 20464, 29889, 29880, 29888, 1983, 29906, 7810, 1983, 29898, 29880, 29888, 1983, 3790, 29915, 6078, 2396, 6874, 29889, 23176, 29892, 525, 978, 2396, 1024, 29892, 525, 2084, 2396, 2224, 7690, 5975, 3101, 29961, 29900, 29962, 13, 9651, 2752, 29918, 2271, 353, 4770, 23174, 29918, 4993, 29918, 2271, 29898, 4993, 29918, 2271, 29892, 2752, 29918, 4530, 29918, 2271, 29922, 4993, 29918, 4530, 29918, 2271, 29892, 2731, 29918, 4530, 29918, 2271, 29922, 7854, 29918, 4530, 29918, 2271, 29892, 2752, 29918, 816, 2004, 29922, 4993, 29918, 816, 2004, 29897, 13, 13, 9651, 396, 960, 278, 2009, 29918, 333, 338, 451, 2307, 297, 278, 6782, 8600, 29892, 817, 304, 10272, 278, 12551, 3988, 13, 9651, 565, 12428, 29918, 333, 451, 297, 1301, 25534, 29901, 13, 13, 18884, 396, 6088, 2758, 260, 4085, 2752, 4603, 29892, 451, 7146, 1873, 29889, 13, 18884, 396, 2758, 29918, 941, 412, 29918, 4993, 353, 12421, 3366, 9536, 29918, 941, 412, 29918, 4993, 3108, 565, 313, 5552, 322, 376, 9536, 29918, 941, 412, 29918, 4993, 29908, 297, 12421, 29897, 1683, 5852, 13, 18884, 2758, 29918, 941, 412, 29918, 4993, 353, 5852, 13, 13, 18884, 396, 7338, 355, 278, 15562, 8600, 411, 2009, 8393, 13, 18884, 6782, 29918, 4351, 29918, 1853, 353, 376, 23711, 29968, 29908, 13, 18884, 6782, 29918, 22992, 29918, 1853, 353, 376, 23711, 29968, 29908, 13, 18884, 26556, 29892, 6963, 29918, 14627, 353, 5852, 29892, 6213, 13, 18884, 565, 12893, 29889, 275, 29918, 941, 412, 29918, 29878, 344, 29898, 4993, 29918, 29878, 344, 29918, 333, 29897, 470, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 4993, 29918, 29878, 344, 29918, 333, 467, 657, 877, 303, 6751, 29918, 12403, 742, 7700, 1125, 13, 462, 1678, 6963, 29918, 14627, 353, 6963, 29918, 14627, 29918, 2997, 13, 462, 1678, 6782, 29918, 4351, 29918, 1853, 353, 376, 29911, 3301, 29923, 29908, 13, 462, 1678, 565, 451, 2758, 29918, 941, 412, 29918, 4993, 29901, 13, 462, 4706, 565, 12428, 29918, 333, 451, 297, 12428, 29879, 29918, 6194, 29918, 941, 412, 29918, 4993, 29901, 13, 462, 9651, 12428, 29879, 29918, 6194, 29918, 941, 412, 29918, 4993, 29889, 4397, 29898, 7971, 29918, 333, 29897, 13, 462, 4706, 565, 12428, 29918, 333, 297, 12428, 29879, 29918, 1217, 29918, 4993, 29901, 13, 462, 9651, 12428, 29879, 29918, 1217, 29918, 4993, 29889, 5992, 29898, 7971, 29918, 333, 29897, 13, 462, 4706, 6773, 13, 13, 18884, 565, 12893, 29889, 275, 29918, 941, 412, 29918, 29878, 344, 29898, 7854, 29918, 29878, 344, 29918, 333, 1125, 13, 462, 1678, 26556, 353, 7700, 13, 462, 1678, 6782, 29918, 22992, 29918, 1853, 353, 376, 29911, 3301, 29923, 29908, 13, 13, 18884, 396, 3617, 12551, 9608, 13, 18884, 2731, 29918, 20464, 353, 12893, 29889, 20464, 29898, 7854, 29918, 29878, 344, 29918, 333, 29892, 2731, 29918, 816, 2004, 29892, 525, 3539, 1495, 13, 13, 18884, 396, 11796, 29872, 278, 12551, 3142, 13, 18884, 2731, 29918, 2271, 353, 4770, 4282, 29918, 7854, 29918, 2271, 29898, 6078, 29922, 6078, 29892, 1024, 29922, 978, 29892, 13, 462, 462, 9651, 9608, 29922, 7854, 29918, 20464, 29892, 13, 462, 462, 9651, 2731, 29918, 29878, 344, 29918, 5552, 29879, 29922, 13073, 29889, 29878, 344, 29918, 5552, 29879, 29898, 7854, 29918, 29878, 344, 29918, 333, 511, 13, 462, 462, 9651, 2731, 29918, 275, 29918, 4801, 837, 262, 4695, 29922, 13073, 29889, 29878, 344, 29918, 3888, 29898, 7854, 29918, 29878, 344, 29918, 333, 29897, 1839, 4801, 837, 262, 4695, 7464, 13, 462, 462, 9651, 2731, 29918, 275, 29918, 941, 412, 29922, 13073, 29889, 275, 29918, 941, 412, 29918, 29878, 344, 29898, 7854, 29918, 29878, 344, 29918, 333, 511, 13, 462, 462, 9651, 9657, 29918, 15697, 29922, 8977, 29918, 15697, 29892, 13, 462, 462, 9651, 337, 2202, 29918, 2798, 29922, 276, 2202, 29918, 2798, 29892, 13, 462, 462, 9651, 6354, 29922, 10072, 29897, 13, 18884, 2731, 29918, 2271, 353, 4770, 23174, 29918, 7854, 29918, 2271, 29898, 7854, 29918, 2271, 29892, 2731, 29918, 4530, 29918, 2271, 29922, 7854, 29918, 4530, 29918, 2271, 29892, 2731, 29918, 816, 2004, 29922, 7854, 29918, 816, 2004, 29897, 13, 13, 18884, 396, 3617, 2731, 2913, 5993, 13, 18884, 2731, 29918, 1028, 562, 300, 4476, 353, 6213, 13, 18884, 565, 2731, 29918, 20464, 29889, 15697, 322, 525, 1062, 2760, 29918, 15697, 29915, 297, 2731, 29918, 20464, 29889, 15697, 322, 320, 13, 462, 4706, 2731, 29918, 20464, 29889, 15697, 1839, 1062, 2760, 29918, 15697, 2033, 322, 525, 3493, 29918, 6979, 29915, 297, 2731, 29918, 20464, 29889, 15697, 1839, 1062, 2760, 29918, 15697, 2033, 29901, 13, 462, 1678, 2731, 29918, 1028, 562, 300, 4476, 353, 2731, 29918, 20464, 29889, 15697, 1839, 1062, 2760, 29918, 15697, 16215, 3493, 29918, 6979, 2033, 13, 13, 18884, 671, 29918, 666, 29894, 29946, 353, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 4993, 29918, 29878, 344, 29918, 333, 467, 657, 877, 1509, 29918, 666, 29894, 29946, 742, 7700, 29897, 470, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 7854, 29918, 29878, 344, 29918, 333, 467, 657, 877, 1509, 29918, 666, 29894, 29946, 742, 7700, 29897, 13, 13, 18884, 396, 679, 7029, 29918, 3069, 718, 9406, 29918, 8552, 718, 18871, 11815, 13, 18884, 9406, 29918, 8552, 353, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 7854, 29918, 29878, 344, 29918, 333, 467, 657, 877, 710, 919, 29918, 8552, 742, 7700, 29897, 13, 18884, 285, 1372, 29918, 23525, 353, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 7854, 29918, 29878, 344, 29918, 333, 467, 657, 877, 615, 29879, 742, 6213, 29897, 13, 18884, 18871, 29918, 15619, 353, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 7854, 29918, 29878, 344, 29918, 333, 467, 657, 877, 10867, 29918, 15619, 742, 6213, 29897, 13, 18884, 565, 2752, 29918, 4530, 29918, 2271, 1275, 525, 29887, 2395, 2396, 13, 462, 1678, 285, 1372, 29918, 23525, 353, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 4993, 29918, 29878, 344, 29918, 333, 467, 657, 877, 615, 29879, 742, 6213, 29897, 13, 18884, 2752, 29918, 23705, 375, 29918, 29734, 29918, 333, 353, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 4993, 29918, 29878, 344, 29918, 333, 467, 657, 877, 23705, 375, 29918, 29734, 29918, 333, 742, 6213, 29897, 13, 18884, 2731, 29918, 23705, 375, 29918, 29734, 29918, 333, 353, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 7854, 29918, 29878, 344, 29918, 333, 467, 657, 877, 23705, 375, 29918, 29734, 29918, 333, 742, 6213, 29897, 13, 13, 18884, 565, 6782, 10154, 1275, 525, 615, 29879, 29941, 29915, 322, 451, 285, 1372, 29918, 23525, 29901, 13, 462, 1678, 17927, 29898, 21027, 29889, 11432, 29892, 525, 14994, 3381, 390, 1660, 1273, 29879, 383, 9375, 5352, 451, 3342, 448, 18581, 5690, 5195, 14130, 1273, 29879, 742, 2731, 29918, 29878, 344, 29918, 978, 29892, 12428, 29918, 333, 29897, 13, 462, 1678, 6773, 13, 18884, 565, 6782, 10154, 1275, 525, 23705, 375, 29915, 322, 313, 1333, 2731, 29918, 23705, 375, 29918, 29734, 29918, 333, 470, 451, 2752, 29918, 23705, 375, 29918, 29734, 29918, 333, 1125, 13, 462, 1678, 17927, 29898, 21027, 29889, 11432, 29892, 525, 14994, 3381, 390, 1660, 1273, 29879, 402, 2127, 375, 16248, 8393, 451, 3342, 448, 18581, 5690, 5195, 14130, 1273, 29879, 742, 2731, 29918, 29878, 344, 29918, 978, 29892, 12428, 29918, 333, 29897, 13, 462, 1678, 6773, 13, 18884, 565, 337, 2202, 29918, 2798, 338, 6213, 29901, 13, 462, 1678, 337, 2202, 29918, 2798, 353, 29871, 29900, 13, 18884, 7029, 29918, 3069, 353, 6629, 13, 18884, 565, 285, 1372, 29918, 23525, 29901, 13, 462, 1678, 285, 1372, 29918, 1761, 353, 285, 1372, 29918, 23525, 29889, 5451, 28165, 1159, 13, 462, 1678, 7029, 29918, 3069, 353, 285, 1372, 29918, 1761, 29961, 29900, 29962, 13, 13, 18884, 565, 337, 2202, 29918, 1228, 29918, 615, 29879, 29901, 13, 462, 1678, 7029, 29918, 3069, 353, 285, 1372, 29918, 1761, 29961, 276, 2202, 29918, 2798, 1273, 7431, 29898, 615, 29879, 29918, 1761, 4638, 13, 13, 18884, 396, 3617, 278, 1423, 2083, 8845, 13705, 313, 9290, 29892, 2752, 29892, 12551, 470, 1716, 29897, 13, 18884, 11539, 29918, 3198, 2083, 353, 525, 20313, 29915, 13, 18884, 565, 451, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 7854, 29918, 29878, 344, 29918, 333, 467, 657, 877, 27902, 29918, 3198, 2083, 742, 5852, 1125, 13, 462, 1678, 565, 451, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 4993, 29918, 29878, 344, 29918, 333, 467, 657, 877, 27902, 29918, 3198, 2083, 742, 5852, 1125, 13, 462, 4706, 11539, 29918, 3198, 2083, 353, 525, 9290, 29915, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 11539, 29918, 3198, 2083, 353, 525, 4993, 29915, 13, 18884, 1683, 29901, 13, 462, 1678, 565, 451, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 4993, 29918, 29878, 344, 29918, 333, 467, 657, 877, 27902, 29918, 3198, 2083, 742, 5852, 1125, 13, 462, 4706, 11539, 29918, 3198, 2083, 353, 525, 23848, 29915, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 11539, 29918, 3198, 2083, 353, 525, 20313, 29915, 13, 13, 18884, 2752, 29918, 29878, 344, 29918, 3198, 2083, 29879, 353, 679, 29918, 29878, 344, 29918, 23765, 29918, 3198, 2083, 29879, 29898, 4993, 29918, 29878, 344, 29918, 333, 29892, 4867, 29922, 7924, 29897, 13, 18884, 2731, 29918, 29878, 344, 29918, 3198, 2083, 29879, 353, 679, 29918, 29878, 344, 29918, 23765, 29918, 3198, 2083, 29879, 29898, 7854, 29918, 29878, 344, 29918, 333, 29892, 4867, 29922, 7924, 29897, 13, 13, 18884, 3619, 29918, 3198, 2083, 29918, 7039, 353, 731, 29898, 4993, 29918, 29878, 344, 29918, 3198, 2083, 29879, 467, 1639, 2042, 29898, 7854, 29918, 29878, 344, 29918, 3198, 2083, 29879, 29897, 13, 13, 18884, 565, 7431, 29898, 9435, 29918, 3198, 2083, 29918, 7039, 29897, 1275, 29871, 29900, 29901, 13, 462, 1678, 17927, 29898, 21027, 29889, 11690, 29892, 525, 3782, 3619, 1423, 2083, 1158, 29889, 1798, 9215, 12551, 871, 29889, 1495, 13, 462, 1678, 11539, 29918, 3198, 2083, 353, 525, 23848, 29915, 13, 13, 18884, 396, 383, 453, 278, 6782, 8600, 3704, 934, 29918, 19635, 13, 18884, 934, 29918, 19635, 353, 11117, 3827, 29918, 333, 2396, 12428, 29918, 333, 29892, 13, 462, 462, 525, 6078, 2396, 6874, 29892, 13, 462, 462, 525, 978, 2396, 1024, 29892, 13, 462, 462, 525, 10072, 2396, 6354, 29892, 13, 462, 462, 525, 3827, 29918, 1853, 2396, 10729, 1542, 29889, 26813, 20322, 1001, 29892, 13, 462, 462, 525, 4351, 29918, 1853, 2396, 6782, 29918, 4351, 29918, 1853, 29892, 13, 462, 462, 525, 22992, 29918, 1853, 2396, 6782, 29918, 22992, 29918, 1853, 29892, 13, 462, 462, 525, 4351, 29918, 29878, 344, 2396, 2752, 29918, 29878, 344, 29918, 978, 29892, 13, 462, 462, 525, 22992, 29918, 29878, 344, 2396, 2731, 29918, 29878, 344, 29918, 978, 29892, 13, 462, 462, 525, 4351, 29918, 29878, 344, 29918, 333, 2396, 2752, 29918, 29878, 344, 29918, 333, 29892, 13, 462, 462, 525, 7854, 29918, 29878, 344, 29918, 333, 2396, 2731, 29918, 29878, 344, 29918, 333, 29892, 13, 462, 462, 525, 5325, 675, 2396, 6262, 29892, 13, 462, 462, 525, 3487, 29945, 2396, 22821, 29945, 29892, 13, 462, 462, 525, 328, 1358, 29941, 29906, 2396, 594, 1358, 29941, 29906, 29892, 13, 462, 462, 525, 27902, 29918, 3198, 2083, 2396, 11539, 29918, 3198, 2083, 29892, 13, 462, 462, 525, 4993, 29918, 23705, 375, 29918, 29734, 29918, 333, 2396, 2752, 29918, 23705, 375, 29918, 29734, 29918, 333, 29892, 13, 462, 462, 525, 7854, 29918, 23705, 375, 29918, 29734, 29918, 333, 2396, 2731, 29918, 23705, 375, 29918, 29734, 29918, 333, 29913, 13, 13, 18884, 565, 3517, 29918, 1131, 3456, 29918, 333, 29901, 13, 462, 1678, 934, 29918, 19635, 1839, 24957, 29918, 1131, 3456, 29918, 333, 2033, 353, 3517, 29918, 1131, 3456, 29918, 333, 13, 13, 18884, 1301, 25534, 29961, 7971, 29918, 333, 29962, 353, 11117, 3827, 29918, 333, 2396, 12428, 29918, 333, 29892, 13, 462, 462, 268, 525, 816, 13826, 2396, 4770, 1202, 29918, 23712, 29918, 816, 13826, 29898, 816, 13826, 11759, 7854, 29918, 816, 2004, 1402, 6068, 29918, 816, 13826, 29922, 29903, 4897, 15082, 3352, 29918, 8618, 4986, 3217, 8547, 511, 13, 462, 462, 268, 525, 10149, 2396, 3633, 29892, 13, 462, 462, 268, 396, 525, 4351, 29918, 26045, 2396, 518, 4993, 29918, 2271, 1402, 13, 462, 462, 268, 525, 29879, 2863, 2396, 17288, 29878, 344, 29892, 2752, 29918, 2271, 29892, 2752, 29918, 29878, 344, 29918, 333, 29892, 24034, 29892, 1544, 29918, 661, 9292, 29897, 1402, 13, 462, 462, 268, 525, 7854, 29918, 26045, 2396, 518, 7854, 29918, 2271, 1402, 13, 462, 462, 268, 525, 4351, 29918, 1028, 562, 300, 4476, 2396, 6213, 29892, 13, 462, 462, 268, 525, 7854, 29918, 1028, 562, 300, 4476, 2396, 2731, 29918, 1028, 562, 300, 4476, 29892, 13, 462, 462, 268, 525, 957, 3539, 2396, 26556, 29892, 13, 462, 462, 268, 525, 1182, 292, 29918, 14627, 2396, 6963, 29918, 14627, 29892, 13, 462, 462, 268, 525, 8552, 29918, 12687, 29918, 29880, 361, 5410, 2396, 9657, 29918, 15697, 29889, 657, 877, 29880, 361, 5410, 742, 29871, 29896, 29955, 29906, 29947, 29900, 29900, 511, 13, 462, 462, 268, 525, 23176, 29918, 3069, 2396, 7029, 29918, 3069, 29892, 13, 462, 462, 268, 525, 21731, 29918, 710, 8963, 2396, 525, 6921, 742, 13, 462, 462, 268, 525, 7491, 29918, 333, 2396, 5751, 29918, 333, 29892, 13, 462, 462, 268, 525, 1445, 29918, 19635, 2396, 934, 29918, 19635, 29892, 13, 462, 462, 268, 525, 7854, 29918, 816, 2004, 29918, 29886, 21766, 2396, 2731, 29918, 816, 2004, 29918, 29886, 21766, 29913, 13, 18884, 565, 2473, 29882, 459, 29901, 13, 462, 1678, 1301, 25534, 29961, 7971, 29918, 333, 22322, 4713, 4861, 459, 2033, 353, 5852, 13, 462, 1678, 1301, 25534, 29961, 7971, 29918, 333, 22322, 11228, 29918, 3827, 29918, 333, 2033, 353, 12428, 29918, 333, 13, 18884, 565, 9406, 29918, 8552, 29901, 13, 462, 1678, 1301, 25534, 29961, 7971, 29918, 333, 22322, 710, 919, 29918, 8552, 2033, 353, 9406, 29918, 8552, 13, 18884, 565, 671, 29918, 666, 29894, 29946, 29901, 13, 462, 1678, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1509, 29918, 666, 29894, 29946, 2033, 353, 5852, 13, 18884, 565, 18871, 29918, 15619, 322, 12893, 29889, 275, 29918, 941, 412, 29918, 29878, 344, 29898, 7854, 29918, 29878, 344, 29918, 333, 1125, 13, 462, 1678, 1018, 29901, 13, 462, 4706, 1301, 25534, 29961, 7971, 29918, 333, 22322, 10867, 29918, 15619, 2033, 353, 938, 29898, 10867, 29918, 15619, 29897, 13, 462, 4706, 17927, 29898, 21027, 29889, 18525, 29892, 525, 2528, 287, 18871, 11815, 304, 6782, 29889, 1495, 13, 462, 1678, 5174, 7865, 2392, 29901, 13, 462, 4706, 17927, 29898, 21027, 29889, 29956, 25614, 29892, 525, 23323, 451, 731, 18871, 29918, 15619, 363, 1273, 29879, 29889, 19928, 367, 6043, 29889, 742, 2731, 29918, 2271, 29897, 13, 462, 4706, 1209, 13, 9651, 1683, 29901, 13, 18884, 396, 6088, 2758, 260, 4085, 2752, 4603, 29892, 451, 7146, 1873, 29889, 13, 18884, 2758, 29918, 941, 412, 29918, 4993, 353, 9657, 29918, 15697, 29889, 657, 877, 9536, 29918, 941, 412, 29918, 4993, 742, 6213, 29897, 13, 13, 18884, 396, 1939, 1423, 3447, 565, 278, 3517, 697, 338, 263, 2473, 29882, 459, 470, 451, 29889, 13, 18884, 396, 14402, 584, 5399, 565, 278, 1857, 29871, 6782, 338, 2253, 1135, 278, 3517, 697, 13, 18884, 565, 2473, 29882, 459, 29901, 13, 462, 1678, 6773, 13, 13, 18884, 396, 450, 6782, 712, 6742, 9251, 338, 263, 2473, 29882, 459, 29892, 541, 445, 697, 338, 1513, 29889, 13, 18884, 396, 2538, 300, 278, 8974, 29892, 3349, 278, 2473, 29882, 459, 7353, 13, 18884, 565, 1301, 25534, 29961, 7971, 29918, 333, 1822, 657, 877, 4713, 4861, 459, 742, 7700, 1125, 13, 462, 1678, 1301, 25534, 29961, 7971, 29918, 333, 1822, 7323, 877, 4713, 4861, 459, 742, 6213, 29897, 13, 462, 1678, 1301, 25534, 29961, 7971, 29918, 333, 22322, 29879, 2863, 2033, 353, 5159, 13, 13, 18884, 1857, 29918, 4993, 29918, 275, 29918, 941, 412, 353, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1182, 292, 29918, 14627, 2033, 13, 18884, 716, 29918, 4993, 29918, 275, 29918, 941, 412, 353, 12893, 29889, 275, 29918, 941, 412, 29918, 29878, 344, 29898, 4993, 29918, 29878, 344, 29918, 333, 29897, 470, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 4993, 29918, 29878, 344, 29918, 333, 467, 657, 877, 303, 6751, 29918, 12403, 742, 7700, 29897, 13, 13, 18884, 565, 716, 29918, 4993, 29918, 275, 29918, 941, 412, 322, 451, 2758, 29918, 941, 412, 29918, 4993, 29901, 13, 462, 1678, 6773, 13, 13, 18884, 565, 1857, 29918, 4993, 29918, 275, 29918, 941, 412, 322, 451, 716, 29918, 4993, 29918, 275, 29918, 941, 412, 470, 320, 13, 462, 4706, 716, 29918, 4993, 29918, 275, 29918, 941, 412, 322, 451, 1857, 29918, 4993, 29918, 275, 29918, 941, 412, 29901, 13, 462, 1678, 396, 323, 4085, 322, 20579, 8974, 1818, 451, 367, 1304, 472, 278, 1021, 931, 29889, 13, 462, 1678, 396, 20370, 3013, 5923, 8974, 443, 15033, 29892, 470, 23764, 599, 5923, 2752, 411, 278, 716, 2752, 29889, 13, 13, 462, 1678, 396, 10987, 278, 1900, 24034, 4249, 5923, 8974, 13, 462, 1678, 20847, 29918, 3332, 29918, 661, 9292, 353, 6213, 13, 462, 1678, 363, 11091, 29918, 4993, 297, 1301, 25534, 29961, 7971, 29918, 333, 22322, 29879, 2863, 2033, 29901, 13, 462, 4706, 565, 20847, 29918, 3332, 29918, 661, 9292, 338, 6213, 29901, 13, 462, 9651, 20847, 29918, 3332, 29918, 661, 9292, 353, 11091, 29918, 4993, 29961, 29941, 29962, 13, 462, 9651, 6773, 13, 462, 4706, 565, 11091, 29918, 4993, 29961, 29941, 29962, 338, 451, 6213, 322, 11091, 29918, 4993, 29961, 29941, 29962, 1405, 20847, 29918, 3332, 29918, 661, 9292, 29901, 13, 462, 9651, 20847, 29918, 3332, 29918, 661, 9292, 353, 11091, 29918, 4993, 29961, 29941, 29962, 13, 13, 462, 1678, 396, 960, 24034, 310, 278, 716, 2752, 338, 2253, 29889, 1551, 5186, 24034, 29892, 5821, 20579, 975, 323, 4085, 29889, 13, 462, 1678, 565, 20847, 29918, 3332, 29918, 661, 9292, 338, 6213, 470, 313, 661, 9292, 1405, 20847, 29918, 3332, 29918, 661, 9292, 29897, 470, 313, 661, 9292, 6736, 20847, 29918, 3332, 29918, 661, 9292, 322, 1857, 29918, 4993, 29918, 275, 29918, 941, 412, 1125, 13, 462, 4706, 1301, 25534, 29961, 7971, 29918, 333, 22322, 29879, 2863, 2033, 353, 5159, 13, 462, 4706, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1182, 292, 29918, 14627, 2033, 353, 6963, 29918, 14627, 29918, 2997, 565, 716, 29918, 4993, 29918, 275, 29918, 941, 412, 1683, 6213, 13, 462, 4706, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 4351, 29918, 1853, 2033, 353, 525, 29911, 3301, 29923, 29915, 565, 716, 29918, 4993, 29918, 275, 29918, 941, 412, 1683, 525, 23711, 29968, 29915, 13, 462, 4706, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 4351, 29918, 29878, 344, 2033, 353, 364, 344, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 6773, 13, 13, 18884, 565, 1857, 29918, 4993, 29918, 275, 29918, 941, 412, 322, 716, 29918, 4993, 29918, 275, 29918, 941, 412, 29901, 13, 462, 1678, 396, 2999, 323, 4085, 2752, 1634, 506, 294, 526, 451, 6068, 297, 383, 9375, 29941, 29889, 13, 462, 1678, 396, 20370, 3013, 278, 2030, 2752, 29889, 1394, 23764, 372, 411, 278, 716, 697, 29889, 13, 462, 1678, 565, 24034, 1405, 1301, 25534, 29961, 7971, 29918, 333, 22322, 29879, 2863, 2033, 29961, 29900, 3816, 29941, 29962, 470, 313, 661, 9292, 1275, 1301, 25534, 29961, 7971, 29918, 333, 22322, 29879, 2863, 2033, 29961, 29900, 3816, 29941, 29962, 322, 1544, 29918, 661, 9292, 529, 1301, 25534, 29961, 7971, 29918, 333, 22322, 29879, 2863, 2033, 29961, 29900, 3816, 29946, 29962, 1125, 13, 462, 4706, 1301, 25534, 29961, 7971, 29918, 333, 22322, 29879, 2863, 2033, 353, 5159, 13, 462, 4706, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1182, 292, 29918, 14627, 2033, 353, 6963, 29918, 14627, 29918, 2997, 13, 462, 4706, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 4351, 29918, 29878, 344, 2033, 353, 364, 344, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 6773, 13, 13, 18884, 1301, 25534, 29961, 7971, 29918, 333, 22322, 29879, 2863, 13359, 4397, 3552, 29878, 344, 29892, 2752, 29918, 2271, 29892, 2752, 29918, 29878, 344, 29918, 333, 29892, 24034, 29892, 1544, 29918, 661, 9292, 876, 13, 18884, 396, 565, 697, 2752, 756, 4889, 5641, 29894, 29946, 29892, 4889, 5641, 29894, 29946, 363, 278, 3353, 4982, 13, 18884, 671, 29918, 666, 29894, 29946, 353, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 4993, 29918, 29878, 344, 29918, 333, 467, 657, 877, 1509, 29918, 666, 29894, 29946, 742, 7700, 29897, 13, 18884, 565, 671, 29918, 666, 29894, 29946, 29901, 13, 462, 1678, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1509, 29918, 666, 29894, 29946, 2033, 353, 5852, 13, 13, 4706, 5174, 8960, 29901, 13, 9651, 17927, 29898, 21027, 29889, 11341, 1806, 2965, 1964, 29892, 376, 2451, 9559, 746, 1811, 304, 679, 6782, 363, 2009, 1273, 29879, 6160, 1273, 313, 7971, 29918, 333, 511, 5566, 29918, 3888, 29922, 5574, 29897, 13, 9651, 2867, 13, 13, 1678, 396, 8454, 438, 1367, 29907, 13189, 29940, 29914, 29999, 2304, 639, 12551, 322, 3669, 1037, 390, 1660, 29879, 29936, 13, 1678, 396, 15894, 671, 310, 7223, 525, 3398, 29883, 29918, 5924, 29915, 390, 1660, 5352, 13, 1678, 363, 12428, 29918, 333, 297, 1301, 25534, 29901, 13, 4706, 671, 29918, 3398, 29883, 353, 7700, 13, 4706, 2731, 29918, 29878, 344, 29918, 333, 353, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 7854, 29918, 29878, 344, 29918, 333, 2033, 13, 4706, 565, 525, 3398, 29883, 29918, 5924, 29915, 297, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 7854, 29918, 29878, 344, 29918, 333, 1125, 13, 9651, 671, 29918, 3398, 29883, 353, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 7854, 29918, 29878, 344, 29918, 333, 29897, 1839, 3398, 29883, 29918, 5924, 2033, 13, 4706, 1683, 29901, 13, 9651, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1509, 29918, 3398, 29883, 2033, 353, 671, 29918, 3398, 29883, 13, 9651, 6773, 13, 4706, 363, 2752, 297, 1301, 25534, 29961, 7971, 29918, 333, 22322, 29879, 2863, 2033, 29901, 13, 9651, 2752, 29918, 29878, 344, 29918, 333, 353, 2752, 29961, 29906, 29962, 13, 9651, 565, 525, 3398, 29883, 29918, 5924, 29915, 297, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 4993, 29918, 29878, 344, 29918, 333, 1125, 13, 18884, 671, 29918, 3398, 29883, 353, 671, 29918, 3398, 29883, 322, 12893, 29889, 29878, 344, 29918, 5552, 29879, 29898, 4993, 29918, 29878, 344, 29918, 333, 29897, 1839, 3398, 29883, 29918, 5924, 2033, 13, 9651, 1683, 29901, 13, 18884, 671, 29918, 3398, 29883, 353, 7700, 13, 9651, 565, 451, 671, 29918, 3398, 29883, 29901, 13, 18884, 2867, 13, 4706, 396, 438, 1367, 29907, 5993, 674, 367, 13877, 363, 278, 3633, 310, 445, 22024, 571, 13, 4706, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1509, 29918, 3398, 29883, 2033, 353, 671, 29918, 3398, 29883, 13, 13, 1678, 363, 12428, 29918, 333, 297, 3509, 29889, 24535, 8552, 29898, 3286, 25534, 1125, 13, 4706, 396, 960, 278, 6782, 338, 263, 2473, 29882, 459, 29892, 817, 304, 1653, 278, 19697, 1634, 506, 294, 29892, 19697, 7274, 322, 278, 1301, 25534, 13, 4706, 565, 1301, 25534, 29961, 7971, 29918, 333, 1822, 657, 877, 4713, 4861, 459, 742, 7700, 1125, 13, 9651, 3847, 29918, 3827, 353, 6213, 13, 9651, 6874, 353, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 6078, 2033, 13, 9651, 1024, 353, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 978, 2033, 13, 9651, 1051, 29918, 4713, 4861, 459, 29892, 9657, 29918, 15697, 29892, 337, 2202, 29918, 2798, 353, 2473, 29918, 29882, 459, 29918, 8977, 29961, 7971, 29918, 333, 29962, 13, 9651, 3847, 29918, 24830, 353, 5159, 13, 13, 9651, 363, 8171, 297, 1051, 29918, 4713, 4861, 459, 29901, 13, 18884, 396, 8171, 353, 11117, 4993, 29918, 29878, 344, 29918, 333, 2396, 2752, 29918, 29878, 344, 29918, 333, 29892, 525, 4993, 29918, 816, 2004, 2396, 525, 29879, 1758, 742, 525, 4993, 29918, 816, 2004, 29918, 29886, 21766, 2396, 405, 29892, 525, 7854, 29918, 29878, 344, 29918, 333, 2396, 2731, 29918, 29878, 344, 29918, 333, 29892, 525, 7854, 29918, 816, 2004, 2396, 525, 29879, 1758, 742, 525, 7854, 29918, 816, 2004, 29918, 29886, 21766, 2396, 405, 29913, 13, 18884, 2752, 29918, 816, 2004, 353, 8171, 1839, 4993, 29918, 816, 2004, 2033, 13, 18884, 2752, 29918, 29878, 344, 29918, 333, 353, 8171, 1839, 4993, 29918, 29878, 344, 29918, 333, 2033, 13, 18884, 2731, 29918, 29878, 344, 29918, 333, 353, 8171, 1839, 7854, 29918, 29878, 344, 29918, 333, 2033, 13, 18884, 2752, 29918, 29878, 344, 29918, 978, 353, 12893, 29889, 29878, 344, 29918, 978, 29898, 4993, 29918, 29878, 344, 29918, 333, 29897, 13, 18884, 2731, 29918, 29878, 344, 29918, 978, 353, 12893, 29889, 29878, 344, 29918, 978, 29898, 7854, 29918, 29878, 344, 29918, 333, 29897, 13, 18884, 2731, 29918, 29878, 344, 29918, 1365, 353, 679, 29918, 29878, 344, 29918, 1365, 29898, 29878, 344, 29918, 333, 29922, 29882, 459, 1839, 7854, 29918, 29878, 344, 29918, 333, 7464, 4867, 29922, 7924, 29897, 13, 18884, 6782, 29918, 4351, 29918, 1853, 353, 376, 23711, 29968, 29908, 13, 18884, 6782, 29918, 22992, 29918, 1853, 353, 376, 23711, 29968, 29908, 13, 18884, 2758, 29918, 941, 412, 29918, 4993, 353, 5852, 13, 18884, 396, 11796, 29872, 278, 2752, 3988, 29889, 1334, 1016, 29915, 29873, 817, 304, 5445, 278, 364, 344, 29918, 20698, 322, 364, 344, 29918, 5552, 29879, 363, 278, 19697, 390, 1660, 29879, 4556, 372, 756, 2307, 1063, 2309, 1434, 13, 18884, 2752, 29918, 20464, 353, 12893, 29889, 20464, 29898, 4993, 29918, 29878, 344, 29918, 333, 29892, 2752, 29918, 816, 2004, 29892, 525, 949, 1495, 13, 18884, 2752, 29918, 2271, 353, 1051, 29898, 4993, 29918, 20464, 29889, 29880, 29888, 1983, 29906, 7810, 1983, 29898, 29880, 29888, 1983, 3790, 29915, 6078, 2396, 6874, 29889, 23176, 29892, 525, 978, 2396, 1024, 29892, 525, 2084, 2396, 6213, 7690, 5975, 3101, 29961, 29900, 29962, 13, 13, 18884, 565, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 7854, 29918, 29878, 344, 29918, 333, 2033, 2804, 8171, 1839, 7854, 29918, 29878, 344, 29918, 333, 2033, 29901, 13, 462, 1678, 2066, 353, 518, 10998, 6078, 2396, 6874, 29892, 13, 462, 795, 525, 978, 2396, 1024, 29892, 13, 462, 795, 525, 13193, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 5325, 675, 7464, 13, 462, 795, 525, 328, 1358, 29941, 29906, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 328, 1358, 29941, 29906, 7464, 13, 462, 795, 525, 3487, 29945, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 3487, 29945, 7464, 13, 462, 795, 525, 3859, 2396, 525, 29907, 29915, 6525, 13, 462, 1678, 1018, 29901, 13, 462, 4706, 788, 29918, 3445, 506, 294, 29898, 29878, 344, 29918, 333, 29922, 29882, 459, 1839, 7854, 29918, 29878, 344, 29918, 333, 7464, 13, 462, 462, 268, 2066, 29922, 5325, 29892, 13, 462, 462, 268, 3633, 29922, 16491, 10601, 877, 4632, 742, 992, 29922, 7854, 29918, 29878, 344, 29918, 1365, 511, 13, 462, 462, 268, 11455, 29918, 485, 737, 3097, 29922, 8824, 29892, 13, 462, 462, 268, 8783, 29918, 7299, 29922, 8516, 29892, 13, 462, 462, 268, 4867, 29922, 7924, 29897, 13, 462, 1678, 5174, 8960, 408, 1059, 29901, 13, 462, 4706, 17927, 29898, 21027, 29889, 11432, 29892, 525, 26604, 4417, 1634, 506, 294, 1273, 29879, 16664, 29879, 373, 1273, 29879, 584, 1273, 29879, 742, 6874, 29892, 1024, 29892, 2731, 29918, 29878, 344, 29918, 978, 29892, 851, 29898, 2704, 876, 13, 13, 462, 1678, 12428, 29918, 15697, 353, 11117, 10072, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 10072, 7464, 13, 462, 462, 418, 525, 4993, 29918, 3445, 10123, 29918, 17471, 2396, 6213, 29892, 13, 462, 462, 418, 525, 29880, 361, 5410, 2396, 6213, 29892, 13, 462, 462, 418, 525, 6289, 29918, 6078, 2396, 6213, 29892, 13, 462, 462, 418, 525, 6289, 29918, 978, 2396, 6213, 29892, 13, 462, 462, 418, 525, 13193, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 5325, 675, 7464, 13, 462, 462, 418, 525, 3487, 29945, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 3487, 29945, 7464, 13, 462, 462, 418, 525, 328, 1358, 29941, 29906, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 328, 1358, 29941, 29906, 7464, 13, 462, 462, 418, 525, 29886, 21766, 2396, 6213, 29892, 13, 462, 462, 418, 525, 9536, 29918, 941, 412, 29918, 4993, 2396, 5852, 29913, 13, 462, 1678, 716, 29918, 7971, 353, 9521, 29918, 24830, 29898, 24830, 11759, 10998, 7854, 29918, 29878, 344, 29918, 333, 2396, 2731, 29918, 29878, 344, 29918, 333, 29892, 13, 462, 462, 462, 4706, 525, 6078, 2396, 6874, 29892, 13, 462, 462, 462, 4706, 525, 978, 2396, 1024, 29892, 13, 462, 462, 462, 4706, 525, 7491, 29918, 333, 2396, 525, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 742, 29871, 396, 360, 11770, 27308, 3553, 1304, 363, 2473, 29882, 459, 29889, 14402, 29901, 22108, 411, 3935, 5751, 29918, 333, 2748, 591, 508, 7353, 19697, 7274, 13, 462, 462, 462, 4706, 525, 15697, 2396, 12428, 29918, 15697, 29892, 13, 462, 462, 462, 4706, 525, 3827, 29918, 1853, 2396, 10729, 1542, 29889, 26813, 20322, 1001, 29892, 13, 462, 462, 462, 4706, 525, 276, 2202, 29918, 2798, 2396, 337, 2202, 29918, 2798, 29892, 13, 462, 462, 462, 4706, 525, 10149, 2396, 512, 1890, 10601, 877, 4632, 742, 992, 29922, 7854, 29918, 29878, 344, 29918, 1365, 511, 13, 462, 462, 462, 4706, 525, 3827, 287, 29918, 271, 2396, 12865, 29889, 12673, 29889, 3707, 28296, 1402, 4867, 29922, 7924, 29897, 13, 462, 1678, 396, 960, 263, 2009, 2307, 4864, 29892, 716, 29918, 7971, 674, 367, 385, 4069, 1051, 29889, 13, 462, 1678, 565, 451, 716, 29918, 7971, 29901, 13, 462, 4706, 396, 20768, 304, 4418, 599, 278, 19697, 7274, 718, 278, 2847, 697, 322, 6876, 278, 2473, 29882, 459, 2425, 13, 462, 4706, 17927, 29898, 21027, 29889, 29956, 25614, 29892, 525, 6857, 4861, 459, 584, 319, 2009, 2307, 4864, 363, 278, 6782, 1546, 1273, 29879, 322, 1273, 29879, 29889, 2811, 12611, 599, 278, 3847, 7274, 742, 2752, 29918, 29878, 344, 29918, 978, 29892, 2731, 29918, 29878, 344, 29918, 978, 29897, 13, 462, 4706, 3847, 29918, 24830, 29889, 4397, 29898, 7971, 29918, 333, 29897, 13, 462, 4706, 1018, 29901, 13, 462, 9651, 731, 29918, 24830, 29918, 3859, 29898, 3827, 29918, 4841, 29922, 3560, 29918, 24830, 29892, 716, 29918, 3859, 29922, 3089, 2792, 29889, 4519, 29902, 20566, 29892, 4867, 29922, 7924, 29897, 13, 462, 4706, 5174, 853, 23765, 10925, 29901, 13, 462, 9651, 17927, 29898, 21027, 29889, 11432, 29892, 525, 6857, 4861, 459, 584, 15808, 12611, 599, 278, 3847, 7274, 584, 1273, 29879, 742, 851, 29898, 3560, 29918, 24830, 876, 13, 13, 462, 4706, 396, 15154, 515, 278, 6782, 8600, 599, 278, 7274, 13, 462, 4706, 363, 3151, 29918, 7971, 29918, 333, 297, 3847, 29918, 24830, 29901, 13, 462, 9651, 1301, 25534, 29889, 7323, 29898, 2764, 29918, 7971, 29918, 333, 29892, 6213, 29897, 13, 462, 4706, 2867, 13, 462, 1678, 716, 29918, 7971, 29918, 333, 353, 716, 29918, 7971, 29961, 29900, 22322, 333, 2033, 13, 462, 1678, 3847, 29918, 24830, 29889, 4397, 29898, 1482, 29918, 7971, 29918, 333, 29897, 13, 462, 1678, 731, 29918, 24830, 29918, 3859, 29898, 3827, 29918, 4841, 11759, 1482, 29918, 7971, 29918, 333, 29892, 21251, 716, 29918, 3859, 29922, 3089, 2792, 29889, 11144, 29965, 3352, 29892, 4867, 29922, 7924, 29897, 13, 462, 1678, 17927, 29898, 21027, 29889, 18525, 29892, 525, 4373, 2009, 2825, 363, 278, 6782, 1546, 1273, 29879, 322, 1273, 29879, 584, 1273, 29879, 742, 2752, 29918, 29878, 344, 29918, 978, 29892, 2731, 29918, 29878, 344, 29918, 978, 29892, 716, 29918, 7971, 29918, 333, 29897, 13, 13, 462, 1678, 396, 2266, 591, 674, 10272, 278, 12551, 3988, 13, 462, 1678, 396, 3617, 12551, 9608, 13, 462, 1678, 2731, 29918, 29878, 344, 29918, 333, 353, 8171, 1839, 7854, 29918, 29878, 344, 29918, 333, 2033, 13, 462, 1678, 2731, 29918, 816, 2004, 353, 8171, 1839, 7854, 29918, 816, 2004, 2033, 13, 462, 1678, 2731, 29918, 20464, 353, 12893, 29889, 20464, 29898, 7854, 29918, 29878, 344, 29918, 333, 29892, 2731, 29918, 816, 2004, 29892, 525, 3539, 1495, 13, 13, 462, 1678, 396, 3617, 2731, 2913, 5993, 13, 462, 1678, 2731, 29918, 1028, 562, 300, 4476, 353, 6213, 13, 462, 1678, 565, 2731, 29918, 20464, 29889, 15697, 322, 525, 1062, 2760, 29918, 15697, 29915, 297, 2731, 29918, 20464, 29889, 15697, 322, 320, 13, 462, 9651, 2731, 29918, 20464, 29889, 15697, 1839, 1062, 2760, 29918, 15697, 2033, 322, 525, 3493, 29918, 6979, 29915, 297, 2731, 29918, 20464, 29889, 15697, 1839, 1062, 2760, 29918, 15697, 2033, 29901, 13, 462, 4706, 2731, 29918, 1028, 562, 300, 4476, 353, 2731, 29918, 20464, 29889, 15697, 1839, 1062, 2760, 29918, 15697, 16215, 3493, 29918, 6979, 2033, 13, 13, 462, 1678, 396, 11796, 29872, 278, 12551, 3142, 13, 462, 1678, 2731, 29918, 2271, 353, 4770, 4282, 29918, 7854, 29918, 2271, 29898, 6078, 29922, 6078, 29892, 1024, 29922, 978, 29892, 13, 462, 462, 18884, 9608, 29922, 7854, 29918, 20464, 29892, 13, 462, 462, 18884, 2731, 29918, 29878, 344, 29918, 5552, 29879, 29922, 13073, 29889, 29878, 344, 29918, 5552, 29879, 29898, 7854, 29918, 29878, 344, 29918, 333, 511, 13, 462, 462, 18884, 2731, 29918, 275, 29918, 4801, 837, 262, 4695, 29922, 13073, 29889, 29878, 344, 29918, 3888, 29898, 7854, 29918, 29878, 344, 29918, 333, 29897, 1839, 4801, 837, 262, 4695, 7464, 13, 462, 462, 18884, 2731, 29918, 275, 29918, 941, 412, 29922, 13073, 29889, 275, 29918, 941, 412, 29918, 29878, 344, 29898, 7854, 29918, 29878, 344, 29918, 333, 511, 13, 462, 462, 18884, 9657, 29918, 15697, 29922, 8977, 29918, 15697, 29892, 13, 462, 462, 18884, 337, 2202, 29918, 2798, 29922, 276, 2202, 29918, 2798, 29892, 13, 462, 462, 18884, 6354, 29922, 10072, 29897, 13, 13, 462, 1678, 396, 7338, 355, 278, 15562, 8600, 411, 2009, 8393, 13, 462, 1678, 26556, 29892, 6963, 29918, 14627, 353, 5852, 29892, 6213, 13, 462, 1678, 565, 12893, 29889, 275, 29918, 941, 412, 29918, 29878, 344, 29898, 4993, 29918, 29878, 344, 29918, 333, 1125, 13, 462, 4706, 6963, 29918, 14627, 353, 6963, 29918, 14627, 29918, 2997, 13, 462, 4706, 6782, 29918, 4351, 29918, 1853, 353, 376, 29911, 3301, 29923, 29908, 13, 462, 4706, 565, 451, 2758, 29918, 941, 412, 29918, 4993, 29901, 13, 462, 9651, 565, 12428, 29918, 333, 451, 297, 12428, 29879, 29918, 6194, 29918, 941, 412, 29918, 4993, 29901, 13, 462, 18884, 12428, 29879, 29918, 6194, 29918, 941, 412, 29918, 4993, 29889, 4397, 29898, 7971, 29918, 333, 29897, 13, 462, 9651, 565, 12428, 29918, 333, 297, 12428, 29879, 29918, 1217, 29918, 4993, 29901, 13, 462, 18884, 12428, 29879, 29918, 1217, 29918, 4993, 29889, 5992, 29898, 7971, 29918, 333, 29897, 13, 462, 9651, 6773, 13, 462, 1678, 565, 12893, 29889, 275, 29918, 941, 412, 29918, 29878, 344, 29898, 7854, 29918, 29878, 344, 29918, 333, 1125, 13, 462, 4706, 26556, 353, 7700, 13, 462, 4706, 6782, 29918, 22992, 29918, 1853, 353, 376, 29911, 3301, 29923, 29908, 13, 13, 462, 1678, 934, 29918, 19635, 353, 11117, 3827, 29918, 333, 2396, 716, 29918, 7971, 29918, 333, 29892, 13, 462, 462, 268, 525, 6078, 2396, 6874, 29892, 13, 462, 462, 268, 525, 978, 2396, 1024, 29892, 13, 462, 462, 268, 525, 10072, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 10072, 7464, 13, 462, 462, 268, 525, 3827, 29918, 1853, 2396, 10729, 1542, 29889, 26813, 20322, 1001, 29892, 13, 462, 462, 268, 525, 4351, 29918, 1853, 2396, 6782, 29918, 4351, 29918, 1853, 29892, 13, 462, 462, 268, 525, 22992, 29918, 1853, 2396, 6782, 29918, 22992, 29918, 1853, 29892, 13, 462, 462, 268, 525, 4351, 29918, 29878, 344, 2396, 2752, 29918, 29878, 344, 29918, 978, 29892, 13, 462, 462, 268, 525, 22992, 29918, 29878, 344, 2396, 2731, 29918, 29878, 344, 29918, 978, 29892, 13, 462, 462, 268, 525, 4351, 29918, 29878, 344, 29918, 333, 2396, 2752, 29918, 29878, 344, 29918, 333, 29892, 13, 462, 462, 268, 525, 7854, 29918, 29878, 344, 29918, 333, 2396, 2731, 29918, 29878, 344, 29918, 333, 29892, 13, 462, 462, 268, 525, 5325, 675, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 5325, 675, 7464, 13, 462, 462, 268, 525, 3487, 29945, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 3487, 29945, 7464, 13, 462, 462, 268, 525, 328, 1358, 29941, 29906, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 328, 1358, 29941, 29906, 7464, 13, 462, 462, 268, 525, 27902, 29918, 3198, 2083, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 27902, 29918, 3198, 2083, 7464, 13, 462, 462, 268, 525, 4993, 29918, 23705, 375, 29918, 29734, 29918, 333, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 4993, 29918, 23705, 375, 29918, 29734, 29918, 333, 7464, 13, 462, 462, 268, 525, 7854, 29918, 23705, 375, 29918, 29734, 29918, 333, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 7854, 29918, 23705, 375, 29918, 29734, 29918, 333, 2033, 29913, 13, 462, 1678, 1301, 25534, 29961, 1482, 29918, 7971, 29918, 333, 29962, 353, 11117, 3827, 29918, 333, 2396, 716, 29918, 7971, 29918, 333, 29892, 13, 462, 462, 632, 525, 11228, 29918, 3827, 29918, 333, 2396, 12428, 29918, 333, 29892, 13, 462, 462, 632, 525, 3560, 29918, 3827, 2396, 3847, 29918, 3827, 29892, 13, 462, 462, 632, 525, 10149, 2396, 512, 1890, 10601, 877, 4632, 5477, 13, 462, 462, 632, 525, 816, 13826, 2396, 4770, 1202, 29918, 23712, 29918, 816, 13826, 29898, 816, 13826, 11759, 7854, 29918, 816, 2004, 1402, 6068, 29918, 816, 13826, 29922, 29903, 4897, 15082, 3352, 29918, 8618, 4986, 3217, 8547, 511, 13, 462, 462, 632, 396, 525, 4351, 29918, 26045, 2396, 518, 4993, 29918, 2271, 1402, 13, 462, 462, 632, 525, 29879, 2863, 2396, 17288, 4993, 29918, 29878, 344, 29918, 978, 29892, 2752, 29918, 2271, 29892, 2752, 29918, 29878, 344, 29918, 333, 29892, 29871, 29900, 29892, 29871, 29900, 29897, 1402, 13, 462, 462, 632, 525, 7854, 29918, 26045, 2396, 518, 7854, 29918, 2271, 1402, 13, 462, 462, 632, 525, 4351, 29918, 1028, 562, 300, 4476, 2396, 6213, 29892, 13, 462, 462, 632, 525, 7854, 29918, 1028, 562, 300, 4476, 2396, 2731, 29918, 1028, 562, 300, 4476, 29892, 13, 462, 462, 632, 525, 957, 3539, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 957, 3539, 7464, 13, 462, 462, 632, 525, 1182, 292, 29918, 14627, 2396, 6963, 29918, 14627, 29892, 13, 462, 462, 632, 525, 8552, 29918, 12687, 29918, 29880, 361, 5410, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 8552, 29918, 12687, 29918, 29880, 361, 5410, 7464, 13, 462, 462, 632, 525, 23176, 29918, 3069, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 23176, 29918, 3069, 7464, 13, 462, 462, 632, 525, 21731, 29918, 710, 8963, 2396, 525, 6921, 742, 13, 462, 462, 632, 525, 7491, 29918, 333, 2396, 1301, 25534, 29961, 7971, 29918, 333, 22322, 7491, 29918, 333, 7464, 13, 462, 462, 632, 525, 4713, 4861, 459, 2396, 5852, 29892, 13, 462, 462, 632, 525, 1445, 29918, 19635, 2396, 934, 29918, 19635, 29913, 13, 462, 1678, 3847, 29918, 3827, 353, 716, 29918, 7971, 29918, 333, 13, 13, 18884, 1683, 29901, 13, 462, 1678, 396, 1152, 278, 1833, 8171, 29892, 591, 925, 817, 304, 1959, 278, 2752, 13, 462, 1678, 1301, 25534, 29961, 7971, 29918, 333, 22322, 3560, 29918, 3827, 2033, 353, 3847, 29918, 3827, 13, 462, 1678, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 4351, 29918, 29878, 344, 29918, 333, 2033, 353, 2752, 29918, 29878, 344, 29918, 333, 13, 462, 1678, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 4351, 29918, 29878, 344, 2033, 353, 2752, 29918, 29878, 344, 29918, 978, 13, 462, 1678, 396, 1334, 1207, 278, 11833, 393, 278, 8171, 338, 2360, 1754, 1549, 323, 3301, 29923, 13, 462, 1678, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1445, 29918, 19635, 16215, 4351, 29918, 1853, 2033, 353, 525, 23711, 29968, 29915, 13, 462, 1678, 1301, 25534, 29961, 7971, 29918, 333, 22322, 29879, 2863, 2033, 353, 17288, 4993, 29918, 29878, 344, 29918, 978, 29892, 2752, 29918, 2271, 29892, 2752, 29918, 29878, 344, 29918, 333, 29892, 29871, 29900, 29892, 29871, 29900, 4638, 13, 462, 1678, 1301, 25534, 29961, 7971, 29918, 333, 22322, 1182, 292, 29918, 14627, 2033, 353, 6963, 29918, 14627, 13, 4706, 565, 12428, 29918, 333, 297, 12428, 29879, 29918, 1217, 29918, 4993, 29901, 13, 9651, 12428, 29879, 29918, 1217, 29918, 4993, 29889, 5992, 29898, 7971, 29918, 333, 29897, 13, 4706, 565, 12428, 29918, 333, 297, 12428, 29879, 29918, 6194, 29918, 941, 412, 29918, 4993, 29901, 13, 9651, 12428, 29879, 29918, 6194, 29918, 941, 412, 29918, 4993, 29889, 5992, 29898, 7971, 29918, 333, 29897, 13, 4706, 565, 12428, 29918, 333, 297, 12428, 29879, 29918, 816, 2004, 29918, 29885, 1608, 905, 29901, 13, 9651, 12428, 29879, 29918, 816, 2004, 29918, 29885, 1608, 905, 29889, 5992, 29898, 7971, 29918, 333, 29897, 13, 13, 1678, 736, 1301, 25534, 29892, 12428, 29879, 29918, 1217, 29918, 4993, 29892, 12428, 29879, 29918, 816, 2004, 29918, 29885, 1608, 905, 29892, 12428, 29879, 29918, 6194, 29918, 941, 412, 29918, 4993, 13, 13, 13, 29992, 949, 29918, 7924, 13, 1753, 4770, 1761, 29918, 3286, 571, 29918, 24830, 29918, 392, 29918, 4993, 29918, 3445, 506, 294, 29898, 7827, 29918, 1287, 414, 29922, 29900, 29892, 15645, 29918, 4537, 29922, 29900, 29892, 4046, 29922, 8516, 29892, 6354, 29922, 8516, 29892, 13, 462, 462, 462, 9642, 29918, 27603, 29922, 8516, 29892, 20371, 267, 29922, 8516, 29892, 2009, 29918, 3859, 29922, 8516, 29892, 6782, 10154, 29922, 8516, 29892, 4867, 29922, 8516, 29897, 1599, 376, 1293, 29961, 23215, 552, 29962, 1115, 13, 1678, 9995, 13, 1678, 2391, 7274, 411, 2752, 1634, 506, 294, 13, 1678, 584, 3207, 3001, 29918, 1287, 414, 29901, 268, 9681, 310, 3001, 17162, 29889, 13, 1678, 584, 3207, 15645, 29918, 4537, 29901, 268, 5163, 310, 278, 14012, 15645, 29889, 13, 1678, 584, 3207, 4046, 29901, 9651, 8102, 310, 7274, 304, 10563, 29889, 13, 1678, 584, 3207, 6354, 29901, 308, 13414, 304, 367, 4629, 29889, 13, 1678, 584, 3207, 9642, 29918, 27603, 29901, 539, 9333, 1831, 7274, 9642, 1135, 445, 12315, 29889, 13, 1678, 584, 3207, 20371, 267, 29901, 632, 2391, 310, 364, 344, 29918, 333, 304, 1831, 7274, 29889, 13, 1678, 584, 3207, 6782, 10154, 29901, 268, 450, 6782, 5780, 408, 6790, 297, 5796, 3934, 29889, 16859, 29889, 13, 1678, 584, 3207, 4867, 29901, 3986, 5470, 4867, 304, 671, 29889, 13, 1678, 584, 18280, 29901, 18884, 2391, 29889, 13, 1678, 9995, 13, 13, 1678, 565, 2009, 29918, 3859, 338, 6213, 29901, 13, 4706, 2009, 29918, 3859, 353, 10729, 2792, 29889, 11144, 29965, 3352, 13, 13, 1678, 1014, 29918, 24830, 353, 4867, 29889, 1972, 29898, 9794, 29889, 3089, 29889, 333, 29892, 13, 462, 462, 4733, 29889, 3089, 29889, 7491, 29918, 333, 29892, 13, 462, 462, 4733, 29889, 3089, 29889, 6078, 29892, 13, 462, 462, 4733, 29889, 3089, 29889, 978, 29892, 13, 462, 462, 4733, 29889, 3089, 29889, 3487, 29945, 29892, 13, 462, 462, 4733, 29889, 3089, 29889, 328, 1358, 29941, 29906, 29892, 13, 462, 462, 4733, 29889, 3089, 29889, 13193, 29892, 13, 462, 462, 4733, 29889, 3089, 29889, 10072, 29892, 13, 462, 462, 4733, 29889, 3089, 29889, 15697, 29892, 13, 462, 462, 4733, 29889, 3089, 29889, 24957, 29918, 1131, 3456, 29918, 333, 29892, 13, 462, 462, 4733, 29889, 3089, 29889, 7854, 29918, 29878, 344, 29918, 333, 29892, 13, 462, 462, 4733, 29889, 3089, 29889, 276, 2202, 29918, 2798, 29892, 13, 462, 462, 4733, 29889, 3089, 29889, 10149, 29892, 13, 462, 462, 4733, 29889, 3089, 29889, 11600, 29918, 271, 29897, 320, 13, 4706, 869, 2541, 29918, 29882, 524, 29898, 9794, 29889, 3089, 29892, 376, 27992, 29898, 16244, 29903, 5195, 14130, 29903, 29918, 15631, 29925, 29918, 1254, 29909, 29918, 4897, 29928, 29918, 1367, 29990, 19123, 525, 11347, 1495, 320, 13, 4706, 869, 4572, 29898, 9794, 29889, 3089, 29889, 3859, 1275, 2009, 29918, 3859, 29897, 320, 13, 4706, 869, 4572, 29898, 9794, 29889, 3089, 29889, 3827, 29918, 1853, 1275, 10729, 1542, 29889, 26813, 20322, 1001, 29897, 320, 13, 4706, 869, 7122, 29898, 9794, 29889, 29934, 1660, 29892, 4733, 29889, 29934, 1660, 29889, 333, 1275, 4733, 29889, 3089, 29889, 7854, 29918, 29878, 344, 29918, 333, 29897, 320, 13, 4706, 869, 4572, 29898, 9794, 29889, 29934, 1660, 29889, 311, 22742, 1275, 2089, 3101, 320, 13, 4706, 869, 2098, 29918, 1609, 29898, 9794, 29889, 3089, 29889, 11600, 29918, 271, 29897, 320, 13, 4706, 869, 4572, 29898, 9794, 29889, 29934, 1660, 29889, 485, 737, 3097, 29889, 262, 29918, 3552, 29906, 29892, 29871, 29941, 29892, 29871, 29953, 29892, 29871, 29955, 4961, 13, 13, 1678, 565, 338, 8758, 29898, 3194, 29918, 27603, 29892, 12865, 29889, 12673, 1125, 13, 4706, 1014, 29918, 24830, 353, 1014, 29918, 24830, 29889, 4572, 29898, 9794, 29889, 3089, 29889, 3827, 287, 29918, 271, 529, 9642, 29918, 27603, 29897, 13, 13, 1678, 565, 6354, 29901, 13, 4706, 1014, 29918, 24830, 353, 1014, 29918, 24830, 29889, 4572, 29898, 9794, 29889, 3089, 29889, 10072, 1275, 6354, 29897, 13, 13, 1678, 396, 565, 263, 6782, 10154, 338, 6790, 1207, 1854, 304, 4175, 363, 1906, 7274, 322, 3394, 4475, 2380, 13, 1678, 565, 6782, 10154, 29901, 13, 4706, 1014, 29918, 24830, 353, 1014, 29918, 24830, 29889, 4572, 29898, 9794, 29889, 3089, 29889, 3286, 571, 10154, 1275, 6782, 10154, 29897, 13, 4706, 1014, 29918, 24830, 353, 1014, 29918, 24830, 29889, 2541, 29918, 29882, 524, 29898, 9794, 29889, 3089, 29892, 376, 27992, 29898, 16244, 29903, 5195, 14130, 29903, 29918, 15631, 29925, 29918, 1254, 29909, 29918, 29911, 4717, 29918, 17923, 29918, 1367, 29990, 19123, 525, 11347, 1495, 13, 1678, 1683, 29901, 13, 4706, 1014, 29918, 24830, 353, 1014, 29918, 24830, 29889, 2541, 29918, 29882, 524, 29898, 9794, 29889, 3089, 29892, 376, 27992, 29898, 16244, 29903, 5195, 14130, 29903, 29918, 15631, 29925, 29918, 1254, 29909, 29918, 4897, 29928, 29918, 1367, 29990, 19123, 525, 11347, 1495, 13, 13, 1678, 1014, 29918, 24830, 353, 4175, 29918, 7097, 29918, 1287, 29898, 7924, 29922, 7924, 29892, 2346, 29922, 1491, 29918, 24830, 29892, 3001, 29918, 28993, 29922, 7827, 29918, 1287, 414, 29892, 3244, 29918, 333, 29922, 24602, 29918, 4537, 29892, 6608, 29918, 11918, 2433, 24830, 29889, 333, 1495, 13, 13, 1678, 565, 4046, 29901, 13, 4706, 1014, 29918, 24830, 353, 1014, 29918, 24830, 29889, 13400, 29898, 13400, 29897, 13, 13, 1678, 1014, 29918, 24830, 353, 1014, 29918, 24830, 29889, 1491, 1972, 580, 13, 13, 1678, 2346, 353, 4867, 29889, 1972, 29898, 1491, 29918, 24830, 29889, 29883, 29889, 333, 29892, 13, 462, 3986, 1014, 29918, 24830, 29889, 29883, 29889, 7491, 29918, 333, 29892, 13, 462, 3986, 1014, 29918, 24830, 29889, 29883, 29889, 6078, 29892, 13, 462, 3986, 1014, 29918, 24830, 29889, 29883, 29889, 978, 29892, 13, 462, 3986, 1014, 29918, 24830, 29889, 29883, 29889, 3487, 29945, 29892, 13, 462, 3986, 1014, 29918, 24830, 29889, 29883, 29889, 328, 1358, 29941, 29906, 29892, 13, 462, 3986, 1014, 29918, 24830, 29889, 29883, 29889, 13193, 29892, 13, 462, 3986, 1014, 29918, 24830, 29889, 29883, 29889, 10072, 29892, 13, 462, 3986, 1014, 29918, 24830, 29889, 29883, 29889, 15697, 29892, 13, 462, 3986, 1014, 29918, 24830, 29889, 29883, 29889, 24957, 29918, 1131, 3456, 29918, 333, 29892, 13, 462, 3986, 1014, 29918, 24830, 29889, 29883, 29889, 7854, 29918, 29878, 344, 29918, 333, 29892, 13, 462, 3986, 1014, 29918, 24830, 29889, 29883, 29889, 10149, 29892, 13, 462, 3986, 4733, 29889, 29934, 1660, 2283, 29254, 362, 29889, 29878, 344, 29918, 333, 29892, 13, 462, 3986, 4733, 29889, 29934, 1660, 29889, 29878, 344, 29892, 13, 462, 3986, 4733, 29889, 29934, 1660, 29889, 4801, 837, 262, 4695, 29892, 13, 462, 3986, 4733, 29889, 29934, 1660, 29889, 29878, 344, 29918, 1853, 29892, 13, 462, 3986, 4733, 29889, 29934, 1660, 2283, 29254, 362, 29889, 2084, 29892, 13, 462, 3986, 1014, 29918, 24830, 29889, 29883, 29889, 276, 2202, 29918, 2798, 29892, 13, 462, 3986, 4733, 29889, 4435, 29889, 2271, 29892, 13, 462, 3986, 4733, 29889, 4435, 29889, 661, 9292, 29889, 1643, 703, 4993, 29918, 661, 9292, 4968, 13, 462, 3986, 4733, 29889, 27469, 29889, 661, 9292, 29889, 1643, 703, 19244, 29918, 661, 9292, 5783, 320, 13, 4706, 869, 2098, 29918, 1609, 29898, 1491, 29918, 24830, 29889, 29883, 29889, 11600, 29918, 271, 29897, 320, 13, 4706, 869, 5561, 7122, 29898, 9794, 29889, 29934, 1660, 2283, 29254, 362, 29892, 322, 23538, 1491, 29918, 24830, 29889, 29883, 29889, 6078, 1275, 4733, 29889, 29934, 1660, 2283, 29254, 362, 29889, 6078, 29892, 13, 462, 462, 462, 259, 1014, 29918, 24830, 29889, 29883, 29889, 978, 1275, 4733, 29889, 29934, 1660, 2283, 29254, 362, 29889, 978, 29892, 13, 462, 462, 462, 259, 4733, 29889, 29934, 1660, 2283, 29254, 362, 29889, 3859, 1275, 10088, 10123, 2792, 29889, 26612, 6227, 6181, 29892, 13, 462, 462, 462, 259, 1014, 29918, 24830, 29889, 29883, 29889, 7854, 29918, 29878, 344, 29918, 333, 2804, 4733, 29889, 29934, 1660, 2283, 29254, 362, 29889, 29878, 344, 29918, 333, 876, 320, 13, 4706, 869, 2541, 29918, 29882, 524, 29898, 9794, 29889, 29934, 1660, 2283, 29254, 362, 29892, 15691, 2380, 29898, 3445, 506, 294, 5195, 7390, 2965, 3289, 29918, 21738, 19123, 525, 11347, 1495, 320, 13, 4706, 869, 5561, 7122, 29898, 9794, 29889, 29934, 1660, 29892, 322, 23538, 9794, 29889, 29934, 1660, 29889, 333, 1275, 4733, 29889, 29934, 1660, 2283, 29254, 362, 29889, 29878, 344, 29918, 333, 29892, 13, 462, 462, 1678, 4733, 29889, 29934, 1660, 29889, 311, 22742, 1275, 2089, 22130, 320, 13, 4706, 869, 5561, 7122, 29898, 9794, 29889, 4435, 29892, 322, 23538, 1491, 29918, 24830, 29889, 29883, 29889, 333, 1275, 4733, 29889, 4435, 29889, 3827, 29918, 333, 29892, 13, 462, 462, 539, 4733, 29889, 29934, 1660, 29889, 333, 1275, 4733, 29889, 4435, 29889, 29878, 344, 29918, 333, 876, 320, 13, 4706, 869, 2541, 29918, 29882, 524, 29898, 9794, 29889, 4435, 29892, 15691, 2380, 29898, 29879, 2863, 7791, 4574, 27266, 29918, 21738, 19123, 525, 11347, 1495, 320, 13, 4706, 869, 5561, 7122, 29898, 9794, 29889, 27469, 29892, 322, 23538, 1491, 29918, 24830, 29889, 29883, 29889, 7854, 29918, 29878, 344, 29918, 333, 1275, 4733, 29889, 27469, 29889, 7854, 29918, 29878, 344, 29918, 333, 29892, 13, 462, 462, 308, 4733, 29889, 29934, 1660, 2283, 29254, 362, 29889, 29878, 344, 29918, 333, 1275, 4733, 29889, 27469, 29889, 4351, 29918, 29878, 344, 29918, 333, 876, 320, 13, 4706, 869, 2541, 29918, 29882, 524, 29898, 9794, 29889, 27469, 29892, 15691, 2380, 29898, 5721, 2925, 360, 9047, 2190, 27266, 29918, 21738, 19123, 525, 11347, 1495, 13, 13, 1678, 396, 565, 6782, 10154, 6790, 29892, 1831, 871, 278, 7274, 988, 278, 2752, 20371, 267, 526, 731, 701, 363, 278, 6782, 5780, 13, 1678, 565, 6782, 10154, 29901, 13, 4706, 2346, 353, 2346, 29889, 1491, 1972, 580, 13, 4706, 2346, 353, 4867, 29889, 1972, 29898, 1972, 29897, 320, 13, 9651, 869, 7122, 29898, 9794, 29889, 29934, 1660, 25098, 29254, 362, 29892, 4733, 29889, 29934, 1660, 25098, 29254, 362, 29889, 29878, 344, 29918, 333, 1275, 2346, 29889, 29883, 29889, 29878, 344, 29918, 333, 29897, 320, 13, 9651, 869, 4572, 29898, 9794, 29889, 29934, 1660, 25098, 29254, 362, 29889, 1989, 1275, 525, 3286, 571, 10154, 742, 13, 462, 1678, 4733, 29889, 29934, 1660, 25098, 29254, 362, 29889, 1767, 29889, 4561, 877, 29001, 718, 6782, 10154, 718, 14210, 8785, 13, 13, 1678, 565, 20371, 267, 29901, 13, 4706, 1121, 353, 5159, 13, 4706, 363, 2944, 297, 2346, 29889, 497, 7295, 13, 9651, 2731, 29918, 29878, 344, 29918, 333, 353, 2944, 29961, 29896, 29900, 29962, 13, 9651, 565, 2731, 29918, 29878, 344, 29918, 333, 297, 20371, 267, 29901, 13, 18884, 1121, 29889, 4397, 29898, 667, 29897, 13, 4706, 736, 1121, 13, 1678, 736, 2346, 29889, 497, 580, 13, 13, 13, 29992, 20736, 284, 29918, 7924, 13, 1753, 4770, 842, 29918, 3286, 571, 29918, 3859, 29898, 23176, 29918, 3069, 29892, 6782, 29918, 333, 29892, 716, 29918, 3859, 29892, 4867, 29922, 8516, 1125, 13, 1678, 9995, 13, 1678, 10318, 278, 2106, 310, 263, 6782, 29889, 383, 2234, 4047, 2705, 565, 278, 6782, 29918, 333, 947, 451, 1863, 29889, 13, 1678, 584, 3207, 7029, 29918, 3069, 29901, 29871, 22012, 7029, 3495, 408, 1347, 297, 3402, 9608, 597, 29888, 29939, 5200, 29901, 637, 13, 1678, 584, 3207, 6782, 29918, 333, 29901, 1678, 3985, 6782, 4982, 1178, 408, 263, 1347, 29889, 13, 1678, 584, 3207, 716, 29918, 3859, 29901, 418, 1570, 2106, 408, 1347, 29889, 13, 1678, 584, 3207, 4867, 29901, 4706, 5470, 4867, 304, 671, 29889, 13, 1678, 9995, 13, 13, 1678, 2407, 29918, 11808, 877, 3221, 29889, 3827, 29889, 842, 29918, 3286, 571, 29918, 3859, 1495, 13, 13, 1678, 1018, 29901, 13, 4706, 1948, 2798, 353, 4867, 29889, 1972, 29898, 9794, 29889, 3089, 467, 4572, 29918, 1609, 29898, 23176, 29918, 333, 29922, 3286, 571, 29918, 333, 467, 5504, 3319, 29915, 3859, 2396, 716, 29918, 3859, 29892, 525, 21402, 29918, 271, 2396, 12865, 29889, 12673, 29889, 329, 29883, 3707, 580, 1118, 12231, 675, 29918, 7924, 29922, 8824, 29897, 13, 1678, 5174, 17100, 537, 2392, 408, 1059, 29901, 13, 4706, 12020, 9723, 3934, 2451, 29898, 2704, 29889, 5085, 29897, 13, 13, 1678, 565, 451, 1948, 2798, 29901, 13, 4706, 12020, 853, 23765, 10925, 703, 4300, 571, 1273, 29879, 373, 1273, 29879, 2106, 1273, 29879, 2609, 367, 4784, 1213, 1273, 313, 3286, 571, 29918, 333, 29892, 7029, 29918, 3069, 29892, 716, 29918, 3859, 876, 13, 13, 13, 29992, 949, 29918, 7924, 13, 1753, 4770, 657, 29918, 348, 16515, 29918, 29878, 344, 29918, 4841, 29898, 16453, 29892, 4867, 29922, 8516, 29892, 17927, 29922, 21027, 29889, 1188, 1125, 13, 1678, 9995, 13, 1678, 584, 3207, 17927, 29901, 259, 28379, 10200, 630, 17927, 393, 508, 367, 4502, 515, 278, 5432, 1146, 331, 787, 470, 12424, 29889, 13, 1678, 3617, 443, 16515, 364, 344, 18999, 363, 263, 2183, 5858, 584, 1303, 29892, 2436, 29892, 5217, 13, 1678, 9995, 13, 13, 1678, 565, 5858, 451, 297, 6024, 949, 742, 525, 3539, 742, 525, 8143, 2033, 29901, 13, 4706, 17927, 29898, 21027, 29889, 11432, 29892, 376, 29956, 29373, 5858, 6790, 584, 1273, 29879, 29908, 1273, 313, 16453, 876, 13, 4706, 736, 5159, 13, 1678, 1820, 353, 525, 348, 16515, 29918, 29995, 29879, 29918, 29878, 344, 29918, 4841, 29915, 1273, 5858, 13, 1678, 1121, 353, 5195, 29954, 2725, 29918, 7068, 8476, 29889, 657, 29898, 1989, 29897, 13, 1678, 565, 338, 8758, 29898, 2914, 29892, 1939, 1917, 1125, 13, 4706, 1018, 29901, 13, 9651, 17927, 29898, 21027, 29889, 18525, 29892, 376, 27132, 443, 16515, 1273, 29879, 20371, 267, 29908, 1273, 5858, 29897, 13, 9651, 20847, 3097, 29918, 1989, 353, 525, 485, 737, 3097, 29918, 29995, 29879, 29915, 1273, 5858, 13, 9651, 443, 16515, 29918, 2288, 267, 353, 1051, 29918, 2288, 267, 29898, 26705, 3790, 485, 737, 3097, 29918, 1989, 29901, 7700, 1118, 4867, 29922, 7924, 29897, 13, 9651, 443, 16515, 29918, 29878, 344, 29918, 4841, 353, 518, 29878, 344, 1839, 333, 2033, 363, 364, 344, 297, 443, 16515, 29918, 2288, 267, 29962, 13, 9651, 5195, 29954, 2725, 29918, 7068, 8476, 29889, 842, 29898, 1989, 29892, 443, 16515, 29918, 29878, 344, 29918, 4841, 29897, 13, 9651, 736, 443, 16515, 29918, 29878, 344, 29918, 4841, 13, 4706, 5174, 8960, 29901, 13, 9651, 17927, 29898, 21027, 29889, 11432, 29892, 376, 17776, 304, 11086, 443, 16515, 1273, 29879, 20371, 267, 29892, 1059, 29908, 1273, 313, 16453, 511, 5566, 29918, 3888, 29922, 5574, 29897, 13, 9651, 736, 5159, 13, 1678, 736, 1121, 13, 13, 13, 1753, 4770, 1202, 29918, 23712, 29918, 816, 13826, 29898, 816, 13826, 29892, 6068, 29918, 816, 13826, 1125, 13, 1678, 9995, 13, 1678, 3462, 278, 15878, 27715, 304, 263, 1051, 310, 27715, 13, 1678, 584, 3207, 27715, 29901, 965, 1102, 13826, 408, 1881, 29889, 13, 1678, 584, 3207, 6068, 29918, 816, 13826, 29901, 259, 2178, 20937, 27715, 29892, 871, 1438, 508, 367, 297, 278, 1962, 29889, 13, 1678, 584, 18280, 29901, 462, 2391, 310, 27715, 13, 1678, 9995, 13, 13, 1678, 736, 29918, 816, 13826, 353, 5159, 13, 1678, 363, 11380, 297, 27715, 29901, 13, 4706, 565, 11380, 297, 6068, 29918, 816, 13826, 29901, 13, 9651, 736, 29918, 816, 13826, 29889, 4397, 29898, 816, 2004, 29897, 13, 9651, 363, 11380, 29918, 1958, 29918, 816, 2004, 297, 17727, 29889, 29903, 3210, 29923, 2303, 29918, 23827, 29889, 657, 29898, 816, 2004, 29892, 5159, 1125, 13, 18884, 565, 11380, 29918, 1958, 29918, 816, 2004, 451, 297, 6068, 29918, 816, 13826, 29901, 13, 462, 1678, 6773, 13, 18884, 1683, 29901, 13, 462, 1678, 736, 29918, 816, 13826, 29889, 4397, 29898, 816, 2004, 29918, 1958, 29918, 816, 2004, 29897, 13, 1678, 736, 1051, 29898, 842, 29898, 2457, 29918, 816, 13826, 876, 13, 13, 13, 29992, 20736, 284, 29918, 7924, 13, 1753, 4770, 1359, 29918, 262, 9917, 29918, 5721, 2925, 29918, 3177, 29898, 29878, 344, 29918, 333, 29892, 4867, 29922, 8516, 1125, 13, 1678, 9995, 13, 1678, 4309, 7925, 278, 297, 9917, 12770, 310, 278, 5418, 3983, 363, 697, 2943, 29889, 13, 1678, 584, 3207, 364, 344, 29918, 333, 29901, 1678, 390, 1660, 1178, 304, 2254, 278, 12770, 363, 29889, 13, 1678, 584, 3207, 4867, 29901, 259, 450, 6535, 16441, 304, 671, 29889, 13, 1678, 584, 18280, 29901, 308, 13343, 2729, 3983, 1203, 29889, 13, 1678, 9995, 13, 13, 1678, 1121, 353, 5195, 29954, 2725, 29918, 7068, 8476, 29889, 657, 877, 262, 9917, 29918, 287, 2710, 29918, 29995, 29879, 29915, 1273, 851, 29898, 29878, 344, 29918, 333, 876, 13, 1678, 565, 338, 8758, 29898, 2914, 29892, 1939, 1917, 1125, 13, 4706, 297, 9917, 29918, 287, 2710, 353, 6571, 13, 4706, 363, 5418, 297, 4867, 29889, 1972, 29898, 9794, 29889, 27469, 467, 7122, 29898, 9794, 29889, 29934, 1660, 29892, 4733, 29889, 29934, 1660, 29889, 333, 1275, 4733, 29889, 27469, 29889, 4351, 29918, 29878, 344, 29918, 333, 29897, 320, 13, 18884, 869, 4572, 29898, 9794, 29889, 27469, 29889, 7854, 29918, 29878, 344, 29918, 333, 1275, 364, 344, 29918, 333, 29897, 320, 13, 18884, 869, 4572, 29898, 9794, 29889, 29934, 1660, 29889, 311, 22742, 1275, 2089, 16655, 497, 7295, 13, 9651, 565, 5418, 29889, 661, 9292, 338, 6213, 29901, 13, 18884, 6773, 13, 9651, 24034, 353, 5418, 29889, 661, 9292, 565, 5418, 29889, 661, 9292, 6736, 29871, 29900, 1683, 29871, 29900, 13, 9651, 297, 9917, 29918, 287, 2710, 29961, 19244, 29889, 4351, 29918, 29878, 344, 29918, 333, 29962, 353, 24034, 13, 4706, 5195, 29954, 2725, 29918, 7068, 8476, 29889, 842, 877, 262, 9917, 29918, 287, 2710, 29918, 29995, 29879, 29915, 1273, 851, 29898, 29878, 344, 29918, 333, 511, 297, 9917, 29918, 287, 2710, 29897, 13, 4706, 1121, 353, 297, 9917, 29918, 287, 2710, 13, 1678, 736, 1121, 13, 13, 13, 29992, 20736, 284, 29918, 7924, 13, 1753, 4770, 1359, 29918, 449, 17696, 29918, 5721, 2925, 29918, 3177, 29898, 29878, 344, 29918, 333, 29892, 4867, 29922, 8516, 1125, 13, 1678, 9995, 13, 1678, 4309, 7925, 278, 714, 17696, 12770, 310, 278, 5418, 3983, 363, 697, 2943, 29889, 13, 1678, 584, 3207, 364, 344, 29918, 333, 29901, 1678, 390, 1660, 1178, 304, 2254, 278, 12770, 363, 29889, 13, 1678, 584, 3207, 4867, 29901, 259, 450, 6535, 16441, 304, 671, 29889, 13, 1678, 584, 18280, 29901, 308, 13343, 2729, 3983, 1203, 29889, 13, 1678, 9995, 13, 13, 1678, 1121, 353, 5195, 29954, 2725, 29918, 7068, 8476, 29889, 657, 877, 449, 17696, 29918, 287, 2710, 29918, 29995, 29879, 29915, 1273, 851, 29898, 29878, 344, 29918, 333, 876, 13, 1678, 565, 338, 8758, 29898, 2914, 29892, 1939, 1917, 1125, 13, 4706, 714, 17696, 29918, 287, 2710, 353, 6571, 13, 4706, 363, 5418, 297, 4867, 29889, 1972, 29898, 9794, 29889, 27469, 467, 7122, 29898, 9794, 29889, 29934, 1660, 29892, 4733, 29889, 29934, 1660, 29889, 333, 1275, 4733, 29889, 27469, 29889, 7854, 29918, 29878, 344, 29918, 333, 2144, 13, 462, 1669, 869, 4572, 29898, 9794, 29889, 27469, 29889, 4351, 29918, 29878, 344, 29918, 333, 1275, 364, 344, 29918, 333, 2144, 13, 462, 1669, 869, 4572, 29898, 9794, 29889, 29934, 1660, 29889, 311, 22742, 1275, 2089, 16655, 497, 7295, 13, 9651, 565, 5418, 29889, 661, 9292, 338, 6213, 29901, 13, 18884, 6773, 13, 9651, 24034, 353, 5418, 29889, 661, 9292, 565, 5418, 29889, 661, 9292, 6736, 29871, 29900, 1683, 29871, 29900, 13, 9651, 714, 17696, 29918, 287, 2710, 29961, 19244, 29889, 7854, 29918, 29878, 344, 29918, 333, 29962, 353, 24034, 13, 4706, 5195, 29954, 2725, 29918, 7068, 8476, 29889, 842, 877, 449, 17696, 29918, 287, 2710, 29918, 29995, 29879, 29915, 1273, 851, 29898, 29878, 344, 29918, 333, 511, 714, 17696, 29918, 287, 2710, 29897, 13, 4706, 1121, 353, 714, 17696, 29918, 287, 2710, 13, 1678, 736, 1121, 13, 13, 13, 29992, 20736, 284, 29918, 7924, 13, 1753, 4770, 1359, 29918, 29878, 344, 29918, 11027, 29898, 29878, 344, 29918, 333, 29892, 4867, 29922, 8516, 1125, 13, 1678, 9995, 13, 1678, 4309, 7925, 278, 390, 1660, 6055, 515, 7090, 29889, 13, 1678, 584, 3207, 364, 344, 29918, 333, 29901, 1678, 390, 1660, 1178, 304, 2254, 278, 6055, 515, 29889, 13, 1678, 584, 3207, 4867, 29901, 259, 450, 6535, 16441, 304, 671, 29889, 13, 1678, 584, 18280, 29901, 308, 360, 919, 310, 390, 1660, 19215, 13, 1678, 9995, 13, 13, 1678, 1121, 353, 5195, 29954, 2725, 29918, 7068, 8476, 29889, 657, 877, 29878, 344, 29918, 11027, 29918, 29995, 29879, 29915, 1273, 851, 29898, 29878, 344, 29918, 333, 876, 13, 1678, 565, 338, 8758, 29898, 2914, 29892, 1939, 1917, 1125, 13, 4706, 1121, 353, 364, 12846, 629, 29889, 657, 29918, 29878, 344, 29918, 3888, 29898, 29878, 344, 29922, 657, 29918, 29878, 344, 29918, 978, 29898, 29878, 344, 29918, 333, 29922, 29878, 344, 29918, 333, 29892, 4867, 29922, 7924, 511, 13, 462, 462, 268, 992, 29922, 657, 29918, 29878, 344, 29918, 1365, 29898, 29878, 344, 29918, 333, 29922, 29878, 344, 29918, 333, 29892, 4867, 29922, 7924, 511, 13, 462, 462, 268, 4867, 29922, 7924, 29897, 13, 4706, 5195, 29954, 2725, 29918, 7068, 8476, 29889, 842, 877, 29878, 344, 29918, 11027, 29918, 29995, 29879, 29915, 1273, 851, 29898, 29878, 344, 29918, 333, 511, 1121, 29897, 13, 1678, 736, 1121, 13, 2 ]
official/vision/beta/projects/yolo/modeling/factory.py
mcasanova1445/models
1
153961
# Copyright 2022 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Contains common factory functions yolo neural networks.""" from absl import logging from official.vision.beta.modeling.backbones import factory as backbone_factory from official.vision.beta.modeling.decoders import factory as decoder_factory from official.vision.beta.projects.yolo.configs import yolo from official.vision.beta.projects.yolo.modeling import yolo_model from official.vision.beta.projects.yolo.modeling.heads import yolo_head from official.vision.beta.projects.yolo.modeling.layers import detection_generator def build_yolo_detection_generator(model_config: yolo.Yolo, anchor_boxes): """Builds yolo detection generator.""" model = detection_generator.YoloLayer( classes=model_config.num_classes, anchors=anchor_boxes, iou_thresh=model_config.detection_generator.iou_thresh, nms_thresh=model_config.detection_generator.nms_thresh, max_boxes=model_config.detection_generator.max_boxes, pre_nms_points=model_config.detection_generator.pre_nms_points, nms_type=model_config.detection_generator.nms_type, box_type=model_config.detection_generator.box_type.get(), path_scale=model_config.detection_generator.path_scales.get(), scale_xy=model_config.detection_generator.scale_xy.get(), label_smoothing=model_config.loss.label_smoothing, use_scaled_loss=model_config.loss.use_scaled_loss, update_on_repeat=model_config.loss.update_on_repeat, truth_thresh=model_config.loss.truth_thresh.get(), loss_type=model_config.loss.box_loss_type.get(), max_delta=model_config.loss.max_delta.get(), iou_normalizer=model_config.loss.iou_normalizer.get(), cls_normalizer=model_config.loss.cls_normalizer.get(), object_normalizer=model_config.loss.object_normalizer.get(), ignore_thresh=model_config.loss.ignore_thresh.get(), objectness_smooth=model_config.loss.objectness_smooth.get()) return model def build_yolo_head(input_specs, model_config: yolo.Yolo, l2_regularization): """Builds yolo head.""" min_level = min(map(int, input_specs.keys())) max_level = max(map(int, input_specs.keys())) head = yolo_head.YoloHead( min_level=min_level, max_level=max_level, classes=model_config.num_classes, boxes_per_level=model_config.anchor_boxes.anchors_per_scale, norm_momentum=model_config.norm_activation.norm_momentum, norm_epsilon=model_config.norm_activation.norm_epsilon, kernel_regularizer=l2_regularization, smart_bias=model_config.head.smart_bias) return head def build_yolo(input_specs, model_config, l2_regularization): """Builds yolo model.""" backbone = model_config.backbone.get() anchor_dict, _ = model_config.anchor_boxes.get( backbone.min_level, backbone.max_level) backbone = backbone_factory.build_backbone(input_specs, model_config.backbone, model_config.norm_activation, l2_regularization) decoder = decoder_factory.build_decoder(backbone.output_specs, model_config, l2_regularization) head = build_yolo_head(decoder.output_specs, model_config, l2_regularization) detection_generator_obj = build_yolo_detection_generator(model_config, anchor_dict) model = yolo_model.Yolo( backbone=backbone, decoder=decoder, head=head, detection_generator=detection_generator_obj) model.build(input_specs.shape) model.summary(print_fn=logging.info) losses = detection_generator_obj.get_losses() return model, losses
[ 1, 396, 14187, 1266, 29871, 29906, 29900, 29906, 29906, 450, 323, 6073, 17907, 13189, 943, 29889, 2178, 26863, 2538, 9841, 29889, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 13, 29937, 366, 1122, 451, 671, 445, 934, 5174, 297, 752, 13036, 411, 278, 19245, 29889, 13, 29937, 887, 1122, 4017, 263, 3509, 310, 278, 19245, 472, 13, 29937, 13, 29937, 268, 1732, 597, 1636, 29889, 4288, 29889, 990, 29914, 506, 11259, 29914, 27888, 1430, 1660, 29899, 29906, 29889, 29900, 13, 29937, 13, 29937, 25870, 3734, 491, 22903, 4307, 470, 15502, 304, 297, 5007, 29892, 7047, 13, 29937, 13235, 1090, 278, 19245, 338, 13235, 373, 385, 376, 3289, 8519, 29908, 350, 3289, 3235, 29892, 13, 29937, 399, 1806, 8187, 2692, 399, 1718, 29934, 13566, 29059, 6323, 8707, 29928, 22122, 29903, 8079, 13764, 29979, 476, 22255, 29892, 2845, 4653, 470, 2411, 2957, 29889, 13, 29937, 2823, 278, 19245, 363, 278, 2702, 4086, 14765, 1076, 11239, 322, 13, 29937, 27028, 1090, 278, 19245, 29889, 13, 13, 15945, 29908, 21409, 3619, 12529, 3168, 343, 3543, 19677, 14379, 1213, 15945, 13, 13, 3166, 633, 2536, 1053, 12183, 13, 3166, 6221, 29889, 4924, 29889, 3571, 29889, 4299, 292, 29889, 1627, 29890, 2873, 1053, 12529, 408, 1250, 15933, 29918, 14399, 13, 3166, 6221, 29889, 4924, 29889, 3571, 29889, 4299, 292, 29889, 7099, 397, 414, 1053, 12529, 408, 1602, 6119, 29918, 14399, 13, 13, 3166, 6221, 29889, 4924, 29889, 3571, 29889, 16418, 29889, 29891, 3543, 29889, 2917, 29879, 1053, 343, 3543, 13, 3166, 6221, 29889, 4924, 29889, 3571, 29889, 16418, 29889, 29891, 3543, 29889, 4299, 292, 1053, 343, 3543, 29918, 4299, 13, 3166, 6221, 29889, 4924, 29889, 3571, 29889, 16418, 29889, 29891, 3543, 29889, 4299, 292, 29889, 2813, 29879, 1053, 343, 3543, 29918, 2813, 13, 3166, 6221, 29889, 4924, 29889, 3571, 29889, 16418, 29889, 29891, 3543, 29889, 4299, 292, 29889, 29277, 1053, 15326, 29918, 27959, 13, 13, 13, 1753, 2048, 29918, 29891, 3543, 29918, 29881, 2650, 428, 29918, 27959, 29898, 4299, 29918, 2917, 29901, 343, 3543, 29889, 29979, 3543, 29892, 17360, 29918, 1884, 267, 1125, 13, 29871, 9995, 8893, 29879, 343, 3543, 15326, 15299, 1213, 15945, 13, 29871, 1904, 353, 15326, 29918, 27959, 29889, 29979, 3543, 14420, 29898, 13, 418, 4413, 29922, 4299, 29918, 2917, 29889, 1949, 29918, 13203, 29892, 13, 418, 23791, 943, 29922, 25367, 29918, 1884, 267, 29892, 13, 418, 474, 283, 29918, 386, 3781, 29922, 4299, 29918, 2917, 29889, 29881, 2650, 428, 29918, 27959, 29889, 29875, 283, 29918, 386, 3781, 29892, 13, 418, 302, 1516, 29918, 386, 3781, 29922, 4299, 29918, 2917, 29889, 29881, 2650, 428, 29918, 27959, 29889, 29876, 1516, 29918, 386, 3781, 29892, 13, 418, 4236, 29918, 1884, 267, 29922, 4299, 29918, 2917, 29889, 29881, 2650, 428, 29918, 27959, 29889, 3317, 29918, 1884, 267, 29892, 13, 418, 758, 29918, 29876, 1516, 29918, 9748, 29922, 4299, 29918, 2917, 29889, 29881, 2650, 428, 29918, 27959, 29889, 1457, 29918, 29876, 1516, 29918, 9748, 29892, 13, 418, 302, 1516, 29918, 1853, 29922, 4299, 29918, 2917, 29889, 29881, 2650, 428, 29918, 27959, 29889, 29876, 1516, 29918, 1853, 29892, 13, 418, 3800, 29918, 1853, 29922, 4299, 29918, 2917, 29889, 29881, 2650, 428, 29918, 27959, 29889, 1884, 29918, 1853, 29889, 657, 3285, 13, 418, 2224, 29918, 7052, 29922, 4299, 29918, 2917, 29889, 29881, 2650, 428, 29918, 27959, 29889, 2084, 29918, 19529, 267, 29889, 657, 3285, 13, 418, 6287, 29918, 3594, 29922, 4299, 29918, 2917, 29889, 29881, 2650, 428, 29918, 27959, 29889, 7052, 29918, 3594, 29889, 657, 3285, 13, 418, 3858, 29918, 3844, 29877, 6046, 29922, 4299, 29918, 2917, 29889, 6758, 29889, 1643, 29918, 3844, 29877, 6046, 29892, 13, 418, 671, 29918, 7052, 29881, 29918, 6758, 29922, 4299, 29918, 2917, 29889, 6758, 29889, 1509, 29918, 7052, 29881, 29918, 6758, 29892, 13, 418, 2767, 29918, 265, 29918, 14358, 29922, 4299, 29918, 2917, 29889, 6758, 29889, 5504, 29918, 265, 29918, 14358, 29892, 13, 418, 8760, 29918, 386, 3781, 29922, 4299, 29918, 2917, 29889, 6758, 29889, 509, 2806, 29918, 386, 3781, 29889, 657, 3285, 13, 418, 6410, 29918, 1853, 29922, 4299, 29918, 2917, 29889, 6758, 29889, 1884, 29918, 6758, 29918, 1853, 29889, 657, 3285, 13, 418, 4236, 29918, 4181, 29922, 4299, 29918, 2917, 29889, 6758, 29889, 3317, 29918, 4181, 29889, 657, 3285, 13, 418, 474, 283, 29918, 8945, 3950, 29922, 4299, 29918, 2917, 29889, 6758, 29889, 29875, 283, 29918, 8945, 3950, 29889, 657, 3285, 13, 418, 1067, 29879, 29918, 8945, 3950, 29922, 4299, 29918, 2917, 29889, 6758, 29889, 25932, 29918, 8945, 3950, 29889, 657, 3285, 13, 418, 1203, 29918, 8945, 3950, 29922, 4299, 29918, 2917, 29889, 6758, 29889, 3318, 29918, 8945, 3950, 29889, 657, 3285, 13, 418, 11455, 29918, 386, 3781, 29922, 4299, 29918, 2917, 29889, 6758, 29889, 17281, 29918, 386, 3781, 29889, 657, 3285, 13, 418, 1203, 2264, 29918, 3844, 6983, 29922, 4299, 29918, 2917, 29889, 6758, 29889, 3318, 2264, 29918, 3844, 6983, 29889, 657, 3101, 13, 29871, 736, 1904, 13, 13, 13, 1753, 2048, 29918, 29891, 3543, 29918, 2813, 29898, 2080, 29918, 5965, 2395, 29892, 1904, 29918, 2917, 29901, 343, 3543, 29889, 29979, 3543, 29892, 301, 29906, 29918, 15227, 2133, 1125, 13, 29871, 9995, 8893, 29879, 343, 3543, 2343, 1213, 15945, 13, 29871, 1375, 29918, 5563, 353, 1375, 29898, 1958, 29898, 524, 29892, 1881, 29918, 5965, 2395, 29889, 8149, 22130, 13, 29871, 4236, 29918, 5563, 353, 4236, 29898, 1958, 29898, 524, 29892, 1881, 29918, 5965, 2395, 29889, 8149, 22130, 13, 29871, 2343, 353, 343, 3543, 29918, 2813, 29889, 29979, 3543, 5494, 29898, 13, 418, 1375, 29918, 5563, 29922, 1195, 29918, 5563, 29892, 13, 418, 4236, 29918, 5563, 29922, 3317, 29918, 5563, 29892, 13, 418, 4413, 29922, 4299, 29918, 2917, 29889, 1949, 29918, 13203, 29892, 13, 418, 16273, 29918, 546, 29918, 5563, 29922, 4299, 29918, 2917, 29889, 25367, 29918, 1884, 267, 29889, 14588, 943, 29918, 546, 29918, 7052, 29892, 13, 418, 6056, 29918, 29885, 2932, 398, 29922, 4299, 29918, 2917, 29889, 12324, 29918, 11236, 362, 29889, 12324, 29918, 29885, 2932, 398, 29892, 13, 418, 6056, 29918, 5463, 29922, 4299, 29918, 2917, 29889, 12324, 29918, 11236, 362, 29889, 12324, 29918, 5463, 29892, 13, 418, 8466, 29918, 15227, 3950, 29922, 29880, 29906, 29918, 15227, 2133, 29892, 13, 418, 15040, 29918, 29890, 3173, 29922, 4299, 29918, 2917, 29889, 2813, 29889, 3844, 442, 29918, 29890, 3173, 29897, 13, 29871, 736, 2343, 13, 13, 13, 1753, 2048, 29918, 29891, 3543, 29898, 2080, 29918, 5965, 2395, 29892, 1904, 29918, 2917, 29892, 301, 29906, 29918, 15227, 2133, 1125, 13, 29871, 9995, 8893, 29879, 343, 3543, 1904, 1213, 15945, 13, 29871, 1250, 15933, 353, 1904, 29918, 2917, 29889, 1627, 15933, 29889, 657, 580, 13, 29871, 17360, 29918, 8977, 29892, 903, 353, 1904, 29918, 2917, 29889, 25367, 29918, 1884, 267, 29889, 657, 29898, 13, 418, 1250, 15933, 29889, 1195, 29918, 5563, 29892, 1250, 15933, 29889, 3317, 29918, 5563, 29897, 13, 29871, 1250, 15933, 353, 1250, 15933, 29918, 14399, 29889, 4282, 29918, 1627, 15933, 29898, 2080, 29918, 5965, 2395, 29892, 1904, 29918, 2917, 29889, 1627, 15933, 29892, 13, 462, 462, 632, 1904, 29918, 2917, 29889, 12324, 29918, 11236, 362, 29892, 13, 462, 462, 632, 301, 29906, 29918, 15227, 2133, 29897, 13, 29871, 1602, 6119, 353, 1602, 6119, 29918, 14399, 29889, 4282, 29918, 7099, 6119, 29898, 1627, 15933, 29889, 4905, 29918, 5965, 2395, 29892, 1904, 29918, 2917, 29892, 13, 462, 462, 3986, 301, 29906, 29918, 15227, 2133, 29897, 13, 13, 29871, 2343, 353, 2048, 29918, 29891, 3543, 29918, 2813, 29898, 7099, 6119, 29889, 4905, 29918, 5965, 2395, 29892, 1904, 29918, 2917, 29892, 301, 29906, 29918, 15227, 2133, 29897, 13, 29871, 15326, 29918, 27959, 29918, 5415, 353, 2048, 29918, 29891, 3543, 29918, 29881, 2650, 428, 29918, 27959, 29898, 4299, 29918, 2917, 29892, 13, 462, 462, 462, 965, 17360, 29918, 8977, 29897, 13, 13, 29871, 1904, 353, 343, 3543, 29918, 4299, 29889, 29979, 3543, 29898, 13, 418, 1250, 15933, 29922, 1627, 15933, 29892, 13, 418, 1602, 6119, 29922, 7099, 6119, 29892, 13, 418, 2343, 29922, 2813, 29892, 13, 418, 15326, 29918, 27959, 29922, 29881, 2650, 428, 29918, 27959, 29918, 5415, 29897, 13, 29871, 1904, 29889, 4282, 29898, 2080, 29918, 5965, 2395, 29889, 12181, 29897, 13, 13, 29871, 1904, 29889, 7727, 29898, 2158, 29918, 9144, 29922, 21027, 29889, 3888, 29897, 13, 13, 29871, 28495, 353, 15326, 29918, 27959, 29918, 5415, 29889, 657, 29918, 6758, 267, 580, 13, 29871, 736, 1904, 29892, 28495, 13, 2 ]
bagpy/__init__.py
jmscslgroup/rosbagpy
107
53435
<reponame>jmscslgroup/rosbagpy # Initial Date: March 2, 2020 # Author: <NAME> # Copyright (c) <NAME>, Arizona Board of Regents # All rights reserved. from .bagreader import bagreader from .bagreader import animate_timeseries from .bagreader import create_fig
[ 1, 529, 276, 1112, 420, 29958, 29926, 1516, 2395, 29880, 2972, 29914, 1883, 23156, 2272, 13, 29937, 17250, 4712, 29901, 4779, 29871, 29906, 29892, 29871, 29906, 29900, 29906, 29900, 13, 29937, 13361, 29901, 529, 5813, 29958, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 529, 5813, 10202, 23716, 12590, 310, 2169, 1237, 13, 29937, 2178, 10462, 21676, 29889, 13, 13, 3166, 869, 23156, 16950, 1053, 19548, 16950, 13, 3166, 869, 23156, 16950, 1053, 26015, 29918, 3706, 6358, 13, 3166, 869, 23156, 16950, 1053, 1653, 29918, 1003, 13, 2 ]
Escola/views.py
JoaoGuilhermeBNascimento/DjangoAPI
0
105208
from rest_framework import serializers, viewsets from Escola.models import Aluno from Escola.serializer import AlunoSerializer class AlunosViewSet(viewsets.ModelViewSet): queryset = Aluno.objects.all() serializer_class = AlunoSerializer
[ 1, 515, 1791, 29918, 4468, 1053, 7797, 19427, 29892, 1776, 7224, 13, 3166, 3423, 15519, 29889, 9794, 1053, 838, 9447, 13, 3166, 3423, 15519, 29889, 15550, 3950, 1053, 838, 9447, 17679, 13, 13, 1990, 838, 12609, 1043, 2697, 29898, 1493, 7224, 29889, 3195, 1043, 2697, 1125, 13, 1678, 2346, 842, 353, 838, 9447, 29889, 12650, 29889, 497, 580, 13, 1678, 7797, 3950, 29918, 1990, 353, 838, 9447, 17679, 13, 268, 2 ]
slicedimage/backends/_s3.py
ttung/slicedimage
6
42305
<gh_stars>1-10 import urllib.parse from io import BytesIO from pathlib import PurePosixPath import boto3 from botocore import UNSIGNED from botocore.config import Config from ._base import Backend, verify_checksum RETRY_STATUS_CODES = frozenset({500, 502, 503, 504}) class S3Backend(Backend): CONFIG_UNSIGNED_REQUESTS_KEY = "unsigned-requests" def __init__(self, baseurl, s3_config): parsed = urllib.parse.urlparse(baseurl) assert parsed[0].lower() == "s3" self._bucket = parsed[1] if parsed[2][0] == "/": self._basepath = PurePosixPath(parsed[2][1:]) else: self._basepath = PurePosixPath(parsed[2]) self._s3_config = s3_config def read_contextmanager(self, name, checksum_sha256=None): key = str(self._basepath / name) return _S3ContextManager(self._bucket, key, checksum_sha256, self._s3_config) class _S3ContextManager: def __init__(self, s3_bucket, s3_key, checksum_sha256, s3_config): self.s3_bucket = s3_bucket self.s3_key = s3_key self.checksum_sha256 = checksum_sha256 self.s3_config = s3_config def __enter__(self): unsigned_requests = self.s3_config.get(S3Backend.CONFIG_UNSIGNED_REQUESTS_KEY, False) if unsigned_requests: resource_config = Config(signature_version=UNSIGNED) else: resource_config = None session = boto3.session.Session() s3 = session.resource("s3", config=resource_config) bucket = s3.Bucket(self.s3_bucket) s3_obj = bucket.Object(self.s3_key) self.buffer = BytesIO() s3_obj.download_fileobj(self.buffer) self.buffer.seek(0) verify_checksum(self.buffer, self.checksum_sha256) return self.buffer.__enter__() def __exit__(self, exc_type, exc_val, exc_tb): try: return self.buffer.__exit__(exc_type, exc_val, exc_tb) finally: self.buffer = None
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 3142, 1982, 29889, 5510, 13, 3166, 12013, 1053, 2648, 2167, 5971, 13, 3166, 2224, 1982, 1053, 349, 545, 9135, 861, 2605, 13, 13, 5215, 289, 3747, 29941, 13, 3166, 9225, 542, 487, 1053, 501, 3059, 17298, 3352, 13, 3166, 9225, 542, 487, 29889, 2917, 1053, 12782, 13, 13, 3166, 869, 29918, 3188, 1053, 7437, 355, 29892, 11539, 29918, 3198, 2083, 13, 13, 1525, 5659, 29979, 29918, 27047, 29918, 16524, 29903, 353, 14671, 29920, 575, 300, 3319, 29945, 29900, 29900, 29892, 29871, 29945, 29900, 29906, 29892, 29871, 29945, 29900, 29941, 29892, 29871, 29945, 29900, 29946, 1800, 13, 13, 13, 1990, 317, 29941, 5841, 355, 29898, 5841, 355, 1125, 13, 1678, 8707, 18667, 29918, 29965, 3059, 17298, 3352, 29918, 16244, 29903, 29918, 10818, 353, 376, 15395, 29899, 24830, 29908, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2967, 2271, 29892, 269, 29941, 29918, 2917, 1125, 13, 4706, 21213, 353, 3142, 1982, 29889, 5510, 29889, 2271, 5510, 29898, 3188, 2271, 29897, 13, 4706, 4974, 21213, 29961, 29900, 1822, 13609, 580, 1275, 376, 29879, 29941, 29908, 13, 13, 4706, 1583, 3032, 21454, 353, 21213, 29961, 29896, 29962, 13, 4706, 565, 21213, 29961, 29906, 3816, 29900, 29962, 1275, 5591, 1115, 13, 9651, 1583, 3032, 3188, 2084, 353, 349, 545, 9135, 861, 2605, 29898, 862, 8485, 29961, 29906, 3816, 29896, 29901, 2314, 13, 4706, 1683, 29901, 13, 9651, 1583, 3032, 3188, 2084, 353, 349, 545, 9135, 861, 2605, 29898, 862, 8485, 29961, 29906, 2314, 13, 4706, 1583, 3032, 29879, 29941, 29918, 2917, 353, 269, 29941, 29918, 2917, 13, 13, 1678, 822, 1303, 29918, 4703, 12847, 29898, 1311, 29892, 1024, 29892, 1423, 2083, 29918, 17051, 29906, 29945, 29953, 29922, 8516, 1125, 13, 4706, 1820, 353, 851, 29898, 1311, 3032, 3188, 2084, 847, 1024, 29897, 13, 4706, 736, 903, 29903, 29941, 2677, 3260, 29898, 1311, 3032, 21454, 29892, 1820, 29892, 1423, 2083, 29918, 17051, 29906, 29945, 29953, 29892, 1583, 3032, 29879, 29941, 29918, 2917, 29897, 13, 13, 13, 1990, 903, 29903, 29941, 2677, 3260, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 269, 29941, 29918, 21454, 29892, 269, 29941, 29918, 1989, 29892, 1423, 2083, 29918, 17051, 29906, 29945, 29953, 29892, 269, 29941, 29918, 2917, 1125, 13, 4706, 1583, 29889, 29879, 29941, 29918, 21454, 353, 269, 29941, 29918, 21454, 13, 4706, 1583, 29889, 29879, 29941, 29918, 1989, 353, 269, 29941, 29918, 1989, 13, 4706, 1583, 29889, 3198, 2083, 29918, 17051, 29906, 29945, 29953, 353, 1423, 2083, 29918, 17051, 29906, 29945, 29953, 13, 4706, 1583, 29889, 29879, 29941, 29918, 2917, 353, 269, 29941, 29918, 2917, 13, 13, 1678, 822, 4770, 5893, 12035, 1311, 1125, 13, 4706, 12780, 29918, 24830, 353, 1583, 29889, 29879, 29941, 29918, 2917, 29889, 657, 29898, 29903, 29941, 5841, 355, 29889, 25903, 29918, 29965, 3059, 17298, 3352, 29918, 16244, 29903, 29918, 10818, 29892, 7700, 29897, 13, 13, 4706, 565, 12780, 29918, 24830, 29901, 13, 9651, 6503, 29918, 2917, 353, 12782, 29898, 4530, 1535, 29918, 3259, 29922, 29965, 3059, 17298, 3352, 29897, 13, 4706, 1683, 29901, 13, 9651, 6503, 29918, 2917, 353, 6213, 13, 13, 4706, 4867, 353, 289, 3747, 29941, 29889, 7924, 29889, 7317, 580, 13, 4706, 269, 29941, 353, 4867, 29889, 10314, 703, 29879, 29941, 613, 2295, 29922, 10314, 29918, 2917, 29897, 13, 4706, 20968, 353, 269, 29941, 29889, 29933, 2707, 300, 29898, 1311, 29889, 29879, 29941, 29918, 21454, 29897, 13, 4706, 269, 29941, 29918, 5415, 353, 20968, 29889, 2061, 29898, 1311, 29889, 29879, 29941, 29918, 1989, 29897, 13, 4706, 1583, 29889, 9040, 353, 2648, 2167, 5971, 580, 13, 4706, 269, 29941, 29918, 5415, 29889, 10382, 29918, 1445, 5415, 29898, 1311, 29889, 9040, 29897, 13, 4706, 1583, 29889, 9040, 29889, 344, 1416, 29898, 29900, 29897, 13, 4706, 11539, 29918, 3198, 2083, 29898, 1311, 29889, 9040, 29892, 1583, 29889, 3198, 2083, 29918, 17051, 29906, 29945, 29953, 29897, 13, 4706, 736, 1583, 29889, 9040, 17255, 5893, 1649, 580, 13, 13, 1678, 822, 4770, 13322, 12035, 1311, 29892, 5566, 29918, 1853, 29892, 5566, 29918, 791, 29892, 5566, 29918, 22625, 1125, 13, 4706, 1018, 29901, 13, 9651, 736, 1583, 29889, 9040, 17255, 13322, 12035, 735, 29883, 29918, 1853, 29892, 5566, 29918, 791, 29892, 5566, 29918, 22625, 29897, 13, 4706, 7146, 29901, 13, 9651, 1583, 29889, 9040, 353, 6213, 13, 2 ]
setup.py
zhammer/LibCST
1
145415
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import importlib.util from os import path from typing import TYPE_CHECKING import setuptools if TYPE_CHECKING: from importlib.machinery import ModuleSpec from types import ModuleType # Grab the readme so that our package stays in sync with github. this_directory: str = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, "README.rst"), encoding="utf-8") as f: long_description = f.read() # Grab the version constant so that libcst.tool stays in sync with this package. spec: "ModuleSpec" = importlib.util.spec_from_file_location( "version", path.join(this_directory, "libcst/_version.py") ) version: "ModuleType" = importlib.util.module_from_spec(spec) # pyre-ignore Pyre doesn't know about importlib entirely. spec.loader.exec_module(version) # pyre-ignore Pyre has no way of knowing that this constant exists. LIBCST_VERSION = version.LIBCST_VERSION setuptools.setup( name="libcst", description="A concrete syntax tree with AST-like properties for Python 3.5, 3.6, 3.7 and 3.8 programs.", long_description=long_description, long_description_content_type="text/x-rst", version=LIBCST_VERSION, url="https://github.com/Instagram/LibCST", license="MIT", packages=setuptools.find_packages(), package_data={ "libcst": ["py.typed"], "libcst.tests.pyre": ["*"], "libcst.codemod.tests": ["*"], }, test_suite="libcst", python_requires=">=3.6", install_requires=[dep.strip() for dep in open("requirements.txt").readlines()], extras_require={ "dev": [dep.strip() for dep in open("requirements-dev.txt").readlines() if "=" in dep], }, classifiers=[ "License :: OSI Approved :: MIT License", "Topic :: Software Development :: Libraries", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", ], zip_safe=False, # for mypy compatibility https://mypy.readthedocs.io/en/latest/installed_packages.html )
[ 1, 396, 14187, 1266, 313, 29883, 29897, 13327, 29892, 9266, 29889, 322, 967, 23736, 1078, 29889, 13, 29937, 13, 29937, 910, 2752, 775, 338, 7794, 21144, 1090, 278, 341, 1806, 19405, 1476, 297, 278, 13, 29937, 365, 2965, 1430, 1660, 934, 297, 278, 3876, 3884, 310, 445, 2752, 5447, 29889, 13, 13, 13, 5215, 1053, 1982, 29889, 4422, 13, 3166, 2897, 1053, 2224, 13, 3166, 19229, 1053, 323, 6959, 29918, 3210, 16658, 4214, 13, 13, 5215, 731, 21245, 8789, 13, 13, 13, 361, 323, 6959, 29918, 3210, 16658, 4214, 29901, 13, 1678, 515, 1053, 1982, 29889, 29885, 496, 262, 708, 1053, 15591, 10299, 13, 1678, 515, 4072, 1053, 15591, 1542, 13, 13, 29937, 22351, 278, 1303, 1004, 577, 393, 1749, 3577, 27111, 297, 16523, 411, 18546, 29889, 13, 1366, 29918, 12322, 29901, 851, 353, 2224, 29889, 370, 1028, 493, 29898, 2084, 29889, 25721, 22168, 1445, 1649, 876, 13, 2541, 1722, 29898, 2084, 29889, 7122, 29898, 1366, 29918, 12322, 29892, 376, 16310, 2303, 29889, 29878, 303, 4968, 8025, 543, 9420, 29899, 29947, 1159, 408, 285, 29901, 13, 1678, 1472, 29918, 8216, 353, 285, 29889, 949, 580, 13, 13, 29937, 22351, 278, 1873, 4868, 577, 393, 4303, 29883, 303, 29889, 10154, 27111, 297, 16523, 411, 445, 3577, 29889, 13, 6550, 29901, 376, 7355, 10299, 29908, 353, 1053, 1982, 29889, 4422, 29889, 6550, 29918, 3166, 29918, 1445, 29918, 5479, 29898, 13, 1678, 376, 3259, 613, 2224, 29889, 7122, 29898, 1366, 29918, 12322, 29892, 376, 1982, 29883, 303, 19891, 3259, 29889, 2272, 1159, 13, 29897, 13, 3259, 29901, 376, 7355, 1542, 29908, 353, 1053, 1982, 29889, 4422, 29889, 5453, 29918, 3166, 29918, 6550, 29898, 6550, 29897, 13, 29937, 11451, 276, 29899, 17281, 10772, 276, 1838, 29915, 29873, 1073, 1048, 1053, 1982, 9186, 29889, 13, 6550, 29889, 12657, 29889, 4258, 29918, 5453, 29898, 3259, 29897, 13, 29937, 11451, 276, 29899, 17281, 10772, 276, 756, 694, 982, 310, 13797, 393, 445, 4868, 4864, 29889, 13, 5265, 5371, 1254, 29918, 16358, 353, 1873, 29889, 5265, 5371, 1254, 29918, 16358, 13, 13, 842, 21245, 8789, 29889, 14669, 29898, 13, 1678, 1024, 543, 1982, 29883, 303, 613, 13, 1678, 6139, 543, 29909, 18387, 5877, 5447, 411, 319, 1254, 29899, 4561, 4426, 363, 5132, 29871, 29941, 29889, 29945, 29892, 29871, 29941, 29889, 29953, 29892, 29871, 29941, 29889, 29955, 322, 29871, 29941, 29889, 29947, 11104, 19602, 13, 1678, 1472, 29918, 8216, 29922, 5426, 29918, 8216, 29892, 13, 1678, 1472, 29918, 8216, 29918, 3051, 29918, 1853, 543, 726, 29914, 29916, 29899, 29878, 303, 613, 13, 1678, 1873, 29922, 5265, 5371, 1254, 29918, 16358, 29892, 13, 1678, 3142, 543, 991, 597, 3292, 29889, 510, 29914, 3379, 14442, 29914, 14868, 29907, 1254, 613, 13, 1678, 19405, 543, 26349, 613, 13, 1678, 9741, 29922, 842, 21245, 8789, 29889, 2886, 29918, 8318, 3285, 13, 1678, 3577, 29918, 1272, 3790, 13, 4706, 376, 1982, 29883, 303, 1115, 6796, 2272, 29889, 1017, 9795, 12436, 13, 4706, 376, 1982, 29883, 303, 29889, 21150, 29889, 2272, 276, 1115, 6796, 29930, 12436, 13, 4706, 376, 1982, 29883, 303, 29889, 401, 1545, 29889, 21150, 1115, 6796, 29930, 12436, 13, 1678, 2981, 13, 1678, 1243, 29918, 13495, 543, 1982, 29883, 303, 613, 13, 1678, 3017, 29918, 276, 339, 2658, 543, 18572, 29941, 29889, 29953, 613, 13, 1678, 2601, 29918, 276, 339, 2658, 11759, 2716, 29889, 17010, 580, 363, 1401, 297, 1722, 703, 12277, 1860, 29889, 3945, 2564, 949, 9012, 580, 1402, 13, 1678, 429, 10678, 29918, 12277, 3790, 13, 4706, 376, 3359, 1115, 518, 2716, 29889, 17010, 580, 363, 1401, 297, 1722, 703, 12277, 1860, 29899, 3359, 29889, 3945, 2564, 949, 9012, 580, 565, 376, 543, 297, 1401, 1402, 13, 1678, 2981, 13, 1678, 770, 14903, 11759, 13, 4706, 376, 29931, 293, 1947, 4761, 438, 5425, 28268, 1490, 4761, 341, 1806, 19245, 613, 13, 4706, 376, 7031, 293, 4761, 18540, 14650, 4761, 365, 4626, 4314, 613, 13, 4706, 376, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29941, 29889, 29953, 613, 13, 4706, 376, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29941, 29889, 29955, 613, 13, 4706, 376, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29941, 29889, 29947, 613, 13, 1678, 21251, 13, 1678, 14319, 29918, 11177, 29922, 8824, 29892, 29871, 396, 363, 590, 2272, 24521, 2045, 597, 1357, 2272, 29889, 949, 386, 287, 12332, 29889, 601, 29914, 264, 29914, 12333, 29914, 25537, 29918, 8318, 29889, 1420, 13, 29897, 13, 2 ]
src/medius/mediuspackets/respondtoclaninvitation.py
Metroynome/robo
8
191034
from enums.enums import MediusEnum, CallbackStatus from utils import utils from medius.mediuspackets.respondtoclaninvitationresponse import RespondToClanInvitationResponseSerializer class RespondToClanInvitationSerializer: data_dict = [ {'name': 'mediusid', 'n_bytes': 2, 'cast': None}, {'name': 'message_id', 'n_bytes': MediusEnum.MESSAGEID_MAXLEN, 'cast': None}, {'name': 'session_key', 'n_bytes': MediusEnum.SESSIONKEY_MAXLEN, 'cast': None}, {'name': 'buf', 'n_bytes': 2, 'cast': None}, {'name': 'clan_invitation_id', 'n_bytes': 4, 'cast': utils.bytes_to_int_little}, {'name': 'response', 'n_bytes': 4, 'cast': utils.bytes_to_int_little}, ] class RespondToClanInvitationHandler: def process(self, serialized, monolith, con): client_manager = monolith.get_client_manager() if serialized['response'] == 0: # undecided pass elif serialized['response'] == 1: # accept client_manager.respond_clan_invite(serialized['clan_invitation_id'], True) elif serialized['response'] == 2: # reject client_manager.respond_clan_invite(serialized['clan_invitation_id'], False) elif serialized['response'] == 3: # decline client_manager.respond_clan_invite(serialized['clan_invitation_id'], False) return [RespondToClanInvitationResponseSerializer.build( serialized['message_id'], CallbackStatus.SUCCESS )]
[ 1, 515, 427, 6762, 29889, 264, 6762, 1053, 3436, 2482, 16854, 29892, 8251, 1627, 5709, 13, 3166, 3667, 29879, 1053, 3667, 29879, 13, 3166, 1612, 2482, 29889, 2168, 2482, 4058, 1691, 29889, 3636, 517, 695, 273, 11569, 7018, 5327, 1053, 2538, 2818, 1762, 29907, 6468, 12165, 7018, 5103, 17679, 13, 13, 1990, 2538, 2818, 1762, 29907, 6468, 12165, 7018, 17679, 29901, 13, 1678, 848, 29918, 8977, 353, 518, 13, 4706, 11117, 978, 2396, 525, 2168, 2482, 333, 742, 525, 29876, 29918, 13193, 2396, 29871, 29906, 29892, 525, 4384, 2396, 6213, 1118, 13, 4706, 11117, 978, 2396, 525, 4906, 29918, 333, 742, 525, 29876, 29918, 13193, 2396, 3436, 2482, 16854, 29889, 2303, 1799, 10461, 1367, 29918, 12648, 1307, 29940, 29892, 525, 4384, 2396, 6213, 1118, 13, 4706, 11117, 978, 2396, 525, 7924, 29918, 1989, 742, 525, 29876, 29918, 13193, 2396, 3436, 2482, 16854, 29889, 17493, 10818, 29918, 12648, 1307, 29940, 29892, 525, 4384, 2396, 6213, 1118, 13, 4706, 11117, 978, 2396, 525, 9721, 742, 525, 29876, 29918, 13193, 2396, 29871, 29906, 29892, 525, 4384, 2396, 6213, 1118, 13, 4706, 11117, 978, 2396, 525, 695, 273, 29918, 11569, 7018, 29918, 333, 742, 525, 29876, 29918, 13193, 2396, 29871, 29946, 29892, 525, 4384, 2396, 3667, 29879, 29889, 13193, 29918, 517, 29918, 524, 29918, 29880, 1992, 1118, 13, 4706, 11117, 978, 2396, 525, 5327, 742, 525, 29876, 29918, 13193, 2396, 29871, 29946, 29892, 525, 4384, 2396, 3667, 29879, 29889, 13193, 29918, 517, 29918, 524, 29918, 29880, 1992, 1118, 13, 1678, 4514, 13, 13, 1990, 2538, 2818, 1762, 29907, 6468, 12165, 7018, 4598, 29901, 13, 1678, 822, 1889, 29898, 1311, 29892, 7797, 1891, 29892, 1601, 324, 389, 29892, 378, 1125, 13, 13, 4706, 3132, 29918, 12847, 353, 1601, 324, 389, 29889, 657, 29918, 4645, 29918, 12847, 580, 13, 13, 4706, 565, 7797, 1891, 1839, 5327, 2033, 1275, 29871, 29900, 29901, 396, 563, 687, 2618, 13, 9651, 1209, 13, 4706, 25342, 7797, 1891, 1839, 5327, 2033, 1275, 29871, 29896, 29901, 396, 3544, 13, 9651, 3132, 29918, 12847, 29889, 3636, 29918, 695, 273, 29918, 11569, 568, 29898, 15550, 1891, 1839, 695, 273, 29918, 11569, 7018, 29918, 333, 7464, 5852, 29897, 13, 4706, 25342, 7797, 1891, 1839, 5327, 2033, 1275, 29871, 29906, 29901, 396, 12560, 13, 9651, 3132, 29918, 12847, 29889, 3636, 29918, 695, 273, 29918, 11569, 568, 29898, 15550, 1891, 1839, 695, 273, 29918, 11569, 7018, 29918, 333, 7464, 7700, 29897, 13, 4706, 25342, 7797, 1891, 1839, 5327, 2033, 1275, 29871, 29941, 29901, 396, 4845, 457, 13, 9651, 3132, 29918, 12847, 29889, 3636, 29918, 695, 273, 29918, 11569, 568, 29898, 15550, 1891, 1839, 695, 273, 29918, 11569, 7018, 29918, 333, 7464, 7700, 29897, 13, 13, 4706, 736, 518, 1666, 2818, 1762, 29907, 6468, 12165, 7018, 5103, 17679, 29889, 4282, 29898, 13, 9651, 7797, 1891, 1839, 4906, 29918, 333, 7464, 13, 9651, 8251, 1627, 5709, 29889, 14605, 26925, 13, 4706, 1723, 29962, 13, 2 ]
anime downloaders/animeblkom downloader.py
badr286/anime-stuff
0
15937
<reponame>badr286/anime-stuff from animeblkom import Animeblkom, animeblkom_episode from downloader import blkom from requests import get download_list = [] anime_url = input('Anime Url: ') # ex. https://animeblkom.net/watch/one-piece episodes = Animeblkom.get_anime_episodes(anime_url) print(f'{len(episodes)} episodes found.') episodes = episodes[ int(input('from: '))-1 : int(input('to: ')) ] for episode in episodes: print(episode.num) episode_servers = episode.get_servers() for i in range(len(episode_servers)): curr_server = episode_servers[i] print(f'{i}. {curr_server}') choice = int(input('Choice: ')) download_list.append( episode_servers[choice].split(', ')[1].strip() ) print('\n') for link in download_list: file = blkom.download(link) print(file.info) file.save() print('\n') input('done')
[ 1, 529, 276, 1112, 420, 29958, 29890, 7887, 29906, 29947, 29953, 29914, 273, 603, 29899, 303, 3096, 13, 3166, 385, 603, 2204, 7218, 1053, 530, 603, 2204, 7218, 29892, 385, 603, 2204, 7218, 29918, 1022, 275, 356, 30004, 13, 3166, 5142, 261, 1053, 1999, 7218, 30004, 13, 3166, 7274, 1053, 679, 30004, 13, 30004, 13, 10382, 29918, 1761, 353, 5159, 30004, 13, 30004, 13, 273, 603, 29918, 2271, 353, 1881, 877, 2744, 603, 501, 2096, 29901, 25710, 396, 429, 29889, 2045, 597, 273, 603, 2204, 7218, 29889, 1212, 29914, 12344, 29914, 650, 29899, 12343, 346, 30004, 13, 1022, 275, 2631, 353, 530, 603, 2204, 7218, 29889, 657, 29918, 273, 603, 29918, 1022, 275, 2631, 29898, 273, 603, 29918, 2271, 8443, 13, 30004, 13, 2158, 29898, 29888, 29915, 29912, 2435, 29898, 1022, 275, 2631, 2915, 23238, 1476, 29889, 1495, 30004, 13, 1022, 275, 2631, 353, 23238, 29961, 938, 29898, 2080, 877, 3166, 29901, 525, 876, 29899, 29896, 584, 938, 29898, 2080, 877, 517, 29901, 525, 876, 4514, 30004, 13, 30004, 13, 1454, 12720, 297, 23238, 29901, 30004, 13, 12, 2158, 29898, 1022, 275, 356, 29889, 1949, 8443, 13, 12, 1022, 275, 356, 29918, 643, 874, 353, 12720, 29889, 657, 29918, 643, 874, 26471, 13, 30004, 13, 12, 1454, 474, 297, 3464, 29898, 2435, 29898, 1022, 275, 356, 29918, 643, 874, 22164, 30004, 13, 12, 12, 21962, 29918, 2974, 353, 12720, 29918, 643, 874, 29961, 29875, 29962, 30004, 13, 12, 12, 2158, 29898, 29888, 29915, 29912, 29875, 1836, 426, 21962, 29918, 2974, 29913, 1495, 30004, 13, 30004, 13, 12, 16957, 353, 938, 29898, 2080, 877, 29620, 29901, 525, 876, 30004, 13, 12, 10382, 29918, 1761, 29889, 4397, 29898, 12720, 29918, 643, 874, 29961, 16957, 1822, 5451, 29317, 525, 9601, 29896, 1822, 17010, 580, 1723, 30004, 13, 12, 2158, 28909, 29876, 1495, 30004, 13, 30004, 13, 1454, 1544, 297, 5142, 29918, 1761, 29901, 30004, 13, 12, 1445, 353, 1999, 7218, 29889, 10382, 29898, 2324, 8443, 13, 12, 2158, 29898, 1445, 29889, 3888, 8443, 13, 12, 1445, 29889, 7620, 26471, 13, 30004, 13, 30004, 13, 12, 2158, 28909, 29876, 1495, 30004, 13, 30004, 13, 2080, 877, 15091, 1495, 30004, 13, 2 ]
lib/models/bn_helper.py
hongrui16/naic2020_B
0
7960
import torch import functools if torch.__version__.startswith('0'): from .sync_bn.inplace_abn.bn import InPlaceABNSync BatchNorm2d = functools.partial(InPlaceABNSync, activation='none') BatchNorm2d_class = InPlaceABNSync relu_inplace = False else: # BatchNorm2d_class = BatchNorm2d = torch.nn.SyncBatchNorm BatchNorm2d_class = BatchNorm2d = torch.nn.BatchNorm2d relu_inplace = True
[ 1, 1053, 4842, 305, 13, 5215, 2090, 312, 8789, 13, 13, 361, 4842, 305, 17255, 3259, 26914, 27382, 2541, 877, 29900, 29374, 13, 1678, 515, 869, 16593, 29918, 11197, 29889, 262, 6689, 29918, 370, 29876, 29889, 11197, 1053, 512, 22150, 2882, 3059, 2720, 13, 1678, 350, 905, 29940, 555, 29906, 29881, 353, 2090, 312, 8789, 29889, 3846, 29898, 797, 22150, 2882, 3059, 2720, 29892, 26229, 2433, 9290, 1495, 13, 1678, 350, 905, 29940, 555, 29906, 29881, 29918, 1990, 353, 512, 22150, 2882, 3059, 2720, 13, 1678, 1104, 29884, 29918, 262, 6689, 353, 7700, 13, 2870, 29901, 13, 1678, 396, 350, 905, 29940, 555, 29906, 29881, 29918, 1990, 353, 350, 905, 29940, 555, 29906, 29881, 353, 4842, 305, 29889, 15755, 29889, 21077, 23145, 29940, 555, 13, 1678, 350, 905, 29940, 555, 29906, 29881, 29918, 1990, 353, 350, 905, 29940, 555, 29906, 29881, 353, 4842, 305, 29889, 15755, 29889, 23145, 29940, 555, 29906, 29881, 13, 1678, 1104, 29884, 29918, 262, 6689, 353, 5852, 2 ]
tests/functional/Hydro/AcousticWave/CSPH_mod_package.py
jmikeowen/Spheral
22
13083
#------------------------------------------------------------------------------- # A mock physics package to mess around with the CRKSPH corrections. #------------------------------------------------------------------------------- from Spheral1d import * class CRKSPH_mod_package(Physics): def __init__(self): Physics.__init__(self) return def evaluateDerivatives(self, t, dt, db, state, derivs): return def dt(self, db, state, derivs, t): return pair_double_string(1e100, "No vote") def registerState(self, dt, state): return def registerDerivatives(self, db, derivs): return def label(self): return "CRKSPH_mod_package" def initialize(self, t, dt, db, state, derivs): # Grab the CRKSPH arrays. A0_fl = state.scalarFields(HydroFieldNames.A0_CRKSPH) A_fl = state.scalarFields(HydroFieldNames.A_CRKSPH) B_fl = state.vectorFields(HydroFieldNames.B_CRKSPH) A0 = A0_fl[0] A = A_fl[0] B = B_fl[0] print "A", A.internalValues() return
[ 1, 396, 2683, 2683, 2683, 2683, 9072, 5634, 13, 29937, 319, 11187, 17558, 3577, 304, 4473, 2820, 411, 278, 15600, 29968, 5550, 29950, 14515, 1953, 29889, 13, 29937, 2683, 2683, 2683, 2683, 9072, 5634, 13, 3166, 317, 8096, 284, 29896, 29881, 1053, 334, 13, 13, 1990, 15600, 29968, 5550, 29950, 29918, 1545, 29918, 5113, 29898, 25847, 1199, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 29837, 17255, 2344, 12035, 1311, 29897, 13, 4706, 736, 13, 13, 1678, 822, 14707, 15383, 440, 5056, 29898, 1311, 29892, 260, 29892, 11636, 29892, 4833, 29892, 2106, 29892, 7750, 29879, 1125, 13, 4706, 736, 13, 13, 1678, 822, 11636, 29898, 1311, 29892, 4833, 29892, 2106, 29892, 7750, 29879, 29892, 260, 1125, 13, 4706, 736, 5101, 29918, 8896, 29918, 1807, 29898, 29896, 29872, 29896, 29900, 29900, 29892, 376, 3782, 11719, 1159, 13, 13, 1678, 822, 6036, 2792, 29898, 1311, 29892, 11636, 29892, 2106, 1125, 13, 4706, 736, 13, 13, 1678, 822, 6036, 15383, 440, 5056, 29898, 1311, 29892, 4833, 29892, 7750, 29879, 1125, 13, 4706, 736, 13, 13, 1678, 822, 3858, 29898, 1311, 1125, 13, 4706, 736, 376, 11341, 29968, 5550, 29950, 29918, 1545, 29918, 5113, 29908, 13, 13, 1678, 822, 11905, 29898, 1311, 29892, 260, 29892, 11636, 29892, 4833, 29892, 2106, 29892, 7750, 29879, 1125, 13, 13, 4706, 396, 22351, 278, 15600, 29968, 5550, 29950, 7049, 29889, 13, 4706, 319, 29900, 29918, 1579, 353, 2106, 29889, 19529, 279, 14256, 29898, 29950, 11279, 3073, 8659, 29889, 29909, 29900, 29918, 11341, 29968, 5550, 29950, 29897, 13, 4706, 319, 29918, 1579, 353, 2106, 29889, 19529, 279, 14256, 29898, 29950, 11279, 3073, 8659, 29889, 29909, 29918, 11341, 29968, 5550, 29950, 29897, 13, 4706, 350, 29918, 1579, 353, 2106, 29889, 8111, 14256, 29898, 29950, 11279, 3073, 8659, 29889, 29933, 29918, 11341, 29968, 5550, 29950, 29897, 13, 13, 4706, 319, 29900, 353, 319, 29900, 29918, 1579, 29961, 29900, 29962, 13, 4706, 319, 353, 319, 29918, 1579, 29961, 29900, 29962, 13, 4706, 350, 353, 350, 29918, 1579, 29961, 29900, 29962, 13, 13, 4706, 1596, 376, 29909, 613, 319, 29889, 7564, 9065, 580, 13, 4706, 736, 13, 13, 2 ]
setup.py
deluxor/dcosdev
0
133345
<filename>setup.py #!/usr/bin/env python """dcosdev project""" from setuptools import find_packages, setup REQUIRES = [ 'docker==4.2.0', 'minio==5.0.8', 'requests==2.23.0', 'boto3==1.12.34', "click==7.1.1", "pyyaml==5.3.1", ] setup(name='dcosdev', version='0.0.1', description='short description', long_description='long description', platforms=["Linux"], author="...", author_email="...", url="...", license="Apache 2", packages=find_packages(), entry_points={ 'console_scripts': [ 'dcosdev=dcosdev.commands:maingroup', ], }, install_requires=REQUIRES, zip_safe=False, include_package_data=True, )
[ 1, 529, 9507, 29958, 14669, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 15945, 29908, 29881, 3944, 3359, 2060, 15945, 29908, 13, 3166, 731, 21245, 8789, 1053, 1284, 29918, 8318, 29892, 6230, 13, 13, 1525, 29984, 3120, 15989, 353, 518, 13, 1678, 525, 14695, 1360, 29946, 29889, 29906, 29889, 29900, 742, 13, 1678, 525, 1195, 601, 1360, 29945, 29889, 29900, 29889, 29947, 742, 13, 1678, 525, 24830, 1360, 29906, 29889, 29906, 29941, 29889, 29900, 742, 13, 1678, 525, 29890, 3747, 29941, 1360, 29896, 29889, 29896, 29906, 29889, 29941, 29946, 742, 13, 1678, 376, 3808, 1360, 29955, 29889, 29896, 29889, 29896, 613, 13, 1678, 376, 2272, 25162, 1360, 29945, 29889, 29941, 29889, 29896, 613, 13, 29962, 13, 13, 14669, 29898, 978, 2433, 29881, 3944, 3359, 742, 13, 418, 1873, 2433, 29900, 29889, 29900, 29889, 29896, 742, 13, 418, 6139, 2433, 12759, 6139, 742, 13, 418, 1472, 29918, 8216, 2433, 5426, 6139, 742, 13, 418, 21796, 29922, 3366, 24085, 12436, 13, 418, 4148, 543, 856, 613, 13, 418, 4148, 29918, 5269, 543, 856, 613, 13, 418, 3142, 543, 856, 613, 13, 418, 19405, 543, 17396, 1829, 29871, 29906, 613, 13, 418, 9741, 29922, 2886, 29918, 8318, 3285, 13, 418, 6251, 29918, 9748, 3790, 13, 4706, 525, 11058, 29918, 16713, 2396, 518, 13, 9651, 525, 29881, 3944, 3359, 29922, 29881, 3944, 3359, 29889, 26381, 29901, 655, 292, 29878, 1132, 742, 13, 4706, 21251, 13, 418, 2981, 13, 418, 2601, 29918, 276, 339, 2658, 29922, 1525, 29984, 3120, 15989, 29892, 13, 418, 14319, 29918, 11177, 29922, 8824, 29892, 13, 418, 3160, 29918, 5113, 29918, 1272, 29922, 5574, 29892, 13, 418, 1723, 13, 2 ]
distributed/__init__.py
merlinarer/scrl
102
148556
<reponame>merlinarer/scrl from .launch import launch from .getters import get_dist_url, scatter_values
[ 1, 529, 276, 1112, 420, 29958, 1050, 1915, 279, 261, 29914, 1557, 2096, 13, 3166, 869, 15343, 1053, 6826, 13, 3166, 869, 657, 2153, 1053, 679, 29918, 5721, 29918, 2271, 29892, 14801, 29918, 5975, 13, 2 ]
sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_async_lro.py
dmarx/azure-sdk-for-python
1
186490
<filename>sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_async_lro.py # coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ from azure.core.polling.base_polling import OperationFailed, BadStatus from azure.core.polling.async_base_polling import AsyncLROBasePolling from azure.core.polling import AsyncLROPoller from azure.core.polling._async_poller import PollingReturnType _FINISHED = frozenset(["succeeded", "cancelled", "failed", "partiallysucceeded"]) _FAILED = frozenset(["failed"]) _SUCCEEDED = frozenset(["succeeded", "partiallysucceeded"]) class TextAnalyticsAsyncLROPollingMethod(AsyncLROBasePolling): def finished(self): """Is this polling finished? :rtype: bool """ return TextAnalyticsAsyncLROPollingMethod._finished(self.status()) @staticmethod def _finished(status): if hasattr(status, "value"): status = status.value return str(status).lower() in _FINISHED @staticmethod def _failed(status): if hasattr(status, "value"): status = status.value return str(status).lower() in _FAILED @staticmethod def _raise_if_bad_http_status_and_method(response): """Check response status code is valid. Must be 200, 201, 202, or 204. :raises: BadStatus if invalid status. """ code = response.status_code if code in {200, 201, 202, 204}: return raise BadStatus( "Invalid return status {!r} for {!r} operation".format( code, response.request.method ) ) async def _poll(self): # pylint:disable=invalid-overridden-method """Poll status of operation so long as operation is incomplete and we have an endpoint to query. :param callable update_cmd: The function to call to retrieve the latest status of the long running operation. :raises: OperationFailed if operation status 'Failed' or 'Canceled'. :raises: BadStatus if response status invalid. :raises: BadResponse if response invalid. """ while not self.finished(): await self._delay() await self.update_status() if TextAnalyticsAsyncLROPollingMethod._failed(self.status()): raise OperationFailed("Operation failed or canceled") final_get_url = self._operation.get_final_get_url(self._pipeline_response) if final_get_url: self._pipeline_response = await self.request_status(final_get_url) TextAnalyticsAsyncLROPollingMethod._raise_if_bad_http_status_and_method( self._pipeline_response.http_response ) class AsyncAnalyzeBatchActionsLROPollingMethod(TextAnalyticsAsyncLROPollingMethod): @property def _current_body(self): from ._generated.v3_1_preview_3.models import JobMetadata return JobMetadata.deserialize(self._pipeline_response) @property def created_on(self): if not self._current_body: return None return self._current_body.created_date_time @property def display_name(self): if not self._current_body: return None return self._current_body.display_name @property def expires_on(self): if not self._current_body: return None return self._current_body.expiration_date_time @property def actions_failed_count(self): if not self._current_body: return None return self._current_body.additional_properties['tasks']['failed'] @property def actions_in_progress_count(self): if not self._current_body: return None return self._current_body.additional_properties['tasks']['inProgress'] @property def actions_succeeded_count(self): if not self._current_body: return None return self._current_body.additional_properties['tasks']["completed"] @property def last_modified_on(self): if not self._current_body: return None return self._current_body.last_update_date_time @property def total_actions_count(self): if not self._current_body: return None return self._current_body.additional_properties['tasks']["total"] @property def id(self): if not self._current_body: return None return self._current_body.job_id class AsyncAnalyzeBatchActionsLROPoller(AsyncLROPoller[PollingReturnType]): @property def created_on(self): return self._polling_method.created_on @property def display_name(self): return self._polling_method.display_name @property def expires_on(self): return self._polling_method.expires_on @property def actions_failed_count(self): return self._polling_method.actions_failed_count @property def actions_in_progress_count(self): return self._polling_method.actions_in_progress_count @property def actions_succeeded_count(self): return self._polling_method.actions_succeeded_count @property def last_modified_on(self): return self._polling_method.last_modified_on @property def total_actions_count(self): return self._polling_method.total_actions_count @property def id(self): return self._polling_method.id
[ 1, 529, 9507, 29958, 15348, 29914, 726, 7054, 22026, 29914, 17688, 29899, 1794, 29899, 726, 7054, 22026, 29914, 17688, 29914, 1794, 29914, 726, 7054, 22026, 19891, 12674, 29918, 29880, 307, 29889, 2272, 13, 29937, 14137, 29922, 9420, 29899, 29947, 13, 29937, 448, 2683, 2683, 5634, 13, 29937, 14187, 1266, 313, 29883, 29897, 7783, 15025, 29889, 13, 29937, 10413, 21144, 1090, 278, 341, 1806, 19245, 29889, 13, 29937, 448, 2683, 2683, 5634, 13, 13, 3166, 15699, 29889, 3221, 29889, 3733, 1847, 29889, 3188, 29918, 3733, 1847, 1053, 20462, 17776, 29892, 9178, 5709, 13, 3166, 15699, 29889, 3221, 29889, 3733, 1847, 29889, 12674, 29918, 3188, 29918, 3733, 1847, 1053, 20688, 29931, 1672, 5160, 7713, 1847, 13, 3166, 15699, 29889, 3221, 29889, 3733, 1847, 1053, 20688, 29931, 1672, 7713, 1358, 13, 3166, 15699, 29889, 3221, 29889, 3733, 1847, 3032, 12674, 29918, 3733, 1358, 1053, 2043, 1847, 11609, 1542, 13, 13, 13, 29918, 29943, 1177, 3235, 29950, 3352, 353, 14671, 29920, 575, 300, 29898, 3366, 29879, 1682, 3947, 287, 613, 376, 20713, 839, 613, 376, 26061, 613, 376, 3846, 368, 29879, 1682, 3947, 287, 20068, 13, 29918, 4519, 29902, 20566, 353, 14671, 29920, 575, 300, 29898, 3366, 26061, 20068, 13, 29918, 14605, 4174, 17896, 2287, 29928, 353, 14671, 29920, 575, 300, 29898, 3366, 29879, 1682, 3947, 287, 613, 376, 3846, 368, 29879, 1682, 3947, 287, 20068, 13, 13, 13, 1990, 3992, 21067, 22026, 8123, 29931, 1672, 7713, 1847, 4062, 29898, 8123, 29931, 1672, 5160, 7713, 1847, 1125, 13, 13, 1678, 822, 7743, 29898, 1311, 1125, 13, 4706, 9995, 3624, 445, 1248, 1847, 7743, 29973, 13, 4706, 584, 29878, 1853, 29901, 6120, 13, 4706, 9995, 13, 4706, 736, 3992, 21067, 22026, 8123, 29931, 1672, 7713, 1847, 4062, 3032, 4951, 3276, 29898, 1311, 29889, 4882, 3101, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 903, 4951, 3276, 29898, 4882, 1125, 13, 4706, 565, 756, 5552, 29898, 4882, 29892, 376, 1767, 29908, 1125, 13, 9651, 4660, 353, 4660, 29889, 1767, 13, 4706, 736, 851, 29898, 4882, 467, 13609, 580, 297, 903, 29943, 1177, 3235, 29950, 3352, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 903, 26061, 29898, 4882, 1125, 13, 4706, 565, 756, 5552, 29898, 4882, 29892, 376, 1767, 29908, 1125, 13, 9651, 4660, 353, 4660, 29889, 1767, 13, 4706, 736, 851, 29898, 4882, 467, 13609, 580, 297, 903, 4519, 29902, 20566, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 903, 22692, 29918, 361, 29918, 12313, 29918, 1124, 29918, 4882, 29918, 392, 29918, 5696, 29898, 5327, 1125, 13, 4706, 9995, 5596, 2933, 4660, 775, 338, 2854, 29889, 13, 13, 4706, 19928, 367, 29871, 29906, 29900, 29900, 29892, 29871, 29906, 29900, 29896, 29892, 29871, 29906, 29900, 29906, 29892, 470, 29871, 29906, 29900, 29946, 29889, 13, 13, 4706, 584, 336, 4637, 29901, 9178, 5709, 565, 8340, 4660, 29889, 13, 4706, 9995, 13, 4706, 775, 353, 2933, 29889, 4882, 29918, 401, 13, 4706, 565, 775, 297, 426, 29906, 29900, 29900, 29892, 29871, 29906, 29900, 29896, 29892, 29871, 29906, 29900, 29906, 29892, 29871, 29906, 29900, 29946, 6177, 13, 9651, 736, 13, 4706, 12020, 9178, 5709, 29898, 13, 9651, 376, 13919, 736, 4660, 426, 29991, 29878, 29913, 363, 426, 29991, 29878, 29913, 5858, 1642, 4830, 29898, 13, 18884, 775, 29892, 2933, 29889, 3827, 29889, 5696, 13, 9651, 1723, 13, 4706, 1723, 13, 13, 1678, 7465, 822, 903, 29886, 3028, 29898, 1311, 1125, 29871, 396, 282, 2904, 524, 29901, 20472, 29922, 20965, 29899, 957, 2429, 1145, 29899, 5696, 13, 4706, 9995, 29925, 3028, 4660, 310, 5858, 577, 1472, 408, 5858, 338, 28907, 322, 13, 4706, 591, 505, 385, 16248, 304, 2346, 29889, 13, 13, 4706, 584, 3207, 1246, 519, 2767, 29918, 9006, 29901, 450, 740, 304, 1246, 304, 10563, 278, 13, 308, 9281, 4660, 310, 278, 1472, 2734, 5858, 29889, 13, 4706, 584, 336, 4637, 29901, 20462, 17776, 565, 5858, 4660, 525, 17776, 29915, 470, 525, 29907, 749, 839, 4286, 13, 4706, 584, 336, 4637, 29901, 9178, 5709, 565, 2933, 4660, 8340, 29889, 13, 4706, 584, 336, 4637, 29901, 9178, 5103, 565, 2933, 8340, 29889, 13, 4706, 9995, 13, 4706, 1550, 451, 1583, 29889, 4951, 3276, 7295, 13, 9651, 7272, 1583, 3032, 18829, 580, 13, 9651, 7272, 1583, 29889, 5504, 29918, 4882, 580, 13, 13, 4706, 565, 3992, 21067, 22026, 8123, 29931, 1672, 7713, 1847, 4062, 3032, 26061, 29898, 1311, 29889, 4882, 580, 1125, 13, 9651, 12020, 20462, 17776, 703, 10925, 5229, 470, 508, 346, 839, 1159, 13, 13, 4706, 2186, 29918, 657, 29918, 2271, 353, 1583, 3032, 16453, 29889, 657, 29918, 8394, 29918, 657, 29918, 2271, 29898, 1311, 3032, 13096, 5570, 29918, 5327, 29897, 13, 4706, 565, 2186, 29918, 657, 29918, 2271, 29901, 13, 9651, 1583, 3032, 13096, 5570, 29918, 5327, 353, 7272, 1583, 29889, 3827, 29918, 4882, 29898, 8394, 29918, 657, 29918, 2271, 29897, 13, 9651, 3992, 21067, 22026, 8123, 29931, 1672, 7713, 1847, 4062, 3032, 22692, 29918, 361, 29918, 12313, 29918, 1124, 29918, 4882, 29918, 392, 29918, 5696, 29898, 13, 18884, 1583, 3032, 13096, 5570, 29918, 5327, 29889, 1124, 29918, 5327, 13, 9651, 1723, 13, 13, 1990, 20688, 2744, 14997, 911, 23145, 26525, 29931, 1672, 7713, 1847, 4062, 29898, 1626, 21067, 22026, 8123, 29931, 1672, 7713, 1847, 4062, 1125, 13, 13, 1678, 732, 6799, 13, 1678, 822, 903, 3784, 29918, 2587, 29898, 1311, 1125, 13, 4706, 515, 869, 29918, 13525, 29889, 29894, 29941, 29918, 29896, 29918, 25347, 29918, 29941, 29889, 9794, 1053, 17163, 18417, 13, 4706, 736, 17163, 18417, 29889, 2783, 261, 6646, 29898, 1311, 3032, 13096, 5570, 29918, 5327, 29897, 13, 13, 1678, 732, 6799, 13, 1678, 822, 2825, 29918, 265, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 3032, 3784, 29918, 2587, 29901, 13, 9651, 736, 6213, 13, 4706, 736, 1583, 3032, 3784, 29918, 2587, 29889, 11600, 29918, 1256, 29918, 2230, 13, 13, 1678, 732, 6799, 13, 1678, 822, 2479, 29918, 978, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 3032, 3784, 29918, 2587, 29901, 13, 9651, 736, 6213, 13, 4706, 736, 1583, 3032, 3784, 29918, 2587, 29889, 4990, 29918, 978, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1518, 2658, 29918, 265, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 3032, 3784, 29918, 2587, 29901, 13, 9651, 736, 6213, 13, 4706, 736, 1583, 3032, 3784, 29918, 2587, 29889, 4548, 12232, 29918, 1256, 29918, 2230, 13, 13, 1678, 732, 6799, 13, 1678, 822, 8820, 29918, 26061, 29918, 2798, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 3032, 3784, 29918, 2587, 29901, 13, 9651, 736, 6213, 13, 4706, 736, 1583, 3032, 3784, 29918, 2587, 29889, 1202, 3245, 29918, 11330, 1839, 20673, 16215, 26061, 2033, 13, 13, 1678, 732, 6799, 13, 1678, 822, 8820, 29918, 262, 29918, 18035, 29918, 2798, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 3032, 3784, 29918, 2587, 29901, 13, 9651, 736, 6213, 13, 4706, 736, 1583, 3032, 3784, 29918, 2587, 29889, 1202, 3245, 29918, 11330, 1839, 20673, 16215, 262, 14470, 2033, 13, 13, 1678, 732, 6799, 13, 1678, 822, 8820, 29918, 29879, 1682, 3947, 287, 29918, 2798, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 3032, 3784, 29918, 2587, 29901, 13, 9651, 736, 6213, 13, 4706, 736, 1583, 3032, 3784, 29918, 2587, 29889, 1202, 3245, 29918, 11330, 1839, 20673, 2033, 3366, 5729, 9446, 3108, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1833, 29918, 1545, 2164, 29918, 265, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 3032, 3784, 29918, 2587, 29901, 13, 9651, 736, 6213, 13, 4706, 736, 1583, 3032, 3784, 29918, 2587, 29889, 4230, 29918, 5504, 29918, 1256, 29918, 2230, 13, 13, 1678, 732, 6799, 13, 1678, 822, 3001, 29918, 7387, 29918, 2798, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 3032, 3784, 29918, 2587, 29901, 13, 9651, 736, 6213, 13, 4706, 736, 1583, 3032, 3784, 29918, 2587, 29889, 1202, 3245, 29918, 11330, 1839, 20673, 2033, 3366, 7827, 3108, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1178, 29898, 1311, 1125, 13, 4706, 565, 451, 1583, 3032, 3784, 29918, 2587, 29901, 13, 9651, 736, 6213, 13, 4706, 736, 1583, 3032, 3784, 29918, 2587, 29889, 9057, 29918, 333, 13, 13, 1990, 20688, 2744, 14997, 911, 23145, 26525, 29931, 1672, 7713, 1358, 29898, 8123, 29931, 1672, 7713, 1358, 29961, 7713, 1847, 11609, 1542, 29962, 1125, 13, 13, 1678, 732, 6799, 13, 1678, 822, 2825, 29918, 265, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 3733, 1847, 29918, 5696, 29889, 11600, 29918, 265, 13, 13, 1678, 732, 6799, 13, 1678, 822, 2479, 29918, 978, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 3733, 1847, 29918, 5696, 29889, 4990, 29918, 978, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1518, 2658, 29918, 265, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 3733, 1847, 29918, 5696, 29889, 4548, 2658, 29918, 265, 13, 13, 1678, 732, 6799, 13, 1678, 822, 8820, 29918, 26061, 29918, 2798, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 3733, 1847, 29918, 5696, 29889, 7387, 29918, 26061, 29918, 2798, 13, 13, 1678, 732, 6799, 13, 1678, 822, 8820, 29918, 262, 29918, 18035, 29918, 2798, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 3733, 1847, 29918, 5696, 29889, 7387, 29918, 262, 29918, 18035, 29918, 2798, 13, 13, 1678, 732, 6799, 13, 1678, 822, 8820, 29918, 29879, 1682, 3947, 287, 29918, 2798, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 3733, 1847, 29918, 5696, 29889, 7387, 29918, 29879, 1682, 3947, 287, 29918, 2798, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1833, 29918, 1545, 2164, 29918, 265, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 3733, 1847, 29918, 5696, 29889, 4230, 29918, 1545, 2164, 29918, 265, 13, 1678, 732, 6799, 13, 1678, 822, 3001, 29918, 7387, 29918, 2798, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 3733, 1847, 29918, 5696, 29889, 7827, 29918, 7387, 29918, 2798, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1178, 29898, 1311, 1125, 13, 4706, 736, 1583, 3032, 3733, 1847, 29918, 5696, 29889, 333, 13, 2 ]
ctlearn/default_models/resnet_rnn.py
sgh14/ctlearn
38
73496
import importlib import sys import tensorflow as tf LSTM_SIZE = 2048 def resnet_rnn_model(features, model_params, example_description, training): # Get hyperparameters dropout_rate = model_params['resnet_rnn'].get('dropout_rate', 0.5) # Reshape inputs into proper dimensions for (name, f), d in zip(features.items(), example_description): if name.endswith('images'): telescope_data = tf.reshape(f, [-1, *d['shape']]) num_telescopes = d['shape'][0] if name.endswith('triggers'): telescope_triggers = tf.cast(f, tf.float32) # Transpose telescope_data from [batch_size,num_tel,length,width,channels] # to [num_tel,batch_size,length,width,channels]. telescope_data = tf.transpose(telescope_data, perm=[1, 0, 2, 3, 4]) # Define the network being used. Each CNN block analyzes a single # telescope. The outputs for non-triggering telescopes are zeroed out # (effectively, those channels are dropped out). # Unlike standard dropout, this zeroing-out procedure is performed both at # training and test time since it encodes meaningful aspects of the data. # The telescope outputs are then stacked into input for the array-level # network, either into 1D feature vectors or into 3D convolutional # feature maps, depending on the requirements of the network head. # The array-level processing is then performed by the network head. The # logits are returned and fed into a classifier. # Load ResNet block model sys.path.append(model_params['model_directory']) resnet_block_module = importlib.import_module(model_params['resnet_rnn']['network']['module']) resnet_block = getattr(resnet_block_module, model_params['resnet_rnn']['network']['function']) trainable = model_params['resnet_rnn'].get('trainable_backbone', False) #calculate number of valid images per event num_tels_triggered = tf.to_int32(tf.reduce_sum(telescope_triggers,1)) telescope_outputs = [] for telescope_index in range(num_telescopes): # Set all telescopes after the first to share weights reuse = None if telescope_index == 0 else True with tf.variable_scope("resnet_block"): x = tf.gather(telescope_data, telescope_index) # The original ResNet implementation use this padding, but we pad the images in the ImageMapper. #x = tf.pad(telescope_data, tf.constant([[3, 3], [3, 3]]), name='conv1_pad') init_layer = model_params['res_net'].get('init_layer', False) if init_layer: x = tf.layers.conv2d(x, filters=init_layer['filters'], kernel_size=init_layer['kernel_size'], strides=init_layer['strides'], trainable=trainable, name='conv1_conv') #x = tf.pad(x, tf.constant([[1, 1], [1, 1]]), name='pool1_pad') init_max_pool = model_params['res_net'].get('init_max_pool', False) if init_max_pool: x = tf.layers.max_pooling2d(x, init_max_pool['size'], strides=init_max_pool['strides'], trainable=trainable, name='pool1_pool') output = resnet_block(x, params=model_params, reuse=reuse, trainable=trainable) output = tf.reduce_mean(output, axis=[1,2], name='global_avgpool') if model_params['resnet_rnn']['pretrained_weights']: tf.contrib.framework.init_from_checkpoint(model_params['resnet_rnn']['pretrained_weights'],{'Network/':'resnet_block/'}) #flatten output of embedding CNN to (batch_size, _) image_embedding = tf.layers.flatten(output, name='image_embedding') image_embedding_dropout = tf.layers.dropout(image_embedding, training=training) telescope_outputs.append(image_embedding_dropout) with tf.variable_scope("NetworkHead"): #combine image embeddings (batch_size, num_tel, num_units_embedding) embeddings = tf.stack(telescope_outputs,axis=1) #implement attention mechanism with range num_tel (covering all timesteps) #define LSTM cell size rnn_cell = tf.nn.rnn_cell.LSTMCell(LSTM_SIZE) outputs, _ = tf.nn.dynamic_rnn( rnn_cell, embeddings, dtype=tf.float32, swap_memory=True, sequence_length=num_tels_triggered) # (batch_size, max_num_tel * LSTM_SIZE) outputs = tf.layers.flatten(outputs) output_dropout = tf.layers.dropout(outputs, rate=dropout_rate, training=training, name="rnn_output_dropout") fc1 = tf.layers.dense(inputs=output_dropout, units=1024, kernel_regularizer=tf.contrib.layers.l2_regularizer(scale=0.004), name="fc1") dropout_1 = tf.layers.dropout(inputs=fc1, rate=dropout_rate, training=training) fc2 = tf.layers.dense(inputs=dropout_1, units=512, kernel_regularizer=tf.contrib.layers.l2_regularizer(scale=0.004), name="fc2") dropout_2 = tf.layers.dropout(inputs=fc2, rate=dropout_rate, training=training) return dropout_2
[ 1, 1053, 1053, 1982, 13, 5215, 10876, 13, 13, 5215, 26110, 408, 15886, 13, 13, 29931, 1254, 29924, 29918, 14226, 353, 29871, 29906, 29900, 29946, 29947, 13, 13, 1753, 620, 1212, 29918, 29878, 15755, 29918, 4299, 29898, 22100, 29892, 1904, 29918, 7529, 29892, 1342, 29918, 8216, 29892, 6694, 1125, 13, 13, 1678, 396, 3617, 11266, 16744, 13, 1678, 5768, 449, 29918, 10492, 353, 1904, 29918, 7529, 1839, 690, 1212, 29918, 29878, 15755, 13359, 657, 877, 8865, 449, 29918, 10492, 742, 29871, 29900, 29889, 29945, 29897, 13, 13, 1678, 396, 2538, 14443, 10970, 964, 1571, 13391, 13, 1678, 363, 313, 978, 29892, 285, 511, 270, 297, 14319, 29898, 22100, 29889, 7076, 3285, 1342, 29918, 8216, 1125, 13, 4706, 565, 1024, 29889, 1975, 2541, 877, 8346, 29374, 13, 9651, 26503, 4338, 29918, 1272, 353, 15886, 29889, 690, 14443, 29898, 29888, 29892, 21069, 29896, 29892, 334, 29881, 1839, 12181, 2033, 2314, 13, 9651, 954, 29918, 29873, 5830, 9708, 267, 353, 270, 1839, 12181, 2033, 29961, 29900, 29962, 13, 4706, 565, 1024, 29889, 1975, 2541, 877, 509, 335, 5743, 29374, 13, 9651, 26503, 4338, 29918, 509, 335, 5743, 353, 15886, 29889, 4384, 29898, 29888, 29892, 15886, 29889, 7411, 29941, 29906, 29897, 13, 13, 1678, 396, 4103, 4220, 26503, 4338, 29918, 1272, 515, 518, 16175, 29918, 2311, 29892, 1949, 29918, 28497, 29892, 2848, 29892, 2103, 29892, 305, 12629, 29962, 13, 1678, 396, 304, 518, 1949, 29918, 28497, 29892, 16175, 29918, 2311, 29892, 2848, 29892, 2103, 29892, 305, 12629, 1822, 13, 1678, 26503, 4338, 29918, 1272, 353, 15886, 29889, 3286, 4220, 29898, 29873, 5830, 4338, 29918, 1272, 29892, 3635, 11759, 29896, 29892, 29871, 29900, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 29871, 29946, 2314, 13, 13, 1678, 396, 22402, 278, 3564, 1641, 1304, 29889, 7806, 29696, 2908, 16455, 10947, 263, 2323, 13, 1678, 396, 26503, 4338, 29889, 450, 14391, 363, 1661, 29899, 21001, 292, 26503, 9708, 267, 526, 5225, 287, 714, 29871, 13, 1678, 396, 313, 15987, 3598, 29892, 1906, 18196, 526, 13700, 714, 467, 13, 1678, 396, 853, 4561, 3918, 5768, 449, 29892, 445, 5225, 292, 29899, 449, 8792, 338, 8560, 1716, 472, 13, 1678, 396, 6694, 322, 1243, 931, 1951, 372, 2094, 2631, 6593, 1319, 21420, 310, 278, 848, 29889, 13, 1678, 396, 450, 26503, 4338, 14391, 526, 769, 5096, 287, 964, 1881, 363, 278, 1409, 29899, 5563, 13, 1678, 396, 3564, 29892, 2845, 964, 29871, 29896, 29928, 4682, 12047, 470, 964, 29871, 29941, 29928, 26851, 284, 29871, 13, 1678, 396, 4682, 11053, 29892, 8679, 373, 278, 11780, 310, 278, 3564, 2343, 29889, 13, 1678, 396, 450, 1409, 29899, 5563, 9068, 338, 769, 8560, 491, 278, 3564, 2343, 29889, 450, 13, 1678, 396, 1480, 1169, 526, 4133, 322, 21242, 964, 263, 770, 3709, 29889, 13, 13, 1678, 396, 16012, 2538, 6779, 2908, 1904, 13, 1678, 10876, 29889, 2084, 29889, 4397, 29898, 4299, 29918, 7529, 1839, 4299, 29918, 12322, 11287, 13, 1678, 620, 1212, 29918, 1271, 29918, 5453, 353, 1053, 1982, 29889, 5215, 29918, 5453, 29898, 4299, 29918, 7529, 1839, 690, 1212, 29918, 29878, 15755, 16215, 11618, 16215, 5453, 11287, 13, 1678, 620, 1212, 29918, 1271, 353, 679, 5552, 29898, 690, 1212, 29918, 1271, 29918, 5453, 29892, 1904, 29918, 7529, 1839, 690, 1212, 29918, 29878, 15755, 16215, 11618, 16215, 2220, 11287, 13, 1678, 7945, 519, 353, 1904, 29918, 7529, 1839, 690, 1212, 29918, 29878, 15755, 13359, 657, 877, 14968, 519, 29918, 1627, 15933, 742, 7700, 29897, 13, 13, 1678, 396, 15807, 403, 1353, 310, 2854, 4558, 639, 1741, 13, 1678, 954, 29918, 29873, 1379, 29918, 21001, 287, 353, 15886, 29889, 517, 29918, 524, 29941, 29906, 29898, 13264, 29889, 17469, 29918, 2083, 29898, 29873, 5830, 4338, 29918, 509, 335, 5743, 29892, 29896, 876, 13, 13, 1678, 26503, 4338, 29918, 4905, 29879, 353, 5159, 13, 1678, 363, 26503, 4338, 29918, 2248, 297, 3464, 29898, 1949, 29918, 29873, 5830, 9708, 267, 1125, 13, 4706, 396, 3789, 599, 26503, 9708, 267, 1156, 278, 937, 304, 6232, 18177, 13, 4706, 24270, 353, 6213, 565, 26503, 4338, 29918, 2248, 1275, 29871, 29900, 1683, 5852, 13, 13, 4706, 411, 15886, 29889, 11918, 29918, 6078, 703, 690, 1212, 29918, 1271, 29908, 1125, 13, 9651, 921, 353, 15886, 29889, 29887, 1624, 29898, 29873, 5830, 4338, 29918, 1272, 29892, 26503, 4338, 29918, 2248, 29897, 13, 9651, 396, 450, 2441, 2538, 6779, 5314, 671, 445, 7164, 29892, 541, 591, 17132, 278, 4558, 297, 278, 7084, 19968, 29889, 13, 9651, 396, 29916, 353, 15886, 29889, 8305, 29898, 29873, 5830, 4338, 29918, 1272, 29892, 15886, 29889, 23362, 4197, 29961, 29941, 29892, 29871, 29941, 1402, 518, 29941, 29892, 29871, 29941, 5262, 511, 1024, 2433, 20580, 29896, 29918, 8305, 1495, 13, 9651, 2069, 29918, 13148, 353, 1904, 29918, 7529, 1839, 690, 29918, 1212, 13359, 657, 877, 2344, 29918, 13148, 742, 7700, 29897, 13, 9651, 565, 2069, 29918, 13148, 29901, 13, 18884, 921, 353, 15886, 29889, 29277, 29889, 20580, 29906, 29881, 29898, 29916, 29892, 18094, 29922, 2344, 29918, 13148, 1839, 26705, 7464, 8466, 29918, 2311, 29922, 2344, 29918, 13148, 1839, 17460, 29918, 2311, 7464, 13, 462, 4706, 851, 2247, 29922, 2344, 29918, 13148, 1839, 710, 2247, 7464, 7945, 519, 29922, 14968, 519, 29892, 1024, 2433, 20580, 29896, 29918, 20580, 1495, 13, 9651, 396, 29916, 353, 15886, 29889, 8305, 29898, 29916, 29892, 15886, 29889, 23362, 4197, 29961, 29896, 29892, 29871, 29896, 1402, 518, 29896, 29892, 29871, 29896, 5262, 511, 1024, 2433, 10109, 29896, 29918, 8305, 1495, 13, 9651, 2069, 29918, 3317, 29918, 10109, 353, 1904, 29918, 7529, 1839, 690, 29918, 1212, 13359, 657, 877, 2344, 29918, 3317, 29918, 10109, 742, 7700, 29897, 13, 9651, 565, 2069, 29918, 3317, 29918, 10109, 29901, 13, 18884, 921, 353, 15886, 29889, 29277, 29889, 3317, 29918, 10109, 292, 29906, 29881, 29898, 29916, 29892, 2069, 29918, 3317, 29918, 10109, 1839, 2311, 7464, 851, 2247, 29922, 2344, 29918, 3317, 29918, 10109, 1839, 710, 2247, 7464, 7945, 519, 29922, 14968, 519, 29892, 1024, 2433, 10109, 29896, 29918, 10109, 1495, 13, 13, 9651, 1962, 353, 620, 1212, 29918, 1271, 29898, 29916, 29892, 8636, 29922, 4299, 29918, 7529, 29892, 24270, 29922, 276, 1509, 29892, 7945, 519, 29922, 14968, 519, 29897, 13, 9651, 1962, 353, 15886, 29889, 17469, 29918, 12676, 29898, 4905, 29892, 9685, 11759, 29896, 29892, 29906, 1402, 1024, 2433, 10945, 29918, 485, 29887, 10109, 1495, 13, 13, 4706, 565, 1904, 29918, 7529, 1839, 690, 1212, 29918, 29878, 15755, 16215, 1457, 3018, 1312, 29918, 705, 5861, 2033, 29901, 13, 9651, 15886, 29889, 21570, 29889, 4468, 29889, 2344, 29918, 3166, 29918, 3198, 3149, 29898, 4299, 29918, 7529, 1839, 690, 1212, 29918, 29878, 15755, 16215, 1457, 3018, 1312, 29918, 705, 5861, 7464, 10998, 13724, 29914, 22099, 690, 1212, 29918, 1271, 22208, 1800, 13, 13, 4706, 396, 1579, 8606, 1962, 310, 23655, 29696, 304, 313, 16175, 29918, 2311, 29892, 24459, 13, 4706, 1967, 29918, 17987, 8497, 353, 15886, 29889, 29277, 29889, 1579, 8606, 29898, 4905, 29892, 1024, 2433, 3027, 29918, 17987, 8497, 1495, 13, 4706, 1967, 29918, 17987, 8497, 29918, 8865, 449, 353, 15886, 29889, 29277, 29889, 8865, 449, 29898, 3027, 29918, 17987, 8497, 29892, 6694, 29922, 26495, 29897, 13, 4706, 26503, 4338, 29918, 4905, 29879, 29889, 4397, 29898, 3027, 29918, 17987, 8497, 29918, 8865, 449, 29897, 13, 13, 1678, 411, 15886, 29889, 11918, 29918, 6078, 703, 13724, 5494, 29908, 1125, 13, 13, 4706, 396, 17743, 457, 1967, 8297, 29881, 886, 313, 16175, 29918, 2311, 29892, 954, 29918, 28497, 29892, 954, 29918, 348, 1169, 29918, 17987, 8497, 29897, 13, 4706, 8297, 29881, 886, 353, 15886, 29889, 1429, 29898, 29873, 5830, 4338, 29918, 4905, 29879, 29892, 8990, 29922, 29896, 29897, 13, 13, 4706, 396, 326, 2037, 8570, 13336, 411, 3464, 954, 29918, 28497, 313, 11911, 292, 599, 5335, 4196, 567, 29897, 13, 4706, 396, 7922, 365, 1254, 29924, 3038, 2159, 13, 4706, 364, 15755, 29918, 3729, 353, 15886, 29889, 15755, 29889, 29878, 15755, 29918, 3729, 29889, 29931, 1254, 29924, 4617, 29898, 29931, 1254, 29924, 29918, 14226, 29897, 13, 4706, 14391, 29892, 903, 29871, 353, 15886, 29889, 15755, 29889, 16626, 29918, 29878, 15755, 29898, 13, 462, 9651, 364, 15755, 29918, 3729, 29892, 13, 462, 9651, 8297, 29881, 886, 29892, 13, 462, 9651, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 29892, 13, 462, 9651, 17945, 29918, 14834, 29922, 5574, 29892, 13, 462, 9651, 5665, 29918, 2848, 29922, 1949, 29918, 29873, 1379, 29918, 21001, 287, 29897, 13, 13, 4706, 396, 313, 16175, 29918, 2311, 29892, 4236, 29918, 1949, 29918, 28497, 334, 365, 1254, 29924, 29918, 14226, 29897, 13, 4706, 14391, 353, 15886, 29889, 29277, 29889, 1579, 8606, 29898, 4905, 29879, 29897, 13, 4706, 1962, 29918, 8865, 449, 353, 15886, 29889, 29277, 29889, 8865, 449, 29898, 4905, 29879, 29892, 6554, 29922, 8865, 449, 29918, 10492, 29892, 13, 18884, 6694, 29922, 26495, 29892, 1024, 543, 29878, 15755, 29918, 4905, 29918, 8865, 449, 1159, 13, 13, 4706, 285, 29883, 29896, 353, 15886, 29889, 29277, 29889, 1145, 344, 29898, 2080, 29879, 29922, 4905, 29918, 8865, 449, 29892, 10340, 29922, 29896, 29900, 29906, 29946, 29892, 8466, 29918, 15227, 3950, 29922, 13264, 29889, 21570, 29889, 29277, 29889, 29880, 29906, 29918, 15227, 3950, 29898, 7052, 29922, 29900, 29889, 29900, 29900, 29946, 511, 1024, 543, 13801, 29896, 1159, 13, 4706, 5768, 449, 29918, 29896, 353, 15886, 29889, 29277, 29889, 8865, 449, 29898, 2080, 29879, 29922, 13801, 29896, 29892, 6554, 29922, 8865, 449, 29918, 10492, 29892, 13, 18884, 6694, 29922, 26495, 29897, 13, 13, 4706, 285, 29883, 29906, 353, 15886, 29889, 29277, 29889, 1145, 344, 29898, 2080, 29879, 29922, 8865, 449, 29918, 29896, 29892, 10340, 29922, 29945, 29896, 29906, 29892, 8466, 29918, 15227, 3950, 29922, 13264, 29889, 21570, 29889, 29277, 29889, 29880, 29906, 29918, 15227, 3950, 29898, 7052, 29922, 29900, 29889, 29900, 29900, 29946, 511, 1024, 543, 13801, 29906, 1159, 13, 4706, 5768, 449, 29918, 29906, 353, 15886, 29889, 29277, 29889, 8865, 449, 29898, 2080, 29879, 29922, 13801, 29906, 29892, 6554, 29922, 8865, 449, 29918, 10492, 29892, 13, 18884, 6694, 29922, 26495, 29897, 13, 13, 1678, 736, 5768, 449, 29918, 29906, 13, 2 ]
tests/python/pants_test/build_graph/test_build_file_address_mapper.py
qma/pants
0
43466
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os from textwrap import dedent from pants.build_graph.address import Address, BuildFileAddress from pants.build_graph.address_lookup_error import AddressLookupError from pants.build_graph.build_file_address_mapper import BuildFileAddressMapper from pants.build_graph.target import Target from pants_test.base_test import BaseTest # TODO(<NAME>) There are methods in BuildFileAddressMapper that are missing # explicit unit tests: addresses_in_spec_path, spec_to_address, spec_to_addresses class BuildFileAddressMapperTest(BaseTest): def test_resolve(self): build_file = self.add_to_build_file('BUILD', 'target(name="foo")') address, addressable = self.address_mapper.resolve(Address.parse('//:foo')) self.assertIsInstance(address, BuildFileAddress) self.assertEqual(build_file, address.build_file) self.assertEqual('foo', address.target_name) self.assertEqual(address.target_name, addressable.addressed_name) self.assertEqual(addressable.addressed_type, Target) def test_resolve_spec(self): self.add_to_build_file('BUILD', dedent(""" target(name='foozle') target(name='baz') """)) with self.assertRaises(AddressLookupError): self.address_mapper.resolve_spec('//:bad_spec') dependencies_addressable = self.address_mapper.resolve_spec('//:foozle') self.assertEqual(dependencies_addressable.addressed_type, Target) def test_scan_addresses(self): root_build_file = self.add_to_build_file('BUILD', 'target(name="foo")') subdir_build_file = self.add_to_build_file('subdir/BUILD', 'target(name="bar")') subdir_suffix_build_file = self.add_to_build_file('subdir/BUILD.suffix', 'target(name="baz")') with open(os.path.join(self.build_root, 'BUILD.invalid.suffix'), 'w') as invalid_build_file: invalid_build_file.write('target(name="foobar")') self.assertEquals({BuildFileAddress(root_build_file, 'foo'), BuildFileAddress(subdir_build_file, 'bar'), BuildFileAddress(subdir_suffix_build_file, 'baz')}, self.address_mapper.scan_addresses()) def test_scan_addresses_with_excludes(self): root_build_file = self.add_to_build_file('BUILD', 'target(name="foo")') self.add_to_build_file('subdir/BUILD', 'target(name="bar")') spec_excludes = [os.path.join(self.build_root, 'subdir')] self.assertEquals({BuildFileAddress(root_build_file, 'foo')}, self.address_mapper.scan_addresses(spec_excludes=spec_excludes)) def test_scan_addresses_with_root(self): self.add_to_build_file('BUILD', 'target(name="foo")') subdir_build_file = self.add_to_build_file('subdir/BUILD', 'target(name="bar")') subdir_suffix_build_file = self.add_to_build_file('subdir/BUILD.suffix', 'target(name="baz")') subdir = os.path.join(self.build_root, 'subdir') self.assertEquals({BuildFileAddress(subdir_build_file, 'bar'), BuildFileAddress(subdir_suffix_build_file, 'baz')}, self.address_mapper.scan_addresses(root=subdir)) def test_scan_addresses_with_invalid_root(self): with self.assertRaises(BuildFileAddressMapper.InvalidRootError): self.address_mapper.scan_addresses(root='subdir') def test_raises_invalid_build_file_reference(self): # reference a BUILD file that doesn't exist with self.assertRaisesRegexp(BuildFileAddressMapper.InvalidBuildFileReference, '^BUILD file does not exist at: .*/non-existent-path' '\s+when translating spec //non-existent-path:a'): self.address_mapper.spec_to_address('//non-existent-path:a') def test_raises_address_not_in_build_file(self): self.add_to_build_file('BUILD', 'target(name="foo")') # Create an address that doesn't exist in an existing BUILD file address = Address.parse(':bar') with self.assertRaises(BuildFileAddressMapper.AddressNotInBuildFile): self.address_mapper.resolve(address) def test_raises_address_invalid_address_error(self): with self.assertRaises(BuildFileAddressMapper.InvalidAddressError): self.address_mapper.resolve_spec("../foo") def test_raises_empty_build_file_error(self): self.add_to_build_file('BUILD', 'pass') with self.assertRaises(BuildFileAddressMapper.EmptyBuildFileError): self.address_mapper.resolve_spec('//:foo') def test_address_lookup_error_hierarcy(self): self.assertIsInstance(BuildFileAddressMapper.AddressNotInBuildFile(), AddressLookupError) self.assertIsInstance(BuildFileAddressMapper.EmptyBuildFileError(), AddressLookupError) self.assertIsInstance(BuildFileAddressMapper.InvalidBuildFileReference(), AddressLookupError) self.assertIsInstance(BuildFileAddressMapper.InvalidAddressError(), AddressLookupError) self.assertIsInstance(BuildFileAddressMapper.BuildFileScanError(), AddressLookupError)
[ 1, 396, 14137, 29922, 9420, 29899, 29947, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29896, 29946, 349, 1934, 2060, 17737, 29560, 313, 4149, 8707, 29911, 3960, 29933, 2692, 24125, 29889, 3487, 467, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 4149, 365, 2965, 1430, 1660, 467, 13, 13, 3166, 4770, 29888, 9130, 1649, 1053, 313, 23552, 29918, 5215, 29892, 8542, 29892, 1176, 4097, 29892, 9322, 29918, 21785, 267, 29892, 1596, 29918, 2220, 29892, 13, 462, 4706, 29104, 29918, 20889, 1338, 29892, 411, 29918, 20788, 29897, 13, 13, 5215, 2897, 13, 3166, 1426, 6312, 1053, 28262, 296, 13, 13, 3166, 282, 1934, 29889, 4282, 29918, 4262, 29889, 7328, 1053, 16428, 29892, 8878, 2283, 7061, 13, 3166, 282, 1934, 29889, 4282, 29918, 4262, 29889, 7328, 29918, 20401, 29918, 2704, 1053, 16428, 14959, 786, 2392, 13, 3166, 282, 1934, 29889, 4282, 29918, 4262, 29889, 4282, 29918, 1445, 29918, 7328, 29918, 655, 2496, 1053, 8878, 2283, 7061, 19968, 13, 3166, 282, 1934, 29889, 4282, 29918, 4262, 29889, 5182, 1053, 17157, 13, 3166, 282, 1934, 29918, 1688, 29889, 3188, 29918, 1688, 1053, 7399, 3057, 13, 13, 13, 29937, 14402, 29898, 29966, 5813, 12948, 1670, 526, 3519, 297, 8878, 2283, 7061, 19968, 393, 526, 4567, 13, 29937, 6261, 5190, 6987, 29901, 14157, 29918, 262, 29918, 6550, 29918, 2084, 29892, 1580, 29918, 517, 29918, 7328, 29892, 1580, 29918, 517, 29918, 7328, 267, 13, 1990, 8878, 2283, 7061, 19968, 3057, 29898, 5160, 3057, 1125, 13, 13, 29871, 822, 1243, 29918, 17863, 29898, 1311, 1125, 13, 1678, 2048, 29918, 1445, 353, 1583, 29889, 1202, 29918, 517, 29918, 4282, 29918, 1445, 877, 29933, 25282, 742, 525, 5182, 29898, 978, 543, 5431, 1159, 1495, 13, 1678, 3211, 29892, 3211, 519, 353, 1583, 29889, 7328, 29918, 655, 2496, 29889, 17863, 29898, 7061, 29889, 5510, 877, 458, 29901, 5431, 8785, 13, 1678, 1583, 29889, 9294, 3624, 4998, 29898, 7328, 29892, 8878, 2283, 7061, 29897, 13, 1678, 1583, 29889, 9294, 9843, 29898, 4282, 29918, 1445, 29892, 3211, 29889, 4282, 29918, 1445, 29897, 13, 1678, 1583, 29889, 9294, 9843, 877, 5431, 742, 3211, 29889, 5182, 29918, 978, 29897, 13, 1678, 1583, 29889, 9294, 9843, 29898, 7328, 29889, 5182, 29918, 978, 29892, 3211, 519, 29889, 7328, 287, 29918, 978, 29897, 13, 1678, 1583, 29889, 9294, 9843, 29898, 7328, 519, 29889, 7328, 287, 29918, 1853, 29892, 17157, 29897, 13, 13, 29871, 822, 1243, 29918, 17863, 29918, 6550, 29898, 1311, 1125, 13, 1678, 1583, 29889, 1202, 29918, 517, 29918, 4282, 29918, 1445, 877, 29933, 25282, 742, 28262, 296, 703, 15945, 13, 418, 3646, 29898, 978, 2433, 1181, 2112, 280, 1495, 13, 418, 3646, 29898, 978, 2433, 27975, 1495, 13, 418, 5124, 5783, 13, 13, 1678, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 7061, 14959, 786, 2392, 1125, 13, 418, 1583, 29889, 7328, 29918, 655, 2496, 29889, 17863, 29918, 6550, 877, 458, 29901, 12313, 29918, 6550, 1495, 13, 13, 1678, 9962, 29918, 7328, 519, 353, 1583, 29889, 7328, 29918, 655, 2496, 29889, 17863, 29918, 6550, 877, 458, 29901, 1181, 2112, 280, 1495, 13, 1678, 1583, 29889, 9294, 9843, 29898, 22594, 29918, 7328, 519, 29889, 7328, 287, 29918, 1853, 29892, 17157, 29897, 13, 13, 29871, 822, 1243, 29918, 16192, 29918, 7328, 267, 29898, 1311, 1125, 13, 1678, 3876, 29918, 4282, 29918, 1445, 353, 1583, 29889, 1202, 29918, 517, 29918, 4282, 29918, 1445, 877, 29933, 25282, 742, 525, 5182, 29898, 978, 543, 5431, 1159, 1495, 13, 1678, 1014, 3972, 29918, 4282, 29918, 1445, 353, 1583, 29889, 1202, 29918, 517, 29918, 4282, 29918, 1445, 877, 1491, 3972, 29914, 29933, 25282, 742, 525, 5182, 29898, 978, 543, 1646, 1159, 1495, 13, 1678, 1014, 3972, 29918, 2146, 600, 861, 29918, 4282, 29918, 1445, 353, 1583, 29889, 1202, 29918, 517, 29918, 4282, 29918, 1445, 877, 1491, 3972, 29914, 29933, 25282, 29889, 2146, 600, 861, 742, 525, 5182, 29898, 978, 543, 27975, 1159, 1495, 13, 1678, 411, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 1311, 29889, 4282, 29918, 4632, 29892, 525, 29933, 25282, 29889, 20965, 29889, 2146, 600, 861, 5477, 525, 29893, 1495, 408, 8340, 29918, 4282, 29918, 1445, 29901, 13, 418, 8340, 29918, 4282, 29918, 1445, 29889, 3539, 877, 5182, 29898, 978, 543, 1181, 22872, 1159, 1495, 13, 1678, 1583, 29889, 9294, 14776, 3319, 8893, 2283, 7061, 29898, 4632, 29918, 4282, 29918, 1445, 29892, 525, 5431, 5477, 13, 462, 539, 8878, 2283, 7061, 29898, 1491, 3972, 29918, 4282, 29918, 1445, 29892, 525, 1646, 5477, 13, 462, 539, 8878, 2283, 7061, 29898, 1491, 3972, 29918, 2146, 600, 861, 29918, 4282, 29918, 1445, 29892, 525, 27975, 1495, 1118, 13, 462, 418, 1583, 29889, 7328, 29918, 655, 2496, 29889, 16192, 29918, 7328, 267, 3101, 13, 13, 29871, 822, 1243, 29918, 16192, 29918, 7328, 267, 29918, 2541, 29918, 735, 27722, 29898, 1311, 1125, 13, 1678, 3876, 29918, 4282, 29918, 1445, 353, 1583, 29889, 1202, 29918, 517, 29918, 4282, 29918, 1445, 877, 29933, 25282, 742, 525, 5182, 29898, 978, 543, 5431, 1159, 1495, 13, 1678, 1583, 29889, 1202, 29918, 517, 29918, 4282, 29918, 1445, 877, 1491, 3972, 29914, 29933, 25282, 742, 525, 5182, 29898, 978, 543, 1646, 1159, 1495, 13, 1678, 1580, 29918, 735, 27722, 353, 518, 359, 29889, 2084, 29889, 7122, 29898, 1311, 29889, 4282, 29918, 4632, 29892, 525, 1491, 3972, 1495, 29962, 13, 1678, 1583, 29889, 9294, 14776, 3319, 8893, 2283, 7061, 29898, 4632, 29918, 4282, 29918, 1445, 29892, 525, 5431, 1495, 1118, 13, 462, 418, 1583, 29889, 7328, 29918, 655, 2496, 29889, 16192, 29918, 7328, 267, 29898, 6550, 29918, 735, 27722, 29922, 6550, 29918, 735, 27722, 876, 13, 13, 29871, 822, 1243, 29918, 16192, 29918, 7328, 267, 29918, 2541, 29918, 4632, 29898, 1311, 1125, 13, 1678, 1583, 29889, 1202, 29918, 517, 29918, 4282, 29918, 1445, 877, 29933, 25282, 742, 525, 5182, 29898, 978, 543, 5431, 1159, 1495, 13, 1678, 1014, 3972, 29918, 4282, 29918, 1445, 353, 1583, 29889, 1202, 29918, 517, 29918, 4282, 29918, 1445, 877, 1491, 3972, 29914, 29933, 25282, 742, 525, 5182, 29898, 978, 543, 1646, 1159, 1495, 13, 1678, 1014, 3972, 29918, 2146, 600, 861, 29918, 4282, 29918, 1445, 353, 1583, 29889, 1202, 29918, 517, 29918, 4282, 29918, 1445, 877, 1491, 3972, 29914, 29933, 25282, 29889, 2146, 600, 861, 742, 525, 5182, 29898, 978, 543, 27975, 1159, 1495, 13, 1678, 1014, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 1311, 29889, 4282, 29918, 4632, 29892, 525, 1491, 3972, 1495, 13, 1678, 1583, 29889, 9294, 14776, 3319, 8893, 2283, 7061, 29898, 1491, 3972, 29918, 4282, 29918, 1445, 29892, 525, 1646, 5477, 13, 462, 539, 8878, 2283, 7061, 29898, 1491, 3972, 29918, 2146, 600, 861, 29918, 4282, 29918, 1445, 29892, 525, 27975, 1495, 1118, 13, 462, 418, 1583, 29889, 7328, 29918, 655, 2496, 29889, 16192, 29918, 7328, 267, 29898, 4632, 29922, 1491, 3972, 876, 13, 13, 29871, 822, 1243, 29918, 16192, 29918, 7328, 267, 29918, 2541, 29918, 20965, 29918, 4632, 29898, 1311, 1125, 13, 1678, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 8893, 2283, 7061, 19968, 29889, 13919, 10303, 2392, 1125, 13, 418, 1583, 29889, 7328, 29918, 655, 2496, 29889, 16192, 29918, 7328, 267, 29898, 4632, 2433, 1491, 3972, 1495, 13, 13, 29871, 822, 1243, 29918, 336, 4637, 29918, 20965, 29918, 4282, 29918, 1445, 29918, 5679, 29898, 1311, 1125, 13, 1678, 396, 3407, 263, 350, 25282, 934, 393, 1838, 29915, 29873, 1863, 13, 1678, 411, 1583, 29889, 9294, 29934, 1759, 267, 4597, 4548, 29898, 8893, 2283, 7061, 19968, 29889, 13919, 8893, 2283, 7422, 29892, 13, 462, 462, 525, 29985, 29933, 25282, 934, 947, 451, 1863, 472, 29901, 869, 3877, 5464, 29899, 735, 9696, 29899, 2084, 29915, 13, 462, 462, 11297, 29879, 29974, 8256, 5578, 1218, 1580, 849, 5464, 29899, 735, 9696, 29899, 2084, 29901, 29874, 29374, 13, 418, 1583, 29889, 7328, 29918, 655, 2496, 29889, 6550, 29918, 517, 29918, 7328, 877, 458, 5464, 29899, 735, 9696, 29899, 2084, 29901, 29874, 1495, 13, 13, 29871, 822, 1243, 29918, 336, 4637, 29918, 7328, 29918, 1333, 29918, 262, 29918, 4282, 29918, 1445, 29898, 1311, 1125, 13, 1678, 1583, 29889, 1202, 29918, 517, 29918, 4282, 29918, 1445, 877, 29933, 25282, 742, 525, 5182, 29898, 978, 543, 5431, 1159, 1495, 13, 13, 1678, 396, 6204, 385, 3211, 393, 1838, 29915, 29873, 1863, 297, 385, 5923, 350, 25282, 934, 13, 1678, 3211, 353, 16428, 29889, 5510, 877, 29901, 1646, 1495, 13, 1678, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 8893, 2283, 7061, 19968, 29889, 7061, 3664, 797, 8893, 2283, 1125, 13, 418, 1583, 29889, 7328, 29918, 655, 2496, 29889, 17863, 29898, 7328, 29897, 13, 13, 29871, 822, 1243, 29918, 336, 4637, 29918, 7328, 29918, 20965, 29918, 7328, 29918, 2704, 29898, 1311, 1125, 13, 1678, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 8893, 2283, 7061, 19968, 29889, 13919, 7061, 2392, 1125, 13, 418, 1583, 29889, 7328, 29918, 655, 2496, 29889, 17863, 29918, 6550, 703, 6995, 5431, 1159, 13, 13, 29871, 822, 1243, 29918, 336, 4637, 29918, 6310, 29918, 4282, 29918, 1445, 29918, 2704, 29898, 1311, 1125, 13, 1678, 1583, 29889, 1202, 29918, 517, 29918, 4282, 29918, 1445, 877, 29933, 25282, 742, 525, 3364, 1495, 13, 1678, 411, 1583, 29889, 9294, 29934, 1759, 267, 29898, 8893, 2283, 7061, 19968, 29889, 8915, 8893, 2283, 2392, 1125, 13, 418, 1583, 29889, 7328, 29918, 655, 2496, 29889, 17863, 29918, 6550, 877, 458, 29901, 5431, 1495, 13, 13, 29871, 822, 1243, 29918, 7328, 29918, 20401, 29918, 2704, 29918, 29882, 631, 279, 1270, 29898, 1311, 1125, 13, 1678, 1583, 29889, 9294, 3624, 4998, 29898, 8893, 2283, 7061, 19968, 29889, 7061, 3664, 797, 8893, 2283, 3285, 16428, 14959, 786, 2392, 29897, 13, 1678, 1583, 29889, 9294, 3624, 4998, 29898, 8893, 2283, 7061, 19968, 29889, 8915, 8893, 2283, 2392, 3285, 16428, 14959, 786, 2392, 29897, 13, 1678, 1583, 29889, 9294, 3624, 4998, 29898, 8893, 2283, 7061, 19968, 29889, 13919, 8893, 2283, 7422, 3285, 16428, 14959, 786, 2392, 29897, 13, 1678, 1583, 29889, 9294, 3624, 4998, 29898, 8893, 2283, 7061, 19968, 29889, 13919, 7061, 2392, 3285, 16428, 14959, 786, 2392, 29897, 13, 1678, 1583, 29889, 9294, 3624, 4998, 29898, 8893, 2283, 7061, 19968, 29889, 8893, 2283, 29083, 2392, 3285, 16428, 14959, 786, 2392, 29897, 13, 2 ]
tests/test_basic.py
blue-yonder/cee_syslog_handler
7
192216
<reponame>blue-yonder/cee_syslog_handler<filename>tests/test_basic.py from cee_syslog_handler import get_fields class Record(object): def __init__(self, value=None): if value: self.some_column = value def check_single_value(value): record = Record(value) message_dict = get_fields({}, record) assert message_dict == {"_some_column": value} def test_get_fields_empty(): record = Record() message_dict = get_fields({}, record) assert message_dict == {} def test_string_types(): check_single_value("some_text") check_single_value(u"some_text") check_single_value("1") check_single_value("1.1") def test_numeric_types(): check_single_value(1.1) check_single_value(1)
[ 1, 529, 276, 1112, 420, 29958, 9539, 29899, 29891, 8417, 29914, 346, 29872, 29918, 9675, 1188, 29918, 13789, 29966, 9507, 29958, 21150, 29914, 1688, 29918, 16121, 29889, 2272, 13, 3166, 2257, 29872, 29918, 9675, 1188, 29918, 13789, 1053, 679, 29918, 9621, 13, 13, 13, 1990, 14164, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 995, 29922, 8516, 1125, 13, 4706, 565, 995, 29901, 13, 9651, 1583, 29889, 5372, 29918, 4914, 353, 995, 13, 13, 13, 1753, 1423, 29918, 14369, 29918, 1767, 29898, 1767, 1125, 13, 1678, 2407, 353, 14164, 29898, 1767, 29897, 13, 1678, 2643, 29918, 8977, 353, 679, 29918, 9621, 3319, 1118, 2407, 29897, 13, 1678, 4974, 2643, 29918, 8977, 1275, 8853, 29918, 5372, 29918, 4914, 1115, 995, 29913, 13, 13, 13, 1753, 1243, 29918, 657, 29918, 9621, 29918, 6310, 7295, 13, 1678, 2407, 353, 14164, 580, 13, 1678, 2643, 29918, 8977, 353, 679, 29918, 9621, 3319, 1118, 2407, 29897, 13, 1678, 4974, 2643, 29918, 8977, 1275, 6571, 13, 13, 13, 1753, 1243, 29918, 1807, 29918, 8768, 7295, 13, 1678, 1423, 29918, 14369, 29918, 1767, 703, 5372, 29918, 726, 1159, 13, 1678, 1423, 29918, 14369, 29918, 1767, 29898, 29884, 29908, 5372, 29918, 726, 1159, 13, 1678, 1423, 29918, 14369, 29918, 1767, 703, 29896, 1159, 13, 1678, 1423, 29918, 14369, 29918, 1767, 703, 29896, 29889, 29896, 1159, 13, 13, 13, 1753, 1243, 29918, 21574, 29918, 8768, 7295, 13, 1678, 1423, 29918, 14369, 29918, 1767, 29898, 29896, 29889, 29896, 29897, 13, 1678, 1423, 29918, 14369, 29918, 1767, 29898, 29896, 29897, 13, 2 ]
network/evaluate_keypoints.py
mhsung/deep-functional-dictionaries
41
3233
# <NAME> (<EMAIL>) # April 2018 import os, sys BASE_DIR = os.path.normpath( os.path.join(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(os.path.join(BASE_DIR, '..')) from datasets import * from generate_outputs import * from scipy.optimize import linear_sum_assignment #import matplotlib.pyplot as plt import numpy as np def compute_all_keypoints(sess, net, data): P = data.point_clouds assert(P.shape[0] == data.n_data) assert(P.shape[1] == data.n_points) KP = data.keypoints assert(KP.shape[0] == data.n_data) assert(KP.shape[1] == data.n_labels) A = predict_A(P, sess, net) assert(A.shape[0] == data.n_data) assert(A.shape[1] == data.n_points) assert(A.shape[2] == net.K) pred_KP = np.argmax(A, axis=1) return P, KP, pred_KP def evaluate_PCK(P, KP, pred_KP): n_data = P.shape[0] n_points = P.shape[1] n_labels = KP.shape[1] K = pred_KP.shape[1] # dists_info: (point_cloud_index, label, basis_index, distance) dists_info = [] for k in range(n_data): # NOTE: # Skip if the keypoint does not exist. labels = [i for i in range(n_labels) if KP[k,i] >= 0] # Find the closest prediction (w/o matching). for i, label in enumerate(labels): all_dists = np.zeros(K) idx_i = KP[k,label] assert(idx_i < n_points) p_i = P[k,idx_i] for j in range(K): idx_j = pred_KP[k,j] assert(idx_j < n_points) p_j = P[k,idx_j] all_dists[j] = np.linalg.norm(p_i - p_j) j = np.argmin(all_dists) dists_info.append((k, i, j, all_dists[j])) dists_info = np.array(dists_info) return dists_info def evaluate_PCK_after_label_basis_matching(P, KP, pred_KP): n_data = P.shape[0] n_points = P.shape[1] n_labels = KP.shape[1] K = pred_KP.shape[1] # Find the best mapping from labels to bases. all_dists = np.zeros((n_data, n_labels, K)) label_counts = np.zeros(n_labels) for k in range(n_data): for i in range(n_labels): # NOTE: # Skip if the keypoint does not exist. if KP[k,i] < 0: continue idx_i = KP[k,i] assert(idx_i < n_points) p_i = P[k,idx_i] label_counts[i] += 1. for j in range(K): idx_j = pred_KP[k,j] assert(idx_j < n_points) p_j = P[k,idx_j] all_dists[k,i,j] += np.linalg.norm(p_i - p_j) mean_dists = np.sum(all_dists, axis=0) / \ np.expand_dims(label_counts, axis=-1) row_ind, col_ind = linear_sum_assignment(mean_dists) # dists_info: (point_cloud_index, label, basis_index, distance) dists_info = [] for k in range(n_data): for (i, j) in zip(row_ind, col_ind): if KP[k,i] < 0: continue dists_info.append((k, i, j, all_dists[k,i,j])) dists_info = np.array(dists_info) return dists_info def save_results(dists_info, out_dir, postfix=None): # dists_info: (point_cloud_index, label, basis_index, distance) dists = dists_info[:,3] if postfix is not None: out_file = os.path.join(out_dir, 'distances_{}.npy'.format(postfix)) else: out_file = os.path.join(out_dir, 'distances.npy') np.save(out_file, dists) print("Saved '{}'.".format(out_file)) ''' # Draw plot. n_matches = dists.size x_list = np.linspace(0.0, 0.1, 20 + 1) counts = np.zeros(x_list.size, dtype=int) for i in range(x_list.size): counts[i] = np.sum(dists <= x_list[i]) y_list = counts.astype(x_list.dtype) / float(n_matches) plt.clf() plt.plot(x_list, y_list) plt.ylim(0., 1.) plt.yticks(np.linspace(0., 1., 10 + 1)) if postfix is not None: out_file = os.path.join(out_dir, 'pck_{}.png'.format(postfix)) else: out_file = os.path.join(out_dir, 'pck.png') plt.savefig(out_file) print("Saved '{}'.".format(out_file)) ''' def evaluate(sess, net, data, out_dir): if not os.path.exists(out_dir): os.makedirs(out_dir) P, KP, pred_KP = compute_all_keypoints(sess, net, data) dists = evaluate_PCK(P, KP, pred_KP) save_results(dists, out_dir) dists_after_matching = evaluate_PCK_after_label_basis_matching( P, KP, pred_KP) save_results(dists_after_matching, out_dir, postfix='after_matching')
[ 1, 396, 529, 5813, 29958, 313, 29966, 26862, 6227, 12948, 13, 29937, 3786, 29871, 29906, 29900, 29896, 29947, 13, 13, 5215, 2897, 29892, 10876, 13, 25416, 29918, 9464, 353, 2897, 29889, 2084, 29889, 12324, 2084, 29898, 13, 4706, 2897, 29889, 2084, 29889, 7122, 29898, 359, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 370, 1028, 493, 22168, 1445, 1649, 13697, 13, 9675, 29889, 2084, 29889, 4397, 29898, 359, 29889, 2084, 29889, 7122, 29898, 25416, 29918, 9464, 29892, 525, 636, 8785, 13, 13, 3166, 20035, 1053, 334, 13, 3166, 5706, 29918, 4905, 29879, 1053, 334, 13, 3166, 4560, 2272, 29889, 20640, 675, 1053, 5608, 29918, 2083, 29918, 465, 10194, 13, 29937, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 5215, 12655, 408, 7442, 13, 13, 13, 1753, 10272, 29918, 497, 29918, 1989, 9748, 29898, 29879, 404, 29892, 7787, 29892, 848, 1125, 13, 1678, 349, 353, 848, 29889, 3149, 29918, 9274, 29879, 13, 1678, 4974, 29898, 29925, 29889, 12181, 29961, 29900, 29962, 1275, 848, 29889, 29876, 29918, 1272, 29897, 13, 1678, 4974, 29898, 29925, 29889, 12181, 29961, 29896, 29962, 1275, 848, 29889, 29876, 29918, 9748, 29897, 13, 13, 1678, 476, 29925, 353, 848, 29889, 1989, 9748, 13, 1678, 4974, 29898, 29968, 29925, 29889, 12181, 29961, 29900, 29962, 1275, 848, 29889, 29876, 29918, 1272, 29897, 13, 1678, 4974, 29898, 29968, 29925, 29889, 12181, 29961, 29896, 29962, 1275, 848, 29889, 29876, 29918, 21134, 29897, 13, 13, 1678, 319, 353, 8500, 29918, 29909, 29898, 29925, 29892, 27937, 29892, 7787, 29897, 13, 1678, 4974, 29898, 29909, 29889, 12181, 29961, 29900, 29962, 1275, 848, 29889, 29876, 29918, 1272, 29897, 13, 1678, 4974, 29898, 29909, 29889, 12181, 29961, 29896, 29962, 1275, 848, 29889, 29876, 29918, 9748, 29897, 13, 1678, 4974, 29898, 29909, 29889, 12181, 29961, 29906, 29962, 1275, 7787, 29889, 29968, 29897, 13, 13, 1678, 4450, 29918, 29968, 29925, 353, 7442, 29889, 1191, 3317, 29898, 29909, 29892, 9685, 29922, 29896, 29897, 13, 13, 1678, 736, 349, 29892, 476, 29925, 29892, 4450, 29918, 29968, 29925, 13, 13, 13, 1753, 14707, 29918, 29925, 7077, 29898, 29925, 29892, 476, 29925, 29892, 4450, 29918, 29968, 29925, 1125, 13, 1678, 302, 29918, 1272, 353, 349, 29889, 12181, 29961, 29900, 29962, 13, 1678, 302, 29918, 9748, 353, 349, 29889, 12181, 29961, 29896, 29962, 13, 1678, 302, 29918, 21134, 353, 476, 29925, 29889, 12181, 29961, 29896, 29962, 13, 1678, 476, 353, 4450, 29918, 29968, 29925, 29889, 12181, 29961, 29896, 29962, 13, 13, 1678, 396, 1320, 29879, 29918, 3888, 29901, 313, 3149, 29918, 9274, 29918, 2248, 29892, 3858, 29892, 8405, 29918, 2248, 29892, 5418, 29897, 13, 1678, 1320, 29879, 29918, 3888, 353, 5159, 13, 13, 1678, 363, 413, 297, 3464, 29898, 29876, 29918, 1272, 1125, 13, 4706, 396, 6058, 29923, 29901, 13, 4706, 396, 4971, 666, 565, 278, 1820, 3149, 947, 451, 1863, 29889, 13, 4706, 11073, 353, 518, 29875, 363, 474, 297, 3464, 29898, 29876, 29918, 21134, 29897, 565, 476, 29925, 29961, 29895, 29892, 29875, 29962, 6736, 29871, 29900, 29962, 13, 13, 4706, 396, 10987, 278, 21438, 18988, 313, 29893, 29914, 29877, 9686, 467, 13, 4706, 363, 474, 29892, 3858, 297, 26985, 29898, 21134, 1125, 13, 9651, 599, 29918, 29881, 2879, 353, 7442, 29889, 3298, 359, 29898, 29968, 29897, 13, 13, 9651, 22645, 29918, 29875, 353, 476, 29925, 29961, 29895, 29892, 1643, 29962, 13, 9651, 4974, 29898, 13140, 29918, 29875, 529, 302, 29918, 9748, 29897, 13, 9651, 282, 29918, 29875, 353, 349, 29961, 29895, 29892, 13140, 29918, 29875, 29962, 13, 13, 9651, 363, 432, 297, 3464, 29898, 29968, 1125, 13, 18884, 22645, 29918, 29926, 353, 4450, 29918, 29968, 29925, 29961, 29895, 29892, 29926, 29962, 13, 18884, 4974, 29898, 13140, 29918, 29926, 529, 302, 29918, 9748, 29897, 13, 18884, 282, 29918, 29926, 353, 349, 29961, 29895, 29892, 13140, 29918, 29926, 29962, 13, 13, 18884, 599, 29918, 29881, 2879, 29961, 29926, 29962, 353, 7442, 29889, 29880, 979, 29887, 29889, 12324, 29898, 29886, 29918, 29875, 448, 282, 29918, 29926, 29897, 13, 13, 9651, 432, 353, 7442, 29889, 1191, 1195, 29898, 497, 29918, 29881, 2879, 29897, 13, 9651, 1320, 29879, 29918, 3888, 29889, 4397, 3552, 29895, 29892, 474, 29892, 432, 29892, 599, 29918, 29881, 2879, 29961, 29926, 12622, 13, 13, 1678, 1320, 29879, 29918, 3888, 353, 7442, 29889, 2378, 29898, 29881, 2879, 29918, 3888, 29897, 13, 13, 1678, 736, 1320, 29879, 29918, 3888, 13, 13, 13, 1753, 14707, 29918, 29925, 7077, 29918, 7045, 29918, 1643, 29918, 6500, 275, 29918, 4352, 292, 29898, 29925, 29892, 476, 29925, 29892, 4450, 29918, 29968, 29925, 1125, 13, 1678, 302, 29918, 1272, 353, 349, 29889, 12181, 29961, 29900, 29962, 13, 1678, 302, 29918, 9748, 353, 349, 29889, 12181, 29961, 29896, 29962, 13, 1678, 302, 29918, 21134, 353, 476, 29925, 29889, 12181, 29961, 29896, 29962, 13, 1678, 476, 353, 4450, 29918, 29968, 29925, 29889, 12181, 29961, 29896, 29962, 13, 13, 1678, 396, 10987, 278, 1900, 10417, 515, 11073, 304, 22561, 29889, 13, 1678, 599, 29918, 29881, 2879, 353, 7442, 29889, 3298, 359, 3552, 29876, 29918, 1272, 29892, 302, 29918, 21134, 29892, 476, 876, 13, 1678, 3858, 29918, 2798, 29879, 353, 7442, 29889, 3298, 359, 29898, 29876, 29918, 21134, 29897, 13, 13, 1678, 363, 413, 297, 3464, 29898, 29876, 29918, 1272, 1125, 13, 4706, 363, 474, 297, 3464, 29898, 29876, 29918, 21134, 1125, 13, 13, 9651, 396, 6058, 29923, 29901, 13, 9651, 396, 4971, 666, 565, 278, 1820, 3149, 947, 451, 1863, 29889, 13, 9651, 565, 476, 29925, 29961, 29895, 29892, 29875, 29962, 529, 29871, 29900, 29901, 6773, 13, 13, 9651, 22645, 29918, 29875, 353, 476, 29925, 29961, 29895, 29892, 29875, 29962, 13, 9651, 4974, 29898, 13140, 29918, 29875, 529, 302, 29918, 9748, 29897, 13, 9651, 282, 29918, 29875, 353, 349, 29961, 29895, 29892, 13140, 29918, 29875, 29962, 13, 13, 9651, 3858, 29918, 2798, 29879, 29961, 29875, 29962, 4619, 29871, 29896, 29889, 13, 13, 9651, 363, 432, 297, 3464, 29898, 29968, 1125, 13, 18884, 22645, 29918, 29926, 353, 4450, 29918, 29968, 29925, 29961, 29895, 29892, 29926, 29962, 13, 18884, 4974, 29898, 13140, 29918, 29926, 529, 302, 29918, 9748, 29897, 13, 18884, 282, 29918, 29926, 353, 349, 29961, 29895, 29892, 13140, 29918, 29926, 29962, 13, 13, 18884, 599, 29918, 29881, 2879, 29961, 29895, 29892, 29875, 29892, 29926, 29962, 4619, 7442, 29889, 29880, 979, 29887, 29889, 12324, 29898, 29886, 29918, 29875, 448, 282, 29918, 29926, 29897, 13, 13, 1678, 2099, 29918, 29881, 2879, 353, 7442, 29889, 2083, 29898, 497, 29918, 29881, 2879, 29892, 9685, 29922, 29900, 29897, 847, 320, 13, 9651, 7442, 29889, 18837, 29918, 6229, 29879, 29898, 1643, 29918, 2798, 29879, 29892, 9685, 10457, 29896, 29897, 13, 1678, 1948, 29918, 513, 29892, 784, 29918, 513, 353, 5608, 29918, 2083, 29918, 465, 10194, 29898, 12676, 29918, 29881, 2879, 29897, 13, 13, 13, 1678, 396, 1320, 29879, 29918, 3888, 29901, 313, 3149, 29918, 9274, 29918, 2248, 29892, 3858, 29892, 8405, 29918, 2248, 29892, 5418, 29897, 13, 1678, 1320, 29879, 29918, 3888, 353, 5159, 13, 13, 1678, 363, 413, 297, 3464, 29898, 29876, 29918, 1272, 1125, 13, 4706, 363, 313, 29875, 29892, 432, 29897, 297, 14319, 29898, 798, 29918, 513, 29892, 784, 29918, 513, 1125, 13, 9651, 565, 476, 29925, 29961, 29895, 29892, 29875, 29962, 529, 29871, 29900, 29901, 6773, 13, 9651, 1320, 29879, 29918, 3888, 29889, 4397, 3552, 29895, 29892, 474, 29892, 432, 29892, 599, 29918, 29881, 2879, 29961, 29895, 29892, 29875, 29892, 29926, 12622, 13, 13, 1678, 1320, 29879, 29918, 3888, 353, 7442, 29889, 2378, 29898, 29881, 2879, 29918, 3888, 29897, 13, 13, 1678, 736, 1320, 29879, 29918, 3888, 13, 13, 13, 1753, 4078, 29918, 9902, 29898, 29881, 2879, 29918, 3888, 29892, 714, 29918, 3972, 29892, 1400, 5878, 29922, 8516, 1125, 13, 1678, 396, 1320, 29879, 29918, 3888, 29901, 313, 3149, 29918, 9274, 29918, 2248, 29892, 3858, 29892, 8405, 29918, 2248, 29892, 5418, 29897, 13, 1678, 1320, 29879, 353, 1320, 29879, 29918, 3888, 7503, 29892, 29941, 29962, 13, 13, 1678, 565, 1400, 5878, 338, 451, 6213, 29901, 13, 4706, 714, 29918, 1445, 353, 2897, 29889, 2084, 29889, 7122, 29898, 449, 29918, 3972, 29892, 525, 5721, 2925, 648, 1836, 29876, 2272, 4286, 4830, 29898, 2490, 5878, 876, 13, 1678, 1683, 29901, 13, 4706, 714, 29918, 1445, 353, 2897, 29889, 2084, 29889, 7122, 29898, 449, 29918, 3972, 29892, 525, 5721, 2925, 29889, 29876, 2272, 1495, 13, 13, 1678, 7442, 29889, 7620, 29898, 449, 29918, 1445, 29892, 1320, 29879, 29897, 13, 1678, 1596, 703, 29903, 10511, 525, 8875, 29915, 1213, 29889, 4830, 29898, 449, 29918, 1445, 876, 13, 13, 1678, 14550, 13, 1678, 396, 18492, 6492, 29889, 13, 1678, 302, 29918, 20317, 353, 1320, 29879, 29889, 2311, 13, 13, 1678, 921, 29918, 1761, 353, 7442, 29889, 1915, 3493, 29898, 29900, 29889, 29900, 29892, 29871, 29900, 29889, 29896, 29892, 29871, 29906, 29900, 718, 29871, 29896, 29897, 13, 1678, 18139, 353, 7442, 29889, 3298, 359, 29898, 29916, 29918, 1761, 29889, 2311, 29892, 26688, 29922, 524, 29897, 13, 13, 1678, 363, 474, 297, 3464, 29898, 29916, 29918, 1761, 29889, 2311, 1125, 13, 4706, 18139, 29961, 29875, 29962, 353, 7442, 29889, 2083, 29898, 29881, 2879, 5277, 921, 29918, 1761, 29961, 29875, 2314, 13, 13, 1678, 343, 29918, 1761, 353, 18139, 29889, 579, 668, 29898, 29916, 29918, 1761, 29889, 29881, 1853, 29897, 847, 5785, 29898, 29876, 29918, 20317, 29897, 13, 13, 1678, 14770, 29889, 695, 29888, 580, 13, 1678, 14770, 29889, 5317, 29898, 29916, 29918, 1761, 29892, 343, 29918, 1761, 29897, 13, 1678, 14770, 29889, 29891, 2576, 29898, 29900, 1696, 29871, 29896, 1846, 13, 1678, 14770, 29889, 3637, 7358, 29898, 9302, 29889, 1915, 3493, 29898, 29900, 1696, 29871, 29896, 1696, 29871, 29896, 29900, 718, 29871, 29896, 876, 13, 13, 1678, 565, 1400, 5878, 338, 451, 6213, 29901, 13, 4706, 714, 29918, 1445, 353, 2897, 29889, 2084, 29889, 7122, 29898, 449, 29918, 3972, 29892, 525, 29886, 384, 648, 1836, 2732, 4286, 4830, 29898, 2490, 5878, 876, 13, 1678, 1683, 29901, 13, 4706, 714, 29918, 1445, 353, 2897, 29889, 2084, 29889, 7122, 29898, 449, 29918, 3972, 29892, 525, 29886, 384, 29889, 2732, 1495, 13, 13, 1678, 14770, 29889, 7620, 1003, 29898, 449, 29918, 1445, 29897, 13, 1678, 1596, 703, 29903, 10511, 525, 8875, 29915, 1213, 29889, 4830, 29898, 449, 29918, 1445, 876, 13, 1678, 14550, 13, 13, 13, 1753, 14707, 29898, 29879, 404, 29892, 7787, 29892, 848, 29892, 714, 29918, 3972, 1125, 13, 1678, 565, 451, 2897, 29889, 2084, 29889, 9933, 29898, 449, 29918, 3972, 1125, 2897, 29889, 29885, 12535, 12935, 29898, 449, 29918, 3972, 29897, 13, 13, 1678, 349, 29892, 476, 29925, 29892, 4450, 29918, 29968, 29925, 353, 10272, 29918, 497, 29918, 1989, 9748, 29898, 29879, 404, 29892, 7787, 29892, 848, 29897, 13, 13, 1678, 1320, 29879, 353, 14707, 29918, 29925, 7077, 29898, 29925, 29892, 476, 29925, 29892, 4450, 29918, 29968, 29925, 29897, 13, 1678, 4078, 29918, 9902, 29898, 29881, 2879, 29892, 714, 29918, 3972, 29897, 13, 13, 1678, 1320, 29879, 29918, 7045, 29918, 4352, 292, 353, 14707, 29918, 29925, 7077, 29918, 7045, 29918, 1643, 29918, 6500, 275, 29918, 4352, 292, 29898, 13, 9651, 349, 29892, 476, 29925, 29892, 4450, 29918, 29968, 29925, 29897, 13, 1678, 4078, 29918, 9902, 29898, 29881, 2879, 29918, 7045, 29918, 4352, 292, 29892, 714, 29918, 3972, 29892, 1400, 5878, 2433, 7045, 29918, 4352, 292, 1495, 13, 13, 2 ]
coursera/python_programming_basics/1_week_01.py
anklav24/Python-Education
0
120175
<reponame>anklav24/Python-Education<filename>coursera/python_programming_basics/1_week_01.py print('Hello, world.') print('Hello, Python!') print(2 + 3) print('2' * 3) print(f'2 + 3 = {2 + 3}') print('1', '2', '3', sep=' + ', end=' ') print('=', 1 + 2 + 3, end='') print('!')
[ 1, 529, 276, 1112, 420, 29958, 804, 4112, 29906, 29946, 29914, 11980, 29899, 29923, 29392, 29966, 9507, 29958, 29883, 473, 643, 29874, 29914, 4691, 29918, 28426, 29918, 6500, 1199, 29914, 29896, 29918, 18448, 29918, 29900, 29896, 29889, 2272, 13, 2158, 877, 10994, 29892, 3186, 29889, 1495, 13, 2158, 877, 10994, 29892, 5132, 29991, 1495, 13, 2158, 29898, 29906, 718, 29871, 29941, 29897, 13, 2158, 877, 29906, 29915, 334, 29871, 29941, 29897, 13, 2158, 29898, 29888, 29915, 29906, 718, 29871, 29941, 353, 426, 29906, 718, 29871, 29941, 29913, 1495, 13, 13, 2158, 877, 29896, 742, 525, 29906, 742, 525, 29941, 742, 16345, 2433, 718, 13420, 1095, 2433, 25710, 13, 2158, 877, 29922, 742, 29871, 29896, 718, 29871, 29906, 718, 29871, 29941, 29892, 1095, 2433, 1495, 13, 2158, 877, 29991, 1495, 13, 2 ]
catkin_ws/src:/opt/ros/kinetic/lib/python2.7/dist-packages:/home/bala/duckietown/catkin_ws/src:/home/bala/duckietown/catkin_ws/src/lib/python2.7/site-packages/contracts/enabling.py
johnson880319/Software
13
147230
<reponame>johnson880319/Software<gh_stars>10-100 from . import logger import os class Switches: # default to ENV variable disable_all = os.environ.get('DISABLE_CONTRACTS', False) def disable_all(): """ Disables all contracts checks. """ # print('disable_all()') Switches.disable_all = True logger.info('All contracts checking disabled.') def enable_all(): """ Enables all contracts checks. Can be overridden by an environment variable. """ # print('enable_all()') if not os.environ.get('DISABLE_CONTRACTS', False): Switches.disable_all = False logger.info('All contracts checking enabled.') def all_disabled(): # print('all_Disabled? %s' % Switches.disable_all) """ Returns true if all contracts checks are disabled. """ return Switches.disable_all
[ 1, 529, 276, 1112, 420, 29958, 29926, 6547, 1100, 29947, 29947, 29900, 29941, 29896, 29929, 29914, 6295, 14093, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 3166, 869, 1053, 17927, 13, 5215, 2897, 13, 13, 13, 1990, 28176, 267, 29901, 13, 1678, 396, 2322, 304, 12524, 29963, 2286, 13, 1678, 11262, 29918, 497, 353, 2897, 29889, 21813, 29889, 657, 877, 23711, 6181, 29918, 22412, 4717, 1783, 29903, 742, 7700, 29897, 13, 13, 13, 1753, 11262, 29918, 497, 7295, 13, 1678, 9995, 3295, 1849, 599, 8078, 29879, 12747, 29889, 9995, 13, 29937, 268, 1596, 877, 20472, 29918, 497, 580, 1495, 13, 1678, 28176, 267, 29889, 20472, 29918, 497, 353, 5852, 13, 1678, 17927, 29889, 3888, 877, 3596, 8078, 29879, 8454, 12708, 29889, 1495, 13, 13, 13, 1753, 9025, 29918, 497, 7295, 13, 1678, 9995, 13, 1678, 1174, 1849, 599, 8078, 29879, 12747, 29889, 13, 1678, 1815, 367, 20831, 1145, 491, 385, 5177, 2286, 29889, 13, 1678, 9995, 13, 29937, 268, 1596, 877, 12007, 29918, 497, 580, 1495, 13, 1678, 565, 451, 2897, 29889, 21813, 29889, 657, 877, 23711, 6181, 29918, 22412, 4717, 1783, 29903, 742, 7700, 1125, 13, 4706, 28176, 267, 29889, 20472, 29918, 497, 353, 7700, 13, 4706, 17927, 29889, 3888, 877, 3596, 8078, 29879, 8454, 9615, 29889, 1495, 13, 13, 13, 1753, 599, 29918, 18279, 7295, 13, 29937, 268, 1596, 877, 497, 29918, 4205, 3606, 29973, 1273, 29879, 29915, 1273, 28176, 267, 29889, 20472, 29918, 497, 29897, 13, 1678, 9995, 16969, 1565, 565, 599, 8078, 29879, 12747, 526, 12708, 29889, 9995, 13, 1678, 736, 28176, 267, 29889, 20472, 29918, 497, 13, 13, 2 ]
google-challenge-problems/answer_Q2a.py
kevin-orr/Python
0
89134
__author__ = 'kevinorr' """ This was my attempt at the first part of Q2 in a Google challenge about maximising the number of bunnies in train cars... It passed the 'verify' section - all the tests passed. """ from collections import Counter def answer(x): """ sort the list and find out what the mode would be Then pick first element in sorted list and take enough from last element to make first element = mode value then repeat :param x: a train of cars holding rabbits :return: the max number of equal array elements """ number_of_bunnies = sum(x) number_cars = len(x) # get integral of how many we can squeeze into each car estimate_per_car = number_of_bunnies / number_cars x = sorted(x) first_index = 0 end_index = len(x) - 1 # now run around the list while first_index < end_index: bunnies_in_this_car = x[first_index] if bunnies_in_this_car == estimate_per_car: # move to next in list first_index += 1 continue else: # take enough bunnies to share with this car from the maximal one at the end of list delta_to_add = estimate_per_car - x[first_index] x[first_index] += delta_to_add x[end_index] -= delta_to_add x = sorted(x) # I had to remove the IO line below when running against 'verify' - just left it in here for context print x # finally use Counter to get the frequency of the most common element return Counter(x).most_common(1)[0][1] if __name__ == "__main__": train_full_of_bunnies = [0, 0, 0, 4] # for the list above we expect to get back 4 as answer -> [1, 1, 1, 1] expected_answer = 4 assert expected_answer == answer(train_full_of_bunnies) train_full_of_bunnies = [1, 2, 3] expected_answer = 3 assert expected_answer == answer(train_full_of_bunnies) train_full_of_bunnies = [1, 4, 1] expected_answer = 3 assert expected_answer == answer(train_full_of_bunnies) train_full_of_bunnies = [1, 2, 2] expected_answer = 2 assert expected_answer == answer(train_full_of_bunnies) train_full_of_bunnies = [2, 3, 4, 1, 6, 3] expected_answer = 5 assert expected_answer == answer(train_full_of_bunnies) train_full_of_bunnies = [1, 0, 3, 3, 5, 10, 8, 12, 4, 15, 11, 2, 14, 5, 7, 13, 15, 5, 7, 10, 8, 12, 4, 15, 11, 2, 33, 5, 0, 44, 5, 7, 13, 15] expected_answer = 33 assert expected_answer == answer(train_full_of_bunnies)
[ 1, 4770, 8921, 1649, 353, 525, 446, 3845, 25891, 29915, 13, 13, 15945, 29908, 13, 4013, 471, 590, 4218, 472, 278, 937, 760, 310, 660, 29906, 297, 263, 5087, 18766, 1048, 5256, 5921, 278, 1353, 310, 289, 5963, 583, 297, 7945, 18647, 856, 13, 13, 3112, 4502, 278, 525, 27902, 29915, 4004, 448, 599, 278, 6987, 4502, 29889, 13, 13, 15945, 29908, 13, 13, 3166, 16250, 1053, 315, 5336, 13, 13, 1753, 1234, 29898, 29916, 1125, 13, 1678, 9995, 13, 1678, 2656, 278, 1051, 322, 1284, 714, 825, 278, 4464, 723, 367, 13, 1678, 1987, 5839, 937, 1543, 297, 12705, 1051, 322, 2125, 3307, 515, 1833, 1543, 304, 1207, 937, 1543, 353, 4464, 995, 13, 1678, 769, 12312, 13, 13, 1678, 584, 3207, 921, 29901, 263, 7945, 310, 18647, 13587, 27127, 1169, 13, 1678, 584, 2457, 29901, 278, 4236, 1353, 310, 5186, 1409, 3161, 13, 1678, 9995, 13, 1678, 1353, 29918, 974, 29918, 29890, 5963, 583, 353, 2533, 29898, 29916, 29897, 13, 1678, 1353, 29918, 29883, 1503, 353, 7431, 29898, 29916, 29897, 13, 1678, 396, 679, 10160, 310, 920, 1784, 591, 508, 269, 802, 29872, 911, 964, 1269, 1559, 13, 1678, 12678, 29918, 546, 29918, 4287, 353, 1353, 29918, 974, 29918, 29890, 5963, 583, 847, 1353, 29918, 29883, 1503, 13, 1678, 921, 353, 12705, 29898, 29916, 29897, 13, 13, 1678, 937, 29918, 2248, 353, 29871, 29900, 13, 1678, 1095, 29918, 2248, 353, 7431, 29898, 29916, 29897, 448, 29871, 29896, 13, 1678, 396, 29871, 1286, 1065, 2820, 278, 1051, 13, 1678, 1550, 937, 29918, 2248, 529, 1095, 29918, 2248, 29901, 13, 4706, 289, 5963, 583, 29918, 262, 29918, 1366, 29918, 4287, 353, 921, 29961, 4102, 29918, 2248, 29962, 13, 13, 4706, 565, 289, 5963, 583, 29918, 262, 29918, 1366, 29918, 4287, 1275, 12678, 29918, 546, 29918, 4287, 29901, 13, 9651, 396, 4337, 304, 2446, 297, 1051, 13, 9651, 937, 29918, 2248, 4619, 29871, 29896, 13, 9651, 6773, 13, 4706, 1683, 29901, 13, 9651, 396, 2125, 3307, 289, 5963, 583, 304, 6232, 411, 445, 1559, 515, 278, 23183, 697, 472, 278, 1095, 310, 1051, 13, 9651, 19471, 29918, 517, 29918, 1202, 353, 12678, 29918, 546, 29918, 4287, 448, 921, 29961, 4102, 29918, 2248, 29962, 13, 9651, 921, 29961, 4102, 29918, 2248, 29962, 4619, 19471, 29918, 517, 29918, 1202, 13, 9651, 921, 29961, 355, 29918, 2248, 29962, 22361, 19471, 29918, 517, 29918, 1202, 13, 9651, 921, 353, 12705, 29898, 29916, 29897, 13, 308, 13, 4706, 396, 306, 750, 304, 3349, 278, 10663, 1196, 2400, 746, 2734, 2750, 525, 27902, 29915, 448, 925, 2175, 372, 297, 1244, 363, 3030, 13, 4706, 1596, 921, 13, 1678, 396, 29871, 7146, 671, 315, 5336, 304, 679, 278, 10868, 310, 278, 1556, 3619, 1543, 13, 1678, 736, 315, 5336, 29898, 29916, 467, 3242, 29918, 9435, 29898, 29896, 9601, 29900, 3816, 29896, 29962, 13, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 13, 1678, 7945, 29918, 8159, 29918, 974, 29918, 29890, 5963, 583, 353, 518, 29900, 29892, 29871, 29900, 29892, 29871, 29900, 29892, 29871, 29946, 29962, 13, 1678, 396, 363, 278, 1051, 2038, 591, 2149, 304, 679, 1250, 29871, 29946, 408, 1234, 1599, 518, 29896, 29892, 29871, 29896, 29892, 29871, 29896, 29892, 29871, 29896, 29962, 13, 1678, 3806, 29918, 12011, 353, 29871, 29946, 13, 1678, 4974, 3806, 29918, 12011, 1275, 1234, 29898, 14968, 29918, 8159, 29918, 974, 29918, 29890, 5963, 583, 29897, 13, 13, 1678, 7945, 29918, 8159, 29918, 974, 29918, 29890, 5963, 583, 353, 518, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 29962, 13, 1678, 3806, 29918, 12011, 353, 29871, 29941, 13, 1678, 4974, 3806, 29918, 12011, 1275, 1234, 29898, 14968, 29918, 8159, 29918, 974, 29918, 29890, 5963, 583, 29897, 13, 13, 1678, 7945, 29918, 8159, 29918, 974, 29918, 29890, 5963, 583, 353, 518, 29896, 29892, 29871, 29946, 29892, 29871, 29896, 29962, 13, 1678, 3806, 29918, 12011, 353, 29871, 29941, 13, 1678, 4974, 3806, 29918, 12011, 1275, 1234, 29898, 14968, 29918, 8159, 29918, 974, 29918, 29890, 5963, 583, 29897, 13, 13, 1678, 7945, 29918, 8159, 29918, 974, 29918, 29890, 5963, 583, 353, 518, 29896, 29892, 29871, 29906, 29892, 29871, 29906, 29962, 13, 1678, 3806, 29918, 12011, 353, 29871, 29906, 13, 1678, 4974, 3806, 29918, 12011, 1275, 1234, 29898, 14968, 29918, 8159, 29918, 974, 29918, 29890, 5963, 583, 29897, 13, 13, 1678, 7945, 29918, 8159, 29918, 974, 29918, 29890, 5963, 583, 353, 518, 29906, 29892, 29871, 29941, 29892, 29871, 29946, 29892, 29871, 29896, 29892, 29871, 29953, 29892, 29871, 29941, 29962, 13, 1678, 3806, 29918, 12011, 353, 29871, 29945, 13, 1678, 4974, 3806, 29918, 12011, 1275, 1234, 29898, 14968, 29918, 8159, 29918, 974, 29918, 29890, 5963, 583, 29897, 13, 13, 1678, 7945, 29918, 8159, 29918, 974, 29918, 29890, 5963, 583, 353, 518, 29896, 29892, 29871, 29900, 29892, 29871, 29941, 29892, 29871, 29941, 29892, 29871, 29945, 29892, 29871, 29896, 29900, 29892, 29871, 29947, 29892, 29871, 29896, 29906, 29892, 29871, 29946, 29892, 29871, 29896, 29945, 29892, 29871, 29896, 29896, 29892, 29871, 29906, 29892, 29871, 29896, 29946, 29892, 29871, 29945, 29892, 29871, 29955, 29892, 29871, 29896, 29941, 29892, 29871, 29896, 29945, 29892, 29871, 29945, 29892, 29871, 29955, 29892, 29871, 29896, 29900, 29892, 29871, 29947, 29892, 29871, 29896, 29906, 29892, 29871, 29946, 29892, 29871, 29896, 29945, 29892, 29871, 29896, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 29941, 29892, 29871, 29945, 29892, 29871, 29900, 29892, 29871, 29946, 29946, 29892, 29871, 29945, 29892, 29871, 29955, 29892, 29871, 29896, 29941, 29892, 29871, 29896, 29945, 29962, 13, 1678, 3806, 29918, 12011, 353, 29871, 29941, 29941, 13, 1678, 4974, 3806, 29918, 12011, 1275, 1234, 29898, 14968, 29918, 8159, 29918, 974, 29918, 29890, 5963, 583, 29897, 13, 13, 13, 13, 2 ]
Participants/Pixel Soup/src/frontend/networking/net_interface.py
python-discord/game-jam-2020
15
116166
import socket from pickle import loads, dumps class Pipe: def __init__(self, server: str, port: int) -> None: self.server = server self.port = port self.tcp = socket.socket() self.udp = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.connected = False self.username = None self.udp_password = None self.game_port = None def connect(self) -> bool: try: self.tcp.connect((self.server, self.port)) self.connected = True return True except (ConnectionResetError, ConnectionRefusedError): return False def login(self) -> bool: if not self.connected: success = self.connect() if not success: return False self.tcp.send(f"play request,,1234509876".encode()) response = self.tcp.recv(100) if response == b"Pended": return True else: return False def await_response(self) -> list: try: data = self.tcp.recv(1000) data = data.decode().split("||") full_data = [] for seg in data: seg = seg.split(",,") full_data += seg if seg[0] == "Start": self.username = seg[1] self.game_port = int(seg[2]) return full_data except ConnectionResetError: return [False] def transport(self, game_data: list) -> tuple: game_data = [self.username] + game_data game_data = (dumps(game_data)) + b"||||" self.udp.sendto(game_data, (self.server, self.game_port)) data, _ = self.udp.recvfrom(100) data = data.split(b"||||") if len(data) > 1: data = loads(data[0]) return True, data else: return False, None
[ 1, 1053, 9909, 13, 3166, 5839, 280, 1053, 15376, 29892, 270, 17204, 13, 13, 13, 1990, 7362, 412, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1923, 29901, 851, 29892, 2011, 29901, 938, 29897, 1599, 6213, 29901, 13, 4706, 1583, 29889, 2974, 353, 1923, 13, 4706, 1583, 29889, 637, 353, 2011, 13, 4706, 1583, 29889, 23981, 353, 9909, 29889, 11514, 580, 13, 4706, 1583, 29889, 566, 29886, 353, 9909, 29889, 11514, 29898, 11514, 29889, 5098, 29918, 1177, 2544, 29892, 9909, 29889, 6156, 7077, 29918, 29928, 29954, 25058, 29897, 13, 4706, 1583, 29889, 18045, 353, 7700, 13, 4706, 1583, 29889, 6786, 353, 6213, 13, 4706, 1583, 29889, 566, 29886, 29918, 5630, 353, 6213, 13, 4706, 1583, 29889, 11802, 29918, 637, 353, 6213, 13, 13, 1678, 822, 4511, 29898, 1311, 29897, 1599, 6120, 29901, 13, 4706, 1018, 29901, 13, 9651, 1583, 29889, 23981, 29889, 6915, 3552, 1311, 29889, 2974, 29892, 1583, 29889, 637, 876, 13, 9651, 1583, 29889, 18045, 353, 5852, 13, 9651, 736, 5852, 13, 4706, 5174, 313, 5350, 27175, 2392, 29892, 15160, 5620, 3880, 2392, 1125, 13, 9651, 736, 7700, 13, 13, 1678, 822, 6464, 29898, 1311, 29897, 1599, 6120, 29901, 13, 13, 4706, 565, 451, 1583, 29889, 18045, 29901, 13, 9651, 2551, 353, 1583, 29889, 6915, 580, 13, 9651, 565, 451, 2551, 29901, 13, 18884, 736, 7700, 13, 13, 4706, 1583, 29889, 23981, 29889, 6717, 29898, 29888, 29908, 1456, 2009, 12985, 29896, 29906, 29941, 29946, 29945, 29900, 29929, 29947, 29955, 29953, 1642, 12508, 3101, 13, 4706, 2933, 353, 1583, 29889, 23981, 29889, 3757, 29894, 29898, 29896, 29900, 29900, 29897, 13, 13, 4706, 565, 2933, 1275, 289, 29908, 29925, 2760, 1115, 13, 9651, 736, 5852, 13, 4706, 1683, 29901, 13, 9651, 736, 7700, 13, 13, 1678, 822, 7272, 29918, 5327, 29898, 1311, 29897, 1599, 1051, 29901, 13, 4706, 1018, 29901, 13, 9651, 848, 353, 1583, 29889, 23981, 29889, 3757, 29894, 29898, 29896, 29900, 29900, 29900, 29897, 13, 9651, 848, 353, 848, 29889, 13808, 2141, 5451, 703, 8876, 1159, 13, 9651, 2989, 29918, 1272, 353, 5159, 13, 13, 9651, 363, 2377, 297, 848, 29901, 13, 18884, 2377, 353, 2377, 29889, 5451, 28165, 29892, 1159, 13, 18884, 2989, 29918, 1272, 4619, 2377, 13, 18884, 565, 2377, 29961, 29900, 29962, 1275, 376, 4763, 1115, 13, 462, 1678, 1583, 29889, 6786, 353, 2377, 29961, 29896, 29962, 13, 462, 1678, 1583, 29889, 11802, 29918, 637, 353, 938, 29898, 10199, 29961, 29906, 2314, 13, 13, 9651, 736, 2989, 29918, 1272, 13, 4706, 5174, 15160, 27175, 2392, 29901, 13, 9651, 736, 518, 8824, 29962, 13, 13, 1678, 822, 8608, 29898, 1311, 29892, 3748, 29918, 1272, 29901, 1051, 29897, 1599, 18761, 29901, 13, 4706, 3748, 29918, 1272, 353, 518, 1311, 29889, 6786, 29962, 718, 3748, 29918, 1272, 13, 13, 4706, 3748, 29918, 1272, 353, 313, 29881, 17204, 29898, 11802, 29918, 1272, 876, 718, 289, 29908, 8876, 8876, 29908, 13, 13, 4706, 1583, 29889, 566, 29886, 29889, 6717, 517, 29898, 11802, 29918, 1272, 29892, 313, 1311, 29889, 2974, 29892, 1583, 29889, 11802, 29918, 637, 876, 13, 13, 4706, 848, 29892, 903, 353, 1583, 29889, 566, 29886, 29889, 3757, 29894, 3166, 29898, 29896, 29900, 29900, 29897, 13, 4706, 848, 353, 848, 29889, 5451, 29898, 29890, 29908, 8876, 8876, 1159, 13, 13, 4706, 565, 7431, 29898, 1272, 29897, 1405, 29871, 29896, 29901, 13, 9651, 848, 353, 15376, 29898, 1272, 29961, 29900, 2314, 13, 13, 9651, 736, 5852, 29892, 848, 13, 4706, 1683, 29901, 13, 9651, 736, 7700, 29892, 6213, 13, 2 ]
pgoapi/protos/pogoprotos/data/telemetry/battle_party_telemetry_pb2.py
SkOODaT/Pgoapi
1
167654
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: pogoprotos/data/telemetry/battle_party_telemetry.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from pogoprotos.enums import telemetry_ids_pb2 as pogoprotos_dot_enums_dot_telemetry__ids__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='pogoprotos/data/telemetry/battle_party_telemetry.proto', package='pogoprotos.data.telemetry', syntax='proto3', serialized_pb=_b('\n6pogoprotos/data/telemetry/battle_party_telemetry.proto\x12\x19pogoprotos.data.telemetry\x1a$pogoprotos/enums/telemetry_ids.proto\"\x99\x01\n\x14\x42\x61ttlePartyTelemetry\x12H\n\x15\x62\x61ttle_party_click_id\x18\x01 \x01(\x0e\x32).pogoprotos.enums.BattlePartyTelemetryIds\x12\x1a\n\x12\x62\x61ttle_party_count\x18\x02 \x01(\x05\x12\x1b\n\x13\x62\x61ttle_party_number\x18\x03 \x01(\x05\x62\x06proto3') , dependencies=[pogoprotos_dot_enums_dot_telemetry__ids__pb2.DESCRIPTOR,]) _BATTLEPARTYTELEMETRY = _descriptor.Descriptor( name='BattlePartyTelemetry', full_name='pogoprotos.data.telemetry.BattlePartyTelemetry', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='battle_party_click_id', full_name='pogoprotos.data.telemetry.BattlePartyTelemetry.battle_party_click_id', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='battle_party_count', full_name='pogoprotos.data.telemetry.BattlePartyTelemetry.battle_party_count', index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), _descriptor.FieldDescriptor( name='battle_party_number', full_name='pogoprotos.data.telemetry.BattlePartyTelemetry.battle_party_number', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=124, serialized_end=277, ) _BATTLEPARTYTELEMETRY.fields_by_name['battle_party_click_id'].enum_type = pogoprotos_dot_enums_dot_telemetry__ids__pb2._BATTLEPARTYTELEMETRYIDS DESCRIPTOR.message_types_by_name['BattlePartyTelemetry'] = _BATTLEPARTYTELEMETRY _sym_db.RegisterFileDescriptor(DESCRIPTOR) BattlePartyTelemetry = _reflection.GeneratedProtocolMessageType('BattlePartyTelemetry', (_message.Message,), dict( DESCRIPTOR = _BATTLEPARTYTELEMETRY, __module__ = 'pogoprotos.data.telemetry.battle_party_telemetry_pb2' # @@protoc_insertion_point(class_scope:pogoprotos.data.telemetry.BattlePartyTelemetry) )) _sym_db.RegisterMessage(BattlePartyTelemetry) # @@protoc_insertion_point(module_scope)
[ 1, 396, 3251, 630, 491, 278, 9608, 6835, 6516, 29889, 29871, 11662, 6058, 11488, 29991, 13, 29937, 2752, 29901, 22086, 459, 5450, 359, 29914, 1272, 29914, 371, 2409, 27184, 29914, 29890, 5315, 29918, 22633, 29918, 371, 2409, 27184, 29889, 17529, 13, 13, 5215, 10876, 13, 29918, 29890, 29922, 9675, 29889, 3259, 29918, 3888, 29961, 29900, 29962, 29966, 29941, 322, 313, 2892, 921, 29901, 29916, 29897, 470, 313, 2892, 921, 29901, 29916, 29889, 12508, 877, 5066, 262, 29896, 8785, 13, 3166, 5386, 29889, 17529, 9721, 1053, 553, 11709, 408, 903, 2783, 11709, 13, 3166, 5386, 29889, 17529, 9721, 1053, 2643, 408, 903, 4906, 13, 3166, 5386, 29889, 17529, 9721, 1053, 17842, 408, 903, 999, 1464, 13, 3166, 5386, 29889, 17529, 9721, 1053, 5829, 29918, 9803, 408, 903, 18098, 29918, 9803, 13, 3166, 5386, 29889, 17529, 9721, 1053, 553, 11709, 29918, 24381, 29906, 13, 29937, 732, 29992, 17529, 29883, 29918, 7851, 291, 29918, 3149, 29898, 326, 4011, 29897, 13, 13, 29918, 11967, 29918, 2585, 353, 903, 18098, 29918, 9803, 29889, 4592, 580, 13, 13, 13, 3166, 22086, 459, 5450, 359, 29889, 264, 6762, 1053, 734, 2409, 27184, 29918, 4841, 29918, 24381, 29906, 408, 22086, 459, 5450, 359, 29918, 6333, 29918, 264, 6762, 29918, 6333, 29918, 371, 2409, 27184, 1649, 4841, 1649, 24381, 29906, 13, 13, 13, 2287, 7187, 24290, 1955, 353, 903, 2783, 11709, 29889, 2283, 19124, 29898, 13, 29871, 1024, 2433, 29886, 468, 459, 5450, 359, 29914, 1272, 29914, 371, 2409, 27184, 29914, 29890, 5315, 29918, 22633, 29918, 371, 2409, 27184, 29889, 17529, 742, 13, 29871, 3577, 2433, 29886, 468, 459, 5450, 359, 29889, 1272, 29889, 371, 2409, 27184, 742, 13, 29871, 5877, 2433, 17529, 29941, 742, 13, 29871, 7797, 1891, 29918, 24381, 29922, 29918, 29890, 28909, 29876, 29953, 29886, 468, 459, 5450, 359, 29914, 1272, 29914, 371, 2409, 27184, 29914, 29890, 5315, 29918, 22633, 29918, 371, 2409, 27184, 29889, 17529, 29905, 29916, 29896, 29906, 29905, 29916, 29896, 29929, 29886, 468, 459, 5450, 359, 29889, 1272, 29889, 371, 2409, 27184, 29905, 29916, 29896, 29874, 29938, 29886, 468, 459, 5450, 359, 29914, 264, 6762, 29914, 371, 2409, 27184, 29918, 4841, 29889, 17529, 5931, 29905, 29916, 29929, 29929, 29905, 29916, 29900, 29896, 29905, 29876, 29905, 29916, 29896, 29946, 29905, 29916, 29946, 29906, 29905, 29916, 29953, 29896, 698, 280, 7439, 29891, 7141, 2409, 27184, 29905, 29916, 29896, 29906, 29950, 29905, 29876, 29905, 29916, 29896, 29945, 29905, 29916, 29953, 29906, 29905, 29916, 29953, 29896, 698, 280, 29918, 22633, 29918, 3808, 29918, 333, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29896, 320, 29916, 29900, 29896, 1194, 29916, 29900, 29872, 29905, 29916, 29941, 29906, 467, 29886, 468, 459, 5450, 359, 29889, 264, 6762, 29889, 29933, 5315, 7439, 29891, 7141, 2409, 27184, 21943, 29905, 29916, 29896, 29906, 29905, 29916, 29896, 29874, 29905, 29876, 29905, 29916, 29896, 29906, 29905, 29916, 29953, 29906, 29905, 29916, 29953, 29896, 698, 280, 29918, 22633, 29918, 2798, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29906, 320, 29916, 29900, 29896, 1194, 29916, 29900, 29945, 29905, 29916, 29896, 29906, 29905, 29916, 29896, 29890, 29905, 29876, 29905, 29916, 29896, 29941, 29905, 29916, 29953, 29906, 29905, 29916, 29953, 29896, 698, 280, 29918, 22633, 29918, 4537, 29905, 29916, 29896, 29947, 29905, 29916, 29900, 29941, 320, 29916, 29900, 29896, 1194, 29916, 29900, 29945, 29905, 29916, 29953, 29906, 29905, 29916, 29900, 29953, 17529, 29941, 1495, 13, 29871, 1919, 13, 29871, 9962, 11759, 29886, 468, 459, 5450, 359, 29918, 6333, 29918, 264, 6762, 29918, 6333, 29918, 371, 2409, 27184, 1649, 4841, 1649, 24381, 29906, 29889, 2287, 7187, 24290, 1955, 29892, 2314, 13, 13, 13, 13, 13, 29918, 29933, 1299, 29911, 1307, 26092, 29979, 4330, 1307, 2303, 5659, 29979, 353, 903, 2783, 11709, 29889, 19124, 29898, 13, 29871, 1024, 2433, 29933, 5315, 7439, 29891, 7141, 2409, 27184, 742, 13, 29871, 2989, 29918, 978, 2433, 29886, 468, 459, 5450, 359, 29889, 1272, 29889, 371, 2409, 27184, 29889, 29933, 5315, 7439, 29891, 7141, 2409, 27184, 742, 13, 29871, 10422, 29922, 8516, 29892, 13, 29871, 934, 29922, 2287, 7187, 24290, 1955, 29892, 13, 29871, 6943, 29918, 1853, 29922, 8516, 29892, 13, 29871, 4235, 11759, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 29890, 5315, 29918, 22633, 29918, 3808, 29918, 333, 742, 2989, 29918, 978, 2433, 29886, 468, 459, 5450, 359, 29889, 1272, 29889, 371, 2409, 27184, 29889, 29933, 5315, 7439, 29891, 7141, 2409, 27184, 29889, 29890, 5315, 29918, 22633, 29918, 3808, 29918, 333, 742, 2380, 29922, 29900, 29892, 13, 418, 1353, 29922, 29896, 29892, 1134, 29922, 29896, 29946, 29892, 274, 407, 29918, 1853, 29922, 29947, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 29900, 29892, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 3987, 29922, 8516, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 29890, 5315, 29918, 22633, 29918, 2798, 742, 2989, 29918, 978, 2433, 29886, 468, 459, 5450, 359, 29889, 1272, 29889, 371, 2409, 27184, 29889, 29933, 5315, 7439, 29891, 7141, 2409, 27184, 29889, 29890, 5315, 29918, 22633, 29918, 2798, 742, 2380, 29922, 29896, 29892, 13, 418, 1353, 29922, 29906, 29892, 1134, 29922, 29945, 29892, 274, 407, 29918, 1853, 29922, 29896, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 29900, 29892, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 3987, 29922, 8516, 511, 13, 1678, 903, 2783, 11709, 29889, 3073, 19124, 29898, 13, 418, 1024, 2433, 29890, 5315, 29918, 22633, 29918, 4537, 742, 2989, 29918, 978, 2433, 29886, 468, 459, 5450, 359, 29889, 1272, 29889, 371, 2409, 27184, 29889, 29933, 5315, 7439, 29891, 7141, 2409, 27184, 29889, 29890, 5315, 29918, 22633, 29918, 4537, 742, 2380, 29922, 29906, 29892, 13, 418, 1353, 29922, 29941, 29892, 1134, 29922, 29945, 29892, 274, 407, 29918, 1853, 29922, 29896, 29892, 3858, 29922, 29896, 29892, 13, 418, 756, 29918, 4381, 29918, 1767, 29922, 8824, 29892, 2322, 29918, 1767, 29922, 29900, 29892, 13, 418, 2643, 29918, 1853, 29922, 8516, 29892, 14115, 29918, 1853, 29922, 8516, 29892, 6943, 29918, 1853, 29922, 8516, 29892, 13, 418, 338, 29918, 17588, 29922, 8824, 29892, 6081, 29918, 6078, 29922, 8516, 29892, 13, 418, 3987, 29922, 8516, 511, 13, 29871, 21251, 13, 29871, 17752, 11759, 13, 29871, 21251, 13, 29871, 9322, 29918, 8768, 11759, 1402, 13, 29871, 14115, 29918, 8768, 11759, 13, 29871, 21251, 13, 29871, 3987, 29922, 8516, 29892, 13, 29871, 338, 29918, 21843, 519, 29922, 8824, 29892, 13, 29871, 5877, 2433, 17529, 29941, 742, 13, 29871, 6081, 29918, 29878, 6916, 11759, 1402, 13, 29871, 697, 974, 29879, 11759, 13, 29871, 21251, 13, 29871, 7797, 1891, 29918, 2962, 29922, 29896, 29906, 29946, 29892, 13, 29871, 7797, 1891, 29918, 355, 29922, 29906, 29955, 29955, 29892, 13, 29897, 13, 13, 29918, 29933, 1299, 29911, 1307, 26092, 29979, 4330, 1307, 2303, 5659, 29979, 29889, 9621, 29918, 1609, 29918, 978, 1839, 29890, 5315, 29918, 22633, 29918, 3808, 29918, 333, 13359, 18605, 29918, 1853, 353, 22086, 459, 5450, 359, 29918, 6333, 29918, 264, 6762, 29918, 6333, 29918, 371, 2409, 27184, 1649, 4841, 1649, 24381, 29906, 3032, 29933, 1299, 29911, 1307, 26092, 29979, 4330, 1307, 2303, 5659, 29979, 1367, 29903, 13, 2287, 7187, 24290, 1955, 29889, 4906, 29918, 8768, 29918, 1609, 29918, 978, 1839, 29933, 5315, 7439, 29891, 7141, 2409, 27184, 2033, 353, 903, 29933, 1299, 29911, 1307, 26092, 29979, 4330, 1307, 2303, 5659, 29979, 13, 29918, 11967, 29918, 2585, 29889, 15213, 2283, 19124, 29898, 2287, 7187, 24290, 1955, 29897, 13, 13, 29933, 5315, 7439, 29891, 7141, 2409, 27184, 353, 903, 999, 1464, 29889, 24565, 17830, 3728, 1542, 877, 29933, 5315, 7439, 29891, 7141, 2409, 27184, 742, 9423, 4906, 29889, 3728, 29892, 511, 9657, 29898, 13, 29871, 23050, 24290, 1955, 353, 903, 29933, 1299, 29911, 1307, 26092, 29979, 4330, 1307, 2303, 5659, 29979, 29892, 13, 29871, 4770, 5453, 1649, 353, 525, 29886, 468, 459, 5450, 359, 29889, 1272, 29889, 371, 2409, 27184, 29889, 29890, 5315, 29918, 22633, 29918, 371, 2409, 27184, 29918, 24381, 29906, 29915, 13, 29871, 396, 732, 29992, 17529, 29883, 29918, 7851, 291, 29918, 3149, 29898, 1990, 29918, 6078, 29901, 29886, 468, 459, 5450, 359, 29889, 1272, 29889, 371, 2409, 27184, 29889, 29933, 5315, 7439, 29891, 7141, 2409, 27184, 29897, 13, 259, 876, 13, 29918, 11967, 29918, 2585, 29889, 15213, 3728, 29898, 29933, 5315, 7439, 29891, 7141, 2409, 27184, 29897, 13, 13, 13, 29937, 732, 29992, 17529, 29883, 29918, 7851, 291, 29918, 3149, 29898, 5453, 29918, 6078, 29897, 13, 2 ]
landlab/components/steepness_index/channel_steepness.py
amanaster2/landlab
4
1611473
# -*- coding: utf-8 -*- """Created on Mon Oct 19. @author: dejh """ import numpy as np from landlab import Component class SteepnessFinder(Component): """This component calculates steepness indices, sensu Wobus et al. 2006, for a Landlab landscape. Follows broadly the approach used in GeomorphTools, geomorphtools.org. Examples -------- >>> import numpy as np >>> from landlab import RasterModelGrid >>> from landlab.components import FlowAccumulator, FastscapeEroder >>> from landlab.components import SteepnessFinder >>> mg = RasterModelGrid((3, 10), xy_spacing=100.) >>> for nodes in (mg.nodes_at_right_edge, mg.nodes_at_bottom_edge, ... mg.nodes_at_top_edge): ... mg.status_at_node[nodes] = mg.BC_NODE_IS_CLOSED >>> _ = mg.add_zeros("topographic__elevation", at="node") >>> mg.at_node['topographic__elevation'][mg.core_nodes] = mg.node_x[ ... mg.core_nodes]/1000. >>> fr = FlowAccumulator(mg, flow_director='D8') >>> sp = FastscapeEroder(mg, K_sp=0.01) >>> sf = SteepnessFinder(mg, min_drainage_area=10000.) >>> for i in range(10): ... mg.at_node['topographic__elevation'][mg.core_nodes] += 10. ... _ = fr.run_one_step() ... sp.run_one_step(1000.) >>> sf.calculate_steepnesses() >>> mg.at_node['channel__steepness_index'].reshape((3, 10))[1, :] array([ 0. , 29.28427125, 1. , 1. , 1. , 1. , 1. , 1. , 0.99999997, 0. ]) >>> sf.hillslope_mask array([ True, True, True, True, True, True, True, True, True, True, False, False, False, False, False, False, False, False, False, True, True, True, True, True, True, True, True, True, True, True], dtype=bool) >>> sf = SteepnessFinder(mg, min_drainage_area=10000., discretization_length=350.) >>> sf.calculate_steepnesses() >>> mg.at_node['channel__steepness_index'].reshape((3, 10))[1, :] array([ 0. , 3.08232295, 3.08232295, 3.08232295, 1. , 1. , 1. , 1. , 0. , 0. ]) >>> sf = SteepnessFinder(mg, min_drainage_area=10000., elev_step=1.5) >>> sf.calculate_steepnesses() >>> mg.at_node['channel__steepness_index'].reshape((3, 10))[1, :] array([ 0. , 1.22673541, 1.2593727 , 1.27781936, 1.25659369, 1.12393156, 0.97335328, 0.79473963, 0.56196578, 0. ]) References ---------- **Required Software Citation(s) Specific to this Component** None Listed **Additional References** <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>., and <NAME>.: Tectonics from topography: Procedures, promise, and pitfalls, in: Tectonics, Climate, and Landscape Evolution, edited by: <NAME>., <NAME>., <NAME>., and <NAME>., Geological Society of America Special Paper 398, Geological Society of America, Boulder, CO, USA, 55–74, 2006. """ _name = "SteepnessFinder" _unit_agnostic = True _info = { "channel__steepness_index": { "dtype": float, "intent": "out", "optional": False, "units": "variable", "mapping": "node", "doc": "the local steepness index", }, "drainage_area": { "dtype": float, "intent": "in", "optional": False, "units": "m**2", "mapping": "node", "doc": "Upstream accumulated surface area contributing to the node's discharge", }, "flow__link_to_receiver_node": { "dtype": int, "intent": "in", "optional": False, "units": "-", "mapping": "node", "doc": "ID of link downstream of each node, which carries the discharge", }, "flow__receiver_node": { "dtype": int, "intent": "in", "optional": False, "units": "-", "mapping": "node", "doc": "Node array of receivers (node that receives flow from current node)", }, "flow__upstream_node_order": { "dtype": int, "intent": "in", "optional": False, "units": "-", "mapping": "node", "doc": "Node array containing downstream-to-upstream ordered list of node IDs", }, "topographic__elevation": { "dtype": float, "intent": "in", "optional": False, "units": "m", "mapping": "node", "doc": "Land surface topographic elevation", }, "topographic__steepest_slope": { "dtype": float, "intent": "in", "optional": False, "units": "-", "mapping": "node", "doc": "The steepest *downhill* slope", }, } def __init__( self, grid, reference_concavity=0.5, min_drainage_area=1.0e6, elev_step=0.0, discretization_length=0.0, ): """ Parameters ---------- grid : RasterModelGrid A landlab RasterModelGrid. reference_concavity : float The reference concavity to use in the calculation. min_drainage_area : float (m**2; default 1.e6) The minimum drainage area above which steepness indices are calculated. Defaults to 1.e6 m**2, per Wobus et al. 2006. elev_step : float (m; default 0.) If >0., becomes a vertical elevation change step to use to discretize the data (per Wobus). If 0., all nodes are used and no discretization happens. discretization_length : float (m; default 0.) If >0., becomes the lengthscale over which to segment the profiles - i.e., one different steepness index value is calculated every discretization_length. If only one (or no) points are present in a segment, it will be lumped together with the next segment. If zero, one value is assigned to each channel node. """ super().__init__(grid) if grid.at_node["flow__receiver_node"].size != grid.size("node"): msg = ( "A route-to-multiple flow director has been " "run on this grid. The landlab development team has not " "verified that SteepnessFinder is compatible with " "route-to-multiple methods. Please open a GitHub Issue " "to start this process." ) raise NotImplementedError(msg) self._reftheta = reference_concavity self._min_drainage = min_drainage_area assert elev_step >= 0.0, "elev_step must be >= 0!" self._elev_step = elev_step self._discretization = discretization_length self._ksn = self._grid.add_zeros( "channel__steepness_index", at="node", clobber=True ) self._mask = self._grid.ones("node", dtype=bool) # this one needs modifying if smooth_elev self._elev = self._grid.at_node["topographic__elevation"] def calculate_steepnesses(self): """This is the main method. Call it to calculate local steepness indices at all points with drainage areas greater than *min_drainage_area*. This "run" method can optionally take the same parameter set as provided at instantiation. If they are provided, they will override the existing values from instantiation. Normalized steepness of any node without a defined value is reported as 0. These nodes are also identified in the mask retrieved with :func:`hillslope_mask`. """ self._mask.fill(True) self._ksn.fill(0.0) reftheta = self._reftheta min_drainage = self._min_drainage elev_step = self._elev_step discretization_length = self._discretization upstr_order = self._grid.at_node["flow__upstream_node_order"] # get an array of only nodes with A above threshold: valid_dstr_order = ( upstr_order[ self._grid.at_node["drainage_area"][upstr_order] >= min_drainage ] )[::-1] # note elevs are guaranteed to be in order, UNLESS a fill # algorithm has been used. nodes_incorporated = self._grid.zeros("node", dtype=bool) # now do each poss channel in turn # get the head of the first (longest!) channel: for dstr_order_index in range(valid_dstr_order.size): this_ch_top_node = valid_dstr_order[dstr_order_index] # top node if not nodes_incorporated[this_ch_top_node]: nodes_incorporated[this_ch_top_node] = True nodes_in_channel = [this_ch_top_node] penultimate_node = this_ch_top_node current_node_incorporated = False while not current_node_incorporated: next_node = self._grid.at_node["flow__receiver_node"][ penultimate_node ] if next_node == penultimate_node: # end of flow path break nodes_in_channel.append(next_node) current_node_incorporated = nodes_incorporated[next_node] # ^ this is a COPY op, so we're free to update the array nodes_incorporated[next_node] = True penultimate_node = next_node # by here, we have a full, unique reach in nodes_in_channel # it incorporates a single, duplicate node at the lower end # Now, if this segment long enough? if elev_step: top_elev = self._elev[nodes_in_channel[0]] base_elev = self._elev[nodes_in_channel[-1]] # work up the channel from the base to make new interp pts interp_pt_elevs = np.arange(base_elev, top_elev, elev_step) if interp_pt_elevs.size <= 1: # <1 step; bail on this whole segment break # now we can fairly closely follow the Geomorphtools # algorithm: ch_nodes = np.array(nodes_in_channel) # ^ this is top-to-bottom ch_A = self._grid.at_node["drainage_area"][ch_nodes] ch_dists = self.channel_distances_downstream(ch_nodes) ch_S = self.interpolate_slopes_with_step( ch_nodes, ch_dists, interp_pt_elevs ) else: # all the nodes; much easier as links work ch_nodes = np.array(nodes_in_channel) ch_dists = self.channel_distances_downstream(ch_nodes) ch_A = self._grid.at_node["drainage_area"][ch_nodes] ch_S = self._grid.at_node["topographic__steepest_slope"][ch_nodes] assert np.all(ch_S >= 0.0) # if we're doing spatial discretization, do it here: if discretization_length: ch_ksn = self.calc_ksn_discretized( ch_dists, ch_A, ch_S, reftheta, discretization_length ) else: # not discretized # also chopping off the final node, as above log_A = np.log10(ch_A[:-1]) log_S = np.log10(ch_S[:-1]) # we're potentially propagating nans here if S<=0 log_ksn = log_S + reftheta * log_A ch_ksn = 10.0 ** log_ksn # save the answers into the main arrays: assert np.all(self._mask[ch_nodes[:-1]]) # Final node gets trimmed off... self._ksn[ch_nodes[:-1]] = ch_ksn self._mask[ch_nodes] = False # now a final sweep to remove any undefined ksn values: self._mask[self._ksn == -1.0] = True self._ksn[self._ksn == -1.0] = 0.0 def channel_distances_downstream(self, ch_nodes): """Calculates distances downstream from top node of a defined flowpath. Parameters ---------- ch_nodes : array of ints The nodes along a single defined flow path, starting upstream. Returns ------- ch_dists : array of floats Distances downstream from top node of ch_nodes. Examples -------- >>> import numpy as np >>> from landlab import RasterModelGrid >>> from landlab.components import FlowAccumulator >>> mg = RasterModelGrid((4,5), xy_spacing=(10., 5.)) >>> for nodes in (mg.nodes_at_right_edge, mg.nodes_at_bottom_edge, ... mg.nodes_at_top_edge): ... mg.status_at_node[nodes] = mg.BC_NODE_IS_CLOSED >>> mg.status_at_node[[6, 12, 13, 14]] = mg.BC_NODE_IS_CLOSED >>> _ = mg.add_field("topographic__elevation", mg.node_x, at="node") >>> fr = FlowAccumulator(mg, flow_director='D8') >>> sf = SteepnessFinder(mg) >>> _ = fr.run_one_step() >>> ch_nodes = np.array([8, 7, 11, 10]) >>> sf.channel_distances_downstream(ch_nodes) array([ 0. , 10. , 21.18033989, 31.18033989]) """ ch_links = self._grid.at_node["flow__link_to_receiver_node"][ch_nodes] ch_dists = np.empty_like(ch_nodes, dtype=float) # dists from ch head, NOT drainage divide ch_dists[0] = 0.0 np.cumsum(self._grid.length_of_d8[ch_links[:-1]], out=ch_dists[1:]) return ch_dists def interpolate_slopes_with_step(self, ch_nodes, ch_dists, interp_pt_elevs): """Maps slopes to nodes, interpolating withing defined vertical intervals. This follows Geomorphtools' discretization methods. It is essentially a downwind map of the slopes. Parameters ---------- ch_nodes : array of ints The nodes along a single defined flow path, starting upstream. ch_dists : array of floats Distances downstream from top node of ch_nodes. interp_pt_elevs : array of floats Elevations at the discretizing points along the profile, in order of increasing elevation. Returns ------- ch_S : array of floats Interpolated slopes at each node in the flowpath (always positive). Examples -------- >>> import numpy as np >>> from landlab import RasterModelGrid >>> from landlab.components import FlowAccumulator >>> mg = RasterModelGrid((3,10), xy_spacing=(10., 5.)) >>> for nodes in (mg.nodes_at_right_edge, mg.nodes_at_bottom_edge, ... mg.nodes_at_top_edge): ... mg.status_at_node[nodes] = mg.BC_NODE_IS_CLOSED >>> _ = mg.add_field("topographic__elevation", mg.node_x**1.1, at="node") >>> fr = FlowAccumulator(mg, flow_director='D8') >>> sf = SteepnessFinder(mg) >>> _ = fr.run_one_step() >>> ch_nodes = np.arange(18, 9, -1) >>> ch_dists = sf.channel_distances_downstream(ch_nodes) >>> interp_pt_elevs = np.array([0., 30., 60., 90., 120.]) >>> sf.interpolate_slopes_with_step(ch_nodes, ch_dists, ... interp_pt_elevs) array([ 1.67970205, 1.67970205, 1.67970205, 1.65129294, 1.62115336, 1.5811951 , 1.53157521, 1.44240187, 1.36442227]) >>> mg.at_node['topographic__steepest_slope'][ch_nodes] array([ 1.69383001, 1.66972677, 1.64200694, 1.60928598, 1.56915472, 1.51678178, 1.43964028, 1.25892541, 0. ]) >>> mg.at_node['topographic__elevation'][:] = mg.node_x >>> interp_pt_elevs = np.array([0., 25., 50., 75., 80.]) >>> sf.interpolate_slopes_with_step(ch_nodes, ch_dists, ... interp_pt_elevs) array([ 1., 1., 1., 1., 1., 1., 1., 1., 1.]) """ ch_z = self._grid.at_node["topographic__elevation"][ch_nodes] assert ( ch_z[0] >= interp_pt_elevs[-1] ), "Highest interp_pt_elev must be below top channel node" interp_pt_x = np.interp(interp_pt_elevs, ch_z[::-1], ch_dists[::-1]) interp_pt_S = np.empty_like(interp_pt_elevs) # now a downwind map of the slopes onto the nodes # slopes are defined positive z_diff = interp_pt_elevs[:-1] - interp_pt_elevs[1:] x_diff = interp_pt_x[1:] - interp_pt_x[:-1] np.divide(z_diff, x_diff, out=interp_pt_S[:-1]) interp_pt_S[-1] = interp_pt_S[-2] # Map S back onto nodes ch_S = np.interp(ch_z, interp_pt_elevs, interp_pt_S) return ch_S def calc_ksn_discretized( self, ch_dists, ch_A, ch_S, ref_theta, discretization_length ): """Calculate normalized steepness index on defined channel segments. Every segment must have at least 2 nodes along it. If not, segments will be automatically merged to achieve this. The channel will be segmented starting at the *downstream* end. NB: The final node in the channel does not receive an index, as it either belongs to a longer, existing flow path, or it is a boundary node with S = 0. Neither works. Parameters ---------- ch_dists : array of floats Distances downstream from top node of a single stream path. ch_A : array of floats Drainage areas at each node in the flowpath. ch_S : array of floats Slope at each node in the flowpath (defined as positive). ref_theta : float The reference concavity; must be positive. discretization_length : float (m) The streamwise length of each segment. Returns ------- ch_ksn : array of floats The normalized steepness index at each node in the flowpath, EXCEPT THE LAST. (i.e., length is (ch_dists.size - 1)). Values will be the same within each defined segment. Examples -------- >>> import numpy as np >>> from landlab import RasterModelGrid >>> from landlab.components import FlowAccumulator >>> from landlab.components import SteepnessFinder >>> mg = RasterModelGrid((3,10), xy_spacing=(10., 5.)) >>> for nodes in (mg.nodes_at_right_edge, mg.nodes_at_bottom_edge, ... mg.nodes_at_top_edge): ... mg.status_at_node[nodes] = mg.BC_NODE_IS_CLOSED >>> _ = mg.add_field("topographic__elevation", mg.node_x, at="node") >>> fr = FlowAccumulator(mg, flow_director='D8') >>> sf = SteepnessFinder(mg) >>> _ = fr.run_one_step() >>> ch_nodes = np.arange(18, 9, -1) >>> ch_dists = sf.channel_distances_downstream(ch_nodes) >>> ch_A = mg.at_node['drainage_area'][ch_nodes] >>> ch_S = mg.at_node['topographic__steepest_slope'][ch_nodes] >>> ksn_25 = sf.calc_ksn_discretized(ch_dists, ch_A, ch_S, 0.5, 25.) >>> ksn_25.size == ch_dists.size - 1 True >>> ksn_25 array([ -1. , 11.0668192 , 11.0668192 , 15.70417802, 15.70417802, 15.70417802, 19.3433642 , 19.3433642 ]) >>> ksn_10 = sf.calc_ksn_discretized(ch_dists, ch_A, ch_S, 0.5, 10.) >>> ksn_10 array([ 8.40896415, 8.40896415, 13.16074013, 13.16074013, 16.5487546 , 16.5487546 , 19.3433642 , 19.3433642 ]) >>> ch_ksn_overdiscretized = sf.calc_ksn_discretized( ... ch_dists, ch_A, ch_S, 0.5, 10.) >>> np.allclose(ch_ksn_overdiscretized, ksn_10) True """ ch_ksn = np.empty_like(ch_A) # need to remove the influence of the final node in the seg, # as it reflects either the edge of the grid (S=0) or a point # after a confluence - hence the 0.000001 seg_ends = np.arange(ch_dists[-1] - 0.000001, 0.0, -discretization_length)[::-1] # ^ counts up from 0, but terminates at the far end cleanly pts_in_each_seg = np.searchsorted(seg_ends, ch_dists) num_segs = pts_in_each_seg[-1] i = num_segs - 1 # the final pt is no longer included while i >= 0: old_i = i pts_in_seg = pts_in_each_seg == i num_pts_in_seg = int(pts_in_seg.sum()) # if i == num_segs: # true_pts_in_seg = pts_in_each_seg.copy() # pts_in_each_seg[-1] = False # else: # true_pts_in_seg = pts_in_each_seg # make sure there's always 2 pts in the seg... while num_pts_in_seg < 2: i -= 1 pts_in_seg = np.logical_and( pts_in_each_seg <= old_i, pts_in_each_seg >= i ) num_pts_in_seg = int(pts_in_seg.sum()) if i < 0: break if num_pts_in_seg < 2: # must be at the end of the seg... # nodes in invalid segs at the end get ksn = -1. ch_ksn[pts_in_seg] = -1.0 break seg_A = ch_A[pts_in_seg] seg_S = ch_S[pts_in_seg] logseg_A = np.log10(seg_A) logseg_S = np.log10(seg_S) meanlogseg_A = np.mean(logseg_A) meanlogseg_S = np.mean(logseg_S) logseg_ksn = meanlogseg_S + ref_theta * meanlogseg_A ch_ksn[pts_in_seg] = 10.0 ** logseg_ksn i -= 1 return ch_ksn[:-1] @property def steepness_indices(self): """Return the array of channel steepness indices. Nodes not in the channel receive zeros. """ return self._ksn @property def hillslope_mask(self): """Return a boolean array, False where steepness indices exist.""" return self._mask @property def masked_steepness_indices(self): """Returns a masked array version of the 'channel__steepness_index' field. This enables easier plotting of the values with. :func:`landlab.imshow_grid_at_node` or similar. Examples -------- Make a topographic map with an overlay of steepness values: >>> from landlab import imshow_grid_at_node >>> from landlab import RasterModelGrid >>> from landlab.components import FlowAccumulator, FastscapeEroder >>> from landlab.components import SteepnessFinder >>> mg = RasterModelGrid((5, 5), xy_spacing=100.) >>> for nodes in (mg.nodes_at_right_edge, mg.nodes_at_bottom_edge, ... mg.nodes_at_top_edge): ... mg.status_at_node[nodes] = mg.BC_NODE_IS_CLOSED >>> _ = mg.add_zeros("topographic__elevation", at="node") >>> mg.at_node['topographic__elevation'][mg.core_nodes] = mg.node_x[ ... mg.core_nodes]/1000. >>> np.random.seed(0) >>> mg.at_node['topographic__elevation'][ ... mg.core_nodes] += np.random.rand(mg.number_of_core_nodes) >>> fr = FlowAccumulator(mg, flow_director='D8') >>> sp = FastscapeEroder(mg, K_sp=0.01) >>> cf = SteepnessFinder(mg, min_drainage_area=20000.) >>> for i in range(10): ... mg.at_node['topographic__elevation'][mg.core_nodes] += 10. ... _ = fr.run_one_step() ... sp.run_one_step(1000.) >>> _ = fr.run_one_step() >>> cf.calculate_steepnesses() >>> imshow_grid_at_node(mg, 'topographic__elevation', ... allow_colorbar=False) >>> imshow_grid_at_node(mg, cf.masked_steepness_indices, ... color_for_closed=None, cmap='winter') """ return np.ma.array(self.steepness_indices, mask=self.hillslope_mask)
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 15945, 29908, 20399, 373, 2598, 4756, 29871, 29896, 29929, 29889, 13, 13, 29992, 8921, 29901, 26751, 29882, 13, 15945, 29908, 13, 13, 13, 5215, 12655, 408, 7442, 13, 13, 3166, 2982, 8205, 1053, 15924, 13, 13, 13, 1990, 2443, 1022, 2264, 29943, 4995, 29898, 5308, 1125, 13, 1678, 9995, 4013, 4163, 3408, 1078, 1886, 1022, 2264, 16285, 29892, 4771, 29884, 399, 711, 375, 634, 394, 29889, 29871, 29906, 29900, 29900, 29953, 29892, 13, 1678, 363, 263, 3172, 8205, 24400, 29889, 10306, 29879, 7300, 368, 278, 2948, 1304, 297, 13, 1678, 1879, 7886, 24183, 29892, 23216, 26423, 400, 8789, 29889, 990, 29889, 13, 13, 1678, 1222, 9422, 13, 1678, 448, 26589, 13, 1678, 8653, 1053, 12655, 408, 7442, 13, 1678, 8653, 515, 2982, 8205, 1053, 390, 1901, 3195, 5756, 13, 1678, 8653, 515, 2982, 8205, 29889, 14036, 1053, 22787, 7504, 398, 9183, 29892, 383, 19416, 5738, 29923, 307, 672, 13, 1678, 8653, 515, 2982, 8205, 29889, 14036, 1053, 2443, 1022, 2264, 29943, 4995, 13, 1678, 8653, 286, 29887, 353, 390, 1901, 3195, 5756, 3552, 29941, 29892, 29871, 29896, 29900, 511, 921, 29891, 29918, 1028, 9390, 29922, 29896, 29900, 29900, 1846, 13, 1678, 8653, 363, 7573, 297, 313, 29885, 29887, 29889, 18010, 29918, 271, 29918, 1266, 29918, 12864, 29892, 286, 29887, 29889, 18010, 29918, 271, 29918, 8968, 29918, 12864, 29892, 13, 1678, 2023, 1669, 286, 29887, 29889, 18010, 29918, 271, 29918, 3332, 29918, 12864, 1125, 13, 1678, 2023, 268, 286, 29887, 29889, 4882, 29918, 271, 29918, 3177, 29961, 18010, 29962, 353, 286, 29887, 29889, 5371, 29918, 6632, 2287, 29918, 3235, 29918, 29907, 3927, 1660, 29928, 13, 1678, 8653, 903, 353, 286, 29887, 29889, 1202, 29918, 3298, 359, 703, 3332, 12122, 1649, 29872, 2608, 362, 613, 472, 543, 3177, 1159, 13, 1678, 8653, 286, 29887, 29889, 271, 29918, 3177, 1839, 3332, 12122, 1649, 29872, 2608, 362, 2033, 29961, 29885, 29887, 29889, 3221, 29918, 18010, 29962, 353, 286, 29887, 29889, 3177, 29918, 29916, 29961, 13, 1678, 2023, 268, 286, 29887, 29889, 3221, 29918, 18010, 16261, 29896, 29900, 29900, 29900, 29889, 13, 1678, 8653, 1424, 353, 22787, 7504, 398, 9183, 29898, 29885, 29887, 29892, 4972, 29918, 11851, 272, 2433, 29928, 29947, 1495, 13, 1678, 8653, 805, 353, 383, 19416, 5738, 29923, 307, 672, 29898, 29885, 29887, 29892, 476, 29918, 1028, 29922, 29900, 29889, 29900, 29896, 29897, 13, 1678, 8653, 18668, 353, 2443, 1022, 2264, 29943, 4995, 29898, 29885, 29887, 29892, 1375, 29918, 29881, 6038, 482, 29918, 6203, 29922, 29896, 29900, 29900, 29900, 29900, 1846, 13, 1678, 8653, 363, 474, 297, 3464, 29898, 29896, 29900, 1125, 13, 1678, 2023, 268, 286, 29887, 29889, 271, 29918, 3177, 1839, 3332, 12122, 1649, 29872, 2608, 362, 2033, 29961, 29885, 29887, 29889, 3221, 29918, 18010, 29962, 4619, 29871, 29896, 29900, 29889, 13, 1678, 2023, 268, 903, 353, 1424, 29889, 3389, 29918, 650, 29918, 10568, 580, 13, 1678, 2023, 268, 805, 29889, 3389, 29918, 650, 29918, 10568, 29898, 29896, 29900, 29900, 29900, 1846, 13, 1678, 8653, 18668, 29889, 15807, 403, 29918, 1655, 1022, 2264, 267, 580, 13, 1678, 8653, 286, 29887, 29889, 271, 29918, 3177, 1839, 12719, 1649, 1655, 1022, 2264, 29918, 2248, 13359, 690, 14443, 3552, 29941, 29892, 29871, 29896, 29900, 876, 29961, 29896, 29892, 584, 29962, 13, 1678, 1409, 4197, 259, 29900, 29889, 4706, 1919, 259, 29906, 29929, 29889, 29906, 29947, 29946, 29906, 29955, 29896, 29906, 29945, 29892, 1678, 29896, 29889, 4706, 1919, 1678, 29896, 29889, 4706, 1919, 13, 795, 29896, 29889, 4706, 1919, 1678, 29896, 29889, 4706, 1919, 1678, 29896, 29889, 4706, 1919, 1678, 29896, 29889, 4706, 1919, 13, 795, 29900, 29889, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29955, 29892, 1678, 29900, 29889, 308, 2314, 13, 1678, 8653, 18668, 29889, 29882, 6090, 417, 412, 29918, 13168, 13, 1678, 1409, 4197, 5852, 29892, 29871, 5852, 29892, 29871, 5852, 29892, 29871, 5852, 29892, 29871, 5852, 29892, 29871, 5852, 29892, 29871, 5852, 29892, 29871, 5852, 29892, 29871, 5852, 29892, 13, 9651, 5852, 29892, 7700, 29892, 7700, 29892, 7700, 29892, 7700, 29892, 7700, 29892, 7700, 29892, 7700, 29892, 7700, 29892, 13, 965, 7700, 29892, 29871, 5852, 29892, 29871, 5852, 29892, 29871, 5852, 29892, 29871, 5852, 29892, 29871, 5852, 29892, 29871, 5852, 29892, 29871, 5852, 29892, 29871, 5852, 29892, 13, 9651, 5852, 29892, 29871, 5852, 29892, 29871, 5852, 1402, 26688, 29922, 11227, 29897, 13, 13, 1678, 8653, 18668, 353, 2443, 1022, 2264, 29943, 4995, 29898, 29885, 29887, 29892, 1375, 29918, 29881, 6038, 482, 29918, 6203, 29922, 29896, 29900, 29900, 29900, 29900, 1696, 766, 4838, 2133, 29918, 2848, 29922, 29941, 29945, 29900, 1846, 13, 1678, 8653, 18668, 29889, 15807, 403, 29918, 1655, 1022, 2264, 267, 580, 13, 1678, 8653, 286, 29887, 29889, 271, 29918, 3177, 1839, 12719, 1649, 1655, 1022, 2264, 29918, 2248, 13359, 690, 14443, 3552, 29941, 29892, 29871, 29896, 29900, 876, 29961, 29896, 29892, 584, 29962, 13, 1678, 1409, 4197, 29871, 29900, 29889, 4706, 1919, 259, 29941, 29889, 29900, 29947, 29906, 29941, 29906, 29906, 29929, 29945, 29892, 259, 29941, 29889, 29900, 29947, 29906, 29941, 29906, 29906, 29929, 29945, 29892, 259, 29941, 29889, 29900, 29947, 29906, 29941, 29906, 29906, 29929, 29945, 29892, 259, 29896, 29889, 4706, 1919, 13, 632, 29896, 29889, 4706, 1919, 259, 29896, 29889, 4706, 1919, 259, 29896, 29889, 4706, 1919, 259, 29900, 29889, 4706, 1919, 259, 29900, 29889, 308, 2314, 13, 13, 1678, 8653, 18668, 353, 2443, 1022, 2264, 29943, 4995, 29898, 29885, 29887, 29892, 1375, 29918, 29881, 6038, 482, 29918, 6203, 29922, 29896, 29900, 29900, 29900, 29900, 1696, 11858, 29918, 10568, 29922, 29896, 29889, 29945, 29897, 13, 1678, 8653, 18668, 29889, 15807, 403, 29918, 1655, 1022, 2264, 267, 580, 13, 1678, 8653, 286, 29887, 29889, 271, 29918, 3177, 1839, 12719, 1649, 1655, 1022, 2264, 29918, 2248, 13359, 690, 14443, 3552, 29941, 29892, 29871, 29896, 29900, 876, 29961, 29896, 29892, 584, 29962, 13, 1678, 1409, 4197, 29871, 29900, 29889, 4706, 1919, 259, 29896, 29889, 29906, 29906, 29953, 29955, 29941, 29945, 29946, 29896, 29892, 259, 29896, 29889, 29906, 29945, 29929, 29941, 29955, 29906, 29955, 1919, 259, 29896, 29889, 29906, 29955, 29955, 29947, 29896, 29929, 29941, 29953, 29892, 259, 29896, 29889, 29906, 29945, 29953, 29945, 29929, 29941, 29953, 29929, 29892, 13, 632, 29896, 29889, 29896, 29906, 29941, 29929, 29941, 29896, 29945, 29953, 29892, 259, 29900, 29889, 29929, 29955, 29941, 29941, 29945, 29941, 29906, 29947, 29892, 259, 29900, 29889, 29955, 29929, 29946, 29955, 29941, 29929, 29953, 29941, 29892, 259, 29900, 29889, 29945, 29953, 29896, 29929, 29953, 29945, 29955, 29947, 29892, 259, 29900, 29889, 308, 2314, 13, 13, 1678, 28318, 13, 1678, 448, 1378, 29899, 13, 1678, 3579, 19347, 18540, 315, 7018, 29898, 29879, 29897, 21220, 304, 445, 15924, 1068, 13, 13, 1678, 6213, 2391, 287, 13, 13, 1678, 3579, 2528, 3245, 28318, 1068, 13, 13, 1678, 529, 5813, 29958, 1696, 529, 5813, 29958, 1696, 529, 5813, 29958, 1696, 529, 5813, 29958, 1696, 529, 5813, 29958, 1696, 13, 1678, 529, 5813, 29958, 1696, 529, 5813, 29958, 1696, 322, 529, 5813, 29958, 4898, 323, 522, 265, 1199, 515, 2246, 5275, 29901, 13, 1678, 1019, 1133, 1973, 29892, 11640, 29892, 322, 22754, 12559, 29892, 297, 29901, 323, 522, 265, 1199, 29892, 2233, 6490, 29892, 322, 3172, 29879, 5738, 13, 1678, 382, 4068, 29892, 8788, 491, 29901, 529, 5813, 29958, 1696, 529, 5813, 29958, 1696, 529, 5813, 29958, 1696, 322, 13, 1678, 529, 5813, 29958, 1696, 1879, 5996, 7765, 310, 6813, 12630, 349, 7202, 29871, 29941, 29929, 29947, 29892, 1879, 5996, 13, 1678, 7765, 310, 6813, 29892, 350, 483, 261, 29892, 4810, 29892, 8278, 29892, 29871, 29945, 29945, 29994, 29955, 29946, 29892, 29871, 29906, 29900, 29900, 29953, 29889, 13, 13, 1678, 9995, 13, 13, 1678, 903, 978, 353, 376, 7789, 1022, 2264, 29943, 4995, 29908, 13, 13, 1678, 903, 5441, 29918, 21780, 353, 5852, 13, 13, 1678, 903, 3888, 353, 426, 13, 4706, 376, 12719, 1649, 1655, 1022, 2264, 29918, 2248, 1115, 426, 13, 9651, 376, 29881, 1853, 1115, 5785, 29892, 13, 9651, 376, 14029, 1115, 376, 449, 613, 13, 9651, 376, 25253, 1115, 7700, 29892, 13, 9651, 376, 348, 1169, 1115, 376, 11918, 613, 13, 9651, 376, 20698, 1115, 376, 3177, 613, 13, 9651, 376, 1514, 1115, 376, 1552, 1887, 1886, 1022, 2264, 2380, 613, 13, 4706, 2981, 13, 4706, 376, 29881, 6038, 482, 29918, 6203, 1115, 426, 13, 9651, 376, 29881, 1853, 1115, 5785, 29892, 13, 9651, 376, 14029, 1115, 376, 262, 613, 13, 9651, 376, 25253, 1115, 7700, 29892, 13, 9651, 376, 348, 1169, 1115, 376, 29885, 1068, 29906, 613, 13, 9651, 376, 20698, 1115, 376, 3177, 613, 13, 9651, 376, 1514, 1115, 376, 3373, 5461, 18414, 7964, 7101, 4038, 17737, 17068, 304, 278, 2943, 29915, 29879, 766, 23367, 613, 13, 4706, 2981, 13, 4706, 376, 1731, 1649, 2324, 29918, 517, 29918, 13556, 2147, 29918, 3177, 1115, 426, 13, 9651, 376, 29881, 1853, 1115, 938, 29892, 13, 9651, 376, 14029, 1115, 376, 262, 613, 13, 9651, 376, 25253, 1115, 7700, 29892, 13, 9651, 376, 348, 1169, 1115, 11663, 613, 13, 9651, 376, 20698, 1115, 376, 3177, 613, 13, 9651, 376, 1514, 1115, 376, 1367, 310, 1544, 1623, 5461, 310, 1269, 2943, 29892, 607, 1559, 2722, 278, 766, 23367, 613, 13, 4706, 2981, 13, 4706, 376, 1731, 1649, 13556, 2147, 29918, 3177, 1115, 426, 13, 9651, 376, 29881, 1853, 1115, 938, 29892, 13, 9651, 376, 14029, 1115, 376, 262, 613, 13, 9651, 376, 25253, 1115, 7700, 29892, 13, 9651, 376, 348, 1169, 1115, 11663, 613, 13, 9651, 376, 20698, 1115, 376, 3177, 613, 13, 9651, 376, 1514, 1115, 376, 4247, 1409, 310, 2414, 1536, 313, 3177, 393, 20586, 4972, 515, 1857, 2943, 19123, 13, 4706, 2981, 13, 4706, 376, 1731, 1649, 786, 5461, 29918, 3177, 29918, 2098, 1115, 426, 13, 9651, 376, 29881, 1853, 1115, 938, 29892, 13, 9651, 376, 14029, 1115, 376, 262, 613, 13, 9651, 376, 25253, 1115, 7700, 29892, 13, 9651, 376, 348, 1169, 1115, 11663, 613, 13, 9651, 376, 20698, 1115, 376, 3177, 613, 13, 9651, 376, 1514, 1115, 376, 4247, 1409, 6943, 1623, 5461, 29899, 517, 29899, 786, 5461, 10372, 1051, 310, 2943, 23481, 613, 13, 4706, 2981, 13, 4706, 376, 3332, 12122, 1649, 29872, 2608, 362, 1115, 426, 13, 9651, 376, 29881, 1853, 1115, 5785, 29892, 13, 9651, 376, 14029, 1115, 376, 262, 613, 13, 9651, 376, 25253, 1115, 7700, 29892, 13, 9651, 376, 348, 1169, 1115, 376, 29885, 613, 13, 9651, 376, 20698, 1115, 376, 3177, 613, 13, 9651, 376, 1514, 1115, 376, 22677, 7101, 2246, 12122, 11858, 362, 613, 13, 4706, 2981, 13, 4706, 376, 3332, 12122, 1649, 1655, 1022, 342, 29918, 29879, 417, 412, 1115, 426, 13, 9651, 376, 29881, 1853, 1115, 5785, 29892, 13, 9651, 376, 14029, 1115, 376, 262, 613, 13, 9651, 376, 25253, 1115, 7700, 29892, 13, 9651, 376, 348, 1169, 1115, 11663, 613, 13, 9651, 376, 20698, 1115, 376, 3177, 613, 13, 9651, 376, 1514, 1115, 376, 1576, 1886, 1022, 342, 334, 3204, 29131, 29930, 24968, 613, 13, 4706, 2981, 13, 1678, 500, 13, 13, 1678, 822, 4770, 2344, 12035, 13, 4706, 1583, 29892, 13, 4706, 6856, 29892, 13, 4706, 3407, 29918, 535, 29883, 485, 537, 29922, 29900, 29889, 29945, 29892, 13, 4706, 1375, 29918, 29881, 6038, 482, 29918, 6203, 29922, 29896, 29889, 29900, 29872, 29953, 29892, 13, 4706, 11858, 29918, 10568, 29922, 29900, 29889, 29900, 29892, 13, 4706, 766, 4838, 2133, 29918, 2848, 29922, 29900, 29889, 29900, 29892, 13, 268, 1125, 13, 4706, 9995, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 6856, 584, 390, 1901, 3195, 5756, 13, 9651, 319, 2982, 8205, 390, 1901, 3195, 5756, 29889, 13, 4706, 3407, 29918, 535, 29883, 485, 537, 584, 5785, 13, 9651, 450, 3407, 3022, 485, 537, 304, 671, 297, 278, 13944, 29889, 13, 4706, 1375, 29918, 29881, 6038, 482, 29918, 6203, 584, 5785, 313, 29885, 1068, 29906, 29936, 2322, 29871, 29896, 29889, 29872, 29953, 29897, 13, 9651, 450, 9212, 270, 6038, 482, 4038, 2038, 607, 1886, 1022, 2264, 16285, 526, 13, 9651, 12833, 29889, 13, 9651, 13109, 29879, 304, 29871, 29896, 29889, 29872, 29953, 286, 1068, 29906, 29892, 639, 399, 711, 375, 634, 394, 29889, 29871, 29906, 29900, 29900, 29953, 29889, 13, 4706, 11858, 29918, 10568, 584, 5785, 313, 29885, 29936, 2322, 29871, 29900, 1846, 13, 9651, 960, 1405, 29900, 1696, 7415, 263, 11408, 11858, 362, 1735, 4331, 304, 671, 304, 13, 9651, 766, 4838, 675, 278, 848, 313, 546, 399, 711, 375, 467, 960, 29871, 29900, 1696, 599, 7573, 526, 1304, 322, 13, 9651, 694, 766, 4838, 2133, 5930, 29889, 13, 4706, 766, 4838, 2133, 29918, 2848, 584, 5785, 313, 29885, 29936, 2322, 29871, 29900, 1846, 13, 9651, 960, 1405, 29900, 1696, 7415, 278, 3309, 7052, 975, 607, 304, 10768, 278, 28723, 448, 13, 9651, 474, 29889, 29872, 1696, 697, 1422, 1886, 1022, 2264, 2380, 995, 338, 12833, 1432, 13, 9651, 766, 4838, 2133, 29918, 2848, 29889, 960, 871, 697, 313, 272, 694, 29897, 3291, 526, 2198, 297, 263, 13, 9651, 10768, 29892, 372, 674, 367, 301, 3427, 287, 4208, 411, 278, 2446, 10768, 29889, 13, 9651, 960, 5225, 29892, 697, 995, 338, 9859, 304, 1269, 8242, 2943, 29889, 13, 4706, 9995, 13, 4706, 2428, 2141, 1649, 2344, 12035, 7720, 29897, 13, 13, 4706, 565, 6856, 29889, 271, 29918, 3177, 3366, 1731, 1649, 13556, 2147, 29918, 3177, 16862, 2311, 2804, 6856, 29889, 2311, 703, 3177, 29908, 1125, 13, 9651, 10191, 353, 313, 13, 18884, 376, 29909, 5782, 29899, 517, 29899, 20787, 4972, 8881, 756, 1063, 376, 13, 18884, 376, 3389, 373, 445, 6856, 29889, 450, 2982, 8205, 5849, 3815, 756, 451, 376, 13, 18884, 376, 369, 2164, 393, 2443, 1022, 2264, 29943, 4995, 338, 15878, 411, 376, 13, 18884, 376, 13134, 29899, 517, 29899, 20787, 3519, 29889, 3529, 1722, 263, 25492, 26246, 376, 13, 18884, 376, 517, 1369, 445, 1889, 1213, 13, 9651, 1723, 13, 9651, 12020, 2216, 1888, 2037, 287, 2392, 29898, 7645, 29897, 13, 13, 4706, 1583, 3032, 999, 3416, 353, 3407, 29918, 535, 29883, 485, 537, 13, 4706, 1583, 3032, 1195, 29918, 29881, 6038, 482, 353, 1375, 29918, 29881, 6038, 482, 29918, 6203, 13, 4706, 4974, 11858, 29918, 10568, 6736, 29871, 29900, 29889, 29900, 29892, 376, 29872, 2608, 29918, 10568, 1818, 367, 6736, 29871, 29900, 3850, 13, 4706, 1583, 3032, 29872, 2608, 29918, 10568, 353, 11858, 29918, 10568, 13, 4706, 1583, 3032, 2218, 4838, 2133, 353, 766, 4838, 2133, 29918, 2848, 13, 4706, 1583, 3032, 2039, 29876, 353, 1583, 3032, 7720, 29889, 1202, 29918, 3298, 359, 29898, 13, 9651, 376, 12719, 1649, 1655, 1022, 2264, 29918, 2248, 613, 472, 543, 3177, 613, 274, 2127, 495, 29922, 5574, 13, 4706, 1723, 13, 4706, 1583, 3032, 13168, 353, 1583, 3032, 7720, 29889, 2873, 703, 3177, 613, 26688, 29922, 11227, 29897, 13, 4706, 396, 445, 697, 4225, 23815, 565, 10597, 29918, 29872, 2608, 13, 4706, 1583, 3032, 29872, 2608, 353, 1583, 3032, 7720, 29889, 271, 29918, 3177, 3366, 3332, 12122, 1649, 29872, 2608, 362, 3108, 13, 13, 1678, 822, 8147, 29918, 1655, 1022, 2264, 267, 29898, 1311, 1125, 13, 4706, 9995, 4013, 338, 278, 1667, 1158, 29889, 8251, 372, 304, 8147, 1887, 1886, 1022, 2264, 13, 4706, 16285, 472, 599, 3291, 411, 270, 6038, 482, 10161, 7621, 1135, 13, 4706, 334, 1195, 29918, 29881, 6038, 482, 29918, 6203, 10521, 13, 13, 4706, 910, 376, 3389, 29908, 1158, 508, 2984, 635, 2125, 278, 1021, 3443, 731, 408, 13, 4706, 4944, 472, 13213, 362, 29889, 960, 896, 526, 4944, 29892, 896, 674, 5712, 13, 4706, 278, 5923, 1819, 515, 13213, 362, 29889, 13, 13, 4706, 21981, 1891, 1886, 1022, 2264, 310, 738, 2943, 1728, 263, 3342, 995, 338, 8967, 13, 4706, 408, 29871, 29900, 29889, 4525, 7573, 526, 884, 15659, 297, 278, 11105, 27387, 411, 13, 4706, 584, 9891, 18078, 29882, 6090, 417, 412, 29918, 13168, 1412, 13, 4706, 9995, 13, 4706, 1583, 3032, 13168, 29889, 5589, 29898, 5574, 29897, 13, 4706, 1583, 3032, 2039, 29876, 29889, 5589, 29898, 29900, 29889, 29900, 29897, 13, 13, 4706, 2143, 3416, 353, 1583, 3032, 999, 3416, 13, 4706, 1375, 29918, 29881, 6038, 482, 353, 1583, 3032, 1195, 29918, 29881, 6038, 482, 13, 4706, 11858, 29918, 10568, 353, 1583, 3032, 29872, 2608, 29918, 10568, 13, 4706, 766, 4838, 2133, 29918, 2848, 353, 1583, 3032, 2218, 4838, 2133, 13, 13, 4706, 701, 710, 29918, 2098, 353, 1583, 3032, 7720, 29889, 271, 29918, 3177, 3366, 1731, 1649, 786, 5461, 29918, 3177, 29918, 2098, 3108, 13, 4706, 396, 679, 385, 1409, 310, 871, 7573, 411, 319, 2038, 16897, 29901, 13, 4706, 2854, 29918, 29881, 710, 29918, 2098, 353, 313, 13, 9651, 701, 710, 29918, 2098, 29961, 13, 18884, 1583, 3032, 7720, 29889, 271, 29918, 3177, 3366, 29881, 6038, 482, 29918, 6203, 3108, 29961, 786, 710, 29918, 2098, 29962, 6736, 1375, 29918, 29881, 6038, 482, 13, 9651, 4514, 13, 4706, 1723, 29961, 1057, 29899, 29896, 29962, 13, 4706, 396, 4443, 11858, 29879, 526, 22688, 304, 367, 297, 1797, 29892, 8291, 1307, 1799, 263, 5445, 13, 4706, 396, 5687, 756, 1063, 1304, 29889, 13, 4706, 7573, 29918, 262, 2616, 1971, 630, 353, 1583, 3032, 7720, 29889, 3298, 359, 703, 3177, 613, 26688, 29922, 11227, 29897, 13, 4706, 396, 1286, 437, 1269, 3119, 8242, 297, 2507, 13, 4706, 396, 679, 278, 2343, 310, 278, 937, 313, 5426, 342, 14366, 8242, 29901, 13, 4706, 363, 270, 710, 29918, 2098, 29918, 2248, 297, 3464, 29898, 3084, 29918, 29881, 710, 29918, 2098, 29889, 2311, 1125, 13, 9651, 445, 29918, 305, 29918, 3332, 29918, 3177, 353, 2854, 29918, 29881, 710, 29918, 2098, 29961, 29881, 710, 29918, 2098, 29918, 2248, 29962, 29871, 396, 2246, 2943, 13, 9651, 565, 451, 7573, 29918, 262, 2616, 1971, 630, 29961, 1366, 29918, 305, 29918, 3332, 29918, 3177, 5387, 13, 18884, 7573, 29918, 262, 2616, 1971, 630, 29961, 1366, 29918, 305, 29918, 3332, 29918, 3177, 29962, 353, 5852, 13, 18884, 7573, 29918, 262, 29918, 12719, 353, 518, 1366, 29918, 305, 29918, 3332, 29918, 3177, 29962, 13, 18884, 6584, 499, 6490, 29918, 3177, 353, 445, 29918, 305, 29918, 3332, 29918, 3177, 13, 18884, 1857, 29918, 3177, 29918, 262, 2616, 1971, 630, 353, 7700, 13, 18884, 1550, 451, 1857, 29918, 3177, 29918, 262, 2616, 1971, 630, 29901, 13, 462, 1678, 2446, 29918, 3177, 353, 1583, 3032, 7720, 29889, 271, 29918, 3177, 3366, 1731, 1649, 13556, 2147, 29918, 3177, 3108, 29961, 13, 462, 4706, 6584, 499, 6490, 29918, 3177, 13, 462, 1678, 4514, 13, 462, 1678, 565, 2446, 29918, 3177, 1275, 6584, 499, 6490, 29918, 3177, 29901, 29871, 396, 1095, 310, 4972, 2224, 13, 462, 4706, 2867, 13, 462, 1678, 7573, 29918, 262, 29918, 12719, 29889, 4397, 29898, 4622, 29918, 3177, 29897, 13, 462, 1678, 1857, 29918, 3177, 29918, 262, 2616, 1971, 630, 353, 7573, 29918, 262, 2616, 1971, 630, 29961, 4622, 29918, 3177, 29962, 13, 462, 1678, 396, 6228, 445, 338, 263, 315, 4590, 29979, 1015, 29892, 577, 591, 29915, 276, 3889, 304, 2767, 278, 1409, 13, 462, 1678, 7573, 29918, 262, 2616, 1971, 630, 29961, 4622, 29918, 3177, 29962, 353, 5852, 13, 462, 1678, 6584, 499, 6490, 29918, 3177, 353, 2446, 29918, 3177, 13, 18884, 396, 491, 1244, 29892, 591, 505, 263, 2989, 29892, 5412, 6159, 297, 7573, 29918, 262, 29918, 12719, 13, 18884, 396, 372, 11039, 1078, 263, 2323, 29892, 7929, 2943, 472, 278, 5224, 1095, 13, 18884, 396, 2567, 29892, 565, 445, 10768, 1472, 3307, 29973, 13, 18884, 565, 11858, 29918, 10568, 29901, 13, 462, 1678, 2246, 29918, 29872, 2608, 353, 1583, 3032, 29872, 2608, 29961, 18010, 29918, 262, 29918, 12719, 29961, 29900, 5262, 13, 462, 1678, 2967, 29918, 29872, 2608, 353, 1583, 3032, 29872, 2608, 29961, 18010, 29918, 262, 29918, 12719, 14352, 29896, 5262, 13, 462, 1678, 396, 664, 701, 278, 8242, 515, 278, 2967, 304, 1207, 716, 1006, 29886, 282, 1372, 13, 462, 1678, 1006, 29886, 29918, 415, 29918, 29872, 2608, 29879, 353, 7442, 29889, 279, 927, 29898, 3188, 29918, 29872, 2608, 29892, 2246, 29918, 29872, 2608, 29892, 11858, 29918, 10568, 29897, 13, 462, 1678, 565, 1006, 29886, 29918, 415, 29918, 29872, 2608, 29879, 29889, 2311, 5277, 29871, 29896, 29901, 13, 462, 4706, 396, 529, 29896, 4331, 29936, 289, 737, 373, 445, 3353, 10768, 13, 462, 4706, 2867, 13, 462, 1678, 396, 1286, 591, 508, 12558, 16467, 1101, 278, 1879, 290, 26423, 400, 8789, 13, 462, 1678, 396, 5687, 29901, 13, 462, 1678, 521, 29918, 18010, 353, 7442, 29889, 2378, 29898, 18010, 29918, 262, 29918, 12719, 29897, 13, 462, 1678, 396, 6228, 445, 338, 2246, 29899, 517, 29899, 8968, 13, 462, 1678, 521, 29918, 29909, 353, 1583, 3032, 7720, 29889, 271, 29918, 3177, 3366, 29881, 6038, 482, 29918, 6203, 3108, 29961, 305, 29918, 18010, 29962, 13, 462, 1678, 521, 29918, 29881, 2879, 353, 1583, 29889, 12719, 29918, 5721, 2925, 29918, 3204, 5461, 29898, 305, 29918, 18010, 29897, 13, 462, 1678, 521, 29918, 29903, 353, 1583, 29889, 1639, 3733, 403, 29918, 29879, 4757, 267, 29918, 2541, 29918, 10568, 29898, 13, 462, 4706, 521, 29918, 18010, 29892, 521, 29918, 29881, 2879, 29892, 1006, 29886, 29918, 415, 29918, 29872, 2608, 29879, 13, 462, 1678, 1723, 13, 18884, 1683, 29901, 13, 462, 1678, 396, 599, 278, 7573, 29936, 1568, 6775, 408, 2988, 664, 13, 462, 1678, 521, 29918, 18010, 353, 7442, 29889, 2378, 29898, 18010, 29918, 262, 29918, 12719, 29897, 13, 462, 1678, 521, 29918, 29881, 2879, 353, 1583, 29889, 12719, 29918, 5721, 2925, 29918, 3204, 5461, 29898, 305, 29918, 18010, 29897, 13, 462, 1678, 521, 29918, 29909, 353, 1583, 3032, 7720, 29889, 271, 29918, 3177, 3366, 29881, 6038, 482, 29918, 6203, 3108, 29961, 305, 29918, 18010, 29962, 13, 462, 1678, 521, 29918, 29903, 353, 1583, 3032, 7720, 29889, 271, 29918, 3177, 3366, 3332, 12122, 1649, 1655, 1022, 342, 29918, 29879, 417, 412, 3108, 29961, 305, 29918, 18010, 29962, 13, 462, 1678, 4974, 7442, 29889, 497, 29898, 305, 29918, 29903, 6736, 29871, 29900, 29889, 29900, 29897, 13, 18884, 396, 565, 591, 29915, 276, 2599, 18652, 766, 4838, 2133, 29892, 437, 372, 1244, 29901, 13, 18884, 565, 766, 4838, 2133, 29918, 2848, 29901, 13, 462, 1678, 521, 29918, 2039, 29876, 353, 1583, 29889, 28667, 29918, 2039, 29876, 29918, 2218, 4838, 1891, 29898, 13, 462, 4706, 521, 29918, 29881, 2879, 29892, 521, 29918, 29909, 29892, 521, 29918, 29903, 29892, 2143, 3416, 29892, 766, 4838, 2133, 29918, 2848, 13, 462, 1678, 1723, 13, 18884, 1683, 29901, 29871, 396, 451, 766, 4838, 1891, 13, 462, 1678, 396, 884, 3060, 3262, 1283, 278, 2186, 2943, 29892, 408, 2038, 13, 462, 1678, 1480, 29918, 29909, 353, 7442, 29889, 1188, 29896, 29900, 29898, 305, 29918, 29909, 7503, 29899, 29896, 2314, 13, 462, 1678, 1480, 29918, 29903, 353, 7442, 29889, 1188, 29896, 29900, 29898, 305, 29918, 29903, 7503, 29899, 29896, 2314, 13, 462, 1678, 396, 591, 29915, 276, 19998, 13089, 1218, 302, 550, 1244, 565, 317, 14065, 29900, 13, 462, 1678, 1480, 29918, 2039, 29876, 353, 1480, 29918, 29903, 718, 2143, 3416, 334, 1480, 29918, 29909, 13, 462, 1678, 521, 29918, 2039, 29876, 353, 29871, 29896, 29900, 29889, 29900, 3579, 1480, 29918, 2039, 29876, 13, 18884, 396, 4078, 278, 6089, 964, 278, 1667, 7049, 29901, 13, 18884, 4974, 7442, 29889, 497, 29898, 1311, 3032, 13168, 29961, 305, 29918, 18010, 7503, 29899, 29896, 24960, 13, 18884, 396, 9550, 2943, 4947, 17151, 2168, 1283, 856, 13, 18884, 1583, 3032, 2039, 29876, 29961, 305, 29918, 18010, 7503, 29899, 29896, 5262, 353, 521, 29918, 2039, 29876, 13, 18884, 1583, 3032, 13168, 29961, 305, 29918, 18010, 29962, 353, 7700, 13, 4706, 396, 1286, 263, 2186, 7901, 1022, 304, 3349, 738, 7580, 413, 16586, 1819, 29901, 13, 4706, 1583, 3032, 13168, 29961, 1311, 3032, 2039, 29876, 1275, 448, 29896, 29889, 29900, 29962, 353, 5852, 13, 4706, 1583, 3032, 2039, 29876, 29961, 1311, 3032, 2039, 29876, 1275, 448, 29896, 29889, 29900, 29962, 353, 29871, 29900, 29889, 29900, 13, 13, 1678, 822, 8242, 29918, 5721, 2925, 29918, 3204, 5461, 29898, 1311, 29892, 521, 29918, 18010, 1125, 13, 4706, 9995, 27065, 1078, 24610, 1623, 5461, 515, 2246, 2943, 310, 263, 3342, 4972, 2084, 29889, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 521, 29918, 18010, 584, 1409, 310, 938, 29879, 13, 9651, 450, 7573, 3412, 263, 2323, 3342, 4972, 2224, 29892, 6257, 701, 5461, 29889, 13, 13, 4706, 16969, 13, 4706, 448, 22158, 13, 4706, 521, 29918, 29881, 2879, 584, 1409, 310, 5685, 1446, 13, 9651, 6652, 2925, 1623, 5461, 515, 2246, 2943, 310, 521, 29918, 18010, 29889, 13, 13, 4706, 1222, 9422, 13, 4706, 448, 26589, 13, 4706, 8653, 1053, 12655, 408, 7442, 13, 4706, 8653, 515, 2982, 8205, 1053, 390, 1901, 3195, 5756, 13, 4706, 8653, 515, 2982, 8205, 29889, 14036, 1053, 22787, 7504, 398, 9183, 13, 4706, 8653, 286, 29887, 353, 390, 1901, 3195, 5756, 3552, 29946, 29892, 29945, 511, 921, 29891, 29918, 1028, 9390, 7607, 29896, 29900, 1696, 29871, 29945, 29889, 876, 13, 4706, 8653, 363, 7573, 297, 313, 29885, 29887, 29889, 18010, 29918, 271, 29918, 1266, 29918, 12864, 29892, 286, 29887, 29889, 18010, 29918, 271, 29918, 8968, 29918, 12864, 29892, 13, 4706, 2023, 1669, 286, 29887, 29889, 18010, 29918, 271, 29918, 3332, 29918, 12864, 1125, 13, 4706, 2023, 268, 286, 29887, 29889, 4882, 29918, 271, 29918, 3177, 29961, 18010, 29962, 353, 286, 29887, 29889, 5371, 29918, 6632, 2287, 29918, 3235, 29918, 29907, 3927, 1660, 29928, 13, 4706, 8653, 286, 29887, 29889, 4882, 29918, 271, 29918, 3177, 8999, 29953, 29892, 29871, 29896, 29906, 29892, 29871, 29896, 29941, 29892, 29871, 29896, 29946, 5262, 353, 286, 29887, 29889, 5371, 29918, 6632, 2287, 29918, 3235, 29918, 29907, 3927, 1660, 29928, 13, 4706, 8653, 903, 353, 286, 29887, 29889, 1202, 29918, 2671, 703, 3332, 12122, 1649, 29872, 2608, 362, 613, 286, 29887, 29889, 3177, 29918, 29916, 29892, 472, 543, 3177, 1159, 13, 4706, 8653, 1424, 353, 22787, 7504, 398, 9183, 29898, 29885, 29887, 29892, 4972, 29918, 11851, 272, 2433, 29928, 29947, 1495, 13, 4706, 8653, 18668, 353, 2443, 1022, 2264, 29943, 4995, 29898, 29885, 29887, 29897, 13, 4706, 8653, 903, 353, 1424, 29889, 3389, 29918, 650, 29918, 10568, 580, 13, 4706, 8653, 521, 29918, 18010, 353, 7442, 29889, 2378, 4197, 29947, 29892, 29871, 29955, 29892, 29871, 29896, 29896, 29892, 29871, 29896, 29900, 2314, 13, 4706, 8653, 18668, 29889, 12719, 29918, 5721, 2925, 29918, 3204, 5461, 29898, 305, 29918, 18010, 29897, 13, 4706, 1409, 4197, 259, 29900, 29889, 4706, 1919, 259, 29896, 29900, 29889, 4706, 1919, 259, 29906, 29896, 29889, 29896, 29947, 29900, 29941, 29941, 29929, 29947, 29929, 29892, 259, 29941, 29896, 29889, 29896, 29947, 29900, 29941, 29941, 29929, 29947, 29929, 2314, 13, 4706, 9995, 13, 4706, 521, 29918, 4965, 353, 1583, 3032, 7720, 29889, 271, 29918, 3177, 3366, 1731, 1649, 2324, 29918, 517, 29918, 13556, 2147, 29918, 3177, 3108, 29961, 305, 29918, 18010, 29962, 13, 4706, 521, 29918, 29881, 2879, 353, 7442, 29889, 6310, 29918, 4561, 29898, 305, 29918, 18010, 29892, 26688, 29922, 7411, 29897, 13, 4706, 396, 1320, 29879, 515, 521, 2343, 29892, 6058, 270, 6038, 482, 16429, 13, 4706, 521, 29918, 29881, 2879, 29961, 29900, 29962, 353, 29871, 29900, 29889, 29900, 13, 4706, 7442, 29889, 29883, 398, 2083, 29898, 1311, 3032, 7720, 29889, 2848, 29918, 974, 29918, 29881, 29947, 29961, 305, 29918, 4965, 7503, 29899, 29896, 20526, 714, 29922, 305, 29918, 29881, 2879, 29961, 29896, 29901, 2314, 13, 4706, 736, 521, 29918, 29881, 2879, 13, 13, 1678, 822, 20064, 403, 29918, 29879, 4757, 267, 29918, 2541, 29918, 10568, 29898, 1311, 29892, 521, 29918, 18010, 29892, 521, 29918, 29881, 2879, 29892, 1006, 29886, 29918, 415, 29918, 29872, 2608, 29879, 1125, 13, 4706, 9995, 29924, 2547, 269, 4757, 267, 304, 7573, 29892, 20064, 1218, 411, 292, 3342, 11408, 13, 4706, 18747, 29889, 13, 13, 4706, 910, 4477, 1879, 290, 26423, 400, 8789, 29915, 766, 4838, 2133, 3519, 29889, 739, 338, 13674, 263, 13, 4706, 1623, 14800, 2910, 310, 278, 269, 4757, 267, 29889, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 521, 29918, 18010, 584, 1409, 310, 938, 29879, 13, 9651, 450, 7573, 3412, 263, 2323, 3342, 4972, 2224, 29892, 6257, 701, 5461, 29889, 13, 4706, 521, 29918, 29881, 2879, 584, 1409, 310, 5685, 1446, 13, 9651, 6652, 2925, 1623, 5461, 515, 2246, 2943, 310, 521, 29918, 18010, 29889, 13, 4706, 1006, 29886, 29918, 415, 29918, 29872, 2608, 29879, 584, 1409, 310, 5685, 1446, 13, 9651, 382, 2608, 800, 472, 278, 766, 4838, 5281, 3291, 3412, 278, 8722, 29892, 297, 1797, 13, 9651, 310, 10231, 11858, 362, 29889, 13, 13, 4706, 16969, 13, 4706, 448, 22158, 13, 4706, 521, 29918, 29903, 584, 1409, 310, 5685, 1446, 13, 9651, 4124, 3733, 630, 269, 4757, 267, 472, 1269, 2943, 297, 278, 4972, 2084, 313, 21936, 6374, 467, 13, 13, 4706, 1222, 9422, 13, 4706, 448, 26589, 13, 4706, 8653, 1053, 12655, 408, 7442, 13, 4706, 8653, 515, 2982, 8205, 1053, 390, 1901, 3195, 5756, 13, 4706, 8653, 515, 2982, 8205, 29889, 14036, 1053, 22787, 7504, 398, 9183, 13, 4706, 8653, 286, 29887, 353, 390, 1901, 3195, 5756, 3552, 29941, 29892, 29896, 29900, 511, 921, 29891, 29918, 1028, 9390, 7607, 29896, 29900, 1696, 29871, 29945, 29889, 876, 13, 4706, 8653, 363, 7573, 297, 313, 29885, 29887, 29889, 18010, 29918, 271, 29918, 1266, 29918, 12864, 29892, 286, 29887, 29889, 18010, 29918, 271, 29918, 8968, 29918, 12864, 29892, 13, 4706, 2023, 1669, 286, 29887, 29889, 18010, 29918, 271, 29918, 3332, 29918, 12864, 1125, 13, 4706, 2023, 268, 286, 29887, 29889, 4882, 29918, 271, 29918, 3177, 29961, 18010, 29962, 353, 286, 29887, 29889, 5371, 29918, 6632, 2287, 29918, 3235, 29918, 29907, 3927, 1660, 29928, 13, 4706, 8653, 903, 353, 286, 29887, 29889, 1202, 29918, 2671, 703, 3332, 12122, 1649, 29872, 2608, 362, 613, 286, 29887, 29889, 3177, 29918, 29916, 1068, 29896, 29889, 29896, 29892, 472, 543, 3177, 1159, 13, 4706, 8653, 1424, 353, 22787, 7504, 398, 9183, 29898, 29885, 29887, 29892, 4972, 29918, 11851, 272, 2433, 29928, 29947, 1495, 13, 4706, 8653, 18668, 353, 2443, 1022, 2264, 29943, 4995, 29898, 29885, 29887, 29897, 13, 4706, 8653, 903, 353, 1424, 29889, 3389, 29918, 650, 29918, 10568, 580, 13, 4706, 8653, 521, 29918, 18010, 353, 7442, 29889, 279, 927, 29898, 29896, 29947, 29892, 29871, 29929, 29892, 448, 29896, 29897, 13, 4706, 8653, 521, 29918, 29881, 2879, 353, 18668, 29889, 12719, 29918, 5721, 2925, 29918, 3204, 5461, 29898, 305, 29918, 18010, 29897, 13, 4706, 8653, 1006, 29886, 29918, 415, 29918, 29872, 2608, 29879, 353, 7442, 29889, 2378, 4197, 29900, 1696, 29871, 29941, 29900, 1696, 29871, 29953, 29900, 1696, 29871, 29929, 29900, 1696, 29871, 29896, 29906, 29900, 29889, 2314, 13, 4706, 8653, 18668, 29889, 1639, 3733, 403, 29918, 29879, 4757, 267, 29918, 2541, 29918, 10568, 29898, 305, 29918, 18010, 29892, 521, 29918, 29881, 2879, 29892, 13, 4706, 2023, 462, 462, 1006, 29886, 29918, 415, 29918, 29872, 2608, 29879, 29897, 13, 4706, 1409, 4197, 29871, 29896, 29889, 29953, 29955, 29929, 29955, 29900, 29906, 29900, 29945, 29892, 259, 29896, 29889, 29953, 29955, 29929, 29955, 29900, 29906, 29900, 29945, 29892, 259, 29896, 29889, 29953, 29955, 29929, 29955, 29900, 29906, 29900, 29945, 29892, 259, 29896, 29889, 29953, 29945, 29896, 29906, 29929, 29906, 29929, 29946, 29892, 259, 29896, 29889, 29953, 29906, 29896, 29896, 29945, 29941, 29941, 29953, 29892, 13, 308, 29896, 29889, 29945, 29947, 29896, 29896, 29929, 29945, 29896, 1919, 259, 29896, 29889, 29945, 29941, 29896, 29945, 29955, 29945, 29906, 29896, 29892, 259, 29896, 29889, 29946, 29946, 29906, 29946, 29900, 29896, 29947, 29955, 29892, 259, 29896, 29889, 29941, 29953, 29946, 29946, 29906, 29906, 29906, 29955, 2314, 13, 4706, 8653, 286, 29887, 29889, 271, 29918, 3177, 1839, 3332, 12122, 1649, 1655, 1022, 342, 29918, 29879, 417, 412, 2033, 29961, 305, 29918, 18010, 29962, 13, 4706, 1409, 4197, 29871, 29896, 29889, 29953, 29929, 29941, 29947, 29941, 29900, 29900, 29896, 29892, 259, 29896, 29889, 29953, 29953, 29929, 29955, 29906, 29953, 29955, 29955, 29892, 259, 29896, 29889, 29953, 29946, 29906, 29900, 29900, 29953, 29929, 29946, 29892, 259, 29896, 29889, 29953, 29900, 29929, 29906, 29947, 29945, 29929, 29947, 29892, 259, 29896, 29889, 29945, 29953, 29929, 29896, 29945, 29946, 29955, 29906, 29892, 13, 308, 29896, 29889, 29945, 29896, 29953, 29955, 29947, 29896, 29955, 29947, 29892, 259, 29896, 29889, 29946, 29941, 29929, 29953, 29946, 29900, 29906, 29947, 29892, 259, 29896, 29889, 29906, 29945, 29947, 29929, 29906, 29945, 29946, 29896, 29892, 259, 29900, 29889, 308, 2314, 13, 4706, 8653, 286, 29887, 29889, 271, 29918, 3177, 1839, 3332, 12122, 1649, 29872, 2608, 362, 2033, 7503, 29962, 353, 286, 29887, 29889, 3177, 29918, 29916, 13, 4706, 8653, 1006, 29886, 29918, 415, 29918, 29872, 2608, 29879, 353, 7442, 29889, 2378, 4197, 29900, 1696, 29871, 29906, 29945, 1696, 29871, 29945, 29900, 1696, 29871, 29955, 29945, 1696, 29871, 29947, 29900, 29889, 2314, 13, 4706, 8653, 18668, 29889, 1639, 3733, 403, 29918, 29879, 4757, 267, 29918, 2541, 29918, 10568, 29898, 305, 29918, 18010, 29892, 521, 29918, 29881, 2879, 29892, 13, 4706, 2023, 462, 462, 1006, 29886, 29918, 415, 29918, 29872, 2608, 29879, 29897, 13, 4706, 1409, 4197, 29871, 29896, 1696, 259, 29896, 1696, 259, 29896, 1696, 259, 29896, 1696, 259, 29896, 1696, 259, 29896, 1696, 259, 29896, 1696, 259, 29896, 1696, 259, 29896, 29889, 2314, 13, 4706, 9995, 13, 4706, 521, 29918, 29920, 353, 1583, 3032, 7720, 29889, 271, 29918, 3177, 3366, 3332, 12122, 1649, 29872, 2608, 362, 3108, 29961, 305, 29918, 18010, 29962, 13, 4706, 4974, 313, 13, 9651, 521, 29918, 29920, 29961, 29900, 29962, 6736, 1006, 29886, 29918, 415, 29918, 29872, 2608, 29879, 14352, 29896, 29962, 13, 4706, 10353, 376, 16382, 342, 1006, 29886, 29918, 415, 29918, 29872, 2608, 1818, 367, 2400, 2246, 8242, 2943, 29908, 13, 4706, 1006, 29886, 29918, 415, 29918, 29916, 353, 7442, 29889, 1639, 29886, 29898, 1639, 29886, 29918, 415, 29918, 29872, 2608, 29879, 29892, 521, 29918, 29920, 29961, 1057, 29899, 29896, 1402, 521, 29918, 29881, 2879, 29961, 1057, 29899, 29896, 2314, 13, 4706, 1006, 29886, 29918, 415, 29918, 29903, 353, 7442, 29889, 6310, 29918, 4561, 29898, 1639, 29886, 29918, 415, 29918, 29872, 2608, 29879, 29897, 13, 4706, 396, 1286, 263, 1623, 14800, 2910, 310, 278, 269, 4757, 267, 11480, 278, 7573, 13, 4706, 396, 269, 4757, 267, 526, 3342, 6374, 13, 4706, 503, 29918, 12765, 353, 1006, 29886, 29918, 415, 29918, 29872, 2608, 29879, 7503, 29899, 29896, 29962, 448, 1006, 29886, 29918, 415, 29918, 29872, 2608, 29879, 29961, 29896, 17531, 13, 4706, 921, 29918, 12765, 353, 1006, 29886, 29918, 415, 29918, 29916, 29961, 29896, 17531, 448, 1006, 29886, 29918, 415, 29918, 29916, 7503, 29899, 29896, 29962, 13, 4706, 7442, 29889, 4563, 680, 29898, 29920, 29918, 12765, 29892, 921, 29918, 12765, 29892, 714, 29922, 1639, 29886, 29918, 415, 29918, 29903, 7503, 29899, 29896, 2314, 13, 4706, 1006, 29886, 29918, 415, 29918, 29903, 14352, 29896, 29962, 353, 1006, 29886, 29918, 415, 29918, 29903, 14352, 29906, 29962, 13, 4706, 396, 7315, 317, 1250, 11480, 7573, 13, 4706, 521, 29918, 29903, 353, 7442, 29889, 1639, 29886, 29898, 305, 29918, 29920, 29892, 1006, 29886, 29918, 415, 29918, 29872, 2608, 29879, 29892, 1006, 29886, 29918, 415, 29918, 29903, 29897, 13, 13, 4706, 736, 521, 29918, 29903, 13, 13, 1678, 822, 22235, 29918, 2039, 29876, 29918, 2218, 4838, 1891, 29898, 13, 4706, 1583, 29892, 521, 29918, 29881, 2879, 29892, 521, 29918, 29909, 29892, 521, 29918, 29903, 29892, 2143, 29918, 3416, 29892, 766, 4838, 2133, 29918, 2848, 13, 268, 1125, 13, 4706, 9995, 27065, 403, 4226, 1891, 1886, 1022, 2264, 2380, 373, 3342, 8242, 24611, 29889, 13, 13, 4706, 7569, 10768, 1818, 505, 472, 3203, 29871, 29906, 7573, 3412, 372, 29889, 960, 451, 29892, 24611, 13, 4706, 674, 367, 6336, 19412, 304, 6176, 445, 29889, 450, 8242, 674, 367, 13, 4706, 10768, 287, 6257, 472, 278, 334, 3204, 5461, 29930, 1095, 29889, 13, 13, 4706, 405, 29933, 29901, 450, 2186, 2943, 297, 278, 8242, 947, 451, 7150, 385, 2380, 29892, 408, 372, 13, 4706, 2845, 14393, 304, 263, 5520, 29892, 5923, 4972, 2224, 29892, 470, 372, 338, 263, 10452, 13, 4706, 2943, 411, 317, 353, 29871, 29900, 29889, 2448, 2121, 1736, 29889, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 521, 29918, 29881, 2879, 584, 1409, 310, 5685, 1446, 13, 9651, 6652, 2925, 1623, 5461, 515, 2246, 2943, 310, 263, 2323, 4840, 2224, 29889, 13, 4706, 521, 29918, 29909, 584, 1409, 310, 5685, 1446, 13, 9651, 360, 6038, 482, 10161, 472, 1269, 2943, 297, 278, 4972, 2084, 29889, 13, 4706, 521, 29918, 29903, 584, 1409, 310, 5685, 1446, 13, 9651, 16275, 412, 472, 1269, 2943, 297, 278, 4972, 2084, 313, 12119, 408, 6374, 467, 13, 4706, 2143, 29918, 3416, 584, 5785, 13, 9651, 450, 3407, 3022, 485, 537, 29936, 1818, 367, 6374, 29889, 13, 4706, 766, 4838, 2133, 29918, 2848, 584, 5785, 313, 29885, 29897, 13, 9651, 450, 4840, 3538, 3309, 310, 1269, 10768, 29889, 13, 13, 4706, 16969, 13, 4706, 448, 22158, 13, 4706, 521, 29918, 2039, 29876, 584, 1409, 310, 5685, 1446, 13, 9651, 450, 4226, 1891, 1886, 1022, 2264, 2380, 472, 1269, 2943, 297, 278, 4972, 2084, 29892, 13, 9651, 8528, 4741, 7982, 6093, 17900, 1254, 29889, 313, 29875, 29889, 29872, 1696, 3309, 338, 313, 305, 29918, 29881, 2879, 29889, 2311, 448, 29871, 29896, 8106, 2630, 1041, 13, 9651, 674, 367, 278, 1021, 2629, 1269, 3342, 10768, 29889, 13, 13, 4706, 1222, 9422, 13, 4706, 448, 26589, 13, 4706, 8653, 1053, 12655, 408, 7442, 13, 4706, 8653, 515, 2982, 8205, 1053, 390, 1901, 3195, 5756, 13, 4706, 8653, 515, 2982, 8205, 29889, 14036, 1053, 22787, 7504, 398, 9183, 13, 4706, 8653, 515, 2982, 8205, 29889, 14036, 1053, 2443, 1022, 2264, 29943, 4995, 13, 4706, 8653, 286, 29887, 353, 390, 1901, 3195, 5756, 3552, 29941, 29892, 29896, 29900, 511, 921, 29891, 29918, 1028, 9390, 7607, 29896, 29900, 1696, 29871, 29945, 29889, 876, 13, 4706, 8653, 363, 7573, 297, 313, 29885, 29887, 29889, 18010, 29918, 271, 29918, 1266, 29918, 12864, 29892, 286, 29887, 29889, 18010, 29918, 271, 29918, 8968, 29918, 12864, 29892, 13, 4706, 2023, 1669, 286, 29887, 29889, 18010, 29918, 271, 29918, 3332, 29918, 12864, 1125, 13, 4706, 2023, 268, 286, 29887, 29889, 4882, 29918, 271, 29918, 3177, 29961, 18010, 29962, 353, 286, 29887, 29889, 5371, 29918, 6632, 2287, 29918, 3235, 29918, 29907, 3927, 1660, 29928, 13, 4706, 8653, 903, 353, 286, 29887, 29889, 1202, 29918, 2671, 703, 3332, 12122, 1649, 29872, 2608, 362, 613, 286, 29887, 29889, 3177, 29918, 29916, 29892, 472, 543, 3177, 1159, 13, 4706, 8653, 1424, 353, 22787, 7504, 398, 9183, 29898, 29885, 29887, 29892, 4972, 29918, 11851, 272, 2433, 29928, 29947, 1495, 13, 4706, 8653, 18668, 353, 2443, 1022, 2264, 29943, 4995, 29898, 29885, 29887, 29897, 13, 4706, 8653, 903, 353, 1424, 29889, 3389, 29918, 650, 29918, 10568, 580, 13, 4706, 8653, 521, 29918, 18010, 353, 7442, 29889, 279, 927, 29898, 29896, 29947, 29892, 29871, 29929, 29892, 448, 29896, 29897, 13, 4706, 8653, 521, 29918, 29881, 2879, 353, 18668, 29889, 12719, 29918, 5721, 2925, 29918, 3204, 5461, 29898, 305, 29918, 18010, 29897, 13, 4706, 8653, 521, 29918, 29909, 353, 286, 29887, 29889, 271, 29918, 3177, 1839, 29881, 6038, 482, 29918, 6203, 2033, 29961, 305, 29918, 18010, 29962, 13, 4706, 8653, 521, 29918, 29903, 353, 286, 29887, 29889, 271, 29918, 3177, 1839, 3332, 12122, 1649, 1655, 1022, 342, 29918, 29879, 417, 412, 2033, 29961, 305, 29918, 18010, 29962, 13, 13, 4706, 8653, 413, 16586, 29918, 29906, 29945, 353, 18668, 29889, 28667, 29918, 2039, 29876, 29918, 2218, 4838, 1891, 29898, 305, 29918, 29881, 2879, 29892, 521, 29918, 29909, 29892, 521, 29918, 29903, 29892, 29871, 29900, 29889, 29945, 29892, 29871, 29906, 29945, 1846, 13, 4706, 8653, 413, 16586, 29918, 29906, 29945, 29889, 2311, 1275, 521, 29918, 29881, 2879, 29889, 2311, 448, 29871, 29896, 13, 4706, 5852, 13, 4706, 8653, 413, 16586, 29918, 29906, 29945, 13, 4706, 1409, 4197, 448, 29896, 29889, 4706, 1919, 259, 29896, 29896, 29889, 29900, 29953, 29953, 29947, 29896, 29929, 29906, 1919, 259, 29896, 29896, 29889, 29900, 29953, 29953, 29947, 29896, 29929, 29906, 1919, 259, 29896, 29945, 29889, 29955, 29900, 29946, 29896, 29955, 29947, 29900, 29906, 29892, 13, 462, 29896, 29945, 29889, 29955, 29900, 29946, 29896, 29955, 29947, 29900, 29906, 29892, 259, 29896, 29945, 29889, 29955, 29900, 29946, 29896, 29955, 29947, 29900, 29906, 29892, 259, 29896, 29929, 29889, 29941, 29946, 29941, 29941, 29953, 29946, 29906, 1919, 259, 29896, 29929, 29889, 29941, 29946, 29941, 29941, 29953, 29946, 29906, 29871, 2314, 13, 13, 4706, 8653, 413, 16586, 29918, 29896, 29900, 353, 18668, 29889, 28667, 29918, 2039, 29876, 29918, 2218, 4838, 1891, 29898, 305, 29918, 29881, 2879, 29892, 521, 29918, 29909, 29892, 521, 29918, 29903, 29892, 29871, 29900, 29889, 29945, 29892, 29871, 29896, 29900, 1846, 13, 4706, 8653, 413, 16586, 29918, 29896, 29900, 13, 4706, 1409, 4197, 259, 29947, 29889, 29946, 29900, 29947, 29929, 29953, 29946, 29896, 29945, 29892, 1678, 29947, 29889, 29946, 29900, 29947, 29929, 29953, 29946, 29896, 29945, 29892, 259, 29896, 29941, 29889, 29896, 29953, 29900, 29955, 29946, 29900, 29896, 29941, 29892, 259, 29896, 29941, 29889, 29896, 29953, 29900, 29955, 29946, 29900, 29896, 29941, 29892, 13, 462, 29896, 29953, 29889, 29945, 29946, 29947, 29955, 29945, 29946, 29953, 1919, 259, 29896, 29953, 29889, 29945, 29946, 29947, 29955, 29945, 29946, 29953, 1919, 259, 29896, 29929, 29889, 29941, 29946, 29941, 29941, 29953, 29946, 29906, 1919, 259, 29896, 29929, 29889, 29941, 29946, 29941, 29941, 29953, 29946, 29906, 29871, 2314, 13, 13, 4706, 8653, 521, 29918, 2039, 29876, 29918, 957, 2218, 4838, 1891, 353, 18668, 29889, 28667, 29918, 2039, 29876, 29918, 2218, 4838, 1891, 29898, 13, 4706, 2023, 268, 521, 29918, 29881, 2879, 29892, 521, 29918, 29909, 29892, 521, 29918, 29903, 29892, 29871, 29900, 29889, 29945, 29892, 29871, 29896, 29900, 1846, 13, 4706, 8653, 7442, 29889, 497, 5358, 29898, 305, 29918, 2039, 29876, 29918, 957, 2218, 4838, 1891, 29892, 413, 16586, 29918, 29896, 29900, 29897, 13, 4706, 5852, 13, 4706, 9995, 13, 4706, 521, 29918, 2039, 29876, 353, 7442, 29889, 6310, 29918, 4561, 29898, 305, 29918, 29909, 29897, 13, 4706, 396, 817, 304, 3349, 278, 9949, 310, 278, 2186, 2943, 297, 278, 2377, 29892, 13, 4706, 396, 408, 372, 9432, 29879, 2845, 278, 7636, 310, 278, 6856, 313, 29903, 29922, 29900, 29897, 470, 263, 1298, 13, 4706, 396, 1156, 263, 18669, 29884, 663, 448, 8151, 278, 29871, 29900, 29889, 29900, 29900, 29900, 29900, 29900, 29896, 13, 4706, 2377, 29918, 1975, 353, 7442, 29889, 279, 927, 29898, 305, 29918, 29881, 2879, 14352, 29896, 29962, 448, 29871, 29900, 29889, 29900, 29900, 29900, 29900, 29900, 29896, 29892, 29871, 29900, 29889, 29900, 29892, 448, 2218, 4838, 2133, 29918, 2848, 9601, 1057, 29899, 29896, 29962, 13, 4706, 396, 6228, 18139, 701, 515, 29871, 29900, 29892, 541, 6624, 1078, 472, 278, 2215, 1095, 5941, 368, 13, 4706, 282, 1372, 29918, 262, 29918, 4204, 29918, 10199, 353, 7442, 29889, 4478, 24582, 29898, 10199, 29918, 1975, 29892, 521, 29918, 29881, 2879, 29897, 13, 4706, 954, 29918, 344, 3174, 353, 282, 1372, 29918, 262, 29918, 4204, 29918, 10199, 14352, 29896, 29962, 13, 4706, 474, 353, 954, 29918, 344, 3174, 448, 29871, 29896, 29871, 396, 278, 2186, 19592, 338, 694, 5520, 5134, 13, 4706, 1550, 474, 6736, 29871, 29900, 29901, 13, 9651, 2030, 29918, 29875, 353, 474, 13, 9651, 282, 1372, 29918, 262, 29918, 10199, 353, 282, 1372, 29918, 262, 29918, 4204, 29918, 10199, 1275, 474, 13, 9651, 954, 29918, 16485, 29918, 262, 29918, 10199, 353, 938, 29898, 16485, 29918, 262, 29918, 10199, 29889, 2083, 3101, 13, 9651, 396, 565, 474, 1275, 954, 29918, 344, 3174, 29901, 13, 9651, 396, 268, 1565, 29918, 16485, 29918, 262, 29918, 10199, 353, 282, 1372, 29918, 262, 29918, 4204, 29918, 10199, 29889, 8552, 580, 13, 9651, 396, 268, 282, 1372, 29918, 262, 29918, 4204, 29918, 10199, 14352, 29896, 29962, 353, 7700, 13, 9651, 396, 1683, 29901, 13, 9651, 396, 268, 1565, 29918, 16485, 29918, 262, 29918, 10199, 353, 282, 1372, 29918, 262, 29918, 4204, 29918, 10199, 13, 9651, 396, 1207, 1854, 727, 29915, 29879, 2337, 29871, 29906, 282, 1372, 297, 278, 2377, 856, 13, 9651, 1550, 954, 29918, 16485, 29918, 262, 29918, 10199, 529, 29871, 29906, 29901, 13, 18884, 474, 22361, 29871, 29896, 13, 18884, 282, 1372, 29918, 262, 29918, 10199, 353, 7442, 29889, 1188, 936, 29918, 392, 29898, 13, 462, 1678, 282, 1372, 29918, 262, 29918, 4204, 29918, 10199, 5277, 2030, 29918, 29875, 29892, 282, 1372, 29918, 262, 29918, 4204, 29918, 10199, 6736, 474, 13, 18884, 1723, 13, 18884, 954, 29918, 16485, 29918, 262, 29918, 10199, 353, 938, 29898, 16485, 29918, 262, 29918, 10199, 29889, 2083, 3101, 13, 18884, 565, 474, 529, 29871, 29900, 29901, 13, 462, 1678, 2867, 13, 9651, 565, 954, 29918, 16485, 29918, 262, 29918, 10199, 529, 29871, 29906, 29901, 13, 18884, 396, 1818, 367, 472, 278, 1095, 310, 278, 2377, 856, 13, 18884, 396, 7573, 297, 8340, 2377, 29879, 472, 278, 1095, 679, 413, 16586, 353, 448, 29896, 29889, 13, 18884, 521, 29918, 2039, 29876, 29961, 16485, 29918, 262, 29918, 10199, 29962, 353, 448, 29896, 29889, 29900, 13, 18884, 2867, 13, 9651, 2377, 29918, 29909, 353, 521, 29918, 29909, 29961, 16485, 29918, 262, 29918, 10199, 29962, 13, 9651, 2377, 29918, 29903, 353, 521, 29918, 29903, 29961, 16485, 29918, 262, 29918, 10199, 29962, 13, 9651, 1480, 10199, 29918, 29909, 353, 7442, 29889, 1188, 29896, 29900, 29898, 10199, 29918, 29909, 29897, 13, 9651, 1480, 10199, 29918, 29903, 353, 7442, 29889, 1188, 29896, 29900, 29898, 10199, 29918, 29903, 29897, 13, 9651, 2099, 1188, 10199, 29918, 29909, 353, 7442, 29889, 12676, 29898, 1188, 10199, 29918, 29909, 29897, 13, 9651, 2099, 1188, 10199, 29918, 29903, 353, 7442, 29889, 12676, 29898, 1188, 10199, 29918, 29903, 29897, 13, 9651, 1480, 10199, 29918, 2039, 29876, 353, 2099, 1188, 10199, 29918, 29903, 718, 2143, 29918, 3416, 334, 2099, 1188, 10199, 29918, 29909, 13, 9651, 521, 29918, 2039, 29876, 29961, 16485, 29918, 262, 29918, 10199, 29962, 353, 29871, 29896, 29900, 29889, 29900, 3579, 1480, 10199, 29918, 2039, 29876, 13, 9651, 474, 22361, 29871, 29896, 13, 13, 4706, 736, 521, 29918, 2039, 29876, 7503, 29899, 29896, 29962, 13, 13, 1678, 732, 6799, 13, 1678, 822, 1886, 1022, 2264, 29918, 513, 1575, 29898, 1311, 1125, 13, 4706, 9995, 11609, 278, 1409, 310, 8242, 1886, 1022, 2264, 16285, 29889, 13, 13, 4706, 405, 2631, 451, 297, 278, 8242, 7150, 24786, 29889, 13, 4706, 9995, 13, 4706, 736, 1583, 3032, 2039, 29876, 13, 13, 1678, 732, 6799, 13, 1678, 822, 22696, 417, 412, 29918, 13168, 29898, 1311, 1125, 13, 4706, 9995, 11609, 263, 7223, 1409, 29892, 7700, 988, 1886, 1022, 2264, 16285, 1863, 1213, 15945, 13, 4706, 736, 1583, 3032, 13168, 13, 13, 1678, 732, 6799, 13, 1678, 822, 11105, 287, 29918, 1655, 1022, 2264, 29918, 513, 1575, 29898, 1311, 1125, 13, 4706, 9995, 11609, 29879, 263, 11105, 287, 1409, 1873, 310, 278, 525, 12719, 1649, 1655, 1022, 2264, 29918, 2248, 29915, 13, 4706, 1746, 29889, 910, 28936, 6775, 6492, 1259, 310, 278, 1819, 411, 29889, 13, 13, 4706, 584, 9891, 18078, 1049, 8205, 29889, 326, 4294, 29918, 7720, 29918, 271, 29918, 3177, 29952, 470, 2788, 29889, 13, 13, 4706, 1222, 9422, 13, 4706, 448, 26589, 13, 4706, 8561, 263, 2246, 12122, 2910, 411, 385, 27292, 310, 1886, 1022, 2264, 1819, 29901, 13, 13, 4706, 8653, 515, 2982, 8205, 1053, 527, 4294, 29918, 7720, 29918, 271, 29918, 3177, 13, 4706, 8653, 515, 2982, 8205, 1053, 390, 1901, 3195, 5756, 13, 4706, 8653, 515, 2982, 8205, 29889, 14036, 1053, 22787, 7504, 398, 9183, 29892, 383, 19416, 5738, 29923, 307, 672, 13, 4706, 8653, 515, 2982, 8205, 29889, 14036, 1053, 2443, 1022, 2264, 29943, 4995, 13, 4706, 8653, 286, 29887, 353, 390, 1901, 3195, 5756, 3552, 29945, 29892, 29871, 29945, 511, 921, 29891, 29918, 1028, 9390, 29922, 29896, 29900, 29900, 1846, 13, 4706, 8653, 363, 7573, 297, 313, 29885, 29887, 29889, 18010, 29918, 271, 29918, 1266, 29918, 12864, 29892, 286, 29887, 29889, 18010, 29918, 271, 29918, 8968, 29918, 12864, 29892, 13, 4706, 2023, 1669, 286, 29887, 29889, 18010, 29918, 271, 29918, 3332, 29918, 12864, 1125, 13, 4706, 2023, 268, 286, 29887, 29889, 4882, 29918, 271, 29918, 3177, 29961, 18010, 29962, 353, 286, 29887, 29889, 5371, 29918, 6632, 2287, 29918, 3235, 29918, 29907, 3927, 1660, 29928, 13, 4706, 8653, 903, 353, 286, 29887, 29889, 1202, 29918, 3298, 359, 703, 3332, 12122, 1649, 29872, 2608, 362, 613, 472, 543, 3177, 1159, 13, 4706, 8653, 286, 29887, 29889, 271, 29918, 3177, 1839, 3332, 12122, 1649, 29872, 2608, 362, 2033, 29961, 29885, 29887, 29889, 3221, 29918, 18010, 29962, 353, 286, 29887, 29889, 3177, 29918, 29916, 29961, 13, 4706, 2023, 268, 286, 29887, 29889, 3221, 29918, 18010, 16261, 29896, 29900, 29900, 29900, 29889, 13, 4706, 8653, 7442, 29889, 8172, 29889, 26776, 29898, 29900, 29897, 13, 4706, 8653, 286, 29887, 29889, 271, 29918, 3177, 1839, 3332, 12122, 1649, 29872, 2608, 362, 2033, 29961, 13, 4706, 2023, 268, 286, 29887, 29889, 3221, 29918, 18010, 29962, 4619, 7442, 29889, 8172, 29889, 9502, 29898, 29885, 29887, 29889, 4537, 29918, 974, 29918, 3221, 29918, 18010, 29897, 13, 4706, 8653, 1424, 353, 22787, 7504, 398, 9183, 29898, 29885, 29887, 29892, 4972, 29918, 11851, 272, 2433, 29928, 29947, 1495, 13, 4706, 8653, 805, 353, 383, 19416, 5738, 29923, 307, 672, 29898, 29885, 29887, 29892, 476, 29918, 1028, 29922, 29900, 29889, 29900, 29896, 29897, 13, 4706, 8653, 274, 29888, 353, 2443, 1022, 2264, 29943, 4995, 29898, 29885, 29887, 29892, 1375, 29918, 29881, 6038, 482, 29918, 6203, 29922, 29906, 29900, 29900, 29900, 29900, 1846, 13, 4706, 8653, 363, 474, 297, 3464, 29898, 29896, 29900, 1125, 13, 4706, 2023, 268, 286, 29887, 29889, 271, 29918, 3177, 1839, 3332, 12122, 1649, 29872, 2608, 362, 2033, 29961, 29885, 29887, 29889, 3221, 29918, 18010, 29962, 4619, 29871, 29896, 29900, 29889, 13, 4706, 2023, 268, 903, 353, 1424, 29889, 3389, 29918, 650, 29918, 10568, 580, 13, 4706, 2023, 268, 805, 29889, 3389, 29918, 650, 29918, 10568, 29898, 29896, 29900, 29900, 29900, 1846, 13, 4706, 8653, 903, 353, 1424, 29889, 3389, 29918, 650, 29918, 10568, 580, 13, 4706, 8653, 274, 29888, 29889, 15807, 403, 29918, 1655, 1022, 2264, 267, 580, 13, 13, 4706, 8653, 527, 4294, 29918, 7720, 29918, 271, 29918, 3177, 29898, 29885, 29887, 29892, 525, 3332, 12122, 1649, 29872, 2608, 362, 742, 13, 4706, 2023, 462, 268, 2758, 29918, 2780, 1646, 29922, 8824, 29897, 13, 4706, 8653, 527, 4294, 29918, 7720, 29918, 271, 29918, 3177, 29898, 29885, 29887, 29892, 274, 29888, 29889, 13168, 287, 29918, 1655, 1022, 2264, 29918, 513, 1575, 29892, 13, 4706, 2023, 462, 268, 2927, 29918, 1454, 29918, 15603, 29922, 8516, 29892, 274, 1958, 2433, 29893, 1639, 1495, 13, 4706, 9995, 13, 4706, 736, 7442, 29889, 655, 29889, 2378, 29898, 1311, 29889, 1655, 1022, 2264, 29918, 513, 1575, 29892, 11105, 29922, 1311, 29889, 29882, 6090, 417, 412, 29918, 13168, 29897, 13, 2 ]
DailyProgrammer/DP20160926A.py
DayGitH/Python-Challenges
2
105053
<filename>DailyProgrammer/DP20160926A.py """ [2016-09-26] Challenge #285 [Easy] Cross Platform/Language Data Encoding part 1 https://www.reddit.com/r/dailyprogrammer/comments/54lu54/20160926_challenge_285_easy_cross/ We will make a binary byte oriented encoding of data that is self describing and extensible, and aims to solve the following problems: * portability between 32 and 64 (and any other) bit systems, and languages, and endian-ness. * type system independent of underlying language. * Allow heterogeneous arrays (differing types of array elements) where the underlying language has poor support for them. * leverage power of homogeneous arrays in a language. * support records regardless of underlying language (array of records is homogeneous, even though a record is a heterogeneous list of fields) * Allow ragged arrays (a table where each row is a list, but the rows do not have a uniform size (or shape)) * Provide basic in memory compression. Allow deferred decoding of partial data. # 1. base64 encoding (used in later challenges) To read and write binary data on reddit, we will use base64 encoding, https://www.reddit.com/r/dailyprogrammer/comments/4xy6i1/20160816_challenge_279_easy_uuencoding/ # 2. Extendible byte base. Any size integer can be coded into a variable byte array by using the maximum byte value as a marker to add the next byte value to decode the total. This is useful for coding numbers that you think can be limited to around 255 or close to it, without being "hard constrained" by that limit. "256 possible op codes (or characters) ought to be enough for everyone forever thinking" **unsigned byte input** 12 255 256 510 512 44 1024 last input is a list of 3 integers to encode **sample outputs** 12 255 0 255 1 255 255 0 255 255 2 44 255 255 255 255 4 every element that is not 255 marks the end of "that integer" in a list. You should also write a decoder that transforms output into input. # 3. multibyte and variable byte encodings Instead of a single byte target encoding, 2,4,8 and variable defined byte sizes are also desirable to cover integers with larger ranges. An account balance might have a 40 bit practical limit, but you might not guarantee it forever. 64 bits might not be enough for Zimbabwe currency balances for example. For compressing a list of numbers, often it is useful to set the whole list to one "byte size". Other choices include, * setting an enum/table of possible byte size codings of 1 2 4 8 sizes, and then encoding, the number of elements, the table/enum size and definition, and then 2 lists (enum key, data items) * interleave bytesize, data The latter will often be longer for long lists, but does not encode the table so is simpler to encode/decode. **Encoding format for table definition:** 1. 4 bytes: first 30 bits - length of list. last 2 bits: key into 1 2 4 8. If first 30 bits are max value, then following 4 bytes are added to count until a non-max value is taken. Similar to challenge #2. 2. list of byte lengths defined by key in 1. If last 2 bits of 1 are 3 (signifies up to 8 distinct integer sizes), then this list has 8 items. If there only 6 distinct integer size codings, then the last 2 items in this list would be ignored and set to 0. Values over 255 are encoded as in challenge 2. 3. list of ordered data encodings in boolean form, if there are more than 1. 1 bit for 2, 2 bits for 4, 3 bits for 8. 4. list of data elements. **challenges** encode list of integers from 0 to 1025 using 8 or 16 bit variable encoding. With the shortest encoding that will contain the number. Just print the sum of all the bytes as result for output brevity. **solution** 1. first 4 bytes are (1025 * 4) + 1 (leading 0 bytes for smaller than "full size" numbers) 2. 2 byte list: 1 2 3. 0 for first 256 bits, 1 for remaining bits (total 1032 bits long with padding) 4. 256 + (769 * 2) bytes long encoding of the numbers. # 4. balanced signed numbers Some numbers are negative. The common computer encoding for signed number ranges is to subtract half the max power of 2 from the value. A signed byte has range -128 to 127, where a 0 value corresponds to -128 (in our encoding). For numbers outside this range encoded in a single byte, the process is to take the first byte to determine the sign, and then following bytes add or subtract up to 255 per byte until a non 255 value is reached. # 5. unbalanced signed numbers Instead of the midpoint marking 0, a byte can encode a value within any defined range. Another important application is to use "negative" numbers as codes of some sort. These include: * An expectation that negative numbers are less frequent and smaller relative to 0 * coding special values such as null, infinity, undeterminable (0/0) * Using codes to hint at extended byte encodings and sign of the number, or even data type **sample 0 index codes** (for 16 reserved codes) (new paragraph for multiline explained codes) Null Infinity Negative Infinity Negative 1 byte Negative 2 bytes Negative 4 bytes Negative 8 bytes Negative custom byte length (value is encoded into 2 numbers. First is byte length (in 255 terminated bytes, followed by that number of bytes to represent the number) Positive 1 byte (first number indicates range of 468 to 723). 467 could have been encoded as 255 254 without this special code. Positive 2 byte Positive 4 byte Positive 8 byte Positive 16 byte Positive 64 byte Positive custom byte length (3 to 262 excluding other defined lengths) Positive custom 2 byte length (16 bit unsigned number defines byte length of number, followed by encoded number) **sample inputs** 10 123123 -55 Null **sample output** 26 9 123123 3 54 (minimum range value is -1) 0 **challenge input** 192387198237192837192837192387123817239182737 _44 981237123 array of 3 numbers (_44 is -44) to be encoded """ def main(): pass if __name__ == "__main__": main()
[ 1, 529, 9507, 29958, 29928, 8683, 9283, 1050, 29914, 11191, 29906, 29900, 29896, 29953, 29900, 29929, 29906, 29953, 29909, 29889, 2272, 13, 15945, 29908, 13, 29961, 29906, 29900, 29896, 29953, 29899, 29900, 29929, 29899, 29906, 29953, 29962, 27211, 396, 29906, 29947, 29945, 518, 29923, 8995, 29962, 11189, 28096, 29914, 21233, 3630, 11346, 3689, 760, 29871, 29896, 13, 13, 991, 597, 1636, 29889, 1127, 27423, 29889, 510, 29914, 29878, 29914, 29881, 8683, 8860, 1050, 29914, 21032, 29914, 29945, 29946, 6092, 29945, 29946, 29914, 29906, 29900, 29896, 29953, 29900, 29929, 29906, 29953, 29918, 305, 11768, 29918, 29906, 29947, 29945, 29918, 29872, 8995, 29918, 19128, 29914, 13, 13, 4806, 674, 1207, 263, 7581, 7023, 7769, 287, 8025, 310, 848, 393, 338, 1583, 20766, 322, 21103, 1821, 29892, 322, 263, 9893, 304, 4505, 278, 13, 23031, 292, 4828, 29901, 13, 29930, 2011, 3097, 1546, 29871, 29941, 29906, 322, 29871, 29953, 29946, 313, 392, 738, 916, 29897, 2586, 6757, 29892, 322, 10276, 29892, 322, 1095, 713, 29899, 2264, 29889, 13, 29930, 1134, 1788, 7417, 310, 14407, 4086, 29889, 259, 13, 29930, 29408, 25745, 23724, 7049, 313, 29881, 8349, 292, 4072, 310, 1409, 3161, 29897, 988, 278, 14407, 4086, 756, 6460, 2304, 363, 13, 386, 331, 29889, 13, 29930, 454, 19698, 3081, 310, 3632, 23724, 7049, 297, 263, 4086, 29889, 13, 29930, 2304, 6475, 17126, 310, 14407, 4086, 313, 2378, 310, 6475, 338, 3632, 23724, 29892, 1584, 2466, 263, 2407, 338, 263, 13, 29882, 1308, 23724, 1051, 310, 4235, 29897, 13, 29930, 29408, 1153, 1505, 287, 7049, 313, 29874, 1591, 988, 1269, 1948, 338, 263, 1051, 29892, 541, 278, 4206, 437, 451, 505, 263, 9090, 2159, 313, 272, 8267, 876, 13, 29930, 9133, 680, 6996, 297, 3370, 24221, 29889, 29871, 29408, 316, 14373, 1602, 3689, 310, 7687, 848, 29889, 13, 29937, 29871, 29896, 29889, 29871, 2967, 29953, 29946, 8025, 313, 3880, 297, 2678, 18066, 267, 29897, 13, 1762, 1303, 322, 2436, 7581, 848, 373, 337, 1289, 277, 29892, 591, 674, 671, 2967, 29953, 29946, 8025, 29892, 13, 991, 597, 1636, 29889, 1127, 27423, 29889, 510, 29914, 29878, 29914, 29881, 8683, 8860, 1050, 29914, 21032, 29914, 29946, 3594, 29953, 29875, 29896, 29914, 29906, 29900, 29896, 29953, 29900, 29947, 29896, 29953, 29918, 305, 11768, 29918, 29906, 29955, 29929, 29918, 29872, 8995, 29918, 29884, 3837, 29883, 3689, 29914, 13, 29937, 29871, 29906, 29889, 7338, 355, 1821, 7023, 2967, 29889, 13, 10773, 2159, 6043, 508, 367, 274, 6797, 964, 263, 2286, 7023, 1409, 491, 773, 278, 7472, 7023, 995, 408, 263, 17456, 304, 788, 278, 2446, 13, 10389, 995, 304, 21822, 278, 3001, 29889, 259, 13, 4013, 338, 5407, 363, 14137, 3694, 393, 366, 1348, 508, 367, 9078, 304, 2820, 29871, 29906, 29945, 29945, 470, 3802, 304, 372, 29892, 1728, 1641, 376, 6800, 13, 3075, 22042, 29908, 491, 393, 4046, 29889, 29871, 376, 29906, 29945, 29953, 1950, 1015, 11561, 313, 272, 4890, 29897, 12722, 304, 367, 3307, 363, 14332, 22296, 7291, 29908, 29871, 13, 1068, 15395, 7023, 1881, 1068, 259, 13, 29896, 29906, 259, 13, 29906, 29945, 29945, 259, 13, 29906, 29945, 29953, 259, 13, 29945, 29896, 29900, 259, 13, 29945, 29896, 29906, 29871, 29946, 29946, 29871, 29896, 29900, 29906, 29946, 13, 4230, 1881, 338, 263, 1051, 310, 29871, 29941, 11920, 304, 19750, 13, 1068, 11249, 14391, 1068, 259, 13, 29896, 29906, 259, 13, 29906, 29945, 29945, 29871, 29900, 259, 13, 29906, 29945, 29945, 29871, 29896, 259, 13, 29906, 29945, 29945, 29871, 29906, 29945, 29945, 29871, 29900, 259, 13, 29906, 29945, 29945, 29871, 29906, 29945, 29945, 29871, 29906, 29871, 29946, 29946, 29871, 29906, 29945, 29945, 29871, 29906, 29945, 29945, 29871, 29906, 29945, 29945, 29871, 29906, 29945, 29945, 29871, 29946, 13, 17991, 1543, 393, 338, 451, 29871, 29906, 29945, 29945, 17997, 278, 1095, 310, 376, 5747, 6043, 29908, 297, 263, 1051, 29889, 29871, 887, 881, 884, 2436, 263, 1602, 6119, 393, 13, 9067, 29879, 1962, 964, 1881, 29889, 13, 29937, 29871, 29941, 29889, 1773, 747, 29891, 371, 322, 2286, 7023, 2094, 397, 886, 13, 3379, 1479, 310, 263, 2323, 7023, 3646, 8025, 29892, 29871, 29906, 29892, 29946, 29892, 29947, 322, 2286, 3342, 7023, 15786, 526, 884, 553, 27797, 304, 4612, 11920, 13, 2541, 7200, 20238, 29889, 29871, 530, 3633, 17346, 1795, 505, 263, 29871, 29946, 29900, 2586, 15031, 4046, 29892, 541, 366, 1795, 451, 18818, 372, 22296, 29889, 29871, 13, 29953, 29946, 9978, 1795, 451, 367, 3307, 363, 796, 19977, 370, 705, 27550, 6411, 2925, 363, 1342, 29889, 13, 2831, 27122, 292, 263, 1051, 310, 3694, 29892, 4049, 372, 338, 5407, 304, 731, 278, 3353, 1051, 304, 697, 376, 10389, 2159, 1642, 29871, 5901, 19995, 3160, 29892, 29871, 13, 29930, 4444, 385, 14115, 29914, 2371, 310, 1950, 7023, 2159, 15234, 886, 310, 29871, 29896, 29871, 29906, 29871, 29946, 29871, 29947, 29871, 15786, 29892, 322, 769, 8025, 29892, 278, 1353, 310, 3161, 29892, 278, 13, 2371, 29914, 18605, 2159, 322, 5023, 29892, 322, 769, 29871, 29906, 8857, 313, 18605, 1820, 29892, 848, 4452, 29897, 13, 29930, 1006, 280, 1351, 6262, 675, 29892, 848, 13, 1576, 7480, 674, 4049, 367, 5520, 363, 1472, 8857, 29892, 541, 947, 451, 19750, 278, 1591, 577, 338, 13682, 304, 19750, 29914, 13808, 29889, 13, 1068, 14934, 3402, 363, 1591, 5023, 29901, 1068, 259, 13, 29896, 29889, 29871, 29946, 6262, 29901, 937, 29871, 29941, 29900, 9978, 448, 3309, 310, 1051, 29889, 29871, 1833, 29871, 29906, 9978, 29901, 1820, 964, 29871, 29896, 29871, 29906, 29871, 29946, 29871, 29947, 29889, 29871, 960, 937, 29871, 29941, 29900, 9978, 526, 4236, 995, 29892, 769, 13, 23031, 292, 29871, 29946, 6262, 526, 2715, 304, 2302, 2745, 263, 1661, 29899, 3317, 995, 338, 4586, 29889, 29871, 13999, 304, 18766, 396, 29906, 29889, 259, 13, 29906, 29889, 1051, 310, 7023, 27497, 3342, 491, 1820, 297, 29871, 29896, 29889, 29871, 960, 1833, 29871, 29906, 9978, 310, 29871, 29896, 526, 29871, 29941, 313, 4530, 11057, 701, 304, 29871, 29947, 8359, 6043, 15786, 511, 13, 6098, 445, 1051, 756, 29871, 29947, 4452, 29889, 29871, 960, 727, 871, 29871, 29953, 8359, 6043, 2159, 15234, 886, 29892, 769, 278, 1833, 29871, 29906, 4452, 297, 445, 1051, 723, 367, 13, 647, 4395, 322, 731, 304, 29871, 29900, 29889, 29871, 2630, 1041, 975, 29871, 29906, 29945, 29945, 526, 18511, 408, 297, 18766, 29871, 29906, 29889, 13, 29941, 29889, 1051, 310, 10372, 848, 2094, 397, 886, 297, 7223, 883, 29892, 565, 727, 526, 901, 1135, 29871, 29896, 29889, 259, 29896, 2586, 363, 29871, 29906, 29892, 29871, 29906, 9978, 363, 29871, 29946, 29892, 29871, 29941, 9978, 363, 29871, 29947, 29889, 13, 29946, 29889, 1051, 310, 848, 3161, 29889, 29871, 13, 1068, 305, 16047, 267, 1068, 259, 13, 12508, 1051, 310, 11920, 515, 29871, 29900, 304, 29871, 29896, 29900, 29906, 29945, 773, 29871, 29947, 470, 29871, 29896, 29953, 2586, 2286, 8025, 29889, 29871, 2973, 278, 3273, 342, 8025, 393, 674, 13, 1285, 475, 278, 1353, 29889, 29871, 3387, 1596, 278, 2533, 310, 599, 278, 6262, 408, 1121, 363, 1962, 2078, 17037, 29889, 13, 1068, 2929, 918, 1068, 259, 13, 29896, 29889, 937, 29871, 29946, 6262, 526, 313, 29896, 29900, 29906, 29945, 334, 29871, 29946, 29897, 718, 29871, 29896, 313, 25369, 29871, 29900, 6262, 363, 7968, 1135, 376, 8159, 2159, 29908, 3694, 29897, 13, 29906, 29889, 29871, 29906, 7023, 1051, 29901, 29871, 29896, 259, 29906, 13, 29941, 29889, 29871, 29900, 363, 937, 29871, 29906, 29945, 29953, 9978, 29892, 29871, 29896, 363, 9886, 9978, 313, 7827, 29871, 29896, 29900, 29941, 29906, 9978, 1472, 411, 7164, 29897, 13, 29946, 29889, 29871, 29906, 29945, 29953, 718, 313, 29955, 29953, 29929, 334, 29871, 29906, 29897, 6262, 1472, 8025, 310, 278, 3694, 29889, 13, 29937, 29871, 29946, 29889, 6411, 8362, 8794, 3694, 13, 9526, 3694, 526, 8178, 29889, 29871, 450, 3619, 6601, 8025, 363, 8794, 1353, 20238, 338, 304, 23197, 4203, 278, 4236, 3081, 310, 13, 29906, 515, 278, 995, 29889, 29871, 319, 8794, 7023, 756, 3464, 448, 29896, 29906, 29947, 304, 29871, 29896, 29906, 29955, 29892, 988, 263, 29871, 29900, 995, 16161, 304, 448, 29896, 29906, 29947, 313, 262, 1749, 8025, 467, 13, 2831, 3694, 5377, 445, 3464, 18511, 297, 263, 2323, 7023, 29892, 278, 1889, 338, 304, 2125, 278, 937, 7023, 304, 8161, 278, 1804, 29892, 13, 392, 769, 1494, 6262, 788, 470, 23197, 701, 304, 29871, 29906, 29945, 29945, 639, 7023, 2745, 263, 1661, 29871, 29906, 29945, 29945, 995, 338, 7450, 29889, 13, 29937, 29871, 29945, 29889, 443, 5521, 8362, 8794, 3694, 13, 3379, 1479, 310, 278, 7145, 3149, 2791, 292, 29871, 29900, 29892, 263, 7023, 508, 19750, 263, 995, 2629, 738, 3342, 3464, 29889, 13, 2744, 1228, 4100, 2280, 338, 304, 671, 376, 22198, 29908, 3694, 408, 11561, 310, 777, 2656, 29889, 29871, 4525, 3160, 29901, 13, 29930, 530, 23227, 393, 8178, 3694, 526, 3109, 17091, 322, 7968, 6198, 304, 29871, 29900, 13, 29930, 14137, 4266, 1819, 1316, 408, 1870, 29892, 27971, 29892, 563, 300, 837, 262, 519, 313, 29900, 29914, 29900, 29897, 13, 29930, 5293, 11561, 304, 13182, 472, 10410, 7023, 2094, 397, 886, 322, 1804, 310, 278, 1353, 29892, 470, 1584, 848, 1134, 13, 1068, 11249, 29871, 29900, 2380, 11561, 1068, 313, 1454, 29871, 29896, 29953, 21676, 11561, 29897, 313, 1482, 14880, 363, 1773, 309, 457, 10824, 11561, 29897, 259, 13, 7327, 259, 13, 797, 4951, 537, 259, 13, 29940, 387, 1230, 512, 4951, 537, 259, 13, 29940, 387, 1230, 29871, 29896, 7023, 259, 13, 29940, 387, 1230, 29871, 29906, 6262, 259, 13, 29940, 387, 1230, 29871, 29946, 6262, 259, 13, 29940, 387, 1230, 29871, 29947, 6262, 259, 13, 29940, 387, 1230, 2888, 7023, 3309, 313, 1767, 338, 18511, 964, 29871, 29906, 3694, 29889, 29871, 3824, 338, 7023, 3309, 313, 262, 29871, 29906, 29945, 29945, 29185, 6262, 29892, 5643, 13, 1609, 393, 1353, 310, 6262, 304, 2755, 278, 1353, 29897, 259, 13, 9135, 3321, 29871, 29896, 7023, 313, 4102, 1353, 14088, 3464, 310, 29871, 29946, 29953, 29947, 304, 29871, 29955, 29906, 29941, 467, 259, 29946, 29953, 29955, 1033, 505, 1063, 18511, 408, 29871, 29906, 29945, 29945, 29871, 29906, 29945, 29946, 1728, 445, 13, 18732, 775, 29889, 13, 9135, 3321, 29871, 29906, 7023, 259, 13, 9135, 3321, 29871, 29946, 7023, 259, 13, 9135, 3321, 29871, 29947, 7023, 259, 13, 9135, 3321, 29871, 29896, 29953, 7023, 259, 13, 9135, 3321, 29871, 29953, 29946, 7023, 259, 13, 9135, 3321, 2888, 7023, 3309, 313, 29941, 304, 29871, 29906, 29953, 29906, 429, 22368, 916, 3342, 27497, 29897, 13, 9135, 3321, 2888, 29871, 29906, 7023, 3309, 313, 29896, 29953, 2586, 12780, 1353, 17645, 7023, 3309, 310, 1353, 29892, 5643, 491, 18511, 1353, 29897, 13, 1068, 11249, 10970, 1068, 259, 13, 29896, 29900, 259, 13, 29896, 29906, 29941, 29896, 29906, 29941, 259, 13, 29899, 29945, 29945, 259, 13, 7327, 29871, 13, 1068, 11249, 1962, 1068, 259, 13, 29906, 29953, 259, 13, 29929, 29871, 29896, 29906, 29941, 29896, 29906, 29941, 1678, 13, 29941, 29871, 29945, 29946, 313, 1195, 12539, 3464, 995, 338, 448, 29896, 29897, 259, 13, 29900, 259, 13, 1068, 305, 11768, 1881, 1068, 259, 13, 29896, 29929, 29906, 29941, 29947, 29955, 29896, 29929, 29947, 29906, 29941, 29955, 29896, 29929, 29906, 29947, 29941, 29955, 29896, 29929, 29906, 29947, 29941, 29955, 29896, 29929, 29906, 29941, 29947, 29955, 29896, 29906, 29941, 29947, 29896, 29955, 29906, 29941, 29929, 29896, 29947, 29906, 29955, 29941, 29955, 903, 29946, 29946, 29871, 29929, 29947, 29896, 29906, 29941, 29955, 29896, 29906, 29941, 13, 2378, 310, 29871, 29941, 3694, 9423, 29946, 29946, 338, 448, 29946, 29946, 29897, 304, 367, 18511, 29871, 13, 15945, 29908, 13, 13, 13, 1753, 1667, 7295, 13, 1678, 1209, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 1667, 580, 13, 2 ]
flask_web_app.py
mrsixw/git-statistics
0
58777
#!/usr/bin/env python import sqlite3 import os import plotly import json from flask import Flask, render_template, session, g from flask_bootstrap import Bootstrap from git_insight_generator import generate_branch_insight, generate_monthly_commit_data, generate_month_change_data, generate_commit_time_of_day import locale DATABASE = './database/git_repo_data.db' app = Flask(__name__) Bootstrap(app) def print_local_number(number): locale.setlocale(locale.LC_ALL,'en_GB') return locale.format("%d", number, grouping=True) app.jinja_env.filters['local_number'] = print_local_number def get_base_url(): if app.config['SERVER_NAME'] is not None: base = app.config['SERVER_NAME'] #print app.config if app.config['APPLICATION_ROOT'] is not None: base += app.config['APPLICATION_ROOT'] else: base = '127.0.0.1:5000' #print base return base def make_dicts(cursor, row): return dict((cursor.description[idx][0], value) for idx, value in enumerate(row)) def get_db(): db = getattr(g, '_database', None) if db is None: db = g._database = sqlite3.connect(DATABASE) db.row_factory = make_dicts # hack g._baseurl = get_base_url() #print g._baseurl return db def query_db(query, args=(), one=False): cur = get_db().execute(query, args) rv = cur.fetchall() cur.close() return (rv[0] if rv else None) if one else rv def get_branches(): return query_db("SELECT branch_name FROM git_branches") @app.teardown_appcontext def close_connection(exception): print "Teardown DB" db = getattr(g, '_database', None) if db is not None: db.close() def commits_over_time(branch): cpm = generate_monthly_commit_data(query_db, branch) changes = generate_month_change_data(query_db, branch) commit_tod = generate_commit_time_of_day(query_db, branch) week_days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'] graphs = [ dict( data=[ dict( x=[x for x in sorted(cpm.keys())], y=[cpm[x] for x in sorted(cpm.keys())], type='bar' ), ], layout=dict( title='Commits Over Time' ) ), dict( data=[ dict( x = [x for x in sorted(changes.keys())], y = [changes[x]['additions'] for x in sorted(changes.keys())], type ='bar', name = 'Code Additions', marker=dict(color='rgb(0,255,0)') ), dict( x=[x for x in sorted(changes.keys())], y=[changes[x]['deletions'] for x in sorted(changes.keys())], type='bar', name = 'Code Deletions', marker=dict(color='rgb(255,0,0)') ) ], layout=dict( title='Changes Over Time', barmode='stack' ) ), dict( data = [ dict( x = week_days, y = [commit_tod[x]['0-1'] for x in week_days], name = '0am-2am', type = 'bar' ), dict( x=week_days, y=[commit_tod[x]['2-3'] for x in week_days], name='2am-4am', type='bar' ), dict( x=week_days, y=[commit_tod[x]['4-5'] for x in week_days], name='4am-6am', type='bar' ), dict( x=week_days, y=[commit_tod[x]['6-7'] for x in week_days], name='6am-8am', type='bar' ), dict( x=week_days, y=[commit_tod[x]['8-9'] for x in week_days], name='8am-10am', type='bar' ), dict( x=week_days, y=[commit_tod[x]['10-11'] for x in week_days], name='10am-12pm', type='bar' ), dict( x=week_days, y=[commit_tod[x]['12-13'] for x in week_days], name='12pm-2pm', type='bar' ), dict( x=week_days, y=[commit_tod[x]['14-15'] for x in week_days], name='2pm-4pm', type='bar' ), dict( x=week_days, y=[commit_tod[x]['16-17'] for x in week_days], name='4pm-6pm', type='bar' ), dict( x=week_days, y=[commit_tod[x]['18-19'] for x in week_days], name='6pm-8pm', type='bar' ), dict( x=week_days, y=[commit_tod[x]['20-21'] for x in week_days], name='8pm-10pm', type='bar' ), dict( x=week_days, y=[commit_tod[x]['22-23'] for x in week_days], name='10pm-12am', type='bar' ), ], layout=dict( title='Commit Punchcard', barmode='stack' ) ) ] # Add "ids" to each of the graphs to pass up to the client # for templating ids = ['Commits over time','Changes over time', 'Commit Punchcard'] # Convert the figures to JSON # PlotlyJSONEncoder appropriately converts pandas, datetime, etc # objects to their JSON equivalents graphJSON = json.dumps(graphs, cls=plotly.utils.PlotlyJSONEncoder) return ids,graphJSON @app.route('/branch/<branch>') def branch_index(branch): branches = get_branches() ids, graphJSON = commits_over_time(branch) return render_template('branch.html', branches = branches, branch = branch, branch_insight = generate_branch_insight(query_db, branch), ids = ids, graphJSON = graphJSON) @app.route('/') def index(): db = get_db() g._baseurl = get_base_url() branches = get_branches() return render_template('index.html', branches = branches) if __name__ == '__main__': app.secret_key = os.urandom(24) print app.json_encoder app.run(debug=True)
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 5215, 21120, 29941, 13, 13, 5215, 2897, 13, 5215, 6492, 368, 13, 5215, 4390, 13, 3166, 29784, 1053, 2379, 1278, 29892, 4050, 29918, 6886, 29892, 4867, 29892, 330, 13, 3166, 29784, 29918, 8704, 1053, 25746, 13, 3166, 6315, 29918, 1144, 523, 29918, 27959, 1053, 5706, 29918, 17519, 29918, 1144, 523, 29892, 5706, 29918, 10874, 368, 29918, 15060, 29918, 1272, 29892, 5706, 29918, 10874, 29918, 3167, 29918, 1272, 29892, 5706, 29918, 15060, 29918, 2230, 29918, 974, 29918, 3250, 13, 5215, 15068, 13, 13, 13, 25832, 27982, 353, 19283, 9803, 29914, 5559, 29918, 20095, 29918, 1272, 29889, 2585, 29915, 13, 13, 932, 353, 2379, 1278, 22168, 978, 1649, 29897, 13, 20967, 5698, 29898, 932, 29897, 13, 13, 13, 1753, 1596, 29918, 2997, 29918, 4537, 29898, 4537, 1125, 13, 1678, 15068, 29889, 842, 23337, 29898, 23337, 29889, 12182, 29918, 9818, 5501, 264, 29918, 7210, 1495, 13, 1678, 736, 15068, 29889, 4830, 11702, 29881, 613, 1353, 29892, 27270, 29922, 5574, 29897, 13, 13, 932, 29889, 28789, 1764, 29918, 6272, 29889, 26705, 1839, 2997, 29918, 4537, 2033, 353, 29871, 1596, 29918, 2997, 29918, 4537, 13, 13, 1753, 679, 29918, 3188, 29918, 2271, 7295, 13, 1678, 565, 623, 29889, 2917, 1839, 18603, 29918, 5813, 2033, 338, 451, 6213, 29901, 13, 4706, 2967, 353, 29871, 623, 29889, 2917, 1839, 18603, 29918, 5813, 2033, 13, 4706, 396, 2158, 623, 29889, 2917, 13, 4706, 565, 623, 29889, 2917, 1839, 3301, 7390, 28541, 29918, 21289, 2033, 338, 451, 6213, 29901, 13, 9651, 2967, 4619, 623, 29889, 2917, 1839, 3301, 7390, 28541, 29918, 21289, 2033, 13, 1678, 1683, 29901, 13, 4706, 2967, 353, 525, 29896, 29906, 29955, 29889, 29900, 29889, 29900, 29889, 29896, 29901, 29945, 29900, 29900, 29900, 29915, 13, 1678, 396, 2158, 2967, 13, 1678, 736, 2967, 13, 13, 1753, 1207, 29918, 8977, 29879, 29898, 18127, 29892, 1948, 1125, 13, 1678, 736, 9657, 3552, 18127, 29889, 8216, 29961, 13140, 3816, 29900, 1402, 995, 29897, 13, 18884, 363, 22645, 29892, 995, 297, 26985, 29898, 798, 876, 13, 13, 1753, 679, 29918, 2585, 7295, 13, 1678, 4833, 353, 679, 5552, 29898, 29887, 29892, 22868, 9803, 742, 6213, 29897, 13, 1678, 565, 4833, 338, 6213, 29901, 13, 4706, 4833, 353, 330, 3032, 9803, 353, 21120, 29941, 29889, 6915, 29898, 25832, 27982, 29897, 13, 1678, 4833, 29889, 798, 29918, 14399, 353, 1207, 29918, 8977, 29879, 13, 13, 1678, 396, 15833, 13, 1678, 330, 3032, 3188, 2271, 353, 679, 29918, 3188, 29918, 2271, 580, 13, 1678, 396, 2158, 330, 3032, 3188, 2271, 13, 1678, 736, 4833, 13, 13, 1753, 2346, 29918, 2585, 29898, 1972, 29892, 6389, 29922, 3285, 697, 29922, 8824, 1125, 13, 1678, 3151, 353, 679, 29918, 2585, 2141, 7978, 29898, 1972, 29892, 6389, 29897, 13, 1678, 364, 29894, 353, 3151, 29889, 9155, 497, 580, 13, 1678, 3151, 29889, 5358, 580, 13, 1678, 736, 313, 15291, 29961, 29900, 29962, 565, 364, 29894, 1683, 6213, 29897, 565, 697, 1683, 364, 29894, 13, 13, 13, 1753, 679, 29918, 17519, 267, 7295, 13, 1678, 736, 2346, 29918, 2585, 703, 6404, 5443, 29918, 978, 3895, 6315, 29918, 17519, 267, 1159, 13, 13, 29992, 932, 29889, 371, 538, 776, 29918, 932, 4703, 13, 1753, 3802, 29918, 9965, 29898, 11739, 1125, 13, 1678, 1596, 376, 7141, 538, 776, 6535, 29908, 13, 1678, 4833, 353, 679, 5552, 29898, 29887, 29892, 22868, 9803, 742, 6213, 29897, 13, 1678, 565, 4833, 338, 451, 6213, 29901, 13, 4706, 4833, 29889, 5358, 580, 13, 13, 1753, 25741, 29918, 957, 29918, 2230, 29898, 17519, 1125, 13, 13, 1678, 274, 3358, 353, 5706, 29918, 10874, 368, 29918, 15060, 29918, 1272, 29898, 1972, 29918, 2585, 29892, 5443, 29897, 13, 1678, 3620, 353, 5706, 29918, 10874, 29918, 3167, 29918, 1272, 29898, 1972, 29918, 2585, 29892, 5443, 29897, 13, 1678, 9063, 29918, 20034, 353, 5706, 29918, 15060, 29918, 2230, 29918, 974, 29918, 3250, 29898, 1972, 29918, 2585, 29892, 5443, 29897, 13, 13, 1678, 4723, 29918, 16700, 353, 6024, 29924, 898, 388, 742, 13, 462, 525, 29911, 1041, 3250, 742, 13, 462, 525, 29956, 287, 4515, 3250, 742, 13, 462, 525, 1349, 1295, 3250, 742, 13, 462, 525, 29943, 2429, 388, 742, 13, 462, 525, 29903, 20510, 742, 13, 462, 525, 29903, 870, 388, 2033, 13, 13, 1678, 18445, 353, 518, 13, 4706, 9657, 29898, 13, 9651, 848, 11759, 13, 18884, 9657, 29898, 13, 462, 1678, 921, 11759, 29916, 363, 921, 297, 12705, 29898, 29883, 3358, 29889, 8149, 3101, 1402, 13, 462, 1678, 343, 11759, 29883, 3358, 29961, 29916, 29962, 363, 921, 297, 12705, 29898, 29883, 3358, 29889, 8149, 3101, 1402, 13, 462, 1678, 1134, 2433, 1646, 29915, 13, 18884, 10353, 13, 9651, 21251, 13, 9651, 5912, 29922, 8977, 29898, 13, 18884, 3611, 2433, 5261, 1169, 6811, 5974, 29915, 13, 9651, 1723, 13, 4706, 10353, 13, 4706, 9657, 29898, 13, 9651, 848, 11759, 13, 18884, 9657, 29898, 13, 462, 1678, 921, 353, 518, 29916, 363, 921, 297, 12705, 29898, 25990, 29889, 8149, 3101, 1402, 13, 462, 1678, 343, 353, 518, 25990, 29961, 29916, 22322, 1202, 2187, 2033, 363, 921, 297, 12705, 29898, 25990, 29889, 8149, 3101, 1402, 13, 462, 1678, 1134, 353, 29915, 1646, 742, 13, 462, 1678, 1024, 353, 525, 3399, 3462, 2187, 742, 13, 462, 1678, 17456, 29922, 8977, 29898, 2780, 2433, 23973, 29898, 29900, 29892, 29906, 29945, 29945, 29892, 29900, 29897, 1495, 13, 18884, 10353, 13, 18884, 9657, 29898, 13, 462, 1678, 921, 11759, 29916, 363, 921, 297, 12705, 29898, 25990, 29889, 8149, 3101, 1402, 13, 462, 1678, 343, 11759, 25990, 29961, 29916, 22322, 311, 1026, 1080, 2033, 363, 921, 297, 12705, 29898, 25990, 29889, 8149, 3101, 1402, 13, 462, 1678, 1134, 2433, 1646, 742, 13, 462, 1678, 1024, 353, 525, 3399, 897, 1026, 1080, 742, 13, 462, 1678, 17456, 29922, 8977, 29898, 2780, 2433, 23973, 29898, 29906, 29945, 29945, 29892, 29900, 29892, 29900, 29897, 1495, 13, 18884, 1723, 13, 9651, 21251, 13, 9651, 5912, 29922, 8977, 29898, 13, 18884, 3611, 2433, 21459, 6811, 5974, 742, 13, 18884, 2594, 8513, 2433, 1429, 29915, 13, 9651, 1723, 13, 4706, 10353, 13, 4706, 9657, 29898, 13, 9651, 848, 353, 518, 13, 18884, 9657, 29898, 13, 462, 1678, 921, 353, 4723, 29918, 16700, 29892, 13, 462, 1678, 343, 353, 29871, 518, 15060, 29918, 20034, 29961, 29916, 22322, 29900, 29899, 29896, 2033, 363, 921, 297, 4723, 29918, 16700, 1402, 13, 462, 1678, 1024, 353, 525, 29900, 314, 29899, 29906, 314, 742, 13, 462, 1678, 1134, 353, 525, 1646, 29915, 13, 18884, 10353, 13, 18884, 9657, 29898, 13, 462, 1678, 921, 29922, 18448, 29918, 16700, 29892, 13, 462, 1678, 343, 11759, 15060, 29918, 20034, 29961, 29916, 22322, 29906, 29899, 29941, 2033, 363, 921, 297, 4723, 29918, 16700, 1402, 13, 462, 1678, 1024, 2433, 29906, 314, 29899, 29946, 314, 742, 13, 462, 1678, 1134, 2433, 1646, 29915, 13, 18884, 10353, 13, 18884, 9657, 29898, 13, 462, 1678, 921, 29922, 18448, 29918, 16700, 29892, 13, 462, 1678, 343, 11759, 15060, 29918, 20034, 29961, 29916, 22322, 29946, 29899, 29945, 2033, 363, 921, 297, 4723, 29918, 16700, 1402, 13, 462, 1678, 1024, 2433, 29946, 314, 29899, 29953, 314, 742, 13, 462, 1678, 1134, 2433, 1646, 29915, 13, 18884, 10353, 13, 18884, 9657, 29898, 13, 462, 1678, 921, 29922, 18448, 29918, 16700, 29892, 13, 462, 1678, 343, 11759, 15060, 29918, 20034, 29961, 29916, 22322, 29953, 29899, 29955, 2033, 363, 921, 297, 4723, 29918, 16700, 1402, 13, 462, 1678, 1024, 2433, 29953, 314, 29899, 29947, 314, 742, 13, 462, 1678, 1134, 2433, 1646, 29915, 13, 18884, 10353, 13, 18884, 9657, 29898, 13, 462, 1678, 921, 29922, 18448, 29918, 16700, 29892, 13, 462, 1678, 343, 11759, 15060, 29918, 20034, 29961, 29916, 22322, 29947, 29899, 29929, 2033, 363, 921, 297, 4723, 29918, 16700, 1402, 13, 462, 1678, 1024, 2433, 29947, 314, 29899, 29896, 29900, 314, 742, 13, 462, 1678, 1134, 2433, 1646, 29915, 13, 18884, 10353, 13, 18884, 9657, 29898, 13, 462, 1678, 921, 29922, 18448, 29918, 16700, 29892, 13, 462, 1678, 343, 11759, 15060, 29918, 20034, 29961, 29916, 22322, 29896, 29900, 29899, 29896, 29896, 2033, 363, 921, 297, 4723, 29918, 16700, 1402, 13, 462, 1678, 1024, 2433, 29896, 29900, 314, 29899, 29896, 29906, 3358, 742, 13, 462, 1678, 1134, 2433, 1646, 29915, 13, 18884, 10353, 13, 18884, 9657, 29898, 13, 462, 1678, 921, 29922, 18448, 29918, 16700, 29892, 13, 462, 1678, 343, 11759, 15060, 29918, 20034, 29961, 29916, 22322, 29896, 29906, 29899, 29896, 29941, 2033, 363, 921, 297, 4723, 29918, 16700, 1402, 13, 462, 1678, 1024, 2433, 29896, 29906, 3358, 29899, 29906, 3358, 742, 13, 462, 1678, 1134, 2433, 1646, 29915, 13, 18884, 10353, 13, 18884, 9657, 29898, 13, 462, 1678, 921, 29922, 18448, 29918, 16700, 29892, 13, 462, 1678, 343, 11759, 15060, 29918, 20034, 29961, 29916, 22322, 29896, 29946, 29899, 29896, 29945, 2033, 363, 921, 297, 4723, 29918, 16700, 1402, 13, 462, 1678, 1024, 2433, 29906, 3358, 29899, 29946, 3358, 742, 13, 462, 1678, 1134, 2433, 1646, 29915, 13, 18884, 10353, 13, 18884, 9657, 29898, 13, 462, 1678, 921, 29922, 18448, 29918, 16700, 29892, 13, 462, 1678, 343, 11759, 15060, 29918, 20034, 29961, 29916, 22322, 29896, 29953, 29899, 29896, 29955, 2033, 363, 921, 297, 4723, 29918, 16700, 1402, 13, 462, 1678, 1024, 2433, 29946, 3358, 29899, 29953, 3358, 742, 13, 462, 1678, 1134, 2433, 1646, 29915, 13, 18884, 10353, 13, 18884, 9657, 29898, 13, 462, 1678, 921, 29922, 18448, 29918, 16700, 29892, 13, 462, 1678, 343, 11759, 15060, 29918, 20034, 29961, 29916, 22322, 29896, 29947, 29899, 29896, 29929, 2033, 363, 921, 297, 4723, 29918, 16700, 1402, 13, 462, 1678, 1024, 2433, 29953, 3358, 29899, 29947, 3358, 742, 13, 462, 1678, 1134, 2433, 1646, 29915, 13, 18884, 10353, 13, 18884, 9657, 29898, 13, 462, 1678, 921, 29922, 18448, 29918, 16700, 29892, 13, 462, 1678, 343, 11759, 15060, 29918, 20034, 29961, 29916, 22322, 29906, 29900, 29899, 29906, 29896, 2033, 363, 921, 297, 4723, 29918, 16700, 1402, 13, 462, 1678, 1024, 2433, 29947, 3358, 29899, 29896, 29900, 3358, 742, 13, 462, 1678, 1134, 2433, 1646, 29915, 13, 18884, 10353, 13, 18884, 9657, 29898, 13, 462, 1678, 921, 29922, 18448, 29918, 16700, 29892, 13, 462, 1678, 343, 11759, 15060, 29918, 20034, 29961, 29916, 22322, 29906, 29906, 29899, 29906, 29941, 2033, 363, 921, 297, 4723, 29918, 16700, 1402, 13, 462, 1678, 1024, 2433, 29896, 29900, 3358, 29899, 29896, 29906, 314, 742, 13, 462, 1678, 1134, 2433, 1646, 29915, 13, 18884, 10353, 13, 9651, 21251, 13, 9651, 5912, 29922, 8977, 29898, 13, 18884, 3611, 2433, 1523, 2415, 349, 3322, 7543, 742, 13, 18884, 2594, 8513, 2433, 1429, 29915, 13, 9651, 1723, 13, 4706, 1723, 13, 13, 1678, 4514, 13, 13, 1678, 396, 3462, 376, 4841, 29908, 304, 1269, 310, 278, 18445, 304, 1209, 701, 304, 278, 3132, 13, 1678, 396, 363, 1350, 572, 1218, 13, 1678, 18999, 353, 6024, 5261, 1169, 975, 931, 3788, 21459, 975, 931, 742, 525, 1523, 2415, 349, 3322, 7543, 2033, 13, 13, 1678, 396, 14806, 278, 13994, 304, 4663, 13, 1678, 396, 18399, 368, 7249, 8566, 6119, 7128, 2486, 29436, 11701, 29892, 12865, 29892, 2992, 13, 1678, 396, 3618, 304, 1009, 4663, 5737, 1237, 13, 1678, 3983, 7249, 353, 4390, 29889, 29881, 17204, 29898, 4262, 29879, 29892, 1067, 29879, 29922, 5317, 368, 29889, 13239, 29889, 20867, 368, 7249, 8566, 6119, 29897, 13, 1678, 736, 18999, 29892, 4262, 7249, 13, 13, 29992, 932, 29889, 13134, 11219, 17519, 29914, 29966, 17519, 29958, 1495, 13, 1753, 5443, 29918, 2248, 29898, 17519, 1125, 13, 1678, 14202, 353, 679, 29918, 17519, 267, 580, 13, 13, 1678, 18999, 29892, 3983, 7249, 353, 25741, 29918, 957, 29918, 2230, 29898, 17519, 29897, 13, 13, 1678, 736, 4050, 29918, 6886, 877, 17519, 29889, 1420, 742, 259, 14202, 353, 14202, 29892, 13, 462, 462, 9651, 5443, 353, 5443, 29892, 13, 462, 462, 9651, 5443, 29918, 1144, 523, 353, 5706, 29918, 17519, 29918, 1144, 523, 29898, 1972, 29918, 2585, 29892, 5443, 511, 13, 462, 462, 9651, 18999, 353, 18999, 29892, 13, 462, 462, 9651, 3983, 7249, 353, 3983, 7249, 29897, 13, 13, 29992, 932, 29889, 13134, 11219, 1495, 13, 1753, 2380, 7295, 13, 13, 1678, 4833, 353, 679, 29918, 2585, 580, 13, 13, 1678, 330, 3032, 3188, 2271, 353, 679, 29918, 3188, 29918, 2271, 580, 13, 13, 1678, 14202, 353, 679, 29918, 17519, 267, 580, 13, 1678, 736, 4050, 29918, 6886, 877, 2248, 29889, 1420, 742, 14202, 353, 14202, 29897, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 623, 29889, 19024, 29918, 1989, 353, 2897, 29889, 332, 2685, 29898, 29906, 29946, 29897, 13, 1678, 1596, 623, 29889, 3126, 29918, 3977, 6119, 13, 1678, 623, 29889, 3389, 29898, 8382, 29922, 5574, 29897, 2 ]
registrations/tasks.py
praekeltfoundation/nurseconnect-registration
0
117983
from datetime import datetime from urllib.parse import urljoin import requests from celery.exceptions import SoftTimeLimitExceeded from django.conf import settings from requests.exceptions import RequestException from temba_client.exceptions import TembaException from temba_client.utils import format_iso8601 from nurseconnect_registration.celery import app from registrations.utils import ( get_rapidpro_contact, get_rapidpro_flow_by_name, tembaclient, ) openhim_session = requests.Session() openhim_session.auth = settings.OPENHIM_AUTH openhim_session.headers.update({"User-Agent": "NurseConnectRegistration"}) @app.task( autoretry_for=(RequestException, SoftTimeLimitExceeded), retry_backoff=True, max_retries=15, acks_late=True, soft_time_limit=10, time_limit=15, ) def send_registration_to_openhim( contact, referral_msisdn, channel, clinic_code, persal, sanc, timestamp, eid ): msisdn = contact[0] uuid = contact[1] response = openhim_session.post( url=urljoin(settings.OPENHIM_URL, "nc/subscription"), json={ "mha": 1, "swt": 7 if channel == "WhatsApp" else 1, "type": 7, "dmsisdn": referral_msisdn or msisdn, "cmsisdn": msisdn, "rmsisdn": None, "faccode": clinic_code, "id": "{}^^^ZAF^TEL".format(msisdn.lstrip("+")), "dob": None, "persal": persal, "sanc": sanc, "encdate": datetime.utcfromtimestamp(timestamp).strftime("%Y%m%d%H%M%S"), "sid": uuid, "eid": eid, }, ) response.raise_for_status() return (response.status_code, response.headers, response.content) @app.task( autoretry_for=(RequestException, SoftTimeLimitExceeded, TembaException), retry_backoff=True, max_retries=15, acks_late=True, soft_time_limit=10, time_limit=15, ) def send_registration_to_rapidpro( contact, msisdn, referral_msisdn, channel, clinic_code, timestamp ): # Create/Update contact contact_data = { "preferred_channel": channel.lower(), "registered_by": referral_msisdn or msisdn, "facility_code": clinic_code, "registration_date": format_iso8601(datetime.fromtimestamp(timestamp)), "reg_source": "mobi-site", } contact = get_rapidpro_contact(msisdn) # Refresh contact so we don't recreate it if contact: uuid = contact.get("uuid") contact = tembaclient.update_contact(uuid, fields=contact_data) else: urns = ["tel:%s" % msisdn] if channel == "WhatsApp": urns.append("whatsapp:%s" % msisdn.replace("+", "")) contact = tembaclient.create_contact(urns=urns, fields=contact_data) # Start the contact on the registration flow flow = get_rapidpro_flow_by_name("post registration") tembaclient.create_flow_start(flow.uuid, contacts=[contact.uuid]) return (msisdn, contact.uuid)
[ 1, 515, 12865, 1053, 12865, 13, 3166, 3142, 1982, 29889, 5510, 1053, 3142, 7122, 13, 13, 5215, 7274, 13, 3166, 6432, 708, 29889, 11739, 29879, 1053, 1105, 615, 2481, 24445, 1252, 3947, 287, 13, 3166, 9557, 29889, 5527, 1053, 6055, 13, 3166, 7274, 29889, 11739, 29879, 1053, 10729, 2451, 13, 3166, 1350, 2291, 29918, 4645, 29889, 11739, 29879, 1053, 323, 1590, 29874, 2451, 13, 3166, 1350, 2291, 29918, 4645, 29889, 13239, 1053, 3402, 29918, 10718, 29947, 29953, 29900, 29896, 13, 13, 3166, 5595, 344, 6915, 29918, 1727, 8306, 29889, 2242, 708, 1053, 623, 13, 3166, 21557, 800, 29889, 13239, 1053, 313, 13, 1678, 679, 29918, 2390, 333, 771, 29918, 12346, 29892, 13, 1678, 679, 29918, 2390, 333, 771, 29918, 1731, 29918, 1609, 29918, 978, 29892, 13, 1678, 1350, 29890, 562, 1593, 29892, 13, 29897, 13, 13, 3150, 26994, 29918, 7924, 353, 7274, 29889, 7317, 580, 13, 3150, 26994, 29918, 7924, 29889, 5150, 353, 6055, 29889, 4590, 1430, 29950, 7833, 29918, 20656, 29950, 13, 3150, 26994, 29918, 7924, 29889, 13662, 29889, 5504, 3319, 29908, 2659, 29899, 19661, 1115, 376, 29940, 332, 344, 17918, 4597, 8306, 29908, 1800, 13, 13, 13, 29992, 932, 29889, 7662, 29898, 13, 1678, 8478, 27184, 29918, 1454, 7607, 3089, 2451, 29892, 1105, 615, 2481, 24445, 1252, 3947, 287, 511, 13, 1678, 337, 2202, 29918, 1627, 2696, 29922, 5574, 29892, 13, 1678, 4236, 29918, 2267, 2722, 29922, 29896, 29945, 29892, 13, 1678, 263, 4684, 29918, 9632, 29922, 5574, 29892, 13, 1678, 4964, 29918, 2230, 29918, 13400, 29922, 29896, 29900, 29892, 13, 1678, 931, 29918, 13400, 29922, 29896, 29945, 29892, 13, 29897, 13, 1753, 3638, 29918, 1727, 8306, 29918, 517, 29918, 3150, 26994, 29898, 13, 1678, 6958, 29892, 2737, 1705, 29918, 1516, 275, 5200, 29892, 8242, 29892, 24899, 293, 29918, 401, 29892, 3736, 284, 29892, 269, 4564, 29892, 14334, 29892, 321, 333, 13, 1125, 13, 1678, 10887, 275, 5200, 353, 6958, 29961, 29900, 29962, 13, 1678, 318, 5416, 353, 6958, 29961, 29896, 29962, 13, 1678, 2933, 353, 1722, 26994, 29918, 7924, 29889, 2490, 29898, 13, 4706, 3142, 29922, 2271, 7122, 29898, 11027, 29889, 4590, 1430, 29950, 7833, 29918, 4219, 29892, 376, 17608, 29914, 1491, 22371, 4968, 13, 4706, 4390, 3790, 13, 9651, 376, 29885, 2350, 1115, 29871, 29896, 29892, 13, 9651, 376, 2774, 29873, 1115, 29871, 29955, 565, 8242, 1275, 376, 8809, 1446, 2052, 29908, 1683, 29871, 29896, 29892, 13, 9651, 376, 1853, 1115, 29871, 29955, 29892, 13, 9651, 376, 29881, 1516, 275, 5200, 1115, 2737, 1705, 29918, 1516, 275, 5200, 470, 10887, 275, 5200, 29892, 13, 9651, 376, 29883, 1516, 275, 5200, 1115, 10887, 275, 5200, 29892, 13, 9651, 376, 29878, 1516, 275, 5200, 1115, 6213, 29892, 13, 9651, 376, 17470, 401, 1115, 24899, 293, 29918, 401, 29892, 13, 9651, 376, 333, 1115, 29850, 2137, 16672, 29999, 5098, 29985, 4330, 29931, 1642, 4830, 29898, 1516, 275, 5200, 29889, 29880, 17010, 703, 29974, 1159, 511, 13, 9651, 376, 11152, 1115, 6213, 29892, 13, 9651, 376, 6774, 284, 1115, 3736, 284, 29892, 13, 9651, 376, 29879, 4564, 1115, 269, 4564, 29892, 13, 9651, 376, 3977, 1256, 1115, 12865, 29889, 329, 29883, 3166, 16394, 29898, 16394, 467, 710, 615, 603, 11702, 29979, 29995, 29885, 29995, 29881, 29995, 29950, 29995, 29924, 29995, 29903, 4968, 13, 9651, 376, 29879, 333, 1115, 318, 5416, 29892, 13, 9651, 376, 29872, 333, 1115, 321, 333, 29892, 13, 4706, 2981, 13, 1678, 1723, 13, 1678, 2933, 29889, 22692, 29918, 1454, 29918, 4882, 580, 13, 1678, 736, 313, 5327, 29889, 4882, 29918, 401, 29892, 2933, 29889, 13662, 29892, 2933, 29889, 3051, 29897, 13, 13, 13, 29992, 932, 29889, 7662, 29898, 13, 1678, 8478, 27184, 29918, 1454, 7607, 3089, 2451, 29892, 1105, 615, 2481, 24445, 1252, 3947, 287, 29892, 323, 1590, 29874, 2451, 511, 13, 1678, 337, 2202, 29918, 1627, 2696, 29922, 5574, 29892, 13, 1678, 4236, 29918, 2267, 2722, 29922, 29896, 29945, 29892, 13, 1678, 263, 4684, 29918, 9632, 29922, 5574, 29892, 13, 1678, 4964, 29918, 2230, 29918, 13400, 29922, 29896, 29900, 29892, 13, 1678, 931, 29918, 13400, 29922, 29896, 29945, 29892, 13, 29897, 13, 1753, 3638, 29918, 1727, 8306, 29918, 517, 29918, 2390, 333, 771, 29898, 13, 1678, 6958, 29892, 10887, 275, 5200, 29892, 2737, 1705, 29918, 1516, 275, 5200, 29892, 8242, 29892, 24899, 293, 29918, 401, 29892, 14334, 13, 1125, 13, 1678, 396, 6204, 29914, 6422, 6958, 13, 1678, 6958, 29918, 1272, 353, 426, 13, 4706, 376, 1457, 14373, 29918, 12719, 1115, 8242, 29889, 13609, 3285, 13, 4706, 376, 9573, 287, 29918, 1609, 1115, 2737, 1705, 29918, 1516, 275, 5200, 470, 10887, 275, 5200, 29892, 13, 4706, 376, 17470, 1793, 29918, 401, 1115, 24899, 293, 29918, 401, 29892, 13, 4706, 376, 1727, 8306, 29918, 1256, 1115, 3402, 29918, 10718, 29947, 29953, 29900, 29896, 29898, 12673, 29889, 3166, 16394, 29898, 16394, 8243, 13, 4706, 376, 1727, 29918, 4993, 1115, 376, 29885, 15647, 29899, 2746, 613, 13, 1678, 500, 13, 1678, 6958, 353, 679, 29918, 2390, 333, 771, 29918, 12346, 29898, 1516, 275, 5200, 29897, 29871, 396, 9897, 3781, 6958, 577, 591, 1016, 29915, 29873, 337, 3258, 372, 13, 1678, 565, 6958, 29901, 13, 4706, 318, 5416, 353, 6958, 29889, 657, 703, 25118, 1159, 13, 4706, 6958, 353, 1350, 29890, 562, 1593, 29889, 5504, 29918, 12346, 29898, 25118, 29892, 4235, 29922, 12346, 29918, 1272, 29897, 13, 1678, 1683, 29901, 13, 4706, 5065, 1983, 353, 6796, 28497, 16664, 29879, 29908, 1273, 10887, 275, 5200, 29962, 13, 4706, 565, 8242, 1275, 376, 8809, 1446, 2052, 1115, 13, 9651, 5065, 1983, 29889, 4397, 703, 1332, 1446, 932, 16664, 29879, 29908, 1273, 10887, 275, 5200, 29889, 6506, 703, 29974, 613, 5124, 876, 13, 4706, 6958, 353, 1350, 29890, 562, 1593, 29889, 3258, 29918, 12346, 29898, 595, 29879, 29922, 595, 29879, 29892, 4235, 29922, 12346, 29918, 1272, 29897, 13, 13, 1678, 396, 7370, 278, 6958, 373, 278, 22583, 4972, 13, 1678, 4972, 353, 679, 29918, 2390, 333, 771, 29918, 1731, 29918, 1609, 29918, 978, 703, 2490, 22583, 1159, 13, 1678, 1350, 29890, 562, 1593, 29889, 3258, 29918, 1731, 29918, 2962, 29898, 1731, 29889, 25118, 29892, 25957, 11759, 12346, 29889, 25118, 2314, 13, 13, 1678, 736, 313, 1516, 275, 5200, 29892, 6958, 29889, 25118, 29897, 13, 2 ]
openbook_posts/migrations/0036_auto_20190620_1957.py
TamaraAbells/okuna-api
164
181159
# Generated by Django 2.2.2 on 2019-06-20 17:57 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('openbook_common', '0013_language'), ('openbook_posts', '0035_auto_20190620_1357'), ] operations = [ migrations.AddField( model_name='postcomment', name='language', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='post_comments', to='openbook_common.Language'), ), migrations.AlterField( model_name='postcomment', name='text', field=models.TextField(max_length=1500, verbose_name='text'), ), ]
[ 1, 396, 3251, 630, 491, 15337, 29871, 29906, 29889, 29906, 29889, 29906, 373, 29871, 29906, 29900, 29896, 29929, 29899, 29900, 29953, 29899, 29906, 29900, 29871, 29896, 29955, 29901, 29945, 29955, 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, 3150, 2909, 29918, 9435, 742, 525, 29900, 29900, 29896, 29941, 29918, 11675, 5477, 13, 4706, 6702, 3150, 2909, 29918, 14080, 742, 525, 29900, 29900, 29941, 29945, 29918, 6921, 29918, 29906, 29900, 29896, 29929, 29900, 29953, 29906, 29900, 29918, 29896, 29941, 29945, 29955, 5477, 13, 1678, 4514, 13, 13, 1678, 6931, 353, 518, 13, 4706, 9725, 800, 29889, 2528, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 2490, 9342, 742, 13, 9651, 1024, 2433, 11675, 742, 13, 9651, 1746, 29922, 9794, 29889, 27755, 2558, 29898, 4304, 29922, 5574, 29892, 373, 29918, 8143, 29922, 14095, 29889, 2585, 29889, 9794, 29889, 311, 1026, 291, 29889, 10490, 29918, 10074, 29892, 4475, 29918, 978, 2433, 2490, 29918, 21032, 742, 304, 2433, 3150, 2909, 29918, 9435, 29889, 21233, 5477, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 2499, 357, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 2490, 9342, 742, 13, 9651, 1024, 2433, 726, 742, 13, 9651, 1746, 29922, 9794, 29889, 15778, 29898, 3317, 29918, 2848, 29922, 29896, 29945, 29900, 29900, 29892, 26952, 29918, 978, 2433, 726, 5477, 13, 4706, 10353, 13, 1678, 4514, 13, 2 ]
src/spring-cloud/azext_spring_cloud/_validators_enterprise.py
SanyaKochhar/azure-cli-extensions
2
16247
<gh_stars>1-10 # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- # pylint: disable=too-few-public-methods, unused-argument, redefined-builtin from azure.cli.core.azclierror import ClientRequestError from ._util_enterprise import is_enterprise_tier def only_support_enterprise(cmd, namespace): if namespace.resource_group and namespace.service and not is_enterprise_tier(cmd, namespace.resource_group, namespace.service): raise ClientRequestError("'{}' only supports for Enterprise tier Spring instance.".format(namespace.command)) def not_support_enterprise(cmd, namespace): if namespace.resource_group and namespace.service and is_enterprise_tier(cmd, namespace.resource_group, namespace.service): raise ClientRequestError("'{}' doesn't support for Enterprise tier Spring instance.".format(namespace.command))
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 1378, 5634, 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, 19405, 2472, 29889, 13, 29937, 448, 2683, 2683, 2683, 2683, 2683, 1378, 5634, 13, 13, 29937, 282, 2904, 524, 29901, 11262, 29922, 517, 29877, 29899, 29888, 809, 29899, 3597, 29899, 23515, 29892, 443, 3880, 29899, 23516, 29892, 337, 12119, 29899, 16145, 262, 13, 13, 3166, 15699, 29889, 11303, 29889, 3221, 29889, 834, 11303, 2704, 1053, 12477, 3089, 2392, 13, 3166, 869, 29918, 4422, 29918, 5893, 7734, 1053, 338, 29918, 5893, 7734, 29918, 29873, 631, 13, 13, 13, 1753, 871, 29918, 5924, 29918, 5893, 7734, 29898, 9006, 29892, 7397, 1125, 13, 1678, 565, 7397, 29889, 10314, 29918, 2972, 322, 7397, 29889, 5509, 322, 451, 338, 29918, 5893, 7734, 29918, 29873, 631, 29898, 9006, 29892, 7397, 29889, 10314, 29918, 2972, 29892, 7397, 29889, 5509, 1125, 13, 4706, 12020, 12477, 3089, 2392, 703, 29915, 8875, 29915, 871, 11286, 363, 9041, 7734, 26485, 7206, 2777, 1213, 29889, 4830, 29898, 22377, 29889, 6519, 876, 13, 13, 13, 1753, 451, 29918, 5924, 29918, 5893, 7734, 29898, 9006, 29892, 7397, 1125, 13, 1678, 565, 7397, 29889, 10314, 29918, 2972, 322, 7397, 29889, 5509, 322, 338, 29918, 5893, 7734, 29918, 29873, 631, 29898, 9006, 29892, 7397, 29889, 10314, 29918, 2972, 29892, 7397, 29889, 5509, 1125, 13, 4706, 12020, 12477, 3089, 2392, 703, 29915, 8875, 29915, 1838, 29915, 29873, 2304, 363, 9041, 7734, 26485, 7206, 2777, 1213, 29889, 4830, 29898, 22377, 29889, 6519, 876, 13, 2 ]
lista_par_impar.py
isaberamos/Programinhas
1
172490
princ = [[], []] valor = 0 for c in range(1,8): valor = int(input(f"Digite o {c}º valor: ")) if valor % 2 == 0: princ[0].append(valor) else: if valor % 2 != 0: princ[1].append(valor) princ[0].sort() princ[1].sort() print(f"Os números pares são: {princ[0]}") print(f"Os números ímpares são: {princ[1]}")
[ 1, 544, 3742, 353, 5519, 1402, 5159, 29962, 13, 791, 272, 353, 29871, 29900, 13, 1454, 274, 297, 3464, 29898, 29896, 29892, 29947, 1125, 13, 1678, 16497, 353, 938, 29898, 2080, 29898, 29888, 29908, 14991, 568, 288, 426, 29883, 29913, 30105, 16497, 29901, 376, 876, 13, 1678, 565, 16497, 1273, 29871, 29906, 1275, 29871, 29900, 29901, 13, 4706, 544, 3742, 29961, 29900, 1822, 4397, 29898, 791, 272, 29897, 13, 1678, 1683, 29901, 13, 4706, 565, 16497, 1273, 29871, 29906, 2804, 29871, 29900, 29901, 13, 9651, 544, 3742, 29961, 29896, 1822, 4397, 29898, 791, 272, 29897, 13, 558, 3742, 29961, 29900, 1822, 6605, 580, 13, 558, 3742, 29961, 29896, 1822, 6605, 580, 13, 2158, 29898, 29888, 29908, 24768, 12158, 359, 610, 267, 12777, 29901, 426, 558, 3742, 29961, 29900, 12258, 1159, 13, 2158, 29898, 29888, 29908, 24768, 12158, 359, 29871, 5487, 862, 267, 12777, 29901, 426, 558, 3742, 29961, 29896, 12258, 1159, 13, 2 ]
fancylog/tools/git.py
stephenlenzi/fancylog
3
174050
""" git =============== Wrappers around gitpython to return information about the git repository for debugging """ class GitPythonError(Exception): """ Exception if gitpython cannot be found (Typical in production environments). """ pass class GitEnvironmentError(Exception): """ Exception if gitpython fails (Typical in production environments). """ pass class GitHead: """ Class to parse a repo.head.commit object from gitpython, and return more informative properties """ def __init__(self, head_commit): self.hash = head_commit.hexsha self.committer_name = head_commit.committer.name self.committer_email = head_commit.committer.email self.message = head_commit.summary self.datetime = head_commit.authored_datetime.strftime( "Date: %Y-%m-%d, Time: %H-%M-%S" ) class GitInfo: """ Class to parse a repo object from gitpython, and return more informative properties """ def __init__(self, repo): self.head = GitHead(repo.head.commit) def get_git_info(repo_path): """ Returns a class with useful information about the git repository. (if there is one). Will only work with "dev" installs (otherwise gitpython is not installed) :return: """ try: import git except ImportError: raise GitPythonError return None try: repo = git.Repo(repo_path) return GitInfo(repo) except git.InvalidGitRepositoryError: raise GitEnvironmentError return None
[ 1, 9995, 13, 5559, 13, 4936, 2751, 25512, 13, 13, 29956, 336, 22437, 2820, 6315, 4691, 304, 736, 2472, 1048, 278, 6315, 9810, 13, 1454, 13490, 13, 13, 15945, 29908, 13, 13, 13, 1990, 11786, 11980, 2392, 29898, 2451, 1125, 13, 1678, 9995, 13, 1678, 8960, 565, 6315, 4691, 2609, 367, 1476, 313, 24933, 936, 297, 5802, 13, 1678, 23136, 467, 13, 1678, 9995, 13, 13, 1678, 1209, 13, 13, 13, 1990, 11786, 18649, 2392, 29898, 2451, 1125, 13, 1678, 9995, 13, 1678, 8960, 565, 6315, 4691, 29871, 8465, 313, 24933, 936, 297, 5802, 23136, 467, 13, 1678, 9995, 13, 13, 1678, 1209, 13, 13, 13, 1990, 11786, 5494, 29901, 13, 1678, 9995, 13, 1678, 4134, 304, 6088, 263, 13761, 29889, 2813, 29889, 15060, 1203, 515, 6315, 4691, 29892, 322, 736, 13, 1678, 901, 1871, 1230, 4426, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2343, 29918, 15060, 1125, 13, 4706, 1583, 29889, 8568, 353, 2343, 29918, 15060, 29889, 20970, 17051, 13, 4706, 1583, 29889, 2055, 5171, 29918, 978, 353, 2343, 29918, 15060, 29889, 2055, 5171, 29889, 978, 13, 4706, 1583, 29889, 2055, 5171, 29918, 5269, 353, 2343, 29918, 15060, 29889, 2055, 5171, 29889, 5269, 13, 4706, 1583, 29889, 4906, 353, 2343, 29918, 15060, 29889, 7727, 13, 4706, 1583, 29889, 12673, 353, 2343, 29918, 15060, 29889, 8921, 287, 29918, 12673, 29889, 710, 615, 603, 29898, 13, 9651, 376, 2539, 29901, 1273, 29979, 19222, 29885, 19222, 29881, 29892, 5974, 29901, 1273, 29950, 19222, 29924, 19222, 29903, 29908, 13, 4706, 1723, 13, 13, 13, 1990, 11786, 3401, 29901, 13, 1678, 9995, 13, 1678, 4134, 304, 6088, 263, 13761, 1203, 515, 6315, 4691, 29892, 322, 736, 901, 1871, 1230, 13, 1678, 4426, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 13761, 1125, 13, 4706, 1583, 29889, 2813, 353, 11786, 5494, 29898, 20095, 29889, 2813, 29889, 15060, 29897, 13, 13, 13, 1753, 679, 29918, 5559, 29918, 3888, 29898, 20095, 29918, 2084, 1125, 13, 1678, 9995, 13, 1678, 16969, 263, 770, 411, 5407, 2472, 1048, 278, 6315, 9810, 29889, 13, 1678, 313, 361, 727, 338, 697, 467, 2811, 871, 664, 411, 376, 3359, 29908, 2601, 29879, 313, 1228, 3538, 13, 1678, 6315, 4691, 338, 451, 5130, 29897, 13, 1678, 584, 2457, 29901, 13, 1678, 9995, 13, 13, 1678, 1018, 29901, 13, 4706, 1053, 6315, 13, 13, 1678, 5174, 16032, 2392, 29901, 13, 4706, 12020, 11786, 11980, 2392, 13, 4706, 736, 6213, 13, 13, 1678, 1018, 29901, 13, 4706, 13761, 353, 6315, 29889, 5612, 29877, 29898, 20095, 29918, 2084, 29897, 13, 4706, 736, 11786, 3401, 29898, 20095, 29897, 13, 13, 1678, 5174, 6315, 29889, 13919, 28712, 11481, 2392, 29901, 13, 4706, 12020, 11786, 18649, 2392, 13, 4706, 736, 6213, 13, 2 ]
project/acorta/models.py
cborao/Django-url-shortener
0
135088
<filename>project/acorta/models.py from django.db import models class Content(models.Model): key = models.CharField(max_length=200) url = models.CharField(max_length=200) def __str__(self): return self.key + ": " + self.url
[ 1, 529, 9507, 29958, 4836, 29914, 562, 441, 29874, 29914, 9794, 29889, 2272, 13, 3166, 9557, 29889, 2585, 1053, 4733, 13, 13, 1990, 10576, 29898, 9794, 29889, 3195, 1125, 13, 1678, 1820, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29906, 29900, 29900, 29897, 13, 1678, 3142, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29906, 29900, 29900, 29897, 13, 1678, 822, 4770, 710, 12035, 1311, 1125, 13, 4706, 736, 1583, 29889, 1989, 718, 29242, 376, 718, 1583, 29889, 2271, 13, 2 ]
users/tokens.py
maks-nurgazy/diploma-project
0
27165
<reponame>maks-nurgazy/diploma-project from rest_framework_simplejwt.tokens import RefreshToken def get_jwt_tokens_for_user(user, **kwargs): """ Generates a refresh token for the valid user """ refresh = RefreshToken.for_user(user) return str(refresh), str(refresh.access_token)
[ 1, 529, 276, 1112, 420, 29958, 29885, 10327, 29899, 29876, 2007, 24683, 29914, 6051, 572, 4125, 29899, 4836, 13, 3166, 1791, 29918, 4468, 29918, 12857, 29926, 14554, 29889, 517, 12360, 1053, 9897, 3781, 6066, 13, 13, 13, 1753, 679, 29918, 29926, 14554, 29918, 517, 12360, 29918, 1454, 29918, 1792, 29898, 1792, 29892, 3579, 19290, 1125, 13, 1678, 9995, 13, 1678, 3251, 1078, 263, 11086, 5993, 363, 278, 2854, 1404, 13, 1678, 9995, 13, 1678, 11086, 353, 9897, 3781, 6066, 29889, 1454, 29918, 1792, 29898, 1792, 29897, 13, 13, 1678, 736, 851, 29898, 22379, 511, 851, 29898, 22379, 29889, 5943, 29918, 6979, 29897, 13, 2 ]
src/database/academics_db.py
git-vish/CodeSpaceAPI
1
119835
<filename>src/database/academics_db.py<gh_stars>1-10 """Database operations for Academics API. """ # Author Info __author__ = '<NAME>' __date__ = '10/07/21' __email__ = '<EMAIL>' # Library Imports from typing import Dict, List, Optional # Own Imports from src.settings import BASE_SUBJECT, BASE_LAB, BASE_RESOURCE def get_subject_of_sem(semester: int) -> Optional[List[Dict]]: """Fetch subjects with of specified semester. Arguments: --------- semester: Semester [3...8]. Returns: --------- List of subject dictionaries. """ try: return next(BASE_SUBJECT.fetch(query={'semester': semester})) except Exception: return None def get_subjects(year: Optional[int] = 0) -> Optional[List[Dict]]: """Fetch list of subjects. Fetch subjects for specified year if year is 0, fetch all. Arguments: --------- year: Academics year. Returns: --------- List of Dictionaries for each subject. """ if not year: return next(BASE_SUBJECT.fetch()) if year not in {2, 3, 4}: return None return next(BASE_SUBJECT.fetch(query={'year': year})) def get_labs(year: Optional[int] = 0) -> Optional[List[Dict]]: """Fetch list of labs. Fetch labs for specified year if year is 0, fetch all. Arguments: --------- year: Academics year. Returns: --------- List of Dictionaries for each lab. """ if not year: return next(BASE_LAB.fetch()) if year not in {2, 3, 4}: return None return next(BASE_LAB.fetch(query={'year': year})) def create_resource(subject: str, title: str, category: str, user: str, url: str) -> bool: """Create new resource. Arguments: --------- subject: Subject code. title: Resource title. category: Type of resource. [library, exam] user: User's database key. url: Resource file url. Returns: --------- True if resource gets created else False. """ resource = { 'subject': subject, 'title': title, 'category': category, 'user': user, 'url': url } try: BASE_RESOURCE.put(resource) except Exception as e: print(e) return False return True def get_resources(subject: str) -> List[Dict]: """Fetch resources for a subject. Arguments: --------- subject: Subject code. Returns: --------- List of resource dictionaries with matching subject code. """ return next(BASE_RESOURCE.fetch(query={'subject': subject}))
[ 1, 529, 9507, 29958, 4351, 29914, 9803, 29914, 562, 18401, 1199, 29918, 2585, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 15945, 29908, 9112, 6931, 363, 16146, 1199, 3450, 29889, 13, 15945, 29908, 13, 13, 29937, 13361, 22140, 13, 1649, 8921, 1649, 353, 12801, 5813, 16299, 13, 1649, 1256, 1649, 353, 525, 29896, 29900, 29914, 29900, 29955, 29914, 29906, 29896, 29915, 13, 1649, 5269, 1649, 353, 12801, 26862, 6227, 16299, 13, 13, 29937, 9538, 1954, 4011, 13, 3166, 19229, 1053, 360, 919, 29892, 2391, 29892, 28379, 13, 13, 29937, 438, 1233, 1954, 4011, 13, 3166, 4765, 29889, 11027, 1053, 350, 8127, 29918, 20633, 17637, 29892, 350, 8127, 29918, 24461, 29892, 350, 8127, 29918, 1525, 27839, 4741, 13, 13, 13, 1753, 679, 29918, 16009, 29918, 974, 29918, 12846, 29898, 12846, 4156, 29901, 938, 29897, 1599, 28379, 29961, 1293, 29961, 21533, 5262, 29901, 13, 1678, 9995, 20927, 17800, 411, 310, 6790, 3031, 4156, 29889, 13, 13, 1678, 11842, 9331, 29901, 13, 1678, 448, 1378, 13, 4706, 3031, 4156, 29901, 9444, 4156, 518, 29941, 856, 29947, 1822, 13, 13, 1678, 16969, 29901, 13, 1678, 448, 1378, 13, 4706, 2391, 310, 4967, 21503, 4314, 29889, 13, 1678, 9995, 13, 1678, 1018, 29901, 13, 4706, 736, 2446, 29898, 25416, 29918, 20633, 17637, 29889, 9155, 29898, 1972, 3790, 29915, 12846, 4156, 2396, 3031, 4156, 20073, 13, 1678, 5174, 8960, 29901, 13, 4706, 736, 6213, 13, 13, 13, 1753, 679, 29918, 16009, 29879, 29898, 6360, 29901, 28379, 29961, 524, 29962, 353, 29871, 29900, 29897, 1599, 28379, 29961, 1293, 29961, 21533, 5262, 29901, 13, 1678, 9995, 20927, 1051, 310, 17800, 29889, 13, 13, 1678, 383, 3486, 17800, 363, 6790, 1629, 565, 1629, 338, 29871, 29900, 29892, 6699, 599, 29889, 13, 13, 1678, 11842, 9331, 29901, 13, 1678, 448, 1378, 13, 4706, 1629, 29901, 16146, 1199, 1629, 29889, 13, 13, 1678, 16969, 29901, 13, 1678, 448, 1378, 13, 4706, 2391, 310, 360, 2463, 4314, 363, 1269, 4967, 29889, 13, 1678, 9995, 13, 1678, 565, 451, 1629, 29901, 13, 4706, 736, 2446, 29898, 25416, 29918, 20633, 17637, 29889, 9155, 3101, 13, 1678, 565, 1629, 451, 297, 426, 29906, 29892, 29871, 29941, 29892, 29871, 29946, 6177, 13, 4706, 736, 6213, 13, 1678, 736, 2446, 29898, 25416, 29918, 20633, 17637, 29889, 9155, 29898, 1972, 3790, 29915, 6360, 2396, 1629, 20073, 13, 13, 13, 1753, 679, 29918, 29880, 6897, 29898, 6360, 29901, 28379, 29961, 524, 29962, 353, 29871, 29900, 29897, 1599, 28379, 29961, 1293, 29961, 21533, 5262, 29901, 13, 1678, 9995, 20927, 1051, 310, 301, 6897, 29889, 13, 13, 1678, 383, 3486, 301, 6897, 363, 6790, 1629, 565, 1629, 338, 29871, 29900, 29892, 6699, 599, 29889, 13, 13, 1678, 11842, 9331, 29901, 13, 1678, 448, 1378, 13, 4706, 1629, 29901, 16146, 1199, 1629, 29889, 13, 13, 1678, 16969, 29901, 13, 1678, 448, 1378, 13, 4706, 2391, 310, 360, 2463, 4314, 363, 1269, 9775, 29889, 13, 1678, 9995, 13, 1678, 565, 451, 1629, 29901, 13, 4706, 736, 2446, 29898, 25416, 29918, 24461, 29889, 9155, 3101, 13, 1678, 565, 1629, 451, 297, 426, 29906, 29892, 29871, 29941, 29892, 29871, 29946, 6177, 13, 4706, 736, 6213, 13, 1678, 736, 2446, 29898, 25416, 29918, 24461, 29889, 9155, 29898, 1972, 3790, 29915, 6360, 2396, 1629, 20073, 13, 13, 13, 1753, 1653, 29918, 10314, 29898, 16009, 29901, 851, 29892, 3611, 29901, 851, 29892, 7663, 29901, 851, 29892, 1404, 29901, 851, 29892, 3142, 29901, 851, 29897, 1599, 6120, 29901, 13, 1678, 9995, 4391, 716, 6503, 29889, 13, 13, 1678, 11842, 9331, 29901, 13, 1678, 448, 1378, 13, 4706, 4967, 29901, 3323, 622, 775, 29889, 13, 4706, 3611, 29901, 18981, 3611, 29889, 13, 4706, 7663, 29901, 5167, 310, 6503, 29889, 518, 5258, 29892, 4392, 29962, 13, 4706, 1404, 29901, 4911, 29915, 29879, 2566, 1820, 29889, 13, 4706, 3142, 29901, 18981, 934, 3142, 29889, 13, 13, 1678, 16969, 29901, 13, 1678, 448, 1378, 13, 4706, 5852, 565, 6503, 4947, 2825, 1683, 7700, 29889, 13, 1678, 9995, 13, 1678, 6503, 353, 426, 13, 4706, 525, 16009, 2396, 4967, 29892, 13, 4706, 525, 3257, 2396, 3611, 29892, 13, 4706, 525, 7320, 2396, 7663, 29892, 13, 4706, 525, 1792, 2396, 1404, 29892, 13, 4706, 525, 2271, 2396, 3142, 13, 1678, 500, 13, 1678, 1018, 29901, 13, 4706, 350, 8127, 29918, 1525, 27839, 4741, 29889, 649, 29898, 10314, 29897, 13, 1678, 5174, 8960, 408, 321, 29901, 13, 4706, 1596, 29898, 29872, 29897, 13, 4706, 736, 7700, 13, 1678, 736, 5852, 13, 13, 13, 1753, 679, 29918, 13237, 29898, 16009, 29901, 851, 29897, 1599, 2391, 29961, 21533, 5387, 13, 1678, 9995, 20927, 7788, 363, 263, 4967, 29889, 13, 13, 1678, 11842, 9331, 29901, 13, 1678, 448, 1378, 13, 4706, 4967, 29901, 3323, 622, 775, 29889, 13, 13, 1678, 16969, 29901, 13, 1678, 448, 1378, 13, 4706, 2391, 310, 6503, 21503, 4314, 411, 9686, 4967, 775, 29889, 13, 1678, 9995, 13, 1678, 736, 2446, 29898, 25416, 29918, 1525, 27839, 4741, 29889, 9155, 29898, 1972, 3790, 29915, 16009, 2396, 4967, 20073, 13, 2 ]
inkcut-master/inkcut/device/protocols/debug.py
ilnanny/Inkscape-addons
3
27189
# -*- coding: utf-8 -*- ''' Created on Oct 23, 2015 @author: jrm ''' from inkcut.device.plugin import DeviceProtocol from inkcut.core.utils import async_sleep, log class DebugProtocol(DeviceProtocol): """ A protocol that just logs what is called """ def connection_made(self): log.debug("protocol.connectionMade()") def move(self, x, y, z, absolute=True): log.debug("protocol.move({x},{y},{z})".format(x=x, y=y, z=z)) #: Wait some time before we get there return async_sleep(0.1) def set_pen(self, p): log.debug("protocol.set_pen({p})".format(p=p)) def set_velocity(self, v): log.debug("protocol.set_velocity({v})".format(v=v)) def set_force(self, f): log.debug("protocol.set_force({f})".format(f=f)) def data_received(self, data): log.debug("protocol.data_received({}".format(data)) def connection_lost(self): log.debug("protocol.connection_lost()")
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 12008, 13, 20399, 373, 4756, 29871, 29906, 29941, 29892, 29871, 29906, 29900, 29896, 29945, 13, 13, 29992, 8921, 29901, 432, 1758, 13, 12008, 13, 3166, 297, 29895, 7582, 29889, 10141, 29889, 8582, 1053, 21830, 17830, 13, 3166, 297, 29895, 7582, 29889, 3221, 29889, 13239, 1053, 7465, 29918, 17059, 29892, 1480, 13, 13, 13, 1990, 16171, 17830, 29898, 11501, 17830, 1125, 13, 1678, 9995, 319, 9608, 393, 925, 10748, 825, 338, 2000, 9995, 13, 1678, 822, 3957, 29918, 26350, 29898, 1311, 1125, 13, 4706, 1480, 29889, 8382, 703, 20464, 29889, 9965, 29924, 1943, 580, 1159, 13, 268, 13, 1678, 822, 4337, 29898, 1311, 29892, 921, 29892, 343, 29892, 503, 29892, 8380, 29922, 5574, 1125, 13, 4706, 1480, 29889, 8382, 703, 20464, 29889, 11631, 3319, 29916, 29087, 29891, 29087, 29920, 1800, 1642, 4830, 29898, 29916, 29922, 29916, 29892, 343, 29922, 29891, 29892, 503, 29922, 29920, 876, 13, 4706, 396, 29901, 20340, 777, 931, 1434, 591, 679, 727, 13, 4706, 736, 7465, 29918, 17059, 29898, 29900, 29889, 29896, 29897, 13, 308, 13, 1678, 822, 731, 29918, 2238, 29898, 1311, 29892, 282, 1125, 13, 4706, 1480, 29889, 8382, 703, 20464, 29889, 842, 29918, 2238, 3319, 29886, 1800, 1642, 4830, 29898, 29886, 29922, 29886, 876, 13, 308, 13, 1678, 822, 731, 29918, 955, 25245, 29898, 1311, 29892, 325, 1125, 13, 4706, 1480, 29889, 8382, 703, 20464, 29889, 842, 29918, 955, 25245, 3319, 29894, 1800, 1642, 4830, 29898, 29894, 29922, 29894, 876, 13, 308, 13, 1678, 822, 731, 29918, 10118, 29898, 1311, 29892, 285, 1125, 13, 4706, 1480, 29889, 8382, 703, 20464, 29889, 842, 29918, 10118, 3319, 29888, 1800, 1642, 4830, 29898, 29888, 29922, 29888, 876, 13, 13, 1678, 822, 848, 29918, 13556, 2347, 29898, 1311, 29892, 848, 1125, 13, 4706, 1480, 29889, 8382, 703, 20464, 29889, 1272, 29918, 13556, 2347, 3319, 29913, 1642, 4830, 29898, 1272, 876, 13, 13, 1678, 822, 3957, 29918, 18767, 29898, 1311, 1125, 13, 4706, 1480, 29889, 8382, 703, 20464, 29889, 9965, 29918, 18767, 580, 1159, 2 ]
sym_executor.py
zhangzhenghsy/fiber
0
12614
#!/usr/bin/python import angr,simuvex import sys,os import time from utils_sig import * from sym_tracer import Sym_Tracer from sig_recorder import Sig_Recorder #This class is responsible for performing symbolic execution. class Sym_Executor(object): def __init__(self,options=None,dbg_out=False): self.tracer = None self.recorder = None self.dbg_out = dbg_out self._whitelist = set() self._all_bbs = set() self._num_find = 10 self.options = options def _get_initial_state(self,proj,start,targetfunc=None): if proj is None: return None st = proj.factory.blank_state(addr=start,symbolic_sp=True) # print st.arch.registers.keys() # We can customize the symbolic execution by setting various options in the state # for a full list of available options: # https://github.com/angr/simuvex/blob/master/simuvex/s_options.py # E.g. st.options.add(simuvex.o.LAZY_SOLVES) ('options' is a set) # CALLLESS to do intra-procedure analysis st.options.add(simuvex.o.CALLLESS) if targetfunc is not None: st.options.add(str(hex(targetfunc))) # To prevent the engine from discarding log history st.options.add(simuvex.o.TRACK_ACTION_HISTORY) if self.options.get('simplify_ast',True): st.options.add(simuvex.o.SIMPLIFY_EXPRS) st.options.add(simuvex.o.SIMPLIFY_MEMORY_READS) st.options.add(simuvex.o.SIMPLIFY_MEMORY_WRITES) st.options.add(simuvex.o.SIMPLIFY_EXIT_GUARD) #TODO: Find a way to deal with function side-effect (i.e. a function call will output to a parameter, then the parameter will be used in a condition later) st.options.add(simuvex.o.IGNORE_EXIT_GUARDS) st.options.add(simuvex.o.IGNORE_MERGE_CONDITIONS) st.options.add(simuvex.o.DONT_MERGE_UNCONSTRAINED) #Use customized addr conc strategy st.memory.read_strategies = [angr.concretization_strategies.SimConcretizationStrategyHZ(limit=3)] st.memory.write_strategies = [angr.concretization_strategies.SimConcretizationStrategyHZ(limit=3)] #print st.options return st #Include all the BBs along the path from start to ends in the cfg into the whitelist. #The CFG here is CFGAcc. def _prep_whitelist(self,cfg,cfg_bounds,ends,start=None,proj=None,sym_tab=None,cfg2=None,cfg_bounds2=None,ends2=None,start2=None,func_cfg=None): #print "cfg:", [hex(n.addr) for n in cfg.nodes()] #print cfg.functions[cfg_bounds[0]] if cfg is None or cfg_bounds is None or len(cfg_bounds) < 2: print '_prep_whitelist(): Incomplete CFG information' return #for addr in cfg2.functions: # print cfg2.functions[addr] if cfg2 is not None: func_cfg2 = get_func_cfg(cfg2,cfg_bounds2[0],proj=proj,sym_tab=sym_tab) if func_cfg is None: print 'No func_cfg is available at %x' % cfg_bounds[0] return start = cfg_bounds[0] self._all_bbs = set([x.addr for x in func_cfg.nodes()]) #print '_all_bbs: ' + str([hex(x) for x in list(self._all_bbs)]) #print '_all_bbs2: '+str([hex(x) for x in list(set([x.addr for x in func_cfg2.nodes()]))]) if cfg2 is not None: self._all_bbs = self._all_bbs.union(set([x.addr for x in func_cfg2.nodes()])) self._whitelist = get_node_addrs_between(func_cfg,start,ends,from_func_start=(start == cfg_bounds[0])) if cfg2 is not None: self._whitelist= self._whitelist.union(get_node_addrs_between(func_cfg2,start2,ends2,from_func_start=(start2 == cfg_bounds2[0]))) l = list(self._whitelist) l.sort() #print 'whitelist: ' + str([hex(x) for x in l]) l = list(self._all_bbs) l.sort() #print '_all_bbs: ' + str([hex(x) for x in l]) if self.dbg_out: l = list(self._whitelist) l.sort() print 'whitelist: ' + str([hex(x) for x in l]) return #Why we put a absolutely 'False' find_func here: #(1)We rely on an accurate whitelist and all the nodes in the list should be explored, so we don't want #to stop at a certain node. #(2)With this find_func, basically we will have no states in the 'found' stash in the end, but that's OK #because all the things we want to do will be done along the symbolic execution process. def _find_func(self,p): return False def _avoid_func(self,p): #print 'avoid_func: ' + str(hex(p.addr)) + ' ' + str(p.addr in whitelist) #One problem is that, sometimes p.addr is in the middle of a certain BB, while in whitelist we only have start addresses of BBs. #Currently for these cases, we will let it continue to execute because it will align to the BB starts later. with open('testexplorenodes','a') as f: f.write(str(hex(p.addr))+'\n') return False if p.addr not in self._all_bbs else (not p.addr in self._whitelist) #This is basically the 'hook_complete' used in 'explorer' technique, simply deciding whether num_find has been reached. def _vt_terminator(self,smg): return len(smg.stashes['found']) >= self._num_find def _prep_veritesting_options(self,find=None,avoid=None,num_find=10): if find is None: find = self._find_func if avoid is None: avoid = self._avoid_func #We need to construct an 'explorer' as an 'exploration_technique' used in the internal SimManager of Veritesting, #which is basically the same one as used in normal DSE SimManager (by invoking 'explore()' method) #NOTE that the Veritesting mode will use a separate SimManager, so we have to make TWO 'explorer'. exp_tech = angr.exploration_techniques.Explorer(find=find,avoid=avoid,num_find=num_find) veritesting_options = {} #NOTE: 'loop_unrolling_limit' is compared and considered as 'passed' with '>=' instead of '>', that means if we use '1', no loops will be even entered. #However we want exactly ONE loop execution, so we should should use '2' here actually. veritesting_options['loop_unrolling_limit'] = 2 veritesting_options['tech'] = exp_tech #NOTE that original 'explorer' technique will set a 'hook_complete' in SimManager, which will be passed from 'run()' to 'step()' #as a 'until_func', however, Veritesting will not invoke 'run()', instead, it calls 'step()' directly, so this hook is basically #invalidated. To deal with this, we provide a 'terminator' to Veritesting, which will terminate Veritesting when len(stashes[found]) > num_find veritesting_options['terminator'] = self._vt_terminator return veritesting_options #Do the symbolic execution on the given CFG, from start to target, with Veritesting and Whitelist mechanisms. #Params: #proj: the angr project. #states: if it's None, creates a default initial state@start, if start is None, then @cfg_bounds[0]. #cfg: cfg_accurate. #cfg_bounds: a 2-element list, specifying the area of the target function (to be executed) in the cfg. #start: Where to start the symbolic execution? Must be within the cfg_bounds. #targets: Where to end the symbolic execution? Must be within the cfg_bounds. Can specify multiple targets in a list. #Ret: #The resulting SimManager. def try_sym_exec(self,proj,cfg,cfg_bounds,targets,states=None,start=None,new_tracer=False,tracer=None,new_recorder=False,recorder=None,sym_tab=None,sigs=None,cfg2=None,cfg_bounds2=None,targets2=None, start2=None,func_cfg=None,num_find=10): #print "start1: ", hex(start) #print "start2: ", hex(start2) if cfg is None or cfg_bounds is None or len(cfg_bounds) < 2: print 'No CFG information available for sym exec.' return None #This is the start point of sym exec. st = start if start is not None else cfg_bounds[0] if start2 is not None: st=start2 #Fill initial state. #print 'hex(start)', hex(start) #print 'str(hex(start))', str(hex(start)) if states is None: if start2 is not None: init_state = self._get_initial_state(proj,st,start) #init_state = self._get_initial_state(proj,start) else: init_state = self._get_initial_state(proj,st) states = [init_state] #Whether we need to create a new Sym_Tracer to trace the symbolic execution if new_tracer: self.tracer = Sym_Tracer(symbol_table=sym_tab,dbg_out=self.dbg_out) #for example:<class 'sym_tracer.Sym_Tracer'>: {'addr_collision': False, 'dbg_out': True, 'symbol_table': <sym_table.Sym_Table object at 0x7fffeba54890>, '_addr_conc_buf': [], '_sym_map': {}} #Clear any remaining breakpoints self.tracer.stop_trace(states) self.tracer.trace(states) else: self.tracer = tracer #Whether we need to create a new Sig_Recorder if new_recorder: if sigs is None: print 'You must provide sigs if you want to use new recorder' return if self.tracer is None: print 'You must provide tracer or specify new_tracer flag if you want to use new recorder' return self.recorder = Sig_Recorder(sigs,self.tracer,dbg_out=dbg_out) #Clear any remaining breakpoints self.recorder.stop_record(states) #Record structural information (nodes and their relationships) and semantic information of 'root' #instructions with per-instruction breakpoint, the structural information has already been partly recorded in the initial signature. self.recorder.record(states) else: self.recorder = recorder #Set the whitelist of basic blocks, we only want to include the BBs that along the paths from st to targets. self._prep_whitelist(cfg,cfg_bounds,targets,start,proj=proj,sym_tab=sym_tab,cfg2=cfg2,cfg_bounds2=cfg_bounds2,ends2=targets2,start2=start2,func_cfg=func_cfg) self._num_find = num_find #Set the VeriTesting options veritesting_options = self._prep_veritesting_options(num_find=self._num_find) #Construct the simulation execution manager smg = proj.factory.simgr(thing=states, veritesting=True, veritesting_options=veritesting_options) #TODO: Do we still need to use loop limiter for the main DSE SimManager since Veritesting has already got a built-in loop limiter? #limiter = angr.exploration_techniques.looplimiter.LoopLimiter(count=0, discard_stash='spinning') #smg.use_technique(limiter) t0 = time.time() smg.explore(find=self._find_func, avoid=self._avoid_func, num_find=self._num_find) print ['%s:%d ' % (name,len(stash)) for name, stash in smg.stashes.items()] print 'Time elapsed: ' + str(time.time() - t0) return smg
[ 1, 18787, 4855, 29914, 2109, 29914, 4691, 13, 5215, 385, 629, 29892, 3601, 29884, 13809, 13, 5215, 10876, 29892, 359, 13, 5215, 931, 13, 3166, 3667, 29879, 29918, 18816, 1053, 334, 13, 3166, 5016, 29918, 29873, 945, 261, 1053, 10667, 29918, 29911, 945, 261, 13, 3166, 4365, 29918, 3757, 2098, 1053, 15861, 29918, 4789, 2098, 13, 13, 29937, 4013, 770, 338, 14040, 363, 15859, 5829, 293, 8225, 29889, 13, 1990, 10667, 29918, 13366, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 6768, 29922, 8516, 29892, 2585, 29887, 29918, 449, 29922, 8824, 1125, 13, 4706, 1583, 29889, 29873, 945, 261, 353, 6213, 13, 4706, 1583, 29889, 3757, 2098, 353, 6213, 13, 4706, 1583, 29889, 2585, 29887, 29918, 449, 353, 4833, 29887, 29918, 449, 13, 4706, 1583, 3032, 1332, 7454, 391, 353, 731, 580, 13, 4706, 1583, 3032, 497, 29918, 1327, 29879, 353, 731, 580, 13, 4706, 1583, 3032, 1949, 29918, 2886, 353, 29871, 29896, 29900, 13, 4706, 1583, 29889, 6768, 353, 3987, 13, 13, 1678, 822, 903, 657, 29918, 11228, 29918, 3859, 29898, 1311, 29892, 20865, 29892, 2962, 29892, 5182, 9891, 29922, 8516, 1125, 13, 4706, 565, 410, 29926, 338, 6213, 29901, 13, 9651, 736, 6213, 13, 4706, 380, 353, 410, 29926, 29889, 14399, 29889, 19465, 29918, 3859, 29898, 10030, 29922, 2962, 29892, 18098, 293, 29918, 1028, 29922, 5574, 29897, 13, 4706, 396, 1596, 380, 29889, 1279, 29889, 9573, 29879, 29889, 8149, 580, 13, 4706, 396, 1334, 508, 2888, 675, 278, 5829, 293, 8225, 491, 4444, 5164, 3987, 297, 278, 2106, 13, 4706, 396, 363, 263, 2989, 1051, 310, 3625, 3987, 29901, 13, 4706, 396, 2045, 597, 3292, 29889, 510, 29914, 574, 29878, 29914, 3601, 29884, 13809, 29914, 10054, 29914, 6207, 29914, 3601, 29884, 13809, 29914, 29879, 29918, 6768, 29889, 2272, 13, 4706, 396, 382, 29889, 29887, 29889, 380, 29889, 6768, 29889, 1202, 29898, 3601, 29884, 13809, 29889, 29877, 29889, 4375, 29999, 29979, 29918, 29903, 5607, 29963, 2890, 29897, 6702, 6768, 29915, 338, 263, 731, 29897, 29871, 13, 4706, 396, 315, 9818, 1307, 1799, 304, 437, 938, 336, 29899, 771, 26600, 7418, 13, 4706, 380, 29889, 6768, 29889, 1202, 29898, 3601, 29884, 13809, 29889, 29877, 29889, 29907, 9818, 1307, 1799, 29897, 13, 4706, 565, 3646, 9891, 338, 451, 6213, 29901, 13, 9651, 380, 29889, 6768, 29889, 1202, 29898, 710, 29898, 20970, 29898, 5182, 9891, 4961, 13, 4706, 396, 1763, 5557, 278, 6012, 515, 2313, 20272, 1480, 4955, 13, 4706, 380, 29889, 6768, 29889, 1202, 29898, 3601, 29884, 13809, 29889, 29877, 29889, 5659, 11375, 29918, 24705, 29918, 29950, 9047, 18929, 29897, 13, 4706, 565, 1583, 29889, 6768, 29889, 657, 877, 3601, 572, 1598, 29918, 579, 742, 5574, 1125, 13, 9651, 380, 29889, 6768, 29889, 1202, 29898, 3601, 29884, 13809, 29889, 29877, 29889, 5425, 3580, 5265, 29943, 29979, 29918, 5746, 10593, 29903, 29897, 13, 9651, 380, 29889, 6768, 29889, 1202, 29898, 3601, 29884, 13809, 29889, 29877, 29889, 5425, 3580, 5265, 29943, 29979, 29918, 2303, 29924, 18929, 29918, 16310, 29903, 29897, 13, 9651, 380, 29889, 6768, 29889, 1202, 29898, 3601, 29884, 13809, 29889, 29877, 29889, 5425, 3580, 5265, 29943, 29979, 29918, 2303, 29924, 18929, 29918, 9980, 1806, 2890, 29897, 13, 9651, 380, 29889, 6768, 29889, 1202, 29898, 3601, 29884, 13809, 29889, 29877, 29889, 5425, 3580, 5265, 29943, 29979, 29918, 5746, 1806, 29918, 29954, 29965, 17011, 29897, 13, 4706, 396, 4986, 3970, 29901, 10987, 263, 982, 304, 5376, 411, 740, 2625, 29899, 15987, 313, 29875, 29889, 29872, 29889, 263, 740, 1246, 674, 1962, 304, 263, 3443, 29892, 769, 278, 3443, 674, 367, 1304, 297, 263, 4195, 2678, 29897, 13, 4706, 380, 29889, 6768, 29889, 1202, 29898, 3601, 29884, 13809, 29889, 29877, 29889, 6259, 6632, 1525, 29918, 5746, 1806, 29918, 29954, 29965, 1718, 8452, 29897, 13, 4706, 380, 29889, 6768, 29889, 1202, 29898, 3601, 29884, 13809, 29889, 29877, 29889, 6259, 6632, 1525, 29918, 29924, 1001, 1692, 29918, 6007, 29928, 22122, 29903, 29897, 13, 4706, 380, 29889, 6768, 29889, 1202, 29898, 3601, 29884, 13809, 29889, 29877, 29889, 29928, 1164, 29911, 29918, 29924, 1001, 1692, 29918, 3904, 6007, 1254, 4717, 1177, 3352, 29897, 13, 4706, 396, 11403, 2888, 1891, 28915, 3022, 13705, 13, 4706, 380, 29889, 14834, 29889, 949, 29918, 710, 1845, 583, 353, 518, 574, 29878, 29889, 535, 4838, 2133, 29918, 710, 1845, 583, 29889, 8942, 1168, 4838, 2133, 26910, 29950, 29999, 29898, 13400, 29922, 29941, 4638, 13, 4706, 380, 29889, 14834, 29889, 3539, 29918, 710, 1845, 583, 353, 518, 574, 29878, 29889, 535, 4838, 2133, 29918, 710, 1845, 583, 29889, 8942, 1168, 4838, 2133, 26910, 29950, 29999, 29898, 13400, 29922, 29941, 4638, 13, 4706, 396, 2158, 380, 29889, 6768, 13, 4706, 736, 380, 13, 13, 1678, 396, 29419, 599, 278, 29449, 29879, 3412, 278, 2224, 515, 1369, 304, 10614, 297, 278, 274, 16434, 964, 278, 377, 7454, 391, 29889, 13, 1678, 396, 1576, 17861, 29954, 1244, 338, 17861, 29954, 7504, 29889, 13, 1678, 822, 903, 15287, 29918, 1332, 7454, 391, 29898, 1311, 29892, 16859, 29892, 16859, 29918, 23687, 29892, 1975, 29892, 2962, 29922, 8516, 29892, 20865, 29922, 8516, 29892, 11967, 29918, 3891, 29922, 8516, 29892, 16859, 29906, 29922, 8516, 29892, 16859, 29918, 23687, 29906, 29922, 8516, 29892, 1975, 29906, 29922, 8516, 29892, 2962, 29906, 29922, 8516, 29892, 9891, 29918, 16859, 29922, 8516, 1125, 13, 4706, 396, 2158, 376, 16859, 29901, 613, 518, 20970, 29898, 29876, 29889, 10030, 29897, 363, 302, 297, 274, 16434, 29889, 18010, 580, 29962, 13, 4706, 396, 2158, 274, 16434, 29889, 12171, 29961, 16859, 29918, 23687, 29961, 29900, 5262, 13, 4706, 565, 274, 16434, 338, 6213, 470, 274, 16434, 29918, 23687, 338, 6213, 470, 7431, 29898, 16859, 29918, 23687, 29897, 529, 29871, 29906, 29901, 13, 9651, 1596, 22868, 15287, 29918, 1332, 7454, 391, 7295, 512, 8835, 17861, 29954, 2472, 29915, 13, 9651, 736, 13, 4706, 396, 1454, 28915, 297, 274, 16434, 29906, 29889, 12171, 29901, 13, 4706, 396, 1678, 1596, 274, 16434, 29906, 29889, 12171, 29961, 10030, 29962, 13, 12, 361, 274, 16434, 29906, 338, 451, 6213, 29901, 13, 12, 1678, 3653, 29918, 16859, 29906, 353, 679, 29918, 9891, 29918, 16859, 29898, 16859, 29906, 29892, 16859, 29918, 23687, 29906, 29961, 29900, 1402, 20865, 29922, 20865, 29892, 11967, 29918, 3891, 29922, 11967, 29918, 3891, 29897, 13, 4706, 565, 3653, 29918, 16859, 338, 6213, 29901, 13, 9651, 1596, 525, 3782, 3653, 29918, 16859, 338, 3625, 472, 1273, 29916, 29915, 1273, 274, 16434, 29918, 23687, 29961, 29900, 29962, 13, 9651, 736, 13, 4706, 1369, 353, 274, 16434, 29918, 23687, 29961, 29900, 29962, 29871, 13, 4706, 1583, 3032, 497, 29918, 1327, 29879, 353, 731, 4197, 29916, 29889, 10030, 363, 921, 297, 3653, 29918, 16859, 29889, 18010, 580, 2314, 13, 4706, 396, 2158, 22868, 497, 29918, 1327, 29879, 29901, 525, 718, 851, 4197, 20970, 29898, 29916, 29897, 363, 921, 297, 1051, 29898, 1311, 3032, 497, 29918, 1327, 29879, 29897, 2314, 13, 4706, 396, 2158, 22868, 497, 29918, 1327, 29879, 29906, 29901, 525, 29974, 710, 4197, 20970, 29898, 29916, 29897, 363, 921, 297, 1051, 29898, 842, 4197, 29916, 29889, 10030, 363, 921, 297, 3653, 29918, 16859, 29906, 29889, 18010, 580, 12622, 2314, 13, 12, 361, 274, 16434, 29906, 338, 451, 6213, 29901, 13, 12, 1678, 1583, 3032, 497, 29918, 1327, 29879, 353, 1583, 3032, 497, 29918, 1327, 29879, 29889, 13094, 29898, 842, 4197, 29916, 29889, 10030, 363, 921, 297, 3653, 29918, 16859, 29906, 29889, 18010, 580, 12622, 13, 4706, 1583, 3032, 1332, 7454, 391, 353, 679, 29918, 3177, 29918, 1202, 2288, 29918, 14811, 29898, 9891, 29918, 16859, 29892, 2962, 29892, 1975, 29892, 3166, 29918, 9891, 29918, 2962, 7607, 2962, 1275, 274, 16434, 29918, 23687, 29961, 29900, 12622, 13, 12, 361, 274, 16434, 29906, 338, 451, 6213, 29901, 13, 12, 1678, 1583, 3032, 1332, 7454, 391, 29922, 1583, 3032, 1332, 7454, 391, 29889, 13094, 29898, 657, 29918, 3177, 29918, 1202, 2288, 29918, 14811, 29898, 9891, 29918, 16859, 29906, 29892, 2962, 29906, 29892, 1975, 29906, 29892, 3166, 29918, 9891, 29918, 2962, 7607, 2962, 29906, 1275, 274, 16434, 29918, 23687, 29906, 29961, 29900, 29962, 4961, 13, 4706, 13, 4706, 301, 353, 1051, 29898, 1311, 3032, 1332, 7454, 391, 29897, 13, 4706, 301, 29889, 6605, 580, 13, 4706, 396, 2158, 525, 1332, 7454, 391, 29901, 525, 718, 851, 4197, 20970, 29898, 29916, 29897, 363, 921, 297, 301, 2314, 13, 4706, 301, 353, 1051, 29898, 1311, 3032, 497, 29918, 1327, 29879, 29897, 13, 4706, 301, 29889, 6605, 580, 13, 4706, 396, 2158, 22868, 497, 29918, 1327, 29879, 29901, 525, 718, 851, 4197, 20970, 29898, 29916, 29897, 363, 921, 297, 301, 2314, 13, 4706, 565, 1583, 29889, 2585, 29887, 29918, 449, 29901, 13, 9651, 301, 353, 1051, 29898, 1311, 3032, 1332, 7454, 391, 29897, 13, 9651, 301, 29889, 6605, 580, 13, 9651, 1596, 525, 1332, 7454, 391, 29901, 525, 718, 851, 4197, 20970, 29898, 29916, 29897, 363, 921, 297, 301, 2314, 13, 4706, 736, 13, 13, 1678, 396, 11008, 591, 1925, 263, 13312, 525, 8824, 29915, 1284, 29918, 9891, 1244, 29901, 13, 1678, 27355, 29896, 29897, 4806, 19104, 373, 385, 16232, 377, 7454, 391, 322, 599, 278, 7573, 297, 278, 1051, 881, 367, 3902, 4395, 29892, 577, 591, 1016, 29915, 29873, 864, 13, 1678, 396, 517, 5040, 472, 263, 3058, 2943, 29889, 13, 1678, 27355, 29906, 29897, 3047, 445, 1284, 29918, 9891, 29892, 8830, 591, 674, 505, 694, 5922, 297, 278, 525, 11940, 29915, 380, 1161, 297, 278, 1095, 29892, 541, 393, 29915, 29879, 9280, 13, 1678, 396, 18103, 599, 278, 2712, 591, 864, 304, 437, 674, 367, 2309, 3412, 278, 5829, 293, 8225, 1889, 29889, 13, 1678, 822, 903, 2886, 29918, 9891, 29898, 1311, 29892, 29886, 1125, 13, 4706, 736, 7700, 13, 13, 1678, 822, 903, 485, 3398, 29918, 9891, 29898, 1311, 29892, 29886, 1125, 13, 4706, 396, 2158, 525, 485, 3398, 29918, 9891, 29901, 525, 718, 851, 29898, 20970, 29898, 29886, 29889, 10030, 876, 718, 525, 525, 718, 851, 29898, 29886, 29889, 10030, 297, 377, 7454, 391, 29897, 13, 4706, 396, 6716, 1108, 338, 393, 29892, 6041, 282, 29889, 10030, 338, 297, 278, 7256, 310, 263, 3058, 29449, 29892, 1550, 297, 377, 7454, 391, 591, 871, 505, 1369, 14157, 310, 29449, 29879, 29889, 13, 4706, 396, 7583, 368, 363, 1438, 4251, 29892, 591, 674, 1235, 372, 6773, 304, 6222, 1363, 372, 674, 7595, 304, 278, 29449, 8665, 2678, 29889, 13, 4706, 411, 1722, 877, 1688, 24516, 8085, 2631, 3788, 29874, 1495, 408, 285, 29901, 13, 9651, 285, 29889, 3539, 29898, 710, 29898, 20970, 29898, 29886, 29889, 10030, 876, 29974, 12764, 29876, 1495, 13, 4706, 736, 7700, 565, 282, 29889, 10030, 451, 297, 1583, 3032, 497, 29918, 1327, 29879, 1683, 313, 1333, 282, 29889, 10030, 297, 1583, 3032, 1332, 7454, 391, 29897, 13, 13, 1678, 396, 4013, 338, 8830, 278, 525, 20849, 29918, 8835, 29915, 1304, 297, 525, 735, 14716, 29915, 11043, 29892, 3763, 1602, 4821, 3692, 954, 29918, 2886, 756, 1063, 7450, 29889, 13, 1678, 822, 903, 21908, 29918, 18821, 1061, 29898, 1311, 29892, 3844, 29887, 1125, 13, 4706, 736, 7431, 29898, 3844, 29887, 29889, 303, 1161, 267, 1839, 11940, 11287, 6736, 1583, 3032, 1949, 29918, 2886, 13, 13, 1678, 822, 903, 15287, 29918, 369, 277, 342, 292, 29918, 6768, 29898, 1311, 29892, 2886, 29922, 8516, 29892, 485, 3398, 29922, 8516, 29892, 1949, 29918, 2886, 29922, 29896, 29900, 1125, 13, 4706, 565, 1284, 338, 6213, 29901, 13, 9651, 1284, 353, 1583, 3032, 2886, 29918, 9891, 13, 4706, 565, 4772, 338, 6213, 29901, 13, 9651, 4772, 353, 1583, 3032, 485, 3398, 29918, 9891, 13, 4706, 396, 4806, 817, 304, 3386, 385, 525, 735, 14716, 29915, 408, 385, 525, 24516, 12418, 29918, 371, 6387, 802, 29915, 1304, 297, 278, 7463, 3439, 3260, 310, 1798, 277, 342, 292, 29892, 13, 4706, 396, 4716, 338, 8830, 278, 1021, 697, 408, 1304, 297, 4226, 360, 1660, 3439, 3260, 313, 1609, 2437, 17223, 525, 24516, 487, 580, 29915, 1158, 29897, 13, 4706, 396, 12256, 29923, 393, 278, 1798, 277, 342, 292, 4464, 674, 671, 263, 5004, 3439, 3260, 29892, 577, 591, 505, 304, 1207, 323, 29956, 29949, 525, 735, 14716, 4286, 13, 4706, 1518, 29918, 11345, 353, 385, 629, 29889, 24516, 12418, 29918, 371, 6387, 1912, 29889, 1252, 14716, 29898, 2886, 29922, 2886, 29892, 485, 3398, 29922, 485, 3398, 29892, 1949, 29918, 2886, 29922, 1949, 29918, 2886, 29897, 13, 4706, 1147, 277, 342, 292, 29918, 6768, 353, 6571, 13, 4706, 396, 12256, 29923, 29901, 525, 7888, 29918, 348, 22155, 29918, 13400, 29915, 338, 9401, 322, 5545, 408, 525, 3364, 287, 29915, 411, 525, 29958, 2433, 2012, 310, 525, 29958, 742, 393, 2794, 565, 591, 671, 525, 29896, 742, 694, 12104, 674, 367, 1584, 7802, 29889, 29871, 13, 4706, 396, 17245, 591, 864, 3721, 6732, 29923, 2425, 8225, 29892, 577, 591, 881, 881, 671, 525, 29906, 29915, 1244, 2869, 29889, 13, 4706, 1147, 277, 342, 292, 29918, 6768, 1839, 7888, 29918, 348, 22155, 29918, 13400, 2033, 353, 29871, 29906, 13, 4706, 1147, 277, 342, 292, 29918, 6768, 1839, 11345, 2033, 353, 1518, 29918, 11345, 13, 4706, 396, 12256, 29923, 393, 2441, 525, 735, 14716, 29915, 11043, 674, 731, 263, 525, 20849, 29918, 8835, 29915, 297, 3439, 3260, 29892, 607, 674, 367, 4502, 515, 525, 3389, 580, 29915, 304, 525, 10568, 580, 29915, 13, 4706, 396, 294, 263, 525, 29305, 29918, 9891, 742, 3138, 29892, 1798, 277, 342, 292, 674, 451, 15928, 525, 3389, 580, 742, 2012, 29892, 372, 5717, 525, 10568, 580, 29915, 4153, 29892, 577, 445, 12422, 338, 8830, 13, 4706, 396, 20965, 630, 29889, 1763, 5376, 411, 445, 29892, 591, 3867, 263, 525, 18821, 1061, 29915, 304, 1798, 277, 342, 292, 29892, 607, 674, 29504, 1798, 277, 342, 292, 746, 7431, 29898, 303, 1161, 267, 29961, 11940, 2314, 1405, 954, 29918, 2886, 13, 4706, 1147, 277, 342, 292, 29918, 6768, 1839, 18821, 1061, 2033, 353, 1583, 3032, 21908, 29918, 18821, 1061, 13, 4706, 736, 1147, 277, 342, 292, 29918, 6768, 13, 13, 1678, 396, 6132, 278, 5829, 293, 8225, 373, 278, 2183, 17861, 29954, 29892, 515, 1369, 304, 3646, 29892, 411, 1798, 277, 342, 292, 322, 806, 7454, 391, 7208, 12903, 29889, 13, 1678, 396, 9629, 29901, 13, 1678, 396, 20865, 29901, 278, 385, 629, 2060, 29889, 13, 1678, 396, 28631, 29901, 565, 372, 29915, 29879, 6213, 29892, 10017, 263, 2322, 2847, 2106, 29992, 2962, 29892, 565, 1369, 338, 6213, 29892, 769, 732, 16859, 29918, 23687, 29961, 29900, 1822, 13, 1678, 396, 16859, 29901, 274, 16434, 29918, 562, 2764, 403, 29889, 13, 1678, 396, 16859, 29918, 23687, 29901, 263, 29871, 29906, 29899, 5029, 1051, 29892, 22146, 278, 4038, 310, 278, 3646, 740, 313, 517, 367, 8283, 29897, 297, 278, 274, 16434, 29889, 13, 1678, 396, 2962, 29901, 6804, 304, 1369, 278, 5829, 293, 8225, 29973, 19928, 367, 2629, 278, 274, 16434, 29918, 23687, 29889, 13, 1678, 396, 5182, 29879, 29901, 6804, 304, 1095, 278, 5829, 293, 8225, 29973, 19928, 367, 2629, 278, 274, 16434, 29918, 23687, 29889, 1815, 6084, 2999, 22525, 297, 263, 1051, 29889, 13, 1678, 396, 8015, 29901, 13, 1678, 396, 1576, 9819, 3439, 3260, 29889, 29871, 13, 1678, 822, 1018, 29918, 11967, 29918, 4258, 29898, 1311, 29892, 20865, 29892, 16859, 29892, 16859, 29918, 23687, 29892, 5182, 29879, 29892, 28631, 29922, 8516, 29892, 2962, 29922, 8516, 29892, 1482, 29918, 29873, 945, 261, 29922, 8824, 29892, 29873, 945, 261, 29922, 8516, 29892, 1482, 29918, 3757, 2098, 29922, 8824, 29892, 3757, 2098, 29922, 8516, 29892, 11967, 29918, 3891, 29922, 8516, 29892, 18816, 29879, 29922, 8516, 29892, 16859, 29906, 29922, 8516, 29892, 16859, 29918, 23687, 29906, 29922, 8516, 29892, 5182, 29879, 29906, 29922, 8516, 29892, 1369, 29906, 29922, 8516, 29892, 9891, 29918, 16859, 29922, 8516, 29892, 1949, 29918, 2886, 29922, 29896, 29900, 1125, 13, 4706, 396, 2158, 376, 2962, 29896, 29901, 9162, 15090, 29898, 2962, 29897, 13, 4706, 396, 2158, 376, 2962, 29906, 29901, 9162, 15090, 29898, 2962, 29906, 29897, 13, 4706, 565, 274, 16434, 338, 6213, 470, 274, 16434, 29918, 23687, 338, 6213, 470, 7431, 29898, 16859, 29918, 23687, 29897, 529, 29871, 29906, 29901, 13, 9651, 1596, 525, 3782, 17861, 29954, 2472, 3625, 363, 5016, 2279, 6169, 13, 9651, 736, 6213, 13, 4706, 396, 4013, 338, 278, 1369, 1298, 310, 5016, 2279, 29889, 13, 4706, 380, 353, 1369, 565, 1369, 338, 451, 6213, 1683, 274, 16434, 29918, 23687, 29961, 29900, 29962, 13, 12, 361, 1369, 29906, 338, 451, 6213, 29901, 13, 12, 1678, 380, 29922, 2962, 29906, 13, 4706, 396, 20876, 2847, 2106, 29889, 13, 4706, 396, 2158, 525, 20970, 29898, 2962, 29897, 742, 15090, 29898, 2962, 29897, 13, 4706, 396, 2158, 525, 710, 29898, 20970, 29898, 2962, 876, 742, 851, 29898, 20970, 29898, 2962, 876, 13, 4706, 565, 5922, 338, 6213, 29901, 13, 9651, 565, 1369, 29906, 338, 451, 6213, 29901, 13, 18884, 2069, 29918, 3859, 353, 1583, 3032, 657, 29918, 11228, 29918, 3859, 29898, 20865, 29892, 303, 29892, 2962, 29897, 13, 18884, 396, 2344, 29918, 3859, 353, 1583, 3032, 657, 29918, 11228, 29918, 3859, 29898, 20865, 29892, 2962, 29897, 13, 9651, 1683, 29901, 13, 18884, 2069, 29918, 3859, 353, 1583, 3032, 657, 29918, 11228, 29918, 3859, 29898, 20865, 29892, 303, 29897, 13, 9651, 5922, 353, 518, 2344, 29918, 3859, 29962, 13, 308, 13, 4706, 396, 8809, 1979, 591, 817, 304, 1653, 263, 716, 10667, 29918, 29911, 945, 261, 304, 9637, 278, 5829, 293, 8225, 13, 4706, 565, 716, 29918, 29873, 945, 261, 29901, 13, 9651, 1583, 29889, 29873, 945, 261, 353, 10667, 29918, 29911, 945, 261, 29898, 18098, 29918, 2371, 29922, 11967, 29918, 3891, 29892, 2585, 29887, 29918, 449, 29922, 1311, 29889, 2585, 29887, 29918, 449, 29897, 13, 12, 12, 12, 29937, 1454, 1342, 29901, 29966, 1990, 525, 11967, 29918, 29873, 945, 261, 29889, 25548, 29918, 29911, 945, 261, 11041, 29901, 11117, 10030, 29918, 22017, 2459, 2396, 7700, 29892, 525, 2585, 29887, 29918, 449, 2396, 5852, 29892, 525, 18098, 29918, 2371, 2396, 529, 11967, 29918, 2371, 29889, 25548, 29918, 3562, 1203, 472, 29871, 29900, 29916, 29955, 18725, 774, 29874, 29945, 29946, 29947, 29929, 29900, 10202, 22868, 10030, 29918, 535, 29883, 29918, 9721, 2396, 19997, 22868, 11967, 29918, 1958, 2396, 426, 930, 13, 9651, 396, 18759, 738, 9886, 2867, 9748, 13, 9651, 1583, 29889, 29873, 945, 261, 29889, 9847, 29918, 15003, 29898, 28631, 29897, 13, 9651, 1583, 29889, 29873, 945, 261, 29889, 15003, 29898, 28631, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 29873, 945, 261, 353, 16703, 261, 13, 13, 4706, 396, 8809, 1979, 591, 817, 304, 1653, 263, 716, 15861, 29918, 4789, 2098, 13, 4706, 565, 716, 29918, 3757, 2098, 29901, 13, 9651, 565, 4365, 29879, 338, 6213, 29901, 13, 18884, 1596, 525, 3492, 1818, 3867, 4365, 29879, 565, 366, 864, 304, 671, 716, 1162, 2098, 29915, 13, 18884, 736, 13, 9651, 565, 1583, 29889, 29873, 945, 261, 338, 6213, 29901, 13, 18884, 1596, 525, 3492, 1818, 3867, 16703, 261, 470, 6084, 716, 29918, 29873, 945, 261, 7353, 565, 366, 864, 304, 671, 716, 1162, 2098, 29915, 13, 18884, 736, 13, 9651, 1583, 29889, 3757, 2098, 353, 15861, 29918, 4789, 2098, 29898, 18816, 29879, 29892, 1311, 29889, 29873, 945, 261, 29892, 2585, 29887, 29918, 449, 29922, 2585, 29887, 29918, 449, 29897, 13, 9651, 396, 18759, 738, 9886, 2867, 9748, 13, 9651, 1583, 29889, 3757, 2098, 29889, 9847, 29918, 11651, 29898, 28631, 29897, 13, 9651, 396, 9182, 2281, 3631, 2472, 313, 18010, 322, 1009, 21702, 29897, 322, 28837, 2472, 310, 525, 4632, 29915, 13, 9651, 396, 2611, 582, 1953, 411, 639, 29899, 2611, 4080, 2867, 3149, 29892, 278, 2281, 3631, 2472, 756, 2307, 1063, 22669, 10478, 297, 278, 2847, 12608, 29889, 13, 9651, 1583, 29889, 3757, 2098, 29889, 11651, 29898, 28631, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 3757, 2098, 353, 1162, 2098, 13, 308, 13, 4706, 396, 2697, 278, 377, 7454, 391, 310, 6996, 10930, 29892, 591, 871, 864, 304, 3160, 278, 29449, 29879, 393, 3412, 278, 10898, 515, 380, 304, 22525, 29889, 13, 4706, 1583, 3032, 15287, 29918, 1332, 7454, 391, 29898, 16859, 29892, 16859, 29918, 23687, 29892, 5182, 29879, 29892, 2962, 29892, 20865, 29922, 20865, 29892, 11967, 29918, 3891, 29922, 11967, 29918, 3891, 29892, 16859, 29906, 29922, 16859, 29906, 29892, 16859, 29918, 23687, 29906, 29922, 16859, 29918, 23687, 29906, 29892, 1975, 29906, 29922, 5182, 29879, 29906, 29892, 2962, 29906, 29922, 2962, 29906, 29892, 9891, 29918, 16859, 29922, 9891, 29918, 16859, 29897, 268, 13, 4706, 1583, 3032, 1949, 29918, 2886, 353, 954, 29918, 2886, 13, 4706, 396, 2697, 278, 1798, 29875, 3057, 292, 3987, 13, 4706, 1147, 277, 342, 292, 29918, 6768, 353, 1583, 3032, 15287, 29918, 369, 277, 342, 292, 29918, 6768, 29898, 1949, 29918, 2886, 29922, 1311, 3032, 1949, 29918, 2886, 29897, 13, 13, 4706, 396, 1168, 4984, 278, 17402, 8225, 8455, 13, 4706, 1560, 29887, 353, 410, 29926, 29889, 14399, 29889, 3601, 629, 29898, 1918, 29922, 28631, 29892, 1147, 277, 342, 292, 29922, 5574, 29892, 1147, 277, 342, 292, 29918, 6768, 29922, 369, 277, 342, 292, 29918, 6768, 29897, 13, 13, 4706, 396, 4986, 3970, 29901, 1938, 591, 1603, 817, 304, 671, 2425, 2485, 1524, 363, 278, 1667, 360, 1660, 3439, 3260, 1951, 1798, 277, 342, 292, 756, 2307, 2355, 263, 4240, 29899, 262, 2425, 2485, 1524, 29973, 13, 4706, 396, 2576, 1524, 353, 385, 629, 29889, 24516, 12418, 29918, 371, 6387, 1912, 29889, 7888, 2576, 1524, 29889, 18405, 29931, 19657, 29898, 2798, 29922, 29900, 29892, 2313, 538, 29918, 303, 1161, 2433, 1028, 262, 1076, 1495, 29871, 13, 4706, 396, 3844, 29887, 29889, 1509, 29918, 371, 6387, 802, 29898, 2576, 1524, 29897, 13, 13, 4706, 260, 29900, 353, 931, 29889, 2230, 580, 13, 4706, 1560, 29887, 29889, 24516, 487, 29898, 2886, 29922, 1311, 3032, 2886, 29918, 9891, 29892, 4772, 29922, 1311, 3032, 485, 3398, 29918, 9891, 29892, 954, 29918, 2886, 29922, 1311, 3032, 1949, 29918, 2886, 29897, 13, 13, 4706, 1596, 6024, 29995, 29879, 16664, 29881, 525, 1273, 313, 978, 29892, 2435, 29898, 303, 1161, 876, 363, 1024, 29892, 380, 1161, 297, 1560, 29887, 29889, 303, 1161, 267, 29889, 7076, 580, 29962, 13, 4706, 1596, 525, 2481, 560, 28170, 29901, 525, 718, 851, 29898, 2230, 29889, 2230, 580, 448, 260, 29900, 29897, 13, 13, 4706, 736, 1560, 29887, 13, 2 ]
src/ebay_rest/rates.py
gbm001/ebay_rest
0
100077
# Standard library imports from datetime import timedelta import threading import logging import math import time # Local imports from .date_time import DateTime from .error import Error from .multiton import Multiton @Multiton # return the same object when the __init__ params are identical class Rates: """ Manages call limit and utilization data for an eBay application. https://developer.ebay.com/api-docs/developer/analytics/resources/rate_limit/methods/getRateLimits """ def __init__(self, app_id): """ Maintain a set of daily limits for each app_id. Be lazy about it when throttling is not used. :param app_id: eBay keeps a set of daily limits for each app_id. """ self._app_id = app_id # save because it eases debugging self._lock = threading.Lock() # secure this lock before updating or reading class variables self._refresh_date_time = None # the soonest it is advisable to refresh rates data from eBay self._cache = None # cache of the most recent rates re-organized to expedite lookups def decrement_rate(self, base_path: str, rate_keys: list) -> None: """ Decrement the remaining count of calls associated with a name. Warning, avoid endless recursion, don't merge this with the throttled version of the method. :param base_path (str) : :param rate_keys (list) : Strings, keys used to lookup a rate :return: None """ with self._lock: rate_dict = self._find_rate_dict(base_path, rate_keys) if rate_dict: if rate_dict['remaining'] > 0: rate_dict['remaining'] -= 1 def decrement_rate_throttled(self, base_path: str, rate_keys: list, timeout: float) -> None: """ Decrement the remaining count of calls associated with a name. :param base_path (str) : :param rate_keys (list) : Strings, keys used to lookup a rate :param timeout (float) : When invoked with the floating-point timeout argument set to a positive value, throttle for at most the number of seconds specified by timeout and as below the prorated call limit. A timeout argument of -1 specifies an unbounded wait. :return: None """ # The algorithm relies upon the geometrical properties of right-angled triangles. # Threshold is a line that extends from the height of the limit at the period start to zero at the end. # Further, imagine lowering the threshold half when throttled. # If not throttled, imagine lowering the threshold to 1. # It is OK to proceed when the remaining count is above the threshold. # If we need to wait, wait in proportion to how far the threshold is out of reach or until period end. timeout_used = 0 redo = True while redo: self._lock.acquire() rate_dict = self._find_rate_dict(base_path, rate_keys) if rate_dict is None: redo = False else: limit = rate_dict['limit'] reset = rate_dict['reset'] time_window = rate_dict['time_window'] delta = abs((DateTime.now() - reset).total_seconds()) # abs covers small clock errors threshold = ((delta * limit) / time_window) * 0.5 if threshold < 1.0: threshold = 1.0 # 1 is as low is it should go, protect against rounding errors remaining = rate_dict['remaining'] if remaining >= math.ceil(threshold): if remaining > 0: rate_dict['remaining'] = remaining - 1 self._lock.release() redo = False else: # if there are no calls left in the current period if remaining <= 0: # then wait until the end of the period wait_seconds = abs((DateTime.now() - reset).total_seconds()) else: # otherwise wait for the remaining-threshold delta proportioned by remaining time wait_seconds = ((threshold - remaining) * time_window) / limit if timeout != -1.0: timeout_remaining = timeout - timeout_used if timeout_remaining <= 0: raise Error(number=2, reason="Throttle timeout.") if wait_seconds > timeout_remaining: # don't wait any longer than the caller wants wait_seconds = timeout_remaining self._lock.release() time.sleep(wait_seconds) timeout_used += wait_seconds def need_refresh(self) -> bool: """ Return True if the rates need refreshing. """ with self._lock: if self._refresh_date_time: if self._refresh_date_time > DateTime.now(): result = False else: result = True else: result = True return result def refresh_developer_analytics(self, rate_limits) -> None: """ Refresh the local Developer Analytics values and when the next refresh is recommended. """ if not rate_limits: cache = None refresh_date_time = None else: cache = dict() # stores the flattened rates records resets = set() # stores unique reset date-times for rate_limit in rate_limits: base_path = '/'.join([rate_limit['api_context'], rate_limit['api_name'], rate_limit['api_version']]) base_path = '/' + base_path.lower() for resource in rate_limit['resources']: if resource['rates']: if resource['rates'][0]: if resource['rates'][0]['limit']: key = base_path + '|' + resource['name'] rates = resource['rates'][0] reset = DateTime.from_string(rates['reset']) rates['reset'] = reset resets.add(reset) cache[key] = rates now = DateTime.now() # Another program may also be using up calls, so periodically synchronizing with eBay's counts. periodic = now + timedelta(minutes=15) # find the soonest reset soonest_reset = periodic # safety, just in case they are no useful resets date-times resets = list(resets) resets.sort() for reset in resets: if reset >= now: # skip when eBay is late to act on a reset soonest_reset = reset break # use which ever is sooner if periodic <= soonest_reset: refresh_date_time = periodic else: refresh_date_time = soonest_reset with self._lock: self._cache = cache self._refresh_date_time = refresh_date_time def _find_rate_dict(self, base_path: str, rate_keys: list) -> dict or None: """ Get the index so the rate object associated with a name. The caller must have a lock. https://developer.ebay.com/api-docs/developer/analytics/resources/rate_limit/methods/getRateLimits :param base_path (str) : :param rate_keys (list) : Strings, keys used to lookup a rate :return: a rates dict or None """ cache = self._cache if not cache: return None else: [resource_name_base, resource_name_module] = rate_keys key = base_path + '|' + resource_name_base cache = self._cache if key in cache: result = cache[key] else: key = key + resource_name_module if key in cache: result = cache[key] else: logging.debug('Unable to find rates for: ' + key) result = None return result
[ 1, 396, 10117, 3489, 24802, 13, 3166, 12865, 1053, 5335, 287, 2554, 13, 5215, 3244, 292, 13, 5215, 12183, 13, 5215, 5844, 13, 5215, 931, 13, 13, 29937, 9959, 24802, 13, 3166, 869, 1256, 29918, 2230, 1053, 12315, 13, 3166, 869, 2704, 1053, 4829, 13, 3166, 869, 4713, 277, 265, 1053, 9683, 277, 265, 13, 13, 13, 29992, 6857, 277, 265, 29871, 396, 736, 278, 1021, 1203, 746, 278, 4770, 2344, 1649, 8636, 526, 13557, 13, 1990, 390, 1078, 29901, 13, 1678, 9995, 2315, 1179, 1246, 4046, 322, 3667, 2133, 848, 363, 385, 321, 29933, 388, 2280, 29889, 13, 13, 1678, 2045, 597, 6734, 29889, 774, 388, 29889, 510, 29914, 2754, 29899, 2640, 29914, 6734, 29914, 7054, 22026, 29914, 13237, 29914, 10492, 29918, 13400, 29914, 23515, 29914, 657, 19907, 29931, 326, 1169, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 623, 29918, 333, 1125, 13, 4706, 9995, 13, 4706, 341, 2365, 475, 263, 731, 310, 14218, 13071, 363, 1269, 623, 29918, 333, 29889, 1522, 17366, 1048, 372, 746, 20961, 698, 1847, 338, 451, 1304, 29889, 13, 13, 4706, 584, 3207, 623, 29918, 333, 29901, 321, 29933, 388, 14874, 263, 731, 310, 14218, 13071, 363, 1269, 623, 29918, 333, 29889, 13, 4706, 9995, 13, 4706, 1583, 3032, 932, 29918, 333, 353, 623, 29918, 333, 1678, 396, 4078, 1363, 372, 321, 2129, 13490, 13, 13, 4706, 1583, 3032, 908, 353, 3244, 292, 29889, 16542, 580, 29871, 396, 11592, 445, 7714, 1434, 13271, 470, 5183, 770, 3651, 13, 4706, 1583, 3032, 22379, 29918, 1256, 29918, 2230, 353, 6213, 29871, 396, 278, 4720, 342, 372, 338, 25228, 519, 304, 11086, 19257, 848, 515, 321, 29933, 388, 13, 4706, 1583, 3032, 8173, 353, 6213, 29871, 396, 7090, 310, 278, 1556, 7786, 19257, 337, 29899, 6388, 1891, 304, 15310, 568, 1106, 14340, 13, 13, 1678, 822, 9263, 358, 29918, 10492, 29898, 1311, 29892, 2967, 29918, 2084, 29901, 851, 29892, 6554, 29918, 8149, 29901, 1051, 29897, 1599, 6213, 29901, 13, 4706, 9995, 13, 4706, 3826, 276, 358, 278, 9886, 2302, 310, 5717, 6942, 411, 263, 1024, 29889, 13, 13, 4706, 24412, 29892, 4772, 1095, 2222, 20437, 29892, 1016, 29915, 29873, 10366, 445, 411, 278, 20961, 698, 839, 1873, 310, 278, 1158, 29889, 13, 13, 4706, 584, 3207, 13, 4706, 2967, 29918, 2084, 313, 710, 29897, 584, 13, 13, 4706, 584, 3207, 13, 4706, 6554, 29918, 8149, 313, 1761, 29897, 584, 3767, 886, 29892, 6611, 1304, 304, 16280, 263, 6554, 13, 13, 4706, 584, 2457, 29901, 6213, 13, 4706, 9995, 13, 4706, 411, 1583, 3032, 908, 29901, 13, 9651, 6554, 29918, 8977, 353, 1583, 3032, 2886, 29918, 10492, 29918, 8977, 29898, 3188, 29918, 2084, 29892, 6554, 29918, 8149, 29897, 13, 9651, 565, 6554, 29918, 8977, 29901, 13, 18884, 565, 6554, 29918, 8977, 1839, 1745, 17225, 2033, 1405, 29871, 29900, 29901, 13, 462, 1678, 6554, 29918, 8977, 1839, 1745, 17225, 2033, 22361, 29871, 29896, 13, 13, 1678, 822, 9263, 358, 29918, 10492, 29918, 386, 26970, 839, 29898, 1311, 29892, 2967, 29918, 2084, 29901, 851, 29892, 6554, 29918, 8149, 29901, 1051, 29892, 11815, 29901, 5785, 29897, 1599, 6213, 29901, 13, 4706, 9995, 13, 4706, 3826, 276, 358, 278, 9886, 2302, 310, 5717, 6942, 411, 263, 1024, 29889, 13, 13, 4706, 584, 3207, 13, 4706, 2967, 29918, 2084, 313, 710, 29897, 584, 13, 13, 4706, 584, 3207, 13, 4706, 6554, 29918, 8149, 313, 1761, 29897, 584, 3767, 886, 29892, 6611, 1304, 304, 16280, 263, 6554, 13, 13, 4706, 584, 3207, 13, 4706, 11815, 313, 7411, 29897, 584, 1932, 22336, 411, 278, 16526, 29899, 3149, 11815, 2980, 731, 304, 263, 6374, 995, 29892, 13, 4706, 20961, 698, 280, 363, 472, 1556, 278, 1353, 310, 6923, 6790, 491, 11815, 322, 408, 2400, 278, 544, 272, 630, 1246, 4046, 29889, 319, 11815, 13, 4706, 2980, 310, 448, 29896, 1580, 11057, 385, 443, 29306, 4480, 29889, 13, 13, 4706, 584, 2457, 29901, 6213, 13, 4706, 9995, 13, 4706, 396, 450, 5687, 337, 3687, 2501, 278, 28855, 16888, 4426, 310, 1492, 29899, 574, 839, 3367, 19536, 29889, 13, 4706, 396, 498, 12268, 338, 263, 1196, 393, 4988, 515, 278, 3171, 310, 278, 4046, 472, 278, 3785, 1369, 304, 5225, 472, 278, 1095, 29889, 13, 4706, 396, 8725, 29892, 14034, 5224, 292, 278, 16897, 4203, 746, 20961, 698, 839, 29889, 13, 4706, 396, 960, 451, 20961, 698, 839, 29892, 14034, 5224, 292, 278, 16897, 304, 29871, 29896, 29889, 13, 4706, 396, 739, 338, 9280, 304, 8469, 746, 278, 9886, 2302, 338, 2038, 278, 16897, 29889, 13, 4706, 396, 960, 591, 817, 304, 4480, 29892, 4480, 297, 18618, 304, 920, 2215, 278, 16897, 338, 714, 310, 6159, 470, 2745, 3785, 1095, 29889, 13, 13, 4706, 11815, 29918, 3880, 353, 29871, 29900, 13, 4706, 337, 1867, 353, 5852, 13, 4706, 1550, 337, 1867, 29901, 13, 9651, 1583, 3032, 908, 29889, 562, 1548, 580, 13, 9651, 6554, 29918, 8977, 353, 1583, 3032, 2886, 29918, 10492, 29918, 8977, 29898, 3188, 29918, 2084, 29892, 6554, 29918, 8149, 29897, 13, 9651, 565, 6554, 29918, 8977, 338, 6213, 29901, 13, 18884, 337, 1867, 353, 7700, 13, 9651, 1683, 29901, 13, 18884, 4046, 353, 6554, 29918, 8977, 1839, 13400, 2033, 13, 18884, 10092, 353, 6554, 29918, 8977, 1839, 12071, 2033, 13, 18884, 931, 29918, 7165, 353, 6554, 29918, 8977, 1839, 2230, 29918, 7165, 2033, 13, 13, 18884, 19471, 353, 6425, 3552, 11384, 29889, 3707, 580, 448, 10092, 467, 7827, 29918, 23128, 3101, 29871, 396, 6425, 18469, 2319, 12006, 4436, 13, 18884, 16897, 353, 5135, 4181, 334, 4046, 29897, 847, 931, 29918, 7165, 29897, 334, 29871, 29900, 29889, 29945, 13, 18884, 565, 16897, 529, 29871, 29896, 29889, 29900, 29901, 13, 462, 1678, 16897, 353, 29871, 29896, 29889, 29900, 29871, 396, 29871, 29896, 338, 408, 4482, 338, 372, 881, 748, 29892, 12566, 2750, 4513, 292, 4436, 13, 13, 18884, 9886, 353, 6554, 29918, 8977, 1839, 1745, 17225, 2033, 13, 18884, 565, 9886, 6736, 5844, 29889, 27696, 29898, 386, 12268, 1125, 13, 13, 462, 1678, 565, 9886, 1405, 29871, 29900, 29901, 13, 462, 4706, 6554, 29918, 8977, 1839, 1745, 17225, 2033, 353, 9886, 448, 29871, 29896, 13, 462, 1678, 1583, 3032, 908, 29889, 14096, 580, 13, 462, 1678, 337, 1867, 353, 7700, 13, 13, 18884, 1683, 29901, 13, 462, 1678, 396, 565, 727, 526, 694, 5717, 2175, 297, 278, 1857, 3785, 13, 462, 1678, 565, 9886, 5277, 29871, 29900, 29901, 13, 462, 4706, 396, 769, 4480, 2745, 278, 1095, 310, 278, 3785, 13, 462, 4706, 4480, 29918, 23128, 353, 6425, 3552, 11384, 29889, 3707, 580, 448, 10092, 467, 7827, 29918, 23128, 3101, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 396, 6467, 4480, 363, 278, 9886, 29899, 386, 12268, 19471, 18618, 287, 491, 9886, 931, 13, 462, 4706, 4480, 29918, 23128, 353, 5135, 386, 12268, 448, 9886, 29897, 334, 931, 29918, 7165, 29897, 847, 4046, 13, 13, 462, 1678, 565, 11815, 2804, 448, 29896, 29889, 29900, 29901, 13, 462, 4706, 11815, 29918, 1745, 17225, 353, 11815, 448, 11815, 29918, 3880, 13, 462, 4706, 565, 11815, 29918, 1745, 17225, 5277, 29871, 29900, 29901, 13, 462, 9651, 12020, 4829, 29898, 4537, 29922, 29906, 29892, 2769, 543, 1349, 26970, 280, 11815, 23157, 13, 462, 4706, 565, 4480, 29918, 23128, 1405, 11815, 29918, 1745, 17225, 29901, 418, 396, 1016, 29915, 29873, 4480, 738, 5520, 1135, 278, 24959, 10753, 13, 462, 9651, 4480, 29918, 23128, 353, 11815, 29918, 1745, 17225, 13, 13, 462, 1678, 1583, 3032, 908, 29889, 14096, 580, 13, 462, 1678, 931, 29889, 17059, 29898, 10685, 29918, 23128, 29897, 13, 462, 1678, 11815, 29918, 3880, 4619, 4480, 29918, 23128, 13, 13, 1678, 822, 817, 29918, 22379, 29898, 1311, 29897, 1599, 6120, 29901, 13, 4706, 9995, 7106, 5852, 565, 278, 19257, 817, 2143, 690, 2790, 29889, 9995, 13, 4706, 411, 1583, 3032, 908, 29901, 13, 9651, 565, 1583, 3032, 22379, 29918, 1256, 29918, 2230, 29901, 13, 18884, 565, 1583, 3032, 22379, 29918, 1256, 29918, 2230, 1405, 12315, 29889, 3707, 7295, 13, 462, 1678, 1121, 353, 7700, 13, 18884, 1683, 29901, 13, 462, 1678, 1121, 353, 5852, 13, 9651, 1683, 29901, 13, 18884, 1121, 353, 5852, 13, 4706, 736, 1121, 13, 13, 1678, 822, 11086, 29918, 6734, 29918, 7054, 22026, 29898, 1311, 29892, 6554, 29918, 12514, 29897, 1599, 6213, 29901, 13, 4706, 9995, 9897, 3781, 278, 1887, 10682, 261, 11597, 22026, 1819, 322, 746, 278, 2446, 11086, 338, 13622, 29889, 9995, 13, 13, 4706, 565, 451, 6554, 29918, 12514, 29901, 13, 9651, 7090, 353, 6213, 13, 9651, 11086, 29918, 1256, 29918, 2230, 353, 6213, 13, 13, 4706, 1683, 29901, 13, 9651, 7090, 353, 9657, 580, 418, 396, 14422, 278, 1652, 8606, 287, 19257, 6475, 13, 9651, 620, 1691, 353, 731, 580, 418, 396, 14422, 5412, 10092, 2635, 29899, 3706, 13, 9651, 363, 6554, 29918, 13400, 297, 6554, 29918, 12514, 29901, 13, 18884, 2967, 29918, 2084, 353, 8207, 4286, 7122, 4197, 10492, 29918, 13400, 1839, 2754, 29918, 4703, 7464, 6554, 29918, 13400, 1839, 2754, 29918, 978, 7464, 6554, 29918, 13400, 1839, 2754, 29918, 3259, 2033, 2314, 13, 18884, 2967, 29918, 2084, 353, 8207, 29915, 718, 2967, 29918, 2084, 29889, 13609, 580, 13, 18884, 363, 6503, 297, 6554, 29918, 13400, 1839, 13237, 2033, 29901, 13, 462, 1678, 565, 6503, 1839, 29878, 1078, 2033, 29901, 13, 462, 4706, 565, 6503, 1839, 29878, 1078, 2033, 29961, 29900, 5387, 13, 462, 9651, 565, 6503, 1839, 29878, 1078, 2033, 29961, 29900, 22322, 13400, 2033, 29901, 13, 462, 18884, 1820, 353, 2967, 29918, 2084, 718, 525, 29989, 29915, 718, 6503, 1839, 978, 2033, 13, 462, 18884, 19257, 353, 6503, 1839, 29878, 1078, 2033, 29961, 29900, 29962, 13, 462, 18884, 10092, 353, 12315, 29889, 3166, 29918, 1807, 29898, 29878, 1078, 1839, 12071, 11287, 13, 462, 18884, 19257, 1839, 12071, 2033, 353, 10092, 13, 462, 18884, 620, 1691, 29889, 1202, 29898, 12071, 29897, 13, 462, 18884, 7090, 29961, 1989, 29962, 353, 19257, 13, 13, 9651, 1286, 353, 12315, 29889, 3707, 580, 13, 13, 9651, 396, 7280, 1824, 1122, 884, 367, 773, 701, 5717, 29892, 577, 3785, 1711, 12231, 5281, 411, 321, 29933, 388, 29915, 29879, 18139, 29889, 13, 9651, 29591, 353, 1286, 718, 5335, 287, 2554, 29898, 1195, 2667, 29922, 29896, 29945, 29897, 13, 13, 9651, 396, 1284, 278, 4720, 342, 10092, 13, 9651, 4720, 342, 29918, 12071, 353, 29591, 1678, 396, 15332, 29892, 925, 297, 1206, 896, 526, 694, 5407, 620, 1691, 2635, 29899, 3706, 13, 9651, 620, 1691, 353, 1051, 29898, 690, 1691, 29897, 13, 9651, 620, 1691, 29889, 6605, 580, 13, 9651, 363, 10092, 297, 620, 1691, 29901, 13, 18884, 565, 10092, 6736, 1286, 29901, 9651, 396, 14383, 746, 321, 29933, 388, 338, 5683, 304, 1044, 373, 263, 10092, 13, 462, 1678, 4720, 342, 29918, 12071, 353, 10092, 13, 462, 1678, 2867, 13, 13, 9651, 396, 671, 607, 3926, 338, 29548, 13, 9651, 565, 29591, 5277, 4720, 342, 29918, 12071, 29901, 13, 18884, 11086, 29918, 1256, 29918, 2230, 353, 29591, 13, 9651, 1683, 29901, 13, 18884, 11086, 29918, 1256, 29918, 2230, 353, 4720, 342, 29918, 12071, 13, 13, 4706, 411, 1583, 3032, 908, 29901, 13, 9651, 1583, 3032, 8173, 353, 7090, 13, 9651, 1583, 3032, 22379, 29918, 1256, 29918, 2230, 353, 11086, 29918, 1256, 29918, 2230, 13, 13, 1678, 822, 903, 2886, 29918, 10492, 29918, 8977, 29898, 1311, 29892, 2967, 29918, 2084, 29901, 851, 29892, 6554, 29918, 8149, 29901, 1051, 29897, 1599, 9657, 470, 6213, 29901, 13, 4706, 9995, 13, 4706, 3617, 278, 2380, 577, 278, 6554, 1203, 6942, 411, 263, 1024, 29889, 13, 13, 4706, 450, 24959, 1818, 505, 263, 7714, 29889, 13, 13, 4706, 2045, 597, 6734, 29889, 774, 388, 29889, 510, 29914, 2754, 29899, 2640, 29914, 6734, 29914, 7054, 22026, 29914, 13237, 29914, 10492, 29918, 13400, 29914, 23515, 29914, 657, 19907, 29931, 326, 1169, 13, 13, 4706, 584, 3207, 13, 4706, 2967, 29918, 2084, 313, 710, 29897, 584, 13, 13, 4706, 584, 3207, 13, 4706, 6554, 29918, 8149, 313, 1761, 29897, 584, 3767, 886, 29892, 6611, 1304, 304, 16280, 263, 6554, 13, 13, 4706, 584, 2457, 29901, 263, 19257, 9657, 470, 6213, 13, 4706, 9995, 13, 4706, 7090, 353, 1583, 3032, 8173, 13, 4706, 565, 451, 7090, 29901, 13, 9651, 736, 6213, 13, 4706, 1683, 29901, 13, 9651, 518, 10314, 29918, 978, 29918, 3188, 29892, 6503, 29918, 978, 29918, 5453, 29962, 353, 6554, 29918, 8149, 13, 13, 9651, 1820, 353, 2967, 29918, 2084, 718, 525, 29989, 29915, 718, 6503, 29918, 978, 29918, 3188, 13, 13, 9651, 7090, 353, 1583, 3032, 8173, 13, 9651, 565, 1820, 297, 7090, 29901, 13, 18884, 1121, 353, 7090, 29961, 1989, 29962, 13, 9651, 1683, 29901, 13, 18884, 1820, 353, 1820, 718, 6503, 29918, 978, 29918, 5453, 13, 18884, 565, 1820, 297, 7090, 29901, 13, 462, 1678, 1121, 353, 7090, 29961, 1989, 29962, 13, 18884, 1683, 29901, 13, 462, 1678, 12183, 29889, 8382, 877, 2525, 519, 304, 1284, 19257, 363, 29901, 525, 718, 1820, 29897, 13, 462, 1678, 1121, 353, 6213, 13, 13, 9651, 736, 1121, 13, 2 ]
tests/test_bus.py
MaLiN2223/py_proj_transport
0
157475
""" This file contains test for Bus class """ import sys import pytest from simulation import Bus from simulation.line import Line, LineStop from simulation.passenger_group import PassengersGroup from utils.TestsBase import TestBase from utils.helpers import get_full_class_name if sys.version_info[0] >= 3: import unittest.mock as mock from unittest.mock import PropertyMock else: import mock from mock import PropertyMock # region def get_empty_line(): """Creates empty line""" return Line({'id': 0, 'bus_capacity': 0, "frequency1": 0, "frequency2": 0}, [LineStop('', 0)], [LineStop('', 0)]) def passenger_group_equality(first_group, second_group): """ Checks if two passenger groups are equal :param first_group: first group :param second_group: second group :return: True if are equal False if not :rtype: bool """ return first_group.count == second_group.count and first_group.destination == second_group.destination def get_group(count, name="!"): """ Creates PassengersGroup with parameters :param count: group count :param name: group name :return: Passengers Group :rtype: PassengersGroup """ group = PassengersGroup(name, count) group.name = name group.count = count return group LINE_NAME = get_full_class_name(Line) def test_create(): """ Checks if bus is created properly """ with mock.patch(LINE_NAME + ".routes", new_callable=PropertyMock) as mocked_routes: mocked_routes.return_value = [[LineStop('A', 0), LineStop('', 0)], [LineStop('B', 0), LineStop('', 0)]] line = get_empty_line() bus = Bus(line, 0) bus2 = Bus(line, 1) assert bus.passengers == [] assert bus.line == line assert bus.time_to_next_stop == 0 assert bus.current_stop_name == 'A' assert bus.current_stop == 0 assert bus2.passengers == [] assert bus2.line == line assert bus2.time_to_next_stop == 0 assert bus2.current_stop_name == 'B' assert bus2.current_stop == 0 N_RANGE = 7 COUNTS = [[i] * ((2 * i) + N_RANGE + 1) for i in range(2, N_RANGE)] TEST_ARRAY = [] for _count in COUNTS: TEST_ARRAY.append(list(zip([i for i in range(1, len(_count) - 1)], _count))) TEST_ARRAY = [item for sublist in TEST_ARRAY for item in sublist] @pytest.mark.parametrize(("steps", "stops"), TEST_ARRAY) def test_move(steps, stops): """ Tests if bus is moving properly :param steps: steps to move :param stops: stops count on the line """ with mock.patch(LINE_NAME + ".routes", new_callable=PropertyMock) as mocked_routes: lines_left = [LineStop('l' + str(i), 2) for i in range(stops)] lines_left = [LineStop('P', 1)] + lines_left lines_right = [LineStop('r' + str(i), 2) for i in range(stops)] lines_right = [LineStop('P', 1)] + lines_right mocked_routes.return_value = [ lines_left, lines_right ] line = get_empty_line() bus = Bus(line, 0) bus2 = Bus(line, 1) bus.move() bus2.move() stop = 0 for i in range(min(3 * stops - 4, steps)): # 4 because of 4 = 2 ticks from end + 2 ticks from start bus.move() bus2.move() if 2 - (i % 3) == 0: stop += 1 assert bus.time_to_next_stop == 2 - (i % 3), "i = {}".format(i) assert bus.current_stop_name == 'l' + str(stop) assert bus.current_stop == (i // 3) + 1, "i = {}".format(i) assert bus2.time_to_next_stop == 2 - (i % 3), "i = {}".format(i) assert bus2.current_stop_name == 'r' + str(stop) assert bus2.current_stop == (i // 3) + 1, "i = {}".format(i) if steps >= 3 * stops: for i in range(steps - 3 * stops + 1): bus2.move() bus.move() assert bus.next_stop_name == "None" assert bus2.next_stop_name == "None" else: assert bus.next_stop_name != "None" assert bus2.next_stop_name != "None" class TestFill(TestBase): """ Group for filling tests """ def test_basic(self): """ Fills bus with one group without overflow """ with mock.patch(LINE_NAME + ".bus_capacity", new_callable=PropertyMock) as mocked_bus_capacity: mocked_bus_capacity.return_value = 10 group = get_group(10) bus = Bus(get_empty_line(), 0) assert bus.passengers == [] assert [] == bus.fill([group]) assert len(bus.passengers) == 1 assert isinstance(bus.passengers[0], PassengersGroup) assert bus.passengers[0].count == 10 def test_overflow_basic(self): """ Fills bus with one group with overflow """ with mock.patch(LINE_NAME + ".bus_capacity", new_callable=PropertyMock) as mocked_bus_capacity: mocked_bus_capacity.return_value = 10 group = get_group(30, "A") bus = Bus(get_empty_line(), 0) self.are_lists_equal(bus.passengers, []) after_fill = bus.fill([group]) self.are_lists_equal([PassengersGroup("A", 20)], after_fill, passenger_group_equality) assert len(bus.passengers) == 1 assert bus.count == 10 assert isinstance(bus.passengers[0], PassengersGroup) self.are_equal(bus.passengers[0], PassengersGroup("A", 10), passenger_group_equality) def test_two_different_in_one(self): """ Fills bus with two groups (as one list) without overflow """ with mock.patch(LINE_NAME + ".bus_capacity", new_callable=PropertyMock) as mocked_bus_capacity: mocked_bus_capacity.return_value = 20 group1 = get_group(10, "A") group2 = get_group(10, "B") bus = Bus(get_empty_line(), 0) self.are_lists_equal(bus.passengers, []) after_fill = bus.fill([group1, group2]) assert after_fill == [] assert bus.count == 20 assert len(bus.passengers) == 2 assert group1 in bus.passengers assert group2 in bus.passengers assert bus.passengers[0] != bus.passengers[1] def test_two_different_in_one_overflow(self): """ Fills bus with two groupss (as one list) with overflow """ with mock.patch(LINE_NAME + ".bus_capacity", new_callable=PropertyMock) as mocked_bus_capacity: mocked_bus_capacity.return_value = 20 group1 = get_group(10, "A") group2 = get_group(30, "B") bus = Bus(get_empty_line(), 0) self.are_lists_equal(bus.passengers, []) after_fill = bus.fill([group1, group2]) assert sum([i.count for i in after_fill]) == 20 assert after_fill != [] assert bus.count == 20 assert len(bus.passengers) == 2 assert bus.passengers[0] != bus.passengers[1] def test_two_different_in_two_overflow(self): """ Fills bus with two groups one by one with overflow """ with mock.patch(LINE_NAME + ".bus_capacity", new_callable=PropertyMock) as mocked_bus_capacity: mocked_bus_capacity.return_value = 20 group1 = get_group(10, "A") group2 = get_group(30, "B") bus = Bus(get_empty_line(), 0) self.are_lists_equal(bus.passengers, []) after_fill = bus.fill([group1]) assert after_fill == [] assert bus.count == 10 assert len(bus.passengers) == 1 after_fill = bus.fill([group2]) self.are_lists_equal(after_fill, [get_group(20, "B")], passenger_group_equality) assert bus.count == 20 assert len(bus.passengers) == 2 def test_add_the_same_overflow(self): """ Fills bus with two identical groupss with overflow """ with mock.patch(LINE_NAME + ".bus_capacity", new_callable=PropertyMock) as mocked_bus_capacity: mocked_bus_capacity.return_value = 20 group1 = get_group(10, "A") group2 = get_group(30, "A") bus = Bus(get_empty_line(), 0) self.are_lists_equal(bus.passengers, []) after_fill = bus.fill([group1]) assert bus.count == 10 assert len(bus.passengers) == 1 after_fill = bus.fill([group2]) self.are_lists_equal(after_fill, [get_group(20, "A")], passenger_group_equality) assert bus.count == 20 assert len(bus.passengers) == 1 self.are_equal(bus.passengers[0], get_group(20, "A"), passenger_group_equality) def test_add_the_same(self): """ Fills bus with two identical groupss without overflow """ with mock.patch(LINE_NAME + ".bus_capacity", new_callable=PropertyMock) as mocked_bus_capacity: mocked_bus_capacity.return_value = 20 group1 = get_group(10, "A") group2 = get_group(9, "A") bus = Bus(get_empty_line(), 0) assert bus.passengers == [] after_fill = bus.fill([group1]) assert after_fill == [] assert bus.count == 10 assert len(bus.passengers) == 1 after_fill = bus.fill([group2]) assert after_fill == [] assert bus.count == 19 assert len(bus.passengers) == 1 self.are_equal(bus.passengers[0], get_group(19, "A"), passenger_group_equality)
[ 1, 9995, 13, 4013, 934, 3743, 1243, 363, 8406, 770, 13, 15945, 29908, 13, 5215, 10876, 13, 13, 5215, 11451, 1688, 13, 13, 3166, 17402, 1053, 8406, 13, 3166, 17402, 29889, 1220, 1053, 7407, 29892, 7407, 16329, 13, 3166, 17402, 29889, 3364, 15109, 29918, 2972, 1053, 6978, 21709, 4782, 13, 3166, 3667, 29879, 29889, 24376, 5160, 1053, 4321, 5160, 13, 3166, 3667, 29879, 29889, 3952, 6774, 1053, 679, 29918, 8159, 29918, 1990, 29918, 978, 13, 13, 361, 10876, 29889, 3259, 29918, 3888, 29961, 29900, 29962, 6736, 29871, 29941, 29901, 13, 1678, 1053, 443, 27958, 29889, 17640, 408, 11187, 13, 1678, 515, 443, 27958, 29889, 17640, 1053, 9079, 18680, 13, 2870, 29901, 13, 1678, 1053, 11187, 13, 1678, 515, 11187, 1053, 9079, 18680, 13, 13, 13, 29937, 5120, 13, 1753, 679, 29918, 6310, 29918, 1220, 7295, 13, 1678, 9995, 9832, 1078, 4069, 1196, 15945, 29908, 13, 1678, 736, 7407, 3319, 29915, 333, 2396, 29871, 29900, 29892, 525, 8262, 29918, 5030, 5946, 2396, 29871, 29900, 29892, 376, 10745, 23860, 29896, 1115, 29871, 29900, 29892, 376, 10745, 23860, 29906, 1115, 29871, 29900, 1118, 518, 3542, 16329, 877, 742, 29871, 29900, 29897, 1402, 518, 3542, 16329, 877, 742, 29871, 29900, 29897, 2314, 13, 13, 13, 1753, 28507, 29918, 2972, 29918, 13895, 29898, 4102, 29918, 2972, 29892, 1473, 29918, 2972, 1125, 13, 1678, 9995, 13, 1678, 5399, 29879, 565, 1023, 28507, 6471, 526, 5186, 13, 1678, 584, 3207, 937, 29918, 2972, 29901, 937, 2318, 13, 1678, 584, 3207, 1473, 29918, 2972, 29901, 1473, 2318, 13, 1678, 584, 2457, 29901, 5852, 565, 526, 5186, 7700, 565, 451, 13, 1678, 584, 29878, 1853, 29901, 6120, 13, 1678, 9995, 13, 1678, 736, 937, 29918, 2972, 29889, 2798, 1275, 1473, 29918, 2972, 29889, 2798, 322, 937, 29918, 2972, 29889, 23848, 1275, 1473, 29918, 2972, 29889, 23848, 13, 13, 13, 1753, 679, 29918, 2972, 29898, 2798, 29892, 1024, 543, 3850, 1125, 13, 1678, 9995, 13, 1678, 6760, 1078, 6978, 21709, 4782, 411, 4128, 13, 1678, 584, 3207, 2302, 29901, 2318, 2302, 13, 1678, 584, 3207, 1024, 29901, 2318, 1024, 13, 1678, 584, 2457, 29901, 6978, 21709, 6431, 13, 1678, 584, 29878, 1853, 29901, 6978, 21709, 4782, 13, 1678, 9995, 13, 1678, 2318, 353, 6978, 21709, 4782, 29898, 978, 29892, 2302, 29897, 13, 1678, 2318, 29889, 978, 353, 1024, 13, 1678, 2318, 29889, 2798, 353, 2302, 13, 1678, 736, 2318, 13, 13, 13, 18521, 29918, 5813, 353, 679, 29918, 8159, 29918, 1990, 29918, 978, 29898, 3542, 29897, 13, 13, 13, 1753, 1243, 29918, 3258, 7295, 13, 1678, 9995, 13, 1678, 5399, 29879, 565, 3593, 338, 2825, 6284, 13, 1678, 9995, 13, 1678, 411, 11187, 29889, 5041, 29898, 18521, 29918, 5813, 718, 11393, 27894, 613, 716, 29918, 4804, 519, 29922, 4854, 18680, 29897, 408, 11187, 287, 29918, 27894, 29901, 13, 4706, 11187, 287, 29918, 27894, 29889, 2457, 29918, 1767, 353, 5519, 3542, 16329, 877, 29909, 742, 29871, 29900, 511, 7407, 16329, 877, 742, 29871, 29900, 29897, 1402, 518, 3542, 16329, 877, 29933, 742, 29871, 29900, 511, 7407, 16329, 877, 742, 29871, 29900, 4638, 29962, 13, 4706, 1196, 353, 679, 29918, 6310, 29918, 1220, 580, 13, 4706, 3593, 353, 8406, 29898, 1220, 29892, 29871, 29900, 29897, 13, 4706, 3593, 29906, 353, 8406, 29898, 1220, 29892, 29871, 29896, 29897, 13, 4706, 4974, 3593, 29889, 3364, 21709, 1275, 5159, 13, 4706, 4974, 3593, 29889, 1220, 1275, 1196, 13, 4706, 4974, 3593, 29889, 2230, 29918, 517, 29918, 4622, 29918, 9847, 1275, 29871, 29900, 13, 4706, 4974, 3593, 29889, 3784, 29918, 9847, 29918, 978, 1275, 525, 29909, 29915, 13, 4706, 4974, 3593, 29889, 3784, 29918, 9847, 1275, 29871, 29900, 13, 4706, 4974, 3593, 29906, 29889, 3364, 21709, 1275, 5159, 13, 4706, 4974, 3593, 29906, 29889, 1220, 1275, 1196, 13, 4706, 4974, 3593, 29906, 29889, 2230, 29918, 517, 29918, 4622, 29918, 9847, 1275, 29871, 29900, 13, 4706, 4974, 3593, 29906, 29889, 3784, 29918, 9847, 29918, 978, 1275, 525, 29933, 29915, 13, 4706, 4974, 3593, 29906, 29889, 3784, 29918, 9847, 1275, 29871, 29900, 13, 13, 13, 29940, 29918, 29934, 24336, 353, 29871, 29955, 13, 3217, 3904, 9375, 353, 5519, 29875, 29962, 334, 5135, 29906, 334, 474, 29897, 718, 405, 29918, 29934, 24336, 718, 29871, 29896, 29897, 363, 474, 297, 3464, 29898, 29906, 29892, 405, 29918, 29934, 24336, 4638, 13, 18267, 29918, 1718, 22800, 353, 5159, 13, 1454, 903, 2798, 297, 4810, 3904, 9375, 29901, 13, 1678, 17067, 1254, 29918, 1718, 22800, 29889, 4397, 29898, 1761, 29898, 7554, 4197, 29875, 363, 474, 297, 3464, 29898, 29896, 29892, 7431, 7373, 2798, 29897, 448, 29871, 29896, 29897, 1402, 903, 2798, 4961, 13, 18267, 29918, 1718, 22800, 353, 518, 667, 363, 1014, 1761, 297, 17067, 1254, 29918, 1718, 22800, 363, 2944, 297, 1014, 1761, 29962, 13, 13, 13, 29992, 2272, 1688, 29889, 3502, 29889, 3207, 300, 374, 911, 29898, 703, 24530, 613, 376, 303, 3554, 4968, 17067, 1254, 29918, 1718, 22800, 29897, 13, 1753, 1243, 29918, 11631, 29898, 24530, 29892, 17726, 1125, 13, 1678, 9995, 13, 1678, 4321, 29879, 565, 3593, 338, 8401, 6284, 13, 1678, 584, 3207, 6576, 29901, 6576, 304, 4337, 13, 1678, 584, 3207, 17726, 29901, 17726, 2302, 373, 278, 1196, 13, 1678, 9995, 13, 1678, 411, 11187, 29889, 5041, 29898, 18521, 29918, 5813, 718, 11393, 27894, 613, 716, 29918, 4804, 519, 29922, 4854, 18680, 29897, 408, 11187, 287, 29918, 27894, 29901, 13, 13, 4706, 3454, 29918, 1563, 353, 518, 3542, 16329, 877, 29880, 29915, 718, 851, 29898, 29875, 511, 29871, 29906, 29897, 363, 474, 297, 3464, 29898, 303, 3554, 4638, 13, 4706, 3454, 29918, 1563, 353, 518, 3542, 16329, 877, 29925, 742, 29871, 29896, 4638, 718, 3454, 29918, 1563, 13, 13, 4706, 3454, 29918, 1266, 353, 518, 3542, 16329, 877, 29878, 29915, 718, 851, 29898, 29875, 511, 29871, 29906, 29897, 363, 474, 297, 3464, 29898, 303, 3554, 4638, 13, 4706, 3454, 29918, 1266, 353, 518, 3542, 16329, 877, 29925, 742, 29871, 29896, 4638, 718, 3454, 29918, 1266, 13, 4706, 11187, 287, 29918, 27894, 29889, 2457, 29918, 1767, 353, 518, 13, 9651, 3454, 29918, 1563, 29892, 13, 9651, 3454, 29918, 1266, 13, 4706, 4514, 13, 4706, 1196, 353, 679, 29918, 6310, 29918, 1220, 580, 13, 13, 4706, 3593, 353, 8406, 29898, 1220, 29892, 29871, 29900, 29897, 13, 4706, 3593, 29906, 353, 8406, 29898, 1220, 29892, 29871, 29896, 29897, 13, 4706, 3593, 29889, 11631, 580, 13, 4706, 3593, 29906, 29889, 11631, 580, 13, 13, 4706, 5040, 353, 29871, 29900, 13, 4706, 363, 474, 297, 3464, 29898, 1195, 29898, 29941, 334, 17726, 448, 29871, 29946, 29892, 6576, 22164, 29871, 396, 29871, 29946, 1363, 310, 29871, 29946, 353, 29871, 29906, 260, 7358, 515, 1095, 718, 29871, 29906, 260, 7358, 515, 1369, 13, 9651, 3593, 29889, 11631, 580, 13, 9651, 3593, 29906, 29889, 11631, 580, 13, 9651, 565, 29871, 29906, 448, 313, 29875, 1273, 29871, 29941, 29897, 1275, 29871, 29900, 29901, 13, 18884, 5040, 4619, 29871, 29896, 13, 9651, 4974, 3593, 29889, 2230, 29918, 517, 29918, 4622, 29918, 9847, 1275, 29871, 29906, 448, 313, 29875, 1273, 29871, 29941, 511, 376, 29875, 353, 6571, 1642, 4830, 29898, 29875, 29897, 13, 9651, 4974, 3593, 29889, 3784, 29918, 9847, 29918, 978, 1275, 525, 29880, 29915, 718, 851, 29898, 9847, 29897, 13, 9651, 4974, 3593, 29889, 3784, 29918, 9847, 1275, 313, 29875, 849, 29871, 29941, 29897, 718, 29871, 29896, 29892, 376, 29875, 353, 6571, 1642, 4830, 29898, 29875, 29897, 13, 13, 9651, 4974, 3593, 29906, 29889, 2230, 29918, 517, 29918, 4622, 29918, 9847, 1275, 29871, 29906, 448, 313, 29875, 1273, 29871, 29941, 511, 376, 29875, 353, 6571, 1642, 4830, 29898, 29875, 29897, 13, 9651, 4974, 3593, 29906, 29889, 3784, 29918, 9847, 29918, 978, 1275, 525, 29878, 29915, 718, 851, 29898, 9847, 29897, 13, 9651, 4974, 3593, 29906, 29889, 3784, 29918, 9847, 1275, 313, 29875, 849, 29871, 29941, 29897, 718, 29871, 29896, 29892, 376, 29875, 353, 6571, 1642, 4830, 29898, 29875, 29897, 13, 13, 4706, 565, 6576, 6736, 29871, 29941, 334, 17726, 29901, 13, 9651, 363, 474, 297, 3464, 29898, 24530, 448, 29871, 29941, 334, 17726, 718, 29871, 29896, 1125, 13, 18884, 3593, 29906, 29889, 11631, 580, 13, 18884, 3593, 29889, 11631, 580, 13, 9651, 4974, 3593, 29889, 4622, 29918, 9847, 29918, 978, 1275, 376, 8516, 29908, 13, 9651, 4974, 3593, 29906, 29889, 4622, 29918, 9847, 29918, 978, 1275, 376, 8516, 29908, 13, 4706, 1683, 29901, 13, 9651, 4974, 3593, 29889, 4622, 29918, 9847, 29918, 978, 2804, 376, 8516, 29908, 13, 9651, 4974, 3593, 29906, 29889, 4622, 29918, 9847, 29918, 978, 2804, 376, 8516, 29908, 13, 13, 13, 1990, 4321, 20876, 29898, 3057, 5160, 1125, 13, 1678, 9995, 13, 1678, 6431, 363, 27523, 6987, 13, 1678, 9995, 13, 1678, 822, 1243, 29918, 16121, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 383, 6090, 3593, 411, 697, 2318, 1728, 11969, 13, 4706, 9995, 13, 4706, 411, 11187, 29889, 5041, 29898, 18521, 29918, 5813, 718, 11393, 8262, 29918, 5030, 5946, 613, 716, 29918, 4804, 519, 29922, 4854, 18680, 29897, 408, 11187, 287, 29918, 8262, 29918, 5030, 5946, 29901, 13, 9651, 11187, 287, 29918, 8262, 29918, 5030, 5946, 29889, 2457, 29918, 1767, 353, 29871, 29896, 29900, 13, 9651, 2318, 353, 679, 29918, 2972, 29898, 29896, 29900, 29897, 13, 9651, 3593, 353, 8406, 29898, 657, 29918, 6310, 29918, 1220, 3285, 29871, 29900, 29897, 13, 9651, 4974, 3593, 29889, 3364, 21709, 1275, 5159, 13, 9651, 4974, 5159, 1275, 3593, 29889, 5589, 4197, 2972, 2314, 13, 9651, 4974, 7431, 29898, 8262, 29889, 3364, 21709, 29897, 1275, 29871, 29896, 13, 9651, 4974, 338, 8758, 29898, 8262, 29889, 3364, 21709, 29961, 29900, 1402, 6978, 21709, 4782, 29897, 13, 9651, 4974, 3593, 29889, 3364, 21709, 29961, 29900, 1822, 2798, 1275, 29871, 29896, 29900, 13, 13, 1678, 822, 1243, 29918, 2262, 29918, 16121, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 383, 6090, 3593, 411, 697, 2318, 411, 11969, 13, 4706, 9995, 13, 4706, 411, 11187, 29889, 5041, 29898, 18521, 29918, 5813, 718, 11393, 8262, 29918, 5030, 5946, 613, 716, 29918, 4804, 519, 29922, 4854, 18680, 29897, 408, 11187, 287, 29918, 8262, 29918, 5030, 5946, 29901, 13, 9651, 11187, 287, 29918, 8262, 29918, 5030, 5946, 29889, 2457, 29918, 1767, 353, 29871, 29896, 29900, 13, 9651, 2318, 353, 679, 29918, 2972, 29898, 29941, 29900, 29892, 376, 29909, 1159, 13, 9651, 3593, 353, 8406, 29898, 657, 29918, 6310, 29918, 1220, 3285, 29871, 29900, 29897, 13, 9651, 1583, 29889, 598, 29918, 21513, 29918, 11745, 29898, 8262, 29889, 3364, 21709, 29892, 518, 2314, 13, 9651, 1156, 29918, 5589, 353, 3593, 29889, 5589, 4197, 2972, 2314, 13, 9651, 1583, 29889, 598, 29918, 21513, 29918, 11745, 4197, 7129, 21709, 4782, 703, 29909, 613, 29871, 29906, 29900, 29897, 1402, 1156, 29918, 5589, 29892, 28507, 29918, 2972, 29918, 13895, 29897, 13, 9651, 4974, 7431, 29898, 8262, 29889, 3364, 21709, 29897, 1275, 29871, 29896, 13, 9651, 4974, 3593, 29889, 2798, 1275, 29871, 29896, 29900, 13, 9651, 4974, 338, 8758, 29898, 8262, 29889, 3364, 21709, 29961, 29900, 1402, 6978, 21709, 4782, 29897, 13, 9651, 1583, 29889, 598, 29918, 11745, 29898, 8262, 29889, 3364, 21709, 29961, 29900, 1402, 6978, 21709, 4782, 703, 29909, 613, 29871, 29896, 29900, 511, 28507, 29918, 2972, 29918, 13895, 29897, 13, 13, 1678, 822, 1243, 29918, 10184, 29918, 29881, 15622, 29918, 262, 29918, 650, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 383, 6090, 3593, 411, 1023, 6471, 313, 294, 697, 1051, 29897, 1728, 11969, 13, 4706, 9995, 13, 4706, 411, 11187, 29889, 5041, 29898, 18521, 29918, 5813, 718, 11393, 8262, 29918, 5030, 5946, 613, 716, 29918, 4804, 519, 29922, 4854, 18680, 29897, 408, 11187, 287, 29918, 8262, 29918, 5030, 5946, 29901, 13, 9651, 11187, 287, 29918, 8262, 29918, 5030, 5946, 29889, 2457, 29918, 1767, 353, 29871, 29906, 29900, 13, 9651, 2318, 29896, 353, 679, 29918, 2972, 29898, 29896, 29900, 29892, 376, 29909, 1159, 13, 9651, 2318, 29906, 353, 679, 29918, 2972, 29898, 29896, 29900, 29892, 376, 29933, 1159, 13, 9651, 3593, 353, 8406, 29898, 657, 29918, 6310, 29918, 1220, 3285, 29871, 29900, 29897, 13, 9651, 1583, 29889, 598, 29918, 21513, 29918, 11745, 29898, 8262, 29889, 3364, 21709, 29892, 518, 2314, 13, 9651, 1156, 29918, 5589, 353, 3593, 29889, 5589, 4197, 2972, 29896, 29892, 2318, 29906, 2314, 13, 9651, 4974, 1156, 29918, 5589, 1275, 5159, 13, 9651, 4974, 3593, 29889, 2798, 1275, 29871, 29906, 29900, 13, 9651, 4974, 7431, 29898, 8262, 29889, 3364, 21709, 29897, 1275, 29871, 29906, 13, 9651, 4974, 2318, 29896, 297, 3593, 29889, 3364, 21709, 13, 9651, 4974, 2318, 29906, 297, 3593, 29889, 3364, 21709, 13, 9651, 4974, 3593, 29889, 3364, 21709, 29961, 29900, 29962, 2804, 3593, 29889, 3364, 21709, 29961, 29896, 29962, 13, 13, 1678, 822, 1243, 29918, 10184, 29918, 29881, 15622, 29918, 262, 29918, 650, 29918, 2262, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 383, 6090, 3593, 411, 1023, 6471, 29879, 313, 294, 697, 1051, 29897, 411, 11969, 13, 4706, 9995, 13, 4706, 411, 11187, 29889, 5041, 29898, 18521, 29918, 5813, 718, 11393, 8262, 29918, 5030, 5946, 613, 716, 29918, 4804, 519, 29922, 4854, 18680, 29897, 408, 11187, 287, 29918, 8262, 29918, 5030, 5946, 29901, 13, 9651, 11187, 287, 29918, 8262, 29918, 5030, 5946, 29889, 2457, 29918, 1767, 353, 29871, 29906, 29900, 13, 9651, 2318, 29896, 353, 679, 29918, 2972, 29898, 29896, 29900, 29892, 376, 29909, 1159, 13, 9651, 2318, 29906, 353, 679, 29918, 2972, 29898, 29941, 29900, 29892, 376, 29933, 1159, 13, 9651, 3593, 353, 8406, 29898, 657, 29918, 6310, 29918, 1220, 3285, 29871, 29900, 29897, 13, 9651, 1583, 29889, 598, 29918, 21513, 29918, 11745, 29898, 8262, 29889, 3364, 21709, 29892, 518, 2314, 13, 9651, 1156, 29918, 5589, 353, 3593, 29889, 5589, 4197, 2972, 29896, 29892, 2318, 29906, 2314, 13, 9651, 4974, 2533, 4197, 29875, 29889, 2798, 363, 474, 297, 1156, 29918, 5589, 2314, 1275, 29871, 29906, 29900, 13, 9651, 4974, 1156, 29918, 5589, 2804, 5159, 13, 9651, 4974, 3593, 29889, 2798, 1275, 29871, 29906, 29900, 13, 9651, 4974, 7431, 29898, 8262, 29889, 3364, 21709, 29897, 1275, 29871, 29906, 13, 9651, 4974, 3593, 29889, 3364, 21709, 29961, 29900, 29962, 2804, 3593, 29889, 3364, 21709, 29961, 29896, 29962, 13, 13, 1678, 822, 1243, 29918, 10184, 29918, 29881, 15622, 29918, 262, 29918, 10184, 29918, 2262, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 383, 6090, 3593, 411, 1023, 6471, 697, 491, 697, 411, 11969, 13, 4706, 9995, 13, 4706, 411, 11187, 29889, 5041, 29898, 18521, 29918, 5813, 718, 11393, 8262, 29918, 5030, 5946, 613, 716, 29918, 4804, 519, 29922, 4854, 18680, 29897, 408, 11187, 287, 29918, 8262, 29918, 5030, 5946, 29901, 13, 9651, 11187, 287, 29918, 8262, 29918, 5030, 5946, 29889, 2457, 29918, 1767, 353, 29871, 29906, 29900, 13, 9651, 2318, 29896, 353, 679, 29918, 2972, 29898, 29896, 29900, 29892, 376, 29909, 1159, 13, 9651, 2318, 29906, 353, 679, 29918, 2972, 29898, 29941, 29900, 29892, 376, 29933, 1159, 13, 9651, 3593, 353, 8406, 29898, 657, 29918, 6310, 29918, 1220, 3285, 29871, 29900, 29897, 13, 9651, 1583, 29889, 598, 29918, 21513, 29918, 11745, 29898, 8262, 29889, 3364, 21709, 29892, 518, 2314, 13, 9651, 1156, 29918, 5589, 353, 3593, 29889, 5589, 4197, 2972, 29896, 2314, 13, 9651, 4974, 1156, 29918, 5589, 1275, 5159, 13, 9651, 4974, 3593, 29889, 2798, 1275, 29871, 29896, 29900, 13, 9651, 4974, 7431, 29898, 8262, 29889, 3364, 21709, 29897, 1275, 29871, 29896, 13, 9651, 1156, 29918, 5589, 353, 3593, 29889, 5589, 4197, 2972, 29906, 2314, 13, 9651, 1583, 29889, 598, 29918, 21513, 29918, 11745, 29898, 7045, 29918, 5589, 29892, 518, 657, 29918, 2972, 29898, 29906, 29900, 29892, 376, 29933, 1159, 1402, 28507, 29918, 2972, 29918, 13895, 29897, 13, 9651, 4974, 3593, 29889, 2798, 1275, 29871, 29906, 29900, 13, 9651, 4974, 7431, 29898, 8262, 29889, 3364, 21709, 29897, 1275, 29871, 29906, 13, 13, 1678, 822, 1243, 29918, 1202, 29918, 1552, 29918, 17642, 29918, 2262, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 383, 6090, 3593, 411, 1023, 13557, 6471, 29879, 411, 11969, 13, 4706, 9995, 13, 4706, 411, 11187, 29889, 5041, 29898, 18521, 29918, 5813, 718, 11393, 8262, 29918, 5030, 5946, 613, 716, 29918, 4804, 519, 29922, 4854, 18680, 29897, 408, 11187, 287, 29918, 8262, 29918, 5030, 5946, 29901, 13, 9651, 11187, 287, 29918, 8262, 29918, 5030, 5946, 29889, 2457, 29918, 1767, 353, 29871, 29906, 29900, 13, 9651, 2318, 29896, 353, 679, 29918, 2972, 29898, 29896, 29900, 29892, 376, 29909, 1159, 13, 9651, 2318, 29906, 353, 679, 29918, 2972, 29898, 29941, 29900, 29892, 376, 29909, 1159, 13, 9651, 3593, 353, 8406, 29898, 657, 29918, 6310, 29918, 1220, 3285, 29871, 29900, 29897, 13, 9651, 1583, 29889, 598, 29918, 21513, 29918, 11745, 29898, 8262, 29889, 3364, 21709, 29892, 518, 2314, 13, 9651, 1156, 29918, 5589, 353, 3593, 29889, 5589, 4197, 2972, 29896, 2314, 13, 9651, 4974, 3593, 29889, 2798, 1275, 29871, 29896, 29900, 13, 9651, 4974, 7431, 29898, 8262, 29889, 3364, 21709, 29897, 1275, 29871, 29896, 13, 9651, 1156, 29918, 5589, 353, 3593, 29889, 5589, 4197, 2972, 29906, 2314, 13, 9651, 1583, 29889, 598, 29918, 21513, 29918, 11745, 29898, 7045, 29918, 5589, 29892, 518, 657, 29918, 2972, 29898, 29906, 29900, 29892, 376, 29909, 1159, 1402, 28507, 29918, 2972, 29918, 13895, 29897, 13, 9651, 4974, 3593, 29889, 2798, 1275, 29871, 29906, 29900, 13, 9651, 4974, 7431, 29898, 8262, 29889, 3364, 21709, 29897, 1275, 29871, 29896, 13, 9651, 1583, 29889, 598, 29918, 11745, 29898, 8262, 29889, 3364, 21709, 29961, 29900, 1402, 679, 29918, 2972, 29898, 29906, 29900, 29892, 376, 29909, 4968, 28507, 29918, 2972, 29918, 13895, 29897, 13, 13, 1678, 822, 1243, 29918, 1202, 29918, 1552, 29918, 17642, 29898, 1311, 1125, 13, 4706, 9995, 13, 4706, 383, 6090, 3593, 411, 1023, 13557, 6471, 29879, 1728, 11969, 13, 4706, 9995, 13, 4706, 411, 11187, 29889, 5041, 29898, 18521, 29918, 5813, 718, 11393, 8262, 29918, 5030, 5946, 613, 716, 29918, 4804, 519, 29922, 4854, 18680, 29897, 408, 11187, 287, 29918, 8262, 29918, 5030, 5946, 29901, 13, 9651, 11187, 287, 29918, 8262, 29918, 5030, 5946, 29889, 2457, 29918, 1767, 353, 29871, 29906, 29900, 13, 9651, 2318, 29896, 353, 679, 29918, 2972, 29898, 29896, 29900, 29892, 376, 29909, 1159, 13, 9651, 2318, 29906, 353, 679, 29918, 2972, 29898, 29929, 29892, 376, 29909, 1159, 13, 9651, 3593, 353, 8406, 29898, 657, 29918, 6310, 29918, 1220, 3285, 29871, 29900, 29897, 13, 9651, 4974, 3593, 29889, 3364, 21709, 1275, 5159, 13, 9651, 1156, 29918, 5589, 353, 3593, 29889, 5589, 4197, 2972, 29896, 2314, 13, 9651, 4974, 1156, 29918, 5589, 1275, 5159, 13, 9651, 4974, 3593, 29889, 2798, 1275, 29871, 29896, 29900, 13, 9651, 4974, 7431, 29898, 8262, 29889, 3364, 21709, 29897, 1275, 29871, 29896, 13, 9651, 1156, 29918, 5589, 353, 3593, 29889, 5589, 4197, 2972, 29906, 2314, 13, 9651, 4974, 1156, 29918, 5589, 1275, 5159, 13, 9651, 4974, 3593, 29889, 2798, 1275, 29871, 29896, 29929, 13, 9651, 4974, 7431, 29898, 8262, 29889, 3364, 21709, 29897, 1275, 29871, 29896, 13, 9651, 1583, 29889, 598, 29918, 11745, 29898, 8262, 29889, 3364, 21709, 29961, 29900, 1402, 679, 29918, 2972, 29898, 29896, 29929, 29892, 376, 29909, 4968, 28507, 29918, 2972, 29918, 13895, 29897, 13, 2 ]
coding/learn_pytest/bak/test_anothersmtp.py
yatao91/learning_road
3
57478
<filename>coding/learn_pytest/bak/test_anothersmtp.py # -*- coding: utf-8 -*- smtpserver = "smtp.qq.com" # will be read by smtp fixture def test_showhelo(smtp_connection): assert 0, smtp_connection.helo()
[ 1, 529, 9507, 29958, 29883, 3689, 29914, 19668, 29918, 2272, 1688, 29914, 29890, 557, 29914, 1688, 29918, 273, 720, 414, 4378, 29886, 29889, 2272, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 3844, 29873, 567, 261, 369, 353, 376, 3844, 9392, 29889, 24349, 29889, 510, 29908, 29871, 396, 674, 367, 1303, 491, 1560, 9392, 5713, 15546, 13, 13, 13, 1753, 1243, 29918, 4294, 3952, 29877, 29898, 3844, 9392, 29918, 9965, 1125, 13, 1678, 4974, 29871, 29900, 29892, 1560, 9392, 29918, 9965, 29889, 3952, 29877, 580, 2 ]
utils.py
sWizad/HashNeRF-pytorch
0
12007
import json import numpy as np import pdb import torch from ray_utils import get_rays, get_ray_directions, get_ndc_rays BOX_OFFSETS = torch.tensor([[[i,j,k] for i in [0, 1] for j in [0, 1] for k in [0, 1]]], device='cuda') SQR_OFFSETS = torch.tensor([[[i,j] for i in [0, 1] for j in [0, 1] ]], device='cuda') def hash(coords, log2_hashmap_size): ''' coords: 3D coordinates. B x 3 log2T: logarithm of T w.r.t 2 ''' x, y, z = coords[..., 0], coords[..., 1], coords[..., 2] return torch.tensor((1<<log2_hashmap_size)-1) & (x*73856093 ^ y*19349663 ^ z*83492791) #return ((1<<log2_hashmap_size)-1) & (x*73856093 ^ y*19349663 ^ z*83492791) def hash2d(coords, log2_hashmap_size): ''' coords: 2D coordinates. B x 3 log2T: logarithm of T w.r.t 2 ''' x, y = coords[..., 0], coords[..., 1] return torch.tensor((1<<log2_hashmap_size)-1) & (x*73856093 ^ y*19349663) def xy2index(xy,resolution): return xy[...,0]+xy[...,1]*resolution def get_bbox3d_for_blenderobj(camera_transforms, H, W, near=2.0, far=6.0): camera_angle_x = float(camera_transforms['camera_angle_x']) focal = 0.5*W/np.tan(0.5 * camera_angle_x) # ray directions in camera coordinates directions = get_ray_directions(H, W, focal) min_bound = [100, 100, 100] max_bound = [-100, -100, -100] points = [] for frame in camera_transforms["frames"]: c2w = torch.FloatTensor(frame["transform_matrix"]) rays_o, rays_d = get_rays(directions, c2w) def find_min_max(pt): for i in range(3): if(min_bound[i] > pt[i]): min_bound[i] = pt[i] if(max_bound[i] < pt[i]): max_bound[i] = pt[i] return for i in [0, W-1, H*W-W, H*W-1]: min_point = rays_o[i] + near*rays_d[i] max_point = rays_o[i] + far*rays_d[i] points += [min_point, max_point] find_min_max(min_point) find_min_max(max_point) return (torch.tensor(min_bound)-torch.tensor([1.0,1.0,1.0]), torch.tensor(max_bound)+torch.tensor([1.0,1.0,1.0])) def get_bbox3d_for_llff(poses, hwf, near=0.0, far=1.0): H, W, focal = hwf H, W = int(H), int(W) # ray directions in camera coordinates directions = get_ray_directions(H, W, focal) min_bound = [100, 100, 100] max_bound = [-100, -100, -100] points = [] poses = torch.FloatTensor(poses) for pose in poses: rays_o, rays_d = get_rays(directions, pose) rays_o, rays_d = get_ndc_rays(H, W, focal, 1.0, rays_o, rays_d) def find_min_max(pt): for i in range(3): if(min_bound[i] > pt[i]): min_bound[i] = pt[i] if(max_bound[i] < pt[i]): max_bound[i] = pt[i] return for i in [0, W-1, H*W-W, H*W-1]: min_point = rays_o[i] + near*rays_d[i] max_point = rays_o[i] + far*rays_d[i] points += [min_point, max_point] find_min_max(min_point) find_min_max(max_point) return (torch.tensor(min_bound)-torch.tensor([0.1,0.1,0.0001]), torch.tensor(max_bound)+torch.tensor([0.1,0.1,0.0001])) def get_voxel_vertices(xyz, bounding_box, resolution, log2_hashmap_size): ''' xyz: 3D coordinates of samples. B x 3 bounding_box: min and max x,y,z coordinates of object bbox resolution: number of voxels per axis ''' box_min, box_max = bounding_box if not torch.all(xyz <= box_max) or not torch.all(xyz >= box_min): # print("ALERT: some points are outside bounding box. Clipping them!") pdb.set_trace() xyz = torch.clamp(xyz, min=box_min, max=box_max) grid_size = (box_max-box_min)/resolution bottom_left_idx = torch.floor((xyz-box_min)/grid_size).int() voxel_min_vertex = bottom_left_idx*grid_size + box_min voxel_max_vertex = voxel_min_vertex + torch.tensor([1.0,1.0,1.0])*grid_size # hashed_voxel_indices = [] # B x 8 ... 000,001,010,011,100,101,110,111 # for i in [0, 1]: # for j in [0, 1]: # for k in [0, 1]: # vertex_idx = bottom_left_idx + torch.tensor([i,j,k]) # # vertex = bottom_left + torch.tensor([i,j,k])*grid_size # hashed_voxel_indices.append(hash(vertex_idx, log2_hashmap_size)) voxel_indices = bottom_left_idx.unsqueeze(1) + BOX_OFFSETS hashed_voxel_indices = hash(voxel_indices, log2_hashmap_size) return voxel_min_vertex, voxel_max_vertex, hashed_voxel_indices def get_plane_vertices_old(xyz, bounding_box, resolution, log2_hashmap_size): ''' xyz: 3D coordinates of samples. B x 3 bounding_box: min and max x,y,z coordinates of object bbox resolution: number of voxels per axis ''' def box2plane(input): in_xy = input[:,:2]#.unsqueeze(1) in_xz = input[:,::2]#.unsqueeze(1) in_yz = input[:,-2:]#.unsqueeze(1) return [in_xy,in_xz,in_yz] box_min, box_max = bounding_box if not torch.all(xyz <= box_max) or not torch.all(xyz >= box_min): # print("ALERT: some points are outside bounding box. Clipping them!") pdb.set_trace() xyz = torch.clamp(xyz, min=box_min, max=box_max) grid_size = (box_max-box_min)/resolution bottom_left_idx = torch.floor((xyz-box_min)/grid_size).int() #(B, 3) voxel_min_vertex = bottom_left_idx*grid_size + box_min voxel_max_vertex = voxel_min_vertex + torch.tensor([1.0,1.0,1.0])*grid_size # hashed_voxel_indices = [] # B x 8 ... 000,001,010,011,100,101,110,111 # for i in [0, 1]: # for j in [0, 1]: # for k in [0, 1]: # vertex_idx = bottom_left_idx + torch.tensor([i,j,k]) # # vertex = bottom_left + torch.tensor([i,j,k])*grid_size # hashed_voxel_indices.append(hash(vertex_idx, log2_hashmap_size)) #voxel_indices = bottom_left_idx.unsqueeze(1) + BOX_OFFSETS #(B, 8, 3) #hashed_voxel_indices = hash(voxel_indices, log2_hashmap_size) #(B, 8) voxel_indices_xy = bottom_left_idx[:,:2].unsqueeze(1) + SQR_OFFSETS #(B, 4, 2) voxel_indices_xz = bottom_left_idx[:,::2].unsqueeze(1) + SQR_OFFSETS #(B, 4, 2) voxel_indices_yz = bottom_left_idx[:,-2:].unsqueeze(1) + SQR_OFFSETS #(B, 4, 2) hashed_voxel_indices_xy = hash2d(voxel_indices_xy, log2_hashmap_size) #(B, 4) hashed_voxel_indices_xz = hash2d(voxel_indices_xz, log2_hashmap_size) #(B, 4) hashed_voxel_indices_yz = hash2d(voxel_indices_yz, log2_hashmap_size) #(B, 4) hashed_voxel_indices = [hashed_voxel_indices_xy, hashed_voxel_indices_xz, hashed_voxel_indices_yz] voxel_min_vertex = box2plane(voxel_min_vertex) voxel_max_vertex = box2plane(voxel_max_vertex) #pdb.set_trace() return voxel_min_vertex, voxel_max_vertex, hashed_voxel_indices def get_plane_vertices(xyz, bounding_box, resolution, log2_hashmap_size): ''' xyz: 3D coordinates of samples. B x 3 bounding_box: min and max x,y,z coordinates of object bbox resolution: number of voxels per axis ''' def box2plane(input): in_xy = input[:,:2]#.unsqueeze(1) in_xz = input[:,::2]#.unsqueeze(1) in_yz = input[:,-2:]#.unsqueeze(1) return [in_xy,in_xz,in_yz] box_min, box_max = bounding_box if not torch.all(xyz <= box_max) or not torch.all(xyz >= box_min): # print("ALERT: some points are outside bounding box. Clipping them!") pdb.set_trace() xyz = torch.clamp(xyz, min=box_min, max=box_max) grid_size = (box_max-box_min)/resolution bottom_left_idx = torch.floor((xyz-box_min)/grid_size).int() #(B, 3) voxel_min_vertex = bottom_left_idx*grid_size + box_min voxel_max_vertex = voxel_min_vertex + torch.tensor([1.0,1.0,1.0])*grid_size # hashed_voxel_indices = [] # B x 8 ... 000,001,010,011,100,101,110,111 # for i in [0, 1]: # for j in [0, 1]: # for k in [0, 1]: # vertex_idx = bottom_left_idx + torch.tensor([i,j,k]) # # vertex = bottom_left + torch.tensor([i,j,k])*grid_size # hashed_voxel_indices.append(hash(vertex_idx, log2_hashmap_size)) #voxel_indices = bottom_left_idx.unsqueeze(1) + BOX_OFFSETS #(B, 8, 3) #hashed_voxel_indices = hash(voxel_indices, log2_hashmap_size) #(B, 8) voxel_indices_xy = bottom_left_idx[:,:2].unsqueeze(1) + SQR_OFFSETS #(B, 4, 2) voxel_indices_xz = bottom_left_idx[:,::2].unsqueeze(1) + SQR_OFFSETS #(B, 4, 2) voxel_indices_yz = bottom_left_idx[:,-2:].unsqueeze(1) + SQR_OFFSETS #(B, 4, 2) #hashed_voxel_indices_xy = hash2d(voxel_indices_xy, log2_hashmap_size) #(B, 4) #hashed_voxel_indices_xz = hash2d(voxel_indices_xz, log2_hashmap_size) #(B, 4) #hashed_voxel_indices_yz = hash2d(voxel_indices_yz, log2_hashmap_size) #(B, 4) hashed_voxel_indices_xy = xy2index(voxel_indices_xy,resolution) #(B, 4) hashed_voxel_indices_xz = xy2index(voxel_indices_xz,resolution) #(B, 4) hashed_voxel_indices_yz = xy2index(voxel_indices_yz,resolution) #(B, 4) #print(hashed_voxel_indices_yz.shape) #pdb.set_trace() hashed_voxel_indices = [hashed_voxel_indices_xy, hashed_voxel_indices_xz, hashed_voxel_indices_yz] voxel_min_vertex = box2plane(voxel_min_vertex) voxel_max_vertex = box2plane(voxel_max_vertex) return voxel_min_vertex, voxel_max_vertex, hashed_voxel_indices if __name__=="__main__": with open("data/nerf_synthetic/chair/transforms_train.json", "r") as f: camera_transforms = json.load(f) bounding_box = get_bbox3d_for_blenderobj(camera_transforms, 800, 800)
[ 1, 1053, 4390, 13, 5215, 12655, 408, 7442, 13, 5215, 282, 2585, 13, 5215, 4842, 305, 13, 13, 3166, 15570, 29918, 13239, 1053, 679, 29918, 764, 29879, 29892, 679, 29918, 764, 29918, 20146, 1953, 29892, 679, 29918, 299, 29883, 29918, 764, 29879, 13, 13, 13, 8456, 29990, 29918, 27681, 1660, 9375, 353, 4842, 305, 29889, 20158, 4197, 8999, 29875, 29892, 29926, 29892, 29895, 29962, 363, 474, 297, 518, 29900, 29892, 29871, 29896, 29962, 363, 432, 297, 518, 29900, 29892, 29871, 29896, 29962, 363, 413, 297, 518, 29900, 29892, 29871, 29896, 5262, 1402, 13, 462, 1669, 4742, 2433, 29883, 6191, 1495, 13, 29903, 29984, 29934, 29918, 27681, 1660, 9375, 353, 4842, 305, 29889, 20158, 4197, 8999, 29875, 29892, 29926, 29962, 363, 474, 297, 518, 29900, 29892, 29871, 29896, 29962, 363, 432, 297, 518, 29900, 29892, 29871, 29896, 29962, 4514, 1402, 4742, 2433, 29883, 6191, 1495, 13, 13, 1753, 6608, 29898, 1111, 4339, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 1125, 13, 1678, 14550, 13, 1678, 1302, 4339, 29901, 29871, 29941, 29928, 10350, 29889, 350, 921, 29871, 29941, 13, 1678, 1480, 29906, 29911, 29901, 29871, 1480, 23830, 29885, 310, 323, 281, 29889, 29878, 29889, 29873, 29871, 29906, 13, 1678, 14550, 13, 1678, 921, 29892, 343, 29892, 503, 353, 1302, 4339, 29961, 16361, 29871, 29900, 1402, 1302, 4339, 29961, 16361, 29871, 29896, 1402, 1302, 4339, 29961, 16361, 29871, 29906, 29962, 13, 1678, 736, 4842, 305, 29889, 20158, 3552, 29896, 9314, 1188, 29906, 29918, 8568, 1958, 29918, 2311, 6817, 29896, 29897, 669, 313, 29916, 29930, 29955, 29941, 29947, 29945, 29953, 29900, 29929, 29941, 6228, 343, 29930, 29896, 29929, 29941, 29946, 29929, 29953, 29953, 29941, 6228, 503, 29930, 29947, 29941, 29946, 29929, 29906, 29955, 29929, 29896, 29897, 13, 1678, 396, 2457, 5135, 29896, 9314, 1188, 29906, 29918, 8568, 1958, 29918, 2311, 6817, 29896, 29897, 669, 313, 29916, 29930, 29955, 29941, 29947, 29945, 29953, 29900, 29929, 29941, 6228, 343, 29930, 29896, 29929, 29941, 29946, 29929, 29953, 29953, 29941, 6228, 503, 29930, 29947, 29941, 29946, 29929, 29906, 29955, 29929, 29896, 29897, 13, 13, 1753, 6608, 29906, 29881, 29898, 1111, 4339, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 1125, 13, 1678, 14550, 13, 1678, 1302, 4339, 29901, 29871, 29906, 29928, 10350, 29889, 350, 921, 29871, 29941, 13, 1678, 1480, 29906, 29911, 29901, 29871, 1480, 23830, 29885, 310, 323, 281, 29889, 29878, 29889, 29873, 29871, 29906, 13, 1678, 14550, 13, 1678, 921, 29892, 343, 353, 1302, 4339, 29961, 16361, 29871, 29900, 1402, 1302, 4339, 29961, 16361, 29871, 29896, 29962, 13, 1678, 736, 4842, 305, 29889, 20158, 3552, 29896, 9314, 1188, 29906, 29918, 8568, 1958, 29918, 2311, 6817, 29896, 29897, 669, 313, 29916, 29930, 29955, 29941, 29947, 29945, 29953, 29900, 29929, 29941, 6228, 343, 29930, 29896, 29929, 29941, 29946, 29929, 29953, 29953, 29941, 29897, 13, 13, 1753, 921, 29891, 29906, 2248, 29898, 3594, 29892, 9778, 918, 1125, 13, 1678, 736, 921, 29891, 29961, 16361, 29900, 10062, 3594, 29961, 16361, 29896, 14178, 9778, 918, 29871, 13, 13, 1753, 679, 29918, 29890, 1884, 29941, 29881, 29918, 1454, 29918, 2204, 1581, 5415, 29898, 26065, 29918, 9067, 29879, 29892, 379, 29892, 399, 29892, 2978, 29922, 29906, 29889, 29900, 29892, 2215, 29922, 29953, 29889, 29900, 1125, 13, 1678, 10656, 29918, 2521, 29918, 29916, 353, 5785, 29898, 26065, 29918, 9067, 29879, 1839, 26065, 29918, 2521, 29918, 29916, 11287, 13, 1678, 12789, 284, 353, 29871, 29900, 29889, 29945, 29930, 29956, 29914, 9302, 29889, 13161, 29898, 29900, 29889, 29945, 334, 10656, 29918, 2521, 29918, 29916, 29897, 13, 13, 1678, 396, 15570, 18112, 297, 10656, 10350, 13, 1678, 18112, 353, 679, 29918, 764, 29918, 20146, 1953, 29898, 29950, 29892, 399, 29892, 12789, 284, 29897, 13, 13, 1678, 1375, 29918, 9917, 353, 518, 29896, 29900, 29900, 29892, 29871, 29896, 29900, 29900, 29892, 29871, 29896, 29900, 29900, 29962, 13, 1678, 4236, 29918, 9917, 353, 21069, 29896, 29900, 29900, 29892, 448, 29896, 29900, 29900, 29892, 448, 29896, 29900, 29900, 29962, 13, 13, 1678, 3291, 353, 5159, 13, 13, 1678, 363, 3515, 297, 10656, 29918, 9067, 29879, 3366, 19935, 3108, 29901, 13, 4706, 274, 29906, 29893, 353, 4842, 305, 29889, 11031, 29911, 6073, 29898, 2557, 3366, 9067, 29918, 5344, 20068, 13, 4706, 15570, 29879, 29918, 29877, 29892, 15570, 29879, 29918, 29881, 353, 679, 29918, 764, 29879, 29898, 20146, 1953, 29892, 274, 29906, 29893, 29897, 13, 308, 13, 4706, 822, 1284, 29918, 1195, 29918, 3317, 29898, 415, 1125, 13, 9651, 363, 474, 297, 3464, 29898, 29941, 1125, 13, 18884, 565, 29898, 1195, 29918, 9917, 29961, 29875, 29962, 1405, 19592, 29961, 29875, 29962, 1125, 13, 462, 1678, 1375, 29918, 9917, 29961, 29875, 29962, 353, 19592, 29961, 29875, 29962, 13, 18884, 565, 29898, 3317, 29918, 9917, 29961, 29875, 29962, 529, 19592, 29961, 29875, 29962, 1125, 13, 462, 1678, 4236, 29918, 9917, 29961, 29875, 29962, 353, 19592, 29961, 29875, 29962, 13, 9651, 736, 13, 13, 4706, 363, 474, 297, 518, 29900, 29892, 399, 29899, 29896, 29892, 379, 29930, 29956, 29899, 29956, 29892, 379, 29930, 29956, 29899, 29896, 5387, 13, 9651, 1375, 29918, 3149, 353, 15570, 29879, 29918, 29877, 29961, 29875, 29962, 718, 2978, 29930, 764, 29879, 29918, 29881, 29961, 29875, 29962, 13, 9651, 4236, 29918, 3149, 353, 15570, 29879, 29918, 29877, 29961, 29875, 29962, 718, 2215, 29930, 764, 29879, 29918, 29881, 29961, 29875, 29962, 13, 9651, 3291, 4619, 518, 1195, 29918, 3149, 29892, 4236, 29918, 3149, 29962, 13, 9651, 1284, 29918, 1195, 29918, 3317, 29898, 1195, 29918, 3149, 29897, 13, 9651, 1284, 29918, 1195, 29918, 3317, 29898, 3317, 29918, 3149, 29897, 13, 13, 1678, 736, 313, 7345, 305, 29889, 20158, 29898, 1195, 29918, 9917, 6817, 7345, 305, 29889, 20158, 4197, 29896, 29889, 29900, 29892, 29896, 29889, 29900, 29892, 29896, 29889, 29900, 11724, 4842, 305, 29889, 20158, 29898, 3317, 29918, 9917, 7240, 7345, 305, 29889, 20158, 4197, 29896, 29889, 29900, 29892, 29896, 29889, 29900, 29892, 29896, 29889, 29900, 12622, 13, 13, 13, 1753, 679, 29918, 29890, 1884, 29941, 29881, 29918, 1454, 29918, 645, 600, 29898, 10590, 29892, 298, 29893, 29888, 29892, 2978, 29922, 29900, 29889, 29900, 29892, 2215, 29922, 29896, 29889, 29900, 1125, 13, 1678, 379, 29892, 399, 29892, 12789, 284, 353, 298, 29893, 29888, 13, 1678, 379, 29892, 399, 353, 938, 29898, 29950, 511, 938, 29898, 29956, 29897, 13, 268, 13, 1678, 396, 15570, 18112, 297, 10656, 10350, 13, 1678, 18112, 353, 679, 29918, 764, 29918, 20146, 1953, 29898, 29950, 29892, 399, 29892, 12789, 284, 29897, 13, 13, 1678, 1375, 29918, 9917, 353, 518, 29896, 29900, 29900, 29892, 29871, 29896, 29900, 29900, 29892, 29871, 29896, 29900, 29900, 29962, 13, 1678, 4236, 29918, 9917, 353, 21069, 29896, 29900, 29900, 29892, 448, 29896, 29900, 29900, 29892, 448, 29896, 29900, 29900, 29962, 13, 13, 1678, 3291, 353, 5159, 13, 1678, 926, 267, 353, 4842, 305, 29889, 11031, 29911, 6073, 29898, 10590, 29897, 13, 1678, 363, 18593, 297, 926, 267, 29901, 13, 4706, 15570, 29879, 29918, 29877, 29892, 15570, 29879, 29918, 29881, 353, 679, 29918, 764, 29879, 29898, 20146, 1953, 29892, 18593, 29897, 13, 4706, 15570, 29879, 29918, 29877, 29892, 15570, 29879, 29918, 29881, 353, 679, 29918, 299, 29883, 29918, 764, 29879, 29898, 29950, 29892, 399, 29892, 12789, 284, 29892, 29871, 29896, 29889, 29900, 29892, 15570, 29879, 29918, 29877, 29892, 15570, 29879, 29918, 29881, 29897, 13, 13, 4706, 822, 1284, 29918, 1195, 29918, 3317, 29898, 415, 1125, 13, 9651, 363, 474, 297, 3464, 29898, 29941, 1125, 13, 18884, 565, 29898, 1195, 29918, 9917, 29961, 29875, 29962, 1405, 19592, 29961, 29875, 29962, 1125, 13, 462, 1678, 1375, 29918, 9917, 29961, 29875, 29962, 353, 19592, 29961, 29875, 29962, 13, 18884, 565, 29898, 3317, 29918, 9917, 29961, 29875, 29962, 529, 19592, 29961, 29875, 29962, 1125, 13, 462, 1678, 4236, 29918, 9917, 29961, 29875, 29962, 353, 19592, 29961, 29875, 29962, 13, 9651, 736, 13, 13, 4706, 363, 474, 297, 518, 29900, 29892, 399, 29899, 29896, 29892, 379, 29930, 29956, 29899, 29956, 29892, 379, 29930, 29956, 29899, 29896, 5387, 13, 9651, 1375, 29918, 3149, 353, 15570, 29879, 29918, 29877, 29961, 29875, 29962, 718, 2978, 29930, 764, 29879, 29918, 29881, 29961, 29875, 29962, 13, 9651, 4236, 29918, 3149, 353, 15570, 29879, 29918, 29877, 29961, 29875, 29962, 718, 2215, 29930, 764, 29879, 29918, 29881, 29961, 29875, 29962, 13, 9651, 3291, 4619, 518, 1195, 29918, 3149, 29892, 4236, 29918, 3149, 29962, 13, 9651, 1284, 29918, 1195, 29918, 3317, 29898, 1195, 29918, 3149, 29897, 13, 9651, 1284, 29918, 1195, 29918, 3317, 29898, 3317, 29918, 3149, 29897, 13, 13, 1678, 736, 313, 7345, 305, 29889, 20158, 29898, 1195, 29918, 9917, 6817, 7345, 305, 29889, 20158, 4197, 29900, 29889, 29896, 29892, 29900, 29889, 29896, 29892, 29900, 29889, 29900, 29900, 29900, 29896, 11724, 4842, 305, 29889, 20158, 29898, 3317, 29918, 9917, 7240, 7345, 305, 29889, 20158, 4197, 29900, 29889, 29896, 29892, 29900, 29889, 29896, 29892, 29900, 29889, 29900, 29900, 29900, 29896, 12622, 13, 13, 13, 1753, 679, 29918, 1365, 29916, 295, 29918, 1765, 1575, 29898, 20230, 29892, 3216, 292, 29918, 1884, 29892, 10104, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 1125, 13, 1678, 14550, 13, 1678, 921, 12339, 29901, 29871, 29941, 29928, 10350, 310, 11916, 29889, 350, 921, 29871, 29941, 13, 1678, 3216, 292, 29918, 1884, 29901, 1375, 322, 4236, 921, 29892, 29891, 29892, 29920, 10350, 310, 1203, 289, 1884, 13, 1678, 10104, 29901, 1353, 310, 992, 29916, 1379, 639, 9685, 13, 1678, 14550, 13, 1678, 3800, 29918, 1195, 29892, 3800, 29918, 3317, 353, 3216, 292, 29918, 1884, 13, 13, 1678, 565, 451, 4842, 305, 29889, 497, 29898, 20230, 5277, 3800, 29918, 3317, 29897, 470, 451, 4842, 305, 29889, 497, 29898, 20230, 6736, 3800, 29918, 1195, 1125, 13, 4706, 396, 1596, 703, 1964, 20161, 29901, 777, 3291, 526, 5377, 3216, 292, 3800, 29889, 315, 492, 3262, 963, 29991, 1159, 13, 4706, 282, 2585, 29889, 842, 29918, 15003, 580, 13, 4706, 921, 12339, 353, 4842, 305, 29889, 695, 1160, 29898, 20230, 29892, 1375, 29922, 1884, 29918, 1195, 29892, 4236, 29922, 1884, 29918, 3317, 29897, 13, 13, 1678, 6856, 29918, 2311, 353, 313, 1884, 29918, 3317, 29899, 1884, 29918, 1195, 6802, 9778, 918, 13, 268, 13, 1678, 5970, 29918, 1563, 29918, 13140, 353, 4842, 305, 29889, 14939, 3552, 20230, 29899, 1884, 29918, 1195, 6802, 7720, 29918, 2311, 467, 524, 580, 13, 1678, 992, 29916, 295, 29918, 1195, 29918, 369, 4776, 353, 5970, 29918, 1563, 29918, 13140, 29930, 7720, 29918, 2311, 718, 3800, 29918, 1195, 13, 1678, 992, 29916, 295, 29918, 3317, 29918, 369, 4776, 353, 992, 29916, 295, 29918, 1195, 29918, 369, 4776, 718, 4842, 305, 29889, 20158, 4197, 29896, 29889, 29900, 29892, 29896, 29889, 29900, 29892, 29896, 29889, 29900, 2314, 29930, 7720, 29918, 2311, 13, 13, 1678, 396, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 353, 5159, 396, 350, 921, 29871, 29947, 2023, 29871, 29900, 29900, 29900, 29892, 29900, 29900, 29896, 29892, 29900, 29896, 29900, 29892, 29900, 29896, 29896, 29892, 29896, 29900, 29900, 29892, 29896, 29900, 29896, 29892, 29896, 29896, 29900, 29892, 29896, 29896, 29896, 13, 1678, 396, 363, 474, 297, 518, 29900, 29892, 29871, 29896, 5387, 13, 1678, 396, 268, 363, 432, 297, 518, 29900, 29892, 29871, 29896, 5387, 13, 1678, 396, 308, 363, 413, 297, 518, 29900, 29892, 29871, 29896, 5387, 13, 1678, 396, 632, 12688, 29918, 13140, 353, 5970, 29918, 1563, 29918, 13140, 718, 4842, 305, 29889, 20158, 4197, 29875, 29892, 29926, 29892, 29895, 2314, 13, 1678, 396, 632, 396, 12688, 353, 5970, 29918, 1563, 718, 4842, 305, 29889, 20158, 4197, 29875, 29892, 29926, 29892, 29895, 2314, 29930, 7720, 29918, 2311, 13, 1678, 396, 632, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29889, 4397, 29898, 8568, 29898, 369, 4776, 29918, 13140, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 876, 13, 13, 1678, 992, 29916, 295, 29918, 513, 1575, 353, 5970, 29918, 1563, 29918, 13140, 29889, 6948, 802, 29872, 911, 29898, 29896, 29897, 718, 16437, 29990, 29918, 27681, 1660, 9375, 13, 1678, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 353, 6608, 29898, 1365, 29916, 295, 29918, 513, 1575, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 29897, 13, 13, 1678, 736, 992, 29916, 295, 29918, 1195, 29918, 369, 4776, 29892, 992, 29916, 295, 29918, 3317, 29918, 369, 4776, 29892, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 13, 13, 1753, 679, 29918, 22116, 29918, 1765, 1575, 29918, 1025, 29898, 20230, 29892, 3216, 292, 29918, 1884, 29892, 10104, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 1125, 13, 1678, 14550, 13, 1678, 921, 12339, 29901, 29871, 29941, 29928, 10350, 310, 11916, 29889, 350, 921, 29871, 29941, 13, 1678, 3216, 292, 29918, 1884, 29901, 1375, 322, 4236, 921, 29892, 29891, 29892, 29920, 10350, 310, 1203, 289, 1884, 13, 1678, 10104, 29901, 1353, 310, 992, 29916, 1379, 639, 9685, 13, 1678, 14550, 13, 1678, 822, 3800, 29906, 22116, 29898, 2080, 1125, 13, 4706, 297, 29918, 3594, 353, 1881, 7503, 29892, 29901, 29906, 29962, 29937, 29889, 6948, 802, 29872, 911, 29898, 29896, 29897, 13, 4706, 297, 29918, 29916, 29920, 353, 1881, 7503, 29892, 1057, 29906, 29962, 29937, 29889, 6948, 802, 29872, 911, 29898, 29896, 29897, 13, 4706, 297, 29918, 12339, 353, 1881, 7503, 6653, 29906, 17531, 29937, 29889, 6948, 802, 29872, 911, 29898, 29896, 29897, 13, 4706, 736, 518, 262, 29918, 3594, 29892, 262, 29918, 29916, 29920, 29892, 262, 29918, 12339, 29962, 13, 13, 1678, 3800, 29918, 1195, 29892, 3800, 29918, 3317, 353, 3216, 292, 29918, 1884, 13, 13, 1678, 565, 451, 4842, 305, 29889, 497, 29898, 20230, 5277, 3800, 29918, 3317, 29897, 470, 451, 4842, 305, 29889, 497, 29898, 20230, 6736, 3800, 29918, 1195, 1125, 13, 4706, 396, 1596, 703, 1964, 20161, 29901, 777, 3291, 526, 5377, 3216, 292, 3800, 29889, 315, 492, 3262, 963, 29991, 1159, 13, 4706, 282, 2585, 29889, 842, 29918, 15003, 580, 13, 4706, 921, 12339, 353, 4842, 305, 29889, 695, 1160, 29898, 20230, 29892, 1375, 29922, 1884, 29918, 1195, 29892, 4236, 29922, 1884, 29918, 3317, 29897, 13, 13, 1678, 6856, 29918, 2311, 353, 313, 1884, 29918, 3317, 29899, 1884, 29918, 1195, 6802, 9778, 918, 13, 268, 13, 1678, 5970, 29918, 1563, 29918, 13140, 353, 4842, 305, 29889, 14939, 3552, 20230, 29899, 1884, 29918, 1195, 6802, 7720, 29918, 2311, 467, 524, 580, 462, 259, 27355, 29933, 29892, 29871, 29941, 29897, 13, 1678, 992, 29916, 295, 29918, 1195, 29918, 369, 4776, 353, 5970, 29918, 1563, 29918, 13140, 29930, 7720, 29918, 2311, 718, 3800, 29918, 1195, 13, 1678, 992, 29916, 295, 29918, 3317, 29918, 369, 4776, 353, 992, 29916, 295, 29918, 1195, 29918, 369, 4776, 718, 4842, 305, 29889, 20158, 4197, 29896, 29889, 29900, 29892, 29896, 29889, 29900, 29892, 29896, 29889, 29900, 2314, 29930, 7720, 29918, 2311, 13, 13, 1678, 396, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 353, 5159, 396, 350, 921, 29871, 29947, 2023, 29871, 29900, 29900, 29900, 29892, 29900, 29900, 29896, 29892, 29900, 29896, 29900, 29892, 29900, 29896, 29896, 29892, 29896, 29900, 29900, 29892, 29896, 29900, 29896, 29892, 29896, 29896, 29900, 29892, 29896, 29896, 29896, 13, 1678, 396, 363, 474, 297, 518, 29900, 29892, 29871, 29896, 5387, 13, 1678, 396, 268, 363, 432, 297, 518, 29900, 29892, 29871, 29896, 5387, 13, 1678, 396, 308, 363, 413, 297, 518, 29900, 29892, 29871, 29896, 5387, 13, 1678, 396, 632, 12688, 29918, 13140, 353, 5970, 29918, 1563, 29918, 13140, 718, 4842, 305, 29889, 20158, 4197, 29875, 29892, 29926, 29892, 29895, 2314, 13, 1678, 396, 632, 396, 12688, 353, 5970, 29918, 1563, 718, 4842, 305, 29889, 20158, 4197, 29875, 29892, 29926, 29892, 29895, 2314, 29930, 7720, 29918, 2311, 13, 1678, 396, 632, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29889, 4397, 29898, 8568, 29898, 369, 4776, 29918, 13140, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 876, 13, 13, 1678, 396, 1365, 29916, 295, 29918, 513, 1575, 353, 5970, 29918, 1563, 29918, 13140, 29889, 6948, 802, 29872, 911, 29898, 29896, 29897, 718, 16437, 29990, 29918, 27681, 1660, 9375, 539, 27355, 29933, 29892, 29871, 29947, 29892, 29871, 29941, 29897, 13, 1678, 396, 8568, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 353, 6608, 29898, 1365, 29916, 295, 29918, 513, 1575, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 29897, 1678, 27355, 29933, 29892, 29871, 29947, 29897, 13, 13, 1678, 992, 29916, 295, 29918, 513, 1575, 29918, 3594, 353, 5970, 29918, 1563, 29918, 13140, 7503, 29892, 29901, 29906, 1822, 6948, 802, 29872, 911, 29898, 29896, 29897, 718, 317, 29984, 29934, 29918, 27681, 1660, 9375, 259, 27355, 29933, 29892, 29871, 29946, 29892, 29871, 29906, 29897, 13, 1678, 992, 29916, 295, 29918, 513, 1575, 29918, 29916, 29920, 353, 5970, 29918, 1563, 29918, 13140, 7503, 29892, 1057, 29906, 1822, 6948, 802, 29872, 911, 29898, 29896, 29897, 718, 317, 29984, 29934, 29918, 27681, 1660, 9375, 29871, 27355, 29933, 29892, 29871, 29946, 29892, 29871, 29906, 29897, 13, 1678, 992, 29916, 295, 29918, 513, 1575, 29918, 12339, 353, 5970, 29918, 1563, 29918, 13140, 7503, 6653, 29906, 29901, 1822, 6948, 802, 29872, 911, 29898, 29896, 29897, 718, 317, 29984, 29934, 29918, 27681, 1660, 9375, 29871, 27355, 29933, 29892, 29871, 29946, 29892, 29871, 29906, 29897, 13, 1678, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29918, 3594, 353, 6608, 29906, 29881, 29898, 1365, 29916, 295, 29918, 513, 1575, 29918, 3594, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 29897, 1678, 27355, 29933, 29892, 29871, 29946, 29897, 13, 1678, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29918, 29916, 29920, 353, 6608, 29906, 29881, 29898, 1365, 29916, 295, 29918, 513, 1575, 29918, 29916, 29920, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 29897, 1678, 27355, 29933, 29892, 29871, 29946, 29897, 13, 1678, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29918, 12339, 353, 6608, 29906, 29881, 29898, 1365, 29916, 295, 29918, 513, 1575, 29918, 12339, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 29897, 1678, 27355, 29933, 29892, 29871, 29946, 29897, 13, 1678, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 353, 518, 8568, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29918, 3594, 29892, 13, 462, 9651, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29918, 29916, 29920, 29892, 13, 462, 9651, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29918, 12339, 29962, 13, 1678, 992, 29916, 295, 29918, 1195, 29918, 369, 4776, 353, 3800, 29906, 22116, 29898, 1365, 29916, 295, 29918, 1195, 29918, 369, 4776, 29897, 13, 1678, 992, 29916, 295, 29918, 3317, 29918, 369, 4776, 353, 3800, 29906, 22116, 29898, 1365, 29916, 295, 29918, 3317, 29918, 369, 4776, 29897, 13, 1678, 396, 29886, 2585, 29889, 842, 29918, 15003, 580, 13, 13, 1678, 736, 992, 29916, 295, 29918, 1195, 29918, 369, 4776, 29892, 992, 29916, 295, 29918, 3317, 29918, 369, 4776, 29892, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 13, 13, 1753, 679, 29918, 22116, 29918, 1765, 1575, 29898, 20230, 29892, 3216, 292, 29918, 1884, 29892, 10104, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 1125, 13, 1678, 14550, 13, 1678, 921, 12339, 29901, 29871, 29941, 29928, 10350, 310, 11916, 29889, 350, 921, 29871, 29941, 13, 1678, 3216, 292, 29918, 1884, 29901, 1375, 322, 4236, 921, 29892, 29891, 29892, 29920, 10350, 310, 1203, 289, 1884, 13, 1678, 10104, 29901, 1353, 310, 992, 29916, 1379, 639, 9685, 13, 1678, 14550, 13, 1678, 822, 3800, 29906, 22116, 29898, 2080, 1125, 13, 4706, 297, 29918, 3594, 353, 1881, 7503, 29892, 29901, 29906, 29962, 29937, 29889, 6948, 802, 29872, 911, 29898, 29896, 29897, 13, 4706, 297, 29918, 29916, 29920, 353, 1881, 7503, 29892, 1057, 29906, 29962, 29937, 29889, 6948, 802, 29872, 911, 29898, 29896, 29897, 13, 4706, 297, 29918, 12339, 353, 1881, 7503, 6653, 29906, 17531, 29937, 29889, 6948, 802, 29872, 911, 29898, 29896, 29897, 13, 4706, 736, 518, 262, 29918, 3594, 29892, 262, 29918, 29916, 29920, 29892, 262, 29918, 12339, 29962, 13, 13, 1678, 3800, 29918, 1195, 29892, 3800, 29918, 3317, 353, 3216, 292, 29918, 1884, 13, 13, 1678, 565, 451, 4842, 305, 29889, 497, 29898, 20230, 5277, 3800, 29918, 3317, 29897, 470, 451, 4842, 305, 29889, 497, 29898, 20230, 6736, 3800, 29918, 1195, 1125, 13, 4706, 396, 1596, 703, 1964, 20161, 29901, 777, 3291, 526, 5377, 3216, 292, 3800, 29889, 315, 492, 3262, 963, 29991, 1159, 13, 4706, 282, 2585, 29889, 842, 29918, 15003, 580, 13, 4706, 921, 12339, 353, 4842, 305, 29889, 695, 1160, 29898, 20230, 29892, 1375, 29922, 1884, 29918, 1195, 29892, 4236, 29922, 1884, 29918, 3317, 29897, 13, 13, 1678, 6856, 29918, 2311, 353, 313, 1884, 29918, 3317, 29899, 1884, 29918, 1195, 6802, 9778, 918, 13, 268, 13, 1678, 5970, 29918, 1563, 29918, 13140, 353, 4842, 305, 29889, 14939, 3552, 20230, 29899, 1884, 29918, 1195, 6802, 7720, 29918, 2311, 467, 524, 580, 462, 259, 27355, 29933, 29892, 29871, 29941, 29897, 13, 1678, 992, 29916, 295, 29918, 1195, 29918, 369, 4776, 353, 5970, 29918, 1563, 29918, 13140, 29930, 7720, 29918, 2311, 718, 3800, 29918, 1195, 13, 1678, 992, 29916, 295, 29918, 3317, 29918, 369, 4776, 353, 992, 29916, 295, 29918, 1195, 29918, 369, 4776, 718, 4842, 305, 29889, 20158, 4197, 29896, 29889, 29900, 29892, 29896, 29889, 29900, 29892, 29896, 29889, 29900, 2314, 29930, 7720, 29918, 2311, 13, 13, 1678, 396, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 353, 5159, 396, 350, 921, 29871, 29947, 2023, 29871, 29900, 29900, 29900, 29892, 29900, 29900, 29896, 29892, 29900, 29896, 29900, 29892, 29900, 29896, 29896, 29892, 29896, 29900, 29900, 29892, 29896, 29900, 29896, 29892, 29896, 29896, 29900, 29892, 29896, 29896, 29896, 13, 1678, 396, 363, 474, 297, 518, 29900, 29892, 29871, 29896, 5387, 13, 1678, 396, 268, 363, 432, 297, 518, 29900, 29892, 29871, 29896, 5387, 13, 1678, 396, 308, 363, 413, 297, 518, 29900, 29892, 29871, 29896, 5387, 13, 1678, 396, 632, 12688, 29918, 13140, 353, 5970, 29918, 1563, 29918, 13140, 718, 4842, 305, 29889, 20158, 4197, 29875, 29892, 29926, 29892, 29895, 2314, 13, 1678, 396, 632, 396, 12688, 353, 5970, 29918, 1563, 718, 4842, 305, 29889, 20158, 4197, 29875, 29892, 29926, 29892, 29895, 2314, 29930, 7720, 29918, 2311, 13, 1678, 396, 632, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29889, 4397, 29898, 8568, 29898, 369, 4776, 29918, 13140, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 876, 13, 13, 1678, 396, 1365, 29916, 295, 29918, 513, 1575, 353, 5970, 29918, 1563, 29918, 13140, 29889, 6948, 802, 29872, 911, 29898, 29896, 29897, 718, 16437, 29990, 29918, 27681, 1660, 9375, 539, 27355, 29933, 29892, 29871, 29947, 29892, 29871, 29941, 29897, 13, 1678, 396, 8568, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 353, 6608, 29898, 1365, 29916, 295, 29918, 513, 1575, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 29897, 1678, 27355, 29933, 29892, 29871, 29947, 29897, 13, 13, 1678, 992, 29916, 295, 29918, 513, 1575, 29918, 3594, 353, 5970, 29918, 1563, 29918, 13140, 7503, 29892, 29901, 29906, 1822, 6948, 802, 29872, 911, 29898, 29896, 29897, 718, 317, 29984, 29934, 29918, 27681, 1660, 9375, 259, 27355, 29933, 29892, 29871, 29946, 29892, 29871, 29906, 29897, 13, 1678, 992, 29916, 295, 29918, 513, 1575, 29918, 29916, 29920, 353, 5970, 29918, 1563, 29918, 13140, 7503, 29892, 1057, 29906, 1822, 6948, 802, 29872, 911, 29898, 29896, 29897, 718, 317, 29984, 29934, 29918, 27681, 1660, 9375, 29871, 27355, 29933, 29892, 29871, 29946, 29892, 29871, 29906, 29897, 13, 1678, 992, 29916, 295, 29918, 513, 1575, 29918, 12339, 353, 5970, 29918, 1563, 29918, 13140, 7503, 6653, 29906, 29901, 1822, 6948, 802, 29872, 911, 29898, 29896, 29897, 718, 317, 29984, 29934, 29918, 27681, 1660, 9375, 29871, 27355, 29933, 29892, 29871, 29946, 29892, 29871, 29906, 29897, 13, 1678, 396, 8568, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29918, 3594, 353, 6608, 29906, 29881, 29898, 1365, 29916, 295, 29918, 513, 1575, 29918, 3594, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 29897, 1678, 27355, 29933, 29892, 29871, 29946, 29897, 13, 1678, 396, 8568, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29918, 29916, 29920, 353, 6608, 29906, 29881, 29898, 1365, 29916, 295, 29918, 513, 1575, 29918, 29916, 29920, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 29897, 1678, 27355, 29933, 29892, 29871, 29946, 29897, 13, 1678, 396, 8568, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29918, 12339, 353, 6608, 29906, 29881, 29898, 1365, 29916, 295, 29918, 513, 1575, 29918, 12339, 29892, 1480, 29906, 29918, 8568, 1958, 29918, 2311, 29897, 1678, 27355, 29933, 29892, 29871, 29946, 29897, 13, 1678, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29918, 3594, 353, 921, 29891, 29906, 2248, 29898, 1365, 29916, 295, 29918, 513, 1575, 29918, 3594, 29892, 9778, 918, 29897, 4706, 27355, 29933, 29892, 29871, 29946, 29897, 13, 1678, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29918, 29916, 29920, 353, 921, 29891, 29906, 2248, 29898, 1365, 29916, 295, 29918, 513, 1575, 29918, 29916, 29920, 29892, 9778, 918, 29897, 4706, 27355, 29933, 29892, 29871, 29946, 29897, 13, 1678, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29918, 12339, 353, 921, 29891, 29906, 2248, 29898, 1365, 29916, 295, 29918, 513, 1575, 29918, 12339, 29892, 9778, 918, 29897, 4706, 27355, 29933, 29892, 29871, 29946, 29897, 13, 1678, 396, 2158, 29898, 8568, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29918, 12339, 29889, 12181, 29897, 13, 1678, 396, 29886, 2585, 29889, 842, 29918, 15003, 580, 13, 1678, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 353, 518, 8568, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29918, 3594, 29892, 13, 462, 9651, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29918, 29916, 29920, 29892, 13, 462, 9651, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 29918, 12339, 29962, 13, 1678, 992, 29916, 295, 29918, 1195, 29918, 369, 4776, 353, 3800, 29906, 22116, 29898, 1365, 29916, 295, 29918, 1195, 29918, 369, 4776, 29897, 13, 1678, 992, 29916, 295, 29918, 3317, 29918, 369, 4776, 353, 3800, 29906, 22116, 29898, 1365, 29916, 295, 29918, 3317, 29918, 369, 4776, 29897, 13, 268, 13, 13, 1678, 736, 992, 29916, 295, 29918, 1195, 29918, 369, 4776, 29892, 992, 29916, 295, 29918, 3317, 29918, 369, 4776, 29892, 6608, 287, 29918, 1365, 29916, 295, 29918, 513, 1575, 13, 13, 361, 4770, 978, 1649, 26359, 1649, 3396, 1649, 1115, 13, 1678, 411, 1722, 703, 1272, 29914, 1089, 29888, 29918, 19274, 386, 7492, 29914, 305, 1466, 29914, 9067, 29879, 29918, 14968, 29889, 3126, 613, 376, 29878, 1159, 408, 285, 29901, 13, 4706, 10656, 29918, 9067, 29879, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 268, 13, 1678, 3216, 292, 29918, 1884, 353, 679, 29918, 29890, 1884, 29941, 29881, 29918, 1454, 29918, 2204, 1581, 5415, 29898, 26065, 29918, 9067, 29879, 29892, 29871, 29947, 29900, 29900, 29892, 29871, 29947, 29900, 29900, 29897, 13, 2 ]
models/discriminator.py
arminalgln/graphpmu
0
144930
<reponame>arminalgln/graphpmu import torch import torch.nn as nn import torch.nn.functional as F class Discriminator(nn.Module): def __init__(self, n_feat, n_hidden1, n_hidden2): super(Discriminator, self).__init__() self.fc1 = nn.Linear(n_feat, n_hidden1) self.fc2 = nn.Linear(n_hidden1, n_hidden2) self.fc3 = nn.Linear(n_hidden2, 1) self.init_emb() def init_emb(self): for m in self.modules(): if isinstance(m, nn.Linear): torch.nn.init.xavier_uniform_(m.weight.data) if m.bias is not None: m.bias.data.fill_(0.0) def forward(self, x): x = F.leaky_relu(self.fc1(x)) x = F.leaky_relu(self.fc2(x)) x = torch.sigmoid(self.fc3(x)) # x = torch.sigmoid(self.fc1(x)) return x # #%% # x = torch.rand(100,8) # disc = Discriminator(8, 16, 32) # y = disc(x)
[ 1, 529, 276, 1112, 420, 29958, 2817, 979, 29887, 3083, 29914, 4262, 29886, 2589, 13, 5215, 4842, 305, 13, 5215, 4842, 305, 29889, 15755, 408, 302, 29876, 13, 5215, 4842, 305, 29889, 15755, 29889, 2220, 284, 408, 383, 13, 13, 1990, 8565, 20386, 1061, 29898, 15755, 29889, 7355, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 302, 29918, 1725, 271, 29892, 302, 29918, 10892, 29896, 29892, 302, 29918, 10892, 29906, 1125, 13, 4706, 2428, 29898, 4205, 29883, 20386, 1061, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 13801, 29896, 353, 302, 29876, 29889, 12697, 29898, 29876, 29918, 1725, 271, 29892, 302, 29918, 10892, 29896, 29897, 13, 4706, 1583, 29889, 13801, 29906, 353, 302, 29876, 29889, 12697, 29898, 29876, 29918, 10892, 29896, 29892, 302, 29918, 10892, 29906, 29897, 13, 4706, 1583, 29889, 13801, 29941, 353, 302, 29876, 29889, 12697, 29898, 29876, 29918, 10892, 29906, 29892, 29871, 29896, 29897, 13, 4706, 1583, 29889, 2344, 29918, 1590, 580, 13, 13, 1678, 822, 2069, 29918, 1590, 29898, 1311, 1125, 13, 4706, 363, 286, 297, 1583, 29889, 7576, 7295, 13, 9651, 565, 338, 8758, 29898, 29885, 29892, 302, 29876, 29889, 12697, 1125, 13, 18884, 4842, 305, 29889, 15755, 29889, 2344, 29889, 29916, 18852, 29918, 29590, 23538, 29885, 29889, 7915, 29889, 1272, 29897, 13, 18884, 565, 286, 29889, 29890, 3173, 338, 451, 6213, 29901, 13, 462, 1678, 286, 29889, 29890, 3173, 29889, 1272, 29889, 5589, 23538, 29900, 29889, 29900, 29897, 13, 13, 1678, 822, 6375, 29898, 1311, 29892, 921, 1125, 13, 4706, 921, 353, 383, 29889, 280, 557, 29891, 29918, 2674, 29884, 29898, 1311, 29889, 13801, 29896, 29898, 29916, 876, 13, 4706, 921, 353, 383, 29889, 280, 557, 29891, 29918, 2674, 29884, 29898, 1311, 29889, 13801, 29906, 29898, 29916, 876, 13, 4706, 921, 353, 4842, 305, 29889, 18816, 29885, 3398, 29898, 1311, 29889, 13801, 29941, 29898, 29916, 876, 13, 4706, 396, 921, 353, 4842, 305, 29889, 18816, 29885, 3398, 29898, 1311, 29889, 13801, 29896, 29898, 29916, 876, 13, 4706, 736, 921, 13, 13, 29937, 396, 7686, 13, 29937, 921, 353, 4842, 305, 29889, 9502, 29898, 29896, 29900, 29900, 29892, 29947, 29897, 13, 29937, 2313, 353, 8565, 20386, 1061, 29898, 29947, 29892, 29871, 29896, 29953, 29892, 29871, 29941, 29906, 29897, 13, 29937, 343, 353, 2313, 29898, 29916, 29897, 13, 2 ]
DeepLearningExamples/TensorFlow/LanguageModeling/BERT/run_classifier.py
puririshi98/benchmark
0
208
# coding=utf-8 # Copyright (c) 2019 NVIDIA CORPORATION. All rights reserved. # Copyright 2018 The Google AI Language Team Authors. # # 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. """BERT finetuning runner.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import csv import os import modeling import optimization import tokenization import tensorflow as tf import horovod.tensorflow as hvd import time from utils.utils import LogEvalRunHook, LogTrainRunHook, setup_xla_flags from utils.gpu_affinity import set_affinity import utils.dllogger_class from dllogger import Verbosity from utils.create_glue_data import * import numpy as np import tf_metrics flags = tf.flags FLAGS = flags.FLAGS ## Required parameters flags.DEFINE_string( "data_dir", None, "The input data dir. Should contain the .tsv files (or other data files) " "for the task.") flags.DEFINE_string( "bert_config_file", None, "The config json file corresponding to the pre-trained BERT model. " "This specifies the model architecture.") flags.DEFINE_string("task_name", None, "The name of the task to train.") flags.DEFINE_string("vocab_file", None, "The vocabulary file that the BERT model was trained on.") flags.DEFINE_string( "output_dir", None, "The output directory where the model checkpoints will be written.") ## Other parameters flags.DEFINE_string( "dllog_path", "/results/bert_dllog.json", "filename where dllogger writes to") flags.DEFINE_string( "optimizer_type", "lamb", "Optimizer type : adam or lamb") flags.DEFINE_string( "init_checkpoint", None, "Initial checkpoint (usually from a pre-trained BERT model).") flags.DEFINE_bool( "do_lower_case", True, "Whether to lower case the input text. Should be True for uncased " "models and False for cased models.") flags.DEFINE_integer( "max_seq_length", 128, "The maximum total input sequence length after WordPiece tokenization. " "Sequences longer than this will be truncated, and sequences shorter " "than this will be padded.") flags.DEFINE_bool("do_train", False, "Whether to run training.") flags.DEFINE_bool("do_eval", False, "Whether to run eval on the dev set.") flags.DEFINE_bool( "do_predict", False, "Whether to run the model in inference mode on the test set.") flags.DEFINE_integer("train_batch_size", 32, "Total batch size for training.") flags.DEFINE_integer("eval_batch_size", 8, "Total batch size for eval.") flags.DEFINE_integer("predict_batch_size", 8, "Total batch size for predict.") flags.DEFINE_float("learning_rate", 5e-5, "The initial learning rate for Adam.") flags.DEFINE_bool("use_trt", False, "Whether to use TF-TRT") flags.DEFINE_float("num_train_epochs", 3.0, "Total number of training epochs to perform.") flags.DEFINE_float( "warmup_proportion", 0.1, "Proportion of training to perform linear learning rate warmup for. " "E.g., 0.1 = 10% of training.") flags.DEFINE_integer("save_checkpoints_steps", 1000, "How often to save the model checkpoint.") flags.DEFINE_integer("display_loss_steps", 10, "How often to print loss from estimator") flags.DEFINE_integer("iterations_per_loop", 1000, "How many steps to make in each estimator call.") flags.DEFINE_integer("num_accumulation_steps", 1, "Number of accumulation steps before gradient update" "Global batch size = num_accumulation_steps * train_batch_size") flags.DEFINE_bool("amp", True, "Whether to enable AMP ops. When false, uses TF32 on A100 and FP32 on V100 GPUS.") flags.DEFINE_bool("use_xla", True, "Whether to enable XLA JIT compilation.") flags.DEFINE_bool("horovod", False, "Whether to use Horovod for multi-gpu runs") flags.DEFINE_bool( "verbose_logging", False, "If true, all of the warnings related to data processing will be printed. " "A number of warnings are expected for a normal SQuAD evaluation.") def file_based_input_fn_builder(input_file, batch_size, seq_length, is_training, drop_remainder, hvd=None): """Creates an `input_fn` closure to be passed to Estimator.""" name_to_features = { "input_ids": tf.io.FixedLenFeature([seq_length], tf.int64), "input_mask": tf.io.FixedLenFeature([seq_length], tf.int64), "segment_ids": tf.io.FixedLenFeature([seq_length], tf.int64), "label_ids": tf.io.FixedLenFeature([], tf.int64), } def _decode_record(record, name_to_features): """Decodes a record to a TensorFlow example.""" example = tf.parse_single_example(record, name_to_features) # tf.Example only supports tf.int64, but the TPU only supports tf.int32. # So cast all int64 to int32. for name in list(example.keys()): t = example[name] if t.dtype == tf.int64: t = tf.to_int32(t) example[name] = t return example def input_fn(): """The actual input function.""" # For training, we want a lot of parallel reading and shuffling. # For eval, we want no shuffling and parallel reading doesn't matter. d = tf.data.TFRecordDataset(input_file) if is_training: if hvd is not None: d = d.shard(hvd.size(), hvd.rank()) d = d.repeat() d = d.shuffle(buffer_size=100) d = d.apply( tf.contrib.data.map_and_batch( lambda record: _decode_record(record, name_to_features), batch_size=batch_size, drop_remainder=drop_remainder)) return d return input_fn def create_model(bert_config, is_training, input_ids, input_mask, segment_ids, labels, num_labels, use_one_hot_embeddings): """Creates a classification model.""" model = modeling.BertModel( config=bert_config, is_training=is_training, input_ids=input_ids, input_mask=input_mask, token_type_ids=segment_ids, use_one_hot_embeddings=use_one_hot_embeddings, compute_type=tf.float32) # In the demo, we are doing a simple classification task on the entire # segment. # # If you want to use the token-level output, use model.get_sequence_output() # instead. output_layer = model.get_pooled_output() hidden_size = output_layer.shape[-1].value output_weights = tf.get_variable( "output_weights", [num_labels, hidden_size], initializer=tf.truncated_normal_initializer(stddev=0.02)) output_bias = tf.get_variable( "output_bias", [num_labels], initializer=tf.zeros_initializer()) with tf.variable_scope("loss"): if is_training: # I.e., 0.1 dropout output_layer = tf.nn.dropout(output_layer, keep_prob=0.9) logits = tf.matmul(output_layer, output_weights, transpose_b=True) logits = tf.nn.bias_add(logits, output_bias, name='cls_logits') probabilities = tf.nn.softmax(logits, axis=-1, name='cls_probabilities') log_probs = tf.nn.log_softmax(logits, axis=-1) one_hot_labels = tf.one_hot(labels, depth=num_labels, dtype=tf.float32) per_example_loss = -tf.reduce_sum(one_hot_labels * log_probs, axis=-1, name='cls_per_example_loss') loss = tf.reduce_mean(per_example_loss, name='cls_loss') return (loss, per_example_loss, logits, probabilities) def get_frozen_tftrt_model(bert_config, shape, num_labels, use_one_hot_embeddings, init_checkpoint): tf_config = tf.compat.v1.ConfigProto() tf_config.gpu_options.allow_growth = True output_node_names = ['loss/cls_loss', 'loss/cls_per_example_loss', 'loss/cls_logits', 'loss/cls_probabilities'] with tf.Session(config=tf_config) as tf_sess: input_ids = tf.placeholder(tf.int32, shape, 'input_ids') input_mask = tf.placeholder(tf.int32, shape, 'input_mask') segment_ids = tf.placeholder(tf.int32, shape, 'segment_ids') label_ids = tf.placeholder(tf.int32, (None), 'label_ids') create_model(bert_config, False, input_ids, input_mask, segment_ids, label_ids, num_labels, use_one_hot_embeddings) tvars = tf.trainable_variables() (assignment_map, initialized_variable_names) = modeling.get_assignment_map_from_checkpoint(tvars, init_checkpoint) tf.train.init_from_checkpoint(init_checkpoint, assignment_map) tf_sess.run(tf.global_variables_initializer()) print("LOADED!") tf.compat.v1.logging.info("**** Trainable Variables ****") for var in tvars: init_string = "" if var.name in initialized_variable_names: init_string = ", *INIT_FROM_CKPT*" else: init_string = ", *NOTTTTTTTTTTTTTTTTTTTTT" tf.compat.v1.logging.info(" name = %s, shape = %s%s", var.name, var.shape, init_string) frozen_graph = tf.graph_util.convert_variables_to_constants(tf_sess, tf_sess.graph.as_graph_def(), output_node_names) num_nodes = len(frozen_graph.node) print('Converting graph using TensorFlow-TensorRT...') from tensorflow.python.compiler.tensorrt import trt_convert as trt converter = trt.TrtGraphConverter( input_graph_def=frozen_graph, nodes_blacklist=output_node_names, max_workspace_size_bytes=(4096 << 20) - 1000, precision_mode = "FP16" if FLAGS.amp else "FP32", minimum_segment_size=4, is_dynamic_op=True, maximum_cached_engines=1000 ) frozen_graph = converter.convert() print('Total node count before and after TF-TRT conversion:', num_nodes, '->', len(frozen_graph.node)) print('TRT node count:', len([1 for n in frozen_graph.node if str(n.op) == 'TRTEngineOp'])) with tf.io.gfile.GFile("frozen_modelTRT.pb", "wb") as f: f.write(frozen_graph.SerializeToString()) return frozen_graph def model_fn_builder(task_name, bert_config, num_labels, init_checkpoint, learning_rate, num_train_steps, num_warmup_steps, use_one_hot_embeddings, hvd=None): """Returns `model_fn` closure for Estimator.""" def model_fn(features, labels, mode, params): # pylint: disable=unused-argument """The `model_fn` for Estimator.""" def metric_fn(per_example_loss, label_ids, logits): predictions = tf.argmax(logits, axis=-1, output_type=tf.int32) if task_name == "cola": FN, FN_op = tf.metrics.false_negatives(labels=label_ids, predictions=predictions) FP, FP_op = tf.metrics.false_positives(labels=label_ids, predictions=predictions) TP, TP_op = tf.metrics.true_positives(labels=label_ids, predictions=predictions) TN, TN_op = tf.metrics.true_negatives(labels=label_ids, predictions=predictions) MCC = (TP * TN - FP * FN) / ((TP + FP) * (TP + FN) * (TN + FP) * (TN + FN)) ** 0.5 MCC_op = tf.group(FN_op, TN_op, TP_op, FP_op, tf.identity(MCC, name="MCC")) return {"MCC": (MCC, MCC_op)} elif task_name == "mrpc": accuracy = tf.metrics.accuracy( labels=label_ids, predictions=predictions) loss = tf.metrics.mean(values=per_example_loss) f1 = tf_metrics.f1(labels=label_ids, predictions=predictions, num_classes=2, pos_indices=[1]) return { "eval_accuracy": accuracy, "eval_f1": f1, "eval_loss": loss, } else: accuracy = tf.metrics.accuracy( labels=label_ids, predictions=predictions) loss = tf.metrics.mean(values=per_example_loss) return { "eval_accuracy": accuracy, "eval_loss": loss, } tf.compat.v1.logging.info("*** Features ***") tf.compat.v1.logging.info("*** Features ***") for name in sorted(features.keys()): tf.compat.v1.logging.info(" name = %s, shape = %s" % (name, features[name].shape)) input_ids = features["input_ids"] input_mask = features["input_mask"] segment_ids = features["segment_ids"] label_ids = features["label_ids"] is_training = (mode == tf.estimator.ModeKeys.TRAIN) if not is_training and FLAGS.use_trt: trt_graph = get_frozen_tftrt_model(bert_config, input_ids.shape, num_labels, use_one_hot_embeddings, init_checkpoint) (total_loss, per_example_loss, logits, probabilities) = tf.import_graph_def(trt_graph, input_map={'input_ids':input_ids, 'input_mask':input_mask, 'segment_ids':segment_ids, 'label_ids':label_ids}, return_elements=['loss/cls_loss:0', 'loss/cls_per_example_loss:0', 'loss/cls_logits:0', 'loss/cls_probabilities:0'], name='') if mode == tf.estimator.ModeKeys.PREDICT: predictions = {"probabilities": probabilities} output_spec = tf.estimator.EstimatorSpec( mode=mode, predictions=predictions) elif mode == tf.estimator.ModeKeys.EVAL: eval_metric_ops = metric_fn(per_example_loss, label_ids, logits) output_spec = tf.estimator.EstimatorSpec( mode=mode, loss=total_loss, eval_metric_ops=eval_metric_ops) return output_spec (total_loss, per_example_loss, logits, probabilities) = create_model( bert_config, is_training, input_ids, input_mask, segment_ids, label_ids, num_labels, use_one_hot_embeddings) tvars = tf.trainable_variables() initialized_variable_names = {} if init_checkpoint and (hvd is None or hvd.rank() == 0): (assignment_map, initialized_variable_names ) = modeling.get_assignment_map_from_checkpoint(tvars, init_checkpoint) tf.train.init_from_checkpoint(init_checkpoint, assignment_map) if FLAGS.verbose_logging: tf.compat.v1.logging.info("**** Trainable Variables ****") for var in tvars: init_string = "" if var.name in initialized_variable_names: init_string = ", *INIT_FROM_CKPT*" tf.compat.v1.logging.info(" name = %s, shape = %s%s", var.name, var.shape, init_string) output_spec = None if mode == tf.estimator.ModeKeys.TRAIN: train_op = optimization.create_optimizer( total_loss, learning_rate, num_train_steps, num_warmup_steps, hvd, False, FLAGS.amp, FLAGS.num_accumulation_steps, FLAGS.optimizer_type) output_spec = tf.estimator.EstimatorSpec( mode=mode, loss=total_loss, train_op=train_op) elif mode == tf.estimator.ModeKeys.EVAL: dummy_op = tf.no_op() # Need to call mixed precision graph rewrite if fp16 to enable graph rewrite if FLAGS.amp: loss_scaler = tf.train.experimental.FixedLossScale(1) dummy_op = tf.train.experimental.enable_mixed_precision_graph_rewrite( optimization.LAMBOptimizer(learning_rate=0.0), loss_scaler) eval_metric_ops = metric_fn(per_example_loss, label_ids, logits) output_spec = tf.estimator.EstimatorSpec( mode=mode, loss=total_loss, eval_metric_ops=eval_metric_ops) else: dummy_op = tf.no_op() # Need to call mixed precision graph rewrite if fp16 to enable graph rewrite if FLAGS.amp: dummy_op = tf.train.experimental.enable_mixed_precision_graph_rewrite( optimization.LAMBOptimizer(learning_rate=0.0)) output_spec = tf.estimator.EstimatorSpec( mode=mode, predictions=probabilities) return output_spec return model_fn # This function is not used by this file but is still used by the Colab and # people who depend on it. def input_fn_builder(features, batch_size, seq_length, is_training, drop_remainder, hvd=None): """Creates an `input_fn` closure to be passed to Estimator.""" all_input_ids = [] all_input_mask = [] all_segment_ids = [] all_label_ids = [] for feature in features: all_input_ids.append(feature.input_ids) all_input_mask.append(feature.input_mask) all_segment_ids.append(feature.segment_ids) all_label_ids.append(feature.label_id) def input_fn(): """The actual input function.""" num_examples = len(features) # This is for demo purposes and does NOT scale to large data sets. We do # not use Dataset.from_generator() because that uses tf.py_func which is # not TPU compatible. The right way to load data is with TFRecordReader. d = tf.data.Dataset.from_tensor_slices({ "input_ids": tf.constant( all_input_ids, shape=[num_examples, seq_length], dtype=tf.int32), "input_mask": tf.constant( all_input_mask, shape=[num_examples, seq_length], dtype=tf.int32), "segment_ids": tf.constant( all_segment_ids, shape=[num_examples, seq_length], dtype=tf.int32), "label_ids": tf.constant(all_label_ids, shape=[num_examples], dtype=tf.int32), }) if is_training: if hvd is not None: d = d.shard(hvd.size(), hvd.rank()) d = d.repeat() d = d.shuffle(buffer_size=100) d = d.batch(batch_size=batch_size, drop_remainder=drop_remainder) return d return input_fn def main(_): setup_xla_flags() tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.INFO) dllogging = utils.dllogger_class.dllogger_class(FLAGS.dllog_path) if FLAGS.horovod: hvd.init() processors = { "cola": ColaProcessor, "mnli": MnliProcessor, "mrpc": MrpcProcessor, "xnli": XnliProcessor, } if not FLAGS.do_train and not FLAGS.do_eval and not FLAGS.do_predict: raise ValueError( "At least one of `do_train`, `do_eval` or `do_predict' must be True.") bert_config = modeling.BertConfig.from_json_file(FLAGS.bert_config_file) if FLAGS.max_seq_length > bert_config.max_position_embeddings: raise ValueError( "Cannot use sequence length %d because the BERT model " "was only trained up to sequence length %d" % (FLAGS.max_seq_length, bert_config.max_position_embeddings)) tf.io.gfile.makedirs(FLAGS.output_dir) task_name = FLAGS.task_name.lower() if task_name not in processors: raise ValueError("Task not found: %s" % (task_name)) processor = processors[task_name]() label_list = processor.get_labels() tokenizer = tokenization.FullTokenizer( vocab_file=FLAGS.vocab_file, do_lower_case=FLAGS.do_lower_case) master_process = True training_hooks = [] global_batch_size = FLAGS.train_batch_size * FLAGS.num_accumulation_steps hvd_rank = 0 config = tf.compat.v1.ConfigProto() if FLAGS.horovod: tf.compat.v1.logging.info("Multi-GPU training with TF Horovod") tf.compat.v1.logging.info("hvd.size() = %d hvd.rank() = %d", hvd.size(), hvd.rank()) global_batch_size = FLAGS.train_batch_size * FLAGS.num_accumulation_steps * hvd.size() master_process = (hvd.rank() == 0) hvd_rank = hvd.rank() config.gpu_options.visible_device_list = str(hvd.local_rank()) set_affinity(hvd.local_rank()) if hvd.size() > 1: training_hooks.append(hvd.BroadcastGlobalVariablesHook(0)) if FLAGS.use_xla: config.graph_options.optimizer_options.global_jit_level = tf.compat.v1.OptimizerOptions.ON_1 if FLAGS.amp: tf.enable_resource_variables() run_config = tf.estimator.RunConfig( model_dir=FLAGS.output_dir if master_process else None, session_config=config, save_checkpoints_steps=FLAGS.save_checkpoints_steps if master_process else None, save_summary_steps=FLAGS.save_checkpoints_steps if master_process else None, log_step_count_steps=FLAGS.display_loss_steps, keep_checkpoint_max=1) if master_process: tf.compat.v1.logging.info("***** Configuaration *****") for key in FLAGS.__flags.keys(): tf.compat.v1.logging.info(' {}: {}'.format(key, getattr(FLAGS, key))) tf.compat.v1.logging.info("**************************") train_examples = None num_train_steps = None num_warmup_steps = None training_hooks.append(LogTrainRunHook(global_batch_size, hvd_rank, FLAGS.save_checkpoints_steps, num_steps_ignore_xla=25)) if FLAGS.do_train: train_examples = processor.get_train_examples(FLAGS.data_dir) num_train_steps = int( len(train_examples) / global_batch_size * FLAGS.num_train_epochs) num_warmup_steps = int(num_train_steps * FLAGS.warmup_proportion) start_index = 0 end_index = len(train_examples) tmp_filenames = [os.path.join(FLAGS.output_dir, "train.tf_record")] if FLAGS.horovod: tmp_filenames = [os.path.join(FLAGS.output_dir, "train.tf_record{}".format(i)) for i in range(hvd.size())] num_examples_per_rank = len(train_examples) // hvd.size() remainder = len(train_examples) % hvd.size() if hvd.rank() < remainder: start_index = hvd.rank() * (num_examples_per_rank+1) end_index = start_index + num_examples_per_rank + 1 else: start_index = hvd.rank() * num_examples_per_rank + remainder end_index = start_index + (num_examples_per_rank) model_fn = model_fn_builder( task_name=task_name, bert_config=bert_config, num_labels=len(label_list), init_checkpoint=FLAGS.init_checkpoint, learning_rate=FLAGS.learning_rate if not FLAGS.horovod else FLAGS.learning_rate * hvd.size(), num_train_steps=num_train_steps, num_warmup_steps=num_warmup_steps, use_one_hot_embeddings=False, hvd=None if not FLAGS.horovod else hvd) estimator = tf.estimator.Estimator( model_fn=model_fn, config=run_config) if FLAGS.do_train: file_based_convert_examples_to_features( train_examples[start_index:end_index], label_list, FLAGS.max_seq_length, tokenizer, tmp_filenames[hvd_rank]) tf.compat.v1.logging.info("***** Running training *****") tf.compat.v1.logging.info(" Num examples = %d", len(train_examples)) tf.compat.v1.logging.info(" Batch size = %d", FLAGS.train_batch_size) tf.compat.v1.logging.info(" Num steps = %d", num_train_steps) train_input_fn = file_based_input_fn_builder( input_file=tmp_filenames, batch_size=FLAGS.train_batch_size, seq_length=FLAGS.max_seq_length, is_training=True, drop_remainder=True, hvd=None if not FLAGS.horovod else hvd) train_start_time = time.time() estimator.train(input_fn=train_input_fn, max_steps=num_train_steps, hooks=training_hooks) train_time_elapsed = time.time() - train_start_time train_time_wo_overhead = training_hooks[-1].total_time avg_sentences_per_second = num_train_steps * global_batch_size * 1.0 / train_time_elapsed ss_sentences_per_second = (training_hooks[-1].count - training_hooks[-1].skipped) * global_batch_size * 1.0 / train_time_wo_overhead if master_process: tf.compat.v1.logging.info("-----------------------------") tf.compat.v1.logging.info("Total Training Time = %0.2f for Sentences = %d", train_time_elapsed, num_train_steps * global_batch_size) tf.compat.v1.logging.info("Total Training Time W/O Overhead = %0.2f for Sentences = %d", train_time_wo_overhead, (training_hooks[-1].count - training_hooks[-1].skipped) * global_batch_size) tf.compat.v1.logging.info("Throughput Average (sentences/sec) with overhead = %0.2f", avg_sentences_per_second) tf.compat.v1.logging.info("Throughput Average (sentences/sec) = %0.2f", ss_sentences_per_second) tf.compat.v1.logging.info("-----------------------------") if FLAGS.do_eval and master_process: eval_examples = processor.get_dev_examples(FLAGS.data_dir) eval_file = os.path.join(FLAGS.output_dir, "eval.tf_record") file_based_convert_examples_to_features( eval_examples, label_list, FLAGS.max_seq_length, tokenizer, eval_file) tf.compat.v1.logging.info("***** Running evaluation *****") tf.compat.v1.logging.info(" Num examples = %d", len(eval_examples)) tf.compat.v1.logging.info(" Batch size = %d", FLAGS.eval_batch_size) eval_drop_remainder = False eval_input_fn = file_based_input_fn_builder( input_file=eval_file, batch_size=FLAGS.eval_batch_size, seq_length=FLAGS.max_seq_length, is_training=False, drop_remainder=eval_drop_remainder) eval_hooks = [LogEvalRunHook(FLAGS.eval_batch_size)] eval_start_time = time.time() result = estimator.evaluate(input_fn=eval_input_fn, hooks=eval_hooks) eval_time_elapsed = time.time() - eval_start_time time_list = eval_hooks[-1].time_list time_list.sort() # Removing outliers (init/warmup) in throughput computation. eval_time_wo_overhead = sum(time_list[:int(len(time_list) * 0.8)]) num_sentences = (int(len(time_list) * 0.8)) * FLAGS.eval_batch_size avg = np.mean(time_list) cf_50 = max(time_list[:int(len(time_list) * 0.50)]) cf_90 = max(time_list[:int(len(time_list) * 0.90)]) cf_95 = max(time_list[:int(len(time_list) * 0.95)]) cf_99 = max(time_list[:int(len(time_list) * 0.99)]) cf_100 = max(time_list[:int(len(time_list) * 1)]) ss_sentences_per_second = num_sentences * 1.0 / eval_time_wo_overhead tf.compat.v1.logging.info("-----------------------------") tf.compat.v1.logging.info("Total Inference Time = %0.2f for Sentences = %d", eval_time_elapsed, eval_hooks[-1].count * FLAGS.eval_batch_size) tf.compat.v1.logging.info("Total Inference Time W/O Overhead = %0.2f for Sentences = %d", eval_time_wo_overhead, num_sentences) tf.compat.v1.logging.info("Summary Inference Statistics on EVAL set") tf.compat.v1.logging.info("Batch size = %d", FLAGS.eval_batch_size) tf.compat.v1.logging.info("Sequence Length = %d", FLAGS.max_seq_length) tf.compat.v1.logging.info("Precision = %s", "fp16" if FLAGS.amp else "fp32") tf.compat.v1.logging.info("Latency Confidence Level 50 (ms) = %0.2f", cf_50 * 1000) tf.compat.v1.logging.info("Latency Confidence Level 90 (ms) = %0.2f", cf_90 * 1000) tf.compat.v1.logging.info("Latency Confidence Level 95 (ms) = %0.2f", cf_95 * 1000) tf.compat.v1.logging.info("Latency Confidence Level 99 (ms) = %0.2f", cf_99 * 1000) tf.compat.v1.logging.info("Latency Confidence Level 100 (ms) = %0.2f", cf_100 * 1000) tf.compat.v1.logging.info("Latency Average (ms) = %0.2f", avg * 1000) tf.compat.v1.logging.info("Throughput Average (sentences/sec) = %0.2f", ss_sentences_per_second) dllogging.logger.log(step=(), data={"throughput_val": ss_sentences_per_second}, verbosity=Verbosity.DEFAULT) tf.compat.v1.logging.info("-----------------------------") output_eval_file = os.path.join(FLAGS.output_dir, "eval_results.txt") with tf.io.gfile.GFile(output_eval_file, "w") as writer: tf.compat.v1.logging.info("***** Eval results *****") for key in sorted(result.keys()): dllogging.logger.log(step=(), data={key: float(result[key])}, verbosity=Verbosity.DEFAULT) tf.compat.v1.logging.info(" %s = %s", key, str(result[key])) writer.write("%s = %s\n" % (key, str(result[key]))) if FLAGS.do_predict and master_process: predict_examples = processor.get_test_examples(FLAGS.data_dir) predict_file = os.path.join(FLAGS.output_dir, "predict.tf_record") file_based_convert_examples_to_features(predict_examples, label_list, FLAGS.max_seq_length, tokenizer, predict_file) tf.compat.v1.logging.info("***** Running prediction*****") tf.compat.v1.logging.info(" Num examples = %d", len(predict_examples)) tf.compat.v1.logging.info(" Batch size = %d", FLAGS.predict_batch_size) predict_drop_remainder = False predict_input_fn = file_based_input_fn_builder( input_file=predict_file, batch_size=FLAGS.predict_batch_size, seq_length=FLAGS.max_seq_length, is_training=False, drop_remainder=predict_drop_remainder) predict_hooks = [LogEvalRunHook(FLAGS.predict_batch_size)] predict_start_time = time.time() output_predict_file = os.path.join(FLAGS.output_dir, "test_results.tsv") with tf.io.gfile.GFile(output_predict_file, "w") as writer: tf.compat.v1.logging.info("***** Predict results *****") for prediction in estimator.predict(input_fn=predict_input_fn, hooks=predict_hooks, yield_single_examples=False): output_line = "\t".join( str(class_probability) for class_probability in prediction) + "\n" writer.write(output_line) predict_time_elapsed = time.time() - predict_start_time time_list = predict_hooks[-1].time_list time_list.sort() # Removing outliers (init/warmup) in throughput computation. predict_time_wo_overhead = sum(time_list[:int(len(time_list) * 0.8)]) num_sentences = (int(len(time_list) * 0.8)) * FLAGS.predict_batch_size avg = np.mean(time_list) cf_50 = max(time_list[:int(len(time_list) * 0.50)]) cf_90 = max(time_list[:int(len(time_list) * 0.90)]) cf_95 = max(time_list[:int(len(time_list) * 0.95)]) cf_99 = max(time_list[:int(len(time_list) * 0.99)]) cf_100 = max(time_list[:int(len(time_list) * 1)]) ss_sentences_per_second = num_sentences * 1.0 / predict_time_wo_overhead tf.compat.v1.logging.info("-----------------------------") tf.compat.v1.logging.info("Total Inference Time = %0.2f for Sentences = %d", predict_time_elapsed, predict_hooks[-1].count * FLAGS.predict_batch_size) tf.compat.v1.logging.info("Total Inference Time W/O Overhead = %0.2f for Sentences = %d", predict_time_wo_overhead, num_sentences) tf.compat.v1.logging.info("Summary Inference Statistics on TEST SET") tf.compat.v1.logging.info("Batch size = %d", FLAGS.predict_batch_size) tf.compat.v1.logging.info("Sequence Length = %d", FLAGS.max_seq_length) tf.compat.v1.logging.info("Precision = %s", "fp16" if FLAGS.amp else "fp32") tf.compat.v1.logging.info("Latency Confidence Level 50 (ms) = %0.2f", cf_50 * 1000) tf.compat.v1.logging.info("Latency Confidence Level 90 (ms) = %0.2f", cf_90 * 1000) tf.compat.v1.logging.info("Latency Confidence Level 95 (ms) = %0.2f", cf_95 * 1000) tf.compat.v1.logging.info("Latency Confidence Level 99 (ms) = %0.2f", cf_99 * 1000) tf.compat.v1.logging.info("Latency Confidence Level 100 (ms) = %0.2f", cf_100 * 1000) tf.compat.v1.logging.info("Latency Average (ms) = %0.2f", avg * 1000) tf.compat.v1.logging.info("Throughput Average (sentences/sec) = %0.2f", ss_sentences_per_second) dllogging.logger.log(step=(), data={"throughput_val": ss_sentences_per_second}, verbosity=Verbosity.DEFAULT) tf.compat.v1.logging.info("-----------------------------") if __name__ == "__main__": flags.mark_flag_as_required("data_dir") flags.mark_flag_as_required("task_name") flags.mark_flag_as_required("vocab_file") flags.mark_flag_as_required("bert_config_file") flags.mark_flag_as_required("output_dir") tf.compat.v1.app.run()
[ 1, 396, 14137, 29922, 9420, 29899, 29947, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29929, 405, 13044, 10764, 315, 1955, 29925, 1955, 8098, 29889, 2178, 10462, 21676, 29889, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29896, 29947, 450, 5087, 319, 29902, 17088, 8583, 13189, 943, 29889, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, 313, 1552, 376, 29931, 293, 1947, 1496, 13, 29937, 366, 1122, 451, 671, 445, 934, 5174, 297, 752, 13036, 411, 278, 19245, 29889, 13, 29937, 887, 1122, 4017, 263, 3509, 310, 278, 19245, 472, 13, 29937, 13, 29937, 268, 1732, 597, 1636, 29889, 4288, 29889, 990, 29914, 506, 11259, 29914, 27888, 1430, 1660, 29899, 29906, 29889, 29900, 13, 29937, 13, 29937, 25870, 3734, 491, 22903, 4307, 470, 15502, 304, 297, 5007, 29892, 7047, 13, 29937, 13235, 1090, 278, 19245, 338, 13235, 373, 385, 376, 3289, 8519, 29908, 350, 3289, 3235, 29892, 13, 29937, 399, 1806, 8187, 2692, 399, 1718, 29934, 13566, 29059, 6323, 8707, 29928, 22122, 29903, 8079, 13764, 29979, 476, 22255, 29892, 2845, 4653, 470, 2411, 2957, 29889, 13, 29937, 2823, 278, 19245, 363, 278, 2702, 4086, 14765, 1076, 11239, 322, 13, 29937, 27028, 1090, 278, 19245, 29889, 13, 13, 15945, 29908, 13635, 29911, 1436, 300, 27964, 28877, 1213, 15945, 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, 13, 5215, 16250, 13, 5215, 11799, 13, 5215, 2897, 13, 5215, 1904, 292, 13, 5215, 13883, 13, 5215, 5993, 2133, 13, 5215, 26110, 408, 15886, 13, 5215, 4029, 586, 397, 29889, 29056, 408, 298, 27491, 13, 5215, 931, 13, 3166, 3667, 29879, 29889, 13239, 1053, 4522, 29923, 791, 6558, 29950, 2550, 29892, 4522, 5323, 262, 6558, 29950, 2550, 29892, 6230, 29918, 29916, 433, 29918, 15764, 13, 3166, 3667, 29879, 29889, 29887, 3746, 29918, 3470, 13593, 1053, 731, 29918, 3470, 13593, 13, 5215, 3667, 29879, 29889, 11671, 21707, 29918, 1990, 13, 3166, 270, 29880, 21707, 1053, 26646, 359, 537, 13, 3166, 3667, 29879, 29889, 3258, 29918, 3820, 434, 29918, 1272, 1053, 334, 13, 5215, 12655, 408, 7442, 13, 5215, 15886, 29918, 2527, 10817, 13, 13, 15764, 353, 15886, 29889, 15764, 13, 13, 18823, 10749, 353, 13449, 29889, 18823, 10749, 13, 13, 2277, 830, 5958, 4128, 13, 15764, 29889, 24405, 8895, 29918, 1807, 29898, 13, 1678, 376, 1272, 29918, 3972, 613, 6213, 29892, 13, 1678, 376, 1576, 1881, 848, 4516, 29889, 10575, 1712, 278, 869, 1372, 29894, 2066, 313, 272, 916, 848, 2066, 29897, 376, 13, 1678, 376, 1454, 278, 3414, 23157, 13, 13, 15764, 29889, 24405, 8895, 29918, 1807, 29898, 13, 1678, 376, 2151, 29918, 2917, 29918, 1445, 613, 6213, 29892, 13, 1678, 376, 1576, 2295, 4390, 934, 6590, 304, 278, 758, 29899, 3018, 1312, 350, 20161, 1904, 29889, 376, 13, 1678, 376, 4013, 1580, 11057, 278, 1904, 11258, 23157, 13, 13, 15764, 29889, 24405, 8895, 29918, 1807, 703, 7662, 29918, 978, 613, 6213, 29892, 376, 1576, 1024, 310, 278, 3414, 304, 7945, 23157, 13, 13, 15764, 29889, 24405, 8895, 29918, 1807, 703, 29894, 542, 370, 29918, 1445, 613, 6213, 29892, 13, 462, 1678, 376, 1576, 7931, 370, 352, 653, 934, 393, 278, 350, 20161, 1904, 471, 16370, 373, 23157, 13, 13, 15764, 29889, 24405, 8895, 29918, 1807, 29898, 13, 1678, 376, 4905, 29918, 3972, 613, 6213, 29892, 13, 1678, 376, 1576, 1962, 3884, 988, 278, 1904, 1423, 9748, 674, 367, 3971, 23157, 13, 13, 2277, 5901, 4128, 13, 15764, 29889, 24405, 8895, 29918, 1807, 29898, 13, 1678, 376, 11671, 1188, 29918, 2084, 613, 5591, 9902, 29914, 2151, 29918, 11671, 1188, 29889, 3126, 613, 13, 1678, 376, 9507, 988, 270, 29880, 21707, 15873, 304, 1159, 13, 13, 15764, 29889, 24405, 8895, 29918, 1807, 29898, 13, 1678, 376, 20640, 3950, 29918, 1853, 613, 376, 29880, 1117, 613, 13, 1678, 376, 20624, 326, 3950, 1134, 584, 594, 314, 470, 301, 1117, 1159, 13, 13, 15764, 29889, 24405, 8895, 29918, 1807, 29898, 13, 1678, 376, 2344, 29918, 3198, 3149, 613, 6213, 29892, 13, 1678, 376, 15514, 1423, 3149, 313, 375, 1474, 515, 263, 758, 29899, 3018, 1312, 350, 20161, 1904, 467, 1159, 13, 13, 15764, 29889, 24405, 8895, 29918, 11227, 29898, 13, 1678, 376, 1867, 29918, 13609, 29918, 4878, 613, 5852, 29892, 13, 1678, 376, 8809, 1979, 304, 5224, 1206, 278, 1881, 1426, 29889, 10575, 367, 5852, 363, 443, 29883, 1463, 376, 13, 1678, 376, 9794, 322, 7700, 363, 274, 1463, 4733, 23157, 13, 13, 15764, 29889, 24405, 8895, 29918, 16031, 29898, 13, 1678, 376, 3317, 29918, 11762, 29918, 2848, 613, 29871, 29896, 29906, 29947, 29892, 13, 1678, 376, 1576, 7472, 3001, 1881, 5665, 3309, 1156, 10803, 29925, 347, 346, 5993, 2133, 29889, 376, 13, 1678, 376, 16941, 2063, 5520, 1135, 445, 674, 367, 21022, 630, 29892, 322, 15602, 20511, 376, 13, 1678, 376, 27603, 445, 674, 367, 282, 23959, 23157, 13, 13, 15764, 29889, 24405, 8895, 29918, 11227, 703, 1867, 29918, 14968, 613, 7700, 29892, 376, 8809, 1979, 304, 1065, 6694, 23157, 13, 13, 15764, 29889, 24405, 8895, 29918, 11227, 703, 1867, 29918, 14513, 613, 7700, 29892, 376, 8809, 1979, 304, 1065, 19745, 373, 278, 2906, 731, 23157, 13, 13, 15764, 29889, 24405, 8895, 29918, 11227, 29898, 13, 1678, 376, 1867, 29918, 27711, 613, 7700, 29892, 13, 1678, 376, 8809, 1979, 304, 1065, 278, 1904, 297, 27262, 4464, 373, 278, 1243, 731, 23157, 13, 13, 15764, 29889, 24405, 8895, 29918, 16031, 703, 14968, 29918, 16175, 29918, 2311, 613, 29871, 29941, 29906, 29892, 376, 11536, 9853, 2159, 363, 6694, 23157, 13, 13, 15764, 29889, 24405, 8895, 29918, 16031, 703, 14513, 29918, 16175, 29918, 2311, 613, 29871, 29947, 29892, 376, 11536, 9853, 2159, 363, 19745, 23157, 13, 13, 15764, 29889, 24405, 8895, 29918, 16031, 703, 27711, 29918, 16175, 29918, 2311, 613, 29871, 29947, 29892, 376, 11536, 9853, 2159, 363, 8500, 23157, 13, 13, 15764, 29889, 24405, 8895, 29918, 7411, 703, 21891, 29918, 10492, 613, 29871, 29945, 29872, 29899, 29945, 29892, 376, 1576, 2847, 6509, 6554, 363, 11783, 23157, 13, 13, 15764, 29889, 24405, 8895, 29918, 11227, 703, 1509, 29918, 509, 29873, 613, 7700, 29892, 376, 8809, 1979, 304, 671, 323, 29943, 29899, 5659, 29911, 1159, 13, 13, 15764, 29889, 24405, 8895, 29918, 7411, 703, 1949, 29918, 14968, 29918, 1022, 2878, 29879, 613, 29871, 29941, 29889, 29900, 29892, 13, 462, 259, 376, 11536, 1353, 310, 6694, 21502, 12168, 304, 2189, 23157, 13, 13, 15764, 29889, 24405, 8895, 29918, 7411, 29898, 13, 1678, 376, 29893, 2817, 786, 29918, 771, 637, 291, 613, 29871, 29900, 29889, 29896, 29892, 13, 1678, 376, 1184, 637, 291, 310, 6694, 304, 2189, 5608, 6509, 6554, 14294, 786, 363, 29889, 376, 13, 1678, 376, 29923, 29889, 29887, 1696, 29871, 29900, 29889, 29896, 353, 29871, 29896, 29900, 29995, 310, 6694, 23157, 13, 13, 15764, 29889, 24405, 8895, 29918, 16031, 703, 7620, 29918, 3198, 9748, 29918, 24530, 613, 29871, 29896, 29900, 29900, 29900, 29892, 13, 462, 268, 376, 5328, 4049, 304, 4078, 278, 1904, 1423, 3149, 23157, 13, 15764, 29889, 24405, 8895, 29918, 16031, 703, 4990, 29918, 6758, 29918, 24530, 613, 29871, 29896, 29900, 29892, 13, 462, 268, 376, 5328, 4049, 304, 1596, 6410, 515, 4844, 1061, 1159, 13, 13, 15764, 29889, 24405, 8895, 29918, 16031, 703, 1524, 800, 29918, 546, 29918, 7888, 613, 29871, 29896, 29900, 29900, 29900, 29892, 13, 462, 268, 376, 5328, 1784, 6576, 304, 1207, 297, 1269, 4844, 1061, 1246, 23157, 13, 15764, 29889, 24405, 8895, 29918, 16031, 703, 1949, 29918, 5753, 398, 2785, 29918, 24530, 613, 29871, 29896, 29892, 13, 462, 268, 376, 4557, 310, 18414, 2785, 6576, 1434, 16030, 2767, 29908, 29871, 13, 462, 418, 376, 12756, 9853, 2159, 353, 954, 29918, 5753, 398, 2785, 29918, 24530, 334, 7945, 29918, 16175, 29918, 2311, 1159, 13, 15764, 29889, 24405, 8895, 29918, 11227, 703, 1160, 613, 5852, 29892, 376, 8809, 1979, 304, 9025, 319, 3580, 288, 567, 29889, 1932, 2089, 29892, 3913, 323, 29943, 29941, 29906, 373, 319, 29896, 29900, 29900, 322, 383, 29925, 29941, 29906, 373, 478, 29896, 29900, 29900, 28258, 3308, 23157, 13, 15764, 29889, 24405, 8895, 29918, 11227, 703, 1509, 29918, 29916, 433, 613, 5852, 29892, 376, 8809, 1979, 304, 9025, 1060, 4375, 435, 1806, 14835, 23157, 13, 15764, 29889, 24405, 8895, 29918, 11227, 703, 2015, 586, 397, 613, 7700, 29892, 376, 8809, 1979, 304, 671, 6912, 586, 397, 363, 2473, 29899, 29887, 3746, 6057, 1159, 13, 13, 15764, 29889, 24405, 8895, 29918, 11227, 29898, 13, 1678, 376, 369, 15828, 29918, 21027, 613, 7700, 29892, 13, 1678, 376, 3644, 1565, 29892, 599, 310, 278, 18116, 4475, 304, 848, 9068, 674, 367, 13350, 29889, 376, 13, 1678, 376, 29909, 1353, 310, 18116, 526, 3806, 363, 263, 4226, 317, 2182, 3035, 17983, 23157, 13, 13, 13, 1753, 934, 29918, 6707, 29918, 2080, 29918, 9144, 29918, 16409, 29898, 2080, 29918, 1445, 29892, 9853, 29918, 2311, 29892, 19359, 29918, 2848, 29892, 338, 29918, 26495, 29892, 13, 462, 18884, 5768, 29918, 1745, 475, 672, 29892, 298, 27491, 29922, 8516, 1125, 13, 29871, 9995, 9832, 1078, 385, 421, 2080, 29918, 9144, 29952, 18424, 304, 367, 4502, 304, 2661, 326, 1061, 1213, 15945, 13, 13, 29871, 1024, 29918, 517, 29918, 22100, 353, 426, 13, 418, 376, 2080, 29918, 4841, 1115, 15886, 29889, 601, 29889, 26262, 21515, 19132, 4197, 11762, 29918, 2848, 1402, 15886, 29889, 524, 29953, 29946, 511, 13, 418, 376, 2080, 29918, 13168, 1115, 15886, 29889, 601, 29889, 26262, 21515, 19132, 4197, 11762, 29918, 2848, 1402, 15886, 29889, 524, 29953, 29946, 511, 13, 418, 376, 28192, 29918, 4841, 1115, 15886, 29889, 601, 29889, 26262, 21515, 19132, 4197, 11762, 29918, 2848, 1402, 15886, 29889, 524, 29953, 29946, 511, 13, 418, 376, 1643, 29918, 4841, 1115, 15886, 29889, 601, 29889, 26262, 21515, 19132, 4197, 1402, 15886, 29889, 524, 29953, 29946, 511, 13, 29871, 500, 13, 13, 29871, 822, 903, 13808, 29918, 11651, 29898, 11651, 29892, 1024, 29918, 517, 29918, 22100, 1125, 13, 1678, 9995, 6185, 2631, 263, 2407, 304, 263, 323, 6073, 17907, 1342, 1213, 15945, 13, 1678, 1342, 353, 15886, 29889, 5510, 29918, 14369, 29918, 4773, 29898, 11651, 29892, 1024, 29918, 517, 29918, 22100, 29897, 13, 13, 1678, 396, 15886, 29889, 14023, 871, 11286, 15886, 29889, 524, 29953, 29946, 29892, 541, 278, 323, 7056, 871, 11286, 15886, 29889, 524, 29941, 29906, 29889, 13, 1678, 396, 1105, 4320, 599, 938, 29953, 29946, 304, 938, 29941, 29906, 29889, 13, 1678, 363, 1024, 297, 1051, 29898, 4773, 29889, 8149, 580, 1125, 13, 418, 260, 353, 1342, 29961, 978, 29962, 13, 418, 565, 260, 29889, 29881, 1853, 1275, 15886, 29889, 524, 29953, 29946, 29901, 13, 4706, 260, 353, 15886, 29889, 517, 29918, 524, 29941, 29906, 29898, 29873, 29897, 13, 418, 1342, 29961, 978, 29962, 353, 260, 13, 13, 1678, 736, 1342, 13, 13, 29871, 822, 1881, 29918, 9144, 7295, 13, 1678, 9995, 1576, 3935, 1881, 740, 1213, 15945, 13, 13, 1678, 396, 1152, 6694, 29892, 591, 864, 263, 3287, 310, 8943, 5183, 322, 528, 3096, 1847, 29889, 13, 1678, 396, 1152, 19745, 29892, 591, 864, 694, 528, 3096, 1847, 322, 8943, 5183, 1838, 29915, 29873, 4383, 29889, 13, 1678, 270, 353, 15886, 29889, 1272, 29889, 8969, 9182, 16390, 24541, 29898, 2080, 29918, 1445, 29897, 13, 1678, 565, 338, 29918, 26495, 29901, 13, 418, 565, 298, 27491, 338, 451, 6213, 29901, 270, 353, 270, 29889, 845, 538, 29898, 29882, 27491, 29889, 2311, 3285, 298, 27491, 29889, 10003, 3101, 13, 418, 270, 353, 270, 29889, 14358, 580, 13, 418, 270, 353, 270, 29889, 845, 21897, 29898, 9040, 29918, 2311, 29922, 29896, 29900, 29900, 29897, 13, 13, 1678, 270, 353, 270, 29889, 7302, 29898, 13, 4706, 15886, 29889, 21570, 29889, 1272, 29889, 1958, 29918, 392, 29918, 16175, 29898, 13, 9651, 14013, 2407, 29901, 903, 13808, 29918, 11651, 29898, 11651, 29892, 1024, 29918, 517, 29918, 22100, 511, 13, 9651, 9853, 29918, 2311, 29922, 16175, 29918, 2311, 29892, 13, 9651, 5768, 29918, 1745, 475, 672, 29922, 8865, 29918, 1745, 475, 672, 876, 13, 13, 1678, 736, 270, 13, 13, 29871, 736, 1881, 29918, 9144, 13, 13, 13, 1753, 1653, 29918, 4299, 29898, 2151, 29918, 2917, 29892, 338, 29918, 26495, 29892, 1881, 29918, 4841, 29892, 1881, 29918, 13168, 29892, 10768, 29918, 4841, 29892, 13, 462, 11073, 29892, 954, 29918, 21134, 29892, 671, 29918, 650, 29918, 8711, 29918, 17987, 29881, 886, 1125, 13, 29871, 9995, 9832, 1078, 263, 12965, 1904, 1213, 15945, 13, 29871, 1904, 353, 1904, 292, 29889, 29933, 814, 3195, 29898, 13, 418, 2295, 29922, 2151, 29918, 2917, 29892, 13, 418, 338, 29918, 26495, 29922, 275, 29918, 26495, 29892, 13, 418, 1881, 29918, 4841, 29922, 2080, 29918, 4841, 29892, 13, 418, 1881, 29918, 13168, 29922, 2080, 29918, 13168, 29892, 13, 418, 5993, 29918, 1853, 29918, 4841, 29922, 28192, 29918, 4841, 29892, 13, 418, 671, 29918, 650, 29918, 8711, 29918, 17987, 29881, 886, 29922, 1509, 29918, 650, 29918, 8711, 29918, 17987, 29881, 886, 29892, 13, 418, 10272, 29918, 1853, 29922, 13264, 29889, 7411, 29941, 29906, 29897, 13, 13, 29871, 396, 512, 278, 13455, 29892, 591, 526, 2599, 263, 2560, 12965, 3414, 373, 278, 4152, 13, 29871, 396, 10768, 29889, 13, 29871, 396, 13, 29871, 396, 960, 366, 864, 304, 671, 278, 5993, 29899, 5563, 1962, 29892, 671, 1904, 29889, 657, 29918, 16506, 29918, 4905, 580, 13, 29871, 396, 2012, 29889, 13, 29871, 1962, 29918, 13148, 353, 1904, 29889, 657, 29918, 1129, 29877, 839, 29918, 4905, 580, 13, 13, 29871, 7934, 29918, 2311, 353, 1962, 29918, 13148, 29889, 12181, 14352, 29896, 1822, 1767, 13, 13, 29871, 1962, 29918, 705, 5861, 353, 15886, 29889, 657, 29918, 11918, 29898, 13, 418, 376, 4905, 29918, 705, 5861, 613, 518, 1949, 29918, 21134, 29892, 7934, 29918, 2311, 1402, 13, 418, 2847, 3950, 29922, 13264, 29889, 509, 4661, 630, 29918, 8945, 29918, 11228, 3950, 29898, 4172, 3359, 29922, 29900, 29889, 29900, 29906, 876, 13, 13, 29871, 1962, 29918, 29890, 3173, 353, 15886, 29889, 657, 29918, 11918, 29898, 13, 418, 376, 4905, 29918, 29890, 3173, 613, 518, 1949, 29918, 21134, 1402, 2847, 3950, 29922, 13264, 29889, 3298, 359, 29918, 11228, 3950, 3101, 13, 13, 29871, 411, 15886, 29889, 11918, 29918, 6078, 703, 6758, 29908, 1125, 13, 1678, 565, 338, 29918, 26495, 29901, 13, 418, 396, 306, 29889, 29872, 1696, 29871, 29900, 29889, 29896, 5768, 449, 13, 418, 1962, 29918, 13148, 353, 15886, 29889, 15755, 29889, 8865, 449, 29898, 4905, 29918, 13148, 29892, 3013, 29918, 22795, 29922, 29900, 29889, 29929, 29897, 13, 13, 1678, 1480, 1169, 353, 15886, 29889, 2922, 16109, 29898, 4905, 29918, 13148, 29892, 1962, 29918, 705, 5861, 29892, 1301, 4220, 29918, 29890, 29922, 5574, 29897, 13, 1678, 1480, 1169, 353, 15886, 29889, 15755, 29889, 29890, 3173, 29918, 1202, 29898, 1188, 1169, 29892, 1962, 29918, 29890, 3173, 29892, 1024, 2433, 25932, 29918, 1188, 1169, 1495, 13, 1678, 2070, 11614, 353, 15886, 29889, 15755, 29889, 2695, 3317, 29898, 1188, 1169, 29892, 9685, 10457, 29896, 29892, 1024, 2433, 25932, 29918, 22795, 11614, 1495, 13, 1678, 1480, 29918, 771, 5824, 353, 15886, 29889, 15755, 29889, 1188, 29918, 2695, 3317, 29898, 1188, 1169, 29892, 9685, 10457, 29896, 29897, 13, 13, 1678, 697, 29918, 8711, 29918, 21134, 353, 15886, 29889, 650, 29918, 8711, 29898, 21134, 29892, 10809, 29922, 1949, 29918, 21134, 29892, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 29897, 13, 13, 1678, 639, 29918, 4773, 29918, 6758, 353, 448, 13264, 29889, 17469, 29918, 2083, 29898, 650, 29918, 8711, 29918, 21134, 334, 1480, 29918, 771, 5824, 29892, 9685, 10457, 29896, 29892, 1024, 2433, 25932, 29918, 546, 29918, 4773, 29918, 6758, 1495, 13, 1678, 6410, 353, 15886, 29889, 17469, 29918, 12676, 29898, 546, 29918, 4773, 29918, 6758, 29892, 1024, 2433, 25932, 29918, 6758, 1495, 13, 13, 1678, 736, 313, 6758, 29892, 639, 29918, 4773, 29918, 6758, 29892, 1480, 1169, 29892, 2070, 11614, 29897, 13, 13, 1753, 679, 29918, 29888, 307, 2256, 29918, 13264, 509, 29873, 29918, 4299, 29898, 2151, 29918, 2917, 29892, 8267, 29892, 954, 29918, 21134, 29892, 671, 29918, 650, 29918, 8711, 29918, 17987, 29881, 886, 29892, 2069, 29918, 3198, 3149, 1125, 13, 29871, 15886, 29918, 2917, 353, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 3991, 1184, 517, 580, 13, 29871, 15886, 29918, 2917, 29889, 29887, 3746, 29918, 6768, 29889, 9536, 29918, 29887, 798, 386, 353, 5852, 13, 29871, 1962, 29918, 3177, 29918, 7039, 353, 6024, 6758, 29914, 25932, 29918, 6758, 742, 525, 6758, 29914, 25932, 29918, 546, 29918, 4773, 29918, 6758, 742, 525, 6758, 29914, 25932, 29918, 1188, 1169, 742, 525, 6758, 29914, 25932, 29918, 22795, 11614, 2033, 13, 13, 29871, 411, 15886, 29889, 7317, 29898, 2917, 29922, 13264, 29918, 2917, 29897, 408, 15886, 29918, 29879, 404, 29901, 13, 1678, 1881, 29918, 4841, 353, 15886, 29889, 27074, 29898, 13264, 29889, 524, 29941, 29906, 29892, 8267, 29892, 525, 2080, 29918, 4841, 1495, 13, 1678, 1881, 29918, 13168, 353, 15886, 29889, 27074, 29898, 13264, 29889, 524, 29941, 29906, 29892, 8267, 29892, 525, 2080, 29918, 13168, 1495, 13, 1678, 10768, 29918, 4841, 353, 15886, 29889, 27074, 29898, 13264, 29889, 524, 29941, 29906, 29892, 8267, 29892, 525, 28192, 29918, 4841, 1495, 13, 1678, 3858, 29918, 4841, 353, 15886, 29889, 27074, 29898, 13264, 29889, 524, 29941, 29906, 29892, 313, 8516, 511, 525, 1643, 29918, 4841, 1495, 13, 13, 1678, 1653, 29918, 4299, 29898, 2151, 29918, 2917, 29892, 7700, 29892, 1881, 29918, 4841, 29892, 1881, 29918, 13168, 29892, 10768, 29918, 4841, 29892, 3858, 29918, 4841, 29892, 13, 9651, 954, 29918, 21134, 29892, 671, 29918, 650, 29918, 8711, 29918, 17987, 29881, 886, 29897, 13, 13, 1678, 9631, 1503, 353, 15886, 29889, 14968, 519, 29918, 20897, 580, 13, 1678, 313, 465, 10194, 29918, 1958, 29892, 16601, 29918, 11918, 29918, 7039, 29897, 353, 1904, 292, 29889, 657, 29918, 465, 10194, 29918, 1958, 29918, 3166, 29918, 3198, 3149, 29898, 12427, 1503, 29892, 2069, 29918, 3198, 3149, 29897, 13, 1678, 15886, 29889, 14968, 29889, 2344, 29918, 3166, 29918, 3198, 3149, 29898, 2344, 29918, 3198, 3149, 29892, 12827, 29918, 1958, 29897, 13, 1678, 15886, 29918, 29879, 404, 29889, 3389, 29898, 13264, 29889, 10945, 29918, 20897, 29918, 11228, 3950, 3101, 13, 1678, 1596, 703, 3927, 29909, 2287, 29928, 29991, 1159, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 2328, 28186, 519, 9586, 1849, 334, 17435, 1159, 13, 1678, 363, 722, 297, 9631, 1503, 29901, 13, 418, 2069, 29918, 1807, 353, 5124, 13, 418, 565, 722, 29889, 978, 297, 16601, 29918, 11918, 29918, 7039, 29901, 13, 4706, 2069, 29918, 1807, 353, 9162, 334, 26019, 29918, 21482, 29918, 7077, 7982, 20605, 13, 418, 1683, 29901, 13, 4706, 2069, 29918, 1807, 353, 9162, 334, 12256, 19988, 19988, 19988, 19988, 19988, 19988, 19988, 19988, 19988, 19988, 29908, 13, 4706, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29871, 1024, 353, 1273, 29879, 29892, 8267, 353, 1273, 29879, 29995, 29879, 613, 722, 29889, 978, 29892, 722, 29889, 12181, 29892, 2069, 29918, 1807, 29897, 13, 13, 1678, 14671, 2256, 29918, 4262, 353, 15886, 29889, 4262, 29918, 4422, 29889, 13441, 29918, 20897, 29918, 517, 29918, 3075, 1934, 29898, 13264, 29918, 29879, 404, 29892, 29871, 13, 9651, 15886, 29918, 29879, 404, 29889, 4262, 29889, 294, 29918, 4262, 29918, 1753, 3285, 1962, 29918, 3177, 29918, 7039, 29897, 13, 13, 1678, 954, 29918, 18010, 353, 7431, 29898, 29888, 307, 2256, 29918, 4262, 29889, 3177, 29897, 13, 1678, 1596, 877, 1168, 369, 1259, 3983, 773, 323, 6073, 17907, 29899, 29911, 6073, 13079, 856, 1495, 13, 1678, 515, 26110, 29889, 4691, 29889, 21789, 29889, 20158, 2273, 1053, 534, 29873, 29918, 13441, 408, 534, 29873, 13, 1678, 29105, 353, 534, 29873, 29889, 29911, 2273, 9527, 18545, 29898, 13, 4706, 1881, 29918, 4262, 29918, 1753, 29922, 29888, 307, 2256, 29918, 4262, 29892, 13, 4706, 7573, 29918, 8517, 1761, 29922, 4905, 29918, 3177, 29918, 7039, 29892, 13, 4706, 4236, 29918, 1287, 3493, 29918, 2311, 29918, 13193, 7607, 29946, 29900, 29929, 29953, 3532, 29871, 29906, 29900, 29897, 448, 29871, 29896, 29900, 29900, 29900, 29892, 13, 4706, 16716, 29918, 8513, 353, 376, 26353, 29896, 29953, 29908, 565, 383, 4375, 10749, 29889, 1160, 1683, 376, 26353, 29941, 29906, 613, 13, 4706, 9212, 29918, 28192, 29918, 2311, 29922, 29946, 29892, 13, 4706, 338, 29918, 16626, 29918, 459, 29922, 5574, 29892, 13, 4706, 7472, 29918, 29883, 3791, 29918, 996, 1475, 29922, 29896, 29900, 29900, 29900, 13, 1678, 1723, 13, 1678, 14671, 2256, 29918, 4262, 353, 29105, 29889, 13441, 580, 13, 13, 1678, 1596, 877, 11536, 2943, 2302, 1434, 322, 1156, 323, 29943, 29899, 5659, 29911, 11301, 29901, 742, 13, 3986, 954, 29918, 18010, 29892, 525, 976, 742, 7431, 29898, 29888, 307, 2256, 29918, 4262, 29889, 3177, 876, 13, 1678, 1596, 877, 5659, 29911, 2943, 2302, 29901, 742, 13, 3986, 7431, 4197, 29896, 363, 302, 297, 14671, 2256, 29918, 4262, 29889, 3177, 565, 851, 29898, 29876, 29889, 459, 29897, 1275, 525, 5659, 4330, 865, 457, 11746, 25901, 13, 268, 13, 1678, 411, 15886, 29889, 601, 29889, 29887, 1445, 29889, 29954, 2283, 703, 29888, 307, 2256, 29918, 4299, 5659, 29911, 29889, 24381, 613, 376, 29893, 29890, 1159, 408, 285, 29901, 13, 418, 285, 29889, 3539, 29898, 29888, 307, 2256, 29918, 4262, 29889, 1748, 6646, 8246, 3101, 539, 13, 308, 13, 29871, 736, 14671, 2256, 29918, 4262, 13, 13, 13, 13, 1753, 1904, 29918, 9144, 29918, 16409, 29898, 7662, 29918, 978, 29892, 289, 814, 29918, 2917, 29892, 954, 29918, 21134, 29892, 2069, 29918, 3198, 3149, 29892, 6509, 29918, 10492, 29892, 13, 462, 268, 954, 29918, 14968, 29918, 24530, 29892, 954, 29918, 29893, 2817, 786, 29918, 24530, 29892, 13, 462, 268, 671, 29918, 650, 29918, 8711, 29918, 17987, 29881, 886, 29892, 298, 27491, 29922, 8516, 1125, 13, 29871, 9995, 11609, 29879, 421, 4299, 29918, 9144, 29952, 18424, 363, 2661, 326, 1061, 1213, 15945, 13, 13, 29871, 822, 1904, 29918, 9144, 29898, 22100, 29892, 11073, 29892, 4464, 29892, 8636, 1125, 29871, 396, 282, 2904, 524, 29901, 11262, 29922, 348, 3880, 29899, 23516, 13, 1678, 9995, 1576, 421, 4299, 29918, 9144, 29952, 363, 2661, 326, 1061, 1213, 15945, 13, 13, 1678, 822, 12714, 29918, 9144, 29898, 546, 29918, 4773, 29918, 6758, 29892, 3858, 29918, 4841, 29892, 1480, 1169, 1125, 13, 4706, 27303, 353, 15886, 29889, 1191, 3317, 29898, 1188, 1169, 29892, 9685, 10457, 29896, 29892, 1962, 29918, 1853, 29922, 13264, 29889, 524, 29941, 29906, 29897, 13, 4706, 565, 3414, 29918, 978, 1275, 376, 15519, 1115, 13, 9651, 383, 29940, 29892, 383, 29940, 29918, 459, 353, 15886, 29889, 2527, 10817, 29889, 4541, 29918, 10052, 5056, 29898, 21134, 29922, 1643, 29918, 4841, 29892, 27303, 29922, 27711, 1080, 29897, 13, 9651, 383, 29925, 29892, 383, 29925, 29918, 459, 353, 15886, 29889, 2527, 10817, 29889, 4541, 29918, 1066, 277, 3145, 29898, 21134, 29922, 1643, 29918, 4841, 29892, 27303, 29922, 27711, 1080, 29897, 13, 9651, 323, 29925, 29892, 323, 29925, 29918, 459, 353, 15886, 29889, 2527, 10817, 29889, 3009, 29918, 1066, 277, 3145, 29898, 21134, 29922, 1643, 29918, 4841, 29892, 27303, 29922, 27711, 1080, 29897, 13, 9651, 323, 29940, 29892, 323, 29940, 29918, 459, 353, 15886, 29889, 2527, 10817, 29889, 3009, 29918, 10052, 5056, 29898, 21134, 29922, 1643, 29918, 4841, 29892, 27303, 29922, 27711, 1080, 29897, 13, 13, 9651, 341, 4174, 353, 313, 3557, 334, 323, 29940, 448, 383, 29925, 334, 383, 29940, 29897, 847, 5135, 3557, 718, 383, 29925, 29897, 334, 313, 3557, 718, 383, 29940, 29897, 334, 313, 29911, 29940, 718, 383, 29925, 29897, 334, 313, 29911, 29940, 718, 383, 29940, 876, 3579, 29871, 29900, 29889, 29945, 13, 9651, 341, 4174, 29918, 459, 353, 15886, 29889, 2972, 29898, 29943, 29940, 29918, 459, 29892, 323, 29940, 29918, 459, 29892, 323, 29925, 29918, 459, 29892, 383, 29925, 29918, 459, 29892, 15886, 29889, 22350, 29898, 29924, 4174, 29892, 1024, 543, 29924, 4174, 5783, 13, 9651, 736, 8853, 29924, 4174, 1115, 313, 29924, 4174, 29892, 341, 4174, 29918, 459, 2915, 13, 4706, 25342, 3414, 29918, 978, 1275, 376, 29885, 29878, 6739, 1115, 13, 9651, 13600, 353, 15886, 29889, 2527, 10817, 29889, 562, 2764, 4135, 29898, 13, 18884, 11073, 29922, 1643, 29918, 4841, 29892, 27303, 29922, 27711, 1080, 29897, 13, 9651, 6410, 353, 15886, 29889, 2527, 10817, 29889, 12676, 29898, 5975, 29922, 546, 29918, 4773, 29918, 6758, 29897, 13, 9651, 285, 29896, 353, 15886, 29918, 2527, 10817, 29889, 29888, 29896, 29898, 21134, 29922, 1643, 29918, 4841, 29892, 27303, 29922, 27711, 1080, 29892, 954, 29918, 13203, 29922, 29906, 29892, 926, 29918, 513, 1575, 11759, 29896, 2314, 13, 9651, 736, 426, 13, 18884, 376, 14513, 29918, 562, 2764, 4135, 1115, 13600, 29892, 13, 18884, 376, 14513, 29918, 29888, 29896, 1115, 285, 29896, 29892, 13, 18884, 376, 14513, 29918, 6758, 1115, 6410, 29892, 13, 9651, 500, 13, 4706, 1683, 29901, 13, 9651, 13600, 353, 15886, 29889, 2527, 10817, 29889, 562, 2764, 4135, 29898, 13, 18884, 11073, 29922, 1643, 29918, 4841, 29892, 27303, 29922, 27711, 1080, 29897, 13, 9651, 6410, 353, 15886, 29889, 2527, 10817, 29889, 12676, 29898, 5975, 29922, 546, 29918, 4773, 29918, 6758, 29897, 13, 9651, 736, 426, 13, 18884, 376, 14513, 29918, 562, 2764, 4135, 1115, 13600, 29892, 13, 18884, 376, 14513, 29918, 6758, 1115, 6410, 29892, 13, 9651, 500, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 17435, 5169, 3698, 18610, 1159, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 17435, 5169, 3698, 18610, 1159, 13, 1678, 363, 1024, 297, 12705, 29898, 22100, 29889, 8149, 580, 1125, 13, 418, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29871, 1024, 353, 1273, 29879, 29892, 8267, 353, 1273, 29879, 29908, 1273, 313, 978, 29892, 5680, 29961, 978, 1822, 12181, 876, 13, 13, 1678, 1881, 29918, 4841, 353, 5680, 3366, 2080, 29918, 4841, 3108, 13, 1678, 1881, 29918, 13168, 353, 5680, 3366, 2080, 29918, 13168, 3108, 13, 1678, 10768, 29918, 4841, 353, 5680, 3366, 28192, 29918, 4841, 3108, 13, 1678, 3858, 29918, 4841, 353, 5680, 3366, 1643, 29918, 4841, 3108, 13, 13, 1678, 338, 29918, 26495, 353, 313, 8513, 1275, 15886, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 29911, 4717, 1177, 29897, 13, 13, 1678, 565, 451, 338, 29918, 26495, 322, 383, 4375, 10749, 29889, 1509, 29918, 509, 29873, 29901, 13, 4706, 534, 29873, 29918, 4262, 353, 679, 29918, 29888, 307, 2256, 29918, 13264, 509, 29873, 29918, 4299, 29898, 2151, 29918, 2917, 29892, 1881, 29918, 4841, 29889, 12181, 29892, 954, 29918, 21134, 29892, 671, 29918, 650, 29918, 8711, 29918, 17987, 29881, 886, 29892, 2069, 29918, 3198, 3149, 29897, 13, 4706, 313, 7827, 29918, 6758, 29892, 639, 29918, 4773, 29918, 6758, 29892, 1480, 1169, 29892, 2070, 11614, 29897, 29871, 353, 15886, 29889, 5215, 29918, 4262, 29918, 1753, 29898, 509, 29873, 29918, 4262, 29892, 13, 18884, 1881, 29918, 1958, 3790, 29915, 2080, 29918, 4841, 2396, 2080, 29918, 4841, 29892, 525, 2080, 29918, 13168, 2396, 2080, 29918, 13168, 29892, 525, 28192, 29918, 4841, 2396, 28192, 29918, 4841, 29892, 525, 1643, 29918, 4841, 2396, 1643, 29918, 4841, 1118, 13, 18884, 736, 29918, 17664, 29922, 1839, 6758, 29914, 25932, 29918, 6758, 29901, 29900, 742, 525, 6758, 29914, 25932, 29918, 546, 29918, 4773, 29918, 6758, 29901, 29900, 742, 525, 6758, 29914, 25932, 29918, 1188, 1169, 29901, 29900, 742, 525, 6758, 29914, 25932, 29918, 22795, 11614, 29901, 29900, 7464, 13, 18884, 1024, 2433, 1495, 13, 4706, 565, 4464, 1275, 15886, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 15094, 4571, 1783, 29901, 13, 9651, 27303, 353, 8853, 22795, 11614, 1115, 2070, 11614, 29913, 13, 9651, 1962, 29918, 6550, 353, 15886, 29889, 342, 326, 1061, 29889, 12787, 326, 1061, 10299, 29898, 13, 18884, 4464, 29922, 8513, 29892, 27303, 29922, 27711, 1080, 29897, 13, 4706, 25342, 4464, 1275, 15886, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 29923, 8932, 29901, 13, 9651, 19745, 29918, 16414, 29918, 3554, 353, 12714, 29918, 9144, 29898, 546, 29918, 4773, 29918, 6758, 29892, 3858, 29918, 4841, 29892, 1480, 1169, 29897, 13, 9651, 1962, 29918, 6550, 353, 15886, 29889, 342, 326, 1061, 29889, 12787, 326, 1061, 10299, 29898, 13, 18884, 4464, 29922, 8513, 29892, 13, 18884, 6410, 29922, 7827, 29918, 6758, 29892, 13, 18884, 19745, 29918, 16414, 29918, 3554, 29922, 14513, 29918, 16414, 29918, 3554, 29897, 13, 4706, 736, 1962, 29918, 6550, 13, 1678, 313, 7827, 29918, 6758, 29892, 639, 29918, 4773, 29918, 6758, 29892, 1480, 1169, 29892, 2070, 11614, 29897, 353, 1653, 29918, 4299, 29898, 13, 4706, 289, 814, 29918, 2917, 29892, 338, 29918, 26495, 29892, 1881, 29918, 4841, 29892, 1881, 29918, 13168, 29892, 10768, 29918, 4841, 29892, 3858, 29918, 4841, 29892, 13, 4706, 954, 29918, 21134, 29892, 671, 29918, 650, 29918, 8711, 29918, 17987, 29881, 886, 29897, 13, 13, 1678, 9631, 1503, 353, 15886, 29889, 14968, 519, 29918, 20897, 580, 13, 1678, 16601, 29918, 11918, 29918, 7039, 353, 6571, 13, 1678, 565, 2069, 29918, 3198, 3149, 322, 313, 29882, 27491, 338, 6213, 470, 298, 27491, 29889, 10003, 580, 1275, 29871, 29900, 1125, 13, 418, 313, 465, 10194, 29918, 1958, 29892, 16601, 29918, 11918, 29918, 7039, 13, 418, 1723, 353, 1904, 292, 29889, 657, 29918, 465, 10194, 29918, 1958, 29918, 3166, 29918, 3198, 3149, 29898, 12427, 1503, 29892, 2069, 29918, 3198, 3149, 29897, 13, 418, 15886, 29889, 14968, 29889, 2344, 29918, 3166, 29918, 3198, 3149, 29898, 2344, 29918, 3198, 3149, 29892, 12827, 29918, 1958, 29897, 13, 13, 1678, 565, 383, 4375, 10749, 29889, 369, 15828, 29918, 21027, 29901, 13, 4706, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 2328, 28186, 519, 9586, 1849, 334, 17435, 1159, 13, 4706, 363, 722, 297, 9631, 1503, 29901, 13, 3986, 2069, 29918, 1807, 353, 5124, 13, 3986, 565, 722, 29889, 978, 297, 16601, 29918, 11918, 29918, 7039, 29901, 13, 9651, 2069, 29918, 1807, 353, 9162, 334, 26019, 29918, 21482, 29918, 7077, 7982, 20605, 13, 3986, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29871, 1024, 353, 1273, 29879, 29892, 8267, 353, 1273, 29879, 29995, 29879, 613, 722, 29889, 978, 29892, 722, 29889, 12181, 29892, 13, 462, 3986, 2069, 29918, 1807, 29897, 13, 13, 1678, 1962, 29918, 6550, 353, 6213, 13, 1678, 565, 4464, 1275, 15886, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 29911, 4717, 1177, 29901, 13, 13, 418, 7945, 29918, 459, 353, 13883, 29889, 3258, 29918, 20640, 3950, 29898, 13, 3986, 3001, 29918, 6758, 29892, 6509, 29918, 10492, 29892, 954, 29918, 14968, 29918, 24530, 29892, 954, 29918, 29893, 2817, 786, 29918, 24530, 29892, 13, 3986, 298, 27491, 29892, 7700, 29892, 383, 4375, 10749, 29889, 1160, 29892, 383, 4375, 10749, 29889, 1949, 29918, 5753, 398, 2785, 29918, 24530, 29892, 383, 4375, 10749, 29889, 20640, 3950, 29918, 1853, 29897, 13, 418, 1962, 29918, 6550, 353, 15886, 29889, 342, 326, 1061, 29889, 12787, 326, 1061, 10299, 29898, 13, 3986, 4464, 29922, 8513, 29892, 13, 3986, 6410, 29922, 7827, 29918, 6758, 29892, 13, 3986, 7945, 29918, 459, 29922, 14968, 29918, 459, 29897, 13, 1678, 25342, 4464, 1275, 15886, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 29923, 8932, 29901, 13, 418, 20254, 29918, 459, 353, 15886, 29889, 1217, 29918, 459, 580, 13, 418, 396, 20768, 304, 1246, 12849, 16716, 3983, 10683, 565, 285, 29886, 29896, 29953, 304, 9025, 3983, 10683, 13, 418, 565, 383, 4375, 10749, 29889, 1160, 29901, 13, 4706, 6410, 29918, 19529, 261, 353, 15886, 29889, 14968, 29889, 735, 27910, 29889, 26262, 29931, 2209, 17185, 29898, 29896, 29897, 13, 4706, 20254, 29918, 459, 353, 15886, 29889, 14968, 29889, 735, 27910, 29889, 12007, 29918, 29885, 11925, 29918, 17990, 2459, 29918, 4262, 29918, 23174, 29898, 13, 9651, 13883, 29889, 4375, 29924, 8456, 415, 326, 3950, 29898, 21891, 29918, 10492, 29922, 29900, 29889, 29900, 511, 6410, 29918, 19529, 261, 29897, 13, 418, 19745, 29918, 16414, 29918, 3554, 353, 12714, 29918, 9144, 29898, 546, 29918, 4773, 29918, 6758, 29892, 3858, 29918, 4841, 29892, 1480, 1169, 29897, 13, 418, 1962, 29918, 6550, 353, 15886, 29889, 342, 326, 1061, 29889, 12787, 326, 1061, 10299, 29898, 13, 3986, 4464, 29922, 8513, 29892, 13, 3986, 6410, 29922, 7827, 29918, 6758, 29892, 13, 3986, 19745, 29918, 16414, 29918, 3554, 29922, 14513, 29918, 16414, 29918, 3554, 29897, 13, 1678, 1683, 29901, 13, 418, 20254, 29918, 459, 353, 15886, 29889, 1217, 29918, 459, 580, 13, 418, 396, 20768, 304, 1246, 12849, 16716, 3983, 10683, 565, 285, 29886, 29896, 29953, 304, 9025, 3983, 10683, 13, 418, 565, 383, 4375, 10749, 29889, 1160, 29901, 13, 4706, 20254, 29918, 459, 353, 15886, 29889, 14968, 29889, 735, 27910, 29889, 12007, 29918, 29885, 11925, 29918, 17990, 2459, 29918, 4262, 29918, 23174, 29898, 13, 9651, 13883, 29889, 4375, 29924, 8456, 415, 326, 3950, 29898, 21891, 29918, 10492, 29922, 29900, 29889, 29900, 876, 13, 418, 1962, 29918, 6550, 353, 15886, 29889, 342, 326, 1061, 29889, 12787, 326, 1061, 10299, 29898, 13, 3986, 4464, 29922, 8513, 29892, 27303, 29922, 22795, 11614, 29897, 13, 1678, 736, 1962, 29918, 6550, 13, 13, 29871, 736, 1904, 29918, 9144, 13, 13, 13, 29937, 910, 740, 338, 451, 1304, 491, 445, 934, 541, 338, 1603, 1304, 491, 278, 1530, 370, 322, 13, 29937, 2305, 1058, 8839, 373, 372, 29889, 13, 1753, 1881, 29918, 9144, 29918, 16409, 29898, 22100, 29892, 9853, 29918, 2311, 29892, 19359, 29918, 2848, 29892, 338, 29918, 26495, 29892, 5768, 29918, 1745, 475, 672, 29892, 298, 27491, 29922, 8516, 1125, 13, 29871, 9995, 9832, 1078, 385, 421, 2080, 29918, 9144, 29952, 18424, 304, 367, 4502, 304, 2661, 326, 1061, 1213, 15945, 13, 13, 29871, 599, 29918, 2080, 29918, 4841, 353, 5159, 13, 29871, 599, 29918, 2080, 29918, 13168, 353, 5159, 13, 29871, 599, 29918, 28192, 29918, 4841, 353, 5159, 13, 29871, 599, 29918, 1643, 29918, 4841, 353, 5159, 13, 13, 29871, 363, 4682, 297, 5680, 29901, 13, 1678, 599, 29918, 2080, 29918, 4841, 29889, 4397, 29898, 14394, 29889, 2080, 29918, 4841, 29897, 13, 1678, 599, 29918, 2080, 29918, 13168, 29889, 4397, 29898, 14394, 29889, 2080, 29918, 13168, 29897, 13, 1678, 599, 29918, 28192, 29918, 4841, 29889, 4397, 29898, 14394, 29889, 28192, 29918, 4841, 29897, 13, 1678, 599, 29918, 1643, 29918, 4841, 29889, 4397, 29898, 14394, 29889, 1643, 29918, 333, 29897, 13, 13, 29871, 822, 1881, 29918, 9144, 7295, 13, 1678, 9995, 1576, 3935, 1881, 740, 1213, 15945, 13, 13, 1678, 954, 29918, 19057, 353, 7431, 29898, 22100, 29897, 13, 13, 1678, 396, 910, 338, 363, 13455, 11976, 322, 947, 6058, 6287, 304, 2919, 848, 6166, 29889, 1334, 437, 13, 1678, 396, 451, 671, 13373, 24541, 29889, 3166, 29918, 27959, 580, 1363, 393, 3913, 15886, 29889, 2272, 29918, 9891, 607, 338, 13, 1678, 396, 451, 323, 7056, 15878, 29889, 450, 1492, 982, 304, 2254, 848, 338, 411, 323, 29943, 9182, 6982, 29889, 13, 1678, 270, 353, 15886, 29889, 1272, 29889, 16390, 24541, 29889, 3166, 29918, 20158, 29918, 29879, 29399, 3319, 13, 4706, 376, 2080, 29918, 4841, 1115, 13, 9651, 15886, 29889, 23362, 29898, 13, 18884, 599, 29918, 2080, 29918, 4841, 29892, 8267, 11759, 1949, 29918, 19057, 29892, 19359, 29918, 2848, 1402, 13, 18884, 26688, 29922, 13264, 29889, 524, 29941, 29906, 511, 13, 4706, 376, 2080, 29918, 13168, 1115, 13, 9651, 15886, 29889, 23362, 29898, 13, 18884, 599, 29918, 2080, 29918, 13168, 29892, 13, 18884, 8267, 11759, 1949, 29918, 19057, 29892, 19359, 29918, 2848, 1402, 13, 18884, 26688, 29922, 13264, 29889, 524, 29941, 29906, 511, 13, 4706, 376, 28192, 29918, 4841, 1115, 13, 9651, 15886, 29889, 23362, 29898, 13, 18884, 599, 29918, 28192, 29918, 4841, 29892, 13, 18884, 8267, 11759, 1949, 29918, 19057, 29892, 19359, 29918, 2848, 1402, 13, 18884, 26688, 29922, 13264, 29889, 524, 29941, 29906, 511, 13, 4706, 376, 1643, 29918, 4841, 1115, 13, 9651, 15886, 29889, 23362, 29898, 497, 29918, 1643, 29918, 4841, 29892, 8267, 11759, 1949, 29918, 19057, 1402, 26688, 29922, 13264, 29889, 524, 29941, 29906, 511, 13, 1678, 5615, 13, 13, 1678, 565, 338, 29918, 26495, 29901, 13, 418, 565, 298, 27491, 338, 451, 6213, 29901, 270, 353, 270, 29889, 845, 538, 29898, 29882, 27491, 29889, 2311, 3285, 298, 27491, 29889, 10003, 3101, 13, 418, 270, 353, 270, 29889, 14358, 580, 13, 418, 270, 353, 270, 29889, 845, 21897, 29898, 9040, 29918, 2311, 29922, 29896, 29900, 29900, 29897, 13, 13, 1678, 270, 353, 270, 29889, 16175, 29898, 16175, 29918, 2311, 29922, 16175, 29918, 2311, 29892, 5768, 29918, 1745, 475, 672, 29922, 8865, 29918, 1745, 475, 672, 29897, 13, 1678, 736, 270, 13, 13, 29871, 736, 1881, 29918, 9144, 13, 13, 13, 1753, 1667, 7373, 1125, 13, 13, 29871, 6230, 29918, 29916, 433, 29918, 15764, 580, 13, 13, 29871, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 842, 29918, 18248, 359, 537, 29898, 13264, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 11690, 29897, 13, 29871, 270, 29880, 21027, 353, 3667, 29879, 29889, 11671, 21707, 29918, 1990, 29889, 11671, 21707, 29918, 1990, 29898, 18823, 10749, 29889, 11671, 1188, 29918, 2084, 29897, 13, 13, 29871, 565, 383, 4375, 10749, 29889, 2015, 586, 397, 29901, 13, 1678, 298, 27491, 29889, 2344, 580, 13, 13, 29871, 1889, 943, 353, 426, 13, 418, 376, 15519, 1115, 1530, 29874, 18689, 29892, 13, 418, 376, 23521, 492, 1115, 341, 29876, 492, 18689, 29892, 13, 418, 376, 29885, 29878, 6739, 1115, 3237, 6739, 18689, 29892, 13, 418, 376, 29916, 29876, 492, 1115, 1060, 29876, 492, 18689, 29892, 13, 29871, 500, 13, 13, 29871, 565, 451, 383, 4375, 10749, 29889, 1867, 29918, 14968, 322, 451, 383, 4375, 10749, 29889, 1867, 29918, 14513, 322, 451, 383, 4375, 10749, 29889, 1867, 29918, 27711, 29901, 13, 1678, 12020, 7865, 2392, 29898, 13, 4706, 376, 4178, 3203, 697, 310, 421, 1867, 29918, 14968, 1673, 421, 1867, 29918, 14513, 29952, 470, 421, 1867, 29918, 27711, 29915, 1818, 367, 5852, 23157, 13, 13, 29871, 289, 814, 29918, 2917, 353, 1904, 292, 29889, 29933, 814, 3991, 29889, 3166, 29918, 3126, 29918, 1445, 29898, 18823, 10749, 29889, 2151, 29918, 2917, 29918, 1445, 29897, 13, 13, 29871, 565, 383, 4375, 10749, 29889, 3317, 29918, 11762, 29918, 2848, 1405, 289, 814, 29918, 2917, 29889, 3317, 29918, 3283, 29918, 17987, 29881, 886, 29901, 13, 1678, 12020, 7865, 2392, 29898, 13, 4706, 376, 29089, 671, 5665, 3309, 1273, 29881, 1363, 278, 350, 20161, 1904, 376, 13, 4706, 376, 11102, 871, 16370, 701, 304, 5665, 3309, 1273, 29881, 29908, 1273, 13, 4706, 313, 18823, 10749, 29889, 3317, 29918, 11762, 29918, 2848, 29892, 289, 814, 29918, 2917, 29889, 3317, 29918, 3283, 29918, 17987, 29881, 886, 876, 13, 13, 29871, 15886, 29889, 601, 29889, 29887, 1445, 29889, 29885, 12535, 12935, 29898, 18823, 10749, 29889, 4905, 29918, 3972, 29897, 13, 13, 29871, 3414, 29918, 978, 353, 383, 4375, 10749, 29889, 7662, 29918, 978, 29889, 13609, 580, 13, 13, 29871, 565, 3414, 29918, 978, 451, 297, 1889, 943, 29901, 13, 1678, 12020, 7865, 2392, 703, 5398, 451, 1476, 29901, 1273, 29879, 29908, 1273, 313, 7662, 29918, 978, 876, 13, 13, 29871, 21433, 353, 1889, 943, 29961, 7662, 29918, 978, 29962, 580, 13, 13, 29871, 3858, 29918, 1761, 353, 21433, 29889, 657, 29918, 21134, 580, 13, 13, 29871, 5993, 3950, 353, 5993, 2133, 29889, 13658, 6066, 3950, 29898, 13, 418, 7931, 370, 29918, 1445, 29922, 18823, 10749, 29889, 29894, 542, 370, 29918, 1445, 29892, 437, 29918, 13609, 29918, 4878, 29922, 18823, 10749, 29889, 1867, 29918, 13609, 29918, 4878, 29897, 13, 13, 29871, 5835, 29918, 5014, 353, 5852, 13, 29871, 6694, 29918, 1251, 12117, 353, 5159, 13, 29871, 5534, 29918, 16175, 29918, 2311, 353, 383, 4375, 10749, 29889, 14968, 29918, 16175, 29918, 2311, 334, 383, 4375, 10749, 29889, 1949, 29918, 5753, 398, 2785, 29918, 24530, 13, 29871, 298, 27491, 29918, 10003, 353, 29871, 29900, 13, 13, 29871, 2295, 353, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 3991, 1184, 517, 580, 13, 29871, 565, 383, 4375, 10749, 29889, 2015, 586, 397, 29901, 13, 13, 418, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 15329, 29899, 29954, 7056, 6694, 411, 323, 29943, 6912, 586, 397, 1159, 13, 418, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29882, 27491, 29889, 2311, 580, 353, 1273, 29881, 298, 27491, 29889, 10003, 580, 353, 1273, 29881, 613, 298, 27491, 29889, 2311, 3285, 298, 27491, 29889, 10003, 3101, 13, 418, 5534, 29918, 16175, 29918, 2311, 353, 383, 4375, 10749, 29889, 14968, 29918, 16175, 29918, 2311, 334, 383, 4375, 10749, 29889, 1949, 29918, 5753, 398, 2785, 29918, 24530, 334, 298, 27491, 29889, 2311, 580, 13, 418, 5835, 29918, 5014, 353, 313, 29882, 27491, 29889, 10003, 580, 1275, 29871, 29900, 29897, 13, 418, 298, 27491, 29918, 10003, 353, 298, 27491, 29889, 10003, 580, 13, 418, 2295, 29889, 29887, 3746, 29918, 6768, 29889, 12872, 29918, 10141, 29918, 1761, 353, 851, 29898, 29882, 27491, 29889, 2997, 29918, 10003, 3101, 13, 418, 731, 29918, 3470, 13593, 29898, 29882, 27491, 29889, 2997, 29918, 10003, 3101, 13, 418, 565, 298, 27491, 29889, 2311, 580, 1405, 29871, 29896, 29901, 13, 3986, 6694, 29918, 1251, 12117, 29889, 4397, 29898, 29882, 27491, 29889, 29933, 9972, 4384, 12756, 10444, 1849, 29950, 2550, 29898, 29900, 876, 13, 29871, 565, 383, 4375, 10749, 29889, 1509, 29918, 29916, 433, 29901, 13, 1678, 2295, 29889, 4262, 29918, 6768, 29889, 20640, 3950, 29918, 6768, 29889, 10945, 29918, 29926, 277, 29918, 5563, 353, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 20624, 326, 3950, 5856, 29889, 1164, 29918, 29896, 13, 1678, 565, 383, 4375, 10749, 29889, 1160, 29901, 13, 418, 15886, 29889, 12007, 29918, 10314, 29918, 20897, 580, 13, 13, 29871, 1065, 29918, 2917, 353, 15886, 29889, 342, 326, 1061, 29889, 6558, 3991, 29898, 13, 418, 1904, 29918, 3972, 29922, 18823, 10749, 29889, 4905, 29918, 3972, 565, 5835, 29918, 5014, 1683, 6213, 29892, 13, 418, 4867, 29918, 2917, 29922, 2917, 29892, 13, 418, 4078, 29918, 3198, 9748, 29918, 24530, 29922, 18823, 10749, 29889, 7620, 29918, 3198, 9748, 29918, 24530, 565, 5835, 29918, 5014, 1683, 6213, 29892, 13, 418, 4078, 29918, 7727, 29918, 24530, 29922, 18823, 10749, 29889, 7620, 29918, 3198, 9748, 29918, 24530, 565, 5835, 29918, 5014, 1683, 6213, 29892, 13, 418, 1480, 29918, 10568, 29918, 2798, 29918, 24530, 29922, 18823, 10749, 29889, 4990, 29918, 6758, 29918, 24530, 29892, 13, 418, 3013, 29918, 3198, 3149, 29918, 3317, 29922, 29896, 29897, 13, 13, 29871, 565, 5835, 29918, 5014, 29901, 13, 418, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 2328, 29930, 12782, 29884, 279, 362, 334, 2328, 1159, 13, 418, 363, 1820, 297, 383, 4375, 10749, 17255, 15764, 29889, 8149, 7295, 13, 3986, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 877, 29871, 426, 6177, 6571, 4286, 4830, 29898, 1989, 29892, 679, 5552, 29898, 18823, 10749, 29892, 1820, 4961, 13, 418, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 7775, 4189, 1068, 1159, 13, 13, 29871, 7945, 29918, 19057, 353, 6213, 13, 29871, 954, 29918, 14968, 29918, 24530, 353, 6213, 13, 29871, 954, 29918, 29893, 2817, 786, 29918, 24530, 353, 6213, 13, 29871, 6694, 29918, 1251, 12117, 29889, 4397, 29898, 3403, 5323, 262, 6558, 29950, 2550, 29898, 10945, 29918, 16175, 29918, 2311, 29892, 298, 27491, 29918, 10003, 29892, 383, 4375, 10749, 29889, 7620, 29918, 3198, 9748, 29918, 24530, 29892, 954, 29918, 24530, 29918, 17281, 29918, 29916, 433, 29922, 29906, 29945, 876, 13, 13, 29871, 565, 383, 4375, 10749, 29889, 1867, 29918, 14968, 29901, 13, 1678, 7945, 29918, 19057, 353, 21433, 29889, 657, 29918, 14968, 29918, 19057, 29898, 18823, 10749, 29889, 1272, 29918, 3972, 29897, 13, 1678, 954, 29918, 14968, 29918, 24530, 353, 938, 29898, 13, 4706, 7431, 29898, 14968, 29918, 19057, 29897, 847, 5534, 29918, 16175, 29918, 2311, 334, 383, 4375, 10749, 29889, 1949, 29918, 14968, 29918, 1022, 2878, 29879, 29897, 13, 1678, 954, 29918, 29893, 2817, 786, 29918, 24530, 353, 938, 29898, 1949, 29918, 14968, 29918, 24530, 334, 383, 4375, 10749, 29889, 29893, 2817, 786, 29918, 771, 637, 291, 29897, 13, 13, 1678, 1369, 29918, 2248, 353, 29871, 29900, 13, 1678, 1095, 29918, 2248, 353, 7431, 29898, 14968, 29918, 19057, 29897, 13, 1678, 13128, 29918, 1777, 264, 1280, 353, 518, 359, 29889, 2084, 29889, 7122, 29898, 18823, 10749, 29889, 4905, 29918, 3972, 29892, 376, 14968, 29889, 13264, 29918, 11651, 13531, 13, 13, 1678, 565, 383, 4375, 10749, 29889, 2015, 586, 397, 29901, 13, 418, 13128, 29918, 1777, 264, 1280, 353, 518, 359, 29889, 2084, 29889, 7122, 29898, 18823, 10749, 29889, 4905, 29918, 3972, 29892, 376, 14968, 29889, 13264, 29918, 11651, 8875, 1642, 4830, 29898, 29875, 876, 363, 474, 297, 3464, 29898, 29882, 27491, 29889, 2311, 3101, 29962, 13, 418, 954, 29918, 19057, 29918, 546, 29918, 10003, 353, 7431, 29898, 14968, 29918, 19057, 29897, 849, 298, 27491, 29889, 2311, 580, 13, 418, 21162, 353, 7431, 29898, 14968, 29918, 19057, 29897, 1273, 298, 27491, 29889, 2311, 580, 13, 418, 565, 298, 27491, 29889, 10003, 580, 529, 21162, 29901, 13, 4706, 1369, 29918, 2248, 353, 298, 27491, 29889, 10003, 580, 334, 313, 1949, 29918, 19057, 29918, 546, 29918, 10003, 29974, 29896, 29897, 13, 4706, 1095, 29918, 2248, 353, 1369, 29918, 2248, 718, 954, 29918, 19057, 29918, 546, 29918, 10003, 718, 29871, 29896, 13, 418, 1683, 29901, 13, 4706, 1369, 29918, 2248, 353, 298, 27491, 29889, 10003, 580, 334, 954, 29918, 19057, 29918, 546, 29918, 10003, 718, 21162, 13, 4706, 1095, 29918, 2248, 353, 1369, 29918, 2248, 718, 313, 1949, 29918, 19057, 29918, 546, 29918, 10003, 29897, 13, 13, 29871, 1904, 29918, 9144, 353, 1904, 29918, 9144, 29918, 16409, 29898, 13, 418, 3414, 29918, 978, 29922, 7662, 29918, 978, 29892, 13, 418, 289, 814, 29918, 2917, 29922, 2151, 29918, 2917, 29892, 13, 418, 954, 29918, 21134, 29922, 2435, 29898, 1643, 29918, 1761, 511, 13, 418, 2069, 29918, 3198, 3149, 29922, 18823, 10749, 29889, 2344, 29918, 3198, 3149, 29892, 13, 418, 6509, 29918, 10492, 29922, 18823, 10749, 29889, 21891, 29918, 10492, 565, 451, 383, 4375, 10749, 29889, 2015, 586, 397, 1683, 383, 4375, 10749, 29889, 21891, 29918, 10492, 334, 298, 27491, 29889, 2311, 3285, 13, 418, 954, 29918, 14968, 29918, 24530, 29922, 1949, 29918, 14968, 29918, 24530, 29892, 13, 418, 954, 29918, 29893, 2817, 786, 29918, 24530, 29922, 1949, 29918, 29893, 2817, 786, 29918, 24530, 29892, 13, 418, 671, 29918, 650, 29918, 8711, 29918, 17987, 29881, 886, 29922, 8824, 29892, 13, 418, 298, 27491, 29922, 8516, 565, 451, 383, 4375, 10749, 29889, 2015, 586, 397, 1683, 298, 27491, 29897, 13, 13, 29871, 4844, 1061, 353, 15886, 29889, 342, 326, 1061, 29889, 12787, 326, 1061, 29898, 13, 418, 1904, 29918, 9144, 29922, 4299, 29918, 9144, 29892, 13, 418, 2295, 29922, 3389, 29918, 2917, 29897, 13, 13, 29871, 565, 383, 4375, 10749, 29889, 1867, 29918, 14968, 29901, 13, 13, 1678, 934, 29918, 6707, 29918, 13441, 29918, 19057, 29918, 517, 29918, 22100, 29898, 13, 4706, 7945, 29918, 19057, 29961, 2962, 29918, 2248, 29901, 355, 29918, 2248, 1402, 3858, 29918, 1761, 29892, 383, 4375, 10749, 29889, 3317, 29918, 11762, 29918, 2848, 29892, 5993, 3950, 29892, 13128, 29918, 1777, 264, 1280, 29961, 29882, 27491, 29918, 10003, 2314, 13, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 2328, 29930, 19509, 6694, 334, 2328, 1159, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29871, 11848, 6455, 353, 1273, 29881, 613, 7431, 29898, 14968, 29918, 19057, 876, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29871, 350, 905, 2159, 353, 1273, 29881, 613, 383, 4375, 10749, 29889, 14968, 29918, 16175, 29918, 2311, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29871, 11848, 6576, 353, 1273, 29881, 613, 954, 29918, 14968, 29918, 24530, 29897, 13, 1678, 7945, 29918, 2080, 29918, 9144, 353, 934, 29918, 6707, 29918, 2080, 29918, 9144, 29918, 16409, 29898, 13, 4706, 1881, 29918, 1445, 29922, 7050, 29918, 1777, 264, 1280, 29892, 13, 4706, 9853, 29918, 2311, 29922, 18823, 10749, 29889, 14968, 29918, 16175, 29918, 2311, 29892, 13, 4706, 19359, 29918, 2848, 29922, 18823, 10749, 29889, 3317, 29918, 11762, 29918, 2848, 29892, 13, 4706, 338, 29918, 26495, 29922, 5574, 29892, 13, 4706, 5768, 29918, 1745, 475, 672, 29922, 5574, 29892, 13, 4706, 298, 27491, 29922, 8516, 565, 451, 383, 4375, 10749, 29889, 2015, 586, 397, 1683, 298, 27491, 29897, 13, 13, 1678, 7945, 29918, 2962, 29918, 2230, 353, 931, 29889, 2230, 580, 13, 1678, 4844, 1061, 29889, 14968, 29898, 2080, 29918, 9144, 29922, 14968, 29918, 2080, 29918, 9144, 29892, 4236, 29918, 24530, 29922, 1949, 29918, 14968, 29918, 24530, 29892, 12422, 29879, 29922, 26495, 29918, 1251, 12117, 29897, 13, 1678, 7945, 29918, 2230, 29918, 295, 28170, 353, 931, 29889, 2230, 580, 448, 7945, 29918, 2962, 29918, 2230, 13, 1678, 7945, 29918, 2230, 29918, 827, 29918, 957, 2813, 353, 6694, 29918, 1251, 12117, 14352, 29896, 1822, 7827, 29918, 2230, 13, 1678, 1029, 29887, 29918, 18616, 2063, 29918, 546, 29918, 7496, 353, 954, 29918, 14968, 29918, 24530, 334, 5534, 29918, 16175, 29918, 2311, 334, 29871, 29896, 29889, 29900, 847, 7945, 29918, 2230, 29918, 295, 28170, 13, 1678, 17971, 29918, 18616, 2063, 29918, 546, 29918, 7496, 353, 313, 26495, 29918, 1251, 12117, 14352, 29896, 1822, 2798, 448, 6694, 29918, 1251, 12117, 14352, 29896, 1822, 2574, 2986, 29897, 334, 5534, 29918, 16175, 29918, 2311, 334, 29871, 29896, 29889, 29900, 847, 7945, 29918, 2230, 29918, 827, 29918, 957, 2813, 13, 13, 1678, 565, 5835, 29918, 5014, 29901, 13, 4706, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 2683, 9072, 29899, 1159, 13, 4706, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 11536, 26101, 5974, 353, 1273, 29900, 29889, 29906, 29888, 363, 28048, 2063, 353, 1273, 29881, 613, 7945, 29918, 2230, 29918, 295, 28170, 29892, 13, 462, 4706, 954, 29918, 14968, 29918, 24530, 334, 5534, 29918, 16175, 29918, 2311, 29897, 13, 4706, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 11536, 26101, 5974, 399, 29914, 29949, 6811, 2813, 353, 1273, 29900, 29889, 29906, 29888, 363, 28048, 2063, 353, 1273, 29881, 613, 7945, 29918, 2230, 29918, 827, 29918, 957, 2813, 29892, 13, 462, 4706, 313, 26495, 29918, 1251, 12117, 14352, 29896, 1822, 2798, 448, 6694, 29918, 1251, 12117, 14352, 29896, 1822, 2574, 2986, 29897, 334, 5534, 29918, 16175, 29918, 2311, 29897, 13, 4706, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29911, 1092, 820, 649, 319, 19698, 313, 18616, 2063, 29914, 3471, 29897, 411, 18702, 353, 1273, 29900, 29889, 29906, 29888, 613, 1029, 29887, 29918, 18616, 2063, 29918, 546, 29918, 7496, 29897, 13, 4706, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29911, 1092, 820, 649, 319, 19698, 313, 18616, 2063, 29914, 3471, 29897, 353, 1273, 29900, 29889, 29906, 29888, 613, 17971, 29918, 18616, 2063, 29918, 546, 29918, 7496, 29897, 13, 4706, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 2683, 9072, 29899, 1159, 13, 13, 29871, 565, 383, 4375, 10749, 29889, 1867, 29918, 14513, 322, 5835, 29918, 5014, 29901, 13, 1678, 19745, 29918, 19057, 353, 21433, 29889, 657, 29918, 3359, 29918, 19057, 29898, 18823, 10749, 29889, 1272, 29918, 3972, 29897, 13, 1678, 19745, 29918, 1445, 353, 2897, 29889, 2084, 29889, 7122, 29898, 18823, 10749, 29889, 4905, 29918, 3972, 29892, 376, 14513, 29889, 13264, 29918, 11651, 1159, 13, 1678, 934, 29918, 6707, 29918, 13441, 29918, 19057, 29918, 517, 29918, 22100, 29898, 13, 4706, 19745, 29918, 19057, 29892, 3858, 29918, 1761, 29892, 383, 4375, 10749, 29889, 3317, 29918, 11762, 29918, 2848, 29892, 5993, 3950, 29892, 19745, 29918, 1445, 29897, 13, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 2328, 29930, 19509, 17983, 334, 2328, 1159, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29871, 11848, 6455, 353, 1273, 29881, 613, 7431, 29898, 14513, 29918, 19057, 876, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29871, 350, 905, 2159, 353, 1273, 29881, 613, 383, 4375, 10749, 29889, 14513, 29918, 16175, 29918, 2311, 29897, 13, 13, 1678, 19745, 29918, 8865, 29918, 1745, 475, 672, 353, 7700, 13, 1678, 19745, 29918, 2080, 29918, 9144, 353, 934, 29918, 6707, 29918, 2080, 29918, 9144, 29918, 16409, 29898, 13, 4706, 1881, 29918, 1445, 29922, 14513, 29918, 1445, 29892, 13, 4706, 9853, 29918, 2311, 29922, 18823, 10749, 29889, 14513, 29918, 16175, 29918, 2311, 29892, 13, 4706, 19359, 29918, 2848, 29922, 18823, 10749, 29889, 3317, 29918, 11762, 29918, 2848, 29892, 13, 4706, 338, 29918, 26495, 29922, 8824, 29892, 13, 4706, 5768, 29918, 1745, 475, 672, 29922, 14513, 29918, 8865, 29918, 1745, 475, 672, 29897, 13, 13, 1678, 19745, 29918, 1251, 12117, 353, 518, 3403, 29923, 791, 6558, 29950, 2550, 29898, 18823, 10749, 29889, 14513, 29918, 16175, 29918, 2311, 4638, 13, 1678, 19745, 29918, 2962, 29918, 2230, 353, 931, 29889, 2230, 580, 13, 1678, 1121, 353, 4844, 1061, 29889, 24219, 403, 29898, 2080, 29918, 9144, 29922, 14513, 29918, 2080, 29918, 9144, 29892, 12422, 29879, 29922, 14513, 29918, 1251, 12117, 29897, 13, 13, 1678, 19745, 29918, 2230, 29918, 295, 28170, 353, 931, 29889, 2230, 580, 448, 19745, 29918, 2962, 29918, 2230, 13, 13, 1678, 931, 29918, 1761, 353, 19745, 29918, 1251, 12117, 14352, 29896, 1822, 2230, 29918, 1761, 13, 1678, 931, 29918, 1761, 29889, 6605, 580, 13, 1678, 396, 5240, 21081, 714, 27801, 313, 2344, 29914, 29893, 2817, 786, 29897, 297, 1549, 649, 16287, 29889, 13, 1678, 19745, 29918, 2230, 29918, 827, 29918, 957, 2813, 353, 2533, 29898, 2230, 29918, 1761, 7503, 524, 29898, 2435, 29898, 2230, 29918, 1761, 29897, 334, 29871, 29900, 29889, 29947, 29897, 2314, 13, 1678, 954, 29918, 18616, 2063, 353, 313, 524, 29898, 2435, 29898, 2230, 29918, 1761, 29897, 334, 29871, 29900, 29889, 29947, 876, 334, 383, 4375, 10749, 29889, 14513, 29918, 16175, 29918, 2311, 13, 13, 1678, 1029, 29887, 353, 7442, 29889, 12676, 29898, 2230, 29918, 1761, 29897, 13, 1678, 274, 29888, 29918, 29945, 29900, 353, 4236, 29898, 2230, 29918, 1761, 7503, 524, 29898, 2435, 29898, 2230, 29918, 1761, 29897, 334, 29871, 29900, 29889, 29945, 29900, 29897, 2314, 13, 1678, 274, 29888, 29918, 29929, 29900, 353, 4236, 29898, 2230, 29918, 1761, 7503, 524, 29898, 2435, 29898, 2230, 29918, 1761, 29897, 334, 29871, 29900, 29889, 29929, 29900, 29897, 2314, 13, 1678, 274, 29888, 29918, 29929, 29945, 353, 4236, 29898, 2230, 29918, 1761, 7503, 524, 29898, 2435, 29898, 2230, 29918, 1761, 29897, 334, 29871, 29900, 29889, 29929, 29945, 29897, 2314, 13, 1678, 274, 29888, 29918, 29929, 29929, 353, 4236, 29898, 2230, 29918, 1761, 7503, 524, 29898, 2435, 29898, 2230, 29918, 1761, 29897, 334, 29871, 29900, 29889, 29929, 29929, 29897, 2314, 13, 1678, 274, 29888, 29918, 29896, 29900, 29900, 353, 4236, 29898, 2230, 29918, 1761, 7503, 524, 29898, 2435, 29898, 2230, 29918, 1761, 29897, 334, 29871, 29896, 29897, 2314, 13, 1678, 17971, 29918, 18616, 2063, 29918, 546, 29918, 7496, 353, 954, 29918, 18616, 2063, 334, 29871, 29896, 29889, 29900, 847, 19745, 29918, 2230, 29918, 827, 29918, 957, 2813, 13, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 2683, 9072, 29899, 1159, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 11536, 512, 1659, 5974, 353, 1273, 29900, 29889, 29906, 29888, 363, 28048, 2063, 353, 1273, 29881, 613, 19745, 29918, 2230, 29918, 295, 28170, 29892, 13, 462, 1678, 19745, 29918, 1251, 12117, 14352, 29896, 1822, 2798, 334, 383, 4375, 10749, 29889, 14513, 29918, 16175, 29918, 2311, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 11536, 512, 1659, 5974, 399, 29914, 29949, 6811, 2813, 353, 1273, 29900, 29889, 29906, 29888, 363, 28048, 2063, 353, 1273, 29881, 613, 19745, 29918, 2230, 29918, 827, 29918, 957, 2813, 29892, 13, 462, 1678, 954, 29918, 18616, 2063, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 26289, 512, 1659, 27098, 373, 382, 8932, 731, 1159, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 23145, 2159, 353, 1273, 29881, 613, 383, 4375, 10749, 29889, 14513, 29918, 16175, 29918, 2311, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 20529, 365, 1477, 353, 1273, 29881, 613, 383, 4375, 10749, 29889, 3317, 29918, 11762, 29918, 2848, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29925, 3757, 2459, 353, 1273, 29879, 613, 376, 18091, 29896, 29953, 29908, 565, 383, 4375, 10749, 29889, 1160, 1683, 376, 18091, 29941, 29906, 1159, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29931, 2579, 1270, 10811, 5084, 21597, 29871, 29945, 29900, 313, 1516, 29897, 353, 1273, 29900, 29889, 29906, 29888, 613, 274, 29888, 29918, 29945, 29900, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29931, 2579, 1270, 10811, 5084, 21597, 29871, 29929, 29900, 313, 1516, 29897, 353, 1273, 29900, 29889, 29906, 29888, 613, 274, 29888, 29918, 29929, 29900, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29931, 2579, 1270, 10811, 5084, 21597, 29871, 29929, 29945, 313, 1516, 29897, 353, 1273, 29900, 29889, 29906, 29888, 613, 274, 29888, 29918, 29929, 29945, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29931, 2579, 1270, 10811, 5084, 21597, 29871, 29929, 29929, 313, 1516, 29897, 353, 1273, 29900, 29889, 29906, 29888, 613, 274, 29888, 29918, 29929, 29929, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29931, 2579, 1270, 10811, 5084, 21597, 29871, 29896, 29900, 29900, 313, 1516, 29897, 353, 1273, 29900, 29889, 29906, 29888, 613, 274, 29888, 29918, 29896, 29900, 29900, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29931, 2579, 1270, 319, 19698, 313, 1516, 29897, 353, 1273, 29900, 29889, 29906, 29888, 613, 1029, 29887, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29911, 1092, 820, 649, 319, 19698, 313, 18616, 2063, 29914, 3471, 29897, 353, 1273, 29900, 29889, 29906, 29888, 613, 17971, 29918, 18616, 2063, 29918, 546, 29918, 7496, 29897, 13, 1678, 270, 29880, 21027, 29889, 21707, 29889, 1188, 29898, 10568, 29922, 3285, 848, 3790, 29908, 20678, 649, 29918, 791, 1115, 17971, 29918, 18616, 2063, 29918, 546, 29918, 7496, 1118, 9750, 359, 537, 29922, 6565, 27737, 537, 29889, 23397, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 2683, 9072, 29899, 1159, 13, 13, 13, 1678, 1962, 29918, 14513, 29918, 1445, 353, 2897, 29889, 2084, 29889, 7122, 29898, 18823, 10749, 29889, 4905, 29918, 3972, 29892, 376, 14513, 29918, 9902, 29889, 3945, 1159, 13, 1678, 411, 15886, 29889, 601, 29889, 29887, 1445, 29889, 29954, 2283, 29898, 4905, 29918, 14513, 29918, 1445, 29892, 376, 29893, 1159, 408, 9227, 29901, 13, 418, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 2328, 29930, 382, 791, 2582, 334, 2328, 1159, 13, 418, 363, 1820, 297, 12705, 29898, 2914, 29889, 8149, 580, 1125, 13, 4706, 270, 29880, 21027, 29889, 21707, 29889, 1188, 29898, 10568, 29922, 3285, 848, 3790, 1989, 29901, 5785, 29898, 2914, 29961, 1989, 2314, 1118, 9750, 359, 537, 29922, 6565, 27737, 537, 29889, 23397, 29897, 13, 4706, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29871, 1273, 29879, 353, 1273, 29879, 613, 1820, 29892, 851, 29898, 2914, 29961, 1989, 12622, 13, 4706, 9227, 29889, 3539, 11702, 29879, 353, 1273, 29879, 29905, 29876, 29908, 1273, 313, 1989, 29892, 851, 29898, 2914, 29961, 1989, 29962, 4961, 13, 13, 29871, 565, 383, 4375, 10749, 29889, 1867, 29918, 27711, 322, 5835, 29918, 5014, 29901, 13, 1678, 8500, 29918, 19057, 353, 21433, 29889, 657, 29918, 1688, 29918, 19057, 29898, 18823, 10749, 29889, 1272, 29918, 3972, 29897, 13, 1678, 8500, 29918, 1445, 353, 2897, 29889, 2084, 29889, 7122, 29898, 18823, 10749, 29889, 4905, 29918, 3972, 29892, 376, 27711, 29889, 13264, 29918, 11651, 1159, 13, 1678, 934, 29918, 6707, 29918, 13441, 29918, 19057, 29918, 517, 29918, 22100, 29898, 27711, 29918, 19057, 29892, 3858, 29918, 1761, 29892, 13, 462, 462, 9651, 383, 4375, 10749, 29889, 3317, 29918, 11762, 29918, 2848, 29892, 5993, 3950, 29892, 13, 462, 462, 9651, 8500, 29918, 1445, 29897, 13, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 2328, 29930, 19509, 18988, 2328, 29930, 1159, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29871, 11848, 6455, 353, 1273, 29881, 613, 7431, 29898, 27711, 29918, 19057, 876, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29871, 350, 905, 2159, 353, 1273, 29881, 613, 383, 4375, 10749, 29889, 27711, 29918, 16175, 29918, 2311, 29897, 13, 13, 1678, 8500, 29918, 8865, 29918, 1745, 475, 672, 353, 7700, 13, 1678, 8500, 29918, 2080, 29918, 9144, 353, 934, 29918, 6707, 29918, 2080, 29918, 9144, 29918, 16409, 29898, 13, 4706, 1881, 29918, 1445, 29922, 27711, 29918, 1445, 29892, 13, 4706, 9853, 29918, 2311, 29922, 18823, 10749, 29889, 27711, 29918, 16175, 29918, 2311, 29892, 13, 4706, 19359, 29918, 2848, 29922, 18823, 10749, 29889, 3317, 29918, 11762, 29918, 2848, 29892, 13, 4706, 338, 29918, 26495, 29922, 8824, 29892, 13, 4706, 5768, 29918, 1745, 475, 672, 29922, 27711, 29918, 8865, 29918, 1745, 475, 672, 29897, 13, 13, 1678, 8500, 29918, 1251, 12117, 353, 518, 3403, 29923, 791, 6558, 29950, 2550, 29898, 18823, 10749, 29889, 27711, 29918, 16175, 29918, 2311, 4638, 13, 1678, 8500, 29918, 2962, 29918, 2230, 353, 931, 29889, 2230, 580, 13, 13, 1678, 1962, 29918, 27711, 29918, 1445, 353, 2897, 29889, 2084, 29889, 7122, 29898, 18823, 10749, 29889, 4905, 29918, 3972, 29892, 376, 1688, 29918, 9902, 29889, 1372, 29894, 1159, 13, 1678, 411, 15886, 29889, 601, 29889, 29887, 1445, 29889, 29954, 2283, 29898, 4905, 29918, 27711, 29918, 1445, 29892, 376, 29893, 1159, 408, 9227, 29901, 13, 4706, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 2328, 29930, 21099, 919, 2582, 334, 2328, 1159, 13, 4706, 363, 18988, 297, 4844, 1061, 29889, 27711, 29898, 2080, 29918, 9144, 29922, 27711, 29918, 2080, 29918, 9144, 29892, 12422, 29879, 29922, 27711, 29918, 1251, 12117, 29892, 13, 462, 462, 9651, 7709, 29918, 14369, 29918, 19057, 29922, 8824, 1125, 13, 9651, 1962, 29918, 1220, 353, 6634, 29873, 1642, 7122, 29898, 13, 18884, 851, 29898, 1990, 29918, 22795, 3097, 29897, 363, 770, 29918, 22795, 3097, 297, 18988, 29897, 718, 6634, 29876, 29908, 13, 9651, 9227, 29889, 3539, 29898, 4905, 29918, 1220, 29897, 13, 13, 13, 1678, 8500, 29918, 2230, 29918, 295, 28170, 353, 931, 29889, 2230, 580, 448, 8500, 29918, 2962, 29918, 2230, 13, 13, 1678, 931, 29918, 1761, 353, 8500, 29918, 1251, 12117, 14352, 29896, 1822, 2230, 29918, 1761, 13, 1678, 931, 29918, 1761, 29889, 6605, 580, 13, 1678, 396, 5240, 21081, 714, 27801, 313, 2344, 29914, 29893, 2817, 786, 29897, 297, 1549, 649, 16287, 29889, 13, 1678, 8500, 29918, 2230, 29918, 827, 29918, 957, 2813, 353, 2533, 29898, 2230, 29918, 1761, 7503, 524, 29898, 2435, 29898, 2230, 29918, 1761, 29897, 334, 29871, 29900, 29889, 29947, 29897, 2314, 13, 1678, 954, 29918, 18616, 2063, 353, 313, 524, 29898, 2435, 29898, 2230, 29918, 1761, 29897, 334, 29871, 29900, 29889, 29947, 876, 334, 383, 4375, 10749, 29889, 27711, 29918, 16175, 29918, 2311, 13, 13, 1678, 1029, 29887, 353, 7442, 29889, 12676, 29898, 2230, 29918, 1761, 29897, 13, 1678, 274, 29888, 29918, 29945, 29900, 353, 4236, 29898, 2230, 29918, 1761, 7503, 524, 29898, 2435, 29898, 2230, 29918, 1761, 29897, 334, 29871, 29900, 29889, 29945, 29900, 29897, 2314, 13, 1678, 274, 29888, 29918, 29929, 29900, 353, 4236, 29898, 2230, 29918, 1761, 7503, 524, 29898, 2435, 29898, 2230, 29918, 1761, 29897, 334, 29871, 29900, 29889, 29929, 29900, 29897, 2314, 13, 1678, 274, 29888, 29918, 29929, 29945, 353, 4236, 29898, 2230, 29918, 1761, 7503, 524, 29898, 2435, 29898, 2230, 29918, 1761, 29897, 334, 29871, 29900, 29889, 29929, 29945, 29897, 2314, 13, 1678, 274, 29888, 29918, 29929, 29929, 353, 4236, 29898, 2230, 29918, 1761, 7503, 524, 29898, 2435, 29898, 2230, 29918, 1761, 29897, 334, 29871, 29900, 29889, 29929, 29929, 29897, 2314, 13, 1678, 274, 29888, 29918, 29896, 29900, 29900, 353, 4236, 29898, 2230, 29918, 1761, 7503, 524, 29898, 2435, 29898, 2230, 29918, 1761, 29897, 334, 29871, 29896, 29897, 2314, 13, 1678, 17971, 29918, 18616, 2063, 29918, 546, 29918, 7496, 353, 954, 29918, 18616, 2063, 334, 29871, 29896, 29889, 29900, 847, 8500, 29918, 2230, 29918, 827, 29918, 957, 2813, 13, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 2683, 9072, 29899, 1159, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 11536, 512, 1659, 5974, 353, 1273, 29900, 29889, 29906, 29888, 363, 28048, 2063, 353, 1273, 29881, 613, 8500, 29918, 2230, 29918, 295, 28170, 29892, 13, 462, 1678, 8500, 29918, 1251, 12117, 14352, 29896, 1822, 2798, 334, 383, 4375, 10749, 29889, 27711, 29918, 16175, 29918, 2311, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 11536, 512, 1659, 5974, 399, 29914, 29949, 6811, 2813, 353, 1273, 29900, 29889, 29906, 29888, 363, 28048, 2063, 353, 1273, 29881, 613, 8500, 29918, 2230, 29918, 827, 29918, 957, 2813, 29892, 13, 462, 795, 954, 29918, 18616, 2063, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 26289, 512, 1659, 27098, 373, 17067, 1254, 11368, 1159, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 23145, 2159, 353, 1273, 29881, 613, 383, 4375, 10749, 29889, 27711, 29918, 16175, 29918, 2311, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 20529, 365, 1477, 353, 1273, 29881, 613, 383, 4375, 10749, 29889, 3317, 29918, 11762, 29918, 2848, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29925, 3757, 2459, 353, 1273, 29879, 613, 376, 18091, 29896, 29953, 29908, 565, 383, 4375, 10749, 29889, 1160, 1683, 376, 18091, 29941, 29906, 1159, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29931, 2579, 1270, 10811, 5084, 21597, 29871, 29945, 29900, 313, 1516, 29897, 353, 1273, 29900, 29889, 29906, 29888, 613, 274, 29888, 29918, 29945, 29900, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29931, 2579, 1270, 10811, 5084, 21597, 29871, 29929, 29900, 313, 1516, 29897, 353, 1273, 29900, 29889, 29906, 29888, 613, 274, 29888, 29918, 29929, 29900, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29931, 2579, 1270, 10811, 5084, 21597, 29871, 29929, 29945, 313, 1516, 29897, 353, 1273, 29900, 29889, 29906, 29888, 613, 274, 29888, 29918, 29929, 29945, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29931, 2579, 1270, 10811, 5084, 21597, 29871, 29929, 29929, 313, 1516, 29897, 353, 1273, 29900, 29889, 29906, 29888, 613, 274, 29888, 29918, 29929, 29929, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29931, 2579, 1270, 10811, 5084, 21597, 29871, 29896, 29900, 29900, 313, 1516, 29897, 353, 1273, 29900, 29889, 29906, 29888, 613, 274, 29888, 29918, 29896, 29900, 29900, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29931, 2579, 1270, 319, 19698, 313, 1516, 29897, 353, 1273, 29900, 29889, 29906, 29888, 613, 1029, 29887, 334, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 29911, 1092, 820, 649, 319, 19698, 313, 18616, 2063, 29914, 3471, 29897, 353, 1273, 29900, 29889, 29906, 29888, 613, 17971, 29918, 18616, 2063, 29918, 546, 29918, 7496, 29897, 13, 1678, 270, 29880, 21027, 29889, 21707, 29889, 1188, 29898, 10568, 29922, 3285, 848, 3790, 29908, 20678, 649, 29918, 791, 1115, 17971, 29918, 18616, 2063, 29918, 546, 29918, 7496, 1118, 9750, 359, 537, 29922, 6565, 27737, 537, 29889, 23397, 29897, 13, 1678, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 21027, 29889, 3888, 703, 2683, 9072, 29899, 1159, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 29871, 13449, 29889, 3502, 29918, 15581, 29918, 294, 29918, 12403, 703, 1272, 29918, 3972, 1159, 13, 29871, 13449, 29889, 3502, 29918, 15581, 29918, 294, 29918, 12403, 703, 7662, 29918, 978, 1159, 13, 29871, 13449, 29889, 3502, 29918, 15581, 29918, 294, 29918, 12403, 703, 29894, 542, 370, 29918, 1445, 1159, 13, 29871, 13449, 29889, 3502, 29918, 15581, 29918, 294, 29918, 12403, 703, 2151, 29918, 2917, 29918, 1445, 1159, 13, 29871, 13449, 29889, 3502, 29918, 15581, 29918, 294, 29918, 12403, 703, 4905, 29918, 3972, 1159, 13, 29871, 15886, 29889, 12667, 29889, 29894, 29896, 29889, 932, 29889, 3389, 580, 13, 2 ]
main.py
Spferical/matrix-megahal
7
193354
#!/usr/bin/env python3 import time from matrix_client.client import MatrixClient from matrix_client.api import MatrixRequestError from requests.exceptions import ConnectionError, Timeout import argparse import random from configparser import ConfigParser import re import traceback import urllib.parse import logging import os import sys import signal import queue import codecs from database import MarkovDatabaseBrain COMMANDS = [ '!rate' ] def sigterm_handler(_signo, _stack_frame): """Raises SystemExit(0), causing everything to cleanly shut down.""" sys.exit(0) class ConfigParser(ConfigParser): # allow case-sensitive option names # needed for saving per-room response rates optionxform = str class Backend(object): """Interface for chat backends.""" def __init__(self, brain_file): pass def train_file(self, filename): """Trains the chat backend on the given file.""" with codecs.open(filename, encoding='utf8') as train_file: for line in train_file: self.learn(line) def learn(self, line): """Updates the chat backend based on the given line of input.""" pass def save(self): """Saves the backend to disk, if needed.""" pass def reply(self, message): """Generates a reply to the given message.""" return "(dummy response)" class MarkovBackend(Backend): """Chat backend using markov chains.""" def __init__(self, brain_file): self.brain = MarkovDatabaseBrain(brain_file) def sanitize(self, word): """Removes any awkward whitespace characters from the given word. Removes '\n', '\r', and '\\u2028' (unicode newline character).""" return word.replace('\n', '').replace('\r', '').replace('\u2028', '') def train_file(self, filename): with codecs.open(filename, encoding='utf8') as train_file: for line in train_file: self.learn(line) self.save() def learn(self, line): line = line.strip() words = line.split(' ') words = [self.sanitize(word) for word in words] for i in range(len(words) - 2): prefix = words[i], words[i + 1] follow = words[i + 2] self.brain.add(prefix, follow) def save(self): self.brain.save() def get_random_next_link(self, word1, word2): """Gives a word that could come after the two provided. Words that follow the two given words are weighted by how frequently they appear after them. """ possibilities = self.brain.get_followers((word1, word2)) if not possibilities: return None total = 0 for p in possibilities: total += possibilities[p] num = random.randint(1, total) total = 0 for p in possibilities: total += possibilities[p] if total >= num: break return p def reply(self, message): if self.brain.is_empty(): return '' seed = None # try to seed reply from the message possible_seed_words = message.split() while seed is None and possible_seed_words: message_word = random.choice(possible_seed_words) seeds = list(self.brain.get_pairs_containing_word_ignoring_case( message_word)) if seeds: seed = random.choice(seeds) else: possible_seed_words.remove(message_word) # we couldn't seed the reply from the input # fall back to random seed if seed is None: seed = self.brain.get_three_random_words() words = list(seed) while self.brain.contains_pair((words[-2], words[-1])) and \ len(words) < 100: word = self.get_random_next_link(words[-2], words[-1]) words.append(word) return ' '.join(words) class Config(object): def __init__(self, cfgparser): self.backend = cfgparser.get('General', 'backend') self.display_name = cfgparser.get('General', 'display name') self.learning = cfgparser.getboolean('General', 'learning') self.username = cfgparser.get('Login', 'username') self.password = cfgparser.get('Login', 'password') self.server = cfgparser.get('Login', 'server') self.default_response_rate = cfgparser.getfloat( 'General', 'default response rate') self.response_rates = {} for room_id, rate in cfgparser.items('Response Rates'): room_id = room_id.replace('-colon-', ':') self.response_rates[room_id] = float(rate) def get_response_rate(self, room_id): """Returns our response rate for the room with the given room id.""" if room_id in self.response_rates: return self.response_rates[room_id] else: return self.default_response_rate def write(self): """Writes this config back to the file, with any changes reflected.""" cfgparser = ConfigParser() cfgparser.add_section('General') cfgparser.set('General', 'default response rate', str(self.default_response_rate)) cfgparser.set('General', 'backend', self.backend) cfgparser.set('General', 'display name', self.display_name) cfgparser.set('General', 'learning', str(self.learning)) cfgparser.add_section('Login') cfgparser.set('Login', 'username', self.username) cfgparser.set('Login', 'password', self.password) cfgparser.set('Login', 'server', self.server) cfgparser.add_section('Response Rates') for room_id, rate in list(self.response_rates.items()): # censor colons because they are a configparser special # character room_id = room_id.replace(':', '-colon-') cfgparser.set('Response Rates', room_id, str(rate)) with open('config.cfg', 'wt') as configfile: cfgparser.write(configfile) def get_default_configparser(): """Returns a ConfigParser object for the default config file.""" config = ConfigParser(allow_no_value=True) config.add_section('General') config.set('General', 'default response rate', "0.10") config.set('General', 'backend', 'markov') config.set('General', 'display name', 'Markov') config.set('General', 'learning', 'on') config.add_section('Login') config.set('Login', 'username', 'username') config.set('Login', 'password', 'password') config.set('Login', 'server', 'http://matrix.org') config.add_section('Response Rates') return config class Bot(object): """Handles everything that the bot does.""" def __init__(self, config, chat_backend): self.config = config self.client = None self.chat_backend = chat_backend self.event_queue = queue.Queue() self.invite_queue = queue.Queue() def login(self): """Logs onto the server.""" client = MatrixClient(self.config.server) client.login_with_password_no_sync( self.config.username, self.config.password) self.client = client def get_room(self, event): """Returns the room the given event took place in.""" return self.client.rooms[event['room_id']] def handle_command(self, event, command, args): """Handles the given command, possibly sending a reply to it.""" command = command.lower() if command == '!rate': if args: num = re.match(r'[0-9]*(\.[0-9]+)?(%|)', args[0]).group() if not num: self.reply(event, "Error: Could not parse number.") return if num[-1] == '%': rate = float(num[:-1]) / 100 else: rate = float(num) self.config.response_rates[event['room_id']] = rate self.reply(event, "Response rate set to %f." % rate) else: rate = self.config.get_response_rate(event['room_id']) self.reply( event, "Response rate set to %f in this room." % rate) def reply(self, event, message): """Replies to the given event with the provided message.""" room = self.get_room(event) logging.info("Reply: %s" % message) room.send_notice(message) def is_name_in_message(self, message): """Returns whether the message contains the bot's name. Considers both display name and username. """ regex = "({}|{})".format( self.config.display_name, self.config.username) return re.search(regex, message, flags=re.IGNORECASE) def handle_invite(self, room_id, invite_state): # join rooms if invited try: self.client.join_room(room_id) logging.info('Joined room: %s' % room_id) except MatrixRequestError as e: if e.code == 404: # room was deleted after invite or something; ignore it logging.info('invited to nonexistent room {}'.format(room_id)) elif e.code in range(500, 600): # synapse v0.99.1 500s if it cannot locate a room sometimes # (when there are federation issues) logging.warning('got 500 trying to join room we were invited to') else: raise(e) def handle_event(self, event): """Handles the given event. Joins a room if invited, learns from messages, and possibly responds to messages. """ if event['type'] == 'm.room.message': # only care about text messages by other people if event['sender'] != self.client.user_id and \ event['content']['msgtype'] == 'm.text': message = str(event['content']['body']) # lowercase message so we can search it # case-insensitively logging.info("Handling message: %s" % message) command_found = False for command in COMMANDS: match = re.search(command, message, flags=re.IGNORECASE) if match and (match.start() == 0 or self.is_name_in_message(message)): command_found = True args = message[match.start():].split(' ') self.handle_command(event, args[0], args[1:]) break if not command_found: room = self.get_room(event) response_rate = self.config.get_response_rate(room.room_id) if self.is_name_in_message(message) or \ random.random() < response_rate: # remove name from message and respond to it message_no_name = re.sub( ' *' + re.escape(self.get_display_name()) + ' *', ' ', message, flags=re.IGNORECASE) response = self.chat_backend.reply(message_no_name) self.reply(event, response) if self.config.learning: self.chat_backend.learn(message) self.send_read_receipt(event) def set_display_name(self, display_name): """Sets the bot's display name on the server.""" self.client.api.set_display_name(self.client.user_id, display_name) def get_display_name(self): """Gets the bot's display name from the server.""" return self.client.api.get_display_name(self.client.user_id) def run(self): """Indefinitely listens for messages and handles all that come.""" current_display_name = self.get_display_name() if current_display_name != self.config.display_name: self.set_display_name(self.config.display_name) last_save = time.time() # listen for invites, including initial sync invites self.client.add_invite_listener( lambda room_id, state: self.invite_queue.put((room_id, state))) # get rid of initial event sync logging.info("initial event stream") self.client.listen_for_events() # listen to events and add them all to the event queue # for handling in this thread self.client.add_listener(self.event_queue.put) def exception_handler(e): if isinstance(e, Timeout): logging.warning("listener thread timed out.") logging.error("exception in listener thread:") traceback.print_exc() # start listen thread logging.info("starting listener thread") self.client.start_listener_thread(exception_handler=exception_handler) try: while True: time.sleep(1) # handle any queued events while not self.event_queue.empty(): event = self.event_queue.get_nowait() self.handle_event(event) while not self.invite_queue.empty(): room_id, invite_state = self.invite_queue.get_nowait() self.handle_invite(room_id, invite_state) # save every 10 minutes or so if time.time() - last_save > 60 * 10: self.chat_backend.save() last_save = time.time() finally: logging.info("stopping listener thread") self.client.stop_listener_thread() def send_read_receipt(self, event): """Sends a read receipt for the given event.""" if "room_id" in event and "event_id" in event: room_id = urllib.parse.quote(event['room_id']) event_id = urllib.parse.quote(event['event_id']) self.client.api._send("POST", "/rooms/" + room_id + "/receipt/m.read/" + event_id, api_path="/_matrix/client/r0") def train(backend, train_file): """Trains the given chat backend on the given train_file & saves it.""" print("Training...") backend.train_file(train_file) print("Training complete!") backend.save() def main(): argparser = argparse.ArgumentParser( description="A chatbot for Matrix (matrix.org)") argparser.add_argument("--debug", help="Print out way more things.", action="store_true") argparser.add_argument("--train", metavar="train.txt", type=str, help="Train the bot with a file of text.") argparser.add_argument("--config", metavar="config.cfg", type=str, help="Bot's config file (must be read-writable)") argparser.add_argument("--brain", metavar="brain.db", type=str, help="Bot's brain file (must be read-writable)") args = vars(argparser.parse_args()) debug = args['debug'] # suppress logs of libraries logging.getLogger("requests").setLevel(logging.WARNING) logging.getLogger("urllib3").setLevel(logging.WARNING) log_level = logging.DEBUG if debug else logging.INFO logging.basicConfig(level=log_level, format='%(asctime)s %(name)s ' '%(levelname)s %(message)s') train_path = args['train'] config_path = args['config'] if args['config'] \ else os.getenv('MATRIX_CHATBOT_CONFIG', 'config.cfg') brain_path = args['brain'] if args['brain'] \ else os.getenv('MATRIX_CHATBOT_BRAIN', 'brain.db') cfgparser = ConfigParser() success = cfgparser.read(config_path) if not success: cfgparser = get_default_configparser() with open(config_path, 'wt') as configfile: cfgparser.write(configfile) print("A config has been generated. " "Please set your bot's username, password, and homeserver " "in " + config_path + " then run this again.") return config = Config(cfgparser) backends = {'markov': MarkovBackend} backend = backends[config.backend](brain_path) logging.info("loading brain") if train_path: train(backend, train_path) else: signal.signal(signal.SIGTERM, sigterm_handler) while True: try: bot = Bot(config, backend) bot.login() bot.run() except (MatrixRequestError, ConnectionError): traceback.print_exc() logging.warning("disconnected. Waiting a minute to see if" " the problem resolves itself...") time.sleep(60) finally: backend.save() logging.info('Saving config...') config.write() if __name__ == '__main__': main()
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 5215, 931, 13, 3166, 4636, 29918, 4645, 29889, 4645, 1053, 22513, 4032, 13, 3166, 4636, 29918, 4645, 29889, 2754, 1053, 22513, 3089, 2392, 13, 3166, 7274, 29889, 11739, 29879, 1053, 15160, 2392, 29892, 5974, 449, 13, 5215, 1852, 5510, 13, 5215, 4036, 13, 3166, 2295, 16680, 1053, 12782, 11726, 13, 5215, 337, 13, 5215, 9637, 1627, 13, 5215, 3142, 1982, 29889, 5510, 13, 5215, 12183, 13, 5215, 2897, 13, 5215, 10876, 13, 5215, 7182, 13, 5215, 9521, 13, 5215, 775, 2395, 13, 3166, 2566, 1053, 4485, 586, 9112, 22097, 13, 13, 19795, 1529, 2797, 29903, 353, 518, 13, 1678, 525, 29991, 10492, 29915, 13, 29962, 13, 13, 13, 1753, 4365, 8489, 29918, 13789, 7373, 4530, 29877, 29892, 903, 1429, 29918, 2557, 1125, 13, 1678, 9995, 29934, 1759, 267, 2184, 24365, 29898, 29900, 511, 10805, 4129, 304, 5941, 368, 12522, 1623, 1213, 15945, 13, 1678, 10876, 29889, 13322, 29898, 29900, 29897, 13, 13, 13, 1990, 12782, 11726, 29898, 3991, 11726, 1125, 13, 1678, 396, 2758, 1206, 29899, 23149, 3321, 2984, 2983, 13, 1678, 396, 4312, 363, 14238, 639, 29899, 8345, 2933, 19257, 13, 1678, 2984, 29916, 689, 353, 851, 13, 13, 13, 1990, 7437, 355, 29898, 3318, 1125, 13, 1678, 9995, 10448, 363, 13563, 1250, 1975, 1213, 15945, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 17294, 29918, 1445, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 7945, 29918, 1445, 29898, 1311, 29892, 10422, 1125, 13, 4706, 9995, 5323, 1144, 278, 13563, 14998, 373, 278, 2183, 934, 1213, 15945, 13, 4706, 411, 775, 2395, 29889, 3150, 29898, 9507, 29892, 8025, 2433, 9420, 29947, 1495, 408, 7945, 29918, 1445, 29901, 13, 9651, 363, 1196, 297, 7945, 29918, 1445, 29901, 13, 18884, 1583, 29889, 19668, 29898, 1220, 29897, 13, 13, 1678, 822, 5110, 29898, 1311, 29892, 1196, 1125, 13, 4706, 9995, 3373, 15190, 278, 13563, 14998, 2729, 373, 278, 2183, 1196, 310, 1881, 1213, 15945, 13, 4706, 1209, 13, 13, 1678, 822, 4078, 29898, 1311, 1125, 13, 4706, 9995, 29903, 5989, 278, 14998, 304, 8086, 29892, 565, 4312, 1213, 15945, 13, 4706, 1209, 13, 13, 1678, 822, 8908, 29898, 1311, 29892, 2643, 1125, 13, 4706, 9995, 5631, 1078, 263, 8908, 304, 278, 2183, 2643, 1213, 15945, 13, 4706, 736, 18227, 29881, 11770, 2933, 5513, 13, 13, 13, 1990, 4485, 586, 5841, 355, 29898, 5841, 355, 1125, 13, 1678, 9995, 1451, 271, 14998, 773, 2791, 586, 521, 2708, 1213, 15945, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 17294, 29918, 1445, 1125, 13, 4706, 1583, 29889, 2634, 262, 353, 4485, 586, 9112, 22097, 29898, 2634, 262, 29918, 1445, 29897, 13, 13, 1678, 822, 9753, 277, 675, 29898, 1311, 29892, 1734, 1125, 13, 4706, 9995, 7301, 586, 267, 738, 13689, 1328, 24358, 4890, 515, 278, 2183, 1734, 29889, 13, 13, 4706, 5240, 586, 267, 11297, 29876, 742, 11297, 29878, 742, 322, 525, 1966, 29884, 29906, 29900, 29906, 29947, 29915, 313, 2523, 356, 25899, 2931, 467, 15945, 29908, 13, 4706, 736, 1734, 29889, 6506, 28909, 29876, 742, 525, 2824, 6506, 28909, 29878, 742, 525, 2824, 6506, 28909, 29884, 29906, 29900, 29906, 29947, 742, 27255, 13, 13, 1678, 822, 7945, 29918, 1445, 29898, 1311, 29892, 10422, 1125, 13, 4706, 411, 775, 2395, 29889, 3150, 29898, 9507, 29892, 8025, 2433, 9420, 29947, 1495, 408, 7945, 29918, 1445, 29901, 13, 9651, 363, 1196, 297, 7945, 29918, 1445, 29901, 13, 18884, 1583, 29889, 19668, 29898, 1220, 29897, 13, 4706, 1583, 29889, 7620, 580, 13, 13, 1678, 822, 5110, 29898, 1311, 29892, 1196, 1125, 13, 4706, 1196, 353, 1196, 29889, 17010, 580, 13, 4706, 3838, 353, 1196, 29889, 5451, 877, 25710, 13, 4706, 3838, 353, 518, 1311, 29889, 28455, 277, 675, 29898, 1742, 29897, 363, 1734, 297, 3838, 29962, 13, 4706, 363, 474, 297, 3464, 29898, 2435, 29898, 9303, 29897, 448, 29871, 29906, 1125, 13, 9651, 10944, 353, 3838, 29961, 29875, 1402, 3838, 29961, 29875, 718, 29871, 29896, 29962, 13, 9651, 1101, 353, 3838, 29961, 29875, 718, 29871, 29906, 29962, 13, 9651, 1583, 29889, 2634, 262, 29889, 1202, 29898, 13506, 29892, 1101, 29897, 13, 13, 1678, 822, 4078, 29898, 1311, 1125, 13, 4706, 1583, 29889, 2634, 262, 29889, 7620, 580, 13, 13, 1678, 822, 679, 29918, 8172, 29918, 4622, 29918, 2324, 29898, 1311, 29892, 1734, 29896, 29892, 1734, 29906, 1125, 13, 4706, 9995, 29954, 3145, 263, 1734, 393, 1033, 2041, 1156, 278, 1023, 4944, 29889, 13, 13, 4706, 399, 4339, 393, 1101, 278, 1023, 2183, 3838, 526, 7688, 287, 491, 920, 13672, 13, 4706, 896, 2615, 1156, 963, 29889, 13, 4706, 9995, 13, 4706, 24496, 353, 1583, 29889, 2634, 262, 29889, 657, 29918, 23031, 414, 3552, 1742, 29896, 29892, 1734, 29906, 876, 13, 4706, 565, 451, 24496, 29901, 13, 9651, 736, 6213, 13, 13, 4706, 3001, 353, 29871, 29900, 13, 4706, 363, 282, 297, 24496, 29901, 13, 9651, 3001, 4619, 24496, 29961, 29886, 29962, 13, 13, 4706, 954, 353, 4036, 29889, 9502, 524, 29898, 29896, 29892, 3001, 29897, 13, 4706, 3001, 353, 29871, 29900, 13, 4706, 363, 282, 297, 24496, 29901, 13, 9651, 3001, 4619, 24496, 29961, 29886, 29962, 13, 9651, 565, 3001, 6736, 954, 29901, 13, 18884, 2867, 13, 4706, 736, 282, 13, 13, 1678, 822, 8908, 29898, 1311, 29892, 2643, 1125, 13, 4706, 565, 1583, 29889, 2634, 262, 29889, 275, 29918, 6310, 7295, 13, 9651, 736, 6629, 13, 13, 4706, 16717, 353, 6213, 13, 4706, 396, 1018, 304, 16717, 8908, 515, 278, 2643, 13, 4706, 1950, 29918, 26776, 29918, 9303, 353, 2643, 29889, 5451, 580, 13, 4706, 1550, 16717, 338, 6213, 322, 1950, 29918, 26776, 29918, 9303, 29901, 13, 9651, 2643, 29918, 1742, 353, 4036, 29889, 16957, 29898, 27338, 29918, 26776, 29918, 9303, 29897, 13, 9651, 409, 5779, 353, 1051, 29898, 1311, 29889, 2634, 262, 29889, 657, 29918, 29886, 7121, 29918, 1285, 17225, 29918, 1742, 29918, 647, 8253, 29918, 4878, 29898, 13, 462, 1678, 2643, 29918, 1742, 876, 13, 9651, 565, 409, 5779, 29901, 13, 18884, 16717, 353, 4036, 29889, 16957, 29898, 344, 5779, 29897, 13, 9651, 1683, 29901, 13, 18884, 1950, 29918, 26776, 29918, 9303, 29889, 5992, 29898, 4906, 29918, 1742, 29897, 13, 13, 4706, 396, 591, 8496, 29915, 29873, 16717, 278, 8908, 515, 278, 1881, 13, 4706, 396, 6416, 1250, 304, 4036, 16717, 13, 4706, 565, 16717, 338, 6213, 29901, 13, 9651, 16717, 353, 1583, 29889, 2634, 262, 29889, 657, 29918, 17536, 29918, 8172, 29918, 9303, 580, 13, 13, 4706, 3838, 353, 1051, 29898, 26776, 29897, 13, 4706, 1550, 1583, 29889, 2634, 262, 29889, 11516, 29918, 18784, 3552, 9303, 14352, 29906, 1402, 3838, 14352, 29896, 12622, 322, 320, 13, 18884, 7431, 29898, 9303, 29897, 529, 29871, 29896, 29900, 29900, 29901, 13, 9651, 1734, 353, 1583, 29889, 657, 29918, 8172, 29918, 4622, 29918, 2324, 29898, 9303, 14352, 29906, 1402, 3838, 14352, 29896, 2314, 13, 9651, 3838, 29889, 4397, 29898, 1742, 29897, 13, 4706, 736, 525, 15300, 7122, 29898, 9303, 29897, 13, 13, 13, 1990, 12782, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 274, 16434, 16680, 1125, 13, 4706, 1583, 29889, 27852, 353, 274, 16434, 16680, 29889, 657, 877, 15263, 742, 525, 27852, 1495, 13, 4706, 1583, 29889, 4990, 29918, 978, 353, 274, 16434, 16680, 29889, 657, 877, 15263, 742, 525, 4990, 1024, 1495, 13, 4706, 1583, 29889, 21891, 353, 274, 16434, 16680, 29889, 657, 20054, 877, 15263, 742, 525, 21891, 1495, 13, 4706, 1583, 29889, 6786, 353, 274, 16434, 16680, 29889, 657, 877, 11049, 742, 525, 6786, 1495, 13, 4706, 1583, 29889, 5630, 353, 274, 16434, 16680, 29889, 657, 877, 11049, 742, 525, 5630, 1495, 13, 4706, 1583, 29889, 2974, 353, 274, 16434, 16680, 29889, 657, 877, 11049, 742, 525, 2974, 1495, 13, 4706, 1583, 29889, 4381, 29918, 5327, 29918, 10492, 353, 274, 16434, 16680, 29889, 657, 7411, 29898, 13, 9651, 525, 15263, 742, 525, 4381, 2933, 6554, 1495, 13, 4706, 1583, 29889, 5327, 29918, 29878, 1078, 353, 6571, 13, 4706, 363, 5716, 29918, 333, 29892, 6554, 297, 274, 16434, 16680, 29889, 7076, 877, 5103, 390, 1078, 29374, 13, 9651, 5716, 29918, 333, 353, 5716, 29918, 333, 29889, 6506, 877, 29899, 17308, 29899, 742, 525, 29901, 1495, 13, 9651, 1583, 29889, 5327, 29918, 29878, 1078, 29961, 8345, 29918, 333, 29962, 353, 5785, 29898, 10492, 29897, 13, 13, 1678, 822, 679, 29918, 5327, 29918, 10492, 29898, 1311, 29892, 5716, 29918, 333, 1125, 13, 4706, 9995, 11609, 29879, 1749, 2933, 6554, 363, 278, 5716, 411, 278, 2183, 5716, 1178, 1213, 15945, 13, 4706, 565, 5716, 29918, 333, 297, 1583, 29889, 5327, 29918, 29878, 1078, 29901, 13, 9651, 736, 1583, 29889, 5327, 29918, 29878, 1078, 29961, 8345, 29918, 333, 29962, 13, 4706, 1683, 29901, 13, 9651, 736, 1583, 29889, 4381, 29918, 5327, 29918, 10492, 13, 13, 1678, 822, 2436, 29898, 1311, 1125, 13, 4706, 9995, 29956, 768, 267, 445, 2295, 1250, 304, 278, 934, 29892, 411, 738, 3620, 25312, 1213, 15945, 13, 4706, 274, 16434, 16680, 353, 12782, 11726, 580, 13, 4706, 274, 16434, 16680, 29889, 1202, 29918, 2042, 877, 15263, 1495, 13, 4706, 274, 16434, 16680, 29889, 842, 877, 15263, 742, 525, 4381, 2933, 6554, 742, 13, 462, 418, 851, 29898, 1311, 29889, 4381, 29918, 5327, 29918, 10492, 876, 13, 4706, 274, 16434, 16680, 29889, 842, 877, 15263, 742, 525, 27852, 742, 1583, 29889, 27852, 29897, 13, 4706, 274, 16434, 16680, 29889, 842, 877, 15263, 742, 525, 4990, 1024, 742, 1583, 29889, 4990, 29918, 978, 29897, 13, 4706, 274, 16434, 16680, 29889, 842, 877, 15263, 742, 525, 21891, 742, 851, 29898, 1311, 29889, 21891, 876, 13, 4706, 274, 16434, 16680, 29889, 1202, 29918, 2042, 877, 11049, 1495, 13, 4706, 274, 16434, 16680, 29889, 842, 877, 11049, 742, 525, 6786, 742, 1583, 29889, 6786, 29897, 13, 4706, 274, 16434, 16680, 29889, 842, 877, 11049, 742, 525, 5630, 742, 1583, 29889, 5630, 29897, 13, 4706, 274, 16434, 16680, 29889, 842, 877, 11049, 742, 525, 2974, 742, 1583, 29889, 2974, 29897, 13, 4706, 274, 16434, 16680, 29889, 1202, 29918, 2042, 877, 5103, 390, 1078, 1495, 13, 4706, 363, 5716, 29918, 333, 29892, 6554, 297, 1051, 29898, 1311, 29889, 5327, 29918, 29878, 1078, 29889, 7076, 580, 1125, 13, 9651, 396, 274, 6073, 784, 787, 1363, 896, 526, 263, 2295, 16680, 4266, 13, 9651, 396, 2931, 13, 9651, 5716, 29918, 333, 353, 5716, 29918, 333, 29889, 6506, 877, 29901, 742, 17411, 17308, 29899, 1495, 13, 9651, 274, 16434, 16680, 29889, 842, 877, 5103, 390, 1078, 742, 5716, 29918, 333, 29892, 851, 29898, 10492, 876, 13, 4706, 411, 1722, 877, 2917, 29889, 16859, 742, 525, 14554, 1495, 408, 2295, 1445, 29901, 13, 9651, 274, 16434, 16680, 29889, 3539, 29898, 2917, 1445, 29897, 13, 13, 13, 1753, 679, 29918, 4381, 29918, 2917, 16680, 7295, 13, 1678, 9995, 11609, 29879, 263, 12782, 11726, 1203, 363, 278, 2322, 2295, 934, 1213, 15945, 13, 1678, 2295, 353, 12782, 11726, 29898, 9536, 29918, 1217, 29918, 1767, 29922, 5574, 29897, 13, 1678, 2295, 29889, 1202, 29918, 2042, 877, 15263, 1495, 13, 1678, 2295, 29889, 842, 877, 15263, 742, 525, 4381, 2933, 6554, 742, 376, 29900, 29889, 29896, 29900, 1159, 13, 1678, 2295, 29889, 842, 877, 15263, 742, 525, 27852, 742, 525, 3502, 586, 1495, 13, 1678, 2295, 29889, 842, 877, 15263, 742, 525, 4990, 1024, 742, 525, 9802, 586, 1495, 13, 1678, 2295, 29889, 842, 877, 15263, 742, 525, 21891, 742, 525, 265, 1495, 13, 1678, 2295, 29889, 1202, 29918, 2042, 877, 11049, 1495, 13, 1678, 2295, 29889, 842, 877, 11049, 742, 525, 6786, 742, 525, 6786, 1495, 13, 1678, 2295, 29889, 842, 877, 11049, 742, 525, 5630, 742, 525, 5630, 1495, 13, 1678, 2295, 29889, 842, 877, 11049, 742, 525, 2974, 742, 525, 1124, 597, 5344, 29889, 990, 1495, 13, 1678, 2295, 29889, 1202, 29918, 2042, 877, 5103, 390, 1078, 1495, 13, 1678, 736, 2295, 13, 13, 13, 1990, 11273, 29898, 3318, 1125, 13, 1678, 9995, 3481, 793, 4129, 393, 278, 9225, 947, 1213, 15945, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2295, 29892, 13563, 29918, 27852, 1125, 13, 4706, 1583, 29889, 2917, 353, 2295, 13, 4706, 1583, 29889, 4645, 353, 6213, 13, 4706, 1583, 29889, 13496, 29918, 27852, 353, 13563, 29918, 27852, 13, 4706, 1583, 29889, 3696, 29918, 9990, 353, 9521, 29889, 10620, 580, 13, 4706, 1583, 29889, 11569, 568, 29918, 9990, 353, 9521, 29889, 10620, 580, 13, 13, 1678, 822, 6464, 29898, 1311, 1125, 13, 4706, 9995, 3403, 29879, 11480, 278, 1923, 1213, 15945, 13, 4706, 3132, 353, 22513, 4032, 29898, 1311, 29889, 2917, 29889, 2974, 29897, 13, 4706, 3132, 29889, 7507, 29918, 2541, 29918, 5630, 29918, 1217, 29918, 16593, 29898, 13, 9651, 1583, 29889, 2917, 29889, 6786, 29892, 1583, 29889, 2917, 29889, 5630, 29897, 13, 4706, 1583, 29889, 4645, 353, 3132, 13, 13, 1678, 822, 679, 29918, 8345, 29898, 1311, 29892, 1741, 1125, 13, 4706, 9995, 11609, 29879, 278, 5716, 278, 2183, 1741, 3614, 2058, 297, 1213, 15945, 13, 4706, 736, 1583, 29889, 4645, 29889, 18901, 29961, 3696, 1839, 8345, 29918, 333, 2033, 29962, 13, 13, 1678, 822, 4386, 29918, 6519, 29898, 1311, 29892, 1741, 29892, 1899, 29892, 6389, 1125, 13, 4706, 9995, 3481, 793, 278, 2183, 1899, 29892, 10075, 9348, 263, 8908, 304, 372, 1213, 15945, 13, 4706, 1899, 353, 1899, 29889, 13609, 580, 13, 4706, 565, 1899, 1275, 525, 29991, 10492, 2396, 13, 9651, 565, 6389, 29901, 13, 18884, 954, 353, 337, 29889, 4352, 29898, 29878, 29915, 29961, 29900, 29899, 29929, 14178, 1194, 7226, 29900, 29899, 29929, 10062, 6877, 29414, 29989, 29897, 742, 6389, 29961, 29900, 14664, 2972, 580, 13, 18884, 565, 451, 954, 29901, 13, 462, 1678, 1583, 29889, 3445, 368, 29898, 3696, 29892, 376, 2392, 29901, 6527, 451, 6088, 1353, 23157, 13, 462, 1678, 736, 13, 18884, 565, 954, 14352, 29896, 29962, 1275, 14210, 2396, 13, 462, 1678, 6554, 353, 5785, 29898, 1949, 7503, 29899, 29896, 2314, 847, 29871, 29896, 29900, 29900, 13, 18884, 1683, 29901, 13, 462, 1678, 6554, 353, 5785, 29898, 1949, 29897, 13, 18884, 1583, 29889, 2917, 29889, 5327, 29918, 29878, 1078, 29961, 3696, 1839, 8345, 29918, 333, 2033, 29962, 353, 6554, 13, 18884, 1583, 29889, 3445, 368, 29898, 3696, 29892, 376, 5103, 6554, 731, 304, 1273, 29888, 1213, 1273, 6554, 29897, 13, 9651, 1683, 29901, 13, 18884, 6554, 353, 1583, 29889, 2917, 29889, 657, 29918, 5327, 29918, 10492, 29898, 3696, 1839, 8345, 29918, 333, 11287, 13, 18884, 1583, 29889, 3445, 368, 29898, 13, 462, 1678, 1741, 29892, 376, 5103, 6554, 731, 304, 1273, 29888, 297, 445, 5716, 1213, 1273, 6554, 29897, 13, 13, 1678, 822, 8908, 29898, 1311, 29892, 1741, 29892, 2643, 1125, 13, 4706, 9995, 5612, 3687, 304, 278, 2183, 1741, 411, 278, 4944, 2643, 1213, 15945, 13, 4706, 5716, 353, 1583, 29889, 657, 29918, 8345, 29898, 3696, 29897, 13, 4706, 12183, 29889, 3888, 703, 5612, 368, 29901, 1273, 29879, 29908, 1273, 2643, 29897, 13, 4706, 5716, 29889, 6717, 29918, 1333, 625, 29898, 4906, 29897, 13, 13, 1678, 822, 338, 29918, 978, 29918, 262, 29918, 4906, 29898, 1311, 29892, 2643, 1125, 13, 4706, 9995, 11609, 29879, 3692, 278, 2643, 3743, 278, 9225, 29915, 29879, 1024, 29889, 13, 13, 4706, 2138, 11376, 1716, 2479, 1024, 322, 8952, 29889, 13, 4706, 9995, 13, 4706, 6528, 353, 376, 3319, 11079, 29912, 1800, 1642, 4830, 29898, 13, 9651, 1583, 29889, 2917, 29889, 4990, 29918, 978, 29892, 1583, 29889, 2917, 29889, 6786, 29897, 13, 4706, 736, 337, 29889, 4478, 29898, 13087, 29892, 2643, 29892, 13449, 29922, 276, 29889, 6259, 6632, 1525, 23487, 29897, 13, 13, 1678, 822, 4386, 29918, 11569, 568, 29898, 1311, 29892, 5716, 29918, 333, 29892, 2437, 568, 29918, 3859, 1125, 13, 4706, 396, 5988, 19600, 565, 23610, 13, 4706, 1018, 29901, 13, 9651, 1583, 29889, 4645, 29889, 7122, 29918, 8345, 29898, 8345, 29918, 333, 29897, 13, 9651, 12183, 29889, 3888, 877, 10844, 1312, 5716, 29901, 1273, 29879, 29915, 1273, 5716, 29918, 333, 29897, 13, 4706, 5174, 22513, 3089, 2392, 408, 321, 29901, 13, 9651, 565, 321, 29889, 401, 1275, 29871, 29946, 29900, 29946, 29901, 13, 18884, 396, 5716, 471, 11132, 1156, 2437, 568, 470, 1554, 29936, 11455, 372, 13, 18884, 12183, 29889, 3888, 877, 11569, 1573, 304, 5642, 29916, 9696, 5716, 6571, 4286, 4830, 29898, 8345, 29918, 333, 876, 13, 9651, 25342, 321, 29889, 401, 297, 3464, 29898, 29945, 29900, 29900, 29892, 29871, 29953, 29900, 29900, 1125, 13, 18884, 396, 5222, 481, 344, 325, 29900, 29889, 29929, 29929, 29889, 29896, 29871, 29945, 29900, 29900, 29879, 565, 372, 2609, 26694, 263, 5716, 6041, 13, 18884, 396, 313, 8256, 727, 526, 12067, 362, 5626, 29897, 13, 18884, 12183, 29889, 27392, 877, 7085, 29871, 29945, 29900, 29900, 1811, 304, 5988, 5716, 591, 892, 23610, 304, 1495, 13, 9651, 1683, 29901, 13, 18884, 12020, 29898, 29872, 29897, 13, 13, 1678, 822, 4386, 29918, 3696, 29898, 1311, 29892, 1741, 1125, 13, 4706, 9995, 3481, 793, 278, 2183, 1741, 29889, 13, 13, 4706, 3650, 1144, 263, 5716, 565, 23610, 29892, 24298, 1983, 515, 7191, 29892, 322, 10075, 10049, 29879, 304, 13, 4706, 7191, 29889, 13, 4706, 9995, 13, 4706, 565, 1741, 1839, 1853, 2033, 1275, 525, 29885, 29889, 8345, 29889, 4906, 2396, 13, 9651, 396, 871, 2562, 1048, 1426, 7191, 491, 916, 2305, 13, 9651, 565, 1741, 1839, 15452, 2033, 2804, 1583, 29889, 4645, 29889, 1792, 29918, 333, 322, 320, 13, 462, 1678, 1741, 1839, 3051, 16215, 7645, 1853, 2033, 1275, 525, 29885, 29889, 726, 2396, 13, 18884, 2643, 353, 851, 29898, 3696, 1839, 3051, 16215, 2587, 11287, 13, 18884, 396, 5224, 4878, 2643, 577, 591, 508, 2740, 372, 13, 18884, 396, 1206, 29899, 1144, 575, 277, 3598, 13, 18884, 12183, 29889, 3888, 703, 3481, 1847, 2643, 29901, 1273, 29879, 29908, 1273, 2643, 29897, 13, 18884, 1899, 29918, 11940, 353, 7700, 13, 18884, 363, 1899, 297, 23353, 1529, 2797, 29903, 29901, 13, 462, 1678, 1993, 353, 337, 29889, 4478, 29898, 6519, 29892, 2643, 29892, 13449, 29922, 276, 29889, 6259, 6632, 1525, 23487, 29897, 13, 462, 1678, 565, 1993, 322, 313, 4352, 29889, 2962, 580, 1275, 29871, 29900, 470, 13, 462, 462, 29871, 1583, 29889, 275, 29918, 978, 29918, 262, 29918, 4906, 29898, 4906, 22164, 13, 462, 4706, 1899, 29918, 11940, 353, 5852, 13, 462, 4706, 6389, 353, 2643, 29961, 4352, 29889, 2962, 7295, 1822, 5451, 877, 25710, 13, 462, 4706, 1583, 29889, 8411, 29918, 6519, 29898, 3696, 29892, 6389, 29961, 29900, 1402, 6389, 29961, 29896, 29901, 2314, 13, 462, 4706, 2867, 13, 18884, 565, 451, 1899, 29918, 11940, 29901, 13, 462, 1678, 5716, 353, 1583, 29889, 657, 29918, 8345, 29898, 3696, 29897, 13, 462, 1678, 2933, 29918, 10492, 353, 1583, 29889, 2917, 29889, 657, 29918, 5327, 29918, 10492, 29898, 8345, 29889, 8345, 29918, 333, 29897, 13, 462, 1678, 565, 1583, 29889, 275, 29918, 978, 29918, 262, 29918, 4906, 29898, 4906, 29897, 470, 320, 13, 462, 9651, 4036, 29889, 8172, 580, 529, 2933, 29918, 10492, 29901, 13, 462, 4706, 396, 3349, 1024, 515, 2643, 322, 10049, 304, 372, 13, 462, 4706, 2643, 29918, 1217, 29918, 978, 353, 337, 29889, 1491, 29898, 13, 462, 9651, 525, 334, 29915, 718, 337, 29889, 21587, 29898, 1311, 29889, 657, 29918, 4990, 29918, 978, 3101, 718, 525, 334, 742, 13, 462, 9651, 525, 13420, 2643, 29892, 13449, 29922, 276, 29889, 6259, 6632, 1525, 23487, 29897, 13, 462, 4706, 2933, 353, 1583, 29889, 13496, 29918, 27852, 29889, 3445, 368, 29898, 4906, 29918, 1217, 29918, 978, 29897, 13, 462, 4706, 1583, 29889, 3445, 368, 29898, 3696, 29892, 2933, 29897, 13, 462, 1678, 565, 1583, 29889, 2917, 29889, 21891, 29901, 13, 462, 4706, 1583, 29889, 13496, 29918, 27852, 29889, 19668, 29898, 4906, 29897, 13, 4706, 1583, 29889, 6717, 29918, 949, 29918, 13556, 21278, 29898, 3696, 29897, 13, 13, 1678, 822, 731, 29918, 4990, 29918, 978, 29898, 1311, 29892, 2479, 29918, 978, 1125, 13, 4706, 9995, 29903, 1691, 278, 9225, 29915, 29879, 2479, 1024, 373, 278, 1923, 1213, 15945, 13, 4706, 1583, 29889, 4645, 29889, 2754, 29889, 842, 29918, 4990, 29918, 978, 29898, 1311, 29889, 4645, 29889, 1792, 29918, 333, 29892, 2479, 29918, 978, 29897, 13, 13, 1678, 822, 679, 29918, 4990, 29918, 978, 29898, 1311, 1125, 13, 4706, 9995, 29954, 1691, 278, 9225, 29915, 29879, 2479, 1024, 515, 278, 1923, 1213, 15945, 13, 4706, 736, 1583, 29889, 4645, 29889, 2754, 29889, 657, 29918, 4990, 29918, 978, 29898, 1311, 29889, 4645, 29889, 1792, 29918, 333, 29897, 13, 13, 1678, 822, 1065, 29898, 1311, 1125, 13, 4706, 9995, 2568, 1389, 18639, 1051, 575, 363, 7191, 322, 17766, 599, 393, 2041, 1213, 15945, 13, 4706, 1857, 29918, 4990, 29918, 978, 353, 1583, 29889, 657, 29918, 4990, 29918, 978, 580, 13, 4706, 565, 1857, 29918, 4990, 29918, 978, 2804, 1583, 29889, 2917, 29889, 4990, 29918, 978, 29901, 13, 9651, 1583, 29889, 842, 29918, 4990, 29918, 978, 29898, 1311, 29889, 2917, 29889, 4990, 29918, 978, 29897, 13, 13, 4706, 1833, 29918, 7620, 353, 931, 29889, 2230, 580, 13, 13, 4706, 396, 11621, 363, 2437, 3246, 29892, 3704, 2847, 16523, 2437, 3246, 13, 4706, 1583, 29889, 4645, 29889, 1202, 29918, 11569, 568, 29918, 25894, 29898, 13, 9651, 14013, 5716, 29918, 333, 29892, 2106, 29901, 1583, 29889, 11569, 568, 29918, 9990, 29889, 649, 3552, 8345, 29918, 333, 29892, 2106, 4961, 13, 13, 4706, 396, 679, 8177, 310, 2847, 1741, 16523, 13, 4706, 12183, 29889, 3888, 703, 11228, 1741, 4840, 1159, 13, 4706, 1583, 29889, 4645, 29889, 20631, 29918, 1454, 29918, 13604, 580, 13, 13, 4706, 396, 11621, 304, 4959, 322, 788, 963, 599, 304, 278, 1741, 9521, 13, 4706, 396, 363, 11415, 297, 445, 3244, 13, 4706, 1583, 29889, 4645, 29889, 1202, 29918, 25894, 29898, 1311, 29889, 3696, 29918, 9990, 29889, 649, 29897, 13, 13, 4706, 822, 3682, 29918, 13789, 29898, 29872, 1125, 13, 9651, 565, 338, 8758, 29898, 29872, 29892, 5974, 449, 1125, 13, 18884, 12183, 29889, 27392, 703, 25894, 3244, 5335, 287, 714, 23157, 13, 9651, 12183, 29889, 2704, 703, 11739, 297, 13254, 3244, 29901, 1159, 13, 9651, 9637, 1627, 29889, 2158, 29918, 735, 29883, 580, 13, 13, 4706, 396, 1369, 11621, 3244, 13, 4706, 12183, 29889, 3888, 703, 2962, 292, 13254, 3244, 1159, 13, 4706, 1583, 29889, 4645, 29889, 2962, 29918, 25894, 29918, 7097, 29898, 11739, 29918, 13789, 29922, 11739, 29918, 13789, 29897, 13, 13, 4706, 1018, 29901, 13, 9651, 1550, 5852, 29901, 13, 18884, 931, 29889, 17059, 29898, 29896, 29897, 13, 13, 18884, 396, 4386, 738, 712, 6742, 4959, 13, 18884, 1550, 451, 1583, 29889, 3696, 29918, 9990, 29889, 6310, 7295, 13, 462, 1678, 1741, 353, 1583, 29889, 3696, 29918, 9990, 29889, 657, 29918, 3707, 1249, 580, 13, 462, 1678, 1583, 29889, 8411, 29918, 3696, 29898, 3696, 29897, 13, 13, 18884, 1550, 451, 1583, 29889, 11569, 568, 29918, 9990, 29889, 6310, 7295, 13, 462, 1678, 5716, 29918, 333, 29892, 2437, 568, 29918, 3859, 353, 1583, 29889, 11569, 568, 29918, 9990, 29889, 657, 29918, 3707, 1249, 580, 13, 462, 1678, 1583, 29889, 8411, 29918, 11569, 568, 29898, 8345, 29918, 333, 29892, 2437, 568, 29918, 3859, 29897, 13, 13, 18884, 396, 4078, 1432, 29871, 29896, 29900, 6233, 470, 577, 13, 18884, 565, 931, 29889, 2230, 580, 448, 1833, 29918, 7620, 1405, 29871, 29953, 29900, 334, 29871, 29896, 29900, 29901, 13, 462, 1678, 1583, 29889, 13496, 29918, 27852, 29889, 7620, 580, 13, 462, 1678, 1833, 29918, 7620, 353, 931, 29889, 2230, 580, 13, 4706, 7146, 29901, 13, 9651, 12183, 29889, 3888, 703, 7864, 3262, 13254, 3244, 1159, 13, 9651, 1583, 29889, 4645, 29889, 9847, 29918, 25894, 29918, 7097, 580, 13, 13, 1678, 822, 3638, 29918, 949, 29918, 13556, 21278, 29898, 1311, 29892, 1741, 1125, 13, 4706, 9995, 29903, 1975, 263, 1303, 2414, 21278, 363, 278, 2183, 1741, 1213, 15945, 13, 4706, 565, 376, 8345, 29918, 333, 29908, 297, 1741, 322, 376, 3696, 29918, 333, 29908, 297, 1741, 29901, 13, 9651, 5716, 29918, 333, 353, 3142, 1982, 29889, 5510, 29889, 1396, 29898, 3696, 1839, 8345, 29918, 333, 11287, 13, 9651, 1741, 29918, 333, 353, 3142, 1982, 29889, 5510, 29889, 1396, 29898, 3696, 1839, 3696, 29918, 333, 11287, 13, 9651, 1583, 29889, 4645, 29889, 2754, 3032, 6717, 703, 5438, 613, 5591, 18901, 12975, 718, 5716, 29918, 333, 718, 13, 462, 462, 29871, 5591, 13556, 21278, 29914, 29885, 29889, 949, 12975, 718, 1741, 29918, 333, 29892, 13, 462, 462, 29871, 7882, 29918, 2084, 13802, 29918, 5344, 29914, 4645, 29914, 29878, 29900, 1159, 13, 13, 13, 1753, 7945, 29898, 27852, 29892, 7945, 29918, 1445, 1125, 13, 1678, 9995, 5323, 1144, 278, 2183, 13563, 14998, 373, 278, 2183, 7945, 29918, 1445, 669, 27401, 372, 1213, 15945, 13, 1678, 1596, 703, 5323, 2827, 856, 1159, 13, 1678, 14998, 29889, 14968, 29918, 1445, 29898, 14968, 29918, 1445, 29897, 13, 1678, 1596, 703, 5323, 2827, 4866, 29991, 1159, 13, 1678, 14998, 29889, 7620, 580, 13, 13, 13, 1753, 1667, 7295, 13, 1678, 1852, 16680, 353, 1852, 5510, 29889, 15730, 11726, 29898, 13, 4706, 6139, 543, 29909, 13563, 7451, 363, 22513, 313, 5344, 29889, 990, 25760, 13, 1678, 1852, 16680, 29889, 1202, 29918, 23516, 703, 489, 8382, 613, 13, 462, 965, 1371, 543, 11816, 714, 982, 901, 2712, 19602, 13, 462, 965, 3158, 543, 8899, 29918, 3009, 1159, 13, 1678, 1852, 16680, 29889, 1202, 29918, 23516, 703, 489, 14968, 613, 1539, 485, 279, 543, 14968, 29889, 3945, 613, 1134, 29922, 710, 29892, 13, 462, 965, 1371, 543, 5323, 262, 278, 9225, 411, 263, 934, 310, 1426, 23157, 13, 1678, 1852, 16680, 29889, 1202, 29918, 23516, 703, 489, 2917, 613, 1539, 485, 279, 543, 2917, 29889, 16859, 613, 1134, 29922, 710, 29892, 13, 462, 965, 1371, 543, 29933, 327, 29915, 29879, 2295, 934, 313, 21969, 367, 1303, 29899, 8231, 519, 25760, 13, 1678, 1852, 16680, 29889, 1202, 29918, 23516, 703, 489, 2634, 262, 613, 1539, 485, 279, 543, 2634, 262, 29889, 2585, 613, 1134, 29922, 710, 29892, 13, 462, 965, 1371, 543, 29933, 327, 29915, 29879, 17294, 934, 313, 21969, 367, 1303, 29899, 8231, 519, 25760, 13, 1678, 6389, 353, 24987, 29898, 1191, 16680, 29889, 5510, 29918, 5085, 3101, 13, 1678, 4744, 353, 6389, 1839, 8382, 2033, 13, 13, 1678, 396, 21301, 10748, 310, 9562, 13, 1678, 12183, 29889, 657, 16363, 703, 24830, 2564, 842, 10108, 29898, 21027, 29889, 29956, 25614, 29897, 13, 1678, 12183, 29889, 657, 16363, 703, 2271, 1982, 29941, 2564, 842, 10108, 29898, 21027, 29889, 29956, 25614, 29897, 13, 13, 1678, 1480, 29918, 5563, 353, 12183, 29889, 18525, 565, 4744, 1683, 12183, 29889, 11690, 13, 1678, 12183, 29889, 16121, 3991, 29898, 5563, 29922, 1188, 29918, 5563, 29892, 13, 462, 4706, 3402, 2433, 29995, 29898, 294, 312, 603, 29897, 29879, 1273, 29898, 978, 29897, 29879, 525, 13, 462, 4706, 14210, 29898, 5563, 978, 29897, 29879, 1273, 29898, 4906, 29897, 29879, 1495, 13, 13, 1678, 7945, 29918, 2084, 353, 6389, 1839, 14968, 2033, 13, 13, 1678, 2295, 29918, 2084, 353, 6389, 1839, 2917, 2033, 565, 6389, 1839, 2917, 2033, 320, 13, 4706, 1683, 2897, 29889, 657, 6272, 877, 29924, 1299, 3960, 29990, 29918, 3210, 1299, 29933, 2891, 29918, 25903, 742, 525, 2917, 29889, 16859, 1495, 13, 1678, 17294, 29918, 2084, 353, 6389, 1839, 2634, 262, 2033, 565, 6389, 1839, 2634, 262, 2033, 320, 13, 4706, 1683, 2897, 29889, 657, 6272, 877, 29924, 1299, 3960, 29990, 29918, 3210, 1299, 29933, 2891, 29918, 29933, 4717, 1177, 742, 525, 2634, 262, 29889, 2585, 1495, 13, 13, 1678, 274, 16434, 16680, 353, 12782, 11726, 580, 13, 1678, 2551, 353, 274, 16434, 16680, 29889, 949, 29898, 2917, 29918, 2084, 29897, 13, 1678, 565, 451, 2551, 29901, 13, 4706, 274, 16434, 16680, 353, 679, 29918, 4381, 29918, 2917, 16680, 580, 13, 4706, 411, 1722, 29898, 2917, 29918, 2084, 29892, 525, 14554, 1495, 408, 2295, 1445, 29901, 13, 9651, 274, 16434, 16680, 29889, 3539, 29898, 2917, 1445, 29897, 13, 4706, 1596, 703, 29909, 2295, 756, 1063, 5759, 29889, 376, 13, 795, 376, 12148, 731, 596, 9225, 29915, 29879, 8952, 29892, 4800, 29892, 322, 17774, 261, 369, 376, 13, 795, 376, 262, 376, 718, 2295, 29918, 2084, 718, 376, 769, 1065, 445, 1449, 23157, 13, 4706, 736, 13, 13, 1678, 2295, 353, 12782, 29898, 16859, 16680, 29897, 13, 13, 1678, 1250, 1975, 353, 11117, 3502, 586, 2396, 4485, 586, 5841, 355, 29913, 13, 1678, 14998, 353, 1250, 1975, 29961, 2917, 29889, 27852, 850, 2634, 262, 29918, 2084, 29897, 13, 1678, 12183, 29889, 3888, 703, 13234, 17294, 1159, 13, 13, 1678, 565, 7945, 29918, 2084, 29901, 13, 4706, 7945, 29898, 27852, 29892, 7945, 29918, 2084, 29897, 13, 1678, 1683, 29901, 13, 4706, 7182, 29889, 25436, 29898, 25436, 29889, 5425, 29954, 4945, 29924, 29892, 4365, 8489, 29918, 13789, 29897, 13, 4706, 1550, 5852, 29901, 13, 9651, 1018, 29901, 13, 18884, 9225, 353, 11273, 29898, 2917, 29892, 14998, 29897, 13, 18884, 9225, 29889, 7507, 580, 13, 18884, 9225, 29889, 3389, 580, 13, 9651, 5174, 313, 14609, 3089, 2392, 29892, 15160, 2392, 1125, 13, 18884, 9637, 1627, 29889, 2158, 29918, 735, 29883, 580, 13, 18884, 12183, 29889, 27392, 703, 2218, 18045, 29889, 20340, 292, 263, 11015, 304, 1074, 565, 29908, 13, 462, 18884, 376, 278, 1108, 3770, 1960, 3528, 856, 1159, 13, 18884, 931, 29889, 17059, 29898, 29953, 29900, 29897, 13, 9651, 7146, 29901, 13, 18884, 14998, 29889, 7620, 580, 13, 18884, 12183, 29889, 3888, 877, 29903, 5555, 2295, 856, 1495, 13, 18884, 2295, 29889, 3539, 580, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1667, 580, 13, 2 ]
VCD/utils/data_utils.py
Xingyu-Lin/VCD
25
170657
<reponame>Xingyu-Lin/VCD<filename>VCD/utils/data_utils.py<gh_stars>10-100 import numpy as np import torch from torch_geometric.data import Data import torch_geometric class PrivilData(Data): """ Encapsulation of multi-graphs for multi-step training ind: 0-(hor-1), type: vsbl or full Each graph contain: edge_index_{type}_{ind}, x_{type}_{ind}, edge_attr_{type}_{ind}, gt_rwd_{type}_{ind} gt_accel_{type}_{ind} mesh_mapping_{type}_{ind} """ def __init__(self, has_part=False, has_full=False, **kwargs): super(PrivilData, self).__init__(**kwargs) self.has_part = has_part self.has_full = has_full def __inc__(self, key, value, *args, **kwargs): if 'edge_index' in key: x = key.replace('edge_index', 'x') return self[x].size(0) elif 'mesh_mapping' in key: # add index of mesh matching by x = key.replace('partial_pc_mapped_idx', 'x') return self[x].size(0) else: return super().__inc__(key, value) class AggDict(dict): def __init__(self, is_detach=True): """ Aggregate numpy arrays or pytorch tensors :param is_detach: Whether to save numpy arrays in stead of torch tensors """ super(AggDict).__init__() self.is_detach = is_detach def __getitem__(self, item): return self.get(item, 0) def add_item(self, key, value): if self.is_detach and torch.is_tensor(value): value = value.detach().cpu().numpy() if not isinstance(value, torch.Tensor): if isinstance(value, np.ndarray) or isinstance(value, np.number): assert value.size == 1 else: assert isinstance(value, int) or isinstance(value, float) if key not in self.keys(): self[key] = value else: self[key] += value def update_by_add(self, src_dict): for key, value in src_dict.items(): self.add_item(key, value) def get_mean(self, prefix, count=1): avg_dict = {} for k, v in self.items(): avg_dict[prefix + k] = v / count return avg_dict def updateDictByAdd(dict1, dict2): ''' update dict1 by dict2 ''' for k1, v1 in dict2.items(): for k2, v2 in v1.items(): dict1[k1][k2] += v2.cpu().item() return dict1 def get_index_before_padding(graph_sizes): ins_len = graph_sizes.max() pad_len = ins_len * graph_sizes.size(0) valid_len = graph_sizes.sum() accum = torch.zeros(1).cuda() out = [] for gs in graph_sizes: new_ind = torch.range(0, gs - 1).cuda() + accum out.append(new_ind) accum += ins_len final_ind = torch.cat(out, dim=0) return final_ind.long() class MyDataParallel(torch_geometric.nn.DataParallel): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def __getattr__(self, name): if name == 'module': return self._modules['module'] else: return getattr(self.module, name) def retrieve_data(data, key): """ vsbl: [vsbl], full: [full], dual :[vsbl, full] """ if isinstance(data, dict): identifier = '_{}'.format(key) out_data = {k.replace(identifier, ''): v for k, v in data.items() if identifier in k} return out_data
[ 1, 529, 276, 1112, 420, 29958, 29990, 292, 29891, 29884, 29899, 11667, 29914, 29963, 6530, 29966, 9507, 29958, 29963, 6530, 29914, 13239, 29914, 1272, 29918, 13239, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 5215, 12655, 408, 7442, 13, 5215, 4842, 305, 13, 3166, 4842, 305, 29918, 479, 14066, 29889, 1272, 1053, 3630, 13, 5215, 4842, 305, 29918, 479, 14066, 13, 13, 13, 1990, 18936, 309, 1469, 29898, 1469, 1125, 13, 1678, 9995, 13, 1678, 11346, 2547, 2785, 310, 2473, 29899, 4262, 29879, 363, 2473, 29899, 10568, 6694, 13, 1678, 1399, 29901, 29871, 29900, 17722, 2015, 29899, 29896, 511, 1134, 29901, 7186, 2204, 470, 2989, 13, 1678, 7806, 3983, 1712, 29901, 13, 4706, 7636, 29918, 2248, 648, 1853, 3227, 513, 1118, 13, 4706, 921, 648, 1853, 3227, 513, 1118, 13, 4706, 7636, 29918, 5552, 648, 1853, 3227, 513, 1118, 13, 4706, 330, 29873, 29918, 29878, 9970, 648, 1853, 3227, 513, 29913, 13, 4706, 330, 29873, 29918, 562, 2242, 648, 1853, 3227, 513, 29913, 13, 4706, 27716, 29918, 20698, 648, 1853, 3227, 513, 29913, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 756, 29918, 1595, 29922, 8824, 29892, 756, 29918, 8159, 29922, 8824, 29892, 3579, 19290, 1125, 13, 4706, 2428, 29898, 29925, 1150, 309, 1469, 29892, 1583, 467, 1649, 2344, 12035, 1068, 19290, 29897, 13, 4706, 1583, 29889, 5349, 29918, 1595, 353, 756, 29918, 1595, 13, 4706, 1583, 29889, 5349, 29918, 8159, 353, 756, 29918, 8159, 13, 13, 1678, 822, 4770, 3742, 12035, 1311, 29892, 1820, 29892, 995, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 565, 525, 12864, 29918, 2248, 29915, 297, 1820, 29901, 13, 9651, 921, 353, 1820, 29889, 6506, 877, 12864, 29918, 2248, 742, 525, 29916, 1495, 13, 9651, 736, 1583, 29961, 29916, 1822, 2311, 29898, 29900, 29897, 13, 4706, 25342, 525, 4467, 29882, 29918, 20698, 29915, 297, 1820, 29901, 13, 9651, 396, 788, 2380, 310, 27716, 9686, 491, 13, 9651, 921, 353, 1820, 29889, 6506, 877, 3846, 29918, 6739, 29918, 655, 2986, 29918, 13140, 742, 525, 29916, 1495, 13, 9651, 736, 1583, 29961, 29916, 1822, 2311, 29898, 29900, 29897, 13, 4706, 1683, 29901, 13, 9651, 736, 2428, 2141, 1649, 3742, 12035, 1989, 29892, 995, 29897, 13, 13, 13, 1990, 319, 1505, 21533, 29898, 8977, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 338, 29918, 4801, 496, 29922, 5574, 1125, 13, 4706, 9995, 13, 4706, 319, 26127, 403, 12655, 7049, 470, 282, 3637, 25350, 25187, 943, 13, 4706, 584, 3207, 338, 29918, 4801, 496, 29901, 26460, 304, 4078, 12655, 7049, 297, 28325, 310, 4842, 305, 25187, 943, 13, 4706, 9995, 13, 4706, 2428, 29898, 29909, 1505, 21533, 467, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 275, 29918, 4801, 496, 353, 338, 29918, 4801, 496, 13, 13, 1678, 822, 4770, 657, 667, 12035, 1311, 29892, 2944, 1125, 13, 4706, 736, 1583, 29889, 657, 29898, 667, 29892, 29871, 29900, 29897, 13, 13, 1678, 822, 788, 29918, 667, 29898, 1311, 29892, 1820, 29892, 995, 1125, 13, 4706, 565, 1583, 29889, 275, 29918, 4801, 496, 322, 4842, 305, 29889, 275, 29918, 20158, 29898, 1767, 1125, 13, 9651, 995, 353, 995, 29889, 4801, 496, 2141, 21970, 2141, 23749, 580, 13, 4706, 565, 451, 338, 8758, 29898, 1767, 29892, 4842, 305, 29889, 29911, 6073, 1125, 13, 9651, 565, 338, 8758, 29898, 1767, 29892, 7442, 29889, 299, 2378, 29897, 470, 338, 8758, 29898, 1767, 29892, 7442, 29889, 4537, 1125, 13, 18884, 4974, 995, 29889, 2311, 1275, 29871, 29896, 13, 9651, 1683, 29901, 13, 18884, 4974, 338, 8758, 29898, 1767, 29892, 938, 29897, 470, 338, 8758, 29898, 1767, 29892, 5785, 29897, 13, 4706, 565, 1820, 451, 297, 1583, 29889, 8149, 7295, 13, 9651, 1583, 29961, 1989, 29962, 353, 995, 13, 4706, 1683, 29901, 13, 9651, 1583, 29961, 1989, 29962, 4619, 995, 13, 13, 1678, 822, 2767, 29918, 1609, 29918, 1202, 29898, 1311, 29892, 4765, 29918, 8977, 1125, 13, 4706, 363, 1820, 29892, 995, 297, 4765, 29918, 8977, 29889, 7076, 7295, 13, 9651, 1583, 29889, 1202, 29918, 667, 29898, 1989, 29892, 995, 29897, 13, 13, 1678, 822, 679, 29918, 12676, 29898, 1311, 29892, 10944, 29892, 2302, 29922, 29896, 1125, 13, 4706, 1029, 29887, 29918, 8977, 353, 6571, 13, 4706, 363, 413, 29892, 325, 297, 1583, 29889, 7076, 7295, 13, 9651, 1029, 29887, 29918, 8977, 29961, 13506, 718, 413, 29962, 353, 325, 847, 2302, 13, 4706, 736, 1029, 29887, 29918, 8977, 13, 13, 13, 1753, 2767, 21533, 2059, 2528, 29898, 8977, 29896, 29892, 9657, 29906, 1125, 13, 1678, 14550, 13, 1678, 2767, 9657, 29896, 491, 9657, 29906, 13, 1678, 14550, 13, 1678, 363, 413, 29896, 29892, 325, 29896, 297, 9657, 29906, 29889, 7076, 7295, 13, 4706, 363, 413, 29906, 29892, 325, 29906, 297, 325, 29896, 29889, 7076, 7295, 13, 9651, 9657, 29896, 29961, 29895, 29896, 3816, 29895, 29906, 29962, 4619, 325, 29906, 29889, 21970, 2141, 667, 580, 13, 1678, 736, 9657, 29896, 13, 13, 13, 1753, 679, 29918, 2248, 29918, 11083, 29918, 12791, 29898, 4262, 29918, 29879, 7093, 1125, 13, 1678, 1663, 29918, 2435, 353, 3983, 29918, 29879, 7093, 29889, 3317, 580, 13, 1678, 17132, 29918, 2435, 353, 1663, 29918, 2435, 334, 3983, 29918, 29879, 7093, 29889, 2311, 29898, 29900, 29897, 13, 1678, 2854, 29918, 2435, 353, 3983, 29918, 29879, 7093, 29889, 2083, 580, 13, 1678, 18414, 353, 4842, 305, 29889, 3298, 359, 29898, 29896, 467, 29883, 6191, 580, 13, 1678, 714, 353, 5159, 13, 1678, 363, 330, 29879, 297, 3983, 29918, 29879, 7093, 29901, 13, 4706, 716, 29918, 513, 353, 4842, 305, 29889, 3881, 29898, 29900, 29892, 330, 29879, 448, 29871, 29896, 467, 29883, 6191, 580, 718, 18414, 13, 4706, 714, 29889, 4397, 29898, 1482, 29918, 513, 29897, 13, 4706, 18414, 4619, 1663, 29918, 2435, 13, 1678, 2186, 29918, 513, 353, 4842, 305, 29889, 4117, 29898, 449, 29892, 3964, 29922, 29900, 29897, 13, 1678, 736, 2186, 29918, 513, 29889, 5426, 580, 13, 13, 13, 1990, 1619, 1469, 2177, 6553, 29898, 7345, 305, 29918, 479, 14066, 29889, 15755, 29889, 1469, 2177, 6553, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 2428, 2141, 1649, 2344, 1649, 10456, 5085, 29892, 3579, 19290, 29897, 13, 13, 1678, 822, 4770, 657, 5552, 12035, 1311, 29892, 1024, 1125, 13, 4706, 565, 1024, 1275, 525, 5453, 2396, 13, 9651, 736, 1583, 3032, 7576, 1839, 5453, 2033, 13, 4706, 1683, 29901, 13, 9651, 736, 679, 5552, 29898, 1311, 29889, 5453, 29892, 1024, 29897, 13, 13, 13, 1753, 10563, 29918, 1272, 29898, 1272, 29892, 1820, 1125, 13, 1678, 9995, 13, 1678, 7186, 2204, 29901, 518, 4270, 2204, 1402, 2989, 29901, 518, 8159, 1402, 14581, 584, 29961, 4270, 2204, 29892, 2989, 29962, 13, 1678, 9995, 13, 1678, 565, 338, 8758, 29898, 1272, 29892, 9657, 1125, 13, 4706, 15882, 353, 525, 648, 29913, 4286, 4830, 29898, 1989, 29897, 13, 4706, 714, 29918, 1272, 353, 426, 29895, 29889, 6506, 29898, 25378, 29892, 6629, 1125, 325, 363, 413, 29892, 325, 297, 848, 29889, 7076, 580, 565, 15882, 297, 413, 29913, 13, 1678, 736, 714, 29918, 1272, 13, 2 ]
spectroscope/__init__.py
peterblockman/spectroscope
0
70985
<reponame>peterblockman/spectroscope import logging def log(): logging.basicConfig(level=logging.DEBUG) return logging.getLogger("spectroscope")
[ 1, 529, 276, 1112, 420, 29958, 29886, 1308, 1271, 1171, 29914, 21494, 1883, 4338, 13, 5215, 12183, 13, 13, 13, 1753, 1480, 7295, 13, 1678, 12183, 29889, 16121, 3991, 29898, 5563, 29922, 21027, 29889, 18525, 29897, 13, 1678, 736, 12183, 29889, 657, 16363, 703, 21494, 1883, 4338, 1159, 13, 2 ]
backend/optimizer.py
SINTEF-SE/PySSMic
0
1600045
import logging import math from collections import defaultdict from enum import Enum from itertools import chain from random import randint, random from typing import List import numpy as np from scipy import optimize import util.optimizer_utils as utils class Algorithm(Enum): """The currently possible algorithms.""" fifty_fifty = 'fifty_fifty' L_BFGS_B = 'L-BFGS-B' SLSQP = 'SLSQP' TNC = 'TNC' class Optimizer: def __init__(self, producer, options): self.producer = producer self.options = options self.logger = logging.getLogger("src.Optimizer") self.differentiated_loads = [] self.min_objective_value = float('inf') self.penalty_factor = float(self.options["pen"]) if "pen" in self.options else 1.0 self.algorithm = Algorithm[options["algo"]] # The estimated total produced energy is the last entry of the producer's prediction profile self.objection_value_offset = 0 self.cache = defaultdict(lambda: np.inf) def optimize(self): if self.algorithm in [Algorithm.L_BFGS_B, Algorithm.SLSQP, Algorithm.TNC]: schedule_times, should_keep = self.basinhopping() elif self.algorithm == Algorithm.fifty_fifty: schedule_times, should_keep = self.fifty_fifty() else: should_keep = [True] * len(self.producer.schedule) schedule_times = [s['job'].scheduled_time for s in self.producer.schedule] self._reset_cache() return schedule_times, should_keep def basinhopping(self): self.reset_and_differentiate_loads() self.objection_value_offset = self.producer.prediction.values[-1] tol = self.options["tol"] if "tol" in self.options else 1000.0 eps = self.options["eps"] if "eps" in self.options else 0.001 now = self.producer.manager.clock.now bounds = [(max(s['job'].est, now), s['job'].lst) for s in self.producer.schedule] x0 = np.array([randint(b[0], b[1]) for b in bounds]) kwargs = dict(method=self.algorithm.value, bounds=bounds, options=dict(eps=eps), tol=tol) # The Basin-hopping algorithm is good at finding global minimums. result = optimize.basinhopping(func=self.objective_function, x0=x0, minimizer_kwargs=kwargs) objective_value = result.fun schedule_times = list([int(round(e)) for e in result.x]) should_keep = [True] * len(self.producer.schedule) strictly_positive = self.strictly_positive() if np.isinf(self.min_objective_value) and not strictly_positive: should_keep[-1] = False elif objective_value < self.min_objective_value or strictly_positive: self.min_objective_value = objective_value else: should_keep[-1] = False return schedule_times, should_keep def fifty_fifty(self): should_keep = [True] * len(self.producer.schedule) need_grid_power = not self.strictly_positive() if random() < 0.5 or need_grid_power: should_keep[-1] = False schedule_times = [s['job'].scheduled_time for s in self.producer.schedule] return schedule_times, should_keep def objective_function(self, s: List[float]): """The function we want to minimize. schedule is a List of start times for the jobs in the schedule.""" schedule = [utils.round_to_nearest_60(x) for x in s] cache = self._get_cached_value(schedule) if cache < np.inf: return cache consumed = defaultdict(float) for i, load in enumerate(self.differentiated_loads): for t, p in load.items(): if not math.isnan(schedule[i]): start_time = schedule[i] # Add power, p(t), to consumed at time 'start_time' plus 't' consumed[int(round(start_time + t))] += p # Differentiate and interpolate production profile on the indices found in consumer ts = list(consumed.keys()) produced = utils.differentiate_and_interpolate(self.producer.prediction, ts) ts = sorted(list(set(ts))) diff = 0 penalty = 0 for i, t in enumerate(ts): if i == len(ts) - 1: delta = 0 else: delta = abs(ts[i + 1] - ts[i]) p = produced[t] c = consumed[t] # Multiply difference between produced and consumed in time 't' by the distance to the previous time index. # This way, differences are weighted based on their time span. diff += abs((p - c) * delta) # If consumed is greater than produced, we have negative amount of production power. if c > p: diff_t = abs(p - c) * delta penalty += diff_t # Return the difference between produced and consumed energy, in addition to the penalty for having negative # power levels. Finally, subtract this from the objection_value_offset, i.e. the sum of the produced power. This # is so that the theoretically minimal value is equal to zero (if we consume all produced energy). score = diff + penalty * self.penalty_factor self._cache_value(schedule, score) return score def strictly_positive(self): """Checks if the current schedules yields positive power in every time step (i.e. we always have more produced energy than consumed energy. Mostly the same as the objective function, but terminates faster, and returns a boolean value indicating whether the excess energy function is always positive, given the current schedule.""" schedule = [s['job'].scheduled_time for s in self.producer.schedule] self.reset_and_differentiate_loads() consumed = defaultdict(float) for i, load in enumerate(self.differentiated_loads): for t, p in load.items(): offset = schedule[i] consumed[int(round(t + offset))] += p ts = list(consumed.keys()) produced = utils.differentiate_and_interpolate(self.producer.prediction, ts) ts.extend(list(produced.index.values)) ts = sorted(ts) for i, t in enumerate(ts): if consumed[t] > produced[t]: return False return True # def reset_and_differentiate_loads(self): """Re-compute the differentiated and interpolated load profiles""" indices = list(set(chain.from_iterable( map(lambda x: self.producer.schedule[x]['job'].load_profile.index.values.tolist(), range(0, len(self.producer.schedule)))))) indices.sort() # Interpolate and differentiate load profiles before optimization. self.differentiated_loads = [] for s in self.producer.schedule: self.differentiated_loads.append(utils.differentiate(s['job'].load_profile)) def _reset_cache(self): self.cache = defaultdict(lambda: np.inf) def _key(self, schedule): return "".join([str(int(round(f))) + ";" for f in schedule]) def _get_cached_value(self, schedule): return self.cache[self._key(schedule)] def _cache_value(self, schedule, value): self.cache[self._key(schedule)] = value
[ 1, 1053, 12183, 13, 5215, 5844, 13, 3166, 16250, 1053, 2322, 8977, 13, 3166, 14115, 1053, 1174, 398, 13, 3166, 4256, 8504, 1053, 9704, 13, 3166, 4036, 1053, 20088, 524, 29892, 4036, 13, 3166, 19229, 1053, 2391, 13, 13, 5215, 12655, 408, 7442, 13, 3166, 4560, 2272, 1053, 24656, 13, 5215, 3667, 29889, 20640, 3950, 29918, 13239, 408, 3667, 29879, 13, 13, 13, 1990, 29068, 29898, 16854, 1125, 13, 1678, 9995, 1576, 5279, 1950, 14009, 1213, 15945, 13, 1678, 19044, 29918, 28491, 1017, 353, 525, 28491, 1017, 29918, 28491, 1017, 29915, 13, 1678, 365, 29918, 28062, 10749, 29918, 29933, 353, 525, 29931, 29899, 28062, 10749, 29899, 29933, 29915, 13, 1678, 317, 8547, 29984, 29925, 353, 525, 29903, 8547, 29984, 29925, 29915, 13, 1678, 323, 15868, 353, 525, 29911, 15868, 29915, 13, 13, 13, 1990, 20693, 326, 3950, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 14297, 29892, 3987, 1125, 13, 4706, 1583, 29889, 5498, 2265, 353, 14297, 13, 4706, 1583, 29889, 6768, 353, 3987, 13, 4706, 1583, 29889, 21707, 353, 12183, 29889, 657, 16363, 703, 4351, 29889, 20624, 326, 3950, 1159, 13, 4706, 1583, 29889, 29881, 8349, 7268, 630, 29918, 18132, 353, 5159, 13, 4706, 1583, 29889, 1195, 29918, 3318, 573, 29918, 1767, 353, 5785, 877, 7192, 1495, 13, 4706, 1583, 29889, 2238, 18745, 29918, 19790, 353, 5785, 29898, 1311, 29889, 6768, 3366, 2238, 20068, 565, 376, 2238, 29908, 297, 1583, 29889, 6768, 1683, 29871, 29896, 29889, 29900, 13, 4706, 1583, 29889, 20567, 353, 29068, 29961, 6768, 3366, 284, 1484, 3108, 29962, 13, 13, 4706, 396, 450, 15899, 3001, 7371, 5864, 338, 278, 1833, 6251, 310, 278, 14297, 29915, 29879, 18988, 8722, 13, 4706, 1583, 29889, 711, 6929, 29918, 1767, 29918, 10289, 353, 29871, 29900, 13, 4706, 1583, 29889, 8173, 353, 2322, 8977, 29898, 2892, 29901, 7442, 29889, 7192, 29897, 13, 13, 1678, 822, 24656, 29898, 1311, 1125, 13, 4706, 565, 1583, 29889, 20567, 297, 518, 22461, 4540, 29889, 29931, 29918, 28062, 10749, 29918, 29933, 29892, 29068, 29889, 29903, 8547, 29984, 29925, 29892, 29068, 29889, 29911, 15868, 5387, 13, 9651, 20410, 29918, 3706, 29892, 881, 29918, 17462, 353, 1583, 29889, 6500, 21307, 3262, 580, 13, 13, 4706, 25342, 1583, 29889, 20567, 1275, 29068, 29889, 28491, 1017, 29918, 28491, 1017, 29901, 13, 9651, 20410, 29918, 3706, 29892, 881, 29918, 17462, 353, 1583, 29889, 28491, 1017, 29918, 28491, 1017, 580, 13, 13, 4706, 1683, 29901, 13, 9651, 881, 29918, 17462, 353, 518, 5574, 29962, 334, 7431, 29898, 1311, 29889, 5498, 2265, 29889, 816, 11272, 29897, 13, 9651, 20410, 29918, 3706, 353, 518, 29879, 1839, 9057, 13359, 816, 14989, 29918, 2230, 363, 269, 297, 1583, 29889, 5498, 2265, 29889, 816, 11272, 29962, 13, 13, 4706, 1583, 3032, 12071, 29918, 8173, 580, 13, 13, 4706, 736, 20410, 29918, 3706, 29892, 881, 29918, 17462, 13, 13, 1678, 822, 2362, 21307, 3262, 29898, 1311, 1125, 13, 4706, 1583, 29889, 12071, 29918, 392, 29918, 29881, 8349, 7268, 403, 29918, 18132, 580, 13, 4706, 1583, 29889, 711, 6929, 29918, 1767, 29918, 10289, 353, 1583, 29889, 5498, 2265, 29889, 11965, 2463, 29889, 5975, 14352, 29896, 29962, 13, 4706, 304, 29880, 353, 1583, 29889, 6768, 3366, 25027, 3108, 565, 376, 25027, 29908, 297, 1583, 29889, 6768, 1683, 29871, 29896, 29900, 29900, 29900, 29889, 29900, 13, 4706, 321, 567, 353, 1583, 29889, 6768, 3366, 8961, 3108, 565, 376, 8961, 29908, 297, 1583, 29889, 6768, 1683, 29871, 29900, 29889, 29900, 29900, 29896, 13, 4706, 1286, 353, 1583, 29889, 5498, 2265, 29889, 12847, 29889, 13058, 29889, 3707, 13, 4706, 13451, 353, 17288, 3317, 29898, 29879, 1839, 9057, 13359, 342, 29892, 1286, 511, 269, 1839, 9057, 13359, 20155, 29897, 363, 269, 297, 1583, 29889, 5498, 2265, 29889, 816, 11272, 29962, 13, 4706, 921, 29900, 353, 7442, 29889, 2378, 4197, 9502, 524, 29898, 29890, 29961, 29900, 1402, 289, 29961, 29896, 2314, 363, 289, 297, 13451, 2314, 13, 4706, 9049, 5085, 353, 9657, 29898, 5696, 29922, 1311, 29889, 20567, 29889, 1767, 29892, 13451, 29922, 23687, 29892, 3987, 29922, 8977, 29898, 8961, 29922, 8961, 511, 304, 29880, 29922, 25027, 29897, 13, 13, 4706, 396, 450, 4886, 262, 29899, 1251, 3262, 5687, 338, 1781, 472, 9138, 5534, 6260, 6762, 29889, 13, 4706, 1121, 353, 24656, 29889, 6500, 21307, 3262, 29898, 9891, 29922, 1311, 29889, 3318, 573, 29918, 2220, 29892, 921, 29900, 29922, 29916, 29900, 29892, 6260, 3950, 29918, 19290, 29922, 19290, 29897, 13, 4706, 12091, 29918, 1767, 353, 1121, 29889, 7692, 13, 4706, 20410, 29918, 3706, 353, 1051, 4197, 524, 29898, 14486, 29898, 29872, 876, 363, 321, 297, 1121, 29889, 29916, 2314, 13, 13, 4706, 881, 29918, 17462, 353, 518, 5574, 29962, 334, 7431, 29898, 1311, 29889, 5498, 2265, 29889, 816, 11272, 29897, 13, 4706, 18719, 29918, 1066, 3321, 353, 1583, 29889, 710, 919, 368, 29918, 1066, 3321, 580, 13, 13, 4706, 565, 7442, 29889, 275, 7192, 29898, 1311, 29889, 1195, 29918, 3318, 573, 29918, 1767, 29897, 322, 451, 18719, 29918, 1066, 3321, 29901, 13, 9651, 881, 29918, 17462, 14352, 29896, 29962, 353, 7700, 13, 4706, 25342, 12091, 29918, 1767, 529, 1583, 29889, 1195, 29918, 3318, 573, 29918, 1767, 470, 18719, 29918, 1066, 3321, 29901, 13, 9651, 1583, 29889, 1195, 29918, 3318, 573, 29918, 1767, 353, 12091, 29918, 1767, 13, 4706, 1683, 29901, 13, 9651, 881, 29918, 17462, 14352, 29896, 29962, 353, 7700, 13, 13, 4706, 736, 20410, 29918, 3706, 29892, 881, 29918, 17462, 13, 13, 1678, 822, 19044, 29918, 28491, 1017, 29898, 1311, 1125, 13, 4706, 881, 29918, 17462, 353, 518, 5574, 29962, 334, 7431, 29898, 1311, 29889, 5498, 2265, 29889, 816, 11272, 29897, 13, 4706, 817, 29918, 7720, 29918, 13519, 353, 451, 1583, 29889, 710, 919, 368, 29918, 1066, 3321, 580, 13, 4706, 565, 4036, 580, 529, 29871, 29900, 29889, 29945, 470, 817, 29918, 7720, 29918, 13519, 29901, 13, 9651, 881, 29918, 17462, 14352, 29896, 29962, 353, 7700, 13, 4706, 20410, 29918, 3706, 353, 518, 29879, 1839, 9057, 13359, 816, 14989, 29918, 2230, 363, 269, 297, 1583, 29889, 5498, 2265, 29889, 816, 11272, 29962, 13, 4706, 736, 20410, 29918, 3706, 29892, 881, 29918, 17462, 13, 13, 1678, 822, 12091, 29918, 2220, 29898, 1311, 29892, 269, 29901, 2391, 29961, 7411, 29962, 1125, 13, 4706, 9995, 1576, 740, 591, 864, 304, 6260, 675, 29889, 20410, 338, 263, 2391, 310, 1369, 3064, 363, 278, 17643, 297, 278, 20410, 1213, 15945, 13, 4706, 20410, 353, 518, 13239, 29889, 14486, 29918, 517, 29918, 28502, 342, 29918, 29953, 29900, 29898, 29916, 29897, 363, 921, 297, 269, 29962, 13, 4706, 7090, 353, 1583, 3032, 657, 29918, 29883, 3791, 29918, 1767, 29898, 816, 11272, 29897, 13, 4706, 565, 7090, 529, 7442, 29889, 7192, 29901, 13, 9651, 736, 7090, 13, 13, 4706, 11233, 287, 353, 2322, 8977, 29898, 7411, 29897, 13, 4706, 363, 474, 29892, 2254, 297, 26985, 29898, 1311, 29889, 29881, 8349, 7268, 630, 29918, 18132, 1125, 13, 9651, 363, 260, 29892, 282, 297, 2254, 29889, 7076, 7295, 13, 18884, 565, 451, 5844, 29889, 275, 13707, 29898, 816, 11272, 29961, 29875, 29962, 1125, 13, 462, 1678, 1369, 29918, 2230, 353, 20410, 29961, 29875, 29962, 13, 462, 1678, 396, 3462, 3081, 29892, 282, 29898, 29873, 511, 304, 11233, 287, 472, 931, 525, 2962, 29918, 2230, 29915, 2298, 525, 29873, 29915, 13, 462, 1678, 11233, 287, 29961, 524, 29898, 14486, 29898, 2962, 29918, 2230, 718, 260, 28166, 4619, 282, 13, 13, 4706, 396, 360, 8349, 7268, 403, 322, 20064, 403, 5802, 8722, 373, 278, 16285, 1476, 297, 21691, 13, 4706, 18696, 353, 1051, 29898, 25978, 287, 29889, 8149, 3101, 13, 4706, 7371, 353, 3667, 29879, 29889, 29881, 8349, 7268, 403, 29918, 392, 29918, 1639, 3733, 403, 29898, 1311, 29889, 5498, 2265, 29889, 11965, 2463, 29892, 18696, 29897, 13, 4706, 18696, 353, 12705, 29898, 1761, 29898, 842, 29898, 1372, 4961, 13, 13, 4706, 2923, 353, 29871, 29900, 13, 4706, 27368, 353, 29871, 29900, 13, 4706, 363, 474, 29892, 260, 297, 26985, 29898, 1372, 1125, 13, 9651, 565, 474, 1275, 7431, 29898, 1372, 29897, 448, 29871, 29896, 29901, 13, 18884, 19471, 353, 29871, 29900, 13, 9651, 1683, 29901, 13, 18884, 19471, 353, 6425, 29898, 1372, 29961, 29875, 718, 29871, 29896, 29962, 448, 18696, 29961, 29875, 2314, 13, 13, 9651, 282, 353, 7371, 29961, 29873, 29962, 13, 9651, 274, 353, 11233, 287, 29961, 29873, 29962, 13, 13, 9651, 396, 9683, 666, 368, 4328, 1546, 7371, 322, 11233, 287, 297, 931, 525, 29873, 29915, 491, 278, 5418, 304, 278, 3517, 931, 2380, 29889, 13, 9651, 396, 910, 982, 29892, 12651, 526, 7688, 287, 2729, 373, 1009, 931, 10638, 29889, 13, 9651, 2923, 4619, 6425, 3552, 29886, 448, 274, 29897, 334, 19471, 29897, 13, 13, 9651, 396, 960, 11233, 287, 338, 7621, 1135, 7371, 29892, 591, 505, 8178, 5253, 310, 5802, 3081, 29889, 13, 9651, 565, 274, 1405, 282, 29901, 13, 18884, 2923, 29918, 29873, 353, 6425, 29898, 29886, 448, 274, 29897, 334, 19471, 13, 18884, 27368, 4619, 2923, 29918, 29873, 13, 13, 4706, 396, 7106, 278, 4328, 1546, 7371, 322, 11233, 287, 5864, 29892, 297, 6124, 304, 278, 27368, 363, 2534, 8178, 13, 4706, 396, 3081, 11174, 29889, 9788, 29892, 23197, 445, 515, 278, 704, 6929, 29918, 1767, 29918, 10289, 29892, 474, 29889, 29872, 29889, 278, 2533, 310, 278, 7371, 3081, 29889, 910, 13, 4706, 396, 338, 577, 393, 278, 17237, 1711, 13114, 995, 338, 5186, 304, 5225, 313, 361, 591, 29151, 599, 7371, 5864, 467, 13, 4706, 8158, 353, 2923, 718, 27368, 334, 1583, 29889, 2238, 18745, 29918, 19790, 13, 4706, 1583, 3032, 8173, 29918, 1767, 29898, 816, 11272, 29892, 8158, 29897, 13, 4706, 736, 8158, 13, 13, 1678, 822, 18719, 29918, 1066, 3321, 29898, 1311, 1125, 13, 4706, 9995, 5596, 29879, 565, 278, 1857, 28598, 2540, 17498, 6374, 3081, 297, 1432, 931, 4331, 313, 29875, 29889, 29872, 29889, 591, 2337, 505, 901, 7371, 13, 4706, 5864, 1135, 11233, 287, 5864, 29889, 7849, 368, 278, 1021, 408, 278, 12091, 740, 29892, 541, 6624, 1078, 8473, 29892, 322, 3639, 263, 13, 4706, 7223, 995, 23941, 3692, 278, 19163, 5864, 740, 338, 2337, 6374, 29892, 2183, 278, 1857, 20410, 1213, 15945, 13, 13, 4706, 20410, 353, 518, 29879, 1839, 9057, 13359, 816, 14989, 29918, 2230, 363, 269, 297, 1583, 29889, 5498, 2265, 29889, 816, 11272, 29962, 13, 4706, 1583, 29889, 12071, 29918, 392, 29918, 29881, 8349, 7268, 403, 29918, 18132, 580, 13, 4706, 11233, 287, 353, 2322, 8977, 29898, 7411, 29897, 13, 4706, 363, 474, 29892, 2254, 297, 26985, 29898, 1311, 29889, 29881, 8349, 7268, 630, 29918, 18132, 1125, 13, 9651, 363, 260, 29892, 282, 297, 2254, 29889, 7076, 7295, 13, 18884, 9210, 353, 20410, 29961, 29875, 29962, 13, 18884, 11233, 287, 29961, 524, 29898, 14486, 29898, 29873, 718, 9210, 28166, 4619, 282, 13, 13, 4706, 18696, 353, 1051, 29898, 25978, 287, 29889, 8149, 3101, 13, 4706, 7371, 353, 3667, 29879, 29889, 29881, 8349, 7268, 403, 29918, 392, 29918, 1639, 3733, 403, 29898, 1311, 29889, 5498, 2265, 29889, 11965, 2463, 29892, 18696, 29897, 13, 4706, 18696, 29889, 21843, 29898, 1761, 29898, 5498, 1133, 29889, 2248, 29889, 5975, 876, 13, 4706, 18696, 353, 12705, 29898, 1372, 29897, 13, 4706, 363, 474, 29892, 260, 297, 26985, 29898, 1372, 1125, 13, 9651, 565, 11233, 287, 29961, 29873, 29962, 1405, 7371, 29961, 29873, 5387, 13, 18884, 736, 7700, 13, 4706, 736, 5852, 13, 13, 1678, 396, 13, 1678, 822, 10092, 29918, 392, 29918, 29881, 8349, 7268, 403, 29918, 18132, 29898, 1311, 1125, 13, 4706, 9995, 1123, 29899, 26017, 278, 17473, 630, 322, 20064, 630, 2254, 28723, 15945, 29908, 13, 13, 4706, 16285, 353, 1051, 29898, 842, 29898, 14153, 29889, 3166, 29918, 1524, 519, 29898, 13, 9651, 2910, 29898, 2892, 921, 29901, 1583, 29889, 5498, 2265, 29889, 816, 11272, 29961, 29916, 22322, 9057, 13359, 1359, 29918, 10185, 29889, 2248, 29889, 5975, 29889, 25027, 391, 3285, 13, 18884, 3464, 29898, 29900, 29892, 7431, 29898, 1311, 29889, 5498, 2265, 29889, 816, 11272, 13697, 876, 13, 4706, 16285, 29889, 6605, 580, 13, 13, 4706, 396, 4124, 3733, 403, 322, 17473, 403, 2254, 28723, 1434, 13883, 29889, 13, 4706, 1583, 29889, 29881, 8349, 7268, 630, 29918, 18132, 353, 5159, 13, 4706, 363, 269, 297, 1583, 29889, 5498, 2265, 29889, 816, 11272, 29901, 13, 9651, 1583, 29889, 29881, 8349, 7268, 630, 29918, 18132, 29889, 4397, 29898, 13239, 29889, 29881, 8349, 7268, 403, 29898, 29879, 1839, 9057, 13359, 1359, 29918, 10185, 876, 13, 13, 1678, 822, 903, 12071, 29918, 8173, 29898, 1311, 1125, 13, 4706, 1583, 29889, 8173, 353, 2322, 8977, 29898, 2892, 29901, 7442, 29889, 7192, 29897, 13, 13, 1678, 822, 903, 1989, 29898, 1311, 29892, 20410, 1125, 13, 4706, 736, 376, 1642, 7122, 4197, 710, 29898, 524, 29898, 14486, 29898, 29888, 4961, 718, 12159, 29908, 363, 285, 297, 20410, 2314, 13, 13, 1678, 822, 903, 657, 29918, 29883, 3791, 29918, 1767, 29898, 1311, 29892, 20410, 1125, 13, 4706, 736, 1583, 29889, 8173, 29961, 1311, 3032, 1989, 29898, 816, 11272, 4638, 13, 13, 1678, 822, 903, 8173, 29918, 1767, 29898, 1311, 29892, 20410, 29892, 995, 1125, 13, 4706, 1583, 29889, 8173, 29961, 1311, 3032, 1989, 29898, 816, 11272, 4638, 353, 995, 13, 2 ]
tests/IntegrationTest.py
CBurbidge/Cloudfigure
1
1611540
import unittest import cloudfigure as cf from unittest import mock import os, json from os import listdir from os.path import isfile, join class MockCfn: def __init__(self, directory_path): self.calls = {} describe_files = [f for f in listdir(directory_path) if f.startswith("DescribeStack_")] for file_name in describe_files: name = file_name[len("DescribeStack_"):(len(file_name) - len(".json"))] self.calls[name] = json.loads(cf.read_all_text(join(directory_path, file_name))) def describe_stacks(self, StackName): if not StackName in self.calls: raise Exception("Doesnt exist") return self.calls[StackName] class MockKms: def __init__(self, directory_path): kms_calls_text = cf.read_all_text(os.path.join(directory_path, "KmsCalls.json")) self.calls = json.loads(kms_calls_text) for call_key in self.calls.keys(): to_change = self.calls[call_key]["Plaintext"] self.calls[call_key]["Plaintext"] = to_change.encode("utf-8") def decrypt(self, CiphertextBlob): blob = CiphertextBlob.decode("utf-8") if not blob in self.calls: raise Exception("Doesnt exist") return self.calls[blob] class MockBoto: def __init__(self, kms, cfn): self.kms = kms self.cfn = cfn def client(self, service): if service == "cloudformation": return self.cfn if service == "kms": return self.kms raise Exception("shouldn't be asking for this") class IntegrationTest(unittest.TestCase): def __init__(self, directory_path): self.working_dir = directory_path self.cfn = MockCfn(directory_path) self.kms = MockKms(directory_path) stack_ids_text = cf.read_all_text(os.path.join(directory_path, "StackIds.json")) self.stack_ids = json.loads(stack_ids_text) config_path = os.path.join(directory_path, "Cloudfigure.json") self.cloudfigure_config = cf.read_all_text(config_path) # assert against substituted files expected_files = {} expected_files_in_dir = [f for f in listdir(directory_path) if f.startswith("ExpectedFile_")] for file_name in expected_files_in_dir: name = file_name[len("ExpectedFile_"):] path = join(directory_path, name) expected_files[path] = cf.read_all_text(join(directory_path, file_name)) self.expected_files = expected_files self.writes = {} cf.write_all_text = self.mock_write_all_text super().__init__() def mock_write_all_text(self, path, content): self.writes[path] = content def run(self): self.result = cf.run_cloudfigure(MockBoto(self.kms, self.cfn), self.cloudfigure_config, self.stack_ids, self.working_dir) return self.result def assert_expected_files(self): for expected_write in self.expected_files.keys(): if expected_write not in self.writes: self.assertFalse(True, "file was written to which was not expected " + expected_write) actual = self.writes[expected_write] expected = self.expected_files[expected_write] self.assertEqual(actual, expected)
[ 1, 1053, 443, 27958, 13, 5215, 9570, 4532, 408, 274, 29888, 13, 3166, 443, 27958, 1053, 11187, 13, 5215, 2897, 29892, 4390, 13, 3166, 2897, 1053, 1051, 3972, 13, 3166, 2897, 29889, 2084, 1053, 338, 1445, 29892, 5988, 13, 13, 1990, 26297, 29907, 9144, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3884, 29918, 2084, 1125, 13, 4706, 1583, 29889, 29883, 4293, 353, 6571, 13, 4706, 8453, 29918, 5325, 353, 518, 29888, 363, 285, 297, 1051, 3972, 29898, 12322, 29918, 2084, 29897, 565, 285, 29889, 27382, 2541, 703, 4002, 29581, 7264, 29918, 13531, 13, 4706, 363, 934, 29918, 978, 297, 8453, 29918, 5325, 29901, 13, 9651, 1024, 353, 934, 29918, 978, 29961, 2435, 703, 4002, 29581, 7264, 27508, 1125, 29898, 2435, 29898, 1445, 29918, 978, 29897, 448, 7431, 17350, 3126, 5783, 29962, 13, 9651, 1583, 29889, 29883, 4293, 29961, 978, 29962, 353, 4390, 29889, 18132, 29898, 6854, 29889, 949, 29918, 497, 29918, 726, 29898, 7122, 29898, 12322, 29918, 2084, 29892, 934, 29918, 978, 4961, 13, 268, 13, 1678, 822, 8453, 29918, 1429, 29879, 29898, 1311, 29892, 10292, 1170, 1125, 13, 4706, 565, 451, 10292, 1170, 297, 1583, 29889, 29883, 4293, 29901, 13, 9651, 12020, 8960, 703, 25125, 593, 1863, 1159, 13, 4706, 736, 1583, 29889, 29883, 4293, 29961, 7264, 1170, 29962, 13, 13, 1990, 26297, 29968, 1516, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3884, 29918, 2084, 1125, 13, 4706, 413, 1516, 29918, 29883, 4293, 29918, 726, 353, 274, 29888, 29889, 949, 29918, 497, 29918, 726, 29898, 359, 29889, 2084, 29889, 7122, 29898, 12322, 29918, 2084, 29892, 376, 29968, 1516, 29907, 4293, 29889, 3126, 5783, 13, 4706, 1583, 29889, 29883, 4293, 353, 4390, 29889, 18132, 29898, 29895, 1516, 29918, 29883, 4293, 29918, 726, 29897, 13, 4706, 363, 1246, 29918, 1989, 297, 1583, 29889, 29883, 4293, 29889, 8149, 7295, 13, 9651, 304, 29918, 3167, 353, 1583, 29889, 29883, 4293, 29961, 4804, 29918, 1989, 29962, 3366, 29925, 7420, 726, 3108, 13, 9651, 1583, 29889, 29883, 4293, 29961, 4804, 29918, 1989, 29962, 3366, 29925, 7420, 726, 3108, 353, 304, 29918, 3167, 29889, 12508, 703, 9420, 29899, 29947, 1159, 13, 13, 268, 13, 1678, 822, 1602, 4641, 29898, 1311, 29892, 11402, 8096, 726, 29933, 2127, 1125, 13, 4706, 23755, 353, 11402, 8096, 726, 29933, 2127, 29889, 13808, 703, 9420, 29899, 29947, 1159, 13, 4706, 565, 451, 23755, 297, 1583, 29889, 29883, 4293, 29901, 13, 9651, 12020, 8960, 703, 25125, 593, 1863, 1159, 13, 4706, 736, 1583, 29889, 29883, 4293, 29961, 10054, 29962, 13, 13, 1990, 26297, 29933, 3747, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 413, 1516, 29892, 274, 9144, 1125, 13, 4706, 1583, 29889, 29895, 1516, 353, 413, 1516, 13, 4706, 1583, 29889, 6854, 29876, 353, 274, 9144, 13, 13, 1678, 822, 3132, 29898, 1311, 29892, 2669, 1125, 13, 4706, 565, 2669, 1275, 376, 9274, 5404, 1115, 13, 9651, 736, 1583, 29889, 6854, 29876, 13, 4706, 565, 2669, 1275, 376, 29895, 1516, 1115, 13, 9651, 736, 1583, 29889, 29895, 1516, 13, 4706, 12020, 8960, 703, 9344, 29876, 29915, 29873, 367, 6721, 363, 445, 1159, 13, 13, 1990, 17100, 362, 3057, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3884, 29918, 2084, 1125, 13, 4706, 1583, 29889, 22899, 29918, 3972, 353, 3884, 29918, 2084, 13, 4706, 1583, 29889, 6854, 29876, 353, 26297, 29907, 9144, 29898, 12322, 29918, 2084, 29897, 13, 4706, 1583, 29889, 29895, 1516, 353, 26297, 29968, 1516, 29898, 12322, 29918, 2084, 29897, 13, 4706, 5096, 29918, 4841, 29918, 726, 353, 274, 29888, 29889, 949, 29918, 497, 29918, 726, 29898, 359, 29889, 2084, 29889, 7122, 29898, 12322, 29918, 2084, 29892, 376, 7264, 21943, 29889, 3126, 5783, 13, 4706, 1583, 29889, 1429, 29918, 4841, 353, 4390, 29889, 18132, 29898, 1429, 29918, 4841, 29918, 726, 29897, 13, 4706, 2295, 29918, 2084, 353, 2897, 29889, 2084, 29889, 7122, 29898, 12322, 29918, 2084, 29892, 376, 20442, 4532, 29889, 3126, 1159, 13, 4706, 1583, 29889, 9274, 4532, 29918, 2917, 353, 274, 29888, 29889, 949, 29918, 497, 29918, 726, 29898, 2917, 29918, 2084, 29897, 13, 13, 4706, 396, 4974, 2750, 5960, 277, 3860, 2066, 13, 4706, 3806, 29918, 5325, 353, 6571, 13, 4706, 3806, 29918, 5325, 29918, 262, 29918, 3972, 353, 518, 29888, 363, 285, 297, 1051, 3972, 29898, 12322, 29918, 2084, 29897, 565, 285, 29889, 27382, 2541, 703, 1252, 6021, 2283, 29918, 13531, 13, 4706, 363, 934, 29918, 978, 297, 3806, 29918, 5325, 29918, 262, 29918, 3972, 29901, 13, 9651, 1024, 353, 934, 29918, 978, 29961, 2435, 703, 1252, 6021, 2283, 27508, 1125, 29962, 13, 9651, 2224, 353, 5988, 29898, 12322, 29918, 2084, 29892, 1024, 29897, 13, 9651, 3806, 29918, 5325, 29961, 2084, 29962, 353, 274, 29888, 29889, 949, 29918, 497, 29918, 726, 29898, 7122, 29898, 12322, 29918, 2084, 29892, 934, 29918, 978, 876, 13, 4706, 1583, 29889, 9684, 29918, 5325, 353, 3806, 29918, 5325, 13, 13, 4706, 1583, 29889, 8231, 267, 353, 6571, 13, 4706, 274, 29888, 29889, 3539, 29918, 497, 29918, 726, 353, 1583, 29889, 17640, 29918, 3539, 29918, 497, 29918, 726, 13, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 13, 1678, 822, 11187, 29918, 3539, 29918, 497, 29918, 726, 29898, 1311, 29892, 2224, 29892, 2793, 1125, 13, 4706, 1583, 29889, 8231, 267, 29961, 2084, 29962, 353, 2793, 13, 13, 1678, 822, 1065, 29898, 1311, 1125, 13, 4706, 1583, 29889, 2914, 353, 274, 29888, 29889, 3389, 29918, 9274, 4532, 29898, 18680, 29933, 3747, 29898, 1311, 29889, 29895, 1516, 29892, 1583, 29889, 6854, 29876, 511, 1583, 29889, 9274, 4532, 29918, 2917, 29892, 1583, 29889, 1429, 29918, 4841, 29892, 1583, 29889, 22899, 29918, 3972, 29897, 13, 4706, 736, 1583, 29889, 2914, 13, 13, 1678, 822, 4974, 29918, 9684, 29918, 5325, 29898, 1311, 1125, 13, 4706, 363, 3806, 29918, 3539, 297, 1583, 29889, 9684, 29918, 5325, 29889, 8149, 7295, 13, 9651, 565, 3806, 29918, 3539, 451, 297, 1583, 29889, 8231, 267, 29901, 13, 18884, 1583, 29889, 9294, 8824, 29898, 5574, 29892, 376, 1445, 471, 3971, 304, 607, 471, 451, 3806, 376, 718, 3806, 29918, 3539, 29897, 13, 9651, 3935, 353, 1583, 29889, 8231, 267, 29961, 9684, 29918, 3539, 29962, 13, 9651, 3806, 353, 1583, 29889, 9684, 29918, 5325, 29961, 9684, 29918, 3539, 29962, 13, 9651, 1583, 29889, 9294, 9843, 29898, 19304, 29892, 3806, 29897, 13, 13, 13, 2 ]
ww/api/admin.py
basilpork/watchword
1
76661
from django.contrib import admin from ww.api.models import Watch, Ping, Flare, Launch @admin.register(Watch) class WatchAdmin(admin.ModelAdmin): list_display = ('id', 'name', 'created', 'word', 'state', 'status', 'last_ping',) @admin.register(Ping) class PingAdmin(admin.ModelAdmin): list_display = ('id', 'created', 'watch_name', 'method', 'user_agent', 'remote_addr',) def watch_name(self, ping): return ping.watch.name @admin.register(Flare) class FlareAdmin(admin.ModelAdmin): list_display = ('id', 'signal', 'config',) @admin.register(Launch) class LaunchAdmin(admin.ModelAdmin): list_display = ('id', 'created', 'flare', 'watch', 'trigger_state', 'message',)
[ 1, 515, 9557, 29889, 21570, 1053, 4113, 13, 13, 3166, 7673, 29889, 2754, 29889, 9794, 1053, 24274, 29892, 349, 292, 29892, 383, 8663, 29892, 997, 3322, 13, 13, 29992, 6406, 29889, 9573, 29898, 24709, 29897, 13, 1990, 24274, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 1051, 29918, 4990, 353, 6702, 333, 742, 525, 978, 742, 525, 11600, 742, 525, 1742, 742, 525, 3859, 742, 525, 4882, 742, 525, 4230, 29918, 15702, 742, 29897, 13, 13, 29992, 6406, 29889, 9573, 29898, 29925, 292, 29897, 13, 1990, 349, 292, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 1051, 29918, 4990, 353, 6702, 333, 742, 525, 11600, 742, 525, 12344, 29918, 978, 742, 525, 5696, 742, 525, 1792, 29918, 14748, 742, 525, 16674, 29918, 10030, 742, 29897, 13, 13, 1678, 822, 6505, 29918, 978, 29898, 1311, 29892, 24543, 1125, 13, 4706, 736, 24543, 29889, 12344, 29889, 978, 13, 13, 29992, 6406, 29889, 9573, 29898, 29943, 8663, 29897, 13, 1990, 383, 8663, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 1051, 29918, 4990, 353, 6702, 333, 742, 525, 25436, 742, 525, 2917, 742, 29897, 13, 13, 29992, 6406, 29889, 9573, 29898, 17641, 29897, 13, 1990, 997, 3322, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 1051, 29918, 4990, 353, 6702, 333, 742, 525, 11600, 742, 525, 29888, 8663, 742, 525, 12344, 742, 525, 21001, 29918, 3859, 742, 525, 4906, 742, 29897, 13, 2 ]
tests/test_token.py
codingjerk/visiology-py
1
134071
from datetime import datetime from typing import Callable from unittest.mock import Mock, patch import visiology_py as vi from tests.fixtures import * def test_token_expires( expire_date: datetime, before_expire_date: datetime, after_expire_date: datetime, fixed_datetime: Callable[[datetime], Mock], ) -> None: token = vi.AuthorizationToken( type="Something", secret="Anything", expires_at=expire_date, ) with patch( "visiology_py.authorization_token.datetime", fixed_datetime(after_expire_date), ): assert token.is_expired() with patch( "visiology_py.authorization_token.datetime", fixed_datetime(before_expire_date), ): assert not token.is_expired()
[ 1, 515, 12865, 1053, 12865, 13, 3166, 19229, 1053, 8251, 519, 13, 3166, 443, 27958, 29889, 17640, 1053, 26297, 29892, 13261, 13, 13, 5215, 1998, 29875, 3002, 29918, 2272, 408, 3516, 13, 3166, 6987, 29889, 7241, 486, 1973, 1053, 334, 13, 13, 13, 1753, 1243, 29918, 6979, 29918, 4548, 2658, 29898, 13, 1678, 1518, 533, 29918, 1256, 29901, 12865, 29892, 13, 1678, 1434, 29918, 4548, 533, 29918, 1256, 29901, 12865, 29892, 13, 1678, 1156, 29918, 4548, 533, 29918, 1256, 29901, 12865, 29892, 13, 1678, 4343, 29918, 12673, 29901, 8251, 519, 8999, 12673, 1402, 26297, 1402, 13, 29897, 1599, 6213, 29901, 13, 1678, 5993, 353, 3516, 29889, 25471, 6066, 29898, 13, 4706, 1134, 543, 16804, 613, 13, 4706, 7035, 543, 10773, 1918, 613, 13, 4706, 1518, 2658, 29918, 271, 29922, 4548, 533, 29918, 1256, 29892, 13, 1678, 1723, 13, 13, 1678, 411, 13261, 29898, 13, 4706, 376, 1730, 29875, 3002, 29918, 2272, 29889, 8921, 2133, 29918, 6979, 29889, 12673, 613, 13, 4706, 4343, 29918, 12673, 29898, 7045, 29918, 4548, 533, 29918, 1256, 511, 13, 268, 1125, 13, 4706, 4974, 5993, 29889, 275, 29918, 4548, 2859, 580, 13, 13, 1678, 411, 13261, 29898, 13, 4706, 376, 1730, 29875, 3002, 29918, 2272, 29889, 8921, 2133, 29918, 6979, 29889, 12673, 613, 13, 4706, 4343, 29918, 12673, 29898, 11083, 29918, 4548, 533, 29918, 1256, 511, 13, 268, 1125, 13, 4706, 4974, 451, 5993, 29889, 275, 29918, 4548, 2859, 580, 13, 2 ]
modules/mbox/uatg_mbox_divu_insts_01.py
incoresemi/chromite_uatg_tests
3
86789
from random import choice, getrandbits from typing import Dict, List, Union, Any from uatg.instruction_constants import base_reg_file, mext_instructions from yapsy.IPlugin import IPlugin class uatg_mbox_divu_insts_01(IPlugin): """ The class contains the division instructions ( div, divu, divw, divuw, rem, remu, remuw, remw) """ def __init__(self) -> None: super().__init__() self.isa = 'RV32I' self.isa_bit = 'rv32' self.offset_inc = 4 self.xlen = 32 self.num_rand_var = 100 def execute(self, core_yaml, isa_yaml) -> bool: self.isa = isa_yaml['hart0']['ISA'] if 'RV32' in self.isa: self.isa_bit = 'rv32' self.xlen = 32 self.offset_inc = 4 else: self.isa_bit = 'rv64' self.xlen = 64 self.offset_inc = 8 if 'M' in self.isa or 'Zmmul' in self.isa: return True else: return False def generate_asm(self) -> List[Dict[str, Union[Union[str, list], Any]]]: """ Generates the ASM instructions for divider and stores both quotient and remainder in rd and rd1 reg respectively. It creates asm for the following instructions based upon ISA div[w], divu[w], rem[w], remu[w] """ # rd, rs1, rs2 iterate through all the 32 register combinations for # every instruction in m_extension_instructions doc_string = 'Test generates the operation of div, divu, divuw ' \ 'instructions' reg_file = base_reg_file.copy() reg_file.remove('x0') instructions = [] if 'M' in self.isa: instructions += mext_instructions[f'{self.isa_bit}-div'] instruction_list = [x for x in instructions if 'u' in x] for inst in instruction_list: for rs1 in reg_file: asm_code = '#' * 5 + ' divu[w]/remu[w] reg, reg, reg ' \ + '#' * 5 + '\n' # initial register to use as signature pointer swreg = 'x31' # initialize swreg to point to signature_start label asm_code += f'RVTEST_SIGBASE({swreg}, signature_start)\n' # initial offset to with respect to signature label offset = 0 # variable to hold the total number of signature bytes to be # used. sig_bytes = 0 inst_count = 0 for rd in reg_file: for rd1 in reg_file: for rs2 in reg_file: rs1_val = hex(getrandbits(self.xlen)) rs2_val = hex(getrandbits(self.xlen)) # if signature register needs to be used for ops # then first choose a new signature pointer and move # the value to it. if swreg in [rd, rd1, rs1, rs2]: new_swreg = choice([ x for x in reg_file if x not in [rd, rd1, rs1, rs2, 'x0'] ]) asm_code += f'mv {new_swreg}, {swreg}\n' swreg = new_swreg if rd1 in [rd, swreg, rs1, rs2]: new_rd1 = choice([ x for x in reg_file if x not in [rd, swreg, rs2, rs1] ]) rd1 = new_rd1 if rd in [rs1, rd1, rs2, swreg]: new_rd = choice([ x for x in reg_file if x not in [rd1, swreg, rs2, rs1] ]) rd = new_rd # perform the required assembly operation asm_code += f'\ninst_{inst_count}:' asm_code += f'\n#operation: {inst}, rs1={rs1}' \ f', rs2={rs2}, rd={rd}\n' \ f'TEST_RR_OP({inst}, {rd}, {rs1}' \ f', {rs2}, 0, {rs1_val}, ' \ f'{rs2_val}, {swreg}, {offset}' \ f', x0)\n' if f'{inst}' == 'div': asm_code += f'TEST_RR_OP(rem, {rd1}, ' \ f'{rs1}, {rs2}, 0, {rs1_val}' \ f', {rs2_val}, {swreg}, ' \ f'{offset}, x0)\n' elif f'{inst}' == 'divu': asm_code += f'TEST_RR_OP(remu, {rd1}, ' \ f'{rs1}, {rs2}, 0, {rs1_val}' \ f', {rs2_val}, {swreg}, ' \ f'{offset}, x0)\n' elif f'{inst}' == 'divuw': asm_code += f'TEST_RR_OP(remuw, {rd1}, ' \ f'{rs1}, {rs2}, 0, {rs1_val}' \ f', {rs2_val}, {swreg}, ' \ f'{offset}, x0)\n' elif f'{inst}' == 'divw': asm_code += f'TEST_RR_OP(remw, {rd1}, ' \ f'{rs1}, {rs2}, 0, {rs1_val}' \ f', {rs2_val}, {swreg}, ' \ f'{offset}, x0)\n' # adjust the offset. reset to 0 if it crosses 2048 # and increment the current signature pointer with # the current offset value if offset + self.offset_inc >= 2048: asm_code += f'addi {swreg}, {swreg}, {offset}\n' offset = 0 # increment offset by the amount of bytes updated in # signature by each test-macro. offset = offset + self.offset_inc # keep track of the total number of signature bytes # used so far. sig_bytes = sig_bytes + self.offset_inc inst_count += 1 # asm code to populate the signature region sig_code = 'signature_start:\n' sig_code += ' .fill {0}, 4, 0xdeadbeef\n'.format( int(sig_bytes / 4)) # compile macros for the test compile_macros = [] # return asm_code and sig_code yield ({ 'asm_code': asm_code, 'asm_data': '', 'asm_sig': sig_code, 'compile_macros': compile_macros, 'name_postfix': f'{inst}_rs1_{rs1}', 'doc_string': doc_string })
[ 1, 515, 4036, 1053, 7348, 29892, 679, 9502, 14836, 13, 3166, 19229, 1053, 360, 919, 29892, 2391, 29892, 7761, 29892, 3139, 13, 13, 3166, 318, 271, 29887, 29889, 2611, 4080, 29918, 3075, 1934, 1053, 2967, 29918, 1727, 29918, 1445, 29892, 592, 486, 29918, 2611, 582, 1953, 13, 3166, 343, 2547, 29891, 29889, 29902, 16288, 1053, 306, 16288, 13, 13, 13, 1990, 318, 271, 29887, 29918, 8264, 29918, 4563, 29884, 29918, 2611, 29879, 29918, 29900, 29896, 29898, 29902, 16288, 1125, 13, 1678, 9995, 259, 13, 268, 450, 770, 3743, 278, 8542, 11994, 313, 1933, 29892, 1933, 29884, 29892, 1933, 29893, 29892, 1933, 7262, 29892, 29871, 13, 268, 1083, 29892, 1083, 29884, 29892, 1083, 7262, 29892, 1083, 29893, 29897, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29897, 1599, 6213, 29901, 13, 4706, 2428, 2141, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 8069, 353, 525, 29934, 29963, 29941, 29906, 29902, 29915, 13, 4706, 1583, 29889, 8069, 29918, 2966, 353, 525, 15291, 29941, 29906, 29915, 13, 4706, 1583, 29889, 10289, 29918, 3742, 353, 29871, 29946, 13, 4706, 1583, 29889, 29916, 2435, 353, 29871, 29941, 29906, 13, 4706, 1583, 29889, 1949, 29918, 9502, 29918, 1707, 353, 29871, 29896, 29900, 29900, 13, 13, 1678, 822, 6222, 29898, 1311, 29892, 7136, 29918, 25162, 29892, 338, 29874, 29918, 25162, 29897, 1599, 6120, 29901, 13, 4706, 1583, 29889, 8069, 353, 338, 29874, 29918, 25162, 1839, 26243, 29900, 16215, 3235, 29909, 2033, 13, 4706, 565, 525, 29934, 29963, 29941, 29906, 29915, 297, 1583, 29889, 8069, 29901, 13, 9651, 1583, 29889, 8069, 29918, 2966, 353, 525, 15291, 29941, 29906, 29915, 13, 9651, 1583, 29889, 29916, 2435, 353, 29871, 29941, 29906, 13, 9651, 1583, 29889, 10289, 29918, 3742, 353, 29871, 29946, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 8069, 29918, 2966, 353, 525, 15291, 29953, 29946, 29915, 13, 9651, 1583, 29889, 29916, 2435, 353, 29871, 29953, 29946, 13, 9651, 1583, 29889, 10289, 29918, 3742, 353, 29871, 29947, 13, 4706, 565, 525, 29924, 29915, 297, 1583, 29889, 8069, 470, 525, 29999, 4317, 352, 29915, 297, 1583, 29889, 8069, 29901, 13, 9651, 736, 5852, 13, 4706, 1683, 29901, 13, 9651, 736, 7700, 13, 13, 1678, 822, 5706, 29918, 11625, 29898, 1311, 29897, 1599, 2391, 29961, 21533, 29961, 710, 29892, 7761, 29961, 19986, 29961, 710, 29892, 1051, 1402, 3139, 5262, 5387, 13, 4706, 9995, 13, 9651, 3251, 1078, 278, 3339, 29924, 11994, 363, 1933, 1241, 322, 14422, 1716, 13911, 993, 13, 9651, 322, 21162, 297, 364, 29881, 322, 364, 29881, 29896, 1072, 8307, 29889, 13, 9651, 739, 10017, 408, 29885, 363, 278, 1494, 11994, 2729, 2501, 306, 8132, 13, 9651, 1933, 29961, 29893, 1402, 1933, 29884, 29961, 29893, 1402, 1083, 29961, 29893, 1402, 1083, 29884, 29961, 29893, 29962, 29871, 13, 4706, 9995, 13, 4706, 396, 364, 29881, 29892, 20371, 29896, 29892, 20371, 29906, 13649, 1549, 599, 278, 29871, 29941, 29906, 6036, 18240, 363, 13, 4706, 396, 1432, 15278, 297, 286, 29918, 17588, 29918, 2611, 582, 1953, 13, 13, 4706, 1574, 29918, 1807, 353, 525, 3057, 16785, 278, 5858, 310, 1933, 29892, 1933, 29884, 29892, 1933, 7262, 525, 320, 13, 462, 268, 525, 2611, 582, 1953, 29915, 13, 13, 4706, 1072, 29918, 1445, 353, 2967, 29918, 1727, 29918, 1445, 29889, 8552, 580, 13, 13, 4706, 1072, 29918, 1445, 29889, 5992, 877, 29916, 29900, 1495, 13, 13, 4706, 11994, 353, 5159, 13, 13, 4706, 565, 525, 29924, 29915, 297, 1583, 29889, 8069, 29901, 13, 9651, 11994, 4619, 592, 486, 29918, 2611, 582, 1953, 29961, 29888, 29915, 29912, 1311, 29889, 8069, 29918, 2966, 7402, 4563, 2033, 13, 13, 4706, 15278, 29918, 1761, 353, 518, 29916, 363, 921, 297, 11994, 565, 525, 29884, 29915, 297, 921, 29962, 13, 13, 4706, 363, 832, 297, 15278, 29918, 1761, 29901, 13, 9651, 363, 20371, 29896, 297, 1072, 29918, 1445, 29901, 13, 18884, 408, 29885, 29918, 401, 353, 16321, 29915, 334, 29871, 29945, 718, 525, 1933, 29884, 29961, 29893, 16261, 1745, 29884, 29961, 29893, 29962, 1072, 29892, 1072, 29892, 1072, 525, 320, 13, 462, 965, 718, 16321, 29915, 334, 29871, 29945, 718, 11297, 29876, 29915, 13, 13, 18884, 396, 2847, 6036, 304, 671, 408, 12608, 4879, 13, 18884, 2381, 1727, 353, 525, 29916, 29941, 29896, 29915, 13, 13, 18884, 396, 11905, 2381, 1727, 304, 1298, 304, 12608, 29918, 2962, 3858, 13, 18884, 408, 29885, 29918, 401, 4619, 285, 29915, 29934, 29963, 18267, 29918, 5425, 29954, 25416, 3319, 2774, 1727, 1118, 12608, 29918, 2962, 2144, 29876, 29915, 13, 13, 18884, 396, 2847, 9210, 304, 411, 3390, 304, 12608, 3858, 13, 18884, 9210, 353, 29871, 29900, 13, 18884, 396, 2286, 304, 4808, 278, 3001, 1353, 310, 12608, 6262, 304, 367, 13, 18884, 396, 1304, 29889, 13, 18884, 4365, 29918, 13193, 353, 29871, 29900, 13, 18884, 832, 29918, 2798, 353, 29871, 29900, 13, 13, 18884, 363, 364, 29881, 297, 1072, 29918, 1445, 29901, 13, 462, 1678, 363, 364, 29881, 29896, 297, 1072, 29918, 1445, 29901, 13, 462, 4706, 363, 20371, 29906, 297, 1072, 29918, 1445, 29901, 13, 13, 462, 9651, 20371, 29896, 29918, 791, 353, 15090, 29898, 657, 9502, 14836, 29898, 1311, 29889, 29916, 2435, 876, 13, 462, 9651, 20371, 29906, 29918, 791, 353, 15090, 29898, 657, 9502, 14836, 29898, 1311, 29889, 29916, 2435, 876, 13, 13, 462, 9651, 396, 565, 12608, 6036, 4225, 304, 367, 1304, 363, 288, 567, 13, 462, 9651, 396, 769, 937, 6755, 263, 716, 12608, 4879, 322, 4337, 13, 462, 9651, 396, 278, 995, 304, 372, 29889, 13, 462, 9651, 565, 2381, 1727, 297, 518, 5499, 29892, 364, 29881, 29896, 29892, 20371, 29896, 29892, 20371, 29906, 5387, 13, 462, 18884, 716, 29918, 2774, 1727, 353, 7348, 4197, 13, 462, 462, 1678, 921, 363, 921, 297, 1072, 29918, 1445, 13, 462, 462, 1678, 565, 921, 451, 297, 518, 5499, 29892, 364, 29881, 29896, 29892, 20371, 29896, 29892, 20371, 29906, 29892, 525, 29916, 29900, 2033, 13, 462, 462, 2314, 13, 462, 18884, 408, 29885, 29918, 401, 4619, 285, 29915, 29324, 426, 1482, 29918, 2774, 1727, 1118, 426, 2774, 1727, 1012, 29876, 29915, 13, 462, 18884, 2381, 1727, 353, 716, 29918, 2774, 1727, 13, 13, 462, 9651, 565, 364, 29881, 29896, 297, 518, 5499, 29892, 2381, 1727, 29892, 20371, 29896, 29892, 20371, 29906, 5387, 13, 462, 18884, 716, 29918, 5499, 29896, 353, 7348, 4197, 13, 462, 462, 1678, 921, 363, 921, 297, 1072, 29918, 1445, 13, 462, 462, 1678, 565, 921, 451, 297, 518, 5499, 29892, 2381, 1727, 29892, 20371, 29906, 29892, 20371, 29896, 29962, 13, 462, 462, 2314, 13, 462, 18884, 364, 29881, 29896, 353, 716, 29918, 5499, 29896, 13, 13, 462, 9651, 565, 364, 29881, 297, 518, 2288, 29896, 29892, 364, 29881, 29896, 29892, 20371, 29906, 29892, 2381, 1727, 5387, 13, 462, 18884, 716, 29918, 5499, 353, 7348, 4197, 13, 462, 462, 1678, 921, 363, 921, 297, 1072, 29918, 1445, 13, 462, 462, 1678, 565, 921, 451, 297, 518, 5499, 29896, 29892, 2381, 1727, 29892, 20371, 29906, 29892, 20371, 29896, 29962, 13, 462, 462, 2314, 13, 462, 18884, 364, 29881, 353, 716, 29918, 5499, 13, 13, 462, 9651, 396, 2189, 278, 3734, 11470, 5858, 13, 462, 9651, 408, 29885, 29918, 401, 4619, 285, 12764, 29876, 2611, 648, 2611, 29918, 2798, 6177, 29915, 13, 462, 9651, 408, 29885, 29918, 401, 4619, 285, 12764, 29876, 29937, 16453, 29901, 426, 2611, 1118, 20371, 29896, 3790, 2288, 29896, 10162, 320, 13, 462, 462, 4706, 285, 742, 20371, 29906, 3790, 2288, 29906, 1118, 364, 29881, 3790, 5499, 1012, 29876, 29915, 320, 13, 462, 462, 4706, 285, 29915, 18267, 29918, 29934, 29934, 29918, 4590, 3319, 2611, 1118, 426, 5499, 1118, 426, 2288, 29896, 10162, 320, 13, 462, 462, 4706, 285, 742, 426, 2288, 29906, 1118, 29871, 29900, 29892, 426, 2288, 29896, 29918, 791, 1118, 525, 320, 13, 462, 462, 4706, 285, 29915, 29912, 2288, 29906, 29918, 791, 1118, 426, 2774, 1727, 1118, 426, 10289, 10162, 320, 13, 462, 462, 4706, 285, 742, 921, 29900, 2144, 29876, 29915, 13, 13, 462, 9651, 565, 285, 29915, 29912, 2611, 10162, 1275, 525, 4563, 2396, 13, 462, 18884, 408, 29885, 29918, 401, 4619, 285, 29915, 18267, 29918, 29934, 29934, 29918, 4590, 29898, 1745, 29892, 426, 5499, 29896, 1118, 525, 320, 13, 462, 462, 9651, 285, 29915, 29912, 2288, 29896, 1118, 426, 2288, 29906, 1118, 29871, 29900, 29892, 426, 2288, 29896, 29918, 791, 10162, 320, 13, 462, 462, 9651, 285, 742, 426, 2288, 29906, 29918, 791, 1118, 426, 2774, 1727, 1118, 525, 320, 13, 462, 462, 9651, 285, 29915, 29912, 10289, 1118, 921, 29900, 2144, 29876, 29915, 13, 462, 9651, 25342, 285, 29915, 29912, 2611, 10162, 1275, 525, 4563, 29884, 2396, 13, 462, 18884, 408, 29885, 29918, 401, 4619, 285, 29915, 18267, 29918, 29934, 29934, 29918, 4590, 29898, 1745, 29884, 29892, 426, 5499, 29896, 1118, 525, 320, 13, 462, 462, 9651, 285, 29915, 29912, 2288, 29896, 1118, 426, 2288, 29906, 1118, 29871, 29900, 29892, 426, 2288, 29896, 29918, 791, 10162, 320, 13, 462, 462, 9651, 285, 742, 426, 2288, 29906, 29918, 791, 1118, 426, 2774, 1727, 1118, 525, 320, 13, 462, 462, 9651, 285, 29915, 29912, 10289, 1118, 921, 29900, 2144, 29876, 29915, 13, 462, 9651, 25342, 285, 29915, 29912, 2611, 10162, 1275, 525, 4563, 7262, 2396, 13, 462, 18884, 408, 29885, 29918, 401, 4619, 285, 29915, 18267, 29918, 29934, 29934, 29918, 4590, 29898, 1745, 7262, 29892, 426, 5499, 29896, 1118, 525, 320, 13, 462, 462, 9651, 285, 29915, 29912, 2288, 29896, 1118, 426, 2288, 29906, 1118, 29871, 29900, 29892, 426, 2288, 29896, 29918, 791, 10162, 320, 13, 462, 462, 9651, 285, 742, 426, 2288, 29906, 29918, 791, 1118, 426, 2774, 1727, 1118, 525, 320, 13, 462, 462, 9651, 285, 29915, 29912, 10289, 1118, 921, 29900, 2144, 29876, 29915, 13, 462, 9651, 25342, 285, 29915, 29912, 2611, 10162, 1275, 525, 4563, 29893, 2396, 13, 462, 18884, 408, 29885, 29918, 401, 4619, 285, 29915, 18267, 29918, 29934, 29934, 29918, 4590, 29898, 1745, 29893, 29892, 426, 5499, 29896, 1118, 525, 320, 13, 462, 462, 9651, 285, 29915, 29912, 2288, 29896, 1118, 426, 2288, 29906, 1118, 29871, 29900, 29892, 426, 2288, 29896, 29918, 791, 10162, 320, 13, 462, 462, 9651, 285, 742, 426, 2288, 29906, 29918, 791, 1118, 426, 2774, 1727, 1118, 525, 320, 13, 462, 462, 9651, 285, 29915, 29912, 10289, 1118, 921, 29900, 2144, 29876, 29915, 13, 13, 462, 9651, 396, 10365, 278, 9210, 29889, 10092, 304, 29871, 29900, 565, 372, 4891, 267, 29871, 29906, 29900, 29946, 29947, 13, 462, 9651, 396, 322, 11924, 278, 1857, 12608, 4879, 411, 13, 462, 9651, 396, 278, 1857, 9210, 995, 13, 462, 9651, 565, 9210, 718, 1583, 29889, 10289, 29918, 3742, 6736, 29871, 29906, 29900, 29946, 29947, 29901, 13, 462, 18884, 408, 29885, 29918, 401, 4619, 285, 29915, 1202, 29875, 426, 2774, 1727, 1118, 426, 2774, 1727, 1118, 426, 10289, 1012, 29876, 29915, 13, 462, 18884, 9210, 353, 29871, 29900, 13, 13, 462, 9651, 396, 11924, 9210, 491, 278, 5253, 310, 6262, 4784, 297, 13, 462, 9651, 396, 12608, 491, 1269, 1243, 29899, 25254, 29889, 13, 462, 9651, 9210, 353, 9210, 718, 1583, 29889, 10289, 29918, 3742, 13, 13, 462, 9651, 396, 3013, 5702, 310, 278, 3001, 1353, 310, 12608, 6262, 13, 462, 9651, 396, 1304, 577, 2215, 29889, 13, 462, 9651, 4365, 29918, 13193, 353, 4365, 29918, 13193, 718, 1583, 29889, 10289, 29918, 3742, 13, 13, 462, 9651, 832, 29918, 2798, 4619, 29871, 29896, 13, 13, 18884, 396, 408, 29885, 775, 304, 19450, 278, 12608, 5120, 13, 18884, 4365, 29918, 401, 353, 525, 4530, 1535, 29918, 2962, 3583, 29876, 29915, 13, 18884, 4365, 29918, 401, 4619, 525, 869, 5589, 426, 29900, 1118, 29871, 29946, 29892, 29871, 29900, 29916, 311, 328, 915, 1389, 29905, 29876, 4286, 4830, 29898, 13, 462, 1678, 938, 29898, 18816, 29918, 13193, 847, 29871, 29946, 876, 13, 13, 18884, 396, 6633, 5825, 1883, 363, 278, 1243, 13, 18884, 6633, 29918, 8628, 1883, 353, 5159, 13, 13, 18884, 396, 736, 408, 29885, 29918, 401, 322, 4365, 29918, 401, 13, 18884, 7709, 21313, 13, 462, 1678, 525, 11625, 29918, 401, 2396, 408, 29885, 29918, 401, 29892, 13, 462, 1678, 525, 11625, 29918, 1272, 2396, 15516, 13, 462, 1678, 525, 11625, 29918, 18816, 2396, 4365, 29918, 401, 29892, 13, 462, 1678, 525, 12198, 29918, 8628, 1883, 2396, 6633, 29918, 8628, 1883, 29892, 13, 462, 1678, 525, 978, 29918, 2490, 5878, 2396, 285, 29915, 29912, 2611, 2403, 2288, 29896, 648, 2288, 29896, 29913, 742, 13, 462, 1678, 525, 1514, 29918, 1807, 2396, 1574, 29918, 1807, 13, 18884, 5615, 13, 2 ]
data_processor.py
ZouJoshua/deeptext_project
2
46507
#!/usr/bin/env python # coding:utf8 # Copyright (c) 2018, Tencent. All rights reserved # This file contain DataProcessor class which can # 1. Generate dict from train text data: # Text format: label\t[(token )+]\t[(char )+]\t[(custom_feature )+]. # Label could be flattened or hierarchical which is separated by "--". # 2. Convert data to tfrecord according to dict and config. # 3. Provide input_fn for estimator train and serving. import codecs import json import os import sys from collections import Counter import tensorflow as tf import util from config import Config class DataProcessor(object): VOCAB_UNKNOWN = "_UNK" VOCAB_PADDING = "_PAD" # Text format: label\t[(token )+]\t[(char )+]\t[(custom_feature )+]. LINE_SPLIT_NUMBER = 4 # Index of line, also index in dict list LABEL_INDEX = 0 TOKEN_INDEX = 1 CHAR_INDEX = 2 CUSTOM_FEATURE_INDEX = 3 USE_SPECIAL_LABEL = False SPECIAL_LABEL_LIST = ["社会", "时政", "国际", "军事"] SPECIAL_LABEL = "|".join(SPECIAL_LABEL_LIST) # TODO(marvinmu): check config def __init__(self, config, logger=None): self.config = config if logger: self.logger = logger else: self.logger = util.Logger(config) self.dict_names = ["label", "token", "char", "custom_feature", "token_ngram", "char_ngram", "char_in_token"] self.dict_files = [] for dict_name in self.dict_names: self.dict_files.append( self.config.data.dict_dir + "/" + dict_name + ".dict") self.label_dict_file = self.dict_files[0] # Should keep all labels self.min_count = [0, self.config.feature_common.min_token_count, self.config.feature_common.min_char_count, self.config.var_len_feature.min_custom_feature_count, self.config.var_len_feature.min_token_ngram_count, self.config.var_len_feature.min_char_ngram_count, self.config.feature_common.min_char_count_in_token] # Should keep all labels self.max_dict_size = \ [1000 * 1000, self.config.feature_common.max_token_dict_size, self.config.feature_common.max_char_dict_size, self.config.var_len_feature.max_custom_feature_dict_size, self.config.var_len_feature.max_token_ngram_dict_size, self.config.var_len_feature.max_char_ngram_dict_size, self.config.feature_common.max_char_in_token_dict_size] # Label and custom feature has no max_sequence_length. self.max_sequence_length = \ [0, self.config.fixed_len_feature.max_token_sequence_length, self.config.fixed_len_feature.max_char_sequence_length, 0] # Label and custom feature has no ngram. self.ngram_list = [0, self.config.var_len_feature.token_ngram, self.config.var_len_feature.char_ngram, 0] self.label_map = dict() self.token_map = dict() self.char_map = dict() self.custom_feature_map = dict() self.token_gram_map = dict() self.char_gram_map = dict() self.char_in_token_map = dict() self.dict_list = [self.label_map, self.token_map, self.char_map, self.custom_feature_map, self.token_gram_map, self.char_gram_map, self.char_in_token_map] self.id_to_label_map = dict() self.id_to_token_map = dict() self.id_to_char_map = dict() self.id_to_custom_feature_map = dict() self.id_to_token_gram_map = dict() self.id_to_char_gram_map = dict() self.id_to_char_in_token_map = dict() self.id_to_vocab_dict_list = [ self.id_to_label_map, self.id_to_token_map, self.id_to_char_map, self.id_to_custom_feature_map, self.id_to_token_gram_map, self.id_to_char_gram_map, self.id_to_char_in_token_map] self.train_text_file, self.validate_text_file, self.test_text_file = \ self.config.data.train_text_file, \ self.config.data.validate_text_file, \ self.config.data.test_text_file self.tfrecord_files = [ self.config.data.tfrecord_dir + "/" + os.path.basename( self.train_text_file) + ".tfrecord", self.config.data.tfrecord_dir + "/" + os.path.basename( self.validate_text_file) + ".tfrecord", self.config.data.tfrecord_dir + "/" + os.path.basename( self.test_text_file) + ".tfrecord"] self.train_file, self.validate_file, self.test_file = \ self.tfrecord_files self.feature_files = [ self.config.data.tfrecord_dir + "/" + os.path.basename( self.train_text_file) + ".feature", self.config.data.tfrecord_dir + "/" + os.path.basename( self.validate_text_file) + ".feature", self.config.data.tfrecord_dir + "/" + os.path.basename( self.test_text_file) + ".feature"] (self.train_feature_file, self.validate_feature_file, self.test_feature_file) = self.feature_files self.pretrained_embedding_files = [ "", config.feature_common.token_pretrained_embedding_file, config.feature_common.char_pretrained_embedding_file, config.var_len_feature.custom_feature_pretrained_embedding_file, ] self.int_list_column = ["fixed_len_token", "var_len_token", "char_in_token", "char_in_token_real_len", "fixed_len_char", "var_len_char", "var_len_token_ngram", "var_len_char_ngram", "var_len_custom_feature"] self.int_column = ["token_fixed_real_len", "char_fixed_real_len"] self.float_column = ["token_var_real_len", "char_var_real_len", "token_ngram_var_real_len", "char_ngram_var_real_len", "custom_feature_var_real_len"] def _save_dict(self, dict_file, counter, name): """Save all vocab to file. Args: dict_file: File to save to. counter: Vocab counts. name: Dict name. """ dict_list = counter.most_common() dict_file = codecs.open(dict_file, "w", encoding=util.CHARSET) # Save _UNK for vocab not in dict and _PAD for padding count = 1000 * 1000 # Must bigger than min count if name != "label": dict_list = [(self.VOCAB_PADDING, count), (self.VOCAB_UNKNOWN, count)] + dict_list for vocab in dict_list: dict_file.write("%s\t%d\n" % (vocab[0], vocab[1])) dict_file.close() self.logger.info("Total count of %s: %d" % (name, len(dict_list))) def _load_dict(self, dict_map, id_to_vocab_dict_map, dict_file, min_count, max_dict_size, name): """Load dict according to params. Args: dict_map: Vocab dict map. id_to_vocab_dict_map: Id to vocab dict map. dict_file: File to load. min_count: Vocab whose count is equal or greater than min_count will be loaded. max_dict_size: Load top max_dict_size vocabs sorted by count. name: Dict name. Returns: dict. """ if not os.path.exists(dict_file): self.logger.warn("Not exists %s for %s" % (dict_file, name)) else: for line in codecs.open(dict_file, "r", encoding=util.CHARSET): vocab = line.strip("\n").split("\t") try: temp = vocab[1] except IndexError: continue if int(temp) >= min_count: index = len(dict_map) dict_map[vocab[0]] = index id_to_vocab_dict_map[index] = vocab[0] if len(dict_map) >= max_dict_size: self.logger.warn( "Reach the max size(%d) of %s, ignore the rest" % ( max_dict_size, name)) break self.logger.info("Load %d vocab of %s" % (len(dict_map), name)) def load_all_dict(self): """Load all dict. """ for i, dict_name in enumerate(self.dict_names): self._load_dict(self.dict_list[i], self.id_to_vocab_dict_list[i], self.dict_files[i], self.min_count[i], self.max_dict_size[i], dict_name) def _generate_dict(self, text_file_list): """Generate dict and label dict given train text file. Save all vocab to files and load dicts. Text format: label\t[(token )+]\t[(char )+]\t[(feature )+]. Label could be flattened or hierarchical which is separated by "--". Args: text_file_list: Text file list, usually only contain train text file. """ sample_size = 0 label_counter = Counter() token_counter = Counter() char_in_token_counter = Counter() token_ngram_counter = Counter() char_counter = Counter() char_ngram_counter = Counter() custom_feature_counter = Counter() counters = [label_counter, token_counter, char_counter, custom_feature_counter, token_ngram_counter, char_ngram_counter, char_in_token_counter] for text_file in text_file_list: self.logger.info("Generate dict using text file %s" % text_file) for line in codecs.open(text_file, "r", encoding='utf8'): content = line.strip("\n").split('\t') if len(content) != self.LINE_SPLIT_NUMBER: self.logger.error("Wrong line: %s" % line) continue sample_size += 1 for i, _ in enumerate(content): vocabs = content[i].strip().split(" ") counters[i].update(vocabs) if i == self.LABEL_INDEX: # 增加特殊类处理 if vocabs[0] in self.SPECIAL_LABEL_LIST and self.USE_SPECIAL_LABEL: vocabs = [self.SPECIAL_LABEL] counters[i].update(vocabs) # If vocab is token, extract char info of each token if i == self.TOKEN_INDEX: char_in_token = [] for vocab in vocabs: char_in_token.extend(vocab) char_in_token_counter.update(char_in_token) if self.ngram_list[i] > 1: ngram_list = [] for j in range(2, self.ngram_list[i] + 1): ngram_list.extend(["".join(vocabs[k:k + j]) for k in range(len(vocabs) - j + 1)]) counters[i + 3].update(ngram_list) for counter in counters: if "" in counter.keys(): counter.pop("") self.logger.info("sample size: %d" % sample_size) for i, dict_name in enumerate(self.dict_names): self._save_dict(self.dict_files[i], counters[i], self.dict_names[i]) def _get_vocab_id_list(self, dict_map, vocabs, ngram, sequence_length, max_var_length, ngram_dict_map=None, char_in_token_map=None, max_char_sequence_length_per_token=-1): """Convert vocab string list to vocab id list. Args: dict_map: Dict used to map string to id. vocabs: Vocab string list. ngram: Ngram to use (if bigger than 1). sequence_length: List length for fixed length vocab id list. max_var_length: List length for var length vocab id list. ngram_dict_map: Ngram dict map. max_char_sequence_length_per_token: Useful when using char to get token embedding. Returns: fixed length vocab id list, real length of fixed vocab id list, var length vocab id list, ngram string list. """ if len(dict_map) == 0 or len(vocabs) == 0: return [], 0, [], [], [], [] vocabs_iter = [x for x in vocabs if x in dict_map] var_len_vocabs = [dict_map[x] for x in vocabs_iter] if len(var_len_vocabs) > max_var_length: var_len_vocabs = var_len_vocabs[0:max_var_length] if not var_len_vocabs: var_len_vocabs.append(dict_map[self.VOCAB_UNKNOWN]) if len(vocabs) > sequence_length: vocabs = vocabs[0:sequence_length] fixed_len_vocabs = [] fixed_len_vocabs.extend( [dict_map[x] if x in dict_map else dict_map[self.VOCAB_UNKNOWN] for x in vocabs]) fixed_real_len = len(fixed_len_vocabs) if fixed_real_len < sequence_length: fixed_len_vocabs.extend([dict_map[self.VOCAB_PADDING]] * ( sequence_length - len(fixed_len_vocabs))) ngram_list = [] if ngram > 1: ngram_list_str = [] for i in range(2, ngram + 1): ngram_list_str.extend(["".join(vocabs[j:j + i]) for j in range(len(vocabs) - i + 1)]) ngram_iter = [x for x in ngram_list_str if x in ngram_dict_map] ngram_list = [ngram_dict_map[x] for x in ngram_iter] if not ngram_list: ngram_list.append(ngram_dict_map[self.VOCAB_UNKNOWN]) char_in_token = [] char_in_token_real_len = [] if max_char_sequence_length_per_token > 0: length = 0 for vocab in vocabs: length += 1 chars = [] chars.extend( [char_in_token_map[x] if x in char_in_token_map else char_in_token_map[self.VOCAB_UNKNOWN] for x in vocab]) if len(chars) > max_char_sequence_length_per_token: chars = chars[0:max_char_sequence_length_per_token] char_in_token_real_len.append(len(chars)) if len(chars) < max_char_sequence_length_per_token: chars.extend([char_in_token_map[self.VOCAB_PADDING]] * ( max_char_sequence_length_per_token - len(chars))) char_in_token.extend(chars) while length < sequence_length: length += 1 char_in_token.extend( [char_in_token_map[self.VOCAB_PADDING]] * max_char_sequence_length_per_token) char_in_token_real_len.append(0) return (fixed_len_vocabs, fixed_real_len, var_len_vocabs, ngram_list, char_in_token, char_in_token_real_len) def _get_features_from_text(self, text, has_label=True): """Parse text to features that model can use. Args: text: Input text has_label: If true, result will contain label. Returns: Features that model can use. """ content = text.split('\t') if len(content) != self.LINE_SPLIT_NUMBER: self.logger.error("Wrong format line: %s" % text) return None label_string = content[self.LABEL_INDEX] if has_label and label_string not in self.label_map: self.logger.error("Wrong label of line: %s" % text) return None token = content[self.TOKEN_INDEX].strip().split(" ") (fixed_len_token, token_fixed_real_len, var_len_token, var_len_token_ngram, char_in_token, char_in_token_real_len) = \ self._get_vocab_id_list( self.token_map, token, self.config.var_len_feature.token_ngram, self.config.fixed_len_feature.max_token_sequence_length, self.config.var_len_feature.max_var_token_length, self.token_gram_map, self.char_in_token_map, self.config.fixed_len_feature.max_char_length_per_token) chars = content[self.CHAR_INDEX].strip().split(" ") (fixed_len_char, char_fixed_real_len, var_len_char, var_len_char_ngram, _, _) = self._get_vocab_id_list( self.char_map, chars, self.config.var_len_feature.char_ngram, self.config.fixed_len_feature.max_char_sequence_length, self.config.var_len_feature.max_var_char_length, self.char_gram_map) custom_features = content[self.CUSTOM_FEATURE_INDEX].strip().split( " ") _, _, var_len_custom_feature, _, _, _ = self._get_vocab_id_list( self.custom_feature_map, custom_features, 0, 0, 0, self.config.var_len_feature.max_var_custom_feature_length, None) feature_sample = dict({ "fixed_len_token": fixed_len_token, "token_fixed_real_len": token_fixed_real_len, "var_len_token": var_len_token, "token_var_real_len": len(var_len_token), "char_in_token": char_in_token, "char_in_token_real_len": char_in_token_real_len, "var_len_token_ngram": var_len_token_ngram, "token_ngram_var_real_len": len(var_len_token_ngram), "fixed_len_char": fixed_len_char, "char_fixed_real_len": char_fixed_real_len, "var_len_char": var_len_char, "char_var_real_len": len(var_len_char), "var_len_char_ngram": var_len_char_ngram, "char_ngram_var_real_len": len(var_len_char_ngram), "var_len_custom_feature": var_len_custom_feature, "custom_feature_var_real_len": len(var_len_custom_feature) }) if has_label: label = self.label_map[content[0]] if content[self.LABEL_INDEX] in self.SPECIAL_LABEL_LIST and self.USE_SPECIAL_LABEL: label = self.label_map[self.SPECIAL_LABEL] feature_sample["label"] = label return feature_sample def _convert_features_to_tfexample(self, feature_sample, has_label=True): """Convert feature sample to tf.example Args: feature_sample: Feature sample. has_label: If true, result will contain label Returns: tf.example """ if not feature_sample: return None tfexample = tf.train.Example() for name in self.int_list_column: tfexample.features.feature[name].int64_list.value.extend( feature_sample[name]) for name in self.int_column: tfexample.features.feature[name].int64_list.value.append( feature_sample[name]) for name in self.float_column: tfexample.features.feature[name].float_list.value.append( feature_sample[name]) if has_label: tfexample.features.feature["label"].int64_list.value.append( feature_sample["label"]) return tfexample def get_tfexample_from_text(self, text, has_label=True): feature_sample = self._get_features_from_text(text, has_label) tfexample = self._convert_features_to_tfexample(feature_sample, has_label) return tfexample, feature_sample def _get_tfrecord_from_text_file(self, text_file, tfrecord_file, feature_file): """Get tfrecord from text file. Text format: label\t[(token )+]\t[(char )+]\t[(feature )+]. Label could be flattened or hierarchical which is separated by "--". Args: text_file: Text file. tfrecord_file: Tfrecord file to write. feature_file: Feature file, will save feature sample for debug. For validate and test evaluation """ self.logger.info("Get tfrecord from text file %s" % text_file) writer = tf.python_io.TFRecordWriter(tfrecord_file) sample_size = 0 with codecs.open(feature_file, "w", encoding=util.CHARSET) as label_file: for line in codecs.open(text_file, "r", encoding='utf8'): tfexample, feature_sample = self.get_tfexample_from_text(line) if tfexample is not None: feature_str = json.dumps(feature_sample, ensure_ascii=False) label_file.write( self.id_to_label_map[feature_sample["label"]] + "\t" + feature_str + "\n") writer.write(tfexample.SerializeToString()) sample_size += 1 writer.close() self.logger.info( "Text file %s has sample %d" % (text_file, sample_size)) def process_from_text_file(self, use_exists_dict=False): """Process text data to tfrecord for training and generate dicts. """ if not os.path.exists(self.config.data.tfrecord_dir): os.makedirs(self.config.data.tfrecord_dir) if not os.path.exists(self.config.data.dict_dir): os.makedirs(self.config.data.dict_dir) if use_exists_dict: self.load_all_dict() else: self._generate_dict([self.config.data.train_text_file]) # If using pretrained embedding, dict can be generated by all text file. # when repeating the result in the paper of textcnn, the following code # should be used. # self._generate_dict([self.config.data.train_text_file, # self.config.data.validate_text_file, # self.config.data.test_text_file]) self.load_all_dict() text_files = [self.config.data.train_text_file, self.config.data.validate_text_file, self.config.data.test_text_file] for i, text_file in enumerate(text_files): self._get_tfrecord_from_text_file(text_file, self.tfrecord_files[i], self.feature_files[i]) @staticmethod def _get_feature_spec(has_label): """Feature map to parse tf.example Args: has_label: If true, feature map include label Return: feature map """ feature_spec = dict({ "fixed_len_token": tf.VarLenFeature(dtype=tf.int64), "token_fixed_real_len": tf.FixedLenFeature(shape=(1,), dtype=tf.int64), "var_len_token": tf.VarLenFeature(dtype=tf.int64), "token_var_real_len": tf.FixedLenFeature(shape=(1,), dtype=tf.float32), "char_in_token": tf.VarLenFeature(dtype=tf.int64), "char_in_token_real_len": tf.VarLenFeature(dtype=tf.int64), "var_len_token_ngram": tf.VarLenFeature(dtype=tf.int64), "token_ngram_var_real_len": tf.FixedLenFeature(shape=(1,), dtype=tf.float32), "fixed_len_char": tf.VarLenFeature(dtype=tf.int64), "char_fixed_real_len": tf.FixedLenFeature(shape=(1,), dtype=tf.int64), "var_len_char": tf.VarLenFeature(dtype=tf.int64), "char_var_real_len": tf.FixedLenFeature(shape=(1,), dtype=tf.float32), "var_len_char_ngram": tf.VarLenFeature(dtype=tf.int64), "char_ngram_var_real_len": tf.FixedLenFeature(shape=(1,), dtype=tf.float32), "var_len_custom_feature": tf.VarLenFeature(dtype=tf.int64), "custom_feature_var_real_len": tf.FixedLenFeature(shape=(1,), dtype=tf.float32), }) if has_label: feature_spec["label"] = tf.FixedLenFeature(shape=(1,), dtype=tf.int64) return feature_spec def check_tfrecord(self, file_names, field_name, dtype=tf.int32): """Check one field of tfrecord Args: file_names: List of file names. field_name: Field to check. dtype: Field data type. """ filename_queue = tf.train.string_input_producer(file_names, shuffle=False) reader = tf.TFRecordReader() _, serialized_example = reader.read(filename_queue) features = tf.parse_single_example(serialized_example, self._get_feature_spec(True)) feature = tf.cast(features[field_name], dtype) check_file = codecs.open("tf_check.txt", "w", encoding=util.CHARSET) with tf.Session(config=tf.ConfigProto( device_count={"CPU":12}, inter_op_parallelism_threads=1, intra_op_parallelism_threads=1, gpu_options=gpu_options, )) as sess: #with tf.Session() as sess: init_op = tf.global_variables_initializer() sess.run(init_op) coord = tf.train.Coordinator() threads = tf.train.start_queue_runners(coord=coord) check_file.write(feature.eval()) coord.request_stop() coord.join(threads) check_file.close() def _parse_tfexample(self, example, mode=tf.estimator.ModeKeys.TRAIN): """Parse input example. Args: example: Tf.example. mode: Estimator mode. Return: parsed feature and label. """ parsed = tf.parse_single_example(example, self._get_feature_spec(True)) parsed = self._sparse_to_dense(parsed) label = None if mode != tf.estimator.ModeKeys.PREDICT: label = parsed.pop("label") return parsed, label def _sparse_to_dense(self, parsed_example): for key in self.int_list_column: if "var" not in key: parsed_example[key] = tf.sparse_tensor_to_dense( parsed_example[key]) return parsed_example def dataset_input_fn(self, mode, input_file, batch_size, num_epochs=1): """Input function using tf.dataset for estimator Args: mode: input mode of tf.estimator.ModeKeys.{TRAIN, EVAL, PREDICT}. input_file: Input tfrecord file. batch_size: Batch size for model. num_epochs: Number epoch. Returns: tf.dataset """ dataset = tf.data.TFRecordDataset(input_file) dataset = dataset.map(self._parse_tfexample) if mode != tf.estimator.ModeKeys.PREDICT: dataset = dataset.shuffle( buffer_size=self.config.data.shuffle_buffer) dataset = dataset.repeat(num_epochs) dataset = dataset.batch(batch_size) return dataset def serving_input_receiver_fn(self): """Input function for session server Returns: input_receiver_fn for session server """ serialized_tf_example = tf.placeholder( dtype=tf.string, name='input_example_tensor') receiver_tensors = {'examples': serialized_tf_example} parsed_example = tf.parse_example(serialized_tf_example, self._get_feature_spec(False)) parsed_example = self._sparse_to_dense(parsed_example) return tf.estimator.export.ServingInputReceiver(parsed_example, receiver_tensors) def main(_): config = Config(config_file=sys.argv[1]) data_processor = DataProcessor(config) data_processor.process_from_text_file() if __name__ == '__main__': tf.app.run()
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 14137, 29901, 9420, 29947, 13, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29947, 29892, 12444, 1760, 29889, 2178, 10462, 21676, 13, 13, 29937, 910, 934, 1712, 3630, 18689, 770, 607, 508, 13, 29937, 29871, 29896, 29889, 3251, 403, 9657, 515, 7945, 1426, 848, 29901, 13, 29937, 539, 3992, 3402, 29901, 3858, 29905, 29873, 15625, 6979, 1723, 29974, 10725, 29873, 15625, 3090, 1723, 29974, 10725, 29873, 15625, 6341, 29918, 14394, 1723, 29974, 1822, 13, 29937, 539, 15796, 1033, 367, 1652, 8606, 287, 470, 6128, 1279, 936, 607, 338, 13055, 491, 376, 489, 1642, 13, 29937, 29871, 29906, 29889, 14806, 848, 304, 15886, 11651, 5034, 304, 9657, 322, 2295, 29889, 13, 29937, 29871, 29941, 29889, 9133, 680, 1881, 29918, 9144, 363, 4844, 1061, 7945, 322, 16330, 29889, 13, 13, 5215, 775, 2395, 13, 5215, 4390, 13, 5215, 2897, 13, 5215, 10876, 13, 3166, 16250, 1053, 315, 5336, 13, 13, 5215, 26110, 408, 15886, 13, 13, 5215, 3667, 13, 3166, 2295, 1053, 12782, 13, 13, 13, 1990, 3630, 18689, 29898, 3318, 1125, 13, 1678, 478, 20166, 2882, 29918, 3904, 29968, 6632, 16048, 353, 11119, 3904, 29968, 29908, 13, 1678, 478, 20166, 2882, 29918, 29925, 17744, 4214, 353, 11119, 29925, 3035, 29908, 13, 13, 1678, 396, 3992, 3402, 29901, 3858, 29905, 29873, 15625, 6979, 1723, 29974, 10725, 29873, 15625, 3090, 1723, 29974, 10725, 29873, 15625, 6341, 29918, 14394, 1723, 29974, 1822, 13, 1678, 365, 8895, 29918, 5550, 29931, 1806, 29918, 23207, 353, 29871, 29946, 13, 13, 1678, 396, 11374, 310, 1196, 29892, 884, 2380, 297, 9657, 1051, 13, 1678, 365, 2882, 6670, 29918, 27992, 353, 29871, 29900, 13, 1678, 7495, 29968, 1430, 29918, 27992, 353, 29871, 29896, 13, 1678, 26871, 29918, 27992, 353, 29871, 29906, 13, 1678, 315, 17321, 6488, 29918, 16359, 1299, 11499, 29918, 27992, 353, 29871, 29941, 13, 1678, 501, 1660, 29918, 29903, 4162, 8426, 1964, 29918, 24461, 6670, 353, 7700, 13, 1678, 317, 4162, 8426, 1964, 29918, 24461, 6670, 29918, 24360, 353, 6796, 30564, 30437, 613, 376, 30594, 31014, 613, 376, 30356, 236, 156, 136, 613, 376, 31867, 30745, 3108, 13, 1678, 317, 4162, 8426, 1964, 29918, 24461, 6670, 353, 376, 29989, 1642, 7122, 29898, 29903, 4162, 8426, 1964, 29918, 24461, 6670, 29918, 24360, 29897, 13, 13, 1678, 396, 14402, 29898, 3034, 3845, 2589, 1125, 1423, 2295, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2295, 29892, 17927, 29922, 8516, 1125, 13, 4706, 1583, 29889, 2917, 353, 2295, 13, 4706, 565, 17927, 29901, 13, 9651, 1583, 29889, 21707, 353, 17927, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 21707, 353, 3667, 29889, 16363, 29898, 2917, 29897, 13, 4706, 1583, 29889, 8977, 29918, 7039, 353, 6796, 1643, 613, 376, 6979, 613, 376, 3090, 613, 376, 6341, 29918, 14394, 613, 13, 462, 965, 376, 6979, 29918, 29876, 1393, 613, 376, 3090, 29918, 29876, 1393, 613, 376, 3090, 29918, 262, 29918, 6979, 3108, 13, 4706, 1583, 29889, 8977, 29918, 5325, 353, 5159, 13, 4706, 363, 9657, 29918, 978, 297, 1583, 29889, 8977, 29918, 7039, 29901, 13, 9651, 1583, 29889, 8977, 29918, 5325, 29889, 4397, 29898, 13, 18884, 1583, 29889, 2917, 29889, 1272, 29889, 8977, 29918, 3972, 718, 5591, 29908, 718, 9657, 29918, 978, 718, 11393, 8977, 1159, 13, 4706, 1583, 29889, 1643, 29918, 8977, 29918, 1445, 353, 1583, 29889, 8977, 29918, 5325, 29961, 29900, 29962, 13, 13, 4706, 396, 10575, 3013, 599, 11073, 13, 4706, 1583, 29889, 1195, 29918, 2798, 353, 518, 29900, 29892, 1583, 29889, 2917, 29889, 14394, 29918, 9435, 29889, 1195, 29918, 6979, 29918, 2798, 29892, 13, 462, 3986, 1583, 29889, 2917, 29889, 14394, 29918, 9435, 29889, 1195, 29918, 3090, 29918, 2798, 29892, 13, 462, 3986, 1583, 29889, 2917, 29889, 1707, 29918, 2435, 29918, 14394, 29889, 1195, 29918, 6341, 29918, 14394, 29918, 2798, 29892, 13, 462, 3986, 1583, 29889, 2917, 29889, 1707, 29918, 2435, 29918, 14394, 29889, 1195, 29918, 6979, 29918, 29876, 1393, 29918, 2798, 29892, 13, 462, 3986, 1583, 29889, 2917, 29889, 1707, 29918, 2435, 29918, 14394, 29889, 1195, 29918, 3090, 29918, 29876, 1393, 29918, 2798, 29892, 13, 462, 3986, 1583, 29889, 2917, 29889, 14394, 29918, 9435, 29889, 1195, 29918, 3090, 29918, 2798, 29918, 262, 29918, 6979, 29962, 13, 4706, 396, 10575, 3013, 599, 11073, 13, 4706, 1583, 29889, 3317, 29918, 8977, 29918, 2311, 353, 320, 13, 9651, 518, 29896, 29900, 29900, 29900, 334, 29871, 29896, 29900, 29900, 29900, 29892, 1583, 29889, 2917, 29889, 14394, 29918, 9435, 29889, 3317, 29918, 6979, 29918, 8977, 29918, 2311, 29892, 13, 632, 1583, 29889, 2917, 29889, 14394, 29918, 9435, 29889, 3317, 29918, 3090, 29918, 8977, 29918, 2311, 29892, 13, 632, 1583, 29889, 2917, 29889, 1707, 29918, 2435, 29918, 14394, 29889, 3317, 29918, 6341, 29918, 14394, 29918, 8977, 29918, 2311, 29892, 13, 632, 1583, 29889, 2917, 29889, 1707, 29918, 2435, 29918, 14394, 29889, 3317, 29918, 6979, 29918, 29876, 1393, 29918, 8977, 29918, 2311, 29892, 13, 632, 1583, 29889, 2917, 29889, 1707, 29918, 2435, 29918, 14394, 29889, 3317, 29918, 3090, 29918, 29876, 1393, 29918, 8977, 29918, 2311, 29892, 13, 632, 1583, 29889, 2917, 29889, 14394, 29918, 9435, 29889, 3317, 29918, 3090, 29918, 262, 29918, 6979, 29918, 8977, 29918, 2311, 29962, 13, 4706, 396, 15796, 322, 2888, 4682, 756, 694, 4236, 29918, 16506, 29918, 2848, 29889, 13, 4706, 1583, 29889, 3317, 29918, 16506, 29918, 2848, 353, 320, 13, 9651, 518, 29900, 29892, 1583, 29889, 2917, 29889, 20227, 29918, 2435, 29918, 14394, 29889, 3317, 29918, 6979, 29918, 16506, 29918, 2848, 29892, 13, 632, 1583, 29889, 2917, 29889, 20227, 29918, 2435, 29918, 14394, 29889, 3317, 29918, 3090, 29918, 16506, 29918, 2848, 29892, 29871, 29900, 29962, 13, 4706, 396, 15796, 322, 2888, 4682, 756, 694, 302, 1393, 29889, 13, 4706, 1583, 29889, 29876, 1393, 29918, 1761, 353, 518, 29900, 29892, 1583, 29889, 2917, 29889, 1707, 29918, 2435, 29918, 14394, 29889, 6979, 29918, 29876, 1393, 29892, 13, 462, 965, 1583, 29889, 2917, 29889, 1707, 29918, 2435, 29918, 14394, 29889, 3090, 29918, 29876, 1393, 29892, 29871, 29900, 29962, 13, 4706, 1583, 29889, 1643, 29918, 1958, 353, 9657, 580, 13, 4706, 1583, 29889, 6979, 29918, 1958, 353, 9657, 580, 13, 4706, 1583, 29889, 3090, 29918, 1958, 353, 9657, 580, 13, 4706, 1583, 29889, 6341, 29918, 14394, 29918, 1958, 353, 9657, 580, 13, 4706, 1583, 29889, 6979, 29918, 1393, 29918, 1958, 353, 9657, 580, 13, 4706, 1583, 29889, 3090, 29918, 1393, 29918, 1958, 353, 9657, 580, 13, 4706, 1583, 29889, 3090, 29918, 262, 29918, 6979, 29918, 1958, 353, 9657, 580, 13, 4706, 1583, 29889, 8977, 29918, 1761, 353, 518, 1311, 29889, 1643, 29918, 1958, 29892, 1583, 29889, 6979, 29918, 1958, 29892, 1583, 29889, 3090, 29918, 1958, 29892, 13, 462, 3986, 1583, 29889, 6341, 29918, 14394, 29918, 1958, 29892, 1583, 29889, 6979, 29918, 1393, 29918, 1958, 29892, 13, 462, 3986, 1583, 29889, 3090, 29918, 1393, 29918, 1958, 29892, 1583, 29889, 3090, 29918, 262, 29918, 6979, 29918, 1958, 29962, 13, 13, 4706, 1583, 29889, 333, 29918, 517, 29918, 1643, 29918, 1958, 353, 9657, 580, 13, 4706, 1583, 29889, 333, 29918, 517, 29918, 6979, 29918, 1958, 353, 9657, 580, 13, 4706, 1583, 29889, 333, 29918, 517, 29918, 3090, 29918, 1958, 353, 9657, 580, 13, 4706, 1583, 29889, 333, 29918, 517, 29918, 6341, 29918, 14394, 29918, 1958, 353, 9657, 580, 13, 4706, 1583, 29889, 333, 29918, 517, 29918, 6979, 29918, 1393, 29918, 1958, 353, 9657, 580, 13, 4706, 1583, 29889, 333, 29918, 517, 29918, 3090, 29918, 1393, 29918, 1958, 353, 9657, 580, 13, 4706, 1583, 29889, 333, 29918, 517, 29918, 3090, 29918, 262, 29918, 6979, 29918, 1958, 353, 9657, 580, 13, 4706, 1583, 29889, 333, 29918, 517, 29918, 29894, 542, 370, 29918, 8977, 29918, 1761, 353, 518, 13, 9651, 1583, 29889, 333, 29918, 517, 29918, 1643, 29918, 1958, 29892, 1583, 29889, 333, 29918, 517, 29918, 6979, 29918, 1958, 29892, 13, 9651, 1583, 29889, 333, 29918, 517, 29918, 3090, 29918, 1958, 29892, 1583, 29889, 333, 29918, 517, 29918, 6341, 29918, 14394, 29918, 1958, 29892, 13, 9651, 1583, 29889, 333, 29918, 517, 29918, 6979, 29918, 1393, 29918, 1958, 29892, 1583, 29889, 333, 29918, 517, 29918, 3090, 29918, 1393, 29918, 1958, 29892, 13, 9651, 1583, 29889, 333, 29918, 517, 29918, 3090, 29918, 262, 29918, 6979, 29918, 1958, 29962, 13, 13, 4706, 1583, 29889, 14968, 29918, 726, 29918, 1445, 29892, 1583, 29889, 15480, 29918, 726, 29918, 1445, 29892, 1583, 29889, 1688, 29918, 726, 29918, 1445, 353, 320, 13, 9651, 1583, 29889, 2917, 29889, 1272, 29889, 14968, 29918, 726, 29918, 1445, 29892, 320, 13, 9651, 1583, 29889, 2917, 29889, 1272, 29889, 15480, 29918, 726, 29918, 1445, 29892, 320, 13, 9651, 1583, 29889, 2917, 29889, 1272, 29889, 1688, 29918, 726, 29918, 1445, 13, 13, 4706, 1583, 29889, 13264, 11651, 29918, 5325, 353, 518, 13, 9651, 1583, 29889, 2917, 29889, 1272, 29889, 13264, 11651, 29918, 3972, 718, 5591, 29908, 718, 2897, 29889, 2084, 29889, 6500, 3871, 29898, 13, 18884, 1583, 29889, 14968, 29918, 726, 29918, 1445, 29897, 718, 11393, 13264, 11651, 613, 13, 9651, 1583, 29889, 2917, 29889, 1272, 29889, 13264, 11651, 29918, 3972, 718, 5591, 29908, 718, 2897, 29889, 2084, 29889, 6500, 3871, 29898, 13, 18884, 1583, 29889, 15480, 29918, 726, 29918, 1445, 29897, 718, 11393, 13264, 11651, 613, 13, 9651, 1583, 29889, 2917, 29889, 1272, 29889, 13264, 11651, 29918, 3972, 718, 5591, 29908, 718, 2897, 29889, 2084, 29889, 6500, 3871, 29898, 13, 18884, 1583, 29889, 1688, 29918, 726, 29918, 1445, 29897, 718, 11393, 13264, 11651, 3108, 13, 4706, 1583, 29889, 14968, 29918, 1445, 29892, 1583, 29889, 15480, 29918, 1445, 29892, 1583, 29889, 1688, 29918, 1445, 353, 320, 13, 9651, 1583, 29889, 13264, 11651, 29918, 5325, 13, 13, 4706, 1583, 29889, 14394, 29918, 5325, 353, 518, 13, 9651, 1583, 29889, 2917, 29889, 1272, 29889, 13264, 11651, 29918, 3972, 718, 5591, 29908, 718, 2897, 29889, 2084, 29889, 6500, 3871, 29898, 13, 18884, 1583, 29889, 14968, 29918, 726, 29918, 1445, 29897, 718, 11393, 14394, 613, 13, 9651, 1583, 29889, 2917, 29889, 1272, 29889, 13264, 11651, 29918, 3972, 718, 5591, 29908, 718, 2897, 29889, 2084, 29889, 6500, 3871, 29898, 13, 18884, 1583, 29889, 15480, 29918, 726, 29918, 1445, 29897, 718, 11393, 14394, 613, 13, 9651, 1583, 29889, 2917, 29889, 1272, 29889, 13264, 11651, 29918, 3972, 718, 5591, 29908, 718, 2897, 29889, 2084, 29889, 6500, 3871, 29898, 13, 18884, 1583, 29889, 1688, 29918, 726, 29918, 1445, 29897, 718, 11393, 14394, 3108, 13, 4706, 313, 1311, 29889, 14968, 29918, 14394, 29918, 1445, 29892, 1583, 29889, 15480, 29918, 14394, 29918, 1445, 29892, 13, 308, 1583, 29889, 1688, 29918, 14394, 29918, 1445, 29897, 353, 1583, 29889, 14394, 29918, 5325, 13, 13, 4706, 1583, 29889, 1457, 3018, 1312, 29918, 17987, 8497, 29918, 5325, 353, 518, 13, 9651, 12633, 2295, 29889, 14394, 29918, 9435, 29889, 6979, 29918, 1457, 3018, 1312, 29918, 17987, 8497, 29918, 1445, 29892, 13, 9651, 2295, 29889, 14394, 29918, 9435, 29889, 3090, 29918, 1457, 3018, 1312, 29918, 17987, 8497, 29918, 1445, 29892, 13, 9651, 2295, 29889, 1707, 29918, 2435, 29918, 14394, 29889, 6341, 29918, 14394, 29918, 1457, 3018, 1312, 29918, 17987, 8497, 29918, 1445, 29892, 4514, 13, 13, 4706, 1583, 29889, 524, 29918, 1761, 29918, 4914, 353, 6796, 20227, 29918, 2435, 29918, 6979, 613, 376, 1707, 29918, 2435, 29918, 6979, 613, 13, 462, 18884, 376, 3090, 29918, 262, 29918, 6979, 613, 376, 3090, 29918, 262, 29918, 6979, 29918, 6370, 29918, 2435, 613, 13, 462, 18884, 376, 20227, 29918, 2435, 29918, 3090, 613, 376, 1707, 29918, 2435, 29918, 3090, 613, 13, 462, 18884, 376, 1707, 29918, 2435, 29918, 6979, 29918, 29876, 1393, 613, 376, 1707, 29918, 2435, 29918, 3090, 29918, 29876, 1393, 613, 13, 462, 18884, 376, 1707, 29918, 2435, 29918, 6341, 29918, 14394, 3108, 13, 4706, 1583, 29889, 524, 29918, 4914, 353, 6796, 6979, 29918, 20227, 29918, 6370, 29918, 2435, 613, 376, 3090, 29918, 20227, 29918, 6370, 29918, 2435, 3108, 13, 4706, 1583, 29889, 7411, 29918, 4914, 353, 6796, 6979, 29918, 1707, 29918, 6370, 29918, 2435, 613, 376, 3090, 29918, 1707, 29918, 6370, 29918, 2435, 613, 13, 462, 632, 376, 6979, 29918, 29876, 1393, 29918, 1707, 29918, 6370, 29918, 2435, 613, 13, 462, 632, 376, 3090, 29918, 29876, 1393, 29918, 1707, 29918, 6370, 29918, 2435, 613, 13, 462, 632, 376, 6341, 29918, 14394, 29918, 1707, 29918, 6370, 29918, 2435, 3108, 13, 13, 1678, 822, 903, 7620, 29918, 8977, 29898, 1311, 29892, 9657, 29918, 1445, 29892, 6795, 29892, 1024, 1125, 13, 4706, 9995, 11371, 599, 7931, 370, 304, 934, 29889, 13, 4706, 826, 3174, 29901, 13, 9651, 9657, 29918, 1445, 29901, 3497, 304, 4078, 304, 29889, 13, 9651, 6795, 29901, 478, 542, 370, 18139, 29889, 13, 9651, 1024, 29901, 360, 919, 1024, 29889, 13, 4706, 9995, 13, 4706, 9657, 29918, 1761, 353, 6795, 29889, 3242, 29918, 9435, 580, 13, 4706, 9657, 29918, 1445, 353, 775, 2395, 29889, 3150, 29898, 8977, 29918, 1445, 29892, 376, 29893, 613, 8025, 29922, 4422, 29889, 11282, 10490, 29897, 13, 4706, 396, 16913, 903, 3904, 29968, 363, 7931, 370, 451, 297, 9657, 322, 903, 29925, 3035, 363, 7164, 13, 4706, 2302, 353, 29871, 29896, 29900, 29900, 29900, 334, 29871, 29896, 29900, 29900, 29900, 29871, 396, 19928, 16600, 1135, 1375, 2302, 13, 4706, 565, 1024, 2804, 376, 1643, 1115, 13, 9651, 9657, 29918, 1761, 353, 17288, 1311, 29889, 29963, 20166, 2882, 29918, 29925, 17744, 4214, 29892, 2302, 511, 13, 462, 308, 313, 1311, 29889, 29963, 20166, 2882, 29918, 3904, 29968, 6632, 16048, 29892, 2302, 4638, 718, 9657, 29918, 1761, 13, 4706, 363, 7931, 370, 297, 9657, 29918, 1761, 29901, 13, 9651, 9657, 29918, 1445, 29889, 3539, 11702, 29879, 29905, 29873, 29995, 29881, 29905, 29876, 29908, 1273, 313, 29894, 542, 370, 29961, 29900, 1402, 7931, 370, 29961, 29896, 12622, 13, 4706, 9657, 29918, 1445, 29889, 5358, 580, 13, 4706, 1583, 29889, 21707, 29889, 3888, 703, 11536, 2302, 310, 1273, 29879, 29901, 1273, 29881, 29908, 1273, 313, 978, 29892, 7431, 29898, 8977, 29918, 1761, 4961, 13, 13, 1678, 822, 903, 1359, 29918, 8977, 29898, 1311, 29892, 9657, 29918, 1958, 29892, 1178, 29918, 517, 29918, 29894, 542, 370, 29918, 8977, 29918, 1958, 29892, 9657, 29918, 1445, 29892, 1375, 29918, 2798, 29892, 13, 462, 259, 4236, 29918, 8977, 29918, 2311, 29892, 1024, 1125, 13, 4706, 9995, 5896, 9657, 5034, 304, 8636, 29889, 13, 4706, 826, 3174, 29901, 13, 9651, 9657, 29918, 1958, 29901, 478, 542, 370, 9657, 2910, 29889, 13, 9651, 1178, 29918, 517, 29918, 29894, 542, 370, 29918, 8977, 29918, 1958, 29901, 5163, 304, 7931, 370, 9657, 2910, 29889, 13, 9651, 9657, 29918, 1445, 29901, 3497, 304, 2254, 29889, 13, 9651, 1375, 29918, 2798, 29901, 478, 542, 370, 5069, 2302, 338, 5186, 470, 7621, 1135, 1375, 29918, 2798, 13, 462, 539, 674, 367, 7500, 29889, 13, 9651, 4236, 29918, 8977, 29918, 2311, 29901, 16012, 2246, 4236, 29918, 8977, 29918, 2311, 7931, 6897, 12705, 491, 2302, 29889, 13, 9651, 1024, 29901, 360, 919, 1024, 29889, 13, 4706, 16969, 29901, 13, 9651, 9657, 29889, 13, 4706, 9995, 13, 4706, 565, 451, 2897, 29889, 2084, 29889, 9933, 29898, 8977, 29918, 1445, 1125, 13, 9651, 1583, 29889, 21707, 29889, 25442, 703, 3664, 4864, 1273, 29879, 363, 1273, 29879, 29908, 1273, 313, 8977, 29918, 1445, 29892, 1024, 876, 13, 4706, 1683, 29901, 13, 9651, 363, 1196, 297, 775, 2395, 29889, 3150, 29898, 8977, 29918, 1445, 29892, 376, 29878, 613, 8025, 29922, 4422, 29889, 11282, 10490, 1125, 13, 18884, 7931, 370, 353, 1196, 29889, 17010, 14182, 29876, 2564, 5451, 14182, 29873, 1159, 13, 18884, 1018, 29901, 13, 462, 1678, 5694, 353, 7931, 370, 29961, 29896, 29962, 13, 18884, 5174, 11374, 2392, 29901, 13, 462, 1678, 6773, 13, 18884, 565, 938, 29898, 7382, 29897, 6736, 1375, 29918, 2798, 29901, 13, 462, 1678, 2380, 353, 7431, 29898, 8977, 29918, 1958, 29897, 13, 462, 1678, 9657, 29918, 1958, 29961, 29894, 542, 370, 29961, 29900, 5262, 353, 2380, 13, 462, 1678, 1178, 29918, 517, 29918, 29894, 542, 370, 29918, 8977, 29918, 1958, 29961, 2248, 29962, 353, 7931, 370, 29961, 29900, 29962, 13, 18884, 565, 7431, 29898, 8977, 29918, 1958, 29897, 6736, 4236, 29918, 8977, 29918, 2311, 29901, 13, 462, 1678, 1583, 29889, 21707, 29889, 25442, 29898, 13, 462, 4706, 376, 1123, 496, 278, 4236, 2159, 29414, 29881, 29897, 310, 1273, 29879, 29892, 11455, 278, 1791, 29908, 1273, 313, 13, 462, 9651, 4236, 29918, 8977, 29918, 2311, 29892, 1024, 876, 13, 462, 1678, 2867, 13, 9651, 1583, 29889, 21707, 29889, 3888, 703, 5896, 1273, 29881, 7931, 370, 310, 1273, 29879, 29908, 1273, 313, 2435, 29898, 8977, 29918, 1958, 511, 1024, 876, 13, 13, 1678, 822, 2254, 29918, 497, 29918, 8977, 29898, 1311, 1125, 13, 4706, 9995, 5896, 599, 9657, 29889, 13, 4706, 9995, 13, 4706, 363, 474, 29892, 9657, 29918, 978, 297, 26985, 29898, 1311, 29889, 8977, 29918, 7039, 1125, 13, 9651, 1583, 3032, 1359, 29918, 8977, 29898, 1311, 29889, 8977, 29918, 1761, 29961, 29875, 1402, 1583, 29889, 333, 29918, 517, 29918, 29894, 542, 370, 29918, 8977, 29918, 1761, 29961, 29875, 1402, 13, 462, 9651, 1583, 29889, 8977, 29918, 5325, 29961, 29875, 1402, 1583, 29889, 1195, 29918, 2798, 29961, 29875, 1402, 13, 462, 9651, 1583, 29889, 3317, 29918, 8977, 29918, 2311, 29961, 29875, 1402, 9657, 29918, 978, 29897, 13, 13, 1678, 822, 903, 17158, 29918, 8977, 29898, 1311, 29892, 1426, 29918, 1445, 29918, 1761, 1125, 13, 4706, 9995, 5631, 403, 9657, 322, 3858, 9657, 2183, 7945, 1426, 934, 29889, 13, 4706, 16913, 599, 7931, 370, 304, 2066, 322, 2254, 9657, 29879, 29889, 13, 4706, 3992, 3402, 29901, 3858, 29905, 29873, 15625, 6979, 1723, 29974, 10725, 29873, 15625, 3090, 1723, 29974, 10725, 29873, 15625, 14394, 1723, 29974, 1822, 13, 4706, 15796, 1033, 367, 1652, 8606, 287, 470, 6128, 1279, 936, 607, 338, 13055, 491, 376, 489, 1642, 13, 4706, 826, 3174, 29901, 13, 9651, 1426, 29918, 1445, 29918, 1761, 29901, 13, 18884, 3992, 934, 1051, 29892, 5491, 871, 1712, 7945, 1426, 934, 29889, 13, 4706, 9995, 13, 4706, 4559, 29918, 2311, 353, 29871, 29900, 13, 4706, 3858, 29918, 11808, 353, 315, 5336, 580, 13, 4706, 5993, 29918, 11808, 353, 315, 5336, 580, 13, 4706, 1373, 29918, 262, 29918, 6979, 29918, 11808, 353, 315, 5336, 580, 13, 4706, 5993, 29918, 29876, 1393, 29918, 11808, 353, 315, 5336, 580, 13, 4706, 1373, 29918, 11808, 353, 315, 5336, 580, 13, 4706, 1373, 29918, 29876, 1393, 29918, 11808, 353, 315, 5336, 580, 13, 4706, 2888, 29918, 14394, 29918, 11808, 353, 315, 5336, 580, 13, 4706, 2613, 2153, 353, 518, 1643, 29918, 11808, 29892, 5993, 29918, 11808, 29892, 1373, 29918, 11808, 29892, 13, 462, 1678, 2888, 29918, 14394, 29918, 11808, 29892, 5993, 29918, 29876, 1393, 29918, 11808, 29892, 13, 462, 1678, 1373, 29918, 29876, 1393, 29918, 11808, 29892, 1373, 29918, 262, 29918, 6979, 29918, 11808, 29962, 13, 4706, 363, 1426, 29918, 1445, 297, 1426, 29918, 1445, 29918, 1761, 29901, 13, 9651, 1583, 29889, 21707, 29889, 3888, 703, 5631, 403, 9657, 773, 1426, 934, 1273, 29879, 29908, 1273, 1426, 29918, 1445, 29897, 13, 9651, 363, 1196, 297, 775, 2395, 29889, 3150, 29898, 726, 29918, 1445, 29892, 376, 29878, 613, 8025, 2433, 9420, 29947, 29374, 13, 18884, 2793, 353, 1196, 29889, 17010, 14182, 29876, 2564, 5451, 28909, 29873, 1495, 13, 18884, 565, 7431, 29898, 3051, 29897, 2804, 1583, 29889, 18521, 29918, 5550, 29931, 1806, 29918, 23207, 29901, 13, 462, 1678, 1583, 29889, 21707, 29889, 2704, 703, 29956, 29373, 1196, 29901, 1273, 29879, 29908, 1273, 1196, 29897, 13, 462, 1678, 6773, 13, 18884, 4559, 29918, 2311, 4619, 29871, 29896, 13, 13, 18884, 363, 474, 29892, 903, 297, 26985, 29898, 3051, 1125, 13, 462, 1678, 7931, 6897, 353, 2793, 29961, 29875, 1822, 17010, 2141, 5451, 703, 16521, 13, 462, 1678, 2613, 2153, 29961, 29875, 1822, 5504, 29898, 29894, 542, 6897, 29897, 13, 462, 1678, 565, 474, 1275, 1583, 29889, 24461, 6670, 29918, 27992, 29901, 13, 462, 4706, 396, 29871, 232, 165, 161, 30666, 31141, 233, 177, 141, 30832, 31548, 30687, 13, 462, 4706, 565, 7931, 6897, 29961, 29900, 29962, 297, 1583, 29889, 29903, 4162, 8426, 1964, 29918, 24461, 6670, 29918, 24360, 322, 1583, 29889, 17171, 29918, 29903, 4162, 8426, 1964, 29918, 24461, 6670, 29901, 13, 462, 9651, 7931, 6897, 353, 518, 1311, 29889, 29903, 4162, 8426, 1964, 29918, 24461, 6670, 29962, 13, 462, 9651, 2613, 2153, 29961, 29875, 1822, 5504, 29898, 29894, 542, 6897, 29897, 13, 462, 1678, 396, 960, 7931, 370, 338, 5993, 29892, 6597, 1373, 5235, 310, 1269, 5993, 13, 462, 1678, 565, 474, 1275, 1583, 29889, 4986, 29968, 1430, 29918, 27992, 29901, 13, 462, 4706, 1373, 29918, 262, 29918, 6979, 353, 5159, 13, 462, 4706, 363, 7931, 370, 297, 7931, 6897, 29901, 13, 462, 9651, 1373, 29918, 262, 29918, 6979, 29889, 21843, 29898, 29894, 542, 370, 29897, 13, 462, 4706, 1373, 29918, 262, 29918, 6979, 29918, 11808, 29889, 5504, 29898, 3090, 29918, 262, 29918, 6979, 29897, 13, 462, 1678, 565, 1583, 29889, 29876, 1393, 29918, 1761, 29961, 29875, 29962, 1405, 29871, 29896, 29901, 13, 462, 4706, 302, 1393, 29918, 1761, 353, 5159, 13, 462, 4706, 363, 432, 297, 3464, 29898, 29906, 29892, 1583, 29889, 29876, 1393, 29918, 1761, 29961, 29875, 29962, 718, 29871, 29896, 1125, 13, 462, 9651, 302, 1393, 29918, 1761, 29889, 21843, 29898, 3366, 1642, 7122, 29898, 29894, 542, 6897, 29961, 29895, 29901, 29895, 718, 432, 2314, 363, 413, 297, 13, 462, 462, 1669, 3464, 29898, 2435, 29898, 29894, 542, 6897, 29897, 448, 432, 718, 29871, 29896, 29897, 2314, 13, 462, 4706, 2613, 2153, 29961, 29875, 718, 29871, 29941, 1822, 5504, 29898, 29876, 1393, 29918, 1761, 29897, 13, 4706, 363, 6795, 297, 2613, 2153, 29901, 13, 9651, 565, 5124, 297, 6795, 29889, 8149, 7295, 13, 18884, 6795, 29889, 7323, 703, 1159, 13, 4706, 1583, 29889, 21707, 29889, 3888, 703, 11249, 2159, 29901, 1273, 29881, 29908, 1273, 4559, 29918, 2311, 29897, 13, 13, 4706, 363, 474, 29892, 9657, 29918, 978, 297, 26985, 29898, 1311, 29889, 8977, 29918, 7039, 1125, 13, 9651, 1583, 3032, 7620, 29918, 8977, 29898, 1311, 29889, 8977, 29918, 5325, 29961, 29875, 1402, 2613, 2153, 29961, 29875, 1402, 1583, 29889, 8977, 29918, 7039, 29961, 29875, 2314, 13, 13, 1678, 822, 903, 657, 29918, 29894, 542, 370, 29918, 333, 29918, 1761, 29898, 1311, 29892, 9657, 29918, 1958, 29892, 7931, 6897, 29892, 302, 1393, 29892, 5665, 29918, 2848, 29892, 13, 462, 965, 4236, 29918, 1707, 29918, 2848, 29892, 302, 1393, 29918, 8977, 29918, 1958, 29922, 8516, 29892, 13, 462, 965, 1373, 29918, 262, 29918, 6979, 29918, 1958, 29922, 8516, 29892, 13, 462, 965, 4236, 29918, 3090, 29918, 16506, 29918, 2848, 29918, 546, 29918, 6979, 10457, 29896, 1125, 13, 4706, 9995, 18455, 7931, 370, 1347, 1051, 304, 7931, 370, 1178, 1051, 29889, 13, 4706, 826, 3174, 29901, 13, 9651, 9657, 29918, 1958, 29901, 360, 919, 1304, 304, 2910, 1347, 304, 1178, 29889, 13, 9651, 7931, 6897, 29901, 478, 542, 370, 1347, 1051, 29889, 13, 9651, 302, 1393, 29901, 405, 1393, 304, 671, 313, 361, 16600, 1135, 29871, 29896, 467, 13, 9651, 5665, 29918, 2848, 29901, 2391, 3309, 363, 4343, 3309, 7931, 370, 1178, 1051, 29889, 13, 9651, 4236, 29918, 1707, 29918, 2848, 29901, 2391, 3309, 363, 722, 3309, 7931, 370, 1178, 1051, 29889, 13, 9651, 302, 1393, 29918, 8977, 29918, 1958, 29901, 405, 1393, 9657, 2910, 29889, 13, 9651, 4236, 29918, 3090, 29918, 16506, 29918, 2848, 29918, 546, 29918, 6979, 29901, 13, 462, 1678, 4803, 1319, 746, 773, 1373, 304, 679, 5993, 23655, 29889, 13, 4706, 16969, 29901, 13, 9651, 4343, 3309, 7931, 370, 1178, 1051, 29892, 13, 9651, 1855, 3309, 310, 4343, 7931, 370, 1178, 1051, 29892, 13, 9651, 722, 3309, 7931, 370, 1178, 1051, 29892, 13, 9651, 302, 1393, 1347, 1051, 29889, 13, 4706, 9995, 13, 4706, 565, 7431, 29898, 8977, 29918, 1958, 29897, 1275, 29871, 29900, 470, 7431, 29898, 29894, 542, 6897, 29897, 1275, 29871, 29900, 29901, 13, 9651, 736, 19997, 29871, 29900, 29892, 19997, 19997, 19997, 5159, 13, 4706, 7931, 6897, 29918, 1524, 353, 518, 29916, 363, 921, 297, 7931, 6897, 565, 921, 297, 9657, 29918, 1958, 29962, 13, 4706, 722, 29918, 2435, 29918, 29894, 542, 6897, 353, 518, 8977, 29918, 1958, 29961, 29916, 29962, 363, 921, 297, 7931, 6897, 29918, 1524, 29962, 13, 4706, 565, 7431, 29898, 1707, 29918, 2435, 29918, 29894, 542, 6897, 29897, 1405, 4236, 29918, 1707, 29918, 2848, 29901, 13, 9651, 722, 29918, 2435, 29918, 29894, 542, 6897, 353, 722, 29918, 2435, 29918, 29894, 542, 6897, 29961, 29900, 29901, 3317, 29918, 1707, 29918, 2848, 29962, 13, 4706, 565, 451, 722, 29918, 2435, 29918, 29894, 542, 6897, 29901, 13, 9651, 722, 29918, 2435, 29918, 29894, 542, 6897, 29889, 4397, 29898, 8977, 29918, 1958, 29961, 1311, 29889, 29963, 20166, 2882, 29918, 3904, 29968, 6632, 16048, 2314, 13, 13, 4706, 565, 7431, 29898, 29894, 542, 6897, 29897, 1405, 5665, 29918, 2848, 29901, 13, 9651, 7931, 6897, 353, 7931, 6897, 29961, 29900, 29901, 16506, 29918, 2848, 29962, 13, 13, 4706, 4343, 29918, 2435, 29918, 29894, 542, 6897, 353, 5159, 13, 4706, 4343, 29918, 2435, 29918, 29894, 542, 6897, 29889, 21843, 29898, 13, 9651, 518, 8977, 29918, 1958, 29961, 29916, 29962, 565, 921, 297, 9657, 29918, 1958, 1683, 9657, 29918, 1958, 29961, 1311, 29889, 29963, 20166, 2882, 29918, 3904, 29968, 6632, 16048, 29962, 13, 632, 363, 921, 297, 7931, 6897, 2314, 13, 4706, 4343, 29918, 6370, 29918, 2435, 353, 7431, 29898, 20227, 29918, 2435, 29918, 29894, 542, 6897, 29897, 13, 4706, 565, 4343, 29918, 6370, 29918, 2435, 529, 5665, 29918, 2848, 29901, 13, 9651, 4343, 29918, 2435, 29918, 29894, 542, 6897, 29889, 21843, 4197, 8977, 29918, 1958, 29961, 1311, 29889, 29963, 20166, 2882, 29918, 29925, 17744, 4214, 5262, 334, 313, 13, 18884, 5665, 29918, 2848, 448, 7431, 29898, 20227, 29918, 2435, 29918, 29894, 542, 6897, 4961, 13, 13, 4706, 302, 1393, 29918, 1761, 353, 5159, 13, 4706, 565, 302, 1393, 1405, 29871, 29896, 29901, 13, 9651, 302, 1393, 29918, 1761, 29918, 710, 353, 5159, 13, 9651, 363, 474, 297, 3464, 29898, 29906, 29892, 302, 1393, 718, 29871, 29896, 1125, 13, 18884, 302, 1393, 29918, 1761, 29918, 710, 29889, 21843, 29898, 3366, 1642, 7122, 29898, 29894, 542, 6897, 29961, 29926, 29901, 29926, 718, 474, 2314, 363, 432, 297, 13, 462, 462, 539, 3464, 29898, 2435, 29898, 29894, 542, 6897, 29897, 448, 474, 718, 29871, 29896, 29897, 2314, 13, 9651, 302, 1393, 29918, 1524, 353, 518, 29916, 363, 921, 297, 302, 1393, 29918, 1761, 29918, 710, 565, 921, 297, 302, 1393, 29918, 8977, 29918, 1958, 29962, 13, 9651, 302, 1393, 29918, 1761, 353, 518, 29876, 1393, 29918, 8977, 29918, 1958, 29961, 29916, 29962, 363, 921, 297, 302, 1393, 29918, 1524, 29962, 13, 9651, 565, 451, 302, 1393, 29918, 1761, 29901, 13, 18884, 302, 1393, 29918, 1761, 29889, 4397, 29898, 29876, 1393, 29918, 8977, 29918, 1958, 29961, 1311, 29889, 29963, 20166, 2882, 29918, 3904, 29968, 6632, 16048, 2314, 13, 4706, 1373, 29918, 262, 29918, 6979, 353, 5159, 13, 4706, 1373, 29918, 262, 29918, 6979, 29918, 6370, 29918, 2435, 353, 5159, 13, 4706, 565, 4236, 29918, 3090, 29918, 16506, 29918, 2848, 29918, 546, 29918, 6979, 1405, 29871, 29900, 29901, 13, 9651, 3309, 353, 29871, 29900, 13, 9651, 363, 7931, 370, 297, 7931, 6897, 29901, 13, 18884, 3309, 4619, 29871, 29896, 13, 18884, 22524, 353, 5159, 13, 18884, 22524, 29889, 21843, 29898, 13, 462, 1678, 518, 3090, 29918, 262, 29918, 6979, 29918, 1958, 29961, 29916, 29962, 565, 921, 297, 1373, 29918, 262, 29918, 6979, 29918, 1958, 1683, 13, 462, 268, 1373, 29918, 262, 29918, 6979, 29918, 1958, 29961, 1311, 29889, 29963, 20166, 2882, 29918, 3904, 29968, 6632, 16048, 29962, 363, 921, 297, 7931, 370, 2314, 13, 18884, 565, 7431, 29898, 305, 1503, 29897, 1405, 4236, 29918, 3090, 29918, 16506, 29918, 2848, 29918, 546, 29918, 6979, 29901, 13, 462, 1678, 22524, 353, 22524, 29961, 29900, 29901, 3317, 29918, 3090, 29918, 16506, 29918, 2848, 29918, 546, 29918, 6979, 29962, 13, 18884, 1373, 29918, 262, 29918, 6979, 29918, 6370, 29918, 2435, 29889, 4397, 29898, 2435, 29898, 305, 1503, 876, 13, 18884, 565, 7431, 29898, 305, 1503, 29897, 529, 4236, 29918, 3090, 29918, 16506, 29918, 2848, 29918, 546, 29918, 6979, 29901, 13, 462, 1678, 22524, 29889, 21843, 4197, 3090, 29918, 262, 29918, 6979, 29918, 1958, 29961, 1311, 29889, 29963, 20166, 2882, 29918, 29925, 17744, 4214, 5262, 334, 313, 13, 462, 4706, 4236, 29918, 3090, 29918, 16506, 29918, 2848, 29918, 546, 29918, 6979, 448, 7431, 29898, 305, 1503, 4961, 13, 18884, 1373, 29918, 262, 29918, 6979, 29889, 21843, 29898, 305, 1503, 29897, 13, 9651, 1550, 3309, 529, 5665, 29918, 2848, 29901, 13, 18884, 3309, 4619, 29871, 29896, 13, 18884, 1373, 29918, 262, 29918, 6979, 29889, 21843, 29898, 13, 462, 1678, 518, 3090, 29918, 262, 29918, 6979, 29918, 1958, 29961, 1311, 29889, 29963, 20166, 2882, 29918, 29925, 17744, 4214, 5262, 334, 13, 462, 1678, 4236, 29918, 3090, 29918, 16506, 29918, 2848, 29918, 546, 29918, 6979, 29897, 13, 18884, 1373, 29918, 262, 29918, 6979, 29918, 6370, 29918, 2435, 29889, 4397, 29898, 29900, 29897, 13, 4706, 736, 313, 20227, 29918, 2435, 29918, 29894, 542, 6897, 29892, 4343, 29918, 6370, 29918, 2435, 29892, 722, 29918, 2435, 29918, 29894, 542, 6897, 29892, 302, 1393, 29918, 1761, 29892, 13, 18884, 1373, 29918, 262, 29918, 6979, 29892, 1373, 29918, 262, 29918, 6979, 29918, 6370, 29918, 2435, 29897, 13, 13, 1678, 822, 903, 657, 29918, 22100, 29918, 3166, 29918, 726, 29898, 1311, 29892, 1426, 29892, 756, 29918, 1643, 29922, 5574, 1125, 13, 4706, 9995, 12914, 1426, 304, 5680, 393, 1904, 508, 671, 29889, 13, 4706, 826, 3174, 29901, 13, 9651, 1426, 29901, 10567, 1426, 13, 9651, 756, 29918, 1643, 29901, 960, 1565, 29892, 1121, 674, 1712, 3858, 29889, 13, 4706, 16969, 29901, 13, 9651, 5169, 3698, 393, 1904, 508, 671, 29889, 13, 4706, 9995, 13, 4706, 2793, 353, 1426, 29889, 5451, 28909, 29873, 1495, 13, 4706, 565, 7431, 29898, 3051, 29897, 2804, 1583, 29889, 18521, 29918, 5550, 29931, 1806, 29918, 23207, 29901, 13, 9651, 1583, 29889, 21707, 29889, 2704, 703, 29956, 29373, 3402, 1196, 29901, 1273, 29879, 29908, 1273, 1426, 29897, 13, 9651, 736, 6213, 13, 13, 4706, 3858, 29918, 1807, 353, 2793, 29961, 1311, 29889, 24461, 6670, 29918, 27992, 29962, 13, 4706, 565, 756, 29918, 1643, 322, 3858, 29918, 1807, 451, 297, 1583, 29889, 1643, 29918, 1958, 29901, 13, 9651, 1583, 29889, 21707, 29889, 2704, 703, 29956, 29373, 3858, 310, 1196, 29901, 1273, 29879, 29908, 1273, 1426, 29897, 13, 9651, 736, 6213, 13, 13, 4706, 5993, 353, 2793, 29961, 1311, 29889, 4986, 29968, 1430, 29918, 27992, 1822, 17010, 2141, 5451, 703, 16521, 13, 4706, 313, 20227, 29918, 2435, 29918, 6979, 29892, 5993, 29918, 20227, 29918, 6370, 29918, 2435, 29892, 722, 29918, 2435, 29918, 6979, 29892, 13, 308, 722, 29918, 2435, 29918, 6979, 29918, 29876, 1393, 29892, 1373, 29918, 262, 29918, 6979, 29892, 1373, 29918, 262, 29918, 6979, 29918, 6370, 29918, 2435, 29897, 353, 320, 13, 9651, 1583, 3032, 657, 29918, 29894, 542, 370, 29918, 333, 29918, 1761, 29898, 13, 18884, 1583, 29889, 6979, 29918, 1958, 29892, 5993, 29892, 1583, 29889, 2917, 29889, 1707, 29918, 2435, 29918, 14394, 29889, 6979, 29918, 29876, 1393, 29892, 13, 18884, 1583, 29889, 2917, 29889, 20227, 29918, 2435, 29918, 14394, 29889, 3317, 29918, 6979, 29918, 16506, 29918, 2848, 29892, 13, 18884, 1583, 29889, 2917, 29889, 1707, 29918, 2435, 29918, 14394, 29889, 3317, 29918, 1707, 29918, 6979, 29918, 2848, 29892, 13, 18884, 1583, 29889, 6979, 29918, 1393, 29918, 1958, 29892, 1583, 29889, 3090, 29918, 262, 29918, 6979, 29918, 1958, 29892, 13, 18884, 1583, 29889, 2917, 29889, 20227, 29918, 2435, 29918, 14394, 29889, 3317, 29918, 3090, 29918, 2848, 29918, 546, 29918, 6979, 29897, 13, 13, 4706, 22524, 353, 2793, 29961, 1311, 29889, 11282, 29918, 27992, 1822, 17010, 2141, 5451, 703, 16521, 13, 4706, 313, 20227, 29918, 2435, 29918, 3090, 29892, 1373, 29918, 20227, 29918, 6370, 29918, 2435, 29892, 722, 29918, 2435, 29918, 3090, 29892, 722, 29918, 2435, 29918, 3090, 29918, 29876, 1393, 29892, 13, 308, 17117, 24459, 353, 1583, 3032, 657, 29918, 29894, 542, 370, 29918, 333, 29918, 1761, 29898, 13, 9651, 1583, 29889, 3090, 29918, 1958, 29892, 22524, 29892, 1583, 29889, 2917, 29889, 1707, 29918, 2435, 29918, 14394, 29889, 3090, 29918, 29876, 1393, 29892, 13, 9651, 1583, 29889, 2917, 29889, 20227, 29918, 2435, 29918, 14394, 29889, 3317, 29918, 3090, 29918, 16506, 29918, 2848, 29892, 13, 9651, 1583, 29889, 2917, 29889, 1707, 29918, 2435, 29918, 14394, 29889, 3317, 29918, 1707, 29918, 3090, 29918, 2848, 29892, 13, 9651, 1583, 29889, 3090, 29918, 1393, 29918, 1958, 29897, 13, 13, 4706, 2888, 29918, 22100, 353, 2793, 29961, 1311, 29889, 29907, 17321, 6488, 29918, 16359, 1299, 11499, 29918, 27992, 1822, 17010, 2141, 5451, 29898, 13, 9651, 376, 16521, 13, 4706, 17117, 17117, 722, 29918, 2435, 29918, 6341, 29918, 14394, 29892, 17117, 17117, 903, 353, 1583, 3032, 657, 29918, 29894, 542, 370, 29918, 333, 29918, 1761, 29898, 13, 9651, 1583, 29889, 6341, 29918, 14394, 29918, 1958, 29892, 2888, 29918, 22100, 29892, 29871, 29900, 29892, 29871, 29900, 29892, 29871, 29900, 29892, 13, 9651, 1583, 29889, 2917, 29889, 1707, 29918, 2435, 29918, 14394, 29889, 3317, 29918, 1707, 29918, 6341, 29918, 14394, 29918, 2848, 29892, 6213, 29897, 13, 13, 4706, 4682, 29918, 11249, 353, 9657, 3319, 13, 9651, 376, 20227, 29918, 2435, 29918, 6979, 1115, 4343, 29918, 2435, 29918, 6979, 29892, 13, 9651, 376, 6979, 29918, 20227, 29918, 6370, 29918, 2435, 1115, 5993, 29918, 20227, 29918, 6370, 29918, 2435, 29892, 13, 9651, 376, 1707, 29918, 2435, 29918, 6979, 1115, 722, 29918, 2435, 29918, 6979, 29892, 13, 9651, 376, 6979, 29918, 1707, 29918, 6370, 29918, 2435, 1115, 7431, 29898, 1707, 29918, 2435, 29918, 6979, 511, 13, 9651, 376, 3090, 29918, 262, 29918, 6979, 1115, 1373, 29918, 262, 29918, 6979, 29892, 13, 9651, 376, 3090, 29918, 262, 29918, 6979, 29918, 6370, 29918, 2435, 1115, 1373, 29918, 262, 29918, 6979, 29918, 6370, 29918, 2435, 29892, 13, 9651, 376, 1707, 29918, 2435, 29918, 6979, 29918, 29876, 1393, 1115, 722, 29918, 2435, 29918, 6979, 29918, 29876, 1393, 29892, 13, 9651, 376, 6979, 29918, 29876, 1393, 29918, 1707, 29918, 6370, 29918, 2435, 1115, 7431, 29898, 1707, 29918, 2435, 29918, 6979, 29918, 29876, 1393, 511, 13, 13, 9651, 376, 20227, 29918, 2435, 29918, 3090, 1115, 4343, 29918, 2435, 29918, 3090, 29892, 13, 9651, 376, 3090, 29918, 20227, 29918, 6370, 29918, 2435, 1115, 1373, 29918, 20227, 29918, 6370, 29918, 2435, 29892, 13, 9651, 376, 1707, 29918, 2435, 29918, 3090, 1115, 722, 29918, 2435, 29918, 3090, 29892, 13, 9651, 376, 3090, 29918, 1707, 29918, 6370, 29918, 2435, 1115, 7431, 29898, 1707, 29918, 2435, 29918, 3090, 511, 13, 9651, 376, 1707, 29918, 2435, 29918, 3090, 29918, 29876, 1393, 1115, 722, 29918, 2435, 29918, 3090, 29918, 29876, 1393, 29892, 13, 9651, 376, 3090, 29918, 29876, 1393, 29918, 1707, 29918, 6370, 29918, 2435, 1115, 7431, 29898, 1707, 29918, 2435, 29918, 3090, 29918, 29876, 1393, 511, 13, 13, 9651, 376, 1707, 29918, 2435, 29918, 6341, 29918, 14394, 1115, 722, 29918, 2435, 29918, 6341, 29918, 14394, 29892, 13, 9651, 376, 6341, 29918, 14394, 29918, 1707, 29918, 6370, 29918, 2435, 1115, 7431, 29898, 1707, 29918, 2435, 29918, 6341, 29918, 14394, 29897, 13, 4706, 5615, 13, 4706, 565, 756, 29918, 1643, 29901, 13, 9651, 3858, 353, 1583, 29889, 1643, 29918, 1958, 29961, 3051, 29961, 29900, 5262, 13, 9651, 565, 2793, 29961, 1311, 29889, 24461, 6670, 29918, 27992, 29962, 297, 1583, 29889, 29903, 4162, 8426, 1964, 29918, 24461, 6670, 29918, 24360, 322, 1583, 29889, 17171, 29918, 29903, 4162, 8426, 1964, 29918, 24461, 6670, 29901, 13, 18884, 3858, 353, 1583, 29889, 1643, 29918, 1958, 29961, 1311, 29889, 29903, 4162, 8426, 1964, 29918, 24461, 6670, 29962, 13, 9651, 4682, 29918, 11249, 3366, 1643, 3108, 353, 3858, 13, 4706, 736, 4682, 29918, 11249, 13, 13, 1678, 822, 903, 13441, 29918, 22100, 29918, 517, 29918, 13264, 4773, 29898, 1311, 29892, 4682, 29918, 11249, 29892, 13, 462, 462, 539, 756, 29918, 1643, 29922, 5574, 1125, 13, 4706, 9995, 18455, 4682, 4559, 304, 15886, 29889, 4773, 13, 4706, 826, 3174, 29901, 13, 9651, 4682, 29918, 11249, 29901, 5169, 1535, 4559, 29889, 13, 9651, 756, 29918, 1643, 29901, 960, 1565, 29892, 1121, 674, 1712, 3858, 13, 4706, 16969, 29901, 13, 9651, 15886, 29889, 4773, 13, 4706, 9995, 13, 4706, 565, 451, 4682, 29918, 11249, 29901, 13, 9651, 736, 6213, 13, 4706, 15886, 4773, 353, 15886, 29889, 14968, 29889, 14023, 580, 13, 4706, 363, 1024, 297, 1583, 29889, 524, 29918, 1761, 29918, 4914, 29901, 13, 9651, 15886, 4773, 29889, 22100, 29889, 14394, 29961, 978, 1822, 524, 29953, 29946, 29918, 1761, 29889, 1767, 29889, 21843, 29898, 13, 18884, 4682, 29918, 11249, 29961, 978, 2314, 13, 4706, 363, 1024, 297, 1583, 29889, 524, 29918, 4914, 29901, 13, 9651, 15886, 4773, 29889, 22100, 29889, 14394, 29961, 978, 1822, 524, 29953, 29946, 29918, 1761, 29889, 1767, 29889, 4397, 29898, 13, 18884, 4682, 29918, 11249, 29961, 978, 2314, 13, 4706, 363, 1024, 297, 1583, 29889, 7411, 29918, 4914, 29901, 13, 9651, 15886, 4773, 29889, 22100, 29889, 14394, 29961, 978, 1822, 7411, 29918, 1761, 29889, 1767, 29889, 4397, 29898, 13, 18884, 4682, 29918, 11249, 29961, 978, 2314, 13, 4706, 565, 756, 29918, 1643, 29901, 13, 9651, 15886, 4773, 29889, 22100, 29889, 14394, 3366, 1643, 16862, 524, 29953, 29946, 29918, 1761, 29889, 1767, 29889, 4397, 29898, 13, 18884, 4682, 29918, 11249, 3366, 1643, 20068, 13, 4706, 736, 15886, 4773, 13, 13, 1678, 822, 679, 29918, 13264, 4773, 29918, 3166, 29918, 726, 29898, 1311, 29892, 1426, 29892, 756, 29918, 1643, 29922, 5574, 1125, 13, 4706, 4682, 29918, 11249, 353, 1583, 3032, 657, 29918, 22100, 29918, 3166, 29918, 726, 29898, 726, 29892, 756, 29918, 1643, 29897, 13, 4706, 15886, 4773, 353, 1583, 3032, 13441, 29918, 22100, 29918, 517, 29918, 13264, 4773, 29898, 14394, 29918, 11249, 29892, 13, 462, 462, 462, 4706, 756, 29918, 1643, 29897, 13, 4706, 736, 15886, 4773, 29892, 4682, 29918, 11249, 13, 13, 1678, 822, 903, 657, 29918, 13264, 11651, 29918, 3166, 29918, 726, 29918, 1445, 29898, 1311, 29892, 1426, 29918, 1445, 29892, 15886, 11651, 29918, 1445, 29892, 13, 462, 462, 268, 4682, 29918, 1445, 1125, 13, 4706, 9995, 2577, 15886, 11651, 515, 1426, 934, 29889, 13, 4706, 3992, 3402, 29901, 3858, 29905, 29873, 15625, 6979, 1723, 29974, 10725, 29873, 15625, 3090, 1723, 29974, 10725, 29873, 15625, 14394, 1723, 29974, 1822, 13, 4706, 15796, 1033, 367, 1652, 8606, 287, 470, 6128, 1279, 936, 607, 338, 13055, 491, 376, 489, 1642, 13, 4706, 826, 3174, 29901, 13, 9651, 1426, 29918, 1445, 29901, 3992, 934, 29889, 13, 9651, 15886, 11651, 29918, 1445, 29901, 323, 29888, 11651, 934, 304, 2436, 29889, 13, 9651, 4682, 29918, 1445, 29901, 5169, 1535, 934, 29892, 674, 4078, 4682, 4559, 363, 4744, 29889, 13, 462, 3986, 1152, 12725, 322, 1243, 17983, 13, 4706, 9995, 13, 4706, 1583, 29889, 21707, 29889, 3888, 703, 2577, 15886, 11651, 515, 1426, 934, 1273, 29879, 29908, 1273, 1426, 29918, 1445, 29897, 13, 4706, 9227, 353, 15886, 29889, 4691, 29918, 601, 29889, 8969, 9182, 10507, 29898, 13264, 11651, 29918, 1445, 29897, 13, 13, 4706, 4559, 29918, 2311, 353, 29871, 29900, 13, 4706, 411, 775, 2395, 29889, 3150, 29898, 14394, 29918, 1445, 29892, 376, 29893, 613, 13, 462, 308, 8025, 29922, 4422, 29889, 11282, 10490, 29897, 408, 3858, 29918, 1445, 29901, 13, 9651, 363, 1196, 297, 775, 2395, 29889, 3150, 29898, 726, 29918, 1445, 29892, 376, 29878, 613, 8025, 2433, 9420, 29947, 29374, 13, 18884, 15886, 4773, 29892, 4682, 29918, 11249, 353, 1583, 29889, 657, 29918, 13264, 4773, 29918, 3166, 29918, 726, 29898, 1220, 29897, 13, 18884, 565, 15886, 4773, 338, 451, 6213, 29901, 13, 462, 1678, 4682, 29918, 710, 353, 4390, 29889, 29881, 17204, 29898, 14394, 29918, 11249, 29892, 9801, 29918, 294, 18869, 29922, 8824, 29897, 13, 462, 1678, 3858, 29918, 1445, 29889, 3539, 29898, 13, 462, 4706, 1583, 29889, 333, 29918, 517, 29918, 1643, 29918, 1958, 29961, 14394, 29918, 11249, 3366, 1643, 3108, 29962, 718, 6634, 29873, 29908, 718, 13, 462, 4706, 4682, 29918, 710, 718, 6634, 29876, 1159, 13, 462, 1678, 9227, 29889, 3539, 29898, 13264, 4773, 29889, 1748, 6646, 8246, 3101, 13, 462, 1678, 4559, 29918, 2311, 4619, 29871, 29896, 13, 4706, 9227, 29889, 5358, 580, 13, 4706, 1583, 29889, 21707, 29889, 3888, 29898, 13, 9651, 376, 1626, 934, 1273, 29879, 756, 4559, 1273, 29881, 29908, 1273, 313, 726, 29918, 1445, 29892, 4559, 29918, 2311, 876, 13, 13, 1678, 822, 1889, 29918, 3166, 29918, 726, 29918, 1445, 29898, 1311, 29892, 671, 29918, 9933, 29918, 8977, 29922, 8824, 1125, 13, 4706, 9995, 7032, 1426, 848, 304, 15886, 11651, 363, 6694, 322, 5706, 9657, 29879, 29889, 13, 4706, 9995, 13, 4706, 565, 451, 2897, 29889, 2084, 29889, 9933, 29898, 1311, 29889, 2917, 29889, 1272, 29889, 13264, 11651, 29918, 3972, 1125, 13, 9651, 2897, 29889, 29885, 12535, 12935, 29898, 1311, 29889, 2917, 29889, 1272, 29889, 13264, 11651, 29918, 3972, 29897, 13, 4706, 565, 451, 2897, 29889, 2084, 29889, 9933, 29898, 1311, 29889, 2917, 29889, 1272, 29889, 8977, 29918, 3972, 1125, 13, 9651, 2897, 29889, 29885, 12535, 12935, 29898, 1311, 29889, 2917, 29889, 1272, 29889, 8977, 29918, 3972, 29897, 13, 4706, 565, 671, 29918, 9933, 29918, 8977, 29901, 13, 9651, 1583, 29889, 1359, 29918, 497, 29918, 8977, 580, 13, 4706, 1683, 29901, 13, 9651, 1583, 3032, 17158, 29918, 8977, 4197, 1311, 29889, 2917, 29889, 1272, 29889, 14968, 29918, 726, 29918, 1445, 2314, 13, 9651, 396, 960, 773, 758, 3018, 1312, 23655, 29892, 9657, 508, 367, 5759, 491, 599, 1426, 934, 29889, 13, 9651, 396, 746, 28769, 278, 1121, 297, 278, 5650, 310, 1426, 29883, 15755, 29892, 278, 1494, 775, 13, 9651, 396, 881, 367, 1304, 29889, 13, 9651, 396, 1583, 3032, 17158, 29918, 8977, 4197, 1311, 29889, 2917, 29889, 1272, 29889, 14968, 29918, 726, 29918, 1445, 29892, 13, 9651, 396, 462, 418, 1583, 29889, 2917, 29889, 1272, 29889, 15480, 29918, 726, 29918, 1445, 29892, 13, 9651, 396, 462, 418, 1583, 29889, 2917, 29889, 1272, 29889, 1688, 29918, 726, 29918, 1445, 2314, 13, 13, 9651, 1583, 29889, 1359, 29918, 497, 29918, 8977, 580, 13, 4706, 1426, 29918, 5325, 353, 518, 1311, 29889, 2917, 29889, 1272, 29889, 14968, 29918, 726, 29918, 1445, 29892, 13, 462, 418, 1583, 29889, 2917, 29889, 1272, 29889, 15480, 29918, 726, 29918, 1445, 29892, 13, 462, 418, 1583, 29889, 2917, 29889, 1272, 29889, 1688, 29918, 726, 29918, 1445, 29962, 13, 4706, 363, 474, 29892, 1426, 29918, 1445, 297, 26985, 29898, 726, 29918, 5325, 1125, 13, 9651, 1583, 3032, 657, 29918, 13264, 11651, 29918, 3166, 29918, 726, 29918, 1445, 29898, 726, 29918, 1445, 29892, 1583, 29889, 13264, 11651, 29918, 5325, 29961, 29875, 1402, 13, 462, 462, 795, 1583, 29889, 14394, 29918, 5325, 29961, 29875, 2314, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 903, 657, 29918, 14394, 29918, 6550, 29898, 5349, 29918, 1643, 1125, 13, 4706, 9995, 19132, 2910, 304, 6088, 15886, 29889, 4773, 13, 4706, 826, 3174, 29901, 13, 9651, 756, 29918, 1643, 29901, 960, 1565, 29892, 4682, 2910, 3160, 3858, 13, 4706, 7106, 29901, 13, 9651, 4682, 2910, 13, 4706, 9995, 13, 4706, 4682, 29918, 6550, 353, 9657, 3319, 13, 9651, 376, 20227, 29918, 2435, 29918, 6979, 1115, 15886, 29889, 9037, 21515, 19132, 29898, 29881, 1853, 29922, 13264, 29889, 524, 29953, 29946, 511, 13, 9651, 376, 6979, 29918, 20227, 29918, 6370, 29918, 2435, 1115, 15886, 29889, 26262, 21515, 19132, 29898, 12181, 7607, 29896, 29892, 511, 13, 462, 462, 462, 539, 26688, 29922, 13264, 29889, 524, 29953, 29946, 511, 13, 9651, 376, 1707, 29918, 2435, 29918, 6979, 1115, 15886, 29889, 9037, 21515, 19132, 29898, 29881, 1853, 29922, 13264, 29889, 524, 29953, 29946, 511, 13, 9651, 376, 6979, 29918, 1707, 29918, 6370, 29918, 2435, 1115, 15886, 29889, 26262, 21515, 19132, 29898, 12181, 7607, 29896, 29892, 511, 13, 462, 462, 462, 268, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 511, 13, 9651, 376, 3090, 29918, 262, 29918, 6979, 1115, 15886, 29889, 9037, 21515, 19132, 29898, 29881, 1853, 29922, 13264, 29889, 524, 29953, 29946, 511, 13, 9651, 376, 3090, 29918, 262, 29918, 6979, 29918, 6370, 29918, 2435, 1115, 15886, 29889, 9037, 21515, 19132, 29898, 29881, 1853, 29922, 13264, 29889, 524, 29953, 29946, 511, 13, 9651, 376, 1707, 29918, 2435, 29918, 6979, 29918, 29876, 1393, 1115, 15886, 29889, 9037, 21515, 19132, 29898, 29881, 1853, 29922, 13264, 29889, 524, 29953, 29946, 511, 13, 9651, 376, 6979, 29918, 29876, 1393, 29918, 1707, 29918, 6370, 29918, 2435, 1115, 15886, 29889, 26262, 21515, 19132, 29898, 12181, 7607, 29896, 29892, 511, 13, 462, 462, 462, 965, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 511, 13, 13, 9651, 376, 20227, 29918, 2435, 29918, 3090, 1115, 15886, 29889, 9037, 21515, 19132, 29898, 29881, 1853, 29922, 13264, 29889, 524, 29953, 29946, 511, 13, 9651, 376, 3090, 29918, 20227, 29918, 6370, 29918, 2435, 1115, 15886, 29889, 26262, 21515, 19132, 29898, 12181, 7607, 29896, 29892, 511, 13, 462, 462, 462, 418, 26688, 29922, 13264, 29889, 524, 29953, 29946, 511, 13, 9651, 376, 1707, 29918, 2435, 29918, 3090, 1115, 15886, 29889, 9037, 21515, 19132, 29898, 29881, 1853, 29922, 13264, 29889, 524, 29953, 29946, 511, 13, 9651, 376, 3090, 29918, 1707, 29918, 6370, 29918, 2435, 1115, 15886, 29889, 26262, 21515, 19132, 29898, 12181, 7607, 29896, 29892, 511, 13, 462, 462, 462, 1678, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 511, 13, 9651, 376, 1707, 29918, 2435, 29918, 3090, 29918, 29876, 1393, 1115, 15886, 29889, 9037, 21515, 19132, 29898, 29881, 1853, 29922, 13264, 29889, 524, 29953, 29946, 511, 13, 9651, 376, 3090, 29918, 29876, 1393, 29918, 1707, 29918, 6370, 29918, 2435, 1115, 15886, 29889, 26262, 21515, 19132, 29898, 12181, 7607, 29896, 29892, 511, 13, 462, 462, 462, 3986, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 511, 13, 13, 9651, 376, 1707, 29918, 2435, 29918, 6341, 29918, 14394, 1115, 15886, 29889, 9037, 21515, 19132, 29898, 29881, 1853, 29922, 13264, 29889, 524, 29953, 29946, 511, 13, 9651, 376, 6341, 29918, 14394, 29918, 1707, 29918, 6370, 29918, 2435, 1115, 15886, 29889, 26262, 21515, 19132, 29898, 12181, 7607, 29896, 29892, 511, 13, 462, 462, 462, 795, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 511, 13, 4706, 5615, 13, 13, 4706, 565, 756, 29918, 1643, 29901, 13, 9651, 4682, 29918, 6550, 3366, 1643, 3108, 353, 15886, 29889, 26262, 21515, 19132, 29898, 12181, 7607, 29896, 29892, 511, 13, 462, 462, 462, 539, 26688, 29922, 13264, 29889, 524, 29953, 29946, 29897, 13, 4706, 736, 4682, 29918, 6550, 13, 13, 1678, 822, 1423, 29918, 13264, 11651, 29898, 1311, 29892, 934, 29918, 7039, 29892, 1746, 29918, 978, 29892, 26688, 29922, 13264, 29889, 524, 29941, 29906, 1125, 13, 4706, 9995, 5596, 697, 1746, 310, 15886, 11651, 13, 4706, 826, 3174, 29901, 13, 9651, 934, 29918, 7039, 29901, 2391, 310, 934, 2983, 29889, 13, 9651, 1746, 29918, 978, 29901, 8989, 304, 1423, 29889, 13, 9651, 26688, 29901, 8989, 848, 1134, 29889, 13, 4706, 9995, 13, 4706, 10422, 29918, 9990, 353, 15886, 29889, 14968, 29889, 1807, 29918, 2080, 29918, 5498, 2265, 29898, 1445, 29918, 7039, 29892, 13, 462, 462, 462, 4706, 528, 21897, 29922, 8824, 29897, 13, 4706, 9591, 353, 15886, 29889, 8969, 9182, 6982, 580, 13, 4706, 17117, 7797, 1891, 29918, 4773, 353, 9591, 29889, 949, 29898, 9507, 29918, 9990, 29897, 13, 4706, 5680, 353, 15886, 29889, 5510, 29918, 14369, 29918, 4773, 29898, 15550, 1891, 29918, 4773, 29892, 13, 462, 462, 965, 1583, 3032, 657, 29918, 14394, 29918, 6550, 29898, 5574, 876, 13, 4706, 4682, 353, 15886, 29889, 4384, 29898, 22100, 29961, 2671, 29918, 978, 1402, 26688, 29897, 13, 4706, 1423, 29918, 1445, 353, 775, 2395, 29889, 3150, 703, 13264, 29918, 3198, 29889, 3945, 613, 376, 29893, 613, 8025, 29922, 4422, 29889, 11282, 10490, 29897, 13, 4706, 411, 15886, 29889, 7317, 29898, 2917, 29922, 13264, 29889, 3991, 1184, 517, 29898, 13, 4706, 4742, 29918, 2798, 3790, 29908, 6271, 29965, 1115, 29896, 29906, 1118, 13, 4706, 1006, 29918, 459, 29918, 23482, 1608, 29918, 28993, 29922, 29896, 29892, 13, 4706, 938, 336, 29918, 459, 29918, 23482, 1608, 29918, 28993, 29922, 29896, 29892, 13, 4706, 330, 3746, 29918, 6768, 29922, 29887, 3746, 29918, 6768, 29892, 13, 308, 876, 408, 27937, 29901, 13, 4706, 396, 2541, 15886, 29889, 7317, 580, 408, 27937, 29901, 13, 9651, 2069, 29918, 459, 353, 15886, 29889, 10945, 29918, 20897, 29918, 11228, 3950, 580, 13, 9651, 27937, 29889, 3389, 29898, 2344, 29918, 459, 29897, 13, 9651, 29311, 353, 15886, 29889, 14968, 29889, 7967, 4194, 1061, 580, 13, 9651, 9717, 353, 15886, 29889, 14968, 29889, 2962, 29918, 9990, 29918, 3389, 8397, 29898, 1111, 536, 29922, 1111, 536, 29897, 13, 9651, 1423, 29918, 1445, 29889, 3539, 29898, 14394, 29889, 14513, 3101, 13, 9651, 29311, 29889, 3827, 29918, 9847, 580, 13, 9651, 29311, 29889, 7122, 29898, 28993, 29897, 13, 4706, 1423, 29918, 1445, 29889, 5358, 580, 13, 13, 1678, 822, 903, 5510, 29918, 13264, 4773, 29898, 1311, 29892, 1342, 29892, 4464, 29922, 13264, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 29911, 4717, 1177, 1125, 13, 4706, 9995, 12914, 1881, 1342, 29889, 13, 4706, 826, 3174, 29901, 13, 9651, 1342, 29901, 323, 29888, 29889, 4773, 29889, 13, 9651, 4464, 29901, 2661, 326, 1061, 4464, 29889, 13, 4706, 7106, 29901, 13, 9651, 21213, 4682, 322, 3858, 29889, 13, 4706, 9995, 13, 4706, 21213, 353, 15886, 29889, 5510, 29918, 14369, 29918, 4773, 29898, 4773, 29892, 1583, 3032, 657, 29918, 14394, 29918, 6550, 29898, 5574, 876, 13, 4706, 21213, 353, 1583, 3032, 29879, 5510, 29918, 517, 29918, 1145, 344, 29898, 862, 8485, 29897, 13, 4706, 3858, 353, 6213, 13, 4706, 565, 4464, 2804, 15886, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 15094, 4571, 1783, 29901, 13, 9651, 3858, 353, 21213, 29889, 7323, 703, 1643, 1159, 13, 4706, 736, 21213, 29892, 3858, 13, 13, 1678, 822, 903, 29879, 5510, 29918, 517, 29918, 1145, 344, 29898, 1311, 29892, 21213, 29918, 4773, 1125, 13, 4706, 363, 1820, 297, 1583, 29889, 524, 29918, 1761, 29918, 4914, 29901, 13, 9651, 565, 376, 1707, 29908, 451, 297, 1820, 29901, 13, 18884, 21213, 29918, 4773, 29961, 1989, 29962, 353, 15886, 29889, 29879, 5510, 29918, 20158, 29918, 517, 29918, 1145, 344, 29898, 13, 462, 1678, 21213, 29918, 4773, 29961, 1989, 2314, 13, 4706, 736, 21213, 29918, 4773, 13, 13, 1678, 822, 8783, 29918, 2080, 29918, 9144, 29898, 1311, 29892, 4464, 29892, 1881, 29918, 1445, 29892, 9853, 29918, 2311, 29892, 954, 29918, 1022, 2878, 29879, 29922, 29896, 1125, 13, 4706, 9995, 4290, 740, 773, 15886, 29889, 24713, 363, 4844, 1061, 13, 4706, 826, 3174, 29901, 13, 9651, 4464, 29901, 1881, 4464, 310, 15886, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 29912, 29911, 4717, 1177, 29892, 382, 8932, 29892, 349, 1525, 4571, 1783, 1836, 13, 9651, 1881, 29918, 1445, 29901, 10567, 15886, 11651, 934, 29889, 13, 9651, 9853, 29918, 2311, 29901, 350, 905, 2159, 363, 1904, 29889, 13, 9651, 954, 29918, 1022, 2878, 29879, 29901, 9681, 21502, 305, 29889, 13, 4706, 16969, 29901, 13, 9651, 15886, 29889, 24713, 13, 4706, 9995, 13, 4706, 8783, 353, 15886, 29889, 1272, 29889, 8969, 9182, 16390, 24541, 29898, 2080, 29918, 1445, 29897, 13, 4706, 8783, 353, 8783, 29889, 1958, 29898, 1311, 3032, 5510, 29918, 13264, 4773, 29897, 13, 4706, 565, 4464, 2804, 15886, 29889, 342, 326, 1061, 29889, 6818, 15506, 29889, 15094, 4571, 1783, 29901, 13, 9651, 8783, 353, 8783, 29889, 845, 21897, 29898, 13, 18884, 6835, 29918, 2311, 29922, 1311, 29889, 2917, 29889, 1272, 29889, 845, 21897, 29918, 9040, 29897, 13, 4706, 8783, 353, 8783, 29889, 14358, 29898, 1949, 29918, 1022, 2878, 29879, 29897, 13, 4706, 8783, 353, 8783, 29889, 16175, 29898, 16175, 29918, 2311, 29897, 13, 4706, 736, 8783, 13, 13, 1678, 822, 16330, 29918, 2080, 29918, 13556, 2147, 29918, 9144, 29898, 1311, 1125, 13, 4706, 9995, 4290, 740, 363, 4867, 1923, 13, 4706, 16969, 29901, 13, 9651, 1881, 29918, 13556, 2147, 29918, 9144, 363, 4867, 1923, 13, 4706, 9995, 13, 4706, 7797, 1891, 29918, 13264, 29918, 4773, 353, 15886, 29889, 27074, 29898, 13, 9651, 26688, 29922, 13264, 29889, 1807, 29892, 1024, 2433, 2080, 29918, 4773, 29918, 20158, 1495, 13, 4706, 19870, 29918, 29873, 575, 943, 353, 11117, 19057, 2396, 7797, 1891, 29918, 13264, 29918, 4773, 29913, 13, 4706, 21213, 29918, 4773, 353, 15886, 29889, 5510, 29918, 4773, 29898, 15550, 1891, 29918, 13264, 29918, 4773, 29892, 13, 462, 462, 3986, 1583, 3032, 657, 29918, 14394, 29918, 6550, 29898, 8824, 876, 13, 4706, 21213, 29918, 4773, 353, 1583, 3032, 29879, 5510, 29918, 517, 29918, 1145, 344, 29898, 862, 8485, 29918, 4773, 29897, 13, 4706, 736, 15886, 29889, 342, 326, 1061, 29889, 15843, 29889, 1748, 1747, 4290, 22068, 29898, 862, 8485, 29918, 4773, 29892, 13, 462, 462, 462, 4706, 19870, 29918, 29873, 575, 943, 29897, 13, 13, 13, 1753, 1667, 7373, 1125, 13, 1678, 2295, 353, 12782, 29898, 2917, 29918, 1445, 29922, 9675, 29889, 19218, 29961, 29896, 2314, 13, 1678, 848, 29918, 26482, 353, 3630, 18689, 29898, 2917, 29897, 13, 1678, 848, 29918, 26482, 29889, 5014, 29918, 3166, 29918, 726, 29918, 1445, 580, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 15886, 29889, 932, 29889, 3389, 580, 13, 2 ]