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
|
---|---|---|---|---|---|
test/conftest.py | dmillington/lunchroulette | 1 | 48583 | import pytest
from lunchroulette.app import app as _app
from lunchroulette.app import db as _db
from sqlalchemy import event
from sqlalchemy.orm import sessionmaker
@pytest.fixture(scope="session")
def app(request):
return _app
@pytest.fixture(scope="function")
def db(app, request):
with app.app_context():
_db.drop_all()
_db.create_all()
@pytest.fixture(scope="function", autouse=True)
def session(app, db, request):
with app.app_context():
print(app.url_map)
conn = _db.engine.connect()
txn = conn.begin()
options = dict(bind=conn, binds={})
sess = _db.create_scoped_session(options=options)
sess.begin_nested()
@event.listens_for(sess(), 'after_transaction_end')
def restart_savepoint(sess2, trans):
# Detecting whether this is indeed the nested transaction of the test
if trans.nested and not trans._parent.nested:
# The test should have normally called session.commit(),
# but to be safe we explicitly expire the session
sess2.expire_all()
sess.begin_nested()
_db.session = sess
yield sess
# Cleanup
sess.remove()
txn.rollback()
conn.close()
@pytest.fixture
def client(app):
return app.test_client() | [
1,
1053,
11451,
1688,
13,
13,
3166,
301,
3322,
27537,
20200,
29889,
932,
1053,
623,
408,
903,
932,
13,
3166,
301,
3322,
27537,
20200,
29889,
932,
1053,
4833,
408,
903,
2585,
13,
3166,
4576,
284,
305,
6764,
1053,
1741,
13,
3166,
4576,
284,
305,
6764,
29889,
555,
1053,
4867,
28107,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
29898,
6078,
543,
7924,
1159,
13,
1753,
623,
29898,
3827,
1125,
13,
1678,
736,
903,
932,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
29898,
6078,
543,
2220,
1159,
13,
1753,
4833,
29898,
932,
29892,
2009,
1125,
13,
1678,
411,
623,
29889,
932,
29918,
4703,
7295,
13,
4706,
903,
2585,
29889,
8865,
29918,
497,
580,
13,
4706,
903,
2585,
29889,
3258,
29918,
497,
580,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
29898,
6078,
543,
2220,
613,
1120,
1709,
29922,
5574,
29897,
13,
1753,
4867,
29898,
932,
29892,
4833,
29892,
2009,
1125,
13,
1678,
411,
623,
29889,
932,
29918,
4703,
7295,
13,
4706,
1596,
29898,
932,
29889,
2271,
29918,
1958,
29897,
13,
4706,
11009,
353,
903,
2585,
29889,
10599,
29889,
6915,
580,
13,
4706,
25568,
29876,
353,
11009,
29889,
463,
580,
13,
13,
4706,
3987,
353,
9657,
29898,
5355,
29922,
13082,
29892,
7868,
29879,
3790,
1800,
13,
4706,
27937,
353,
903,
2585,
29889,
3258,
29918,
21785,
287,
29918,
7924,
29898,
6768,
29922,
6768,
29897,
13,
13,
4706,
27937,
29889,
463,
29918,
27420,
580,
13,
13,
4706,
732,
3696,
29889,
1761,
575,
29918,
1454,
29898,
29879,
404,
3285,
525,
7045,
29918,
20736,
29918,
355,
1495,
13,
4706,
822,
10715,
29918,
7620,
3149,
29898,
29879,
404,
29906,
29892,
1301,
1125,
13,
9651,
396,
5953,
522,
292,
3692,
445,
338,
6200,
278,
9322,
10804,
310,
278,
1243,
13,
9651,
565,
1301,
29889,
27420,
322,
451,
1301,
3032,
3560,
29889,
27420,
29901,
13,
18884,
396,
450,
1243,
881,
505,
12891,
2000,
4867,
29889,
15060,
3285,
13,
18884,
396,
541,
304,
367,
9109,
591,
9479,
1518,
533,
278,
4867,
13,
18884,
27937,
29906,
29889,
4548,
533,
29918,
497,
580,
13,
18884,
27937,
29889,
463,
29918,
27420,
580,
13,
13,
4706,
903,
2585,
29889,
7924,
353,
27937,
13,
4706,
7709,
27937,
13,
13,
4706,
396,
315,
14044,
786,
13,
4706,
27937,
29889,
5992,
580,
13,
4706,
25568,
29876,
29889,
1245,
1627,
580,
13,
4706,
11009,
29889,
5358,
580,
13,
13,
29992,
2272,
1688,
29889,
7241,
15546,
13,
1753,
3132,
29898,
932,
1125,
13,
1678,
736,
623,
29889,
1688,
29918,
4645,
580,
2
] |
Notebooks/jhu/__init__.py | ProtoLife/covid-recovery | 0 | 95246 | import datetime
import re
from .get_data import get_data
def Float(x):
try:
rtn = float(x)
except:
rtn = float('NaN')
return rtn
def get_jhu_ts():
stmp = __path__[0] # e.g. "../jhu"
stmp = re.split('jhu',stmp)[0] # e.g. "../"
base = stmp+'../covid-19-JH/csse_covid_19_data/csse_covid_19_time_series/'
confirmed = get_data(base+'time_series_covid19_confirmed_global.csv')
deaths = get_data(base+'time_series_covid19_deaths_global.csv')
recovered = get_data(base+'time_series_covid19_recovered_global.csv')
covid_ts = {'confirmed':confirmed,'deaths':deaths,'recovered':recovered}
return covid_ts
def get_jhu_countries():
dat = get_jhu_ts()
confirmed = dat['confirmed']
countries = [(row[0],row[1]) for row in confirmed][1:]
print("number of countries in jhu data = ",len(countries))
return countries
def get_module_loc():
print(__path__)
def get_ave_data(country_s,datatype='confirmed',dataaccum='daily_av_weekly',
firstdate=None, lastdate=None):
if dataaccum not in ['cum','daily','cum_av_weekly','daily_av_weekly']:
print('data accumulation method not known',dataaccum)
print('choose from:','cum','daily','cum_av_weekly','daily_av_weekly')
return
if datatype not in ['confirmed','deaths','recovered']:
print('datatype not known: ',datatype)
print('choose from: confirmed','deaths','recovered')
return
countries = []
if isinstance(country_s,list):
for country in country_s:
if isinstance(country,str):
country = (country,'')
countries.append(country)
elif isinstance(country_s,str):
countries = [(country_s,'')]
else: # single ('country','reg') entry
countries = [country_s]
# get the jhu data
dat = get_jhu_ts()
popkeyed = dat[datatype]
# accumulate the results
res = {}
# get x coord dates
dates = popkeyed['dates']
fmt = '%m/%d/%y'
xx = [datetime.datetime.strptime(dd,fmt) for dd in dates ]
if firstdate:
firstdate_d = datetime.datetime.strptime(firstdate,fmt)
else:
firstdate_d = datetime.datetime.strptime(dates[0],fmt)
if lastdate:
lastdate_d = datetime.datetime.strptime(lastdate,fmt)
else:
lastdate_d = datetime.datetime.strptime(dates[-1],fmt)
daystart = (firstdate_d-xx[0]).days
daystop = (lastdate_d-xx[-1]).days
if daystart <0:
xx0 = [xx[0]+datetime.timedelta(days=i) for i in range(daystart,0)]
yy0 = [0.]*(-daystart)
else:
xx0 = []
yy0 = []
if daystop > 0:
xx1 = [xx[-1]+datetime.timedelta(days=i) for i in range(daystop)]
yy1 = [0.]*(daystop)
else:
xx1 = []
yy1 = []
xx = xx0 + xx + xx1
res['dates']=xx
# get y coord for each country:
i=0
j=0
for country in countries:
try:
yy = popkeyed[country]
j = j+1
except:
print('country not found',country)
i = i + 1
continue
yyf = [Float(y) for y in yy]
yy = yy0 + yyf + yy1
# print('len yy',len(yy))
# ymax=np.max(np.array(yy))
yyf = [Float(y) for y in yy]
if dataaccum == 'daily':
yy = [0.]*len(yy)
yy[0] = yyf[0]
for k in range(1,len(yy)):
yy[k] = yyf[k]-yyf[k-1]
elif dataaccum == 'cum_av_weekly':
yy = [0.]*len(yy)
moving_av = 0.
for k in range(len(yy)):
if k-7 >= 0:
moving_av = moving_av - yyf[k-7]
moving_av = moving_av + yyf[k]
yy[k] = moving_av/min(7.0,float(k+1))
elif dataaccum == 'daily_av_weekly':
yy = [0.]*len(yyf)
yy[0] = yyf[0]
for k in range(1,len(yy)):
yy[k] = yyf[k]-yyf[k-1]
yyf = [y for y in yy]
yy = [0.]*len(yy)
moving_av = 0.
for k in range(len(yy)):
if k-7 >= 0:
moving_av = moving_av - yyf[k-7]
moving_av = moving_av + yyf[k]
yy[k] = moving_av/min(7.0,float(k+1))
if country[1] != '':
country = country[0]+'_'+country[1]
else:
country = country[0]
res[country] = yy
return res
| [
1,
1053,
12865,
13,
5215,
337,
13,
13,
13,
3166,
869,
657,
29918,
1272,
1053,
679,
29918,
1272,
13,
13,
1753,
27842,
29898,
29916,
1125,
13,
1678,
1018,
29901,
13,
4706,
364,
6277,
353,
5785,
29898,
29916,
29897,
13,
1678,
5174,
29901,
13,
4706,
364,
6277,
353,
5785,
877,
19377,
1495,
13,
1678,
736,
364,
6277,
29871,
13,
13,
1753,
679,
29918,
29926,
6905,
29918,
1372,
7295,
13,
1678,
380,
1526,
353,
4770,
2084,
1649,
29961,
29900,
29962,
396,
321,
29889,
29887,
29889,
376,
6995,
29926,
6905,
29908,
13,
1678,
380,
1526,
353,
337,
29889,
5451,
877,
29926,
6905,
742,
303,
1526,
9601,
29900,
29962,
396,
321,
29889,
29887,
29889,
376,
6995,
29908,
13,
1678,
2967,
353,
380,
1526,
23097,
6995,
24542,
333,
29899,
29896,
29929,
29899,
29967,
29950,
29914,
2395,
344,
29918,
24542,
333,
29918,
29896,
29929,
29918,
1272,
29914,
2395,
344,
29918,
24542,
333,
29918,
29896,
29929,
29918,
2230,
29918,
13757,
22208,
13,
1678,
16725,
353,
679,
29918,
1272,
29898,
3188,
23097,
2230,
29918,
13757,
29918,
24542,
333,
29896,
29929,
29918,
5527,
381,
2168,
29918,
10945,
29889,
7638,
1495,
13,
1678,
4892,
29879,
353,
679,
29918,
1272,
29898,
3188,
23097,
2230,
29918,
13757,
29918,
24542,
333,
29896,
29929,
29918,
311,
493,
29879,
29918,
10945,
29889,
7638,
1495,
13,
1678,
24776,
353,
679,
29918,
1272,
29898,
3188,
23097,
2230,
29918,
13757,
29918,
24542,
333,
29896,
29929,
29918,
3757,
957,
287,
29918,
10945,
29889,
7638,
1495,
13,
1678,
18838,
333,
29918,
1372,
353,
11117,
5527,
381,
2168,
2396,
5527,
381,
2168,
5501,
311,
493,
29879,
2396,
311,
493,
29879,
5501,
3757,
957,
287,
2396,
3757,
957,
287,
29913,
13,
1678,
736,
18838,
333,
29918,
1372,
13,
13,
13,
1753,
679,
29918,
29926,
6905,
29918,
2798,
2722,
7295,
13,
1678,
1418,
353,
679,
29918,
29926,
6905,
29918,
1372,
580,
13,
1678,
16725,
353,
1418,
1839,
5527,
381,
2168,
2033,
13,
1678,
10916,
353,
17288,
798,
29961,
29900,
1402,
798,
29961,
29896,
2314,
363,
1948,
297,
16725,
3816,
29896,
17531,
13,
1678,
1596,
703,
4537,
310,
10916,
297,
432,
6905,
848,
353,
9162,
2435,
29898,
2798,
2722,
876,
13,
1678,
736,
10916,
13,
13,
1753,
679,
29918,
5453,
29918,
2029,
7295,
13,
1678,
1596,
22168,
2084,
1649,
29897,
13,
13,
1753,
679,
29918,
1351,
29918,
1272,
29898,
13509,
29918,
29879,
29892,
4130,
23179,
2433,
5527,
381,
2168,
742,
1272,
5753,
398,
2433,
29881,
8683,
29918,
485,
29918,
18448,
368,
742,
13,
462,
937,
1256,
29922,
8516,
29892,
1833,
1256,
29922,
8516,
1125,
13,
1678,
565,
848,
5753,
398,
451,
297,
6024,
29883,
398,
3788,
29881,
8683,
3788,
29883,
398,
29918,
485,
29918,
18448,
368,
3788,
29881,
8683,
29918,
485,
29918,
18448,
368,
2033,
29901,
13,
4706,
1596,
877,
1272,
18414,
2785,
1158,
451,
2998,
742,
1272,
5753,
398,
29897,
13,
4706,
1596,
877,
21803,
515,
29901,
3788,
29883,
398,
3788,
29881,
8683,
3788,
29883,
398,
29918,
485,
29918,
18448,
368,
3788,
29881,
8683,
29918,
485,
29918,
18448,
368,
1495,
13,
4706,
736,
13,
1678,
565,
1418,
23179,
451,
297,
6024,
5527,
381,
2168,
3788,
311,
493,
29879,
3788,
3757,
957,
287,
2033,
29901,
13,
4706,
1596,
877,
4130,
23179,
451,
2998,
29901,
13420,
4130,
23179,
29897,
13,
4706,
1596,
877,
21803,
515,
29901,
259,
16725,
3788,
311,
493,
29879,
3788,
3757,
957,
287,
1495,
13,
4706,
736,
13,
268,
13,
1678,
10916,
353,
5159,
13,
1678,
565,
338,
8758,
29898,
13509,
29918,
29879,
29892,
1761,
1125,
13,
4706,
363,
4234,
297,
4234,
29918,
29879,
29901,
13,
9651,
565,
338,
8758,
29898,
13509,
29892,
710,
1125,
13,
18884,
4234,
353,
313,
13509,
5501,
1495,
13,
9651,
10916,
29889,
4397,
29898,
13509,
29897,
13,
1678,
25342,
338,
8758,
29898,
13509,
29918,
29879,
29892,
710,
1125,
13,
4706,
10916,
353,
17288,
13509,
29918,
29879,
5501,
1495,
29962,
13,
1678,
1683,
29901,
462,
1669,
396,
2323,
6702,
13509,
3788,
1727,
1495,
6251,
13,
4706,
10916,
353,
518,
13509,
29918,
29879,
29962,
13,
1678,
396,
679,
278,
432,
6905,
848,
13,
1678,
1418,
353,
679,
29918,
29926,
6905,
29918,
1372,
580,
13,
1678,
1835,
1989,
287,
353,
1418,
29961,
4130,
23179,
29962,
13,
1678,
396,
18414,
5987,
278,
2582,
13,
1678,
620,
353,
6571,
13,
1678,
396,
679,
921,
29311,
10116,
29871,
13,
1678,
10116,
353,
1835,
1989,
287,
1839,
15190,
2033,
13,
1678,
19200,
353,
14210,
29885,
22584,
29881,
22584,
29891,
29915,
13,
1678,
15473,
353,
518,
12673,
29889,
12673,
29889,
710,
415,
603,
29898,
1289,
29892,
23479,
29897,
363,
24488,
297,
10116,
4514,
13,
1678,
565,
937,
1256,
29901,
13,
4706,
937,
1256,
29918,
29881,
353,
12865,
29889,
12673,
29889,
710,
415,
603,
29898,
4102,
1256,
29892,
23479,
29897,
13,
1678,
1683,
29901,
13,
4706,
937,
1256,
29918,
29881,
353,
12865,
29889,
12673,
29889,
710,
415,
603,
29898,
15190,
29961,
29900,
1402,
23479,
29897,
13,
1678,
565,
1833,
1256,
29901,
13,
4706,
1833,
1256,
29918,
29881,
353,
12865,
29889,
12673,
29889,
710,
415,
603,
29898,
4230,
1256,
29892,
23479,
29897,
13,
1678,
1683,
29901,
13,
4706,
1833,
1256,
29918,
29881,
353,
12865,
29889,
12673,
29889,
710,
415,
603,
29898,
15190,
14352,
29896,
1402,
23479,
29897,
13,
1678,
2462,
2962,
353,
313,
4102,
1256,
29918,
29881,
29899,
4419,
29961,
29900,
14664,
16700,
13,
1678,
2462,
9847,
353,
313,
4230,
1256,
29918,
29881,
29899,
4419,
14352,
29896,
14664,
16700,
13,
1678,
565,
2462,
2962,
529,
29900,
29901,
13,
4706,
15473,
29900,
353,
518,
4419,
29961,
29900,
10062,
12673,
29889,
9346,
287,
2554,
29898,
16700,
29922,
29875,
29897,
363,
474,
297,
3464,
29898,
3250,
2962,
29892,
29900,
4638,
13,
4706,
343,
29891,
29900,
353,
518,
29900,
5586,
29930,
6278,
3250,
2962,
29897,
13,
1678,
1683,
29901,
13,
4706,
15473,
29900,
353,
5159,
13,
4706,
343,
29891,
29900,
353,
5159,
13,
1678,
565,
2462,
9847,
1405,
29871,
29900,
29901,
13,
4706,
15473,
29896,
353,
518,
4419,
14352,
29896,
10062,
12673,
29889,
9346,
287,
2554,
29898,
16700,
29922,
29875,
29897,
363,
474,
297,
3464,
29898,
3250,
9847,
4638,
13,
4706,
343,
29891,
29896,
353,
518,
29900,
5586,
16395,
3250,
9847,
29897,
13,
1678,
1683,
29901,
13,
4706,
15473,
29896,
353,
5159,
13,
4706,
343,
29891,
29896,
353,
5159,
4706,
13,
1678,
15473,
353,
15473,
29900,
718,
15473,
718,
15473,
29896,
13,
1678,
620,
1839,
15190,
2033,
29922,
4419,
13,
1678,
396,
679,
343,
29311,
363,
1269,
4234,
29901,
13,
1678,
474,
29922,
29900,
13,
1678,
432,
29922,
29900,
13,
1678,
363,
4234,
297,
10916,
29901,
13,
4706,
1018,
29901,
13,
9651,
343,
29891,
353,
1835,
1989,
287,
29961,
13509,
29962,
13,
9651,
432,
353,
432,
29974,
29896,
13,
4706,
5174,
29901,
13,
9651,
1596,
877,
13509,
451,
1476,
742,
13509,
29897,
13,
9651,
474,
353,
474,
718,
29871,
29896,
13,
9651,
6773,
13,
4706,
343,
29891,
29888,
353,
518,
11031,
29898,
29891,
29897,
363,
343,
297,
343,
29891,
29962,
13,
4706,
343,
29891,
353,
343,
29891,
29900,
718,
343,
29891,
29888,
718,
343,
29891,
29896,
13,
4706,
396,
1596,
877,
2435,
343,
29891,
742,
2435,
29898,
8071,
876,
13,
4706,
396,
343,
3317,
29922,
9302,
29889,
3317,
29898,
9302,
29889,
2378,
29898,
8071,
876,
13,
4706,
343,
29891,
29888,
353,
518,
11031,
29898,
29891,
29897,
363,
343,
297,
343,
29891,
29962,
13,
4706,
565,
848,
5753,
398,
1275,
525,
29881,
8683,
2396,
13,
9651,
343,
29891,
353,
518,
29900,
5586,
29930,
2435,
29898,
8071,
29897,
13,
9651,
343,
29891,
29961,
29900,
29962,
353,
343,
29891,
29888,
29961,
29900,
29962,
13,
9651,
363,
413,
297,
3464,
29898,
29896,
29892,
2435,
29898,
8071,
22164,
13,
18884,
343,
29891,
29961,
29895,
29962,
353,
343,
29891,
29888,
29961,
29895,
29962,
29899,
8071,
29888,
29961,
29895,
29899,
29896,
29962,
1678,
13,
4706,
25342,
848,
5753,
398,
1275,
525,
29883,
398,
29918,
485,
29918,
18448,
368,
2396,
13,
9651,
343,
29891,
353,
518,
29900,
5586,
29930,
2435,
29898,
8071,
29897,
13,
9651,
8401,
29918,
485,
353,
29871,
29900,
29889,
13,
9651,
363,
413,
297,
3464,
29898,
2435,
29898,
8071,
22164,
13,
18884,
565,
413,
29899,
29955,
6736,
29871,
29900,
29901,
13,
462,
1678,
8401,
29918,
485,
353,
8401,
29918,
485,
448,
343,
29891,
29888,
29961,
29895,
29899,
29955,
29962,
13,
18884,
8401,
29918,
485,
353,
8401,
29918,
485,
718,
343,
29891,
29888,
29961,
29895,
29962,
13,
18884,
343,
29891,
29961,
29895,
29962,
353,
8401,
29918,
485,
29914,
1195,
29898,
29955,
29889,
29900,
29892,
7411,
29898,
29895,
29974,
29896,
876,
13,
4706,
25342,
848,
5753,
398,
1275,
525,
29881,
8683,
29918,
485,
29918,
18448,
368,
2396,
13,
9651,
343,
29891,
353,
518,
29900,
5586,
29930,
2435,
29898,
8071,
29888,
29897,
13,
9651,
343,
29891,
29961,
29900,
29962,
353,
343,
29891,
29888,
29961,
29900,
29962,
13,
9651,
363,
413,
297,
3464,
29898,
29896,
29892,
2435,
29898,
8071,
22164,
13,
18884,
343,
29891,
29961,
29895,
29962,
353,
343,
29891,
29888,
29961,
29895,
29962,
29899,
8071,
29888,
29961,
29895,
29899,
29896,
29962,
13,
9651,
343,
29891,
29888,
353,
518,
29891,
363,
343,
297,
343,
29891,
29962,
13,
9651,
343,
29891,
353,
518,
29900,
5586,
29930,
2435,
29898,
8071,
29897,
13,
9651,
8401,
29918,
485,
353,
29871,
29900,
29889,
13,
9651,
363,
413,
297,
3464,
29898,
2435,
29898,
8071,
22164,
13,
18884,
565,
413,
29899,
29955,
6736,
29871,
29900,
29901,
13,
462,
1678,
8401,
29918,
485,
353,
8401,
29918,
485,
448,
343,
29891,
29888,
29961,
29895,
29899,
29955,
29962,
13,
18884,
8401,
29918,
485,
353,
8401,
29918,
485,
718,
343,
29891,
29888,
29961,
29895,
29962,
13,
18884,
343,
29891,
29961,
29895,
29962,
353,
8401,
29918,
485,
29914,
1195,
29898,
29955,
29889,
29900,
29892,
7411,
29898,
29895,
29974,
29896,
876,
13,
4706,
565,
4234,
29961,
29896,
29962,
2804,
525,
2396,
13,
9651,
4234,
353,
4234,
29961,
29900,
10062,
15972,
18717,
13509,
29961,
29896,
29962,
13,
4706,
1683,
29901,
13,
9651,
4234,
353,
4234,
29961,
29900,
29962,
13,
4706,
620,
29961,
13509,
29962,
353,
343,
29891,
13,
1678,
736,
620,
13,
308,
13,
539,
13,
2
] |
kubespawner/proxy.py | rccern/kubespawner | 0 | 183285 | import asyncio
import functools
import json
import os
import string
import escapism
from jupyterhub.proxy import Proxy
from jupyterhub.utils import exponential_backoff
from kubernetes_asyncio import client
from traitlets import Unicode
from .clients import load_config
from .clients import shared_client
from .objects import make_ingress
from .reflector import ResourceReflector
from .utils import generate_hashed_slug
class IngressReflector(ResourceReflector):
kind = 'ingresses'
api_group_name = 'ExtensionsV1beta1Api'
@property
def ingresses(self):
return self.resources
class ServiceReflector(ResourceReflector):
kind = 'services'
@property
def services(self):
return self.resources
class EndpointsReflector(ResourceReflector):
kind = 'endpoints'
@property
def endpoints(self):
return self.resources
class KubeIngressProxy(Proxy):
namespace = Unicode(
config=True,
help="""
Kubernetes namespace to spawn ingresses for single-user servers in.
If running inside a kubernetes cluster with service accounts enabled,
defaults to the current namespace. If not, defaults to 'default'
""",
)
def _namespace_default(self):
"""
Set namespace default to current namespace if running in a k8s cluster
If not in a k8s cluster with service accounts enabled, default to
'default'
"""
ns_path = '/var/run/secrets/kubernetes.io/serviceaccount/namespace'
if os.path.exists(ns_path):
with open(ns_path) as f:
return f.read().strip()
return 'default'
component_label = Unicode(
'singleuser-server',
config=True,
help="""
The component label used to tag the user pods. This can be used to override
the spawner behavior when dealing with multiple hub instances in the same
namespace. Usually helpful for CI workflows.
""",
)
k8s_api_ssl_ca_cert = Unicode(
"",
config=True,
help="""
Location (absolute filepath) for CA certs of the k8s API server.
Typically this is unnecessary, CA certs are picked up by
config.load_incluster_config() or config.load_kube_config.
In rare non-standard cases, such as using custom intermediate CA
for your cluster, you may need to mount root CA's elsewhere in
your Pod/Container and point this variable to that filepath
""",
)
k8s_api_host = Unicode(
"",
config=True,
help="""
Full host name of the k8s API server ("https://hostname:port").
Typically this is unnecessary, the hostname is picked up by
config.load_incluster_config() or config.load_kube_config.
""",
)
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# Schedules async initialization logic that is to be awaited by async
# functions by decorating them with @_await_async_init.
self._async_init_future = asyncio.ensure_future(self._async_init())
async def _async_init(self):
"""
This method is scheduled to run from `__init__`, but not awaited there
as `__init__` can't be marked as async.
Since JupyterHub won't await this method, we ensure the async methods
JupyterHub may call on this object will await this method before
continuing. To do this, we decorate them with `_await_async_init`.
But, how do we figure out the methods to decorate? Likely only those
exposed by the base class that JupyterHub would know about. The base
class is Proxy, as declared in proxy.py:
https://github.com/jupyterhub/jupyterhub/blob/HEAD/jupyterhub/proxy.py.
From the Proxy class docstring we can conclude that the following
methods, if implemented, could be what we need to decorate with
_await_async_init:
- get_all_routes (implemented and decorated)
- add_route (implemented and decorated)
- delete_route (implemented and decorated)
- start
- stop
- get_route
"""
await load_config(caller=self)
self.core_api = shared_client('CoreV1Api')
self.extension_api = shared_client('ExtensionsV1beta1Api')
labels = {
'component': self.component_label,
'hub.jupyter.org/proxy-route': 'true',
}
self.ingress_reflector = IngressReflector(
parent=self, namespace=self.namespace, labels=labels
)
self.service_reflector = ServiceReflector(
parent=self, namespace=self.namespace, labels=labels
)
self.endpoint_reflector = EndpointsReflector(
self, namespace=self.namespace, labels=labels
)
await asyncio.gather(
self.ingress_reflector.start(),
self.service_reflector.start(),
self.endpoint_reflector.start(),
)
def _await_async_init(method):
"""A decorator to await the _async_init method after having been
scheduled to run in the `__init__` method."""
@functools.wraps(method)
async def async_method(self, *args, **kwargs):
if self._async_init_future is not None:
await self._async_init_future
self._async_init_future = None
return await method(self, *args, **kwargs)
return async_method
def safe_name_for_routespec(self, routespec):
safe_chars = set(string.ascii_lowercase + string.digits)
safe_name = generate_hashed_slug(
'jupyter-'
+ escapism.escape(routespec, safe=safe_chars, escape_char='-')
+ '-route'
)
return safe_name
async def delete_if_exists(self, kind, safe_name, future):
try:
await future
self.log.info('Deleted %s/%s', kind, safe_name)
except client.rest.ApiException as e:
if e.status != 404:
raise
self.log.warn("Could not delete %s/%s: does not exist", kind, safe_name)
@_await_async_init
async def add_route(self, routespec, target, data):
# Create a route with the name being escaped routespec
# Use full routespec in label
# 'data' is JSON encoded and put in an annotation - we don't need to query for it
safe_name = self.safe_name_for_routespec(routespec).lower()
labels = {
'heritage': 'jupyterhub',
'component': self.component_label,
'hub.jupyter.org/proxy-route': 'true',
}
endpoint, service, ingress = make_ingress(
safe_name, routespec, target, labels, data
)
async def ensure_object(create_func, patch_func, body, kind):
try:
resp = await create_func(namespace=self.namespace, body=body)
self.log.info('Created %s/%s', kind, safe_name)
except client.rest.ApiException as e:
if e.status == 409:
# This object already exists, we should patch it to make it be what we want
self.log.warn(
"Trying to patch %s/%s, it already exists", kind, safe_name
)
resp = await patch_func(
namespace=self.namespace,
body=body,
name=body.metadata.name,
)
else:
raise
if endpoint is not None:
await ensure_object(
self.core_api.create_namespaced_endpoints,
self.core_api.patch_namespaced_endpoints,
body=endpoint,
kind='endpoints',
)
await exponential_backoff(
lambda: f'{self.namespace}/{safe_name}'
in self.endpoint_reflector.endpoints.keys(),
'Could not find endpoints/%s after creating it' % safe_name,
)
else:
delete_endpoint = await self.core_api.delete_namespaced_endpoints(
name=safe_name,
namespace=self.namespace,
body=client.V1DeleteOptions(grace_period_seconds=0),
)
await self.delete_if_exists('endpoint', safe_name, delete_endpoint)
await ensure_object(
self.core_api.create_namespaced_service,
self.core_api.patch_namespaced_service,
body=service,
kind='service',
)
await exponential_backoff(
lambda: f'{self.namespace}/{safe_name}'
in self.service_reflector.services.keys(),
'Could not find service/%s after creating it' % safe_name,
)
await ensure_object(
self.extension_api.create_namespaced_ingress,
self.extension_api.patch_namespaced_ingress,
body=ingress,
kind='ingress',
)
await exponential_backoff(
lambda: f'{self.namespace}/{safe_name}'
in self.ingress_reflector.ingresses.keys(),
'Could not find ingress/%s after creating it' % safe_name,
)
@_await_async_init
async def delete_route(self, routespec):
# We just ensure that these objects are deleted.
# This means if some of them are already deleted, we just let it
# be.
safe_name = self.safe_name_for_routespec(routespec).lower()
delete_options = client.V1DeleteOptions(grace_period_seconds=0)
delete_endpoint = await self.core_api.delete_namespaced_endpoints(
name=safe_name,
namespace=self.namespace,
body=delete_options,
)
delete_service = await self.core_api.delete_namespaced_service(
name=safe_name,
namespace=self.namespace,
body=delete_options,
)
delete_ingress = await self.extension_api.delete_namespaced_ingress(
name=safe_name,
namespace=self.namespace,
body=delete_options,
grace_period_seconds=0,
)
# This seems like cleanest way to parallelize all three of these while
# also making sure we only ignore the exception when it's a 404.
# The order matters for endpoint & service - deleting the service deletes
# the endpoint in the background. This can be racy however, so we do so
# explicitly ourselves as well. In the future, we can probably try a
# foreground cascading deletion (https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/#foreground-cascading-deletion)
# instead, but for now this works well enough.
await asyncio.gather(
self.delete_if_exists('endpoint', safe_name, delete_endpoint),
self.delete_if_exists('service', safe_name, delete_service),
self.delete_if_exists('ingress', safe_name, delete_ingress),
)
@_await_async_init
async def get_all_routes(self):
# copy everything, because iterating over this directly is not threadsafe
# FIXME: is this performance intensive? It could be! Measure?
# FIXME: Validate that this shallow copy *is* thread safe
ingress_copy = dict(self.ingress_reflector.ingresses)
routes = {
ingress["metadata"]["annotations"]['hub.jupyter.org/proxy-routespec']: {
'routespec': ingress["metadata"]["annotations"][
'hub.jupyter.org/proxy-routespec'
],
'target': ingress["metadata"]["annotations"][
'hub.jupyter.org/proxy-target'
],
'data': json.loads(
ingress["metadata"]["annotations"]['hub.jupyter.org/proxy-data']
),
}
for ingress in ingress_copy.values()
}
return routes
| [
1,
1053,
408,
948,
3934,
13,
5215,
2090,
312,
8789,
13,
5215,
4390,
13,
5215,
2897,
13,
5215,
1347,
13,
13,
5215,
3966,
481,
1608,
13,
3166,
432,
786,
25547,
29882,
431,
29889,
14701,
1053,
1019,
3594,
13,
3166,
432,
786,
25547,
29882,
431,
29889,
13239,
1053,
25658,
29918,
1627,
2696,
13,
3166,
413,
17547,
29918,
294,
948,
3934,
1053,
3132,
13,
3166,
22917,
10376,
1053,
23862,
13,
13,
3166,
869,
11303,
1237,
1053,
2254,
29918,
2917,
13,
3166,
869,
11303,
1237,
1053,
7258,
29918,
4645,
13,
3166,
869,
12650,
1053,
1207,
29918,
292,
1253,
13,
3166,
869,
13191,
272,
1053,
18981,
5620,
781,
272,
13,
3166,
869,
13239,
1053,
5706,
29918,
8568,
287,
29918,
29517,
13,
13,
13,
1990,
512,
3663,
5620,
781,
272,
29898,
6848,
5620,
781,
272,
1125,
13,
1678,
2924,
353,
525,
292,
1253,
267,
29915,
13,
1678,
7882,
29918,
2972,
29918,
978,
353,
525,
26982,
29963,
29896,
3571,
29896,
11713,
29915,
13,
13,
1678,
732,
6799,
13,
1678,
822,
2348,
1253,
267,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
13237,
13,
13,
13,
1990,
6692,
5620,
781,
272,
29898,
6848,
5620,
781,
272,
1125,
13,
1678,
2924,
353,
525,
9916,
29915,
13,
13,
1678,
732,
6799,
13,
1678,
822,
5786,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
13237,
13,
13,
13,
1990,
2796,
9748,
5620,
781,
272,
29898,
6848,
5620,
781,
272,
1125,
13,
1678,
2924,
353,
525,
355,
9748,
29915,
13,
13,
1678,
732,
6799,
13,
1678,
822,
1095,
9748,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
13237,
13,
13,
13,
1990,
476,
4003,
797,
3663,
14048,
29898,
14048,
1125,
13,
1678,
7397,
353,
23862,
29898,
13,
4706,
2295,
29922,
5574,
29892,
13,
4706,
1371,
13776,
29908,
13,
4706,
476,
17547,
7397,
304,
29178,
2348,
1253,
267,
363,
2323,
29899,
1792,
12424,
297,
29889,
13,
13,
4706,
960,
2734,
2768,
263,
413,
17547,
9867,
411,
2669,
15303,
9615,
29892,
13,
4706,
21274,
304,
278,
1857,
7397,
29889,
960,
451,
29892,
21274,
304,
525,
4381,
29915,
13,
4706,
5124,
613,
13,
1678,
1723,
13,
13,
1678,
822,
903,
22377,
29918,
4381,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
3789,
7397,
2322,
304,
1857,
7397,
565,
2734,
297,
263,
413,
29947,
29879,
9867,
13,
13,
4706,
960,
451,
297,
263,
413,
29947,
29879,
9867,
411,
2669,
15303,
9615,
29892,
2322,
304,
13,
4706,
525,
4381,
29915,
13,
4706,
9995,
13,
4706,
17534,
29918,
2084,
353,
8207,
1707,
29914,
3389,
29914,
344,
1037,
1372,
29914,
29895,
17547,
29889,
601,
29914,
5509,
10149,
29914,
22377,
29915,
13,
4706,
565,
2897,
29889,
2084,
29889,
9933,
29898,
1983,
29918,
2084,
1125,
13,
9651,
411,
1722,
29898,
1983,
29918,
2084,
29897,
408,
285,
29901,
13,
18884,
736,
285,
29889,
949,
2141,
17010,
580,
13,
4706,
736,
525,
4381,
29915,
13,
13,
1678,
4163,
29918,
1643,
353,
23862,
29898,
13,
4706,
525,
14369,
1792,
29899,
2974,
742,
13,
4706,
2295,
29922,
5574,
29892,
13,
4706,
1371,
13776,
29908,
13,
4706,
450,
4163,
3858,
1304,
304,
4055,
278,
1404,
2532,
29879,
29889,
910,
508,
367,
1304,
304,
5712,
13,
4706,
278,
805,
1450,
1089,
6030,
746,
16743,
411,
2999,
19766,
8871,
297,
278,
1021,
13,
4706,
7397,
29889,
26991,
8444,
363,
25781,
27321,
29879,
29889,
13,
4706,
5124,
613,
13,
1678,
1723,
13,
13,
1678,
413,
29947,
29879,
29918,
2754,
29918,
16265,
29918,
1113,
29918,
6327,
353,
23862,
29898,
13,
4706,
12633,
13,
4706,
2295,
29922,
5574,
29892,
13,
4706,
1371,
13776,
29908,
13,
4706,
17015,
313,
23552,
934,
2084,
29897,
363,
12766,
2284,
29879,
310,
278,
413,
29947,
29879,
3450,
1923,
29889,
13,
13,
4706,
14213,
1711,
445,
338,
19039,
29892,
12766,
2284,
29879,
526,
18691,
701,
491,
13,
4706,
2295,
29889,
1359,
29918,
262,
19594,
29918,
2917,
580,
470,
2295,
29889,
1359,
29918,
29895,
4003,
29918,
2917,
29889,
13,
13,
4706,
512,
10812,
1661,
29899,
15770,
4251,
29892,
1316,
408,
773,
2888,
19697,
12766,
13,
4706,
363,
596,
9867,
29892,
366,
1122,
817,
304,
5766,
3876,
12766,
29915,
29879,
17551,
297,
13,
4706,
596,
8594,
29914,
7895,
322,
1298,
445,
2286,
304,
393,
934,
2084,
13,
4706,
5124,
613,
13,
1678,
1723,
13,
13,
1678,
413,
29947,
29879,
29918,
2754,
29918,
3069,
353,
23862,
29898,
13,
4706,
12633,
13,
4706,
2295,
29922,
5574,
29892,
13,
4706,
1371,
13776,
29908,
13,
4706,
14846,
3495,
1024,
310,
278,
413,
29947,
29879,
3450,
1923,
4852,
991,
597,
28988,
29901,
637,
2564,
13,
13,
4706,
14213,
1711,
445,
338,
19039,
29892,
278,
3495,
978,
338,
18691,
701,
491,
13,
4706,
2295,
29889,
1359,
29918,
262,
19594,
29918,
2917,
580,
470,
2295,
29889,
1359,
29918,
29895,
4003,
29918,
2917,
29889,
13,
4706,
5124,
613,
13,
1678,
1723,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
4706,
2428,
2141,
1649,
2344,
1649,
10456,
5085,
29892,
3579,
19290,
29897,
13,
13,
4706,
396,
1102,
287,
2540,
7465,
17865,
5900,
393,
338,
304,
367,
7272,
287,
491,
7465,
13,
4706,
396,
3168,
491,
10200,
1218,
963,
411,
732,
29918,
20675,
29918,
12674,
29918,
2344,
29889,
13,
4706,
1583,
3032,
12674,
29918,
2344,
29918,
29888,
9130,
353,
408,
948,
3934,
29889,
7469,
29918,
29888,
9130,
29898,
1311,
3032,
12674,
29918,
2344,
3101,
13,
13,
1678,
7465,
822,
903,
12674,
29918,
2344,
29898,
1311,
1125,
13,
4706,
9995,
13,
4706,
910,
1158,
338,
21467,
304,
1065,
515,
21326,
2344,
1649,
1673,
541,
451,
7272,
287,
727,
13,
4706,
408,
21326,
2344,
1649,
29952,
508,
29915,
29873,
367,
10902,
408,
7465,
29889,
13,
13,
4706,
4001,
27441,
25547,
16046,
2113,
29915,
29873,
7272,
445,
1158,
29892,
591,
9801,
278,
7465,
3519,
13,
4706,
27441,
25547,
16046,
1122,
1246,
373,
445,
1203,
674,
7272,
445,
1158,
1434,
13,
4706,
3133,
292,
29889,
1763,
437,
445,
29892,
591,
10200,
403,
963,
411,
19392,
20675,
29918,
12674,
29918,
2344,
1412,
13,
13,
4706,
1205,
29892,
920,
437,
591,
4377,
714,
278,
3519,
304,
10200,
403,
29973,
365,
638,
873,
871,
1906,
13,
4706,
19884,
491,
278,
2967,
770,
393,
27441,
25547,
16046,
723,
1073,
1048,
29889,
450,
2967,
13,
4706,
770,
338,
1019,
3594,
29892,
408,
8052,
297,
10166,
29889,
2272,
29901,
13,
4706,
2045,
597,
3292,
29889,
510,
29914,
29926,
786,
25547,
29882,
431,
29914,
29926,
786,
25547,
29882,
431,
29914,
10054,
29914,
23252,
29914,
29926,
786,
25547,
29882,
431,
29914,
14701,
29889,
2272,
29889,
13,
13,
4706,
3645,
278,
1019,
3594,
770,
1574,
1807,
591,
508,
17668,
393,
278,
1494,
13,
4706,
3519,
29892,
565,
8762,
29892,
1033,
367,
825,
591,
817,
304,
10200,
403,
411,
13,
4706,
903,
20675,
29918,
12674,
29918,
2344,
29901,
13,
13,
3986,
448,
679,
29918,
497,
29918,
27894,
313,
326,
2037,
287,
322,
10200,
630,
29897,
13,
3986,
448,
788,
29918,
13134,
313,
326,
2037,
287,
322,
10200,
630,
29897,
13,
3986,
448,
5217,
29918,
13134,
313,
326,
2037,
287,
322,
10200,
630,
29897,
13,
3986,
448,
1369,
13,
3986,
448,
5040,
13,
3986,
448,
679,
29918,
13134,
13,
4706,
9995,
13,
4706,
7272,
2254,
29918,
2917,
29898,
4804,
261,
29922,
1311,
29897,
13,
4706,
1583,
29889,
3221,
29918,
2754,
353,
7258,
29918,
4645,
877,
9203,
29963,
29896,
11713,
1495,
13,
4706,
1583,
29889,
17588,
29918,
2754,
353,
7258,
29918,
4645,
877,
26982,
29963,
29896,
3571,
29896,
11713,
1495,
13,
13,
4706,
11073,
353,
426,
13,
9651,
525,
9700,
2396,
1583,
29889,
9700,
29918,
1643,
29892,
13,
9651,
525,
29882,
431,
29889,
29926,
786,
25547,
29889,
990,
29914,
14701,
29899,
13134,
2396,
525,
3009,
742,
13,
4706,
500,
13,
4706,
1583,
29889,
292,
1253,
29918,
13191,
272,
353,
512,
3663,
5620,
781,
272,
29898,
13,
9651,
3847,
29922,
1311,
29892,
7397,
29922,
1311,
29889,
22377,
29892,
11073,
29922,
21134,
13,
4706,
1723,
13,
4706,
1583,
29889,
5509,
29918,
13191,
272,
353,
6692,
5620,
781,
272,
29898,
13,
9651,
3847,
29922,
1311,
29892,
7397,
29922,
1311,
29889,
22377,
29892,
11073,
29922,
21134,
13,
4706,
1723,
13,
4706,
1583,
29889,
29734,
29918,
13191,
272,
353,
2796,
9748,
5620,
781,
272,
29898,
13,
9651,
1583,
29892,
7397,
29922,
1311,
29889,
22377,
29892,
11073,
29922,
21134,
13,
4706,
1723,
13,
4706,
7272,
408,
948,
3934,
29889,
29887,
1624,
29898,
13,
9651,
1583,
29889,
292,
1253,
29918,
13191,
272,
29889,
2962,
3285,
13,
9651,
1583,
29889,
5509,
29918,
13191,
272,
29889,
2962,
3285,
13,
9651,
1583,
29889,
29734,
29918,
13191,
272,
29889,
2962,
3285,
13,
4706,
1723,
13,
13,
1678,
822,
903,
20675,
29918,
12674,
29918,
2344,
29898,
5696,
1125,
13,
4706,
9995,
29909,
10200,
1061,
304,
7272,
278,
903,
12674,
29918,
2344,
1158,
1156,
2534,
1063,
13,
4706,
21467,
304,
1065,
297,
278,
21326,
2344,
1649,
29952,
1158,
1213,
15945,
13,
13,
4706,
732,
7692,
312,
8789,
29889,
29893,
336,
567,
29898,
5696,
29897,
13,
4706,
7465,
822,
7465,
29918,
5696,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
9651,
565,
1583,
3032,
12674,
29918,
2344,
29918,
29888,
9130,
338,
451,
6213,
29901,
13,
18884,
7272,
1583,
3032,
12674,
29918,
2344,
29918,
29888,
9130,
13,
18884,
1583,
3032,
12674,
29918,
2344,
29918,
29888,
9130,
353,
6213,
13,
9651,
736,
7272,
1158,
29898,
1311,
29892,
334,
5085,
29892,
3579,
19290,
29897,
13,
13,
4706,
736,
7465,
29918,
5696,
13,
13,
1678,
822,
9109,
29918,
978,
29918,
1454,
29918,
27894,
3135,
29898,
1311,
29892,
12049,
3135,
1125,
13,
4706,
9109,
29918,
305,
1503,
353,
731,
29898,
1807,
29889,
294,
18869,
29918,
13609,
4878,
718,
1347,
29889,
7501,
1169,
29897,
13,
4706,
9109,
29918,
978,
353,
5706,
29918,
8568,
287,
29918,
29517,
29898,
13,
9651,
525,
29926,
786,
25547,
29899,
29915,
13,
9651,
718,
3966,
481,
1608,
29889,
21587,
29898,
27894,
3135,
29892,
9109,
29922,
11177,
29918,
305,
1503,
29892,
10169,
29918,
3090,
2433,
29899,
1495,
13,
9651,
718,
17411,
13134,
29915,
13,
4706,
1723,
13,
4706,
736,
9109,
29918,
978,
13,
13,
1678,
7465,
822,
5217,
29918,
361,
29918,
9933,
29898,
1311,
29892,
2924,
29892,
9109,
29918,
978,
29892,
5434,
1125,
13,
4706,
1018,
29901,
13,
9651,
7272,
5434,
13,
9651,
1583,
29889,
1188,
29889,
3888,
877,
2772,
22742,
1273,
29879,
22584,
29879,
742,
2924,
29892,
9109,
29918,
978,
29897,
13,
4706,
5174,
3132,
29889,
5060,
29889,
11713,
2451,
408,
321,
29901,
13,
9651,
565,
321,
29889,
4882,
2804,
29871,
29946,
29900,
29946,
29901,
13,
18884,
12020,
13,
9651,
1583,
29889,
1188,
29889,
25442,
703,
23323,
451,
5217,
1273,
29879,
22584,
29879,
29901,
947,
451,
1863,
613,
2924,
29892,
9109,
29918,
978,
29897,
13,
13,
1678,
732,
29918,
20675,
29918,
12674,
29918,
2344,
13,
1678,
7465,
822,
788,
29918,
13134,
29898,
1311,
29892,
12049,
3135,
29892,
3646,
29892,
848,
1125,
13,
4706,
396,
6204,
263,
5782,
411,
278,
1024,
1641,
19824,
12049,
3135,
13,
4706,
396,
4803,
2989,
12049,
3135,
297,
3858,
13,
4706,
396,
525,
1272,
29915,
338,
4663,
18511,
322,
1925,
297,
385,
17195,
448,
591,
1016,
29915,
29873,
817,
304,
2346,
363,
372,
13,
13,
4706,
9109,
29918,
978,
353,
1583,
29889,
11177,
29918,
978,
29918,
1454,
29918,
27894,
3135,
29898,
27894,
3135,
467,
13609,
580,
13,
4706,
11073,
353,
426,
13,
9651,
525,
2276,
16639,
2396,
525,
29926,
786,
25547,
29882,
431,
742,
13,
9651,
525,
9700,
2396,
1583,
29889,
9700,
29918,
1643,
29892,
13,
9651,
525,
29882,
431,
29889,
29926,
786,
25547,
29889,
990,
29914,
14701,
29899,
13134,
2396,
525,
3009,
742,
13,
4706,
500,
13,
4706,
16248,
29892,
2669,
29892,
2348,
1253,
353,
1207,
29918,
292,
1253,
29898,
13,
9651,
9109,
29918,
978,
29892,
12049,
3135,
29892,
3646,
29892,
11073,
29892,
848,
13,
4706,
1723,
13,
13,
4706,
7465,
822,
9801,
29918,
3318,
29898,
3258,
29918,
9891,
29892,
13261,
29918,
9891,
29892,
3573,
29892,
2924,
1125,
13,
9651,
1018,
29901,
13,
18884,
4613,
353,
7272,
1653,
29918,
9891,
29898,
22377,
29922,
1311,
29889,
22377,
29892,
3573,
29922,
2587,
29897,
13,
18884,
1583,
29889,
1188,
29889,
3888,
877,
20399,
1273,
29879,
22584,
29879,
742,
2924,
29892,
9109,
29918,
978,
29897,
13,
9651,
5174,
3132,
29889,
5060,
29889,
11713,
2451,
408,
321,
29901,
13,
18884,
565,
321,
29889,
4882,
1275,
29871,
29946,
29900,
29929,
29901,
13,
462,
1678,
396,
910,
1203,
2307,
4864,
29892,
591,
881,
13261,
372,
304,
1207,
372,
367,
825,
591,
864,
13,
462,
1678,
1583,
29889,
1188,
29889,
25442,
29898,
13,
462,
4706,
376,
15870,
292,
304,
13261,
1273,
29879,
22584,
29879,
29892,
372,
2307,
4864,
613,
2924,
29892,
9109,
29918,
978,
13,
462,
1678,
1723,
13,
462,
1678,
4613,
353,
7272,
13261,
29918,
9891,
29898,
13,
462,
4706,
7397,
29922,
1311,
29889,
22377,
29892,
13,
462,
4706,
3573,
29922,
2587,
29892,
13,
462,
4706,
1024,
29922,
2587,
29889,
19635,
29889,
978,
29892,
13,
462,
1678,
1723,
13,
18884,
1683,
29901,
13,
462,
1678,
12020,
13,
13,
4706,
565,
16248,
338,
451,
6213,
29901,
13,
9651,
7272,
9801,
29918,
3318,
29898,
13,
18884,
1583,
29889,
3221,
29918,
2754,
29889,
3258,
29918,
7039,
29886,
562,
287,
29918,
355,
9748,
29892,
13,
18884,
1583,
29889,
3221,
29918,
2754,
29889,
5041,
29918,
7039,
29886,
562,
287,
29918,
355,
9748,
29892,
13,
18884,
3573,
29922,
29734,
29892,
13,
18884,
2924,
2433,
355,
9748,
742,
13,
9651,
1723,
13,
13,
9651,
7272,
25658,
29918,
1627,
2696,
29898,
13,
18884,
14013,
29901,
285,
29915,
29912,
1311,
29889,
22377,
6822,
29912,
11177,
29918,
978,
10162,
13,
18884,
297,
1583,
29889,
29734,
29918,
13191,
272,
29889,
355,
9748,
29889,
8149,
3285,
13,
18884,
525,
23323,
451,
1284,
1095,
9748,
22584,
29879,
1156,
4969,
372,
29915,
1273,
9109,
29918,
978,
29892,
13,
9651,
1723,
13,
4706,
1683,
29901,
13,
9651,
5217,
29918,
29734,
353,
7272,
1583,
29889,
3221,
29918,
2754,
29889,
8143,
29918,
7039,
29886,
562,
287,
29918,
355,
9748,
29898,
13,
18884,
1024,
29922,
11177,
29918,
978,
29892,
13,
18884,
7397,
29922,
1311,
29889,
22377,
29892,
13,
18884,
3573,
29922,
4645,
29889,
29963,
29896,
12498,
5856,
29898,
3874,
346,
29918,
19145,
29918,
23128,
29922,
29900,
511,
13,
9651,
1723,
13,
9651,
7272,
1583,
29889,
8143,
29918,
361,
29918,
9933,
877,
29734,
742,
9109,
29918,
978,
29892,
5217,
29918,
29734,
29897,
13,
13,
4706,
7272,
9801,
29918,
3318,
29898,
13,
9651,
1583,
29889,
3221,
29918,
2754,
29889,
3258,
29918,
7039,
29886,
562,
287,
29918,
5509,
29892,
13,
9651,
1583,
29889,
3221,
29918,
2754,
29889,
5041,
29918,
7039,
29886,
562,
287,
29918,
5509,
29892,
13,
9651,
3573,
29922,
5509,
29892,
13,
9651,
2924,
2433,
5509,
742,
13,
4706,
1723,
13,
13,
4706,
7272,
25658,
29918,
1627,
2696,
29898,
13,
9651,
14013,
29901,
285,
29915,
29912,
1311,
29889,
22377,
6822,
29912,
11177,
29918,
978,
10162,
13,
9651,
297,
1583,
29889,
5509,
29918,
13191,
272,
29889,
9916,
29889,
8149,
3285,
13,
9651,
525,
23323,
451,
1284,
2669,
22584,
29879,
1156,
4969,
372,
29915,
1273,
9109,
29918,
978,
29892,
13,
4706,
1723,
13,
13,
4706,
7272,
9801,
29918,
3318,
29898,
13,
9651,
1583,
29889,
17588,
29918,
2754,
29889,
3258,
29918,
7039,
29886,
562,
287,
29918,
292,
1253,
29892,
13,
9651,
1583,
29889,
17588,
29918,
2754,
29889,
5041,
29918,
7039,
29886,
562,
287,
29918,
292,
1253,
29892,
13,
9651,
3573,
29922,
292,
1253,
29892,
13,
9651,
2924,
2433,
292,
1253,
742,
13,
4706,
1723,
13,
13,
4706,
7272,
25658,
29918,
1627,
2696,
29898,
13,
9651,
14013,
29901,
285,
29915,
29912,
1311,
29889,
22377,
6822,
29912,
11177,
29918,
978,
10162,
13,
9651,
297,
1583,
29889,
292,
1253,
29918,
13191,
272,
29889,
292,
1253,
267,
29889,
8149,
3285,
13,
9651,
525,
23323,
451,
1284,
2348,
1253,
22584,
29879,
1156,
4969,
372,
29915,
1273,
9109,
29918,
978,
29892,
13,
4706,
1723,
13,
13,
1678,
732,
29918,
20675,
29918,
12674,
29918,
2344,
13,
1678,
7465,
822,
5217,
29918,
13134,
29898,
1311,
29892,
12049,
3135,
1125,
13,
4706,
396,
1334,
925,
9801,
393,
1438,
3618,
526,
11132,
29889,
13,
4706,
396,
910,
2794,
565,
777,
310,
963,
526,
2307,
11132,
29892,
591,
925,
1235,
372,
13,
4706,
396,
367,
29889,
13,
13,
4706,
9109,
29918,
978,
353,
1583,
29889,
11177,
29918,
978,
29918,
1454,
29918,
27894,
3135,
29898,
27894,
3135,
467,
13609,
580,
13,
13,
4706,
5217,
29918,
6768,
353,
3132,
29889,
29963,
29896,
12498,
5856,
29898,
3874,
346,
29918,
19145,
29918,
23128,
29922,
29900,
29897,
13,
13,
4706,
5217,
29918,
29734,
353,
7272,
1583,
29889,
3221,
29918,
2754,
29889,
8143,
29918,
7039,
29886,
562,
287,
29918,
355,
9748,
29898,
13,
9651,
1024,
29922,
11177,
29918,
978,
29892,
13,
9651,
7397,
29922,
1311,
29889,
22377,
29892,
13,
9651,
3573,
29922,
8143,
29918,
6768,
29892,
13,
4706,
1723,
13,
13,
4706,
5217,
29918,
5509,
353,
7272,
1583,
29889,
3221,
29918,
2754,
29889,
8143,
29918,
7039,
29886,
562,
287,
29918,
5509,
29898,
13,
9651,
1024,
29922,
11177,
29918,
978,
29892,
13,
9651,
7397,
29922,
1311,
29889,
22377,
29892,
13,
9651,
3573,
29922,
8143,
29918,
6768,
29892,
13,
4706,
1723,
13,
13,
4706,
5217,
29918,
292,
1253,
353,
7272,
1583,
29889,
17588,
29918,
2754,
29889,
8143,
29918,
7039,
29886,
562,
287,
29918,
292,
1253,
29898,
13,
9651,
1024,
29922,
11177,
29918,
978,
29892,
13,
9651,
7397,
29922,
1311,
29889,
22377,
29892,
13,
9651,
3573,
29922,
8143,
29918,
6768,
29892,
13,
9651,
17659,
29918,
19145,
29918,
23128,
29922,
29900,
29892,
13,
4706,
1723,
13,
13,
4706,
396,
910,
2444,
763,
5941,
342,
982,
304,
8943,
675,
599,
2211,
310,
1438,
1550,
13,
4706,
396,
884,
3907,
1854,
591,
871,
11455,
278,
3682,
746,
372,
29915,
29879,
263,
29871,
29946,
29900,
29946,
29889,
13,
4706,
396,
450,
1797,
13750,
363,
16248,
669,
2669,
448,
21228,
278,
2669,
7374,
267,
13,
4706,
396,
278,
16248,
297,
278,
3239,
29889,
910,
508,
367,
29871,
10068,
3138,
29892,
577,
591,
437,
577,
13,
4706,
396,
9479,
20278,
408,
1532,
29889,
512,
278,
5434,
29892,
591,
508,
3117,
1018,
263,
13,
4706,
396,
363,
18128,
3209,
29883,
9382,
7374,
291,
313,
991,
597,
29895,
17547,
29889,
601,
29914,
2640,
29914,
535,
1547,
29879,
29914,
1287,
18132,
29914,
1285,
11897,
29914,
5397,
17807,
29899,
10855,
8484,
1454,
18128,
29899,
29883,
6151,
9382,
29899,
311,
1026,
291,
29897,
13,
4706,
396,
2012,
29892,
541,
363,
1286,
445,
1736,
1532,
3307,
29889,
13,
4706,
7272,
408,
948,
3934,
29889,
29887,
1624,
29898,
13,
9651,
1583,
29889,
8143,
29918,
361,
29918,
9933,
877,
29734,
742,
9109,
29918,
978,
29892,
5217,
29918,
29734,
511,
13,
9651,
1583,
29889,
8143,
29918,
361,
29918,
9933,
877,
5509,
742,
9109,
29918,
978,
29892,
5217,
29918,
5509,
511,
13,
9651,
1583,
29889,
8143,
29918,
361,
29918,
9933,
877,
292,
1253,
742,
9109,
29918,
978,
29892,
5217,
29918,
292,
1253,
511,
13,
4706,
1723,
13,
13,
1678,
732,
29918,
20675,
29918,
12674,
29918,
2344,
13,
1678,
7465,
822,
679,
29918,
497,
29918,
27894,
29898,
1311,
1125,
13,
4706,
396,
3509,
4129,
29892,
1363,
4256,
1218,
975,
445,
4153,
338,
451,
3244,
11177,
13,
4706,
396,
383,
6415,
2303,
29901,
338,
445,
4180,
938,
6270,
29973,
739,
1033,
367,
29991,
2191,
3745,
29973,
13,
4706,
396,
383,
6415,
2303,
29901,
15758,
403,
393,
445,
4091,
340,
3509,
334,
275,
29930,
3244,
9109,
13,
4706,
2348,
1253,
29918,
8552,
353,
9657,
29898,
1311,
29889,
292,
1253,
29918,
13191,
272,
29889,
292,
1253,
267,
29897,
13,
4706,
12049,
353,
426,
13,
9651,
2348,
1253,
3366,
19635,
3108,
3366,
6735,
800,
3108,
1839,
29882,
431,
29889,
29926,
786,
25547,
29889,
990,
29914,
14701,
29899,
27894,
3135,
2033,
29901,
426,
13,
18884,
525,
27894,
3135,
2396,
2348,
1253,
3366,
19635,
3108,
3366,
6735,
800,
3108,
29961,
13,
462,
1678,
525,
29882,
431,
29889,
29926,
786,
25547,
29889,
990,
29914,
14701,
29899,
27894,
3135,
29915,
13,
18884,
21251,
13,
18884,
525,
5182,
2396,
2348,
1253,
3366,
19635,
3108,
3366,
6735,
800,
3108,
29961,
13,
462,
1678,
525,
29882,
431,
29889,
29926,
786,
25547,
29889,
990,
29914,
14701,
29899,
5182,
29915,
13,
18884,
21251,
13,
18884,
525,
1272,
2396,
4390,
29889,
18132,
29898,
13,
462,
1678,
2348,
1253,
3366,
19635,
3108,
3366,
6735,
800,
3108,
1839,
29882,
431,
29889,
29926,
786,
25547,
29889,
990,
29914,
14701,
29899,
1272,
2033,
13,
18884,
10353,
13,
9651,
500,
13,
9651,
363,
2348,
1253,
297,
2348,
1253,
29918,
8552,
29889,
5975,
580,
13,
4706,
500,
13,
13,
4706,
736,
12049,
13,
2
] |
regolith/helpers/u_logurlhelper.py | sbillinge/regolith | 1 | 129914 | """Helper for updating a projectum's log_url
Log_urls are the google doc links to a projectum's Projectum Agenda Log
"""
from regolith.helpers.basehelper import DbHelperBase
from regolith.fsclient import _id_key
from regolith.tools import all_docs_from_collection, fragment_retrieval
TARGET_COLL = "projecta"
def subparser(subpi):
subpi.add_argument("projectum_id", help="the ID or fragment of the ID of the "
"Projectum to be updated, e.g., "
"vl_m.",
default=None)
subpi.add_argument("log_url", help="Google Doc url link to project's Projectum Agenda Log")
subpi.add_argument("-i", "--index", help="The index of the id you would like "
"to update, from the returned list "
"of projectum ids.")
# Do not delete --database arg
subpi.add_argument("-d", "--database",
help="The database that will be updated. Defaults to "
"first database in the regolithrc.json file."
)
return subpi
class LogUrlUpdaterHelper(DbHelperBase):
"""
Update a projectum's Log_url, will add a new Log_URL if one doesn't yet exist
"""
# btype must be the same as helper target in helper.py
btype = "u_logurl"
needed_dbs = [f'{TARGET_COLL}']
def construct_global_ctx(self):
"""Constructs the global context"""
super().construct_global_ctx()
gtx = self.gtx
rc = self.rc
rc.coll = f"{TARGET_COLL}"
if not rc.database:
rc.database = rc.databases[0]["name"]
gtx[rc.coll] = sorted(
all_docs_from_collection(rc.client, rc.coll), key=_id_key
)
gtx["all_docs_from_collection"] = all_docs_from_collection
gtx["float"] = float
gtx["str"] = str
gtx["zip"] = zip
def db_updater(self):
rc = self.rc
key = rc.projectum_id
filterid = {'_id': key}
found_projectum = rc.client.find_one(rc.database, rc.coll, filterid)
# id exists
if found_projectum is not None:
rc.client.update_one(rc.database, rc.coll, filterid, {'log_url': rc.log_url})
print(f"{rc.projectum_id} has been updated with a log_url of {rc.log_url}")
else:
# find all similar projectum ids
pra = fragment_retrieval(self.gtx["projecta"], ["_id"], rc.projectum_id)
# no matches to id fragment and id does not exist
if len(pra) == 0:
raise RuntimeError("Please input a valid projectum id or a valid fragment of a projectum id")
# id fragment and no inputted number
elif not rc.index:
print("There does not seem to be a projectum with this exact name in this database.")
print("However, there are projecta with similar names: ")
for i in range(len(pra)):
print(f"{i + 1}. {pra[i].get('_id')} current url: {pra[i].get('log_url')}")
print("Please rerun the u_logurl helper with the same name as previously inputted, "
"but with the addition of -i followed by a number corresponding to one of the above listed "
"projectum ids that you would like to update.")
# id fragment and inputted number
else:
if int(rc.index) < 1 or int(rc.index) > len(pra):
raise RuntimeError("Sorry, you picked an invalid number.")
else:
filterid = {'_id': pra[int(rc.index) - 1].get('_id')}
rc.client.update_one(rc.database, rc.coll, filterid, {'log_url': rc.log_url})
print(f"{pra[int(rc.index) - 1].get('_id')} has been updated with a log_url of {rc.log_url}")
return
| [
1,
9995,
10739,
363,
13271,
263,
2060,
398,
29915,
29879,
1480,
29918,
2271,
13,
259,
4522,
29918,
26045,
526,
278,
5386,
1574,
2988,
304,
263,
2060,
398,
29915,
29879,
8010,
398,
4059,
8395,
4522,
13,
15945,
29908,
13,
3166,
1072,
324,
389,
29889,
3952,
6774,
29889,
3188,
20907,
1053,
24331,
10739,
5160,
13,
3166,
1072,
324,
389,
29889,
29888,
1557,
1593,
1053,
903,
333,
29918,
1989,
13,
3166,
1072,
324,
389,
29889,
8504,
1053,
599,
29918,
2640,
29918,
3166,
29918,
10855,
29892,
9376,
29918,
276,
509,
16837,
13,
13,
29911,
1718,
7194,
29918,
3217,
2208,
353,
376,
4836,
29874,
29908,
13,
13,
13,
1753,
1014,
16680,
29898,
1491,
1631,
1125,
13,
1678,
1014,
1631,
29889,
1202,
29918,
23516,
703,
4836,
398,
29918,
333,
613,
1371,
543,
1552,
3553,
470,
9376,
310,
278,
3553,
310,
278,
376,
13,
462,
462,
9651,
376,
7653,
398,
304,
367,
4784,
29892,
321,
29889,
29887,
1696,
376,
13,
462,
462,
9651,
376,
20901,
29918,
29885,
19602,
13,
462,
539,
2322,
29922,
8516,
29897,
13,
1678,
1014,
1631,
29889,
1202,
29918,
23516,
703,
1188,
29918,
2271,
613,
1371,
543,
14207,
28197,
3142,
1544,
304,
2060,
29915,
29879,
8010,
398,
4059,
8395,
4522,
1159,
13,
1678,
1014,
1631,
29889,
1202,
29918,
23516,
703,
29899,
29875,
613,
376,
489,
2248,
613,
1371,
543,
1576,
2380,
310,
278,
1178,
366,
723,
763,
376,
13,
462,
462,
632,
376,
517,
2767,
29892,
515,
278,
4133,
1051,
376,
13,
462,
462,
632,
376,
974,
2060,
398,
18999,
23157,
13,
1678,
396,
1938,
451,
5217,
1192,
9803,
1852,
13,
1678,
1014,
1631,
29889,
1202,
29918,
23516,
703,
29899,
29881,
613,
376,
489,
9803,
613,
13,
462,
539,
1371,
543,
1576,
2566,
393,
674,
367,
4784,
29889,
29871,
13109,
29879,
304,
376,
13,
462,
9651,
376,
4102,
2566,
297,
278,
1072,
324,
389,
2214,
29889,
3126,
934,
1213,
13,
462,
539,
1723,
13,
1678,
736,
1014,
1631,
13,
13,
13,
1990,
4522,
5983,
3373,
29881,
1008,
10739,
29898,
10234,
10739,
5160,
1125,
13,
1678,
9995,
13,
1678,
10318,
263,
2060,
398,
29915,
29879,
4522,
29918,
2271,
29892,
674,
788,
263,
716,
4522,
29918,
4219,
565,
697,
1838,
29915,
29873,
3447,
1863,
13,
1678,
9995,
13,
1678,
396,
289,
1853,
1818,
367,
278,
1021,
408,
16876,
3646,
297,
16876,
29889,
2272,
13,
1678,
289,
1853,
353,
376,
29884,
29918,
1188,
2271,
29908,
13,
1678,
4312,
29918,
2585,
29879,
353,
518,
29888,
29915,
29912,
29911,
1718,
7194,
29918,
3217,
2208,
29913,
2033,
13,
13,
1678,
822,
3386,
29918,
10945,
29918,
13073,
29898,
1311,
1125,
13,
4706,
9995,
1168,
4984,
29879,
278,
5534,
3030,
15945,
29908,
13,
4706,
2428,
2141,
11433,
29918,
10945,
29918,
13073,
580,
13,
4706,
330,
7508,
353,
1583,
29889,
4141,
29916,
13,
4706,
364,
29883,
353,
1583,
29889,
2214,
13,
4706,
364,
29883,
29889,
22017,
353,
285,
29908,
29912,
29911,
1718,
7194,
29918,
3217,
2208,
5038,
13,
4706,
565,
451,
364,
29883,
29889,
9803,
29901,
13,
9651,
364,
29883,
29889,
9803,
353,
364,
29883,
29889,
29503,
2129,
29961,
29900,
29962,
3366,
978,
3108,
13,
4706,
330,
7508,
29961,
2214,
29889,
22017,
29962,
353,
12705,
29898,
13,
9651,
599,
29918,
2640,
29918,
3166,
29918,
10855,
29898,
2214,
29889,
4645,
29892,
364,
29883,
29889,
22017,
511,
1820,
29922,
29918,
333,
29918,
1989,
13,
4706,
1723,
13,
4706,
330,
7508,
3366,
497,
29918,
2640,
29918,
3166,
29918,
10855,
3108,
353,
599,
29918,
2640,
29918,
3166,
29918,
10855,
13,
4706,
330,
7508,
3366,
7411,
3108,
353,
5785,
13,
4706,
330,
7508,
3366,
710,
3108,
353,
851,
13,
4706,
330,
7508,
3366,
7554,
3108,
353,
14319,
13,
13,
1678,
822,
4833,
29918,
786,
29881,
1008,
29898,
1311,
1125,
13,
4706,
364,
29883,
353,
1583,
29889,
2214,
13,
4706,
1820,
353,
364,
29883,
29889,
4836,
398,
29918,
333,
13,
4706,
4175,
333,
353,
11117,
29918,
333,
2396,
1820,
29913,
13,
4706,
1476,
29918,
4836,
398,
353,
364,
29883,
29889,
4645,
29889,
2886,
29918,
650,
29898,
2214,
29889,
9803,
29892,
364,
29883,
29889,
22017,
29892,
4175,
333,
29897,
13,
13,
4706,
396,
1178,
4864,
13,
4706,
565,
1476,
29918,
4836,
398,
338,
451,
6213,
29901,
13,
9651,
364,
29883,
29889,
4645,
29889,
5504,
29918,
650,
29898,
2214,
29889,
9803,
29892,
364,
29883,
29889,
22017,
29892,
4175,
333,
29892,
11117,
1188,
29918,
2271,
2396,
364,
29883,
29889,
1188,
29918,
2271,
1800,
13,
9651,
1596,
29898,
29888,
29908,
29912,
2214,
29889,
4836,
398,
29918,
333,
29913,
756,
1063,
4784,
411,
263,
1480,
29918,
2271,
310,
426,
2214,
29889,
1188,
29918,
2271,
27195,
13,
4706,
1683,
29901,
13,
9651,
396,
1284,
599,
2788,
2060,
398,
18999,
13,
9651,
7213,
353,
9376,
29918,
276,
509,
16837,
29898,
1311,
29889,
4141,
29916,
3366,
4836,
29874,
12436,
6796,
29918,
333,
12436,
364,
29883,
29889,
4836,
398,
29918,
333,
29897,
13,
13,
9651,
396,
694,
7087,
304,
1178,
9376,
322,
1178,
947,
451,
1863,
13,
9651,
565,
7431,
29898,
29886,
336,
29897,
1275,
29871,
29900,
29901,
13,
18884,
12020,
24875,
2392,
703,
12148,
1881,
263,
2854,
2060,
398,
1178,
470,
263,
2854,
9376,
310,
263,
2060,
398,
1178,
1159,
13,
13,
9651,
396,
1178,
9376,
322,
694,
1881,
9446,
1353,
13,
9651,
25342,
451,
364,
29883,
29889,
2248,
29901,
13,
18884,
1596,
703,
8439,
947,
451,
2833,
304,
367,
263,
2060,
398,
411,
445,
2684,
1024,
297,
445,
2566,
23157,
13,
18884,
1596,
703,
17245,
29892,
727,
526,
2060,
29874,
411,
2788,
2983,
29901,
16521,
13,
18884,
363,
474,
297,
3464,
29898,
2435,
29898,
29886,
336,
22164,
13,
462,
1678,
1596,
29898,
29888,
29908,
29912,
29875,
718,
29871,
29896,
1836,
426,
29886,
336,
29961,
29875,
1822,
657,
877,
29918,
333,
1495,
29913,
268,
1857,
3142,
29901,
426,
29886,
336,
29961,
29875,
1822,
657,
877,
1188,
29918,
2271,
1495,
27195,
13,
18884,
1596,
703,
12148,
364,
261,
348,
278,
318,
29918,
1188,
2271,
16876,
411,
278,
1021,
1024,
408,
9251,
1881,
9446,
29892,
376,
13,
462,
418,
376,
4187,
411,
278,
6124,
310,
448,
29875,
5643,
491,
263,
1353,
6590,
304,
697,
310,
278,
2038,
9904,
376,
13,
462,
418,
376,
4836,
398,
18999,
393,
366,
723,
763,
304,
2767,
23157,
13,
13,
9651,
396,
1178,
9376,
322,
1881,
9446,
1353,
13,
9651,
1683,
29901,
13,
18884,
565,
938,
29898,
2214,
29889,
2248,
29897,
529,
29871,
29896,
470,
938,
29898,
2214,
29889,
2248,
29897,
1405,
7431,
29898,
29886,
336,
1125,
13,
462,
1678,
12020,
24875,
2392,
703,
29903,
3818,
29892,
366,
18691,
385,
8340,
1353,
23157,
13,
18884,
1683,
29901,
13,
462,
1678,
4175,
333,
353,
11117,
29918,
333,
2396,
7213,
29961,
524,
29898,
2214,
29889,
2248,
29897,
448,
29871,
29896,
1822,
657,
877,
29918,
333,
1495,
29913,
13,
462,
1678,
364,
29883,
29889,
4645,
29889,
5504,
29918,
650,
29898,
2214,
29889,
9803,
29892,
364,
29883,
29889,
22017,
29892,
4175,
333,
29892,
11117,
1188,
29918,
2271,
2396,
364,
29883,
29889,
1188,
29918,
2271,
1800,
13,
462,
1678,
1596,
29898,
29888,
29908,
29912,
29886,
336,
29961,
524,
29898,
2214,
29889,
2248,
29897,
448,
29871,
29896,
1822,
657,
877,
29918,
333,
1495,
29913,
756,
1063,
4784,
411,
263,
1480,
29918,
2271,
310,
426,
2214,
29889,
1188,
29918,
2271,
27195,
13,
13,
4706,
736,
13,
2
] |
lambda_freezer/__init__.py | klagrange/lambda-freezer | 0 | 1615873 | from collections import namedtuple
import os
import subprocess
import re
import boto3
import json
STAGE_VARIABLE_ALIAS = "lambdaAlias"
INTEGRATION_URI_APPENDER = ":${{stageVariables.{0}}}".format(STAGE_VARIABLE_ALIAS)
_INTEGRATION = namedtuple(
"INTEGRATION", [
"rest_api_id",
"resource_id",
"http_method",
"path"
]
)
_APIFNS = namedtuple(
"APIFNS", [
"rest_api_id",
"resource_id",
"http_method",
"uri",
"path",
"function_name",
"source_arn",
"aliases"
]
)
STATEMENT_ID = "f6803b46-df32-4504-8c40-567a0390f549"
CLIENT_GATEWAY = boto3.client('apigateway')
CLIENT_LAMBDA = boto3.client('lambda')
CLIENT_CLOUDFORMATION = boto3.client('cloudformation')
SERVICE_FROM_PATH_PATTERN = re.compile(r"^(?:\\.|[^/\\])*/((?:\\.|[^/\\])*)/")
class Mapper:
"""
This is a class that groups a collection of helper functions that
help in gathering information of lambda functions that are integrated
with an AWS api gateway
"""
@staticmethod
def _map_fn(rest_api_id, region, http_method, path, uri):
"""
Extracts the underlying (lambda) function name and
source arn of a particular resource attached to an api gateway.
"""
account_id = boto3.client('sts').get_caller_identity().get('Account')
regex_template = ".*/arn:aws:lambda:{0}:{1}:function:(.*)/invocations$"
source_arn_template = "arn:aws:execute-api:{0}:{1}:{2}/*/{3}{4}"
source_arn = source_arn_template.format(
region,
account_id,
rest_api_id,
http_method,
path
)
regex = regex_template.format(region, account_id)
function_name = re.search(regex, uri).group(1)
if function_name[-len(INTEGRATION_URI_APPENDER):] == INTEGRATION_URI_APPENDER:
function_name = function_name[:-len(INTEGRATION_URI_APPENDER)]
return function_name, source_arn
@staticmethod
def _map_aliases(func_name):
"""
Returns all aliases associated with a given (lambda) function.
"""
list_aliases_res = CLIENT_LAMBDA.list_aliases(
FunctionName=func_name,
)
aliases = list_aliases_res["Aliases"]
return aliases
@staticmethod
def _get_integrations(rest_api_id):
"""
Gathers all resources for a given api gateway and returns
its' integrations.
In particular, the `resource id`, `resource method`
and `resource path`
"""
# fetch api resources
resources = CLIENT_GATEWAY.get_resources(
restApiId=rest_api_id,
)
integrations = []
# traverse all the resources
for resource in resources['items']:
# we are only interested in "resource methods"
if "resourceMethods" not in resource.keys():
continue
resource_methods = resource["resourceMethods"].keys()
for resource_method in resource_methods:
integrations.append(
_INTEGRATION(
rest_api_id,
resource["id"],
resource_method,
resource["path"]))
return integrations
@staticmethod
def _assemble(region, integrations):
"""
Helper function tha combines data.
"""
apifns = []
for integration in integrations:
get_integration_res = CLIENT_GATEWAY.get_integration(
restApiId=integration.rest_api_id,
resourceId=integration.resource_id,
httpMethod=integration.http_method
)
# we are only interested at AWS_PROXY integrations as those
# are integrations that are created by serverless framework
if get_integration_res["type"] != "AWS_PROXY":
continue
function_name, source_arn = Mapper._map_fn(
integration.rest_api_id,
region,
integration.http_method,
integration.path,
get_integration_res["uri"]
)
aliases = Mapper._map_aliases(function_name)
apifns.append(
_APIFNS(
integration.rest_api_id,
integration.resource_id,
integration.http_method,
get_integration_res["uri"],
integration.path,
function_name,
source_arn,
aliases
)
)
return apifns
@staticmethod
def run(rest_api_id, region):
"""
Gets the integrations of a given api gateway and appends
information to them (_assemble)
"""
integrations = Mapper._get_integrations(rest_api_id)
apifns = Mapper._assemble(region, integrations)
return apifns
def _add_permission(api_fn, stage_name):
"""
Add `lambda:InvokeFunction` permission to an (aliased) lambda function
that is wired to an api gateway.
"""
try:
CLIENT_LAMBDA.add_permission(
FunctionName="{0}:{1}".format(api_fn.function_name, stage_name),
StatementId=STATEMENT_ID,
Action='lambda:InvokeFunction',
Principal='apigateway.amazonaws.com',
SourceArn=api_fn.source_arn,
)
except CLIENT_LAMBDA.exceptions.ResourceConflictException as err:
error_msg = {
"exception": "CLIENT_LAMBDA.exceptions.ResourceConflictException",
"fn": api_fn,
"error": err
}
print(json.dumps(error_msg, indent=4))
except Exception as ex:
print(ex)
def _default_alias_is_added(fn_aliases, default_alias_name):
"""
Checks if the `default alias` is part of a list of aliases
"""
for alias in fn_aliases:
if alias["Name"] == default_alias_name:
return True
return False
def _create_alias(function_name, alias_name, function_version):
"""
Creates an alias and points to a specific version of a
(lambda) function.
"""
CLIENT_LAMBDA.create_alias(
FunctionName=function_name,
Name=alias_name,
FunctionVersion=function_version
)
def _integration_uri_is_already_updated(uri):
"""
A typical uri would look like this:
arn:aws:apigateway:{0}:lambda:path/2015-03-31/functions/arn:aws:lambda:{0}:{1}:function:{2}/invocations
{0}: region
{1}: account id
{2}: function name
Example of a function name:
helloWorld
We consider a uri integration to be `updated` when the function name is such:
helloWorld:${stageVariables.lambdaAlias}
This ensures that only a specific alias (therefore a specific locked version) can be called for
a (lambda) function.
"""
invocation_str = "/invocations"
uri_minus_invocation_str = uri[:-len(invocation_str)]
is_already_updated = uri_minus_invocation_str[-len(INTEGRATION_URI_APPENDER):] == INTEGRATION_URI_APPENDER
return is_already_updated, invocation_str, uri_minus_invocation_str
def _get_service_from_path(path):
"""
Resource paths are general simple urls such as:
/generalcalc/getHouseCostByCity
/subscription/signUp
/subscription/subscribeBasicPlan
/country/countries
/subscription/login
/subscription/confirmSignUp
/country/countries/{cca2}
This simply extract the first piece of string that is between / /
"""
return re.search(SERVICE_FROM_PATH_PATTERN, path).group(1)
def _tag_documentation_exists(rest_api_id, path, http_method):
"""
Checks if a specific resource path/method has a `tag` documentation.
"""
get_documentation_parts_res = CLIENT_GATEWAY.get_documentation_parts(
restApiId=rest_api_id,
type="METHOD",
path=path,
)
if not get_documentation_parts_res["items"]:
return False
for item in get_documentation_parts_res["items"]:
if item["location"]["method"] == http_method:
return True
return False
def _get_cloudformation_export(exportName):
exports = CLIENT_CLOUDFORMATION.list_exports()
if 'Exports' not in exports.keys():
exit()
for export in exports['Exports']:
if export['Name'] == exportName:
return export['Value']
exit()
def get_deployed_stages(rest_api_id):
"""
Returns all the stages that are deployed
"""
stages = []
get_stages_res = CLIENT_GATEWAY.get_stages(
restApiId=rest_api_id,
)
for get_stage_res in get_stages_res["item"]:
stages.append(get_stage_res["stageName"])
return stages
def create_alias_default(api_fns, default_alias_name):
"""
Creates the so called `default alias` which is just
an alias that points to the latest version of
(lambda) function(s).
"""
def create(function_name):
return _create_alias(function_name, default_alias_name, "$LATEST")
for api_fn in api_fns:
aliases = api_fn.aliases
function_name = api_fn.function_name
if not aliases:
create(function_name)
else:
default_is_added = _default_alias_is_added(aliases, default_alias_name)
if not default_is_added:
create(function_name)
def update_integration_uri(api_fns, default_alias_name):
"""
For every (lambda) functions that are integrated with
an api gateway - updated the uri integration such that
the api gateway can only call a specific version of
those (lambda) functions through an alias.
"""
for api_fn in api_fns:
is_already_updated, invocation_str, uri_minus_invocation_str = _integration_uri_is_already_updated(api_fn.uri)
if not is_already_updated:
new_uri = "{0}{1}{2}".format(
uri_minus_invocation_str,
INTEGRATION_URI_APPENDER,
invocation_str
)
CLIENT_GATEWAY.update_integration(
restApiId=api_fn.rest_api_id,
resourceId=api_fn.resource_id,
httpMethod=api_fn.http_method,
patchOperations=[
{
'op': 'replace',
'path': '/uri',
'value': new_uri,
},
]
)
_add_permission(api_fn, default_alias_name)
def create_domain_mapping_default(rest_api_id, domain_name, default_alias_name):
"""
Creates the domain name mapping for the default stage.
"""
def create():
CLIENT_GATEWAY.create_base_path_mapping(
domainName=domain_name,
basePath=default_alias_name,
restApiId=rest_api_id,
stage=default_alias_name
)
get_base_path_mappings_res = CLIENT_GATEWAY.get_base_path_mappings(
domainName=domain_name,
)
mappings = get_base_path_mappings_res['items']
if not mappings:
create()
else:
already_mapped = False
for mapping in mappings:
if mapping["basePath"] == default_alias_name and mapping["stage"] == default_alias_name:
already_mapped = True
if not already_mapped:
create()
def default_stage_contains_staged_variable(rest_api_id, default_alias_name):
"""
Checks if the default stage contains the `stage variable alias`.
"""
get_stage_res = CLIENT_GATEWAY.get_stage(
restApiId=rest_api_id,
stageName=default_alias_name
)
if "variables" not in get_stage_res.keys():
return False
stage_variables = get_stage_res["variables"]
if STAGE_VARIABLE_ALIAS not in stage_variables.keys():
return False
if stage_variables[STAGE_VARIABLE_ALIAS] != default_alias_name:
return False
return True
def create_tag_documentation(rest_api_id, api_fns):
"""
Creates tag documentation for a given list of functions.
"""
for api_fn in api_fns:
path = api_fn.path
http_method = api_fn.http_method
already_exists = _tag_documentation_exists(rest_api_id, path, http_method)
if not already_exists:
service_name = _get_service_from_path(path)
tag = {
"tags": [
service_name
]
}
CLIENT_GATEWAY.create_documentation_part(
restApiId=rest_api_id,
location={
"type": "METHOD",
"path": path,
"method": http_method
},
properties=json.dumps(tag),
)
def run_after_default_deployment(rest_api_id, region, default_alias_name, domain_name=None):
"""
Typically what you would need to run after a
`serverless deploy` deployment.
This ensures that every function integrations' are such that
the api gateway can only call a specific version of any
lambda functions via an alias, using a stage variable.
"""
api_fns = Mapper.run(rest_api_id, region)
create_alias_default(api_fns, default_alias_name)
update_integration_uri(api_fns, default_alias_name)
if domain_name is not None:
create_domain_mapping_default(rest_api_id, domain_name, default_alias_name)
# create_tag_documentation(rest_api_id, api_fns)
contains_stage_var = default_stage_contains_staged_variable(rest_api_id, default_alias_name)
if not contains_stage_var:
print('''
PLEASE ADD THE FOLLOWING STAGE VARIABLE TO [STAGE: {0}]:
{1} : {2}
'''.format(default_alias_name, STAGE_VARIABLE_ALIAS, default_alias_name))
def freeze_functions(api_fns, stage_name):
"""
Creates an alias (that's the string for `stage_name`)
for a given list of functions.
"""
for api_fn in api_fns:
function_name = api_fn.function_name
publish_version_res = CLIENT_LAMBDA.publish_version(FunctionName=function_name)
try:
CLIENT_LAMBDA.create_alias(
FunctionName=function_name,
Name=stage_name,
FunctionVersion=publish_version_res["Version"]
)
_add_permission(api_fn, stage_name)
except Exception as ex:
print("[WARNING] error while freezing function from source arn: {0}".format(api_fn.source_arn))
print("DETAILS: {0}".format(ex))
def deploy(rest_api_id, region, version, stage_description, domain_name=None):
"""
Deploys a stage to an api gateway.
The definition of `deploy` here is:
- take all resources of an api gateway (those are lambda functions at the core)
- the integration of those lambda functions are assumed to have been modified
such that only specific version
- `freeze` those functions and create an alias that points to those frozen versions
- creates a new stage under the api gateway and ensure that staged version calls only
those previously frozen functions
"""
# ensure version follows semantic versioning standard
if not re.match("\d+\.\d+\.\d+", version):
exit("{0} DOES NOT FOLLOW SEMANTIC VERSIONING. FOLLOW SEMANTIC VERSIONING!".format(version))
# ensure that version was not already deployed
stage_name = version.replace(".", "-")
stages = get_deployed_stages(rest_api_id)
if stage_name in stages:
exit("YOU ALREADY DEPLOYED {0}".format(version))
# extracted functions' info and freeze them
api_fns = Mapper.run(rest_api_id, region)
freeze_functions(api_fns, stage_name)
# deploy frozen functions
CLIENT_GATEWAY.create_deployment(
restApiId=rest_api_id,
stageName=stage_name,
stageDescription=stage_description,
description=stage_description,
variables={
"{0}".format(STAGE_VARIABLE_ALIAS): stage_name
},
)
# map to domain
if domain_name is not None:
CLIENT_GATEWAY.create_base_path_mapping(
domainName=domain_name,
basePath=stage_name.replace("-", "."),
restApiId=rest_api_id,
stage=stage_name
)
def re_deploy(rest_api_id, region, version, stage_description):
"""
Deploys a stage to an api gateway.
The definition of `deploy` here is:
- take all resources of an api gateway (those are lambda functions at the core)
- the integration of those lambda functions are assumed to have been modified
such that only specific version
- `freeze` those functions and create an alias that points to those frozen versions
- creates a new stage under the api gateway and ensure that staged version calls only
those previously frozen functions
"""
# # ensure that version was not already deployed
stage_name = version.replace(".", "-")
stages = get_deployed_stages(rest_api_id)
if stage_name not in stages:
exit("YOU HAVE NEVER DEPLOYED {0}".format(version))
# deploy frozen functions
CLIENT_GATEWAY.create_deployment(
restApiId=rest_api_id,
stageName=stage_name,
stageDescription=stage_description,
description=stage_description,
variables={
"{0}".format(STAGE_VARIABLE_ALIAS): stage_name
},
)
| [
1,
515,
16250,
1053,
4257,
23583,
13,
5215,
2897,
13,
5215,
1014,
5014,
13,
5215,
337,
13,
5215,
289,
3747,
29941,
13,
5215,
4390,
13,
13,
1254,
10461,
29918,
26865,
29902,
6181,
29918,
1964,
29902,
3289,
353,
376,
2892,
29909,
18849,
29908,
13,
1177,
4330,
14345,
8098,
29918,
15551,
29918,
20576,
1430,
8032,
353,
29242,
5303,
29912,
19190,
10444,
1849,
29889,
29912,
29900,
12499,
1642,
4830,
29898,
1254,
10461,
29918,
26865,
29902,
6181,
29918,
1964,
29902,
3289,
29897,
13,
29918,
1177,
4330,
14345,
8098,
353,
4257,
23583,
29898,
13,
1678,
376,
1177,
4330,
14345,
8098,
613,
518,
13,
4706,
376,
5060,
29918,
2754,
29918,
333,
613,
13,
4706,
376,
10314,
29918,
333,
613,
13,
4706,
376,
1124,
29918,
5696,
613,
13,
4706,
376,
2084,
29908,
13,
1678,
4514,
13,
29897,
13,
29918,
8787,
29943,
3059,
353,
4257,
23583,
29898,
13,
1678,
376,
8787,
29943,
3059,
613,
518,
13,
4706,
376,
5060,
29918,
2754,
29918,
333,
613,
13,
4706,
376,
10314,
29918,
333,
613,
13,
4706,
376,
1124,
29918,
5696,
613,
13,
4706,
376,
5338,
613,
13,
4706,
376,
2084,
613,
13,
4706,
376,
2220,
29918,
978,
613,
13,
4706,
376,
4993,
29918,
2753,
613,
13,
4706,
376,
2606,
2129,
29908,
13,
1678,
4514,
13,
29897,
13,
19713,
13780,
29918,
1367,
353,
376,
29888,
29953,
29947,
29900,
29941,
29890,
29946,
29953,
29899,
2176,
29941,
29906,
29899,
29946,
29945,
29900,
29946,
29899,
29947,
29883,
29946,
29900,
29899,
29945,
29953,
29955,
29874,
29900,
29941,
29929,
29900,
29888,
29945,
29946,
29929,
29908,
13,
27205,
3919,
29918,
29954,
3040,
12982,
29979,
353,
289,
3747,
29941,
29889,
4645,
877,
481,
335,
403,
1582,
1495,
13,
27205,
3919,
29918,
4375,
9486,
7698,
353,
289,
3747,
29941,
29889,
4645,
877,
2892,
1495,
13,
27205,
3919,
29918,
29907,
3927,
29965,
4037,
12054,
8098,
353,
289,
3747,
29941,
29889,
4645,
877,
9274,
5404,
1495,
13,
6304,
19059,
29918,
21482,
29918,
10145,
29918,
29925,
1299,
4945,
29940,
353,
337,
29889,
12198,
29898,
29878,
29908,
29985,
10780,
22298,
29889,
29989,
22896,
29914,
1966,
2314,
3877,
3552,
29973,
22298,
29889,
29989,
22896,
29914,
1966,
2314,
29930,
6802,
1159,
13,
13,
1990,
341,
23239,
29901,
13,
1678,
9995,
13,
1678,
910,
338,
263,
770,
393,
6471,
263,
4333,
310,
16876,
3168,
393,
13,
1678,
1371,
297,
11705,
292,
2472,
310,
14013,
3168,
393,
526,
23387,
13,
1678,
411,
385,
15540,
7882,
28646,
13,
1678,
9995,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
903,
1958,
29918,
9144,
29898,
5060,
29918,
2754,
29918,
333,
29892,
5120,
29892,
1732,
29918,
5696,
29892,
2224,
29892,
21333,
1125,
13,
4706,
9995,
13,
4706,
7338,
1461,
29879,
278,
14407,
313,
2892,
29897,
740,
1024,
322,
13,
4706,
2752,
564,
29876,
310,
263,
3153,
6503,
10959,
304,
385,
7882,
28646,
29889,
13,
4706,
9995,
13,
4706,
3633,
29918,
333,
353,
289,
3747,
29941,
29889,
4645,
877,
303,
29879,
2824,
657,
29918,
4804,
261,
29918,
22350,
2141,
657,
877,
10601,
1495,
13,
4706,
6528,
29918,
6886,
353,
11393,
3877,
2753,
29901,
10467,
29901,
2892,
26254,
29900,
6177,
29912,
29896,
6177,
2220,
5919,
5575,
6802,
11569,
542,
800,
29938,
29908,
13,
4706,
2752,
29918,
2753,
29918,
6886,
353,
376,
2753,
29901,
10467,
29901,
7978,
29899,
2754,
26254,
29900,
6177,
29912,
29896,
6177,
29912,
29906,
6822,
3877,
29912,
29941,
1157,
29946,
5038,
13,
4706,
2752,
29918,
2753,
353,
2752,
29918,
2753,
29918,
6886,
29889,
4830,
29898,
13,
9651,
5120,
29892,
13,
9651,
3633,
29918,
333,
29892,
13,
9651,
1791,
29918,
2754,
29918,
333,
29892,
13,
9651,
1732,
29918,
5696,
29892,
13,
9651,
2224,
13,
4706,
1723,
13,
4706,
6528,
353,
6528,
29918,
6886,
29889,
4830,
29898,
12803,
29892,
3633,
29918,
333,
29897,
13,
13,
4706,
740,
29918,
978,
353,
337,
29889,
4478,
29898,
13087,
29892,
21333,
467,
2972,
29898,
29896,
29897,
13,
4706,
565,
740,
29918,
978,
14352,
2435,
29898,
1177,
4330,
14345,
8098,
29918,
15551,
29918,
20576,
1430,
8032,
1125,
29962,
1275,
2672,
4330,
14345,
8098,
29918,
15551,
29918,
20576,
1430,
8032,
29901,
13,
9651,
740,
29918,
978,
353,
740,
29918,
978,
7503,
29899,
2435,
29898,
1177,
4330,
14345,
8098,
29918,
15551,
29918,
20576,
1430,
8032,
4638,
13,
13,
4706,
736,
740,
29918,
978,
29892,
2752,
29918,
2753,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
903,
1958,
29918,
2606,
2129,
29898,
9891,
29918,
978,
1125,
13,
4706,
9995,
13,
4706,
16969,
599,
14430,
2129,
6942,
411,
263,
2183,
313,
2892,
29897,
740,
29889,
13,
4706,
9995,
13,
4706,
1051,
29918,
2606,
2129,
29918,
690,
353,
24492,
3919,
29918,
4375,
9486,
7698,
29889,
1761,
29918,
2606,
2129,
29898,
13,
9651,
6680,
1170,
29922,
9891,
29918,
978,
29892,
13,
4706,
1723,
13,
4706,
14430,
2129,
353,
1051,
29918,
2606,
2129,
29918,
690,
3366,
29909,
492,
2129,
3108,
13,
4706,
736,
14430,
2129,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
903,
657,
29918,
14146,
800,
29898,
5060,
29918,
2754,
29918,
333,
1125,
13,
4706,
9995,
13,
4706,
402,
19467,
599,
7788,
363,
263,
2183,
7882,
28646,
322,
3639,
13,
4706,
967,
29915,
3990,
800,
29889,
13,
4706,
512,
3153,
29892,
278,
421,
10314,
1178,
1673,
421,
10314,
1158,
29952,
13,
4706,
322,
421,
10314,
2224,
29952,
13,
4706,
9995,
13,
4706,
396,
6699,
7882,
7788,
13,
4706,
7788,
353,
24492,
3919,
29918,
29954,
3040,
12982,
29979,
29889,
657,
29918,
13237,
29898,
13,
9651,
1791,
11713,
1204,
29922,
5060,
29918,
2754,
29918,
333,
29892,
13,
4706,
1723,
13,
4706,
3990,
800,
353,
5159,
13,
4706,
396,
29370,
599,
278,
7788,
13,
4706,
363,
6503,
297,
7788,
1839,
7076,
2033,
29901,
13,
9651,
396,
591,
526,
871,
8852,
297,
376,
10314,
3519,
29908,
13,
9651,
565,
376,
10314,
26112,
29908,
451,
297,
6503,
29889,
8149,
7295,
13,
18884,
6773,
13,
9651,
6503,
29918,
23515,
353,
6503,
3366,
10314,
26112,
16862,
8149,
580,
13,
9651,
363,
6503,
29918,
5696,
297,
6503,
29918,
23515,
29901,
13,
18884,
3990,
800,
29889,
4397,
29898,
13,
462,
1678,
903,
1177,
4330,
14345,
8098,
29898,
13,
462,
4706,
1791,
29918,
2754,
29918,
333,
29892,
13,
462,
4706,
6503,
3366,
333,
12436,
13,
462,
4706,
6503,
29918,
5696,
29892,
13,
462,
4706,
6503,
3366,
2084,
3108,
876,
13,
4706,
736,
3990,
800,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
903,
465,
6967,
29898,
12803,
29892,
3990,
800,
1125,
13,
4706,
9995,
13,
4706,
6162,
546,
740,
266,
29874,
4145,
1475,
848,
29889,
13,
4706,
9995,
13,
4706,
3095,
361,
1983,
353,
5159,
13,
4706,
363,
13465,
297,
3990,
800,
29901,
13,
9651,
679,
29918,
27925,
29918,
690,
353,
24492,
3919,
29918,
29954,
3040,
12982,
29979,
29889,
657,
29918,
27925,
29898,
13,
18884,
1791,
11713,
1204,
29922,
27925,
29889,
5060,
29918,
2754,
29918,
333,
29892,
13,
18884,
6503,
1204,
29922,
27925,
29889,
10314,
29918,
333,
29892,
13,
18884,
1732,
4062,
29922,
27925,
29889,
1124,
29918,
5696,
13,
9651,
1723,
13,
9651,
396,
591,
526,
871,
8852,
472,
15540,
29918,
8618,
18454,
3990,
800,
408,
1906,
13,
9651,
396,
526,
3990,
800,
393,
526,
2825,
491,
1923,
2222,
6890,
13,
9651,
565,
679,
29918,
27925,
29918,
690,
3366,
1853,
3108,
2804,
376,
29909,
7811,
29918,
8618,
18454,
1115,
13,
18884,
6773,
13,
13,
9651,
740,
29918,
978,
29892,
2752,
29918,
2753,
353,
341,
23239,
3032,
1958,
29918,
9144,
29898,
13,
18884,
13465,
29889,
5060,
29918,
2754,
29918,
333,
29892,
13,
18884,
5120,
29892,
13,
18884,
13465,
29889,
1124,
29918,
5696,
29892,
13,
18884,
13465,
29889,
2084,
29892,
13,
18884,
679,
29918,
27925,
29918,
690,
3366,
5338,
3108,
13,
9651,
1723,
13,
13,
9651,
14430,
2129,
353,
341,
23239,
3032,
1958,
29918,
2606,
2129,
29898,
2220,
29918,
978,
29897,
13,
9651,
3095,
361,
1983,
29889,
4397,
29898,
13,
18884,
903,
8787,
29943,
3059,
29898,
13,
462,
1678,
13465,
29889,
5060,
29918,
2754,
29918,
333,
29892,
13,
462,
1678,
13465,
29889,
10314,
29918,
333,
29892,
13,
462,
1678,
13465,
29889,
1124,
29918,
5696,
29892,
13,
462,
1678,
679,
29918,
27925,
29918,
690,
3366,
5338,
12436,
13,
462,
1678,
13465,
29889,
2084,
29892,
13,
462,
1678,
740,
29918,
978,
29892,
13,
462,
1678,
2752,
29918,
2753,
29892,
13,
462,
1678,
14430,
2129,
13,
18884,
1723,
13,
9651,
1723,
13,
4706,
736,
3095,
361,
1983,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
1065,
29898,
5060,
29918,
2754,
29918,
333,
29892,
5120,
1125,
13,
4706,
9995,
13,
4706,
402,
1691,
278,
3990,
800,
310,
263,
2183,
7882,
28646,
322,
623,
1975,
13,
4706,
2472,
304,
963,
9423,
465,
6967,
29897,
13,
4706,
9995,
13,
4706,
3990,
800,
353,
341,
23239,
3032,
657,
29918,
14146,
800,
29898,
5060,
29918,
2754,
29918,
333,
29897,
13,
4706,
3095,
361,
1983,
353,
341,
23239,
3032,
465,
6967,
29898,
12803,
29892,
3990,
800,
29897,
13,
4706,
736,
3095,
361,
1983,
13,
13,
1753,
903,
1202,
29918,
16074,
29898,
2754,
29918,
9144,
29892,
7408,
29918,
978,
1125,
13,
1678,
9995,
13,
1678,
3462,
421,
2892,
29901,
20731,
6678,
29952,
10751,
304,
385,
313,
2606,
1463,
29897,
14013,
740,
13,
1678,
393,
338,
281,
2859,
304,
385,
7882,
28646,
29889,
13,
1678,
9995,
13,
1678,
1018,
29901,
13,
4706,
24492,
3919,
29918,
4375,
9486,
7698,
29889,
1202,
29918,
16074,
29898,
13,
9651,
6680,
1170,
10724,
29900,
6177,
29912,
29896,
29913,
1642,
4830,
29898,
2754,
29918,
9144,
29889,
2220,
29918,
978,
29892,
7408,
29918,
978,
511,
13,
9651,
6666,
882,
1204,
29922,
19713,
13780,
29918,
1367,
29892,
13,
9651,
9123,
2433,
2892,
29901,
20731,
6678,
742,
13,
9651,
14771,
7830,
2433,
481,
335,
403,
1582,
29889,
17260,
10467,
29889,
510,
742,
13,
9651,
7562,
1433,
29876,
29922,
2754,
29918,
9144,
29889,
4993,
29918,
2753,
29892,
13,
4706,
1723,
13,
1678,
5174,
24492,
3919,
29918,
4375,
9486,
7698,
29889,
11739,
29879,
29889,
6848,
16376,
29176,
2451,
408,
4589,
29901,
13,
4706,
1059,
29918,
7645,
353,
426,
13,
9651,
376,
11739,
1115,
376,
27205,
3919,
29918,
4375,
9486,
7698,
29889,
11739,
29879,
29889,
6848,
16376,
29176,
2451,
613,
13,
9651,
376,
9144,
1115,
7882,
29918,
9144,
29892,
13,
9651,
376,
2704,
1115,
4589,
13,
4706,
500,
13,
4706,
1596,
29898,
3126,
29889,
29881,
17204,
29898,
2704,
29918,
7645,
29892,
29536,
29922,
29946,
876,
13,
1678,
5174,
8960,
408,
429,
29901,
13,
4706,
1596,
29898,
735,
29897,
13,
13,
1753,
903,
4381,
29918,
19973,
29918,
275,
29918,
23959,
29898,
9144,
29918,
2606,
2129,
29892,
2322,
29918,
19973,
29918,
978,
1125,
13,
1678,
9995,
13,
1678,
5399,
29879,
565,
278,
421,
4381,
13995,
29952,
338,
760,
310,
263,
1051,
310,
14430,
2129,
13,
1678,
9995,
13,
1678,
363,
13995,
297,
7876,
29918,
2606,
2129,
29901,
13,
4706,
565,
13995,
3366,
1170,
3108,
1275,
2322,
29918,
19973,
29918,
978,
29901,
13,
9651,
736,
5852,
13,
1678,
736,
7700,
13,
13,
1753,
903,
3258,
29918,
19973,
29898,
2220,
29918,
978,
29892,
13995,
29918,
978,
29892,
740,
29918,
3259,
1125,
13,
1678,
9995,
13,
1678,
6760,
1078,
385,
13995,
322,
3291,
304,
263,
2702,
1873,
310,
263,
13,
1678,
313,
2892,
29897,
740,
29889,
13,
1678,
9995,
13,
1678,
24492,
3919,
29918,
4375,
9486,
7698,
29889,
3258,
29918,
19973,
29898,
13,
4706,
6680,
1170,
29922,
2220,
29918,
978,
29892,
13,
4706,
4408,
29922,
19973,
29918,
978,
29892,
13,
4706,
6680,
6594,
29922,
2220,
29918,
3259,
13,
1678,
1723,
13,
13,
1753,
903,
27925,
29918,
5338,
29918,
275,
29918,
284,
2040,
29918,
21402,
29898,
5338,
1125,
13,
1678,
9995,
13,
1678,
319,
15662,
21333,
723,
1106,
763,
445,
29901,
13,
1678,
564,
29876,
29901,
10467,
29901,
481,
335,
403,
1582,
26254,
29900,
6177,
2892,
29901,
2084,
29914,
29906,
29900,
29896,
29945,
29899,
29900,
29941,
29899,
29941,
29896,
29914,
12171,
29914,
2753,
29901,
10467,
29901,
2892,
26254,
29900,
6177,
29912,
29896,
6177,
2220,
26254,
29906,
6822,
11569,
542,
800,
13,
1678,
426,
29900,
6177,
5120,
13,
1678,
426,
29896,
6177,
3633,
1178,
13,
1678,
426,
29906,
6177,
740,
1024,
13,
13,
1678,
8741,
310,
263,
740,
1024,
29901,
13,
4706,
22172,
14058,
13,
13,
1678,
1334,
2050,
263,
21333,
13465,
304,
367,
421,
21402,
29952,
746,
278,
740,
1024,
338,
1316,
29901,
13,
4706,
22172,
14058,
29901,
5303,
19190,
10444,
1849,
29889,
2892,
29909,
18849,
29913,
13,
13,
1678,
910,
5662,
1973,
393,
871,
263,
2702,
13995,
313,
12711,
1079,
263,
2702,
22822,
1873,
29897,
508,
367,
2000,
363,
13,
1678,
263,
313,
2892,
29897,
740,
29889,
13,
1678,
9995,
13,
1678,
2437,
10610,
29918,
710,
353,
5591,
11569,
542,
800,
29908,
13,
1678,
21333,
29918,
12254,
29918,
11569,
10610,
29918,
710,
353,
21333,
7503,
29899,
2435,
29898,
11569,
10610,
29918,
710,
4638,
13,
1678,
338,
29918,
284,
2040,
29918,
21402,
353,
21333,
29918,
12254,
29918,
11569,
10610,
29918,
710,
14352,
2435,
29898,
1177,
4330,
14345,
8098,
29918,
15551,
29918,
20576,
1430,
8032,
1125,
29962,
1275,
2672,
4330,
14345,
8098,
29918,
15551,
29918,
20576,
1430,
8032,
13,
1678,
736,
338,
29918,
284,
2040,
29918,
21402,
29892,
2437,
10610,
29918,
710,
29892,
21333,
29918,
12254,
29918,
11569,
10610,
29918,
710,
13,
13,
1753,
903,
657,
29918,
5509,
29918,
3166,
29918,
2084,
29898,
2084,
1125,
13,
1678,
9995,
13,
1678,
18981,
10898,
526,
2498,
2560,
23942,
1316,
408,
29901,
13,
4706,
847,
17492,
28667,
29914,
657,
29950,
1709,
25733,
2059,
16885,
13,
4706,
847,
1491,
22371,
29914,
4530,
3373,
13,
4706,
847,
1491,
22371,
29914,
19496,
16616,
20334,
13,
4706,
847,
13509,
29914,
2798,
2722,
13,
4706,
847,
1491,
22371,
29914,
7507,
13,
4706,
847,
1491,
22371,
29914,
26897,
10140,
3373,
13,
4706,
847,
13509,
29914,
2798,
2722,
19248,
17630,
29906,
29913,
13,
1678,
910,
3763,
6597,
278,
937,
8424,
310,
1347,
393,
338,
1546,
847,
847,
13,
1678,
9995,
13,
1678,
736,
337,
29889,
4478,
29898,
6304,
19059,
29918,
21482,
29918,
10145,
29918,
29925,
1299,
4945,
29940,
29892,
2224,
467,
2972,
29898,
29896,
29897,
13,
13,
1753,
903,
4039,
29918,
12663,
29918,
9933,
29898,
5060,
29918,
2754,
29918,
333,
29892,
2224,
29892,
1732,
29918,
5696,
1125,
13,
1678,
9995,
13,
1678,
5399,
29879,
565,
263,
2702,
6503,
2224,
29914,
5696,
756,
263,
421,
4039,
29952,
5106,
29889,
13,
1678,
9995,
13,
1678,
679,
29918,
12663,
29918,
20895,
29918,
690,
353,
24492,
3919,
29918,
29954,
3040,
12982,
29979,
29889,
657,
29918,
12663,
29918,
20895,
29898,
13,
4706,
1791,
11713,
1204,
29922,
5060,
29918,
2754,
29918,
333,
29892,
13,
4706,
1134,
543,
2303,
4690,
13668,
613,
13,
4706,
2224,
29922,
2084,
29892,
13,
1678,
1723,
13,
1678,
565,
451,
679,
29918,
12663,
29918,
20895,
29918,
690,
3366,
7076,
3108,
29901,
13,
4706,
736,
7700,
13,
1678,
363,
2944,
297,
679,
29918,
12663,
29918,
20895,
29918,
690,
3366,
7076,
3108,
29901,
13,
4706,
565,
2944,
3366,
5479,
3108,
3366,
5696,
3108,
1275,
1732,
29918,
5696,
29901,
13,
9651,
736,
5852,
13,
1678,
736,
7700,
13,
13,
1753,
903,
657,
29918,
9274,
5404,
29918,
15843,
29898,
15843,
1170,
1125,
13,
1678,
29586,
353,
24492,
3919,
29918,
29907,
3927,
29965,
4037,
12054,
8098,
29889,
1761,
29918,
26500,
580,
13,
1678,
565,
525,
1252,
4011,
29915,
451,
297,
29586,
29889,
8149,
7295,
13,
4706,
6876,
580,
13,
1678,
363,
5609,
297,
29586,
1839,
1252,
4011,
2033,
29901,
13,
4706,
565,
5609,
1839,
1170,
2033,
1275,
5609,
1170,
29901,
13,
9651,
736,
5609,
1839,
1917,
2033,
13,
1678,
6876,
580,
13,
13,
1753,
679,
29918,
16519,
287,
29918,
303,
1179,
29898,
5060,
29918,
2754,
29918,
333,
1125,
13,
1678,
9995,
13,
1678,
16969,
599,
278,
22950,
393,
526,
21168,
13,
1678,
9995,
13,
1678,
22950,
353,
5159,
13,
1678,
679,
29918,
303,
1179,
29918,
690,
353,
24492,
3919,
29918,
29954,
3040,
12982,
29979,
29889,
657,
29918,
303,
1179,
29898,
13,
4706,
1791,
11713,
1204,
29922,
5060,
29918,
2754,
29918,
333,
29892,
13,
1678,
1723,
13,
1678,
363,
679,
29918,
19190,
29918,
690,
297,
679,
29918,
303,
1179,
29918,
690,
3366,
667,
3108,
29901,
13,
4706,
22950,
29889,
4397,
29898,
657,
29918,
19190,
29918,
690,
3366,
19190,
1170,
20068,
13,
1678,
736,
22950,
13,
13,
1753,
1653,
29918,
19973,
29918,
4381,
29898,
2754,
29918,
29888,
1983,
29892,
2322,
29918,
19973,
29918,
978,
1125,
13,
1678,
9995,
13,
1678,
6760,
1078,
278,
577,
2000,
421,
4381,
13995,
29952,
607,
338,
925,
13,
1678,
385,
13995,
393,
3291,
304,
278,
9281,
1873,
310,
13,
1678,
313,
2892,
29897,
740,
29898,
29879,
467,
13,
1678,
9995,
13,
1678,
822,
1653,
29898,
2220,
29918,
978,
1125,
13,
4706,
736,
903,
3258,
29918,
19973,
29898,
2220,
29918,
978,
29892,
2322,
29918,
19973,
29918,
978,
29892,
3908,
29931,
3040,
1254,
1159,
13,
13,
1678,
363,
7882,
29918,
9144,
297,
7882,
29918,
29888,
1983,
29901,
13,
4706,
14430,
2129,
353,
7882,
29918,
9144,
29889,
2606,
2129,
13,
4706,
740,
29918,
978,
353,
7882,
29918,
9144,
29889,
2220,
29918,
978,
13,
4706,
565,
451,
14430,
2129,
29901,
13,
9651,
1653,
29898,
2220,
29918,
978,
29897,
13,
4706,
1683,
29901,
13,
9651,
2322,
29918,
275,
29918,
23959,
353,
903,
4381,
29918,
19973,
29918,
275,
29918,
23959,
29898,
2606,
2129,
29892,
2322,
29918,
19973,
29918,
978,
29897,
13,
9651,
565,
451,
2322,
29918,
275,
29918,
23959,
29901,
13,
18884,
1653,
29898,
2220,
29918,
978,
29897,
13,
13,
1753,
2767,
29918,
27925,
29918,
5338,
29898,
2754,
29918,
29888,
1983,
29892,
2322,
29918,
19973,
29918,
978,
1125,
13,
1678,
9995,
13,
1678,
1152,
1432,
313,
2892,
29897,
3168,
393,
526,
23387,
411,
13,
1678,
385,
7882,
28646,
448,
4784,
278,
21333,
13465,
1316,
393,
13,
1678,
278,
7882,
28646,
508,
871,
1246,
263,
2702,
1873,
310,
13,
1678,
1906,
313,
2892,
29897,
3168,
1549,
385,
13995,
29889,
13,
1678,
9995,
13,
1678,
363,
7882,
29918,
9144,
297,
7882,
29918,
29888,
1983,
29901,
13,
4706,
338,
29918,
284,
2040,
29918,
21402,
29892,
2437,
10610,
29918,
710,
29892,
21333,
29918,
12254,
29918,
11569,
10610,
29918,
710,
353,
903,
27925,
29918,
5338,
29918,
275,
29918,
284,
2040,
29918,
21402,
29898,
2754,
29918,
9144,
29889,
5338,
29897,
13,
4706,
565,
451,
338,
29918,
284,
2040,
29918,
21402,
29901,
13,
9651,
716,
29918,
5338,
353,
29850,
29900,
1157,
29896,
1157,
29906,
29913,
1642,
4830,
29898,
13,
18884,
21333,
29918,
12254,
29918,
11569,
10610,
29918,
710,
29892,
13,
18884,
2672,
4330,
14345,
8098,
29918,
15551,
29918,
20576,
1430,
8032,
29892,
13,
18884,
2437,
10610,
29918,
710,
13,
9651,
1723,
13,
9651,
24492,
3919,
29918,
29954,
3040,
12982,
29979,
29889,
5504,
29918,
27925,
29898,
13,
18884,
1791,
11713,
1204,
29922,
2754,
29918,
9144,
29889,
5060,
29918,
2754,
29918,
333,
29892,
13,
18884,
6503,
1204,
29922,
2754,
29918,
9144,
29889,
10314,
29918,
333,
29892,
13,
18884,
1732,
4062,
29922,
2754,
29918,
9144,
29889,
1124,
29918,
5696,
29892,
13,
18884,
13261,
7094,
800,
11759,
13,
462,
1678,
426,
13,
462,
4706,
525,
459,
2396,
525,
6506,
742,
13,
462,
4706,
525,
2084,
2396,
8207,
5338,
742,
13,
462,
4706,
525,
1767,
2396,
716,
29918,
5338,
29892,
13,
462,
1678,
2981,
13,
18884,
4514,
13,
9651,
1723,
13,
9651,
903,
1202,
29918,
16074,
29898,
2754,
29918,
9144,
29892,
2322,
29918,
19973,
29918,
978,
29897,
13,
13,
1753,
1653,
29918,
7247,
29918,
20698,
29918,
4381,
29898,
5060,
29918,
2754,
29918,
333,
29892,
5354,
29918,
978,
29892,
2322,
29918,
19973,
29918,
978,
1125,
13,
1678,
9995,
13,
1678,
6760,
1078,
278,
5354,
1024,
10417,
363,
278,
2322,
7408,
29889,
13,
1678,
9995,
13,
1678,
822,
1653,
7295,
13,
4706,
24492,
3919,
29918,
29954,
3040,
12982,
29979,
29889,
3258,
29918,
3188,
29918,
2084,
29918,
20698,
29898,
13,
9651,
5354,
1170,
29922,
7247,
29918,
978,
29892,
13,
9651,
2967,
2605,
29922,
4381,
29918,
19973,
29918,
978,
29892,
13,
9651,
1791,
11713,
1204,
29922,
5060,
29918,
2754,
29918,
333,
29892,
13,
9651,
7408,
29922,
4381,
29918,
19973,
29918,
978,
13,
4706,
1723,
13,
13,
1678,
679,
29918,
3188,
29918,
2084,
29918,
655,
27775,
29918,
690,
353,
24492,
3919,
29918,
29954,
3040,
12982,
29979,
29889,
657,
29918,
3188,
29918,
2084,
29918,
655,
27775,
29898,
13,
4706,
5354,
1170,
29922,
7247,
29918,
978,
29892,
13,
1678,
1723,
13,
1678,
611,
27775,
353,
679,
29918,
3188,
29918,
2084,
29918,
655,
27775,
29918,
690,
1839,
7076,
2033,
13,
13,
1678,
565,
451,
611,
27775,
29901,
13,
4706,
1653,
580,
13,
1678,
1683,
29901,
13,
4706,
2307,
29918,
655,
2986,
353,
7700,
13,
4706,
363,
10417,
297,
611,
27775,
29901,
13,
9651,
565,
10417,
3366,
3188,
2605,
3108,
1275,
2322,
29918,
19973,
29918,
978,
322,
10417,
3366,
19190,
3108,
1275,
2322,
29918,
19973,
29918,
978,
29901,
13,
18884,
2307,
29918,
655,
2986,
353,
5852,
13,
13,
4706,
565,
451,
2307,
29918,
655,
2986,
29901,
13,
9651,
1653,
580,
13,
13,
1753,
2322,
29918,
19190,
29918,
11516,
29918,
303,
4063,
29918,
11918,
29898,
5060,
29918,
2754,
29918,
333,
29892,
2322,
29918,
19973,
29918,
978,
1125,
13,
1678,
9995,
13,
1678,
5399,
29879,
565,
278,
2322,
7408,
3743,
278,
421,
19190,
2286,
13995,
1412,
13,
1678,
9995,
13,
1678,
679,
29918,
19190,
29918,
690,
353,
24492,
3919,
29918,
29954,
3040,
12982,
29979,
29889,
657,
29918,
19190,
29898,
13,
4706,
1791,
11713,
1204,
29922,
5060,
29918,
2754,
29918,
333,
29892,
13,
4706,
7408,
1170,
29922,
4381,
29918,
19973,
29918,
978,
13,
1678,
1723,
13,
1678,
565,
376,
20897,
29908,
451,
297,
679,
29918,
19190,
29918,
690,
29889,
8149,
7295,
13,
4706,
736,
7700,
13,
13,
1678,
7408,
29918,
20897,
353,
679,
29918,
19190,
29918,
690,
3366,
20897,
3108,
13,
1678,
565,
317,
6040,
1692,
29918,
26865,
29902,
6181,
29918,
1964,
29902,
3289,
451,
297,
7408,
29918,
20897,
29889,
8149,
7295,
13,
4706,
736,
7700,
13,
13,
1678,
565,
7408,
29918,
20897,
29961,
1254,
10461,
29918,
26865,
29902,
6181,
29918,
1964,
29902,
3289,
29962,
2804,
2322,
29918,
19973,
29918,
978,
29901,
13,
4706,
736,
7700,
13,
1678,
736,
5852,
13,
13,
1753,
1653,
29918,
4039,
29918,
12663,
29898,
5060,
29918,
2754,
29918,
333,
29892,
7882,
29918,
29888,
1983,
1125,
13,
1678,
9995,
13,
1678,
6760,
1078,
4055,
5106,
363,
263,
2183,
1051,
310,
3168,
29889,
13,
1678,
9995,
13,
1678,
363,
7882,
29918,
9144,
297,
7882,
29918,
29888,
1983,
29901,
13,
4706,
2224,
353,
7882,
29918,
9144,
29889,
2084,
13,
4706,
1732,
29918,
5696,
353,
7882,
29918,
9144,
29889,
1124,
29918,
5696,
13,
4706,
2307,
29918,
9933,
353,
903,
4039,
29918,
12663,
29918,
9933,
29898,
5060,
29918,
2754,
29918,
333,
29892,
2224,
29892,
1732,
29918,
5696,
29897,
13,
4706,
565,
451,
2307,
29918,
9933,
29901,
13,
9651,
2669,
29918,
978,
353,
903,
657,
29918,
5509,
29918,
3166,
29918,
2084,
29898,
2084,
29897,
13,
9651,
4055,
353,
426,
13,
18884,
376,
11338,
1115,
518,
13,
462,
1678,
2669,
29918,
978,
13,
18884,
4514,
13,
9651,
500,
13,
9651,
24492,
3919,
29918,
29954,
3040,
12982,
29979,
29889,
3258,
29918,
12663,
29918,
1595,
29898,
13,
18884,
1791,
11713,
1204,
29922,
5060,
29918,
2754,
29918,
333,
29892,
13,
18884,
4423,
3790,
13,
462,
1678,
376,
1853,
1115,
376,
2303,
4690,
13668,
613,
13,
462,
1678,
376,
2084,
1115,
2224,
29892,
13,
462,
1678,
376,
5696,
1115,
1732,
29918,
5696,
13,
18884,
2981,
13,
18884,
4426,
29922,
3126,
29889,
29881,
17204,
29898,
4039,
511,
13,
9651,
1723,
13,
13,
1753,
1065,
29918,
7045,
29918,
4381,
29918,
16519,
358,
29898,
5060,
29918,
2754,
29918,
333,
29892,
5120,
29892,
2322,
29918,
19973,
29918,
978,
29892,
5354,
29918,
978,
29922,
8516,
1125,
13,
1678,
9995,
13,
1678,
14213,
1711,
825,
366,
723,
817,
304,
1065,
1156,
263,
13,
1678,
421,
2974,
2222,
7246,
29952,
18209,
29889,
13,
1678,
910,
5662,
1973,
393,
1432,
740,
3990,
800,
29915,
526,
1316,
393,
13,
1678,
278,
7882,
28646,
508,
871,
1246,
263,
2702,
1873,
310,
738,
13,
1678,
14013,
3168,
3025,
385,
13995,
29892,
773,
263,
7408,
2286,
29889,
13,
1678,
9995,
13,
1678,
7882,
29918,
29888,
1983,
353,
341,
23239,
29889,
3389,
29898,
5060,
29918,
2754,
29918,
333,
29892,
5120,
29897,
13,
1678,
1653,
29918,
19973,
29918,
4381,
29898,
2754,
29918,
29888,
1983,
29892,
2322,
29918,
19973,
29918,
978,
29897,
13,
1678,
2767,
29918,
27925,
29918,
5338,
29898,
2754,
29918,
29888,
1983,
29892,
2322,
29918,
19973,
29918,
978,
29897,
13,
13,
1678,
565,
5354,
29918,
978,
338,
451,
6213,
29901,
13,
4706,
1653,
29918,
7247,
29918,
20698,
29918,
4381,
29898,
5060,
29918,
2754,
29918,
333,
29892,
5354,
29918,
978,
29892,
2322,
29918,
19973,
29918,
978,
29897,
13,
1678,
396,
1653,
29918,
4039,
29918,
12663,
29898,
5060,
29918,
2754,
29918,
333,
29892,
7882,
29918,
29888,
1983,
29897,
13,
13,
1678,
3743,
29918,
19190,
29918,
1707,
353,
2322,
29918,
19190,
29918,
11516,
29918,
303,
4063,
29918,
11918,
29898,
5060,
29918,
2754,
29918,
333,
29892,
2322,
29918,
19973,
29918,
978,
29897,
13,
1678,
565,
451,
3743,
29918,
19190,
29918,
1707,
29901,
13,
4706,
1596,
877,
4907,
13,
29925,
14063,
27827,
6093,
18322,
2208,
9806,
4214,
317,
6040,
1692,
478,
1718,
29902,
6181,
7495,
518,
1254,
10461,
29901,
426,
29900,
29913,
5387,
13,
1678,
426,
29896,
29913,
584,
426,
29906,
29913,
13,
4907,
4286,
4830,
29898,
4381,
29918,
19973,
29918,
978,
29892,
317,
6040,
1692,
29918,
26865,
29902,
6181,
29918,
1964,
29902,
3289,
29892,
2322,
29918,
19973,
29918,
978,
876,
13,
13,
1753,
3889,
911,
29918,
12171,
29898,
2754,
29918,
29888,
1983,
29892,
7408,
29918,
978,
1125,
13,
1678,
9995,
13,
1678,
6760,
1078,
385,
13995,
313,
5747,
29915,
29879,
278,
1347,
363,
421,
19190,
29918,
978,
6348,
13,
1678,
363,
263,
2183,
1051,
310,
3168,
29889,
13,
1678,
9995,
13,
1678,
363,
7882,
29918,
9144,
297,
7882,
29918,
29888,
1983,
29901,
13,
4706,
740,
29918,
978,
353,
7882,
29918,
9144,
29889,
2220,
29918,
978,
13,
4706,
9805,
29918,
3259,
29918,
690,
353,
24492,
3919,
29918,
4375,
9486,
7698,
29889,
23679,
29918,
3259,
29898,
6678,
1170,
29922,
2220,
29918,
978,
29897,
13,
13,
4706,
1018,
29901,
13,
9651,
24492,
3919,
29918,
4375,
9486,
7698,
29889,
3258,
29918,
19973,
29898,
13,
18884,
6680,
1170,
29922,
2220,
29918,
978,
29892,
13,
18884,
4408,
29922,
19190,
29918,
978,
29892,
13,
18884,
6680,
6594,
29922,
23679,
29918,
3259,
29918,
690,
3366,
6594,
3108,
13,
9651,
1723,
13,
9651,
903,
1202,
29918,
16074,
29898,
2754,
29918,
9144,
29892,
7408,
29918,
978,
29897,
13,
4706,
5174,
8960,
408,
429,
29901,
13,
9651,
1596,
703,
29961,
29956,
25614,
29962,
1059,
1550,
3889,
19583,
740,
515,
2752,
564,
29876,
29901,
426,
29900,
29913,
1642,
4830,
29898,
2754,
29918,
9144,
29889,
4993,
29918,
2753,
876,
13,
9651,
1596,
703,
2287,
6040,
6227,
29903,
29901,
426,
29900,
29913,
1642,
4830,
29898,
735,
876,
13,
13,
1753,
7246,
29898,
5060,
29918,
2754,
29918,
333,
29892,
5120,
29892,
1873,
29892,
7408,
29918,
8216,
29892,
5354,
29918,
978,
29922,
8516,
1125,
13,
1678,
9995,
13,
1678,
10034,
417,
952,
263,
7408,
304,
385,
7882,
28646,
29889,
13,
1678,
450,
5023,
310,
421,
16519,
29952,
1244,
338,
29901,
13,
4706,
448,
2125,
599,
7788,
310,
385,
7882,
28646,
313,
386,
852,
526,
14013,
3168,
472,
278,
7136,
29897,
13,
4706,
448,
278,
13465,
310,
1906,
14013,
3168,
526,
12023,
304,
505,
1063,
9120,
13,
3986,
1316,
393,
871,
2702,
1873,
13,
4706,
448,
421,
9021,
911,
29952,
1906,
3168,
322,
1653,
385,
13995,
393,
3291,
304,
1906,
14671,
2256,
6910,
13,
4706,
448,
10017,
263,
716,
7408,
1090,
278,
7882,
28646,
322,
9801,
393,
380,
4063,
1873,
5717,
871,
13,
3986,
1906,
9251,
14671,
2256,
3168,
13,
1678,
9995,
13,
1678,
396,
9801,
1873,
4477,
28837,
1873,
292,
3918,
13,
1678,
565,
451,
337,
29889,
4352,
14182,
29881,
3124,
7790,
29881,
3124,
7790,
29881,
29974,
613,
1873,
1125,
13,
4706,
6876,
703,
29912,
29900,
29913,
11662,
2890,
6058,
18322,
2208,
9806,
3725,
1529,
20321,
2965,
478,
1001,
13381,
4214,
29889,
18322,
2208,
9806,
3725,
1529,
20321,
2965,
478,
1001,
13381,
4214,
29991,
1642,
4830,
29898,
3259,
876,
13,
13,
1678,
396,
9801,
393,
1873,
471,
451,
2307,
21168,
13,
1678,
7408,
29918,
978,
353,
1873,
29889,
6506,
17350,
613,
11663,
1159,
13,
1678,
22950,
353,
679,
29918,
16519,
287,
29918,
303,
1179,
29898,
5060,
29918,
2754,
29918,
333,
29897,
13,
1678,
565,
7408,
29918,
978,
297,
22950,
29901,
13,
4706,
6876,
703,
29979,
27269,
14445,
16310,
29979,
5012,
29925,
3927,
29979,
3352,
426,
29900,
29913,
1642,
4830,
29898,
3259,
876,
13,
13,
1678,
396,
23892,
3168,
29915,
5235,
322,
3889,
911,
963,
13,
1678,
7882,
29918,
29888,
1983,
353,
341,
23239,
29889,
3389,
29898,
5060,
29918,
2754,
29918,
333,
29892,
5120,
29897,
13,
1678,
3889,
911,
29918,
12171,
29898,
2754,
29918,
29888,
1983,
29892,
7408,
29918,
978,
29897,
13,
13,
1678,
396,
7246,
14671,
2256,
3168,
13,
1678,
24492,
3919,
29918,
29954,
3040,
12982,
29979,
29889,
3258,
29918,
16519,
358,
29898,
13,
4706,
1791,
11713,
1204,
29922,
5060,
29918,
2754,
29918,
333,
29892,
13,
4706,
7408,
1170,
29922,
19190,
29918,
978,
29892,
13,
4706,
7408,
9868,
29922,
19190,
29918,
8216,
29892,
13,
4706,
6139,
29922,
19190,
29918,
8216,
29892,
13,
4706,
3651,
3790,
13,
9651,
29850,
29900,
29913,
1642,
4830,
29898,
1254,
10461,
29918,
26865,
29902,
6181,
29918,
1964,
29902,
3289,
1125,
7408,
29918,
978,
13,
4706,
2981,
13,
1678,
1723,
13,
13,
1678,
396,
2910,
304,
5354,
13,
1678,
565,
5354,
29918,
978,
338,
451,
6213,
29901,
13,
4706,
24492,
3919,
29918,
29954,
3040,
12982,
29979,
29889,
3258,
29918,
3188,
29918,
2084,
29918,
20698,
29898,
13,
9651,
5354,
1170,
29922,
7247,
29918,
978,
29892,
13,
9651,
2967,
2605,
29922,
19190,
29918,
978,
29889,
6506,
703,
29899,
613,
376,
1213,
511,
13,
9651,
1791,
11713,
1204,
29922,
5060,
29918,
2754,
29918,
333,
29892,
13,
9651,
7408,
29922,
19190,
29918,
978,
13,
4706,
1723,
13,
13,
1753,
337,
29918,
16519,
29898,
5060,
29918,
2754,
29918,
333,
29892,
5120,
29892,
1873,
29892,
7408,
29918,
8216,
1125,
13,
1678,
9995,
13,
1678,
10034,
417,
952,
263,
7408,
304,
385,
7882,
28646,
29889,
13,
1678,
450,
5023,
310,
421,
16519,
29952,
1244,
338,
29901,
13,
4706,
448,
2125,
599,
7788,
310,
385,
7882,
28646,
313,
386,
852,
526,
14013,
3168,
472,
278,
7136,
29897,
13,
4706,
448,
278,
13465,
310,
1906,
14013,
3168,
526,
12023,
304,
505,
1063,
9120,
13,
3986,
1316,
393,
871,
2702,
1873,
13,
4706,
448,
421,
9021,
911,
29952,
1906,
3168,
322,
1653,
385,
13995,
393,
3291,
304,
1906,
14671,
2256,
6910,
13,
4706,
448,
10017,
263,
716,
7408,
1090,
278,
7882,
28646,
322,
9801,
393,
380,
4063,
1873,
5717,
871,
13,
3986,
1906,
9251,
14671,
2256,
3168,
13,
1678,
9995,
13,
1678,
396,
396,
9801,
393,
1873,
471,
451,
2307,
21168,
13,
1678,
7408,
29918,
978,
353,
1873,
29889,
6506,
17350,
613,
11663,
1159,
13,
1678,
22950,
353,
679,
29918,
16519,
287,
29918,
303,
1179,
29898,
5060,
29918,
2754,
29918,
333,
29897,
13,
1678,
565,
7408,
29918,
978,
451,
297,
22950,
29901,
13,
4706,
6876,
703,
29979,
27269,
379,
7520,
29923,
14693,
5348,
5012,
29925,
3927,
29979,
3352,
426,
29900,
29913,
1642,
4830,
29898,
3259,
876,
13,
13,
1678,
396,
7246,
14671,
2256,
3168,
13,
1678,
24492,
3919,
29918,
29954,
3040,
12982,
29979,
29889,
3258,
29918,
16519,
358,
29898,
13,
4706,
1791,
11713,
1204,
29922,
5060,
29918,
2754,
29918,
333,
29892,
13,
4706,
7408,
1170,
29922,
19190,
29918,
978,
29892,
13,
4706,
7408,
9868,
29922,
19190,
29918,
8216,
29892,
13,
4706,
6139,
29922,
19190,
29918,
8216,
29892,
13,
4706,
3651,
3790,
13,
9651,
29850,
29900,
29913,
1642,
4830,
29898,
1254,
10461,
29918,
26865,
29902,
6181,
29918,
1964,
29902,
3289,
1125,
7408,
29918,
978,
13,
4706,
2981,
13,
1678,
1723,
13,
13,
13,
13,
2
] |
data/Human36M/skeleton.py | GuillaumeRochette/HumanViewSynthesis | 10 | 148374 | JOINTS = {
"HipCenter": 0,
"RHip": 1,
"RKnee": 2,
"RFoot": 3,
"LHip": 4,
"LKnee": 5,
"LFoot": 6,
"Spine": 7,
"Thorax": 8,
"Neck/Nose": 9,
"Head": 10,
"LShoulder": 11,
"LElbow": 12,
"LWrist": 13,
"RShoulder": 14,
"RElbow": 15,
"RWrist": 16,
}
EDGES = (
(0, 1),
(1, 2),
(2, 3),
(0, 4),
(4, 5),
(5, 6),
(0, 7),
(7, 8),
(8, 9),
(9, 10),
(8, 11),
(11, 12),
(12, 13),
(8, 14),
(14, 15),
(15, 16),
)
| [
1,
8780,
9375,
353,
426,
13,
1678,
376,
29950,
666,
13409,
1115,
29871,
29900,
29892,
13,
1678,
376,
29934,
29950,
666,
1115,
29871,
29896,
29892,
13,
1678,
376,
29934,
29968,
484,
29872,
1115,
29871,
29906,
29892,
13,
1678,
376,
29934,
13440,
1115,
29871,
29941,
29892,
13,
1678,
376,
29931,
29950,
666,
1115,
29871,
29946,
29892,
13,
1678,
376,
29931,
29968,
484,
29872,
1115,
29871,
29945,
29892,
13,
1678,
376,
29931,
13440,
1115,
29871,
29953,
29892,
13,
1678,
376,
5592,
457,
1115,
29871,
29955,
29892,
13,
1678,
376,
1349,
272,
1165,
1115,
29871,
29947,
29892,
13,
1678,
376,
8139,
384,
29914,
29940,
852,
1115,
29871,
29929,
29892,
13,
1678,
376,
5494,
1115,
29871,
29896,
29900,
29892,
13,
1678,
376,
29931,
26857,
261,
1115,
29871,
29896,
29896,
29892,
13,
1678,
376,
1307,
29880,
17729,
1115,
29871,
29896,
29906,
29892,
13,
1678,
376,
29931,
29956,
2021,
1115,
29871,
29896,
29941,
29892,
13,
1678,
376,
29934,
26857,
261,
1115,
29871,
29896,
29946,
29892,
13,
1678,
376,
1525,
29880,
17729,
1115,
29871,
29896,
29945,
29892,
13,
1678,
376,
29934,
29956,
2021,
1115,
29871,
29896,
29953,
29892,
13,
29913,
13,
13,
3352,
1692,
29903,
353,
313,
13,
1678,
313,
29900,
29892,
29871,
29896,
511,
13,
1678,
313,
29896,
29892,
29871,
29906,
511,
13,
1678,
313,
29906,
29892,
29871,
29941,
511,
13,
1678,
313,
29900,
29892,
29871,
29946,
511,
13,
1678,
313,
29946,
29892,
29871,
29945,
511,
13,
1678,
313,
29945,
29892,
29871,
29953,
511,
13,
1678,
313,
29900,
29892,
29871,
29955,
511,
13,
1678,
313,
29955,
29892,
29871,
29947,
511,
13,
1678,
313,
29947,
29892,
29871,
29929,
511,
13,
1678,
313,
29929,
29892,
29871,
29896,
29900,
511,
13,
1678,
313,
29947,
29892,
29871,
29896,
29896,
511,
13,
1678,
313,
29896,
29896,
29892,
29871,
29896,
29906,
511,
13,
1678,
313,
29896,
29906,
29892,
29871,
29896,
29941,
511,
13,
1678,
313,
29947,
29892,
29871,
29896,
29946,
511,
13,
1678,
313,
29896,
29946,
29892,
29871,
29896,
29945,
511,
13,
1678,
313,
29896,
29945,
29892,
29871,
29896,
29953,
511,
13,
29897,
13,
2
] |
img_main.py | liujiyuan13/MvDOCC-code | 1 | 75573 | import numpy as np
import scipy.io as scio
import scipy.sparse as scsp
import h5py as hp
from util import read_mymat73, read_mymat, build_img_dataset, process_ad_dataset, mv_dataset, mv_tabular_collate, AverageMeter, save_roc_pr_curve_data, get_all_labels, \
load_print_results, filter_nan_grad, read_dataset, build_vad_dataset, ss_dataset, ss_tabular_collate, simple_accuracy, get_large_class, ss_goad_dataset
from models.encoder_decoder import mvae_ad, late_fusion, mvenc, mvae_fused, splitAE, mv_corrAE, classifier, tc_loss_func, mvae_ss, mvenc_fuse, mvae_tf, similarity_hinge_loss
from models.DeepCCAModels import DeepCCA, cca_loss, gcca, cca
from models.DBN import mv_DBN
from torch.utils.data import DataLoader
from torch.nn import MSELoss, CrossEntropyLoss
from torch import optim
from tensorboardX import SummaryWriter
from tqdm import tqdm
import torch
import random
from img_config import epochs_set, layer_size_set, \
batch_size_set_mvae, lr_set_mvae, wd_set_mvae, \
batch_size_set_dcca, lr_set_dcca, wd_set_dcca, alpha_set_dcca, \
batch_size_set_dsvdd, lr_set_dsvdd, wd_set_dsvdd, \
batch_size_set_fused, lr_set_fused, wd_set_fused, pt_epochs_set, \
batch_size_set_split, lr_set_split, wd_set_split, \
batch_size_set_tf, lr_set_tf, wd_set_tf, r_set_tf, \
batch_size_set_corr, lr_set_corr, wd_set_corr, alpha_set_corr, \
batch_size_set_sim, lr_set_sim, wd_set_sim, alpha_set_sim, m_set_sim, \
batch_size_set_dgcca, lr_set_dgcca, wd_set_dgcca, alpha_set_dgcca, \
batch_size_set_dbn, lr_set_dbn, wd_set_dbn
import os
from transformations import get_rp_num, trans_mv_data_new
def get_radius(dist: torch.Tensor, nu: float):
"""Optimally solve for radius R via the (1-nu)-quantile of distances."""
return np.quantile(np.sqrt(dist.clone().data.cpu().numpy()), 1 - nu)
# Baselines:
def simple_mvae(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path, device, qualified_Y, ADdataset_mode='minority'):
torch.set_default_tensor_type(torch.DoubleTensor)
roc_results = [[] for i in range(repeat_times)]
pr_anom_results = [[] for i in range(repeat_times)]
pr_norm_results = [[] for i in range(repeat_times)]
tnr_results = [[] for i in range(repeat_times)]
single_best_roc_results = [[] for i in range(repeat_times)]
single_best_pr_anom_results = [[] for i in range(repeat_times)]
single_best_pr_norm_results = [[] for i in range(repeat_times)]
single_best_tnr_results = [[] for i in range(repeat_times)]
# training config
layer_size = layer_size_set[dataset_name]
batch_size = batch_size_set_mvae[dataset_name]
lr = lr_set_mvae[dataset_name]
wd = wd_set_mvae[dataset_name]
print('layer_size: {}, batch size: {}, lr: {}, wd:{}'.format(layer_size, batch_size, lr, wd))
loss_func = MSELoss()
input_size_set = [x.shape[0] for x in X]
for t in range(repeat_times):
print('The {}-th run begins!'.format(t))
for i in range(min([10, len(qualified_Y)])):
partition, Y_test = build_img_dataset(dataset_name, Y, neg_class_id=qualified_Y[i], mode=ADdataset_mode)
X_train, X_test = process_ad_dataset(X, partition)
# -----------------------------------------model training
seed = 0
if torch.cuda.is_available():
torch.cuda.manual_seed_all(seed)
torch.manual_seed(seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = True
model = mvae_ad(input_size_set=input_size_set, layer_sizes=layer_size).to(device).double()
trainloader = DataLoader(dataset=mv_dataset(X_train), batch_size=batch_size, shuffle=True, num_workers=1, collate_fn=mv_tabular_collate)
# specific training procedure
epochs = epochs_set[dataset_name]
print(max(epochs))
losses_set = [AverageMeter() for i in range(len(X_train))]
optimizer = [optim.Adam(model.ae_set[i].parameters(), lr=lr, weight_decay=wd) for i in range(len(X_train))]
# writer = SummaryWriter()
model.train()
cout = 0
for epoch in range(max(epochs)):
trainloader = tqdm(trainloader)
if ADdataset_mode is 'majority':
trainloader.set_description('mvae, epoch{}, abnormal class{}'.format(epoch, qualified_Y[i]))
else:
trainloader.set_description('mvae, epoch{}, normal class{}'.format(epoch, qualified_Y[i]))
for idx, batch in enumerate(trainloader):
postfix = ''
if batch[0].size(0) > 1: # for bn, batchsize > 1
batch = [batch[i].to(device) for i in range(len(batch))]
outputs_set = model(batch)
for view in range(len(X_train)):
if epoch < epochs[view]:
y = batch[view]
loss = loss_func(outputs_set[view], y)
optimizer[view].zero_grad()
loss.backward()
optimizer[view].step()
losses_set[view].update(loss.item(), batch[0].size(0))
cur_postfix = ' view{}, rec_loss: {:.4f} '.format(view, losses_set[view].avg)
# writer.add_scalar('runs/{}_loss_clasId_{}_view_{}'.format(dataset_name, y_set[i], view), loss.item(), cout)
postfix += cur_postfix
cout += 1
trainloader.set_postfix(log=postfix)
# writer.close()
# del writer
# # ----------------------------------------model testing
testloader = DataLoader(dataset=mv_dataset(X_test), batch_size=batch_size, shuffle=False, num_workers=1, collate_fn=mv_tabular_collate)
scores = [[] for ss in range(len(X_test))]
with torch.no_grad():
model.eval()
for idx, batch in enumerate(tqdm(testloader)):
batch = [batch[i].to(device) for i in range(len(batch))]
cur_batch_scores = model.get_ad_scores(batch)
for ss in range(len(X_test)):
scores[ss].append(cur_batch_scores[ss])
scores = [torch.cat(scores[ss], dim=0) for ss in range(len(X_test))]
# To find a single-best model
scores_set = torch.cat(scores, dim=-1)
single_best_roc = 0
single_best_pr_norm = 0
single_best_pr_anom = 0
for i in range(scores_set.shape[-1]):
cur_view_scores = scores_set[:, i].cpu().detach().numpy()
cur_roc, cur_pr_anom, cur_pr_norm, cur_tnr = save_roc_pr_curve_data(scores=cur_view_scores, labels=Y_test, file_path=None, verbose=False)
if cur_roc > single_best_roc:
single_best_roc = cur_roc
single_best_pr_anom = cur_pr_anom
single_best_pr_norm = cur_pr_norm
single_best_tnr = cur_tnr
single_best_roc_results[t].append(single_best_roc)
single_best_pr_norm_results[t].append(single_best_pr_norm)
single_best_pr_anom_results[t].append(single_best_pr_anom)
single_best_tnr_results[t].append(single_best_tnr)
scores = late_fusion(scores, merge='avg')
# ----------------------------------------model eval
roc, pr_anom, pr_norm, tnr = save_roc_pr_curve_data(scores=scores, labels=Y_test, file_path=None, verbose=False)
roc_results[t].append(roc)
pr_anom_results[t].append(pr_anom)
pr_norm_results[t].append(pr_norm)
tnr_results[t].append(tnr)
del model
# save the results
file_name = results_path + dataset_name + '_mvae'
np.savez(file=file_name, ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(file_name)
file_name = results_path + dataset_name + '_mvae_single_best'
np.savez(file=file_name, ROC=single_best_roc_results, PR_norm=single_best_pr_norm_results, PR_anom=single_best_pr_anom_results, tnr=single_best_tnr_results)
load_print_results(file_name)
print('dataset: {}, layer_size: {}, batch size: {}, lr: {}, wd:{}, eppchs: {}'.format(dataset_name, layer_size, batch_size, lr, wd, max(epochs)))
def deepCCA(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path, device, qualified_Y, ADdataset_mode='minority'):
torch.set_default_tensor_type(torch.DoubleTensor)
roc_results = [[] for i in range(repeat_times)]
pr_anom_results = [[] for i in range(repeat_times)]
pr_norm_results = [[] for i in range(repeat_times)]
tnr_results = [[] for i in range(repeat_times)]
# training config
batch_size = batch_size_set_dcca[dataset_name]
layer_size = layer_size_set[dataset_name]
lr = lr_set_dcca[dataset_name]
wd = wd_set_dcca[dataset_name]
loss_func = MSELoss()
cca_loss_func = cca(outdim_size=layer_size[-1])
input_size_set = [x.shape[0] for x in X]
if results_path in ['./results/']:
alpha_set = [alpha_set_dcca[dataset_name]]
else:
alpha_set = [0.01, 0.1, 0.5, 0.9, 0.99]
for alpha in alpha_set:
for t in range(repeat_times):
print('The {}-th run begins!'.format(t))
for i in range(min([10, len(qualified_Y)])):
partition, Y_test = build_img_dataset(dataset_name, Y, neg_class_id=qualified_Y[i], mode=ADdataset_mode)
X_train, X_test = process_ad_dataset(X, partition)
# -----------------------------------------model training
seed = 0
if torch.cuda.is_available():
torch.cuda.manual_seed_all(seed)
torch.manual_seed(seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = True
model = mv_corrAE(input_size_set=input_size_set, layer_sizes=layer_size).to(device).double()
trainloader = DataLoader(dataset=mv_dataset(X_train), batch_size=batch_size, shuffle=True, num_workers=1, collate_fn=mv_tabular_collate)
# specific training procedure
epochs = epochs_set[dataset_name]
cca_losses = AverageMeter()
rec_losses = AverageMeter()
optimizer = optim.Adam(model.parameters(), lr=lr, weight_decay=wd)
model.train()
cout = 0
for epoch in range(max(epochs)):
trainloader = tqdm(trainloader)
if ADdataset_mode is 'majority':
trainloader.set_description('dcca, epoch{}, abnormal class{}'.format(epoch, qualified_Y[i]))
else:
trainloader.set_description('dcca, epoch{}, normal class{}'.format(epoch, qualified_Y[i]))
for idx, batch in enumerate(trainloader):
try:
if batch[0].size(0) > 1: # for bn, batchsize > 1
batch = [batch[i].to(device) for i in range(len(batch))]
latent_set, outputs_set = model(batch)
recon_loss = torch.zeros(1).to(device)
cca_loss_ = torch.zeros(1).to(device)
for view in range(len(X_train)):
if epoch < epochs[view]:
y = batch[view]
loss = loss_func(outputs_set[view], y)
recon_loss += loss
for v_idx in range(view + 1, len(X_train)):
try:
cur_cca_loss = cca_loss_func.loss(latent_set[view], latent_set[v_idx])
except:
cur_cca_loss = torch.zeros(1).to(device)
cca_loss_ += cur_cca_loss
rec_losses.update(recon_loss.item(), batch[0].size(0))
cca_losses.update(cca_loss_.item(), batch[0].size(0))
tot_loss = (1 - alpha) * recon_loss + alpha * cca_loss_
postfix = ' rec_loss: {:.4f}, cca_loss: {:.4f} '.format(rec_losses.avg, cca_losses.avg)
optimizer.zero_grad()
tot_loss.backward()
filter_nan_grad(optimizer) # if grad contains grad, the batch is not used to update the parameters
optimizer.step()
cout += 1
trainloader.set_postfix(log=postfix)
except:
print('The error idx is {}'.format(idx))
# # ----------------------------------------model testing
testloader = DataLoader(dataset=mv_dataset(X_test), batch_size=batch_size, shuffle=False, num_workers=1, collate_fn=mv_tabular_collate)
with torch.no_grad():
model.eval()
scores = [[] for ss in range(len(X_test))]
for idx, batch in enumerate(tqdm(testloader)):
batch = [batch[i].to(device) for i in range(len(batch))]
cur_batch_scores = model.get_ad_scores(batch)
for ss in range(len(X_test)):
scores[ss].append(cur_batch_scores[ss])
scores = [torch.cat(scores[ss], dim=0) for ss in range(len(X_test))]
scores = late_fusion(scores, merge='avg')
# ----------------------------------------model eval
roc, pr_anom, pr_norm, tnr = save_roc_pr_curve_data(scores=scores, labels=Y_test, file_path=None, verbose=False)
roc_results[t].append(roc)
pr_anom_results[t].append(pr_anom)
pr_norm_results[t].append(pr_norm)
tnr_results[t].append(tnr)
del model
# save the results
if results_path in ['./results/']:
np.savez(file=results_path + dataset_name + '_dcca', ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(results_path + dataset_name + '_dcca')
else:
np.savez(file=results_path + dataset_name + '_dcca_alpha_{}'.format(alpha), ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(results_path + dataset_name + '_dcca_alpha_{}'.format(alpha))
def dgcca(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path, device, qualified_Y, ADdataset_mode='minority'):
torch.set_default_tensor_type(torch.DoubleTensor)
roc_results = [[] for i in range(repeat_times)]
pr_anom_results = [[] for i in range(repeat_times)]
pr_norm_results = [[] for i in range(repeat_times)]
tnr_results = [[] for i in range(repeat_times)]
# training config
batch_size = batch_size_set_dgcca[dataset_name]
lr = lr_set_dgcca[dataset_name]
wd = wd_set_dgcca[dataset_name]
layer_size = layer_size_set[dataset_name]
loss_func = MSELoss()
gcca_loss_func = gcca(outdim_size=layer_size[-1])
input_size_set = [x.shape[0] for x in X]
if results_path in ['./results/']:
alpha_set = [alpha_set_dgcca[dataset_name]]
else:
alpha_set = [0.01, 0.1, 0.5, 0.9, 0.99]
for alpha in alpha_set:
for t in range(repeat_times):
print('The {}-th run begins!'.format(t))
for i in range(min([10, len(qualified_Y)])):
partition, Y_test = build_img_dataset(dataset_name, Y, neg_class_id=qualified_Y[i], mode=ADdataset_mode)
X_train, X_test = process_ad_dataset(X, partition)
# -----------------------------------------model training
seed = 0
if torch.cuda.is_available():
torch.cuda.manual_seed_all(seed)
torch.manual_seed(seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = True
model = mv_corrAE(input_size_set=input_size_set, layer_sizes=layer_size).to(device).double()
trainloader = DataLoader(dataset=mv_dataset(X_train), batch_size=batch_size, shuffle=True, num_workers=1, collate_fn=mv_tabular_collate)
# specific training procedure
epochs = epochs_set[dataset_name]
gcca_losses = AverageMeter()
rec_losses = AverageMeter()
optimizer = optim.Adam(model.parameters(), lr=lr, weight_decay=wd)
model.train()
cout = 0
for epoch in range(max(epochs)):
trainloader = tqdm(trainloader)
if ADdataset_mode is 'majority':
trainloader.set_description('dgcca, epoch{}, abnormal class{}'.format(epoch, qualified_Y[i]))
else:
trainloader.set_description('dgcca, epoch{}, normal class{}'.format(epoch, qualified_Y[i]))
for idx, batch in enumerate(trainloader):
# try:
if batch[0].size(0) > 1: # for bn, batchsize > 1
batch = [batch[i].to(device) for i in range(len(batch))]
latent_set, outputs_set = model(batch)
recon_loss = torch.zeros(1).to(device)
try:
gcca_loss_ = gcca_loss_func.loss(latent_set)
except:
gcca_loss_ = torch.zeros(1).to(device)
for view in range(len(X_train)):
if epoch < epochs[view]:
y = batch[view]
loss = loss_func(outputs_set[view], y)
recon_loss += loss
rec_losses.update(recon_loss.item(), batch[0].size(0))
gcca_losses.update(gcca_loss_.item(), batch[0].size(0))
tot_loss = (1 - alpha) * recon_loss + alpha * gcca_loss_
postfix = ' rec_loss: {:.4f}, gcca_loss: {:.4f} '.format(rec_losses.avg, gcca_losses.avg)
optimizer.zero_grad()
tot_loss.backward()
filter_nan_grad(optimizer) # if grad contains grad, the batch is not used to update the parameters
optimizer.step()
cout += 1
trainloader.set_postfix(log=postfix)
# # ----------------------------------------model testing
testloader = DataLoader(dataset=mv_dataset(X_test), batch_size=batch_size, shuffle=False, num_workers=1, collate_fn=mv_tabular_collate)
with torch.no_grad():
model.eval()
scores = [[] for ss in range(len(X_test))]
for idx, batch in enumerate(tqdm(testloader)):
batch = [batch[i].to(device) for i in range(len(batch))]
cur_batch_scores = model.get_ad_scores(batch)
for ss in range(len(X_test)):
scores[ss].append(cur_batch_scores[ss])
scores = [torch.cat(scores[ss], dim=0) for ss in range(len(X_test))]
scores = late_fusion(scores, merge='avg')
# ----------------------------------------model eval
roc, pr_anom, pr_norm, tnr = save_roc_pr_curve_data(scores=scores, labels=Y_test, file_path=None, verbose=False)
roc_results[t].append(roc)
pr_anom_results[t].append(pr_anom)
pr_norm_results[t].append(pr_norm)
tnr_results[t].append(tnr)
del model
# save the results
if results_path in ['./results/']:
np.savez(file=results_path + dataset_name + '_dgcca', ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(results_path + dataset_name + '_dgcca')
else:
np.savez(file=results_path + dataset_name + '_dgcca_alpha_{}'.format(alpha), ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(results_path + dataset_name + '_dgcca_alpha_{}'.format(alpha))
def simple_mvDSVDD(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path, device, qualified_Y, ADdataset_mode='minority'):
torch.set_default_tensor_type(torch.DoubleTensor)
roc_results = [[] for i in range(repeat_times)]
pr_anom_results = [[] for i in range(repeat_times)]
pr_norm_results = [[] for i in range(repeat_times)]
tnr_results = [[] for i in range(repeat_times)]
# training config
batch_size = batch_size_set_dsvdd[dataset_name]
layer_size = layer_size_set[dataset_name]
lr = lr_set_dsvdd[dataset_name]
wd = wd_set_dsvdd[dataset_name]
loss_func = MSELoss()
input_size_set = [x.shape[0] for x in X]
eps = 1e-10
pretrain = True # indicate whether the DSVDD is pre-trained like AE
mode = 'one_class'
assert mode in ['one_class', 'soft_bound']
if mode is 'soft_bound':
nu = 0.1
warm_epochs = 5
assert warm_epochs <= min(epochs_set[dataset_name])
for t in range(repeat_times):
print('The {}-th run begins!'.format(t))
for i in range(min([10, len(qualified_Y)])):
partition, Y_test = build_img_dataset(dataset_name, Y, neg_class_id=qualified_Y[i], mode=ADdataset_mode)
X_train, X_test = process_ad_dataset(X, partition)
# -----------------------------------------build dataloader under current config.
trainloader = DataLoader(dataset=mv_dataset(X_train), batch_size=batch_size, shuffle=True, num_workers=1, collate_fn=mv_tabular_collate)
testloader = DataLoader(dataset=mv_dataset(X_test), batch_size=batch_size, shuffle=False, num_workers=1, collate_fn=mv_tabular_collate)
seed = 0
if torch.cuda.is_available():
torch.cuda.manual_seed_all(seed)
torch.manual_seed(seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = True
# -----------------------------------------pre-training procedure
if pretrain:
model = mvae_ad(input_size_set=input_size_set, layer_sizes=layer_size).to(device)
epochs = epochs_set[dataset_name]
losses_set = [AverageMeter() for i in range(len(X_train))]
optimizer = [optim.Adam(model.ae_set[i].parameters(), lr=lr, weight_decay=wd) for i in range(len(X_train))]
model.train()
cout = 0
for epoch in range(max(epochs)):
trainloader = tqdm(trainloader)
if ADdataset_mode is 'majority':
trainloader.set_description('dsvdd, epoch{}, abnormal class{}'.format(epoch, qualified_Y[i]))
else:
trainloader.set_description('dsvdd, epoch{}, normal class{}'.format(epoch, qualified_Y[i]))
for idx, batch in enumerate(trainloader):
postfix = ''
if batch[0].size(0) > 1: # for bn, batchsize > 1
batch = [batch[i].to(device) for i in range(len(batch))]
outputs_set = model(batch)
for view in range(len(X_train)):
if epoch < epochs[view]:
y = batch[view]
loss = loss_func(outputs_set[view], y)
optimizer[view].zero_grad()
loss.backward()
optimizer[view].step()
losses_set[view].update(loss.item(), batch[0].size(0))
cur_postfix = ' view{}, rec_loss: {:.4f} '.format(view, losses_set[view].avg)
postfix += cur_postfix
cout += 1
trainloader.set_postfix(log=postfix)
del trainloader
# # ----------------------------------------set C for multi-view DSVDD
trainloader = DataLoader(dataset=mv_dataset(X_train), batch_size=batch_size, shuffle=True, num_workers=1, collate_fn=mv_tabular_collate)
mvDSVDD = mvenc(input_size_set=input_size_set, layer_sizes=layer_size).to(device)
ae_dict = model.state_dict()
dsvdd_dict = mvDSVDD.state_dict()
ae_dict = {k: v for k, v in ae_dict.items() if k in dsvdd_dict}
dsvdd_dict.update(ae_dict)
mvDSVDD.load_state_dict(dsvdd_dict)
mvDSVDD.eval()
C_set = [[] for ss in range(len(X_train))]
R_set = [torch.zeros(1).to(device) for ss in range(len(X_train))]
with torch.no_grad():
for idx, batch in enumerate(tqdm(trainloader)):
batch = [batch[i].to(device) for i in range(len(batch))]
cur_batch_latent = mvDSVDD(batch)
for ss in range(len(X_train)):
C_set[ss].append(cur_batch_latent[ss].detach())
C_set = [torch.cat(C_set[cc], dim=0) for cc in range(len(X_train))]
for cc in range(len(C_set)):
tmp = torch.mean(C_set[cc], dim=0)
tmp[(abs(tmp) < eps) & (tmp < 0)] = -eps
tmp[(abs(tmp) < eps) & (tmp > 0)] = eps
C_set[cc] = tmp
# -------------------------------------train the DSVDD
epochs = epochs_set[dataset_name]
losses_set = [AverageMeter() for i in range(len(X_train))]
optimizer = [optim.Adam(mvDSVDD.ae_set[i].parameters(), lr=lr, weight_decay=wd) for i in range(len(X_train))]
mvDSVDD.train()
cout = 0
for epoch in range(max(epochs)):
trainloader = tqdm(trainloader)
if ADdataset_mode is 'majority':
trainloader.set_description('dsvdd, epoch{}, abnormal class{}'.format(epoch, qualified_Y[i]))
else:
trainloader.set_description('dsvdd, epoch{}, normal class{}'.format(epoch, qualified_Y[i]))
for idx, batch in enumerate(trainloader):
postfix = ''
if batch[0].size(0) > 1: # for bn, batchsize > 1
batch = [batch[i].to(device) for i in range(len(batch))]
outputs_set = mvDSVDD(batch)
for view in range(len(X_train)):
if epoch < epochs[view]:
cur_c = C_set[view].to(device)
cur_output = outputs_set[view]
dist = torch.sum((cur_output - cur_c) ** 2, dim=1)
if mode is 'soft_bound':
scores = dist - R_set[view] ** 2
loss = R_set[view] ** 2 + (1 / nu) * torch.mean(torch.max(torch.zeros_like(scores), scores))
else:
loss = torch.mean(dist)
optimizer[view].zero_grad()
loss.backward()
optimizer[view].step()
if mode is 'soft_bound' and epoch >= warm_epochs:
R_set[view].data = torch.tensor(get_radius(dist, nu), device=device)
losses_set[view].update(loss.item(), batch[0].size(0))
if mode is 'soft_bound':
cur_postfix = ' view{}, dd_loss: {:.4f} R: {:.4f} '.format(view, losses_set[view].avg, R_set[view].item())
else:
cur_postfix = ' view{}, dd_loss: {:.4f} '.format(view, losses_set[view].avg)
postfix += cur_postfix
cout += 1
trainloader.set_postfix(log=postfix)
# ----------------------------------------model inferrence
mvDSVDD.eval()
scores_set = [[] for ss in range(len(X_test))]
with torch.no_grad():
for idx, batch in enumerate(tqdm(testloader)):
batch = [batch[i].to(device) for i in range(len(batch))]
cur_batch_outputs = mvDSVDD(batch)
for view in range(len(X_train)):
scores = -1. * torch.sum((cur_batch_outputs[view] - C_set[view]) ** 2, dim=1, keepdim=True)
scores_set[view].append(scores.detach())
scores_set = [torch.cat(scores_set[ss], dim=0) for ss in range(len(X_train))]
scores = late_fusion(scores_set, merge='avg')
# ----------------------------------------model eval
roc, pr_anom, pr_norm, tnr = save_roc_pr_curve_data(scores=scores, labels=Y_test, file_path=None, verbose=False)
roc_results[t].append(roc)
pr_anom_results[t].append(pr_anom)
pr_norm_results[t].append(pr_norm)
tnr_results[t].append(tnr)
del model
# save the results
np.savez(file=results_path + dataset_name + '_dsvdd', ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(results_path + dataset_name + '_dsvdd')
def mv_corrae(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path, device, qualified_Y, ADdataset_mode='minority'):
torch.set_default_tensor_type(torch.DoubleTensor)
roc_results = [[] for i in range(repeat_times)]
pr_anom_results = [[] for i in range(repeat_times)]
pr_norm_results = [[] for i in range(repeat_times)]
tnr_results = [[] for i in range(repeat_times)]
# training config
batch_size = batch_size_set_corr[dataset_name]
lr = lr_set_corr[dataset_name]
wd = wd_set_corr[dataset_name]
layer_size = layer_size_set[dataset_name]
loss_func = MSELoss()
input_size_set = [x.shape[0] for x in X]
if results_path in ['./results/']:
alpha_set = [alpha_set_corr[dataset_name]]
else:
alpha_set = [0.01, 0.1, 0.5, 0.9, 0.99]
for alpha in alpha_set:
for t in range(repeat_times):
print('The {}-th run begins!'.format(t))
for i in range(min([10, len(qualified_Y)])):
partition, Y_test = build_img_dataset(dataset_name, Y, neg_class_id=qualified_Y[i], mode=ADdataset_mode)
X_train, X_test = process_ad_dataset(X, partition)
# -----------------------------------------model training
seed = 0
if torch.cuda.is_available():
torch.cuda.manual_seed_all(seed)
torch.manual_seed(seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = True
model = mv_corrAE(input_size_set=input_size_set, layer_sizes=layer_size).to(device).double()
trainloader = DataLoader(dataset=mv_dataset(X_train), batch_size=batch_size, shuffle=True, num_workers=1, collate_fn=mv_tabular_collate)
# specific training procedure
epochs = epochs_set[dataset_name]
rec_losses = AverageMeter()
corr_losses = AverageMeter()
optimizer = optim.Adam(model.parameters(), lr=lr, weight_decay=wd)
model.train()
cout = 0
for epoch in range(max(epochs)):
trainloader = tqdm(trainloader)
if ADdataset_mode is 'majority':
trainloader.set_description('corr, epoch{}, abnormal class{}'.format(epoch, qualified_Y[i]))
else:
trainloader.set_description('corr, epoch{}, normal class{}'.format(epoch, qualified_Y[i]))
for idx, batch in enumerate(trainloader):
if batch[0].size(0) > 1: # for bn, batchsize > 1
batch = [batch[i].to(device) for i in range(len(batch))]
latent_set, outputs_set = model(batch)
recon_loss = torch.zeros(1).to(device)
corr_loss = torch.zeros(1).to(device)
for view in range(len(X_train)):
if epoch < epochs[view]:
y = batch[view]
loss = loss_func(outputs_set[view], y)
recon_loss += loss
for v_idx in range(view + 1, len(X_train)):
cur_corr_loss = loss_func(latent_set[view], latent_set[v_idx])
corr_loss += cur_corr_loss
rec_losses.update(recon_loss.item(), batch[0].size(0))
corr_losses.update(corr_loss.item(), batch[0].size(0))
postfix = ' rec_loss: {:.4f}, corr_loss: {:.4f} '.format(rec_losses.avg, corr_losses.avg)
tot_loss = (1 - alpha) * recon_loss + alpha * corr_loss
optimizer.zero_grad()
tot_loss.backward()
optimizer.step()
cout += 1
trainloader.set_postfix(log=postfix)
# # ----------------------------------------model testing
testloader = DataLoader(dataset=mv_dataset(X_test), batch_size=batch_size, shuffle=False, num_workers=1, collate_fn=mv_tabular_collate)
with torch.no_grad():
model.eval()
scores = [[] for ss in range(len(X_test))]
for idx, batch in enumerate(tqdm(testloader)):
batch = [batch[i].to(device) for i in range(len(batch))]
cur_batch_scores = model.get_ad_scores(batch)
for ss in range(len(X_test)):
scores[ss].append(cur_batch_scores[ss])
scores = [torch.cat(scores[ss], dim=0) for ss in range(len(X_test))]
scores = late_fusion(scores, merge='avg')
# ----------------------------------------model eval
roc, pr_anom, pr_norm, tnr = save_roc_pr_curve_data(scores=scores, labels=Y_test, file_path=None, verbose=False)
roc_results[t].append(roc)
pr_anom_results[t].append(pr_anom)
pr_norm_results[t].append(pr_norm)
tnr_results[t].append(tnr)
del model
# save the results
if results_path in ['./results/']:
np.savez(file=results_path + dataset_name + '_corrAE', ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(results_path + dataset_name + '_corrAE')
else:
np.savez(file=results_path + dataset_name + '_corrAE_alpha_{}'.format(alpha), ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(results_path + dataset_name + '_corrAE_alpha_{}'.format(alpha))
def mv_sim(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path, device, qualified_Y, ADdataset_mode='minority'):
torch.set_default_tensor_type(torch.DoubleTensor)
roc_results = [[] for i in range(repeat_times)]
pr_anom_results = [[] for i in range(repeat_times)]
pr_norm_results = [[] for i in range(repeat_times)]
tnr_results = [[] for i in range(repeat_times)]
# training config
batch_size = batch_size_set_sim[dataset_name]
lr = lr_set_sim[dataset_name]
wd = wd_set_sim[dataset_name]
layer_size = layer_size_set[dataset_name]
loss_func = MSELoss()
input_size_set = [x.shape[0] for x in X]
if results_path in ['./results/']:
alpha_set = [alpha_set_sim[dataset_name]]
else:
alpha_set = [0.01, 0.1, 0.5, 0.9, 0.99]
if results_path in ['./results/']:
m_set = [m_set_sim[dataset_name]]
else:
# m_set = [0, 1, 3, 5, 7]
m_set = [0]
for m in m_set:
for alpha in alpha_set:
for t in range(repeat_times):
print('The {}-th run begins!'.format(t))
for i in range(min([10, len(qualified_Y)])):
partition, Y_test = build_img_dataset(dataset_name, Y, neg_class_id=qualified_Y[i], mode=ADdataset_mode)
X_train, X_test = process_ad_dataset(X, partition)
# -----------------------------------------model training
seed = 0
if torch.cuda.is_available():
torch.cuda.manual_seed_all(seed)
torch.manual_seed(seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = True
model = mv_corrAE(input_size_set=input_size_set, layer_sizes=layer_size).to(device).double()
trainloader = DataLoader(dataset=mv_dataset(X_train), batch_size=batch_size, shuffle=True, num_workers=1, collate_fn=mv_tabular_collate)
# specific training procedure
epochs = epochs_set[dataset_name]
rec_losses = AverageMeter()
sim_losses = AverageMeter()
optimizer = optim.Adam(model.parameters(), lr=lr, weight_decay=wd)
model.train()
cout = 0
for epoch in range(max(epochs)):
trainloader = tqdm(trainloader)
if ADdataset_mode is 'majority':
trainloader.set_description('sim, epoch{}, abnormal class{}'.format(epoch, qualified_Y[i]))
else:
trainloader.set_description('sim, epoch{}, normal class{}'.format(epoch, qualified_Y[i]))
for idx, batch in enumerate(trainloader):
if batch[0].size(0) > 1: # for bn, batchsize > 1
batch = [batch[i].to(device) for i in range(len(batch))]
latent_set, outputs_set = model(batch)
recon_loss = torch.zeros(1).to(device)
sim_loss = torch.zeros(1).to(device)
for view in range(len(X_train)):
if epoch < epochs[view]:
y = batch[view]
loss = loss_func(outputs_set[view], y)
recon_loss += loss
for v_idx in range(view + 1, len(X_train)):
cur_sim_loss = similarity_hinge_loss(latent_set[view], latent_set[v_idx], m)
sim_loss += cur_sim_loss
rec_losses.update(recon_loss.item(), batch[0].size(0))
sim_losses.update(sim_loss.item(), batch[0].size(0))
postfix = ' rec_loss: {:.4f}, sim_loss: {:.4f} '.format(rec_losses.avg, sim_losses.avg)
tot_loss = (1 - alpha) * recon_loss + alpha * sim_loss
optimizer.zero_grad()
tot_loss.backward()
optimizer.step()
cout += 1
trainloader.set_postfix(log=postfix)
# # ----------------------------------------model testing
testloader = DataLoader(dataset=mv_dataset(X_test), batch_size=batch_size, shuffle=False, num_workers=1, collate_fn=mv_tabular_collate)
with torch.no_grad():
model.eval()
scores = [[] for ss in range(len(X_test))]
for idx, batch in enumerate(tqdm(testloader)):
batch = [batch[i].to(device) for i in range(len(batch))]
cur_batch_scores = model.get_ad_scores(batch)
for ss in range(len(X_test)):
scores[ss].append(cur_batch_scores[ss])
scores = [torch.cat(scores[ss], dim=0) for ss in range(len(X_test))]
scores = late_fusion(scores, merge='avg')
# ----------------------------------------model eval
roc, pr_anom, pr_norm, tnr = save_roc_pr_curve_data(scores=scores, labels=Y_test, file_path=None, verbose=False)
roc_results[t].append(roc)
pr_anom_results[t].append(pr_anom)
pr_norm_results[t].append(pr_norm)
tnr_results[t].append(tnr)
del model
# save the results
if results_path in ['./results/']:
np.savez(file=results_path + dataset_name + '_sim', ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(results_path + dataset_name + '_sim')
else:
np.savez(file=results_path + dataset_name + '_sim_alpha_{}_m_{}'.format(alpha, m), ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(results_path + dataset_name + '_sim_alpha_{}_m_{}'.format(alpha, m))
def mvae_fuse_latent(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path, device, qualified_Y, ADdataset_mode='minority'):
torch.set_default_tensor_type(torch.DoubleTensor)
roc_results = [[] for i in range(repeat_times)]
pr_anom_results = [[] for i in range(repeat_times)]
pr_norm_results = [[] for i in range(repeat_times)]
tnr_results = [[] for i in range(repeat_times)]
# training config
batch_size = batch_size_set_fused[dataset_name]
layer_size = layer_size_set[dataset_name]
lr = lr_set_fused[dataset_name]
wd = wd_set_fused[dataset_name]
fuse_dim = layer_size[-1]
loss_func = MSELoss()
input_size_set = [x.shape[0] for x in X]
for t in range(repeat_times):
print('The {}-th run begins!'.format(t))
for i in range(min([10, len(qualified_Y)])):
partition, Y_test = build_img_dataset(dataset_name, Y, neg_class_id=qualified_Y[i], mode=ADdataset_mode)
X_train, X_test = process_ad_dataset(X, partition)
# -----------------------------------------model training
seed = 0
if torch.cuda.is_available():
torch.cuda.manual_seed_all(seed)
torch.manual_seed(seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = True
model = mvae_ad(input_size_set=input_size_set, layer_sizes=layer_size).to(device).double()
trainloader = DataLoader(dataset=mv_dataset(X_train), batch_size=batch_size, shuffle=True, num_workers=1, collate_fn=mv_tabular_collate)
# specific training procedure
epochs = epochs_set[dataset_name]
pt_epochs = pt_epochs_set[dataset_name]
assert max(epochs) > max(pt_epochs)
losses_set = [AverageMeter() for i in range(len(X_train))]
optimizer = [optim.Adam(model.ae_set[i].parameters(), lr=lr, weight_decay=wd) for i in range(len(X_train))]
# -----------------------------------------pretrain the MVAE
model.train()
cout = 0
for epoch in range(max(pt_epochs)):
trainloader = tqdm(trainloader)
if ADdataset_mode is 'majority':
trainloader.set_description('fuse, epoch{}, abnormal class{}'.format(epoch, qualified_Y[i]))
else:
trainloader.set_description('fuse, epoch{}, normal class{}'.format(epoch, qualified_Y[i]))
for idx, batch in enumerate(trainloader):
postfix = ''
if batch[0].size(0) > 1: # for bn, batchsize > 1
batch = [batch[i].to(device) for i in range(len(batch))]
outputs_set = model(batch)
for view in range(len(X_train)):
if epoch < epochs[view]:
y = batch[view]
loss = loss_func(outputs_set[view], y)
optimizer[view].zero_grad()
loss.backward()
optimizer[view].step()
losses_set[view].update(loss.item(), batch[0].size(0))
cur_postfix = ' view{}, rec_loss: {:.4f} '.format(view, losses_set[view].avg)
postfix += cur_postfix
cout += 1
trainloader.set_postfix(log=postfix)
del trainloader
# -------------------------------load pretrained weights to MVAE_fused
fused_model = mvae_fused(input_size_set=input_size_set, layer_sizes=layer_size, fuse_dim=fuse_dim).to(device).double()
ae_dict = model.state_dict()
ae_fused_dict = fused_model.state_dict()
ae_dict = {k: v for k, v in ae_dict.items() if k in ae_fused_dict}
ae_fused_dict.update(ae_dict)
fused_model.load_state_dict(ae_fused_dict)
fused_model.train()
trainloader = DataLoader(dataset=mv_dataset(X_train), batch_size=batch_size, shuffle=True, num_workers=1, collate_fn=mv_tabular_collate)
epochs = epochs_set[dataset_name]
losses = AverageMeter()
optimizer = optim.Adam(fused_model.parameters(), lr=lr, weight_decay=wd)
cout = 0
for epoch in range(max(epochs) - max(pt_epochs)):
trainloader = tqdm(trainloader)
if ADdataset_mode is 'majority':
trainloader.set_description('fuse, Epoch{}, abnormal class{}'.format(epoch, qualified_Y[i]))
else:
trainloader.set_description('fuse, Epoch{}, normal class{}'.format(epoch, qualified_Y[i]))
for idx, batch in enumerate(trainloader):
if batch[0].size(0) > 1: # for bn, batchsize > 1
batch = [batch[i].to(device) for i in range(len(batch))]
outputs_set = fused_model(batch)
loss = torch.zeros(1).to(device)
for ll in range(len(batch)):
loss += loss_func(outputs_set[ll], batch[ll])
optimizer.zero_grad()
loss.backward()
optimizer.step()
losses.update(loss.item(), batch[0].size(0))
postfix = ' fused rec_loss: {:.4f} '.format(losses.avg)
cout += 1
trainloader.set_postfix(log=postfix)
# # ----------------------------------------model testing
testloader = DataLoader(dataset=mv_dataset(X_test), batch_size=batch_size, shuffle=False, num_workers=1, collate_fn=mv_tabular_collate)
with torch.no_grad():
fused_model.eval()
scores = [[] for ss in range(len(X_test))]
for idx, batch in enumerate(tqdm(testloader)):
batch = [batch[i].to(device) for i in range(len(batch))]
cur_batch_scores = fused_model.get_ad_scores(batch)
for ss in range(len(X_test)):
scores[ss].append(cur_batch_scores[ss])
scores = [torch.cat(scores[ss], dim=0) for ss in range(len(X_test))]
scores = late_fusion(scores, merge='avg')
# ----------------------------------------model eval
roc, pr_anom, pr_norm, tnr = save_roc_pr_curve_data(scores=scores, labels=Y_test, file_path=None, verbose=False)
roc_results[t].append(roc)
pr_anom_results[t].append(pr_anom)
pr_norm_results[t].append(pr_norm)
tnr_results[t].append(tnr)
del model
# save the results
np.savez(file=results_path + dataset_name + '_mvae_fused', ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(results_path + dataset_name + '_mvae_fused')
def mv_dbn(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path, device, qualified_Y, ADdataset_mode='minority'):
torch.set_default_tensor_type(torch.DoubleTensor)
roc_results = [[] for i in range(repeat_times)]
pr_anom_results = [[] for i in range(repeat_times)]
pr_norm_results = [[] for i in range(repeat_times)]
tnr_results = [[] for i in range(repeat_times)]
# training config
layer_size = layer_size_set[dataset_name]
batch_size = batch_size_set_dbn[dataset_name]
lr = lr_set_dbn[dataset_name]
wd = wd_set_dbn[dataset_name]
print('layer_size: {}, batch size: {}, lr: {}, wd:{}'.format(layer_size, batch_size, lr, wd))
input_size_set = [x.shape[0] for x in X]
fuse_dim = layer_size[-1]
k = 3
epochs = epochs_set[dataset_name]
for t in range(repeat_times):
print('The {}-th run begins!'.format(t))
for i in range(min([10, len(qualified_Y)])):
partition, Y_test = build_img_dataset(dataset_name, Y, neg_class_id=qualified_Y[i], mode=ADdataset_mode)
X_train, X_test = process_ad_dataset(X, partition, normalization_range='01')
# -----------------------------------------model training
seed = 0
if torch.cuda.is_available():
torch.cuda.manual_seed_all(seed)
torch.manual_seed(seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = True
# model = mvae_ad(input_size_set=input_size_set, layer_sizes=layer_size).to(device).double()
model = mv_DBN(input_sizes=input_size_set, layers=layer_size, fuse_dim=fuse_dim, k=k)
X_train = [torch.from_numpy(X_train[_]) for _ in range(len(X_train))]
model.train_mv_DBN(X_train, epochs=max(epochs), lr=lr, batch_size=batch_size)
# # ----------------------------------------model testing
X_test = [torch.from_numpy(X_test[_]) for _ in range(len(X_test))]
scores = model.get_ad_scores(X_test)
scores = late_fusion(scores, merge='avg')
# ----------------------------------------model eval
roc, pr_anom, pr_norm, tnr = save_roc_pr_curve_data(scores=scores, labels=Y_test, file_path=None, verbose=False)
roc_results[t].append(roc)
pr_anom_results[t].append(pr_anom)
pr_norm_results[t].append(pr_norm)
tnr_results[t].append(tnr)
del model
# save the results
file_name = results_path+dataset_name+'_dbn'
np.savez(file=file_name, ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(file_name)
def mv_splitae(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path, device, qualified_Y, ADdataset_mode='minority'):
torch.set_default_tensor_type(torch.DoubleTensor)
roc_results = [[] for i in range(repeat_times)]
pr_anom_results = [[] for i in range(repeat_times)]
pr_norm_results = [[] for i in range(repeat_times)]
tnr_results = [[] for i in range(repeat_times)]
# training config
batch_size = batch_size_set_split[dataset_name]
lr = lr_set_split[dataset_name]
wd = wd_set_split[dataset_name]
layer_size = layer_size_set[dataset_name]
loss_func = MSELoss()
input_size_set = [x.shape[0] for x in X]
dec_mode = 'fixed'
for t in range(repeat_times):
print('The {}-th run begins!'.format(t))
for i in range(min([10, len(qualified_Y)])):
partition, Y_test = build_img_dataset(dataset_name, Y, neg_class_id=qualified_Y[i], mode=ADdataset_mode)
X_train, X_test = process_ad_dataset(X, partition)
# -----------------------------------------model training
seed = 0
if torch.cuda.is_available():
torch.cuda.manual_seed_all(seed)
torch.manual_seed(seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = True
model = splitAE(input_size_set=input_size_set, layer_sizes=layer_size, dec_mode=dec_mode).to(device)
trainloader = DataLoader(dataset=mv_dataset(X_train), batch_size=batch_size, shuffle=True, num_workers=1, collate_fn=mv_tabular_collate)
# specific training procedure
epochs = epochs_set[dataset_name]
losses_set = [AverageMeter() for i in range(len(X_train))]
optimizer = optim.Adam(model.parameters(), lr=lr, weight_decay=wd)
model.train()
cout = 0
for epoch in range(max(epochs)):
trainloader = tqdm(trainloader)
if ADdataset_mode is 'majority':
trainloader.set_description('split_fix, epoch{}, abnormal class{}'.format(epoch, qualified_Y[i]))
else:
trainloader.set_description('split_fix, epoch{}, normal class{}'.format(epoch, qualified_Y[i]))
for idx, batch in enumerate(trainloader):
postfix = ''
if batch[0].size(0) > 1: # for bn, batchsize > 1
batch = [batch[i].to(device) for i in range(len(batch))]
outputs_set = model(batch)
loss = torch.zeros(1).to(device)
cur_view_losses = [0. for cc in range(len(X_train))]
for enc_ind in range(len(outputs_set)):
cur_enc_recon = outputs_set[enc_ind]
for view in range(len(X_train)):
y = batch[view]
cur_enc_view_loss = loss_func(cur_enc_recon[view], y)
loss += cur_enc_view_loss
cur_view_losses[view] += loss.item()
optimizer.zero_grad()
loss.backward()
optimizer.step()
for view in range(len(X_train)):
losses_set[view].update(cur_view_losses[view], batch[0].size(0))
cur_postfix = ' view{}, rec_loss: {:.4f} '.format(view, losses_set[view].avg)
postfix += cur_postfix
cout += 1
trainloader.set_postfix(log=postfix)
# # ----------------------------------------model testing
testloader = DataLoader(dataset=mv_dataset(X_test), batch_size=batch_size, shuffle=False, num_workers=1, collate_fn=mv_tabular_collate)
with torch.no_grad():
model.eval()
scores = [[] for ss in range(len(X_test))]
for idx, batch in enumerate(tqdm(testloader)):
batch = [batch[i].to(device) for i in range(len(batch))]
cur_batch_scores = model.get_ad_scores(batch)
for ss in range(len(X_test)):
scores[ss].append(cur_batch_scores[ss])
scores = [torch.cat(scores[ss], dim=0) for ss in range(len(X_test))]
scores = late_fusion(scores, merge='avg')
# ----------------------------------------model eval
roc, pr_anom, pr_norm, tnr = save_roc_pr_curve_data(scores=scores, labels=Y_test, file_path=None, verbose=False)
roc_results[t].append(roc)
pr_anom_results[t].append(pr_anom)
pr_norm_results[t].append(pr_norm)
tnr_results[t].append(tnr)
del model
# save the results
np.savez(file=results_path + dataset_name + '_splitAE_{}'.format(dec_mode), ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(results_path + dataset_name + '_splitAE_{}'.format(dec_mode))
def mv_ss(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path, device, qualified_Y, ADdataset_mode='minority', mode='fuse', param_mode='fixed'):
torch.set_default_tensor_type(torch.DoubleTensor)
roc_results = [[] for i in range(repeat_times)]
pr_anom_results = [[] for i in range(repeat_times)]
pr_norm_results = [[] for i in range(repeat_times)]
tnr_results = [[] for i in range(repeat_times)]
# training config
batch_size = batch_size_set_split[dataset_name]
lr = lr_set_split[dataset_name]
wd = wd_set_split[dataset_name]
layer_size = layer_size_set[dataset_name]
loss_func = MSELoss()
input_size_set = [x.shape[0] for x in X]
fuse_dim = layer_size[-1]
mode = mode # fuse/pred/split
if mode is 'fuse':
if param_mode not in ['nn', 'sum', 'max']:
raise NotImplementedError
else:
if param_mode not in ['fixed', 'non-fixed']:
raise NotImplementedError
for t in range(repeat_times):
print('The {}-th run begins!'.format(t))
for i in range(min([10, len(qualified_Y)])):
partition, Y_test = build_img_dataset(dataset_name, Y, neg_class_id=qualified_Y[i], mode=ADdataset_mode)
X_train, X_test = process_ad_dataset(X, partition)
# -----------------------------------------model training
seed = 0
if torch.cuda.is_available():
torch.cuda.manual_seed_all(seed)
torch.manual_seed(seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = True
model = mvae_ss(input_size_set=input_size_set, layer_sizes=layer_size, fuse_dim=fuse_dim, mode=mode, param_mode=param_mode).to(device)
trainloader = DataLoader(dataset=mv_dataset(X_train), batch_size=batch_size, shuffle=True, num_workers=1, collate_fn=mv_tabular_collate)
# specific training procedure
epochs = epochs_set[dataset_name]
losses_set = [AverageMeter() for i in range(len(X_train))]
optimizer = optim.Adam(model.parameters(), lr=lr, weight_decay=wd)
model.train()
for epoch in range(max(epochs)):
trainloader = tqdm(trainloader)
if ADdataset_mode is 'majority':
trainloader.set_description('ss_{}_{}, epoch{}, abnormal class{}'.format(mode, param_mode, epoch, qualified_Y[i]))
else:
trainloader.set_description('ss_{}_{}, epoch{}, normal class{}'.format(mode, param_mode, epoch, qualified_Y[i]))
for idx, batch in enumerate(trainloader):
postfix = ''
if batch[0].size(0) > 1: # for bn, batchsize > 1
batch = [batch[i].to(device) for i in range(len(batch))]
outputs_set = model(batch)
if mode is 'fuse' or mode is 'pred':
loss = torch.zeros(1).to(device)
for ll in range(len(batch)):
cur_view_loss = loss_func(outputs_set[ll], batch[ll])
losses_set[ll].update(cur_view_loss, batch[0].size(0))
cur_postfix = ' view{}, rec_loss: {:.4f} '.format(ll, losses_set[ll].avg)
postfix += cur_postfix
loss += cur_view_loss
optimizer.zero_grad()
loss.backward()
optimizer.step()
elif mode is 'split':
loss = torch.zeros(1).to(device)
cur_view_losses = [0. for cc in range(len(X_train))]
for enc_ind in range(len(outputs_set)):
cur_enc_recon = outputs_set[enc_ind]
for view in range(len(X_train)):
y = batch[view]
cur_enc_view_loss = loss_func(cur_enc_recon[view], y)
loss += cur_enc_view_loss
cur_view_losses[view] += loss.item()
optimizer.zero_grad()
loss.backward()
optimizer.step()
for view in range(len(X_train)):
losses_set[view].update(cur_view_losses[view], batch[0].size(0))
cur_postfix = ' view{}, rec_loss: {:.4f} '.format(view, losses_set[view].avg)
postfix += cur_postfix
else:
raise NotImplementedError
trainloader.set_postfix(log=postfix)
# # ----------------------------------------model testing
testloader = DataLoader(dataset=mv_dataset(X_test), batch_size=batch_size, shuffle=False, num_workers=1, collate_fn=mv_tabular_collate)
with torch.no_grad():
model.eval()
scores = [[] for ss in range(len(X_test))]
for idx, batch in enumerate(tqdm(testloader)):
batch = [batch[i].to(device) for i in range(len(batch))]
cur_batch_scores = model.get_ad_scores(batch)
for ss in range(len(X_test)):
scores[ss].append(cur_batch_scores[ss])
scores = [torch.cat(scores[ss], dim=0) for ss in range(len(X_test))]
scores = late_fusion(scores, merge='avg')
# ----------------------------------------model eval
roc, pr_anom, pr_norm, tnr = save_roc_pr_curve_data(scores=scores, labels=Y_test, file_path=None, verbose=False)
roc_results[t].append(roc)
pr_anom_results[t].append(pr_anom)
pr_norm_results[t].append(pr_norm)
tnr_results[t].append(tnr)
del model
# save the results
np.savez(file=results_path + dataset_name + '_ss_{}_{}'.format(mode, param_mode), ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(results_path + dataset_name + '_ss_{}_{}'.format(mode, param_mode))
def mvDSVDD_fused(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path, device, qualified_Y, ADdataset_mode='minority'):
torch.set_default_tensor_type(torch.DoubleTensor)
roc_results = [[] for i in range(repeat_times)]
pr_anom_results = [[] for i in range(repeat_times)]
pr_norm_results = [[] for i in range(repeat_times)]
tnr_results = [[] for i in range(repeat_times)]
# training config
batch_size = batch_size_set_dsvdd[dataset_name]
layer_size = layer_size_set[dataset_name]
lr = lr_set_dsvdd[dataset_name]
wd = wd_set_dsvdd[dataset_name]
loss_func = MSELoss()
input_size_set = [x.shape[0] for x in X]
eps = 1e-10
pretrain = True # indicate whether the DSVDD is pre-trained like AE
mode = 'one_class'
assert mode in ['one_class', 'soft_bound']
if mode is 'soft_bound':
nu = 0.1
warm_epochs = 5
assert warm_epochs <= min(epochs_set[dataset_name])
for t in range(repeat_times):
print('The {}-th run begins!'.format(t))
for i in range(min([10, len(qualified_Y)])):
partition, Y_test = build_img_dataset(dataset_name, Y, neg_class_id=qualified_Y[i], mode=ADdataset_mode)
X_train, X_test = process_ad_dataset(X, partition)
# -----------------------------------------build dataloader under current config.
trainloader = DataLoader(dataset=mv_dataset(X_train), batch_size=batch_size, shuffle=True, num_workers=1, collate_fn=mv_tabular_collate)
testloader = DataLoader(dataset=mv_dataset(X_test), batch_size=batch_size, shuffle=False, num_workers=1, collate_fn=mv_tabular_collate)
seed = 0
if torch.cuda.is_available():
torch.cuda.manual_seed_all(seed)
torch.manual_seed(seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = True
# -----------------------------------------pre-training procedure
if pretrain:
model = mvae_ad(input_size_set=input_size_set, layer_sizes=layer_size).to(device)
epochs = epochs_set[dataset_name]
losses_set = [AverageMeter() for i in range(len(X_train))]
optimizer = [optim.Adam(model.ae_set[i].parameters(), lr=lr, weight_decay=wd) for i in range(len(X_train))]
model.train()
cout = 0
for epoch in range(max(epochs)):
trainloader = tqdm(trainloader)
if ADdataset_mode is 'majority':
trainloader.set_description('dsvdd_fuse, epoch{}, abnormal class{}'.format(epoch, qualified_Y[i]))
else:
trainloader.set_description('dsvdd_fuse, epoch{}, normal class{}'.format(epoch, qualified_Y[i]))
for idx, batch in enumerate(trainloader):
postfix = ''
if batch[0].size(0) > 1: # for bn, batchsize > 1
batch = [batch[i].to(device) for i in range(len(batch))]
outputs_set = model(batch)
for view in range(len(X_train)):
if epoch < epochs[view]:
y = batch[view]
loss = loss_func(outputs_set[view], y)
optimizer[view].zero_grad()
loss.backward()
optimizer[view].step()
losses_set[view].update(loss.item(), batch[0].size(0))
cur_postfix = ' view{}, rec_loss: {:.4f} '.format(view, losses_set[view].avg)
postfix += cur_postfix
cout += 1
trainloader.set_postfix(log=postfix)
del trainloader
# # ----------------------------------------set C for multi-view DSVDD
trainloader = DataLoader(dataset=mv_dataset(X_train), batch_size=batch_size, shuffle=True, num_workers=1, collate_fn=mv_tabular_collate)
mvDSVDD = mvenc_fuse(input_size_set=input_size_set, layer_sizes=layer_size).to(device)
ae_dict = model.state_dict()
dsvdd_dict = mvDSVDD.state_dict()
ae_dict = {k: v for k, v in ae_dict.items() if k in dsvdd_dict}
dsvdd_dict.update(ae_dict)
mvDSVDD.load_state_dict(dsvdd_dict)
mvDSVDD.eval()
C_set = []
R = torch.zeros(1).to(device)
with torch.no_grad():
for idx, batch in enumerate(tqdm(trainloader)):
batch = [batch[i].to(device) for i in range(len(batch))]
cur_batch_latent = mvDSVDD(batch)
C_set.append(cur_batch_latent.detach())
C_set = torch.cat(C_set, dim=0)
tmp = torch.mean(C_set, dim=0)
tmp[(abs(tmp) < eps) & (tmp < 0)] = -eps
tmp[(abs(tmp) < eps) & (tmp > 0)] = eps
C = tmp
# -------------------------------------train the DSVDD
epochs = epochs_set[dataset_name]
losses = AverageMeter()
optimizer = optim.Adam(mvDSVDD.parameters(), lr=lr, weight_decay=wd)
mvDSVDD.train()
cout = 0
for epoch in range(max(epochs)):
trainloader = tqdm(trainloader)
if ADdataset_mode is 'majority':
trainloader.set_description('dsvdd_fuse, epoch{}, abnormal class{}'.format(epoch, qualified_Y[i]))
else:
trainloader.set_description('dsvdd_fuse, epoch{}, normal class{}'.format(epoch, qualified_Y[i]))
for idx, batch in enumerate(trainloader):
postfix = ''
if batch[0].size(0) > 1: # for bn, batchsize > 1
batch = [batch[i].to(device) for i in range(len(batch))]
outputs = mvDSVDD(batch)
C = C.to(device)
dist = torch.sum((outputs - C) ** 2, dim=1)
if mode is 'soft_bound':
scores = dist - R ** 2
loss = R ** 2 + (1 / nu) * torch.mean(torch.max(torch.zeros_like(scores), scores))
else:
loss = torch.mean(dist)
optimizer.zero_grad()
loss.backward()
optimizer.step()
losses.update(loss.item(), batch[0].size(0))
if mode is 'soft_bound':
postfix += ' dd_loss: {:.4f} R: {:.4f} '.format(losses.avg, R.item())
else:
postfix += ' dd_loss: {:.4f} '.format(losses.avg)
if mode is 'soft_bound' and epoch >= warm_epochs:
R.data = torch.tensor(get_radius(dist, nu), device=device)
cout += 1
trainloader.set_postfix(log=postfix)
# ----------------------------------------model inferrence
mvDSVDD.eval()
scores_set = []
with torch.no_grad():
for idx, batch in enumerate(tqdm(testloader)):
batch = [batch[i].to(device) for i in range(len(batch))]
cur_batch_outputs = mvDSVDD(batch)
scores = -1. * torch.sum((cur_batch_outputs - C) ** 2, dim=1)
scores_set.append(scores.detach())
scores_set = torch.cat(scores_set, dim=0)
scores = scores_set.cpu().detach().numpy()
# ----------------------------------------model eval
roc, pr_anom, pr_norm, tnr = save_roc_pr_curve_data(scores=scores, labels=Y_test, file_path=None, verbose=False)
roc_results[t].append(roc)
pr_anom_results[t].append(pr_anom)
pr_norm_results[t].append(pr_norm)
tnr_results[t].append(tnr)
del model
# save the results
np.savez(file=results_path + dataset_name + '_dsvdd_fused', ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(results_path + dataset_name + '_dsvdd_fused')
def mv_tf(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path, device, qualified_Y, ADdataset_mode='minority'):
torch.set_default_tensor_type(torch.DoubleTensor)
roc_results = [[] for i in range(repeat_times)]
pr_anom_results = [[] for i in range(repeat_times)]
pr_norm_results = [[] for i in range(repeat_times)]
tnr_results = [[] for i in range(repeat_times)]
# training config
batch_size = batch_size_set_tf[dataset_name]
lr = lr_set_tf[dataset_name]
wd = wd_set_tf[dataset_name]
if results_path in ['./results/']:
r_set = [r_set_tf[dataset_name]]
else:
r_set = [4, 8, 16, 32, 64]
layer_size = layer_size_set[dataset_name]
loss_func = MSELoss()
input_size_set = [x.shape[0] for x in X]
for r in r_set:
for t in range(repeat_times):
print('The {}-th run begins!'.format(t))
for i in range(min([10, len(qualified_Y)])):
partition, Y_test = build_img_dataset(dataset_name, Y, neg_class_id=qualified_Y[i], mode=ADdataset_mode)
X_train, X_test = process_ad_dataset(X, partition)
# -----------------------------------------model training
seed = 0
if torch.cuda.is_available():
torch.cuda.manual_seed_all(seed)
torch.manual_seed(seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = True
model = mvae_tf(input_size_set=input_size_set, layer_sizes=layer_size, rank=r).to(device)
trainloader = DataLoader(dataset=mv_dataset(X_train), batch_size=batch_size, shuffle=True, num_workers=1, collate_fn=mv_tabular_collate)
# specific training procedure
epochs = epochs_set[dataset_name]
losses_set = [AverageMeter() for i in range(len(X_train))]
optimizer = optim.Adam(model.parameters(), lr=lr, weight_decay=wd)
model.train()
for epoch in range(max(epochs)):
trainloader = tqdm(trainloader)
if ADdataset_mode is 'majority':
trainloader.set_description('mvtf, epoch{}, abnormal class{}'.format(epoch, qualified_Y[i]))
else:
trainloader.set_description('mvtf, epoch{}, normal class{}'.format(epoch, qualified_Y[i]))
for idx, batch in enumerate(trainloader):
postfix = ''
if batch[0].size(0) > 1: # for bn, batchsize > 1
batch = [batch[i].to(device) for i in range(len(batch))]
outputs_set = model(batch)
loss = torch.zeros(1).to(device)
for ll in range(len(batch)):
cur_view_loss = loss_func(outputs_set[ll], batch[ll])
losses_set[ll].update(cur_view_loss, batch[0].size(0))
cur_postfix = ' view{}, rec_loss: {:.4f} '.format(ll, losses_set[ll].avg)
postfix += cur_postfix
loss += cur_view_loss
optimizer.zero_grad()
loss.backward()
optimizer.step()
trainloader.set_postfix(log=postfix)
# # ----------------------------------------model testing
testloader = DataLoader(dataset=mv_dataset(X_test), batch_size=batch_size, shuffle=False, num_workers=1, collate_fn=mv_tabular_collate)
with torch.no_grad():
model.eval()
scores = [[] for ss in range(len(X_test))]
for idx, batch in enumerate(tqdm(testloader)):
batch = [batch[i].to(device) for i in range(len(batch))]
cur_batch_scores = model.get_ad_scores(batch)
for ss in range(len(X_test)):
scores[ss].append(cur_batch_scores[ss])
scores = [torch.cat(scores[ss], dim=0) for ss in range(len(X_test))]
scores = late_fusion(scores, merge='avg')
# ----------------------------------------model eval
roc, pr_anom, pr_norm, tnr = save_roc_pr_curve_data(scores=scores, labels=Y_test, file_path=None, verbose=False)
roc_results[t].append(roc)
pr_anom_results[t].append(pr_anom)
pr_norm_results[t].append(pr_norm)
tnr_results[t].append(tnr)
del model
# save the results
if results_path in ['./results/']:
np.savez(file=results_path + dataset_name + '_tf', ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(results_path + dataset_name + '_tf')
else:
np.savez(file=results_path + dataset_name + '_tf_r_{}'.format(r), ROC=roc_results, PR_norm=pr_norm_results, PR_anom=pr_anom_results, tnr=tnr_results)
load_print_results(results_path + dataset_name + '_tf_r_{}'.format(r))
if __name__ == '__main__':
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
# ----------------------------------------prepare the dataset
# dataset_set = ['oct', 'breast', 'retina', 'axial', 'coronal', 'sagittal', 'path', 'derma', 'pneumonia']
# dataset_set = ['mvtec_bottle',
# 'mvtec_cable', 'mvtec_capsule', 'mvtec_carpet', 'mvtec_grid', 'mvtec_hazelnut', 'mvtec_leather', 'mvtec_metal_nut', 'mvtec_pill',
# 'mvtec_screw', 'mvtec_tile', 'mvtec_toothbrush', 'mvtec_transistor', 'mvtec_wood', 'mvtec_zipper']
# dataset_set = ['cifar10', 'cifar100', 'mnist', 'fmnist', 'svhn']
# dataset_set = ['ytface']
dataset_set = ['ytface']
# -----------------------------------------methods
for dataset_name in dataset_set:
X, Y = read_dataset('./data/', dataset_name)
# for i in range(len(X)):
# cur_X = X[i]
# idx = np.isnan(cur_X).sum()
# if idx > 0:
# print('dataset: {}, view: {} has NaN!'.format(dataset_name, i))
min_class_num = 300
normal_train_ratio = 0.7
if dataset_name[:5] in ['mvtec']:
qualified_Y = get_large_class(Y, min_class_num=min_class_num, semantics=True)
else:
qualified_Y = get_large_class(Y, min_class_num=min_class_num)
num_qualified_class = len(qualified_Y)
repeat_times = 1 # train-test split is fixed
ADdataset_mode = 'minority'
if num_qualified_class > 0:
print('Training dataset name: {}, qualified class number: {}/{}'.format(dataset_name, num_qualified_class, len(get_all_labels(Y))))
# --------------------------------Baselines-----------------------------------
simple_mvae(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./results/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode)
# --------------------------------Multi-view fusion based methods-------------
# simple fusion:
mv_ss(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./results/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode, mode='fuse', param_mode='max')
mv_ss(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./results/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode, mode='fuse', param_mode='sum')
mv_ss(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./results/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode, mode='fuse', param_mode='nn')
# pre-trained AE based fusion
mvae_fuse_latent(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./results/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode)
# DBN based
try:
mv_dbn(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./results/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode)
except:
print('dataset: {} dbn error'.format(dataset_name))
pass
# Tensor fusion network based methods
mv_tf(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./results/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode)
# --------------------------------Multi-view alignment based methods----------
mv_corrae(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./results/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode)
mv_sim(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./results/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode)
try:
deepCCA(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./results/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode)
except:
print('dataset: {} dcca error'.format(dataset_name))
pass
try:
dgcca(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./results/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode)
except:
print('dataset: {} dgcca error'.format(dataset_name))
pass
# -------------------------------Deep one-class learning based methods tailored for multi-view case-----
simple_mvDSVDD(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./results/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode)
mvDSVDD_fused(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./results/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode)
# -------------------------------Self-supervision based methods---------------------------------------------
mv_ss(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./results/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode, mode='pred',
param_mode='fixed')
mv_ss(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./results/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode, mode='split',
param_mode='fixed')
# # -------------------------For hyperparameter analysis-------------------------------
#
# mv_sim(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./analysis/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode)
#
# mv_corrae(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./analysis/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode)
#
# try:
# deepCCA(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./analysis/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode)
# except:
# print('dataset: {} dcca error'.format(dataset_name))
# pass
#
# try:
# dgcca(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./analysis/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode)
# except:
# print('dataset: {} dgcca error'.format(dataset_name))
# pass
#
# mv_tf(dataset_name, X, Y, repeat_times, normal_train_ratio, results_path='./analysis/', device=device, qualified_Y=qualified_Y, ADdataset_mode=ADdataset_mode)
# else:
# print('No qualified class in this dataset!')
| [
1,
1053,
12655,
408,
7442,
13,
5215,
4560,
2272,
29889,
601,
408,
269,
3934,
13,
5215,
4560,
2272,
29889,
29879,
5510,
408,
885,
1028,
13,
5215,
298,
29945,
2272,
408,
298,
29886,
13,
3166,
3667,
1053,
1303,
29918,
29885,
962,
271,
29955,
29941,
29892,
1303,
29918,
29885,
962,
271,
29892,
2048,
29918,
2492,
29918,
24713,
29892,
1889,
29918,
328,
29918,
24713,
29892,
28241,
29918,
24713,
29892,
28241,
29918,
9456,
29918,
1054,
9632,
29892,
319,
19698,
29924,
1308,
29892,
4078,
29918,
10198,
29918,
558,
29918,
2764,
345,
29918,
1272,
29892,
679,
29918,
497,
29918,
21134,
29892,
320,
13,
1678,
2254,
29918,
2158,
29918,
9902,
29892,
4175,
29918,
13707,
29918,
5105,
29892,
1303,
29918,
24713,
29892,
2048,
29918,
29894,
328,
29918,
24713,
29892,
17971,
29918,
24713,
29892,
17971,
29918,
9456,
29918,
1054,
9632,
29892,
2560,
29918,
562,
2764,
4135,
29892,
679,
29918,
16961,
29918,
1990,
29892,
17971,
29918,
1484,
328,
29918,
24713,
13,
3166,
4733,
29889,
3977,
6119,
29918,
7099,
6119,
1053,
286,
1564,
29872,
29918,
328,
29892,
5683,
29918,
29888,
3958,
29892,
286,
854,
29883,
29892,
286,
1564,
29872,
29918,
29888,
3880,
29892,
6219,
16036,
29892,
28241,
29918,
29725,
16036,
29892,
770,
3709,
29892,
260,
29883,
29918,
6758,
29918,
9891,
29892,
286,
1564,
29872,
29918,
893,
29892,
286,
854,
29883,
29918,
29888,
1509,
29892,
286,
1564,
29872,
29918,
13264,
29892,
29501,
29918,
2790,
29872,
29918,
6758,
13,
3166,
4733,
29889,
2772,
1022,
4174,
29909,
23785,
1053,
21784,
4174,
29909,
29892,
274,
1113,
29918,
6758,
29892,
330,
17630,
29892,
274,
1113,
13,
3166,
4733,
29889,
4051,
29940,
1053,
28241,
29918,
4051,
29940,
13,
3166,
4842,
305,
29889,
13239,
29889,
1272,
1053,
3630,
10036,
13,
3166,
4842,
305,
29889,
15755,
1053,
341,
1660,
29931,
2209,
29892,
11189,
5292,
14441,
29931,
2209,
13,
3166,
4842,
305,
1053,
5994,
13,
3166,
12489,
3377,
29990,
1053,
6991,
5219,
10507,
13,
3166,
260,
29939,
18933,
1053,
260,
29939,
18933,
13,
5215,
4842,
305,
13,
5215,
4036,
13,
3166,
10153,
29918,
2917,
1053,
21502,
12168,
29918,
842,
29892,
7546,
29918,
2311,
29918,
842,
29892,
320,
13,
1678,
9853,
29918,
2311,
29918,
842,
29918,
29885,
1564,
29872,
29892,
301,
29878,
29918,
842,
29918,
29885,
1564,
29872,
29892,
281,
29881,
29918,
842,
29918,
29885,
1564,
29872,
29892,
320,
13,
1678,
9853,
29918,
2311,
29918,
842,
29918,
29881,
17630,
29892,
301,
29878,
29918,
842,
29918,
29881,
17630,
29892,
281,
29881,
29918,
842,
29918,
29881,
17630,
29892,
15595,
29918,
842,
29918,
29881,
17630,
29892,
320,
13,
1678,
9853,
29918,
2311,
29918,
842,
29918,
29881,
4501,
1289,
29892,
301,
29878,
29918,
842,
29918,
29881,
4501,
1289,
29892,
281,
29881,
29918,
842,
29918,
29881,
4501,
1289,
29892,
320,
13,
1678,
9853,
29918,
2311,
29918,
842,
29918,
29888,
3880,
29892,
301,
29878,
29918,
842,
29918,
29888,
3880,
29892,
281,
29881,
29918,
842,
29918,
29888,
3880,
29892,
19592,
29918,
1022,
2878,
29879,
29918,
842,
29892,
320,
13,
1678,
9853,
29918,
2311,
29918,
842,
29918,
5451,
29892,
301,
29878,
29918,
842,
29918,
5451,
29892,
281,
29881,
29918,
842,
29918,
5451,
29892,
320,
13,
1678,
9853,
29918,
2311,
29918,
842,
29918,
13264,
29892,
301,
29878,
29918,
842,
29918,
13264,
29892,
281,
29881,
29918,
842,
29918,
13264,
29892,
364,
29918,
842,
29918,
13264,
29892,
320,
13,
1678,
9853,
29918,
2311,
29918,
842,
29918,
29725,
29892,
301,
29878,
29918,
842,
29918,
29725,
29892,
281,
29881,
29918,
842,
29918,
29725,
29892,
15595,
29918,
842,
29918,
29725,
29892,
320,
13,
1678,
9853,
29918,
2311,
29918,
842,
29918,
3601,
29892,
301,
29878,
29918,
842,
29918,
3601,
29892,
281,
29881,
29918,
842,
29918,
3601,
29892,
15595,
29918,
842,
29918,
3601,
29892,
286,
29918,
842,
29918,
3601,
29892,
320,
13,
1678,
9853,
29918,
2311,
29918,
842,
29918,
20726,
17630,
29892,
301,
29878,
29918,
842,
29918,
20726,
17630,
29892,
281,
29881,
29918,
842,
29918,
20726,
17630,
29892,
15595,
29918,
842,
29918,
20726,
17630,
29892,
320,
13,
1678,
9853,
29918,
2311,
29918,
842,
29918,
2585,
29876,
29892,
301,
29878,
29918,
842,
29918,
2585,
29876,
29892,
281,
29881,
29918,
842,
29918,
2585,
29876,
13,
13,
5215,
2897,
13,
3166,
29304,
1053,
679,
29918,
19080,
29918,
1949,
29892,
1301,
29918,
29324,
29918,
1272,
29918,
1482,
13,
13,
13,
1753,
679,
29918,
13471,
29898,
5721,
29901,
4842,
305,
29889,
29911,
6073,
29892,
4948,
29901,
5785,
1125,
13,
1678,
9995,
20624,
326,
635,
4505,
363,
11855,
390,
3025,
278,
313,
29896,
29899,
3433,
6817,
12150,
488,
310,
24610,
1213,
15945,
13,
1678,
736,
7442,
29889,
12150,
488,
29898,
9302,
29889,
3676,
29898,
5721,
29889,
16513,
2141,
1272,
29889,
21970,
2141,
23749,
25739,
29871,
29896,
448,
4948,
29897,
13,
13,
13,
29937,
4886,
24210,
29901,
13,
13,
1753,
2560,
29918,
29885,
1564,
29872,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
29892,
4742,
29892,
18698,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
2433,
1195,
272,
537,
29374,
13,
1678,
4842,
305,
29889,
842,
29918,
4381,
29918,
20158,
29918,
1853,
29898,
7345,
305,
29889,
11843,
29911,
6073,
29897,
13,
13,
1678,
696,
29883,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
273,
290,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
12324,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
260,
22230,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
13,
1678,
2323,
29918,
13318,
29918,
10198,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
2323,
29918,
13318,
29918,
558,
29918,
273,
290,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
2323,
29918,
13318,
29918,
558,
29918,
12324,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
2323,
29918,
13318,
29918,
6277,
29878,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
13,
13,
1678,
396,
6694,
2295,
13,
1678,
7546,
29918,
2311,
353,
7546,
29918,
2311,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
1678,
9853,
29918,
2311,
353,
9853,
29918,
2311,
29918,
842,
29918,
29885,
1564,
29872,
29961,
24713,
29918,
978,
29962,
13,
1678,
301,
29878,
353,
301,
29878,
29918,
842,
29918,
29885,
1564,
29872,
29961,
24713,
29918,
978,
29962,
13,
1678,
281,
29881,
353,
281,
29881,
29918,
842,
29918,
29885,
1564,
29872,
29961,
24713,
29918,
978,
29962,
13,
1678,
1596,
877,
13148,
29918,
2311,
29901,
24335,
9853,
2159,
29901,
24335,
301,
29878,
29901,
24335,
281,
29881,
29901,
8875,
4286,
4830,
29898,
13148,
29918,
2311,
29892,
9853,
29918,
2311,
29892,
301,
29878,
29892,
281,
29881,
876,
13,
1678,
6410,
29918,
9891,
353,
341,
1660,
29931,
2209,
580,
13,
1678,
1881,
29918,
2311,
29918,
842,
353,
518,
29916,
29889,
12181,
29961,
29900,
29962,
363,
921,
297,
1060,
29962,
13,
13,
1678,
363,
260,
297,
3464,
29898,
14358,
29918,
3706,
1125,
13,
4706,
1596,
877,
1576,
6571,
29899,
386,
1065,
16410,
29991,
4286,
4830,
29898,
29873,
876,
13,
4706,
363,
474,
297,
3464,
29898,
1195,
4197,
29896,
29900,
29892,
7431,
29898,
15380,
2164,
29918,
29979,
4638,
22164,
13,
9651,
8877,
29892,
612,
29918,
1688,
353,
2048,
29918,
2492,
29918,
24713,
29898,
24713,
29918,
978,
29892,
612,
29892,
3480,
29918,
1990,
29918,
333,
29922,
15380,
2164,
29918,
29979,
29961,
29875,
1402,
4464,
29922,
3035,
24713,
29918,
8513,
29897,
13,
9651,
1060,
29918,
14968,
29892,
1060,
29918,
1688,
353,
1889,
29918,
328,
29918,
24713,
29898,
29990,
29892,
8877,
29897,
13,
13,
9651,
396,
448,
2683,
2683,
1378,
4299,
6694,
13,
9651,
16717,
353,
29871,
29900,
13,
9651,
565,
4842,
305,
29889,
29883,
6191,
29889,
275,
29918,
16515,
7295,
13,
18884,
4842,
305,
29889,
29883,
6191,
29889,
11288,
29918,
26776,
29918,
497,
29898,
26776,
29897,
13,
9651,
4842,
305,
29889,
11288,
29918,
26776,
29898,
26776,
29897,
13,
9651,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
4801,
837,
262,
4695,
353,
5852,
13,
9651,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
1785,
16580,
353,
5852,
13,
13,
9651,
1904,
353,
286,
1564,
29872,
29918,
328,
29898,
2080,
29918,
2311,
29918,
842,
29922,
2080,
29918,
2311,
29918,
842,
29892,
7546,
29918,
29879,
7093,
29922,
13148,
29918,
2311,
467,
517,
29898,
10141,
467,
8896,
580,
13,
9651,
7945,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
14968,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
5574,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
13,
9651,
396,
2702,
6694,
8792,
13,
9651,
21502,
12168,
353,
21502,
12168,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
9651,
1596,
29898,
3317,
29898,
1022,
2878,
29879,
876,
13,
9651,
28495,
29918,
842,
353,
518,
29909,
19698,
29924,
1308,
580,
363,
474,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
9651,
5994,
3950,
353,
518,
20640,
29889,
3253,
314,
29898,
4299,
29889,
3660,
29918,
842,
29961,
29875,
1822,
16744,
3285,
301,
29878,
29922,
29212,
29892,
7688,
29918,
7099,
388,
29922,
9970,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
9651,
396,
9227,
353,
6991,
5219,
10507,
580,
13,
13,
9651,
1904,
29889,
14968,
580,
13,
9651,
11196,
353,
29871,
29900,
13,
9651,
363,
21502,
305,
297,
3464,
29898,
3317,
29898,
1022,
2878,
29879,
22164,
13,
18884,
7945,
12657,
353,
260,
29939,
18933,
29898,
14968,
12657,
29897,
13,
18884,
565,
11033,
24713,
29918,
8513,
338,
525,
21355,
537,
2396,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
8216,
877,
29885,
1564,
29872,
29892,
21502,
305,
29912,
1118,
633,
8945,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
18884,
1683,
29901,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
8216,
877,
29885,
1564,
29872,
29892,
21502,
305,
29912,
1118,
4226,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
18884,
363,
22645,
29892,
9853,
297,
26985,
29898,
14968,
12657,
1125,
13,
462,
1678,
1400,
5878,
353,
6629,
13,
462,
1678,
565,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
29897,
1405,
29871,
29896,
29901,
29871,
396,
363,
289,
29876,
29892,
9853,
2311,
1405,
29871,
29896,
13,
462,
4706,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
4706,
14391,
29918,
842,
353,
1904,
29898,
16175,
29897,
13,
462,
4706,
363,
1776,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
22164,
13,
462,
9651,
565,
21502,
305,
529,
21502,
12168,
29961,
1493,
5387,
13,
462,
18884,
343,
353,
9853,
29961,
1493,
29962,
13,
462,
18884,
6410,
353,
6410,
29918,
9891,
29898,
4905,
29879,
29918,
842,
29961,
1493,
1402,
343,
29897,
13,
13,
462,
18884,
5994,
3950,
29961,
1493,
1822,
9171,
29918,
5105,
580,
13,
462,
18884,
6410,
29889,
1627,
1328,
580,
13,
462,
18884,
5994,
3950,
29961,
1493,
1822,
10568,
580,
13,
13,
462,
18884,
28495,
29918,
842,
29961,
1493,
1822,
5504,
29898,
6758,
29889,
667,
3285,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
462,
18884,
3151,
29918,
2490,
5878,
353,
525,
1776,
29912,
1118,
1162,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
1493,
29892,
28495,
29918,
842,
29961,
1493,
1822,
485,
29887,
29897,
13,
13,
462,
18884,
396,
9227,
29889,
1202,
29918,
19529,
279,
877,
3389,
29879,
19248,
2403,
6758,
29918,
695,
294,
1204,
648,
2403,
1493,
648,
29913,
4286,
4830,
29898,
24713,
29918,
978,
29892,
343,
29918,
842,
29961,
29875,
1402,
1776,
511,
6410,
29889,
667,
3285,
11196,
29897,
13,
462,
18884,
1400,
5878,
4619,
3151,
29918,
2490,
5878,
13,
462,
4706,
11196,
4619,
29871,
29896,
13,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
2490,
5878,
29898,
1188,
29922,
2490,
5878,
29897,
13,
9651,
396,
9227,
29889,
5358,
580,
13,
9651,
396,
628,
9227,
13,
13,
9651,
396,
396,
448,
2683,
2683,
26589,
4299,
6724,
13,
9651,
1243,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
1688,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
8824,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
9651,
19435,
353,
518,
2636,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
9651,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
18884,
1904,
29889,
14513,
580,
13,
18884,
363,
22645,
29892,
9853,
297,
26985,
29898,
29873,
29939,
18933,
29898,
1688,
12657,
22164,
13,
462,
1678,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
1678,
3151,
29918,
16175,
29918,
1557,
2361,
353,
1904,
29889,
657,
29918,
328,
29918,
1557,
2361,
29898,
16175,
29897,
13,
462,
1678,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
22164,
13,
462,
4706,
19435,
29961,
893,
1822,
4397,
29898,
2764,
29918,
16175,
29918,
1557,
2361,
29961,
893,
2314,
13,
18884,
19435,
353,
518,
7345,
305,
29889,
4117,
29898,
1557,
2361,
29961,
893,
1402,
3964,
29922,
29900,
29897,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
13,
18884,
396,
1763,
1284,
263,
2323,
29899,
13318,
1904,
13,
18884,
19435,
29918,
842,
353,
4842,
305,
29889,
4117,
29898,
1557,
2361,
29892,
3964,
10457,
29896,
29897,
13,
18884,
2323,
29918,
13318,
29918,
10198,
353,
29871,
29900,
13,
18884,
2323,
29918,
13318,
29918,
558,
29918,
12324,
353,
29871,
29900,
13,
18884,
2323,
29918,
13318,
29918,
558,
29918,
273,
290,
353,
29871,
29900,
13,
18884,
363,
474,
297,
3464,
29898,
1557,
2361,
29918,
842,
29889,
12181,
14352,
29896,
29962,
1125,
13,
462,
1678,
3151,
29918,
1493,
29918,
1557,
2361,
353,
19435,
29918,
842,
7503,
29892,
474,
1822,
21970,
2141,
4801,
496,
2141,
23749,
580,
13,
462,
1678,
3151,
29918,
10198,
29892,
3151,
29918,
558,
29918,
273,
290,
29892,
3151,
29918,
558,
29918,
12324,
29892,
3151,
29918,
6277,
29878,
353,
4078,
29918,
10198,
29918,
558,
29918,
2764,
345,
29918,
1272,
29898,
1557,
2361,
29922,
2764,
29918,
1493,
29918,
1557,
2361,
29892,
11073,
29922,
29979,
29918,
1688,
29892,
934,
29918,
2084,
29922,
8516,
29892,
26952,
29922,
8824,
29897,
13,
462,
1678,
565,
3151,
29918,
10198,
1405,
2323,
29918,
13318,
29918,
10198,
29901,
13,
462,
4706,
2323,
29918,
13318,
29918,
10198,
353,
3151,
29918,
10198,
13,
462,
4706,
2323,
29918,
13318,
29918,
558,
29918,
273,
290,
353,
3151,
29918,
558,
29918,
273,
290,
13,
462,
4706,
2323,
29918,
13318,
29918,
558,
29918,
12324,
353,
3151,
29918,
558,
29918,
12324,
13,
462,
4706,
2323,
29918,
13318,
29918,
6277,
29878,
353,
3151,
29918,
6277,
29878,
13,
13,
18884,
2323,
29918,
13318,
29918,
10198,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
14369,
29918,
13318,
29918,
10198,
29897,
13,
18884,
2323,
29918,
13318,
29918,
558,
29918,
12324,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
14369,
29918,
13318,
29918,
558,
29918,
12324,
29897,
13,
18884,
2323,
29918,
13318,
29918,
558,
29918,
273,
290,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
14369,
29918,
13318,
29918,
558,
29918,
273,
290,
29897,
13,
18884,
2323,
29918,
13318,
29918,
6277,
29878,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
14369,
29918,
13318,
29918,
6277,
29878,
29897,
13,
13,
18884,
19435,
353,
5683,
29918,
29888,
3958,
29898,
1557,
2361,
29892,
10366,
2433,
485,
29887,
1495,
13,
13,
9651,
396,
448,
2683,
2683,
26589,
4299,
19745,
13,
9651,
696,
29883,
29892,
544,
29918,
273,
290,
29892,
544,
29918,
12324,
29892,
260,
22230,
353,
4078,
29918,
10198,
29918,
558,
29918,
2764,
345,
29918,
1272,
29898,
1557,
2361,
29922,
1557,
2361,
29892,
11073,
29922,
29979,
29918,
1688,
29892,
934,
29918,
2084,
29922,
8516,
29892,
26952,
29922,
8824,
29897,
13,
9651,
696,
29883,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
10198,
29897,
13,
9651,
544,
29918,
273,
290,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
273,
290,
29897,
13,
9651,
544,
29918,
12324,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
12324,
29897,
13,
9651,
260,
22230,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
6277,
29878,
29897,
13,
13,
9651,
628,
1904,
13,
13,
1678,
396,
4078,
278,
2582,
13,
1678,
934,
29918,
978,
353,
2582,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
29885,
1564,
29872,
29915,
13,
1678,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
1445,
29918,
978,
29892,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
1678,
2254,
29918,
2158,
29918,
9902,
29898,
1445,
29918,
978,
29897,
13,
13,
1678,
934,
29918,
978,
353,
2582,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
29885,
1564,
29872,
29918,
14369,
29918,
13318,
29915,
13,
1678,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
1445,
29918,
978,
29892,
16641,
29907,
29922,
14369,
29918,
13318,
29918,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
14369,
29918,
13318,
29918,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
14369,
29918,
13318,
29918,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
14369,
29918,
13318,
29918,
6277,
29878,
29918,
9902,
29897,
13,
13,
1678,
2254,
29918,
2158,
29918,
9902,
29898,
1445,
29918,
978,
29897,
13,
13,
1678,
1596,
877,
24713,
29901,
24335,
7546,
29918,
2311,
29901,
24335,
9853,
2159,
29901,
24335,
301,
29878,
29901,
24335,
281,
29881,
26254,
1118,
321,
407,
12168,
29901,
6571,
4286,
4830,
29898,
24713,
29918,
978,
29892,
7546,
29918,
2311,
29892,
9853,
29918,
2311,
29892,
301,
29878,
29892,
281,
29881,
29892,
4236,
29898,
1022,
2878,
29879,
4961,
13,
13,
13,
1753,
6483,
4174,
29909,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
29892,
4742,
29892,
18698,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
2433,
1195,
272,
537,
29374,
13,
1678,
4842,
305,
29889,
842,
29918,
4381,
29918,
20158,
29918,
1853,
29898,
7345,
305,
29889,
11843,
29911,
6073,
29897,
13,
13,
1678,
696,
29883,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
273,
290,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
12324,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
260,
22230,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
13,
13,
1678,
396,
6694,
2295,
13,
1678,
9853,
29918,
2311,
353,
9853,
29918,
2311,
29918,
842,
29918,
29881,
17630,
29961,
24713,
29918,
978,
29962,
13,
1678,
7546,
29918,
2311,
353,
7546,
29918,
2311,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
1678,
301,
29878,
353,
301,
29878,
29918,
842,
29918,
29881,
17630,
29961,
24713,
29918,
978,
29962,
13,
1678,
281,
29881,
353,
281,
29881,
29918,
842,
29918,
29881,
17630,
29961,
24713,
29918,
978,
29962,
13,
1678,
6410,
29918,
9891,
353,
341,
1660,
29931,
2209,
580,
13,
1678,
274,
1113,
29918,
6758,
29918,
9891,
353,
274,
1113,
29898,
449,
6229,
29918,
2311,
29922,
13148,
29918,
2311,
14352,
29896,
2314,
13,
1678,
1881,
29918,
2311,
29918,
842,
353,
518,
29916,
29889,
12181,
29961,
29900,
29962,
363,
921,
297,
1060,
29962,
13,
1678,
565,
2582,
29918,
2084,
297,
518,
4286,
29914,
9902,
29914,
2033,
29901,
13,
4706,
15595,
29918,
842,
353,
518,
2312,
29918,
842,
29918,
29881,
17630,
29961,
24713,
29918,
978,
5262,
13,
1678,
1683,
29901,
13,
4706,
15595,
29918,
842,
353,
518,
29900,
29889,
29900,
29896,
29892,
29871,
29900,
29889,
29896,
29892,
29871,
29900,
29889,
29945,
29892,
29871,
29900,
29889,
29929,
29892,
29871,
29900,
29889,
29929,
29929,
29962,
13,
13,
1678,
363,
15595,
297,
15595,
29918,
842,
29901,
13,
4706,
363,
260,
297,
3464,
29898,
14358,
29918,
3706,
1125,
13,
9651,
1596,
877,
1576,
6571,
29899,
386,
1065,
16410,
29991,
4286,
4830,
29898,
29873,
876,
13,
9651,
363,
474,
297,
3464,
29898,
1195,
4197,
29896,
29900,
29892,
7431,
29898,
15380,
2164,
29918,
29979,
4638,
22164,
13,
13,
18884,
8877,
29892,
612,
29918,
1688,
353,
2048,
29918,
2492,
29918,
24713,
29898,
24713,
29918,
978,
29892,
612,
29892,
3480,
29918,
1990,
29918,
333,
29922,
15380,
2164,
29918,
29979,
29961,
29875,
1402,
4464,
29922,
3035,
24713,
29918,
8513,
29897,
13,
18884,
1060,
29918,
14968,
29892,
1060,
29918,
1688,
353,
1889,
29918,
328,
29918,
24713,
29898,
29990,
29892,
8877,
29897,
13,
13,
18884,
396,
448,
2683,
2683,
1378,
4299,
6694,
13,
18884,
16717,
353,
29871,
29900,
13,
18884,
565,
4842,
305,
29889,
29883,
6191,
29889,
275,
29918,
16515,
7295,
13,
462,
1678,
4842,
305,
29889,
29883,
6191,
29889,
11288,
29918,
26776,
29918,
497,
29898,
26776,
29897,
13,
18884,
4842,
305,
29889,
11288,
29918,
26776,
29898,
26776,
29897,
13,
18884,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
4801,
837,
262,
4695,
353,
5852,
13,
18884,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
1785,
16580,
353,
5852,
13,
13,
18884,
1904,
353,
28241,
29918,
29725,
16036,
29898,
2080,
29918,
2311,
29918,
842,
29922,
2080,
29918,
2311,
29918,
842,
29892,
7546,
29918,
29879,
7093,
29922,
13148,
29918,
2311,
467,
517,
29898,
10141,
467,
8896,
580,
13,
18884,
7945,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
14968,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
5574,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
13,
18884,
396,
2702,
6694,
8792,
13,
18884,
21502,
12168,
353,
21502,
12168,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
18884,
274,
1113,
29918,
6758,
267,
353,
319,
19698,
29924,
1308,
580,
13,
18884,
1162,
29918,
6758,
267,
353,
319,
19698,
29924,
1308,
580,
13,
18884,
5994,
3950,
353,
5994,
29889,
3253,
314,
29898,
4299,
29889,
16744,
3285,
301,
29878,
29922,
29212,
29892,
7688,
29918,
7099,
388,
29922,
9970,
29897,
13,
13,
18884,
1904,
29889,
14968,
580,
13,
18884,
11196,
353,
29871,
29900,
13,
18884,
363,
21502,
305,
297,
3464,
29898,
3317,
29898,
1022,
2878,
29879,
22164,
13,
462,
1678,
7945,
12657,
353,
260,
29939,
18933,
29898,
14968,
12657,
29897,
13,
462,
1678,
565,
11033,
24713,
29918,
8513,
338,
525,
21355,
537,
2396,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
8216,
877,
29881,
17630,
29892,
21502,
305,
29912,
1118,
633,
8945,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
8216,
877,
29881,
17630,
29892,
21502,
305,
29912,
1118,
4226,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
462,
1678,
363,
22645,
29892,
9853,
297,
26985,
29898,
14968,
12657,
1125,
13,
462,
4706,
1018,
29901,
13,
462,
9651,
565,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
29897,
1405,
29871,
29896,
29901,
29871,
396,
363,
289,
29876,
29892,
9853,
2311,
1405,
29871,
29896,
13,
462,
18884,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
18884,
3405,
296,
29918,
842,
29892,
14391,
29918,
842,
353,
1904,
29898,
16175,
29897,
13,
13,
462,
18884,
8265,
29918,
6758,
353,
4842,
305,
29889,
3298,
359,
29898,
29896,
467,
517,
29898,
10141,
29897,
13,
462,
18884,
274,
1113,
29918,
6758,
29918,
353,
4842,
305,
29889,
3298,
359,
29898,
29896,
467,
517,
29898,
10141,
29897,
13,
462,
18884,
363,
1776,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
22164,
13,
462,
462,
1678,
565,
21502,
305,
529,
21502,
12168,
29961,
1493,
5387,
13,
462,
462,
4706,
343,
353,
9853,
29961,
1493,
29962,
13,
462,
462,
4706,
6410,
353,
6410,
29918,
9891,
29898,
4905,
29879,
29918,
842,
29961,
1493,
1402,
343,
29897,
13,
462,
462,
4706,
8265,
29918,
6758,
4619,
6410,
13,
13,
462,
462,
4706,
363,
325,
29918,
13140,
297,
3464,
29898,
1493,
718,
29871,
29896,
29892,
7431,
29898,
29990,
29918,
14968,
22164,
13,
462,
462,
9651,
1018,
29901,
13,
462,
462,
18884,
3151,
29918,
17630,
29918,
6758,
353,
274,
1113,
29918,
6758,
29918,
9891,
29889,
6758,
29898,
5066,
296,
29918,
842,
29961,
1493,
1402,
3405,
296,
29918,
842,
29961,
29894,
29918,
13140,
2314,
13,
462,
462,
9651,
5174,
29901,
13,
462,
462,
18884,
3151,
29918,
17630,
29918,
6758,
353,
4842,
305,
29889,
3298,
359,
29898,
29896,
467,
517,
29898,
10141,
29897,
13,
462,
462,
9651,
274,
1113,
29918,
6758,
29918,
4619,
3151,
29918,
17630,
29918,
6758,
13,
13,
462,
18884,
1162,
29918,
6758,
267,
29889,
5504,
29898,
276,
535,
29918,
6758,
29889,
667,
3285,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
462,
18884,
274,
1113,
29918,
6758,
267,
29889,
5504,
29898,
17630,
29918,
6758,
5396,
667,
3285,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
13,
462,
18884,
2025,
29918,
6758,
353,
313,
29896,
448,
15595,
29897,
334,
8265,
29918,
6758,
718,
15595,
334,
274,
1113,
29918,
6758,
29918,
13,
13,
462,
18884,
1400,
5878,
353,
525,
1162,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
1118,
274,
1113,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
3757,
29918,
6758,
267,
29889,
485,
29887,
29892,
274,
1113,
29918,
6758,
267,
29889,
485,
29887,
29897,
13,
13,
462,
18884,
5994,
3950,
29889,
9171,
29918,
5105,
580,
13,
462,
18884,
2025,
29918,
6758,
29889,
1627,
1328,
580,
13,
462,
18884,
4175,
29918,
13707,
29918,
5105,
29898,
20640,
3950,
29897,
29871,
396,
565,
4656,
3743,
4656,
29892,
278,
9853,
338,
451,
1304,
304,
2767,
278,
4128,
13,
462,
18884,
5994,
3950,
29889,
10568,
580,
13,
13,
462,
18884,
11196,
4619,
29871,
29896,
13,
13,
462,
9651,
7945,
12657,
29889,
842,
29918,
2490,
5878,
29898,
1188,
29922,
2490,
5878,
29897,
13,
462,
4706,
5174,
29901,
13,
462,
9651,
1596,
877,
1576,
1059,
22645,
338,
6571,
4286,
4830,
29898,
13140,
876,
13,
13,
18884,
396,
396,
448,
2683,
2683,
26589,
4299,
6724,
13,
18884,
1243,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
1688,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
8824,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
18884,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
462,
1678,
1904,
29889,
14513,
580,
13,
462,
1678,
19435,
353,
518,
2636,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
462,
1678,
363,
22645,
29892,
9853,
297,
26985,
29898,
29873,
29939,
18933,
29898,
1688,
12657,
22164,
13,
462,
4706,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
4706,
3151,
29918,
16175,
29918,
1557,
2361,
353,
1904,
29889,
657,
29918,
328,
29918,
1557,
2361,
29898,
16175,
29897,
13,
462,
4706,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
22164,
13,
462,
9651,
19435,
29961,
893,
1822,
4397,
29898,
2764,
29918,
16175,
29918,
1557,
2361,
29961,
893,
2314,
13,
462,
1678,
19435,
353,
518,
7345,
305,
29889,
4117,
29898,
1557,
2361,
29961,
893,
1402,
3964,
29922,
29900,
29897,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
462,
1678,
19435,
353,
5683,
29918,
29888,
3958,
29898,
1557,
2361,
29892,
10366,
2433,
485,
29887,
1495,
13,
13,
18884,
396,
448,
2683,
2683,
26589,
4299,
19745,
13,
18884,
696,
29883,
29892,
544,
29918,
273,
290,
29892,
544,
29918,
12324,
29892,
260,
22230,
353,
4078,
29918,
10198,
29918,
558,
29918,
2764,
345,
29918,
1272,
29898,
1557,
2361,
29922,
1557,
2361,
29892,
11073,
29922,
29979,
29918,
1688,
29892,
934,
29918,
2084,
29922,
8516,
29892,
26952,
29922,
8824,
29897,
13,
18884,
696,
29883,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
10198,
29897,
13,
18884,
544,
29918,
273,
290,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
273,
290,
29897,
13,
18884,
544,
29918,
12324,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
12324,
29897,
13,
18884,
260,
22230,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
6277,
29878,
29897,
13,
13,
18884,
628,
1904,
13,
13,
4706,
396,
4078,
278,
2582,
13,
4706,
565,
2582,
29918,
2084,
297,
518,
4286,
29914,
9902,
29914,
2033,
29901,
13,
13,
9651,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
29881,
17630,
742,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
9651,
2254,
29918,
2158,
29918,
9902,
29898,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
29881,
17630,
1495,
13,
4706,
1683,
29901,
13,
9651,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
29881,
17630,
29918,
2312,
648,
29913,
4286,
4830,
29898,
2312,
511,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
9651,
2254,
29918,
2158,
29918,
9902,
29898,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
29881,
17630,
29918,
2312,
648,
29913,
4286,
4830,
29898,
2312,
876,
13,
13,
13,
1753,
270,
29887,
17630,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
29892,
4742,
29892,
18698,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
2433,
1195,
272,
537,
29374,
13,
1678,
4842,
305,
29889,
842,
29918,
4381,
29918,
20158,
29918,
1853,
29898,
7345,
305,
29889,
11843,
29911,
6073,
29897,
13,
13,
1678,
696,
29883,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
273,
290,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
12324,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
260,
22230,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
13,
13,
1678,
396,
6694,
2295,
13,
1678,
9853,
29918,
2311,
353,
9853,
29918,
2311,
29918,
842,
29918,
20726,
17630,
29961,
24713,
29918,
978,
29962,
13,
1678,
301,
29878,
353,
301,
29878,
29918,
842,
29918,
20726,
17630,
29961,
24713,
29918,
978,
29962,
13,
1678,
281,
29881,
353,
281,
29881,
29918,
842,
29918,
20726,
17630,
29961,
24713,
29918,
978,
29962,
13,
1678,
7546,
29918,
2311,
353,
7546,
29918,
2311,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
1678,
6410,
29918,
9891,
353,
341,
1660,
29931,
2209,
580,
13,
1678,
330,
17630,
29918,
6758,
29918,
9891,
353,
330,
17630,
29898,
449,
6229,
29918,
2311,
29922,
13148,
29918,
2311,
14352,
29896,
2314,
13,
1678,
1881,
29918,
2311,
29918,
842,
353,
518,
29916,
29889,
12181,
29961,
29900,
29962,
363,
921,
297,
1060,
29962,
13,
1678,
565,
2582,
29918,
2084,
297,
518,
4286,
29914,
9902,
29914,
2033,
29901,
13,
4706,
15595,
29918,
842,
353,
518,
2312,
29918,
842,
29918,
20726,
17630,
29961,
24713,
29918,
978,
5262,
13,
1678,
1683,
29901,
13,
4706,
15595,
29918,
842,
353,
518,
29900,
29889,
29900,
29896,
29892,
29871,
29900,
29889,
29896,
29892,
29871,
29900,
29889,
29945,
29892,
29871,
29900,
29889,
29929,
29892,
29871,
29900,
29889,
29929,
29929,
29962,
13,
13,
1678,
363,
15595,
297,
15595,
29918,
842,
29901,
13,
4706,
363,
260,
297,
3464,
29898,
14358,
29918,
3706,
1125,
13,
9651,
1596,
877,
1576,
6571,
29899,
386,
1065,
16410,
29991,
4286,
4830,
29898,
29873,
876,
13,
9651,
363,
474,
297,
3464,
29898,
1195,
4197,
29896,
29900,
29892,
7431,
29898,
15380,
2164,
29918,
29979,
4638,
22164,
13,
13,
18884,
8877,
29892,
612,
29918,
1688,
353,
2048,
29918,
2492,
29918,
24713,
29898,
24713,
29918,
978,
29892,
612,
29892,
3480,
29918,
1990,
29918,
333,
29922,
15380,
2164,
29918,
29979,
29961,
29875,
1402,
4464,
29922,
3035,
24713,
29918,
8513,
29897,
13,
18884,
1060,
29918,
14968,
29892,
1060,
29918,
1688,
353,
1889,
29918,
328,
29918,
24713,
29898,
29990,
29892,
8877,
29897,
13,
13,
18884,
396,
448,
2683,
2683,
1378,
4299,
6694,
13,
18884,
16717,
353,
29871,
29900,
13,
18884,
565,
4842,
305,
29889,
29883,
6191,
29889,
275,
29918,
16515,
7295,
13,
462,
1678,
4842,
305,
29889,
29883,
6191,
29889,
11288,
29918,
26776,
29918,
497,
29898,
26776,
29897,
13,
18884,
4842,
305,
29889,
11288,
29918,
26776,
29898,
26776,
29897,
13,
18884,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
4801,
837,
262,
4695,
353,
5852,
13,
18884,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
1785,
16580,
353,
5852,
13,
13,
18884,
1904,
353,
28241,
29918,
29725,
16036,
29898,
2080,
29918,
2311,
29918,
842,
29922,
2080,
29918,
2311,
29918,
842,
29892,
7546,
29918,
29879,
7093,
29922,
13148,
29918,
2311,
467,
517,
29898,
10141,
467,
8896,
580,
13,
18884,
7945,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
14968,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
5574,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
13,
18884,
396,
2702,
6694,
8792,
13,
18884,
21502,
12168,
353,
21502,
12168,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
18884,
330,
17630,
29918,
6758,
267,
353,
319,
19698,
29924,
1308,
580,
13,
18884,
1162,
29918,
6758,
267,
353,
319,
19698,
29924,
1308,
580,
13,
18884,
5994,
3950,
353,
5994,
29889,
3253,
314,
29898,
4299,
29889,
16744,
3285,
301,
29878,
29922,
29212,
29892,
7688,
29918,
7099,
388,
29922,
9970,
29897,
13,
13,
18884,
1904,
29889,
14968,
580,
13,
18884,
11196,
353,
29871,
29900,
13,
18884,
363,
21502,
305,
297,
3464,
29898,
3317,
29898,
1022,
2878,
29879,
22164,
13,
462,
1678,
7945,
12657,
353,
260,
29939,
18933,
29898,
14968,
12657,
29897,
13,
462,
1678,
565,
11033,
24713,
29918,
8513,
338,
525,
21355,
537,
2396,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
8216,
877,
20726,
17630,
29892,
21502,
305,
29912,
1118,
633,
8945,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
8216,
877,
20726,
17630,
29892,
21502,
305,
29912,
1118,
4226,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
462,
1678,
363,
22645,
29892,
9853,
297,
26985,
29898,
14968,
12657,
1125,
13,
462,
4706,
396,
1018,
29901,
13,
462,
4706,
565,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
29897,
1405,
29871,
29896,
29901,
29871,
396,
363,
289,
29876,
29892,
9853,
2311,
1405,
29871,
29896,
13,
462,
9651,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
9651,
3405,
296,
29918,
842,
29892,
14391,
29918,
842,
353,
1904,
29898,
16175,
29897,
13,
13,
462,
9651,
8265,
29918,
6758,
353,
4842,
305,
29889,
3298,
359,
29898,
29896,
467,
517,
29898,
10141,
29897,
13,
462,
9651,
1018,
29901,
13,
462,
18884,
330,
17630,
29918,
6758,
29918,
353,
330,
17630,
29918,
6758,
29918,
9891,
29889,
6758,
29898,
5066,
296,
29918,
842,
29897,
13,
462,
9651,
5174,
29901,
13,
462,
18884,
330,
17630,
29918,
6758,
29918,
353,
4842,
305,
29889,
3298,
359,
29898,
29896,
467,
517,
29898,
10141,
29897,
13,
462,
9651,
363,
1776,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
22164,
13,
462,
18884,
565,
21502,
305,
529,
21502,
12168,
29961,
1493,
5387,
13,
462,
462,
1678,
343,
353,
9853,
29961,
1493,
29962,
13,
462,
462,
1678,
6410,
353,
6410,
29918,
9891,
29898,
4905,
29879,
29918,
842,
29961,
1493,
1402,
343,
29897,
13,
462,
462,
1678,
8265,
29918,
6758,
4619,
6410,
13,
13,
462,
9651,
1162,
29918,
6758,
267,
29889,
5504,
29898,
276,
535,
29918,
6758,
29889,
667,
3285,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
462,
9651,
330,
17630,
29918,
6758,
267,
29889,
5504,
29898,
29887,
17630,
29918,
6758,
5396,
667,
3285,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
13,
462,
9651,
2025,
29918,
6758,
353,
313,
29896,
448,
15595,
29897,
334,
8265,
29918,
6758,
718,
15595,
334,
330,
17630,
29918,
6758,
29918,
13,
13,
462,
9651,
1400,
5878,
353,
525,
1162,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
1118,
330,
17630,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
3757,
29918,
6758,
267,
29889,
485,
29887,
29892,
330,
17630,
29918,
6758,
267,
29889,
485,
29887,
29897,
13,
13,
462,
9651,
5994,
3950,
29889,
9171,
29918,
5105,
580,
13,
462,
9651,
2025,
29918,
6758,
29889,
1627,
1328,
580,
13,
462,
9651,
4175,
29918,
13707,
29918,
5105,
29898,
20640,
3950,
29897,
29871,
396,
565,
4656,
3743,
4656,
29892,
278,
9853,
338,
451,
1304,
304,
2767,
278,
4128,
13,
462,
9651,
5994,
3950,
29889,
10568,
580,
13,
13,
462,
9651,
11196,
4619,
29871,
29896,
13,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
2490,
5878,
29898,
1188,
29922,
2490,
5878,
29897,
13,
13,
18884,
396,
396,
448,
2683,
2683,
26589,
4299,
6724,
13,
18884,
1243,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
1688,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
8824,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
18884,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
462,
1678,
1904,
29889,
14513,
580,
13,
462,
1678,
19435,
353,
518,
2636,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
462,
1678,
363,
22645,
29892,
9853,
297,
26985,
29898,
29873,
29939,
18933,
29898,
1688,
12657,
22164,
13,
462,
4706,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
4706,
3151,
29918,
16175,
29918,
1557,
2361,
353,
1904,
29889,
657,
29918,
328,
29918,
1557,
2361,
29898,
16175,
29897,
13,
462,
4706,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
22164,
13,
462,
9651,
19435,
29961,
893,
1822,
4397,
29898,
2764,
29918,
16175,
29918,
1557,
2361,
29961,
893,
2314,
13,
462,
1678,
19435,
353,
518,
7345,
305,
29889,
4117,
29898,
1557,
2361,
29961,
893,
1402,
3964,
29922,
29900,
29897,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
462,
1678,
19435,
353,
5683,
29918,
29888,
3958,
29898,
1557,
2361,
29892,
10366,
2433,
485,
29887,
1495,
13,
13,
18884,
396,
448,
2683,
2683,
26589,
4299,
19745,
13,
18884,
696,
29883,
29892,
544,
29918,
273,
290,
29892,
544,
29918,
12324,
29892,
260,
22230,
353,
4078,
29918,
10198,
29918,
558,
29918,
2764,
345,
29918,
1272,
29898,
1557,
2361,
29922,
1557,
2361,
29892,
11073,
29922,
29979,
29918,
1688,
29892,
934,
29918,
2084,
29922,
8516,
29892,
26952,
29922,
8824,
29897,
13,
18884,
696,
29883,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
10198,
29897,
13,
18884,
544,
29918,
273,
290,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
273,
290,
29897,
13,
18884,
544,
29918,
12324,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
12324,
29897,
13,
18884,
260,
22230,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
6277,
29878,
29897,
13,
13,
13,
18884,
628,
1904,
13,
13,
4706,
396,
4078,
278,
2582,
13,
4706,
565,
2582,
29918,
2084,
297,
518,
4286,
29914,
9902,
29914,
2033,
29901,
13,
9651,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
20726,
17630,
742,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
9651,
2254,
29918,
2158,
29918,
9902,
29898,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
20726,
17630,
1495,
13,
4706,
1683,
29901,
13,
9651,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
20726,
17630,
29918,
2312,
648,
29913,
4286,
4830,
29898,
2312,
511,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
9651,
2254,
29918,
2158,
29918,
9902,
29898,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
20726,
17630,
29918,
2312,
648,
29913,
4286,
4830,
29898,
2312,
876,
13,
13,
13,
1753,
2560,
29918,
29324,
29928,
7597,
7858,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
29892,
4742,
29892,
18698,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
2433,
1195,
272,
537,
29374,
13,
1678,
4842,
305,
29889,
842,
29918,
4381,
29918,
20158,
29918,
1853,
29898,
7345,
305,
29889,
11843,
29911,
6073,
29897,
13,
13,
1678,
696,
29883,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
273,
290,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
12324,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
260,
22230,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
13,
13,
1678,
396,
6694,
2295,
13,
1678,
9853,
29918,
2311,
353,
9853,
29918,
2311,
29918,
842,
29918,
29881,
4501,
1289,
29961,
24713,
29918,
978,
29962,
13,
1678,
7546,
29918,
2311,
353,
7546,
29918,
2311,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
1678,
301,
29878,
353,
301,
29878,
29918,
842,
29918,
29881,
4501,
1289,
29961,
24713,
29918,
978,
29962,
13,
1678,
281,
29881,
353,
281,
29881,
29918,
842,
29918,
29881,
4501,
1289,
29961,
24713,
29918,
978,
29962,
13,
1678,
6410,
29918,
9891,
353,
341,
1660,
29931,
2209,
580,
13,
1678,
1881,
29918,
2311,
29918,
842,
353,
518,
29916,
29889,
12181,
29961,
29900,
29962,
363,
921,
297,
1060,
29962,
13,
1678,
321,
567,
353,
29871,
29896,
29872,
29899,
29896,
29900,
13,
1678,
758,
14968,
353,
5852,
29871,
396,
12266,
3692,
278,
360,
7597,
7858,
338,
758,
29899,
3018,
1312,
763,
319,
29923,
13,
1678,
4464,
353,
525,
650,
29918,
1990,
29915,
13,
1678,
4974,
4464,
297,
6024,
650,
29918,
1990,
742,
525,
2695,
29918,
9917,
2033,
13,
1678,
565,
4464,
338,
525,
2695,
29918,
9917,
2396,
13,
4706,
4948,
353,
29871,
29900,
29889,
29896,
13,
4706,
14294,
29918,
1022,
2878,
29879,
353,
29871,
29945,
13,
4706,
4974,
14294,
29918,
1022,
2878,
29879,
5277,
1375,
29898,
1022,
2878,
29879,
29918,
842,
29961,
24713,
29918,
978,
2314,
13,
13,
1678,
363,
260,
297,
3464,
29898,
14358,
29918,
3706,
1125,
13,
4706,
1596,
877,
1576,
6571,
29899,
386,
1065,
16410,
29991,
4286,
4830,
29898,
29873,
876,
13,
4706,
363,
474,
297,
3464,
29898,
1195,
4197,
29896,
29900,
29892,
7431,
29898,
15380,
2164,
29918,
29979,
4638,
22164,
13,
13,
9651,
8877,
29892,
612,
29918,
1688,
353,
2048,
29918,
2492,
29918,
24713,
29898,
24713,
29918,
978,
29892,
612,
29892,
3480,
29918,
1990,
29918,
333,
29922,
15380,
2164,
29918,
29979,
29961,
29875,
1402,
4464,
29922,
3035,
24713,
29918,
8513,
29897,
13,
9651,
1060,
29918,
14968,
29892,
1060,
29918,
1688,
353,
1889,
29918,
328,
29918,
24713,
29898,
29990,
29892,
8877,
29897,
13,
13,
9651,
396,
448,
2683,
2683,
1378,
4282,
1418,
7003,
1664,
1090,
1857,
2295,
29889,
13,
9651,
7945,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
14968,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
5574,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
9651,
1243,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
1688,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
8824,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
13,
9651,
16717,
353,
29871,
29900,
13,
9651,
565,
4842,
305,
29889,
29883,
6191,
29889,
275,
29918,
16515,
7295,
13,
18884,
4842,
305,
29889,
29883,
6191,
29889,
11288,
29918,
26776,
29918,
497,
29898,
26776,
29897,
13,
9651,
4842,
305,
29889,
11288,
29918,
26776,
29898,
26776,
29897,
13,
9651,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
4801,
837,
262,
4695,
353,
5852,
13,
9651,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
1785,
16580,
353,
5852,
13,
13,
9651,
396,
448,
2683,
2683,
1378,
1457,
29899,
26495,
8792,
13,
9651,
565,
758,
14968,
29901,
13,
18884,
1904,
353,
286,
1564,
29872,
29918,
328,
29898,
2080,
29918,
2311,
29918,
842,
29922,
2080,
29918,
2311,
29918,
842,
29892,
7546,
29918,
29879,
7093,
29922,
13148,
29918,
2311,
467,
517,
29898,
10141,
29897,
13,
18884,
21502,
12168,
353,
21502,
12168,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
18884,
28495,
29918,
842,
353,
518,
29909,
19698,
29924,
1308,
580,
363,
474,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
18884,
5994,
3950,
353,
518,
20640,
29889,
3253,
314,
29898,
4299,
29889,
3660,
29918,
842,
29961,
29875,
1822,
16744,
3285,
301,
29878,
29922,
29212,
29892,
7688,
29918,
7099,
388,
29922,
9970,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
13,
18884,
1904,
29889,
14968,
580,
13,
18884,
11196,
353,
29871,
29900,
13,
18884,
363,
21502,
305,
297,
3464,
29898,
3317,
29898,
1022,
2878,
29879,
22164,
13,
462,
1678,
7945,
12657,
353,
260,
29939,
18933,
29898,
14968,
12657,
29897,
13,
462,
1678,
565,
11033,
24713,
29918,
8513,
338,
525,
21355,
537,
2396,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
8216,
877,
29881,
4501,
1289,
29892,
21502,
305,
29912,
1118,
633,
8945,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
8216,
877,
29881,
4501,
1289,
29892,
21502,
305,
29912,
1118,
4226,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
462,
1678,
363,
22645,
29892,
9853,
297,
26985,
29898,
14968,
12657,
1125,
13,
462,
4706,
1400,
5878,
353,
6629,
13,
462,
4706,
565,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
29897,
1405,
29871,
29896,
29901,
29871,
396,
363,
289,
29876,
29892,
9853,
2311,
1405,
29871,
29896,
13,
462,
9651,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
9651,
14391,
29918,
842,
353,
1904,
29898,
16175,
29897,
13,
462,
9651,
363,
1776,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
22164,
13,
462,
18884,
565,
21502,
305,
529,
21502,
12168,
29961,
1493,
5387,
13,
462,
462,
1678,
343,
353,
9853,
29961,
1493,
29962,
13,
462,
462,
1678,
6410,
353,
6410,
29918,
9891,
29898,
4905,
29879,
29918,
842,
29961,
1493,
1402,
343,
29897,
13,
13,
462,
462,
1678,
5994,
3950,
29961,
1493,
1822,
9171,
29918,
5105,
580,
13,
462,
462,
1678,
6410,
29889,
1627,
1328,
580,
13,
462,
462,
1678,
5994,
3950,
29961,
1493,
1822,
10568,
580,
13,
13,
462,
462,
1678,
28495,
29918,
842,
29961,
1493,
1822,
5504,
29898,
6758,
29889,
667,
3285,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
462,
462,
1678,
3151,
29918,
2490,
5878,
353,
525,
1776,
29912,
1118,
1162,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
1493,
29892,
28495,
29918,
842,
29961,
1493,
1822,
485,
29887,
29897,
13,
13,
462,
462,
1678,
1400,
5878,
4619,
3151,
29918,
2490,
5878,
13,
462,
9651,
11196,
4619,
29871,
29896,
13,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
2490,
5878,
29898,
1188,
29922,
2490,
5878,
29897,
13,
13,
18884,
628,
7945,
12657,
13,
13,
9651,
396,
396,
448,
2683,
2683,
26589,
842,
315,
363,
2473,
29899,
1493,
360,
7597,
7858,
13,
9651,
7945,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
14968,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
5574,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
9651,
28241,
29928,
7597,
7858,
353,
286,
854,
29883,
29898,
2080,
29918,
2311,
29918,
842,
29922,
2080,
29918,
2311,
29918,
842,
29892,
7546,
29918,
29879,
7093,
29922,
13148,
29918,
2311,
467,
517,
29898,
10141,
29897,
13,
9651,
263,
29872,
29918,
8977,
353,
1904,
29889,
3859,
29918,
8977,
580,
13,
9651,
270,
4501,
1289,
29918,
8977,
353,
28241,
29928,
7597,
7858,
29889,
3859,
29918,
8977,
580,
13,
9651,
263,
29872,
29918,
8977,
353,
426,
29895,
29901,
325,
363,
413,
29892,
325,
297,
263,
29872,
29918,
8977,
29889,
7076,
580,
565,
413,
297,
270,
4501,
1289,
29918,
8977,
29913,
13,
9651,
270,
4501,
1289,
29918,
8977,
29889,
5504,
29898,
3660,
29918,
8977,
29897,
13,
9651,
28241,
29928,
7597,
7858,
29889,
1359,
29918,
3859,
29918,
8977,
29898,
29881,
4501,
1289,
29918,
8977,
29897,
13,
13,
9651,
28241,
29928,
7597,
7858,
29889,
14513,
580,
13,
9651,
315,
29918,
842,
353,
518,
2636,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
9651,
390,
29918,
842,
353,
518,
7345,
305,
29889,
3298,
359,
29898,
29896,
467,
517,
29898,
10141,
29897,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
9651,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
18884,
363,
22645,
29892,
9853,
297,
26985,
29898,
29873,
29939,
18933,
29898,
14968,
12657,
22164,
13,
462,
1678,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
1678,
3151,
29918,
16175,
29918,
5066,
296,
353,
28241,
29928,
7597,
7858,
29898,
16175,
29897,
13,
462,
1678,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
22164,
13,
462,
4706,
315,
29918,
842,
29961,
893,
1822,
4397,
29898,
2764,
29918,
16175,
29918,
5066,
296,
29961,
893,
1822,
4801,
496,
3101,
13,
18884,
315,
29918,
842,
353,
518,
7345,
305,
29889,
4117,
29898,
29907,
29918,
842,
29961,
617,
1402,
3964,
29922,
29900,
29897,
363,
21759,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
18884,
363,
21759,
297,
3464,
29898,
2435,
29898,
29907,
29918,
842,
22164,
13,
462,
1678,
13128,
353,
4842,
305,
29889,
12676,
29898,
29907,
29918,
842,
29961,
617,
1402,
3964,
29922,
29900,
29897,
13,
462,
1678,
13128,
15625,
6897,
29898,
7050,
29897,
529,
321,
567,
29897,
669,
313,
7050,
529,
29871,
29900,
4638,
353,
448,
8961,
13,
462,
1678,
13128,
15625,
6897,
29898,
7050,
29897,
529,
321,
567,
29897,
669,
313,
7050,
1405,
29871,
29900,
4638,
353,
321,
567,
13,
462,
1678,
315,
29918,
842,
29961,
617,
29962,
353,
13128,
13,
13,
9651,
396,
448,
2683,
2683,
807,
14968,
278,
360,
7597,
7858,
13,
13,
9651,
21502,
12168,
353,
21502,
12168,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
9651,
28495,
29918,
842,
353,
518,
29909,
19698,
29924,
1308,
580,
363,
474,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
9651,
5994,
3950,
353,
518,
20640,
29889,
3253,
314,
29898,
29324,
29928,
7597,
7858,
29889,
3660,
29918,
842,
29961,
29875,
1822,
16744,
3285,
301,
29878,
29922,
29212,
29892,
7688,
29918,
7099,
388,
29922,
9970,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
13,
9651,
28241,
29928,
7597,
7858,
29889,
14968,
580,
13,
9651,
11196,
353,
29871,
29900,
13,
9651,
363,
21502,
305,
297,
3464,
29898,
3317,
29898,
1022,
2878,
29879,
22164,
13,
13,
18884,
7945,
12657,
353,
260,
29939,
18933,
29898,
14968,
12657,
29897,
13,
18884,
565,
11033,
24713,
29918,
8513,
338,
525,
21355,
537,
2396,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
8216,
877,
29881,
4501,
1289,
29892,
21502,
305,
29912,
1118,
633,
8945,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
18884,
1683,
29901,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
8216,
877,
29881,
4501,
1289,
29892,
21502,
305,
29912,
1118,
4226,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
18884,
363,
22645,
29892,
9853,
297,
26985,
29898,
14968,
12657,
1125,
13,
462,
1678,
1400,
5878,
353,
6629,
13,
462,
1678,
565,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
29897,
1405,
29871,
29896,
29901,
29871,
396,
363,
289,
29876,
29892,
9853,
2311,
1405,
29871,
29896,
13,
462,
4706,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
13,
462,
4706,
14391,
29918,
842,
353,
28241,
29928,
7597,
7858,
29898,
16175,
29897,
13,
462,
4706,
363,
1776,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
22164,
13,
462,
9651,
565,
21502,
305,
529,
21502,
12168,
29961,
1493,
5387,
13,
462,
18884,
3151,
29918,
29883,
353,
315,
29918,
842,
29961,
1493,
1822,
517,
29898,
10141,
29897,
13,
462,
18884,
3151,
29918,
4905,
353,
14391,
29918,
842,
29961,
1493,
29962,
13,
13,
462,
18884,
1320,
353,
4842,
305,
29889,
2083,
3552,
2764,
29918,
4905,
448,
3151,
29918,
29883,
29897,
3579,
29871,
29906,
29892,
3964,
29922,
29896,
29897,
13,
462,
18884,
565,
4464,
338,
525,
2695,
29918,
9917,
2396,
13,
462,
462,
1678,
19435,
353,
1320,
448,
390,
29918,
842,
29961,
1493,
29962,
3579,
29871,
29906,
13,
462,
462,
1678,
6410,
353,
390,
29918,
842,
29961,
1493,
29962,
3579,
29871,
29906,
718,
313,
29896,
847,
4948,
29897,
334,
4842,
305,
29889,
12676,
29898,
7345,
305,
29889,
3317,
29898,
7345,
305,
29889,
3298,
359,
29918,
4561,
29898,
1557,
2361,
511,
19435,
876,
13,
462,
18884,
1683,
29901,
13,
462,
462,
1678,
6410,
353,
4842,
305,
29889,
12676,
29898,
5721,
29897,
13,
13,
462,
18884,
5994,
3950,
29961,
1493,
1822,
9171,
29918,
5105,
580,
13,
462,
18884,
6410,
29889,
1627,
1328,
580,
13,
462,
18884,
5994,
3950,
29961,
1493,
1822,
10568,
580,
13,
13,
462,
18884,
565,
4464,
338,
525,
2695,
29918,
9917,
29915,
322,
21502,
305,
6736,
14294,
29918,
1022,
2878,
29879,
29901,
13,
462,
462,
1678,
390,
29918,
842,
29961,
1493,
1822,
1272,
353,
4842,
305,
29889,
20158,
29898,
657,
29918,
13471,
29898,
5721,
29892,
4948,
511,
4742,
29922,
10141,
29897,
13,
13,
462,
18884,
28495,
29918,
842,
29961,
1493,
1822,
5504,
29898,
6758,
29889,
667,
3285,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
462,
18884,
565,
4464,
338,
525,
2695,
29918,
9917,
2396,
13,
462,
462,
1678,
3151,
29918,
2490,
5878,
353,
525,
1776,
29912,
1118,
24488,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
390,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
1493,
29892,
28495,
29918,
842,
29961,
1493,
1822,
485,
29887,
29892,
390,
29918,
842,
29961,
1493,
1822,
667,
3101,
13,
462,
18884,
1683,
29901,
13,
462,
462,
1678,
3151,
29918,
2490,
5878,
353,
525,
1776,
29912,
1118,
24488,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
1493,
29892,
28495,
29918,
842,
29961,
1493,
1822,
485,
29887,
29897,
13,
13,
462,
18884,
1400,
5878,
4619,
3151,
29918,
2490,
5878,
13,
462,
4706,
11196,
4619,
29871,
29896,
13,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
2490,
5878,
29898,
1188,
29922,
2490,
5878,
29897,
13,
13,
9651,
396,
448,
2683,
2683,
26589,
4299,
10115,
17540,
13,
9651,
28241,
29928,
7597,
7858,
29889,
14513,
580,
13,
9651,
19435,
29918,
842,
353,
518,
2636,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
9651,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
18884,
363,
22645,
29892,
9853,
297,
26985,
29898,
29873,
29939,
18933,
29898,
1688,
12657,
22164,
13,
462,
1678,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
1678,
3151,
29918,
16175,
29918,
4905,
29879,
353,
28241,
29928,
7597,
7858,
29898,
16175,
29897,
13,
462,
1678,
363,
1776,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
22164,
13,
462,
4706,
19435,
353,
448,
29896,
29889,
334,
4842,
305,
29889,
2083,
3552,
2764,
29918,
16175,
29918,
4905,
29879,
29961,
1493,
29962,
448,
315,
29918,
842,
29961,
1493,
2314,
3579,
29871,
29906,
29892,
3964,
29922,
29896,
29892,
3013,
6229,
29922,
5574,
29897,
13,
462,
4706,
19435,
29918,
842,
29961,
1493,
1822,
4397,
29898,
1557,
2361,
29889,
4801,
496,
3101,
13,
18884,
19435,
29918,
842,
353,
518,
7345,
305,
29889,
4117,
29898,
1557,
2361,
29918,
842,
29961,
893,
1402,
3964,
29922,
29900,
29897,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
9651,
19435,
353,
5683,
29918,
29888,
3958,
29898,
1557,
2361,
29918,
842,
29892,
10366,
2433,
485,
29887,
1495,
13,
13,
9651,
396,
448,
2683,
2683,
26589,
4299,
19745,
13,
9651,
696,
29883,
29892,
544,
29918,
273,
290,
29892,
544,
29918,
12324,
29892,
260,
22230,
353,
4078,
29918,
10198,
29918,
558,
29918,
2764,
345,
29918,
1272,
29898,
1557,
2361,
29922,
1557,
2361,
29892,
11073,
29922,
29979,
29918,
1688,
29892,
934,
29918,
2084,
29922,
8516,
29892,
26952,
29922,
8824,
29897,
13,
9651,
696,
29883,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
10198,
29897,
13,
9651,
544,
29918,
273,
290,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
273,
290,
29897,
13,
9651,
544,
29918,
12324,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
12324,
29897,
13,
9651,
260,
22230,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
6277,
29878,
29897,
13,
13,
13,
9651,
628,
1904,
13,
13,
1678,
396,
4078,
278,
2582,
13,
1678,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
29881,
4501,
1289,
742,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
1678,
2254,
29918,
2158,
29918,
9902,
29898,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
29881,
4501,
1289,
1495,
13,
13,
13,
1753,
28241,
29918,
2616,
336,
29872,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
29892,
4742,
29892,
18698,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
2433,
1195,
272,
537,
29374,
13,
1678,
4842,
305,
29889,
842,
29918,
4381,
29918,
20158,
29918,
1853,
29898,
7345,
305,
29889,
11843,
29911,
6073,
29897,
13,
13,
1678,
696,
29883,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
273,
290,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
12324,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
260,
22230,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
13,
13,
1678,
396,
6694,
2295,
13,
1678,
9853,
29918,
2311,
353,
9853,
29918,
2311,
29918,
842,
29918,
29725,
29961,
24713,
29918,
978,
29962,
13,
1678,
301,
29878,
353,
301,
29878,
29918,
842,
29918,
29725,
29961,
24713,
29918,
978,
29962,
13,
1678,
281,
29881,
353,
281,
29881,
29918,
842,
29918,
29725,
29961,
24713,
29918,
978,
29962,
13,
1678,
7546,
29918,
2311,
353,
7546,
29918,
2311,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
1678,
6410,
29918,
9891,
353,
341,
1660,
29931,
2209,
580,
13,
1678,
1881,
29918,
2311,
29918,
842,
353,
518,
29916,
29889,
12181,
29961,
29900,
29962,
363,
921,
297,
1060,
29962,
13,
1678,
565,
2582,
29918,
2084,
297,
518,
4286,
29914,
9902,
29914,
2033,
29901,
13,
4706,
15595,
29918,
842,
353,
518,
2312,
29918,
842,
29918,
29725,
29961,
24713,
29918,
978,
5262,
13,
1678,
1683,
29901,
13,
4706,
15595,
29918,
842,
353,
518,
29900,
29889,
29900,
29896,
29892,
29871,
29900,
29889,
29896,
29892,
29871,
29900,
29889,
29945,
29892,
29871,
29900,
29889,
29929,
29892,
29871,
29900,
29889,
29929,
29929,
29962,
13,
13,
1678,
363,
15595,
297,
15595,
29918,
842,
29901,
13,
4706,
363,
260,
297,
3464,
29898,
14358,
29918,
3706,
1125,
13,
9651,
1596,
877,
1576,
6571,
29899,
386,
1065,
16410,
29991,
4286,
4830,
29898,
29873,
876,
13,
9651,
363,
474,
297,
3464,
29898,
1195,
4197,
29896,
29900,
29892,
7431,
29898,
15380,
2164,
29918,
29979,
4638,
22164,
13,
18884,
8877,
29892,
612,
29918,
1688,
353,
2048,
29918,
2492,
29918,
24713,
29898,
24713,
29918,
978,
29892,
612,
29892,
3480,
29918,
1990,
29918,
333,
29922,
15380,
2164,
29918,
29979,
29961,
29875,
1402,
4464,
29922,
3035,
24713,
29918,
8513,
29897,
13,
18884,
1060,
29918,
14968,
29892,
1060,
29918,
1688,
353,
1889,
29918,
328,
29918,
24713,
29898,
29990,
29892,
8877,
29897,
13,
13,
18884,
396,
448,
2683,
2683,
1378,
4299,
6694,
13,
18884,
16717,
353,
29871,
29900,
13,
18884,
565,
4842,
305,
29889,
29883,
6191,
29889,
275,
29918,
16515,
7295,
13,
462,
1678,
4842,
305,
29889,
29883,
6191,
29889,
11288,
29918,
26776,
29918,
497,
29898,
26776,
29897,
13,
18884,
4842,
305,
29889,
11288,
29918,
26776,
29898,
26776,
29897,
13,
18884,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
4801,
837,
262,
4695,
353,
5852,
13,
18884,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
1785,
16580,
353,
5852,
13,
13,
18884,
1904,
353,
28241,
29918,
29725,
16036,
29898,
2080,
29918,
2311,
29918,
842,
29922,
2080,
29918,
2311,
29918,
842,
29892,
7546,
29918,
29879,
7093,
29922,
13148,
29918,
2311,
467,
517,
29898,
10141,
467,
8896,
580,
13,
18884,
7945,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
14968,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
5574,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
13,
18884,
396,
2702,
6694,
8792,
13,
18884,
21502,
12168,
353,
21502,
12168,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
18884,
1162,
29918,
6758,
267,
353,
319,
19698,
29924,
1308,
580,
13,
18884,
27760,
29918,
6758,
267,
353,
319,
19698,
29924,
1308,
580,
13,
13,
18884,
5994,
3950,
353,
5994,
29889,
3253,
314,
29898,
4299,
29889,
16744,
3285,
301,
29878,
29922,
29212,
29892,
7688,
29918,
7099,
388,
29922,
9970,
29897,
13,
13,
18884,
1904,
29889,
14968,
580,
13,
18884,
11196,
353,
29871,
29900,
13,
18884,
363,
21502,
305,
297,
3464,
29898,
3317,
29898,
1022,
2878,
29879,
22164,
13,
462,
1678,
7945,
12657,
353,
260,
29939,
18933,
29898,
14968,
12657,
29897,
13,
462,
1678,
565,
11033,
24713,
29918,
8513,
338,
525,
21355,
537,
2396,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
8216,
877,
29725,
29892,
21502,
305,
29912,
1118,
633,
8945,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
8216,
877,
29725,
29892,
21502,
305,
29912,
1118,
4226,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
462,
1678,
363,
22645,
29892,
9853,
297,
26985,
29898,
14968,
12657,
1125,
13,
462,
4706,
565,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
29897,
1405,
29871,
29896,
29901,
29871,
396,
363,
289,
29876,
29892,
9853,
2311,
1405,
29871,
29896,
13,
462,
9651,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
9651,
3405,
296,
29918,
842,
29892,
14391,
29918,
842,
353,
1904,
29898,
16175,
29897,
13,
13,
462,
9651,
8265,
29918,
6758,
353,
4842,
305,
29889,
3298,
359,
29898,
29896,
467,
517,
29898,
10141,
29897,
13,
462,
9651,
27760,
29918,
6758,
353,
4842,
305,
29889,
3298,
359,
29898,
29896,
467,
517,
29898,
10141,
29897,
13,
462,
9651,
363,
1776,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
22164,
13,
462,
18884,
565,
21502,
305,
529,
21502,
12168,
29961,
1493,
5387,
13,
462,
462,
1678,
343,
353,
9853,
29961,
1493,
29962,
13,
462,
462,
1678,
6410,
353,
6410,
29918,
9891,
29898,
4905,
29879,
29918,
842,
29961,
1493,
1402,
343,
29897,
13,
13,
462,
462,
1678,
8265,
29918,
6758,
4619,
6410,
13,
462,
462,
1678,
363,
325,
29918,
13140,
297,
3464,
29898,
1493,
718,
29871,
29896,
29892,
7431,
29898,
29990,
29918,
14968,
22164,
13,
462,
462,
4706,
3151,
29918,
29725,
29918,
6758,
353,
6410,
29918,
9891,
29898,
5066,
296,
29918,
842,
29961,
1493,
1402,
3405,
296,
29918,
842,
29961,
29894,
29918,
13140,
2314,
13,
462,
462,
4706,
27760,
29918,
6758,
4619,
3151,
29918,
29725,
29918,
6758,
13,
13,
462,
9651,
1162,
29918,
6758,
267,
29889,
5504,
29898,
276,
535,
29918,
6758,
29889,
667,
3285,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
462,
9651,
27760,
29918,
6758,
267,
29889,
5504,
29898,
29725,
29918,
6758,
29889,
667,
3285,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
13,
462,
9651,
1400,
5878,
353,
525,
1162,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
1118,
27760,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
3757,
29918,
6758,
267,
29889,
485,
29887,
29892,
27760,
29918,
6758,
267,
29889,
485,
29887,
29897,
13,
13,
462,
9651,
2025,
29918,
6758,
353,
313,
29896,
448,
15595,
29897,
334,
8265,
29918,
6758,
718,
15595,
334,
27760,
29918,
6758,
13,
462,
9651,
5994,
3950,
29889,
9171,
29918,
5105,
580,
13,
462,
9651,
2025,
29918,
6758,
29889,
1627,
1328,
580,
13,
462,
9651,
5994,
3950,
29889,
10568,
580,
13,
13,
462,
9651,
11196,
4619,
29871,
29896,
13,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
2490,
5878,
29898,
1188,
29922,
2490,
5878,
29897,
13,
13,
18884,
396,
396,
448,
2683,
2683,
26589,
4299,
6724,
13,
18884,
1243,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
1688,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
8824,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
18884,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
462,
1678,
1904,
29889,
14513,
580,
13,
462,
1678,
19435,
353,
518,
2636,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
462,
1678,
363,
22645,
29892,
9853,
297,
26985,
29898,
29873,
29939,
18933,
29898,
1688,
12657,
22164,
13,
462,
4706,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
4706,
3151,
29918,
16175,
29918,
1557,
2361,
353,
1904,
29889,
657,
29918,
328,
29918,
1557,
2361,
29898,
16175,
29897,
13,
462,
4706,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
22164,
13,
462,
9651,
19435,
29961,
893,
1822,
4397,
29898,
2764,
29918,
16175,
29918,
1557,
2361,
29961,
893,
2314,
13,
462,
1678,
19435,
353,
518,
7345,
305,
29889,
4117,
29898,
1557,
2361,
29961,
893,
1402,
3964,
29922,
29900,
29897,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
462,
1678,
19435,
353,
5683,
29918,
29888,
3958,
29898,
1557,
2361,
29892,
10366,
2433,
485,
29887,
1495,
13,
13,
18884,
396,
448,
2683,
2683,
26589,
4299,
19745,
13,
18884,
696,
29883,
29892,
544,
29918,
273,
290,
29892,
544,
29918,
12324,
29892,
260,
22230,
353,
4078,
29918,
10198,
29918,
558,
29918,
2764,
345,
29918,
1272,
29898,
1557,
2361,
29922,
1557,
2361,
29892,
11073,
29922,
29979,
29918,
1688,
29892,
934,
29918,
2084,
29922,
8516,
29892,
26952,
29922,
8824,
29897,
13,
18884,
696,
29883,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
10198,
29897,
13,
18884,
544,
29918,
273,
290,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
273,
290,
29897,
13,
18884,
544,
29918,
12324,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
12324,
29897,
13,
18884,
260,
22230,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
6277,
29878,
29897,
13,
13,
18884,
628,
1904,
13,
13,
4706,
396,
4078,
278,
2582,
13,
4706,
565,
2582,
29918,
2084,
297,
518,
4286,
29914,
9902,
29914,
2033,
29901,
13,
13,
9651,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
29725,
16036,
742,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
9651,
2254,
29918,
2158,
29918,
9902,
29898,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
29725,
16036,
1495,
13,
4706,
1683,
29901,
13,
9651,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
29725,
16036,
29918,
2312,
648,
29913,
4286,
4830,
29898,
2312,
511,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
9651,
2254,
29918,
2158,
29918,
9902,
29898,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
29725,
16036,
29918,
2312,
648,
29913,
4286,
4830,
29898,
2312,
876,
13,
13,
13,
1753,
28241,
29918,
3601,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
29892,
4742,
29892,
18698,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
2433,
1195,
272,
537,
29374,
13,
1678,
4842,
305,
29889,
842,
29918,
4381,
29918,
20158,
29918,
1853,
29898,
7345,
305,
29889,
11843,
29911,
6073,
29897,
13,
13,
1678,
696,
29883,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
273,
290,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
12324,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
260,
22230,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
13,
13,
1678,
396,
6694,
2295,
13,
1678,
9853,
29918,
2311,
353,
9853,
29918,
2311,
29918,
842,
29918,
3601,
29961,
24713,
29918,
978,
29962,
13,
1678,
301,
29878,
353,
301,
29878,
29918,
842,
29918,
3601,
29961,
24713,
29918,
978,
29962,
13,
1678,
281,
29881,
353,
281,
29881,
29918,
842,
29918,
3601,
29961,
24713,
29918,
978,
29962,
13,
1678,
7546,
29918,
2311,
353,
7546,
29918,
2311,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
1678,
6410,
29918,
9891,
353,
341,
1660,
29931,
2209,
580,
13,
1678,
1881,
29918,
2311,
29918,
842,
353,
518,
29916,
29889,
12181,
29961,
29900,
29962,
363,
921,
297,
1060,
29962,
13,
1678,
565,
2582,
29918,
2084,
297,
518,
4286,
29914,
9902,
29914,
2033,
29901,
13,
4706,
15595,
29918,
842,
353,
518,
2312,
29918,
842,
29918,
3601,
29961,
24713,
29918,
978,
5262,
13,
1678,
1683,
29901,
13,
4706,
15595,
29918,
842,
353,
518,
29900,
29889,
29900,
29896,
29892,
29871,
29900,
29889,
29896,
29892,
29871,
29900,
29889,
29945,
29892,
29871,
29900,
29889,
29929,
29892,
29871,
29900,
29889,
29929,
29929,
29962,
13,
1678,
565,
2582,
29918,
2084,
297,
518,
4286,
29914,
9902,
29914,
2033,
29901,
13,
4706,
286,
29918,
842,
353,
518,
29885,
29918,
842,
29918,
3601,
29961,
24713,
29918,
978,
5262,
13,
1678,
1683,
29901,
13,
4706,
396,
286,
29918,
842,
353,
518,
29900,
29892,
29871,
29896,
29892,
29871,
29941,
29892,
29871,
29945,
29892,
29871,
29955,
29962,
13,
4706,
286,
29918,
842,
353,
518,
29900,
29962,
13,
13,
1678,
363,
286,
297,
286,
29918,
842,
29901,
13,
4706,
363,
15595,
297,
15595,
29918,
842,
29901,
13,
9651,
363,
260,
297,
3464,
29898,
14358,
29918,
3706,
1125,
13,
18884,
1596,
877,
1576,
6571,
29899,
386,
1065,
16410,
29991,
4286,
4830,
29898,
29873,
876,
13,
18884,
363,
474,
297,
3464,
29898,
1195,
4197,
29896,
29900,
29892,
7431,
29898,
15380,
2164,
29918,
29979,
4638,
22164,
13,
462,
1678,
8877,
29892,
612,
29918,
1688,
353,
2048,
29918,
2492,
29918,
24713,
29898,
24713,
29918,
978,
29892,
612,
29892,
3480,
29918,
1990,
29918,
333,
29922,
15380,
2164,
29918,
29979,
29961,
29875,
1402,
4464,
29922,
3035,
24713,
29918,
8513,
29897,
13,
462,
1678,
1060,
29918,
14968,
29892,
1060,
29918,
1688,
353,
1889,
29918,
328,
29918,
24713,
29898,
29990,
29892,
8877,
29897,
13,
13,
462,
1678,
396,
448,
2683,
2683,
1378,
4299,
6694,
13,
462,
1678,
16717,
353,
29871,
29900,
13,
462,
1678,
565,
4842,
305,
29889,
29883,
6191,
29889,
275,
29918,
16515,
7295,
13,
462,
4706,
4842,
305,
29889,
29883,
6191,
29889,
11288,
29918,
26776,
29918,
497,
29898,
26776,
29897,
13,
462,
1678,
4842,
305,
29889,
11288,
29918,
26776,
29898,
26776,
29897,
13,
462,
1678,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
4801,
837,
262,
4695,
353,
5852,
13,
462,
1678,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
1785,
16580,
353,
5852,
13,
13,
462,
1678,
1904,
353,
28241,
29918,
29725,
16036,
29898,
2080,
29918,
2311,
29918,
842,
29922,
2080,
29918,
2311,
29918,
842,
29892,
7546,
29918,
29879,
7093,
29922,
13148,
29918,
2311,
467,
517,
29898,
10141,
467,
8896,
580,
13,
462,
1678,
7945,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
14968,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
5574,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
13,
462,
1678,
396,
2702,
6694,
8792,
13,
462,
1678,
21502,
12168,
353,
21502,
12168,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
462,
1678,
1162,
29918,
6758,
267,
353,
319,
19698,
29924,
1308,
580,
13,
462,
1678,
1027,
29918,
6758,
267,
353,
319,
19698,
29924,
1308,
580,
13,
13,
462,
1678,
5994,
3950,
353,
5994,
29889,
3253,
314,
29898,
4299,
29889,
16744,
3285,
301,
29878,
29922,
29212,
29892,
7688,
29918,
7099,
388,
29922,
9970,
29897,
13,
13,
462,
1678,
1904,
29889,
14968,
580,
13,
462,
1678,
11196,
353,
29871,
29900,
13,
462,
1678,
363,
21502,
305,
297,
3464,
29898,
3317,
29898,
1022,
2878,
29879,
22164,
13,
462,
4706,
7945,
12657,
353,
260,
29939,
18933,
29898,
14968,
12657,
29897,
13,
462,
4706,
565,
11033,
24713,
29918,
8513,
338,
525,
21355,
537,
2396,
13,
462,
9651,
7945,
12657,
29889,
842,
29918,
8216,
877,
3601,
29892,
21502,
305,
29912,
1118,
633,
8945,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
462,
4706,
1683,
29901,
13,
462,
9651,
7945,
12657,
29889,
842,
29918,
8216,
877,
3601,
29892,
21502,
305,
29912,
1118,
4226,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
462,
4706,
363,
22645,
29892,
9853,
297,
26985,
29898,
14968,
12657,
1125,
13,
462,
9651,
565,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
29897,
1405,
29871,
29896,
29901,
29871,
396,
363,
289,
29876,
29892,
9853,
2311,
1405,
29871,
29896,
13,
462,
18884,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
18884,
3405,
296,
29918,
842,
29892,
14391,
29918,
842,
353,
1904,
29898,
16175,
29897,
13,
13,
462,
18884,
8265,
29918,
6758,
353,
4842,
305,
29889,
3298,
359,
29898,
29896,
467,
517,
29898,
10141,
29897,
13,
462,
18884,
1027,
29918,
6758,
353,
4842,
305,
29889,
3298,
359,
29898,
29896,
467,
517,
29898,
10141,
29897,
13,
462,
18884,
363,
1776,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
22164,
13,
462,
462,
1678,
565,
21502,
305,
529,
21502,
12168,
29961,
1493,
5387,
13,
462,
462,
4706,
343,
353,
9853,
29961,
1493,
29962,
13,
462,
462,
4706,
6410,
353,
6410,
29918,
9891,
29898,
4905,
29879,
29918,
842,
29961,
1493,
1402,
343,
29897,
13,
13,
462,
462,
4706,
8265,
29918,
6758,
4619,
6410,
13,
462,
462,
4706,
363,
325,
29918,
13140,
297,
3464,
29898,
1493,
718,
29871,
29896,
29892,
7431,
29898,
29990,
29918,
14968,
22164,
13,
462,
462,
9651,
3151,
29918,
3601,
29918,
6758,
353,
29501,
29918,
2790,
29872,
29918,
6758,
29898,
5066,
296,
29918,
842,
29961,
1493,
1402,
3405,
296,
29918,
842,
29961,
29894,
29918,
13140,
1402,
286,
29897,
13,
462,
462,
9651,
1027,
29918,
6758,
4619,
3151,
29918,
3601,
29918,
6758,
13,
13,
462,
18884,
1162,
29918,
6758,
267,
29889,
5504,
29898,
276,
535,
29918,
6758,
29889,
667,
3285,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
462,
18884,
1027,
29918,
6758,
267,
29889,
5504,
29898,
3601,
29918,
6758,
29889,
667,
3285,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
13,
462,
18884,
1400,
5878,
353,
525,
1162,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
1118,
1027,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
3757,
29918,
6758,
267,
29889,
485,
29887,
29892,
1027,
29918,
6758,
267,
29889,
485,
29887,
29897,
13,
13,
462,
18884,
2025,
29918,
6758,
353,
313,
29896,
448,
15595,
29897,
334,
8265,
29918,
6758,
718,
15595,
334,
1027,
29918,
6758,
13,
462,
18884,
5994,
3950,
29889,
9171,
29918,
5105,
580,
13,
462,
18884,
2025,
29918,
6758,
29889,
1627,
1328,
580,
13,
462,
18884,
5994,
3950,
29889,
10568,
580,
13,
13,
462,
18884,
11196,
4619,
29871,
29896,
13,
13,
462,
9651,
7945,
12657,
29889,
842,
29918,
2490,
5878,
29898,
1188,
29922,
2490,
5878,
29897,
13,
13,
462,
1678,
396,
396,
448,
2683,
2683,
26589,
4299,
6724,
13,
462,
1678,
1243,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
1688,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
8824,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
462,
1678,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
462,
4706,
1904,
29889,
14513,
580,
13,
462,
4706,
19435,
353,
518,
2636,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
462,
4706,
363,
22645,
29892,
9853,
297,
26985,
29898,
29873,
29939,
18933,
29898,
1688,
12657,
22164,
13,
462,
9651,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
9651,
3151,
29918,
16175,
29918,
1557,
2361,
353,
1904,
29889,
657,
29918,
328,
29918,
1557,
2361,
29898,
16175,
29897,
13,
462,
9651,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
22164,
13,
462,
18884,
19435,
29961,
893,
1822,
4397,
29898,
2764,
29918,
16175,
29918,
1557,
2361,
29961,
893,
2314,
13,
462,
4706,
19435,
353,
518,
7345,
305,
29889,
4117,
29898,
1557,
2361,
29961,
893,
1402,
3964,
29922,
29900,
29897,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
462,
4706,
19435,
353,
5683,
29918,
29888,
3958,
29898,
1557,
2361,
29892,
10366,
2433,
485,
29887,
1495,
13,
13,
462,
1678,
396,
448,
2683,
2683,
26589,
4299,
19745,
13,
462,
1678,
696,
29883,
29892,
544,
29918,
273,
290,
29892,
544,
29918,
12324,
29892,
260,
22230,
353,
4078,
29918,
10198,
29918,
558,
29918,
2764,
345,
29918,
1272,
29898,
1557,
2361,
29922,
1557,
2361,
29892,
11073,
29922,
29979,
29918,
1688,
29892,
934,
29918,
2084,
29922,
8516,
29892,
26952,
29922,
8824,
29897,
13,
462,
1678,
696,
29883,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
10198,
29897,
13,
462,
1678,
544,
29918,
273,
290,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
273,
290,
29897,
13,
462,
1678,
544,
29918,
12324,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
12324,
29897,
13,
462,
1678,
260,
22230,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
6277,
29878,
29897,
13,
13,
13,
462,
1678,
628,
1904,
13,
13,
9651,
396,
4078,
278,
2582,
13,
9651,
565,
2582,
29918,
2084,
297,
518,
4286,
29914,
9902,
29914,
2033,
29901,
13,
18884,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
3601,
742,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
18884,
2254,
29918,
2158,
29918,
9902,
29898,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
3601,
1495,
13,
9651,
1683,
29901,
13,
18884,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
3601,
29918,
2312,
648,
2403,
29885,
648,
29913,
4286,
4830,
29898,
2312,
29892,
286,
511,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
18884,
2254,
29918,
2158,
29918,
9902,
29898,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
3601,
29918,
2312,
648,
2403,
29885,
648,
29913,
4286,
4830,
29898,
2312,
29892,
286,
876,
13,
13,
13,
1753,
286,
1564,
29872,
29918,
29888,
1509,
29918,
5066,
296,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
29892,
4742,
29892,
18698,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
2433,
1195,
272,
537,
29374,
13,
1678,
4842,
305,
29889,
842,
29918,
4381,
29918,
20158,
29918,
1853,
29898,
7345,
305,
29889,
11843,
29911,
6073,
29897,
13,
13,
1678,
696,
29883,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
273,
290,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
12324,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
260,
22230,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
13,
13,
1678,
396,
6694,
2295,
13,
1678,
9853,
29918,
2311,
353,
9853,
29918,
2311,
29918,
842,
29918,
29888,
3880,
29961,
24713,
29918,
978,
29962,
13,
1678,
7546,
29918,
2311,
353,
7546,
29918,
2311,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
1678,
301,
29878,
353,
301,
29878,
29918,
842,
29918,
29888,
3880,
29961,
24713,
29918,
978,
29962,
13,
1678,
281,
29881,
353,
281,
29881,
29918,
842,
29918,
29888,
3880,
29961,
24713,
29918,
978,
29962,
13,
1678,
285,
1509,
29918,
6229,
353,
7546,
29918,
2311,
14352,
29896,
29962,
13,
1678,
6410,
29918,
9891,
353,
341,
1660,
29931,
2209,
580,
13,
1678,
1881,
29918,
2311,
29918,
842,
353,
518,
29916,
29889,
12181,
29961,
29900,
29962,
363,
921,
297,
1060,
29962,
13,
13,
1678,
363,
260,
297,
3464,
29898,
14358,
29918,
3706,
1125,
13,
4706,
1596,
877,
1576,
6571,
29899,
386,
1065,
16410,
29991,
4286,
4830,
29898,
29873,
876,
13,
4706,
363,
474,
297,
3464,
29898,
1195,
4197,
29896,
29900,
29892,
7431,
29898,
15380,
2164,
29918,
29979,
4638,
22164,
13,
9651,
8877,
29892,
612,
29918,
1688,
353,
2048,
29918,
2492,
29918,
24713,
29898,
24713,
29918,
978,
29892,
612,
29892,
3480,
29918,
1990,
29918,
333,
29922,
15380,
2164,
29918,
29979,
29961,
29875,
1402,
4464,
29922,
3035,
24713,
29918,
8513,
29897,
13,
9651,
1060,
29918,
14968,
29892,
1060,
29918,
1688,
353,
1889,
29918,
328,
29918,
24713,
29898,
29990,
29892,
8877,
29897,
13,
13,
9651,
396,
448,
2683,
2683,
1378,
4299,
6694,
13,
9651,
16717,
353,
29871,
29900,
13,
9651,
565,
4842,
305,
29889,
29883,
6191,
29889,
275,
29918,
16515,
7295,
13,
18884,
4842,
305,
29889,
29883,
6191,
29889,
11288,
29918,
26776,
29918,
497,
29898,
26776,
29897,
13,
9651,
4842,
305,
29889,
11288,
29918,
26776,
29898,
26776,
29897,
13,
9651,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
4801,
837,
262,
4695,
353,
5852,
13,
9651,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
1785,
16580,
353,
5852,
13,
13,
9651,
1904,
353,
286,
1564,
29872,
29918,
328,
29898,
2080,
29918,
2311,
29918,
842,
29922,
2080,
29918,
2311,
29918,
842,
29892,
7546,
29918,
29879,
7093,
29922,
13148,
29918,
2311,
467,
517,
29898,
10141,
467,
8896,
580,
13,
9651,
7945,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
14968,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
5574,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
13,
9651,
396,
2702,
6694,
8792,
13,
9651,
21502,
12168,
353,
21502,
12168,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
9651,
19592,
29918,
1022,
2878,
29879,
353,
19592,
29918,
1022,
2878,
29879,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
9651,
4974,
4236,
29898,
1022,
2878,
29879,
29897,
1405,
4236,
29898,
415,
29918,
1022,
2878,
29879,
29897,
13,
9651,
28495,
29918,
842,
353,
518,
29909,
19698,
29924,
1308,
580,
363,
474,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
9651,
5994,
3950,
353,
518,
20640,
29889,
3253,
314,
29898,
4299,
29889,
3660,
29918,
842,
29961,
29875,
1822,
16744,
3285,
301,
29878,
29922,
29212,
29892,
7688,
29918,
7099,
388,
29922,
9970,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
13,
9651,
396,
448,
2683,
2683,
1378,
1457,
14968,
278,
341,
29963,
16036,
13,
13,
9651,
1904,
29889,
14968,
580,
13,
9651,
11196,
353,
29871,
29900,
13,
9651,
363,
21502,
305,
297,
3464,
29898,
3317,
29898,
415,
29918,
1022,
2878,
29879,
22164,
13,
18884,
7945,
12657,
353,
260,
29939,
18933,
29898,
14968,
12657,
29897,
13,
18884,
565,
11033,
24713,
29918,
8513,
338,
525,
21355,
537,
2396,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
8216,
877,
29888,
1509,
29892,
21502,
305,
29912,
1118,
633,
8945,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
18884,
1683,
29901,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
8216,
877,
29888,
1509,
29892,
21502,
305,
29912,
1118,
4226,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
18884,
363,
22645,
29892,
9853,
297,
26985,
29898,
14968,
12657,
1125,
13,
462,
1678,
1400,
5878,
353,
6629,
13,
462,
1678,
565,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
29897,
1405,
29871,
29896,
29901,
29871,
396,
363,
289,
29876,
29892,
9853,
2311,
1405,
29871,
29896,
13,
462,
4706,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
4706,
14391,
29918,
842,
353,
1904,
29898,
16175,
29897,
13,
462,
4706,
363,
1776,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
22164,
13,
462,
9651,
565,
21502,
305,
529,
21502,
12168,
29961,
1493,
5387,
13,
462,
18884,
343,
353,
9853,
29961,
1493,
29962,
13,
462,
18884,
6410,
353,
6410,
29918,
9891,
29898,
4905,
29879,
29918,
842,
29961,
1493,
1402,
343,
29897,
13,
13,
462,
18884,
5994,
3950,
29961,
1493,
1822,
9171,
29918,
5105,
580,
13,
462,
18884,
6410,
29889,
1627,
1328,
580,
13,
462,
18884,
5994,
3950,
29961,
1493,
1822,
10568,
580,
13,
13,
462,
18884,
28495,
29918,
842,
29961,
1493,
1822,
5504,
29898,
6758,
29889,
667,
3285,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
462,
18884,
3151,
29918,
2490,
5878,
353,
525,
1776,
29912,
1118,
1162,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
1493,
29892,
28495,
29918,
842,
29961,
1493,
1822,
485,
29887,
29897,
13,
13,
462,
18884,
1400,
5878,
4619,
3151,
29918,
2490,
5878,
13,
462,
4706,
11196,
4619,
29871,
29896,
13,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
2490,
5878,
29898,
1188,
29922,
2490,
5878,
29897,
13,
13,
9651,
628,
7945,
12657,
13,
13,
9651,
396,
448,
2683,
9072,
489,
1359,
758,
3018,
1312,
18177,
304,
341,
29963,
16036,
29918,
29888,
3880,
13,
9651,
285,
3880,
29918,
4299,
353,
286,
1564,
29872,
29918,
29888,
3880,
29898,
2080,
29918,
2311,
29918,
842,
29922,
2080,
29918,
2311,
29918,
842,
29892,
7546,
29918,
29879,
7093,
29922,
13148,
29918,
2311,
29892,
285,
1509,
29918,
6229,
29922,
29888,
1509,
29918,
6229,
467,
517,
29898,
10141,
467,
8896,
580,
13,
9651,
263,
29872,
29918,
8977,
353,
1904,
29889,
3859,
29918,
8977,
580,
13,
9651,
263,
29872,
29918,
29888,
3880,
29918,
8977,
353,
285,
3880,
29918,
4299,
29889,
3859,
29918,
8977,
580,
13,
9651,
263,
29872,
29918,
8977,
353,
426,
29895,
29901,
325,
363,
413,
29892,
325,
297,
263,
29872,
29918,
8977,
29889,
7076,
580,
565,
413,
297,
263,
29872,
29918,
29888,
3880,
29918,
8977,
29913,
13,
9651,
263,
29872,
29918,
29888,
3880,
29918,
8977,
29889,
5504,
29898,
3660,
29918,
8977,
29897,
13,
9651,
285,
3880,
29918,
4299,
29889,
1359,
29918,
3859,
29918,
8977,
29898,
3660,
29918,
29888,
3880,
29918,
8977,
29897,
13,
13,
9651,
285,
3880,
29918,
4299,
29889,
14968,
580,
13,
9651,
7945,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
14968,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
5574,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
9651,
21502,
12168,
353,
21502,
12168,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
9651,
28495,
353,
319,
19698,
29924,
1308,
580,
13,
9651,
5994,
3950,
353,
5994,
29889,
3253,
314,
29898,
29888,
3880,
29918,
4299,
29889,
16744,
3285,
301,
29878,
29922,
29212,
29892,
7688,
29918,
7099,
388,
29922,
9970,
29897,
13,
9651,
11196,
353,
29871,
29900,
13,
9651,
363,
21502,
305,
297,
3464,
29898,
3317,
29898,
1022,
2878,
29879,
29897,
448,
4236,
29898,
415,
29918,
1022,
2878,
29879,
22164,
13,
18884,
7945,
12657,
353,
260,
29939,
18933,
29898,
14968,
12657,
29897,
13,
18884,
565,
11033,
24713,
29918,
8513,
338,
525,
21355,
537,
2396,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
8216,
877,
29888,
1509,
29892,
382,
1129,
305,
29912,
1118,
633,
8945,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
18884,
1683,
29901,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
8216,
877,
29888,
1509,
29892,
382,
1129,
305,
29912,
1118,
4226,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
18884,
363,
22645,
29892,
9853,
297,
26985,
29898,
14968,
12657,
1125,
13,
462,
1678,
565,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
29897,
1405,
29871,
29896,
29901,
29871,
396,
363,
289,
29876,
29892,
9853,
2311,
1405,
29871,
29896,
13,
462,
4706,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
4706,
14391,
29918,
842,
353,
285,
3880,
29918,
4299,
29898,
16175,
29897,
13,
13,
462,
4706,
6410,
353,
4842,
305,
29889,
3298,
359,
29898,
29896,
467,
517,
29898,
10141,
29897,
13,
462,
4706,
363,
11148,
297,
3464,
29898,
2435,
29898,
16175,
22164,
13,
462,
9651,
6410,
4619,
6410,
29918,
9891,
29898,
4905,
29879,
29918,
842,
29961,
645,
1402,
9853,
29961,
645,
2314,
13,
13,
462,
4706,
5994,
3950,
29889,
9171,
29918,
5105,
580,
13,
462,
4706,
6410,
29889,
1627,
1328,
580,
13,
462,
4706,
5994,
3950,
29889,
10568,
580,
13,
13,
462,
4706,
28495,
29889,
5504,
29898,
6758,
29889,
667,
3285,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
462,
4706,
1400,
5878,
353,
525,
285,
3880,
1162,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
6758,
267,
29889,
485,
29887,
29897,
13,
13,
462,
4706,
11196,
4619,
29871,
29896,
13,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
2490,
5878,
29898,
1188,
29922,
2490,
5878,
29897,
13,
13,
9651,
396,
396,
448,
2683,
2683,
26589,
4299,
6724,
13,
9651,
1243,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
1688,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
8824,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
9651,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
18884,
285,
3880,
29918,
4299,
29889,
14513,
580,
13,
18884,
19435,
353,
518,
2636,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
18884,
363,
22645,
29892,
9853,
297,
26985,
29898,
29873,
29939,
18933,
29898,
1688,
12657,
22164,
13,
462,
1678,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
1678,
3151,
29918,
16175,
29918,
1557,
2361,
353,
285,
3880,
29918,
4299,
29889,
657,
29918,
328,
29918,
1557,
2361,
29898,
16175,
29897,
13,
462,
1678,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
22164,
13,
462,
4706,
19435,
29961,
893,
1822,
4397,
29898,
2764,
29918,
16175,
29918,
1557,
2361,
29961,
893,
2314,
13,
18884,
19435,
353,
518,
7345,
305,
29889,
4117,
29898,
1557,
2361,
29961,
893,
1402,
3964,
29922,
29900,
29897,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
18884,
19435,
353,
5683,
29918,
29888,
3958,
29898,
1557,
2361,
29892,
10366,
2433,
485,
29887,
1495,
13,
13,
9651,
396,
448,
2683,
2683,
26589,
4299,
19745,
13,
9651,
696,
29883,
29892,
544,
29918,
273,
290,
29892,
544,
29918,
12324,
29892,
260,
22230,
353,
4078,
29918,
10198,
29918,
558,
29918,
2764,
345,
29918,
1272,
29898,
1557,
2361,
29922,
1557,
2361,
29892,
11073,
29922,
29979,
29918,
1688,
29892,
934,
29918,
2084,
29922,
8516,
29892,
26952,
29922,
8824,
29897,
13,
9651,
696,
29883,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
10198,
29897,
13,
9651,
544,
29918,
273,
290,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
273,
290,
29897,
13,
9651,
544,
29918,
12324,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
12324,
29897,
13,
9651,
260,
22230,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
6277,
29878,
29897,
13,
13,
13,
9651,
628,
1904,
13,
13,
1678,
396,
4078,
278,
2582,
13,
1678,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
29885,
1564,
29872,
29918,
29888,
3880,
742,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
1678,
2254,
29918,
2158,
29918,
9902,
29898,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
29885,
1564,
29872,
29918,
29888,
3880,
1495,
13,
13,
13,
1753,
28241,
29918,
2585,
29876,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
29892,
4742,
29892,
18698,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
2433,
1195,
272,
537,
29374,
13,
13,
1678,
4842,
305,
29889,
842,
29918,
4381,
29918,
20158,
29918,
1853,
29898,
7345,
305,
29889,
11843,
29911,
6073,
29897,
13,
13,
1678,
696,
29883,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
273,
290,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
12324,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
260,
22230,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
13,
13,
1678,
396,
6694,
2295,
13,
1678,
7546,
29918,
2311,
353,
7546,
29918,
2311,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
1678,
9853,
29918,
2311,
353,
9853,
29918,
2311,
29918,
842,
29918,
2585,
29876,
29961,
24713,
29918,
978,
29962,
13,
1678,
301,
29878,
353,
301,
29878,
29918,
842,
29918,
2585,
29876,
29961,
24713,
29918,
978,
29962,
13,
1678,
281,
29881,
353,
281,
29881,
29918,
842,
29918,
2585,
29876,
29961,
24713,
29918,
978,
29962,
13,
1678,
1596,
877,
13148,
29918,
2311,
29901,
24335,
9853,
2159,
29901,
24335,
301,
29878,
29901,
24335,
281,
29881,
29901,
8875,
4286,
4830,
29898,
13148,
29918,
2311,
29892,
9853,
29918,
2311,
29892,
301,
29878,
29892,
281,
29881,
876,
13,
1678,
1881,
29918,
2311,
29918,
842,
353,
518,
29916,
29889,
12181,
29961,
29900,
29962,
363,
921,
297,
1060,
29962,
13,
1678,
285,
1509,
29918,
6229,
353,
7546,
29918,
2311,
14352,
29896,
29962,
13,
1678,
413,
353,
29871,
29941,
13,
1678,
21502,
12168,
353,
21502,
12168,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
13,
1678,
363,
260,
297,
3464,
29898,
14358,
29918,
3706,
1125,
13,
4706,
1596,
877,
1576,
6571,
29899,
386,
1065,
16410,
29991,
4286,
4830,
29898,
29873,
876,
13,
4706,
363,
474,
297,
3464,
29898,
1195,
4197,
29896,
29900,
29892,
7431,
29898,
15380,
2164,
29918,
29979,
4638,
22164,
13,
9651,
8877,
29892,
612,
29918,
1688,
353,
2048,
29918,
2492,
29918,
24713,
29898,
24713,
29918,
978,
29892,
612,
29892,
3480,
29918,
1990,
29918,
333,
29922,
15380,
2164,
29918,
29979,
29961,
29875,
1402,
4464,
29922,
3035,
24713,
29918,
8513,
29897,
13,
9651,
1060,
29918,
14968,
29892,
1060,
29918,
1688,
353,
1889,
29918,
328,
29918,
24713,
29898,
29990,
29892,
8877,
29892,
4226,
2133,
29918,
3881,
2433,
29900,
29896,
1495,
13,
13,
9651,
396,
448,
2683,
2683,
1378,
4299,
6694,
13,
9651,
16717,
353,
29871,
29900,
13,
9651,
565,
4842,
305,
29889,
29883,
6191,
29889,
275,
29918,
16515,
7295,
13,
18884,
4842,
305,
29889,
29883,
6191,
29889,
11288,
29918,
26776,
29918,
497,
29898,
26776,
29897,
13,
9651,
4842,
305,
29889,
11288,
29918,
26776,
29898,
26776,
29897,
13,
9651,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
4801,
837,
262,
4695,
353,
5852,
13,
9651,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
1785,
16580,
353,
5852,
13,
13,
9651,
396,
1904,
353,
286,
1564,
29872,
29918,
328,
29898,
2080,
29918,
2311,
29918,
842,
29922,
2080,
29918,
2311,
29918,
842,
29892,
7546,
29918,
29879,
7093,
29922,
13148,
29918,
2311,
467,
517,
29898,
10141,
467,
8896,
580,
13,
9651,
1904,
353,
28241,
29918,
4051,
29940,
29898,
2080,
29918,
29879,
7093,
29922,
2080,
29918,
2311,
29918,
842,
29892,
15359,
29922,
13148,
29918,
2311,
29892,
285,
1509,
29918,
6229,
29922,
29888,
1509,
29918,
6229,
29892,
413,
29922,
29895,
29897,
13,
9651,
1060,
29918,
14968,
353,
518,
7345,
305,
29889,
3166,
29918,
23749,
29898,
29990,
29918,
14968,
28513,
2314,
363,
903,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
9651,
1904,
29889,
14968,
29918,
29324,
29918,
4051,
29940,
29898,
29990,
29918,
14968,
29892,
21502,
12168,
29922,
3317,
29898,
1022,
2878,
29879,
511,
301,
29878,
29922,
29212,
29892,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29897,
13,
13,
9651,
396,
396,
448,
2683,
2683,
26589,
4299,
6724,
13,
9651,
1060,
29918,
1688,
353,
518,
7345,
305,
29889,
3166,
29918,
23749,
29898,
29990,
29918,
1688,
28513,
2314,
363,
903,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
9651,
19435,
353,
1904,
29889,
657,
29918,
328,
29918,
1557,
2361,
29898,
29990,
29918,
1688,
29897,
13,
9651,
19435,
353,
5683,
29918,
29888,
3958,
29898,
1557,
2361,
29892,
10366,
2433,
485,
29887,
1495,
13,
13,
9651,
396,
448,
2683,
2683,
26589,
4299,
19745,
13,
9651,
696,
29883,
29892,
544,
29918,
273,
290,
29892,
544,
29918,
12324,
29892,
260,
22230,
353,
4078,
29918,
10198,
29918,
558,
29918,
2764,
345,
29918,
1272,
29898,
1557,
2361,
29922,
1557,
2361,
29892,
11073,
29922,
29979,
29918,
1688,
29892,
934,
29918,
2084,
29922,
8516,
29892,
26952,
29922,
8824,
29897,
13,
9651,
696,
29883,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
10198,
29897,
13,
9651,
544,
29918,
273,
290,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
273,
290,
29897,
13,
9651,
544,
29918,
12324,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
12324,
29897,
13,
9651,
260,
22230,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
6277,
29878,
29897,
13,
13,
13,
9651,
628,
1904,
13,
13,
1678,
396,
4078,
278,
2582,
13,
1678,
934,
29918,
978,
353,
2582,
29918,
2084,
29974,
24713,
29918,
978,
29974,
15972,
2585,
29876,
29915,
13,
1678,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
1445,
29918,
978,
29892,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
1678,
2254,
29918,
2158,
29918,
9902,
29898,
1445,
29918,
978,
29897,
13,
13,
13,
1753,
28241,
29918,
23579,
2028,
29872,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
29892,
4742,
29892,
18698,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
2433,
1195,
272,
537,
29374,
13,
1678,
4842,
305,
29889,
842,
29918,
4381,
29918,
20158,
29918,
1853,
29898,
7345,
305,
29889,
11843,
29911,
6073,
29897,
13,
13,
1678,
696,
29883,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
273,
290,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
12324,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
260,
22230,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
13,
13,
1678,
396,
6694,
2295,
13,
1678,
9853,
29918,
2311,
353,
9853,
29918,
2311,
29918,
842,
29918,
5451,
29961,
24713,
29918,
978,
29962,
13,
1678,
301,
29878,
353,
301,
29878,
29918,
842,
29918,
5451,
29961,
24713,
29918,
978,
29962,
13,
1678,
281,
29881,
353,
281,
29881,
29918,
842,
29918,
5451,
29961,
24713,
29918,
978,
29962,
13,
1678,
7546,
29918,
2311,
353,
7546,
29918,
2311,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
1678,
6410,
29918,
9891,
353,
341,
1660,
29931,
2209,
580,
13,
1678,
1881,
29918,
2311,
29918,
842,
353,
518,
29916,
29889,
12181,
29961,
29900,
29962,
363,
921,
297,
1060,
29962,
13,
1678,
1602,
29918,
8513,
353,
525,
20227,
29915,
13,
13,
1678,
363,
260,
297,
3464,
29898,
14358,
29918,
3706,
1125,
13,
4706,
1596,
877,
1576,
6571,
29899,
386,
1065,
16410,
29991,
4286,
4830,
29898,
29873,
876,
13,
4706,
363,
474,
297,
3464,
29898,
1195,
4197,
29896,
29900,
29892,
7431,
29898,
15380,
2164,
29918,
29979,
4638,
22164,
13,
9651,
8877,
29892,
612,
29918,
1688,
353,
2048,
29918,
2492,
29918,
24713,
29898,
24713,
29918,
978,
29892,
612,
29892,
3480,
29918,
1990,
29918,
333,
29922,
15380,
2164,
29918,
29979,
29961,
29875,
1402,
4464,
29922,
3035,
24713,
29918,
8513,
29897,
13,
9651,
1060,
29918,
14968,
29892,
1060,
29918,
1688,
353,
1889,
29918,
328,
29918,
24713,
29898,
29990,
29892,
8877,
29897,
13,
13,
9651,
396,
448,
2683,
2683,
1378,
4299,
6694,
13,
9651,
16717,
353,
29871,
29900,
13,
9651,
565,
4842,
305,
29889,
29883,
6191,
29889,
275,
29918,
16515,
7295,
13,
18884,
4842,
305,
29889,
29883,
6191,
29889,
11288,
29918,
26776,
29918,
497,
29898,
26776,
29897,
13,
9651,
4842,
305,
29889,
11288,
29918,
26776,
29898,
26776,
29897,
13,
9651,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
4801,
837,
262,
4695,
353,
5852,
13,
9651,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
1785,
16580,
353,
5852,
13,
13,
9651,
1904,
353,
6219,
16036,
29898,
2080,
29918,
2311,
29918,
842,
29922,
2080,
29918,
2311,
29918,
842,
29892,
7546,
29918,
29879,
7093,
29922,
13148,
29918,
2311,
29892,
1602,
29918,
8513,
29922,
7099,
29918,
8513,
467,
517,
29898,
10141,
29897,
13,
9651,
7945,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
14968,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
5574,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
13,
9651,
396,
2702,
6694,
8792,
13,
9651,
21502,
12168,
353,
21502,
12168,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
9651,
28495,
29918,
842,
353,
518,
29909,
19698,
29924,
1308,
580,
363,
474,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
9651,
5994,
3950,
353,
5994,
29889,
3253,
314,
29898,
4299,
29889,
16744,
3285,
301,
29878,
29922,
29212,
29892,
7688,
29918,
7099,
388,
29922,
9970,
29897,
13,
13,
9651,
1904,
29889,
14968,
580,
13,
9651,
11196,
353,
29871,
29900,
13,
9651,
363,
21502,
305,
297,
3464,
29898,
3317,
29898,
1022,
2878,
29879,
22164,
13,
18884,
7945,
12657,
353,
260,
29939,
18933,
29898,
14968,
12657,
29897,
13,
18884,
565,
11033,
24713,
29918,
8513,
338,
525,
21355,
537,
2396,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
8216,
877,
5451,
29918,
5878,
29892,
21502,
305,
29912,
1118,
633,
8945,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
18884,
1683,
29901,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
8216,
877,
5451,
29918,
5878,
29892,
21502,
305,
29912,
1118,
4226,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
18884,
363,
22645,
29892,
9853,
297,
26985,
29898,
14968,
12657,
1125,
13,
462,
1678,
1400,
5878,
353,
6629,
13,
462,
1678,
565,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
29897,
1405,
29871,
29896,
29901,
29871,
396,
363,
289,
29876,
29892,
9853,
2311,
1405,
29871,
29896,
13,
462,
4706,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
4706,
14391,
29918,
842,
353,
1904,
29898,
16175,
29897,
13,
13,
462,
4706,
6410,
353,
4842,
305,
29889,
3298,
359,
29898,
29896,
467,
517,
29898,
10141,
29897,
13,
462,
4706,
3151,
29918,
1493,
29918,
6758,
267,
353,
518,
29900,
29889,
363,
21759,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
462,
4706,
363,
2094,
29918,
513,
297,
3464,
29898,
2435,
29898,
4905,
29879,
29918,
842,
22164,
13,
462,
9651,
3151,
29918,
3977,
29918,
276,
535,
353,
14391,
29918,
842,
29961,
3977,
29918,
513,
29962,
13,
462,
9651,
363,
1776,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
22164,
13,
462,
18884,
343,
353,
9853,
29961,
1493,
29962,
13,
462,
18884,
3151,
29918,
3977,
29918,
1493,
29918,
6758,
353,
6410,
29918,
9891,
29898,
2764,
29918,
3977,
29918,
276,
535,
29961,
1493,
1402,
343,
29897,
13,
462,
18884,
6410,
4619,
3151,
29918,
3977,
29918,
1493,
29918,
6758,
13,
462,
18884,
3151,
29918,
1493,
29918,
6758,
267,
29961,
1493,
29962,
4619,
6410,
29889,
667,
580,
13,
13,
462,
4706,
5994,
3950,
29889,
9171,
29918,
5105,
580,
13,
462,
4706,
6410,
29889,
1627,
1328,
580,
13,
462,
4706,
5994,
3950,
29889,
10568,
580,
13,
13,
462,
4706,
363,
1776,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
22164,
13,
462,
9651,
28495,
29918,
842,
29961,
1493,
1822,
5504,
29898,
2764,
29918,
1493,
29918,
6758,
267,
29961,
1493,
1402,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
462,
9651,
3151,
29918,
2490,
5878,
353,
525,
1776,
29912,
1118,
1162,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
1493,
29892,
28495,
29918,
842,
29961,
1493,
1822,
485,
29887,
29897,
13,
462,
9651,
1400,
5878,
4619,
3151,
29918,
2490,
5878,
13,
462,
4706,
11196,
4619,
29871,
29896,
13,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
2490,
5878,
29898,
1188,
29922,
2490,
5878,
29897,
13,
13,
9651,
396,
396,
448,
2683,
2683,
26589,
4299,
6724,
13,
9651,
1243,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
1688,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
8824,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
9651,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
18884,
1904,
29889,
14513,
580,
13,
18884,
19435,
353,
518,
2636,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
18884,
363,
22645,
29892,
9853,
297,
26985,
29898,
29873,
29939,
18933,
29898,
1688,
12657,
22164,
13,
462,
1678,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
1678,
3151,
29918,
16175,
29918,
1557,
2361,
353,
1904,
29889,
657,
29918,
328,
29918,
1557,
2361,
29898,
16175,
29897,
13,
462,
1678,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
22164,
13,
462,
4706,
19435,
29961,
893,
1822,
4397,
29898,
2764,
29918,
16175,
29918,
1557,
2361,
29961,
893,
2314,
13,
18884,
19435,
353,
518,
7345,
305,
29889,
4117,
29898,
1557,
2361,
29961,
893,
1402,
3964,
29922,
29900,
29897,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
18884,
19435,
353,
5683,
29918,
29888,
3958,
29898,
1557,
2361,
29892,
10366,
2433,
485,
29887,
1495,
13,
13,
9651,
396,
448,
2683,
2683,
26589,
4299,
19745,
13,
9651,
696,
29883,
29892,
544,
29918,
273,
290,
29892,
544,
29918,
12324,
29892,
260,
22230,
353,
4078,
29918,
10198,
29918,
558,
29918,
2764,
345,
29918,
1272,
29898,
1557,
2361,
29922,
1557,
2361,
29892,
11073,
29922,
29979,
29918,
1688,
29892,
934,
29918,
2084,
29922,
8516,
29892,
26952,
29922,
8824,
29897,
13,
9651,
696,
29883,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
10198,
29897,
13,
9651,
544,
29918,
273,
290,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
273,
290,
29897,
13,
9651,
544,
29918,
12324,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
12324,
29897,
13,
9651,
260,
22230,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
6277,
29878,
29897,
13,
13,
13,
9651,
628,
1904,
13,
13,
1678,
396,
4078,
278,
2582,
13,
1678,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
5451,
16036,
648,
29913,
4286,
4830,
29898,
7099,
29918,
8513,
511,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
1678,
2254,
29918,
2158,
29918,
9902,
29898,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
5451,
16036,
648,
29913,
4286,
4830,
29898,
7099,
29918,
8513,
876,
13,
13,
13,
1753,
28241,
29918,
893,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
29892,
4742,
29892,
18698,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
2433,
1195,
272,
537,
742,
4464,
2433,
29888,
1509,
742,
1828,
29918,
8513,
2433,
20227,
29374,
13,
1678,
4842,
305,
29889,
842,
29918,
4381,
29918,
20158,
29918,
1853,
29898,
7345,
305,
29889,
11843,
29911,
6073,
29897,
13,
13,
1678,
696,
29883,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
273,
290,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
12324,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
260,
22230,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
13,
1678,
396,
6694,
2295,
13,
1678,
9853,
29918,
2311,
353,
9853,
29918,
2311,
29918,
842,
29918,
5451,
29961,
24713,
29918,
978,
29962,
13,
1678,
301,
29878,
353,
301,
29878,
29918,
842,
29918,
5451,
29961,
24713,
29918,
978,
29962,
13,
1678,
281,
29881,
353,
281,
29881,
29918,
842,
29918,
5451,
29961,
24713,
29918,
978,
29962,
13,
1678,
7546,
29918,
2311,
353,
7546,
29918,
2311,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
1678,
6410,
29918,
9891,
353,
341,
1660,
29931,
2209,
580,
13,
1678,
1881,
29918,
2311,
29918,
842,
353,
518,
29916,
29889,
12181,
29961,
29900,
29962,
363,
921,
297,
1060,
29962,
13,
1678,
285,
1509,
29918,
6229,
353,
7546,
29918,
2311,
14352,
29896,
29962,
13,
1678,
4464,
353,
4464,
29871,
396,
285,
1509,
29914,
11965,
29914,
5451,
13,
1678,
565,
4464,
338,
525,
29888,
1509,
2396,
13,
4706,
565,
1828,
29918,
8513,
451,
297,
6024,
15755,
742,
525,
2083,
742,
525,
3317,
2033,
29901,
13,
9651,
12020,
2216,
1888,
2037,
287,
2392,
13,
1678,
1683,
29901,
13,
4706,
565,
1828,
29918,
8513,
451,
297,
6024,
20227,
742,
525,
5464,
29899,
20227,
2033,
29901,
13,
9651,
12020,
2216,
1888,
2037,
287,
2392,
13,
13,
1678,
363,
260,
297,
3464,
29898,
14358,
29918,
3706,
1125,
13,
4706,
1596,
877,
1576,
6571,
29899,
386,
1065,
16410,
29991,
4286,
4830,
29898,
29873,
876,
13,
4706,
363,
474,
297,
3464,
29898,
1195,
4197,
29896,
29900,
29892,
7431,
29898,
15380,
2164,
29918,
29979,
4638,
22164,
13,
9651,
8877,
29892,
612,
29918,
1688,
353,
2048,
29918,
2492,
29918,
24713,
29898,
24713,
29918,
978,
29892,
612,
29892,
3480,
29918,
1990,
29918,
333,
29922,
15380,
2164,
29918,
29979,
29961,
29875,
1402,
4464,
29922,
3035,
24713,
29918,
8513,
29897,
13,
9651,
1060,
29918,
14968,
29892,
1060,
29918,
1688,
353,
1889,
29918,
328,
29918,
24713,
29898,
29990,
29892,
8877,
29897,
13,
13,
9651,
396,
448,
2683,
2683,
1378,
4299,
6694,
13,
9651,
16717,
353,
29871,
29900,
13,
9651,
565,
4842,
305,
29889,
29883,
6191,
29889,
275,
29918,
16515,
7295,
13,
18884,
4842,
305,
29889,
29883,
6191,
29889,
11288,
29918,
26776,
29918,
497,
29898,
26776,
29897,
13,
9651,
4842,
305,
29889,
11288,
29918,
26776,
29898,
26776,
29897,
13,
9651,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
4801,
837,
262,
4695,
353,
5852,
13,
9651,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
1785,
16580,
353,
5852,
13,
13,
9651,
1904,
353,
286,
1564,
29872,
29918,
893,
29898,
2080,
29918,
2311,
29918,
842,
29922,
2080,
29918,
2311,
29918,
842,
29892,
7546,
29918,
29879,
7093,
29922,
13148,
29918,
2311,
29892,
285,
1509,
29918,
6229,
29922,
29888,
1509,
29918,
6229,
29892,
4464,
29922,
8513,
29892,
1828,
29918,
8513,
29922,
3207,
29918,
8513,
467,
517,
29898,
10141,
29897,
13,
9651,
7945,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
14968,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
5574,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
13,
9651,
396,
2702,
6694,
8792,
13,
9651,
21502,
12168,
353,
21502,
12168,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
9651,
28495,
29918,
842,
353,
518,
29909,
19698,
29924,
1308,
580,
363,
474,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
9651,
5994,
3950,
353,
5994,
29889,
3253,
314,
29898,
4299,
29889,
16744,
3285,
301,
29878,
29922,
29212,
29892,
7688,
29918,
7099,
388,
29922,
9970,
29897,
13,
13,
9651,
1904,
29889,
14968,
580,
13,
9651,
363,
21502,
305,
297,
3464,
29898,
3317,
29898,
1022,
2878,
29879,
22164,
13,
18884,
7945,
12657,
353,
260,
29939,
18933,
29898,
14968,
12657,
29897,
13,
18884,
565,
11033,
24713,
29918,
8513,
338,
525,
21355,
537,
2396,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
8216,
877,
893,
648,
3227,
1118,
21502,
305,
29912,
1118,
633,
8945,
770,
8875,
4286,
4830,
29898,
8513,
29892,
1828,
29918,
8513,
29892,
21502,
305,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
18884,
1683,
29901,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
8216,
877,
893,
648,
3227,
1118,
21502,
305,
29912,
1118,
4226,
770,
8875,
4286,
4830,
29898,
8513,
29892,
1828,
29918,
8513,
29892,
21502,
305,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
18884,
363,
22645,
29892,
9853,
297,
26985,
29898,
14968,
12657,
1125,
13,
462,
1678,
1400,
5878,
353,
6629,
13,
462,
1678,
565,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
29897,
1405,
29871,
29896,
29901,
29871,
396,
363,
289,
29876,
29892,
9853,
2311,
1405,
29871,
29896,
13,
462,
4706,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
4706,
14391,
29918,
842,
353,
1904,
29898,
16175,
29897,
13,
13,
462,
4706,
565,
4464,
338,
525,
29888,
1509,
29915,
470,
4464,
338,
525,
11965,
2396,
13,
462,
9651,
6410,
353,
4842,
305,
29889,
3298,
359,
29898,
29896,
467,
517,
29898,
10141,
29897,
13,
462,
9651,
363,
11148,
297,
3464,
29898,
2435,
29898,
16175,
22164,
13,
462,
18884,
3151,
29918,
1493,
29918,
6758,
353,
6410,
29918,
9891,
29898,
4905,
29879,
29918,
842,
29961,
645,
1402,
9853,
29961,
645,
2314,
13,
462,
18884,
28495,
29918,
842,
29961,
645,
1822,
5504,
29898,
2764,
29918,
1493,
29918,
6758,
29892,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
462,
18884,
3151,
29918,
2490,
5878,
353,
525,
1776,
29912,
1118,
1162,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
645,
29892,
28495,
29918,
842,
29961,
645,
1822,
485,
29887,
29897,
13,
462,
18884,
1400,
5878,
4619,
3151,
29918,
2490,
5878,
13,
462,
18884,
6410,
4619,
3151,
29918,
1493,
29918,
6758,
13,
13,
462,
9651,
5994,
3950,
29889,
9171,
29918,
5105,
580,
13,
462,
9651,
6410,
29889,
1627,
1328,
580,
13,
462,
9651,
5994,
3950,
29889,
10568,
580,
13,
462,
4706,
25342,
4464,
338,
525,
5451,
2396,
13,
462,
9651,
6410,
353,
4842,
305,
29889,
3298,
359,
29898,
29896,
467,
517,
29898,
10141,
29897,
13,
462,
9651,
3151,
29918,
1493,
29918,
6758,
267,
353,
518,
29900,
29889,
363,
21759,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
462,
9651,
363,
2094,
29918,
513,
297,
3464,
29898,
2435,
29898,
4905,
29879,
29918,
842,
22164,
13,
462,
18884,
3151,
29918,
3977,
29918,
276,
535,
353,
14391,
29918,
842,
29961,
3977,
29918,
513,
29962,
13,
462,
18884,
363,
1776,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
22164,
13,
462,
462,
1678,
343,
353,
9853,
29961,
1493,
29962,
13,
462,
462,
1678,
3151,
29918,
3977,
29918,
1493,
29918,
6758,
353,
6410,
29918,
9891,
29898,
2764,
29918,
3977,
29918,
276,
535,
29961,
1493,
1402,
343,
29897,
13,
462,
462,
1678,
6410,
4619,
3151,
29918,
3977,
29918,
1493,
29918,
6758,
13,
462,
462,
1678,
3151,
29918,
1493,
29918,
6758,
267,
29961,
1493,
29962,
4619,
6410,
29889,
667,
580,
13,
13,
462,
9651,
5994,
3950,
29889,
9171,
29918,
5105,
580,
13,
462,
9651,
6410,
29889,
1627,
1328,
580,
13,
462,
9651,
5994,
3950,
29889,
10568,
580,
13,
13,
462,
9651,
363,
1776,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
22164,
13,
462,
18884,
28495,
29918,
842,
29961,
1493,
1822,
5504,
29898,
2764,
29918,
1493,
29918,
6758,
267,
29961,
1493,
1402,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
462,
18884,
3151,
29918,
2490,
5878,
353,
525,
1776,
29912,
1118,
1162,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
1493,
29892,
28495,
29918,
842,
29961,
1493,
1822,
485,
29887,
29897,
13,
462,
18884,
1400,
5878,
4619,
3151,
29918,
2490,
5878,
13,
462,
4706,
1683,
29901,
13,
462,
9651,
12020,
2216,
1888,
2037,
287,
2392,
13,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
2490,
5878,
29898,
1188,
29922,
2490,
5878,
29897,
13,
13,
9651,
396,
396,
448,
2683,
2683,
26589,
4299,
6724,
13,
9651,
1243,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
1688,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
8824,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
9651,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
18884,
1904,
29889,
14513,
580,
13,
18884,
19435,
353,
518,
2636,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
18884,
363,
22645,
29892,
9853,
297,
26985,
29898,
29873,
29939,
18933,
29898,
1688,
12657,
22164,
13,
462,
1678,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
1678,
3151,
29918,
16175,
29918,
1557,
2361,
353,
1904,
29889,
657,
29918,
328,
29918,
1557,
2361,
29898,
16175,
29897,
13,
462,
1678,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
22164,
13,
462,
4706,
19435,
29961,
893,
1822,
4397,
29898,
2764,
29918,
16175,
29918,
1557,
2361,
29961,
893,
2314,
13,
18884,
19435,
353,
518,
7345,
305,
29889,
4117,
29898,
1557,
2361,
29961,
893,
1402,
3964,
29922,
29900,
29897,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
18884,
19435,
353,
5683,
29918,
29888,
3958,
29898,
1557,
2361,
29892,
10366,
2433,
485,
29887,
1495,
13,
13,
9651,
396,
448,
2683,
2683,
26589,
4299,
19745,
13,
9651,
696,
29883,
29892,
544,
29918,
273,
290,
29892,
544,
29918,
12324,
29892,
260,
22230,
353,
4078,
29918,
10198,
29918,
558,
29918,
2764,
345,
29918,
1272,
29898,
1557,
2361,
29922,
1557,
2361,
29892,
11073,
29922,
29979,
29918,
1688,
29892,
934,
29918,
2084,
29922,
8516,
29892,
26952,
29922,
8824,
29897,
13,
9651,
696,
29883,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
10198,
29897,
13,
9651,
544,
29918,
273,
290,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
273,
290,
29897,
13,
9651,
544,
29918,
12324,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
12324,
29897,
13,
9651,
260,
22230,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
6277,
29878,
29897,
13,
13,
13,
9651,
628,
1904,
13,
13,
1678,
396,
4078,
278,
2582,
13,
1678,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
893,
648,
3227,
29913,
4286,
4830,
29898,
8513,
29892,
1828,
29918,
8513,
511,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
1678,
2254,
29918,
2158,
29918,
9902,
29898,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
893,
648,
3227,
29913,
4286,
4830,
29898,
8513,
29892,
1828,
29918,
8513,
876,
13,
13,
13,
1753,
28241,
29928,
7597,
7858,
29918,
29888,
3880,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
29892,
4742,
29892,
18698,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
2433,
1195,
272,
537,
29374,
13,
1678,
4842,
305,
29889,
842,
29918,
4381,
29918,
20158,
29918,
1853,
29898,
7345,
305,
29889,
11843,
29911,
6073,
29897,
13,
13,
1678,
696,
29883,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
273,
290,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
12324,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
260,
22230,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
13,
13,
1678,
396,
6694,
2295,
13,
1678,
9853,
29918,
2311,
353,
9853,
29918,
2311,
29918,
842,
29918,
29881,
4501,
1289,
29961,
24713,
29918,
978,
29962,
13,
1678,
7546,
29918,
2311,
353,
7546,
29918,
2311,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
1678,
301,
29878,
353,
301,
29878,
29918,
842,
29918,
29881,
4501,
1289,
29961,
24713,
29918,
978,
29962,
13,
1678,
281,
29881,
353,
281,
29881,
29918,
842,
29918,
29881,
4501,
1289,
29961,
24713,
29918,
978,
29962,
13,
1678,
6410,
29918,
9891,
353,
341,
1660,
29931,
2209,
580,
13,
1678,
1881,
29918,
2311,
29918,
842,
353,
518,
29916,
29889,
12181,
29961,
29900,
29962,
363,
921,
297,
1060,
29962,
13,
1678,
321,
567,
353,
29871,
29896,
29872,
29899,
29896,
29900,
13,
1678,
758,
14968,
353,
5852,
29871,
396,
12266,
3692,
278,
360,
7597,
7858,
338,
758,
29899,
3018,
1312,
763,
319,
29923,
13,
1678,
4464,
353,
525,
650,
29918,
1990,
29915,
13,
1678,
4974,
4464,
297,
6024,
650,
29918,
1990,
742,
525,
2695,
29918,
9917,
2033,
13,
1678,
565,
4464,
338,
525,
2695,
29918,
9917,
2396,
13,
4706,
4948,
353,
29871,
29900,
29889,
29896,
13,
4706,
14294,
29918,
1022,
2878,
29879,
353,
29871,
29945,
13,
4706,
4974,
14294,
29918,
1022,
2878,
29879,
5277,
1375,
29898,
1022,
2878,
29879,
29918,
842,
29961,
24713,
29918,
978,
2314,
13,
13,
1678,
363,
260,
297,
3464,
29898,
14358,
29918,
3706,
1125,
13,
4706,
1596,
877,
1576,
6571,
29899,
386,
1065,
16410,
29991,
4286,
4830,
29898,
29873,
876,
13,
4706,
363,
474,
297,
3464,
29898,
1195,
4197,
29896,
29900,
29892,
7431,
29898,
15380,
2164,
29918,
29979,
4638,
22164,
13,
13,
9651,
8877,
29892,
612,
29918,
1688,
353,
2048,
29918,
2492,
29918,
24713,
29898,
24713,
29918,
978,
29892,
612,
29892,
3480,
29918,
1990,
29918,
333,
29922,
15380,
2164,
29918,
29979,
29961,
29875,
1402,
4464,
29922,
3035,
24713,
29918,
8513,
29897,
13,
9651,
1060,
29918,
14968,
29892,
1060,
29918,
1688,
353,
1889,
29918,
328,
29918,
24713,
29898,
29990,
29892,
8877,
29897,
13,
13,
9651,
396,
448,
2683,
2683,
1378,
4282,
1418,
7003,
1664,
1090,
1857,
2295,
29889,
13,
9651,
7945,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
14968,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
5574,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
9651,
1243,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
1688,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
8824,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
13,
9651,
16717,
353,
29871,
29900,
13,
9651,
565,
4842,
305,
29889,
29883,
6191,
29889,
275,
29918,
16515,
7295,
13,
18884,
4842,
305,
29889,
29883,
6191,
29889,
11288,
29918,
26776,
29918,
497,
29898,
26776,
29897,
13,
9651,
4842,
305,
29889,
11288,
29918,
26776,
29898,
26776,
29897,
13,
9651,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
4801,
837,
262,
4695,
353,
5852,
13,
9651,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
1785,
16580,
353,
5852,
13,
13,
9651,
396,
448,
2683,
2683,
1378,
1457,
29899,
26495,
8792,
13,
9651,
565,
758,
14968,
29901,
13,
18884,
1904,
353,
286,
1564,
29872,
29918,
328,
29898,
2080,
29918,
2311,
29918,
842,
29922,
2080,
29918,
2311,
29918,
842,
29892,
7546,
29918,
29879,
7093,
29922,
13148,
29918,
2311,
467,
517,
29898,
10141,
29897,
13,
18884,
21502,
12168,
353,
21502,
12168,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
18884,
28495,
29918,
842,
353,
518,
29909,
19698,
29924,
1308,
580,
363,
474,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
18884,
5994,
3950,
353,
518,
20640,
29889,
3253,
314,
29898,
4299,
29889,
3660,
29918,
842,
29961,
29875,
1822,
16744,
3285,
301,
29878,
29922,
29212,
29892,
7688,
29918,
7099,
388,
29922,
9970,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
13,
18884,
1904,
29889,
14968,
580,
13,
18884,
11196,
353,
29871,
29900,
13,
18884,
363,
21502,
305,
297,
3464,
29898,
3317,
29898,
1022,
2878,
29879,
22164,
13,
462,
1678,
7945,
12657,
353,
260,
29939,
18933,
29898,
14968,
12657,
29897,
13,
462,
1678,
565,
11033,
24713,
29918,
8513,
338,
525,
21355,
537,
2396,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
8216,
877,
29881,
4501,
1289,
29918,
29888,
1509,
29892,
21502,
305,
29912,
1118,
633,
8945,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
8216,
877,
29881,
4501,
1289,
29918,
29888,
1509,
29892,
21502,
305,
29912,
1118,
4226,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
462,
1678,
363,
22645,
29892,
9853,
297,
26985,
29898,
14968,
12657,
1125,
13,
462,
4706,
1400,
5878,
353,
6629,
13,
462,
4706,
565,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
29897,
1405,
29871,
29896,
29901,
29871,
396,
363,
289,
29876,
29892,
9853,
2311,
1405,
29871,
29896,
13,
462,
9651,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
9651,
14391,
29918,
842,
353,
1904,
29898,
16175,
29897,
13,
462,
9651,
363,
1776,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
22164,
13,
462,
18884,
565,
21502,
305,
529,
21502,
12168,
29961,
1493,
5387,
13,
462,
462,
1678,
343,
353,
9853,
29961,
1493,
29962,
13,
462,
462,
1678,
6410,
353,
6410,
29918,
9891,
29898,
4905,
29879,
29918,
842,
29961,
1493,
1402,
343,
29897,
13,
13,
462,
462,
1678,
5994,
3950,
29961,
1493,
1822,
9171,
29918,
5105,
580,
13,
462,
462,
1678,
6410,
29889,
1627,
1328,
580,
13,
462,
462,
1678,
5994,
3950,
29961,
1493,
1822,
10568,
580,
13,
13,
462,
462,
1678,
28495,
29918,
842,
29961,
1493,
1822,
5504,
29898,
6758,
29889,
667,
3285,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
462,
462,
1678,
3151,
29918,
2490,
5878,
353,
525,
1776,
29912,
1118,
1162,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
1493,
29892,
28495,
29918,
842,
29961,
1493,
1822,
485,
29887,
29897,
13,
13,
462,
462,
1678,
1400,
5878,
4619,
3151,
29918,
2490,
5878,
13,
462,
9651,
11196,
4619,
29871,
29896,
13,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
2490,
5878,
29898,
1188,
29922,
2490,
5878,
29897,
13,
13,
18884,
628,
7945,
12657,
13,
13,
9651,
396,
396,
448,
2683,
2683,
26589,
842,
315,
363,
2473,
29899,
1493,
360,
7597,
7858,
13,
9651,
7945,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
14968,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
5574,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
9651,
28241,
29928,
7597,
7858,
353,
286,
854,
29883,
29918,
29888,
1509,
29898,
2080,
29918,
2311,
29918,
842,
29922,
2080,
29918,
2311,
29918,
842,
29892,
7546,
29918,
29879,
7093,
29922,
13148,
29918,
2311,
467,
517,
29898,
10141,
29897,
13,
9651,
263,
29872,
29918,
8977,
353,
1904,
29889,
3859,
29918,
8977,
580,
13,
9651,
270,
4501,
1289,
29918,
8977,
353,
28241,
29928,
7597,
7858,
29889,
3859,
29918,
8977,
580,
13,
9651,
263,
29872,
29918,
8977,
353,
426,
29895,
29901,
325,
363,
413,
29892,
325,
297,
263,
29872,
29918,
8977,
29889,
7076,
580,
565,
413,
297,
270,
4501,
1289,
29918,
8977,
29913,
13,
9651,
270,
4501,
1289,
29918,
8977,
29889,
5504,
29898,
3660,
29918,
8977,
29897,
13,
9651,
28241,
29928,
7597,
7858,
29889,
1359,
29918,
3859,
29918,
8977,
29898,
29881,
4501,
1289,
29918,
8977,
29897,
13,
13,
9651,
28241,
29928,
7597,
7858,
29889,
14513,
580,
13,
9651,
315,
29918,
842,
353,
5159,
13,
9651,
390,
353,
4842,
305,
29889,
3298,
359,
29898,
29896,
467,
517,
29898,
10141,
29897,
13,
9651,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
18884,
363,
22645,
29892,
9853,
297,
26985,
29898,
29873,
29939,
18933,
29898,
14968,
12657,
22164,
13,
462,
1678,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
1678,
3151,
29918,
16175,
29918,
5066,
296,
353,
28241,
29928,
7597,
7858,
29898,
16175,
29897,
13,
462,
1678,
315,
29918,
842,
29889,
4397,
29898,
2764,
29918,
16175,
29918,
5066,
296,
29889,
4801,
496,
3101,
13,
18884,
315,
29918,
842,
353,
4842,
305,
29889,
4117,
29898,
29907,
29918,
842,
29892,
3964,
29922,
29900,
29897,
13,
18884,
13128,
353,
4842,
305,
29889,
12676,
29898,
29907,
29918,
842,
29892,
3964,
29922,
29900,
29897,
13,
18884,
13128,
15625,
6897,
29898,
7050,
29897,
529,
321,
567,
29897,
669,
313,
7050,
529,
29871,
29900,
4638,
353,
448,
8961,
13,
18884,
13128,
15625,
6897,
29898,
7050,
29897,
529,
321,
567,
29897,
669,
313,
7050,
1405,
29871,
29900,
4638,
353,
321,
567,
13,
18884,
315,
353,
13128,
13,
13,
9651,
396,
448,
2683,
2683,
807,
14968,
278,
360,
7597,
7858,
13,
13,
9651,
21502,
12168,
353,
21502,
12168,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
9651,
28495,
353,
319,
19698,
29924,
1308,
580,
13,
9651,
5994,
3950,
353,
5994,
29889,
3253,
314,
29898,
29324,
29928,
7597,
7858,
29889,
16744,
3285,
301,
29878,
29922,
29212,
29892,
7688,
29918,
7099,
388,
29922,
9970,
29897,
13,
13,
9651,
28241,
29928,
7597,
7858,
29889,
14968,
580,
13,
9651,
11196,
353,
29871,
29900,
13,
9651,
363,
21502,
305,
297,
3464,
29898,
3317,
29898,
1022,
2878,
29879,
22164,
13,
13,
18884,
7945,
12657,
353,
260,
29939,
18933,
29898,
14968,
12657,
29897,
13,
18884,
565,
11033,
24713,
29918,
8513,
338,
525,
21355,
537,
2396,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
8216,
877,
29881,
4501,
1289,
29918,
29888,
1509,
29892,
21502,
305,
29912,
1118,
633,
8945,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
18884,
1683,
29901,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
8216,
877,
29881,
4501,
1289,
29918,
29888,
1509,
29892,
21502,
305,
29912,
1118,
4226,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
18884,
363,
22645,
29892,
9853,
297,
26985,
29898,
14968,
12657,
1125,
13,
462,
1678,
1400,
5878,
353,
6629,
13,
462,
1678,
565,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
29897,
1405,
29871,
29896,
29901,
29871,
396,
363,
289,
29876,
29892,
9853,
2311,
1405,
29871,
29896,
13,
462,
4706,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
13,
462,
4706,
14391,
353,
28241,
29928,
7597,
7858,
29898,
16175,
29897,
13,
462,
4706,
315,
353,
315,
29889,
517,
29898,
10141,
29897,
13,
13,
462,
4706,
1320,
353,
4842,
305,
29889,
2083,
3552,
4905,
29879,
448,
315,
29897,
3579,
29871,
29906,
29892,
3964,
29922,
29896,
29897,
13,
462,
4706,
565,
4464,
338,
525,
2695,
29918,
9917,
2396,
13,
462,
9651,
19435,
353,
1320,
448,
390,
3579,
29871,
29906,
13,
462,
9651,
6410,
353,
390,
3579,
29871,
29906,
718,
313,
29896,
847,
4948,
29897,
334,
4842,
305,
29889,
12676,
29898,
7345,
305,
29889,
3317,
29898,
7345,
305,
29889,
3298,
359,
29918,
4561,
29898,
1557,
2361,
511,
19435,
876,
13,
462,
4706,
1683,
29901,
13,
462,
9651,
6410,
353,
4842,
305,
29889,
12676,
29898,
5721,
29897,
13,
13,
462,
4706,
5994,
3950,
29889,
9171,
29918,
5105,
580,
13,
462,
4706,
6410,
29889,
1627,
1328,
580,
13,
462,
4706,
5994,
3950,
29889,
10568,
580,
13,
13,
462,
4706,
28495,
29889,
5504,
29898,
6758,
29889,
667,
3285,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
462,
4706,
565,
4464,
338,
525,
2695,
29918,
9917,
2396,
13,
462,
9651,
1400,
5878,
4619,
525,
24488,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
390,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
6758,
267,
29889,
485,
29887,
29892,
390,
29889,
667,
3101,
13,
462,
4706,
1683,
29901,
13,
462,
9651,
1400,
5878,
4619,
525,
24488,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
6758,
267,
29889,
485,
29887,
29897,
13,
13,
462,
4706,
565,
4464,
338,
525,
2695,
29918,
9917,
29915,
322,
21502,
305,
6736,
14294,
29918,
1022,
2878,
29879,
29901,
13,
462,
9651,
390,
29889,
1272,
353,
4842,
305,
29889,
20158,
29898,
657,
29918,
13471,
29898,
5721,
29892,
4948,
511,
4742,
29922,
10141,
29897,
13,
13,
462,
4706,
11196,
4619,
29871,
29896,
13,
13,
462,
1678,
7945,
12657,
29889,
842,
29918,
2490,
5878,
29898,
1188,
29922,
2490,
5878,
29897,
13,
13,
9651,
396,
448,
2683,
2683,
26589,
4299,
10115,
17540,
13,
9651,
28241,
29928,
7597,
7858,
29889,
14513,
580,
13,
9651,
19435,
29918,
842,
353,
5159,
13,
9651,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
18884,
363,
22645,
29892,
9853,
297,
26985,
29898,
29873,
29939,
18933,
29898,
1688,
12657,
22164,
13,
462,
1678,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
1678,
3151,
29918,
16175,
29918,
4905,
29879,
353,
28241,
29928,
7597,
7858,
29898,
16175,
29897,
13,
462,
1678,
19435,
353,
448,
29896,
29889,
334,
4842,
305,
29889,
2083,
3552,
2764,
29918,
16175,
29918,
4905,
29879,
448,
315,
29897,
3579,
29871,
29906,
29892,
3964,
29922,
29896,
29897,
13,
462,
1678,
19435,
29918,
842,
29889,
4397,
29898,
1557,
2361,
29889,
4801,
496,
3101,
13,
13,
18884,
19435,
29918,
842,
353,
4842,
305,
29889,
4117,
29898,
1557,
2361,
29918,
842,
29892,
3964,
29922,
29900,
29897,
13,
9651,
19435,
353,
19435,
29918,
842,
29889,
21970,
2141,
4801,
496,
2141,
23749,
580,
13,
13,
9651,
396,
448,
2683,
2683,
26589,
4299,
19745,
13,
9651,
696,
29883,
29892,
544,
29918,
273,
290,
29892,
544,
29918,
12324,
29892,
260,
22230,
353,
4078,
29918,
10198,
29918,
558,
29918,
2764,
345,
29918,
1272,
29898,
1557,
2361,
29922,
1557,
2361,
29892,
11073,
29922,
29979,
29918,
1688,
29892,
934,
29918,
2084,
29922,
8516,
29892,
26952,
29922,
8824,
29897,
13,
9651,
696,
29883,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
10198,
29897,
13,
9651,
544,
29918,
273,
290,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
273,
290,
29897,
13,
9651,
544,
29918,
12324,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
12324,
29897,
13,
9651,
260,
22230,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
6277,
29878,
29897,
13,
13,
13,
9651,
628,
1904,
13,
13,
1678,
396,
4078,
278,
2582,
13,
1678,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
29881,
4501,
1289,
29918,
29888,
3880,
742,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
1678,
2254,
29918,
2158,
29918,
9902,
29898,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
29881,
4501,
1289,
29918,
29888,
3880,
1495,
13,
13,
13,
1753,
28241,
29918,
13264,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
29892,
4742,
29892,
18698,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
2433,
1195,
272,
537,
29374,
13,
1678,
4842,
305,
29889,
842,
29918,
4381,
29918,
20158,
29918,
1853,
29898,
7345,
305,
29889,
11843,
29911,
6073,
29897,
13,
13,
1678,
696,
29883,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
273,
290,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
544,
29918,
12324,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
1678,
260,
22230,
29918,
9902,
353,
518,
2636,
363,
474,
297,
3464,
29898,
14358,
29918,
3706,
4638,
13,
13,
13,
1678,
396,
6694,
2295,
13,
1678,
9853,
29918,
2311,
353,
9853,
29918,
2311,
29918,
842,
29918,
13264,
29961,
24713,
29918,
978,
29962,
13,
1678,
301,
29878,
353,
301,
29878,
29918,
842,
29918,
13264,
29961,
24713,
29918,
978,
29962,
13,
1678,
281,
29881,
353,
281,
29881,
29918,
842,
29918,
13264,
29961,
24713,
29918,
978,
29962,
13,
1678,
565,
2582,
29918,
2084,
297,
518,
4286,
29914,
9902,
29914,
2033,
29901,
13,
4706,
364,
29918,
842,
353,
518,
29878,
29918,
842,
29918,
13264,
29961,
24713,
29918,
978,
5262,
13,
1678,
1683,
29901,
13,
4706,
364,
29918,
842,
353,
518,
29946,
29892,
29871,
29947,
29892,
29871,
29896,
29953,
29892,
29871,
29941,
29906,
29892,
29871,
29953,
29946,
29962,
13,
1678,
7546,
29918,
2311,
353,
7546,
29918,
2311,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
1678,
6410,
29918,
9891,
353,
341,
1660,
29931,
2209,
580,
13,
1678,
1881,
29918,
2311,
29918,
842,
353,
518,
29916,
29889,
12181,
29961,
29900,
29962,
363,
921,
297,
1060,
29962,
13,
13,
1678,
363,
364,
297,
364,
29918,
842,
29901,
13,
4706,
363,
260,
297,
3464,
29898,
14358,
29918,
3706,
1125,
13,
9651,
1596,
877,
1576,
6571,
29899,
386,
1065,
16410,
29991,
4286,
4830,
29898,
29873,
876,
13,
9651,
363,
474,
297,
3464,
29898,
1195,
4197,
29896,
29900,
29892,
7431,
29898,
15380,
2164,
29918,
29979,
4638,
22164,
13,
18884,
8877,
29892,
612,
29918,
1688,
353,
2048,
29918,
2492,
29918,
24713,
29898,
24713,
29918,
978,
29892,
612,
29892,
3480,
29918,
1990,
29918,
333,
29922,
15380,
2164,
29918,
29979,
29961,
29875,
1402,
4464,
29922,
3035,
24713,
29918,
8513,
29897,
13,
18884,
1060,
29918,
14968,
29892,
1060,
29918,
1688,
353,
1889,
29918,
328,
29918,
24713,
29898,
29990,
29892,
8877,
29897,
13,
13,
18884,
396,
448,
2683,
2683,
1378,
4299,
6694,
13,
18884,
16717,
353,
29871,
29900,
13,
18884,
565,
4842,
305,
29889,
29883,
6191,
29889,
275,
29918,
16515,
7295,
13,
462,
1678,
4842,
305,
29889,
29883,
6191,
29889,
11288,
29918,
26776,
29918,
497,
29898,
26776,
29897,
13,
18884,
4842,
305,
29889,
11288,
29918,
26776,
29898,
26776,
29897,
13,
18884,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
4801,
837,
262,
4695,
353,
5852,
13,
18884,
4842,
305,
29889,
1627,
1975,
29889,
29883,
566,
15755,
29889,
1785,
16580,
353,
5852,
13,
13,
18884,
1904,
353,
286,
1564,
29872,
29918,
13264,
29898,
2080,
29918,
2311,
29918,
842,
29922,
2080,
29918,
2311,
29918,
842,
29892,
7546,
29918,
29879,
7093,
29922,
13148,
29918,
2311,
29892,
7115,
29922,
29878,
467,
517,
29898,
10141,
29897,
13,
18884,
7945,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
14968,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
5574,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
13,
18884,
396,
2702,
6694,
8792,
13,
18884,
21502,
12168,
353,
21502,
12168,
29918,
842,
29961,
24713,
29918,
978,
29962,
13,
18884,
28495,
29918,
842,
353,
518,
29909,
19698,
29924,
1308,
580,
363,
474,
297,
3464,
29898,
2435,
29898,
29990,
29918,
14968,
28166,
13,
18884,
5994,
3950,
353,
5994,
29889,
3253,
314,
29898,
4299,
29889,
16744,
3285,
301,
29878,
29922,
29212,
29892,
7688,
29918,
7099,
388,
29922,
9970,
29897,
13,
13,
18884,
1904,
29889,
14968,
580,
13,
18884,
363,
21502,
305,
297,
3464,
29898,
3317,
29898,
1022,
2878,
29879,
22164,
13,
462,
1678,
7945,
12657,
353,
260,
29939,
18933,
29898,
14968,
12657,
29897,
13,
462,
1678,
565,
11033,
24713,
29918,
8513,
338,
525,
21355,
537,
2396,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
8216,
877,
29324,
13264,
29892,
21502,
305,
29912,
1118,
633,
8945,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
8216,
877,
29324,
13264,
29892,
21502,
305,
29912,
1118,
4226,
770,
8875,
4286,
4830,
29898,
1022,
2878,
29892,
18698,
29918,
29979,
29961,
29875,
12622,
13,
462,
1678,
363,
22645,
29892,
9853,
297,
26985,
29898,
14968,
12657,
1125,
13,
462,
4706,
1400,
5878,
353,
6629,
13,
462,
4706,
565,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
29897,
1405,
29871,
29896,
29901,
29871,
396,
363,
289,
29876,
29892,
9853,
2311,
1405,
29871,
29896,
13,
462,
9651,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
9651,
14391,
29918,
842,
353,
1904,
29898,
16175,
29897,
13,
13,
462,
9651,
6410,
353,
4842,
305,
29889,
3298,
359,
29898,
29896,
467,
517,
29898,
10141,
29897,
13,
462,
9651,
363,
11148,
297,
3464,
29898,
2435,
29898,
16175,
22164,
13,
462,
18884,
3151,
29918,
1493,
29918,
6758,
353,
6410,
29918,
9891,
29898,
4905,
29879,
29918,
842,
29961,
645,
1402,
9853,
29961,
645,
2314,
13,
462,
18884,
28495,
29918,
842,
29961,
645,
1822,
5504,
29898,
2764,
29918,
1493,
29918,
6758,
29892,
9853,
29961,
29900,
1822,
2311,
29898,
29900,
876,
13,
462,
18884,
3151,
29918,
2490,
5878,
353,
525,
1776,
29912,
1118,
1162,
29918,
6758,
29901,
12365,
29889,
29946,
29888,
29913,
15300,
4830,
29898,
645,
29892,
28495,
29918,
842,
29961,
645,
1822,
485,
29887,
29897,
13,
462,
18884,
1400,
5878,
4619,
3151,
29918,
2490,
5878,
13,
462,
18884,
6410,
4619,
3151,
29918,
1493,
29918,
6758,
13,
13,
462,
9651,
5994,
3950,
29889,
9171,
29918,
5105,
580,
13,
462,
9651,
6410,
29889,
1627,
1328,
580,
13,
462,
9651,
5994,
3950,
29889,
10568,
580,
13,
13,
462,
4706,
7945,
12657,
29889,
842,
29918,
2490,
5878,
29898,
1188,
29922,
2490,
5878,
29897,
13,
13,
18884,
396,
396,
448,
2683,
2683,
26589,
4299,
6724,
13,
18884,
1243,
12657,
353,
3630,
10036,
29898,
24713,
29922,
29324,
29918,
24713,
29898,
29990,
29918,
1688,
511,
9853,
29918,
2311,
29922,
16175,
29918,
2311,
29892,
528,
21897,
29922,
8824,
29892,
954,
29918,
1287,
414,
29922,
29896,
29892,
5321,
403,
29918,
9144,
29922,
29324,
29918,
9456,
29918,
1054,
9632,
29897,
13,
18884,
411,
4842,
305,
29889,
1217,
29918,
5105,
7295,
13,
462,
1678,
1904,
29889,
14513,
580,
13,
462,
1678,
19435,
353,
518,
2636,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
462,
1678,
363,
22645,
29892,
9853,
297,
26985,
29898,
29873,
29939,
18933,
29898,
1688,
12657,
22164,
13,
462,
4706,
9853,
353,
518,
16175,
29961,
29875,
1822,
517,
29898,
10141,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
16175,
28166,
13,
462,
4706,
3151,
29918,
16175,
29918,
1557,
2361,
353,
1904,
29889,
657,
29918,
328,
29918,
1557,
2361,
29898,
16175,
29897,
13,
462,
4706,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
22164,
13,
462,
9651,
19435,
29961,
893,
1822,
4397,
29898,
2764,
29918,
16175,
29918,
1557,
2361,
29961,
893,
2314,
13,
462,
1678,
19435,
353,
518,
7345,
305,
29889,
4117,
29898,
1557,
2361,
29961,
893,
1402,
3964,
29922,
29900,
29897,
363,
17971,
297,
3464,
29898,
2435,
29898,
29990,
29918,
1688,
28166,
13,
462,
1678,
19435,
353,
5683,
29918,
29888,
3958,
29898,
1557,
2361,
29892,
10366,
2433,
485,
29887,
1495,
13,
13,
18884,
396,
448,
2683,
2683,
26589,
4299,
19745,
13,
18884,
696,
29883,
29892,
544,
29918,
273,
290,
29892,
544,
29918,
12324,
29892,
260,
22230,
353,
4078,
29918,
10198,
29918,
558,
29918,
2764,
345,
29918,
1272,
29898,
1557,
2361,
29922,
1557,
2361,
29892,
11073,
29922,
29979,
29918,
1688,
29892,
934,
29918,
2084,
29922,
8516,
29892,
26952,
29922,
8824,
29897,
13,
18884,
696,
29883,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
10198,
29897,
13,
18884,
544,
29918,
273,
290,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
273,
290,
29897,
13,
18884,
544,
29918,
12324,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
558,
29918,
12324,
29897,
13,
18884,
260,
22230,
29918,
9902,
29961,
29873,
1822,
4397,
29898,
6277,
29878,
29897,
13,
13,
13,
18884,
628,
1904,
13,
13,
4706,
396,
4078,
278,
2582,
13,
4706,
565,
2582,
29918,
2084,
297,
518,
4286,
29914,
9902,
29914,
2033,
29901,
13,
13,
9651,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
13264,
742,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
9651,
2254,
29918,
2158,
29918,
9902,
29898,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
13264,
1495,
13,
4706,
1683,
29901,
13,
9651,
7442,
29889,
7620,
29920,
29898,
1445,
29922,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
13264,
29918,
29878,
648,
29913,
4286,
4830,
29898,
29878,
511,
16641,
29907,
29922,
10198,
29918,
9902,
29892,
12089,
29918,
12324,
29922,
558,
29918,
12324,
29918,
9902,
29892,
12089,
29918,
273,
290,
29922,
558,
29918,
273,
290,
29918,
9902,
29892,
260,
22230,
29922,
6277,
29878,
29918,
9902,
29897,
13,
13,
9651,
2254,
29918,
2158,
29918,
9902,
29898,
9902,
29918,
2084,
718,
8783,
29918,
978,
718,
22868,
13264,
29918,
29878,
648,
29913,
4286,
4830,
29898,
29878,
876,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
13,
1678,
2897,
29889,
21813,
3366,
29907,
29965,
7698,
29918,
28607,
8979,
1307,
29918,
2287,
29963,
2965,
2890,
3108,
353,
376,
29900,
29908,
13,
1678,
4742,
353,
4842,
305,
29889,
10141,
877,
29883,
6191,
29915,
565,
4842,
305,
29889,
29883,
6191,
29889,
275,
29918,
16515,
580,
1683,
525,
21970,
1495,
13,
13,
1678,
396,
448,
2683,
2683,
26589,
19125,
278,
8783,
13,
1678,
396,
8783,
29918,
842,
353,
6024,
20082,
742,
525,
1030,
579,
742,
525,
2267,
1099,
742,
525,
1165,
616,
742,
525,
2616,
7177,
742,
525,
29879,
351,
986,
284,
742,
525,
2084,
742,
525,
672,
655,
742,
525,
29886,
29765,
6405,
2033,
13,
1678,
396,
8783,
29918,
842,
353,
6024,
29324,
371,
29883,
29918,
29890,
1501,
280,
742,
13,
1678,
396,
18884,
525,
29324,
371,
29883,
29918,
29883,
519,
742,
525,
29324,
371,
29883,
29918,
29883,
2547,
1297,
742,
525,
29324,
371,
29883,
29918,
4287,
10963,
742,
525,
29324,
371,
29883,
29918,
7720,
742,
525,
29324,
371,
29883,
29918,
29882,
834,
3478,
329,
742,
525,
29324,
371,
29883,
29918,
280,
1624,
742,
525,
29324,
371,
29883,
29918,
2527,
284,
29918,
21305,
742,
525,
29324,
371,
29883,
29918,
29886,
453,
742,
13,
1678,
396,
462,
539,
525,
29324,
371,
29883,
29918,
29879,
1037,
29893,
742,
525,
29324,
371,
29883,
29918,
29873,
488,
742,
525,
29324,
371,
29883,
29918,
517,
720,
1182,
1878,
742,
525,
29324,
371,
29883,
29918,
3286,
2118,
742,
525,
29324,
371,
29883,
29918,
6115,
742,
525,
29324,
371,
29883,
29918,
2526,
2496,
2033,
13,
1678,
396,
8783,
29918,
842,
353,
6024,
29883,
361,
279,
29896,
29900,
742,
525,
29883,
361,
279,
29896,
29900,
29900,
742,
525,
23521,
391,
742,
525,
29888,
23521,
391,
742,
525,
4501,
3123,
2033,
13,
1678,
396,
8783,
29918,
842,
353,
6024,
3637,
2161,
2033,
13,
13,
1678,
8783,
29918,
842,
353,
6024,
3637,
2161,
2033,
13,
13,
13,
13,
1678,
396,
448,
2683,
2683,
1378,
23515,
13,
1678,
363,
8783,
29918,
978,
297,
8783,
29918,
842,
29901,
13,
4706,
1060,
29892,
612,
353,
1303,
29918,
24713,
877,
6904,
1272,
29914,
742,
8783,
29918,
978,
29897,
13,
13,
4706,
396,
363,
474,
297,
3464,
29898,
2435,
29898,
29990,
22164,
13,
4706,
396,
268,
3151,
29918,
29990,
353,
1060,
29961,
29875,
29962,
13,
4706,
396,
268,
22645,
353,
7442,
29889,
275,
13707,
29898,
2764,
29918,
29990,
467,
2083,
580,
13,
4706,
396,
268,
565,
22645,
1405,
29871,
29900,
29901,
13,
4706,
396,
308,
1596,
877,
24713,
29901,
24335,
1776,
29901,
6571,
756,
18780,
29991,
4286,
4830,
29898,
24713,
29918,
978,
29892,
474,
876,
13,
13,
4706,
1375,
29918,
1990,
29918,
1949,
353,
29871,
29941,
29900,
29900,
13,
4706,
4226,
29918,
14968,
29918,
3605,
601,
353,
29871,
29900,
29889,
29955,
13,
4706,
565,
8783,
29918,
978,
7503,
29945,
29962,
297,
6024,
29324,
371,
29883,
2033,
29901,
13,
9651,
18698,
29918,
29979,
353,
679,
29918,
16961,
29918,
1990,
29898,
29979,
29892,
1375,
29918,
1990,
29918,
1949,
29922,
1195,
29918,
1990,
29918,
1949,
29892,
29505,
29922,
5574,
29897,
13,
4706,
1683,
29901,
13,
9651,
18698,
29918,
29979,
353,
679,
29918,
16961,
29918,
1990,
29898,
29979,
29892,
1375,
29918,
1990,
29918,
1949,
29922,
1195,
29918,
1990,
29918,
1949,
29897,
13,
4706,
954,
29918,
15380,
2164,
29918,
1990,
353,
7431,
29898,
15380,
2164,
29918,
29979,
29897,
13,
4706,
12312,
29918,
3706,
353,
29871,
29896,
29871,
396,
7945,
29899,
1688,
6219,
338,
4343,
13,
4706,
11033,
24713,
29918,
8513,
353,
525,
1195,
272,
537,
29915,
13,
13,
4706,
565,
954,
29918,
15380,
2164,
29918,
1990,
1405,
29871,
29900,
29901,
13,
9651,
1596,
877,
5323,
2827,
8783,
1024,
29901,
24335,
18698,
770,
1353,
29901,
6571,
29914,
8875,
4286,
4830,
29898,
24713,
29918,
978,
29892,
954,
29918,
15380,
2164,
29918,
1990,
29892,
7431,
29898,
657,
29918,
497,
29918,
21134,
29898,
29979,
13697,
13,
13,
9651,
396,
448,
2683,
9072,
5634,
9496,
24210,
2683,
2683,
5634,
13,
13,
9651,
2560,
29918,
29885,
1564,
29872,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
9902,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29897,
13,
13,
9651,
396,
448,
2683,
9072,
5634,
15329,
29899,
1493,
21736,
2729,
3519,
9072,
29899,
13,
13,
9651,
396,
2560,
21736,
29901,
13,
9651,
28241,
29918,
893,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
9902,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29892,
4464,
2433,
29888,
1509,
742,
1828,
29918,
8513,
2433,
3317,
1495,
13,
13,
9651,
28241,
29918,
893,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
9902,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29892,
4464,
2433,
29888,
1509,
742,
1828,
29918,
8513,
2433,
2083,
1495,
13,
13,
9651,
28241,
29918,
893,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
9902,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29892,
4464,
2433,
29888,
1509,
742,
1828,
29918,
8513,
2433,
15755,
1495,
13,
13,
9651,
396,
758,
29899,
3018,
1312,
319,
29923,
2729,
21736,
13,
9651,
286,
1564,
29872,
29918,
29888,
1509,
29918,
5066,
296,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
9902,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29897,
13,
13,
9651,
396,
6535,
29940,
2729,
13,
9651,
1018,
29901,
13,
18884,
28241,
29918,
2585,
29876,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
9902,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29897,
13,
9651,
5174,
29901,
13,
18884,
1596,
877,
24713,
29901,
6571,
4833,
29876,
1059,
4286,
4830,
29898,
24713,
29918,
978,
876,
13,
18884,
1209,
13,
13,
9651,
396,
323,
6073,
21736,
3564,
2729,
3519,
13,
9651,
28241,
29918,
13264,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
9902,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29897,
13,
13,
9651,
396,
448,
2683,
9072,
5634,
15329,
29899,
1493,
22239,
2729,
3519,
28400,
13,
13,
9651,
28241,
29918,
2616,
336,
29872,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
9902,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29897,
13,
13,
9651,
28241,
29918,
3601,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
9902,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29897,
13,
13,
9651,
1018,
29901,
13,
18884,
6483,
4174,
29909,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
9902,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29897,
13,
9651,
5174,
29901,
13,
18884,
1596,
877,
24713,
29901,
6571,
270,
17630,
1059,
4286,
4830,
29898,
24713,
29918,
978,
876,
13,
18884,
1209,
13,
13,
9651,
1018,
29901,
13,
18884,
270,
29887,
17630,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
9902,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29897,
13,
9651,
5174,
29901,
13,
18884,
1596,
877,
24713,
29901,
6571,
270,
29887,
17630,
1059,
4286,
4830,
29898,
24713,
29918,
978,
876,
13,
18884,
1209,
13,
13,
9651,
396,
448,
2683,
9072,
489,
2772,
1022,
697,
29899,
1990,
6509,
2729,
3519,
12464,
4395,
363,
2473,
29899,
1493,
1206,
23648,
13,
13,
9651,
2560,
29918,
29324,
29928,
7597,
7858,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
9902,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29897,
13,
13,
9651,
28241,
29928,
7597,
7858,
29918,
29888,
3880,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
9902,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29897,
13,
13,
9651,
396,
448,
2683,
9072,
489,
24313,
29899,
9136,
4924,
2729,
3519,
2683,
2683,
9072,
29899,
13,
13,
9651,
28241,
29918,
893,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
9902,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29892,
4464,
2433,
11965,
742,
13,
462,
29871,
1828,
29918,
8513,
2433,
20227,
1495,
13,
13,
9651,
28241,
29918,
893,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
9902,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29892,
4464,
2433,
5451,
742,
13,
462,
29871,
1828,
29918,
8513,
2433,
20227,
1495,
13,
13,
13,
13,
13,
4706,
396,
268,
396,
448,
2683,
1378,
2831,
11266,
15501,
7418,
2683,
9072,
5634,
13,
4706,
396,
13,
4706,
396,
268,
28241,
29918,
3601,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
15916,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29897,
13,
4706,
396,
13,
4706,
396,
268,
28241,
29918,
2616,
336,
29872,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
15916,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29897,
13,
4706,
396,
13,
4706,
396,
268,
1018,
29901,
13,
4706,
396,
308,
6483,
4174,
29909,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
15916,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29897,
13,
4706,
396,
268,
5174,
29901,
13,
4706,
396,
308,
1596,
877,
24713,
29901,
6571,
270,
17630,
1059,
4286,
4830,
29898,
24713,
29918,
978,
876,
13,
4706,
396,
308,
1209,
13,
4706,
396,
13,
4706,
396,
268,
1018,
29901,
13,
4706,
396,
308,
270,
29887,
17630,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
15916,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29897,
13,
4706,
396,
268,
5174,
29901,
13,
4706,
396,
308,
1596,
877,
24713,
29901,
6571,
270,
29887,
17630,
1059,
4286,
4830,
29898,
24713,
29918,
978,
876,
13,
4706,
396,
308,
1209,
13,
4706,
396,
13,
4706,
396,
268,
28241,
29918,
13264,
29898,
24713,
29918,
978,
29892,
1060,
29892,
612,
29892,
12312,
29918,
3706,
29892,
4226,
29918,
14968,
29918,
3605,
601,
29892,
2582,
29918,
2084,
2433,
6904,
15916,
29914,
742,
4742,
29922,
10141,
29892,
18698,
29918,
29979,
29922,
15380,
2164,
29918,
29979,
29892,
11033,
24713,
29918,
8513,
29922,
3035,
24713,
29918,
8513,
29897,
13,
4706,
396,
1683,
29901,
13,
4706,
396,
268,
1596,
877,
3782,
18698,
770,
297,
445,
8783,
29991,
1495,
13,
13,
13,
13,
13,
13,
13,
13,
13,
13,
13,
13,
13,
13,
13,
2
] |
remote-scripts/ConfigureDnsServer.py | xian123/azure-freebsd-automation | 1 | 46533 | <reponame>xian123/azure-freebsd-automation
#!/usr/bin/python
import argparse
import sys
from azuremodules import *
import paramiko
parser = argparse.ArgumentParser()
parser.add_argument('-D', '--vnetDomain_db_filepath', help='VNET Domain db filepath', required=True)
parser.add_argument('-r', '--vnetDomain_rev_filepath', help='VNET rev filepath',required=True)
parser.add_argument('-v', '--HostnameDIP', help='hosts filepath',required = True)
args = parser.parse_args()
vnetDomain_db_filepath = str(args.vnetDomain_db_filepath)
vnetDomain_rev_filepath = str(args.vnetDomain_rev_filepath)
HostnameDIP=str(args.HostnameDIP)
vnetDomain=(vnetDomain_db_filepath.split("/"))[len((vnetDomain_db_filepath.split("/")))-1].replace(".db","")
#SAMPLE INPUT FOR --vms
#HostnameDIP = 'ICA-VNETVM-Ubuntu1210PL-4-16-2013-1-2-0-role-0:192.168.4.196^ICA-VNETVM-Ubuntu1210PL-4-16-2013-1-2-0-role-1:192.168.4.132^ICA-VNETVM-Ubuntu1210PL-4-16-2013-1-2-1-role-0:192.168.4.133^ICA-VNETVM-Ubuntu1210PL-4-16-2013-1-2-1-role-1:192.168.4.197'
#SETTING THE GLOBAL PARAMS..
#SetVnetGlobalParameters()
#CONFIGURIG DNS SERVER CONFIGURATIONS FILES..
DNSServerStatus = AddICAVMsToDnsServer(HostnameDIP,vnetDomain_db_filepath,vnetDomain_rev_filepath)
#RESTARTING BIND9 SERVICE..
output = JustRun('service bind9 restart')
if DNSServerStatus == 0:
print("CONFIGURATION_SUCCESSFUL")
else:
print("CONFIGURATION_FAILED") | [
1,
529,
276,
1112,
420,
29958,
29916,
713,
29896,
29906,
29941,
29914,
17688,
29899,
10745,
774,
4928,
29899,
17405,
362,
13,
29937,
14708,
4855,
29914,
2109,
29914,
4691,
13,
13,
5215,
1852,
5510,
13,
5215,
10876,
13,
3166,
15699,
7576,
1053,
334,
13,
5215,
1828,
10349,
13,
16680,
353,
1852,
5510,
29889,
15730,
11726,
580,
13,
16680,
29889,
1202,
29918,
23516,
877,
29899,
29928,
742,
525,
489,
29894,
1212,
15951,
29918,
2585,
29918,
1445,
2084,
742,
1371,
2433,
29963,
6006,
28460,
4833,
934,
2084,
742,
3734,
29922,
5574,
29897,
13,
16680,
29889,
1202,
29918,
23516,
877,
29899,
29878,
742,
525,
489,
29894,
1212,
15951,
29918,
13478,
29918,
1445,
2084,
742,
1371,
2433,
29963,
6006,
6664,
934,
2084,
742,
12403,
29922,
5574,
29897,
13,
16680,
29889,
1202,
29918,
23516,
877,
29899,
29894,
742,
525,
489,
8514,
978,
4571,
29925,
742,
1371,
2433,
23525,
934,
2084,
742,
12403,
353,
5852,
29897,
13,
5085,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
29894,
1212,
15951,
29918,
2585,
29918,
1445,
2084,
353,
29871,
851,
29898,
5085,
29889,
29894,
1212,
15951,
29918,
2585,
29918,
1445,
2084,
29897,
13,
29894,
1212,
15951,
29918,
13478,
29918,
1445,
2084,
353,
851,
29898,
5085,
29889,
29894,
1212,
15951,
29918,
13478,
29918,
1445,
2084,
29897,
13,
8514,
978,
4571,
29925,
29922,
710,
29898,
5085,
29889,
8514,
978,
4571,
29925,
29897,
13,
29894,
1212,
15951,
7607,
29894,
1212,
15951,
29918,
2585,
29918,
1445,
2084,
29889,
5451,
11974,
5783,
29961,
2435,
3552,
29894,
1212,
15951,
29918,
2585,
29918,
1445,
2084,
29889,
5451,
11974,
29908,
4961,
29899,
29896,
1822,
6506,
17350,
2585,
3284,
1159,
13,
29937,
8132,
3580,
1307,
2672,
12336,
15842,
1192,
29894,
1516,
13,
29937,
8514,
978,
4571,
29925,
353,
525,
2965,
29909,
29899,
29963,
6006,
9219,
29899,
29965,
6037,
29896,
29906,
29896,
29900,
7390,
29899,
29946,
29899,
29896,
29953,
29899,
29906,
29900,
29896,
29941,
29899,
29896,
29899,
29906,
29899,
29900,
29899,
12154,
29899,
29900,
29901,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29946,
29889,
29896,
29929,
29953,
29985,
2965,
29909,
29899,
29963,
6006,
9219,
29899,
29965,
6037,
29896,
29906,
29896,
29900,
7390,
29899,
29946,
29899,
29896,
29953,
29899,
29906,
29900,
29896,
29941,
29899,
29896,
29899,
29906,
29899,
29900,
29899,
12154,
29899,
29896,
29901,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29946,
29889,
29896,
29941,
29906,
29985,
2965,
29909,
29899,
29963,
6006,
9219,
29899,
29965,
6037,
29896,
29906,
29896,
29900,
7390,
29899,
29946,
29899,
29896,
29953,
29899,
29906,
29900,
29896,
29941,
29899,
29896,
29899,
29906,
29899,
29896,
29899,
12154,
29899,
29900,
29901,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29946,
29889,
29896,
29941,
29941,
29985,
2965,
29909,
29899,
29963,
6006,
9219,
29899,
29965,
6037,
29896,
29906,
29896,
29900,
7390,
29899,
29946,
29899,
29896,
29953,
29899,
29906,
29900,
29896,
29941,
29899,
29896,
29899,
29906,
29899,
29896,
29899,
12154,
29899,
29896,
29901,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29946,
29889,
29896,
29929,
29955,
29915,
13,
29937,
10490,
29911,
4214,
6093,
402,
28902,
1964,
349,
1718,
29909,
4345,
636,
13,
29937,
2697,
29963,
1212,
12756,
11507,
580,
13,
29937,
25903,
15551,
29954,
16332,
26996,
5348,
8707,
18667,
4574,
8098,
29903,
9338,
17101,
636,
13,
29928,
3059,
6004,
5709,
353,
3462,
2965,
7520,
29924,
29879,
1762,
29928,
1983,
6004,
29898,
8514,
978,
4571,
29925,
29892,
29894,
1212,
15951,
29918,
2585,
29918,
1445,
2084,
29892,
29894,
1212,
15951,
29918,
13478,
29918,
1445,
2084,
29897,
13,
29937,
1525,
25826,
4214,
350,
22255,
29929,
26996,
19059,
636,
13,
4905,
353,
3387,
6558,
877,
5509,
7868,
29929,
10715,
1495,
13,
361,
16332,
6004,
5709,
1275,
29871,
29900,
29901,
13,
4706,
1596,
703,
25903,
4574,
8098,
29918,
14605,
26925,
29943,
13309,
1159,
13,
2870,
29901,
13,
4706,
1596,
703,
25903,
4574,
8098,
29918,
4519,
29902,
20566,
1159,
2
] |
uq_benchmark_2019/imagenet/end_to_end_test.py | deepneuralmachine/google-research | 23,901 | 20175 | <gh_stars>1000+
# coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Lint as: python2, python3
"""End-to-end test for ImageNet.
Tests for imagenet.resnet50_train, run_predict, run_temp_scaling, and
run_metrics. Real data doesn't work under blaze, so execute the test binary
directly.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import tempfile
from absl import flags
from absl.testing import absltest
from absl.testing import parameterized
import tensorflow.compat.v2 as tf
from uq_benchmark_2019.imagenet import resnet50_train # pylint: disable=line-too-long
from uq_benchmark_2019.imagenet import run_metrics
from uq_benchmark_2019.imagenet import run_predict
from uq_benchmark_2019.imagenet import run_temp_scaling
gfile = tf.io.gfile
flags.DEFINE_bool('fake_data', True, 'Use dummy random data.')
flags.DEFINE_bool('fake_training', True, 'Train with trivial number of steps.')
DATA_NAMES = ['train', 'test', 'corrupt-static-gaussian_noise-2', 'celeb_a']
METHODS = ['vanilla', 'll_dropout', 'll_svi', 'dropout']
class EndToEndTest(parameterized.TestCase):
@parameterized.parameters(*[(d, m) for d in DATA_NAMES for m in METHODS]) # pylint: disable=g-complex-comprehension
def test_end_to_end_train(self, data_name, method):
with tempfile.TemporaryDirectory() as model_dir:
metrics = ['sparse_categorical_crossentropy']
if flags.FLAGS.fake_data and (data_name != 'test'):
pass
else:
temp_model_dir = os.path.join(model_dir, data_name, method)
resnet50_train.run(
method, temp_model_dir, task_number=0, use_tpu=False, tpu=None,
metrics=metrics, fake_data=flags.FLAGS.fake_data,
fake_training=flags.FLAGS.fake_training)
run_predict.run(
data_name, temp_model_dir, batch_size=8, predictions_per_example=4,
max_examples=44, output_dir=temp_model_dir,
fake_data=flags.FLAGS.fake_data)
tmpl = os.path.join(temp_model_dir, '*_small_*')
glob_results = gfile.glob(tmpl)
path = glob_results[0]
if data_name == 'valid':
run_temp_scaling(path)
run_metrics.run(path, path, model_dir_ensemble=None,
use_temp_scaling=False)
if __name__ == '__main__':
absltest.main()
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29900,
29974,
13,
29937,
14137,
29922,
9420,
29899,
29947,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29906,
29896,
450,
5087,
10550,
13189,
943,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937,
366,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
13,
29937,
887,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
13,
29937,
13,
29937,
268,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
29937,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
13,
29937,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
13,
29937,
2823,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
13,
29937,
27028,
1090,
278,
19245,
29889,
13,
13,
29937,
365,
524,
408,
29901,
3017,
29906,
29892,
3017,
29941,
13,
15945,
29908,
5044,
29899,
517,
29899,
355,
1243,
363,
7084,
6779,
29889,
13,
13,
24376,
363,
527,
5370,
300,
29889,
690,
1212,
29945,
29900,
29918,
14968,
29892,
1065,
29918,
27711,
29892,
1065,
29918,
7382,
29918,
19529,
292,
29892,
322,
13,
3389,
29918,
2527,
10817,
29889,
8195,
848,
1838,
29915,
29873,
664,
1090,
12995,
911,
29892,
577,
6222,
278,
1243,
7581,
13,
11851,
368,
29889,
13,
13,
15945,
29908,
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,
5694,
1445,
13,
13,
3166,
633,
2536,
1053,
13449,
13,
3166,
633,
2536,
29889,
13424,
1053,
633,
2536,
1688,
13,
3166,
633,
2536,
29889,
13424,
1053,
3443,
1891,
13,
5215,
26110,
29889,
12667,
29889,
29894,
29906,
408,
15886,
13,
13,
3166,
318,
29939,
29918,
1785,
16580,
29918,
29906,
29900,
29896,
29929,
29889,
326,
5370,
300,
1053,
620,
1212,
29945,
29900,
29918,
14968,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
1220,
29899,
517,
29877,
29899,
5426,
13,
3166,
318,
29939,
29918,
1785,
16580,
29918,
29906,
29900,
29896,
29929,
29889,
326,
5370,
300,
1053,
1065,
29918,
2527,
10817,
13,
3166,
318,
29939,
29918,
1785,
16580,
29918,
29906,
29900,
29896,
29929,
29889,
326,
5370,
300,
1053,
1065,
29918,
27711,
13,
3166,
318,
29939,
29918,
1785,
16580,
29918,
29906,
29900,
29896,
29929,
29889,
326,
5370,
300,
1053,
1065,
29918,
7382,
29918,
19529,
292,
13,
13,
29887,
1445,
353,
15886,
29889,
601,
29889,
29887,
1445,
13,
13,
15764,
29889,
24405,
8895,
29918,
11227,
877,
29888,
1296,
29918,
1272,
742,
5852,
29892,
525,
11403,
20254,
4036,
848,
29889,
1495,
13,
15764,
29889,
24405,
8895,
29918,
11227,
877,
29888,
1296,
29918,
26495,
742,
5852,
29892,
525,
5323,
262,
411,
12604,
1353,
310,
6576,
29889,
1495,
13,
13,
14573,
29918,
5813,
29903,
353,
6024,
14968,
742,
525,
1688,
742,
525,
2616,
6685,
29899,
7959,
29899,
29887,
17019,
29918,
1217,
895,
29899,
29906,
742,
525,
346,
19982,
29918,
29874,
2033,
13,
13,
2303,
4690,
29949,
8452,
353,
6024,
3703,
2911,
742,
525,
645,
29918,
8865,
449,
742,
525,
645,
29918,
29879,
1403,
742,
525,
8865,
449,
2033,
13,
13,
13,
1990,
2796,
1762,
5044,
3057,
29898,
15501,
1891,
29889,
3057,
8259,
1125,
13,
13,
29871,
732,
15501,
1891,
29889,
16744,
10456,
15625,
29881,
29892,
286,
29897,
363,
270,
297,
360,
8254,
29918,
5813,
29903,
363,
286,
297,
341,
2544,
8187,
8452,
2314,
29871,
396,
282,
2904,
524,
29901,
11262,
29922,
29887,
29899,
19676,
29899,
510,
1457,
29882,
2673,
13,
29871,
822,
1243,
29918,
355,
29918,
517,
29918,
355,
29918,
14968,
29898,
1311,
29892,
848,
29918,
978,
29892,
1158,
1125,
13,
1678,
411,
5694,
1445,
29889,
5776,
1971,
653,
9882,
580,
408,
1904,
29918,
3972,
29901,
13,
418,
21556,
353,
6024,
29879,
5510,
29918,
29883,
20440,
936,
29918,
19128,
296,
14441,
2033,
13,
418,
565,
13449,
29889,
18823,
10749,
29889,
29888,
1296,
29918,
1272,
322,
313,
1272,
29918,
978,
2804,
525,
1688,
29374,
13,
4706,
1209,
13,
418,
1683,
29901,
13,
4706,
5694,
29918,
4299,
29918,
3972,
353,
2897,
29889,
2084,
29889,
7122,
29898,
4299,
29918,
3972,
29892,
848,
29918,
978,
29892,
1158,
29897,
13,
4706,
620,
1212,
29945,
29900,
29918,
14968,
29889,
3389,
29898,
13,
9651,
1158,
29892,
5694,
29918,
4299,
29918,
3972,
29892,
3414,
29918,
4537,
29922,
29900,
29892,
671,
29918,
29873,
3746,
29922,
8824,
29892,
260,
3746,
29922,
8516,
29892,
13,
9651,
21556,
29922,
2527,
10817,
29892,
25713,
29918,
1272,
29922,
15764,
29889,
18823,
10749,
29889,
29888,
1296,
29918,
1272,
29892,
13,
9651,
25713,
29918,
26495,
29922,
15764,
29889,
18823,
10749,
29889,
29888,
1296,
29918,
26495,
29897,
13,
13,
4706,
1065,
29918,
27711,
29889,
3389,
29898,
13,
9651,
848,
29918,
978,
29892,
5694,
29918,
4299,
29918,
3972,
29892,
9853,
29918,
2311,
29922,
29947,
29892,
27303,
29918,
546,
29918,
4773,
29922,
29946,
29892,
13,
9651,
4236,
29918,
19057,
29922,
29946,
29946,
29892,
1962,
29918,
3972,
29922,
7382,
29918,
4299,
29918,
3972,
29892,
13,
9651,
25713,
29918,
1272,
29922,
15764,
29889,
18823,
10749,
29889,
29888,
1296,
29918,
1272,
29897,
13,
13,
4706,
27702,
572,
353,
2897,
29889,
2084,
29889,
7122,
29898,
7382,
29918,
4299,
29918,
3972,
29892,
525,
29930,
29918,
9278,
24563,
1495,
13,
4706,
13149,
29918,
9902,
353,
330,
1445,
29889,
23705,
29898,
18276,
572,
29897,
13,
4706,
2224,
353,
13149,
29918,
9902,
29961,
29900,
29962,
13,
4706,
565,
848,
29918,
978,
1275,
525,
3084,
2396,
13,
3986,
1065,
29918,
7382,
29918,
19529,
292,
29898,
2084,
29897,
13,
4706,
1065,
29918,
2527,
10817,
29889,
3389,
29898,
2084,
29892,
2224,
29892,
1904,
29918,
3972,
29918,
24031,
29922,
8516,
29892,
13,
462,
4706,
671,
29918,
7382,
29918,
19529,
292,
29922,
8824,
29897,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
29871,
633,
2536,
1688,
29889,
3396,
580,
13,
2
] |
src/NetworkHandler.py | BlankShrimp/MarkDownald-Server | 0 | 56532 | from socket import *
import json
import JsonParser
import DBHelper
conn = socket(AF_INET, SOCK_STREAM)
conn.bind(('',4687))
conn.listen(40)
while True:
new_conn, addr = conn.accept()
msg = new_conn.recv(1024).decode()
obj = json.loads(msg)
if obj['instruction'] == 'reg':
result = DBHelper.registry(obj['userid'], obj['passwd'], obj['nickname'])
new_conn.send(result.encode())
elif obj['instruction'] == 'add_note':
result = DBHelper.insert_note(obj['userid'], obj['passwd'], obj['noteid'], obj['title'], obj['folderid'], obj['value'])
new_conn.send(result.encode())
elif obj['instruction'] == 'del_note':
result = DBHelper.delete_note(obj['userid'], obj['passwd'], obj['noteid'])
new_conn.send(result.encode())
elif obj['instruction'] == 'sel_note':
result = DBHelper.select_single_note(obj['userid'], obj['passwd'], obj['noteid'])
if isinstance(result, str):
new_conn.send(result.encode())
else:
new_conn.send(JsonParser.dump_single_note(result).encode())
elif obj['instruction'] == 'up_note':
result = DBHelper.update_note(obj['userid'], obj['passwd'], obj['noteid'], obj['title'], obj['folderid'], obj['value'])
new_conn.send(result.encode())
elif obj['instruction'] == 'add_folder':
result = DBHelper.insert_folder(obj['userid'], obj['passwd'], obj['folderid'], obj['foldername'], obj['parentid'])
new_conn.send(result.encode())
elif obj['instruction'] == 'del_folder':
result = DBHelper.delete_folder(obj['userid'], obj['passwd'], obj['folderid'])
new_conn.send(result.encode())
elif obj['instruction'] == 'up_folder':
result = DBHelper.update_folder(obj['userid'], obj['passwd'], obj['folderid'], obj['foldername'], obj['parentid'])
new_conn.send(result.encode())
elif obj['instruction'] == 'sel_notes':
result = DBHelper.select_all_notes(obj['userid'], obj['passwd'])
if isinstance(result, str):
new_conn.send(result.encode())
else:
new_conn.send(JsonParser.dump_all_notes(result).encode())
elif obj['instruction'] == 'sel_folders':
result = DBHelper.select_all_folders(obj['userid'], obj['passwd'])
if isinstance(result, str):
new_conn.send(result.encode())
else:
new_conn.send(JsonParser.dump_all_folder(result).encode())
new_conn.close()
| [
1,
515,
9909,
1053,
334,
13,
5215,
4390,
13,
5215,
14355,
11726,
13,
5215,
6535,
10739,
13,
13,
13082,
353,
9909,
29898,
5098,
29918,
1177,
2544,
29892,
7791,
7077,
29918,
1254,
1525,
5194,
29897,
13,
13082,
29889,
5355,
29898,
877,
742,
29946,
29953,
29947,
29955,
876,
13,
13082,
29889,
20631,
29898,
29946,
29900,
29897,
13,
13,
8000,
5852,
29901,
13,
1678,
716,
29918,
13082,
29892,
28915,
353,
11009,
29889,
16044,
580,
13,
1678,
10191,
353,
716,
29918,
13082,
29889,
3757,
29894,
29898,
29896,
29900,
29906,
29946,
467,
13808,
580,
13,
13,
1678,
5446,
353,
4390,
29889,
18132,
29898,
7645,
29897,
13,
1678,
565,
5446,
1839,
2611,
4080,
2033,
1275,
525,
1727,
2396,
13,
4706,
1121,
353,
6535,
10739,
29889,
1727,
6020,
29898,
5415,
1839,
1792,
333,
7464,
5446,
1839,
3364,
9970,
7464,
5446,
1839,
19254,
978,
11287,
13,
4706,
716,
29918,
13082,
29889,
6717,
29898,
2914,
29889,
12508,
3101,
13,
1678,
25342,
5446,
1839,
2611,
4080,
2033,
1275,
525,
1202,
29918,
6812,
2396,
13,
4706,
1121,
353,
6535,
10739,
29889,
7851,
29918,
6812,
29898,
5415,
1839,
1792,
333,
7464,
5446,
1839,
3364,
9970,
7464,
5446,
1839,
6812,
333,
7464,
5446,
1839,
3257,
7464,
5446,
1839,
12083,
333,
7464,
5446,
1839,
1767,
11287,
13,
4706,
716,
29918,
13082,
29889,
6717,
29898,
2914,
29889,
12508,
3101,
13,
1678,
25342,
5446,
1839,
2611,
4080,
2033,
1275,
525,
6144,
29918,
6812,
2396,
13,
4706,
1121,
353,
6535,
10739,
29889,
8143,
29918,
6812,
29898,
5415,
1839,
1792,
333,
7464,
5446,
1839,
3364,
9970,
7464,
5446,
1839,
6812,
333,
11287,
13,
4706,
716,
29918,
13082,
29889,
6717,
29898,
2914,
29889,
12508,
3101,
13,
1678,
25342,
5446,
1839,
2611,
4080,
2033,
1275,
525,
2838,
29918,
6812,
2396,
13,
4706,
1121,
353,
6535,
10739,
29889,
2622,
29918,
14369,
29918,
6812,
29898,
5415,
1839,
1792,
333,
7464,
5446,
1839,
3364,
9970,
7464,
5446,
1839,
6812,
333,
11287,
13,
4706,
565,
338,
8758,
29898,
2914,
29892,
851,
1125,
13,
9651,
716,
29918,
13082,
29889,
6717,
29898,
2914,
29889,
12508,
3101,
13,
4706,
1683,
29901,
13,
9651,
716,
29918,
13082,
29889,
6717,
29898,
8148,
11726,
29889,
15070,
29918,
14369,
29918,
6812,
29898,
2914,
467,
12508,
3101,
13,
1678,
25342,
5446,
1839,
2611,
4080,
2033,
1275,
525,
786,
29918,
6812,
2396,
13,
4706,
1121,
353,
6535,
10739,
29889,
5504,
29918,
6812,
29898,
5415,
1839,
1792,
333,
7464,
5446,
1839,
3364,
9970,
7464,
5446,
1839,
6812,
333,
7464,
5446,
1839,
3257,
7464,
5446,
1839,
12083,
333,
7464,
5446,
1839,
1767,
11287,
13,
4706,
716,
29918,
13082,
29889,
6717,
29898,
2914,
29889,
12508,
3101,
13,
1678,
25342,
5446,
1839,
2611,
4080,
2033,
1275,
525,
1202,
29918,
12083,
2396,
13,
4706,
1121,
353,
6535,
10739,
29889,
7851,
29918,
12083,
29898,
5415,
1839,
1792,
333,
7464,
5446,
1839,
3364,
9970,
7464,
5446,
1839,
12083,
333,
7464,
5446,
1839,
12083,
978,
7464,
5446,
1839,
3560,
333,
11287,
13,
4706,
716,
29918,
13082,
29889,
6717,
29898,
2914,
29889,
12508,
3101,
13,
1678,
25342,
5446,
1839,
2611,
4080,
2033,
1275,
525,
6144,
29918,
12083,
2396,
13,
4706,
1121,
353,
6535,
10739,
29889,
8143,
29918,
12083,
29898,
5415,
1839,
1792,
333,
7464,
5446,
1839,
3364,
9970,
7464,
5446,
1839,
12083,
333,
11287,
13,
4706,
716,
29918,
13082,
29889,
6717,
29898,
2914,
29889,
12508,
3101,
13,
1678,
25342,
5446,
1839,
2611,
4080,
2033,
1275,
525,
786,
29918,
12083,
2396,
13,
4706,
1121,
353,
6535,
10739,
29889,
5504,
29918,
12083,
29898,
5415,
1839,
1792,
333,
7464,
5446,
1839,
3364,
9970,
7464,
5446,
1839,
12083,
333,
7464,
5446,
1839,
12083,
978,
7464,
5446,
1839,
3560,
333,
11287,
13,
4706,
716,
29918,
13082,
29889,
6717,
29898,
2914,
29889,
12508,
3101,
13,
1678,
25342,
5446,
1839,
2611,
4080,
2033,
1275,
525,
2838,
29918,
16953,
2396,
13,
4706,
1121,
353,
6535,
10739,
29889,
2622,
29918,
497,
29918,
16953,
29898,
5415,
1839,
1792,
333,
7464,
5446,
1839,
3364,
9970,
11287,
13,
4706,
565,
338,
8758,
29898,
2914,
29892,
851,
1125,
13,
9651,
716,
29918,
13082,
29889,
6717,
29898,
2914,
29889,
12508,
3101,
13,
4706,
1683,
29901,
13,
9651,
716,
29918,
13082,
29889,
6717,
29898,
8148,
11726,
29889,
15070,
29918,
497,
29918,
16953,
29898,
2914,
467,
12508,
3101,
13,
1678,
25342,
5446,
1839,
2611,
4080,
2033,
1275,
525,
2838,
29918,
8771,
414,
2396,
13,
4706,
1121,
353,
6535,
10739,
29889,
2622,
29918,
497,
29918,
8771,
414,
29898,
5415,
1839,
1792,
333,
7464,
5446,
1839,
3364,
9970,
11287,
13,
4706,
565,
338,
8758,
29898,
2914,
29892,
851,
1125,
13,
9651,
716,
29918,
13082,
29889,
6717,
29898,
2914,
29889,
12508,
3101,
13,
4706,
1683,
29901,
13,
9651,
716,
29918,
13082,
29889,
6717,
29898,
8148,
11726,
29889,
15070,
29918,
497,
29918,
12083,
29898,
2914,
467,
12508,
3101,
13,
1678,
716,
29918,
13082,
29889,
5358,
580,
13,
2
] |
src/util_walk_sftp.py | Chrisebell24/walk_sftp | 0 | 34925 | import paramiko
class _FastTransport(paramiko.Transport):
def __init__(self, sock):
super(_FastTransport, self).__init__(sock)
self.window_size = 2147483647
self.packetizer.REKEY_BYTES = pow(2, 40)
self.packetizer.REKEY_PACKETS = pow(2, 40) | [
1,
1053,
1828,
10349,
13,
13,
1990,
903,
29943,
579,
27395,
29898,
3207,
10349,
29889,
27395,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
577,
384,
1125,
13,
4706,
2428,
7373,
29943,
579,
27395,
29892,
1583,
467,
1649,
2344,
12035,
21852,
29897,
13,
4706,
1583,
29889,
7165,
29918,
2311,
353,
29871,
29906,
29896,
29946,
29955,
29946,
29947,
29941,
29953,
29946,
29955,
13,
4706,
1583,
29889,
4058,
300,
3950,
29889,
1525,
10818,
29918,
22716,
29911,
2890,
353,
4764,
29898,
29906,
29892,
29871,
29946,
29900,
29897,
13,
4706,
1583,
29889,
4058,
300,
3950,
29889,
1525,
10818,
29918,
29925,
11375,
2544,
29903,
353,
4764,
29898,
29906,
29892,
29871,
29946,
29900,
29897,
2
] |
tools/esp_prov/security/__init__.py | fbucafusco/esp-idf | 0 | 189785 | <reponame>fbucafusco/esp-idf
# SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
#
from .security0 import * # noqa: F403, F401
from .security1 import * # noqa: F403, F401
from .security2 import * # noqa: F403, F401
| [
1,
529,
276,
1112,
420,
29958,
29888,
2423,
1113,
29888,
375,
1111,
29914,
9983,
29899,
333,
29888,
13,
29937,
10937,
29928,
29990,
29899,
2283,
11882,
1266,
1626,
29901,
29871,
29906,
29900,
29896,
29947,
29899,
29906,
29900,
29906,
29906,
3423,
2139,
361,
23985,
313,
2713,
574,
23535,
29897,
4810,
365,
24495,
13,
29937,
10937,
29928,
29990,
29899,
29931,
293,
1947,
29899,
12889,
29901,
13380,
29899,
29906,
29889,
29900,
13,
29937,
13,
13,
3166,
869,
8926,
29900,
1053,
334,
29871,
396,
694,
25621,
29901,
383,
29946,
29900,
29941,
29892,
383,
29946,
29900,
29896,
13,
3166,
869,
8926,
29896,
1053,
334,
29871,
396,
694,
25621,
29901,
383,
29946,
29900,
29941,
29892,
383,
29946,
29900,
29896,
13,
3166,
869,
8926,
29906,
1053,
334,
29871,
396,
694,
25621,
29901,
383,
29946,
29900,
29941,
29892,
383,
29946,
29900,
29896,
13,
2
] |
python/ovs/db/idl.py | homework/openvswitch | 9 | 87504 | <gh_stars>1-10
# Copyright (c) 2009, 2010, 2011 Nicira Networks
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
import ovs.jsonrpc
import ovs.db.parser
import ovs.db.schema
from ovs.db import error
import ovs.ovsuuid
class Idl:
"""Open vSwitch Database Interface Definition Language (OVSDB IDL).
The OVSDB IDL maintains an in-memory replica of a database. It issues RPC
requests to an OVSDB database server and parses the responses, converting
raw JSON into data structures that are easier for clients to digest.
The IDL also assists with issuing database transactions. The client
creates a transaction, manipulates the IDL data structures, and commits or
aborts the transaction. The IDL then composes and issues the necessary
JSON-RPC requests and reports to the client whether the transaction
completed successfully.
If 'schema_cb' is provided, it should be a callback function that accepts
an ovs.db.schema.DbSchema as its argument. It should determine whether the
schema is acceptable and raise an ovs.db.error.Error if it is not. It may
also delete any tables or columns from the schema that the client has no
interest in monitoring, to save time and bandwidth during monitoring. Its
return value is ignored."""
def __init__(self, remote, db_name, schema_cb=None):
"""Creates and returns a connection to the database named 'db_name' on
'remote', which should be in a form acceptable to
ovs.jsonrpc.session.open(). The connection will maintain an in-memory
replica of the remote database."""
self.remote = remote
self.session = ovs.jsonrpc.Session.open(remote)
self.db_name = db_name
self.last_seqno = None
self.schema = None
self.state = None
self.change_seqno = 0
self.data = {}
self.schema_cb = schema_cb
def close(self):
self.session.close()
def run(self):
"""Processes a batch of messages from the database server. Returns
True if the database as seen through the IDL changed, False if it did
not change. The initial fetch of the entire contents of the remote
database is considered to be one kind of change.
This function can return occasional false positives, that is, report
that the database changed even though it didn't. This happens if the
connection to the database drops and reconnects, which causes the
database contents to be reloaded even if they didn't change. (It could
also happen if the database server sends out a "change" that reflects
what we already thought was in the database, but the database server is
not supposed to do that.)
As an alternative to checking the return value, the client may check
for changes in the value returned by self.get_seqno()."""
initial_change_seqno = self.change_seqno
self.session.run()
if self.session.is_connected():
seqno = self.session.get_seqno()
if seqno != self.last_seqno:
self.last_seqno = seqno
self.state = (self.__send_schema_request, None)
if self.state:
self.state[0]()
return initial_change_seqno != self.change_seqno
def wait(self, poller):
"""Arranges for poller.block() to wake up when self.run() has something
to do or when activity occurs on a transaction on 'self'."""
self.session.wait(poller)
if self.state and self.state[1]:
self.state[1](poller)
def get_seqno(self):
"""Returns a number that represents the IDL's state. When the IDL
updated (by self.run()), the return value changes."""
return self.change_seqno
def __send_schema_request(self):
msg = ovs.jsonrpc.Message.create_request("get_schema", [self.db_name])
self.session.send(msg)
self.state = (lambda: self.__recv_schema(msg.id), self.__recv_wait)
def __recv_schema(self, id):
msg = self.session.recv()
if msg and msg.type == ovs.jsonrpc.Message.T_REPLY and msg.id == id:
try:
self.schema = ovs.db.schema.DbSchema.from_json(msg.result)
except error.Error, e:
logging.error("%s: parse error in received schema: %s"
% (self.remote, e))
self.__error()
return
if self.schema_cb:
try:
self.schema_cb(self.schema)
except error.Error, e:
logging.error("%s: error validating schema: %s"
% (self.remote, e))
self.__error()
return
self.__send_monitor_request()
elif msg:
logging.error("%s: unexpected message expecting schema: %s"
% (self.remote, msg))
self.__error()
def __recv_wait(self, poller):
self.session.recv_wait(poller)
def __send_monitor_request(self):
monitor_requests = {}
for table in self.schema.tables.itervalues():
monitor_requests[table.name] = {"columns": table.columns.keys()}
msg = ovs.jsonrpc.Message.create_request(
"monitor", [self.db_name, None, monitor_requests])
self.session.send(msg)
self.state = (lambda: self.__recv_monitor_reply(msg.id),
self.__recv_wait)
def __recv_monitor_reply(self, id):
msg = self.session.recv()
if msg and msg.type == ovs.jsonrpc.Message.T_REPLY and msg.id == id:
try:
self.change_seqno += 1
self.state = (self.__recv_update, self.__recv_wait)
self.__clear()
self.__parse_update(msg.result)
except error.Error, e:
logging.error("%s: parse error in received schema: %s"
% (self.remote, e))
self.__error()
elif msg:
logging.error("%s: unexpected message expecting schema: %s"
% (self.remote, msg))
self.__error()
def __recv_update(self):
msg = self.session.recv()
if (msg and msg.type == ovs.jsonrpc.Message.T_NOTIFY and
type(msg.params) == list and len(msg.params) == 2 and
msg.params[0] is None):
self.__parse_update(msg.params[1])
elif msg:
logging.error("%s: unexpected message expecting update: %s"
% (self.remote, msg))
self.__error()
def __error(self):
self.session.force_reconnect()
def __parse_update(self, update):
try:
self.__do_parse_update(update)
except error.Error, e:
logging.error("%s: error parsing update: %s" % (self.remote, e))
def __do_parse_update(self, table_updates):
if type(table_updates) != dict:
raise error.Error("<table-updates> is not an object",
table_updates)
for table_name, table_update in table_updates.iteritems():
table = self.schema.tables.get(table_name)
if not table:
raise error.Error('<table-updates> includes unknown '
'table "%s"' % table_name)
if type(table_update) != dict:
raise error.Error('<table-update> for table "%s" is not '
'an object' % table_name, table_update)
for uuid_string, row_update in table_update.iteritems():
if not ovs.ovsuuid.UUID.is_valid_string(uuid_string):
raise error.Error('<table-update> for table "%s" '
'contains bad UUID "%s" as member '
'name' % (table_name, uuid_string),
table_update)
uuid = ovs.ovsuuid.UUID.from_string(uuid_string)
if type(row_update) != dict:
raise error.Error('<table-update> for table "%s" '
'contains <row-update> for %s that '
'is not an object'
% (table_name, uuid_string))
parser = ovs.db.parser.Parser(row_update, "row-update")
old = parser.get_optional("old", [dict])
new = parser.get_optional("new", [dict])
parser.finish()
if not old and not new:
raise error.Error('<row-update> missing "old" and '
'"new" members', row_update)
if self.__parse_row_update(table, uuid, old, new):
self.change_seqno += 1
def __parse_row_update(self, table, uuid, old, new):
"""Returns True if a column changed, False otherwise."""
row = self.data[table.name].get(uuid)
changed = False
if not new:
# Delete row.
if row:
del self.data[table.name][uuid]
changed = True
else:
# XXX rate-limit
logging.warning("cannot delete missing row %s from table %s"
% (uuid, table.name))
elif not old:
# Insert row.
if not row:
row = self.__create_row(table, uuid)
changed = True
else:
# XXX rate-limit
logging.warning("cannot add existing row %s to table %s"
% (uuid, table.name))
if self.__modify_row(table, row, new):
changed = True
else:
if not row:
row = self.__create_row(table, uuid)
changed = True
# XXX rate-limit
logging.warning("cannot modify missing row %s in table %s"
% (uuid, table.name))
if self.__modify_row(table, row, new):
changed = True
return changed
def __modify_row(self, table, row, row_json):
changed = False
for column_name, datum_json in row_json.iteritems():
column = table.columns.get(column_name)
if not column:
# XXX rate-limit
logging.warning("unknown column %s updating table %s"
% (column_name, table.name))
continue
try:
datum = ovs.db.data.Datum.from_json(column.type, datum_json)
except error.Error, e:
# XXX rate-limit
logging.warning("error parsing column %s in table %s: %s"
% (column_name, table.name, e))
continue
if datum != getattr(row, column_name):
setattr(row, column_name, datum)
changed = True
else:
# Didn't really change but the OVSDB monitor protocol always
# includes every value in a row.
pass
return changed
def __clear(self):
if self.data != {}:
for table_name in self.schema.tables:
if self.data[table_name] != {}:
self.change_seqno += 1
break
self.data = {}
for table_name in self.schema.tables:
self.data[table_name] = {}
def __create_row(self, table, uuid):
row = self.data[table.name][uuid] = Row()
for column in table.columns.itervalues():
setattr(row, column.name, ovs.db.data.Datum.default(column.type))
return row
def force_reconnect(self):
"""Forces the IDL to drop its connection to the database and reconnect.
In the meantime, the contents of the IDL will not change."""
self.session.force_reconnect()
class Row(object):
"""A row within an Idl. Data for each column is stored as an attribute
with the same name as the column and using an ovs.db.data.Datum as the
value."""
pass
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29900,
29929,
29892,
29871,
29906,
29900,
29896,
29900,
29892,
29871,
29906,
29900,
29896,
29896,
405,
1654,
336,
8527,
29879,
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,
29901,
13,
29937,
13,
29937,
268,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
29937,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
13,
29937,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
13,
29937,
2823,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
13,
29937,
27028,
1090,
278,
19245,
29889,
13,
13,
5215,
12183,
13,
13,
5215,
288,
4270,
29889,
3126,
29878,
6739,
13,
5215,
288,
4270,
29889,
2585,
29889,
16680,
13,
5215,
288,
4270,
29889,
2585,
29889,
11010,
13,
3166,
288,
4270,
29889,
2585,
1053,
1059,
13,
5215,
288,
4270,
29889,
586,
2146,
5416,
13,
13,
1990,
5163,
29880,
29901,
13,
1678,
9995,
6585,
325,
24995,
5470,
25796,
21940,
17088,
313,
29949,
21819,
4051,
3553,
29931,
467,
13,
13,
1678,
450,
438,
21819,
4051,
3553,
29931,
7344,
29879,
385,
297,
29899,
14834,
1634,
10123,
310,
263,
2566,
29889,
29871,
739,
5626,
390,
9026,
13,
1678,
7274,
304,
385,
438,
21819,
4051,
2566,
1923,
322,
610,
29879,
267,
278,
20890,
29892,
17415,
13,
1678,
10650,
4663,
964,
848,
12286,
393,
526,
6775,
363,
13154,
304,
4697,
342,
29889,
13,
13,
1678,
450,
3553,
29931,
884,
1223,
2879,
411,
17759,
292,
2566,
22160,
29889,
29871,
450,
3132,
13,
1678,
10017,
263,
10804,
29892,
11525,
352,
1078,
278,
3553,
29931,
848,
12286,
29892,
322,
25741,
470,
13,
1678,
27450,
29879,
278,
10804,
29889,
29871,
450,
3553,
29931,
769,
5541,
267,
322,
5626,
278,
5181,
13,
1678,
4663,
29899,
29934,
9026,
7274,
322,
13676,
304,
278,
3132,
3692,
278,
10804,
13,
1678,
8676,
8472,
29889,
13,
13,
1678,
960,
525,
11010,
29918,
10702,
29915,
338,
4944,
29892,
372,
881,
367,
263,
6939,
740,
393,
21486,
13,
1678,
385,
288,
4270,
29889,
2585,
29889,
11010,
29889,
10234,
12763,
408,
967,
2980,
29889,
29871,
739,
881,
8161,
3692,
278,
13,
1678,
10938,
338,
22691,
322,
12020,
385,
288,
4270,
29889,
2585,
29889,
2704,
29889,
2392,
565,
372,
338,
451,
29889,
29871,
739,
1122,
13,
1678,
884,
5217,
738,
6131,
470,
4341,
515,
278,
10938,
393,
278,
3132,
756,
694,
13,
1678,
4066,
297,
29652,
29892,
304,
4078,
931,
322,
3719,
2103,
2645,
29652,
29889,
29871,
8011,
13,
1678,
736,
995,
338,
17262,
1213,
15945,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
7592,
29892,
4833,
29918,
978,
29892,
10938,
29918,
10702,
29922,
8516,
1125,
13,
4706,
9995,
9832,
1078,
322,
3639,
263,
3957,
304,
278,
2566,
4257,
525,
2585,
29918,
978,
29915,
373,
13,
4706,
525,
16674,
742,
607,
881,
367,
297,
263,
883,
22691,
304,
13,
4706,
288,
4270,
29889,
3126,
29878,
6739,
29889,
7924,
29889,
3150,
2141,
29871,
450,
3957,
674,
7344,
385,
297,
29899,
14834,
13,
4706,
1634,
10123,
310,
278,
7592,
2566,
1213,
15945,
13,
4706,
1583,
29889,
16674,
353,
7592,
13,
4706,
1583,
29889,
7924,
353,
288,
4270,
29889,
3126,
29878,
6739,
29889,
7317,
29889,
3150,
29898,
16674,
29897,
13,
4706,
1583,
29889,
2585,
29918,
978,
353,
4833,
29918,
978,
13,
4706,
1583,
29889,
4230,
29918,
11762,
1217,
353,
6213,
13,
4706,
1583,
29889,
11010,
353,
6213,
13,
4706,
1583,
29889,
3859,
353,
6213,
13,
4706,
1583,
29889,
3167,
29918,
11762,
1217,
353,
29871,
29900,
13,
4706,
1583,
29889,
1272,
353,
6571,
13,
4706,
1583,
29889,
11010,
29918,
10702,
353,
10938,
29918,
10702,
13,
13,
1678,
822,
3802,
29898,
1311,
1125,
13,
4706,
1583,
29889,
7924,
29889,
5358,
580,
13,
13,
1678,
822,
1065,
29898,
1311,
1125,
13,
4706,
9995,
7032,
267,
263,
9853,
310,
7191,
515,
278,
2566,
1923,
29889,
29871,
16969,
13,
4706,
5852,
565,
278,
2566,
408,
3595,
1549,
278,
3553,
29931,
3939,
29892,
7700,
565,
372,
1258,
13,
4706,
451,
1735,
29889,
29871,
450,
2847,
6699,
310,
278,
4152,
8118,
310,
278,
7592,
13,
4706,
2566,
338,
5545,
304,
367,
697,
2924,
310,
1735,
29889,
13,
13,
4706,
910,
740,
508,
736,
14882,
1848,
2089,
13686,
3145,
29892,
393,
338,
29892,
3461,
13,
4706,
393,
278,
2566,
3939,
1584,
2466,
372,
3282,
29915,
29873,
29889,
29871,
910,
5930,
565,
278,
13,
4706,
3957,
304,
278,
2566,
4441,
567,
322,
337,
6915,
29879,
29892,
607,
9946,
278,
13,
4706,
2566,
8118,
304,
367,
337,
15638,
1584,
565,
896,
3282,
29915,
29873,
1735,
29889,
29871,
313,
3112,
1033,
13,
4706,
884,
3799,
565,
278,
2566,
1923,
16003,
714,
263,
376,
3167,
29908,
393,
9432,
29879,
13,
4706,
825,
591,
2307,
2714,
471,
297,
278,
2566,
29892,
541,
278,
2566,
1923,
338,
13,
4706,
451,
7424,
304,
437,
393,
1846,
13,
13,
4706,
1094,
385,
8671,
304,
8454,
278,
736,
995,
29892,
278,
3132,
1122,
1423,
13,
4706,
363,
3620,
297,
278,
995,
4133,
491,
1583,
29889,
657,
29918,
11762,
1217,
2141,
15945,
29908,
13,
4706,
2847,
29918,
3167,
29918,
11762,
1217,
353,
1583,
29889,
3167,
29918,
11762,
1217,
13,
4706,
1583,
29889,
7924,
29889,
3389,
580,
13,
4706,
565,
1583,
29889,
7924,
29889,
275,
29918,
18045,
7295,
13,
9651,
19359,
1217,
353,
1583,
29889,
7924,
29889,
657,
29918,
11762,
1217,
580,
13,
9651,
565,
19359,
1217,
2804,
1583,
29889,
4230,
29918,
11762,
1217,
29901,
13,
18884,
1583,
29889,
4230,
29918,
11762,
1217,
353,
19359,
1217,
13,
18884,
1583,
29889,
3859,
353,
313,
1311,
17255,
6717,
29918,
11010,
29918,
3827,
29892,
6213,
29897,
13,
9651,
565,
1583,
29889,
3859,
29901,
13,
18884,
1583,
29889,
3859,
29961,
29900,
29962,
580,
13,
4706,
736,
2847,
29918,
3167,
29918,
11762,
1217,
2804,
1583,
29889,
3167,
29918,
11762,
1217,
13,
13,
1678,
822,
4480,
29898,
1311,
29892,
1248,
1358,
1125,
13,
4706,
9995,
16401,
6916,
363,
1248,
1358,
29889,
1271,
580,
304,
281,
1296,
701,
746,
1583,
29889,
3389,
580,
756,
1554,
13,
4706,
304,
437,
470,
746,
6354,
10008,
373,
263,
10804,
373,
525,
1311,
29915,
1213,
15945,
13,
4706,
1583,
29889,
7924,
29889,
10685,
29898,
3733,
1358,
29897,
13,
4706,
565,
1583,
29889,
3859,
322,
1583,
29889,
3859,
29961,
29896,
5387,
13,
9651,
1583,
29889,
3859,
29961,
29896,
850,
3733,
1358,
29897,
13,
13,
1678,
822,
679,
29918,
11762,
1217,
29898,
1311,
1125,
13,
4706,
9995,
11609,
29879,
263,
1353,
393,
11524,
278,
3553,
29931,
29915,
29879,
2106,
29889,
29871,
1932,
278,
3553,
29931,
13,
4706,
4784,
313,
1609,
1583,
29889,
3389,
25739,
278,
736,
995,
3620,
1213,
15945,
13,
4706,
736,
1583,
29889,
3167,
29918,
11762,
1217,
13,
308,
13,
1678,
822,
4770,
6717,
29918,
11010,
29918,
3827,
29898,
1311,
1125,
13,
4706,
10191,
353,
288,
4270,
29889,
3126,
29878,
6739,
29889,
3728,
29889,
3258,
29918,
3827,
703,
657,
29918,
11010,
613,
518,
1311,
29889,
2585,
29918,
978,
2314,
13,
4706,
1583,
29889,
7924,
29889,
6717,
29898,
7645,
29897,
13,
4706,
1583,
29889,
3859,
353,
313,
2892,
29901,
1583,
17255,
3757,
29894,
29918,
11010,
29898,
7645,
29889,
333,
511,
1583,
17255,
3757,
29894,
29918,
10685,
29897,
13,
13,
1678,
822,
4770,
3757,
29894,
29918,
11010,
29898,
1311,
29892,
1178,
1125,
13,
4706,
10191,
353,
1583,
29889,
7924,
29889,
3757,
29894,
580,
13,
4706,
565,
10191,
322,
10191,
29889,
1853,
1275,
288,
4270,
29889,
3126,
29878,
6739,
29889,
3728,
29889,
29911,
29918,
1525,
7390,
29979,
322,
10191,
29889,
333,
1275,
1178,
29901,
13,
9651,
1018,
29901,
13,
18884,
1583,
29889,
11010,
353,
288,
4270,
29889,
2585,
29889,
11010,
29889,
10234,
12763,
29889,
3166,
29918,
3126,
29898,
7645,
29889,
2914,
29897,
13,
9651,
5174,
1059,
29889,
2392,
29892,
321,
29901,
13,
18884,
12183,
29889,
2704,
11702,
29879,
29901,
6088,
1059,
297,
4520,
10938,
29901,
1273,
29879,
29908,
13,
462,
795,
1273,
313,
1311,
29889,
16674,
29892,
321,
876,
13,
18884,
1583,
17255,
2704,
580,
13,
18884,
736,
13,
13,
9651,
565,
1583,
29889,
11010,
29918,
10702,
29901,
13,
18884,
1018,
29901,
13,
462,
1678,
1583,
29889,
11010,
29918,
10702,
29898,
1311,
29889,
11010,
29897,
13,
18884,
5174,
1059,
29889,
2392,
29892,
321,
29901,
13,
462,
1678,
12183,
29889,
2704,
11702,
29879,
29901,
1059,
2854,
1218,
10938,
29901,
1273,
29879,
29908,
13,
462,
462,
29871,
1273,
313,
1311,
29889,
16674,
29892,
321,
876,
13,
462,
1678,
1583,
17255,
2704,
580,
13,
462,
1678,
736,
13,
13,
9651,
1583,
17255,
6717,
29918,
3712,
2105,
29918,
3827,
580,
13,
4706,
25342,
10191,
29901,
13,
9651,
12183,
29889,
2704,
11702,
29879,
29901,
15668,
2643,
16120,
10938,
29901,
1273,
29879,
29908,
13,
462,
3986,
1273,
313,
1311,
29889,
16674,
29892,
10191,
876,
13,
9651,
1583,
17255,
2704,
580,
13,
632,
13,
1678,
822,
4770,
3757,
29894,
29918,
10685,
29898,
1311,
29892,
1248,
1358,
1125,
13,
4706,
1583,
29889,
7924,
29889,
3757,
29894,
29918,
10685,
29898,
3733,
1358,
29897,
13,
13,
1678,
822,
4770,
6717,
29918,
3712,
2105,
29918,
3827,
29898,
1311,
1125,
13,
4706,
11819,
29918,
24830,
353,
6571,
13,
4706,
363,
1591,
297,
1583,
29889,
11010,
29889,
24051,
29889,
1524,
5975,
7295,
13,
9651,
11819,
29918,
24830,
29961,
2371,
29889,
978,
29962,
353,
8853,
13099,
1115,
1591,
29889,
13099,
29889,
8149,
28296,
13,
4706,
10191,
353,
288,
4270,
29889,
3126,
29878,
6739,
29889,
3728,
29889,
3258,
29918,
3827,
29898,
13,
9651,
376,
3712,
2105,
613,
518,
1311,
29889,
2585,
29918,
978,
29892,
6213,
29892,
11819,
29918,
24830,
2314,
13,
4706,
1583,
29889,
7924,
29889,
6717,
29898,
7645,
29897,
13,
4706,
1583,
29889,
3859,
353,
313,
2892,
29901,
1583,
17255,
3757,
29894,
29918,
3712,
2105,
29918,
3445,
368,
29898,
7645,
29889,
333,
511,
13,
462,
418,
1583,
17255,
3757,
29894,
29918,
10685,
29897,
13,
13,
1678,
822,
4770,
3757,
29894,
29918,
3712,
2105,
29918,
3445,
368,
29898,
1311,
29892,
1178,
1125,
13,
4706,
10191,
353,
1583,
29889,
7924,
29889,
3757,
29894,
580,
13,
4706,
565,
10191,
322,
10191,
29889,
1853,
1275,
288,
4270,
29889,
3126,
29878,
6739,
29889,
3728,
29889,
29911,
29918,
1525,
7390,
29979,
322,
10191,
29889,
333,
1275,
1178,
29901,
13,
9651,
1018,
29901,
13,
18884,
1583,
29889,
3167,
29918,
11762,
1217,
4619,
29871,
29896,
13,
18884,
1583,
29889,
3859,
353,
313,
1311,
17255,
3757,
29894,
29918,
5504,
29892,
1583,
17255,
3757,
29894,
29918,
10685,
29897,
13,
18884,
1583,
17255,
8551,
580,
13,
18884,
1583,
17255,
5510,
29918,
5504,
29898,
7645,
29889,
2914,
29897,
13,
9651,
5174,
1059,
29889,
2392,
29892,
321,
29901,
13,
18884,
12183,
29889,
2704,
11702,
29879,
29901,
6088,
1059,
297,
4520,
10938,
29901,
1273,
29879,
29908,
13,
462,
795,
1273,
313,
1311,
29889,
16674,
29892,
321,
876,
13,
18884,
1583,
17255,
2704,
580,
13,
4706,
25342,
10191,
29901,
13,
9651,
12183,
29889,
2704,
11702,
29879,
29901,
15668,
2643,
16120,
10938,
29901,
1273,
29879,
29908,
13,
462,
3986,
1273,
313,
1311,
29889,
16674,
29892,
10191,
876,
13,
9651,
1583,
17255,
2704,
580,
13,
13,
1678,
822,
4770,
3757,
29894,
29918,
5504,
29898,
1311,
1125,
13,
4706,
10191,
353,
1583,
29889,
7924,
29889,
3757,
29894,
580,
13,
4706,
565,
313,
7645,
322,
10191,
29889,
1853,
1275,
288,
4270,
29889,
3126,
29878,
6739,
29889,
3728,
29889,
29911,
29918,
12256,
6545,
29979,
322,
13,
9651,
1134,
29898,
7645,
29889,
7529,
29897,
1275,
1051,
322,
7431,
29898,
7645,
29889,
7529,
29897,
1275,
29871,
29906,
322,
13,
9651,
10191,
29889,
7529,
29961,
29900,
29962,
338,
6213,
1125,
13,
9651,
1583,
17255,
5510,
29918,
5504,
29898,
7645,
29889,
7529,
29961,
29896,
2314,
13,
4706,
25342,
10191,
29901,
13,
9651,
12183,
29889,
2704,
11702,
29879,
29901,
15668,
2643,
16120,
2767,
29901,
1273,
29879,
29908,
13,
462,
3986,
1273,
313,
1311,
29889,
16674,
29892,
10191,
876,
13,
9651,
1583,
17255,
2704,
580,
13,
13,
1678,
822,
4770,
2704,
29898,
1311,
1125,
13,
4706,
1583,
29889,
7924,
29889,
10118,
29918,
276,
6915,
580,
13,
13,
1678,
822,
4770,
5510,
29918,
5504,
29898,
1311,
29892,
2767,
1125,
13,
4706,
1018,
29901,
13,
9651,
1583,
17255,
1867,
29918,
5510,
29918,
5504,
29898,
5504,
29897,
13,
4706,
5174,
1059,
29889,
2392,
29892,
321,
29901,
13,
9651,
12183,
29889,
2704,
11702,
29879,
29901,
1059,
13755,
2767,
29901,
1273,
29879,
29908,
1273,
313,
1311,
29889,
16674,
29892,
321,
876,
13,
13,
1678,
822,
4770,
1867,
29918,
5510,
29918,
5504,
29898,
1311,
29892,
1591,
29918,
786,
15190,
1125,
13,
4706,
565,
1134,
29898,
2371,
29918,
786,
15190,
29897,
2804,
9657,
29901,
13,
9651,
12020,
1059,
29889,
2392,
28945,
2371,
29899,
786,
15190,
29958,
338,
451,
385,
1203,
613,
13,
462,
795,
1591,
29918,
786,
15190,
29897,
13,
13,
4706,
363,
1591,
29918,
978,
29892,
1591,
29918,
5504,
297,
1591,
29918,
786,
15190,
29889,
1524,
7076,
7295,
13,
9651,
1591,
353,
1583,
29889,
11010,
29889,
24051,
29889,
657,
29898,
2371,
29918,
978,
29897,
13,
9651,
565,
451,
1591,
29901,
13,
18884,
12020,
1059,
29889,
2392,
877,
29966,
2371,
29899,
786,
15190,
29958,
7805,
9815,
525,
13,
462,
462,
29871,
525,
2371,
11860,
29879,
29908,
29915,
1273,
1591,
29918,
978,
29897,
13,
13,
9651,
565,
1134,
29898,
2371,
29918,
5504,
29897,
2804,
9657,
29901,
13,
18884,
12020,
1059,
29889,
2392,
877,
29966,
2371,
29899,
5504,
29958,
363,
1591,
11860,
29879,
29908,
338,
451,
525,
13,
462,
462,
29871,
525,
273,
1203,
29915,
1273,
1591,
29918,
978,
29892,
1591,
29918,
5504,
29897,
13,
13,
9651,
363,
318,
5416,
29918,
1807,
29892,
1948,
29918,
5504,
297,
1591,
29918,
5504,
29889,
1524,
7076,
7295,
13,
18884,
565,
451,
288,
4270,
29889,
586,
2146,
5416,
29889,
29965,
11150,
29889,
275,
29918,
3084,
29918,
1807,
29898,
25118,
29918,
1807,
1125,
13,
462,
1678,
12020,
1059,
29889,
2392,
877,
29966,
2371,
29899,
5504,
29958,
363,
1591,
11860,
29879,
29908,
525,
13,
462,
462,
418,
525,
11516,
4319,
501,
11150,
11860,
29879,
29908,
408,
4509,
525,
13,
462,
462,
418,
525,
978,
29915,
1273,
313,
2371,
29918,
978,
29892,
318,
5416,
29918,
1807,
511,
13,
462,
462,
418,
1591,
29918,
5504,
29897,
13,
18884,
318,
5416,
353,
288,
4270,
29889,
586,
2146,
5416,
29889,
29965,
11150,
29889,
3166,
29918,
1807,
29898,
25118,
29918,
1807,
29897,
13,
13,
18884,
565,
1134,
29898,
798,
29918,
5504,
29897,
2804,
9657,
29901,
13,
462,
1678,
12020,
1059,
29889,
2392,
877,
29966,
2371,
29899,
5504,
29958,
363,
1591,
11860,
29879,
29908,
525,
13,
462,
462,
418,
525,
11516,
529,
798,
29899,
5504,
29958,
363,
1273,
29879,
393,
525,
13,
462,
462,
418,
525,
275,
451,
385,
1203,
29915,
13,
462,
462,
418,
1273,
313,
2371,
29918,
978,
29892,
318,
5416,
29918,
1807,
876,
13,
13,
18884,
13812,
353,
288,
4270,
29889,
2585,
29889,
16680,
29889,
11726,
29898,
798,
29918,
5504,
29892,
376,
798,
29899,
5504,
1159,
13,
18884,
2030,
353,
13812,
29889,
657,
29918,
25253,
703,
1025,
613,
518,
8977,
2314,
13,
18884,
716,
353,
13812,
29889,
657,
29918,
25253,
703,
1482,
613,
518,
8977,
2314,
13,
18884,
13812,
29889,
4951,
728,
580,
13,
13,
18884,
565,
451,
2030,
322,
451,
716,
29901,
13,
462,
1678,
12020,
1059,
29889,
2392,
877,
29966,
798,
29899,
5504,
29958,
4567,
376,
1025,
29908,
322,
525,
13,
462,
462,
418,
18793,
1482,
29908,
5144,
742,
1948,
29918,
5504,
29897,
13,
13,
18884,
565,
1583,
17255,
5510,
29918,
798,
29918,
5504,
29898,
2371,
29892,
318,
5416,
29892,
2030,
29892,
716,
1125,
13,
462,
1678,
1583,
29889,
3167,
29918,
11762,
1217,
4619,
29871,
29896,
13,
13,
1678,
822,
4770,
5510,
29918,
798,
29918,
5504,
29898,
1311,
29892,
1591,
29892,
318,
5416,
29892,
2030,
29892,
716,
1125,
13,
4706,
9995,
11609,
29879,
5852,
565,
263,
1897,
3939,
29892,
7700,
6467,
1213,
15945,
13,
4706,
1948,
353,
1583,
29889,
1272,
29961,
2371,
29889,
978,
1822,
657,
29898,
25118,
29897,
13,
4706,
3939,
353,
7700,
13,
4706,
565,
451,
716,
29901,
13,
9651,
396,
21267,
1948,
29889,
13,
9651,
565,
1948,
29901,
13,
18884,
628,
1583,
29889,
1272,
29961,
2371,
29889,
978,
3816,
25118,
29962,
13,
18884,
3939,
353,
5852,
13,
9651,
1683,
29901,
13,
18884,
396,
22615,
6554,
29899,
13400,
13,
18884,
12183,
29889,
27392,
703,
29883,
6735,
5217,
4567,
1948,
1273,
29879,
515,
1591,
1273,
29879,
29908,
13,
462,
18884,
1273,
313,
25118,
29892,
1591,
29889,
978,
876,
13,
4706,
25342,
451,
2030,
29901,
13,
9651,
396,
24505,
1948,
29889,
13,
9651,
565,
451,
1948,
29901,
13,
18884,
1948,
353,
1583,
17255,
3258,
29918,
798,
29898,
2371,
29892,
318,
5416,
29897,
13,
18884,
3939,
353,
5852,
13,
9651,
1683,
29901,
13,
18884,
396,
22615,
6554,
29899,
13400,
13,
18884,
12183,
29889,
27392,
703,
29883,
6735,
788,
5923,
1948,
1273,
29879,
304,
1591,
1273,
29879,
29908,
13,
462,
18884,
1273,
313,
25118,
29892,
1591,
29889,
978,
876,
13,
9651,
565,
1583,
17255,
1545,
1598,
29918,
798,
29898,
2371,
29892,
1948,
29892,
716,
1125,
13,
18884,
3939,
353,
5852,
13,
4706,
1683,
29901,
13,
9651,
565,
451,
1948,
29901,
13,
18884,
1948,
353,
1583,
17255,
3258,
29918,
798,
29898,
2371,
29892,
318,
5416,
29897,
13,
18884,
3939,
353,
5852,
13,
18884,
396,
22615,
6554,
29899,
13400,
13,
18884,
12183,
29889,
27392,
703,
29883,
6735,
6623,
4567,
1948,
1273,
29879,
297,
1591,
1273,
29879,
29908,
13,
462,
18884,
1273,
313,
25118,
29892,
1591,
29889,
978,
876,
13,
9651,
565,
1583,
17255,
1545,
1598,
29918,
798,
29898,
2371,
29892,
1948,
29892,
716,
1125,
13,
18884,
3939,
353,
5852,
13,
4706,
736,
3939,
13,
13,
1678,
822,
4770,
1545,
1598,
29918,
798,
29898,
1311,
29892,
1591,
29892,
1948,
29892,
1948,
29918,
3126,
1125,
13,
4706,
3939,
353,
7700,
13,
4706,
363,
1897,
29918,
978,
29892,
1418,
398,
29918,
3126,
297,
1948,
29918,
3126,
29889,
1524,
7076,
7295,
13,
9651,
1897,
353,
1591,
29889,
13099,
29889,
657,
29898,
4914,
29918,
978,
29897,
13,
9651,
565,
451,
1897,
29901,
13,
18884,
396,
22615,
6554,
29899,
13400,
13,
18884,
12183,
29889,
27392,
703,
26690,
1897,
1273,
29879,
13271,
1591,
1273,
29879,
29908,
13,
462,
18884,
1273,
313,
4914,
29918,
978,
29892,
1591,
29889,
978,
876,
13,
18884,
6773,
13,
13,
9651,
1018,
29901,
13,
18884,
1418,
398,
353,
288,
4270,
29889,
2585,
29889,
1272,
29889,
16390,
398,
29889,
3166,
29918,
3126,
29898,
4914,
29889,
1853,
29892,
1418,
398,
29918,
3126,
29897,
13,
9651,
5174,
1059,
29889,
2392,
29892,
321,
29901,
13,
18884,
396,
22615,
6554,
29899,
13400,
13,
18884,
12183,
29889,
27392,
703,
2704,
13755,
1897,
1273,
29879,
297,
1591,
1273,
29879,
29901,
1273,
29879,
29908,
13,
462,
18884,
1273,
313,
4914,
29918,
978,
29892,
1591,
29889,
978,
29892,
321,
876,
13,
18884,
6773,
13,
13,
9651,
565,
1418,
398,
2804,
679,
5552,
29898,
798,
29892,
1897,
29918,
978,
1125,
13,
18884,
731,
5552,
29898,
798,
29892,
1897,
29918,
978,
29892,
1418,
398,
29897,
13,
18884,
3939,
353,
5852,
13,
9651,
1683,
29901,
13,
18884,
396,
7440,
29876,
29915,
29873,
2289,
1735,
541,
278,
438,
21819,
4051,
11819,
9608,
2337,
13,
18884,
396,
7805,
1432,
995,
297,
263,
1948,
29889,
13,
18884,
1209,
13,
4706,
736,
3939,
13,
13,
1678,
822,
4770,
8551,
29898,
1311,
1125,
13,
4706,
565,
1583,
29889,
1272,
2804,
426,
6177,
13,
9651,
363,
1591,
29918,
978,
297,
1583,
29889,
11010,
29889,
24051,
29901,
13,
18884,
565,
1583,
29889,
1272,
29961,
2371,
29918,
978,
29962,
2804,
426,
6177,
13,
462,
1678,
1583,
29889,
3167,
29918,
11762,
1217,
4619,
29871,
29896,
13,
462,
1678,
2867,
13,
13,
4706,
1583,
29889,
1272,
353,
6571,
13,
4706,
363,
1591,
29918,
978,
297,
1583,
29889,
11010,
29889,
24051,
29901,
13,
9651,
1583,
29889,
1272,
29961,
2371,
29918,
978,
29962,
353,
6571,
13,
13,
1678,
822,
4770,
3258,
29918,
798,
29898,
1311,
29892,
1591,
29892,
318,
5416,
1125,
13,
4706,
1948,
353,
1583,
29889,
1272,
29961,
2371,
29889,
978,
3816,
25118,
29962,
353,
11438,
580,
13,
4706,
363,
1897,
297,
1591,
29889,
13099,
29889,
1524,
5975,
7295,
13,
9651,
731,
5552,
29898,
798,
29892,
1897,
29889,
978,
29892,
288,
4270,
29889,
2585,
29889,
1272,
29889,
16390,
398,
29889,
4381,
29898,
4914,
29889,
1853,
876,
13,
4706,
736,
1948,
13,
13,
1678,
822,
4889,
29918,
276,
6915,
29898,
1311,
1125,
13,
4706,
9995,
2831,
778,
278,
3553,
29931,
304,
5768,
967,
3957,
304,
278,
2566,
322,
337,
6915,
29889,
13,
4706,
512,
278,
6839,
603,
29892,
278,
8118,
310,
278,
3553,
29931,
674,
451,
1735,
1213,
15945,
13,
4706,
1583,
29889,
7924,
29889,
10118,
29918,
276,
6915,
580,
13,
13,
1990,
11438,
29898,
3318,
1125,
13,
1678,
9995,
29909,
1948,
2629,
385,
5163,
29880,
29889,
29871,
3630,
363,
1269,
1897,
338,
6087,
408,
385,
5352,
13,
1678,
411,
278,
1021,
1024,
408,
278,
1897,
322,
773,
385,
288,
4270,
29889,
2585,
29889,
1272,
29889,
16390,
398,
408,
278,
13,
1678,
995,
1213,
15945,
13,
1678,
1209,
13,
13,
2
] |
Validation/HGCalValidation/test/python/runHGCHitAnalyzer_cfg.py | SWuchterl/cmssw | 1 | 1610351 | <reponame>SWuchterl/cmssw
import FWCore.ParameterSet.Config as cms
#from Configuration.Eras.Era_Phase2C4_cff import Phase2C4
#process = cms.Process('HGCGeomAnalysis',Phase2C4)
#process.load('Configuration.Geometry.GeometryExtended2026D35_cff')
#process.load('Configuration.Geometry.GeometryExtended2026D35Reco_cff')
#from Configuration.Eras.Era_Phase2C8_cff import Phase2C8
#process = cms.Process('HGCGeomAnalysis',Phase2C8)
#process.load('Configuration.Geometry.GeometryExtended2026D41_cff')
#process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff')
#from Configuration.Eras.Era_Phase2C9_cff import Phase2C9
#process = cms.Process('HGCGeomAnalysis',Phase2C9)
#process.load('Configuration.Geometry.GeometryExtended2026D49_cff')
#process.load('Configuration.Geometry.GeometryExtended2026D49Reco_cff')
#from Configuration.Eras.Era_Phase2C12_cff import Phase2C12
#process = cms.Process('HGCGeomAnalysis',Phase2C12)
#process.load('Configuration.Geometry.GeometryExtended2026D58_cff')
#process.load('Configuration.Geometry.GeometryExtended2026D58Reco_cff')
#from Configuration.Eras.Era_Phase2C11_cff import Phase2C11
#process = cms.Process('HGCGeomAnalysis',Phase2C11)
#process.load('Configuration.Geometry.GeometryExtended2026D59_cff')
#process.load('Configuration.Geometry.GeometryExtended2026D59Reco_cff')
from Configuration.Eras.Era_Phase2C11_cff import Phase2C11
process = cms.Process('HGCGeomAnalysis',Phase2C11)
process.load('Configuration.Geometry.GeometryExtended2026D62_cff')
process.load('Configuration.Geometry.GeometryExtended2026D62Reco_cff')
process.load('Configuration.StandardSequences.Services_cff')
process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuration.EventContent.EventContent_cff')
process.load('Configuration.StandardSequences.MagneticField_cff')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
from Configuration.AlCa.GlobalTag import GlobalTag
##Global Tag used for production in
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
#process.MessageLogger.cerr.FwkReport.reportEvery = 100
#if 'MessageLogger' in process.__dict__:
# process.MessageLogger.categories.append('HGCalValid')
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring(
'file:step3.root',
#'root://cms-xrd-global.cern.ch//store/relval/CMSSW_9_0_0_pre1/RelValZEE_14/GEN-SIM-RECO/90X_upgrade2023_realistic_v0_2023D4-v1/10000/085AD7B1-8ABA-E611-A7DA-0CC47A4C8EB6.root',
#'/store/relval/CMSSW_8_1_0_pre8/RelValTTbar_14TeV/GEN-SIM-RECO/81X_mcRun2_asymptotic_v1_2023LReco-v1/10000/08E719D4-DE3D-E611-9092-003048FFD722.root',
)
)
process.load('Validation.HGCalValidation.hgcHitValidation_cfi')
process.TFileService = cms.Service("TFileService",
fileName = cms.string('relValTTbarD62.root'),
closeFileFast = cms.untracked.bool(True)
)
SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",ignoreTotal = cms.untracked.int32(1) )
#process.hgcHitAnalysis.ietaExcludeBH = [16,92,93,94,95,96,97,98,99,100]
#process.hgcHitAnalysis.ietaExcludeBH = [16, 32, 33]
process.p = cms.Path(process.hgcHitAnalysis)
| [
1,
529,
276,
1112,
420,
29958,
23066,
987,
357,
29880,
29914,
4912,
893,
29893,
13,
5215,
383,
29956,
9203,
29889,
9329,
2697,
29889,
3991,
408,
274,
1516,
13,
13,
29937,
3166,
20999,
29889,
2110,
294,
29889,
29923,
336,
29918,
4819,
559,
29906,
29907,
29946,
29918,
29883,
600,
1053,
1963,
559,
29906,
29907,
29946,
13,
29937,
5014,
353,
274,
1516,
29889,
7032,
877,
29950,
8766,
7999,
290,
21067,
4848,
742,
4819,
559,
29906,
29907,
29946,
29897,
13,
29937,
5014,
29889,
1359,
877,
8614,
29889,
7999,
7843,
29889,
7999,
7843,
5647,
2760,
29906,
29900,
29906,
29953,
29928,
29941,
29945,
29918,
29883,
600,
1495,
13,
29937,
5014,
29889,
1359,
877,
8614,
29889,
7999,
7843,
29889,
7999,
7843,
5647,
2760,
29906,
29900,
29906,
29953,
29928,
29941,
29945,
4789,
29877,
29918,
29883,
600,
1495,
13,
13,
29937,
3166,
20999,
29889,
2110,
294,
29889,
29923,
336,
29918,
4819,
559,
29906,
29907,
29947,
29918,
29883,
600,
1053,
1963,
559,
29906,
29907,
29947,
13,
29937,
5014,
353,
274,
1516,
29889,
7032,
877,
29950,
8766,
7999,
290,
21067,
4848,
742,
4819,
559,
29906,
29907,
29947,
29897,
13,
29937,
5014,
29889,
1359,
877,
8614,
29889,
7999,
7843,
29889,
7999,
7843,
5647,
2760,
29906,
29900,
29906,
29953,
29928,
29946,
29896,
29918,
29883,
600,
1495,
13,
29937,
5014,
29889,
1359,
877,
8614,
29889,
7999,
7843,
29889,
7999,
7843,
5647,
2760,
29906,
29900,
29906,
29953,
29928,
29946,
29896,
4789,
29877,
29918,
29883,
600,
1495,
13,
13,
29937,
3166,
20999,
29889,
2110,
294,
29889,
29923,
336,
29918,
4819,
559,
29906,
29907,
29929,
29918,
29883,
600,
1053,
1963,
559,
29906,
29907,
29929,
13,
29937,
5014,
353,
274,
1516,
29889,
7032,
877,
29950,
8766,
7999,
290,
21067,
4848,
742,
4819,
559,
29906,
29907,
29929,
29897,
13,
29937,
5014,
29889,
1359,
877,
8614,
29889,
7999,
7843,
29889,
7999,
7843,
5647,
2760,
29906,
29900,
29906,
29953,
29928,
29946,
29929,
29918,
29883,
600,
1495,
13,
29937,
5014,
29889,
1359,
877,
8614,
29889,
7999,
7843,
29889,
7999,
7843,
5647,
2760,
29906,
29900,
29906,
29953,
29928,
29946,
29929,
4789,
29877,
29918,
29883,
600,
1495,
13,
13,
29937,
3166,
20999,
29889,
2110,
294,
29889,
29923,
336,
29918,
4819,
559,
29906,
29907,
29896,
29906,
29918,
29883,
600,
1053,
1963,
559,
29906,
29907,
29896,
29906,
13,
29937,
5014,
353,
274,
1516,
29889,
7032,
877,
29950,
8766,
7999,
290,
21067,
4848,
742,
4819,
559,
29906,
29907,
29896,
29906,
29897,
13,
29937,
5014,
29889,
1359,
877,
8614,
29889,
7999,
7843,
29889,
7999,
7843,
5647,
2760,
29906,
29900,
29906,
29953,
29928,
29945,
29947,
29918,
29883,
600,
1495,
13,
29937,
5014,
29889,
1359,
877,
8614,
29889,
7999,
7843,
29889,
7999,
7843,
5647,
2760,
29906,
29900,
29906,
29953,
29928,
29945,
29947,
4789,
29877,
29918,
29883,
600,
1495,
13,
13,
29937,
3166,
20999,
29889,
2110,
294,
29889,
29923,
336,
29918,
4819,
559,
29906,
29907,
29896,
29896,
29918,
29883,
600,
1053,
1963,
559,
29906,
29907,
29896,
29896,
13,
29937,
5014,
353,
274,
1516,
29889,
7032,
877,
29950,
8766,
7999,
290,
21067,
4848,
742,
4819,
559,
29906,
29907,
29896,
29896,
29897,
13,
29937,
5014,
29889,
1359,
877,
8614,
29889,
7999,
7843,
29889,
7999,
7843,
5647,
2760,
29906,
29900,
29906,
29953,
29928,
29945,
29929,
29918,
29883,
600,
1495,
13,
29937,
5014,
29889,
1359,
877,
8614,
29889,
7999,
7843,
29889,
7999,
7843,
5647,
2760,
29906,
29900,
29906,
29953,
29928,
29945,
29929,
4789,
29877,
29918,
29883,
600,
1495,
13,
13,
3166,
20999,
29889,
2110,
294,
29889,
29923,
336,
29918,
4819,
559,
29906,
29907,
29896,
29896,
29918,
29883,
600,
1053,
1963,
559,
29906,
29907,
29896,
29896,
13,
5014,
353,
274,
1516,
29889,
7032,
877,
29950,
8766,
7999,
290,
21067,
4848,
742,
4819,
559,
29906,
29907,
29896,
29896,
29897,
13,
5014,
29889,
1359,
877,
8614,
29889,
7999,
7843,
29889,
7999,
7843,
5647,
2760,
29906,
29900,
29906,
29953,
29928,
29953,
29906,
29918,
29883,
600,
1495,
13,
5014,
29889,
1359,
877,
8614,
29889,
7999,
7843,
29889,
7999,
7843,
5647,
2760,
29906,
29900,
29906,
29953,
29928,
29953,
29906,
4789,
29877,
29918,
29883,
600,
1495,
13,
13,
5014,
29889,
1359,
877,
8614,
29889,
15449,
16941,
2063,
29889,
13779,
29918,
29883,
600,
1495,
13,
5014,
29889,
1359,
877,
8942,
15263,
29889,
29950,
1022,
25014,
4330,
1799,
1167,
29889,
29886,
1541,
423,
29886,
6008,
29918,
6854,
29875,
1495,
268,
13,
5014,
29889,
1359,
877,
29943,
29956,
9203,
29889,
3728,
3170,
29889,
3728,
16363,
29918,
6854,
29875,
1495,
13,
5014,
29889,
1359,
877,
8614,
29889,
2624,
3916,
29889,
2624,
3916,
29918,
29883,
600,
1495,
13,
5014,
29889,
1359,
877,
8614,
29889,
15449,
16941,
2063,
29889,
19095,
1212,
293,
3073,
29918,
29883,
600,
1495,
13,
5014,
29889,
1359,
877,
8614,
29889,
15449,
16941,
2063,
29889,
29348,
631,
10983,
2187,
29918,
12756,
8176,
29918,
29883,
600,
1495,
13,
13,
3166,
20999,
29889,
2499,
26270,
29889,
12756,
8176,
1053,
12002,
8176,
13,
2277,
12756,
10522,
1304,
363,
5802,
297,
13,
5014,
29889,
12756,
8176,
353,
12002,
8176,
29898,
5014,
29889,
12756,
8176,
29892,
525,
6921,
29901,
21646,
29906,
29918,
6370,
4695,
742,
27255,
13,
13,
29937,
5014,
29889,
3728,
16363,
29889,
2265,
29878,
29889,
29943,
29893,
29895,
13020,
29889,
12276,
26526,
353,
29871,
29896,
29900,
29900,
13,
29937,
361,
525,
3728,
16363,
29915,
297,
1889,
17255,
8977,
1649,
29901,
13,
29937,
1678,
1889,
29889,
3728,
16363,
29889,
20683,
29889,
4397,
877,
29950,
29954,
7856,
7211,
1495,
13,
13,
5014,
29889,
4993,
353,
274,
1516,
29889,
4435,
703,
11426,
4435,
613,
13,
462,
9651,
934,
8659,
353,
274,
1516,
29889,
1657,
22282,
287,
29889,
29894,
1807,
29898,
13,
4706,
525,
1445,
29901,
10568,
29941,
29889,
4632,
742,
13,
4706,
396,
29915,
4632,
597,
29883,
1516,
29899,
29916,
5499,
29899,
10945,
29889,
29883,
824,
29889,
305,
458,
8899,
29914,
2674,
791,
29914,
24494,
1799,
29956,
29918,
29929,
29918,
29900,
29918,
29900,
29918,
1457,
29896,
29914,
9662,
1440,
10721,
29923,
29918,
29896,
29946,
29914,
24647,
29899,
5425,
29924,
29899,
1525,
3217,
29914,
29929,
29900,
29990,
29918,
786,
8228,
29906,
29900,
29906,
29941,
29918,
6370,
4695,
29918,
29894,
29900,
29918,
29906,
29900,
29906,
29941,
29928,
29946,
29899,
29894,
29896,
29914,
29896,
29900,
29900,
29900,
29900,
29914,
29900,
29947,
29945,
3035,
29955,
29933,
29896,
29899,
29947,
2882,
29909,
29899,
29923,
29953,
29896,
29896,
29899,
29909,
29955,
7698,
29899,
29900,
4174,
29946,
29955,
29909,
29946,
29907,
29947,
25752,
29953,
29889,
4632,
742,
13,
4706,
396,
29915,
29914,
8899,
29914,
2674,
791,
29914,
24494,
1799,
29956,
29918,
29947,
29918,
29896,
29918,
29900,
29918,
1457,
29947,
29914,
9662,
1440,
19988,
1646,
29918,
29896,
29946,
7141,
29963,
29914,
24647,
29899,
5425,
29924,
29899,
1525,
3217,
29914,
29947,
29896,
29990,
29918,
14047,
6558,
29906,
29918,
294,
962,
415,
13574,
29918,
29894,
29896,
29918,
29906,
29900,
29906,
29941,
29931,
4789,
29877,
29899,
29894,
29896,
29914,
29896,
29900,
29900,
29900,
29900,
29914,
29900,
29947,
29923,
29955,
29896,
29929,
29928,
29946,
29899,
2287,
29941,
29928,
29899,
29923,
29953,
29896,
29896,
29899,
29929,
29900,
29929,
29906,
29899,
29900,
29900,
29941,
29900,
29946,
29947,
4198,
29928,
29955,
29906,
29906,
29889,
4632,
742,
13,
4706,
1723,
13,
462,
9651,
1723,
13,
13,
5014,
29889,
1359,
877,
19448,
29889,
29950,
29954,
7856,
19448,
29889,
29882,
27354,
29950,
277,
19448,
29918,
6854,
29875,
1495,
13,
13,
5014,
29889,
29911,
2283,
3170,
353,
274,
1516,
29889,
3170,
703,
29911,
2283,
3170,
613,
13,
462,
462,
259,
29729,
353,
274,
1516,
29889,
1807,
877,
2674,
1440,
19988,
1646,
29928,
29953,
29906,
29889,
4632,
5477,
13,
462,
462,
259,
3802,
2283,
29943,
579,
353,
274,
1516,
29889,
1657,
22282,
287,
29889,
11227,
29898,
5574,
29897,
13,
462,
462,
259,
1723,
13,
13,
15427,
16015,
5596,
353,
274,
1516,
29889,
3170,
703,
15427,
16015,
5596,
613,
17281,
11536,
353,
274,
1516,
29889,
1657,
22282,
287,
29889,
524,
29941,
29906,
29898,
29896,
29897,
1723,
13,
13,
29937,
5014,
29889,
29882,
27354,
29950,
277,
21067,
4848,
29889,
29875,
1187,
1252,
2325,
29933,
29950,
353,
518,
29896,
29953,
29892,
29929,
29906,
29892,
29929,
29941,
29892,
29929,
29946,
29892,
29929,
29945,
29892,
29929,
29953,
29892,
29929,
29955,
29892,
29929,
29947,
29892,
29929,
29929,
29892,
29896,
29900,
29900,
29962,
13,
29937,
5014,
29889,
29882,
27354,
29950,
277,
21067,
4848,
29889,
29875,
1187,
1252,
2325,
29933,
29950,
353,
518,
29896,
29953,
29892,
29871,
29941,
29906,
29892,
29871,
29941,
29941,
29962,
13,
13,
5014,
29889,
29886,
353,
274,
1516,
29889,
2605,
29898,
5014,
29889,
29882,
27354,
29950,
277,
21067,
4848,
29897,
13,
13,
13,
2
] |
src/applications/Application.py | BMW-Group-Quantum/QUARK | 12 | 1613296 | # Copyright 2021 The QUARK Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from abc import ABC, abstractmethod
class Application(ABC):
"""
The application component defines the workload, comprising a dataset of increasing complexity, a validation, and an
evaluation function.
"""
def __init__(self, application_name):
"""
Constructor method
"""
self.application_name = application_name
self.application = None
self.mapping_options = []
super().__init__()
def get_application(self) -> any:
"""
Getter that returns the application
:return: self.application
:rtype: any
"""
return self.application
@abstractmethod
def get_solution_quality_unit(self) -> str:
"""
Method to return the unit of the evaluation which is used to make the plots nicer.
:return: String with the unit
:rtype: str
"""
@abstractmethod
def get_parameter_options(self) -> dict:
"""
Method to return the parameters needed to create a concrete problem of an application.
Should always be in this format:
.. code-block:: json
{
"parameter_name":{
"values":[1, 2, 3],
"description":"How many nodes do you need?"
},
"parameter_name_2":{
"values":["x", "y"],
"description":"Which type of problem do you want?"
}
}
:return: Available application settings for this application
:rtype: dict
"""
pass
@abstractmethod
def generate_problem(self, config) -> any:
"""
Depending on the config this method creates a concrete problem and returns it.
:param config:
:type config: dict
:return:
:rtype: any
"""
pass
def process_solution(self, solution) -> (any, float):
"""
Most of the time the solution has to be processed before it can be validated and evaluated
This might not be necessary in all cases, so the default is to return the original solution.
:param solution:
:type solution: any
:return: Processed solution and the execution time to process it
:rtype: tuple(any, float)
"""
return solution, 0
@abstractmethod
def validate(self, solution) -> (bool, float):
"""
Check if the solution is a valid solution.
:return: bool and the time it took to create it
:param solution:
:type solution: any
:rtype: tuple(bool, float)
"""
pass
@abstractmethod
def evaluate(self, solution: any) -> (float, float):
"""
Checks how good the solution is to allow comparison to other solutions.
:param solution:
:type solution: any
:return: Evaluation and the time it took to create it
:rtype: tuple(any, float)
"""
pass
@abstractmethod
def save(self, path) -> None:
"""
Function to save the concrete problem.
:param path: path of the experiment directory for this run
:type path: str
:return:
:rtype: None
"""
pass
@abstractmethod
def get_mapping(self, mapping_option: str) -> any:
"""
Return a mapping for an application.
:param mapping_option: String with the option
:rtype: str
:return: instance of a mapping class
:rtype: any
"""
pass
def get_available_mapping_options(self) -> list:
"""
Get list of available mapping options.
:return: list of mapping options
:rtype: list
"""
return self.mapping_options
| [
1,
396,
29871,
14187,
1266,
29871,
29906,
29900,
29906,
29896,
450,
660,
29965,
1718,
29968,
13189,
943,
29889,
2178,
26863,
2538,
9841,
29889,
13,
29937,
13,
29937,
29871,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937,
29871,
366,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
13,
29937,
29871,
887,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
13,
29937,
13,
29937,
418,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
29871,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
29937,
29871,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
13,
29937,
29871,
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,
29871,
2823,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
13,
29937,
29871,
27028,
1090,
278,
19245,
29889,
13,
13,
3166,
25638,
1053,
16417,
29892,
9846,
5696,
13,
13,
13,
1990,
8427,
29898,
19658,
1125,
13,
1678,
9995,
13,
1678,
450,
2280,
4163,
17645,
278,
664,
1359,
29892,
7199,
5921,
263,
8783,
310,
10231,
13644,
29892,
263,
8845,
29892,
322,
385,
13,
1678,
17983,
740,
29889,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
2280,
29918,
978,
1125,
13,
4706,
9995,
13,
4706,
1281,
18769,
1158,
13,
4706,
9995,
13,
4706,
1583,
29889,
6214,
29918,
978,
353,
2280,
29918,
978,
13,
4706,
1583,
29889,
6214,
353,
6213,
13,
4706,
1583,
29889,
20698,
29918,
6768,
353,
5159,
13,
4706,
2428,
2141,
1649,
2344,
1649,
580,
13,
13,
1678,
822,
679,
29918,
6214,
29898,
1311,
29897,
1599,
738,
29901,
13,
4706,
9995,
13,
4706,
3617,
357,
393,
3639,
278,
2280,
13,
13,
4706,
584,
2457,
29901,
1583,
29889,
6214,
13,
4706,
584,
29878,
1853,
29901,
738,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
6214,
13,
13,
1678,
732,
16595,
5696,
13,
1678,
822,
679,
29918,
2929,
918,
29918,
29567,
29918,
5441,
29898,
1311,
29897,
1599,
851,
29901,
13,
4706,
9995,
13,
4706,
8108,
304,
736,
278,
5190,
310,
278,
17983,
607,
338,
1304,
304,
1207,
278,
24580,
16588,
261,
29889,
13,
13,
4706,
584,
2457,
29901,
1714,
411,
278,
5190,
13,
4706,
584,
29878,
1853,
29901,
851,
13,
4706,
9995,
13,
13,
1678,
732,
16595,
5696,
13,
1678,
822,
679,
29918,
15501,
29918,
6768,
29898,
1311,
29897,
1599,
9657,
29901,
13,
4706,
9995,
13,
4706,
8108,
304,
736,
278,
4128,
4312,
304,
1653,
263,
18387,
1108,
310,
385,
2280,
29889,
13,
13,
4706,
10575,
2337,
367,
297,
445,
3402,
29901,
13,
13,
4706,
6317,
775,
29899,
1271,
1057,
4390,
13,
13,
9651,
426,
13,
1669,
376,
15501,
29918,
978,
1115,
29912,
13,
462,
29871,
376,
5975,
1115,
29961,
29896,
29892,
29871,
29906,
29892,
29871,
29941,
1402,
13,
462,
29871,
376,
8216,
4710,
5328,
1784,
7573,
437,
366,
817,
3026,
13,
1669,
2981,
13,
18884,
376,
15501,
29918,
978,
29918,
29906,
1115,
29912,
13,
462,
29871,
376,
5975,
1115,
3366,
29916,
613,
376,
29891,
12436,
13,
462,
29871,
376,
8216,
4710,
8809,
436,
1134,
310,
1108,
437,
366,
864,
3026,
13,
1669,
500,
13,
9651,
500,
13,
13,
4706,
584,
2457,
29901,
7740,
3106,
2280,
6055,
363,
445,
2280,
13,
4706,
584,
29878,
1853,
29901,
9657,
13,
4706,
9995,
13,
4706,
1209,
13,
13,
1678,
732,
16595,
5696,
13,
1678,
822,
5706,
29918,
17199,
29898,
1311,
29892,
2295,
29897,
1599,
738,
29901,
13,
4706,
9995,
13,
4706,
28277,
373,
278,
2295,
445,
1158,
10017,
263,
18387,
1108,
322,
3639,
372,
29889,
13,
13,
4706,
584,
3207,
2295,
29901,
13,
4706,
584,
1853,
2295,
29901,
9657,
13,
4706,
584,
2457,
29901,
13,
4706,
584,
29878,
1853,
29901,
738,
13,
4706,
9995,
13,
4706,
1209,
13,
13,
1678,
822,
1889,
29918,
2929,
918,
29898,
1311,
29892,
1650,
29897,
1599,
313,
1384,
29892,
5785,
1125,
13,
4706,
9995,
13,
4706,
7849,
310,
278,
931,
278,
1650,
756,
304,
367,
19356,
1434,
372,
508,
367,
2854,
630,
322,
19030,
13,
4706,
910,
1795,
451,
367,
5181,
297,
599,
4251,
29892,
577,
278,
2322,
338,
304,
736,
278,
2441,
1650,
29889,
13,
13,
4706,
584,
3207,
1650,
29901,
13,
4706,
584,
1853,
1650,
29901,
738,
13,
4706,
584,
2457,
29901,
10554,
287,
1650,
322,
278,
8225,
931,
304,
1889,
372,
13,
4706,
584,
29878,
1853,
29901,
18761,
29898,
1384,
29892,
5785,
29897,
13,
13,
4706,
9995,
13,
4706,
736,
1650,
29892,
29871,
29900,
13,
13,
1678,
732,
16595,
5696,
13,
1678,
822,
12725,
29898,
1311,
29892,
1650,
29897,
1599,
313,
11227,
29892,
5785,
1125,
13,
4706,
9995,
13,
4706,
5399,
565,
278,
1650,
338,
263,
2854,
1650,
29889,
13,
13,
4706,
584,
2457,
29901,
6120,
322,
278,
931,
372,
3614,
304,
1653,
372,
13,
4706,
584,
3207,
1650,
29901,
13,
4706,
584,
1853,
1650,
29901,
738,
13,
4706,
584,
29878,
1853,
29901,
18761,
29898,
11227,
29892,
5785,
29897,
13,
13,
4706,
9995,
13,
4706,
1209,
13,
13,
1678,
732,
16595,
5696,
13,
1678,
822,
14707,
29898,
1311,
29892,
1650,
29901,
738,
29897,
1599,
313,
7411,
29892,
5785,
1125,
13,
4706,
9995,
13,
4706,
5399,
29879,
920,
1781,
278,
1650,
338,
304,
2758,
10230,
304,
916,
6851,
29889,
13,
13,
4706,
584,
3207,
1650,
29901,
13,
4706,
584,
1853,
1650,
29901,
738,
13,
4706,
584,
2457,
29901,
382,
4387,
362,
322,
278,
931,
372,
3614,
304,
1653,
372,
13,
4706,
584,
29878,
1853,
29901,
18761,
29898,
1384,
29892,
5785,
29897,
13,
13,
4706,
9995,
13,
4706,
1209,
13,
13,
1678,
732,
16595,
5696,
13,
1678,
822,
4078,
29898,
1311,
29892,
2224,
29897,
1599,
6213,
29901,
13,
4706,
9995,
13,
4706,
6680,
304,
4078,
278,
18387,
1108,
29889,
13,
13,
4706,
584,
3207,
2224,
29901,
2224,
310,
278,
7639,
3884,
363,
445,
1065,
13,
4706,
584,
1853,
2224,
29901,
851,
13,
4706,
584,
2457,
29901,
13,
4706,
584,
29878,
1853,
29901,
6213,
13,
4706,
9995,
13,
4706,
1209,
13,
13,
1678,
732,
16595,
5696,
13,
1678,
822,
679,
29918,
20698,
29898,
1311,
29892,
10417,
29918,
3385,
29901,
851,
29897,
1599,
738,
29901,
13,
4706,
9995,
13,
4706,
7106,
263,
10417,
363,
385,
2280,
29889,
13,
13,
4706,
584,
3207,
10417,
29918,
3385,
29901,
1714,
411,
278,
2984,
13,
4706,
584,
29878,
1853,
29901,
851,
13,
4706,
584,
2457,
29901,
2777,
310,
263,
10417,
770,
13,
4706,
584,
29878,
1853,
29901,
738,
13,
4706,
9995,
13,
4706,
1209,
13,
13,
1678,
822,
679,
29918,
16515,
29918,
20698,
29918,
6768,
29898,
1311,
29897,
1599,
1051,
29901,
13,
4706,
9995,
13,
4706,
3617,
1051,
310,
3625,
10417,
3987,
29889,
13,
13,
4706,
584,
2457,
29901,
1051,
310,
10417,
3987,
13,
4706,
584,
29878,
1853,
29901,
1051,
13,
4706,
9995,
13,
4706,
736,
1583,
29889,
20698,
29918,
6768,
13,
2
] |
Reading Data/lesson-18-get-fifa-players-from-the-web/tests/test_fifa_1.py | danielgarm/Data-Science-and-Machine-Learning | 0 | 197720 | <reponame>danielgarm/Data-Science-and-Machine-Learning
def test_fifa_1():
assert fifa_df.shape == (30, 5)
| [
1,
529,
276,
1112,
420,
29958,
18386,
709,
29887,
2817,
29914,
1469,
29899,
29903,
15277,
29899,
392,
29899,
29076,
29899,
29931,
799,
1076,
13,
1753,
1243,
29918,
29888,
26056,
29918,
29896,
7295,
30004,
13,
1678,
4974,
8461,
29874,
29918,
2176,
29889,
12181,
1275,
313,
29941,
29900,
29892,
29871,
29945,
8443,
13,
2
] |
gui/dataset/budgetary.py | vishalbelsare/prest | 6 | 197810 | import os
import dataset
import util.tree_model
import uic.view_dataset
import numpy as np
import dataset.budgetary_consistency
from core import Core
from dataset import Dataset, Analysis, ExportVariant, DatasetHeaderC
from dataset.budgetary_consistency import BudgetaryConsistency
from typing import Sequence, NamedTuple, List, Dict, Tuple, Iterator, Union, Optional, cast
from gui.progress import Worker, Cancelled
from util.codec import FileOut, FileIn, namedtupleC, strC, numpyC, listC
from util.codec_progress import CodecProgress, listCP, oneCP
from PyQt5.QtWidgets import QDialog, QTreeWidgetItem, QHeaderView
class Subject(NamedTuple):
name : str
prices : np.ndarray
amounts : np.ndarray
SubjectC = namedtupleC(Subject, strC, numpyC(np.float32), numpyC(np.float32))
class RowNode(util.tree_model.Node):
def __init__(self, parent_node, row: int, prices: np.ndarray, amounts: np.ndarray) -> None:
util.tree_model.Node.__init__(
self, parent_node, row,
fields=[''] \
+ ['%.2f' % p for p in prices] \
+ ['%g' % x for x in amounts] \
+ ['%.2f' % np.dot(prices, amounts)]
)
class SubjectNode(util.tree_model.Node):
def __init__(self, parent_node, row: int, subject: Subject) -> None:
self.subject = subject
util.tree_model.Node.__init__(
self, parent_node, row,
fields=(subject.name,),
child_count=subject.prices.shape[0],
)
def create_child(self, row: int) -> RowNode:
return RowNode(self, row, self.subject.prices[row], self.subject.amounts[row])
class RootNode(util.tree_model.RootNode):
def __init__(self, subjects : List[Subject]) -> None:
util.tree_model.RootNode.__init__(self, len(subjects))
self.subjects = subjects
def create_child(self, row: int) -> SubjectNode:
return SubjectNode(self, row, self.subjects[row])
class Budgetary(Dataset):
class ViewDialog(QDialog, uic.view_dataset.Ui_ViewDataset):
def __init__(self, ds : 'Budgetary') -> None:
QDialog.__init__(self)
self.setupUi(self)
self.ds = ds
self.model = util.tree_model.TreeModel(
RootNode(ds.subjects),
headers= \
['Subject'] \
+ [f'Price {a}' for a in ds.alternatives] \
+ [f'Quantity {a}' for a in ds.alternatives] \
+ ['Expenditure']
)
self.twRows.setModel(self.model)
self.twRows.header().setSectionResizeMode(QHeaderView.ResizeToContents)
self.twRows.header().setStretchLastSection(False)
def __init__(self, name : str, alternatives : Sequence[str]) -> None:
Dataset.__init__(self, name, alternatives)
self.subjects : List[Subject] = []
self.nr_observations = 0
def label_size(self):
return f'{len(self.subjects)} subjects, {self.nr_observations} observations'
def analysis_consistency(self, worker : Worker, _config : None) -> BudgetaryConsistency:
with Core() as core:
worker.interrupt = lambda: core.shutdown() # interrupt hook
rows = []
worker.set_work_size(len(self.subjects))
for i, subject in enumerate(self.subjects):
response = core.call(
'budgetary-consistency',
SubjectC,
dataset.budgetary_consistency.SubjectC,
subject
)
rows.append(response)
worker.set_progress(i+1)
ds = BudgetaryConsistency(
self.name + ' (consistency)',
self.alternatives,
rows,
)
return ds
def get_analyses(self) -> Sequence[Analysis]:
return (
Analysis(
name='Consistency analysis',
config=None,
run=self.analysis_consistency,
),
)
@staticmethod
def get_codec_progress() -> CodecProgress:
DatasetHeaderC_encode, DatasetHeaderC_decode = DatasetHeaderC
subjects_get_size, subjects_encode, subjects_decode = listCP(oneCP(SubjectC))
def get_size(x : 'Budgetary') -> int:
return cast(int, subjects_get_size(x.subjects))
def encode(worker : Worker, f : FileOut, x : 'Budgetary') -> None:
DatasetHeaderC_encode(f, (x.name, x.alternatives))
subjects_encode(worker, f, x.subjects)
def decode(worker : Worker, f : FileIn) -> 'Budgetary':
ds = Budgetary(*DatasetHeaderC_decode(f))
ds.subjects = subjects_decode(worker, f)
ds.update_nr_observations()
return ds
return CodecProgress(get_size, encode, decode)
def update_nr_observations(self) -> None:
self.nr_observations = sum(len(s.prices) for s in self.subjects)
def get_export_variants(self) -> Sequence[ExportVariant]:
if not self.subjects:
return []
_n_observ, n_alts = self.subjects[0].prices.shape
return [
ExportVariant(
name='Detailed',
column_names=\
['subject'] \
+ [f'price{i+1}' for i in range(n_alts)] \
+ [f'quantity{i+1}' for i in range(n_alts)],
get_rows=self.export_detailed,
size=len(self.subjects),
),
]
def export_detailed(self) -> Iterator[Optional[Tuple[Union[str, float], ...]]]:
for subject in self.subjects:
# subject.prices and subject.amounts are matrices
for prices, amounts in zip(subject.prices, subject.amounts):
row : List[Union[str, float]] = [subject.name]
row += list(prices)
row += list(amounts)
yield tuple(row)
yield None # bump progress
class BudgetaryError(Exception):
pass
def load_from_csv(fname : str) -> Budgetary:
lines = dataset.load_raw_csv(fname)
if not lines:
raise BudgetaryError("the CSV file is empty")
header, *rows = lines
if (len(header)-1) % 2 != 0:
raise BudgetaryError("budgetary datasets should have an even number of numeric columns")
n_alts = (len(header)-1) // 2
alternatives = [f'{i+1}' for i in range(n_alts)]
subjects : Dict[str,Tuple[List[np.ndarray],List[np.ndarray]]] = dict() # ordered
for line_no, row in enumerate(rows, start=2):
if len(row) != len(header):
raise BudgetaryError(f'{fname}, line {line_no}: incorrect number of columns')
subj_name, *cols = row
if subj_name not in subjects:
subjects[subj_name] = ([], [])
prices, amounts = subjects[subj_name]
prices.append(np.array([float(x) for x in cols[:n_alts]], dtype=np.float32))
amounts.append(np.array([float(x) for x in cols[n_alts:]], dtype=np.float32))
ds = Budgetary(os.path.basename(fname), alternatives)
ds.subjects = [
Subject(name=n, prices=np.vstack(ps), amounts=np.vstack(ams))
for (n,(ps,ams)) in subjects.items()
]
ds.update_nr_observations()
return ds
| [
1,
1053,
2897,
13,
5215,
8783,
13,
5215,
3667,
29889,
8336,
29918,
4299,
13,
5215,
318,
293,
29889,
1493,
29918,
24713,
13,
5215,
12655,
408,
7442,
13,
13,
5215,
8783,
29889,
15841,
657,
653,
29918,
3200,
391,
3819,
13,
3166,
7136,
1053,
10239,
13,
3166,
8783,
1053,
13373,
24541,
29892,
24352,
29892,
1222,
637,
10444,
424,
29892,
13373,
24541,
7850,
29907,
13,
3166,
8783,
29889,
15841,
657,
653,
29918,
3200,
391,
3819,
1053,
7038,
657,
653,
13696,
391,
3819,
13,
3166,
19229,
1053,
922,
3910,
29892,
405,
2795,
23215,
552,
29892,
2391,
29892,
360,
919,
29892,
12603,
552,
29892,
20504,
1061,
29892,
7761,
29892,
28379,
29892,
4320,
13,
3166,
1410,
29875,
29889,
18035,
1053,
5244,
261,
29892,
1815,
2242,
839,
13,
3166,
3667,
29889,
401,
29883,
1053,
3497,
3744,
29892,
3497,
797,
29892,
4257,
23583,
29907,
29892,
851,
29907,
29892,
12655,
29907,
29892,
1051,
29907,
13,
3166,
3667,
29889,
401,
29883,
29918,
18035,
1053,
5920,
29883,
14470,
29892,
1051,
6271,
29892,
697,
6271,
13,
3166,
10772,
17303,
29945,
29889,
17303,
8801,
29879,
1053,
660,
7647,
29892,
660,
9643,
8801,
2001,
29892,
660,
7850,
1043,
13,
13,
1990,
3323,
622,
29898,
22175,
23215,
552,
1125,
13,
1678,
1024,
1678,
584,
851,
13,
1678,
26094,
29871,
584,
7442,
29889,
299,
2378,
13,
1678,
26999,
584,
7442,
29889,
299,
2378,
13,
13,
20622,
29907,
353,
4257,
23583,
29907,
29898,
20622,
29892,
851,
29907,
29892,
12655,
29907,
29898,
9302,
29889,
7411,
29941,
29906,
511,
12655,
29907,
29898,
9302,
29889,
7411,
29941,
29906,
876,
13,
13,
1990,
11438,
4247,
29898,
4422,
29889,
8336,
29918,
4299,
29889,
4247,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3847,
29918,
3177,
29892,
1948,
29901,
938,
29892,
26094,
29901,
7442,
29889,
299,
2378,
29892,
26999,
29901,
7442,
29889,
299,
2378,
29897,
1599,
6213,
29901,
13,
4706,
3667,
29889,
8336,
29918,
4299,
29889,
4247,
17255,
2344,
12035,
13,
9651,
1583,
29892,
3847,
29918,
3177,
29892,
1948,
29892,
13,
9651,
4235,
29922,
1839,
2033,
320,
13,
18884,
718,
6024,
15543,
29906,
29888,
29915,
1273,
282,
363,
282,
297,
26094,
29962,
320,
13,
18884,
718,
6024,
29995,
29887,
29915,
1273,
921,
363,
921,
297,
26999,
29962,
320,
13,
18884,
718,
6024,
15543,
29906,
29888,
29915,
1273,
7442,
29889,
6333,
29898,
558,
1575,
29892,
26999,
4638,
13,
4706,
1723,
13,
13,
1990,
3323,
622,
4247,
29898,
4422,
29889,
8336,
29918,
4299,
29889,
4247,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3847,
29918,
3177,
29892,
1948,
29901,
938,
29892,
4967,
29901,
3323,
622,
29897,
1599,
6213,
29901,
13,
4706,
1583,
29889,
16009,
353,
4967,
13,
4706,
3667,
29889,
8336,
29918,
4299,
29889,
4247,
17255,
2344,
12035,
13,
9651,
1583,
29892,
3847,
29918,
3177,
29892,
1948,
29892,
13,
9651,
4235,
7607,
16009,
29889,
978,
29892,
511,
13,
9651,
2278,
29918,
2798,
29922,
16009,
29889,
558,
1575,
29889,
12181,
29961,
29900,
1402,
13,
4706,
1723,
13,
13,
1678,
822,
1653,
29918,
5145,
29898,
1311,
29892,
1948,
29901,
938,
29897,
1599,
11438,
4247,
29901,
13,
4706,
736,
11438,
4247,
29898,
1311,
29892,
1948,
29892,
1583,
29889,
16009,
29889,
558,
1575,
29961,
798,
1402,
1583,
29889,
16009,
29889,
14506,
29879,
29961,
798,
2314,
13,
13,
1990,
28272,
4247,
29898,
4422,
29889,
8336,
29918,
4299,
29889,
10303,
4247,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
17800,
584,
2391,
29961,
20622,
2314,
1599,
6213,
29901,
13,
4706,
3667,
29889,
8336,
29918,
4299,
29889,
10303,
4247,
17255,
2344,
12035,
1311,
29892,
7431,
29898,
16009,
29879,
876,
13,
4706,
1583,
29889,
16009,
29879,
353,
17800,
13,
13,
1678,
822,
1653,
29918,
5145,
29898,
1311,
29892,
1948,
29901,
938,
29897,
1599,
3323,
622,
4247,
29901,
13,
4706,
736,
3323,
622,
4247,
29898,
1311,
29892,
1948,
29892,
1583,
29889,
16009,
29879,
29961,
798,
2314,
13,
13,
1990,
7038,
657,
653,
29898,
16390,
24541,
1125,
13,
1678,
770,
4533,
7647,
29898,
29984,
7647,
29892,
318,
293,
29889,
1493,
29918,
24713,
29889,
29965,
29875,
29918,
1043,
16390,
24541,
1125,
13,
4706,
822,
4770,
2344,
12035,
1311,
29892,
18031,
584,
525,
29933,
566,
657,
653,
1495,
1599,
6213,
29901,
13,
9651,
660,
7647,
17255,
2344,
12035,
1311,
29897,
13,
9651,
1583,
29889,
14669,
29965,
29875,
29898,
1311,
29897,
13,
13,
9651,
1583,
29889,
6289,
353,
18031,
13,
9651,
1583,
29889,
4299,
353,
3667,
29889,
8336,
29918,
4299,
29889,
9643,
3195,
29898,
13,
18884,
28272,
4247,
29898,
6289,
29889,
16009,
29879,
511,
13,
18884,
9066,
29922,
320,
13,
462,
1678,
6024,
20622,
2033,
320,
13,
462,
1678,
718,
518,
29888,
29915,
13026,
426,
29874,
10162,
363,
263,
297,
18031,
29889,
26123,
5056,
29962,
320,
13,
462,
1678,
718,
518,
29888,
29915,
22930,
537,
426,
29874,
10162,
363,
263,
297,
18031,
29889,
26123,
5056,
29962,
320,
13,
462,
1678,
718,
6024,
9544,
355,
17252,
2033,
13,
9651,
1723,
13,
9651,
1583,
29889,
7516,
10661,
29889,
842,
3195,
29898,
1311,
29889,
4299,
29897,
13,
13,
9651,
1583,
29889,
7516,
10661,
29889,
6672,
2141,
842,
13438,
1666,
675,
6818,
29898,
29984,
7850,
1043,
29889,
1666,
675,
1762,
21002,
29897,
13,
9651,
1583,
29889,
7516,
10661,
29889,
6672,
2141,
842,
855,
10301,
8897,
13438,
29898,
8824,
29897,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1024,
584,
851,
29892,
27809,
584,
922,
3910,
29961,
710,
2314,
1599,
6213,
29901,
13,
4706,
13373,
24541,
17255,
2344,
12035,
1311,
29892,
1024,
29892,
27809,
29897,
13,
4706,
1583,
29889,
16009,
29879,
584,
2391,
29961,
20622,
29962,
353,
5159,
13,
4706,
1583,
29889,
22230,
29918,
26739,
800,
353,
29871,
29900,
13,
13,
1678,
822,
3858,
29918,
2311,
29898,
1311,
1125,
13,
4706,
736,
285,
29915,
29912,
2435,
29898,
1311,
29889,
16009,
29879,
2915,
17800,
29892,
426,
1311,
29889,
22230,
29918,
26739,
800,
29913,
13917,
29915,
13,
13,
1678,
822,
7418,
29918,
3200,
391,
3819,
29898,
1311,
29892,
15645,
584,
5244,
261,
29892,
903,
2917,
584,
6213,
29897,
1599,
7038,
657,
653,
13696,
391,
3819,
29901,
13,
4706,
411,
10239,
580,
408,
7136,
29901,
13,
9651,
15645,
29889,
1639,
6685,
353,
14013,
29901,
7136,
29889,
845,
329,
3204,
580,
29871,
396,
23754,
12422,
13,
13,
9651,
4206,
353,
5159,
13,
13,
9651,
15645,
29889,
842,
29918,
1287,
29918,
2311,
29898,
2435,
29898,
1311,
29889,
16009,
29879,
876,
13,
9651,
363,
474,
29892,
4967,
297,
26985,
29898,
1311,
29889,
16009,
29879,
1125,
13,
18884,
2933,
353,
7136,
29889,
4804,
29898,
13,
462,
1678,
525,
15841,
657,
653,
29899,
3200,
391,
3819,
742,
13,
462,
1678,
3323,
622,
29907,
29892,
13,
462,
1678,
8783,
29889,
15841,
657,
653,
29918,
3200,
391,
3819,
29889,
20622,
29907,
29892,
13,
462,
1678,
4967,
13,
18884,
1723,
13,
18884,
4206,
29889,
4397,
29898,
5327,
29897,
13,
13,
18884,
15645,
29889,
842,
29918,
18035,
29898,
29875,
29974,
29896,
29897,
13,
13,
4706,
18031,
353,
7038,
657,
653,
13696,
391,
3819,
29898,
13,
9651,
1583,
29889,
978,
718,
525,
313,
3200,
391,
3819,
29897,
742,
13,
9651,
1583,
29889,
26123,
5056,
29892,
13,
9651,
4206,
29892,
13,
4706,
1723,
13,
4706,
736,
18031,
13,
13,
1678,
822,
679,
29918,
7054,
952,
267,
29898,
1311,
29897,
1599,
922,
3910,
29961,
21067,
4848,
5387,
13,
4706,
736,
313,
13,
9651,
24352,
29898,
13,
18884,
1024,
2433,
13696,
391,
3819,
7418,
742,
13,
18884,
2295,
29922,
8516,
29892,
13,
18884,
1065,
29922,
1311,
29889,
15916,
29918,
3200,
391,
3819,
29892,
13,
9651,
10353,
13,
4706,
1723,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
679,
29918,
401,
29883,
29918,
18035,
580,
1599,
5920,
29883,
14470,
29901,
13,
4706,
13373,
24541,
7850,
29907,
29918,
12508,
29892,
13373,
24541,
7850,
29907,
29918,
13808,
353,
13373,
24541,
7850,
29907,
13,
4706,
17800,
29918,
657,
29918,
2311,
29892,
17800,
29918,
12508,
29892,
17800,
29918,
13808,
353,
1051,
6271,
29898,
650,
6271,
29898,
20622,
29907,
876,
13,
13,
4706,
822,
679,
29918,
2311,
29898,
29916,
584,
525,
29933,
566,
657,
653,
1495,
1599,
938,
29901,
13,
9651,
736,
4320,
29898,
524,
29892,
17800,
29918,
657,
29918,
2311,
29898,
29916,
29889,
16009,
29879,
876,
13,
13,
4706,
822,
19750,
29898,
24602,
584,
5244,
261,
29892,
285,
584,
3497,
3744,
29892,
921,
584,
525,
29933,
566,
657,
653,
1495,
1599,
6213,
29901,
13,
9651,
13373,
24541,
7850,
29907,
29918,
12508,
29898,
29888,
29892,
313,
29916,
29889,
978,
29892,
921,
29889,
26123,
5056,
876,
13,
9651,
17800,
29918,
12508,
29898,
24602,
29892,
285,
29892,
921,
29889,
16009,
29879,
29897,
13,
13,
4706,
822,
21822,
29898,
24602,
584,
5244,
261,
29892,
285,
584,
3497,
797,
29897,
1599,
525,
29933,
566,
657,
653,
2396,
13,
9651,
18031,
353,
7038,
657,
653,
10456,
16390,
24541,
7850,
29907,
29918,
13808,
29898,
29888,
876,
13,
9651,
18031,
29889,
16009,
29879,
353,
17800,
29918,
13808,
29898,
24602,
29892,
285,
29897,
13,
9651,
18031,
29889,
5504,
29918,
22230,
29918,
26739,
800,
580,
13,
9651,
736,
18031,
13,
13,
4706,
736,
5920,
29883,
14470,
29898,
657,
29918,
2311,
29892,
19750,
29892,
21822,
29897,
13,
13,
1678,
822,
2767,
29918,
22230,
29918,
26739,
800,
29898,
1311,
29897,
1599,
6213,
29901,
13,
4706,
1583,
29889,
22230,
29918,
26739,
800,
353,
2533,
29898,
2435,
29898,
29879,
29889,
558,
1575,
29897,
363,
269,
297,
1583,
29889,
16009,
29879,
29897,
13,
13,
13,
1678,
822,
679,
29918,
15843,
29918,
5927,
1934,
29898,
1311,
29897,
1599,
922,
3910,
29961,
26382,
10444,
424,
5387,
13,
4706,
565,
451,
1583,
29889,
16009,
29879,
29901,
13,
9651,
736,
5159,
13,
13,
4706,
903,
29876,
29918,
26739,
29892,
302,
29918,
284,
1372,
353,
1583,
29889,
16009,
29879,
29961,
29900,
1822,
558,
1575,
29889,
12181,
13,
13,
4706,
736,
518,
13,
9651,
1222,
637,
10444,
424,
29898,
13,
18884,
1024,
2433,
29928,
11881,
742,
13,
18884,
1897,
29918,
7039,
2013,
13,
462,
1678,
6024,
16009,
2033,
320,
13,
462,
1678,
718,
518,
29888,
29915,
9175,
29912,
29875,
29974,
29896,
10162,
363,
474,
297,
3464,
29898,
29876,
29918,
284,
1372,
4638,
320,
13,
462,
1678,
718,
518,
29888,
29915,
22640,
29912,
29875,
29974,
29896,
10162,
363,
474,
297,
3464,
29898,
29876,
29918,
284,
1372,
29897,
1402,
13,
18884,
679,
29918,
5727,
29922,
1311,
29889,
15843,
29918,
29881,
11881,
29892,
13,
18884,
2159,
29922,
2435,
29898,
1311,
29889,
16009,
29879,
511,
13,
9651,
10353,
13,
4706,
4514,
13,
13,
1678,
822,
5609,
29918,
29881,
11881,
29898,
1311,
29897,
1599,
20504,
1061,
29961,
27636,
29961,
23215,
552,
29961,
19986,
29961,
710,
29892,
5785,
1402,
2023,
5262,
5387,
13,
4706,
363,
4967,
297,
1583,
29889,
16009,
29879,
29901,
13,
9651,
396,
4967,
29889,
558,
1575,
322,
4967,
29889,
14506,
29879,
526,
13516,
13,
9651,
363,
26094,
29892,
26999,
297,
14319,
29898,
16009,
29889,
558,
1575,
29892,
4967,
29889,
14506,
29879,
1125,
13,
18884,
1948,
584,
2391,
29961,
19986,
29961,
710,
29892,
5785,
5262,
353,
518,
16009,
29889,
978,
29962,
13,
18884,
1948,
4619,
1051,
29898,
558,
1575,
29897,
13,
18884,
1948,
4619,
1051,
29898,
14506,
29879,
29897,
13,
18884,
7709,
18761,
29898,
798,
29897,
13,
13,
9651,
7709,
6213,
29871,
396,
289,
3427,
6728,
13,
13,
1990,
7038,
657,
653,
2392,
29898,
2451,
1125,
13,
1678,
1209,
13,
13,
1753,
2254,
29918,
3166,
29918,
7638,
29898,
29888,
978,
584,
851,
29897,
1599,
7038,
657,
653,
29901,
13,
1678,
3454,
353,
8783,
29889,
1359,
29918,
1610,
29918,
7638,
29898,
29888,
978,
29897,
13,
1678,
565,
451,
3454,
29901,
13,
4706,
12020,
7038,
657,
653,
2392,
703,
1552,
16874,
934,
338,
4069,
1159,
13,
13,
1678,
4839,
29892,
334,
5727,
353,
3454,
13,
13,
1678,
565,
313,
2435,
29898,
6672,
6817,
29896,
29897,
1273,
29871,
29906,
2804,
29871,
29900,
29901,
13,
4706,
12020,
7038,
657,
653,
2392,
703,
15841,
657,
653,
20035,
881,
505,
385,
1584,
1353,
310,
16985,
4341,
1159,
13,
13,
1678,
302,
29918,
284,
1372,
353,
313,
2435,
29898,
6672,
6817,
29896,
29897,
849,
29871,
29906,
13,
1678,
27809,
353,
518,
29888,
29915,
29912,
29875,
29974,
29896,
10162,
363,
474,
297,
3464,
29898,
29876,
29918,
284,
1372,
4638,
13,
1678,
17800,
584,
360,
919,
29961,
710,
29892,
23215,
552,
29961,
1293,
29961,
9302,
29889,
299,
2378,
1402,
1293,
29961,
9302,
29889,
299,
2378,
5262,
29962,
353,
9657,
580,
29871,
396,
10372,
13,
1678,
363,
1196,
29918,
1217,
29892,
1948,
297,
26985,
29898,
5727,
29892,
1369,
29922,
29906,
1125,
13,
4706,
565,
7431,
29898,
798,
29897,
2804,
7431,
29898,
6672,
1125,
13,
9651,
12020,
7038,
657,
653,
2392,
29898,
29888,
29915,
29912,
29888,
978,
1118,
1196,
426,
1220,
29918,
1217,
6177,
10240,
1353,
310,
4341,
1495,
13,
13,
4706,
1014,
29926,
29918,
978,
29892,
334,
22724,
353,
1948,
13,
4706,
565,
1014,
29926,
29918,
978,
451,
297,
17800,
29901,
13,
9651,
17800,
29961,
1491,
29926,
29918,
978,
29962,
353,
9310,
1402,
518,
2314,
13,
13,
4706,
26094,
29892,
26999,
353,
17800,
29961,
1491,
29926,
29918,
978,
29962,
13,
4706,
26094,
29889,
4397,
29898,
9302,
29889,
2378,
4197,
7411,
29898,
29916,
29897,
363,
921,
297,
28730,
7503,
29876,
29918,
284,
1372,
20526,
26688,
29922,
9302,
29889,
7411,
29941,
29906,
876,
13,
4706,
26999,
29889,
4397,
29898,
9302,
29889,
2378,
4197,
7411,
29898,
29916,
29897,
363,
921,
297,
28730,
29961,
29876,
29918,
284,
1372,
17531,
1402,
26688,
29922,
9302,
29889,
7411,
29941,
29906,
876,
13,
13,
1678,
18031,
353,
7038,
657,
653,
29898,
359,
29889,
2084,
29889,
6500,
3871,
29898,
29888,
978,
511,
27809,
29897,
13,
1678,
18031,
29889,
16009,
29879,
353,
518,
13,
4706,
3323,
622,
29898,
978,
29922,
29876,
29892,
26094,
29922,
9302,
29889,
29894,
1429,
29898,
567,
511,
26999,
29922,
9302,
29889,
29894,
1429,
29898,
2232,
876,
13,
4706,
363,
313,
29876,
22657,
567,
29892,
2232,
876,
297,
17800,
29889,
7076,
580,
13,
1678,
4514,
13,
1678,
18031,
29889,
5504,
29918,
22230,
29918,
26739,
800,
580,
13,
13,
1678,
736,
18031,
13,
2
] |
test/integration/test_command.py | jmgao/bfg9000 | 0 | 169339 | <filename>test/integration/test_command.py
import os.path
import re
from six import assertRegex
from . import *
class TestCommand(IntegrationTest):
def __init__(self, *args, **kwargs):
IntegrationTest.__init__(
self, os.path.join(examples_dir, '07_commands'), *args, **kwargs
)
def test_hello(self):
assertRegex(self, self.build('hello'),
re.compile(r'^\s*hello$', re.MULTILINE))
def test_world(self):
assertRegex(self, self.build('world'),
re.compile(r'^\s*world$', re.MULTILINE))
def test_script(self):
assertRegex(self, self.build('script'),
re.compile(r'^\s*hello, world!$', re.MULTILINE))
self.assertExists(output_file('file'))
def test_alias(self):
output = self.build('hello-world')
assertRegex(self, output, re.compile(r'^\s*hello$', re.MULTILINE))
assertRegex(self, output, re.compile(r'^\s*world$', re.MULTILINE))
@skip_if_backend('msbuild')
class TestRunExecutable(IntegrationTest):
def __init__(self, *args, **kwargs):
IntegrationTest.__init__(self, 'run_executable', *args, **kwargs)
def test_env_run(self):
self.assertExists(output_file('file.txt'))
def test_cxx(self):
assertRegex(self, self.build('cxx'),
re.compile(r'^\s*hello from c\+\+!$', re.MULTILINE))
def test_java(self):
assertRegex(self, self.build('java'),
re.compile(r'^\s*hello from java!$', re.MULTILINE))
def test_java_classlist(self):
assertRegex(self, self.build('java-classlist'),
re.compile(r'^\s*hello from java!$', re.MULTILINE))
def test_python(self):
assertRegex(self, self.build('python'),
re.compile(r'^\s*hello from python!$', re.MULTILINE))
| [
1,
529,
9507,
29958,
1688,
29914,
27925,
29914,
1688,
29918,
6519,
29889,
2272,
13,
5215,
2897,
29889,
2084,
13,
5215,
337,
13,
3166,
4832,
1053,
4974,
4597,
735,
13,
13,
3166,
869,
1053,
334,
13,
13,
13,
1990,
4321,
6255,
29898,
23573,
362,
3057,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
4706,
17100,
362,
3057,
17255,
2344,
12035,
13,
9651,
1583,
29892,
2897,
29889,
2084,
29889,
7122,
29898,
19057,
29918,
3972,
29892,
525,
29900,
29955,
29918,
26381,
5477,
334,
5085,
29892,
3579,
19290,
13,
4706,
1723,
13,
13,
1678,
822,
1243,
29918,
12199,
29898,
1311,
1125,
13,
4706,
4974,
4597,
735,
29898,
1311,
29892,
1583,
29889,
4282,
877,
12199,
5477,
13,
462,
1678,
337,
29889,
12198,
29898,
29878,
29915,
3823,
29879,
29930,
12199,
29938,
742,
337,
29889,
29924,
8647,
6227,
8895,
876,
13,
13,
1678,
822,
1243,
29918,
11526,
29898,
1311,
1125,
13,
4706,
4974,
4597,
735,
29898,
1311,
29892,
1583,
29889,
4282,
877,
11526,
5477,
13,
462,
1678,
337,
29889,
12198,
29898,
29878,
29915,
3823,
29879,
29930,
11526,
29938,
742,
337,
29889,
29924,
8647,
6227,
8895,
876,
13,
13,
1678,
822,
1243,
29918,
2154,
29898,
1311,
1125,
13,
4706,
4974,
4597,
735,
29898,
1311,
29892,
1583,
29889,
4282,
877,
2154,
5477,
13,
462,
1678,
337,
29889,
12198,
29898,
29878,
29915,
3823,
29879,
29930,
12199,
29892,
3186,
29991,
29938,
742,
337,
29889,
29924,
8647,
6227,
8895,
876,
13,
4706,
1583,
29889,
9294,
24217,
29898,
4905,
29918,
1445,
877,
1445,
8785,
13,
13,
1678,
822,
1243,
29918,
19973,
29898,
1311,
1125,
13,
4706,
1962,
353,
1583,
29889,
4282,
877,
12199,
29899,
11526,
1495,
13,
4706,
4974,
4597,
735,
29898,
1311,
29892,
1962,
29892,
337,
29889,
12198,
29898,
29878,
29915,
3823,
29879,
29930,
12199,
29938,
742,
337,
29889,
29924,
8647,
6227,
8895,
876,
13,
4706,
4974,
4597,
735,
29898,
1311,
29892,
1962,
29892,
337,
29889,
12198,
29898,
29878,
29915,
3823,
29879,
29930,
11526,
29938,
742,
337,
29889,
29924,
8647,
6227,
8895,
876,
13,
13,
13,
29992,
11014,
29918,
361,
29918,
27852,
877,
1516,
4282,
1495,
13,
1990,
4321,
6558,
5379,
9246,
29898,
23573,
362,
3057,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
4706,
17100,
362,
3057,
17255,
2344,
12035,
1311,
29892,
525,
3389,
29918,
4258,
9246,
742,
334,
5085,
29892,
3579,
19290,
29897,
13,
13,
1678,
822,
1243,
29918,
6272,
29918,
3389,
29898,
1311,
1125,
13,
4706,
1583,
29889,
9294,
24217,
29898,
4905,
29918,
1445,
877,
1445,
29889,
3945,
8785,
13,
13,
1678,
822,
1243,
29918,
29883,
4419,
29898,
1311,
1125,
13,
4706,
4974,
4597,
735,
29898,
1311,
29892,
1583,
29889,
4282,
877,
29883,
4419,
5477,
13,
462,
1678,
337,
29889,
12198,
29898,
29878,
29915,
3823,
29879,
29930,
12199,
515,
274,
29905,
3124,
29974,
29991,
29938,
742,
337,
29889,
29924,
8647,
6227,
8895,
876,
13,
13,
1678,
822,
1243,
29918,
1645,
29898,
1311,
1125,
13,
4706,
4974,
4597,
735,
29898,
1311,
29892,
1583,
29889,
4282,
877,
1645,
5477,
13,
462,
1678,
337,
29889,
12198,
29898,
29878,
29915,
3823,
29879,
29930,
12199,
515,
2115,
29991,
29938,
742,
337,
29889,
29924,
8647,
6227,
8895,
876,
13,
13,
1678,
822,
1243,
29918,
1645,
29918,
1990,
1761,
29898,
1311,
1125,
13,
4706,
4974,
4597,
735,
29898,
1311,
29892,
1583,
29889,
4282,
877,
1645,
29899,
1990,
1761,
5477,
13,
462,
1678,
337,
29889,
12198,
29898,
29878,
29915,
3823,
29879,
29930,
12199,
515,
2115,
29991,
29938,
742,
337,
29889,
29924,
8647,
6227,
8895,
876,
13,
13,
1678,
822,
1243,
29918,
4691,
29898,
1311,
1125,
13,
4706,
4974,
4597,
735,
29898,
1311,
29892,
1583,
29889,
4282,
877,
4691,
5477,
13,
462,
1678,
337,
29889,
12198,
29898,
29878,
29915,
3823,
29879,
29930,
12199,
515,
3017,
29991,
29938,
742,
337,
29889,
29924,
8647,
6227,
8895,
876,
13,
2
] |
mask_rcnn_2go/code/model_utils.py | dreiss/maskrcnn-nnapi | 1 | 164389 | from __future__ import absolute_import, division, print_function, unicode_literals
import os
import subprocess
from caffe2.proto import caffe2_pb2
from caffe2.python import core, workspace
def create_blobs_if_not_existed(blob_names):
existd_names = set(workspace.Blobs())
for xx in blob_names:
if xx not in existd_names:
workspace.CreateBlob(str(xx))
def load_model_pb(net_file, init_file):
subprocess.check_call(["adb", "push", net_file, "/data/local/tmp/predict_net.pb"])
subprocess.check_call(["adb", "push", init_file, "/data/local/tmp/init_net.pb"])
net = caffe2_pb2.NetDef()
if net_file is not None:
net.ParseFromString(open(net_file, "rb").read())
return (net, None)
| [
1,
515,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
29892,
8542,
29892,
1596,
29918,
2220,
29892,
29104,
29918,
20889,
1338,
13,
13,
5215,
2897,
13,
5215,
1014,
5014,
13,
3166,
274,
3470,
29872,
29906,
29889,
17529,
1053,
274,
3470,
29872,
29906,
29918,
24381,
29906,
13,
3166,
274,
3470,
29872,
29906,
29889,
4691,
1053,
7136,
29892,
664,
3493,
13,
13,
13,
1753,
1653,
29918,
10054,
29879,
29918,
361,
29918,
1333,
29918,
735,
12652,
29898,
10054,
29918,
7039,
1125,
13,
1678,
1863,
29881,
29918,
7039,
353,
731,
29898,
1287,
3493,
29889,
29933,
2127,
29879,
3101,
13,
1678,
363,
15473,
297,
23755,
29918,
7039,
29901,
13,
4706,
565,
15473,
451,
297,
1863,
29881,
29918,
7039,
29901,
13,
9651,
664,
3493,
29889,
4391,
29933,
2127,
29898,
710,
29898,
4419,
876,
13,
13,
13,
1753,
2254,
29918,
4299,
29918,
24381,
29898,
1212,
29918,
1445,
29892,
2069,
29918,
1445,
1125,
13,
1678,
1014,
5014,
29889,
3198,
29918,
4804,
29898,
3366,
328,
29890,
613,
376,
5910,
613,
7787,
29918,
1445,
29892,
5591,
1272,
29914,
2997,
29914,
7050,
29914,
27711,
29918,
1212,
29889,
24381,
20068,
13,
1678,
1014,
5014,
29889,
3198,
29918,
4804,
29898,
3366,
328,
29890,
613,
376,
5910,
613,
2069,
29918,
1445,
29892,
5591,
1272,
29914,
2997,
29914,
7050,
29914,
2344,
29918,
1212,
29889,
24381,
20068,
13,
13,
1678,
7787,
353,
274,
3470,
29872,
29906,
29918,
24381,
29906,
29889,
6779,
3206,
580,
13,
1678,
565,
7787,
29918,
1445,
338,
451,
6213,
29901,
13,
4706,
7787,
29889,
12914,
4591,
1231,
29898,
3150,
29898,
1212,
29918,
1445,
29892,
376,
6050,
2564,
949,
3101,
13,
1678,
736,
313,
1212,
29892,
6213,
29897,
13,
2
] |
Digit_Recognizer/digit_recognizer.py | williamyao66/Projects | 0 | 175285 | <reponame>williamyao66/Projects
import pandas as pd
import os
from tensorflow.keras.models import load_model
tr = pd.read_csv('./Digit-Recognizer/train.csv')
te = pd.read_csv('./Digit-Recognizer/test.csv')
x_te = te.values.copy().astype('float64')
final_model = load_model(os.getcwd() + '/model/')
predictions = final_model.predict(x_te)
test_predictions = np.argmax(predictions, axis=1) | [
1,
529,
276,
1112,
420,
29958,
14043,
2829,
3761,
29877,
29953,
29953,
29914,
25119,
13,
5215,
11701,
408,
10518,
29871,
13,
5215,
2897,
29871,
13,
13,
3166,
26110,
29889,
3946,
294,
29889,
9794,
1053,
2254,
29918,
4299,
13,
13,
13,
509,
353,
10518,
29889,
949,
29918,
7638,
877,
6904,
14991,
277,
29899,
27475,
29914,
14968,
29889,
7638,
1495,
13,
371,
353,
10518,
29889,
949,
29918,
7638,
877,
6904,
14991,
277,
29899,
27475,
29914,
1688,
29889,
7638,
1495,
13,
29916,
29918,
371,
353,
734,
29889,
5975,
29889,
8552,
2141,
579,
668,
877,
7411,
29953,
29946,
1495,
13,
13,
8394,
29918,
4299,
353,
2254,
29918,
4299,
29898,
359,
29889,
657,
29883,
9970,
580,
718,
8207,
4299,
29914,
1495,
13,
27711,
1080,
353,
2186,
29918,
4299,
29889,
27711,
29898,
29916,
29918,
371,
29897,
13,
1688,
29918,
27711,
1080,
353,
7442,
29889,
1191,
3317,
29898,
27711,
1080,
29892,
9685,
29922,
29896,
29897,
2
] |
freeCodeCamp/01-scientific-computing-with-python/src/12-objects_inheritance.py | aysedemirel/python-journey | 1 | 130624 | <gh_stars>1-10
class PartyAnimal:
x = 0
name = ""
def __init__(self, nameCons):
self.name = nameCons
print("name: ", self.name)
def party(self):
self.x = self.x + 1
print(self.name," - party count: ", self.x)
class FootballFan(PartyAnimal):
points = 0
def touchdown(self):
self.points = self.points + 7
self.party()
print(self.name, "points", self.points)
s = FootballFan("Sally")
s.party()
j = FootballFan("Jim")
j.party()
j.touchdown() | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
1990,
9173,
2744,
3039,
29901,
13,
1678,
921,
353,
29871,
29900,
13,
1678,
1024,
353,
5124,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1024,
13696,
1125,
13,
4706,
1583,
29889,
978,
353,
1024,
13696,
13,
4706,
1596,
703,
978,
29901,
9162,
1583,
29889,
978,
29897,
13,
268,
13,
1678,
822,
6263,
29898,
1311,
1125,
13,
4706,
1583,
29889,
29916,
353,
1583,
29889,
29916,
718,
29871,
29896,
13,
4706,
1596,
29898,
1311,
29889,
978,
1699,
448,
6263,
2302,
29901,
9162,
1583,
29889,
29916,
29897,
13,
13,
13,
1990,
8914,
29943,
273,
29898,
7439,
29891,
2744,
3039,
1125,
13,
1678,
3291,
353,
29871,
29900,
13,
1678,
822,
6023,
3204,
29898,
1311,
1125,
13,
4706,
1583,
29889,
9748,
353,
1583,
29889,
9748,
718,
29871,
29955,
13,
4706,
1583,
29889,
22633,
580,
13,
4706,
1596,
29898,
1311,
29889,
978,
29892,
376,
9748,
613,
1583,
29889,
9748,
29897,
13,
308,
13,
13,
29879,
353,
8914,
29943,
273,
703,
29903,
635,
1159,
13,
29879,
29889,
22633,
580,
13,
13,
29926,
353,
8914,
29943,
273,
703,
29967,
326,
1159,
13,
29926,
29889,
22633,
580,
13,
29926,
29889,
16747,
3204,
580,
2
] |
python/reachy_sdk_api/kinematics_pb2.py | marjoriePaillet/reachy-sdk-api | 1 | 184949 | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: kinematics.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
import joint_pb2 as joint__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='kinematics.proto',
package='reachy.sdk.kinematics',
syntax='proto3',
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x10kinematics.proto\x12\x15reachy.sdk.kinematics\x1a\x0bjoint.proto\"J\n\rJointPosition\x12&\n\x03ids\x18\x01 \x03(\x0b\x32\x19.reachy.sdk.joint.JointId\x12\x11\n\tpositions\x18\x02 \x03(\x01\"\x19\n\tMatrix4x4\x12\x0c\n\x04\x64\x61ta\x18\x01 \x03(\x01\"8\n\nQuaternion\x12\t\n\x01w\x18\x01 \x01(\x01\x12\t\n\x01x\x18\x02 \x01(\x01\x12\t\n\x01y\x18\x03 \x01(\x01\x12\t\n\x01z\x18\x04 \x01(\x01\x62\x06proto3'
,
dependencies=[joint__pb2.DESCRIPTOR,])
_JOINTPOSITION = _descriptor.Descriptor(
name='JointPosition',
full_name='reachy.sdk.kinematics.JointPosition',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='ids', full_name='reachy.sdk.kinematics.JointPosition.ids', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='positions', full_name='reachy.sdk.kinematics.JointPosition.positions', index=1,
number=2, type=1, cpp_type=5, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=56,
serialized_end=130,
)
_MATRIX4X4 = _descriptor.Descriptor(
name='Matrix4x4',
full_name='reachy.sdk.kinematics.Matrix4x4',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='data', full_name='reachy.sdk.kinematics.Matrix4x4.data', index=0,
number=1, type=1, cpp_type=5, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=132,
serialized_end=157,
)
_QUATERNION = _descriptor.Descriptor(
name='Quaternion',
full_name='reachy.sdk.kinematics.Quaternion',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='w', full_name='reachy.sdk.kinematics.Quaternion.w', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='x', full_name='reachy.sdk.kinematics.Quaternion.x', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='y', full_name='reachy.sdk.kinematics.Quaternion.y', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='z', full_name='reachy.sdk.kinematics.Quaternion.z', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=159,
serialized_end=215,
)
_JOINTPOSITION.fields_by_name['ids'].message_type = joint__pb2._JOINTID
DESCRIPTOR.message_types_by_name['JointPosition'] = _JOINTPOSITION
DESCRIPTOR.message_types_by_name['Matrix4x4'] = _MATRIX4X4
DESCRIPTOR.message_types_by_name['Quaternion'] = _QUATERNION
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
JointPosition = _reflection.GeneratedProtocolMessageType('JointPosition', (_message.Message,), {
'DESCRIPTOR' : _JOINTPOSITION,
'__module__' : 'kinematics_pb2'
# @@protoc_insertion_point(class_scope:reachy.sdk.kinematics.JointPosition)
})
_sym_db.RegisterMessage(JointPosition)
Matrix4x4 = _reflection.GeneratedProtocolMessageType('Matrix4x4', (_message.Message,), {
'DESCRIPTOR' : _MATRIX4X4,
'__module__' : 'kinematics_pb2'
# @@protoc_insertion_point(class_scope:reachy.sdk.kinematics.Matrix4x4)
})
_sym_db.RegisterMessage(Matrix4x4)
Quaternion = _reflection.GeneratedProtocolMessageType('Quaternion', (_message.Message,), {
'DESCRIPTOR' : _QUATERNION,
'__module__' : 'kinematics_pb2'
# @@protoc_insertion_point(class_scope:reachy.sdk.kinematics.Quaternion)
})
_sym_db.RegisterMessage(Quaternion)
# @@protoc_insertion_point(module_scope)
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
3251,
630,
491,
278,
9608,
6835,
6516,
29889,
29871,
11662,
6058,
11488,
29991,
13,
29937,
2752,
29901,
19015,
4579,
1199,
29889,
17529,
13,
15945,
29908,
24565,
9608,
6835,
775,
1213,
15945,
13,
3166,
5386,
29889,
17529,
9721,
1053,
553,
11709,
408,
903,
2783,
11709,
13,
3166,
5386,
29889,
17529,
9721,
1053,
2643,
408,
903,
4906,
13,
3166,
5386,
29889,
17529,
9721,
1053,
17842,
408,
903,
999,
1464,
13,
3166,
5386,
29889,
17529,
9721,
1053,
5829,
29918,
9803,
408,
903,
18098,
29918,
9803,
13,
29937,
732,
29992,
17529,
29883,
29918,
7851,
291,
29918,
3149,
29898,
326,
4011,
29897,
13,
13,
29918,
11967,
29918,
2585,
353,
903,
18098,
29918,
9803,
29889,
4592,
580,
13,
13,
13,
5215,
14002,
29918,
24381,
29906,
408,
14002,
1649,
24381,
29906,
13,
13,
13,
2287,
7187,
24290,
1955,
353,
903,
2783,
11709,
29889,
2283,
19124,
29898,
13,
29871,
1024,
2433,
9089,
4579,
1199,
29889,
17529,
742,
13,
29871,
3577,
2433,
276,
496,
29891,
29889,
15348,
29889,
9089,
4579,
1199,
742,
13,
29871,
5877,
2433,
17529,
29941,
742,
13,
29871,
7797,
1891,
29918,
6768,
29922,
8516,
29892,
13,
29871,
1653,
29918,
1989,
29922,
29918,
2783,
11709,
3032,
7564,
29918,
3258,
29918,
1989,
29892,
13,
29871,
7797,
1891,
29918,
24381,
29922,
29890,
12764,
29876,
29905,
29916,
29896,
29900,
9089,
4579,
1199,
29889,
17529,
29905,
29916,
29896,
29906,
29905,
29916,
29896,
29945,
276,
496,
29891,
29889,
15348,
29889,
9089,
4579,
1199,
29905,
29916,
29896,
29874,
29905,
29916,
29900,
29890,
12090,
29889,
17529,
5931,
29967,
29905,
29876,
29905,
29878,
29967,
2461,
8003,
29905,
29916,
29896,
29906,
11035,
29876,
29905,
29916,
29900,
29941,
4841,
29905,
29916,
29896,
29947,
29905,
29916,
29900,
29896,
320,
29916,
29900,
29941,
1194,
29916,
29900,
29890,
29905,
29916,
29941,
29906,
29905,
29916,
29896,
29929,
29889,
276,
496,
29891,
29889,
15348,
29889,
12090,
29889,
29967,
2461,
1204,
29905,
29916,
29896,
29906,
29905,
29916,
29896,
29896,
29905,
29876,
29905,
29873,
1066,
2187,
29905,
29916,
29896,
29947,
29905,
29916,
29900,
29906,
320,
29916,
29900,
29941,
1194,
29916,
29900,
29896,
5931,
29905,
29916,
29896,
29929,
29905,
29876,
29905,
29873,
14609,
29946,
29916,
29946,
29905,
29916,
29896,
29906,
29905,
29916,
29900,
29883,
29905,
29876,
29905,
29916,
29900,
29946,
29905,
29916,
29953,
29946,
29905,
29916,
29953,
29896,
941,
29905,
29916,
29896,
29947,
29905,
29916,
29900,
29896,
320,
29916,
29900,
29941,
1194,
29916,
29900,
29896,
5931,
29947,
29905,
29876,
29905,
29876,
2182,
25744,
291,
29905,
29916,
29896,
29906,
29905,
29873,
29905,
29876,
29905,
29916,
29900,
29896,
29893,
29905,
29916,
29896,
29947,
29905,
29916,
29900,
29896,
320,
29916,
29900,
29896,
1194,
29916,
29900,
29896,
29905,
29916,
29896,
29906,
29905,
29873,
29905,
29876,
29905,
29916,
29900,
29896,
29916,
29905,
29916,
29896,
29947,
29905,
29916,
29900,
29906,
320,
29916,
29900,
29896,
1194,
29916,
29900,
29896,
29905,
29916,
29896,
29906,
29905,
29873,
29905,
29876,
29905,
29916,
29900,
29896,
29891,
29905,
29916,
29896,
29947,
29905,
29916,
29900,
29941,
320,
29916,
29900,
29896,
1194,
29916,
29900,
29896,
29905,
29916,
29896,
29906,
29905,
29873,
29905,
29876,
29905,
29916,
29900,
29896,
29920,
29905,
29916,
29896,
29947,
29905,
29916,
29900,
29946,
320,
29916,
29900,
29896,
1194,
29916,
29900,
29896,
29905,
29916,
29953,
29906,
29905,
29916,
29900,
29953,
17529,
29941,
29915,
13,
29871,
1919,
13,
29871,
9962,
11759,
12090,
1649,
24381,
29906,
29889,
2287,
7187,
24290,
1955,
29892,
2314,
13,
13,
13,
13,
13,
29918,
29967,
6992,
3557,
3267,
22122,
353,
903,
2783,
11709,
29889,
19124,
29898,
13,
29871,
1024,
2433,
29967,
2461,
8003,
742,
13,
29871,
2989,
29918,
978,
2433,
276,
496,
29891,
29889,
15348,
29889,
9089,
4579,
1199,
29889,
29967,
2461,
8003,
742,
13,
29871,
10422,
29922,
8516,
29892,
13,
29871,
934,
29922,
2287,
7187,
24290,
1955,
29892,
13,
29871,
6943,
29918,
1853,
29922,
8516,
29892,
13,
29871,
1653,
29918,
1989,
29922,
29918,
2783,
11709,
3032,
7564,
29918,
3258,
29918,
1989,
29892,
13,
29871,
4235,
11759,
13,
1678,
903,
2783,
11709,
29889,
3073,
19124,
29898,
13,
418,
1024,
2433,
4841,
742,
2989,
29918,
978,
2433,
276,
496,
29891,
29889,
15348,
29889,
9089,
4579,
1199,
29889,
29967,
2461,
8003,
29889,
4841,
742,
2380,
29922,
29900,
29892,
13,
418,
1353,
29922,
29896,
29892,
1134,
29922,
29896,
29896,
29892,
274,
407,
29918,
1853,
29922,
29896,
29900,
29892,
3858,
29922,
29941,
29892,
13,
418,
756,
29918,
4381,
29918,
1767,
29922,
8824,
29892,
2322,
29918,
1767,
11759,
1402,
13,
418,
2643,
29918,
1853,
29922,
8516,
29892,
14115,
29918,
1853,
29922,
8516,
29892,
6943,
29918,
1853,
29922,
8516,
29892,
13,
418,
338,
29918,
17588,
29922,
8824,
29892,
6081,
29918,
6078,
29922,
8516,
29892,
13,
418,
7797,
1891,
29918,
6768,
29922,
8516,
29892,
934,
29922,
2287,
7187,
24290,
1955,
29892,
29871,
1653,
29918,
1989,
29922,
29918,
2783,
11709,
3032,
7564,
29918,
3258,
29918,
1989,
511,
13,
1678,
903,
2783,
11709,
29889,
3073,
19124,
29898,
13,
418,
1024,
2433,
1066,
2187,
742,
2989,
29918,
978,
2433,
276,
496,
29891,
29889,
15348,
29889,
9089,
4579,
1199,
29889,
29967,
2461,
8003,
29889,
1066,
2187,
742,
2380,
29922,
29896,
29892,
13,
418,
1353,
29922,
29906,
29892,
1134,
29922,
29896,
29892,
274,
407,
29918,
1853,
29922,
29945,
29892,
3858,
29922,
29941,
29892,
13,
418,
756,
29918,
4381,
29918,
1767,
29922,
8824,
29892,
2322,
29918,
1767,
11759,
1402,
13,
418,
2643,
29918,
1853,
29922,
8516,
29892,
14115,
29918,
1853,
29922,
8516,
29892,
6943,
29918,
1853,
29922,
8516,
29892,
13,
418,
338,
29918,
17588,
29922,
8824,
29892,
6081,
29918,
6078,
29922,
8516,
29892,
13,
418,
7797,
1891,
29918,
6768,
29922,
8516,
29892,
934,
29922,
2287,
7187,
24290,
1955,
29892,
29871,
1653,
29918,
1989,
29922,
29918,
2783,
11709,
3032,
7564,
29918,
3258,
29918,
1989,
511,
13,
29871,
21251,
13,
29871,
17752,
11759,
13,
29871,
21251,
13,
29871,
9322,
29918,
8768,
11759,
1402,
13,
29871,
14115,
29918,
8768,
11759,
13,
29871,
21251,
13,
29871,
7797,
1891,
29918,
6768,
29922,
8516,
29892,
13,
29871,
338,
29918,
21843,
519,
29922,
8824,
29892,
13,
29871,
5877,
2433,
17529,
29941,
742,
13,
29871,
6081,
29918,
29878,
6916,
11759,
1402,
13,
29871,
697,
974,
29879,
11759,
13,
29871,
21251,
13,
29871,
7797,
1891,
29918,
2962,
29922,
29945,
29953,
29892,
13,
29871,
7797,
1891,
29918,
355,
29922,
29896,
29941,
29900,
29892,
13,
29897,
13,
13,
13,
29918,
29924,
1299,
3960,
29990,
29946,
29990,
29946,
353,
903,
2783,
11709,
29889,
19124,
29898,
13,
29871,
1024,
2433,
14609,
29946,
29916,
29946,
742,
13,
29871,
2989,
29918,
978,
2433,
276,
496,
29891,
29889,
15348,
29889,
9089,
4579,
1199,
29889,
14609,
29946,
29916,
29946,
742,
13,
29871,
10422,
29922,
8516,
29892,
13,
29871,
934,
29922,
2287,
7187,
24290,
1955,
29892,
13,
29871,
6943,
29918,
1853,
29922,
8516,
29892,
13,
29871,
1653,
29918,
1989,
29922,
29918,
2783,
11709,
3032,
7564,
29918,
3258,
29918,
1989,
29892,
13,
29871,
4235,
11759,
13,
1678,
903,
2783,
11709,
29889,
3073,
19124,
29898,
13,
418,
1024,
2433,
1272,
742,
2989,
29918,
978,
2433,
276,
496,
29891,
29889,
15348,
29889,
9089,
4579,
1199,
29889,
14609,
29946,
29916,
29946,
29889,
1272,
742,
2380,
29922,
29900,
29892,
13,
418,
1353,
29922,
29896,
29892,
1134,
29922,
29896,
29892,
274,
407,
29918,
1853,
29922,
29945,
29892,
3858,
29922,
29941,
29892,
13,
418,
756,
29918,
4381,
29918,
1767,
29922,
8824,
29892,
2322,
29918,
1767,
11759,
1402,
13,
418,
2643,
29918,
1853,
29922,
8516,
29892,
14115,
29918,
1853,
29922,
8516,
29892,
6943,
29918,
1853,
29922,
8516,
29892,
13,
418,
338,
29918,
17588,
29922,
8824,
29892,
6081,
29918,
6078,
29922,
8516,
29892,
13,
418,
7797,
1891,
29918,
6768,
29922,
8516,
29892,
934,
29922,
2287,
7187,
24290,
1955,
29892,
29871,
1653,
29918,
1989,
29922,
29918,
2783,
11709,
3032,
7564,
29918,
3258,
29918,
1989,
511,
13,
29871,
21251,
13,
29871,
17752,
11759,
13,
29871,
21251,
13,
29871,
9322,
29918,
8768,
11759,
1402,
13,
29871,
14115,
29918,
8768,
11759,
13,
29871,
21251,
13,
29871,
7797,
1891,
29918,
6768,
29922,
8516,
29892,
13,
29871,
338,
29918,
21843,
519,
29922,
8824,
29892,
13,
29871,
5877,
2433,
17529,
29941,
742,
13,
29871,
6081,
29918,
29878,
6916,
11759,
1402,
13,
29871,
697,
974,
29879,
11759,
13,
29871,
21251,
13,
29871,
7797,
1891,
29918,
2962,
29922,
29896,
29941,
29906,
29892,
13,
29871,
7797,
1891,
29918,
355,
29922,
29896,
29945,
29955,
29892,
13,
29897,
13,
13,
13,
29918,
13356,
1299,
1001,
29940,
2725,
353,
903,
2783,
11709,
29889,
19124,
29898,
13,
29871,
1024,
2433,
2182,
25744,
291,
742,
13,
29871,
2989,
29918,
978,
2433,
276,
496,
29891,
29889,
15348,
29889,
9089,
4579,
1199,
29889,
2182,
25744,
291,
742,
13,
29871,
10422,
29922,
8516,
29892,
13,
29871,
934,
29922,
2287,
7187,
24290,
1955,
29892,
13,
29871,
6943,
29918,
1853,
29922,
8516,
29892,
13,
29871,
1653,
29918,
1989,
29922,
29918,
2783,
11709,
3032,
7564,
29918,
3258,
29918,
1989,
29892,
13,
29871,
4235,
11759,
13,
1678,
903,
2783,
11709,
29889,
3073,
19124,
29898,
13,
418,
1024,
2433,
29893,
742,
2989,
29918,
978,
2433,
276,
496,
29891,
29889,
15348,
29889,
9089,
4579,
1199,
29889,
2182,
25744,
291,
29889,
29893,
742,
2380,
29922,
29900,
29892,
13,
418,
1353,
29922,
29896,
29892,
1134,
29922,
29896,
29892,
274,
407,
29918,
1853,
29922,
29945,
29892,
3858,
29922,
29896,
29892,
13,
418,
756,
29918,
4381,
29918,
1767,
29922,
8824,
29892,
2322,
29918,
1767,
29922,
7411,
29898,
29900,
511,
13,
418,
2643,
29918,
1853,
29922,
8516,
29892,
14115,
29918,
1853,
29922,
8516,
29892,
6943,
29918,
1853,
29922,
8516,
29892,
13,
418,
338,
29918,
17588,
29922,
8824,
29892,
6081,
29918,
6078,
29922,
8516,
29892,
13,
418,
7797,
1891,
29918,
6768,
29922,
8516,
29892,
934,
29922,
2287,
7187,
24290,
1955,
29892,
29871,
1653,
29918,
1989,
29922,
29918,
2783,
11709,
3032,
7564,
29918,
3258,
29918,
1989,
511,
13,
1678,
903,
2783,
11709,
29889,
3073,
19124,
29898,
13,
418,
1024,
2433,
29916,
742,
2989,
29918,
978,
2433,
276,
496,
29891,
29889,
15348,
29889,
9089,
4579,
1199,
29889,
2182,
25744,
291,
29889,
29916,
742,
2380,
29922,
29896,
29892,
13,
418,
1353,
29922,
29906,
29892,
1134,
29922,
29896,
29892,
274,
407,
29918,
1853,
29922,
29945,
29892,
3858,
29922,
29896,
29892,
13,
418,
756,
29918,
4381,
29918,
1767,
29922,
8824,
29892,
2322,
29918,
1767,
29922,
7411,
29898,
29900,
511,
13,
418,
2643,
29918,
1853,
29922,
8516,
29892,
14115,
29918,
1853,
29922,
8516,
29892,
6943,
29918,
1853,
29922,
8516,
29892,
13,
418,
338,
29918,
17588,
29922,
8824,
29892,
6081,
29918,
6078,
29922,
8516,
29892,
13,
418,
7797,
1891,
29918,
6768,
29922,
8516,
29892,
934,
29922,
2287,
7187,
24290,
1955,
29892,
29871,
1653,
29918,
1989,
29922,
29918,
2783,
11709,
3032,
7564,
29918,
3258,
29918,
1989,
511,
13,
1678,
903,
2783,
11709,
29889,
3073,
19124,
29898,
13,
418,
1024,
2433,
29891,
742,
2989,
29918,
978,
2433,
276,
496,
29891,
29889,
15348,
29889,
9089,
4579,
1199,
29889,
2182,
25744,
291,
29889,
29891,
742,
2380,
29922,
29906,
29892,
13,
418,
1353,
29922,
29941,
29892,
1134,
29922,
29896,
29892,
274,
407,
29918,
1853,
29922,
29945,
29892,
3858,
29922,
29896,
29892,
13,
418,
756,
29918,
4381,
29918,
1767,
29922,
8824,
29892,
2322,
29918,
1767,
29922,
7411,
29898,
29900,
511,
13,
418,
2643,
29918,
1853,
29922,
8516,
29892,
14115,
29918,
1853,
29922,
8516,
29892,
6943,
29918,
1853,
29922,
8516,
29892,
13,
418,
338,
29918,
17588,
29922,
8824,
29892,
6081,
29918,
6078,
29922,
8516,
29892,
13,
418,
7797,
1891,
29918,
6768,
29922,
8516,
29892,
934,
29922,
2287,
7187,
24290,
1955,
29892,
29871,
1653,
29918,
1989,
29922,
29918,
2783,
11709,
3032,
7564,
29918,
3258,
29918,
1989,
511,
13,
1678,
903,
2783,
11709,
29889,
3073,
19124,
29898,
13,
418,
1024,
2433,
29920,
742,
2989,
29918,
978,
2433,
276,
496,
29891,
29889,
15348,
29889,
9089,
4579,
1199,
29889,
2182,
25744,
291,
29889,
29920,
742,
2380,
29922,
29941,
29892,
13,
418,
1353,
29922,
29946,
29892,
1134,
29922,
29896,
29892,
274,
407,
29918,
1853,
29922,
29945,
29892,
3858,
29922,
29896,
29892,
13,
418,
756,
29918,
4381,
29918,
1767,
29922,
8824,
29892,
2322,
29918,
1767,
29922,
7411,
29898,
29900,
511,
13,
418,
2643,
29918,
1853,
29922,
8516,
29892,
14115,
29918,
1853,
29922,
8516,
29892,
6943,
29918,
1853,
29922,
8516,
29892,
13,
418,
338,
29918,
17588,
29922,
8824,
29892,
6081,
29918,
6078,
29922,
8516,
29892,
13,
418,
7797,
1891,
29918,
6768,
29922,
8516,
29892,
934,
29922,
2287,
7187,
24290,
1955,
29892,
29871,
1653,
29918,
1989,
29922,
29918,
2783,
11709,
3032,
7564,
29918,
3258,
29918,
1989,
511,
13,
29871,
21251,
13,
29871,
17752,
11759,
13,
29871,
21251,
13,
29871,
9322,
29918,
8768,
11759,
1402,
13,
29871,
14115,
29918,
8768,
11759,
13,
29871,
21251,
13,
29871,
7797,
1891,
29918,
6768,
29922,
8516,
29892,
13,
29871,
338,
29918,
21843,
519,
29922,
8824,
29892,
13,
29871,
5877,
2433,
17529,
29941,
742,
13,
29871,
6081,
29918,
29878,
6916,
11759,
1402,
13,
29871,
697,
974,
29879,
11759,
13,
29871,
21251,
13,
29871,
7797,
1891,
29918,
2962,
29922,
29896,
29945,
29929,
29892,
13,
29871,
7797,
1891,
29918,
355,
29922,
29906,
29896,
29945,
29892,
13,
29897,
13,
13,
29918,
29967,
6992,
3557,
3267,
22122,
29889,
9621,
29918,
1609,
29918,
978,
1839,
4841,
13359,
4906,
29918,
1853,
353,
14002,
1649,
24381,
29906,
3032,
29967,
6992,
29911,
1367,
13,
2287,
7187,
24290,
1955,
29889,
4906,
29918,
8768,
29918,
1609,
29918,
978,
1839,
29967,
2461,
8003,
2033,
353,
903,
29967,
6992,
3557,
3267,
22122,
13,
2287,
7187,
24290,
1955,
29889,
4906,
29918,
8768,
29918,
1609,
29918,
978,
1839,
14609,
29946,
29916,
29946,
2033,
353,
903,
29924,
1299,
3960,
29990,
29946,
29990,
29946,
13,
2287,
7187,
24290,
1955,
29889,
4906,
29918,
8768,
29918,
1609,
29918,
978,
1839,
2182,
25744,
291,
2033,
353,
903,
13356,
1299,
1001,
29940,
2725,
13,
29918,
11967,
29918,
2585,
29889,
15213,
2283,
19124,
29898,
2287,
7187,
24290,
1955,
29897,
13,
13,
29967,
2461,
8003,
353,
903,
999,
1464,
29889,
24565,
17830,
3728,
1542,
877,
29967,
2461,
8003,
742,
9423,
4906,
29889,
3728,
29892,
511,
426,
13,
29871,
525,
2287,
7187,
24290,
1955,
29915,
584,
903,
29967,
6992,
3557,
3267,
22122,
29892,
13,
29871,
525,
1649,
5453,
1649,
29915,
584,
525,
9089,
4579,
1199,
29918,
24381,
29906,
29915,
13,
29871,
396,
732,
29992,
17529,
29883,
29918,
7851,
291,
29918,
3149,
29898,
1990,
29918,
6078,
29901,
276,
496,
29891,
29889,
15348,
29889,
9089,
4579,
1199,
29889,
29967,
2461,
8003,
29897,
13,
29871,
5615,
13,
29918,
11967,
29918,
2585,
29889,
15213,
3728,
29898,
29967,
2461,
8003,
29897,
13,
13,
14609,
29946,
29916,
29946,
353,
903,
999,
1464,
29889,
24565,
17830,
3728,
1542,
877,
14609,
29946,
29916,
29946,
742,
9423,
4906,
29889,
3728,
29892,
511,
426,
13,
29871,
525,
2287,
7187,
24290,
1955,
29915,
584,
903,
29924,
1299,
3960,
29990,
29946,
29990,
29946,
29892,
13,
29871,
525,
1649,
5453,
1649,
29915,
584,
525,
9089,
4579,
1199,
29918,
24381,
29906,
29915,
13,
29871,
396,
732,
29992,
17529,
29883,
29918,
7851,
291,
29918,
3149,
29898,
1990,
29918,
6078,
29901,
276,
496,
29891,
29889,
15348,
29889,
9089,
4579,
1199,
29889,
14609,
29946,
29916,
29946,
29897,
13,
29871,
5615,
13,
29918,
11967,
29918,
2585,
29889,
15213,
3728,
29898,
14609,
29946,
29916,
29946,
29897,
13,
13,
2182,
25744,
291,
353,
903,
999,
1464,
29889,
24565,
17830,
3728,
1542,
877,
2182,
25744,
291,
742,
9423,
4906,
29889,
3728,
29892,
511,
426,
13,
29871,
525,
2287,
7187,
24290,
1955,
29915,
584,
903,
13356,
1299,
1001,
29940,
2725,
29892,
13,
29871,
525,
1649,
5453,
1649,
29915,
584,
525,
9089,
4579,
1199,
29918,
24381,
29906,
29915,
13,
29871,
396,
732,
29992,
17529,
29883,
29918,
7851,
291,
29918,
3149,
29898,
1990,
29918,
6078,
29901,
276,
496,
29891,
29889,
15348,
29889,
9089,
4579,
1199,
29889,
2182,
25744,
291,
29897,
13,
29871,
5615,
13,
29918,
11967,
29918,
2585,
29889,
15213,
3728,
29898,
2182,
25744,
291,
29897,
13,
13,
13,
29937,
732,
29992,
17529,
29883,
29918,
7851,
291,
29918,
3149,
29898,
5453,
29918,
6078,
29897,
13,
2
] |
Statistics/variance_of_sample_proportion.py | mykolatyniv/database_NJIT601 | 0 | 198459 | <reponame>mykolatyniv/database_NJIT601
def variance_of_sample_proportion(a,b,c,d,e,f,g,h,j,k):
try:
a = int(a)
b = int(b)
c = int(c)
d = int(d)
e = int(e)
f = int(f)
g = int(g)
h = int(h)
j = int(j)
k = int(k)
sample = [a,b,c,d,e,f,g,h,j,k]
# Count how many people are over the age 80
i = 0
occurrence = 0
while i < len(sample):
if (sample[i])> 80:
occurrence = occurrence + 1
else:
i = i + 1
i = i + 1
# n is population size
n = len(sample)
# p is probability
p = float(occurrence/n)
var_samp_propor = float((p * (1-p))/n)
print("variance_of_sample_proportion:",var_samp_propor )
return var_samp_propor
except ZeroDivisionError:
print("Error: Dividing by Zero is not valid!!")
except ValueError:
print ("Error: Only Numeric Values are valid!!") | [
1,
529,
276,
1112,
420,
29958,
1357,
10028,
271,
948,
440,
29914,
9803,
29918,
29940,
29967,
1806,
29953,
29900,
29896,
13,
13,
1753,
20162,
29918,
974,
29918,
11249,
29918,
771,
637,
291,
29898,
29874,
29892,
29890,
29892,
29883,
29892,
29881,
29892,
29872,
29892,
29888,
29892,
29887,
29892,
29882,
29892,
29926,
29892,
29895,
1125,
13,
1678,
1018,
29901,
13,
4706,
263,
353,
938,
29898,
29874,
29897,
13,
4706,
289,
353,
938,
29898,
29890,
29897,
13,
4706,
274,
353,
938,
29898,
29883,
29897,
13,
4706,
270,
353,
938,
29898,
29881,
29897,
13,
4706,
321,
353,
938,
29898,
29872,
29897,
13,
4706,
285,
353,
938,
29898,
29888,
29897,
13,
4706,
330,
353,
938,
29898,
29887,
29897,
13,
4706,
298,
353,
938,
29898,
29882,
29897,
13,
4706,
432,
353,
938,
29898,
29926,
29897,
13,
4706,
413,
353,
938,
29898,
29895,
29897,
13,
4706,
4559,
353,
518,
29874,
29892,
29890,
29892,
29883,
29892,
29881,
29892,
29872,
29892,
29888,
29892,
29887,
29892,
29882,
29892,
29926,
29892,
29895,
29962,
13,
4706,
396,
3917,
920,
1784,
2305,
526,
975,
278,
5046,
29871,
29947,
29900,
13,
4706,
474,
353,
29871,
29900,
13,
4706,
27170,
353,
29871,
29900,
13,
4706,
1550,
474,
529,
7431,
29898,
11249,
1125,
13,
9651,
565,
313,
11249,
29961,
29875,
2314,
29958,
29871,
29947,
29900,
29901,
13,
18884,
27170,
353,
27170,
718,
29871,
29896,
13,
9651,
1683,
29901,
13,
18884,
474,
353,
474,
718,
29871,
29896,
13,
9651,
474,
353,
474,
718,
29871,
29896,
13,
4706,
396,
302,
338,
4665,
2159,
13,
4706,
302,
353,
7431,
29898,
11249,
29897,
13,
4706,
396,
282,
338,
6976,
13,
4706,
282,
353,
5785,
29898,
15693,
26841,
29914,
29876,
29897,
13,
4706,
722,
29918,
29879,
1160,
29918,
771,
1971,
353,
5785,
3552,
29886,
334,
313,
29896,
29899,
29886,
876,
29914,
29876,
29897,
13,
4706,
1596,
703,
1707,
8837,
29918,
974,
29918,
11249,
29918,
771,
637,
291,
29901,
613,
1707,
29918,
29879,
1160,
29918,
771,
1971,
1723,
13,
4706,
736,
722,
29918,
29879,
1160,
29918,
771,
1971,
13,
1678,
5174,
28933,
12596,
2459,
2392,
29901,
13,
4706,
1596,
703,
2392,
29901,
360,
3640,
292,
491,
28933,
338,
451,
2854,
6824,
1159,
13,
1678,
5174,
7865,
2392,
29901,
13,
4706,
1596,
4852,
2392,
29901,
9333,
405,
25099,
2630,
1041,
526,
2854,
6824,
1159,
2
] |
workflow/migrations/0017_organization_logo.py | meetdatastory/Activity-CE | 0 | 177025 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2018-11-14 00:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('workflow', '0016_auto_20170623_1306'),
]
operations = [
migrations.AddField(
model_name='organization',
name='logo',
field=models.FileField(blank=True, null=True, upload_to='static/img/', verbose_name='Your Organization Logo'),
),
]
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
3251,
630,
491,
15337,
29871,
29896,
29889,
29896,
29896,
29889,
29906,
373,
29871,
29906,
29900,
29896,
29947,
29899,
29896,
29896,
29899,
29896,
29946,
29871,
29900,
29900,
29901,
29941,
29896,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
800,
29892,
4733,
13,
13,
13,
1990,
341,
16783,
29898,
26983,
800,
29889,
29924,
16783,
1125,
13,
13,
1678,
9962,
353,
518,
13,
4706,
6702,
1287,
1731,
742,
525,
29900,
29900,
29896,
29953,
29918,
6921,
29918,
29906,
29900,
29896,
29955,
29900,
29953,
29906,
29941,
29918,
29896,
29941,
29900,
29953,
5477,
13,
1678,
4514,
13,
13,
1678,
6931,
353,
518,
13,
4706,
9725,
800,
29889,
2528,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
6388,
2133,
742,
13,
9651,
1024,
2433,
14569,
742,
13,
9651,
1746,
29922,
9794,
29889,
2283,
3073,
29898,
19465,
29922,
5574,
29892,
1870,
29922,
5574,
29892,
6441,
29918,
517,
2433,
7959,
29914,
2492,
29914,
742,
26952,
29918,
978,
2433,
10858,
9205,
2133,
4522,
29877,
5477,
13,
4706,
10353,
13,
1678,
4514,
13,
2
] |
get_neowise_data.py | Aparctias/lightcurve_fft | 0 | 1604646 | #!/usr/bin/python
# Get NEOWISE data
import os
import time
import json
import requests
MPC_SPIN_PROC = "mpc_spins_proc"
NEOWISE_DIR = "neowise_stat"
NEOWISE_SKIP = "neowise_skip_objs"
data = []
with open(MPC_SPIN_PROC, 'r') as f:
data = json.load(f)
url = 'http://irsa.ipac.caltech.edu/cgi-bin/Gator/nph-query?searchForm=MO' \
'&spatial=cone&catalog=allsky_4band_p1bs_psd&mobj=smo&outfmt=1' \
'&mobjstr=%s'
def save_to_file(obj_name, stat):
with open(NEOWISE_DIR + '/' + obj_name, 'w') as f:
f.write(stat)
def execute_request(request_url):
retries = 1
i = 0
text = ''
try:
while (i < retries):
r = requests.get(request_url)
# Very bad
if r.text.startswith("[struct stat=\"ERROR\""):
print "Retry: ", request_url
time.sleep(1)
else:
text = r.text
break
i += 1
except:
text = ''
return text
def stat_file_exists(obj_name):
return os.path.exists(NEOWISE_DIR + '/' + obj_name)
def get_objs_to_skip():
if os.path.exists(NEOWISE_SKIP):
with open(NEOWISE_SKIP, 'r') as f:
return f.read().split()
else:
return []
def add_obj_to_skip(obj_name):
with open(NEOWISE_SKIP, 'a') as f:
f.write(obj_name + ' ')
if not os.path.exists(NEOWISE_DIR):
os.mkdir(NEOWISE_DIR)
print "Total: ", len(data)
skip_objs = get_objs_to_skip()
print "Not uploaded objs: ", skip_objs
for i in range(0, len(data)):
mobjstr = ''
for n in ('name', 'number', 'designation'):
if data[i].get(n):
mobjstr = data[i].get(n)
if not mobjstr or stat_file_exists(str(mobjstr)) or\
str(mobjstr) in skip_objs:
continue
mobjstr = str(mobjstr)
print "Processing: %s - %s" % (i, mobjstr)
stat = execute_request(url%mobjstr)
if stat:
save_to_file(mobjstr, stat)
else:
add_obj_to_skip(mobjstr)
| [
1,
18787,
4855,
29914,
2109,
29914,
4691,
13,
13,
29937,
3617,
14693,
9806,
29902,
1660,
848,
13,
13,
5215,
2897,
13,
5215,
931,
13,
5215,
4390,
13,
5215,
7274,
13,
13,
3580,
29907,
29918,
5550,
1177,
29918,
8618,
29907,
353,
376,
1526,
29883,
29918,
1028,
1144,
29918,
15439,
29908,
13,
8186,
9806,
29902,
1660,
29918,
9464,
353,
376,
484,
340,
895,
29918,
6112,
29908,
13,
8186,
9806,
29902,
1660,
29918,
16033,
5690,
353,
376,
484,
340,
895,
29918,
11014,
29918,
711,
1315,
29908,
13,
13,
1272,
353,
5159,
13,
2541,
1722,
29898,
3580,
29907,
29918,
5550,
1177,
29918,
8618,
29907,
29892,
525,
29878,
1495,
408,
285,
29901,
13,
1678,
848,
353,
4390,
29889,
1359,
29898,
29888,
29897,
13,
13,
2271,
353,
525,
1124,
597,
381,
4977,
29889,
666,
562,
29889,
1052,
11345,
29889,
6085,
29914,
20006,
29899,
2109,
29914,
29954,
1061,
29914,
29876,
561,
29899,
1972,
29973,
4478,
2500,
29922,
6720,
29915,
320,
13,
418,
525,
29987,
1028,
15238,
29922,
535,
29872,
29987,
28045,
29922,
497,
7912,
29918,
29946,
4980,
29918,
29886,
29896,
5824,
29918,
567,
29881,
29987,
29885,
5415,
29922,
3844,
29877,
29987,
449,
23479,
29922,
29896,
29915,
320,
13,
418,
525,
29987,
29885,
5415,
710,
16328,
29879,
29915,
13,
13,
1753,
4078,
29918,
517,
29918,
1445,
29898,
5415,
29918,
978,
29892,
1002,
1125,
13,
1678,
411,
1722,
29898,
8186,
9806,
29902,
1660,
29918,
9464,
718,
8207,
29915,
718,
5446,
29918,
978,
29892,
525,
29893,
1495,
408,
285,
29901,
13,
4706,
285,
29889,
3539,
29898,
6112,
29897,
13,
13,
1753,
6222,
29918,
3827,
29898,
3827,
29918,
2271,
1125,
13,
1678,
3240,
2722,
353,
29871,
29896,
13,
1678,
474,
353,
29871,
29900,
13,
1678,
1426,
353,
6629,
13,
1678,
1018,
29901,
13,
4706,
1550,
313,
29875,
529,
3240,
2722,
1125,
13,
9651,
364,
353,
7274,
29889,
657,
29898,
3827,
29918,
2271,
29897,
13,
9651,
396,
18064,
4319,
13,
9651,
565,
364,
29889,
726,
29889,
27382,
2541,
703,
29961,
4984,
1002,
14672,
11432,
5931,
29908,
1125,
13,
18884,
1596,
376,
8015,
719,
29901,
9162,
2009,
29918,
2271,
13,
18884,
931,
29889,
17059,
29898,
29896,
29897,
13,
9651,
1683,
29901,
13,
18884,
1426,
353,
364,
29889,
726,
13,
18884,
2867,
13,
9651,
474,
4619,
29871,
29896,
13,
1678,
5174,
29901,
13,
4706,
1426,
353,
6629,
13,
1678,
736,
1426,
13,
13,
1753,
1002,
29918,
1445,
29918,
9933,
29898,
5415,
29918,
978,
1125,
13,
1678,
736,
2897,
29889,
2084,
29889,
9933,
29898,
8186,
9806,
29902,
1660,
29918,
9464,
718,
8207,
29915,
718,
5446,
29918,
978,
29897,
13,
13,
1753,
679,
29918,
711,
1315,
29918,
517,
29918,
11014,
7295,
13,
1678,
565,
2897,
29889,
2084,
29889,
9933,
29898,
8186,
9806,
29902,
1660,
29918,
16033,
5690,
1125,
13,
4706,
411,
1722,
29898,
8186,
9806,
29902,
1660,
29918,
16033,
5690,
29892,
525,
29878,
1495,
408,
285,
29901,
13,
9651,
736,
285,
29889,
949,
2141,
5451,
580,
13,
1678,
1683,
29901,
13,
4706,
736,
5159,
13,
13,
1753,
788,
29918,
5415,
29918,
517,
29918,
11014,
29898,
5415,
29918,
978,
1125,
13,
1678,
411,
1722,
29898,
8186,
9806,
29902,
1660,
29918,
16033,
5690,
29892,
525,
29874,
1495,
408,
285,
29901,
13,
4706,
285,
29889,
3539,
29898,
5415,
29918,
978,
718,
525,
25710,
13,
13,
361,
451,
2897,
29889,
2084,
29889,
9933,
29898,
8186,
9806,
29902,
1660,
29918,
9464,
1125,
13,
1678,
2897,
29889,
11256,
3972,
29898,
8186,
9806,
29902,
1660,
29918,
9464,
29897,
13,
13,
2158,
376,
11536,
29901,
9162,
7431,
29898,
1272,
29897,
13,
11014,
29918,
711,
1315,
353,
679,
29918,
711,
1315,
29918,
517,
29918,
11014,
580,
13,
2158,
376,
3664,
20373,
704,
1315,
29901,
9162,
14383,
29918,
711,
1315,
13,
1454,
474,
297,
3464,
29898,
29900,
29892,
7431,
29898,
1272,
22164,
13,
1678,
286,
5415,
710,
353,
6629,
13,
1678,
363,
302,
297,
6702,
978,
742,
525,
4537,
742,
525,
13892,
362,
29374,
13,
4706,
565,
848,
29961,
29875,
1822,
657,
29898,
29876,
1125,
13,
9651,
286,
5415,
710,
353,
848,
29961,
29875,
1822,
657,
29898,
29876,
29897,
13,
1678,
565,
451,
286,
5415,
710,
470,
1002,
29918,
1445,
29918,
9933,
29898,
710,
29898,
29885,
5415,
710,
876,
470,
29905,
13,
462,
418,
851,
29898,
29885,
5415,
710,
29897,
297,
14383,
29918,
711,
1315,
29901,
13,
4706,
6773,
13,
1678,
286,
5415,
710,
353,
851,
29898,
29885,
5415,
710,
29897,
13,
1678,
1596,
376,
7032,
292,
29901,
1273,
29879,
448,
1273,
29879,
29908,
1273,
313,
29875,
29892,
286,
5415,
710,
29897,
13,
1678,
1002,
353,
6222,
29918,
3827,
29898,
2271,
29995,
29885,
5415,
710,
29897,
13,
1678,
565,
1002,
29901,
13,
4706,
4078,
29918,
517,
29918,
1445,
29898,
29885,
5415,
710,
29892,
1002,
29897,
13,
1678,
1683,
29901,
13,
4706,
788,
29918,
5415,
29918,
517,
29918,
11014,
29898,
29885,
5415,
710,
29897,
13,
13,
2
] |
common.py | sleclair0/spacy-youtube-material | 93 | 66175 | <filename>common.py<gh_stars>10-100
from spacy.matcher import Matcher
def create_versioned(name):
return [
[{'LOWER': name}],
[{'LOWER': {'REGEX': f'({name}\d+\.?\d*.?\d*)'}}],
[{'LOWER': name}, {'TEXT': {'REGEX': '(\d+\.?\d*.?\d*)'}}],
]
def create_patterns():
versioned_languages = ['ruby', 'php', 'python', 'perl', 'java', 'haskell',
'scala', 'c', 'cpp', 'matlab', 'bash', 'delphi']
flatten = lambda l: [item for sublist in l for item in sublist]
versioned_patterns = flatten([create_versioned(lang) for lang in versioned_languages])
lang_patterns = [
[{'LOWER': 'objective'}, {'IS_PUNCT': True, 'OP': '?'},{'LOWER': 'c'}],
[{'LOWER': 'objectivec'}],
[{'LOWER': 'c'}, {'LOWER': '#'}],
[{'LOWER': 'c'}, {'LOWER': 'sharp'}],
[{'LOWER': 'c#'}],
[{'LOWER': 'f'}, {'LOWER': '#'}],
[{'LOWER': 'f'}, {'LOWER': 'sharp'}],
[{'LOWER': 'f#'}],
[{'LOWER': 'lisp'}],
[{'LOWER': 'common'}, {'LOWER': 'lisp'}],
[{'LOWER': 'go', 'POS': {'NOT_IN': ['VERB']}}],
[{'LOWER': 'golang'}],
[{'LOWER': 'html'}],
[{'LOWER': 'css'}],
[{'LOWER': 'sql'}],
[{'LOWER': {'IN': ['js', 'javascript']}}],
[{'LOWER': 'c++'}],
]
return versioned_patterns + lang_patterns
| [
1,
529,
9507,
29958,
9435,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
3166,
805,
4135,
29889,
4352,
261,
1053,
14514,
261,
13,
13,
1753,
1653,
29918,
3259,
287,
29898,
978,
1125,
13,
1678,
736,
518,
13,
4706,
518,
10998,
27998,
1001,
2396,
1024,
29913,
1402,
29871,
13,
4706,
518,
10998,
27998,
1001,
2396,
11117,
1525,
1692,
29990,
2396,
285,
29915,
3319,
978,
1012,
29881,
3124,
29889,
29973,
29905,
29881,
10521,
29973,
29905,
29881,
7528,
29915,
930,
1402,
29871,
13,
4706,
518,
10998,
27998,
1001,
2396,
1024,
1118,
11117,
16975,
2396,
11117,
1525,
1692,
29990,
2396,
525,
1194,
29881,
3124,
29889,
29973,
29905,
29881,
10521,
29973,
29905,
29881,
7528,
29915,
930,
1402,
13,
1678,
4514,
13,
13,
13,
1753,
1653,
29918,
11037,
29879,
7295,
13,
1678,
1873,
287,
29918,
29880,
8737,
353,
6024,
9754,
742,
525,
1961,
742,
525,
4691,
742,
525,
22032,
742,
525,
1645,
742,
525,
29882,
21918,
742,
29871,
13,
462,
965,
525,
15820,
742,
525,
29883,
742,
525,
8223,
742,
525,
2922,
8205,
742,
525,
13067,
742,
525,
6144,
2876,
2033,
13,
1678,
1652,
8606,
353,
14013,
301,
29901,
518,
667,
363,
1014,
1761,
297,
301,
363,
2944,
297,
1014,
1761,
29962,
13,
1678,
1873,
287,
29918,
11037,
29879,
353,
1652,
8606,
4197,
3258,
29918,
3259,
287,
29898,
3893,
29897,
363,
6361,
297,
1873,
287,
29918,
29880,
8737,
2314,
13,
13,
1678,
6361,
29918,
11037,
29879,
353,
518,
13,
4706,
518,
10998,
27998,
1001,
2396,
525,
3318,
573,
16675,
11117,
3235,
29918,
29925,
3904,
1783,
2396,
5852,
29892,
525,
4590,
2396,
525,
29973,
16675,
10998,
27998,
1001,
2396,
525,
29883,
10827,
1402,
13,
4706,
518,
10998,
27998,
1001,
2396,
525,
3318,
573,
29883,
10827,
1402,
13,
4706,
518,
10998,
27998,
1001,
2396,
525,
29883,
16675,
11117,
27998,
1001,
2396,
16321,
10827,
1402,
13,
4706,
518,
10998,
27998,
1001,
2396,
525,
29883,
16675,
11117,
27998,
1001,
2396,
525,
22064,
10827,
1402,
13,
4706,
518,
10998,
27998,
1001,
2396,
525,
29883,
29937,
10827,
1402,
13,
4706,
518,
10998,
27998,
1001,
2396,
525,
29888,
16675,
11117,
27998,
1001,
2396,
16321,
10827,
1402,
13,
4706,
518,
10998,
27998,
1001,
2396,
525,
29888,
16675,
11117,
27998,
1001,
2396,
525,
22064,
10827,
1402,
13,
4706,
518,
10998,
27998,
1001,
2396,
525,
29888,
29937,
10827,
1402,
13,
4706,
518,
10998,
27998,
1001,
2396,
525,
29880,
11936,
10827,
1402,
13,
4706,
518,
10998,
27998,
1001,
2396,
525,
9435,
16675,
11117,
27998,
1001,
2396,
525,
29880,
11936,
10827,
1402,
13,
4706,
518,
10998,
27998,
1001,
2396,
525,
1484,
742,
525,
24815,
2396,
11117,
12256,
29918,
1177,
2396,
6024,
5348,
29933,
2033,
930,
1402,
13,
4706,
518,
10998,
27998,
1001,
2396,
525,
29887,
324,
574,
10827,
1402,
13,
4706,
518,
10998,
27998,
1001,
2396,
525,
1420,
10827,
1402,
13,
4706,
518,
10998,
27998,
1001,
2396,
525,
4268,
10827,
1402,
13,
4706,
518,
10998,
27998,
1001,
2396,
525,
2850,
10827,
1402,
13,
4706,
518,
10998,
27998,
1001,
2396,
11117,
1177,
2396,
6024,
1315,
742,
525,
7729,
2033,
930,
1402,
13,
4706,
518,
10998,
27998,
1001,
2396,
525,
29883,
1817,
10827,
1402,
13,
1678,
4514,
13,
13,
1678,
736,
1873,
287,
29918,
11037,
29879,
718,
6361,
29918,
11037,
29879,
13,
2
] |
src/dials/algorithms/profile_model/ellipsoid/__init__.py | dials-src/dials | 1 | 146677 | <reponame>dials-src/dials
from __future__ import annotations
from math import pi, sqrt
from dials.array_family import flex # noqa: F401;
from dials_algorithms_profile_model_ellipsoid_ext import * # noqa: F401, F403;
def mosaicity_from_eigen_decomposition(eigen_values):
return (
sqrt(eigen_values[0]) * 180.0 / pi,
sqrt(eigen_values[1]) * 180.0 / pi,
sqrt(eigen_values[2]) * 180.0 / pi,
)
| [
1,
529,
276,
1112,
420,
29958,
29881,
616,
29879,
29899,
4351,
29914,
29881,
616,
29879,
13,
3166,
4770,
29888,
9130,
1649,
1053,
25495,
13,
13,
3166,
5844,
1053,
2930,
29892,
18074,
2273,
13,
13,
3166,
270,
616,
29879,
29889,
2378,
29918,
11922,
1053,
8525,
29871,
396,
694,
25621,
29901,
383,
29946,
29900,
29896,
29936,
13,
3166,
270,
616,
29879,
29918,
9564,
12404,
29918,
10185,
29918,
4299,
29918,
5481,
567,
3398,
29918,
1062,
1053,
334,
29871,
396,
694,
25621,
29901,
383,
29946,
29900,
29896,
29892,
383,
29946,
29900,
29941,
29936,
13,
13,
13,
1753,
286,
3628,
24798,
29918,
3166,
29918,
29872,
2101,
29918,
311,
510,
3283,
29898,
29872,
2101,
29918,
5975,
1125,
13,
1678,
736,
313,
13,
4706,
18074,
2273,
29898,
29872,
2101,
29918,
5975,
29961,
29900,
2314,
334,
29871,
29896,
29947,
29900,
29889,
29900,
847,
2930,
29892,
13,
4706,
18074,
2273,
29898,
29872,
2101,
29918,
5975,
29961,
29896,
2314,
334,
29871,
29896,
29947,
29900,
29889,
29900,
847,
2930,
29892,
13,
4706,
18074,
2273,
29898,
29872,
2101,
29918,
5975,
29961,
29906,
2314,
334,
29871,
29896,
29947,
29900,
29889,
29900,
847,
2930,
29892,
13,
1678,
1723,
13,
2
] |
osisoft/pidevclub/piwebapi/models/pi_data_server_license.py | jugillar/PI-Web-API-Client-Python | 30 | 12808 | # coding: utf-8
"""
Copyright 2018 OSIsoft, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
<http://www.apache.org/licenses/LICENSE-2.0>
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from pprint import pformat
from six import iteritems
class PIDataServerLicense(object):
swagger_types = {
'amount_left': 'str',
'amount_used': 'str',
'name': 'str',
'total_amount': 'str',
'links': 'PIDataServerLicenseLinks',
'web_exception': 'PIWebException',
}
attribute_map = {
'amount_left': 'AmountLeft',
'amount_used': 'AmountUsed',
'name': 'Name',
'total_amount': 'TotalAmount',
'links': 'Links',
'web_exception': 'WebException',
}
def __init__(self, amount_left=None, amount_used=None, name=None, total_amount=None, links=None, web_exception=None):
self._amount_left = None
self._amount_used = None
self._name = None
self._total_amount = None
self._links = None
self._web_exception = None
if amount_left is not None:
self.amount_left = amount_left
if amount_used is not None:
self.amount_used = amount_used
if name is not None:
self.name = name
if total_amount is not None:
self.total_amount = total_amount
if links is not None:
self.links = links
if web_exception is not None:
self.web_exception = web_exception
@property
def amount_left(self):
return self._amount_left
@amount_left.setter
def amount_left(self, amount_left):
self._amount_left = amount_left
@property
def amount_used(self):
return self._amount_used
@amount_used.setter
def amount_used(self, amount_used):
self._amount_used = amount_used
@property
def name(self):
return self._name
@name.setter
def name(self, name):
self._name = name
@property
def total_amount(self):
return self._total_amount
@total_amount.setter
def total_amount(self, total_amount):
self._total_amount = total_amount
@property
def links(self):
return self._links
@links.setter
def links(self, links):
self._links = links
@property
def web_exception(self):
return self._web_exception
@web_exception.setter
def web_exception(self, web_exception):
self._web_exception = web_exception
def to_dict(self):
result = {}
for attr, _ in iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
return result
def to_str(self):
return pformat(self.to_dict())
def __repr__(self):
return self.to_str()
def __ne__(self, other):
return not self == other
def __eq__(self, other):
if not isinstance(other, PIDataServerLicense):
return False
return self.__dict__ == other.__dict__
| [
1,
396,
14137,
29901,
23616,
29899,
29947,
13,
13,
15945,
29908,
13,
12,
11882,
1266,
29871,
29906,
29900,
29896,
29947,
438,
5425,
2695,
29892,
365,
12182,
13,
12,
29931,
293,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
12,
6293,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
13,
12,
3492,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
13,
12,
13,
12,
29871,
529,
1124,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
29958,
13,
12,
13,
12,
2525,
2222,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
12,
5721,
7541,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
13,
12,
29956,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
13,
12,
13393,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
13,
12,
13400,
800,
1090,
278,
19245,
29889,
13,
15945,
29908,
13,
3166,
282,
2158,
1053,
282,
4830,
13,
3166,
4832,
1053,
4256,
7076,
13,
13,
13,
1990,
349,
1367,
532,
6004,
29931,
293,
1947,
29898,
3318,
1125,
13,
12,
2774,
9921,
29918,
8768,
353,
426,
13,
12,
12,
29915,
14506,
29918,
1563,
2396,
525,
710,
742,
13,
12,
12,
29915,
14506,
29918,
3880,
2396,
525,
710,
742,
13,
12,
12,
29915,
978,
2396,
525,
710,
742,
13,
12,
12,
29915,
7827,
29918,
14506,
2396,
525,
710,
742,
13,
12,
12,
29915,
4965,
2396,
525,
29925,
1367,
532,
6004,
29931,
293,
1947,
6595,
29879,
742,
13,
12,
12,
29915,
2676,
29918,
11739,
2396,
525,
2227,
3609,
2451,
742,
13,
12,
29913,
13,
13,
12,
12715,
29918,
1958,
353,
426,
13,
12,
12,
29915,
14506,
29918,
1563,
2396,
525,
18087,
8091,
742,
13,
12,
12,
29915,
14506,
29918,
3880,
2396,
525,
18087,
29965,
8485,
742,
13,
12,
12,
29915,
978,
2396,
525,
1170,
742,
13,
12,
12,
29915,
7827,
29918,
14506,
2396,
525,
11536,
18087,
742,
13,
12,
12,
29915,
4965,
2396,
525,
6595,
29879,
742,
13,
12,
12,
29915,
2676,
29918,
11739,
2396,
525,
3609,
2451,
742,
13,
12,
29913,
13,
12,
1753,
4770,
2344,
12035,
1311,
29892,
5253,
29918,
1563,
29922,
8516,
29892,
5253,
29918,
3880,
29922,
8516,
29892,
1024,
29922,
8516,
29892,
3001,
29918,
14506,
29922,
8516,
29892,
2988,
29922,
8516,
29892,
1856,
29918,
11739,
29922,
8516,
1125,
13,
13,
12,
12,
1311,
3032,
14506,
29918,
1563,
353,
6213,
13,
12,
12,
1311,
3032,
14506,
29918,
3880,
353,
6213,
13,
12,
12,
1311,
3032,
978,
353,
6213,
13,
12,
12,
1311,
3032,
7827,
29918,
14506,
353,
6213,
13,
12,
12,
1311,
3032,
4965,
353,
6213,
13,
12,
12,
1311,
3032,
2676,
29918,
11739,
353,
6213,
13,
13,
12,
12,
361,
5253,
29918,
1563,
338,
451,
6213,
29901,
13,
12,
12,
12,
1311,
29889,
14506,
29918,
1563,
353,
5253,
29918,
1563,
13,
12,
12,
361,
5253,
29918,
3880,
338,
451,
6213,
29901,
13,
12,
12,
12,
1311,
29889,
14506,
29918,
3880,
353,
5253,
29918,
3880,
13,
12,
12,
361,
1024,
338,
451,
6213,
29901,
13,
12,
12,
12,
1311,
29889,
978,
353,
1024,
13,
12,
12,
361,
3001,
29918,
14506,
338,
451,
6213,
29901,
13,
12,
12,
12,
1311,
29889,
7827,
29918,
14506,
353,
3001,
29918,
14506,
13,
12,
12,
361,
2988,
338,
451,
6213,
29901,
13,
12,
12,
12,
1311,
29889,
4965,
353,
2988,
13,
12,
12,
361,
1856,
29918,
11739,
338,
451,
6213,
29901,
13,
12,
12,
12,
1311,
29889,
2676,
29918,
11739,
353,
1856,
29918,
11739,
13,
13,
12,
29992,
6799,
13,
12,
1753,
5253,
29918,
1563,
29898,
1311,
1125,
13,
12,
12,
2457,
1583,
3032,
14506,
29918,
1563,
13,
13,
12,
29992,
14506,
29918,
1563,
29889,
842,
357,
13,
12,
1753,
5253,
29918,
1563,
29898,
1311,
29892,
5253,
29918,
1563,
1125,
13,
12,
12,
1311,
3032,
14506,
29918,
1563,
353,
5253,
29918,
1563,
13,
13,
12,
29992,
6799,
13,
12,
1753,
5253,
29918,
3880,
29898,
1311,
1125,
13,
12,
12,
2457,
1583,
3032,
14506,
29918,
3880,
13,
13,
12,
29992,
14506,
29918,
3880,
29889,
842,
357,
13,
12,
1753,
5253,
29918,
3880,
29898,
1311,
29892,
5253,
29918,
3880,
1125,
13,
12,
12,
1311,
3032,
14506,
29918,
3880,
353,
5253,
29918,
3880,
13,
13,
12,
29992,
6799,
13,
12,
1753,
1024,
29898,
1311,
1125,
13,
12,
12,
2457,
1583,
3032,
978,
13,
13,
12,
29992,
978,
29889,
842,
357,
13,
12,
1753,
1024,
29898,
1311,
29892,
1024,
1125,
13,
12,
12,
1311,
3032,
978,
353,
1024,
13,
13,
12,
29992,
6799,
13,
12,
1753,
3001,
29918,
14506,
29898,
1311,
1125,
13,
12,
12,
2457,
1583,
3032,
7827,
29918,
14506,
13,
13,
12,
29992,
7827,
29918,
14506,
29889,
842,
357,
13,
12,
1753,
3001,
29918,
14506,
29898,
1311,
29892,
3001,
29918,
14506,
1125,
13,
12,
12,
1311,
3032,
7827,
29918,
14506,
353,
3001,
29918,
14506,
13,
13,
12,
29992,
6799,
13,
12,
1753,
2988,
29898,
1311,
1125,
13,
12,
12,
2457,
1583,
3032,
4965,
13,
13,
12,
29992,
4965,
29889,
842,
357,
13,
12,
1753,
2988,
29898,
1311,
29892,
2988,
1125,
13,
12,
12,
1311,
3032,
4965,
353,
2988,
13,
13,
12,
29992,
6799,
13,
12,
1753,
1856,
29918,
11739,
29898,
1311,
1125,
13,
12,
12,
2457,
1583,
3032,
2676,
29918,
11739,
13,
13,
12,
29992,
2676,
29918,
11739,
29889,
842,
357,
13,
12,
1753,
1856,
29918,
11739,
29898,
1311,
29892,
1856,
29918,
11739,
1125,
13,
12,
12,
1311,
3032,
2676,
29918,
11739,
353,
1856,
29918,
11739,
13,
13,
12,
1753,
304,
29918,
8977,
29898,
1311,
1125,
13,
12,
12,
2914,
353,
6571,
13,
12,
12,
1454,
12421,
29892,
903,
297,
4256,
7076,
29898,
1311,
29889,
2774,
9921,
29918,
8768,
1125,
13,
12,
12,
12,
1767,
353,
679,
5552,
29898,
1311,
29892,
12421,
29897,
13,
12,
12,
12,
361,
338,
8758,
29898,
1767,
29892,
1051,
1125,
13,
12,
12,
12,
12,
2914,
29961,
5552,
29962,
353,
1051,
29898,
1958,
29898,
13,
12,
12,
12,
12,
12,
2892,
921,
29901,
921,
29889,
517,
29918,
8977,
580,
565,
756,
5552,
29898,
29916,
29892,
376,
517,
29918,
8977,
1159,
1683,
921,
29892,
13,
12,
12,
12,
12,
12,
1767,
13,
12,
12,
12,
12,
876,
13,
12,
12,
12,
23681,
756,
5552,
29898,
1767,
29892,
376,
517,
29918,
8977,
29908,
1125,
13,
12,
12,
12,
12,
2914,
29961,
5552,
29962,
353,
995,
29889,
517,
29918,
8977,
580,
13,
12,
12,
12,
23681,
338,
8758,
29898,
1767,
29892,
9657,
1125,
13,
12,
12,
12,
12,
2914,
29961,
5552,
29962,
353,
9657,
29898,
1958,
29898,
13,
12,
12,
12,
12,
12,
2892,
2944,
29901,
313,
667,
29961,
29900,
1402,
2944,
29961,
29896,
1822,
517,
29918,
8977,
3101,
13,
12,
12,
12,
12,
12,
361,
756,
5552,
29898,
667,
29961,
29896,
1402,
376,
517,
29918,
8977,
1159,
1683,
2944,
29892,
13,
12,
12,
12,
12,
12,
1767,
29889,
7076,
580,
13,
12,
12,
12,
12,
876,
13,
12,
12,
12,
2870,
29901,
13,
12,
12,
12,
12,
2914,
29961,
5552,
29962,
353,
995,
13,
12,
12,
2457,
1121,
13,
13,
12,
1753,
304,
29918,
710,
29898,
1311,
1125,
13,
12,
12,
2457,
282,
4830,
29898,
1311,
29889,
517,
29918,
8977,
3101,
13,
13,
12,
1753,
4770,
276,
558,
12035,
1311,
1125,
13,
12,
12,
2457,
1583,
29889,
517,
29918,
710,
580,
13,
13,
12,
1753,
4770,
484,
12035,
1311,
29892,
916,
1125,
13,
12,
12,
2457,
451,
1583,
1275,
916,
13,
13,
12,
1753,
4770,
1837,
12035,
1311,
29892,
916,
1125,
13,
12,
12,
361,
451,
338,
8758,
29898,
1228,
29892,
349,
1367,
532,
6004,
29931,
293,
1947,
1125,
13,
12,
12,
12,
2457,
7700,
13,
12,
12,
2457,
1583,
17255,
8977,
1649,
1275,
916,
17255,
8977,
1649,
13,
13,
2
] |
diplomacy/src/scripts/yamlizer.py | MaxStrange/nlp | 1 | 37174 | <filename>diplomacy/src/scripts/yamlizer.py
"""
This script takes a single message gathered from playdiplomacy.com as an input file and
outputs a YAML version of it so that it can be used as an input file into the program.
Usage:
python3 yamlizer.py msg.txt
(You can also feed it a list of files).
NOTE: This script is not designed to handle multiple recipient messages. So if you want to
run this script on a message that has a CC line like:
CC: ENGLAND, FRANCE, ITALY
You must alter this to be:
CC: ENGLAND
or
CC: FRANCE
or
CC: ITALY
But there is nothing stopping you from running this script on the file multiple times - one for each recipient.
Example:
[Contents of msg.txt]:
=====================================================
From: ITALY
Date: May 07 2017 15:04 (GMT-8) Spring 1903
CC: FRANCE
Re:Movement
Awesome.
About Bohemia... You should have Burgundy support Bohemia to Munich. Meanwhile, attack Ruhr with Belgium.
Unless you want me to contact Russia about what I should do with Bohemia. That would be fine too. Up to you.
======================================================
When fed through this script, this will output as msg.yml:
======================================================
year: 1903
season: Spring
a_to_b:
from_player: Italy
from_country: Italy
to_player: France
to_country: France
messages:
- >
"Re:Movement
Awesome.
About Bohemia... You should have Burgundy support Bohemia to Munich. Meanwhile, attack Ruhr with Belgium.
Unless you want me to contact Russia about what I should do with Bohemia. That would be fine too. Up to you."
======================================================
You are free to do what you want with the from_player and to_player fields. Those are not really used - they were included because I didn't know if they would be
necessary or not - turns out not.
You can also add more messages to the end of that and also add b_to_a messages as well. See examples.
"""
import os
import sys
class Message:
def __init__(self, txt):
from_line = next((line for line in txt if line.lower().startswith("from:")))
date_line = next((line for line in txt if line.lower().startswith("date:")))
to_line = next((line for line in txt if line.lower().startswith("cc:")))
to_line_index = [i for i, line in enumerate(txt) if line.lower().startswith("cc:")][0]
msg_body = os.linesep.join([line for line in txt[(to_line_index + 1):]])
self.from_ = from_line.split("From:")[1].strip()
self.date = date_line.split("Date:")[1].strip()
self.to = to_line.split("CC:")[1].strip()
self.message = msg_body.strip()
def __str__(self):
s = "FROM: " + str(self.from_) + os.linesep
s += "DATE: " + str(self.date) + os.linesep
s += "TO: " + str(self.to) + os.linesep
s += "Message: " + self.message
return s
def yamlize(txt):
"""
Converts the message text from playdiplomacy raw text to the YAML format that this program requires.
"""
message = Message(txt)
year = message.date.split(" ")[-1]
season = message.date.split(" ")[-2]
from_player = from_country = message.from_.lower().title()
to_player = to_country = message.to.lower().title()
msg = message.message.replace("\"", "\\\"")
msg = "\"" + msg + "\""
msg = msg.replace(os.linesep, os.linesep + " ")
yaml = "year: " + year + os.linesep
yaml += "season: " + season + os.linesep
yaml += "a_to_b:" + os.linesep
yaml += " from_player: " + from_player + os.linesep
yaml += " from_country: " + from_country + os.linesep
yaml += " to_player: " + to_player + os.linesep
yaml += " to_country: " + to_country + os.linesep
yaml += " messages:" + os.linesep
yaml += " - >" + os.linesep
yaml += msg
yaml += os.linesep
return yaml
if __name__ == "__main__":
if len(sys.argv) < 2:
print("Need at least one file path.")
exit()
for file_path in sys.argv[1:]:
try:
with open(file_path) as f:
text = [line for line in f]
yaml = yamlize(text)
with open(os.path.splitext(file_path)[0] + ".yml", 'w') as f:
f.write(yaml)
except FileNotFoundError:
print("File", file_path, "does not exist.")
| [
1,
529,
9507,
29958,
6051,
8840,
4135,
29914,
4351,
29914,
16713,
29914,
25162,
3950,
29889,
2272,
13,
15945,
29908,
13,
4013,
2471,
4893,
263,
2323,
2643,
22229,
515,
1708,
6051,
8840,
4135,
29889,
510,
408,
385,
1881,
934,
322,
13,
4905,
29879,
263,
612,
23956,
1873,
310,
372,
577,
393,
372,
508,
367,
1304,
408,
385,
1881,
934,
964,
278,
1824,
29889,
13,
13,
27573,
29901,
13,
4691,
29941,
343,
8807,
3950,
29889,
2272,
10191,
29889,
3945,
13,
13,
29898,
3492,
508,
884,
8343,
372,
263,
1051,
310,
2066,
467,
13,
13,
12256,
29923,
29901,
910,
2471,
338,
451,
8688,
304,
4386,
2999,
23957,
993,
7191,
29889,
1105,
565,
366,
864,
304,
13,
3389,
445,
2471,
373,
263,
2643,
393,
756,
263,
19178,
1196,
763,
29901,
13,
4174,
29901,
12524,
7239,
9468,
29892,
23788,
23219,
29892,
13315,
1964,
29979,
13,
3492,
1818,
10551,
445,
304,
367,
29901,
13,
4174,
29901,
12524,
7239,
9468,
13,
272,
13,
4174,
29901,
23788,
23219,
13,
272,
13,
4174,
29901,
13315,
1964,
29979,
13,
6246,
727,
338,
3078,
25480,
366,
515,
2734,
445,
2471,
373,
278,
934,
2999,
3064,
448,
697,
363,
1269,
23957,
993,
29889,
13,
13,
14023,
29901,
13,
13,
29961,
21002,
310,
10191,
29889,
3945,
5387,
13,
9166,
9166,
9166,
2751,
29922,
13,
4591,
29901,
13315,
1964,
29979,
13,
2539,
29901,
2610,
29871,
29900,
29955,
29871,
29906,
29900,
29896,
29955,
29871,
29896,
29945,
29901,
29900,
29946,
313,
29954,
11490,
29899,
29947,
29897,
7206,
29871,
29896,
29929,
29900,
29941,
29871,
13,
4174,
29901,
23788,
23219,
29871,
13,
13,
1123,
29901,
29924,
586,
882,
29871,
13,
13,
13,
29909,
29893,
14151,
29889,
13,
13,
28173,
17966,
29747,
856,
887,
881,
505,
11202,
870,
29891,
2304,
17966,
29747,
304,
13564,
436,
29889,
25065,
29892,
5337,
9723,
1092,
411,
9923,
1974,
29889,
13,
13,
2525,
2222,
366,
864,
592,
304,
6958,
12710,
1048,
825,
306,
881,
437,
411,
17966,
29747,
29889,
2193,
723,
367,
2691,
2086,
29889,
5020,
304,
366,
29889,
13,
9166,
9166,
9166,
2751,
1360,
13,
13,
10401,
21242,
1549,
445,
2471,
29892,
445,
674,
1962,
408,
10191,
29889,
21053,
29901,
13,
13,
9166,
9166,
9166,
2751,
1360,
13,
6360,
29901,
29871,
29896,
29929,
29900,
29941,
13,
25682,
29901,
7206,
13,
13,
29874,
29918,
517,
29918,
29890,
29901,
13,
29871,
515,
29918,
9106,
29901,
12730,
13,
29871,
515,
29918,
13509,
29901,
12730,
13,
29871,
304,
29918,
9106,
29901,
3444,
13,
29871,
304,
29918,
13509,
29901,
3444,
13,
29871,
7191,
29901,
13,
1678,
448,
1405,
13,
418,
376,
1123,
29901,
29924,
586,
882,
29871,
13,
13,
13,
418,
22886,
14151,
29889,
13,
13,
418,
13611,
17966,
29747,
856,
887,
881,
505,
11202,
870,
29891,
2304,
17966,
29747,
304,
13564,
436,
29889,
25065,
29892,
5337,
9723,
1092,
411,
9923,
1974,
29889,
13,
13,
418,
25870,
366,
864,
592,
304,
6958,
12710,
1048,
825,
306,
881,
437,
411,
17966,
29747,
29889,
2193,
723,
367,
2691,
2086,
29889,
5020,
304,
366,
1213,
13,
9166,
9166,
9166,
2751,
1360,
13,
13,
3492,
526,
3889,
304,
437,
825,
366,
864,
411,
278,
515,
29918,
9106,
322,
304,
29918,
9106,
4235,
29889,
16025,
526,
451,
2289,
1304,
448,
896,
892,
5134,
1363,
306,
3282,
29915,
29873,
1073,
565,
896,
723,
367,
13,
15107,
653,
470,
451,
448,
12169,
714,
451,
29889,
13,
13,
3492,
508,
884,
788,
901,
7191,
304,
278,
1095,
310,
393,
322,
884,
788,
289,
29918,
517,
29918,
29874,
7191,
408,
1532,
29889,
2823,
6455,
29889,
13,
15945,
29908,
13,
5215,
2897,
13,
5215,
10876,
13,
13,
1990,
7777,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
13872,
1125,
13,
4706,
515,
29918,
1220,
353,
2446,
3552,
1220,
363,
1196,
297,
13872,
565,
1196,
29889,
13609,
2141,
27382,
2541,
703,
3166,
6160,
4961,
13,
4706,
2635,
29918,
1220,
353,
2446,
3552,
1220,
363,
1196,
297,
13872,
565,
1196,
29889,
13609,
2141,
27382,
2541,
703,
1256,
6160,
4961,
13,
4706,
304,
29918,
1220,
353,
2446,
3552,
1220,
363,
1196,
297,
13872,
565,
1196,
29889,
13609,
2141,
27382,
2541,
703,
617,
6160,
4961,
13,
4706,
304,
29918,
1220,
29918,
2248,
353,
518,
29875,
363,
474,
29892,
1196,
297,
26985,
29898,
3945,
29897,
565,
1196,
29889,
13609,
2141,
27382,
2541,
703,
617,
29901,
1159,
3816,
29900,
29962,
13,
4706,
10191,
29918,
2587,
353,
2897,
29889,
1915,
968,
29886,
29889,
7122,
4197,
1220,
363,
1196,
297,
13872,
15625,
517,
29918,
1220,
29918,
2248,
718,
29871,
29896,
1125,
24960,
13,
13,
4706,
1583,
29889,
3166,
29918,
353,
515,
29918,
1220,
29889,
5451,
703,
4591,
29901,
1159,
29961,
29896,
1822,
17010,
580,
13,
4706,
1583,
29889,
1256,
353,
2635,
29918,
1220,
29889,
5451,
703,
2539,
29901,
1159,
29961,
29896,
1822,
17010,
580,
13,
4706,
1583,
29889,
517,
353,
304,
29918,
1220,
29889,
5451,
703,
4174,
29901,
1159,
29961,
29896,
1822,
17010,
580,
13,
4706,
1583,
29889,
4906,
353,
10191,
29918,
2587,
29889,
17010,
580,
13,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
13,
4706,
269,
353,
376,
21482,
29901,
376,
718,
851,
29898,
1311,
29889,
3166,
19925,
718,
2897,
29889,
1915,
968,
29886,
13,
4706,
269,
4619,
376,
6248,
29901,
376,
718,
851,
29898,
1311,
29889,
1256,
29897,
718,
2897,
29889,
1915,
968,
29886,
13,
4706,
269,
4619,
376,
4986,
29901,
376,
718,
851,
29898,
1311,
29889,
517,
29897,
718,
2897,
29889,
1915,
968,
29886,
13,
4706,
269,
4619,
376,
3728,
29901,
376,
718,
1583,
29889,
4906,
13,
4706,
736,
269,
13,
13,
1753,
343,
8807,
675,
29898,
3945,
1125,
13,
1678,
9995,
13,
1678,
1281,
369,
1372,
278,
2643,
1426,
515,
1708,
6051,
8840,
4135,
10650,
1426,
304,
278,
612,
23956,
3402,
393,
445,
1824,
6858,
29889,
13,
1678,
9995,
13,
1678,
2643,
353,
7777,
29898,
3945,
29897,
13,
1678,
1629,
353,
2643,
29889,
1256,
29889,
5451,
703,
376,
9601,
29899,
29896,
29962,
13,
1678,
4259,
353,
2643,
29889,
1256,
29889,
5451,
703,
376,
9601,
29899,
29906,
29962,
13,
1678,
515,
29918,
9106,
353,
515,
29918,
13509,
353,
2643,
29889,
3166,
5396,
13609,
2141,
3257,
580,
13,
1678,
304,
29918,
9106,
353,
304,
29918,
13509,
353,
2643,
29889,
517,
29889,
13609,
2141,
3257,
580,
13,
1678,
10191,
353,
2643,
29889,
4906,
29889,
6506,
703,
5931,
613,
376,
1966,
5931,
1159,
13,
1678,
10191,
353,
376,
5931,
29908,
718,
10191,
718,
376,
5931,
29908,
13,
1678,
10191,
353,
10191,
29889,
6506,
29898,
359,
29889,
1915,
968,
29886,
29892,
2897,
29889,
1915,
968,
29886,
718,
376,
4706,
16521,
13,
13,
1678,
343,
8807,
353,
376,
6360,
29901,
376,
718,
1629,
718,
2897,
29889,
1915,
968,
29886,
13,
1678,
343,
8807,
4619,
376,
25682,
29901,
376,
718,
4259,
718,
2897,
29889,
1915,
968,
29886,
13,
1678,
343,
8807,
4619,
376,
29874,
29918,
517,
29918,
29890,
6160,
718,
2897,
29889,
1915,
968,
29886,
13,
1678,
343,
8807,
4619,
376,
29871,
515,
29918,
9106,
29901,
376,
718,
515,
29918,
9106,
718,
2897,
29889,
1915,
968,
29886,
13,
1678,
343,
8807,
4619,
376,
29871,
515,
29918,
13509,
29901,
376,
718,
515,
29918,
13509,
718,
2897,
29889,
1915,
968,
29886,
13,
1678,
343,
8807,
4619,
376,
29871,
304,
29918,
9106,
29901,
376,
718,
304,
29918,
9106,
718,
2897,
29889,
1915,
968,
29886,
13,
1678,
343,
8807,
4619,
376,
29871,
304,
29918,
13509,
29901,
376,
718,
304,
29918,
13509,
718,
2897,
29889,
1915,
968,
29886,
13,
1678,
343,
8807,
4619,
376,
29871,
7191,
6160,
718,
2897,
29889,
1915,
968,
29886,
13,
1678,
343,
8807,
4619,
376,
1678,
448,
1405,
29908,
718,
2897,
29889,
1915,
968,
29886,
13,
1678,
343,
8807,
4619,
10191,
13,
1678,
343,
8807,
4619,
2897,
29889,
1915,
968,
29886,
13,
13,
1678,
736,
343,
8807,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
565,
7431,
29898,
9675,
29889,
19218,
29897,
529,
29871,
29906,
29901,
13,
4706,
1596,
703,
8139,
287,
472,
3203,
697,
934,
2224,
23157,
13,
4706,
6876,
580,
13,
13,
1678,
363,
934,
29918,
2084,
297,
10876,
29889,
19218,
29961,
29896,
29901,
5387,
13,
4706,
1018,
29901,
13,
9651,
411,
1722,
29898,
1445,
29918,
2084,
29897,
408,
285,
29901,
13,
18884,
1426,
353,
518,
1220,
363,
1196,
297,
285,
29962,
13,
9651,
343,
8807,
353,
343,
8807,
675,
29898,
726,
29897,
13,
9651,
411,
1722,
29898,
359,
29889,
2084,
29889,
23579,
568,
486,
29898,
1445,
29918,
2084,
9601,
29900,
29962,
718,
11393,
21053,
613,
525,
29893,
1495,
408,
285,
29901,
13,
18884,
285,
29889,
3539,
29898,
25162,
29897,
13,
4706,
5174,
3497,
17413,
2392,
29901,
13,
9651,
1596,
703,
2283,
613,
934,
29918,
2084,
29892,
376,
13221,
451,
1863,
23157,
13,
13,
2
] |
lib/googlecloudsdk/command_lib/privateca/storage.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2 | 198493 | # Lint as: python3
# -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. 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.
"""Helpers for dealing with storage buckets."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.api_lib.storage import storage_api
from googlecloudsdk.api_lib.storage import storage_util
from googlecloudsdk.calliope import exceptions
from googlecloudsdk.core import log
def _BucketAllowsPublicObjectReads(bucket):
return any([acl.entity.lower() == 'allusers' and acl.role.lower() == 'reader'
for acl in bucket.defaultObjectAcl])
def ValidateBucketForCertificateAuthority(bucket_name):
"""Validates that a user-specified bucket can be used with a Private CA.
Args:
bucket_name: The name of the GCS bucket to validate.
Returns:
A BucketReference wrapping the given bucket name.
Raises:
InvalidArgumentException: when the given bucket can't be used with a CA.
"""
messages = storage_util.GetMessages()
client = storage_api.StorageClient(messages=messages)
try:
bucket = client.GetBucket(
bucket_name,
messages.StorageBucketsGetRequest.ProjectionValueValuesEnum.full)
if not _BucketAllowsPublicObjectReads(bucket):
# Show a warning but don't fail, since this could be intentional.
log.warning(
'The specified bucket does not publicly expose new objects by '
'default, so some clients may not be able to access the CA '
'certificate or CRLs. For more details, see '
'https://cloud.google.com/storage/docs/access-control/making-data-public'
)
return storage_util.BucketReference(bucket_name)
except storage_api.BucketNotFoundError:
raise exceptions.InvalidArgumentException(
'gcs-bucket', 'The given bucket does not exist.')
| [
1,
396,
365,
524,
408,
29901,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
396,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29906,
29900,
5087,
365,
12182,
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,
1678,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
29937,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
13,
29937,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
13,
29937,
2823,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
13,
29937,
27028,
1090,
278,
19245,
29889,
13,
15945,
29908,
7658,
6774,
363,
16743,
411,
8635,
1321,
9737,
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,
29104,
29918,
20889,
1338,
13,
13,
3166,
5386,
9274,
15348,
29889,
2754,
29918,
1982,
29889,
12925,
1053,
8635,
29918,
2754,
13,
3166,
5386,
9274,
15348,
29889,
2754,
29918,
1982,
29889,
12925,
1053,
8635,
29918,
4422,
13,
3166,
5386,
9274,
15348,
29889,
1052,
492,
2300,
1053,
15283,
13,
3166,
5386,
9274,
15348,
29889,
3221,
1053,
1480,
13,
13,
13,
1753,
903,
29933,
2707,
300,
3596,
1242,
19858,
2061,
6359,
29879,
29898,
21454,
1125,
13,
29871,
736,
738,
4197,
562,
29880,
29889,
10041,
29889,
13609,
580,
1275,
525,
497,
7193,
29915,
322,
263,
695,
29889,
12154,
29889,
13609,
580,
1275,
525,
16950,
29915,
13,
795,
363,
263,
695,
297,
20968,
29889,
4381,
2061,
29909,
695,
2314,
13,
13,
13,
1753,
15758,
403,
29933,
2707,
300,
2831,
20455,
8021,
13720,
537,
29898,
21454,
29918,
978,
1125,
13,
29871,
9995,
7211,
1078,
393,
263,
1404,
29899,
6550,
2164,
20968,
508,
367,
1304,
411,
263,
12230,
12766,
29889,
13,
13,
29871,
826,
3174,
29901,
13,
1678,
20968,
29918,
978,
29901,
450,
1024,
310,
278,
402,
9295,
20968,
304,
12725,
29889,
13,
13,
29871,
16969,
29901,
13,
1678,
319,
16281,
300,
7422,
28489,
278,
2183,
20968,
1024,
29889,
13,
13,
29871,
390,
1759,
267,
29901,
13,
1678,
21403,
15730,
2451,
29901,
746,
278,
2183,
20968,
508,
29915,
29873,
367,
1304,
411,
263,
12766,
29889,
13,
29871,
9995,
13,
29871,
7191,
353,
8635,
29918,
4422,
29889,
2577,
25510,
580,
13,
29871,
3132,
353,
8635,
29918,
2754,
29889,
10486,
4032,
29898,
19158,
29922,
19158,
29897,
13,
13,
29871,
1018,
29901,
13,
1678,
20968,
353,
3132,
29889,
2577,
29933,
2707,
300,
29898,
13,
4706,
20968,
29918,
978,
29892,
13,
4706,
7191,
29889,
10486,
29933,
2707,
1691,
2577,
3089,
29889,
1184,
6929,
1917,
9065,
16854,
29889,
8159,
29897,
13,
13,
1678,
565,
451,
903,
29933,
2707,
300,
3596,
1242,
19858,
2061,
6359,
29879,
29898,
21454,
1125,
13,
418,
396,
7704,
263,
9177,
541,
1016,
29915,
29873,
4418,
29892,
1951,
445,
1033,
367,
7609,
1848,
29889,
13,
418,
1480,
29889,
27392,
29898,
13,
3986,
525,
1576,
6790,
20968,
947,
451,
970,
368,
24396,
716,
3618,
491,
525,
13,
3986,
525,
4381,
29892,
577,
777,
13154,
1122,
451,
367,
2221,
304,
2130,
278,
12766,
525,
13,
3986,
525,
6327,
8021,
470,
315,
2241,
29879,
29889,
1152,
901,
4902,
29892,
1074,
525,
13,
3986,
525,
991,
597,
9274,
29889,
3608,
29889,
510,
29914,
12925,
29914,
2640,
29914,
5943,
29899,
6451,
29914,
28990,
29899,
1272,
29899,
3597,
29915,
13,
418,
1723,
13,
13,
1678,
736,
8635,
29918,
4422,
29889,
29933,
2707,
300,
7422,
29898,
21454,
29918,
978,
29897,
13,
29871,
5174,
8635,
29918,
2754,
29889,
29933,
2707,
300,
17413,
2392,
29901,
13,
1678,
12020,
15283,
29889,
13919,
15730,
2451,
29898,
13,
4706,
525,
29887,
2395,
29899,
21454,
742,
525,
1576,
2183,
20968,
947,
451,
1863,
29889,
1495,
13,
2
] |
src/ui/ui_send_payout_dlg.py | muteio/ghostnode-tool | 1 | 35312 | <gh_stars>1-10
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_send_payout_dlg.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_SendPayoutDlg(object):
def setupUi(self, SendPayoutDlg):
SendPayoutDlg.setObjectName("SendPayoutDlg")
SendPayoutDlg.resize(832, 507)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(SendPayoutDlg.sizePolicy().hasHeightForWidth())
SendPayoutDlg.setSizePolicy(sizePolicy)
SendPayoutDlg.setSizeGripEnabled(True)
SendPayoutDlg.setModal(True)
self.verticalLayout = QtWidgets.QVBoxLayout(SendPayoutDlg)
self.verticalLayout.setObjectName("verticalLayout")
self.pnl_input = QtWidgets.QWidget(SendPayoutDlg)
self.pnl_input.setObjectName("pnl_input")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.pnl_input)
self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_4.setSpacing(0)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.lay_input = QtWidgets.QHBoxLayout()
self.lay_input.setSpacing(8)
self.lay_input.setObjectName("lay_input")
self.label_3 = QtWidgets.QLabel(self.pnl_input)
self.label_3.setObjectName("label_3")
self.lay_input.addWidget(self.label_3)
self.cbo_address_source_mode = QtWidgets.QComboBox(self.pnl_input)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cbo_address_source_mode.sizePolicy().hasHeightForWidth())
self.cbo_address_source_mode.setSizePolicy(sizePolicy)
self.cbo_address_source_mode.setMinimumSize(QtCore.QSize(0, 0))
self.cbo_address_source_mode.setMaximumSize(QtCore.QSize(160, 16777215))
self.cbo_address_source_mode.setObjectName("cbo_address_source_mode")
self.cbo_address_source_mode.addItem("")
self.cbo_address_source_mode.addItem("")
self.cbo_address_source_mode.addItem("")
self.lay_input.addWidget(self.cbo_address_source_mode)
self.sw_address_source = QtWidgets.QStackedWidget(self.pnl_input)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.sw_address_source.sizePolicy().hasHeightForWidth())
self.sw_address_source.setSizePolicy(sizePolicy)
self.sw_address_source.setObjectName("sw_address_source")
self.wdg_address_source_1 = QtWidgets.QWidget()
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.wdg_address_source_1.sizePolicy().hasHeightForWidth())
self.wdg_address_source_1.setSizePolicy(sizePolicy)
self.wdg_address_source_1.setObjectName("wdg_address_source_1")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.wdg_address_source_1)
self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_6.setSpacing(1)
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.lbl_account = QtWidgets.QLabel(self.wdg_address_source_1)
self.lbl_account.setObjectName("lbl_account")
self.horizontalLayout_6.addWidget(self.lbl_account)
self.cbo_hw_account_nr = QtWidgets.QComboBox(self.wdg_address_source_1)
self.cbo_hw_account_nr.setObjectName("cbo_hw_account_nr")
self.horizontalLayout_6.addWidget(self.cbo_hw_account_nr)
self.btn_add_hw_account_nr = QtWidgets.QToolButton(self.wdg_address_source_1)
self.btn_add_hw_account_nr.setObjectName("btn_add_hw_account_nr")
self.horizontalLayout_6.addWidget(self.btn_add_hw_account_nr)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_6.addItem(spacerItem)
self.lbl_hw_account_base_path = QtWidgets.QLabel(self.wdg_address_source_1)
self.lbl_hw_account_base_path.setObjectName("lbl_hw_account_base_path")
self.horizontalLayout_6.addWidget(self.lbl_hw_account_base_path)
self.sw_address_source.addWidget(self.wdg_address_source_1)
self.wdg_address_source_2 = QtWidgets.QWidget()
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.wdg_address_source_2.sizePolicy().hasHeightForWidth())
self.wdg_address_source_2.setSizePolicy(sizePolicy)
self.wdg_address_source_2.setObjectName("wdg_address_source_2")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.wdg_address_source_2)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.lblSourceBip32Path = QtWidgets.QLabel(self.wdg_address_source_2)
self.lblSourceBip32Path.setObjectName("lblSourceBip32Path")
self.horizontalLayout_2.addWidget(self.lblSourceBip32Path)
self.edt_src_bip32_path = QtWidgets.QLineEdit(self.wdg_address_source_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.edt_src_bip32_path.sizePolicy().hasHeightForWidth())
self.edt_src_bip32_path.setSizePolicy(sizePolicy)
self.edt_src_bip32_path.setMaximumSize(QtCore.QSize(100, 16777215))
self.edt_src_bip32_path.setStyleSheet("background-color: lightgray;")
self.edt_src_bip32_path.setReadOnly(True)
self.edt_src_bip32_path.setObjectName("edt_src_bip32_path")
self.horizontalLayout_2.addWidget(self.edt_src_bip32_path)
self.btn_src_bip32_path = QtWidgets.QToolButton(self.wdg_address_source_2)
self.btn_src_bip32_path.setObjectName("btn_src_bip32_path")
self.horizontalLayout_2.addWidget(self.btn_src_bip32_path)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem1)
self.sw_address_source.addWidget(self.wdg_address_source_2)
self.wdg_address_source_3 = QtWidgets.QWidget()
self.wdg_address_source_3.setObjectName("wdg_address_source_3")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.wdg_address_source_3)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.lbl_src_masternode = QtWidgets.QLabel(self.wdg_address_source_3)
self.lbl_src_masternode.setObjectName("lbl_src_masternode")
self.horizontalLayout.addWidget(self.lbl_src_masternode)
self.cbo_src_masternodes = QtWidgets.QComboBox(self.wdg_address_source_3)
self.cbo_src_masternodes.setObjectName("cbo_src_masternodes")
self.horizontalLayout.addWidget(self.cbo_src_masternodes)
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem2)
self.sw_address_source.addWidget(self.wdg_address_source_3)
self.lay_input.addWidget(self.sw_address_source)
self.btnLoadTransactions = QtWidgets.QPushButton(self.pnl_input)
self.btnLoadTransactions.setAutoDefault(False)
self.btnLoadTransactions.setObjectName("btnLoadTransactions")
self.lay_input.addWidget(self.btnLoadTransactions)
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.lay_input.addItem(spacerItem3)
self.verticalLayout_4.addLayout(self.lay_input)
self.verticalLayout.addWidget(self.pnl_input)
self.splitter = QtWidgets.QSplitter(SendPayoutDlg)
self.splitter.setOrientation(QtCore.Qt.Vertical)
self.splitter.setObjectName("splitter")
self.main_widget = QtWidgets.QWidget(self.splitter)
self.main_widget.setObjectName("main_widget")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.main_widget)
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_2.setSpacing(2)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.lbl_message_2 = QtWidgets.QLabel(self.main_widget)
self.lbl_message_2.setText("")
self.lbl_message_2.setOpenExternalLinks(True)
self.lbl_message_2.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByMouse)
self.lbl_message_2.setObjectName("lbl_message_2")
self.verticalLayout_2.addWidget(self.lbl_message_2)
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setContentsMargins(-1, 8, -1, -1)
self.horizontalLayout_4.setSpacing(6)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.btnCheckAll = QtWidgets.QToolButton(self.main_widget)
self.btnCheckAll.setToolTip("")
self.btnCheckAll.setIconSize(QtCore.QSize(12, 12))
self.btnCheckAll.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
self.btnCheckAll.setObjectName("btnCheckAll")
self.horizontalLayout_4.addWidget(self.btnCheckAll)
self.btnUncheckAll = QtWidgets.QToolButton(self.main_widget)
self.btnUncheckAll.setToolTip("")
self.btnUncheckAll.setIconSize(QtCore.QSize(12, 12))
self.btnUncheckAll.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
self.btnUncheckAll.setObjectName("btnUncheckAll")
self.horizontalLayout_4.addWidget(self.btnUncheckAll)
self.chbHideCollateralTx = QtWidgets.QCheckBox(self.main_widget)
self.chbHideCollateralTx.setStyleSheet("")
self.chbHideCollateralTx.setObjectName("chbHideCollateralTx")
self.horizontalLayout_4.addWidget(self.chbHideCollateralTx)
self.lbl_message = QtWidgets.QLabel(self.main_widget)
self.lbl_message.setStyleSheet("margin-left:20px;\n"
"font-size:11px;\n"
"background-color: rgb(56, 181, 255);\n"
"color: rgb(255, 255, 255);")
self.lbl_message.setWordWrap(False)
self.lbl_message.setOpenExternalLinks(True)
self.lbl_message.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByMouse)
self.lbl_message.setObjectName("lbl_message")
self.horizontalLayout_4.addWidget(self.lbl_message)
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem4)
self.verticalLayout_2.addLayout(self.horizontalLayout_4)
self.tableView = QtWidgets.QTableView(self.main_widget)
self.tableView.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContentsOnFirstShow)
self.tableView.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
self.tableView.setShowGrid(True)
self.tableView.setSortingEnabled(False)
self.tableView.setObjectName("tableView")
self.tableView.verticalHeader().setVisible(False)
self.tableView.verticalHeader().setCascadingSectionResizes(True)
self.tableView.verticalHeader().setHighlightSections(False)
self.verticalLayout_2.addWidget(self.tableView)
self.dest_widget1 = QtWidgets.QWidget(self.splitter)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.dest_widget1.sizePolicy().hasHeightForWidth())
self.dest_widget1.setSizePolicy(sizePolicy)
self.dest_widget1.setObjectName("dest_widget1")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.dest_widget1)
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.dest_widget = QtWidgets.QFrame(self.dest_widget1)
self.dest_widget.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.dest_widget.setObjectName("dest_widget")
self.verticalLayout_3.addWidget(self.dest_widget)
self.verticalLayout.addWidget(self.splitter)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem5)
self.btnSend = QtWidgets.QPushButton(SendPayoutDlg)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.btnSend.sizePolicy().hasHeightForWidth())
self.btnSend.setSizePolicy(sizePolicy)
self.btnSend.setMinimumSize(QtCore.QSize(200, 0))
self.btnSend.setMaximumSize(QtCore.QSize(200, 16777215))
self.btnSend.setAutoDefault(False)
self.btnSend.setObjectName("btnSend")
self.horizontalLayout_3.addWidget(self.btnSend)
spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem6)
self.btnClose = QtWidgets.QPushButton(SendPayoutDlg)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.btnClose.sizePolicy().hasHeightForWidth())
self.btnClose.setSizePolicy(sizePolicy)
self.btnClose.setMinimumSize(QtCore.QSize(0, 0))
self.btnClose.setLayoutDirection(QtCore.Qt.LeftToRight)
self.btnClose.setAutoDefault(False)
self.btnClose.setObjectName("btnClose")
self.horizontalLayout_3.addWidget(self.btnClose, 0, QtCore.Qt.AlignRight)
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.retranslateUi(SendPayoutDlg)
self.sw_address_source.setCurrentIndex(2)
QtCore.QMetaObject.connectSlotsByName(SendPayoutDlg)
def retranslateUi(self, SendPayoutDlg):
_translate = QtCore.QCoreApplication.translate
SendPayoutDlg.setWindowTitle(_translate("SendPayoutDlg", "Dialog"))
self.label_3.setText(_translate("SendPayoutDlg", "View as"))
self.cbo_address_source_mode.setItemText(0, _translate("SendPayoutDlg", "Wallet Account"))
self.cbo_address_source_mode.setItemText(1, _translate("SendPayoutDlg", "BIP32 Path"))
self.cbo_address_source_mode.setItemText(2, _translate("SendPayoutDlg", "Ghostnode Address"))
self.lbl_account.setText(_translate("SendPayoutDlg", "Account "))
self.btn_add_hw_account_nr.setToolTip(_translate("SendPayoutDlg", "Add new account number"))
self.btn_add_hw_account_nr.setText(_translate("SendPayoutDlg", "."))
self.lbl_hw_account_base_path.setText(_translate("SendPayoutDlg", "..."))
self.lblSourceBip32Path.setText(_translate("SendPayoutDlg", "BIP32 path"))
self.btn_src_bip32_path.setToolTip(_translate("SendPayoutDlg", "Change BIP32 path"))
self.btn_src_bip32_path.setText(_translate("SendPayoutDlg", "..."))
self.lbl_src_masternode.setText(_translate("SendPayoutDlg", "Ghostnode"))
self.btnLoadTransactions.setText(_translate("SendPayoutDlg", "Reload"))
self.btnCheckAll.setText(_translate("SendPayoutDlg", "Select All"))
self.btnUncheckAll.setText(_translate("SendPayoutDlg", "Unselect All"))
self.chbHideCollateralTx.setText(_translate("SendPayoutDlg", "Hide collateral utxos"))
self.lbl_message.setText(_translate("SendPayoutDlg", "...."))
self.btnSend.setText(_translate("SendPayoutDlg", "Prepare Transaction"))
self.btnClose.setText(_translate("SendPayoutDlg", "Close"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
SendPayoutDlg = QtWidgets.QDialog()
ui = Ui_SendPayoutDlg()
ui.setupUi(SendPayoutDlg)
SendPayoutDlg.show()
sys.exit(app.exec_())
| [
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,
13,
29937,
3812,
5314,
5759,
515,
5183,
14313,
934,
525,
1481,
29918,
6717,
29918,
29886,
1534,
29918,
11671,
29887,
29889,
1481,
29915,
13,
29937,
13,
29937,
6760,
630,
491,
29901,
10772,
17303,
29945,
3740,
775,
15299,
29871,
29945,
29889,
29929,
29889,
29906,
13,
29937,
13,
29937,
399,
25614,
29991,
2178,
3620,
1754,
297,
445,
934,
674,
367,
5714,
29991,
13,
13,
3166,
10772,
17303,
29945,
1053,
14705,
9203,
29892,
14705,
28707,
29892,
14705,
8801,
29879,
13,
13,
1990,
501,
29875,
29918,
12600,
29925,
1534,
29928,
19920,
29898,
3318,
1125,
13,
1678,
822,
6230,
29965,
29875,
29898,
1311,
29892,
15076,
29925,
1534,
29928,
19920,
1125,
13,
4706,
15076,
29925,
1534,
29928,
19920,
29889,
842,
2061,
1170,
703,
12600,
29925,
1534,
29928,
19920,
1159,
13,
4706,
15076,
29925,
1534,
29928,
19920,
29889,
21476,
29898,
29947,
29941,
29906,
29892,
29871,
29945,
29900,
29955,
29897,
13,
4706,
2159,
15644,
353,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29898,
17303,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
6572,
14373,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
6572,
14373,
29897,
13,
4706,
2159,
15644,
29889,
842,
24932,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
29270,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
7011,
2831,
6110,
29898,
12600,
29925,
1534,
29928,
19920,
29889,
2311,
15644,
2141,
5349,
7011,
2831,
6110,
3101,
13,
4706,
15076,
29925,
1534,
29928,
19920,
29889,
842,
3505,
15644,
29898,
2311,
15644,
29897,
13,
4706,
15076,
29925,
1534,
29928,
19920,
29889,
842,
3505,
29954,
6472,
10861,
29898,
5574,
29897,
13,
4706,
15076,
29925,
1534,
29928,
19920,
29889,
842,
19751,
29898,
5574,
29897,
13,
4706,
1583,
29889,
18575,
3453,
353,
14705,
8801,
29879,
29889,
29984,
29963,
3313,
3453,
29898,
12600,
29925,
1534,
29928,
19920,
29897,
13,
4706,
1583,
29889,
18575,
3453,
29889,
842,
2061,
1170,
703,
18575,
3453,
1159,
13,
4706,
1583,
29889,
29886,
12938,
29918,
2080,
353,
14705,
8801,
29879,
29889,
29984,
8801,
29898,
12600,
29925,
1534,
29928,
19920,
29897,
13,
4706,
1583,
29889,
29886,
12938,
29918,
2080,
29889,
842,
2061,
1170,
703,
29886,
12938,
29918,
2080,
1159,
13,
4706,
1583,
29889,
18575,
3453,
29918,
29946,
353,
14705,
8801,
29879,
29889,
29984,
29963,
3313,
3453,
29898,
1311,
29889,
29886,
12938,
29918,
2080,
29897,
13,
4706,
1583,
29889,
18575,
3453,
29918,
29946,
29889,
842,
21002,
29924,
1191,
1144,
29898,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29897,
13,
4706,
1583,
29889,
18575,
3453,
29918,
29946,
29889,
842,
5592,
9390,
29898,
29900,
29897,
13,
4706,
1583,
29889,
18575,
3453,
29918,
29946,
29889,
842,
2061,
1170,
703,
18575,
3453,
29918,
29946,
1159,
13,
4706,
1583,
29889,
8387,
29918,
2080,
353,
14705,
8801,
29879,
29889,
29984,
29950,
3313,
3453,
580,
13,
4706,
1583,
29889,
8387,
29918,
2080,
29889,
842,
5592,
9390,
29898,
29947,
29897,
13,
4706,
1583,
29889,
8387,
29918,
2080,
29889,
842,
2061,
1170,
703,
8387,
29918,
2080,
1159,
13,
4706,
1583,
29889,
1643,
29918,
29941,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
29886,
12938,
29918,
2080,
29897,
13,
4706,
1583,
29889,
1643,
29918,
29941,
29889,
842,
2061,
1170,
703,
1643,
29918,
29941,
1159,
13,
4706,
1583,
29889,
8387,
29918,
2080,
29889,
1202,
8801,
29898,
1311,
29889,
1643,
29918,
29941,
29897,
13,
4706,
1583,
29889,
29883,
833,
29918,
7328,
29918,
4993,
29918,
8513,
353,
14705,
8801,
29879,
29889,
29984,
26628,
29898,
1311,
29889,
29886,
12938,
29918,
2080,
29897,
13,
4706,
2159,
15644,
353,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29898,
17303,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
26262,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
26262,
29897,
13,
4706,
2159,
15644,
29889,
842,
24932,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
29270,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
7011,
2831,
6110,
29898,
1311,
29889,
29883,
833,
29918,
7328,
29918,
4993,
29918,
8513,
29889,
2311,
15644,
2141,
5349,
7011,
2831,
6110,
3101,
13,
4706,
1583,
29889,
29883,
833,
29918,
7328,
29918,
4993,
29918,
8513,
29889,
842,
3505,
15644,
29898,
2311,
15644,
29897,
13,
4706,
1583,
29889,
29883,
833,
29918,
7328,
29918,
4993,
29918,
8513,
29889,
842,
8140,
12539,
3505,
29898,
17303,
9203,
29889,
29984,
3505,
29898,
29900,
29892,
29871,
29900,
876,
13,
4706,
1583,
29889,
29883,
833,
29918,
7328,
29918,
4993,
29918,
8513,
29889,
842,
7976,
12539,
3505,
29898,
17303,
9203,
29889,
29984,
3505,
29898,
29896,
29953,
29900,
29892,
29871,
29896,
29953,
29955,
29955,
29955,
29906,
29896,
29945,
876,
13,
4706,
1583,
29889,
29883,
833,
29918,
7328,
29918,
4993,
29918,
8513,
29889,
842,
2061,
1170,
703,
29883,
833,
29918,
7328,
29918,
4993,
29918,
8513,
1159,
13,
4706,
1583,
29889,
29883,
833,
29918,
7328,
29918,
4993,
29918,
8513,
29889,
1202,
2001,
703,
1159,
13,
4706,
1583,
29889,
29883,
833,
29918,
7328,
29918,
4993,
29918,
8513,
29889,
1202,
2001,
703,
1159,
13,
4706,
1583,
29889,
29883,
833,
29918,
7328,
29918,
4993,
29918,
8513,
29889,
1202,
2001,
703,
1159,
13,
4706,
1583,
29889,
8387,
29918,
2080,
29889,
1202,
8801,
29898,
1311,
29889,
29883,
833,
29918,
7328,
29918,
4993,
29918,
8513,
29897,
13,
4706,
1583,
29889,
2774,
29918,
7328,
29918,
4993,
353,
14705,
8801,
29879,
29889,
29984,
7264,
287,
8801,
29898,
1311,
29889,
29886,
12938,
29918,
2080,
29897,
13,
4706,
2159,
15644,
353,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29898,
17303,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
7976,
12539,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
7976,
12539,
29897,
13,
4706,
2159,
15644,
29889,
842,
24932,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
29270,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
7011,
2831,
6110,
29898,
1311,
29889,
2774,
29918,
7328,
29918,
4993,
29889,
2311,
15644,
2141,
5349,
7011,
2831,
6110,
3101,
13,
4706,
1583,
29889,
2774,
29918,
7328,
29918,
4993,
29889,
842,
3505,
15644,
29898,
2311,
15644,
29897,
13,
4706,
1583,
29889,
2774,
29918,
7328,
29918,
4993,
29889,
842,
2061,
1170,
703,
2774,
29918,
7328,
29918,
4993,
1159,
13,
4706,
1583,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29896,
353,
14705,
8801,
29879,
29889,
29984,
8801,
580,
13,
4706,
2159,
15644,
353,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29898,
17303,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
7976,
12539,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
6572,
14373,
29897,
13,
4706,
2159,
15644,
29889,
842,
24932,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
29270,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
7011,
2831,
6110,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29896,
29889,
2311,
15644,
2141,
5349,
7011,
2831,
6110,
3101,
13,
4706,
1583,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29896,
29889,
842,
3505,
15644,
29898,
2311,
15644,
29897,
13,
4706,
1583,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29896,
29889,
842,
2061,
1170,
703,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29896,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29953,
353,
14705,
8801,
29879,
29889,
29984,
29950,
3313,
3453,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29896,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29953,
29889,
842,
21002,
29924,
1191,
1144,
29898,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29953,
29889,
842,
5592,
9390,
29898,
29896,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29953,
29889,
842,
2061,
1170,
703,
22672,
3453,
29918,
29953,
1159,
13,
4706,
1583,
29889,
26648,
29918,
10149,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29896,
29897,
13,
4706,
1583,
29889,
26648,
29918,
10149,
29889,
842,
2061,
1170,
703,
26648,
29918,
10149,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29953,
29889,
1202,
8801,
29898,
1311,
29889,
26648,
29918,
10149,
29897,
13,
4706,
1583,
29889,
29883,
833,
29918,
26828,
29918,
10149,
29918,
22230,
353,
14705,
8801,
29879,
29889,
29984,
26628,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29896,
29897,
13,
4706,
1583,
29889,
29883,
833,
29918,
26828,
29918,
10149,
29918,
22230,
29889,
842,
2061,
1170,
703,
29883,
833,
29918,
26828,
29918,
10149,
29918,
22230,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29953,
29889,
1202,
8801,
29898,
1311,
29889,
29883,
833,
29918,
26828,
29918,
10149,
29918,
22230,
29897,
13,
4706,
1583,
29889,
7290,
29918,
1202,
29918,
26828,
29918,
10149,
29918,
22230,
353,
14705,
8801,
29879,
29889,
29984,
12229,
3125,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29896,
29897,
13,
4706,
1583,
29889,
7290,
29918,
1202,
29918,
26828,
29918,
10149,
29918,
22230,
29889,
842,
2061,
1170,
703,
7290,
29918,
1202,
29918,
26828,
29918,
10149,
29918,
22230,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29953,
29889,
1202,
8801,
29898,
1311,
29889,
7290,
29918,
1202,
29918,
26828,
29918,
10149,
29918,
22230,
29897,
13,
4706,
26325,
261,
2001,
353,
14705,
8801,
29879,
29889,
29984,
5592,
562,
261,
2001,
29898,
29946,
29900,
29892,
29871,
29906,
29900,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
29777,
292,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
8140,
12539,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29953,
29889,
1202,
2001,
29898,
1028,
562,
261,
2001,
29897,
13,
4706,
1583,
29889,
26648,
29918,
26828,
29918,
10149,
29918,
3188,
29918,
2084,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29896,
29897,
13,
4706,
1583,
29889,
26648,
29918,
26828,
29918,
10149,
29918,
3188,
29918,
2084,
29889,
842,
2061,
1170,
703,
26648,
29918,
26828,
29918,
10149,
29918,
3188,
29918,
2084,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29953,
29889,
1202,
8801,
29898,
1311,
29889,
26648,
29918,
26828,
29918,
10149,
29918,
3188,
29918,
2084,
29897,
13,
4706,
1583,
29889,
2774,
29918,
7328,
29918,
4993,
29889,
1202,
8801,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29896,
29897,
13,
4706,
1583,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29906,
353,
14705,
8801,
29879,
29889,
29984,
8801,
580,
13,
4706,
2159,
15644,
353,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29898,
17303,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
7976,
12539,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
6572,
14373,
29897,
13,
4706,
2159,
15644,
29889,
842,
24932,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
29270,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
7011,
2831,
6110,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29906,
29889,
2311,
15644,
2141,
5349,
7011,
2831,
6110,
3101,
13,
4706,
1583,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29906,
29889,
842,
3505,
15644,
29898,
2311,
15644,
29897,
13,
4706,
1583,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29906,
29889,
842,
2061,
1170,
703,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29906,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29906,
353,
14705,
8801,
29879,
29889,
29984,
29950,
3313,
3453,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29906,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29906,
29889,
842,
21002,
29924,
1191,
1144,
29898,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29906,
29889,
842,
2061,
1170,
703,
22672,
3453,
29918,
29906,
1159,
13,
4706,
1583,
29889,
26648,
4435,
29933,
666,
29941,
29906,
2605,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29906,
29897,
13,
4706,
1583,
29889,
26648,
4435,
29933,
666,
29941,
29906,
2605,
29889,
842,
2061,
1170,
703,
26648,
4435,
29933,
666,
29941,
29906,
2605,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29906,
29889,
1202,
8801,
29898,
1311,
29889,
26648,
4435,
29933,
666,
29941,
29906,
2605,
29897,
13,
4706,
1583,
29889,
287,
29873,
29918,
4351,
29918,
29890,
666,
29941,
29906,
29918,
2084,
353,
14705,
8801,
29879,
29889,
2239,
457,
6103,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29906,
29897,
13,
4706,
2159,
15644,
353,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29898,
17303,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
26262,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
26262,
29897,
13,
4706,
2159,
15644,
29889,
842,
24932,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
29270,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
7011,
2831,
6110,
29898,
1311,
29889,
287,
29873,
29918,
4351,
29918,
29890,
666,
29941,
29906,
29918,
2084,
29889,
2311,
15644,
2141,
5349,
7011,
2831,
6110,
3101,
13,
4706,
1583,
29889,
287,
29873,
29918,
4351,
29918,
29890,
666,
29941,
29906,
29918,
2084,
29889,
842,
3505,
15644,
29898,
2311,
15644,
29897,
13,
4706,
1583,
29889,
287,
29873,
29918,
4351,
29918,
29890,
666,
29941,
29906,
29918,
2084,
29889,
842,
7976,
12539,
3505,
29898,
17303,
9203,
29889,
29984,
3505,
29898,
29896,
29900,
29900,
29892,
29871,
29896,
29953,
29955,
29955,
29955,
29906,
29896,
29945,
876,
13,
4706,
1583,
29889,
287,
29873,
29918,
4351,
29918,
29890,
666,
29941,
29906,
29918,
2084,
29889,
842,
5568,
10654,
703,
7042,
29899,
2780,
29901,
3578,
21012,
29936,
1159,
13,
4706,
1583,
29889,
287,
29873,
29918,
4351,
29918,
29890,
666,
29941,
29906,
29918,
2084,
29889,
842,
6359,
11730,
29898,
5574,
29897,
13,
4706,
1583,
29889,
287,
29873,
29918,
4351,
29918,
29890,
666,
29941,
29906,
29918,
2084,
29889,
842,
2061,
1170,
703,
287,
29873,
29918,
4351,
29918,
29890,
666,
29941,
29906,
29918,
2084,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29906,
29889,
1202,
8801,
29898,
1311,
29889,
287,
29873,
29918,
4351,
29918,
29890,
666,
29941,
29906,
29918,
2084,
29897,
13,
4706,
1583,
29889,
7290,
29918,
4351,
29918,
29890,
666,
29941,
29906,
29918,
2084,
353,
14705,
8801,
29879,
29889,
29984,
12229,
3125,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29906,
29897,
13,
4706,
1583,
29889,
7290,
29918,
4351,
29918,
29890,
666,
29941,
29906,
29918,
2084,
29889,
842,
2061,
1170,
703,
7290,
29918,
4351,
29918,
29890,
666,
29941,
29906,
29918,
2084,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29906,
29889,
1202,
8801,
29898,
1311,
29889,
7290,
29918,
4351,
29918,
29890,
666,
29941,
29906,
29918,
2084,
29897,
13,
4706,
26325,
261,
2001,
29896,
353,
14705,
8801,
29879,
29889,
29984,
5592,
562,
261,
2001,
29898,
29946,
29900,
29892,
29871,
29906,
29900,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
29777,
292,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
8140,
12539,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29906,
29889,
1202,
2001,
29898,
1028,
562,
261,
2001,
29896,
29897,
13,
4706,
1583,
29889,
2774,
29918,
7328,
29918,
4993,
29889,
1202,
8801,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29906,
29897,
13,
4706,
1583,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29941,
353,
14705,
8801,
29879,
29889,
29984,
8801,
580,
13,
4706,
1583,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29941,
29889,
842,
2061,
1170,
703,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29941,
1159,
13,
4706,
1583,
29889,
22672,
3453,
353,
14705,
8801,
29879,
29889,
29984,
29950,
3313,
3453,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29941,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29889,
842,
21002,
29924,
1191,
1144,
29898,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29889,
842,
2061,
1170,
703,
22672,
3453,
1159,
13,
4706,
1583,
29889,
26648,
29918,
4351,
29918,
8247,
725,
356,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29941,
29897,
13,
4706,
1583,
29889,
26648,
29918,
4351,
29918,
8247,
725,
356,
29889,
842,
2061,
1170,
703,
26648,
29918,
4351,
29918,
8247,
725,
356,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29889,
1202,
8801,
29898,
1311,
29889,
26648,
29918,
4351,
29918,
8247,
725,
356,
29897,
13,
4706,
1583,
29889,
29883,
833,
29918,
4351,
29918,
8247,
725,
2631,
353,
14705,
8801,
29879,
29889,
29984,
26628,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29941,
29897,
13,
4706,
1583,
29889,
29883,
833,
29918,
4351,
29918,
8247,
725,
2631,
29889,
842,
2061,
1170,
703,
29883,
833,
29918,
4351,
29918,
8247,
725,
2631,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29889,
1202,
8801,
29898,
1311,
29889,
29883,
833,
29918,
4351,
29918,
8247,
725,
2631,
29897,
13,
4706,
26325,
261,
2001,
29906,
353,
14705,
8801,
29879,
29889,
29984,
5592,
562,
261,
2001,
29898,
29946,
29900,
29892,
29871,
29906,
29900,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
29777,
292,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
8140,
12539,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29889,
1202,
2001,
29898,
1028,
562,
261,
2001,
29906,
29897,
13,
4706,
1583,
29889,
2774,
29918,
7328,
29918,
4993,
29889,
1202,
8801,
29898,
1311,
29889,
9970,
29887,
29918,
7328,
29918,
4993,
29918,
29941,
29897,
13,
4706,
1583,
29889,
8387,
29918,
2080,
29889,
1202,
8801,
29898,
1311,
29889,
2774,
29918,
7328,
29918,
4993,
29897,
13,
4706,
1583,
29889,
7290,
5896,
4300,
7387,
353,
14705,
8801,
29879,
29889,
29984,
27031,
3125,
29898,
1311,
29889,
29886,
12938,
29918,
2080,
29897,
13,
4706,
1583,
29889,
7290,
5896,
4300,
7387,
29889,
842,
12300,
4592,
29898,
8824,
29897,
13,
4706,
1583,
29889,
7290,
5896,
4300,
7387,
29889,
842,
2061,
1170,
703,
7290,
5896,
4300,
7387,
1159,
13,
4706,
1583,
29889,
8387,
29918,
2080,
29889,
1202,
8801,
29898,
1311,
29889,
7290,
5896,
4300,
7387,
29897,
13,
4706,
26325,
261,
2001,
29941,
353,
14705,
8801,
29879,
29889,
29984,
5592,
562,
261,
2001,
29898,
29946,
29900,
29892,
29871,
29906,
29900,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
29777,
292,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
8140,
12539,
29897,
13,
4706,
1583,
29889,
8387,
29918,
2080,
29889,
1202,
2001,
29898,
1028,
562,
261,
2001,
29941,
29897,
13,
4706,
1583,
29889,
18575,
3453,
29918,
29946,
29889,
1202,
3453,
29898,
1311,
29889,
8387,
29918,
2080,
29897,
13,
4706,
1583,
29889,
18575,
3453,
29889,
1202,
8801,
29898,
1311,
29889,
29886,
12938,
29918,
2080,
29897,
13,
4706,
1583,
29889,
5451,
357,
353,
14705,
8801,
29879,
29889,
29984,
18772,
357,
29898,
12600,
29925,
1534,
29928,
19920,
29897,
13,
4706,
1583,
29889,
5451,
357,
29889,
842,
25231,
29898,
17303,
9203,
29889,
17303,
29889,
29270,
29897,
13,
4706,
1583,
29889,
5451,
357,
29889,
842,
2061,
1170,
703,
5451,
357,
1159,
13,
4706,
1583,
29889,
3396,
29918,
8030,
353,
14705,
8801,
29879,
29889,
29984,
8801,
29898,
1311,
29889,
5451,
357,
29897,
13,
4706,
1583,
29889,
3396,
29918,
8030,
29889,
842,
2061,
1170,
703,
3396,
29918,
8030,
1159,
13,
4706,
1583,
29889,
18575,
3453,
29918,
29906,
353,
14705,
8801,
29879,
29889,
29984,
29963,
3313,
3453,
29898,
1311,
29889,
3396,
29918,
8030,
29897,
13,
4706,
1583,
29889,
18575,
3453,
29918,
29906,
29889,
842,
21002,
29924,
1191,
1144,
29898,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29897,
13,
4706,
1583,
29889,
18575,
3453,
29918,
29906,
29889,
842,
5592,
9390,
29898,
29906,
29897,
13,
4706,
1583,
29889,
18575,
3453,
29918,
29906,
29889,
842,
2061,
1170,
703,
18575,
3453,
29918,
29906,
1159,
13,
4706,
1583,
29889,
26648,
29918,
4906,
29918,
29906,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
3396,
29918,
8030,
29897,
13,
4706,
1583,
29889,
26648,
29918,
4906,
29918,
29906,
29889,
12038,
703,
1159,
13,
4706,
1583,
29889,
26648,
29918,
4906,
29918,
29906,
29889,
842,
6585,
25865,
6595,
29879,
29898,
5574,
29897,
13,
4706,
1583,
29889,
26648,
29918,
4906,
29918,
29906,
29889,
12038,
4074,
2467,
15675,
29898,
17303,
9203,
29889,
17303,
29889,
6595,
29879,
6638,
1821,
2059,
14346,
29989,
17303,
9203,
29889,
17303,
29889,
1626,
3549,
519,
2059,
14346,
29897,
13,
4706,
1583,
29889,
26648,
29918,
4906,
29918,
29906,
29889,
842,
2061,
1170,
703,
26648,
29918,
4906,
29918,
29906,
1159,
13,
4706,
1583,
29889,
18575,
3453,
29918,
29906,
29889,
1202,
8801,
29898,
1311,
29889,
26648,
29918,
4906,
29918,
29906,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29946,
353,
14705,
8801,
29879,
29889,
29984,
29950,
3313,
3453,
580,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29946,
29889,
842,
21002,
29924,
1191,
1144,
6278,
29896,
29892,
29871,
29947,
29892,
448,
29896,
29892,
448,
29896,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29946,
29889,
842,
5592,
9390,
29898,
29953,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29946,
29889,
842,
2061,
1170,
703,
22672,
3453,
29918,
29946,
1159,
13,
4706,
1583,
29889,
7290,
5596,
3596,
353,
14705,
8801,
29879,
29889,
29984,
12229,
3125,
29898,
1311,
29889,
3396,
29918,
8030,
29897,
13,
4706,
1583,
29889,
7290,
5596,
3596,
29889,
842,
12229,
29911,
666,
703,
1159,
13,
4706,
1583,
29889,
7290,
5596,
3596,
29889,
842,
12492,
3505,
29898,
17303,
9203,
29889,
29984,
3505,
29898,
29896,
29906,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
7290,
5596,
3596,
29889,
842,
12229,
3125,
5568,
29898,
17303,
9203,
29889,
17303,
29889,
12229,
3125,
1626,
29933,
267,
680,
12492,
29897,
13,
4706,
1583,
29889,
7290,
5596,
3596,
29889,
842,
2061,
1170,
703,
7290,
5596,
3596,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29946,
29889,
1202,
8801,
29898,
1311,
29889,
7290,
5596,
3596,
29897,
13,
4706,
1583,
29889,
7290,
2525,
3198,
3596,
353,
14705,
8801,
29879,
29889,
29984,
12229,
3125,
29898,
1311,
29889,
3396,
29918,
8030,
29897,
13,
4706,
1583,
29889,
7290,
2525,
3198,
3596,
29889,
842,
12229,
29911,
666,
703,
1159,
13,
4706,
1583,
29889,
7290,
2525,
3198,
3596,
29889,
842,
12492,
3505,
29898,
17303,
9203,
29889,
29984,
3505,
29898,
29896,
29906,
29892,
29871,
29896,
29906,
876,
13,
4706,
1583,
29889,
7290,
2525,
3198,
3596,
29889,
842,
12229,
3125,
5568,
29898,
17303,
9203,
29889,
17303,
29889,
12229,
3125,
1626,
29933,
267,
680,
12492,
29897,
13,
4706,
1583,
29889,
7290,
2525,
3198,
3596,
29889,
842,
2061,
1170,
703,
7290,
2525,
3198,
3596,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29946,
29889,
1202,
8801,
29898,
1311,
29889,
7290,
2525,
3198,
3596,
29897,
13,
4706,
1583,
29889,
305,
29890,
29950,
680,
28377,
1008,
284,
29911,
29916,
353,
14705,
8801,
29879,
29889,
29984,
28360,
29898,
1311,
29889,
3396,
29918,
8030,
29897,
13,
4706,
1583,
29889,
305,
29890,
29950,
680,
28377,
1008,
284,
29911,
29916,
29889,
842,
5568,
10654,
703,
1159,
13,
4706,
1583,
29889,
305,
29890,
29950,
680,
28377,
1008,
284,
29911,
29916,
29889,
842,
2061,
1170,
703,
305,
29890,
29950,
680,
28377,
1008,
284,
29911,
29916,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29946,
29889,
1202,
8801,
29898,
1311,
29889,
305,
29890,
29950,
680,
28377,
1008,
284,
29911,
29916,
29897,
13,
4706,
1583,
29889,
26648,
29918,
4906,
353,
14705,
8801,
29879,
29889,
2239,
1107,
29898,
1311,
29889,
3396,
29918,
8030,
29897,
13,
4706,
1583,
29889,
26648,
29918,
4906,
29889,
842,
5568,
10654,
703,
9264,
29899,
1563,
29901,
29906,
29900,
1756,
10436,
29876,
29908,
13,
29908,
5657,
29899,
2311,
29901,
29896,
29896,
1756,
10436,
29876,
29908,
13,
29908,
7042,
29899,
2780,
29901,
15552,
29890,
29898,
29945,
29953,
29892,
29871,
29896,
29947,
29896,
29892,
29871,
29906,
29945,
29945,
416,
29905,
29876,
29908,
13,
29908,
2780,
29901,
15552,
29890,
29898,
29906,
29945,
29945,
29892,
29871,
29906,
29945,
29945,
29892,
29871,
29906,
29945,
29945,
416,
1159,
13,
4706,
1583,
29889,
26648,
29918,
4906,
29889,
842,
14463,
29956,
2390,
29898,
8824,
29897,
13,
4706,
1583,
29889,
26648,
29918,
4906,
29889,
842,
6585,
25865,
6595,
29879,
29898,
5574,
29897,
13,
4706,
1583,
29889,
26648,
29918,
4906,
29889,
12038,
4074,
2467,
15675,
29898,
17303,
9203,
29889,
17303,
29889,
6595,
29879,
6638,
1821,
2059,
14346,
29989,
17303,
9203,
29889,
17303,
29889,
1626,
3549,
519,
2059,
14346,
29897,
13,
4706,
1583,
29889,
26648,
29918,
4906,
29889,
842,
2061,
1170,
703,
26648,
29918,
4906,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29946,
29889,
1202,
8801,
29898,
1311,
29889,
26648,
29918,
4906,
29897,
13,
4706,
26325,
261,
2001,
29946,
353,
14705,
8801,
29879,
29889,
29984,
5592,
562,
261,
2001,
29898,
29946,
29900,
29892,
29871,
29906,
29900,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
29777,
292,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
8140,
12539,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29946,
29889,
1202,
2001,
29898,
1028,
562,
261,
2001,
29946,
29897,
13,
4706,
1583,
29889,
18575,
3453,
29918,
29906,
29889,
1202,
3453,
29898,
1311,
29889,
22672,
3453,
29918,
29946,
29897,
13,
4706,
1583,
29889,
18125,
353,
14705,
8801,
29879,
29889,
29984,
3562,
1043,
29898,
1311,
29889,
3396,
29918,
8030,
29897,
13,
4706,
1583,
29889,
18125,
29889,
842,
3505,
3253,
5143,
15644,
29898,
17303,
8801,
29879,
29889,
29984,
9118,
10463,
13799,
29889,
3253,
5143,
1762,
21002,
2951,
6730,
8964,
29897,
13,
4706,
1583,
29889,
18125,
29889,
842,
15097,
28100,
29898,
17303,
8801,
29879,
29889,
29984,
9118,
2001,
1043,
29889,
3549,
10661,
29897,
13,
4706,
1583,
29889,
18125,
29889,
842,
8964,
5756,
29898,
5574,
29897,
13,
4706,
1583,
29889,
18125,
29889,
842,
13685,
292,
10861,
29898,
8824,
29897,
13,
4706,
1583,
29889,
18125,
29889,
842,
2061,
1170,
703,
18125,
1159,
13,
4706,
1583,
29889,
18125,
29889,
18575,
7850,
2141,
842,
12911,
29898,
8824,
29897,
13,
4706,
1583,
29889,
18125,
29889,
18575,
7850,
2141,
842,
29907,
6151,
9382,
13438,
1666,
7093,
29898,
5574,
29897,
13,
4706,
1583,
29889,
18125,
29889,
18575,
7850,
2141,
842,
16382,
4366,
2008,
1953,
29898,
8824,
29897,
13,
4706,
1583,
29889,
18575,
3453,
29918,
29906,
29889,
1202,
8801,
29898,
1311,
29889,
18125,
29897,
13,
4706,
1583,
29889,
7854,
29918,
8030,
29896,
353,
14705,
8801,
29879,
29889,
29984,
8801,
29898,
1311,
29889,
5451,
357,
29897,
13,
4706,
2159,
15644,
353,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29898,
17303,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
6572,
14373,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
29777,
292,
29897,
13,
4706,
2159,
15644,
29889,
842,
24932,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
29270,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
7011,
2831,
6110,
29898,
1311,
29889,
7854,
29918,
8030,
29896,
29889,
2311,
15644,
2141,
5349,
7011,
2831,
6110,
3101,
13,
4706,
1583,
29889,
7854,
29918,
8030,
29896,
29889,
842,
3505,
15644,
29898,
2311,
15644,
29897,
13,
4706,
1583,
29889,
7854,
29918,
8030,
29896,
29889,
842,
2061,
1170,
703,
7854,
29918,
8030,
29896,
1159,
13,
4706,
1583,
29889,
18575,
3453,
29918,
29941,
353,
14705,
8801,
29879,
29889,
29984,
29963,
3313,
3453,
29898,
1311,
29889,
7854,
29918,
8030,
29896,
29897,
13,
4706,
1583,
29889,
18575,
3453,
29918,
29941,
29889,
842,
21002,
29924,
1191,
1144,
29898,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
29871,
29900,
29897,
13,
4706,
1583,
29889,
18575,
3453,
29918,
29941,
29889,
842,
2061,
1170,
703,
18575,
3453,
29918,
29941,
1159,
13,
4706,
1583,
29889,
7854,
29918,
8030,
353,
14705,
8801,
29879,
29889,
29984,
4308,
29898,
1311,
29889,
7854,
29918,
8030,
29896,
29897,
13,
4706,
1583,
29889,
7854,
29918,
8030,
29889,
842,
4308,
24111,
29898,
17303,
8801,
29879,
29889,
29984,
4308,
29889,
855,
29891,
839,
7490,
29897,
13,
4706,
1583,
29889,
7854,
29918,
8030,
29889,
842,
2061,
1170,
703,
7854,
29918,
8030,
1159,
13,
4706,
1583,
29889,
18575,
3453,
29918,
29941,
29889,
1202,
8801,
29898,
1311,
29889,
7854,
29918,
8030,
29897,
13,
4706,
1583,
29889,
18575,
3453,
29889,
1202,
8801,
29898,
1311,
29889,
5451,
357,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29941,
353,
14705,
8801,
29879,
29889,
29984,
29950,
3313,
3453,
580,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29941,
29889,
842,
2061,
1170,
703,
22672,
3453,
29918,
29941,
1159,
13,
4706,
26325,
261,
2001,
29945,
353,
14705,
8801,
29879,
29889,
29984,
5592,
562,
261,
2001,
29898,
29946,
29900,
29892,
29871,
29906,
29900,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
29777,
292,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
8140,
12539,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29941,
29889,
1202,
2001,
29898,
1028,
562,
261,
2001,
29945,
29897,
13,
4706,
1583,
29889,
7290,
12600,
353,
14705,
8801,
29879,
29889,
29984,
27031,
3125,
29898,
12600,
29925,
1534,
29928,
19920,
29897,
13,
4706,
2159,
15644,
353,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29898,
17303,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
8140,
12539,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
8140,
12539,
29897,
13,
4706,
2159,
15644,
29889,
842,
24932,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
29270,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
7011,
2831,
6110,
29898,
1311,
29889,
7290,
12600,
29889,
2311,
15644,
2141,
5349,
7011,
2831,
6110,
3101,
13,
4706,
1583,
29889,
7290,
12600,
29889,
842,
3505,
15644,
29898,
2311,
15644,
29897,
13,
4706,
1583,
29889,
7290,
12600,
29889,
842,
8140,
12539,
3505,
29898,
17303,
9203,
29889,
29984,
3505,
29898,
29906,
29900,
29900,
29892,
29871,
29900,
876,
13,
4706,
1583,
29889,
7290,
12600,
29889,
842,
7976,
12539,
3505,
29898,
17303,
9203,
29889,
29984,
3505,
29898,
29906,
29900,
29900,
29892,
29871,
29896,
29953,
29955,
29955,
29955,
29906,
29896,
29945,
876,
13,
4706,
1583,
29889,
7290,
12600,
29889,
842,
12300,
4592,
29898,
8824,
29897,
13,
4706,
1583,
29889,
7290,
12600,
29889,
842,
2061,
1170,
703,
7290,
12600,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29941,
29889,
1202,
8801,
29898,
1311,
29889,
7290,
12600,
29897,
13,
4706,
26325,
261,
2001,
29953,
353,
14705,
8801,
29879,
29889,
29984,
5592,
562,
261,
2001,
29898,
29946,
29900,
29892,
29871,
29906,
29900,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
29777,
292,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
8140,
12539,
29897,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29941,
29889,
1202,
2001,
29898,
1028,
562,
261,
2001,
29953,
29897,
13,
4706,
1583,
29889,
7290,
11123,
353,
14705,
8801,
29879,
29889,
29984,
27031,
3125,
29898,
12600,
29925,
1534,
29928,
19920,
29897,
13,
4706,
2159,
15644,
353,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29898,
17303,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
7976,
12539,
29892,
14705,
8801,
29879,
29889,
29984,
3505,
15644,
29889,
26262,
29897,
13,
4706,
2159,
15644,
29889,
842,
24932,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
29270,
855,
10301,
29898,
29900,
29897,
13,
4706,
2159,
15644,
29889,
842,
7011,
2831,
6110,
29898,
1311,
29889,
7290,
11123,
29889,
2311,
15644,
2141,
5349,
7011,
2831,
6110,
3101,
13,
4706,
1583,
29889,
7290,
11123,
29889,
842,
3505,
15644,
29898,
2311,
15644,
29897,
13,
4706,
1583,
29889,
7290,
11123,
29889,
842,
8140,
12539,
3505,
29898,
17303,
9203,
29889,
29984,
3505,
29898,
29900,
29892,
29871,
29900,
876,
13,
4706,
1583,
29889,
7290,
11123,
29889,
842,
3453,
21602,
29898,
17303,
9203,
29889,
17303,
29889,
8091,
1762,
7341,
29897,
13,
4706,
1583,
29889,
7290,
11123,
29889,
842,
12300,
4592,
29898,
8824,
29897,
13,
4706,
1583,
29889,
7290,
11123,
29889,
842,
2061,
1170,
703,
7290,
11123,
1159,
13,
4706,
1583,
29889,
22672,
3453,
29918,
29941,
29889,
1202,
8801,
29898,
1311,
29889,
7290,
11123,
29892,
29871,
29900,
29892,
14705,
9203,
29889,
17303,
29889,
2499,
647,
7341,
29897,
13,
4706,
1583,
29889,
18575,
3453,
29889,
1202,
3453,
29898,
1311,
29889,
22672,
3453,
29918,
29941,
29897,
13,
13,
4706,
1583,
29889,
276,
21652,
29965,
29875,
29898,
12600,
29925,
1534,
29928,
19920,
29897,
13,
4706,
1583,
29889,
2774,
29918,
7328,
29918,
4993,
29889,
842,
7583,
3220,
29898,
29906,
29897,
13,
4706,
14705,
9203,
29889,
29984,
19346,
2061,
29889,
6915,
16973,
1862,
2059,
1170,
29898,
12600,
29925,
1534,
29928,
19920,
29897,
13,
13,
1678,
822,
337,
21652,
29965,
29875,
29898,
1311,
29892,
15076,
29925,
1534,
29928,
19920,
1125,
13,
4706,
903,
21652,
353,
14705,
9203,
29889,
29984,
9203,
4873,
29889,
21652,
13,
4706,
15076,
29925,
1534,
29928,
19920,
29889,
842,
5907,
7030,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
7647,
5783,
13,
4706,
1583,
29889,
1643,
29918,
29941,
29889,
12038,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
1043,
408,
5783,
13,
4706,
1583,
29889,
29883,
833,
29918,
7328,
29918,
4993,
29918,
8513,
29889,
842,
2001,
1626,
29898,
29900,
29892,
903,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
29956,
284,
1026,
16535,
5783,
13,
4706,
1583,
29889,
29883,
833,
29918,
7328,
29918,
4993,
29918,
8513,
29889,
842,
2001,
1626,
29898,
29896,
29892,
903,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
29933,
5690,
29941,
29906,
10802,
5783,
13,
4706,
1583,
29889,
29883,
833,
29918,
7328,
29918,
4993,
29918,
8513,
29889,
842,
2001,
1626,
29898,
29906,
29892,
903,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
29954,
3069,
3177,
16428,
5783,
13,
4706,
1583,
29889,
26648,
29918,
10149,
29889,
12038,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
10601,
29871,
376,
876,
13,
4706,
1583,
29889,
7290,
29918,
1202,
29918,
26828,
29918,
10149,
29918,
22230,
29889,
842,
12229,
29911,
666,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
2528,
716,
3633,
1353,
5783,
13,
4706,
1583,
29889,
7290,
29918,
1202,
29918,
26828,
29918,
10149,
29918,
22230,
29889,
12038,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
1213,
876,
13,
4706,
1583,
29889,
26648,
29918,
26828,
29918,
10149,
29918,
3188,
29918,
2084,
29889,
12038,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
29804,
5783,
13,
4706,
1583,
29889,
26648,
4435,
29933,
666,
29941,
29906,
2605,
29889,
12038,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
29933,
5690,
29941,
29906,
2224,
5783,
13,
4706,
1583,
29889,
7290,
29918,
4351,
29918,
29890,
666,
29941,
29906,
29918,
2084,
29889,
842,
12229,
29911,
666,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
7277,
350,
5690,
29941,
29906,
2224,
5783,
13,
4706,
1583,
29889,
7290,
29918,
4351,
29918,
29890,
666,
29941,
29906,
29918,
2084,
29889,
12038,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
29804,
5783,
13,
4706,
1583,
29889,
26648,
29918,
4351,
29918,
8247,
725,
356,
29889,
12038,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
29954,
3069,
3177,
5783,
13,
4706,
1583,
29889,
7290,
5896,
4300,
7387,
29889,
12038,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
29934,
7078,
328,
5783,
13,
4706,
1583,
29889,
7290,
5596,
3596,
29889,
12038,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
3549,
2178,
5783,
13,
4706,
1583,
29889,
7290,
2525,
3198,
3596,
29889,
12038,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
2525,
2622,
2178,
5783,
13,
4706,
1583,
29889,
305,
29890,
29950,
680,
28377,
1008,
284,
29911,
29916,
29889,
12038,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
29950,
680,
5321,
1008,
284,
3477,
29916,
359,
5783,
13,
4706,
1583,
29889,
26648,
29918,
4906,
29889,
12038,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
3045,
5783,
13,
4706,
1583,
29889,
7290,
12600,
29889,
12038,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
29925,
3445,
598,
4103,
2467,
5783,
13,
4706,
1583,
29889,
7290,
11123,
29889,
12038,
7373,
21652,
703,
12600,
29925,
1534,
29928,
19920,
613,
376,
11123,
5783,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
1053,
10876,
13,
1678,
623,
353,
14705,
8801,
29879,
29889,
29984,
4873,
29898,
9675,
29889,
19218,
29897,
13,
1678,
15076,
29925,
1534,
29928,
19920,
353,
14705,
8801,
29879,
29889,
29984,
7647,
580,
13,
1678,
14313,
353,
501,
29875,
29918,
12600,
29925,
1534,
29928,
19920,
580,
13,
1678,
14313,
29889,
14669,
29965,
29875,
29898,
12600,
29925,
1534,
29928,
19920,
29897,
13,
1678,
15076,
29925,
1534,
29928,
19920,
29889,
4294,
580,
13,
1678,
10876,
29889,
13322,
29898,
932,
29889,
4258,
29918,
3101,
13,
13,
2
] |
telethon/tl/functions/stickers.py | polisitni1/DogeClickBot | 0 | 2388 | """File generated by TLObjects' generator. All changes will be ERASED"""
from ...tl.tlobject import TLRequest
from typing import Optional, List, Union, TYPE_CHECKING
import os
import struct
if TYPE_CHECKING:
from ...tl.types import TypeInputStickerSet, TypeInputUser, TypeInputStickerSetItem, TypeInputDocument
class AddStickerToSetRequest(TLRequest):
CONSTRUCTOR_ID = 0x8653febe
SUBCLASS_OF_ID = 0x9b704a5a
def __init__(self, stickerset, sticker):
"""
:param TypeInputStickerSet stickerset:
:param TypeInputStickerSetItem sticker:
:returns messages.StickerSet: Instance of StickerSet.
"""
self.stickerset = stickerset # type: TypeInputStickerSet
self.sticker = sticker # type: TypeInputStickerSetItem
def to_dict(self):
return {
'_': 'AddStickerToSetRequest',
'stickerset': None if self.stickerset is None else self.stickerset.to_dict(),
'sticker': None if self.sticker is None else self.sticker.to_dict()
}
def __bytes__(self):
return b''.join((
b'\xbe\xfeS\x86',
bytes(self.stickerset),
bytes(self.sticker),
))
@classmethod
def from_reader(cls, reader):
_stickerset = reader.tgread_object()
_sticker = reader.tgread_object()
return cls(stickerset=_stickerset, sticker=_sticker)
class ChangeStickerPositionRequest(TLRequest):
CONSTRUCTOR_ID = 0xffb6d4ca
SUBCLASS_OF_ID = 0x9b704a5a
def __init__(self, sticker, position):
"""
:param TypeInputDocument sticker:
:param int position:
:returns messages.StickerSet: Instance of StickerSet.
"""
self.sticker = sticker # type: TypeInputDocument
self.position = position # type: int
def to_dict(self):
return {
'_': 'ChangeStickerPositionRequest',
'sticker': None if self.sticker is None else self.sticker.to_dict(),
'position': self.position
}
def __bytes__(self):
return b''.join((
b'\xca\xd4\xb6\xff',
bytes(self.sticker),
struct.pack('<i', self.position),
))
@classmethod
def from_reader(cls, reader):
_sticker = reader.tgread_object()
_position = reader.read_int()
return cls(sticker=_sticker, position=_position)
class CreateStickerSetRequest(TLRequest):
CONSTRUCTOR_ID = 0x9bd86e6a
SUBCLASS_OF_ID = 0x9b704a5a
def __init__(self, user_id, title, short_name, stickers, masks=None):
"""
:param TypeInputUser user_id:
:param str title:
:param str short_name:
:param List[TypeInputStickerSetItem] stickers:
:param Optional[bool] masks:
:returns messages.StickerSet: Instance of StickerSet.
"""
self.user_id = user_id # type: TypeInputUser
self.title = title # type: str
self.short_name = short_name # type: str
self.stickers = stickers # type: List[TypeInputStickerSetItem]
self.masks = masks # type: Optional[bool]
async def resolve(self, client, utils):
self.user_id = utils.get_input_user(await client.get_input_entity(self.user_id))
def to_dict(self):
return {
'_': 'CreateStickerSetRequest',
'user_id': None if self.user_id is None else self.user_id.to_dict(),
'title': self.title,
'short_name': self.short_name,
'stickers': [] if self.stickers is None else [None if x is None else x.to_dict() for x in self.stickers],
'masks': self.masks
}
def __bytes__(self):
return b''.join((
b'jn\xd8\x9b',
struct.pack('<I', (0 if self.masks is None or self.masks is False else 1)),
bytes(self.user_id),
self.serialize_bytes(self.title),
self.serialize_bytes(self.short_name),
b'\x15\xc4\xb5\x1c',struct.pack('<i', len(self.stickers)),b''.join(bytes(x) for x in self.stickers),
))
@classmethod
def from_reader(cls, reader):
flags = reader.read_int()
_masks = bool(flags & 1)
_user_id = reader.tgread_object()
_title = reader.tgread_string()
_short_name = reader.tgread_string()
reader.read_int()
_stickers = []
for _ in range(reader.read_int()):
_x = reader.tgread_object()
_stickers.append(_x)
return cls(user_id=_user_id, title=_title, short_name=_short_name, stickers=_stickers, masks=_masks)
class RemoveStickerFromSetRequest(TLRequest):
CONSTRUCTOR_ID = 0xf7760f51
SUBCLASS_OF_ID = 0x9b704a5a
def __init__(self, sticker):
"""
:param TypeInputDocument sticker:
:returns messages.StickerSet: Instance of StickerSet.
"""
self.sticker = sticker # type: TypeInputDocument
def to_dict(self):
return {
'_': 'RemoveStickerFromSetRequest',
'sticker': None if self.sticker is None else self.sticker.to_dict()
}
def __bytes__(self):
return b''.join((
b'Q\x0fv\xf7',
bytes(self.sticker),
))
@classmethod
def from_reader(cls, reader):
_sticker = reader.tgread_object()
return cls(sticker=_sticker)
| [
1,
9995,
2283,
5759,
491,
323,
29931,
12724,
29915,
15299,
29889,
2178,
3620,
674,
367,
382,
4717,
1660,
29928,
15945,
29908,
13,
3166,
2023,
15206,
29889,
29873,
417,
1675,
1053,
323,
29931,
3089,
13,
3166,
19229,
1053,
28379,
29892,
2391,
29892,
7761,
29892,
323,
6959,
29918,
3210,
16658,
4214,
13,
5215,
2897,
13,
5215,
2281,
13,
361,
323,
6959,
29918,
3210,
16658,
4214,
29901,
13,
1678,
515,
2023,
15206,
29889,
8768,
1053,
5167,
4290,
855,
6541,
2697,
29892,
5167,
4290,
2659,
29892,
5167,
4290,
855,
6541,
2697,
2001,
29892,
5167,
4290,
6268,
13,
13,
13,
13,
1990,
3462,
855,
6541,
1762,
2697,
3089,
29898,
14632,
3089,
1125,
13,
1678,
8707,
10810,
29965,
1783,
1955,
29918,
1367,
353,
29871,
29900,
29916,
29947,
29953,
29945,
29941,
29888,
774,
29872,
13,
1678,
20134,
5371,
4375,
1799,
29918,
9800,
29918,
1367,
353,
29871,
29900,
29916,
29929,
29890,
29955,
29900,
29946,
29874,
29945,
29874,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
12070,
24197,
29892,
380,
6541,
1125,
13,
4706,
9995,
13,
4706,
584,
3207,
5167,
4290,
855,
6541,
2697,
12070,
24197,
29901,
13,
4706,
584,
3207,
5167,
4290,
855,
6541,
2697,
2001,
380,
6541,
29901,
13,
13,
4706,
584,
18280,
7191,
29889,
855,
6541,
2697,
29901,
2799,
749,
310,
624,
6541,
2697,
29889,
13,
4706,
9995,
13,
4706,
1583,
29889,
303,
860,
24197,
353,
12070,
24197,
29871,
396,
1134,
29901,
5167,
4290,
855,
6541,
2697,
13,
4706,
1583,
29889,
303,
6541,
353,
380,
6541,
29871,
396,
1134,
29901,
5167,
4290,
855,
6541,
2697,
2001,
13,
13,
1678,
822,
304,
29918,
8977,
29898,
1311,
1125,
13,
4706,
736,
426,
13,
9651,
22868,
2396,
525,
2528,
855,
6541,
1762,
2697,
3089,
742,
13,
9651,
525,
303,
860,
24197,
2396,
6213,
565,
1583,
29889,
303,
860,
24197,
338,
6213,
1683,
1583,
29889,
303,
860,
24197,
29889,
517,
29918,
8977,
3285,
13,
9651,
525,
303,
6541,
2396,
6213,
565,
1583,
29889,
303,
6541,
338,
6213,
1683,
1583,
29889,
303,
6541,
29889,
517,
29918,
8977,
580,
13,
4706,
500,
13,
13,
1678,
822,
4770,
13193,
12035,
1311,
1125,
13,
4706,
736,
289,
29915,
4286,
7122,
3552,
13,
9651,
289,
12764,
29916,
915,
29905,
29916,
1725,
29903,
29905,
29916,
29947,
29953,
742,
13,
9651,
6262,
29898,
1311,
29889,
303,
860,
24197,
511,
13,
9651,
6262,
29898,
1311,
29889,
303,
6541,
511,
13,
308,
876,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
515,
29918,
16950,
29898,
25932,
29892,
9591,
1125,
13,
4706,
903,
303,
860,
24197,
353,
9591,
29889,
29873,
29887,
949,
29918,
3318,
580,
13,
4706,
903,
303,
6541,
353,
9591,
29889,
29873,
29887,
949,
29918,
3318,
580,
13,
4706,
736,
1067,
29879,
29898,
303,
860,
24197,
29922,
29918,
303,
860,
24197,
29892,
380,
6541,
29922,
29918,
303,
6541,
29897,
13,
13,
13,
1990,
10726,
855,
6541,
8003,
3089,
29898,
14632,
3089,
1125,
13,
1678,
8707,
10810,
29965,
1783,
1955,
29918,
1367,
353,
29871,
29900,
29916,
600,
29890,
29953,
29881,
29946,
1113,
13,
1678,
20134,
5371,
4375,
1799,
29918,
9800,
29918,
1367,
353,
29871,
29900,
29916,
29929,
29890,
29955,
29900,
29946,
29874,
29945,
29874,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
380,
6541,
29892,
2602,
1125,
13,
4706,
9995,
13,
4706,
584,
3207,
5167,
4290,
6268,
380,
6541,
29901,
13,
4706,
584,
3207,
938,
2602,
29901,
13,
13,
4706,
584,
18280,
7191,
29889,
855,
6541,
2697,
29901,
2799,
749,
310,
624,
6541,
2697,
29889,
13,
4706,
9995,
13,
4706,
1583,
29889,
303,
6541,
353,
380,
6541,
29871,
396,
1134,
29901,
5167,
4290,
6268,
13,
4706,
1583,
29889,
3283,
353,
2602,
29871,
396,
1134,
29901,
938,
13,
13,
1678,
822,
304,
29918,
8977,
29898,
1311,
1125,
13,
4706,
736,
426,
13,
9651,
22868,
2396,
525,
7277,
855,
6541,
8003,
3089,
742,
13,
9651,
525,
303,
6541,
2396,
6213,
565,
1583,
29889,
303,
6541,
338,
6213,
1683,
1583,
29889,
303,
6541,
29889,
517,
29918,
8977,
3285,
13,
9651,
525,
3283,
2396,
1583,
29889,
3283,
13,
4706,
500,
13,
13,
1678,
822,
4770,
13193,
12035,
1311,
1125,
13,
4706,
736,
289,
29915,
4286,
7122,
3552,
13,
9651,
289,
12764,
29916,
1113,
29905,
29916,
29881,
29946,
29905,
29916,
29890,
29953,
29905,
29916,
600,
742,
13,
9651,
6262,
29898,
1311,
29889,
303,
6541,
511,
13,
9651,
2281,
29889,
4058,
877,
29966,
29875,
742,
1583,
29889,
3283,
511,
13,
308,
876,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
515,
29918,
16950,
29898,
25932,
29892,
9591,
1125,
13,
4706,
903,
303,
6541,
353,
9591,
29889,
29873,
29887,
949,
29918,
3318,
580,
13,
4706,
903,
3283,
353,
9591,
29889,
949,
29918,
524,
580,
13,
4706,
736,
1067,
29879,
29898,
303,
6541,
29922,
29918,
303,
6541,
29892,
2602,
29922,
29918,
3283,
29897,
13,
13,
13,
1990,
6204,
855,
6541,
2697,
3089,
29898,
14632,
3089,
1125,
13,
1678,
8707,
10810,
29965,
1783,
1955,
29918,
1367,
353,
29871,
29900,
29916,
29929,
6448,
29947,
29953,
29872,
29953,
29874,
13,
1678,
20134,
5371,
4375,
1799,
29918,
9800,
29918,
1367,
353,
29871,
29900,
29916,
29929,
29890,
29955,
29900,
29946,
29874,
29945,
29874,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1404,
29918,
333,
29892,
3611,
29892,
3273,
29918,
978,
29892,
12070,
414,
29892,
11105,
29879,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
584,
3207,
5167,
4290,
2659,
1404,
29918,
333,
29901,
13,
4706,
584,
3207,
851,
3611,
29901,
13,
4706,
584,
3207,
851,
3273,
29918,
978,
29901,
13,
4706,
584,
3207,
2391,
29961,
1542,
4290,
855,
6541,
2697,
2001,
29962,
12070,
414,
29901,
13,
4706,
584,
3207,
28379,
29961,
11227,
29962,
11105,
29879,
29901,
13,
13,
4706,
584,
18280,
7191,
29889,
855,
6541,
2697,
29901,
2799,
749,
310,
624,
6541,
2697,
29889,
13,
4706,
9995,
13,
4706,
1583,
29889,
1792,
29918,
333,
353,
1404,
29918,
333,
29871,
396,
1134,
29901,
5167,
4290,
2659,
13,
4706,
1583,
29889,
3257,
353,
3611,
29871,
396,
1134,
29901,
851,
13,
4706,
1583,
29889,
12759,
29918,
978,
353,
3273,
29918,
978,
29871,
396,
1134,
29901,
851,
13,
4706,
1583,
29889,
303,
860,
414,
353,
12070,
414,
29871,
396,
1134,
29901,
2391,
29961,
1542,
4290,
855,
6541,
2697,
2001,
29962,
13,
4706,
1583,
29889,
13168,
29879,
353,
11105,
29879,
29871,
396,
1134,
29901,
28379,
29961,
11227,
29962,
13,
13,
1678,
7465,
822,
8814,
29898,
1311,
29892,
3132,
29892,
3667,
29879,
1125,
13,
4706,
1583,
29889,
1792,
29918,
333,
353,
3667,
29879,
29889,
657,
29918,
2080,
29918,
1792,
29898,
20675,
3132,
29889,
657,
29918,
2080,
29918,
10041,
29898,
1311,
29889,
1792,
29918,
333,
876,
13,
13,
1678,
822,
304,
29918,
8977,
29898,
1311,
1125,
13,
4706,
736,
426,
13,
9651,
22868,
2396,
525,
4391,
855,
6541,
2697,
3089,
742,
13,
9651,
525,
1792,
29918,
333,
2396,
6213,
565,
1583,
29889,
1792,
29918,
333,
338,
6213,
1683,
1583,
29889,
1792,
29918,
333,
29889,
517,
29918,
8977,
3285,
13,
9651,
525,
3257,
2396,
1583,
29889,
3257,
29892,
13,
9651,
525,
12759,
29918,
978,
2396,
1583,
29889,
12759,
29918,
978,
29892,
13,
9651,
525,
303,
860,
414,
2396,
5159,
565,
1583,
29889,
303,
860,
414,
338,
6213,
1683,
518,
8516,
565,
921,
338,
6213,
1683,
921,
29889,
517,
29918,
8977,
580,
363,
921,
297,
1583,
29889,
303,
860,
414,
1402,
13,
9651,
525,
13168,
29879,
2396,
1583,
29889,
13168,
29879,
13,
4706,
500,
13,
13,
1678,
822,
4770,
13193,
12035,
1311,
1125,
13,
4706,
736,
289,
29915,
4286,
7122,
3552,
13,
9651,
289,
29915,
29926,
29876,
29905,
29916,
29881,
29947,
29905,
29916,
29929,
29890,
742,
13,
9651,
2281,
29889,
4058,
877,
29966,
29902,
742,
313,
29900,
565,
1583,
29889,
13168,
29879,
338,
6213,
470,
1583,
29889,
13168,
29879,
338,
7700,
1683,
29871,
29896,
8243,
13,
9651,
6262,
29898,
1311,
29889,
1792,
29918,
333,
511,
13,
9651,
1583,
29889,
643,
6646,
29918,
13193,
29898,
1311,
29889,
3257,
511,
13,
9651,
1583,
29889,
643,
6646,
29918,
13193,
29898,
1311,
29889,
12759,
29918,
978,
511,
13,
9651,
289,
12764,
29916,
29896,
29945,
29905,
21791,
29946,
29905,
29916,
29890,
29945,
29905,
29916,
29896,
29883,
742,
4984,
29889,
4058,
877,
29966,
29875,
742,
7431,
29898,
1311,
29889,
303,
860,
414,
8243,
29890,
29915,
4286,
7122,
29898,
13193,
29898,
29916,
29897,
363,
921,
297,
1583,
29889,
303,
860,
414,
511,
13,
308,
876,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
515,
29918,
16950,
29898,
25932,
29892,
9591,
1125,
13,
4706,
13449,
353,
9591,
29889,
949,
29918,
524,
580,
13,
13,
4706,
903,
13168,
29879,
353,
6120,
29898,
15764,
669,
29871,
29896,
29897,
13,
4706,
903,
1792,
29918,
333,
353,
9591,
29889,
29873,
29887,
949,
29918,
3318,
580,
13,
4706,
903,
3257,
353,
9591,
29889,
29873,
29887,
949,
29918,
1807,
580,
13,
4706,
903,
12759,
29918,
978,
353,
9591,
29889,
29873,
29887,
949,
29918,
1807,
580,
13,
4706,
9591,
29889,
949,
29918,
524,
580,
13,
4706,
903,
303,
860,
414,
353,
5159,
13,
4706,
363,
903,
297,
3464,
29898,
16950,
29889,
949,
29918,
524,
580,
1125,
13,
9651,
903,
29916,
353,
9591,
29889,
29873,
29887,
949,
29918,
3318,
580,
13,
9651,
903,
303,
860,
414,
29889,
4397,
7373,
29916,
29897,
13,
13,
4706,
736,
1067,
29879,
29898,
1792,
29918,
333,
29922,
29918,
1792,
29918,
333,
29892,
3611,
29922,
29918,
3257,
29892,
3273,
29918,
978,
29922,
29918,
12759,
29918,
978,
29892,
12070,
414,
29922,
29918,
303,
860,
414,
29892,
11105,
29879,
29922,
29918,
13168,
29879,
29897,
13,
13,
13,
1990,
15154,
855,
6541,
4591,
2697,
3089,
29898,
14632,
3089,
1125,
13,
1678,
8707,
10810,
29965,
1783,
1955,
29918,
1367,
353,
29871,
29900,
24660,
29955,
29955,
29953,
29900,
29888,
29945,
29896,
13,
1678,
20134,
5371,
4375,
1799,
29918,
9800,
29918,
1367,
353,
29871,
29900,
29916,
29929,
29890,
29955,
29900,
29946,
29874,
29945,
29874,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
380,
6541,
1125,
13,
4706,
9995,
13,
4706,
584,
3207,
5167,
4290,
6268,
380,
6541,
29901,
13,
13,
4706,
584,
18280,
7191,
29889,
855,
6541,
2697,
29901,
2799,
749,
310,
624,
6541,
2697,
29889,
13,
4706,
9995,
13,
4706,
1583,
29889,
303,
6541,
353,
380,
6541,
29871,
396,
1134,
29901,
5167,
4290,
6268,
13,
13,
1678,
822,
304,
29918,
8977,
29898,
1311,
1125,
13,
4706,
736,
426,
13,
9651,
22868,
2396,
525,
15941,
855,
6541,
4591,
2697,
3089,
742,
13,
9651,
525,
303,
6541,
2396,
6213,
565,
1583,
29889,
303,
6541,
338,
6213,
1683,
1583,
29889,
303,
6541,
29889,
517,
29918,
8977,
580,
13,
4706,
500,
13,
13,
1678,
822,
4770,
13193,
12035,
1311,
1125,
13,
4706,
736,
289,
29915,
4286,
7122,
3552,
13,
9651,
289,
29915,
29984,
29905,
29916,
29900,
29888,
29894,
29905,
24660,
29955,
742,
13,
9651,
6262,
29898,
1311,
29889,
303,
6541,
511,
13,
308,
876,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
515,
29918,
16950,
29898,
25932,
29892,
9591,
1125,
13,
4706,
903,
303,
6541,
353,
9591,
29889,
29873,
29887,
949,
29918,
3318,
580,
13,
4706,
736,
1067,
29879,
29898,
303,
6541,
29922,
29918,
303,
6541,
29897,
13,
13,
2
] |
PCI_o_B/SharedFunctions.py | MatteoMilani95/PCI_o_Bpy | 1 | 159935 |
import numpy as np
import matplotlib.pyplot as plt
import math
from pynverse import inversefunc
from IPython import get_ipython
get_ipython().magic('reset -sf')
import pandas as pd
from scipy.optimize import leastsq, least_squares, curve_fit
import os
from scipy import interpolate
import scipy.integrate as integrate
def theta1_func(H_value,R,n1,n2):
if n1>n2:
tc=np.arcsin(n2/n1)
H=lambda theta1 :R*np.sin(theta1)/np.cos(np.arcsin(n1/n2*np.sin(theta1))-theta1)*1/(1-np.tan(np.arcsin(n1/n2*np.sin(theta1))-theta1)/np.tan(np.arcsin(n1/n2*np.sin(theta1))))
theta=inversefunc(H,y_values=H_value,domain=[-tc, tc])
if H_value>=0:
h=R*np.sin(theta)/np.cos(np.arcsin(n1/n2*np.sin(theta))-theta)
theta_scattering=np.arcsin(R*np.sin(theta)/h)
else:
h=R*np.sin(theta)/np.cos(np.arcsin(n1/n2*np.sin(theta))-theta)
theta_scattering=math.pi-np.arcsin(R*np.sin(theta)/h)
else:
tc=np.arcsin(n1/n2)
H=lambda theta1 :R*np.sin(theta1)/np.cos(np.arcsin(n1/n2*np.sin(theta1))-theta1)*1/(1+np.tan(np.arcsin(n1/n2*np.sin(theta1))-theta1)/np.tan(np.arcsin(n1/n2*np.sin(theta1))))
theta=inversefunc(H,y_values=H_value,domain=[-tc, tc])
if H_value<=0:
h=R*np.sin(theta)/np.cos(np.arcsin(n1/n2*np.sin(theta))-theta)
theta_scattering=np.arcsin(R*np.sin(theta)/h)
else:
h=R*np.sin(theta)/np.cos(np.arcsin(n1/n2*np.sin(theta))-theta)
theta_scattering=math.pi-np.arcsin(R*np.sin(theta)/h)
return h,theta_scattering
def SingExp(x, amp, decay, baseline ):
"""Model a decaying sine wave and subtract data."""
model = (amp * np.exp(-x/decay))**2 + baseline
return model
def DoubleExp(x, amp1, decay1, amp2, decay2, baseline ):
"""Model a decaying sine wave and subtract data."""
model = (amp1 * np.exp(-x/decay1) + amp2 * np.exp(-x/decay2))**2 + baseline
return model
def DoubleStretchExp(x, amp1, decay1, amp2, decay2, baseline, beta,gamma ):
"""Model a decaying sine wave and subtract data."""
model = (amp1 * np.exp(-x/decay1))**(2*beta) + (amp2 * np.exp(-x/decay2))**(2*gamma) + baseline
return model
def SingleStretchExp(x, amp1, decay1, baseline, beta):
"""Model a decaying sine wave and subtract data."""
model = amp1 * np.exp(-(x/decay1)) **beta + baseline
return model
def TripleExp(x, amp1, decay1, amp2, decay2, amp3, decay3, baseline ):
"""Model a decaying sine wave and subtract data."""
model = (amp1 * np.exp(-x/decay1) + amp2 * np.exp(-x/decay2) + amp3 * np.exp(-x/decay3) )**2 + baseline
return model
def StretchExp(x, amp, decay, baseline, beta ):
"""Model a decaying sine wave and subtract data."""
model = (amp * np.exp(-x / decay))**(2*beta) + baseline
return model
def FromTautoTheta(tau,tau_err,T,R_particle,wavelength,nu,n):
kb=1.38064852*10**-23
D = kb*T/(6*math.pi*nu*(R_particle*10**-9))
theta = 2* np.arcsin( (1/(D*tau))**0.5*wavelength/(4*math.pi*n) ) *360/(2*math.pi)
theta_err = 2 * 1 / ( 1- ( wavelength / (4 * n * math.pi * 1 / ( D * tau )**0.5 ) )**2 )**0.5 * wavelength / (8 * n * math.pi) * 1 / D**0.5 * tau**-1.5 * tau_err *360/(2*math.pi)
return D, theta, theta_err
def SFinterpolation(x,y):
f = interpolate.interp1d(x, y)
return f
def SFintegration(x,y,x0,xmax):
f = interpolate.interp1d(x, y)
I = integrate.quad(f , x0, xmax)
return I
def AsymmetryCalculator(func):
ass = []
for i in range(int(len(func)/2)):
ass.append( ( np.abs(func[i] - func[-i]) / 2 ) / np.mean(np.asarray(func)) )
asymmerty = np.sum(np.asarray(ass))
return asymmerty
def truncate(n, decimals=0):
multiplier = 10 ** decimals
return int(n * multiplier) / multiplier
| [
1,
6756,
13,
5215,
12655,
408,
7442,
30004,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
30004,
13,
5215,
5844,
30004,
13,
3166,
282,
948,
3901,
1053,
16402,
9891,
30004,
13,
3166,
5641,
1656,
1053,
679,
29918,
666,
1656,
30004,
13,
657,
29918,
666,
1656,
2141,
11082,
293,
877,
12071,
448,
4668,
1495,
30004,
13,
5215,
11701,
408,
10518,
30004,
13,
3166,
4560,
2272,
29889,
20640,
675,
1053,
3203,
3044,
29892,
3203,
29918,
26613,
5114,
29892,
11672,
29918,
9202,
30004,
13,
5215,
2897,
30004,
13,
3166,
4560,
2272,
1053,
20064,
403,
30004,
13,
5215,
4560,
2272,
29889,
14146,
403,
408,
22782,
30004,
13,
30004,
13,
30004,
13,
30004,
13,
1753,
278,
941,
29896,
29918,
9891,
29898,
29950,
29918,
1767,
29892,
29934,
29892,
29876,
29896,
29892,
29876,
29906,
1125,
30004,
13,
1678,
565,
302,
29896,
29958,
29876,
29906,
29901,
30004,
13,
4706,
260,
29883,
29922,
9302,
29889,
279,
2395,
262,
29898,
29876,
29906,
29914,
29876,
29896,
8443,
13,
4706,
379,
29922,
2892,
278,
941,
29896,
584,
29934,
29930,
9302,
29889,
5223,
29898,
3416,
29896,
6802,
9302,
29889,
3944,
29898,
9302,
29889,
279,
2395,
262,
29898,
29876,
29896,
29914,
29876,
29906,
29930,
9302,
29889,
5223,
29898,
3416,
29896,
876,
29899,
3416,
29896,
11877,
29896,
14571,
29896,
29899,
9302,
29889,
13161,
29898,
9302,
29889,
279,
2395,
262,
29898,
29876,
29896,
29914,
29876,
29906,
29930,
9302,
29889,
5223,
29898,
3416,
29896,
876,
29899,
3416,
29896,
6802,
9302,
29889,
13161,
29898,
9302,
29889,
279,
2395,
262,
29898,
29876,
29896,
29914,
29876,
29906,
29930,
9302,
29889,
5223,
29898,
3416,
29896,
13697,
30004,
13,
4706,
278,
941,
29922,
262,
3901,
9891,
29898,
29950,
29892,
29891,
29918,
5975,
29922,
29950,
29918,
1767,
29892,
7247,
11759,
29899,
14246,
29892,
260,
29883,
2314,
30004,
13,
4706,
6756,
13,
4706,
565,
379,
29918,
1767,
18572,
29900,
29901,
30004,
13,
9651,
298,
29922,
29934,
29930,
9302,
29889,
5223,
29898,
3416,
6802,
9302,
29889,
3944,
29898,
9302,
29889,
279,
2395,
262,
29898,
29876,
29896,
29914,
29876,
29906,
29930,
9302,
29889,
5223,
29898,
3416,
876,
29899,
3416,
8443,
13,
9651,
278,
941,
29918,
1557,
2620,
292,
29922,
9302,
29889,
279,
2395,
262,
29898,
29934,
29930,
9302,
29889,
5223,
29898,
3416,
6802,
29882,
8443,
13,
4706,
1683,
29901,
30004,
13,
9651,
298,
29922,
29934,
29930,
9302,
29889,
5223,
29898,
3416,
6802,
9302,
29889,
3944,
29898,
9302,
29889,
279,
2395,
262,
29898,
29876,
29896,
29914,
29876,
29906,
29930,
9302,
29889,
5223,
29898,
3416,
876,
29899,
3416,
8443,
13,
9651,
278,
941,
29918,
1557,
2620,
292,
29922,
755,
29889,
1631,
29899,
9302,
29889,
279,
2395,
262,
29898,
29934,
29930,
9302,
29889,
5223,
29898,
3416,
6802,
29882,
8443,
13,
1678,
1683,
29901,
30004,
13,
4706,
260,
29883,
29922,
9302,
29889,
279,
2395,
262,
29898,
29876,
29896,
29914,
29876,
29906,
8443,
13,
4706,
379,
29922,
2892,
278,
941,
29896,
584,
29934,
29930,
9302,
29889,
5223,
29898,
3416,
29896,
6802,
9302,
29889,
3944,
29898,
9302,
29889,
279,
2395,
262,
29898,
29876,
29896,
29914,
29876,
29906,
29930,
9302,
29889,
5223,
29898,
3416,
29896,
876,
29899,
3416,
29896,
11877,
29896,
14571,
29896,
29974,
9302,
29889,
13161,
29898,
9302,
29889,
279,
2395,
262,
29898,
29876,
29896,
29914,
29876,
29906,
29930,
9302,
29889,
5223,
29898,
3416,
29896,
876,
29899,
3416,
29896,
6802,
9302,
29889,
13161,
29898,
9302,
29889,
279,
2395,
262,
29898,
29876,
29896,
29914,
29876,
29906,
29930,
9302,
29889,
5223,
29898,
3416,
29896,
13697,
30004,
13,
4706,
278,
941,
29922,
262,
3901,
9891,
29898,
29950,
29892,
29891,
29918,
5975,
29922,
29950,
29918,
1767,
29892,
7247,
11759,
29899,
14246,
29892,
260,
29883,
2314,
30004,
13,
4706,
6756,
13,
4706,
565,
379,
29918,
1767,
14065,
29900,
29901,
30004,
13,
9651,
298,
29922,
29934,
29930,
9302,
29889,
5223,
29898,
3416,
6802,
9302,
29889,
3944,
29898,
9302,
29889,
279,
2395,
262,
29898,
29876,
29896,
29914,
29876,
29906,
29930,
9302,
29889,
5223,
29898,
3416,
876,
29899,
3416,
8443,
13,
9651,
278,
941,
29918,
1557,
2620,
292,
29922,
9302,
29889,
279,
2395,
262,
29898,
29934,
29930,
9302,
29889,
5223,
29898,
3416,
6802,
29882,
8443,
13,
4706,
1683,
29901,
30004,
13,
9651,
298,
29922,
29934,
29930,
9302,
29889,
5223,
29898,
3416,
6802,
9302,
29889,
3944,
29898,
9302,
29889,
279,
2395,
262,
29898,
29876,
29896,
29914,
29876,
29906,
29930,
9302,
29889,
5223,
29898,
3416,
876,
29899,
3416,
8443,
13,
9651,
278,
941,
29918,
1557,
2620,
292,
29922,
755,
29889,
1631,
29899,
9302,
29889,
279,
2395,
262,
29898,
29934,
29930,
9302,
29889,
5223,
29898,
3416,
6802,
29882,
8443,
13,
4706,
6756,
13,
1678,
6756,
13,
1678,
736,
298,
29892,
3416,
29918,
1557,
2620,
292,
30004,
13,
30004,
13,
30004,
13,
1753,
6106,
9544,
29898,
29916,
29892,
21332,
29892,
20228,
29892,
2362,
5570,
29871,
1125,
30004,
13,
1678,
9995,
3195,
263,
20228,
292,
269,
457,
10742,
322,
23197,
848,
1213,
15945,
259,
6756,
13,
1678,
6756,
13,
1678,
1904,
353,
313,
1160,
334,
7442,
29889,
4548,
6278,
29916,
29914,
7099,
388,
876,
1068,
29906,
718,
2362,
5570,
30004,
13,
1678,
6756,
13,
1678,
736,
1904,
30004,
13,
30004,
13,
30004,
13,
1753,
11599,
9544,
29898,
29916,
29892,
21332,
29896,
29892,
20228,
29896,
29892,
21332,
29906,
29892,
20228,
29906,
29892,
2362,
5570,
29871,
1125,
30004,
13,
1678,
9995,
3195,
263,
20228,
292,
269,
457,
10742,
322,
23197,
848,
1213,
15945,
30004,
13,
1678,
6756,
13,
1678,
1904,
353,
313,
1160,
29896,
334,
7442,
29889,
4548,
6278,
29916,
29914,
7099,
388,
29896,
29897,
718,
21332,
29906,
334,
7442,
29889,
4548,
6278,
29916,
29914,
7099,
388,
29906,
876,
1068,
29906,
718,
2362,
5570,
30004,
13,
268,
6756,
13,
1678,
736,
1904,
30004,
13,
30004,
13,
1753,
11599,
855,
10301,
9544,
29898,
29916,
29892,
21332,
29896,
29892,
20228,
29896,
29892,
21332,
29906,
29892,
20228,
29906,
29892,
2362,
5570,
29892,
21762,
29892,
4283,
29871,
1125,
30004,
13,
1678,
9995,
3195,
263,
20228,
292,
269,
457,
10742,
322,
23197,
848,
1213,
15945,
30004,
13,
1678,
6756,
13,
1678,
1904,
353,
313,
1160,
29896,
334,
7442,
29889,
4548,
6278,
29916,
29914,
7099,
388,
29896,
876,
1068,
29898,
29906,
29930,
3571,
29897,
718,
313,
1160,
29906,
334,
7442,
29889,
4548,
6278,
29916,
29914,
7099,
388,
29906,
876,
1068,
29898,
29906,
29930,
4283,
29897,
718,
2362,
5570,
30004,
13,
268,
6756,
13,
1678,
736,
1904,
30004,
13,
30004,
13,
1753,
16740,
855,
10301,
9544,
29898,
29916,
29892,
21332,
29896,
29892,
20228,
29896,
29892,
2362,
5570,
29892,
21762,
1125,
30004,
13,
1678,
9995,
3195,
263,
20228,
292,
269,
457,
10742,
322,
23197,
848,
1213,
15945,
30004,
13,
1678,
6756,
13,
1678,
1904,
353,
21332,
29896,
334,
7442,
29889,
4548,
6278,
29898,
29916,
29914,
7099,
388,
29896,
876,
3579,
3571,
29871,
718,
2362,
5570,
30004,
13,
268,
6756,
13,
1678,
736,
1904,
30004,
13,
30004,
13,
1753,
8602,
552,
9544,
29898,
29916,
29892,
21332,
29896,
29892,
20228,
29896,
29892,
21332,
29906,
29892,
20228,
29906,
29892,
21332,
29941,
29892,
20228,
29941,
29892,
2362,
5570,
29871,
1125,
30004,
13,
1678,
9995,
3195,
263,
20228,
292,
269,
457,
10742,
322,
23197,
848,
1213,
15945,
30004,
13,
1678,
6756,
13,
1678,
1904,
353,
313,
1160,
29896,
334,
7442,
29889,
4548,
6278,
29916,
29914,
7099,
388,
29896,
29897,
718,
21332,
29906,
334,
7442,
29889,
4548,
6278,
29916,
29914,
7099,
388,
29906,
29897,
718,
21332,
29941,
334,
7442,
29889,
4548,
6278,
29916,
29914,
7099,
388,
29941,
29897,
1723,
1068,
29906,
718,
2362,
5570,
30004,
13,
268,
6756,
13,
1678,
736,
1904,
30004,
13,
30004,
13,
1753,
624,
10301,
9544,
29898,
29916,
29892,
21332,
29892,
20228,
29892,
2362,
5570,
29892,
21762,
29871,
1125,
30004,
13,
1678,
9995,
3195,
263,
20228,
292,
269,
457,
10742,
322,
23197,
848,
1213,
15945,
259,
6756,
13,
1678,
6756,
13,
1678,
1904,
353,
313,
1160,
334,
7442,
29889,
4548,
6278,
29916,
847,
20228,
876,
1068,
29898,
29906,
29930,
3571,
29897,
718,
2362,
5570,
30004,
13,
1678,
6756,
13,
1678,
736,
1904,
30004,
13,
30004,
13,
30004,
13,
30004,
13,
1753,
3645,
29911,
6921,
17458,
29898,
4722,
29892,
4722,
29918,
3127,
29892,
29911,
29892,
29934,
29918,
1595,
2512,
29892,
29893,
6447,
1477,
29892,
3433,
29892,
29876,
1125,
30004,
13,
1678,
413,
29890,
29922,
29896,
29889,
29941,
29947,
29900,
29953,
29946,
29947,
29945,
29906,
29930,
29896,
29900,
1068,
29899,
29906,
29941,
30004,
13,
1678,
360,
353,
413,
29890,
29930,
29911,
14571,
29953,
29930,
755,
29889,
1631,
29930,
3433,
16395,
29934,
29918,
1595,
2512,
29930,
29896,
29900,
1068,
29899,
29929,
876,
30004,
13,
1678,
278,
941,
353,
29871,
29906,
29930,
7442,
29889,
279,
2395,
262,
29898,
29871,
313,
29896,
14571,
29928,
29930,
4722,
876,
1068,
29900,
29889,
29945,
29930,
29893,
6447,
1477,
14571,
29946,
29930,
755,
29889,
1631,
29930,
29876,
29897,
29871,
1723,
334,
29941,
29953,
29900,
14571,
29906,
29930,
755,
29889,
1631,
8443,
13,
1678,
278,
941,
29918,
3127,
353,
29871,
29906,
334,
29871,
29896,
847,
313,
29871,
29896,
29899,
313,
281,
6447,
1477,
847,
313,
29946,
334,
302,
334,
5844,
29889,
1631,
334,
29871,
29896,
847,
313,
360,
334,
260,
585,
1723,
1068,
29900,
29889,
29945,
1723,
1723,
1068,
29906,
1723,
1068,
29900,
29889,
29945,
334,
281,
6447,
1477,
847,
313,
29947,
334,
302,
334,
5844,
29889,
1631,
29897,
334,
29871,
29896,
847,
360,
1068,
29900,
29889,
29945,
334,
260,
585,
1068,
29899,
29896,
29889,
29945,
334,
260,
585,
29918,
3127,
334,
29941,
29953,
29900,
14571,
29906,
29930,
755,
29889,
1631,
8443,
13,
1678,
736,
360,
29892,
278,
941,
29892,
278,
941,
29918,
3127,
30004,
13,
30004,
13,
1753,
28768,
1639,
3733,
362,
29898,
29916,
29892,
29891,
1125,
30004,
13,
1678,
285,
353,
20064,
403,
29889,
1639,
29886,
29896,
29881,
29898,
29916,
29892,
343,
8443,
13,
1678,
736,
285,
30004,
13,
30004,
13,
1753,
28768,
27925,
29898,
29916,
29892,
29891,
29892,
29916,
29900,
29892,
29916,
3317,
1125,
30004,
13,
1678,
285,
353,
20064,
403,
29889,
1639,
29886,
29896,
29881,
29898,
29916,
29892,
343,
8443,
13,
1678,
306,
353,
22782,
29889,
3425,
29898,
29888,
1919,
921,
29900,
29892,
921,
3317,
8443,
13,
1678,
736,
306,
30004,
13,
30004,
13,
30004,
13,
1753,
1094,
962,
2527,
719,
27065,
1061,
29898,
9891,
1125,
30004,
13,
1678,
6756,
13,
1678,
1223,
353,
5159,
1678,
6756,
13,
1678,
6756,
13,
30004,
13,
1678,
363,
474,
297,
3464,
29898,
524,
29898,
2435,
29898,
9891,
6802,
29906,
22164,
30004,
13,
4706,
1223,
29889,
4397,
29898,
313,
7442,
29889,
6897,
29898,
9891,
29961,
29875,
29962,
448,
3653,
14352,
29875,
2314,
847,
29871,
29906,
1723,
847,
7442,
29889,
12676,
29898,
9302,
29889,
294,
2378,
29898,
9891,
876,
1723,
30004,
13,
4706,
6756,
13,
1678,
6756,
13,
1678,
16936,
29885,
814,
29891,
353,
7442,
29889,
2083,
29898,
9302,
29889,
294,
2378,
29898,
465,
876,
30004,
13,
1678,
6756,
13,
1678,
736,
16936,
29885,
814,
29891,
30004,
13,
30004,
13,
30004,
13,
1753,
21022,
403,
29898,
29876,
29892,
1602,
326,
1338,
29922,
29900,
1125,
30004,
13,
1678,
6674,
4926,
353,
29871,
29896,
29900,
3579,
1602,
326,
1338,
30004,
13,
1678,
736,
938,
29898,
29876,
334,
6674,
4926,
29897,
847,
6674,
4926,
30004,
13,
2
] |
test/pynrn/test_units.py | shhong/nrn | 1 | 146837 | <gh_stars>1-10
from neuron import h
def switch_units(legacy):
try:
h.nrnunit_use_legacy(legacy)
except:
pass
def test_mod_legacy():
s = h.Section()
ut = h.UnitsTest(s(.5))
h.ion_style("na_ion", 1, 2, 1, 1, 0, sec=s)
switch_units(1)
h.finitialize()
names = ["mole", "e", "faraday", "planck", "hbar", "gasconst"]
legacy_hex_values = ["0x1.fe18fef60659ap+78", "0x1.7a4e7164efbbcp-63",
"0x1.78e54cccccccdp+16", "0x1.b85f8c5445f02p-111", "0x1.18779454e3d48p-113",
"0x1.0a10624dd2f1bp+3"]
for i, n in enumerate(names):
val = eval("ut." + n)
print ("%s = %s (%s)" %(n, str(val.hex()), str(val)))
legacy_value = float.fromhex(legacy_hex_values[i])
assert (val == legacy_value)
assert (ut.avogadro == float.fromhex(legacy_hex_values[0]))
ghk_std = h.ghk(-50, .001, 10, 2)
erev_std = h.nernst(s(.5).nai, s(.5).nao, 1)
assert (ut.ghk == ghk_std)
assert (ut.erev == erev_std)
switch_units(0)
h.finitialize()
ghk_std = h.ghk(-50, .001, 10, 2)
erev_std = h.nernst(s(.5).nai, s(.5).nao, 1)
assert (ut.mole != float.fromhex(legacy_hex_values[0]))
assert (ut.e*ut.avogadro == ut.faraday)
assert (abs(ut.faraday - h.FARADAY) < 1e-10)
assert (ut.gasconst == h.R)
assert (ut.k*ut.avogadro == ut.gasconst)
assert (abs(ut.planck - ut.hbar*2.0*h.PI) < 1e-49)
assert (ut.avogadro == h.Avogadro_constant)
assert (ut.ghk == h.ghk(-50, .001, 10, 2))
assert (ut.erev == h.nernst(s(.5).nai, s(.5).nao, 1))
def test_hoc_legacy():
switch_units(1) # legacy
print ("R = %s" % str(h.R))
print ("FARADAY = %s" % str(h.FARADAY))
celsius = 6.3
ghk = h.ghk(30, .01, 10, 1) # nernst requires a Section to get voltage
print ("ghk = %s" % str(ghk))
assert(h.R == 8.31441)
assert(h.FARADAY == 96485.309)
assert(ghk == -483.7914803097116)
switch_units(0) # Modern
print ("R = %s" % str(h.R))
print ("FARADAY = %s" % str(h.FARADAY))
ghk = h.ghk(30, .01, 10, 1)
print ("ghk = %s" % str(ghk))
assert(h.R == 8.31446261815324)
assert(ghk == -483.8380971405879)
def test_env_legacy():
for i in [0,1]:
a = None
try: # test NRNUNIT_USE_LEGACY not whether we can successfully run a subprocess
import sys, subprocess
a = "NRNUNIT_USE_LEGACY=%d %s -c 'from neuron import h; print (h.nrnunit_use_legacy())'"%(i, sys.executable)
a = subprocess.check_output(a, shell=True)
a = int(float(a.decode().split()[0]))
except:
pass
assert(a == i)
if __name__ == "__main__":
test_mod_legacy()
test_hoc_legacy()
test_env_legacy()
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
26808,
265,
1053,
298,
13,
13,
1753,
4607,
29918,
348,
1169,
29898,
1397,
4135,
1125,
13,
29871,
1018,
29901,
13,
1678,
298,
29889,
22230,
29876,
5441,
29918,
1509,
29918,
1397,
4135,
29898,
1397,
4135,
29897,
13,
29871,
5174,
29901,
13,
1678,
1209,
13,
13,
1753,
1243,
29918,
1545,
29918,
1397,
4135,
7295,
13,
29871,
269,
353,
298,
29889,
13438,
580,
13,
29871,
3477,
353,
298,
29889,
2525,
1169,
3057,
29898,
29879,
11891,
29945,
876,
13,
29871,
298,
29889,
291,
29918,
3293,
703,
1056,
29918,
291,
613,
29871,
29896,
29892,
29871,
29906,
29892,
29871,
29896,
29892,
29871,
29896,
29892,
29871,
29900,
29892,
5226,
29922,
29879,
29897,
13,
29871,
4607,
29918,
348,
1169,
29898,
29896,
29897,
13,
29871,
298,
29889,
29888,
24926,
580,
13,
29871,
2983,
353,
29871,
6796,
29885,
1772,
613,
376,
29872,
613,
376,
15641,
328,
388,
613,
376,
9018,
384,
613,
376,
26620,
613,
376,
25496,
3075,
3108,
13,
29871,
25000,
29918,
20970,
29918,
5975,
353,
6796,
29900,
29916,
29896,
29889,
1725,
29896,
29947,
29888,
1389,
29953,
29900,
29953,
29945,
29929,
481,
29974,
29955,
29947,
613,
376,
29900,
29916,
29896,
29889,
29955,
29874,
29946,
29872,
29955,
29896,
29953,
29946,
1389,
1327,
6814,
29899,
29953,
29941,
613,
13,
1678,
376,
29900,
29916,
29896,
29889,
29955,
29947,
29872,
29945,
29946,
617,
617,
617,
2252,
29886,
29974,
29896,
29953,
613,
376,
29900,
29916,
29896,
29889,
29890,
29947,
29945,
29888,
29947,
29883,
29945,
29946,
29946,
29945,
29888,
29900,
29906,
29886,
29899,
29896,
29896,
29896,
613,
376,
29900,
29916,
29896,
29889,
29896,
29947,
29955,
29955,
29929,
29946,
29945,
29946,
29872,
29941,
29881,
29946,
29947,
29886,
29899,
29896,
29896,
29941,
613,
13,
1678,
376,
29900,
29916,
29896,
29889,
29900,
29874,
29896,
29900,
29953,
29906,
29946,
1289,
29906,
29888,
29896,
25288,
29974,
29941,
3108,
13,
29871,
363,
474,
29892,
302,
297,
26985,
29898,
7039,
1125,
13,
1678,
659,
353,
19745,
703,
329,
1213,
718,
302,
29897,
13,
1678,
1596,
4852,
29995,
29879,
353,
1273,
29879,
313,
29995,
29879,
5513,
1273,
29898,
29876,
29892,
851,
29898,
791,
29889,
20970,
25739,
851,
29898,
791,
4961,
13,
1678,
25000,
29918,
1767,
353,
5785,
29889,
3166,
20970,
29898,
1397,
4135,
29918,
20970,
29918,
5975,
29961,
29875,
2314,
13,
1678,
4974,
313,
791,
1275,
25000,
29918,
1767,
29897,
13,
29871,
4974,
313,
329,
29889,
485,
468,
328,
307,
1275,
5785,
29889,
3166,
20970,
29898,
1397,
4135,
29918,
20970,
29918,
5975,
29961,
29900,
12622,
13,
29871,
24170,
29895,
29918,
4172,
353,
298,
29889,
12443,
29895,
6278,
29945,
29900,
29892,
869,
29900,
29900,
29896,
29892,
29871,
29896,
29900,
29892,
29871,
29906,
29897,
13,
29871,
14737,
29894,
29918,
4172,
353,
298,
29889,
29876,
824,
303,
29898,
29879,
11891,
29945,
467,
1056,
29875,
29892,
269,
11891,
29945,
467,
1056,
29877,
29892,
29871,
29896,
29897,
13,
29871,
4974,
313,
329,
29889,
12443,
29895,
1275,
24170,
29895,
29918,
4172,
29897,
13,
29871,
4974,
313,
329,
29889,
406,
29894,
1275,
14737,
29894,
29918,
4172,
29897,
13,
29871,
4607,
29918,
348,
1169,
29898,
29900,
29897,
13,
29871,
298,
29889,
29888,
24926,
580,
13,
29871,
24170,
29895,
29918,
4172,
353,
298,
29889,
12443,
29895,
6278,
29945,
29900,
29892,
869,
29900,
29900,
29896,
29892,
29871,
29896,
29900,
29892,
29871,
29906,
29897,
13,
29871,
14737,
29894,
29918,
4172,
353,
298,
29889,
29876,
824,
303,
29898,
29879,
11891,
29945,
467,
1056,
29875,
29892,
269,
11891,
29945,
467,
1056,
29877,
29892,
29871,
29896,
29897,
13,
29871,
4974,
313,
329,
29889,
29885,
1772,
2804,
5785,
29889,
3166,
20970,
29898,
1397,
4135,
29918,
20970,
29918,
5975,
29961,
29900,
12622,
13,
29871,
4974,
313,
329,
29889,
29872,
29930,
329,
29889,
485,
468,
328,
307,
1275,
3477,
29889,
15641,
328,
388,
29897,
13,
29871,
4974,
313,
6897,
29898,
329,
29889,
15641,
328,
388,
448,
298,
29889,
29943,
1718,
3035,
29909,
29979,
29897,
529,
29871,
29896,
29872,
29899,
29896,
29900,
29897,
13,
29871,
4974,
313,
329,
29889,
25496,
3075,
1275,
298,
29889,
29934,
29897,
13,
29871,
4974,
313,
329,
29889,
29895,
29930,
329,
29889,
485,
468,
328,
307,
1275,
3477,
29889,
25496,
3075,
29897,
13,
29871,
4974,
313,
6897,
29898,
329,
29889,
9018,
384,
448,
3477,
29889,
26620,
29930,
29906,
29889,
29900,
29930,
29882,
29889,
2227,
29897,
529,
29871,
29896,
29872,
29899,
29946,
29929,
29897,
13,
29871,
4974,
313,
329,
29889,
485,
468,
328,
307,
1275,
298,
29889,
12810,
468,
328,
307,
29918,
23362,
29897,
13,
29871,
4974,
313,
329,
29889,
12443,
29895,
1275,
298,
29889,
12443,
29895,
6278,
29945,
29900,
29892,
869,
29900,
29900,
29896,
29892,
29871,
29896,
29900,
29892,
29871,
29906,
876,
13,
29871,
4974,
313,
329,
29889,
406,
29894,
1275,
298,
29889,
29876,
824,
303,
29898,
29879,
11891,
29945,
467,
1056,
29875,
29892,
269,
11891,
29945,
467,
1056,
29877,
29892,
29871,
29896,
876,
13,
13,
1753,
1243,
29918,
29882,
542,
29918,
1397,
4135,
7295,
13,
29871,
4607,
29918,
348,
1169,
29898,
29896,
29897,
396,
25000,
13,
29871,
1596,
4852,
29934,
353,
1273,
29879,
29908,
1273,
851,
29898,
29882,
29889,
29934,
876,
13,
29871,
1596,
4852,
29943,
1718,
3035,
29909,
29979,
353,
1273,
29879,
29908,
1273,
851,
29898,
29882,
29889,
29943,
1718,
3035,
29909,
29979,
876,
13,
29871,
6432,
1039,
375,
353,
29871,
29953,
29889,
29941,
13,
29871,
24170,
29895,
353,
298,
29889,
12443,
29895,
29898,
29941,
29900,
29892,
869,
29900,
29896,
29892,
29871,
29896,
29900,
29892,
29871,
29896,
29897,
396,
302,
824,
303,
6858,
263,
9779,
304,
679,
11749,
13,
29871,
1596,
4852,
12443,
29895,
353,
1273,
29879,
29908,
1273,
851,
29898,
12443,
29895,
876,
13,
13,
29871,
4974,
29898,
29882,
29889,
29934,
1275,
29871,
29947,
29889,
29941,
29896,
29946,
29946,
29896,
29897,
13,
29871,
4974,
29898,
29882,
29889,
29943,
1718,
3035,
29909,
29979,
1275,
29871,
29929,
29953,
29946,
29947,
29945,
29889,
29941,
29900,
29929,
29897,
13,
29871,
4974,
29898,
12443,
29895,
1275,
448,
29946,
29947,
29941,
29889,
29955,
29929,
29896,
29946,
29947,
29900,
29941,
29900,
29929,
29955,
29896,
29896,
29953,
29897,
13,
13,
29871,
4607,
29918,
348,
1169,
29898,
29900,
29897,
396,
14624,
13,
29871,
1596,
4852,
29934,
353,
1273,
29879,
29908,
1273,
851,
29898,
29882,
29889,
29934,
876,
13,
29871,
1596,
4852,
29943,
1718,
3035,
29909,
29979,
353,
1273,
29879,
29908,
1273,
851,
29898,
29882,
29889,
29943,
1718,
3035,
29909,
29979,
876,
13,
29871,
24170,
29895,
353,
298,
29889,
12443,
29895,
29898,
29941,
29900,
29892,
869,
29900,
29896,
29892,
29871,
29896,
29900,
29892,
29871,
29896,
29897,
13,
29871,
1596,
4852,
12443,
29895,
353,
1273,
29879,
29908,
1273,
851,
29898,
12443,
29895,
876,
13,
29871,
4974,
29898,
29882,
29889,
29934,
1275,
29871,
29947,
29889,
29941,
29896,
29946,
29946,
29953,
29906,
29953,
29896,
29947,
29896,
29945,
29941,
29906,
29946,
29897,
13,
29871,
4974,
29898,
12443,
29895,
1275,
448,
29946,
29947,
29941,
29889,
29947,
29941,
29947,
29900,
29929,
29955,
29896,
29946,
29900,
29945,
29947,
29955,
29929,
29897,
13,
13,
1753,
1243,
29918,
6272,
29918,
1397,
4135,
7295,
13,
29871,
363,
474,
297,
518,
29900,
29892,
29896,
5387,
13,
1678,
263,
353,
6213,
13,
1678,
1018,
29901,
396,
1243,
27759,
29940,
3904,
1806,
29918,
17171,
29918,
1307,
29954,
2477,
29979,
451,
3692,
591,
508,
8472,
1065,
263,
1014,
5014,
13,
418,
1053,
10876,
29892,
1014,
5014,
13,
418,
263,
353,
376,
16514,
29940,
3904,
1806,
29918,
17171,
29918,
1307,
29954,
2477,
29979,
16328,
29881,
1273,
29879,
448,
29883,
525,
3166,
26808,
265,
1053,
298,
29936,
1596,
313,
29882,
29889,
22230,
29876,
5441,
29918,
1509,
29918,
1397,
4135,
3101,
11838,
29995,
29898,
29875,
29892,
10876,
29889,
4258,
9246,
29897,
13,
418,
263,
353,
1014,
5014,
29889,
3198,
29918,
4905,
29898,
29874,
29892,
6473,
29922,
5574,
29897,
13,
418,
263,
353,
938,
29898,
7411,
29898,
29874,
29889,
13808,
2141,
5451,
580,
29961,
29900,
12622,
13,
1678,
5174,
29901,
13,
418,
1209,
13,
1678,
4974,
29898,
29874,
1275,
474,
29897,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
29871,
1243,
29918,
1545,
29918,
1397,
4135,
580,
13,
29871,
1243,
29918,
29882,
542,
29918,
1397,
4135,
580,
13,
29871,
1243,
29918,
6272,
29918,
1397,
4135,
580,
13,
2
] |
knet/views/__init__.py | aethersoft/metaview | 1 | 1610602 | from typing import Text
from flask import Blueprint, render_template
from knet.config import CONFIG
bp = Blueprint('views', __name__)
@bp.route('/')
def home():
return render_template('index.html', title=CONFIG['APP_TITLE'], page='Home')
@bp.route('/<page>')
def pages(page: Text):
return render_template('index.html', title=CONFIG['APP_TITLE'], page=page.capitalize())
| [
1,
515,
19229,
1053,
3992,
13,
13,
3166,
29784,
1053,
10924,
2158,
29892,
4050,
29918,
6886,
13,
13,
3166,
889,
300,
29889,
2917,
1053,
8707,
18667,
13,
13,
25288,
353,
10924,
2158,
877,
7406,
742,
4770,
978,
1649,
29897,
13,
13,
13,
29992,
25288,
29889,
13134,
11219,
1495,
13,
1753,
3271,
7295,
13,
1678,
736,
4050,
29918,
6886,
877,
2248,
29889,
1420,
742,
3611,
29922,
25903,
1839,
20576,
29918,
29911,
1806,
1307,
7464,
1813,
2433,
11184,
1495,
13,
13,
13,
29992,
25288,
29889,
13134,
11219,
29966,
3488,
29958,
1495,
13,
1753,
6515,
29898,
3488,
29901,
3992,
1125,
13,
1678,
736,
4050,
29918,
6886,
877,
2248,
29889,
1420,
742,
3611,
29922,
25903,
1839,
20576,
29918,
29911,
1806,
1307,
7464,
1813,
29922,
3488,
29889,
5030,
2410,
675,
3101,
13,
2
] |
api/login_request.py | dyphen12/full-stack-login | 0 | 1605627 | import database as datb
#### REQUESTS #####
def login(user,passw):
auth, ssid = datb.user_validation(user,passw)
return auth, ssid
| [
1,
1053,
2566,
408,
1418,
29890,
13,
13,
4136,
5195,
14130,
29903,
16101,
13,
13,
1753,
6464,
29898,
1792,
29892,
3364,
29893,
1125,
13,
13,
1678,
4817,
29892,
17971,
333,
353,
1418,
29890,
29889,
1792,
29918,
18157,
29898,
1792,
29892,
3364,
29893,
29897,
13,
13,
1678,
736,
4817,
29892,
17971,
333,
13,
2
] |
setup.py | cr3/lookuper | 0 | 189537 | <filename>setup.py
from setuptools import (
setup,
find_packages,
)
setup(
name='lookuper',
use_scm_version=True,
description='Lookup nested data structures',
long_description=open('README.rst').read(),
url='https://github.com/cr3/lookuper',
author='<NAME>',
author_email='<EMAIL>',
setup_requires=['setuptools_scm'],
packages=find_packages(where='src'),
package_dir={'': 'src'},
license='MIT',
keywords='lookup nested',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
| [
1,
529,
9507,
29958,
14669,
29889,
2272,
13,
3166,
731,
21245,
8789,
1053,
313,
13,
1678,
6230,
29892,
13,
1678,
1284,
29918,
8318,
29892,
13,
29897,
13,
13,
13,
14669,
29898,
13,
1678,
1024,
2433,
6914,
14805,
742,
13,
1678,
671,
29918,
1557,
29885,
29918,
3259,
29922,
5574,
29892,
13,
1678,
6139,
2433,
14959,
786,
9322,
848,
12286,
742,
13,
1678,
1472,
29918,
8216,
29922,
3150,
877,
16310,
2303,
29889,
29878,
303,
2824,
949,
3285,
13,
1678,
3142,
2433,
991,
597,
3292,
29889,
510,
29914,
7283,
29941,
29914,
6914,
14805,
742,
13,
1678,
4148,
2433,
29966,
5813,
29958,
742,
13,
1678,
4148,
29918,
5269,
2433,
29966,
26862,
6227,
29958,
742,
13,
1678,
6230,
29918,
276,
339,
2658,
29922,
1839,
842,
21245,
8789,
29918,
1557,
29885,
7464,
13,
1678,
9741,
29922,
2886,
29918,
8318,
29898,
3062,
2433,
4351,
5477,
13,
1678,
3577,
29918,
3972,
3790,
29915,
2396,
525,
4351,
16675,
13,
1678,
19405,
2433,
26349,
742,
13,
1678,
29361,
2433,
20401,
9322,
742,
13,
1678,
770,
14903,
11759,
13,
4706,
525,
21956,
358,
16034,
4761,
29871,
29946,
448,
350,
1187,
742,
13,
4706,
525,
2928,
2760,
319,
4749,
663,
4761,
10682,
414,
742,
13,
4706,
525,
29931,
293,
1947,
4761,
438,
5425,
28268,
1490,
4761,
341,
1806,
19245,
742,
13,
4706,
525,
7094,
1218,
2184,
4761,
6570,
25266,
742,
13,
4706,
525,
9283,
4056,
17088,
4761,
5132,
742,
13,
4706,
525,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29941,
742,
13,
4706,
525,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29941,
29889,
29945,
742,
13,
4706,
525,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29941,
29889,
29953,
742,
13,
4706,
525,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29941,
29889,
29955,
742,
13,
4706,
525,
9283,
4056,
17088,
4761,
5132,
4761,
29871,
29941,
29889,
29947,
742,
13,
4706,
525,
9283,
4056,
17088,
4761,
5132,
4761,
1954,
14607,
4761,
315,
11980,
742,
13,
4706,
525,
9283,
4056,
17088,
4761,
5132,
4761,
1954,
14607,
4761,
10772,
19737,
742,
13,
4706,
525,
7031,
293,
4761,
18540,
14650,
4761,
365,
4626,
4314,
4761,
5132,
3382,
2540,
742,
13,
1678,
21251,
13,
29897,
13,
2
] |
client/base_client.py | renatopp/liac-chess | 6 | 138575 | <gh_stars>1-10
# =============================================================================
# Federal University of Rio Grande do Sul (UFRGS)
# Connectionist Artificial Intelligence Laboratory (LIAC)
# <NAME> - <EMAIL>
# =============================================================================
# Copyright (c) 2011 <NAME>, renato.ppontes at gmail dot com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# =============================================================================
'''This is the base client for LIAC CHESS.
Use `LiacBot` as your base class to create a new bot.
'''
import sys
import json
import time
import socket
import random
class LiacBot(object):
'''LiacBot implements a basic client for LIAC CHESS.
LiacBot encapsulates the basic features to communicate with the LIAC CHESS
server, such as serialization and deserialization of json messages,
connection handshaking, etc. Use this class as a base implementation for
your bots.
'''
name = ''
ip = '127.0.0.1'
port = 50100
def __init__(self):
'''Constructor.'''
self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if not self.name:
self.name = random.choice([
'Liacnator', '<NAME>', 'Liaczors', 'Liaco'
])
# INTERNAL METHODS ========================================================
def _connect(self):
'''(INTERNAL) Connects to the server.'''
self._socket.connect((self.ip, self.port))
def _send_data(self, data):
'''(INTERNAL) Serialize a ``data`` object and sends it to the server.
:param data: a Python object.
'''
d = json.dumps(data)
self._socket.sendall(d)
def _receive_data(self):
'''(INTERNAL) Receives a message from server and deserialize it.
:return: a Python object.
'''
data = self._socket.recv(2**12)
return json.loads(data)
def _send_name(self):
'''(INTERNAL) Sends the bot's name to the server as part of the
handshaking procedure.
'''
self._send_data({
'name':self.name
})
def _receive_state(self):
'''(INTERNAL) Handle a state message.'''
state = self._receive_data()
if state['winner'] != 0 or state['draw']:
self.on_game_over(state)
else:
self.on_move(state)
# =========================================================================
# INTERFACE ===============================================================
def send_move(self, from_, to_):
'''Sends a movement to the server.
:param from_: a 2-tuple with the piece-to-move position.
:param to_: a 2-tuple with the target position.
'''
self._send_data({
'from': from_,
'to': to_
})
def on_move(self, state):
'''Receives the state from server, when the server asks for a movement.
Consult the documentation see which information comes within the
`state` object.
:param state: a state object.
'''
pass
def on_game_over(self, state):
'''Receives the state from server, when the server acknowledges a
winner for the game.
Consult the documentation see which information comes within the
`state` object.
:param state: a state object.
'''
pass
def start(self):
'''Starts the bot.'''
self._connect()
self._send_name()
while True:
self._receive_state()
# =========================================================================
if __name__ == '__main__':
bot = LiacBot()
bot.start() | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
1275,
9166,
9166,
9166,
9166,
4936,
25512,
13,
29937,
14879,
3014,
310,
11611,
12848,
437,
13358,
313,
29965,
15860,
10749,
29897,
13,
29937,
15160,
391,
3012,
928,
616,
3159,
28286,
16715,
7606,
313,
5265,
2477,
29897,
13,
29937,
529,
5813,
29958,
448,
529,
26862,
6227,
29958,
13,
29937,
1275,
9166,
9166,
9166,
9166,
4936,
25512,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29896,
529,
5813,
10202,
4325,
1219,
29889,
407,
609,
267,
472,
330,
2549,
8329,
419,
13,
29937,
29871,
13,
29937,
20894,
2333,
338,
1244,
1609,
16896,
29892,
3889,
310,
8323,
29892,
304,
738,
2022,
4017,
292,
263,
3509,
29871,
13,
29937,
310,
445,
7047,
322,
6942,
5106,
2066,
313,
1552,
376,
6295,
14093,
4968,
304,
5376,
13,
29937,
297,
278,
18540,
1728,
24345,
29892,
3704,
1728,
29485,
278,
10462,
29871,
13,
29937,
304,
671,
29892,
3509,
29892,
6623,
29892,
10366,
29892,
9805,
29892,
1320,
2666,
29892,
269,
803,
1947,
29892,
322,
29914,
272,
19417,
29871,
13,
29937,
14591,
310,
278,
18540,
29892,
322,
304,
14257,
12407,
304,
6029,
278,
18540,
338,
29871,
13,
29937,
15252,
3276,
304,
437,
577,
29892,
4967,
304,
278,
1494,
5855,
29901,
13,
29937,
13,
29937,
450,
2038,
3509,
1266,
8369,
322,
445,
10751,
8369,
4091,
367,
5134,
297,
29871,
13,
29937,
599,
14591,
470,
23228,
2011,
1080,
310,
278,
18540,
29889,
13,
29937,
13,
29937,
6093,
7791,
7818,
12982,
1525,
8519,
13756,
13044,
3352,
376,
3289,
8519,
613,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29979,
8079,
13764,
29979,
476,
22255,
29892,
8528,
15094,
1799,
6323,
29871,
13,
29937,
306,
3580,
5265,
3352,
29892,
2672,
6154,
15789,
4214,
350,
2692,
6058,
27848,
3352,
7495,
6093,
399,
1718,
29934,
13566,
29059,
8079,
341,
1001,
3210,
13566,
2882,
6227,
11937,
29892,
29871,
13,
29937,
383,
1806,
8186,
1799,
15842,
319,
349,
8322,
2965,
13309,
1718,
349,
4574,
13152,
1660,
5300,
405,
1164,
1177,
15860,
1177,
1692,
13780,
29889,
2672,
11698,
382,
29963,
3919,
24972,
9818,
6093,
29871,
13,
29937,
26524,
29950,
24125,
6323,
315,
4590,
29979,
22789,
3912,
379,
5607,
8032,
29903,
20700,
17705,
6181,
15842,
13764,
29979,
315,
4375,
7833,
29892,
21330,
1529,
1692,
29903,
6323,
438,
29911,
4448,
29871,
13,
29937,
17705,
2882,
6227,
11937,
29892,
12317,
2544,
4448,
2672,
13764,
319,
9838,
8079,
8707,
29911,
4717,
1783,
29892,
323,
8476,
6323,
438,
29911,
4448,
22119,
1660,
29892,
9033,
3235,
4214,
3895,
29892,
13,
29937,
19474,
8079,
6323,
2672,
8707,
8186,
9838,
22659,
6093,
7791,
7818,
12982,
1525,
6323,
6093,
501,
1660,
6323,
438,
29911,
4448,
5012,
1964,
4214,
29903,
2672,
6093,
13,
29937,
7791,
7818,
12982,
1525,
29889,
13,
29937,
1275,
9166,
9166,
9166,
9166,
4936,
25512,
13,
13,
13,
12008,
4013,
338,
278,
2967,
3132,
363,
17705,
2477,
5868,
29923,
1799,
29889,
13,
13,
11403,
421,
29931,
13544,
29933,
327,
29952,
408,
596,
2967,
770,
304,
1653,
263,
716,
9225,
29889,
13,
12008,
13,
13,
5215,
10876,
13,
5215,
4390,
13,
5215,
931,
13,
5215,
9909,
13,
5215,
4036,
13,
13,
1990,
365,
13544,
29933,
327,
29898,
3318,
1125,
13,
1678,
14550,
29931,
13544,
29933,
327,
10703,
263,
6996,
3132,
363,
17705,
2477,
5868,
29923,
1799,
29889,
13,
13,
1678,
365,
13544,
29933,
327,
2094,
2547,
352,
1078,
278,
6996,
5680,
304,
23120,
411,
278,
17705,
2477,
5868,
29923,
1799,
29871,
13,
1678,
1923,
29892,
1316,
408,
7797,
2133,
322,
16964,
616,
2133,
310,
4390,
7191,
29892,
29871,
13,
1678,
3957,
1361,
845,
5086,
29892,
2992,
29889,
4803,
445,
770,
408,
263,
2967,
5314,
363,
29871,
13,
1678,
596,
289,
1862,
29889,
29871,
13,
1678,
14550,
13,
13,
1678,
1024,
353,
6629,
13,
1678,
10377,
353,
525,
29896,
29906,
29955,
29889,
29900,
29889,
29900,
29889,
29896,
29915,
13,
1678,
2011,
353,
29871,
29945,
29900,
29896,
29900,
29900,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
14550,
23770,
29889,
12008,
13,
13,
4706,
1583,
3032,
11514,
353,
9909,
29889,
11514,
29898,
11514,
29889,
5098,
29918,
1177,
2544,
29892,
9909,
29889,
6156,
7077,
29918,
1254,
1525,
5194,
29897,
13,
13,
4706,
565,
451,
1583,
29889,
978,
29901,
13,
9651,
1583,
29889,
978,
353,
4036,
29889,
16957,
4197,
13,
18884,
525,
29931,
13544,
29876,
1061,
742,
12801,
5813,
29958,
742,
525,
29931,
423,
2067,
943,
742,
525,
29931,
423,
1111,
29915,
13,
632,
2314,
13,
13,
1678,
396,
2672,
4945,
29940,
1964,
341,
2544,
8187,
8452,
1275,
9166,
9166,
9166,
2751,
1360,
13,
1678,
822,
903,
6915,
29898,
1311,
1125,
13,
4706,
14550,
29898,
23845,
29940,
1964,
29897,
14971,
29879,
304,
278,
1923,
29889,
12008,
13,
13,
4706,
1583,
3032,
11514,
29889,
6915,
3552,
1311,
29889,
666,
29892,
1583,
29889,
637,
876,
13,
13,
1678,
822,
903,
6717,
29918,
1272,
29898,
1311,
29892,
848,
1125,
13,
4706,
14550,
29898,
23845,
29940,
1964,
29897,
1816,
6646,
263,
4954,
1272,
16159,
1203,
322,
16003,
372,
304,
278,
1923,
29889,
13,
13,
4706,
584,
3207,
848,
29901,
263,
5132,
1203,
29889,
13,
4706,
14550,
13,
13,
4706,
270,
353,
4390,
29889,
29881,
17204,
29898,
1272,
29897,
13,
4706,
1583,
3032,
11514,
29889,
6717,
497,
29898,
29881,
29897,
13,
13,
1678,
822,
903,
13556,
573,
29918,
1272,
29898,
1311,
1125,
13,
4706,
14550,
29898,
23845,
29940,
1964,
29897,
24328,
3145,
263,
2643,
515,
1923,
322,
16964,
6646,
372,
29889,
13,
13,
4706,
584,
2457,
29901,
263,
5132,
1203,
29889,
13,
4706,
14550,
13,
13,
4706,
848,
353,
1583,
3032,
11514,
29889,
3757,
29894,
29898,
29906,
1068,
29896,
29906,
29897,
13,
4706,
736,
4390,
29889,
18132,
29898,
1272,
29897,
13,
13,
1678,
822,
903,
6717,
29918,
978,
29898,
1311,
1125,
13,
4706,
14550,
29898,
23845,
29940,
1964,
29897,
317,
1975,
278,
9225,
29915,
29879,
1024,
304,
278,
1923,
408,
760,
310,
278,
29871,
13,
4706,
1361,
845,
5086,
8792,
29889,
13,
4706,
14550,
13,
13,
4706,
1583,
3032,
6717,
29918,
1272,
3319,
13,
9651,
525,
978,
2396,
1311,
29889,
978,
13,
4706,
5615,
13,
13,
1678,
822,
903,
13556,
573,
29918,
3859,
29898,
1311,
1125,
13,
4706,
14550,
29898,
23845,
29940,
1964,
29897,
29273,
263,
2106,
2643,
29889,
12008,
13,
13,
4706,
2106,
353,
1583,
3032,
13556,
573,
29918,
1272,
580,
13,
4706,
565,
2106,
1839,
29893,
3993,
2033,
2804,
29871,
29900,
470,
2106,
1839,
4012,
2033,
29901,
13,
9651,
1583,
29889,
265,
29918,
11802,
29918,
957,
29898,
3859,
29897,
13,
4706,
1683,
29901,
13,
9651,
1583,
29889,
265,
29918,
11631,
29898,
3859,
29897,
13,
1678,
396,
1275,
9166,
9166,
9166,
9166,
2751,
25512,
13,
13,
1678,
396,
2672,
4945,
29943,
11538,
1275,
9166,
9166,
9166,
4936,
2751,
29922,
13,
1678,
822,
3638,
29918,
11631,
29898,
1311,
29892,
515,
3383,
304,
29918,
1125,
13,
4706,
14550,
29903,
1975,
263,
10298,
304,
278,
1923,
29889,
13,
13,
4706,
584,
3207,
515,
29918,
29901,
263,
29871,
29906,
29899,
23583,
411,
278,
8424,
29899,
517,
29899,
11631,
2602,
29889,
13,
4706,
584,
3207,
304,
29918,
29901,
263,
29871,
29906,
29899,
23583,
411,
278,
3646,
2602,
29889,
13,
4706,
14550,
13,
13,
4706,
1583,
3032,
6717,
29918,
1272,
3319,
13,
9651,
525,
3166,
2396,
515,
3383,
13,
9651,
525,
517,
2396,
304,
29918,
13,
4706,
5615,
13,
13,
1678,
822,
373,
29918,
11631,
29898,
1311,
29892,
2106,
1125,
13,
4706,
14550,
10380,
3145,
278,
2106,
515,
1923,
29892,
746,
278,
1923,
19514,
363,
263,
10298,
29889,
13,
13,
4706,
2138,
499,
278,
5106,
1074,
607,
2472,
5304,
2629,
278,
13,
4706,
421,
3859,
29952,
1203,
29889,
13,
13,
4706,
584,
3207,
2106,
29901,
263,
2106,
1203,
29889,
13,
4706,
14550,
13,
13,
4706,
1209,
13,
13,
1678,
822,
373,
29918,
11802,
29918,
957,
29898,
1311,
29892,
2106,
1125,
13,
4706,
14550,
10380,
3145,
278,
2106,
515,
1923,
29892,
746,
278,
1923,
24084,
2710,
263,
29871,
13,
4706,
19576,
363,
278,
3748,
29889,
13,
13,
4706,
2138,
499,
278,
5106,
1074,
607,
2472,
5304,
2629,
278,
13,
4706,
421,
3859,
29952,
1203,
29889,
13,
13,
4706,
584,
3207,
2106,
29901,
263,
2106,
1203,
29889,
13,
4706,
14550,
13,
13,
4706,
1209,
13,
13,
1678,
822,
1369,
29898,
1311,
1125,
13,
4706,
14550,
4763,
29879,
278,
9225,
29889,
12008,
13,
13,
4706,
1583,
3032,
6915,
580,
13,
4706,
1583,
3032,
6717,
29918,
978,
580,
13,
13,
4706,
1550,
5852,
29901,
13,
9651,
1583,
3032,
13556,
573,
29918,
3859,
580,
13,
1678,
396,
1275,
9166,
9166,
9166,
9166,
2751,
25512,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
9225,
353,
365,
13544,
29933,
327,
580,
13,
1678,
9225,
29889,
2962,
580,
2
] |
nodevectors/evaluation/__init__.py | tboser/nodevectors | 0 | 61551 | <reponame>tboser/nodevectors
from nodevectors.evaluation.graph_eval import *
from nodevectors.evaluation.link_pred import *
| [
1,
529,
276,
1112,
420,
29958,
22625,
22969,
29914,
3177,
345,
14359,
13,
3166,
2943,
345,
14359,
29889,
24219,
362,
29889,
4262,
29918,
14513,
1053,
334,
13,
3166,
2943,
345,
14359,
29889,
24219,
362,
29889,
2324,
29918,
11965,
1053,
334,
13,
13,
2
] |
reg_analysis.py | prakharchoudhary/Tale-O-Regression | 2 | 162941 | """
Train the regressor and plot the results
"""
import os
import numpy as np
from matplotlib import pyplot as plt
from sklearn.preprocessing import StandardScaler
from linear_model import LinearRegressionGD
def train_reg(df):
X = df[['RM']].values
y = df['MEDV'].values
sc_x = StandardScaler()
sc_y = StandardScaler()
X_std = sc_x.fit_transform(X)
y_std = sc_y.fit_transform(y[:, np.newaxis]).flatten()
lr = LinearRegressionGD()
lr.fit(X_std, y_std)
return lr
def cost_against_epochs(lr):
plt.plot(range(1, lr.n_iter+1), lr.cost_)
plt.ylabel('SSE')
plt.xlabel('Epoch')
# plt.show()
plt.savefig('./figures/cost-against-epoch.png')
plt.gcf().clear()
def lin_regplot(df, model):
X = df[['RM']].values
y = df['MEDV'].values
sc_x = StandardScaler()
sc_y = StandardScaler()
X_std = sc_x.fit_transform(X)
y_std = sc_y.fit_transform(y[:, np.newaxis]).flatten()
plt.scatter(X_std, y_std, c='blue')
plt.plot(X_std, model.predict(X_std), color='red')
plt.xlabel('Average number of rooms [RM] (standardized)')
plt.ylabel('Price in $1000\'s [MEDV] (standardized)')
# plt.show()
if not os.path.exists(os.path.join(os.getcwd(), 'figures')):
os.mkdir('figures')
plt.savefig('./figures/plotting-linear-reg.png') | [
1,
9995,
13,
5323,
262,
278,
337,
3663,
272,
322,
6492,
278,
2582,
13,
15945,
29908,
13,
5215,
2897,
13,
5215,
12655,
408,
7442,
13,
3166,
22889,
1053,
11451,
5317,
408,
14770,
13,
3166,
2071,
19668,
29889,
1457,
19170,
1053,
10117,
29636,
261,
13,
3166,
5608,
29918,
4299,
1053,
22985,
4597,
23881,
29954,
29928,
13,
13,
1753,
7945,
29918,
1727,
29898,
2176,
1125,
13,
12,
29990,
353,
4489,
29961,
1839,
29934,
29924,
2033,
1822,
5975,
13,
12,
29891,
353,
4489,
1839,
2303,
29928,
29963,
13359,
5975,
13,
12,
1557,
29918,
29916,
353,
10117,
29636,
261,
580,
13,
12,
1557,
29918,
29891,
353,
10117,
29636,
261,
580,
13,
12,
29990,
29918,
4172,
353,
885,
29918,
29916,
29889,
9202,
29918,
9067,
29898,
29990,
29897,
13,
12,
29891,
29918,
4172,
353,
885,
29918,
29891,
29889,
9202,
29918,
9067,
29898,
29891,
7503,
29892,
7442,
29889,
1482,
8990,
14664,
1579,
8606,
580,
13,
12,
29212,
353,
22985,
4597,
23881,
29954,
29928,
580,
13,
12,
29212,
29889,
9202,
29898,
29990,
29918,
4172,
29892,
343,
29918,
4172,
29897,
13,
12,
2457,
301,
29878,
13,
13,
1753,
3438,
29918,
351,
475,
303,
29918,
1022,
2878,
29879,
29898,
29212,
1125,
13,
12,
572,
29873,
29889,
5317,
29898,
3881,
29898,
29896,
29892,
301,
29878,
29889,
29876,
29918,
1524,
29974,
29896,
511,
301,
29878,
29889,
18253,
19925,
13,
12,
572,
29873,
29889,
29891,
1643,
877,
29903,
1660,
1495,
13,
12,
572,
29873,
29889,
29916,
1643,
877,
29923,
1129,
305,
1495,
13,
12,
29937,
14770,
29889,
4294,
580,
13,
12,
572,
29873,
29889,
7620,
1003,
877,
6904,
1003,
1973,
29914,
18253,
29899,
351,
475,
303,
29899,
1022,
2878,
29889,
2732,
1495,
13,
12,
572,
29873,
29889,
29887,
6854,
2141,
8551,
580,
13,
13,
1753,
6276,
29918,
1727,
5317,
29898,
2176,
29892,
1904,
1125,
13,
12,
29990,
353,
4489,
29961,
1839,
29934,
29924,
2033,
1822,
5975,
13,
12,
29891,
353,
4489,
1839,
2303,
29928,
29963,
13359,
5975,
13,
12,
1557,
29918,
29916,
353,
10117,
29636,
261,
580,
13,
12,
1557,
29918,
29891,
353,
10117,
29636,
261,
580,
13,
12,
29990,
29918,
4172,
353,
885,
29918,
29916,
29889,
9202,
29918,
9067,
29898,
29990,
29897,
13,
12,
29891,
29918,
4172,
353,
885,
29918,
29891,
29889,
9202,
29918,
9067,
29898,
29891,
7503,
29892,
7442,
29889,
1482,
8990,
14664,
1579,
8606,
580,
13,
13,
12,
572,
29873,
29889,
1557,
2620,
29898,
29990,
29918,
4172,
29892,
343,
29918,
4172,
29892,
274,
2433,
9539,
1495,
13,
12,
572,
29873,
29889,
5317,
29898,
29990,
29918,
4172,
29892,
1904,
29889,
27711,
29898,
29990,
29918,
4172,
511,
2927,
2433,
1127,
1495,
13,
12,
572,
29873,
29889,
29916,
1643,
877,
29909,
19698,
1353,
310,
19600,
518,
29934,
29924,
29962,
313,
15770,
1891,
29897,
1495,
13,
12,
572,
29873,
29889,
29891,
1643,
877,
13026,
297,
395,
29896,
29900,
29900,
29900,
20333,
29879,
518,
2303,
29928,
29963,
29962,
313,
15770,
1891,
29897,
1495,
13,
12,
29937,
14770,
29889,
4294,
580,
13,
13,
12,
361,
451,
2897,
29889,
2084,
29889,
9933,
29898,
359,
29889,
2084,
29889,
7122,
29898,
359,
29889,
657,
29883,
9970,
3285,
525,
1003,
1973,
8785,
29901,
13,
12,
12,
359,
29889,
11256,
3972,
877,
1003,
1973,
1495,
13,
13,
12,
572,
29873,
29889,
7620,
1003,
877,
6904,
1003,
1973,
29914,
5317,
1259,
29899,
10660,
29899,
1727,
29889,
2732,
1495,
2
] |
main_app/migrations/0006_auto_20210905_0013.py | boyoon-c/readuck-api | 0 | 1600682 | # Generated by Django 3.2.6 on 2021-09-05 00:13
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('main_app', '0005_rename_article_group_articles'),
]
operations = [
migrations.AlterField(
model_name='group',
name='articles',
field=models.ManyToManyField(blank=True, to='main_app.Article'),
),
migrations.AlterField(
model_name='group',
name='participants',
field=models.ManyToManyField(blank=True, to=settings.AUTH_USER_MODEL),
),
]
| [
1,
396,
3251,
630,
491,
15337,
29871,
29941,
29889,
29906,
29889,
29953,
373,
29871,
29906,
29900,
29906,
29896,
29899,
29900,
29929,
29899,
29900,
29945,
29871,
29900,
29900,
29901,
29896,
29941,
13,
13,
3166,
9557,
29889,
5527,
1053,
6055,
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,
9725,
800,
29889,
2774,
932,
519,
29918,
10836,
29898,
11027,
29889,
20656,
29950,
29918,
11889,
29918,
20387,
29931,
511,
13,
4706,
6702,
3396,
29918,
932,
742,
525,
29900,
29900,
29900,
29945,
29918,
1267,
420,
29918,
7914,
29918,
2972,
29918,
18569,
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,
2972,
742,
13,
9651,
1024,
2433,
18569,
742,
13,
9651,
1746,
29922,
9794,
29889,
14804,
1762,
14804,
3073,
29898,
19465,
29922,
5574,
29892,
304,
2433,
3396,
29918,
932,
29889,
9986,
2512,
5477,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
2499,
357,
3073,
29898,
13,
9651,
1904,
29918,
978,
2433,
2972,
742,
13,
9651,
1024,
2433,
1595,
12654,
1934,
742,
13,
9651,
1746,
29922,
9794,
29889,
14804,
1762,
14804,
3073,
29898,
19465,
29922,
5574,
29892,
304,
29922,
11027,
29889,
20656,
29950,
29918,
11889,
29918,
20387,
29931,
511,
13,
4706,
10353,
13,
1678,
4514,
13,
2
] |
beer_carousel/migrations/0003_auto_20180610_1258.py | GeniALE/SiteWebGeniALE | 4 | 180081 | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-10 16:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('beer_carousel', '0002_auto_20180605_1010'),
]
operations = [
migrations.CreateModel(
name='BeerContainer',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100)),
('css_class', models.CharField(max_length=100)),
],
),
migrations.AddField(
model_name='beermodel',
name='beer_container',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL,
to='beer_carousel.BeerContainer'),
),
]
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
3251,
630,
491,
15337,
29871,
29896,
29889,
29896,
29896,
373,
29871,
29906,
29900,
29896,
29947,
29899,
29900,
29953,
29899,
29896,
29900,
29871,
29896,
29953,
29901,
29945,
29947,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
800,
29892,
4733,
13,
5215,
9557,
29889,
2585,
29889,
9794,
29889,
311,
1026,
291,
13,
13,
13,
1990,
341,
16783,
29898,
26983,
800,
29889,
29924,
16783,
1125,
13,
29871,
9962,
353,
518,
13,
1678,
6702,
915,
261,
29918,
4287,
21299,
742,
525,
29900,
29900,
29900,
29906,
29918,
6921,
29918,
29906,
29900,
29896,
29947,
29900,
29953,
29900,
29945,
29918,
29896,
29900,
29896,
29900,
5477,
13,
29871,
4514,
13,
13,
29871,
6931,
353,
518,
13,
1678,
9725,
800,
29889,
4391,
3195,
29898,
13,
418,
1024,
2433,
3629,
261,
7895,
742,
13,
418,
4235,
11759,
13,
4706,
6702,
333,
742,
4733,
29889,
12300,
3073,
29898,
6921,
29918,
11600,
29922,
5574,
29892,
7601,
29918,
1989,
29922,
5574,
29892,
28755,
29922,
8824,
29892,
26952,
29918,
978,
2433,
1367,
1495,
511,
13,
4706,
6702,
978,
742,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29896,
29900,
29900,
8243,
13,
4706,
6702,
4268,
29918,
1990,
742,
4733,
29889,
27890,
29898,
3317,
29918,
2848,
29922,
29896,
29900,
29900,
8243,
13,
418,
21251,
13,
1678,
10353,
13,
1678,
9725,
800,
29889,
2528,
3073,
29898,
13,
418,
1904,
29918,
978,
2433,
915,
837,
27224,
742,
13,
418,
1024,
2433,
915,
261,
29918,
7611,
742,
13,
418,
1746,
29922,
9794,
29889,
27755,
2558,
29898,
4304,
29922,
5574,
29892,
373,
29918,
8143,
29922,
14095,
29889,
2585,
29889,
9794,
29889,
311,
1026,
291,
29889,
10490,
29918,
10074,
29892,
13,
462,
795,
304,
2433,
915,
261,
29918,
4287,
21299,
29889,
3629,
261,
7895,
5477,
13,
1678,
10353,
13,
29871,
4514,
13,
2
] |
kite-python/kite_ml/kite/name_encoder/scope_encoder.py | kiteco/kiteco-public | 17 | 36213 | <gh_stars>10-100
from typing import Dict, Any
import tensorflow as tf
from ..utils.segmented_data import SegmentedIndices, SegmentedIndicesFeed
from ..graph_encoder.embeddings import NodeEmbeddings
class Encoder(object):
def __init__(self, nodes: NodeEmbeddings):
self._nodes = nodes
self._build()
def _build(self):
self._build_placeholders()
self._build_scope_state()
def _build_placeholders(self):
with tf.name_scope('placeholders'):
# shape [number of variables in batch]
# sample_ids[i] = s means that means that variable i is part of sample s in the batch
self._variable_node_ids = SegmentedIndices('variable_node_ids')
def _build_scope_state(self):
with tf.name_scope('build_scope_state'):
# [num variable nodes in batch]
self._variable_nodes_embedded: tf.Tensor = tf.gather(
self._nodes.embeddings,
self._variable_node_ids.indices,
name='scope_nodes_embedded',
)
# reduce across variable nodes in each graph in the batch
# shape [batch size, graph embedding depth]
self._scope_state: tf.Tensor = tf.segment_max(
self._variable_nodes_embedded,
self._variable_node_ids.sample_ids,
name='scope_state',
)
def feed_dict(self, feed: SegmentedIndicesFeed) -> Dict[tf.Tensor, Any]:
return self._variable_node_ids.feed_dict(feed)
def placeholders_dict(self) -> Dict[str, tf.Tensor]:
return self._variable_node_ids.dict()
def scope_state(self) -> tf.Tensor:
"""
:return: representation of all the variables in scope, shape [batch size, graph embedding depth]
"""
return self._scope_state
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
3166,
19229,
1053,
360,
919,
29892,
3139,
13,
13,
5215,
26110,
408,
15886,
13,
13,
3166,
6317,
13239,
29889,
28192,
287,
29918,
1272,
1053,
6667,
358,
287,
2568,
1575,
29892,
6667,
358,
287,
2568,
1575,
29737,
13,
13,
3166,
6317,
4262,
29918,
3977,
6119,
29889,
17987,
29881,
886,
1053,
9071,
6026,
2580,
29881,
886,
13,
13,
13,
1990,
11346,
6119,
29898,
3318,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
7573,
29901,
9071,
6026,
2580,
29881,
886,
1125,
13,
4706,
1583,
3032,
18010,
353,
7573,
13,
4706,
1583,
3032,
4282,
580,
13,
13,
1678,
822,
903,
4282,
29898,
1311,
1125,
13,
4706,
1583,
3032,
4282,
29918,
6689,
8948,
414,
580,
13,
4706,
1583,
3032,
4282,
29918,
6078,
29918,
3859,
580,
13,
13,
1678,
822,
903,
4282,
29918,
6689,
8948,
414,
29898,
1311,
1125,
13,
4706,
411,
15886,
29889,
978,
29918,
6078,
877,
6689,
8948,
414,
29374,
13,
9651,
396,
8267,
518,
4537,
310,
3651,
297,
9853,
29962,
13,
9651,
396,
4559,
29918,
4841,
29961,
29875,
29962,
353,
269,
2794,
393,
2794,
393,
2286,
474,
338,
760,
310,
4559,
269,
297,
278,
9853,
13,
9651,
1583,
3032,
11918,
29918,
3177,
29918,
4841,
353,
6667,
358,
287,
2568,
1575,
877,
11918,
29918,
3177,
29918,
4841,
1495,
13,
13,
1678,
822,
903,
4282,
29918,
6078,
29918,
3859,
29898,
1311,
1125,
13,
4706,
411,
15886,
29889,
978,
29918,
6078,
877,
4282,
29918,
6078,
29918,
3859,
29374,
13,
9651,
396,
518,
1949,
2286,
7573,
297,
9853,
29962,
13,
9651,
1583,
3032,
11918,
29918,
18010,
29918,
17987,
7176,
29901,
15886,
29889,
29911,
6073,
353,
15886,
29889,
29887,
1624,
29898,
13,
18884,
1583,
3032,
18010,
29889,
17987,
29881,
886,
29892,
13,
18884,
1583,
3032,
11918,
29918,
3177,
29918,
4841,
29889,
513,
1575,
29892,
13,
18884,
1024,
2433,
6078,
29918,
18010,
29918,
17987,
7176,
742,
13,
9651,
1723,
13,
13,
9651,
396,
10032,
4822,
2286,
7573,
297,
1269,
3983,
297,
278,
9853,
13,
9651,
396,
8267,
518,
16175,
2159,
29892,
3983,
23655,
10809,
29962,
13,
9651,
1583,
3032,
6078,
29918,
3859,
29901,
15886,
29889,
29911,
6073,
353,
15886,
29889,
28192,
29918,
3317,
29898,
13,
18884,
1583,
3032,
11918,
29918,
18010,
29918,
17987,
7176,
29892,
13,
18884,
1583,
3032,
11918,
29918,
3177,
29918,
4841,
29889,
11249,
29918,
4841,
29892,
13,
18884,
1024,
2433,
6078,
29918,
3859,
742,
13,
9651,
1723,
13,
13,
1678,
822,
8343,
29918,
8977,
29898,
1311,
29892,
8343,
29901,
6667,
358,
287,
2568,
1575,
29737,
29897,
1599,
360,
919,
29961,
13264,
29889,
29911,
6073,
29892,
3139,
5387,
13,
4706,
736,
1583,
3032,
11918,
29918,
3177,
29918,
4841,
29889,
18798,
29918,
8977,
29898,
18798,
29897,
13,
13,
1678,
822,
2058,
8948,
414,
29918,
8977,
29898,
1311,
29897,
1599,
360,
919,
29961,
710,
29892,
15886,
29889,
29911,
6073,
5387,
13,
4706,
736,
1583,
3032,
11918,
29918,
3177,
29918,
4841,
29889,
8977,
580,
13,
13,
1678,
822,
6874,
29918,
3859,
29898,
1311,
29897,
1599,
15886,
29889,
29911,
6073,
29901,
13,
4706,
9995,
13,
4706,
584,
2457,
29901,
8954,
310,
599,
278,
3651,
297,
6874,
29892,
8267,
518,
16175,
2159,
29892,
3983,
23655,
10809,
29962,
13,
4706,
9995,
13,
4706,
736,
1583,
3032,
6078,
29918,
3859,
13,
2
] |
reverseWord.py | lovefov/Python | 0 | 3324 | #!/usr/bin/env python3
#-*- coding:utf-8 -*-
#Author:贾江超
def spin_words(sentence):
list1=sentence.split()
l=len(list1)
for i in range(l):
relen = len(sentence.split()[i:][0])
if relen > 5:
list1[i]=list1[i][::-1]
return ' '.join(list1)
'''
注意 在2.x版本可以用len()得到list的长度 3.x版本就不行了
优化版本
def spin_words(sentence):
# Your code goes here
return " ".join([x[::-1] if len(x) >= 5 else x for x in sentence.split(" ")])
在这里倒序字符串用切片很方便 str[::-1] 就ok了
'''
| [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
29899,
29930,
29899,
14137,
29901,
9420,
29899,
29947,
448,
29930,
29899,
13,
29937,
13720,
29901,
235,
183,
193,
30775,
31480,
13,
13,
1753,
10917,
29918,
9303,
29898,
18616,
663,
1125,
13,
1678,
1051,
29896,
29922,
18616,
663,
29889,
5451,
580,
13,
1678,
301,
29922,
2435,
29898,
1761,
29896,
29897,
13,
1678,
363,
474,
297,
3464,
29898,
29880,
1125,
13,
4706,
1104,
264,
353,
7431,
29898,
18616,
663,
29889,
5451,
580,
29961,
29875,
29901,
3816,
29900,
2314,
13,
4706,
565,
1104,
264,
1405,
29871,
29945,
29901,
13,
965,
1051,
29896,
29961,
29875,
13192,
1761,
29896,
29961,
29875,
3816,
1057,
29899,
29896,
29962,
13,
1678,
736,
525,
15300,
7122,
29898,
1761,
29896,
29897,
13,
13,
12008,
13,
31368,
31474,
29871,
30505,
29906,
29889,
29916,
30845,
30346,
30682,
30651,
30406,
2435,
580,
31050,
30780,
1761,
30210,
31143,
30898,
29871,
29941,
29889,
29916,
30845,
30346,
31238,
30413,
30448,
30743,
13,
13,
231,
191,
155,
30705,
30845,
30346,
259,
13,
13,
1753,
10917,
29918,
9303,
29898,
18616,
663,
1125,
13,
1678,
396,
3575,
775,
5771,
1244,
13,
1678,
736,
376,
11393,
7122,
4197,
29916,
29961,
1057,
29899,
29896,
29962,
565,
7431,
29898,
29916,
29897,
6736,
29871,
29945,
1683,
921,
363,
921,
297,
10541,
29889,
5451,
703,
16521,
2314,
13,
268,
13,
268,
30505,
30810,
30755,
232,
131,
149,
31463,
30578,
31277,
31767,
30406,
31757,
31122,
232,
193,
139,
30525,
231,
193,
194,
851,
29961,
1057,
29899,
29896,
29962,
29871,
31238,
554,
30743,
13,
12008,
13,
13,
2
] |
applications/python/mqtt-lcp/lib/node_base_i2c.py | rphughespa/mqtt-lcp | 4 | 65409 | <filename>applications/python/mqtt-lcp/lib/node_base_i2c.py<gh_stars>1-10
# node_base_i2c.py - base class for mqtt nodes
"""
node_base_i2c - Base class for nodes that use i2c. Derived from node_base_mqtt.
The MIT License (MIT)
Copyright 2020 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies
or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
import sys
import os.path
if sys.platform.startswith("esp32_LoBo"):
from smbus2_go_lobo import SMBus
from queue_esp32 import Queue
import ujson
elif sys.platform.startswith("esp32"):
from smbus2_esp32 import SMBus
from queue_esp32 import Queue
import ujson
else:
from smbus2 import SMBus
from queue_py import Queue
import json
import time
from global_constants import Global
from node_base_mqtt import NodeBaseMqtt
from i2c_client_thread import I2cClientThread
from io_data import IoData
from i2c_mux import I2cMux
from i2c_rfid import I2cRfid
from i2c_rotary import I2cRotary
from i2c_servo import I2cServo
from i2c_servo_hat import I2cServoHat
class NodeBaseI2c(NodeBaseMqtt):
"""
Base class for node programs usig I2c IO
Manages IO via threads
"""
def __init__(self):
super().__init__()
self.config_servos = None
self.servos_params = None
self.i2c_client = None
self.i2c_devices = []
self.mqtt_devices = {}
self.i2c_in_queue = Queue(100)
self.i2c_out_queue = Queue(100)
self.i2c_display_imported = False
if os.path.isfile("servos.json"):
with open('servos.json') as json_file:
if sys.platform.startswith("esp32"):
self.config_servos = ujson.load(json_file)
else:
self.config_servos = json.load(json_file)
if self.config_servos is not None:
self.parse_servo_params(self.config_servos)
def start_i2c(self):
"""Start I2C IO"""
self.log_queue.add_message("info", 'start i2c client thread')
#if sys.platform.startswith('esp32'):
# with SMBus(1) as i2cbus:
# print("I2C Scan: "+str(i2cbus.scan()))
if Global.CONFIG in self.config:
if Global.IO in self.config[Global.CONFIG]:
if Global.I2C in self.config[Global.CONFIG][Global.IO]:
self.parse_config_data(self.config[Global.CONFIG][Global.IO][Global.I2C])
self.i2c_client = I2cClientThread(self.log_queue, self.i2c_devices, self.mqtt_devices,
self.i2c_in_queue, self.i2c_out_queue,
self.display_queue, "I2cClient", self.config[Global.CONFIG][Global.IO][Global.I2C])
self.i2c_client.start()
time.sleep(1)
def received_from_i2c(self, io_data):
""" call back to process received subsctibed messages. override in derived class"""
pass
def get_incomming_message_from_queue(self):
""" retrieve a receieved message from the queue """
message = None
if not self.i2c_in_queue.empty():
message = self.i2c_in_queue.get()
return message
def process_input(self):
""" cprocess input from all source input queues"""
# process all input of a given type in order of importance: keyboard, serial, mqtt
self.write_log_messages()
if self.i2c_client is not None:
self.i2c_client.check_msg()
i2c_input = self.get_incomming_i2c_message_from_queue()
if i2c_input is not None:
self.received_from_i2c(i2c_input)
super().process_input()
def send_to_i2c(self, message):
""" send message to an I2C device"""
if self.i2c_client is not None:
self.i2c_out_queue.put(message)
def get_incomming_i2c_message_from_queue(self):
""" retrieve a receieved message from the queue """
message = None
if not self.i2c_in_queue.empty():
message = self.i2c_in_queue.get()
return message
def initialize_threads(self):
""" initialize all IO threads"""
# load config file
# do not enable keyboard for apps meant to be run in background
super().initialize_threads()
if Global.CONFIG in self.config:
if Global.IO in self.config[Global.CONFIG]:
io_config = self.config[Global.CONFIG][Global.IO]
if Global.I2C in io_config:
self.start_i2c()
def loop(self):
""" loop through IO. override in dericed class"""
while not self.shutdown_app:
try:
time.sleep(0.01)
self.write_log_messages()
self.process_input()
except KeyboardInterrupt:
self.shutdown_app = True
def shutdown_threads(self):
""" shutdown all IO threads"""
if self.i2c_client is not None:
# print("shutdown serial")
self.i2c_client.shutdown()
super().shutdown_threads()
def parse_servo_params(self, servo_config_data):
""" parse parameters for servos """
# print("servo params")
if Global.CONFIG in servo_config_data:
if Global.SERVOS in servo_config_data[Global.CONFIG]:
for i2c_servo_mux in servo_config_data[Global.CONFIG][Global.SERVOS]:
address = i2c_servo_mux[Global.ADDRESS]
if isinstance(address, str):
# assume hex format "0x77"
address = int(address, 16)
if Global.PORTS in i2c_servo_mux:
for i2c_servo in i2c_servo_mux[Global.PORTS]:
sub_address = i2c_servo[Global.SUB_ADDRESS]
key = str(address)+":"+str(sub_address)
if self.servos_params is None:
self.servos_params = {}
self.servos_params[key] = i2c_servo
#print("%%%"+key+"..."+str(i2c_servo))
def parse_config_data(self, config_data):
""" Parse out I2C items from config json file"""
self.log_queue.add_message("debug", "parse i2c config")
for i2c_node in config_data:
self.parse_device_config(i2c_node, i2c_bus=1)
def parse_device_config(self, i2c_node, i2c_bus=None, i2c_mux_device=None):
""" parse configuration """
i2c_type = None
i2c_device = None
i2c_mux = i2c_mux_device
mqtt_port = None
mqtt_type = None
mqtt_send_sensor_msg = False
mux_type = None
address = None
if Global.BUS in i2c_node:
i2c_bus = i2c_node[Global.BUS]
if Global.ADDRESS in i2c_node:
address = i2c_node[Global.ADDRESS]
if isinstance(address, str):
# assume hex format "0x77"
address = int(address, 16)
# self.log_queue.add_message("info", "I2C Device config: "+str(address))
if Global.DEVICE_TYPE in i2c_node:
# a block of i2c device, either mux or gpio or unitary (single device per address)
i2c_type = i2c_node[Global.DEVICE_TYPE]
if i2c_type == Global.MUX:
mux_type = i2c_node[Global.MUX+"-"+Global.TYPE]
# print("### mux type: "+str(mux_type))
if mux_type == Global.SERVO_HAT:
i2c_mux = I2cServoHat(self.log_queue, address, mux_type=mux_type,
input_queue=self.i2c_in_queue)
elif mux_type == Global.I2C:
i2c_mux = I2cMux(self.log_queue, address, mux_type)
else:
self.i2c_device_not_connected_error(i2c_bus, address, Global.MUX)
if not self.is_device_connected(i2c_bus, address):
self.i2c_device_not_connected_error(i2c_bus, address, i2c_type)
ports = i2c_node[Global.PORTS]
for port in ports:
self.parse_device_config(port, i2c_bus=i2c_bus, i2c_mux_device=i2c_mux)
i2c_device = i2c_mux
else:
i2c_sub_address = None
if i2c_mux is not None:
if Global.SUB_ADDRESS in i2c_node:
i2c_sub_address = i2c_node[Global.SUB_ADDRESS]
device_type = None
if Global.MQTT+"-"+Global.PORT in i2c_node:
mqtt_port = i2c_node[Global.MQTT+"-"+Global.PORT]
if Global.MQTT+"-"+Global.TYPE in i2c_node:
mqtt_type = i2c_node[Global.MQTT+"-"+Global.TYPE]
if Global.MQTT+"-"+Global.SENSOR in i2c_node:
sensor = i2c_node[Global.MQTT+"-"+Global.SENSOR]
mqtt_send_sensor_msg = bool(sensor == Global.TRUE)
if Global.DEVICE_TYPE in i2c_node:
device_type = i2c_node[Global.DEVICE_TYPE]
if i2c_type == Global.RFID:
self.log_queue.add_message("info", "I2C Device config: "+str(address)+"..."+str(i2c_type)+
"..."+str(mqtt_port)+"..."+str(mqtt_type))
# print("%%%% new rfid: "+str(address)+" .. "+str(i2c_sub_address)+" .. "+str(i2c_mux))
i2c_device = I2cRfid(self.log_queue, address,
input_queue=self.i2c_in_queue,
mqtt_port=mqtt_port,
mqtt_type=mqtt_type,
i2c_device_type=device_type,
i2c_bus_number=i2c_bus,
i2c_mux=i2c_mux,
i2c_sub_address=i2c_sub_address)
elif i2c_type == Global.SERVO:
# print("!!!Servo")
center_degrees = 45 # defaults for 90 degree servo
throw_degrees = 90
close_degrees = 0
if self.servos_params is not None:
key = str(i2c_mux_device.i2c_address)+":"+str(i2c_sub_address)
#print("@@@key2: "+str(key))
if key in self.servos_params:
servo_params = self.servos_params[key]
center_degrees = servo_params[Global.CENTER]
throw_degrees = servo_params[Global.THROW]
close_degrees = servo_params[Global.CLOSE]
# print("config degrees: "+str(center_degrees)+
# ".."+str(throw_degrees)+".."+str(close_degrees))
else:
self.log_queue.add_message("error", "No Config for Servo: "+ str(key))
self.log_queue.add_message("info", "I2C Servo config: "+str(address)+"..."+str(i2c_type)+
"..."+str(mqtt_port)+"..."+str(mqtt_type)+
"..."+str(center_degrees)+"..."+str(throw_degrees)+"..."+str(close_degrees))
i2c_device = I2cServo(self.log_queue, address,
input_queue=self.i2c_in_queue,
mqtt_port=mqtt_port,
mqtt_type=mqtt_type,
mqtt_send_sensor_msg=mqtt_send_sensor_msg,
i2c_device_type=device_type,
i2c_bus_number=i2c_bus,
i2c_mux=i2c_mux_device,
i2c_sub_address=i2c_sub_address)
i2c_device.center_degrees = center_degrees
i2c_device.throw_degrees = throw_degrees
i2c_device.close_degrees = close_degrees
elif i2c_type == Global.ROTARY:
self.log_queue.add_message("info", "I2C Device config: "+str(address)+"..."+str(i2c_type)+
"..."+str(mqtt_port)+"..."+str(mqtt_type))
i2c_device = I2cRotary(self.log_queue, address,
input_queue=self.i2c_in_queue,
mqtt_port=mqtt_port,
mqtt_type=mqtt_type,
i2c_device_type=device_type,
i2c_bus_number=i2c_bus,
i2c_mux=i2c_mux_device,
i2c_sub_address=i2c_sub_address)
elif i2c_type == Global.DISPLAY:
display_size = None
display_type = None
if Global.DISPLAY+"-"+Global.SIZE in i2c_node:
display_size = i2c_node[Global.DISPLAY+"-"+Global.SIZE]
if Global.DISPLAY+"-"+Global.TYPE in i2c_node:
display_type = i2c_node[Global.DISPLAY+"-"+Global.TYPE]
# not everyone needs disply, import only if needed
if not self.i2c_display_imported:
from i2c_display import I2cDisplay
self.i2c_display_imported = True
self.log_queue.add_message("info", "I2C Device config: "+str(address)+"..."+i2c_type)
i2c_device = I2cDisplay(self.log_queue, address,
display_size=display_size,
display_type=display_type,
i2c_bus_number=i2c_bus,
i2c_mux=i2c_mux_device,
i2c_sub_address=i2c_sub_address)
elif i2c_type == Global.GPIO:
pass
if i2c_type is not None and i2c_device is not None:
if i2c_device.i2c_sub_address is None:
if not self.is_device_connected(i2c_device.i2c_bus_number, i2c_device.i2c_address):
self.i2c_device_not_connected_error(i2c_device.i2c_bus_number, i2c_device.i2c_address,
i2c_device.i2c_device_type)
# print("@@@ "+str(i2c_type))
self.i2c_devices.append({'type': i2c_type, 'mqtt-port': mqtt_port, 'dev': i2c_device})
if mqtt_port is not None:
mqtt_key = mqtt_port+":"+mqtt_type
self.mqtt_devices[mqtt_key] = i2c_device
def i2c_device_not_connected_error(self, bus, address, dtype):
""" raise Exception(Global.MSG_I2C_NOT_CONNECTED+" "+Global.DEVICE_TYPE+": "+str(type)+", "+
Global.BUS+": "+str(bus)+", "+Global.ADDRESS+": "+str(address)) """
self.log_queue.add_message("error", Global.MSG_I2C_NOT_CONNECTED+" "+Global.DEVICE_TYPE+
": "+str(dtype)+", "+
Global.BUS+": "+str(bus)+", "+Global.ADDRESS+": "+str(address))
# modified routine from sparkfun qwiic_i2c
def is_device_connected(self, smbus, address):
""" is i2c device connect to i2c bus """
device_connected = False
with SMBus(smbus) as bus:
try:
# Try to write a byte to the device, command 0x0
# If it throws an I/O error - the device isn't connected
bus.write_byte(address, 0x0)
device_connected = True
except Exception as ee:
print("Error connecting to Device: "+str(address)+" .. "+str(ee))
return device_connected
| [
1,
529,
9507,
29958,
932,
5795,
29914,
4691,
29914,
28466,
698,
29899,
29880,
6814,
29914,
1982,
29914,
3177,
29918,
3188,
29918,
29875,
29906,
29883,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
2943,
29918,
3188,
29918,
29875,
29906,
29883,
29889,
2272,
448,
2967,
770,
363,
286,
29939,
698,
7573,
13,
15945,
29908,
13,
13,
1678,
2943,
29918,
3188,
29918,
29875,
29906,
29883,
448,
7399,
770,
363,
7573,
393,
671,
474,
29906,
29883,
29889,
29871,
2452,
2347,
515,
2943,
29918,
3188,
29918,
28466,
698,
29889,
13,
13,
1576,
341,
1806,
19245,
313,
26349,
29897,
13,
13,
11882,
1266,
29871,
29906,
29900,
29906,
29900,
529,
5813,
29958,
13,
13,
27293,
338,
1244,
1609,
16896,
29892,
3889,
310,
8323,
29892,
304,
738,
2022,
4017,
292,
263,
3509,
310,
445,
7047,
13,
392,
6942,
5106,
2066,
313,
1552,
376,
6295,
14093,
4968,
304,
5376,
297,
278,
18540,
1728,
24345,
29892,
13,
18271,
1728,
29485,
278,
10462,
304,
671,
29892,
3509,
29892,
6623,
29892,
10366,
29892,
9805,
29892,
1320,
2666,
29892,
13,
29879,
803,
1947,
29892,
322,
29914,
272,
19417,
14591,
310,
278,
18540,
29892,
322,
304,
14257,
12407,
304,
6029,
278,
18540,
13,
275,
15252,
3276,
304,
437,
577,
29892,
4967,
304,
278,
1494,
5855,
29901,
13,
13,
1576,
2038,
3509,
1266,
8369,
322,
445,
10751,
8369,
4091,
367,
5134,
297,
599,
14591,
13,
272,
23228,
2011,
1080,
310,
278,
18540,
29889,
13,
13,
28350,
7791,
7818,
12982,
1525,
8519,
13756,
13044,
3352,
376,
3289,
8519,
613,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29979,
8079,
13764,
29979,
476,
22255,
29892,
8528,
15094,
1799,
6323,
306,
3580,
5265,
3352,
29892,
13,
1177,
6154,
15789,
4214,
350,
2692,
6058,
27848,
3352,
7495,
6093,
399,
1718,
29934,
13566,
29059,
8079,
341,
1001,
3210,
13566,
2882,
6227,
11937,
29892,
383,
1806,
8186,
1799,
15842,
319,
349,
8322,
2965,
13309,
1718,
349,
4574,
13152,
1660,
5300,
13,
29940,
1164,
1177,
15860,
1177,
1692,
13780,
29889,
2672,
11698,
382,
29963,
3919,
24972,
9818,
6093,
26524,
29950,
24125,
6323,
315,
4590,
29979,
22789,
3912,
379,
5607,
8032,
29903,
20700,
17705,
6181,
15842,
13764,
29979,
315,
4375,
7833,
29892,
13,
7698,
1529,
1692,
29903,
6323,
438,
29911,
4448,
17705,
2882,
6227,
11937,
29892,
12317,
2544,
4448,
2672,
13764,
319,
9838,
8079,
8707,
29911,
4717,
1783,
29892,
323,
8476,
6323,
438,
29911,
4448,
22119,
1660,
29892,
9033,
3235,
4214,
3895,
29892,
13,
12015,
8079,
6323,
2672,
8707,
8186,
9838,
22659,
6093,
7791,
7818,
12982,
1525,
6323,
6093,
501,
1660,
6323,
438,
29911,
4448,
5012,
1964,
4214,
29903,
2672,
6093,
7791,
7818,
12982,
1525,
29889,
13,
13,
15945,
29908,
13,
5215,
10876,
13,
5215,
2897,
29889,
2084,
13,
13,
361,
10876,
29889,
12120,
29889,
27382,
2541,
703,
9983,
29941,
29906,
29918,
3410,
8431,
29908,
1125,
13,
1678,
515,
1560,
8262,
29906,
29918,
1484,
29918,
417,
833,
1053,
317,
9486,
375,
13,
1678,
515,
9521,
29918,
9983,
29941,
29906,
1053,
5462,
434,
13,
1678,
1053,
318,
3126,
13,
23681,
10876,
29889,
12120,
29889,
27382,
2541,
703,
9983,
29941,
29906,
29908,
1125,
13,
1678,
515,
1560,
8262,
29906,
29918,
9983,
29941,
29906,
1053,
317,
9486,
375,
13,
1678,
515,
9521,
29918,
9983,
29941,
29906,
1053,
5462,
434,
13,
1678,
1053,
318,
3126,
13,
2870,
29901,
13,
1678,
515,
1560,
8262,
29906,
1053,
317,
9486,
375,
13,
1678,
515,
9521,
29918,
2272,
1053,
5462,
434,
13,
1678,
1053,
4390,
13,
13,
5215,
931,
13,
13,
3166,
5534,
29918,
3075,
1934,
1053,
12002,
13,
13,
3166,
2943,
29918,
3188,
29918,
28466,
698,
1053,
9071,
5160,
29924,
29939,
698,
13,
3166,
474,
29906,
29883,
29918,
4645,
29918,
7097,
1053,
306,
29906,
29883,
4032,
4899,
13,
3166,
12013,
29918,
1272,
1053,
22244,
1469,
13,
3166,
474,
29906,
29883,
29918,
29885,
1314,
1053,
306,
29906,
29883,
29924,
1314,
13,
3166,
474,
29906,
29883,
29918,
9600,
333,
1053,
306,
29906,
29883,
29934,
29888,
333,
13,
3166,
474,
29906,
29883,
29918,
5450,
653,
1053,
306,
29906,
29883,
21281,
653,
13,
3166,
474,
29906,
29883,
29918,
643,
1365,
1053,
306,
29906,
29883,
1748,
1365,
13,
3166,
474,
29906,
29883,
29918,
643,
1365,
29918,
2455,
1053,
306,
29906,
29883,
1748,
1365,
29950,
271,
13,
13,
13,
1990,
9071,
5160,
29902,
29906,
29883,
29898,
4247,
5160,
29924,
29939,
698,
1125,
13,
1678,
9995,
13,
4706,
7399,
770,
363,
2943,
11104,
502,
335,
306,
29906,
29883,
10663,
13,
4706,
2315,
1179,
10663,
3025,
9717,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
2428,
2141,
1649,
2344,
1649,
580,
13,
4706,
1583,
29889,
2917,
29918,
2140,
359,
353,
6213,
13,
4706,
1583,
29889,
2140,
359,
29918,
7529,
353,
6213,
13,
4706,
1583,
29889,
29875,
29906,
29883,
29918,
4645,
353,
6213,
13,
4706,
1583,
29889,
29875,
29906,
29883,
29918,
3359,
1575,
353,
5159,
13,
4706,
1583,
29889,
28466,
698,
29918,
3359,
1575,
353,
6571,
13,
4706,
1583,
29889,
29875,
29906,
29883,
29918,
262,
29918,
9990,
353,
5462,
434,
29898,
29896,
29900,
29900,
29897,
13,
4706,
1583,
29889,
29875,
29906,
29883,
29918,
449,
29918,
9990,
353,
5462,
434,
29898,
29896,
29900,
29900,
29897,
13,
4706,
1583,
29889,
29875,
29906,
29883,
29918,
4990,
29918,
5215,
287,
353,
7700,
13,
4706,
565,
2897,
29889,
2084,
29889,
275,
1445,
703,
2140,
359,
29889,
3126,
29908,
1125,
13,
9651,
411,
1722,
877,
2140,
359,
29889,
3126,
1495,
408,
4390,
29918,
1445,
29901,
13,
18884,
565,
10876,
29889,
12120,
29889,
27382,
2541,
703,
9983,
29941,
29906,
29908,
1125,
13,
462,
1678,
1583,
29889,
2917,
29918,
2140,
359,
353,
318,
3126,
29889,
1359,
29898,
3126,
29918,
1445,
29897,
13,
18884,
1683,
29901,
13,
462,
1678,
1583,
29889,
2917,
29918,
2140,
359,
353,
4390,
29889,
1359,
29898,
3126,
29918,
1445,
29897,
13,
4706,
565,
1583,
29889,
2917,
29918,
2140,
359,
338,
451,
6213,
29901,
13,
9651,
1583,
29889,
5510,
29918,
643,
1365,
29918,
7529,
29898,
1311,
29889,
2917,
29918,
2140,
359,
29897,
13,
13,
1678,
822,
1369,
29918,
29875,
29906,
29883,
29898,
1311,
1125,
13,
4706,
9995,
4763,
306,
29906,
29907,
10663,
15945,
29908,
13,
4706,
1583,
29889,
1188,
29918,
9990,
29889,
1202,
29918,
4906,
703,
3888,
613,
525,
2962,
474,
29906,
29883,
3132,
3244,
1495,
13,
4706,
396,
361,
10876,
29889,
12120,
29889,
27382,
2541,
877,
9983,
29941,
29906,
29374,
13,
308,
396,
259,
411,
317,
9486,
375,
29898,
29896,
29897,
408,
474,
29906,
29883,
8262,
29901,
13,
3986,
396,
418,
1596,
703,
29902,
29906,
29907,
2522,
273,
29901,
15691,
710,
29898,
29875,
29906,
29883,
8262,
29889,
16192,
22130,
13,
4706,
565,
12002,
29889,
25903,
297,
1583,
29889,
2917,
29901,
13,
9651,
565,
12002,
29889,
5971,
297,
1583,
29889,
2917,
29961,
12756,
29889,
25903,
5387,
13,
18884,
565,
12002,
29889,
29902,
29906,
29907,
297,
1583,
29889,
2917,
29961,
12756,
29889,
25903,
3816,
12756,
29889,
5971,
5387,
13,
462,
1678,
1583,
29889,
5510,
29918,
2917,
29918,
1272,
29898,
1311,
29889,
2917,
29961,
12756,
29889,
25903,
3816,
12756,
29889,
5971,
3816,
12756,
29889,
29902,
29906,
29907,
2314,
13,
462,
1678,
1583,
29889,
29875,
29906,
29883,
29918,
4645,
353,
306,
29906,
29883,
4032,
4899,
29898,
1311,
29889,
1188,
29918,
9990,
29892,
1583,
29889,
29875,
29906,
29883,
29918,
3359,
1575,
29892,
1583,
29889,
28466,
698,
29918,
3359,
1575,
29892,
13,
462,
4706,
1583,
29889,
29875,
29906,
29883,
29918,
262,
29918,
9990,
29892,
1583,
29889,
29875,
29906,
29883,
29918,
449,
29918,
9990,
29892,
13,
462,
4706,
1583,
29889,
4990,
29918,
9990,
29892,
376,
29902,
29906,
29883,
4032,
613,
1583,
29889,
2917,
29961,
12756,
29889,
25903,
3816,
12756,
29889,
5971,
3816,
12756,
29889,
29902,
29906,
29907,
2314,
13,
462,
1678,
1583,
29889,
29875,
29906,
29883,
29918,
4645,
29889,
2962,
580,
13,
462,
1678,
931,
29889,
17059,
29898,
29896,
29897,
13,
13,
1678,
822,
4520,
29918,
3166,
29918,
29875,
29906,
29883,
29898,
1311,
29892,
12013,
29918,
1272,
1125,
13,
4706,
9995,
1246,
1250,
304,
1889,
4520,
11684,
312,
747,
287,
7191,
29889,
5712,
297,
10723,
770,
15945,
29908,
13,
4706,
1209,
13,
13,
1678,
822,
679,
29918,
262,
2055,
292,
29918,
4906,
29918,
3166,
29918,
9990,
29898,
1311,
1125,
13,
4706,
9995,
10563,
263,
2414,
6402,
2643,
515,
278,
9521,
9995,
13,
4706,
2643,
353,
6213,
13,
4706,
565,
451,
1583,
29889,
29875,
29906,
29883,
29918,
262,
29918,
9990,
29889,
6310,
7295,
13,
9651,
2643,
353,
1583,
29889,
29875,
29906,
29883,
29918,
262,
29918,
9990,
29889,
657,
580,
13,
4706,
736,
2643,
13,
13,
1678,
822,
1889,
29918,
2080,
29898,
1311,
1125,
13,
4706,
9995,
274,
5014,
1881,
515,
599,
2752,
1881,
712,
1041,
15945,
29908,
13,
4706,
396,
1889,
599,
1881,
310,
263,
2183,
1134,
297,
1797,
310,
13500,
29901,
12247,
29892,
7797,
29892,
286,
29939,
698,
13,
4706,
1583,
29889,
3539,
29918,
1188,
29918,
19158,
580,
13,
4706,
565,
1583,
29889,
29875,
29906,
29883,
29918,
4645,
338,
451,
6213,
29901,
13,
9651,
1583,
29889,
29875,
29906,
29883,
29918,
4645,
29889,
3198,
29918,
7645,
580,
13,
9651,
474,
29906,
29883,
29918,
2080,
353,
1583,
29889,
657,
29918,
262,
2055,
292,
29918,
29875,
29906,
29883,
29918,
4906,
29918,
3166,
29918,
9990,
580,
13,
9651,
565,
474,
29906,
29883,
29918,
2080,
338,
451,
6213,
29901,
13,
18884,
1583,
29889,
13556,
2347,
29918,
3166,
29918,
29875,
29906,
29883,
29898,
29875,
29906,
29883,
29918,
2080,
29897,
13,
4706,
2428,
2141,
5014,
29918,
2080,
580,
13,
13,
1678,
822,
3638,
29918,
517,
29918,
29875,
29906,
29883,
29898,
1311,
29892,
2643,
1125,
13,
4706,
9995,
3638,
2643,
304,
385,
306,
29906,
29907,
4742,
15945,
29908,
13,
4706,
565,
1583,
29889,
29875,
29906,
29883,
29918,
4645,
338,
451,
6213,
29901,
13,
9651,
1583,
29889,
29875,
29906,
29883,
29918,
449,
29918,
9990,
29889,
649,
29898,
4906,
29897,
13,
13,
1678,
822,
679,
29918,
262,
2055,
292,
29918,
29875,
29906,
29883,
29918,
4906,
29918,
3166,
29918,
9990,
29898,
1311,
1125,
13,
4706,
9995,
10563,
263,
2414,
6402,
2643,
515,
278,
9521,
9995,
13,
4706,
2643,
353,
6213,
13,
4706,
565,
451,
1583,
29889,
29875,
29906,
29883,
29918,
262,
29918,
9990,
29889,
6310,
7295,
13,
9651,
2643,
353,
1583,
29889,
29875,
29906,
29883,
29918,
262,
29918,
9990,
29889,
657,
580,
13,
4706,
736,
2643,
13,
13,
1678,
822,
11905,
29918,
28993,
29898,
1311,
1125,
13,
4706,
9995,
11905,
599,
10663,
9717,
15945,
29908,
13,
4706,
396,
2254,
2295,
934,
13,
4706,
396,
437,
451,
9025,
12247,
363,
11446,
6839,
304,
367,
1065,
297,
3239,
13,
4706,
2428,
2141,
24926,
29918,
28993,
580,
13,
4706,
565,
12002,
29889,
25903,
297,
1583,
29889,
2917,
29901,
13,
9651,
565,
12002,
29889,
5971,
297,
1583,
29889,
2917,
29961,
12756,
29889,
25903,
5387,
13,
18884,
12013,
29918,
2917,
353,
1583,
29889,
2917,
29961,
12756,
29889,
25903,
3816,
12756,
29889,
5971,
29962,
13,
18884,
565,
12002,
29889,
29902,
29906,
29907,
297,
12013,
29918,
2917,
29901,
13,
462,
1678,
1583,
29889,
2962,
29918,
29875,
29906,
29883,
580,
13,
13,
1678,
822,
2425,
29898,
1311,
1125,
13,
4706,
9995,
2425,
1549,
10663,
29889,
29871,
5712,
297,
589,
7612,
770,
15945,
29908,
13,
4706,
1550,
451,
1583,
29889,
845,
329,
3204,
29918,
932,
29901,
13,
9651,
1018,
29901,
13,
18884,
931,
29889,
17059,
29898,
29900,
29889,
29900,
29896,
29897,
13,
18884,
1583,
29889,
3539,
29918,
1188,
29918,
19158,
580,
13,
18884,
1583,
29889,
5014,
29918,
2080,
580,
13,
9651,
5174,
7670,
3377,
4074,
6685,
29901,
13,
18884,
1583,
29889,
845,
329,
3204,
29918,
932,
353,
5852,
13,
13,
1678,
822,
12522,
3204,
29918,
28993,
29898,
1311,
1125,
13,
4706,
9995,
12522,
3204,
599,
10663,
9717,
15945,
29908,
13,
4706,
565,
1583,
29889,
29875,
29906,
29883,
29918,
4645,
338,
451,
6213,
29901,
13,
9651,
396,
1596,
703,
845,
329,
3204,
7797,
1159,
13,
9651,
1583,
29889,
29875,
29906,
29883,
29918,
4645,
29889,
845,
329,
3204,
580,
13,
4706,
2428,
2141,
845,
329,
3204,
29918,
28993,
580,
13,
13,
1678,
822,
6088,
29918,
643,
1365,
29918,
7529,
29898,
1311,
29892,
724,
1365,
29918,
2917,
29918,
1272,
1125,
13,
4706,
9995,
6088,
4128,
363,
3348,
359,
9995,
13,
4706,
396,
1596,
703,
643,
1365,
8636,
1159,
13,
4706,
565,
12002,
29889,
25903,
297,
724,
1365,
29918,
2917,
29918,
1272,
29901,
13,
9651,
565,
12002,
29889,
6304,
29963,
3267,
297,
724,
1365,
29918,
2917,
29918,
1272,
29961,
12756,
29889,
25903,
5387,
13,
18884,
363,
29871,
474,
29906,
29883,
29918,
643,
1365,
29918,
29885,
1314,
297,
724,
1365,
29918,
2917,
29918,
1272,
29961,
12756,
29889,
25903,
3816,
12756,
29889,
6304,
29963,
3267,
5387,
13,
462,
1678,
3211,
353,
474,
29906,
29883,
29918,
643,
1365,
29918,
29885,
1314,
29961,
12756,
29889,
17744,
26785,
29962,
13,
462,
1678,
565,
338,
8758,
29898,
7328,
29892,
851,
1125,
13,
462,
4706,
396,
5251,
15090,
3402,
376,
29900,
29916,
29955,
29955,
29908,
13,
462,
4706,
3211,
353,
938,
29898,
7328,
29892,
29871,
29896,
29953,
29897,
13,
462,
1678,
565,
12002,
29889,
15082,
29903,
297,
474,
29906,
29883,
29918,
643,
1365,
29918,
29885,
1314,
29901,
13,
462,
4706,
363,
474,
29906,
29883,
29918,
643,
1365,
297,
474,
29906,
29883,
29918,
643,
1365,
29918,
29885,
1314,
29961,
12756,
29889,
15082,
29903,
5387,
13,
462,
9651,
1014,
29918,
7328,
353,
474,
29906,
29883,
29918,
643,
1365,
29961,
12756,
29889,
20633,
29918,
17744,
26785,
29962,
13,
462,
9651,
1820,
353,
851,
29898,
7328,
7240,
4710,
29974,
710,
29898,
1491,
29918,
7328,
29897,
13,
462,
9651,
565,
1583,
29889,
2140,
359,
29918,
7529,
338,
6213,
29901,
13,
462,
18884,
1583,
29889,
2140,
359,
29918,
7529,
353,
6571,
13,
462,
9651,
1583,
29889,
2140,
359,
29918,
7529,
29961,
1989,
29962,
353,
474,
29906,
29883,
29918,
643,
1365,
13,
462,
9651,
396,
2158,
703,
7686,
29995,
17969,
1989,
13578,
17794,
29974,
710,
29898,
29875,
29906,
29883,
29918,
643,
1365,
876,
13,
13,
1678,
822,
6088,
29918,
2917,
29918,
1272,
29898,
1311,
29892,
2295,
29918,
1272,
1125,
13,
4706,
9995,
20969,
714,
306,
29906,
29907,
4452,
515,
2295,
4390,
934,
15945,
29908,
13,
4706,
1583,
29889,
1188,
29918,
9990,
29889,
1202,
29918,
4906,
703,
8382,
613,
376,
5510,
474,
29906,
29883,
2295,
1159,
13,
4706,
363,
474,
29906,
29883,
29918,
3177,
297,
2295,
29918,
1272,
29901,
13,
9651,
1583,
29889,
5510,
29918,
10141,
29918,
2917,
29898,
29875,
29906,
29883,
29918,
3177,
29892,
474,
29906,
29883,
29918,
8262,
29922,
29896,
29897,
13,
13,
1678,
822,
6088,
29918,
10141,
29918,
2917,
29898,
1311,
29892,
474,
29906,
29883,
29918,
3177,
29892,
474,
29906,
29883,
29918,
8262,
29922,
8516,
29892,
474,
29906,
29883,
29918,
29885,
1314,
29918,
10141,
29922,
8516,
1125,
13,
4706,
9995,
6088,
5285,
9995,
13,
4706,
474,
29906,
29883,
29918,
1853,
353,
6213,
13,
4706,
474,
29906,
29883,
29918,
10141,
353,
6213,
13,
4706,
474,
29906,
29883,
29918,
29885,
1314,
353,
474,
29906,
29883,
29918,
29885,
1314,
29918,
10141,
13,
4706,
286,
29939,
698,
29918,
637,
353,
6213,
13,
4706,
286,
29939,
698,
29918,
1853,
353,
6213,
13,
4706,
286,
29939,
698,
29918,
6717,
29918,
29879,
6073,
29918,
7645,
353,
7700,
13,
4706,
286,
1314,
29918,
1853,
353,
6213,
13,
4706,
3211,
353,
6213,
13,
4706,
565,
12002,
29889,
29933,
3308,
297,
474,
29906,
29883,
29918,
3177,
29901,
13,
9651,
474,
29906,
29883,
29918,
8262,
353,
474,
29906,
29883,
29918,
3177,
29961,
12756,
29889,
29933,
3308,
29962,
13,
4706,
565,
12002,
29889,
17744,
26785,
297,
474,
29906,
29883,
29918,
3177,
29901,
13,
9651,
3211,
353,
474,
29906,
29883,
29918,
3177,
29961,
12756,
29889,
17744,
26785,
29962,
13,
4706,
565,
338,
8758,
29898,
7328,
29892,
851,
1125,
13,
9651,
396,
5251,
15090,
3402,
376,
29900,
29916,
29955,
29955,
29908,
13,
9651,
3211,
353,
938,
29898,
7328,
29892,
29871,
29896,
29953,
29897,
13,
4706,
396,
1583,
29889,
1188,
29918,
9990,
29889,
1202,
29918,
4906,
703,
3888,
613,
376,
29902,
29906,
29907,
21830,
2295,
29901,
15691,
710,
29898,
7328,
876,
13,
4706,
565,
12002,
29889,
2287,
19059,
29918,
11116,
297,
474,
29906,
29883,
29918,
3177,
29901,
13,
9651,
396,
263,
2908,
310,
474,
29906,
29883,
4742,
29892,
2845,
286,
1314,
470,
330,
16168,
470,
5190,
653,
313,
14369,
4742,
639,
3211,
29897,
13,
9651,
474,
29906,
29883,
29918,
1853,
353,
474,
29906,
29883,
29918,
3177,
29961,
12756,
29889,
2287,
19059,
29918,
11116,
29962,
13,
9651,
565,
474,
29906,
29883,
29918,
1853,
1275,
12002,
29889,
29924,
29965,
29990,
29901,
13,
18884,
286,
1314,
29918,
1853,
353,
474,
29906,
29883,
29918,
3177,
29961,
12756,
29889,
29924,
29965,
29990,
13578,
29899,
17969,
12756,
29889,
11116,
29962,
13,
18884,
396,
1596,
703,
2277,
29937,
286,
1314,
1134,
29901,
15691,
710,
29898,
29885,
1314,
29918,
1853,
876,
13,
18884,
565,
286,
1314,
29918,
1853,
1275,
12002,
29889,
6304,
24898,
29918,
29950,
1299,
29901,
13,
462,
1678,
474,
29906,
29883,
29918,
29885,
1314,
353,
306,
29906,
29883,
1748,
1365,
29950,
271,
29898,
1311,
29889,
1188,
29918,
9990,
29892,
3211,
29892,
286,
1314,
29918,
1853,
29922,
29885,
1314,
29918,
1853,
29892,
13,
462,
4706,
1881,
29918,
9990,
29922,
1311,
29889,
29875,
29906,
29883,
29918,
262,
29918,
9990,
29897,
13,
18884,
25342,
286,
1314,
29918,
1853,
1275,
12002,
29889,
29902,
29906,
29907,
29901,
13,
462,
1678,
474,
29906,
29883,
29918,
29885,
1314,
353,
306,
29906,
29883,
29924,
1314,
29898,
1311,
29889,
1188,
29918,
9990,
29892,
3211,
29892,
286,
1314,
29918,
1853,
29897,
13,
18884,
1683,
29901,
13,
462,
1678,
1583,
29889,
29875,
29906,
29883,
29918,
10141,
29918,
1333,
29918,
18045,
29918,
2704,
29898,
29875,
29906,
29883,
29918,
8262,
29892,
3211,
29892,
12002,
29889,
29924,
29965,
29990,
29897,
13,
18884,
565,
451,
1583,
29889,
275,
29918,
10141,
29918,
18045,
29898,
29875,
29906,
29883,
29918,
8262,
29892,
3211,
1125,
13,
462,
1678,
1583,
29889,
29875,
29906,
29883,
29918,
10141,
29918,
1333,
29918,
18045,
29918,
2704,
29898,
29875,
29906,
29883,
29918,
8262,
29892,
3211,
29892,
474,
29906,
29883,
29918,
1853,
29897,
13,
18884,
16169,
353,
474,
29906,
29883,
29918,
3177,
29961,
12756,
29889,
15082,
29903,
29962,
13,
18884,
363,
2011,
297,
16169,
29901,
13,
462,
1678,
1583,
29889,
5510,
29918,
10141,
29918,
2917,
29898,
637,
29892,
474,
29906,
29883,
29918,
8262,
29922,
29875,
29906,
29883,
29918,
8262,
29892,
474,
29906,
29883,
29918,
29885,
1314,
29918,
10141,
29922,
29875,
29906,
29883,
29918,
29885,
1314,
29897,
13,
18884,
474,
29906,
29883,
29918,
10141,
353,
474,
29906,
29883,
29918,
29885,
1314,
13,
9651,
1683,
29901,
13,
18884,
474,
29906,
29883,
29918,
1491,
29918,
7328,
353,
6213,
13,
18884,
565,
474,
29906,
29883,
29918,
29885,
1314,
338,
451,
6213,
29901,
13,
462,
1678,
565,
12002,
29889,
20633,
29918,
17744,
26785,
297,
474,
29906,
29883,
29918,
3177,
29901,
13,
462,
4706,
474,
29906,
29883,
29918,
1491,
29918,
7328,
353,
474,
29906,
29883,
29918,
3177,
29961,
12756,
29889,
20633,
29918,
17744,
26785,
29962,
13,
18884,
4742,
29918,
1853,
353,
6213,
13,
18884,
565,
12002,
29889,
25566,
19988,
13578,
29899,
17969,
12756,
29889,
15082,
297,
474,
29906,
29883,
29918,
3177,
29901,
13,
462,
1678,
286,
29939,
698,
29918,
637,
353,
474,
29906,
29883,
29918,
3177,
29961,
12756,
29889,
25566,
19988,
13578,
29899,
17969,
12756,
29889,
15082,
29962,
13,
18884,
565,
12002,
29889,
25566,
19988,
13578,
29899,
17969,
12756,
29889,
11116,
297,
474,
29906,
29883,
29918,
3177,
29901,
13,
462,
1678,
286,
29939,
698,
29918,
1853,
353,
474,
29906,
29883,
29918,
3177,
29961,
12756,
29889,
25566,
19988,
13578,
29899,
17969,
12756,
29889,
11116,
29962,
13,
18884,
565,
12002,
29889,
25566,
19988,
13578,
29899,
17969,
12756,
29889,
29903,
1430,
29903,
1955,
297,
474,
29906,
29883,
29918,
3177,
29901,
13,
462,
1678,
23530,
353,
474,
29906,
29883,
29918,
3177,
29961,
12756,
29889,
25566,
19988,
13578,
29899,
17969,
12756,
29889,
29903,
1430,
29903,
1955,
29962,
13,
462,
1678,
286,
29939,
698,
29918,
6717,
29918,
29879,
6073,
29918,
7645,
353,
6120,
29898,
29879,
6073,
1275,
12002,
29889,
20652,
29897,
13,
18884,
565,
12002,
29889,
2287,
19059,
29918,
11116,
297,
474,
29906,
29883,
29918,
3177,
29901,
13,
462,
1678,
4742,
29918,
1853,
353,
474,
29906,
29883,
29918,
3177,
29961,
12756,
29889,
2287,
19059,
29918,
11116,
29962,
13,
18884,
565,
474,
29906,
29883,
29918,
1853,
1275,
12002,
29889,
29934,
29943,
1367,
29901,
13,
462,
1678,
1583,
29889,
1188,
29918,
9990,
29889,
1202,
29918,
4906,
703,
3888,
613,
376,
29902,
29906,
29907,
21830,
2295,
29901,
15691,
710,
29898,
7328,
7240,
29908,
17794,
29974,
710,
29898,
29875,
29906,
29883,
29918,
1853,
7240,
13,
462,
9651,
376,
17794,
29974,
710,
29898,
28466,
698,
29918,
637,
7240,
29908,
17794,
29974,
710,
29898,
28466,
698,
29918,
1853,
876,
13,
462,
1678,
396,
1596,
703,
16270,
716,
364,
29888,
333,
29901,
15691,
710,
29898,
7328,
7240,
29908,
6317,
15691,
710,
29898,
29875,
29906,
29883,
29918,
1491,
29918,
7328,
7240,
29908,
6317,
15691,
710,
29898,
29875,
29906,
29883,
29918,
29885,
1314,
876,
13,
462,
1678,
474,
29906,
29883,
29918,
10141,
353,
306,
29906,
29883,
29934,
29888,
333,
29898,
1311,
29889,
1188,
29918,
9990,
29892,
3211,
29892,
13,
462,
9651,
1881,
29918,
9990,
29922,
1311,
29889,
29875,
29906,
29883,
29918,
262,
29918,
9990,
29892,
13,
462,
9651,
286,
29939,
698,
29918,
637,
29922,
28466,
698,
29918,
637,
29892,
13,
462,
9651,
286,
29939,
698,
29918,
1853,
29922,
28466,
698,
29918,
1853,
29892,
13,
462,
9651,
474,
29906,
29883,
29918,
10141,
29918,
1853,
29922,
10141,
29918,
1853,
29892,
13,
462,
9651,
474,
29906,
29883,
29918,
8262,
29918,
4537,
29922,
29875,
29906,
29883,
29918,
8262,
29892,
13,
462,
9651,
474,
29906,
29883,
29918,
29885,
1314,
29922,
29875,
29906,
29883,
29918,
29885,
1314,
29892,
13,
462,
9651,
474,
29906,
29883,
29918,
1491,
29918,
7328,
29922,
29875,
29906,
29883,
29918,
1491,
29918,
7328,
29897,
13,
18884,
25342,
474,
29906,
29883,
29918,
1853,
1275,
12002,
29889,
6304,
24898,
29901,
13,
462,
1678,
396,
1596,
703,
21004,
1748,
1365,
1159,
13,
462,
1678,
4818,
29918,
311,
7979,
267,
353,
29871,
29946,
29945,
29871,
396,
21274,
363,
29871,
29929,
29900,
7426,
724,
1365,
13,
462,
1678,
3183,
29918,
311,
7979,
267,
353,
29871,
29929,
29900,
13,
462,
1678,
3802,
29918,
311,
7979,
267,
353,
29871,
29900,
13,
462,
1678,
565,
1583,
29889,
2140,
359,
29918,
7529,
338,
451,
6213,
29901,
13,
462,
4706,
1820,
353,
851,
29898,
29875,
29906,
29883,
29918,
29885,
1314,
29918,
10141,
29889,
29875,
29906,
29883,
29918,
7328,
7240,
4710,
29974,
710,
29898,
29875,
29906,
29883,
29918,
1491,
29918,
7328,
29897,
13,
462,
4706,
396,
2158,
703,
25380,
29992,
1989,
29906,
29901,
15691,
710,
29898,
1989,
876,
13,
462,
4706,
565,
1820,
297,
1583,
29889,
2140,
359,
29918,
7529,
29901,
13,
462,
9651,
724,
1365,
29918,
7529,
353,
1583,
29889,
2140,
359,
29918,
7529,
29961,
1989,
29962,
13,
462,
9651,
4818,
29918,
311,
7979,
267,
353,
724,
1365,
29918,
7529,
29961,
12756,
29889,
29907,
3919,
1001,
29962,
13,
462,
9651,
3183,
29918,
311,
7979,
267,
353,
724,
1365,
29918,
7529,
29961,
12756,
29889,
4690,
25180,
29962,
13,
462,
9651,
3802,
29918,
311,
7979,
267,
353,
724,
1365,
29918,
7529,
29961,
12756,
29889,
29907,
3927,
1660,
29962,
13,
462,
9651,
396,
1596,
703,
2917,
14496,
29901,
15691,
710,
29898,
5064,
29918,
311,
7979,
267,
7240,
13,
462,
9651,
396,
376,
636,
17969,
710,
29898,
20539,
29918,
311,
7979,
267,
7240,
29908,
636,
17969,
710,
29898,
5358,
29918,
311,
7979,
267,
876,
13,
462,
4706,
1683,
29901,
13,
462,
9651,
1583,
29889,
1188,
29918,
9990,
29889,
1202,
29918,
4906,
703,
2704,
613,
376,
3782,
12782,
363,
1816,
1365,
29901,
15691,
851,
29898,
1989,
876,
13,
462,
1678,
1583,
29889,
1188,
29918,
9990,
29889,
1202,
29918,
4906,
703,
3888,
613,
376,
29902,
29906,
29907,
1816,
1365,
2295,
29901,
15691,
710,
29898,
7328,
7240,
29908,
17794,
29974,
710,
29898,
29875,
29906,
29883,
29918,
1853,
7240,
13,
462,
9651,
376,
17794,
29974,
710,
29898,
28466,
698,
29918,
637,
7240,
29908,
17794,
29974,
710,
29898,
28466,
698,
29918,
1853,
7240,
13,
462,
9651,
376,
17794,
29974,
710,
29898,
5064,
29918,
311,
7979,
267,
7240,
29908,
17794,
29974,
710,
29898,
20539,
29918,
311,
7979,
267,
7240,
29908,
17794,
29974,
710,
29898,
5358,
29918,
311,
7979,
267,
876,
13,
462,
1678,
474,
29906,
29883,
29918,
10141,
353,
306,
29906,
29883,
1748,
1365,
29898,
1311,
29889,
1188,
29918,
9990,
29892,
3211,
29892,
13,
462,
9651,
1881,
29918,
9990,
29922,
1311,
29889,
29875,
29906,
29883,
29918,
262,
29918,
9990,
29892,
13,
462,
9651,
286,
29939,
698,
29918,
637,
29922,
28466,
698,
29918,
637,
29892,
13,
462,
9651,
286,
29939,
698,
29918,
1853,
29922,
28466,
698,
29918,
1853,
29892,
13,
462,
9651,
286,
29939,
698,
29918,
6717,
29918,
29879,
6073,
29918,
7645,
29922,
28466,
698,
29918,
6717,
29918,
29879,
6073,
29918,
7645,
29892,
13,
462,
9651,
474,
29906,
29883,
29918,
10141,
29918,
1853,
29922,
10141,
29918,
1853,
29892,
13,
462,
9651,
474,
29906,
29883,
29918,
8262,
29918,
4537,
29922,
29875,
29906,
29883,
29918,
8262,
29892,
13,
462,
9651,
474,
29906,
29883,
29918,
29885,
1314,
29922,
29875,
29906,
29883,
29918,
29885,
1314,
29918,
10141,
29892,
13,
462,
9651,
474,
29906,
29883,
29918,
1491,
29918,
7328,
29922,
29875,
29906,
29883,
29918,
1491,
29918,
7328,
29897,
13,
462,
1678,
474,
29906,
29883,
29918,
10141,
29889,
5064,
29918,
311,
7979,
267,
353,
4818,
29918,
311,
7979,
267,
13,
462,
1678,
474,
29906,
29883,
29918,
10141,
29889,
20539,
29918,
311,
7979,
267,
353,
3183,
29918,
311,
7979,
267,
13,
462,
1678,
474,
29906,
29883,
29918,
10141,
29889,
5358,
29918,
311,
7979,
267,
353,
3802,
29918,
311,
7979,
267,
13,
18884,
25342,
474,
29906,
29883,
29918,
1853,
1275,
12002,
29889,
1672,
29911,
19926,
29901,
13,
462,
1678,
1583,
29889,
1188,
29918,
9990,
29889,
1202,
29918,
4906,
703,
3888,
613,
376,
29902,
29906,
29907,
21830,
2295,
29901,
15691,
710,
29898,
7328,
7240,
29908,
17794,
29974,
710,
29898,
29875,
29906,
29883,
29918,
1853,
7240,
13,
462,
9651,
376,
17794,
29974,
710,
29898,
28466,
698,
29918,
637,
7240,
29908,
17794,
29974,
710,
29898,
28466,
698,
29918,
1853,
876,
13,
462,
1678,
474,
29906,
29883,
29918,
10141,
353,
306,
29906,
29883,
21281,
653,
29898,
1311,
29889,
1188,
29918,
9990,
29892,
3211,
29892,
13,
462,
9651,
1881,
29918,
9990,
29922,
1311,
29889,
29875,
29906,
29883,
29918,
262,
29918,
9990,
29892,
13,
462,
9651,
286,
29939,
698,
29918,
637,
29922,
28466,
698,
29918,
637,
29892,
13,
462,
9651,
286,
29939,
698,
29918,
1853,
29922,
28466,
698,
29918,
1853,
29892,
13,
462,
9651,
474,
29906,
29883,
29918,
10141,
29918,
1853,
29922,
10141,
29918,
1853,
29892,
13,
462,
9651,
474,
29906,
29883,
29918,
8262,
29918,
4537,
29922,
29875,
29906,
29883,
29918,
8262,
29892,
13,
462,
9651,
474,
29906,
29883,
29918,
29885,
1314,
29922,
29875,
29906,
29883,
29918,
29885,
1314,
29918,
10141,
29892,
13,
462,
9651,
474,
29906,
29883,
29918,
1491,
29918,
7328,
29922,
29875,
29906,
29883,
29918,
1491,
29918,
7328,
29897,
13,
18884,
25342,
474,
29906,
29883,
29918,
1853,
1275,
12002,
29889,
23711,
29925,
18799,
29901,
13,
462,
1678,
2479,
29918,
2311,
353,
6213,
13,
462,
1678,
2479,
29918,
1853,
353,
6213,
13,
462,
1678,
565,
12002,
29889,
23711,
29925,
18799,
13578,
29899,
17969,
12756,
29889,
14226,
297,
474,
29906,
29883,
29918,
3177,
29901,
13,
462,
4706,
2479,
29918,
2311,
353,
474,
29906,
29883,
29918,
3177,
29961,
12756,
29889,
23711,
29925,
18799,
13578,
29899,
17969,
12756,
29889,
14226,
29962,
13,
462,
1678,
565,
12002,
29889,
23711,
29925,
18799,
13578,
29899,
17969,
12756,
29889,
11116,
297,
474,
29906,
29883,
29918,
3177,
29901,
13,
462,
4706,
2479,
29918,
1853,
353,
474,
29906,
29883,
29918,
3177,
29961,
12756,
29889,
23711,
29925,
18799,
13578,
29899,
17969,
12756,
29889,
11116,
29962,
13,
462,
4706,
396,
451,
14332,
4225,
12272,
368,
29892,
1053,
871,
565,
4312,
13,
462,
1678,
565,
451,
1583,
29889,
29875,
29906,
29883,
29918,
4990,
29918,
5215,
287,
29901,
13,
462,
4706,
515,
474,
29906,
29883,
29918,
4990,
1053,
306,
29906,
29883,
9323,
13,
462,
4706,
1583,
29889,
29875,
29906,
29883,
29918,
4990,
29918,
5215,
287,
353,
5852,
13,
462,
1678,
1583,
29889,
1188,
29918,
9990,
29889,
1202,
29918,
4906,
703,
3888,
613,
376,
29902,
29906,
29907,
21830,
2295,
29901,
15691,
710,
29898,
7328,
7240,
29908,
17794,
29974,
29875,
29906,
29883,
29918,
1853,
29897,
13,
462,
1678,
474,
29906,
29883,
29918,
10141,
353,
306,
29906,
29883,
9323,
29898,
1311,
29889,
1188,
29918,
9990,
29892,
3211,
29892,
13,
462,
9651,
2479,
29918,
2311,
29922,
4990,
29918,
2311,
29892,
13,
462,
9651,
2479,
29918,
1853,
29922,
4990,
29918,
1853,
29892,
13,
462,
9651,
474,
29906,
29883,
29918,
8262,
29918,
4537,
29922,
29875,
29906,
29883,
29918,
8262,
29892,
13,
462,
9651,
474,
29906,
29883,
29918,
29885,
1314,
29922,
29875,
29906,
29883,
29918,
29885,
1314,
29918,
10141,
29892,
13,
462,
9651,
474,
29906,
29883,
29918,
1491,
29918,
7328,
29922,
29875,
29906,
29883,
29918,
1491,
29918,
7328,
29897,
13,
18884,
25342,
474,
29906,
29883,
29918,
1853,
1275,
12002,
29889,
29954,
2227,
29949,
29901,
13,
462,
1678,
1209,
13,
4706,
565,
474,
29906,
29883,
29918,
1853,
338,
451,
6213,
322,
474,
29906,
29883,
29918,
10141,
338,
451,
6213,
29901,
13,
9651,
565,
474,
29906,
29883,
29918,
10141,
29889,
29875,
29906,
29883,
29918,
1491,
29918,
7328,
338,
6213,
29901,
13,
18884,
565,
451,
1583,
29889,
275,
29918,
10141,
29918,
18045,
29898,
29875,
29906,
29883,
29918,
10141,
29889,
29875,
29906,
29883,
29918,
8262,
29918,
4537,
29892,
474,
29906,
29883,
29918,
10141,
29889,
29875,
29906,
29883,
29918,
7328,
1125,
13,
462,
1678,
1583,
29889,
29875,
29906,
29883,
29918,
10141,
29918,
1333,
29918,
18045,
29918,
2704,
29898,
29875,
29906,
29883,
29918,
10141,
29889,
29875,
29906,
29883,
29918,
8262,
29918,
4537,
29892,
474,
29906,
29883,
29918,
10141,
29889,
29875,
29906,
29883,
29918,
7328,
29892,
13,
462,
9651,
474,
29906,
29883,
29918,
10141,
29889,
29875,
29906,
29883,
29918,
10141,
29918,
1853,
29897,
13,
9651,
396,
1596,
703,
25380,
29992,
15691,
710,
29898,
29875,
29906,
29883,
29918,
1853,
876,
13,
9651,
1583,
29889,
29875,
29906,
29883,
29918,
3359,
1575,
29889,
4397,
3319,
29915,
1853,
2396,
474,
29906,
29883,
29918,
1853,
29892,
525,
28466,
698,
29899,
637,
2396,
286,
29939,
698,
29918,
637,
29892,
525,
3359,
2396,
474,
29906,
29883,
29918,
10141,
1800,
13,
9651,
565,
286,
29939,
698,
29918,
637,
338,
451,
6213,
29901,
13,
18884,
286,
29939,
698,
29918,
1989,
353,
286,
29939,
698,
29918,
637,
29974,
4710,
29974,
28466,
698,
29918,
1853,
13,
18884,
1583,
29889,
28466,
698,
29918,
3359,
1575,
29961,
28466,
698,
29918,
1989,
29962,
353,
474,
29906,
29883,
29918,
10141,
13,
13,
1678,
822,
474,
29906,
29883,
29918,
10141,
29918,
1333,
29918,
18045,
29918,
2704,
29898,
1311,
29892,
3593,
29892,
3211,
29892,
26688,
1125,
13,
4706,
9995,
12020,
8960,
29898,
12756,
29889,
4345,
29954,
29918,
29902,
29906,
29907,
29918,
12256,
29918,
6007,
8186,
1783,
3352,
13578,
15691,
12756,
29889,
2287,
19059,
29918,
11116,
29974,
1115,
15691,
710,
29898,
1853,
7240,
613,
15691,
13,
9651,
12002,
29889,
29933,
3308,
29974,
1115,
15691,
710,
29898,
8262,
7240,
613,
15691,
12756,
29889,
17744,
26785,
29974,
1115,
15691,
710,
29898,
7328,
876,
9995,
13,
4706,
1583,
29889,
1188,
29918,
9990,
29889,
1202,
29918,
4906,
703,
2704,
613,
12002,
29889,
4345,
29954,
29918,
29902,
29906,
29907,
29918,
12256,
29918,
6007,
8186,
1783,
3352,
13578,
15691,
12756,
29889,
2287,
19059,
29918,
11116,
29974,
13,
795,
29242,
15691,
710,
29898,
29881,
1853,
7240,
613,
15691,
13,
795,
12002,
29889,
29933,
3308,
29974,
1115,
15691,
710,
29898,
8262,
7240,
613,
15691,
12756,
29889,
17744,
26785,
29974,
1115,
15691,
710,
29898,
7328,
876,
13,
13,
29937,
259,
9120,
26529,
515,
16267,
7692,
3855,
4353,
293,
29918,
29875,
29906,
29883,
13,
1678,
822,
338,
29918,
10141,
29918,
18045,
29898,
1311,
29892,
1560,
8262,
29892,
3211,
1125,
13,
4706,
9995,
338,
474,
29906,
29883,
4742,
4511,
304,
474,
29906,
29883,
3593,
9995,
13,
4706,
4742,
29918,
18045,
353,
7700,
13,
4706,
411,
317,
9486,
375,
29898,
3844,
8262,
29897,
408,
3593,
29901,
13,
9651,
1018,
29901,
13,
18884,
396,
3967,
304,
2436,
263,
7023,
304,
278,
4742,
29892,
1899,
29871,
29900,
29916,
29900,
13,
18884,
396,
960,
372,
8026,
385,
306,
29914,
29949,
1059,
448,
278,
4742,
3508,
29915,
29873,
6631,
13,
18884,
3593,
29889,
3539,
29918,
10389,
29898,
7328,
29892,
29871,
29900,
29916,
29900,
29897,
13,
18884,
4742,
29918,
18045,
353,
5852,
13,
9651,
5174,
8960,
408,
321,
29872,
29901,
13,
18884,
1596,
703,
2392,
16791,
304,
21830,
29901,
15691,
710,
29898,
7328,
7240,
29908,
6317,
15691,
710,
29898,
3905,
876,
13,
4706,
736,
4742,
29918,
18045,
13,
2
] |
stubs.min/System/ComponentModel/__init___parts/LookupBindingPropertiesAttribute.py | ricardyn/ironpython-stubs | 1 | 172571 | <reponame>ricardyn/ironpython-stubs<gh_stars>1-10
class LookupBindingPropertiesAttribute(Attribute,_Attribute):
"""
Specifies the properties that support lookup-based binding. This class cannot be inherited.
LookupBindingPropertiesAttribute()
LookupBindingPropertiesAttribute(dataSource: str,displayMember: str,valueMember: str,lookupMember: str)
"""
def Equals(self,obj):
"""
Equals(self: LookupBindingPropertiesAttribute,obj: object) -> bool
Determines whether the specified System.Object is equal to the current
System.ComponentModel.LookupBindingPropertiesAttribute instance.
obj: The System.Object to compare with the current
System.ComponentModel.LookupBindingPropertiesAttribute instance
Returns: true if the object is equal to the current instance; otherwise,false,
indicating they are not equal.
"""
pass
def GetHashCode(self):
"""
GetHashCode(self: LookupBindingPropertiesAttribute) -> int
Returns the hash code for this instance.
Returns: A hash code for the current
System.ComponentModel.LookupBindingPropertiesAttribute.
"""
pass
def __eq__(self,*args):
""" x.__eq__(y) <==> x==y """
pass
def __init__(self,*args):
""" x.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signaturex.__init__(...) initializes x; see x.__class__.__doc__ for signature """
pass
@staticmethod
def __new__(self,dataSource=None,displayMember=None,valueMember=None,lookupMember=None):
"""
__new__(cls: type)
__new__(cls: type,dataSource: str,displayMember: str,valueMember: str,lookupMember: str)
"""
pass
def __ne__(self,*args):
pass
DataSource=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the name of the data source property for the component to which the System.ComponentModel.LookupBindingPropertiesAttribute is bound.
Get: DataSource(self: LookupBindingPropertiesAttribute) -> str
"""
DisplayMember=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the name of the display member property for the component to which the System.ComponentModel.LookupBindingPropertiesAttribute is bound.
Get: DisplayMember(self: LookupBindingPropertiesAttribute) -> str
"""
LookupMember=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the name of the lookup member for the component to which this attribute is bound.
Get: LookupMember(self: LookupBindingPropertiesAttribute) -> str
"""
ValueMember=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the name of the value member property for the component to which the System.ComponentModel.LookupBindingPropertiesAttribute is bound.
Get: ValueMember(self: LookupBindingPropertiesAttribute) -> str
"""
Default=None
| [
1,
529,
276,
1112,
420,
29958,
2200,
538,
948,
29914,
381,
265,
4691,
29899,
303,
23954,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
1990,
7419,
786,
9270,
11857,
6708,
29898,
6708,
29892,
29918,
6708,
1125,
30004,
13,
9995,
30004,
13,
12048,
11057,
278,
4426,
393,
2304,
16280,
29899,
6707,
9956,
29889,
910,
770,
2609,
367,
23878,
22993,
30004,
13,
6756,
30004,
13,
7419,
786,
9270,
11857,
6708,
26471,
30004,
13,
7419,
786,
9270,
11857,
6708,
29898,
1272,
4435,
29901,
851,
29892,
4990,
13404,
29901,
851,
29892,
1767,
13404,
29901,
851,
29892,
20401,
13404,
29901,
851,
8443,
13,
9995,
30004,
13,
822,
11243,
1338,
29898,
1311,
29892,
5415,
1125,
30004,
13,
29871,
9995,
30004,
13,
29871,
11243,
1338,
29898,
1311,
29901,
7419,
786,
9270,
11857,
6708,
29892,
5415,
29901,
1203,
29897,
1599,
6120,
30004,
30004,
13,
29871,
6756,
30004,
13,
259,
5953,
837,
1475,
3692,
278,
6790,
2184,
29889,
2061,
338,
5186,
304,
278,
1857,
6756,
30004,
13,
1678,
2184,
29889,
5308,
3195,
29889,
14959,
786,
9270,
11857,
6708,
2777,
22993,
30004,
13,
29871,
6756,
30004,
13,
29871,
6756,
30004,
13,
259,
5446,
29901,
450,
2184,
29889,
2061,
304,
7252,
411,
278,
1857,
6756,
30004,
13,
1678,
2184,
29889,
5308,
3195,
29889,
14959,
786,
9270,
11857,
6708,
2777,
30004,
30004,
13,
29871,
6756,
30004,
13,
259,
16969,
29901,
1565,
565,
278,
1203,
338,
5186,
304,
278,
1857,
2777,
29936,
6467,
29892,
4541,
11167,
30004,
13,
1678,
23941,
896,
526,
451,
5186,
22993,
13,
29871,
9995,
30004,
13,
29871,
1209,
30004,
13,
822,
3617,
10438,
3399,
29898,
1311,
1125,
30004,
13,
29871,
9995,
30004,
13,
29871,
3617,
10438,
3399,
29898,
1311,
29901,
7419,
786,
9270,
11857,
6708,
29897,
1599,
938,
30004,
30004,
13,
29871,
6756,
30004,
13,
259,
16969,
278,
6608,
775,
363,
445,
2777,
22993,
30004,
13,
259,
16969,
29901,
319,
6608,
775,
363,
278,
1857,
6756,
30004,
13,
1678,
2184,
29889,
5308,
3195,
29889,
14959,
786,
9270,
11857,
6708,
22993,
13,
29871,
9995,
30004,
13,
29871,
1209,
30004,
13,
822,
4770,
1837,
12035,
1311,
29892,
29930,
5085,
1125,
30004,
13,
29871,
9995,
921,
17255,
1837,
12035,
29891,
29897,
529,
1360,
29958,
921,
1360,
29891,
9995,
30004,
13,
29871,
1209,
30004,
13,
822,
4770,
2344,
12035,
1311,
29892,
29930,
5085,
1125,
30004,
13,
29871,
9995,
921,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
29916,
17255,
2344,
12035,
11410,
2847,
7093,
921,
29936,
1074,
921,
17255,
1990,
1649,
17255,
1514,
1649,
363,
12608,
9995,
30004,
13,
29871,
1209,
30004,
13,
732,
7959,
5696,
30004,
13,
822,
4770,
1482,
12035,
1311,
29892,
1272,
4435,
29922,
8516,
29892,
4990,
13404,
29922,
8516,
29892,
1767,
13404,
29922,
8516,
29892,
20401,
13404,
29922,
8516,
1125,
30004,
13,
29871,
9995,
30004,
13,
29871,
4770,
1482,
12035,
25932,
29901,
1134,
8443,
30004,
13,
29871,
4770,
1482,
12035,
25932,
29901,
1134,
29892,
1272,
4435,
29901,
851,
29892,
4990,
13404,
29901,
851,
29892,
1767,
13404,
29901,
851,
29892,
20401,
13404,
29901,
851,
8443,
13,
29871,
9995,
30004,
13,
29871,
1209,
30004,
13,
822,
4770,
484,
12035,
1311,
29892,
29930,
5085,
1125,
30004,
13,
29871,
1209,
30004,
13,
3630,
4435,
29922,
6799,
29898,
2892,
1583,
29901,
1203,
3285,
2892,
1583,
29892,
29894,
29901,
6213,
29892,
2892,
1583,
29901,
6213,
8443,
13,
9995,
29954,
1691,
278,
1024,
310,
278,
848,
2752,
2875,
363,
278,
4163,
304,
607,
278,
2184,
29889,
5308,
3195,
29889,
14959,
786,
9270,
11857,
6708,
338,
3216,
22993,
30004,
13,
30004,
30004,
13,
2577,
29901,
3630,
4435,
29898,
1311,
29901,
7419,
786,
9270,
11857,
6708,
29897,
1599,
851,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
17440,
13404,
29922,
6799,
29898,
2892,
1583,
29901,
1203,
3285,
2892,
1583,
29892,
29894,
29901,
6213,
29892,
2892,
1583,
29901,
6213,
8443,
13,
9995,
29954,
1691,
278,
1024,
310,
278,
2479,
4509,
2875,
363,
278,
4163,
304,
607,
278,
2184,
29889,
5308,
3195,
29889,
14959,
786,
9270,
11857,
6708,
338,
3216,
22993,
30004,
13,
30004,
30004,
13,
2577,
29901,
17440,
13404,
29898,
1311,
29901,
7419,
786,
9270,
11857,
6708,
29897,
1599,
851,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
7419,
786,
13404,
29922,
6799,
29898,
2892,
1583,
29901,
1203,
3285,
2892,
1583,
29892,
29894,
29901,
6213,
29892,
2892,
1583,
29901,
6213,
8443,
13,
9995,
29954,
1691,
278,
1024,
310,
278,
16280,
4509,
363,
278,
4163,
304,
607,
445,
5352,
338,
3216,
22993,
30004,
13,
30004,
30004,
13,
2577,
29901,
7419,
786,
13404,
29898,
1311,
29901,
7419,
786,
9270,
11857,
6708,
29897,
1599,
851,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
7865,
13404,
29922,
6799,
29898,
2892,
1583,
29901,
1203,
3285,
2892,
1583,
29892,
29894,
29901,
6213,
29892,
2892,
1583,
29901,
6213,
8443,
13,
9995,
29954,
1691,
278,
1024,
310,
278,
995,
4509,
2875,
363,
278,
4163,
304,
607,
278,
2184,
29889,
5308,
3195,
29889,
14959,
786,
9270,
11857,
6708,
338,
3216,
22993,
30004,
13,
30004,
30004,
13,
2577,
29901,
7865,
13404,
29898,
1311,
29901,
7419,
786,
9270,
11857,
6708,
29897,
1599,
851,
30004,
30004,
13,
30004,
30004,
13,
15945,
19451,
13,
30004,
13,
30004,
13,
13109,
29922,
8516,
30004,
13,
30004,
13,
2
] |
camerartc/camerartc.gyp | Teaonly/yacamera | 20 | 52789 | <gh_stars>10-100
#
# Building script for ipcamera application
#
{
'includes': ['build/common.gypi'],
'targets' : [
{
'target_name': 'camerartc',
'type': 'executable',
'include_dirs': [
'../third_party/webrtc/modules/interface',
],
'dependencies': [
'libjingle.gyp:libjingle_peerconnection',
'<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
],
'sources': [
'camerartc/main.cpp',
'camerartc/peer.h',
'camerartc/peer.cpp',
'camerartc/camerartc.h',
'camerartc/camerartc.cpp',
'camerartc/rtcstream.h',
'camerartc/rtcstream.cpp',
'camerartc/attendee.h',
'camerartc/attendee.cpp',
'camerartc/mediabuffer.h',
'camerartc/mediabuffer.cpp',
'camerartc/raptor/numberdb.h',
'camerartc/raptor/numberdb.cpp',
'camerartc/raptor/rprandom.h',
'camerartc/raptor/rprandom.cpp',
'camerartc/raptor/raptor.h',
'camerartc/raptor/aaptor.cpp',
'camerartc/g72x/g726_32.c',
'camerartc/g72x/g711.c',
'camerartc/g72x/g72x.c',
],
},
],
}
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
13,
29937,
259,
17166,
2471,
363,
474,
6739,
314,
1572,
2280,
13,
29937,
13,
29912,
13,
1678,
525,
24572,
2396,
6024,
4282,
29914,
9435,
29889,
29887,
1478,
29875,
7464,
13,
1678,
525,
5182,
29879,
29915,
584,
518,
13,
1678,
426,
13,
4706,
525,
5182,
29918,
978,
2396,
525,
29883,
4183,
442,
29883,
742,
13,
4706,
525,
1853,
2396,
525,
4258,
9246,
742,
13,
4706,
525,
2856,
29918,
3972,
29879,
2396,
518,
29871,
13,
9651,
525,
6995,
22585,
29918,
22633,
29914,
705,
1182,
14246,
29914,
7576,
29914,
13248,
742,
13,
4706,
21251,
29871,
13,
4706,
525,
22594,
2396,
518,
13,
9651,
525,
1982,
29926,
292,
280,
29889,
29887,
1478,
29901,
1982,
29926,
292,
280,
29918,
412,
261,
9965,
742,
13,
9651,
12801,
29898,
2287,
29925,
4690,
6802,
22585,
29918,
22633,
29914,
3126,
8223,
29914,
3126,
8223,
29889,
29887,
1478,
29901,
3126,
8223,
742,
13,
4706,
21251,
13,
4706,
525,
29879,
2863,
2396,
518,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
3396,
29889,
8223,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
412,
261,
29889,
29882,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
412,
261,
29889,
8223,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
29883,
4183,
442,
29883,
29889,
29882,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
29883,
4183,
442,
29883,
29889,
8223,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
2273,
29883,
5461,
29889,
29882,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
2273,
29883,
5461,
29889,
8223,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
8606,
311,
29872,
29889,
29882,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
8606,
311,
29872,
29889,
8223,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
4210,
370,
3043,
29889,
29882,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
4210,
370,
3043,
29889,
8223,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
336,
415,
272,
29914,
4537,
2585,
29889,
29882,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
336,
415,
272,
29914,
4537,
2585,
29889,
8223,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
336,
415,
272,
29914,
29878,
558,
2685,
29889,
29882,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
336,
415,
272,
29914,
29878,
558,
2685,
29889,
8223,
742,
29871,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
336,
415,
272,
29914,
336,
415,
272,
29889,
29882,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
336,
415,
272,
29914,
29874,
2156,
272,
29889,
8223,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
29887,
29955,
29906,
29916,
29914,
29887,
29955,
29906,
29953,
29918,
29941,
29906,
29889,
29883,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
29887,
29955,
29906,
29916,
29914,
29887,
29955,
29896,
29896,
29889,
29883,
742,
13,
9651,
525,
29883,
4183,
442,
29883,
29914,
29887,
29955,
29906,
29916,
29914,
29887,
29955,
29906,
29916,
29889,
29883,
742,
13,
9651,
21251,
13,
1678,
2981,
13,
1678,
21251,
13,
29913,
13,
2
] |
Experiment Processing/experiment1/calculate_mutual_tracks.py | Austaon/GroupRecommendationThesis | 0 | 109905 | import statistics
from database.user import SessionUser
import matplotlib.pyplot as plt
def calculate_mutual_tracks(key="real", plot_data=True):
"""
Finds the number of tracks that are in both the selected data and the given dataset in each time range.
The average and standard deviation are printed and a boxplot is generated.
:param key: The dataset to use: "real", "recommended", or "random"
:param plot_data:
:return:
"""
types = ["tracks_short_term", "tracks_medium_term", "tracks_long_term"]
result = {
"tracks_short_term": [],
"tracks_medium_term": [],
"tracks_long_term": []
}
count = 0
for user in SessionUser.objects:
count += 1
print(f"User {count} out of 88")
chosen_tracks = user.tracks
for category in types:
top_tracks = user.survey[key][category]
result[category].append(len([t for t in top_tracks if t in chosen_tracks]))
for category in types:
print(
f"{category:18s}: mean {statistics.mean(result[category]):.2f}, stdev: {statistics.stdev(result[category]):.2f}")
if plot_data:
fig, ax = plt.subplots()
boxplot_data = [
result["tracks_short_term"],
result["tracks_medium_term"],
result["tracks_long_term"]
]
labels = ["Short Term", "Medium Term", "Long Term"]
ax.boxplot(boxplot_data, labels=labels,
boxprops=dict(linestyle='-', linewidth=1.5),
medianprops=dict(linestyle='-', linewidth=2),
whiskerprops=dict(linestyle='-', linewidth=1.5),
capprops=dict(linestyle='-', linewidth=1.5),
showfliers=True
)
ax.set_xticklabels(labels)
ax.yaxis.grid(True, linestyle='-', which='major', color='lightgrey', alpha=0.5)
ax.set_ylim((0, 10))
ax.set_ylabel("Matching Items")
fig.tight_layout()
plt.show()
| [
1,
1053,
13964,
13,
13,
3166,
2566,
29889,
1792,
1053,
16441,
2659,
13,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
13,
1753,
8147,
29918,
6149,
950,
29918,
3018,
4684,
29898,
1989,
543,
6370,
613,
6492,
29918,
1272,
29922,
5574,
1125,
13,
1678,
9995,
13,
1678,
10987,
29879,
278,
1353,
310,
16257,
393,
526,
297,
1716,
278,
4629,
848,
322,
278,
2183,
8783,
297,
1269,
931,
3464,
29889,
13,
1678,
450,
6588,
322,
3918,
29522,
526,
13350,
322,
263,
3800,
5317,
338,
5759,
29889,
13,
1678,
584,
3207,
1820,
29901,
450,
8783,
304,
671,
29901,
376,
6370,
613,
376,
276,
2055,
2760,
613,
470,
376,
8172,
29908,
13,
1678,
584,
3207,
6492,
29918,
1272,
29901,
13,
1678,
584,
2457,
29901,
13,
1678,
9995,
13,
1678,
4072,
353,
6796,
3018,
4684,
29918,
12759,
29918,
8489,
613,
376,
3018,
4684,
29918,
27891,
29918,
8489,
613,
376,
3018,
4684,
29918,
5426,
29918,
8489,
3108,
13,
13,
1678,
1121,
353,
426,
13,
4706,
376,
3018,
4684,
29918,
12759,
29918,
8489,
1115,
19997,
13,
4706,
376,
3018,
4684,
29918,
27891,
29918,
8489,
1115,
19997,
13,
4706,
376,
3018,
4684,
29918,
5426,
29918,
8489,
1115,
5159,
13,
1678,
500,
13,
13,
1678,
2302,
353,
29871,
29900,
13,
1678,
363,
1404,
297,
16441,
2659,
29889,
12650,
29901,
13,
13,
4706,
2302,
4619,
29871,
29896,
13,
4706,
1596,
29898,
29888,
29908,
2659,
426,
2798,
29913,
714,
310,
29871,
29947,
29947,
1159,
13,
4706,
10434,
29918,
3018,
4684,
353,
1404,
29889,
3018,
4684,
13,
13,
4706,
363,
7663,
297,
4072,
29901,
13,
9651,
2246,
29918,
3018,
4684,
353,
1404,
29889,
7610,
6950,
29961,
1989,
3816,
7320,
29962,
13,
9651,
1121,
29961,
7320,
1822,
4397,
29898,
2435,
4197,
29873,
363,
260,
297,
2246,
29918,
3018,
4684,
565,
260,
297,
10434,
29918,
3018,
4684,
12622,
13,
13,
1678,
363,
7663,
297,
4072,
29901,
13,
4706,
1596,
29898,
13,
9651,
285,
29908,
29912,
7320,
29901,
29896,
29947,
29879,
6177,
2099,
426,
6112,
6765,
29889,
12676,
29898,
2914,
29961,
7320,
29962,
1125,
29889,
29906,
29888,
1118,
380,
3359,
29901,
426,
6112,
6765,
29889,
303,
3359,
29898,
2914,
29961,
7320,
29962,
1125,
29889,
29906,
29888,
27195,
13,
13,
1678,
565,
6492,
29918,
1272,
29901,
13,
4706,
2537,
29892,
4853,
353,
14770,
29889,
1491,
26762,
580,
13,
13,
4706,
3800,
5317,
29918,
1272,
353,
518,
13,
9651,
1121,
3366,
3018,
4684,
29918,
12759,
29918,
8489,
12436,
13,
9651,
1121,
3366,
3018,
4684,
29918,
27891,
29918,
8489,
12436,
13,
9651,
1121,
3366,
3018,
4684,
29918,
5426,
29918,
8489,
3108,
13,
4706,
4514,
13,
13,
4706,
11073,
353,
6796,
21322,
11814,
613,
376,
19302,
1974,
11814,
613,
376,
8208,
11814,
3108,
13,
13,
4706,
4853,
29889,
1884,
5317,
29898,
1884,
5317,
29918,
1272,
29892,
11073,
29922,
21134,
29892,
13,
462,
259,
3800,
11030,
29922,
8977,
29898,
1915,
342,
1508,
2433,
29899,
742,
1196,
2103,
29922,
29896,
29889,
29945,
511,
13,
462,
259,
19194,
11030,
29922,
8977,
29898,
1915,
342,
1508,
2433,
29899,
742,
1196,
2103,
29922,
29906,
511,
13,
462,
259,
377,
3873,
261,
11030,
29922,
8977,
29898,
1915,
342,
1508,
2433,
29899,
742,
1196,
2103,
29922,
29896,
29889,
29945,
511,
13,
462,
259,
274,
9961,
567,
29922,
8977,
29898,
1915,
342,
1508,
2433,
29899,
742,
1196,
2103,
29922,
29896,
29889,
29945,
511,
13,
462,
259,
1510,
20157,
414,
29922,
5574,
13,
462,
259,
1723,
13,
13,
4706,
4853,
29889,
842,
29918,
486,
860,
21134,
29898,
21134,
29897,
13,
4706,
4853,
29889,
29891,
8990,
29889,
7720,
29898,
5574,
29892,
6276,
342,
1508,
2433,
29899,
742,
607,
2433,
21355,
742,
2927,
2433,
4366,
7979,
29891,
742,
15595,
29922,
29900,
29889,
29945,
29897,
13,
13,
4706,
4853,
29889,
842,
29918,
29891,
2576,
3552,
29900,
29892,
29871,
29896,
29900,
876,
13,
4706,
4853,
29889,
842,
29918,
29891,
1643,
703,
9652,
292,
25085,
1159,
13,
13,
4706,
2537,
29889,
29873,
523,
29918,
2680,
580,
13,
4706,
14770,
29889,
4294,
580,
13,
2
] |
democracy_club/apps/everyelection/migrations/0001_initial.py | chris48s/Website | 0 | 96120 | <filename>democracy_club/apps/everyelection/migrations/0001_initial.py<gh_stars>0
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
from django.conf import settings
import django_extensions.db.fields
class Migration(migrations.Migration):
dependencies = [
('authorities', '0012_mapitarea'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='AuthorityElection',
fields=[
('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
('election_date', models.DateField()),
('percent_posts', models.IntegerField()),
('authority', models.ForeignKey(to='authorities.Authority')),
],
),
migrations.CreateModel(
name='AuthorityElectionPositions',
fields=[
('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
('created', django_extensions.db.fields.CreationDateTimeField(editable=False, blank=True, default=django.utils.timezone.now, verbose_name='created')),
('modified', django_extensions.db.fields.ModificationDateTimeField(editable=False, blank=True, default=django.utils.timezone.now, verbose_name='modified')),
('area', models.ForeignKey(to='authorities.MapitArea')),
('authority_election', models.ForeignKey(to='everyelection.AuthorityElection')),
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
],
options={
'abstract': False,
'ordering': ('-modified', '-created'),
'get_latest_by': 'modified',
},
),
]
| [
1,
529,
9507,
29958,
2310,
25804,
29918,
29066,
29914,
13371,
29914,
17991,
29872,
1464,
29914,
26983,
800,
29914,
29900,
29900,
29900,
29896,
29918,
11228,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
3166,
9557,
29889,
2585,
1053,
9725,
800,
29892,
4733,
13,
5215,
9557,
29889,
13239,
29889,
2230,
8028,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
5215,
9557,
29918,
24299,
29889,
2585,
29889,
9621,
13,
13,
13,
1990,
341,
16783,
29898,
26983,
800,
29889,
29924,
16783,
1125,
13,
13,
1678,
9962,
353,
518,
13,
4706,
6702,
8921,
1907,
742,
525,
29900,
29900,
29896,
29906,
29918,
1958,
277,
6203,
5477,
13,
4706,
9725,
800,
29889,
2774,
932,
519,
29918,
10836,
29898,
11027,
29889,
20656,
29950,
29918,
11889,
29918,
20387,
29931,
511,
13,
1678,
4514,
13,
13,
1678,
6931,
353,
518,
13,
4706,
9725,
800,
29889,
4391,
3195,
29898,
13,
9651,
1024,
2433,
13720,
537,
29923,
1464,
742,
13,
9651,
4235,
11759,
13,
18884,
6702,
333,
742,
4733,
29889,
12300,
3073,
29898,
16072,
29918,
1989,
29922,
5574,
29892,
26952,
29918,
978,
2433,
1367,
742,
4469,
29918,
11600,
29922,
5574,
29892,
28755,
29922,
8824,
8243,
13,
18884,
6702,
29872,
1464,
29918,
1256,
742,
4733,
29889,
2539,
3073,
25739,
13,
18884,
6702,
25376,
29918,
14080,
742,
4733,
29889,
7798,
3073,
25739,
13,
18884,
6702,
8921,
537,
742,
4733,
29889,
27755,
2558,
29898,
517,
2433,
8921,
1907,
29889,
13720,
537,
1495,
511,
13,
9651,
21251,
13,
4706,
10353,
13,
4706,
9725,
800,
29889,
4391,
3195,
29898,
13,
9651,
1024,
2433,
13720,
537,
29923,
1464,
9135,
2187,
742,
13,
9651,
4235,
11759,
13,
18884,
6702,
333,
742,
4733,
29889,
12300,
3073,
29898,
16072,
29918,
1989,
29922,
5574,
29892,
26952,
29918,
978,
2433,
1367,
742,
4469,
29918,
11600,
29922,
5574,
29892,
28755,
29922,
8824,
8243,
13,
18884,
6702,
11600,
742,
9557,
29918,
24299,
29889,
2585,
29889,
9621,
29889,
9832,
362,
11384,
3073,
29898,
5628,
519,
29922,
8824,
29892,
9654,
29922,
5574,
29892,
2322,
29922,
14095,
29889,
13239,
29889,
2230,
8028,
29889,
3707,
29892,
26952,
29918,
978,
2433,
11600,
1495,
511,
13,
18884,
6702,
1545,
2164,
742,
9557,
29918,
24299,
29889,
2585,
29889,
9621,
29889,
2111,
2450,
11384,
3073,
29898,
5628,
519,
29922,
8824,
29892,
9654,
29922,
5574,
29892,
2322,
29922,
14095,
29889,
13239,
29889,
2230,
8028,
29889,
3707,
29892,
26952,
29918,
978,
2433,
1545,
2164,
1495,
511,
13,
18884,
6702,
6203,
742,
4733,
29889,
27755,
2558,
29898,
517,
2433,
8921,
1907,
29889,
3388,
277,
13799,
1495,
511,
13,
18884,
6702,
8921,
537,
29918,
29872,
1464,
742,
4733,
29889,
27755,
2558,
29898,
517,
2433,
17991,
29872,
1464,
29889,
13720,
537,
29923,
1464,
1495,
511,
13,
18884,
6702,
1792,
742,
4733,
29889,
27755,
2558,
29898,
517,
29922,
11027,
29889,
20656,
29950,
29918,
11889,
29918,
20387,
29931,
8243,
13,
9651,
21251,
13,
9651,
3987,
3790,
13,
18884,
525,
16595,
2396,
7700,
29892,
13,
18884,
525,
2098,
292,
2396,
6702,
29899,
1545,
2164,
742,
17411,
11600,
5477,
13,
18884,
525,
657,
29918,
12333,
29918,
1609,
2396,
525,
1545,
2164,
742,
13,
9651,
2981,
13,
4706,
10353,
13,
1678,
4514,
13,
2
] |
SelectUniqueTaxid.py | BonizzoniLab/Refine_EVEs_annotation | 1 | 147160 | import argparse
def read_blast_table(blastx_file):
'''Read blastx table'''
totalList=[]
for line in blastx_file:
line=line.rstrip()
if line.startswith('ID'):
continue
else:
parts=line.split('\t')
try:
taxid=parts[int(opts.position)].split(';')
except:
taxid=''
for t in taxid:
if t != '.':
totalList.append(t)
for t in sorted(set(totalList)):
print(t)
def main():
parser = argparse.ArgumentParser('Select unique taxid')
parser.add_argument('-i_Blastx', '--fileBlast', help="blastx output table")
parser.add_argument('-position', '--position', help="column position of taxid")
global opts
opts = parser.parse_args()
in_fileBlastx = open(opts.fileBlast)
read_blast_table(in_fileBlastx)
main() | [
1,
1053,
1852,
5510,
13,
268,
13,
1753,
1303,
29918,
23190,
29918,
2371,
29898,
23190,
29916,
29918,
1445,
1125,
13,
1678,
14550,
6359,
1999,
579,
29916,
1591,
12008,
13,
1678,
3001,
1293,
29922,
2636,
13,
13,
1678,
363,
1196,
297,
1999,
579,
29916,
29918,
1445,
29901,
13,
308,
13,
4706,
1196,
29922,
1220,
29889,
29878,
17010,
580,
13,
4706,
565,
1196,
29889,
27382,
2541,
877,
1367,
29374,
13,
9651,
6773,
13,
4706,
1683,
29901,
13,
9651,
5633,
29922,
1220,
29889,
5451,
28909,
29873,
1495,
13,
13,
9651,
1018,
29901,
13,
18884,
8818,
333,
29922,
20895,
29961,
524,
29898,
25707,
29889,
3283,
29897,
1822,
5451,
877,
29936,
1495,
13,
9651,
5174,
29901,
13,
18884,
8818,
333,
2433,
29915,
13,
632,
13,
9651,
363,
260,
297,
8818,
333,
29901,
13,
18884,
565,
260,
2804,
15300,
2396,
13,
462,
1678,
3001,
1293,
29889,
4397,
29898,
29873,
29897,
13,
13,
1678,
363,
260,
297,
12705,
29898,
842,
29898,
7827,
1293,
22164,
13,
4706,
1596,
29898,
29873,
29897,
13,
13,
13,
1753,
1667,
7295,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
877,
3549,
5412,
8818,
333,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
29899,
29875,
29918,
29933,
4230,
29916,
742,
525,
489,
1445,
29933,
4230,
742,
1371,
543,
23190,
29916,
1962,
1591,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
29899,
3283,
742,
525,
489,
3283,
742,
1371,
543,
4914,
2602,
310,
8818,
333,
1159,
13,
13,
1678,
5534,
29111,
13,
1678,
29111,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
13,
1678,
297,
29918,
1445,
29933,
4230,
29916,
353,
1722,
29898,
25707,
29889,
1445,
29933,
4230,
29897,
13,
1678,
1303,
29918,
23190,
29918,
2371,
29898,
262,
29918,
1445,
29933,
4230,
29916,
29897,
13,
13,
3396,
580,
2
] |
tests/syntax/async_def_missing_parens.py | matan-h/friendly | 287 | 133925 | <filename>tests/syntax/async_def_missing_parens.py
async def name:
pass
| [
1,
529,
9507,
29958,
21150,
29914,
29562,
29914,
12674,
29918,
1753,
29918,
27259,
29918,
862,
575,
29889,
2272,
13,
12674,
822,
1024,
29901,
13,
1678,
1209,
13,
2
] |
utils/tinyimages_80mn_loader.py | jfc43/robust-ood-detection | 55 | 196882 | import numpy as np
import torch
from bisect import bisect_left
class TinyImages(torch.utils.data.Dataset):
def __init__(self, transform=None, exclude_cifar=True):
data_file = open('datasets/unlabeled_datasets/80M_Tiny_Images/tiny_images.bin', "rb")
def load_image(idx):
data_file.seek(idx * 3072)
data = data_file.read(3072)
return np.fromstring(data, dtype='uint8').reshape(32, 32, 3, order="F")
self.load_image = load_image
self.offset = 0 # offset index
self.transform = transform
self.exclude_cifar = exclude_cifar
if exclude_cifar:
self.cifar_idxs = []
with open('datasets/unlabeled_datasets/80M_Tiny_Images/80mn_cifar_idxs.txt', 'r') as idxs:
for idx in idxs:
# indices in file take the 80mn database to start at 1, hence "- 1"
self.cifar_idxs.append(int(idx) - 1)
# hash table option
self.cifar_idxs = set(self.cifar_idxs)
self.in_cifar = lambda x: x in self.cifar_idxs
# bisection search option
# self.cifar_idxs = tuple(sorted(self.cifar_idxs))
#
# def binary_search(x, hi=len(self.cifar_idxs)):
# pos = bisect_left(self.cifar_idxs, x, 0, hi) # find insertion position
# return True if pos != hi and self.cifar_idxs[pos] == x else False
#
# self.in_cifar = binary_search
def __getitem__(self, index):
index = (index + self.offset) % 79302016
if self.exclude_cifar:
while self.in_cifar(index):
index = np.random.randint(79302017)
img = self.load_image(index)
if self.transform is not None:
img = self.transform(img)
return img, 0 # 0 is the class
def __len__(self):
return 79302017
| [
1,
1053,
12655,
408,
7442,
13,
5215,
4842,
305,
13,
3166,
2652,
522,
1053,
2652,
522,
29918,
1563,
13,
13,
1990,
323,
4901,
20163,
29898,
7345,
305,
29889,
13239,
29889,
1272,
29889,
16390,
24541,
1125,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
4327,
29922,
8516,
29892,
19060,
29918,
29883,
361,
279,
29922,
5574,
1125,
13,
13,
4706,
848,
29918,
1445,
353,
1722,
877,
14538,
1691,
29914,
348,
29880,
24025,
29918,
14538,
1691,
29914,
29947,
29900,
29924,
29918,
29911,
4901,
29918,
20163,
29914,
25649,
29918,
8346,
29889,
2109,
742,
376,
6050,
1159,
13,
13,
4706,
822,
2254,
29918,
3027,
29898,
13140,
1125,
13,
9651,
848,
29918,
1445,
29889,
344,
1416,
29898,
13140,
334,
29871,
29941,
29900,
29955,
29906,
29897,
13,
9651,
848,
353,
848,
29918,
1445,
29889,
949,
29898,
29941,
29900,
29955,
29906,
29897,
13,
9651,
736,
7442,
29889,
3166,
1807,
29898,
1272,
29892,
26688,
2433,
13470,
29947,
2824,
690,
14443,
29898,
29941,
29906,
29892,
29871,
29941,
29906,
29892,
29871,
29941,
29892,
1797,
543,
29943,
1159,
13,
13,
4706,
1583,
29889,
1359,
29918,
3027,
353,
2254,
29918,
3027,
13,
4706,
1583,
29889,
10289,
353,
29871,
29900,
268,
396,
9210,
2380,
13,
13,
4706,
1583,
29889,
9067,
353,
4327,
13,
4706,
1583,
29889,
735,
2325,
29918,
29883,
361,
279,
353,
19060,
29918,
29883,
361,
279,
13,
13,
4706,
565,
19060,
29918,
29883,
361,
279,
29901,
13,
9651,
1583,
29889,
29883,
361,
279,
29918,
333,
10351,
353,
5159,
13,
9651,
411,
1722,
877,
14538,
1691,
29914,
348,
29880,
24025,
29918,
14538,
1691,
29914,
29947,
29900,
29924,
29918,
29911,
4901,
29918,
20163,
29914,
29947,
29900,
23521,
29918,
29883,
361,
279,
29918,
333,
10351,
29889,
3945,
742,
525,
29878,
1495,
408,
1178,
10351,
29901,
13,
18884,
363,
22645,
297,
1178,
10351,
29901,
13,
462,
1678,
396,
16285,
297,
934,
2125,
278,
29871,
29947,
29900,
23521,
2566,
304,
1369,
472,
29871,
29896,
29892,
8151,
11663,
29871,
29896,
29908,
13,
462,
1678,
1583,
29889,
29883,
361,
279,
29918,
333,
10351,
29889,
4397,
29898,
524,
29898,
13140,
29897,
448,
29871,
29896,
29897,
13,
13,
9651,
396,
6608,
1591,
2984,
13,
9651,
1583,
29889,
29883,
361,
279,
29918,
333,
10351,
353,
731,
29898,
1311,
29889,
29883,
361,
279,
29918,
333,
10351,
29897,
13,
9651,
1583,
29889,
262,
29918,
29883,
361,
279,
353,
14013,
921,
29901,
921,
297,
1583,
29889,
29883,
361,
279,
29918,
333,
10351,
13,
13,
9651,
396,
289,
895,
428,
2740,
2984,
13,
9651,
396,
1583,
29889,
29883,
361,
279,
29918,
333,
10351,
353,
18761,
29898,
24582,
29898,
1311,
29889,
29883,
361,
279,
29918,
333,
10351,
876,
13,
9651,
396,
13,
9651,
396,
822,
7581,
29918,
4478,
29898,
29916,
29892,
7251,
29922,
2435,
29898,
1311,
29889,
29883,
361,
279,
29918,
333,
10351,
22164,
13,
9651,
396,
268,
926,
353,
2652,
522,
29918,
1563,
29898,
1311,
29889,
29883,
361,
279,
29918,
333,
10351,
29892,
921,
29892,
29871,
29900,
29892,
7251,
29897,
29871,
396,
1284,
4635,
291,
2602,
13,
9651,
396,
268,
736,
5852,
565,
926,
2804,
7251,
322,
1583,
29889,
29883,
361,
279,
29918,
333,
10351,
29961,
1066,
29962,
1275,
921,
1683,
7700,
13,
9651,
396,
13,
9651,
396,
1583,
29889,
262,
29918,
29883,
361,
279,
353,
7581,
29918,
4478,
13,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
2380,
1125,
13,
4706,
2380,
353,
313,
2248,
718,
1583,
29889,
10289,
29897,
1273,
29871,
29955,
29929,
29941,
29900,
29906,
29900,
29896,
29953,
13,
13,
4706,
565,
1583,
29889,
735,
2325,
29918,
29883,
361,
279,
29901,
13,
9651,
1550,
1583,
29889,
262,
29918,
29883,
361,
279,
29898,
2248,
1125,
13,
18884,
2380,
353,
7442,
29889,
8172,
29889,
9502,
524,
29898,
29955,
29929,
29941,
29900,
29906,
29900,
29896,
29955,
29897,
13,
13,
4706,
10153,
353,
1583,
29889,
1359,
29918,
3027,
29898,
2248,
29897,
13,
4706,
565,
1583,
29889,
9067,
338,
451,
6213,
29901,
13,
9651,
10153,
353,
1583,
29889,
9067,
29898,
2492,
29897,
13,
13,
4706,
736,
10153,
29892,
29871,
29900,
29871,
396,
29871,
29900,
338,
278,
770,
13,
13,
1678,
822,
4770,
2435,
12035,
1311,
1125,
13,
4706,
736,
29871,
29955,
29929,
29941,
29900,
29906,
29900,
29896,
29955,
13,
2
] |
5.Operators/2.membership_operator.py | Tazri/Python | 0 | 194730 | <filename>5.Operators/2.membership_operator.py
list = ['Apple','Orange','Benana','Mango'];
name = "<NAME>";
print('"Apple" in list : ',"Apple" in list);
print('"Kiwi" in list : ',"Kiwi" in list);
print('"Water" not in list : ',"Water" not in list);
print("'Md' in name : ",'Md' in name);
print("'Tazri' not in name : ",'Tazri' not in name); | [
1,
529,
9507,
29958,
29945,
29889,
7094,
4097,
29914,
29906,
29889,
29885,
1590,
10475,
29918,
6891,
29889,
2272,
13,
1761,
353,
6024,
2052,
280,
3788,
29949,
3881,
3788,
20841,
1648,
3788,
29924,
4524,
8219,
13,
978,
353,
9872,
5813,
16871,
13,
13,
2158,
877,
29908,
2052,
280,
29908,
297,
1051,
584,
525,
1699,
2052,
280,
29908,
297,
1051,
416,
13,
2158,
877,
29908,
29968,
29875,
4353,
29908,
297,
1051,
584,
525,
1699,
29968,
29875,
4353,
29908,
297,
1051,
416,
13,
2158,
877,
29908,
29956,
1008,
29908,
451,
297,
1051,
584,
525,
1699,
29956,
1008,
29908,
451,
297,
1051,
416,
13,
2158,
703,
29915,
29924,
29881,
29915,
297,
1024,
584,
376,
5501,
29924,
29881,
29915,
297,
1024,
416,
13,
2158,
703,
29915,
29911,
834,
374,
29915,
451,
297,
1024,
584,
376,
5501,
29911,
834,
374,
29915,
451,
297,
1024,
416,
2
] |
photonpy/tests/psf_g2d_sigma.py | qnano/photonpy | 5 | 7095 | import matplotlib.pyplot as plt
import numpy as np
from photonpy.cpp.context import Context
import photonpy.cpp.gaussian as gaussian
from photonpy.smlm.util import imshow_hstack
from photonpy.cpp.estimator import Estimator
def CheckDeriv(psf:Estimator, theta):
nderiv,ev=psf.NumDeriv(theta,eps=1e-6)
deriv,ev=psf.Derivatives(theta)
maxerr = np.max( np.abs(deriv-nderiv), (-1,-2) )
print(f"PSF {psf.ParamFormat()}, max {np.max(deriv)}, min: {np.min(deriv)}: Deriv-NumDeriv: {maxerr}")
plt.figure()
imshow_hstack(deriv[0] - nderiv[0])
with Context() as ctx:
g = gaussian.Gaussian(ctx)
for cuda in [False]:
print(f"CUDA = {cuda}")
sigma=2
roisize=12
psf = g.CreatePSF_XYIBg(roisize, sigma, cuda)
theta = [[4, 4, 1000, 3]]
img = psf.ExpectedValue(theta)
plt.figure()
plt.set_cmap('inferno')
smp = np.random.poisson(img)
plt.imshow(smp[0])
psf_sigma = g.CreatePSF_XYIBgSigma(roisize, sigma, cuda)
theta_s = [[4,4,1000,3,sigma]]
img2 = psf_sigma.ExpectedValue(theta_s)
CheckDeriv(psf, theta)
# CheckDeriv(psf_sigma)
print(f"PSF Sigma crlb: {psf_sigma.CRLB(theta_s)}")
theta = psf_sigma.Estimate(smp)[0]
print(theta)
| [
1,
1053,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
6731,
265,
2272,
29889,
8223,
29889,
4703,
1053,
15228,
13,
5215,
6731,
265,
2272,
29889,
8223,
29889,
29887,
17019,
408,
330,
17019,
13,
3166,
6731,
265,
2272,
29889,
29879,
828,
29885,
29889,
4422,
1053,
527,
4294,
29918,
29882,
1429,
13,
3166,
6731,
265,
2272,
29889,
8223,
29889,
342,
326,
1061,
1053,
2661,
326,
1061,
13,
13,
1753,
5399,
15383,
440,
29898,
567,
29888,
29901,
12787,
326,
1061,
29892,
278,
941,
1125,
13,
268,
5740,
440,
29892,
5750,
29922,
567,
29888,
29889,
8009,
15383,
440,
29898,
3416,
29892,
8961,
29922,
29896,
29872,
29899,
29953,
29897,
13,
1678,
7750,
29892,
5750,
29922,
567,
29888,
29889,
15383,
440,
5056,
29898,
3416,
29897,
13,
13,
1678,
4236,
3127,
353,
7442,
29889,
3317,
29898,
7442,
29889,
6897,
29898,
672,
440,
29899,
5740,
440,
511,
8521,
29896,
6653,
29906,
29897,
1723,
13,
1678,
1596,
29898,
29888,
29908,
7024,
29943,
426,
567,
29888,
29889,
4736,
5809,
580,
1118,
4236,
426,
9302,
29889,
3317,
29898,
672,
440,
19230,
1375,
29901,
426,
9302,
29889,
1195,
29898,
672,
440,
2915,
29901,
2452,
440,
29899,
8009,
15383,
440,
29901,
426,
3317,
3127,
27195,
13,
13,
1678,
14770,
29889,
4532,
580,
13,
1678,
527,
4294,
29918,
29882,
1429,
29898,
672,
440,
29961,
29900,
29962,
448,
29871,
5740,
440,
29961,
29900,
2314,
13,
13,
13,
2541,
15228,
580,
408,
12893,
29901,
13,
1678,
330,
353,
330,
17019,
29889,
29954,
17019,
29898,
13073,
29897,
13,
13,
1678,
363,
274,
6191,
297,
518,
8824,
5387,
13,
4706,
1596,
29898,
29888,
29908,
29907,
29965,
7698,
353,
426,
29883,
6191,
27195,
13,
4706,
269,
2934,
29922,
29906,
13,
4706,
696,
275,
675,
29922,
29896,
29906,
13,
13,
4706,
282,
4668,
353,
330,
29889,
4391,
7024,
29943,
29918,
18454,
8979,
29887,
29898,
307,
275,
675,
29892,
269,
2934,
29892,
274,
6191,
29897,
13,
308,
13,
4706,
278,
941,
353,
5519,
29946,
29892,
29871,
29946,
29892,
29871,
29896,
29900,
29900,
29900,
29892,
29871,
29941,
5262,
13,
4706,
10153,
353,
282,
4668,
29889,
1252,
6021,
1917,
29898,
3416,
29897,
13,
4706,
14770,
29889,
4532,
580,
13,
4706,
14770,
29889,
842,
29918,
29883,
1958,
877,
262,
571,
1217,
1495,
13,
13,
4706,
269,
1526,
353,
7442,
29889,
8172,
29889,
1129,
17387,
29898,
2492,
29897,
13,
4706,
14770,
29889,
326,
4294,
29898,
29879,
1526,
29961,
29900,
2314,
13,
308,
13,
4706,
282,
4668,
29918,
3754,
353,
330,
29889,
4391,
7024,
29943,
29918,
18454,
8979,
29887,
10142,
29898,
307,
275,
675,
29892,
269,
2934,
29892,
274,
6191,
29897,
13,
462,
268,
13,
4706,
278,
941,
29918,
29879,
353,
5519,
29946,
29892,
29946,
29892,
29896,
29900,
29900,
29900,
29892,
29941,
29892,
3754,
5262,
13,
4706,
10153,
29906,
353,
282,
4668,
29918,
3754,
29889,
1252,
6021,
1917,
29898,
3416,
29918,
29879,
29897,
13,
13,
4706,
5399,
15383,
440,
29898,
567,
29888,
29892,
278,
941,
29897,
13,
29937,
9651,
5399,
15383,
440,
29898,
567,
29888,
29918,
3754,
29897,
13,
308,
13,
308,
13,
4706,
1596,
29898,
29888,
29908,
7024,
29943,
317,
2934,
274,
2096,
29890,
29901,
426,
567,
29888,
29918,
3754,
29889,
29907,
2241,
29933,
29898,
3416,
29918,
29879,
2915,
1159,
13,
13,
4706,
278,
941,
353,
282,
4668,
29918,
3754,
29889,
12787,
6490,
29898,
29879,
1526,
9601,
29900,
29962,
13,
4706,
1596,
29898,
3416,
29897,
13,
308,
2
] |
src/pataka/models/__init__.py | astrogewgaw/pataka | 6 | 167218 | <reponame>astrogewgaw/pataka
from .furby import Furby
from .pulsar import Pulsar
__all__ = ["Furby", "Pulsar"]
| [
1,
529,
276,
1112,
420,
29958,
23364,
9396,
29887,
1450,
29914,
29886,
532,
1335,
13,
3166,
869,
22613,
1609,
1053,
7509,
1609,
13,
3166,
869,
29886,
7273,
279,
1053,
349,
7273,
279,
13,
13,
1649,
497,
1649,
353,
6796,
29943,
332,
1609,
613,
376,
29925,
7273,
279,
3108,
13,
2
] |
main.py | neurosity/notion-pylsl-starter | 5 | 72044 | <gh_stars>1-10
"""Example program to show how to read a multi-channel time series from LSL."""
from pylsl import StreamInlet, resolve_stream
try:
# first resolve an EEG stream on the lab network
print("looking for an EEG stream...")
streams = resolve_stream('type', 'EEG')
# create a new inlet to read from the stream
inlet = StreamInlet(streams[0])
while True:
# get a new sample (you can also omit the timestamp part if you're not
# interested in it)
sample, timestamp = inlet.pull_sample()
print(timestamp, sample)
except KeyboardInterrupt as e:
print("Ending program")
raise e
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
14023,
1824,
304,
1510,
920,
304,
1303,
263,
2473,
29899,
12719,
931,
3652,
515,
365,
12750,
1213,
15945,
13,
13,
3166,
282,
2904,
2536,
1053,
13763,
797,
1026,
29892,
8814,
29918,
5461,
13,
13,
2202,
29901,
13,
1678,
396,
937,
8814,
385,
382,
11787,
4840,
373,
278,
9775,
3564,
13,
1678,
1596,
703,
23261,
363,
385,
382,
11787,
4840,
856,
1159,
13,
1678,
20873,
353,
8814,
29918,
5461,
877,
1853,
742,
525,
29923,
11787,
1495,
13,
13,
1678,
396,
1653,
263,
716,
297,
1026,
304,
1303,
515,
278,
4840,
13,
1678,
297,
1026,
353,
13763,
797,
1026,
29898,
5461,
29879,
29961,
29900,
2314,
13,
1678,
1550,
5852,
29901,
13,
4706,
396,
679,
263,
716,
4559,
313,
6293,
508,
884,
288,
2415,
278,
14334,
760,
565,
366,
29915,
276,
451,
13,
4706,
396,
8852,
297,
372,
29897,
13,
4706,
4559,
29892,
14334,
353,
297,
1026,
29889,
26746,
29918,
11249,
580,
13,
4706,
1596,
29898,
16394,
29892,
4559,
29897,
13,
19499,
7670,
3377,
4074,
6685,
408,
321,
29901,
13,
1678,
1596,
703,
5044,
292,
1824,
1159,
13,
1678,
12020,
321,
13,
2
] |
python/048-self-powers.py | timschlechter/project-euler | 0 | 172004 | <reponame>timschlechter/project-euler
from functools import reduce
powers = map(lambda x: x**x, range(1, 1001))
summation = reduce(lambda x, y: x + y, powers)
last10 = str(summation)[-10:]
print(last10)
| [
1,
529,
276,
1112,
420,
29958,
9346,
816,
280,
8255,
29914,
4836,
29899,
29872,
8584,
13,
3166,
2090,
312,
8789,
1053,
10032,
13,
13,
12248,
414,
353,
2910,
29898,
2892,
921,
29901,
921,
1068,
29916,
29892,
3464,
29898,
29896,
29892,
29871,
29896,
29900,
29900,
29896,
876,
13,
2083,
29885,
362,
353,
10032,
29898,
2892,
921,
29892,
343,
29901,
921,
718,
343,
29892,
10801,
29897,
13,
4230,
29896,
29900,
353,
851,
29898,
2083,
29885,
362,
9601,
29899,
29896,
29900,
17531,
13,
13,
2158,
29898,
4230,
29896,
29900,
29897,
13,
2
] |
tests/util_test.py | yyang08/swagger-spec-compatibility | 18 | 117864 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
import mock
import pytest
from swagger_spec_compatibility.util import EntityMapping
from swagger_spec_compatibility.util import is_path_in_top_level_paths
from swagger_spec_compatibility.util import wrap
@pytest.mark.parametrize(
'input_string, width, expected_result',
[
('this is a string', 50, 'this is a string'), # No wrapping needed
('this is a string', 5, 'this\nis a\nstring'), # The lines are stripped
('this is a string', 5, 'this\nis a\nstring'), # Multiple spaces are condensed
('this_is_a_string', 5, 'this_is_a_string'), # Words (characters with no spaces) will not be split
],
)
def test_wrap_provides_the_expected_string(input_string, width, expected_result):
assert wrap(input_string, width=width) == expected_result
def test_EntityMapping_equality_and_hash():
entity_mappint_1 = EntityMapping(old=1, new=2)
entity_mappint_2 = EntityMapping(old=1, new=2)
entity_mappint_3 = EntityMapping(old=1, new=3)
assert hash(entity_mappint_1) == hash(entity_mappint_2)
assert entity_mappint_1 == entity_mappint_2
assert hash(entity_mappint_1) != hash(entity_mappint_3)
assert entity_mappint_1 != entity_mappint_3
def test_EntityMapping_upacking_works():
entity_mappint = EntityMapping(old=mock.sentinel.OLD, new=mock.sentinel.NEW)
old, new = entity_mappint
assert old == mock.sentinel.OLD
assert new == mock.sentinel.NEW
@pytest.mark.parametrize(
'top_level_paths, path, expected_result',
[
([tuple()], ('path_item',), True),
([('top',)], ('path_item',), False),
([('top',), ('path_item',)], ('path_item',), True),
([('top', 'inner')], ('top', 'different_inner'), False),
([('top', 'inner')], ('top', 'inner'), True),
([('top', 'inner')], ('top', 'inner', 'inner_inner'), True),
],
)
def test_is_path_in_top_level_paths(top_level_paths, path, expected_result):
assert is_path_in_top_level_paths(top_level_paths, path) is expected_result
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
5215,
11187,
13,
5215,
11451,
1688,
13,
13,
3166,
2381,
9921,
29918,
6550,
29918,
12667,
4127,
29889,
4422,
1053,
14945,
15845,
13,
3166,
2381,
9921,
29918,
6550,
29918,
12667,
4127,
29889,
4422,
1053,
338,
29918,
2084,
29918,
262,
29918,
3332,
29918,
5563,
29918,
24772,
13,
3166,
2381,
9921,
29918,
6550,
29918,
12667,
4127,
29889,
4422,
1053,
12244,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
29898,
13,
1678,
525,
2080,
29918,
1807,
29892,
2920,
29892,
3806,
29918,
2914,
742,
13,
1678,
518,
13,
4706,
6702,
1366,
338,
263,
1347,
742,
29871,
29945,
29900,
29892,
525,
1366,
338,
263,
1347,
5477,
1678,
396,
1939,
28489,
4312,
13,
4706,
6702,
1366,
338,
263,
1347,
742,
29871,
29945,
29892,
525,
1366,
29905,
6994,
263,
29905,
29876,
1807,
5477,
259,
396,
450,
3454,
526,
10076,
2986,
13,
4706,
6702,
1366,
29871,
338,
263,
1347,
742,
29871,
29945,
29892,
525,
1366,
29905,
6994,
263,
29905,
29876,
1807,
5477,
29871,
396,
26905,
8162,
526,
2148,
21144,
13,
4706,
6702,
1366,
29918,
275,
29918,
29874,
29918,
1807,
742,
29871,
29945,
29892,
525,
1366,
29918,
275,
29918,
29874,
29918,
1807,
5477,
268,
396,
399,
4339,
313,
3090,
21706,
411,
694,
8162,
29897,
674,
451,
367,
6219,
13,
1678,
21251,
13,
29897,
13,
1753,
1243,
29918,
6312,
29918,
16123,
2247,
29918,
1552,
29918,
9684,
29918,
1807,
29898,
2080,
29918,
1807,
29892,
2920,
29892,
3806,
29918,
2914,
1125,
13,
1678,
4974,
12244,
29898,
2080,
29918,
1807,
29892,
2920,
29922,
2103,
29897,
1275,
3806,
29918,
2914,
13,
13,
13,
1753,
1243,
29918,
6691,
15845,
29918,
13895,
29918,
392,
29918,
8568,
7295,
13,
1678,
7855,
29918,
655,
407,
524,
29918,
29896,
353,
14945,
15845,
29898,
1025,
29922,
29896,
29892,
716,
29922,
29906,
29897,
13,
1678,
7855,
29918,
655,
407,
524,
29918,
29906,
353,
14945,
15845,
29898,
1025,
29922,
29896,
29892,
716,
29922,
29906,
29897,
13,
1678,
7855,
29918,
655,
407,
524,
29918,
29941,
353,
14945,
15845,
29898,
1025,
29922,
29896,
29892,
716,
29922,
29941,
29897,
13,
13,
1678,
4974,
6608,
29898,
10041,
29918,
655,
407,
524,
29918,
29896,
29897,
1275,
6608,
29898,
10041,
29918,
655,
407,
524,
29918,
29906,
29897,
13,
1678,
4974,
7855,
29918,
655,
407,
524,
29918,
29896,
1275,
7855,
29918,
655,
407,
524,
29918,
29906,
13,
13,
1678,
4974,
6608,
29898,
10041,
29918,
655,
407,
524,
29918,
29896,
29897,
2804,
6608,
29898,
10041,
29918,
655,
407,
524,
29918,
29941,
29897,
13,
1678,
4974,
7855,
29918,
655,
407,
524,
29918,
29896,
2804,
7855,
29918,
655,
407,
524,
29918,
29941,
13,
13,
13,
1753,
1243,
29918,
6691,
15845,
29918,
786,
547,
292,
29918,
13129,
7295,
13,
1678,
7855,
29918,
655,
407,
524,
353,
14945,
15845,
29898,
1025,
29922,
17640,
29889,
29879,
15440,
295,
29889,
5607,
29928,
29892,
716,
29922,
17640,
29889,
29879,
15440,
295,
29889,
28577,
29897,
13,
1678,
2030,
29892,
716,
353,
7855,
29918,
655,
407,
524,
13,
1678,
4974,
2030,
1275,
11187,
29889,
29879,
15440,
295,
29889,
5607,
29928,
13,
1678,
4974,
716,
1275,
11187,
29889,
29879,
15440,
295,
29889,
28577,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
29898,
13,
1678,
525,
3332,
29918,
5563,
29918,
24772,
29892,
2224,
29892,
3806,
29918,
2914,
742,
13,
1678,
518,
13,
4706,
9310,
23583,
580,
1402,
6702,
2084,
29918,
667,
742,
511,
5852,
511,
13,
4706,
9310,
877,
3332,
742,
29897,
1402,
6702,
2084,
29918,
667,
742,
511,
7700,
511,
13,
4706,
9310,
877,
3332,
742,
511,
6702,
2084,
29918,
667,
742,
29897,
1402,
6702,
2084,
29918,
667,
742,
511,
5852,
511,
13,
4706,
9310,
877,
3332,
742,
525,
3993,
1495,
1402,
6702,
3332,
742,
525,
29881,
15622,
29918,
3993,
5477,
7700,
511,
13,
4706,
9310,
877,
3332,
742,
525,
3993,
1495,
1402,
6702,
3332,
742,
525,
3993,
5477,
5852,
511,
13,
4706,
9310,
877,
3332,
742,
525,
3993,
1495,
1402,
6702,
3332,
742,
525,
3993,
742,
525,
3993,
29918,
3993,
5477,
5852,
511,
13,
1678,
21251,
13,
29897,
13,
1753,
1243,
29918,
275,
29918,
2084,
29918,
262,
29918,
3332,
29918,
5563,
29918,
24772,
29898,
3332,
29918,
5563,
29918,
24772,
29892,
2224,
29892,
3806,
29918,
2914,
1125,
13,
1678,
4974,
338,
29918,
2084,
29918,
262,
29918,
3332,
29918,
5563,
29918,
24772,
29898,
3332,
29918,
5563,
29918,
24772,
29892,
2224,
29897,
338,
3806,
29918,
2914,
13,
2
] |
src/synthesize_predictions.py | bluetyson/concept-tagging-training | 10 | 30322 | import argparse
import logging
from pathlib import Path
import dask
import h5py
import joblib
import numpy as np
import pandas as pd
from dask.diagnostics import ProgressBar
from tqdm import tqdm
from dsconcept.get_metrics import (
get_cat_inds,
get_synth_preds,
load_category_models,
load_concept_models,
HierarchicalClassifier,
get_mets,
)
logging.basicConfig(level=logging.INFO)
LOG = logging.getLogger(__name__)
LOG.setLevel(logging.INFO)
def main(
experiment_name,
synth_strat,
in_cat_preds,
out_store,
synth_batch_size,
t,
out_synth_scores,
limit=None,
con_limit=None,
):
test_inds = np.load(f"data/interim/{experiment_name}/test_inds.npy")
feature_matrix = joblib.load(f"data/interim/{experiment_name}/feature_matrix.jbl")
in_cat_models = Path(f"models/{experiment_name}/categories/models/")
in_kwd_models = Path(f"models/{experiment_name}/keywords/models/")
cat_preds = np.load(in_cat_preds) # based on experiment or explicit path?
cat_clfs = load_category_models(in_cat_models)
cd = load_concept_models(in_kwd_models)
clf = HierarchicalClassifier(cat_clfs, cd)
if limit is not None:
LOG.info(f"Limiting to {limit} test records.")
feature_matrix_test = feature_matrix.tocsc()[test_inds[0:limit], :]
cat_preds = cat_preds[0:limit, :]
# TODO: How does this affect indices?
else:
feature_matrix_test = feature_matrix.tocsc()[test_inds, :]
LOG.info(f'Synthesizing predictions with strategy "{synth_strat}".')
all_cat_inds = get_cat_inds(clf.categories, cat_preds, t=t)
if con_limit is not None:
conwc = clf.concepts_with_classifiers[0:con_limit]
else:
conwc = clf.concepts_with_classifiers
shape = (feature_matrix_test.shape[0], len(conwc))
with tqdm(total=shape[0]) as pbar:
get_synth_preds(
out_store,
shape,
all_cat_inds,
clf.categories,
synth_batch_size,
only_cat=False,
synth_strat=synth_strat,
con_limit=con_limit,
limit=limit,
pbar=pbar,
)
LOG.info("Obtaining metrics.")
with h5py.File(out_store, "r") as f0:
if limit is not None:
target_values = f0["ground_truth"][0:limit, :]
else:
target_values = f0["ground_truth"].value
with h5py.File(out_store, "r") as f0:
synth_preds = f0["synthesis"].value
jobs = []
mets_pbar = tqdm(
range(len(conwc)),
total=len(conwc),
)
for i in mets_pbar:
job = dask.delayed(get_mets)(
i, synth_preds, target_values, conwc, mets_pbar
)
jobs.append(job)
records = dask.compute(jobs)
new_recs_df = pd.DataFrame(records[0])
LOG.info(f"Saving results to {out_synth_scores}.")
new_recs_df.to_csv(out_synth_scores)
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Say hello")
parser.add_argument("--experiment_name", help="input txt file")
parser.add_argument("--synth_strat", help="input txt file")
parser.add_argument("--in_cat_preds", help="input txt file")
parser.add_argument("--store", help="input txt file")
parser.add_argument("--synth_batch_size", help="input txt file", type=int)
parser.add_argument("--threshold", help="input txt file", type=float)
parser.add_argument("--out_synth_scores", help="input txt file")
parser.add_argument(
"--limit", help="size for sample to test synthesis", type=int, default=None
)
parser.add_argument(
"--con_limit", help="size for concept sample", type=int, default=None
)
args = parser.parse_args()
main(
args.experiment_name,
args.synth_strat,
args.in_cat_preds,
args.store,
args.synth_batch_size,
args.threshold,
args.out_synth_scores,
args.limit,
args.con_limit,
)
| [
1,
1053,
1852,
5510,
13,
5215,
12183,
13,
3166,
2224,
1982,
1053,
10802,
13,
13,
5215,
270,
1278,
13,
5215,
298,
29945,
2272,
13,
5215,
4982,
1982,
13,
5215,
12655,
408,
7442,
13,
5215,
11701,
408,
10518,
13,
3166,
270,
1278,
29889,
6051,
20921,
1053,
20018,
4297,
13,
3166,
260,
29939,
18933,
1053,
260,
29939,
18933,
13,
13,
3166,
18031,
535,
1547,
29889,
657,
29918,
2527,
10817,
1053,
313,
13,
1678,
679,
29918,
4117,
29918,
12772,
29892,
13,
1678,
679,
29918,
19274,
386,
29918,
11965,
29879,
29892,
13,
1678,
2254,
29918,
7320,
29918,
9794,
29892,
13,
1678,
2254,
29918,
535,
1547,
29918,
9794,
29892,
13,
1678,
12433,
1279,
936,
2385,
3709,
29892,
13,
1678,
679,
29918,
29885,
1691,
29892,
13,
29897,
13,
13,
21027,
29889,
16121,
3991,
29898,
5563,
29922,
21027,
29889,
11690,
29897,
13,
14480,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
14480,
29889,
842,
10108,
29898,
21027,
29889,
11690,
29897,
13,
13,
13,
1753,
1667,
29898,
13,
1678,
7639,
29918,
978,
29892,
13,
1678,
14710,
29918,
710,
271,
29892,
13,
1678,
297,
29918,
4117,
29918,
11965,
29879,
29892,
13,
1678,
714,
29918,
8899,
29892,
13,
1678,
14710,
29918,
16175,
29918,
2311,
29892,
13,
1678,
260,
29892,
13,
1678,
714,
29918,
19274,
386,
29918,
1557,
2361,
29892,
13,
1678,
4046,
29922,
8516,
29892,
13,
1678,
378,
29918,
13400,
29922,
8516,
29892,
13,
1125,
13,
1678,
1243,
29918,
12772,
353,
7442,
29889,
1359,
29898,
29888,
29908,
1272,
29914,
1639,
326,
19248,
735,
15362,
29918,
978,
6822,
1688,
29918,
12772,
29889,
29876,
2272,
1159,
13,
1678,
4682,
29918,
5344,
353,
4982,
1982,
29889,
1359,
29898,
29888,
29908,
1272,
29914,
1639,
326,
19248,
735,
15362,
29918,
978,
6822,
14394,
29918,
5344,
29889,
29926,
2204,
1159,
13,
1678,
297,
29918,
4117,
29918,
9794,
353,
10802,
29898,
29888,
29908,
9794,
19248,
735,
15362,
29918,
978,
6822,
20683,
29914,
9794,
29914,
1159,
13,
1678,
297,
29918,
29895,
9970,
29918,
9794,
353,
10802,
29898,
29888,
29908,
9794,
19248,
735,
15362,
29918,
978,
6822,
1989,
9303,
29914,
9794,
29914,
1159,
13,
1678,
6635,
29918,
11965,
29879,
353,
7442,
29889,
1359,
29898,
262,
29918,
4117,
29918,
11965,
29879,
29897,
29871,
396,
2729,
373,
7639,
470,
6261,
2224,
29973,
13,
1678,
6635,
29918,
695,
5847,
353,
2254,
29918,
7320,
29918,
9794,
29898,
262,
29918,
4117,
29918,
9794,
29897,
13,
1678,
14965,
353,
2254,
29918,
535,
1547,
29918,
9794,
29898,
262,
29918,
29895,
9970,
29918,
9794,
29897,
13,
1678,
1067,
29888,
353,
12433,
1279,
936,
2385,
3709,
29898,
4117,
29918,
695,
5847,
29892,
14965,
29897,
13,
13,
1678,
565,
4046,
338,
451,
6213,
29901,
13,
4706,
25401,
29889,
3888,
29898,
29888,
29908,
29931,
326,
11407,
304,
426,
13400,
29913,
1243,
6475,
23157,
13,
4706,
4682,
29918,
5344,
29918,
1688,
353,
4682,
29918,
5344,
29889,
517,
29883,
1557,
580,
29961,
1688,
29918,
12772,
29961,
29900,
29901,
13400,
1402,
584,
29962,
13,
4706,
6635,
29918,
11965,
29879,
353,
6635,
29918,
11965,
29879,
29961,
29900,
29901,
13400,
29892,
584,
29962,
13,
4706,
396,
14402,
29901,
1128,
947,
445,
6602,
16285,
29973,
13,
1678,
1683,
29901,
13,
4706,
4682,
29918,
5344,
29918,
1688,
353,
4682,
29918,
5344,
29889,
517,
29883,
1557,
580,
29961,
1688,
29918,
12772,
29892,
584,
29962,
13,
13,
1678,
25401,
29889,
3888,
29898,
29888,
29915,
29216,
26041,
5281,
27303,
411,
13705,
29850,
19274,
386,
29918,
710,
271,
29913,
1642,
1495,
13,
1678,
599,
29918,
4117,
29918,
12772,
353,
679,
29918,
4117,
29918,
12772,
29898,
695,
29888,
29889,
20683,
29892,
6635,
29918,
11965,
29879,
29892,
260,
29922,
29873,
29897,
13,
1678,
565,
378,
29918,
13400,
338,
451,
6213,
29901,
13,
4706,
378,
29893,
29883,
353,
1067,
29888,
29889,
535,
1547,
29879,
29918,
2541,
29918,
1990,
14903,
29961,
29900,
29901,
535,
29918,
13400,
29962,
13,
1678,
1683,
29901,
13,
4706,
378,
29893,
29883,
353,
1067,
29888,
29889,
535,
1547,
29879,
29918,
2541,
29918,
1990,
14903,
13,
1678,
8267,
353,
313,
14394,
29918,
5344,
29918,
1688,
29889,
12181,
29961,
29900,
1402,
7431,
29898,
535,
29893,
29883,
876,
13,
1678,
411,
260,
29939,
18933,
29898,
7827,
29922,
12181,
29961,
29900,
2314,
408,
282,
1646,
29901,
13,
4706,
679,
29918,
19274,
386,
29918,
11965,
29879,
29898,
13,
9651,
714,
29918,
8899,
29892,
13,
9651,
8267,
29892,
13,
9651,
599,
29918,
4117,
29918,
12772,
29892,
13,
9651,
1067,
29888,
29889,
20683,
29892,
13,
9651,
14710,
29918,
16175,
29918,
2311,
29892,
13,
9651,
871,
29918,
4117,
29922,
8824,
29892,
13,
9651,
14710,
29918,
710,
271,
29922,
19274,
386,
29918,
710,
271,
29892,
13,
9651,
378,
29918,
13400,
29922,
535,
29918,
13400,
29892,
13,
9651,
4046,
29922,
13400,
29892,
13,
9651,
282,
1646,
29922,
29886,
1646,
29892,
13,
4706,
1723,
13,
13,
1678,
25401,
29889,
3888,
703,
6039,
2408,
292,
21556,
23157,
13,
1678,
411,
298,
29945,
2272,
29889,
2283,
29898,
449,
29918,
8899,
29892,
376,
29878,
1159,
408,
285,
29900,
29901,
13,
4706,
565,
4046,
338,
451,
6213,
29901,
13,
9651,
3646,
29918,
5975,
353,
285,
29900,
3366,
2057,
29918,
509,
2806,
3108,
29961,
29900,
29901,
13400,
29892,
584,
29962,
13,
4706,
1683,
29901,
13,
9651,
3646,
29918,
5975,
353,
285,
29900,
3366,
2057,
29918,
509,
2806,
16862,
1767,
13,
1678,
411,
298,
29945,
2272,
29889,
2283,
29898,
449,
29918,
8899,
29892,
376,
29878,
1159,
408,
285,
29900,
29901,
13,
4706,
14710,
29918,
11965,
29879,
353,
285,
29900,
3366,
19274,
26533,
16862,
1767,
13,
13,
1678,
17643,
353,
5159,
13,
1678,
1539,
29879,
29918,
29886,
1646,
353,
260,
29939,
18933,
29898,
13,
4706,
3464,
29898,
2435,
29898,
535,
29893,
29883,
8243,
13,
4706,
3001,
29922,
2435,
29898,
535,
29893,
29883,
511,
13,
1678,
1723,
13,
1678,
363,
474,
297,
1539,
29879,
29918,
29886,
1646,
29901,
13,
4706,
4982,
353,
270,
1278,
29889,
18829,
287,
29898,
657,
29918,
29885,
1691,
5033,
13,
9651,
474,
29892,
14710,
29918,
11965,
29879,
29892,
3646,
29918,
5975,
29892,
378,
29893,
29883,
29892,
1539,
29879,
29918,
29886,
1646,
13,
4706,
1723,
13,
4706,
17643,
29889,
4397,
29898,
9057,
29897,
13,
1678,
6475,
353,
270,
1278,
29889,
26017,
29898,
9057,
29879,
29897,
13,
1678,
716,
29918,
276,
2395,
29918,
2176,
353,
10518,
29889,
17271,
29898,
3757,
4339,
29961,
29900,
2314,
13,
1678,
25401,
29889,
3888,
29898,
29888,
29908,
29903,
5555,
2582,
304,
426,
449,
29918,
19274,
386,
29918,
1557,
2361,
1836,
1159,
13,
1678,
716,
29918,
276,
2395,
29918,
2176,
29889,
517,
29918,
7638,
29898,
449,
29918,
19274,
386,
29918,
1557,
2361,
29897,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
8216,
543,
29903,
388,
22172,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
735,
15362,
29918,
978,
613,
1371,
543,
2080,
13872,
934,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
19274,
386,
29918,
710,
271,
613,
1371,
543,
2080,
13872,
934,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
262,
29918,
4117,
29918,
11965,
29879,
613,
1371,
543,
2080,
13872,
934,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
8899,
613,
1371,
543,
2080,
13872,
934,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
19274,
386,
29918,
16175,
29918,
2311,
613,
1371,
543,
2080,
13872,
934,
613,
1134,
29922,
524,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
386,
12268,
613,
1371,
543,
2080,
13872,
934,
613,
1134,
29922,
7411,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
449,
29918,
19274,
386,
29918,
1557,
2361,
613,
1371,
543,
2080,
13872,
934,
1159,
13,
1678,
13812,
29889,
1202,
29918,
23516,
29898,
13,
4706,
376,
489,
13400,
613,
1371,
543,
2311,
363,
4559,
304,
1243,
14710,
6656,
613,
1134,
29922,
524,
29892,
2322,
29922,
8516,
13,
1678,
1723,
13,
1678,
13812,
29889,
1202,
29918,
23516,
29898,
13,
4706,
376,
489,
535,
29918,
13400,
613,
1371,
543,
2311,
363,
6964,
4559,
613,
1134,
29922,
524,
29892,
2322,
29922,
8516,
13,
1678,
1723,
13,
1678,
6389,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
1678,
1667,
29898,
13,
4706,
6389,
29889,
735,
15362,
29918,
978,
29892,
13,
4706,
6389,
29889,
19274,
386,
29918,
710,
271,
29892,
13,
4706,
6389,
29889,
262,
29918,
4117,
29918,
11965,
29879,
29892,
13,
4706,
6389,
29889,
8899,
29892,
13,
4706,
6389,
29889,
19274,
386,
29918,
16175,
29918,
2311,
29892,
13,
4706,
6389,
29889,
386,
12268,
29892,
13,
4706,
6389,
29889,
449,
29918,
19274,
386,
29918,
1557,
2361,
29892,
13,
4706,
6389,
29889,
13400,
29892,
13,
4706,
6389,
29889,
535,
29918,
13400,
29892,
13,
1678,
1723,
13,
2
] |
djnic/cambios/apps.py | avdata99/nic | 8 | 41802 | <filename>djnic/cambios/apps.py
from django.apps import AppConfig
class CambiosConfig(AppConfig):
name = 'cambios'
| [
1,
529,
9507,
29958,
19776,
7823,
29914,
29883,
1117,
2363,
29914,
13371,
29889,
2272,
13,
3166,
9557,
29889,
13371,
1053,
2401,
3991,
13,
13,
13,
1990,
9287,
2363,
3991,
29898,
2052,
3991,
1125,
13,
1678,
1024,
353,
525,
29883,
1117,
2363,
29915,
13,
2
] |
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/GL/EXT/draw_buffers2.py | temelkirci/Motion_Editor | 1 | 8208 | <reponame>temelkirci/Motion_Editor
'''OpenGL extension EXT.draw_buffers2
This module customises the behaviour of the
OpenGL.raw.GL.EXT.draw_buffers2 to provide a more
Python-friendly API
Overview (from the spec)
This extension builds upon the ARB_draw_buffers extension and provides
separate blend enables and color write masks for each color output. In
ARB_draw_buffers (part of OpenGL 2.0), separate values can be written to
each color buffer, but the blend enable and color write mask are global
and apply to all color outputs.
While this extension does provide separate blend enables, it does not
provide separate blend functions or blend equations per color output.
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/EXT/draw_buffers2.txt
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions, wrapper
from OpenGL.GL import glget
import ctypes
from OpenGL.raw.GL.EXT.draw_buffers2 import *
### END AUTOGENERATED SECTION | [
1,
529,
276,
1112,
420,
29958,
1356,
295,
14166,
455,
29914,
29924,
8194,
29918,
15280,
13,
12008,
6585,
7239,
6081,
8528,
29911,
29889,
4012,
29918,
28040,
414,
29906,
13,
13,
4013,
3883,
2888,
4637,
278,
10468,
310,
278,
29871,
13,
6585,
7239,
29889,
1610,
29889,
7239,
29889,
12194,
29889,
4012,
29918,
28040,
414,
29906,
304,
3867,
263,
901,
29871,
13,
11980,
29899,
18326,
368,
3450,
13,
13,
3563,
1493,
313,
3166,
278,
1580,
29897,
13,
12,
13,
12,
4013,
6081,
23315,
2501,
278,
9033,
29933,
29918,
4012,
29918,
28040,
414,
6081,
322,
8128,
13,
12,
25048,
403,
1999,
355,
28936,
322,
2927,
2436,
11105,
29879,
363,
1269,
2927,
1962,
29889,
29871,
512,
13,
12,
1718,
29933,
29918,
4012,
29918,
28040,
414,
313,
1595,
310,
29508,
29871,
29906,
29889,
29900,
511,
5004,
1819,
508,
367,
3971,
304,
13,
12,
4204,
2927,
6835,
29892,
541,
278,
1999,
355,
9025,
322,
2927,
2436,
11105,
526,
5534,
13,
12,
392,
3394,
304,
599,
2927,
14391,
29889,
13,
12,
13,
12,
8809,
488,
445,
6081,
947,
3867,
5004,
1999,
355,
28936,
29892,
372,
947,
451,
13,
12,
16123,
680,
5004,
1999,
355,
3168,
470,
1999,
355,
10693,
639,
2927,
1962,
29889,
13,
12,
13,
13,
1576,
6221,
5023,
310,
445,
6081,
338,
3625,
1244,
29901,
13,
1124,
597,
1636,
29889,
459,
6180,
29889,
990,
29914,
1727,
6020,
29914,
5965,
2395,
29914,
12194,
29914,
4012,
29918,
28040,
414,
29906,
29889,
3945,
13,
12008,
13,
3166,
29508,
1053,
7481,
29892,
17727,
29892,
4868,
29892,
7049,
13,
3166,
29508,
1053,
17752,
29892,
14476,
13,
3166,
29508,
29889,
7239,
1053,
3144,
657,
13,
5215,
274,
8768,
13,
3166,
29508,
29889,
1610,
29889,
7239,
29889,
12194,
29889,
4012,
29918,
28040,
414,
29906,
1053,
334,
13,
2277,
29937,
11056,
26524,
29949,
24647,
1001,
3040,
29928,
3725,
9838,
2
] |
misc/wapiti-2.3.0/wapitiCore/report/xmlreportgenerator.py | sapientgov/openfda-travel | 377 | 179028 | <reponame>sapientgov/openfda-travel<filename>misc/wapiti-2.3.0/wapitiCore/report/xmlreportgenerator.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of the Wapiti project (http://wapiti.sourceforge.net)
# Copyright (C) 2008-2013 <NAME>
#
# Original authors :
# <NAME>
# <NAME>
# Copyright (C) 2008 Informatica Gesfor
# ICT Romulus (http://www.ict-romulus.eu)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
from xml.dom.minidom import Document
from wapitiCore.report.reportgenerator import ReportGenerator
class XMLReportGenerator(ReportGenerator):
"""
This class generates a report with the method printToFile(fileName) which contains
the information of all the vulnerabilities notified to this object through the
method logVulnerability(vulnerabilityTypeName,level,url,parameter,info).
The format of the file is XML and it has the following structure:
<report type="security">
<generatedBy id="Wapiti 2.3.0"/>
<vulnerabilityTypeList>
<vulnerabilityType name="SQL Injection">
<vulnerabilityTypeList>
<vulnerabilityType name="SQL Injection">
<vulnerabilityList>
<vulnerability level="3">
<url>http://www.a.com</url>
<parameters>id=23</parameters>
<info>SQL Injection</info>
</vulnerability>
</vulnerabilityList>
</vulnerablityType>
</vulnerabilityTypeList>
</report>
"""
__xmlDoc = None
__infos = {}
__flawTypes = {}
__vulns = {}
__anomalies = {}
__infos = {}
def __init__(self):
self.__xmlDoc = Document()
def setReportInfo(self, target, scope=None, date_string="", version=""):
self.__infos["target"] = target
self.__infos["date"] = date_string
self.__infos["version"] = version
if scope:
self.__infos["scope"] = scope
# Vulnerabilities
def addVulnerabilityType(self, name,
description="",
solution="",
references={}):
if name not in self.__flawTypes:
self.__flawTypes[name] = {'desc': description,
'sol': solution,
'ref': references}
if name not in self.__vulns:
self.__vulns[name] = []
def logVulnerability(self,
category=None,
level=0,
request=None,
parameter="",
info=""):
"""
Store the information about the vulnerability to be printed later.
The method printToFile(fileName) can be used to save in a file the
vulnerabilities notified through the current method.
"""
vuln_dict = {"method": request.method,
"path": request.file_path,
"info": info,
"level": level,
"parameter": parameter,
"http_request": request.http_repr,
"curl_command": request.curl_repr,
}
if category not in self.__vulns:
self.__vulns[category] = []
self.__vulns[category].append(vuln_dict)
# Anomalies
def addAnomalyType(self, name,
description="",
solution="",
references={}):
if name not in self.__flawTypes:
self.__flawTypes[name] = {'desc': description,
'sol': solution,
'ref': references}
if name not in self.__anomalies:
self.__anomalies[name] = []
def logAnomaly(self,
category=None,
level=0,
request=None,
parameter="",
info=""):
"""
Store the information about the vulnerability to be printed later.
The method printToFile(fileName) can be used to save in a file the
vulnerabilities notified through the current method.
"""
anom_dict = {"method": request.method,
"path": request.file_path,
"info": info,
"level": level,
"parameter": parameter,
"http_request": request.http_repr,
"curl_command": request.curl_repr,
}
if category not in self.__anomalies:
self.__anomalies[category] = []
self.__anomalies[category].append(anom_dict)
def generateReport(self, fileName):
"""
Create a xml file with a report of the vulnerabilities which have been logged with
the method logVulnerability(vulnerabilityTypeName,level,url,parameter,info)
"""
report = self.__xmlDoc.createElement("report")
report.setAttribute("type", "security")
self.__xmlDoc.appendChild(report)
# Add report infos
report_infos = self.__xmlDoc.createElement("report_infos")
generatorName = self.__xmlDoc.createElement("info")
generatorName.setAttribute("name", "generatorName")
generatorName.appendChild(self.__xmlDoc.createTextNode("wapiti"))
report_infos.appendChild(generatorName)
generatorVersion = self.__xmlDoc.createElement("info")
generatorVersion.setAttribute("name", "generatorVersion")
generatorVersion.appendChild(self.__xmlDoc.createTextNode(self.__infos["version"]))
report_infos.appendChild(generatorVersion)
scope = self.__xmlDoc.createElement("info")
scope.setAttribute("name", "scope")
scope.appendChild(self.__xmlDoc.createTextNode(self.__infos["scope"]))
report_infos.appendChild(scope)
dateOfScan = self.__xmlDoc.createElement("info")
dateOfScan.setAttribute("name", "dateOfScan")
dateOfScan.appendChild(self.__xmlDoc.createTextNode(self.__infos["date"]))
report_infos.appendChild(dateOfScan)
report.appendChild(report_infos)
vulnerabilities = self.__xmlDoc.createElement("vulnerabilities")
anomalies = self.__xmlDoc.createElement("anomalies")
# Loop on each flaw classification
for flawType in self.__flawTypes:
container = None
classification = ""
flaw_dict = {}
if flawType in self.__vulns:
container = vulnerabilities
classification = "vulnerability"
flaw_dict = self.__vulns
elif flawType in self.__anomalies:
container = anomalies
classification = "anomaly"
flaw_dict = self.__anomalies
# Child nodes with a description of the flaw type
flawTypeNode = self.__xmlDoc.createElement(classification)
flawTypeNode.setAttribute("name", flawType)
flawTypeDesc = self.__xmlDoc.createElement("description")
flawTypeDesc.appendChild(self.__xmlDoc.createCDATASection(self.__flawTypes[flawType]['desc']))
flawTypeNode.appendChild(flawTypeDesc)
flawTypeSolution = self.__xmlDoc.createElement("solution")
flawTypeSolution.appendChild(self.__xmlDoc.createCDATASection(self.__flawTypes[flawType]['sol']))
flawTypeNode.appendChild(flawTypeSolution)
flawTypeReferences = self.__xmlDoc.createElement("references")
for ref in self.__flawTypes[flawType]['ref']:
referenceNode = self.__xmlDoc.createElement("reference")
titleNode = self.__xmlDoc.createElement("title")
urlNode = self.__xmlDoc.createElement("url")
titleNode.appendChild(self.__xmlDoc.createTextNode(ref))
url = self.__flawTypes[flawType]['ref'][ref]
urlNode.appendChild(self.__xmlDoc.createTextNode(url))
referenceNode.appendChild(titleNode)
referenceNode.appendChild(urlNode)
flawTypeReferences.appendChild(referenceNode)
flawTypeNode.appendChild(flawTypeReferences)
# And child nodes with each flaw of the current type
entriesNode = self.__xmlDoc.createElement("entries")
for flaw in flaw_dict[flawType]:
entryNode = self.__xmlDoc.createElement("entry")
methodNode = self.__xmlDoc.createElement("method")
methodNode.appendChild(self.__xmlDoc.createTextNode(flaw["method"]))
entryNode.appendChild(methodNode)
pathNode = self.__xmlDoc.createElement("path")
pathNode.appendChild(self.__xmlDoc.createTextNode(flaw["path"]))
entryNode.appendChild(pathNode)
levelNode = self.__xmlDoc.createElement("level")
levelNode.appendChild(self.__xmlDoc.createTextNode(str(flaw["level"])))
entryNode.appendChild(levelNode)
parameterNode = self.__xmlDoc.createElement("parameter")
parameterNode.appendChild(self.__xmlDoc.createTextNode(flaw["parameter"]))
entryNode.appendChild(parameterNode)
infoNode = self.__xmlDoc.createElement("info")
infoNode.appendChild(self.__xmlDoc.createTextNode(flaw["info"]))
entryNode.appendChild(infoNode)
httpRequestNode = self.__xmlDoc.createElement("http_request")
httpRequestNode.appendChild(self.__xmlDoc.createCDATASection(flaw["http_request"]))
entryNode.appendChild(httpRequestNode)
curlCommandNode = self.__xmlDoc.createElement("curl_command")
curlCommandNode.appendChild(self.__xmlDoc.createCDATASection(flaw["curl_command"]))
entryNode.appendChild(curlCommandNode)
entriesNode.appendChild(entryNode)
flawTypeNode.appendChild(entriesNode)
container.appendChild(flawTypeNode)
report.appendChild(vulnerabilities)
report.appendChild(anomalies)
f = open(fileName, "w")
try:
f.write(self.__xmlDoc.toprettyxml(indent=" ", encoding="UTF-8"))
finally:
f.close()
if __name__ == "__main__":
SQL_INJECTION = "Sql Injection"
FILE_HANDLING = "File Handling"
XSS = "Cross Site Scripting"
CRLF = "CRLF Injection"
EXEC = "Commands execution"
try:
xmlGen = XMLReportGenerator()
xmlGen.addVulnerabilityType(SQL_INJECTION)
xmlGen.addVulnerabilityType(FILE_HANDLING)
xmlGen.addVulnerabilityType(XSS)
xmlGen.addVulnerabilityType(CRLF)
xmlGen.addVulnerabilityType(EXEC)
xmlGen.logVulnerability("SQL Inyection", "1", "url1", "parameter1", "info1")
xmlGen.logVulnerability("SQL Inyection", "2", "url2", "parameter2", "info2")
xmlGen.logVulnerability("SQL Inyection", "2", "url3", "parameter3", "info3")
xmlGen.logVulnerability("SQL Inyection", "3", "url4", "parameter4", "info4")
xmlGen.logVulnerability("Cross Site Scripting", "3", "url5", "parameter5", "info5")
xmlGen.logVulnerability("Cross Site Scripting", "3", "url6", "parameter6", "info6")
xmlGen.logVulnerability("Cross Site Scripting", "2", "url7", "parameter7", "info7")
xmlGen.logVulnerability("Cross Site Scripting", "1", "url8", "parameter8", "info8")
xmlGen.logVulnerability("Google Hacking", "2", "url9", "parameter9", "info9")
xmlGen.printToFile("sampleReport.xml")
except SystemExit:
pass
| [
1,
529,
276,
1112,
420,
29958,
29879,
481,
993,
13513,
29914,
3150,
29888,
1388,
29899,
3018,
955,
29966,
9507,
29958,
29885,
10669,
29914,
29893,
481,
4812,
29899,
29906,
29889,
29941,
29889,
29900,
29914,
29893,
481,
4812,
9203,
29914,
12276,
29914,
3134,
12276,
27959,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
910,
934,
338,
760,
310,
278,
399,
481,
4812,
2060,
313,
1124,
597,
29893,
481,
4812,
29889,
28315,
29889,
1212,
29897,
13,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29900,
29947,
29899,
29906,
29900,
29896,
29941,
529,
5813,
29958,
13,
29937,
13,
29937,
8533,
15717,
584,
13,
29937,
529,
5813,
29958,
13,
29937,
529,
5813,
29958,
13,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29900,
29947,
512,
4830,
983,
6328,
1454,
13,
29937,
306,
1783,
6033,
14999,
313,
1124,
597,
1636,
29889,
919,
29899,
456,
14999,
29889,
12932,
29897,
13,
29937,
13,
29937,
910,
1824,
338,
3889,
7047,
29936,
366,
508,
2654,
391,
2666,
372,
322,
29914,
272,
6623,
13,
29937,
372,
1090,
278,
4958,
310,
278,
15143,
4593,
5236,
19245,
408,
6369,
491,
13,
29937,
278,
12362,
18540,
10606,
29936,
2845,
1873,
29871,
29906,
310,
278,
19245,
29892,
470,
13,
29937,
313,
271,
596,
2984,
29897,
738,
2678,
1873,
29889,
13,
29937,
13,
29937,
910,
1824,
338,
13235,
297,
278,
4966,
393,
372,
674,
367,
5407,
29892,
13,
29937,
541,
399,
1806,
8187,
2692,
13764,
29979,
399,
1718,
29934,
13566,
29979,
29936,
1728,
1584,
278,
2411,
2957,
1370,
21867,
29891,
310,
13,
29937,
341,
1001,
3210,
13566,
2882,
6227,
11937,
470,
383,
1806,
8186,
1799,
15842,
319,
349,
8322,
2965,
13309,
1718,
349,
4574,
13152,
1660,
29889,
29871,
2823,
278,
13,
29937,
15143,
4593,
5236,
19245,
363,
901,
4902,
29889,
13,
29937,
13,
29937,
887,
881,
505,
4520,
263,
3509,
310,
278,
15143,
4593,
5236,
19245,
13,
29937,
3412,
411,
445,
1824,
29936,
565,
451,
29892,
2436,
304,
278,
12362,
18540,
13,
29937,
10606,
29892,
9266,
1696,
29871,
29945,
29896,
21504,
624,
29892,
29008,
386,
383,
10102,
29892,
12115,
29892,
14861,
259,
29900,
29906,
29896,
29896,
29900,
29899,
29896,
29941,
29900,
29896,
29871,
8278,
13,
3166,
4903,
29889,
3129,
29889,
1195,
333,
290,
1053,
10854,
13,
3166,
281,
481,
4812,
9203,
29889,
12276,
29889,
12276,
27959,
1053,
13969,
21575,
13,
13,
13,
1990,
6560,
13020,
21575,
29898,
13020,
21575,
1125,
13,
1678,
9995,
13,
1678,
910,
770,
16785,
263,
3461,
411,
278,
1158,
1596,
1762,
2283,
29898,
28926,
29897,
607,
3743,
13,
1678,
278,
2472,
310,
599,
278,
23180,
11614,
451,
2164,
304,
445,
1203,
1549,
278,
13,
1678,
1158,
1480,
29963,
352,
1089,
3097,
29898,
29894,
352,
1089,
3097,
1542,
1170,
29892,
5563,
29892,
2271,
29892,
15501,
29892,
3888,
467,
13,
1678,
450,
3402,
310,
278,
934,
338,
6560,
322,
372,
756,
278,
1494,
3829,
29901,
13,
1678,
529,
12276,
1134,
543,
8926,
1013,
13,
4706,
529,
13525,
2059,
1178,
543,
29956,
481,
4812,
29871,
29906,
29889,
29941,
29889,
29900,
4681,
13,
4706,
529,
29894,
352,
1089,
3097,
1542,
1293,
29958,
13,
9651,
529,
29894,
352,
1089,
3097,
1542,
1024,
543,
4176,
512,
6929,
1013,
13,
13,
4706,
529,
29894,
352,
1089,
3097,
1542,
1293,
29958,
13,
9651,
529,
29894,
352,
1089,
3097,
1542,
1024,
543,
4176,
512,
6929,
1013,
13,
18884,
529,
29894,
352,
1089,
3097,
1293,
29958,
13,
462,
1678,
529,
29894,
352,
1089,
3097,
3233,
543,
29941,
1013,
13,
462,
4706,
529,
2271,
29958,
1124,
597,
1636,
29889,
29874,
29889,
510,
829,
2271,
29958,
13,
462,
4706,
529,
16744,
29958,
333,
29922,
29906,
29941,
829,
16744,
29958,
13,
462,
4706,
529,
3888,
29958,
4176,
512,
6929,
829,
3888,
29958,
13,
462,
1678,
1533,
29894,
352,
1089,
3097,
29958,
13,
18884,
1533,
29894,
352,
1089,
3097,
1293,
29958,
13,
9651,
1533,
29894,
352,
1089,
12478,
537,
1542,
29958,
13,
4706,
1533,
29894,
352,
1089,
3097,
1542,
1293,
29958,
13,
1678,
1533,
12276,
29958,
13,
1678,
9995,
13,
13,
1678,
4770,
3134,
14526,
353,
6213,
13,
1678,
4770,
7192,
359,
353,
6571,
13,
1678,
4770,
29888,
10653,
10562,
353,
6571,
13,
13,
1678,
4770,
29894,
352,
1983,
353,
6571,
13,
1678,
4770,
273,
290,
284,
583,
353,
6571,
13,
13,
1678,
4770,
7192,
359,
353,
6571,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
17255,
3134,
14526,
353,
10854,
580,
13,
13,
1678,
822,
731,
13020,
3401,
29898,
1311,
29892,
3646,
29892,
6874,
29922,
8516,
29892,
2635,
29918,
1807,
543,
613,
1873,
13776,
1125,
13,
4706,
1583,
17255,
7192,
359,
3366,
5182,
3108,
353,
3646,
13,
4706,
1583,
17255,
7192,
359,
3366,
1256,
3108,
353,
2635,
29918,
1807,
13,
4706,
1583,
17255,
7192,
359,
3366,
3259,
3108,
353,
1873,
13,
4706,
565,
6874,
29901,
13,
9651,
1583,
17255,
7192,
359,
3366,
6078,
3108,
353,
6874,
13,
13,
1678,
396,
478,
352,
1089,
11614,
13,
1678,
822,
788,
29963,
352,
1089,
3097,
1542,
29898,
1311,
29892,
1024,
29892,
13,
462,
632,
6139,
543,
613,
13,
462,
632,
1650,
543,
613,
13,
462,
632,
9282,
3790,
29913,
1125,
13,
4706,
565,
1024,
451,
297,
1583,
17255,
29888,
10653,
10562,
29901,
13,
9651,
1583,
17255,
29888,
10653,
10562,
29961,
978,
29962,
353,
11117,
14273,
2396,
6139,
29892,
13,
462,
462,
418,
525,
2929,
2396,
1650,
29892,
13,
462,
462,
418,
525,
999,
2396,
9282,
29913,
13,
4706,
565,
1024,
451,
297,
1583,
17255,
29894,
352,
1983,
29901,
13,
9651,
1583,
17255,
29894,
352,
1983,
29961,
978,
29962,
353,
5159,
13,
13,
1678,
822,
1480,
29963,
352,
1089,
3097,
29898,
1311,
29892,
13,
462,
308,
7663,
29922,
8516,
29892,
13,
462,
308,
3233,
29922,
29900,
29892,
13,
462,
308,
2009,
29922,
8516,
29892,
13,
462,
308,
3443,
543,
613,
13,
462,
308,
5235,
13776,
1125,
13,
4706,
9995,
13,
4706,
14491,
278,
2472,
1048,
278,
23180,
3097,
304,
367,
13350,
2678,
29889,
13,
4706,
450,
1158,
1596,
1762,
2283,
29898,
28926,
29897,
508,
367,
1304,
304,
4078,
297,
263,
934,
278,
13,
4706,
23180,
11614,
451,
2164,
1549,
278,
1857,
1158,
29889,
13,
4706,
9995,
13,
13,
4706,
12799,
29876,
29918,
8977,
353,
8853,
5696,
1115,
2009,
29889,
5696,
29892,
13,
462,
268,
376,
2084,
1115,
2009,
29889,
1445,
29918,
2084,
29892,
13,
462,
268,
376,
3888,
1115,
5235,
29892,
13,
462,
268,
376,
5563,
1115,
3233,
29892,
13,
462,
268,
376,
15501,
1115,
3443,
29892,
13,
462,
268,
376,
1124,
29918,
3827,
1115,
2009,
29889,
1124,
29918,
276,
558,
29892,
13,
462,
268,
376,
18963,
29918,
6519,
1115,
2009,
29889,
18963,
29918,
276,
558,
29892,
13,
462,
268,
500,
13,
4706,
565,
7663,
451,
297,
1583,
17255,
29894,
352,
1983,
29901,
13,
9651,
1583,
17255,
29894,
352,
1983,
29961,
7320,
29962,
353,
5159,
13,
4706,
1583,
17255,
29894,
352,
1983,
29961,
7320,
1822,
4397,
29898,
29894,
352,
29876,
29918,
8977,
29897,
13,
13,
1678,
396,
530,
290,
284,
583,
13,
1678,
822,
788,
2744,
290,
14997,
1542,
29898,
1311,
29892,
1024,
29892,
13,
462,
539,
6139,
543,
613,
13,
462,
539,
1650,
543,
613,
13,
462,
539,
9282,
3790,
29913,
1125,
13,
4706,
565,
1024,
451,
297,
1583,
17255,
29888,
10653,
10562,
29901,
13,
9651,
1583,
17255,
29888,
10653,
10562,
29961,
978,
29962,
353,
11117,
14273,
2396,
6139,
29892,
13,
462,
462,
418,
525,
2929,
2396,
1650,
29892,
13,
462,
462,
418,
525,
999,
2396,
9282,
29913,
13,
4706,
565,
1024,
451,
297,
1583,
17255,
273,
290,
284,
583,
29901,
13,
9651,
1583,
17255,
273,
290,
284,
583,
29961,
978,
29962,
353,
5159,
13,
13,
1678,
822,
1480,
2744,
290,
14997,
29898,
1311,
29892,
13,
462,
259,
7663,
29922,
8516,
29892,
13,
462,
259,
3233,
29922,
29900,
29892,
13,
462,
259,
2009,
29922,
8516,
29892,
13,
462,
259,
3443,
543,
613,
13,
462,
259,
5235,
13776,
1125,
13,
4706,
9995,
13,
4706,
14491,
278,
2472,
1048,
278,
23180,
3097,
304,
367,
13350,
2678,
29889,
13,
4706,
450,
1158,
1596,
1762,
2283,
29898,
28926,
29897,
508,
367,
1304,
304,
4078,
297,
263,
934,
278,
13,
4706,
23180,
11614,
451,
2164,
1549,
278,
1857,
1158,
29889,
13,
4706,
9995,
13,
13,
4706,
29342,
29918,
8977,
353,
8853,
5696,
1115,
2009,
29889,
5696,
29892,
13,
462,
268,
376,
2084,
1115,
2009,
29889,
1445,
29918,
2084,
29892,
13,
462,
268,
376,
3888,
1115,
5235,
29892,
13,
462,
268,
376,
5563,
1115,
3233,
29892,
13,
462,
268,
376,
15501,
1115,
3443,
29892,
13,
462,
268,
376,
1124,
29918,
3827,
1115,
2009,
29889,
1124,
29918,
276,
558,
29892,
13,
462,
268,
376,
18963,
29918,
6519,
1115,
2009,
29889,
18963,
29918,
276,
558,
29892,
13,
462,
268,
500,
13,
4706,
565,
7663,
451,
297,
1583,
17255,
273,
290,
284,
583,
29901,
13,
9651,
1583,
17255,
273,
290,
284,
583,
29961,
7320,
29962,
353,
5159,
13,
4706,
1583,
17255,
273,
290,
284,
583,
29961,
7320,
1822,
4397,
29898,
273,
290,
29918,
8977,
29897,
13,
13,
1678,
822,
5706,
13020,
29898,
1311,
29892,
29729,
1125,
13,
4706,
9995,
13,
4706,
6204,
263,
4903,
934,
411,
263,
3461,
310,
278,
23180,
11614,
607,
505,
1063,
13817,
411,
13,
4706,
278,
1158,
1480,
29963,
352,
1089,
3097,
29898,
29894,
352,
1089,
3097,
1542,
1170,
29892,
5563,
29892,
2271,
29892,
15501,
29892,
3888,
29897,
13,
4706,
9995,
13,
13,
4706,
3461,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
12276,
1159,
13,
4706,
3461,
29889,
27434,
703,
1853,
613,
376,
8926,
1159,
13,
4706,
1583,
17255,
3134,
14526,
29889,
23850,
29898,
12276,
29897,
13,
13,
4706,
396,
3462,
3461,
3041,
359,
13,
4706,
3461,
29918,
7192,
359,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
12276,
29918,
7192,
359,
1159,
13,
4706,
15299,
1170,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
3888,
1159,
13,
4706,
15299,
1170,
29889,
27434,
703,
978,
613,
376,
27959,
1170,
1159,
13,
4706,
15299,
1170,
29889,
23850,
29898,
1311,
17255,
3134,
14526,
29889,
3258,
1626,
4247,
703,
29893,
481,
4812,
5783,
13,
4706,
3461,
29918,
7192,
359,
29889,
23850,
29898,
27959,
1170,
29897,
13,
13,
4706,
15299,
6594,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
3888,
1159,
13,
4706,
15299,
6594,
29889,
27434,
703,
978,
613,
376,
27959,
6594,
1159,
13,
4706,
15299,
6594,
29889,
23850,
29898,
1311,
17255,
3134,
14526,
29889,
3258,
1626,
4247,
29898,
1311,
17255,
7192,
359,
3366,
3259,
3108,
876,
13,
4706,
3461,
29918,
7192,
359,
29889,
23850,
29898,
27959,
6594,
29897,
13,
13,
4706,
6874,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
3888,
1159,
13,
4706,
6874,
29889,
27434,
703,
978,
613,
376,
6078,
1159,
13,
4706,
6874,
29889,
23850,
29898,
1311,
17255,
3134,
14526,
29889,
3258,
1626,
4247,
29898,
1311,
17255,
7192,
359,
3366,
6078,
3108,
876,
13,
4706,
3461,
29918,
7192,
359,
29889,
23850,
29898,
6078,
29897,
13,
13,
4706,
2635,
2776,
29083,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
3888,
1159,
13,
4706,
2635,
2776,
29083,
29889,
27434,
703,
978,
613,
376,
1256,
2776,
29083,
1159,
13,
4706,
2635,
2776,
29083,
29889,
23850,
29898,
1311,
17255,
3134,
14526,
29889,
3258,
1626,
4247,
29898,
1311,
17255,
7192,
359,
3366,
1256,
3108,
876,
13,
4706,
3461,
29918,
7192,
359,
29889,
23850,
29898,
1256,
2776,
29083,
29897,
13,
4706,
3461,
29889,
23850,
29898,
12276,
29918,
7192,
359,
29897,
13,
13,
4706,
23180,
11614,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
29894,
352,
1089,
11614,
1159,
13,
4706,
29342,
284,
583,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
273,
290,
284,
583,
1159,
13,
13,
4706,
396,
21493,
373,
1269,
285,
10653,
12965,
13,
4706,
363,
285,
10653,
1542,
297,
1583,
17255,
29888,
10653,
10562,
29901,
13,
9651,
5639,
353,
6213,
13,
9651,
12965,
353,
5124,
13,
9651,
285,
10653,
29918,
8977,
353,
6571,
13,
9651,
565,
285,
10653,
1542,
297,
1583,
17255,
29894,
352,
1983,
29901,
13,
18884,
5639,
353,
23180,
11614,
13,
18884,
12965,
353,
376,
29894,
352,
1089,
3097,
29908,
13,
18884,
285,
10653,
29918,
8977,
353,
1583,
17255,
29894,
352,
1983,
13,
9651,
25342,
285,
10653,
1542,
297,
1583,
17255,
273,
290,
284,
583,
29901,
13,
18884,
5639,
353,
29342,
284,
583,
13,
18884,
12965,
353,
376,
273,
290,
14997,
29908,
13,
18884,
285,
10653,
29918,
8977,
353,
1583,
17255,
273,
290,
284,
583,
13,
13,
9651,
396,
10517,
7573,
411,
263,
6139,
310,
278,
285,
10653,
1134,
13,
9651,
285,
10653,
1542,
4247,
353,
1583,
17255,
3134,
14526,
29889,
22662,
29898,
1990,
2450,
29897,
13,
9651,
285,
10653,
1542,
4247,
29889,
27434,
703,
978,
613,
285,
10653,
1542,
29897,
13,
9651,
285,
10653,
1542,
19617,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
8216,
1159,
13,
9651,
285,
10653,
1542,
19617,
29889,
23850,
29898,
1311,
17255,
3134,
14526,
29889,
3258,
6530,
8254,
13438,
29898,
1311,
17255,
29888,
10653,
10562,
29961,
29888,
10653,
1542,
22322,
14273,
25901,
13,
9651,
285,
10653,
1542,
4247,
29889,
23850,
29898,
29888,
10653,
1542,
19617,
29897,
13,
9651,
285,
10653,
1542,
13296,
918,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
2929,
918,
1159,
13,
9651,
285,
10653,
1542,
13296,
918,
29889,
23850,
29898,
1311,
17255,
3134,
14526,
29889,
3258,
6530,
8254,
13438,
29898,
1311,
17255,
29888,
10653,
10562,
29961,
29888,
10653,
1542,
22322,
2929,
25901,
13,
9651,
285,
10653,
1542,
4247,
29889,
23850,
29898,
29888,
10653,
1542,
13296,
918,
29897,
13,
13,
9651,
285,
10653,
1542,
1123,
10662,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
276,
10662,
1159,
13,
9651,
363,
2143,
297,
1583,
17255,
29888,
10653,
10562,
29961,
29888,
10653,
1542,
22322,
999,
2033,
29901,
13,
18884,
3407,
4247,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
5679,
1159,
13,
18884,
3611,
4247,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
3257,
1159,
13,
18884,
3142,
4247,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
2271,
1159,
13,
18884,
3611,
4247,
29889,
23850,
29898,
1311,
17255,
3134,
14526,
29889,
3258,
1626,
4247,
29898,
999,
876,
13,
18884,
3142,
353,
1583,
17255,
29888,
10653,
10562,
29961,
29888,
10653,
1542,
22322,
999,
2033,
29961,
999,
29962,
13,
18884,
3142,
4247,
29889,
23850,
29898,
1311,
17255,
3134,
14526,
29889,
3258,
1626,
4247,
29898,
2271,
876,
13,
18884,
3407,
4247,
29889,
23850,
29898,
3257,
4247,
29897,
13,
18884,
3407,
4247,
29889,
23850,
29898,
2271,
4247,
29897,
13,
18884,
285,
10653,
1542,
1123,
10662,
29889,
23850,
29898,
5679,
4247,
29897,
13,
9651,
285,
10653,
1542,
4247,
29889,
23850,
29898,
29888,
10653,
1542,
1123,
10662,
29897,
13,
13,
9651,
396,
1126,
2278,
7573,
411,
1269,
285,
10653,
310,
278,
1857,
1134,
13,
9651,
9976,
4247,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
26586,
1159,
13,
9651,
363,
285,
10653,
297,
285,
10653,
29918,
8977,
29961,
29888,
10653,
1542,
5387,
13,
18884,
6251,
4247,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
8269,
1159,
13,
18884,
1158,
4247,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
5696,
1159,
13,
18884,
1158,
4247,
29889,
23850,
29898,
1311,
17255,
3134,
14526,
29889,
3258,
1626,
4247,
29898,
29888,
10653,
3366,
5696,
3108,
876,
13,
18884,
6251,
4247,
29889,
23850,
29898,
5696,
4247,
29897,
13,
18884,
2224,
4247,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
2084,
1159,
13,
18884,
2224,
4247,
29889,
23850,
29898,
1311,
17255,
3134,
14526,
29889,
3258,
1626,
4247,
29898,
29888,
10653,
3366,
2084,
3108,
876,
13,
18884,
6251,
4247,
29889,
23850,
29898,
2084,
4247,
29897,
13,
18884,
3233,
4247,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
5563,
1159,
13,
18884,
3233,
4247,
29889,
23850,
29898,
1311,
17255,
3134,
14526,
29889,
3258,
1626,
4247,
29898,
710,
29898,
29888,
10653,
3366,
5563,
3108,
4961,
13,
18884,
6251,
4247,
29889,
23850,
29898,
5563,
4247,
29897,
13,
18884,
3443,
4247,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
15501,
1159,
13,
18884,
3443,
4247,
29889,
23850,
29898,
1311,
17255,
3134,
14526,
29889,
3258,
1626,
4247,
29898,
29888,
10653,
3366,
15501,
3108,
876,
13,
18884,
6251,
4247,
29889,
23850,
29898,
15501,
4247,
29897,
13,
18884,
5235,
4247,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
3888,
1159,
13,
18884,
5235,
4247,
29889,
23850,
29898,
1311,
17255,
3134,
14526,
29889,
3258,
1626,
4247,
29898,
29888,
10653,
3366,
3888,
3108,
876,
13,
18884,
6251,
4247,
29889,
23850,
29898,
3888,
4247,
29897,
13,
18884,
1732,
3089,
4247,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
1124,
29918,
3827,
1159,
13,
18884,
1732,
3089,
4247,
29889,
23850,
29898,
1311,
17255,
3134,
14526,
29889,
3258,
6530,
8254,
13438,
29898,
29888,
10653,
3366,
1124,
29918,
3827,
3108,
876,
13,
18884,
6251,
4247,
29889,
23850,
29898,
1124,
3089,
4247,
29897,
13,
18884,
11051,
6255,
4247,
353,
1583,
17255,
3134,
14526,
29889,
22662,
703,
18963,
29918,
6519,
1159,
13,
18884,
11051,
6255,
4247,
29889,
23850,
29898,
1311,
17255,
3134,
14526,
29889,
3258,
6530,
8254,
13438,
29898,
29888,
10653,
3366,
18963,
29918,
6519,
3108,
876,
13,
18884,
6251,
4247,
29889,
23850,
29898,
18963,
6255,
4247,
29897,
13,
18884,
9976,
4247,
29889,
23850,
29898,
8269,
4247,
29897,
13,
9651,
285,
10653,
1542,
4247,
29889,
23850,
29898,
26586,
4247,
29897,
13,
9651,
5639,
29889,
23850,
29898,
29888,
10653,
1542,
4247,
29897,
13,
4706,
3461,
29889,
23850,
29898,
29894,
352,
1089,
11614,
29897,
13,
4706,
3461,
29889,
23850,
29898,
273,
290,
284,
583,
29897,
13,
13,
4706,
285,
353,
1722,
29898,
28926,
29892,
376,
29893,
1159,
13,
4706,
1018,
29901,
13,
9651,
285,
29889,
3539,
29898,
1311,
17255,
3134,
14526,
29889,
3332,
276,
4349,
3134,
29898,
12860,
543,
1678,
9162,
8025,
543,
10496,
29899,
29947,
5783,
13,
4706,
7146,
29901,
13,
9651,
285,
29889,
5358,
580,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
13,
1678,
3758,
29918,
1177,
29967,
29923,
9838,
353,
376,
10520,
512,
6929,
29908,
13,
1678,
24080,
29918,
29950,
9468,
29931,
4214,
353,
376,
2283,
5166,
1847,
29908,
13,
1678,
1060,
1799,
353,
376,
29907,
2124,
10781,
14415,
292,
29908,
13,
1678,
315,
2241,
29943,
353,
376,
29907,
2241,
29943,
512,
6929,
29908,
13,
1678,
8528,
11206,
353,
376,
5261,
4167,
8225,
29908,
13,
13,
1678,
1018,
29901,
13,
4706,
4903,
15462,
353,
6560,
13020,
21575,
580,
13,
4706,
4903,
15462,
29889,
1202,
29963,
352,
1089,
3097,
1542,
29898,
4176,
29918,
1177,
29967,
29923,
9838,
29897,
13,
4706,
4903,
15462,
29889,
1202,
29963,
352,
1089,
3097,
1542,
29898,
7724,
29918,
29950,
9468,
29931,
4214,
29897,
13,
4706,
4903,
15462,
29889,
1202,
29963,
352,
1089,
3097,
1542,
29898,
29990,
1799,
29897,
13,
4706,
4903,
15462,
29889,
1202,
29963,
352,
1089,
3097,
1542,
29898,
29907,
2241,
29943,
29897,
13,
4706,
4903,
15462,
29889,
1202,
29963,
352,
1089,
3097,
1542,
29898,
5746,
11206,
29897,
13,
4706,
4903,
15462,
29889,
1188,
29963,
352,
1089,
3097,
703,
4176,
512,
4099,
428,
613,
376,
29896,
613,
376,
2271,
29896,
613,
376,
15501,
29896,
613,
376,
3888,
29896,
1159,
13,
4706,
4903,
15462,
29889,
1188,
29963,
352,
1089,
3097,
703,
4176,
512,
4099,
428,
613,
376,
29906,
613,
376,
2271,
29906,
613,
376,
15501,
29906,
613,
376,
3888,
29906,
1159,
13,
4706,
4903,
15462,
29889,
1188,
29963,
352,
1089,
3097,
703,
4176,
512,
4099,
428,
613,
376,
29906,
613,
376,
2271,
29941,
613,
376,
15501,
29941,
613,
376,
3888,
29941,
1159,
13,
4706,
4903,
15462,
29889,
1188,
29963,
352,
1089,
3097,
703,
4176,
512,
4099,
428,
613,
376,
29941,
613,
376,
2271,
29946,
613,
376,
15501,
29946,
613,
376,
3888,
29946,
1159,
13,
4706,
4903,
15462,
29889,
1188,
29963,
352,
1089,
3097,
703,
29907,
2124,
10781,
14415,
292,
613,
376,
29941,
613,
376,
2271,
29945,
613,
376,
15501,
29945,
613,
376,
3888,
29945,
1159,
13,
4706,
4903,
15462,
29889,
1188,
29963,
352,
1089,
3097,
703,
29907,
2124,
10781,
14415,
292,
613,
376,
29941,
613,
376,
2271,
29953,
613,
376,
15501,
29953,
613,
376,
3888,
29953,
1159,
13,
4706,
4903,
15462,
29889,
1188,
29963,
352,
1089,
3097,
703,
29907,
2124,
10781,
14415,
292,
613,
376,
29906,
613,
376,
2271,
29955,
613,
376,
15501,
29955,
613,
376,
3888,
29955,
1159,
13,
4706,
4903,
15462,
29889,
1188,
29963,
352,
1089,
3097,
703,
29907,
2124,
10781,
14415,
292,
613,
376,
29896,
613,
376,
2271,
29947,
613,
376,
15501,
29947,
613,
376,
3888,
29947,
1159,
13,
4706,
4903,
15462,
29889,
1188,
29963,
352,
1089,
3097,
703,
14207,
379,
547,
292,
613,
376,
29906,
613,
376,
2271,
29929,
613,
376,
15501,
29929,
613,
376,
3888,
29929,
1159,
13,
4706,
4903,
15462,
29889,
2158,
1762,
2283,
703,
11249,
13020,
29889,
3134,
1159,
13,
1678,
5174,
2184,
24365,
29901,
13,
4706,
1209,
13,
2
] |
rpython/translator/jvm/test/test_unicode.py | kantai/passe-pypy-taint-tracking | 2 | 162321 | <reponame>kantai/passe-pypy-taint-tracking
import py
from rpython.translator.jvm.test.runtest import JvmTest
from rpython.rtyper.test.test_runicode import BaseTestRUnicode
# ====> ../../../rpython/test/test_runicode.py
class TestJvmUnicode(JvmTest, BaseTestRUnicode):
EMPTY_STRING_HASH = 0
def test_unichar_const(self):
def fn():
return u'\u03b1'
assert self.interpret(fn, []) == u'\u03b1'
def test_unichar_eq(self):
py.test.skip("JVM doesn't support unicode for command line arguments")
test_unichar_ord = test_unichar_eq
test_unichar_hash = test_unichar_eq
test_char_unichar_eq = test_unichar_eq
test_char_unichar_eq_2 = test_unichar_eq
def test_getitem_exc(self):
py.test.skip('fixme!')
def test_unicode_constant(self):
const = u''.join(map(unichr, range(0, 256)))
const = const + u'\ufffd'
def fn():
return const
res = self.interpret(fn, [])
assert res == const
def test_strformat_unicode_arg(self):
py.test.skip('fixme!')
| [
1,
529,
276,
1112,
420,
29958,
29895,
424,
1794,
29914,
29886,
5793,
29899,
29886,
1478,
29891,
29899,
29873,
2365,
29899,
11294,
292,
13,
5215,
11451,
13,
3166,
364,
4691,
29889,
3286,
29880,
1061,
29889,
29926,
6925,
29889,
1688,
29889,
29878,
1657,
342,
1053,
435,
6925,
3057,
13,
3166,
364,
4691,
29889,
29878,
1017,
546,
29889,
1688,
29889,
1688,
29918,
29878,
2523,
356,
1053,
7399,
3057,
29934,
2525,
12858,
13,
13,
29937,
1275,
1360,
29958,
29772,
21546,
29878,
4691,
29914,
1688,
29914,
1688,
29918,
29878,
2523,
356,
29889,
2272,
13,
13,
1990,
4321,
29967,
6925,
2525,
12858,
29898,
29967,
6925,
3057,
29892,
7399,
3057,
29934,
2525,
12858,
1125,
13,
13,
1678,
382,
3580,
15631,
29918,
20785,
29918,
29950,
24943,
353,
29871,
29900,
13,
13,
1678,
822,
1243,
29918,
348,
436,
279,
29918,
3075,
29898,
1311,
1125,
13,
4706,
822,
7876,
7295,
13,
9651,
736,
318,
12764,
29884,
29900,
29941,
29890,
29896,
29915,
13,
4706,
4974,
1583,
29889,
1639,
19819,
29898,
9144,
29892,
518,
2314,
1275,
318,
12764,
29884,
29900,
29941,
29890,
29896,
29915,
13,
13,
1678,
822,
1243,
29918,
348,
436,
279,
29918,
1837,
29898,
1311,
1125,
13,
4706,
11451,
29889,
1688,
29889,
11014,
703,
29967,
9219,
1838,
29915,
29873,
2304,
29104,
363,
1899,
1196,
6273,
1159,
13,
1678,
1243,
29918,
348,
436,
279,
29918,
536,
353,
1243,
29918,
348,
436,
279,
29918,
1837,
13,
1678,
1243,
29918,
348,
436,
279,
29918,
8568,
353,
1243,
29918,
348,
436,
279,
29918,
1837,
13,
1678,
1243,
29918,
3090,
29918,
348,
436,
279,
29918,
1837,
353,
1243,
29918,
348,
436,
279,
29918,
1837,
13,
1678,
1243,
29918,
3090,
29918,
348,
436,
279,
29918,
1837,
29918,
29906,
353,
1243,
29918,
348,
436,
279,
29918,
1837,
13,
13,
1678,
822,
1243,
29918,
657,
667,
29918,
735,
29883,
29898,
1311,
1125,
13,
4706,
11451,
29889,
1688,
29889,
11014,
877,
5878,
1004,
29991,
1495,
13,
13,
1678,
822,
1243,
29918,
2523,
356,
29918,
23362,
29898,
1311,
1125,
13,
4706,
1040,
353,
318,
29915,
4286,
7122,
29898,
1958,
29898,
348,
436,
29878,
29892,
3464,
29898,
29900,
29892,
29871,
29906,
29945,
29953,
4961,
13,
4706,
1040,
353,
1040,
718,
318,
12764,
3096,
11512,
29915,
13,
4706,
822,
7876,
7295,
13,
9651,
736,
1040,
13,
4706,
620,
353,
1583,
29889,
1639,
19819,
29898,
9144,
29892,
518,
2314,
13,
4706,
4974,
620,
1275,
1040,
13,
13,
1678,
822,
1243,
29918,
710,
4830,
29918,
2523,
356,
29918,
1191,
29898,
1311,
1125,
13,
4706,
11451,
29889,
1688,
29889,
11014,
877,
5878,
1004,
29991,
1495,
13,
2
] |
ros/devel/lib/python2.7/dist-packages/darknet_ros_msgs/msg/_CheckForObjectsAction.py | wutianze/ComP | 3 | 34043 | <gh_stars>1-10
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from darknet_ros_msgs/CheckForObjectsAction.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import darknet_ros_msgs.msg
import sensor_msgs.msg
import genpy
import actionlib_msgs.msg
import std_msgs.msg
class CheckForObjectsAction(genpy.Message):
_md5sum = "98095af4078a4c5df88f8e6a4db52e32"
_type = "darknet_ros_msgs/CheckForObjectsAction"
_has_header = False #flag to mark the presence of a Header object
_full_text = """# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
CheckForObjectsActionGoal action_goal
CheckForObjectsActionResult action_result
CheckForObjectsActionFeedback action_feedback
================================================================================
MSG: darknet_ros_msgs/CheckForObjectsActionGoal
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
Header header
actionlib_msgs/GoalID goal_id
CheckForObjectsGoal goal
================================================================================
MSG: std_msgs/Header
# Standard metadata for higher-level stamped data types.
# This is generally used to communicate timestamped data
# in a particular coordinate frame.
#
# sequence ID: consecutively increasing ID
uint32 seq
#Two-integer timestamp that is expressed as:
# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')
# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')
# time-handling sugar is provided by the client library
time stamp
#Frame this data is associated with
string frame_id
================================================================================
MSG: actionlib_msgs/GoalID
# The stamp should store the time at which this goal was requested.
# It is used by an action server when it tries to preempt all
# goals that were requested before a certain time
time stamp
# The id provides a way to associate feedback and
# result message with specific goal requests. The id
# specified must be unique.
string id
================================================================================
MSG: darknet_ros_msgs/CheckForObjectsGoal
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
# Check if objects in image
# Goal definition
int16 id
sensor_msgs/Image image
================================================================================
MSG: sensor_msgs/Image
# This message contains an uncompressed image
# (0, 0) is at top-left corner of image
#
Header header # Header timestamp should be acquisition time of image
# Header frame_id should be optical frame of camera
# origin of frame should be optical center of camera
# +x should point to the right in the image
# +y should point down in the image
# +z should point into to plane of the image
# If the frame_id here and the frame_id of the CameraInfo
# message associated with the image conflict
# the behavior is undefined
uint32 height # image height, that is, number of rows
uint32 width # image width, that is, number of columns
# The legal values for encoding are in file src/image_encodings.cpp
# If you want to standardize a new string format, join
# <EMAIL> and send an email proposing a new encoding.
string encoding # Encoding of pixels -- channel meaning, ordering, size
# taken from the list of strings in include/sensor_msgs/image_encodings.h
uint8 is_bigendian # is this data bigendian?
uint32 step # Full row length in bytes
uint8[] data # actual matrix data, size is (step * rows)
================================================================================
MSG: darknet_ros_msgs/CheckForObjectsActionResult
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
Header header
actionlib_msgs/GoalStatus status
CheckForObjectsResult result
================================================================================
MSG: actionlib_msgs/GoalStatus
GoalID goal_id
uint8 status
uint8 PENDING = 0 # The goal has yet to be processed by the action server
uint8 ACTIVE = 1 # The goal is currently being processed by the action server
uint8 PREEMPTED = 2 # The goal received a cancel request after it started executing
# and has since completed its execution (Terminal State)
uint8 SUCCEEDED = 3 # The goal was achieved successfully by the action server (Terminal State)
uint8 ABORTED = 4 # The goal was aborted during execution by the action server due
# to some failure (Terminal State)
uint8 REJECTED = 5 # The goal was rejected by the action server without being processed,
# because the goal was unattainable or invalid (Terminal State)
uint8 PREEMPTING = 6 # The goal received a cancel request after it started executing
# and has not yet completed execution
uint8 RECALLING = 7 # The goal received a cancel request before it started executing,
# but the action server has not yet confirmed that the goal is canceled
uint8 RECALLED = 8 # The goal received a cancel request before it started executing
# and was successfully cancelled (Terminal State)
uint8 LOST = 9 # An action client can determine that a goal is LOST. This should not be
# sent over the wire by an action server
#Allow for the user to associate a string with GoalStatus for debugging
string text
================================================================================
MSG: darknet_ros_msgs/CheckForObjectsResult
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
# Result definition
int16 id
darknet_ros_msgs/BoundingBoxes bounding_boxes
================================================================================
MSG: darknet_ros_msgs/BoundingBoxes
Header header
Header image_header
BoundingBox[] bounding_boxes
================================================================================
MSG: darknet_ros_msgs/BoundingBox
float64 probability
int64 xmin
int64 ymin
int64 xmax
int64 ymax
int16 id
string Class
================================================================================
MSG: darknet_ros_msgs/CheckForObjectsActionFeedback
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
Header header
actionlib_msgs/GoalStatus status
CheckForObjectsFeedback feedback
================================================================================
MSG: darknet_ros_msgs/CheckForObjectsFeedback
# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======
# Feedback definition
"""
__slots__ = ['action_goal','action_result','action_feedback']
_slot_types = ['darknet_ros_msgs/CheckForObjectsActionGoal','darknet_ros_msgs/CheckForObjectsActionResult','darknet_ros_msgs/CheckForObjectsActionFeedback']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
action_goal,action_result,action_feedback
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(CheckForObjectsAction, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.action_goal is None:
self.action_goal = darknet_ros_msgs.msg.CheckForObjectsActionGoal()
if self.action_result is None:
self.action_result = darknet_ros_msgs.msg.CheckForObjectsActionResult()
if self.action_feedback is None:
self.action_feedback = darknet_ros_msgs.msg.CheckForObjectsActionFeedback()
else:
self.action_goal = darknet_ros_msgs.msg.CheckForObjectsActionGoal()
self.action_result = darknet_ros_msgs.msg.CheckForObjectsActionResult()
self.action_feedback = darknet_ros_msgs.msg.CheckForObjectsActionFeedback()
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
_x = self
buff.write(_get_struct_3I().pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
_x = self.action_goal.header.frame_id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_2I().pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
_x = self.action_goal.goal_id.id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_h3I().pack(_x.action_goal.goal.id, _x.action_goal.goal.image.header.seq, _x.action_goal.goal.image.header.stamp.secs, _x.action_goal.goal.image.header.stamp.nsecs))
_x = self.action_goal.goal.image.header.frame_id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_2I().pack(_x.action_goal.goal.image.height, _x.action_goal.goal.image.width))
_x = self.action_goal.goal.image.encoding
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_BI().pack(_x.action_goal.goal.image.is_bigendian, _x.action_goal.goal.image.step))
_x = self.action_goal.goal.image.data
length = len(_x)
# - if encoded as a list instead, serialize as bytes instead of string
if type(_x) in [list, tuple]:
buff.write(struct.pack('<I%sB'%length, length, *_x))
else:
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_3I().pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
_x = self.action_result.header.frame_id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_2I().pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
_x = self.action_result.status.goal_id.id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
buff.write(_get_struct_B().pack(self.action_result.status.status))
_x = self.action_result.status.text
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_h3I().pack(_x.action_result.result.id, _x.action_result.result.bounding_boxes.header.seq, _x.action_result.result.bounding_boxes.header.stamp.secs, _x.action_result.result.bounding_boxes.header.stamp.nsecs))
_x = self.action_result.result.bounding_boxes.header.frame_id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_3I().pack(_x.action_result.result.bounding_boxes.image_header.seq, _x.action_result.result.bounding_boxes.image_header.stamp.secs, _x.action_result.result.bounding_boxes.image_header.stamp.nsecs))
_x = self.action_result.result.bounding_boxes.image_header.frame_id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
length = len(self.action_result.result.bounding_boxes.bounding_boxes)
buff.write(_struct_I.pack(length))
for val1 in self.action_result.result.bounding_boxes.bounding_boxes:
_x = val1
buff.write(_get_struct_d4qh().pack(_x.probability, _x.xmin, _x.ymin, _x.xmax, _x.ymax, _x.id))
_x = val1.Class
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_3I().pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
_x = self.action_feedback.header.frame_id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_2I().pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
_x = self.action_feedback.status.goal_id.id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
buff.write(_get_struct_B().pack(self.action_feedback.status.status))
_x = self.action_feedback.status.text
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
if self.action_goal is None:
self.action_goal = darknet_ros_msgs.msg.CheckForObjectsActionGoal()
if self.action_result is None:
self.action_result = darknet_ros_msgs.msg.CheckForObjectsActionResult()
if self.action_feedback is None:
self.action_feedback = darknet_ros_msgs.msg.CheckForObjectsActionFeedback()
end = 0
_x = self
start = end
end += 12
(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_goal.header.frame_id = str[start:end].decode('utf-8')
else:
self.action_goal.header.frame_id = str[start:end]
_x = self
start = end
end += 8
(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _get_struct_2I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_goal.goal_id.id = str[start:end].decode('utf-8')
else:
self.action_goal.goal_id.id = str[start:end]
_x = self
start = end
end += 14
(_x.action_goal.goal.id, _x.action_goal.goal.image.header.seq, _x.action_goal.goal.image.header.stamp.secs, _x.action_goal.goal.image.header.stamp.nsecs,) = _get_struct_h3I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_goal.goal.image.header.frame_id = str[start:end].decode('utf-8')
else:
self.action_goal.goal.image.header.frame_id = str[start:end]
_x = self
start = end
end += 8
(_x.action_goal.goal.image.height, _x.action_goal.goal.image.width,) = _get_struct_2I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_goal.goal.image.encoding = str[start:end].decode('utf-8')
else:
self.action_goal.goal.image.encoding = str[start:end]
_x = self
start = end
end += 5
(_x.action_goal.goal.image.is_bigendian, _x.action_goal.goal.image.step,) = _get_struct_BI().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
self.action_goal.goal.image.data = str[start:end]
_x = self
start = end
end += 12
(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_result.header.frame_id = str[start:end].decode('utf-8')
else:
self.action_result.header.frame_id = str[start:end]
_x = self
start = end
end += 8
(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _get_struct_2I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
else:
self.action_result.status.goal_id.id = str[start:end]
start = end
end += 1
(self.action_result.status.status,) = _get_struct_B().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_result.status.text = str[start:end].decode('utf-8')
else:
self.action_result.status.text = str[start:end]
_x = self
start = end
end += 14
(_x.action_result.result.id, _x.action_result.result.bounding_boxes.header.seq, _x.action_result.result.bounding_boxes.header.stamp.secs, _x.action_result.result.bounding_boxes.header.stamp.nsecs,) = _get_struct_h3I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_result.result.bounding_boxes.header.frame_id = str[start:end].decode('utf-8')
else:
self.action_result.result.bounding_boxes.header.frame_id = str[start:end]
_x = self
start = end
end += 12
(_x.action_result.result.bounding_boxes.image_header.seq, _x.action_result.result.bounding_boxes.image_header.stamp.secs, _x.action_result.result.bounding_boxes.image_header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_result.result.bounding_boxes.image_header.frame_id = str[start:end].decode('utf-8')
else:
self.action_result.result.bounding_boxes.image_header.frame_id = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.action_result.result.bounding_boxes.bounding_boxes = []
for i in range(0, length):
val1 = darknet_ros_msgs.msg.BoundingBox()
_x = val1
start = end
end += 42
(_x.probability, _x.xmin, _x.ymin, _x.xmax, _x.ymax, _x.id,) = _get_struct_d4qh().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val1.Class = str[start:end].decode('utf-8')
else:
val1.Class = str[start:end]
self.action_result.result.bounding_boxes.bounding_boxes.append(val1)
_x = self
start = end
end += 12
(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
else:
self.action_feedback.header.frame_id = str[start:end]
_x = self
start = end
end += 8
(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _get_struct_2I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
else:
self.action_feedback.status.goal_id.id = str[start:end]
start = end
end += 1
(self.action_feedback.status.status,) = _get_struct_B().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_feedback.status.text = str[start:end].decode('utf-8')
else:
self.action_feedback.status.text = str[start:end]
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
_x = self
buff.write(_get_struct_3I().pack(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs))
_x = self.action_goal.header.frame_id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_2I().pack(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs))
_x = self.action_goal.goal_id.id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_h3I().pack(_x.action_goal.goal.id, _x.action_goal.goal.image.header.seq, _x.action_goal.goal.image.header.stamp.secs, _x.action_goal.goal.image.header.stamp.nsecs))
_x = self.action_goal.goal.image.header.frame_id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_2I().pack(_x.action_goal.goal.image.height, _x.action_goal.goal.image.width))
_x = self.action_goal.goal.image.encoding
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_BI().pack(_x.action_goal.goal.image.is_bigendian, _x.action_goal.goal.image.step))
_x = self.action_goal.goal.image.data
length = len(_x)
# - if encoded as a list instead, serialize as bytes instead of string
if type(_x) in [list, tuple]:
buff.write(struct.pack('<I%sB'%length, length, *_x))
else:
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_3I().pack(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs))
_x = self.action_result.header.frame_id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_2I().pack(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs))
_x = self.action_result.status.goal_id.id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
buff.write(_get_struct_B().pack(self.action_result.status.status))
_x = self.action_result.status.text
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_h3I().pack(_x.action_result.result.id, _x.action_result.result.bounding_boxes.header.seq, _x.action_result.result.bounding_boxes.header.stamp.secs, _x.action_result.result.bounding_boxes.header.stamp.nsecs))
_x = self.action_result.result.bounding_boxes.header.frame_id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_3I().pack(_x.action_result.result.bounding_boxes.image_header.seq, _x.action_result.result.bounding_boxes.image_header.stamp.secs, _x.action_result.result.bounding_boxes.image_header.stamp.nsecs))
_x = self.action_result.result.bounding_boxes.image_header.frame_id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
length = len(self.action_result.result.bounding_boxes.bounding_boxes)
buff.write(_struct_I.pack(length))
for val1 in self.action_result.result.bounding_boxes.bounding_boxes:
_x = val1
buff.write(_get_struct_d4qh().pack(_x.probability, _x.xmin, _x.ymin, _x.xmax, _x.ymax, _x.id))
_x = val1.Class
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_3I().pack(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs))
_x = self.action_feedback.header.frame_id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_2I().pack(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs))
_x = self.action_feedback.status.goal_id.id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
buff.write(_get_struct_B().pack(self.action_feedback.status.status))
_x = self.action_feedback.status.text
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
if self.action_goal is None:
self.action_goal = darknet_ros_msgs.msg.CheckForObjectsActionGoal()
if self.action_result is None:
self.action_result = darknet_ros_msgs.msg.CheckForObjectsActionResult()
if self.action_feedback is None:
self.action_feedback = darknet_ros_msgs.msg.CheckForObjectsActionFeedback()
end = 0
_x = self
start = end
end += 12
(_x.action_goal.header.seq, _x.action_goal.header.stamp.secs, _x.action_goal.header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_goal.header.frame_id = str[start:end].decode('utf-8')
else:
self.action_goal.header.frame_id = str[start:end]
_x = self
start = end
end += 8
(_x.action_goal.goal_id.stamp.secs, _x.action_goal.goal_id.stamp.nsecs,) = _get_struct_2I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_goal.goal_id.id = str[start:end].decode('utf-8')
else:
self.action_goal.goal_id.id = str[start:end]
_x = self
start = end
end += 14
(_x.action_goal.goal.id, _x.action_goal.goal.image.header.seq, _x.action_goal.goal.image.header.stamp.secs, _x.action_goal.goal.image.header.stamp.nsecs,) = _get_struct_h3I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_goal.goal.image.header.frame_id = str[start:end].decode('utf-8')
else:
self.action_goal.goal.image.header.frame_id = str[start:end]
_x = self
start = end
end += 8
(_x.action_goal.goal.image.height, _x.action_goal.goal.image.width,) = _get_struct_2I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_goal.goal.image.encoding = str[start:end].decode('utf-8')
else:
self.action_goal.goal.image.encoding = str[start:end]
_x = self
start = end
end += 5
(_x.action_goal.goal.image.is_bigendian, _x.action_goal.goal.image.step,) = _get_struct_BI().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
self.action_goal.goal.image.data = str[start:end]
_x = self
start = end
end += 12
(_x.action_result.header.seq, _x.action_result.header.stamp.secs, _x.action_result.header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_result.header.frame_id = str[start:end].decode('utf-8')
else:
self.action_result.header.frame_id = str[start:end]
_x = self
start = end
end += 8
(_x.action_result.status.goal_id.stamp.secs, _x.action_result.status.goal_id.stamp.nsecs,) = _get_struct_2I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_result.status.goal_id.id = str[start:end].decode('utf-8')
else:
self.action_result.status.goal_id.id = str[start:end]
start = end
end += 1
(self.action_result.status.status,) = _get_struct_B().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_result.status.text = str[start:end].decode('utf-8')
else:
self.action_result.status.text = str[start:end]
_x = self
start = end
end += 14
(_x.action_result.result.id, _x.action_result.result.bounding_boxes.header.seq, _x.action_result.result.bounding_boxes.header.stamp.secs, _x.action_result.result.bounding_boxes.header.stamp.nsecs,) = _get_struct_h3I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_result.result.bounding_boxes.header.frame_id = str[start:end].decode('utf-8')
else:
self.action_result.result.bounding_boxes.header.frame_id = str[start:end]
_x = self
start = end
end += 12
(_x.action_result.result.bounding_boxes.image_header.seq, _x.action_result.result.bounding_boxes.image_header.stamp.secs, _x.action_result.result.bounding_boxes.image_header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_result.result.bounding_boxes.image_header.frame_id = str[start:end].decode('utf-8')
else:
self.action_result.result.bounding_boxes.image_header.frame_id = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.action_result.result.bounding_boxes.bounding_boxes = []
for i in range(0, length):
val1 = darknet_ros_msgs.msg.BoundingBox()
_x = val1
start = end
end += 42
(_x.probability, _x.xmin, _x.ymin, _x.xmax, _x.ymax, _x.id,) = _get_struct_d4qh().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val1.Class = str[start:end].decode('utf-8')
else:
val1.Class = str[start:end]
self.action_result.result.bounding_boxes.bounding_boxes.append(val1)
_x = self
start = end
end += 12
(_x.action_feedback.header.seq, _x.action_feedback.header.stamp.secs, _x.action_feedback.header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_feedback.header.frame_id = str[start:end].decode('utf-8')
else:
self.action_feedback.header.frame_id = str[start:end]
_x = self
start = end
end += 8
(_x.action_feedback.status.goal_id.stamp.secs, _x.action_feedback.status.goal_id.stamp.nsecs,) = _get_struct_2I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_feedback.status.goal_id.id = str[start:end].decode('utf-8')
else:
self.action_feedback.status.goal_id.id = str[start:end]
start = end
end += 1
(self.action_feedback.status.status,) = _get_struct_B().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.action_feedback.status.text = str[start:end].decode('utf-8')
else:
self.action_feedback.status.text = str[start:end]
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_B = None
def _get_struct_B():
global _struct_B
if _struct_B is None:
_struct_B = struct.Struct("<B")
return _struct_B
_struct_d4qh = None
def _get_struct_d4qh():
global _struct_d4qh
if _struct_d4qh is None:
_struct_d4qh = struct.Struct("<d4qh")
return _struct_d4qh
_struct_h3I = None
def _get_struct_h3I():
global _struct_h3I
if _struct_h3I is None:
_struct_h3I = struct.Struct("<h3I")
return _struct_h3I
_struct_BI = None
def _get_struct_BI():
global _struct_BI
if _struct_BI is None:
_struct_BI = struct.Struct("<BI")
return _struct_BI
_struct_3I = None
def _get_struct_3I():
global _struct_3I
if _struct_3I is None:
_struct_3I = struct.Struct("<3I")
return _struct_3I
_struct_2I = None
def _get_struct_2I():
global _struct_2I
if _struct_2I is None:
_struct_2I = struct.Struct("<2I")
return _struct_2I
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
910,
5132,
934,
3913,
278,
1494,
8025,
29901,
23616,
29899,
29947,
13,
15945,
29908,
1300,
468,
759,
630,
491,
2531,
2272,
515,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29914,
5596,
2831,
12724,
4276,
29889,
7645,
29889,
1938,
451,
3863,
1213,
15945,
13,
5215,
10876,
13,
4691,
29941,
353,
5852,
565,
10876,
29889,
20970,
3259,
1405,
29871,
29900,
29916,
29900,
29941,
29900,
29900,
29900,
29900,
29900,
29900,
1683,
7700,
13,
5215,
2531,
2272,
13,
5215,
2281,
13,
13,
5215,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29889,
7645,
13,
5215,
23530,
29918,
1516,
3174,
29889,
7645,
13,
5215,
2531,
2272,
13,
5215,
3158,
1982,
29918,
1516,
3174,
29889,
7645,
13,
5215,
3659,
29918,
1516,
3174,
29889,
7645,
13,
13,
1990,
5399,
2831,
12724,
4276,
29898,
1885,
2272,
29889,
3728,
1125,
13,
29871,
903,
3487,
29945,
2083,
353,
376,
29929,
29947,
29900,
29929,
29945,
2142,
29946,
29900,
29955,
29947,
29874,
29946,
29883,
29945,
2176,
29947,
29947,
29888,
29947,
29872,
29953,
29874,
29946,
2585,
29945,
29906,
29872,
29941,
29906,
29908,
13,
29871,
903,
1853,
353,
376,
26031,
1212,
29918,
1883,
29918,
1516,
3174,
29914,
5596,
2831,
12724,
4276,
29908,
13,
29871,
903,
5349,
29918,
6672,
353,
7700,
396,
15581,
304,
2791,
278,
10122,
310,
263,
19345,
1203,
13,
29871,
903,
8159,
29918,
726,
353,
9995,
29937,
1275,
2751,
11662,
6058,
16999,
4571,
29943,
29979,
29991,
26524,
29949,
24647,
1001,
3040,
29928,
3895,
13764,
319,
9838,
5012,
29943,
1177,
22122,
1275,
2751,
13,
13,
5596,
2831,
12724,
4276,
8120,
284,
3158,
29918,
28111,
13,
5596,
2831,
12724,
4276,
3591,
3158,
29918,
2914,
13,
5596,
2831,
12724,
4276,
29737,
1627,
3158,
29918,
18798,
1627,
13,
13,
9166,
9166,
9166,
9166,
9166,
13,
4345,
29954,
29901,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29914,
5596,
2831,
12724,
4276,
8120,
284,
13,
29937,
1275,
2751,
11662,
6058,
16999,
4571,
29943,
29979,
29991,
26524,
29949,
24647,
1001,
3040,
29928,
3895,
13764,
319,
9838,
5012,
29943,
1177,
22122,
1275,
2751,
13,
13,
7850,
4839,
13,
2467,
1982,
29918,
1516,
3174,
29914,
8120,
284,
1367,
7306,
29918,
333,
13,
5596,
2831,
12724,
8120,
284,
7306,
13,
13,
9166,
9166,
9166,
9166,
9166,
13,
4345,
29954,
29901,
3659,
29918,
1516,
3174,
29914,
7850,
13,
29937,
10117,
15562,
363,
6133,
29899,
5563,
25214,
287,
848,
4072,
29889,
13,
29937,
910,
338,
6892,
1304,
304,
23120,
14334,
287,
848,
29871,
13,
29937,
297,
263,
3153,
14821,
3515,
29889,
13,
29937,
29871,
13,
29937,
5665,
3553,
29901,
11888,
329,
3598,
10231,
3553,
29871,
13,
13470,
29941,
29906,
19359,
13,
29937,
13985,
29899,
16031,
14334,
393,
338,
13384,
408,
29901,
13,
29937,
334,
25214,
29889,
3471,
29901,
6923,
313,
303,
1160,
29918,
344,
2395,
29897,
1951,
21502,
305,
313,
262,
5132,
278,
2286,
338,
2000,
525,
344,
2395,
1495,
13,
29937,
334,
25214,
29889,
29876,
3471,
29901,
23432,
852,
1116,
29879,
1951,
25214,
29918,
344,
2395,
313,
262,
5132,
278,
2286,
338,
2000,
525,
29876,
344,
2395,
1495,
13,
29937,
931,
29899,
3179,
1847,
26438,
338,
4944,
491,
278,
3132,
3489,
13,
2230,
25214,
13,
29937,
4308,
445,
848,
338,
6942,
411,
13,
1807,
3515,
29918,
333,
13,
13,
9166,
9166,
9166,
9166,
9166,
13,
4345,
29954,
29901,
3158,
1982,
29918,
1516,
3174,
29914,
8120,
284,
1367,
13,
29937,
450,
25214,
881,
3787,
278,
931,
472,
607,
445,
7306,
471,
13877,
29889,
13,
29937,
739,
338,
1304,
491,
385,
3158,
1923,
746,
372,
14335,
304,
758,
3456,
599,
13,
29937,
14433,
393,
892,
13877,
1434,
263,
3058,
931,
13,
2230,
25214,
13,
13,
29937,
450,
1178,
8128,
263,
982,
304,
25836,
16705,
322,
13,
29937,
1121,
2643,
411,
2702,
7306,
7274,
29889,
450,
1178,
13,
29937,
6790,
1818,
367,
5412,
29889,
13,
1807,
1178,
13,
13,
13,
9166,
9166,
9166,
9166,
9166,
13,
4345,
29954,
29901,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29914,
5596,
2831,
12724,
8120,
284,
13,
29937,
1275,
2751,
11662,
6058,
16999,
4571,
29943,
29979,
29991,
26524,
29949,
24647,
1001,
3040,
29928,
3895,
13764,
319,
9838,
5012,
29943,
1177,
22122,
1275,
2751,
13,
29937,
5399,
565,
3618,
297,
1967,
13,
13,
29937,
2921,
284,
5023,
13,
524,
29896,
29953,
1178,
13,
29879,
6073,
29918,
1516,
3174,
29914,
2940,
1967,
13,
13,
13,
9166,
9166,
9166,
9166,
9166,
13,
4345,
29954,
29901,
23530,
29918,
1516,
3174,
29914,
2940,
13,
29937,
910,
2643,
3743,
385,
443,
510,
13120,
1967,
13,
29937,
313,
29900,
29892,
29871,
29900,
29897,
338,
472,
2246,
29899,
1563,
11155,
310,
1967,
13,
29937,
13,
13,
7850,
4839,
4706,
396,
19345,
14334,
881,
367,
1274,
23493,
931,
310,
1967,
13,
462,
268,
396,
19345,
3515,
29918,
333,
881,
367,
27070,
3515,
310,
10656,
13,
462,
268,
396,
3978,
310,
3515,
881,
367,
27070,
4818,
310,
10656,
13,
462,
268,
396,
718,
29916,
881,
1298,
304,
278,
1492,
297,
278,
1967,
13,
462,
268,
396,
718,
29891,
881,
1298,
1623,
297,
278,
1967,
13,
462,
268,
396,
718,
29920,
881,
1298,
964,
304,
10694,
310,
278,
1967,
13,
462,
268,
396,
960,
278,
3515,
29918,
333,
1244,
322,
278,
3515,
29918,
333,
310,
278,
24321,
3401,
13,
462,
268,
396,
2643,
6942,
411,
278,
1967,
14529,
13,
462,
268,
396,
278,
6030,
338,
7580,
13,
13,
13470,
29941,
29906,
3171,
308,
396,
1967,
3171,
29892,
393,
338,
29892,
1353,
310,
4206,
13,
13470,
29941,
29906,
2920,
3986,
396,
1967,
2920,
29892,
393,
338,
29892,
1353,
310,
4341,
13,
13,
29937,
450,
11706,
1819,
363,
8025,
526,
297,
934,
4765,
29914,
3027,
29918,
3977,
397,
886,
29889,
8223,
13,
29937,
960,
366,
864,
304,
3918,
675,
263,
716,
1347,
3402,
29892,
5988,
13,
29937,
529,
26862,
6227,
29958,
322,
3638,
385,
4876,
9551,
292,
263,
716,
8025,
29889,
13,
13,
1807,
8025,
539,
396,
11346,
3689,
310,
17036,
1192,
8242,
6593,
29892,
20520,
29892,
2159,
13,
462,
418,
396,
4586,
515,
278,
1051,
310,
6031,
297,
3160,
29914,
29879,
6073,
29918,
1516,
3174,
29914,
3027,
29918,
3977,
397,
886,
29889,
29882,
13,
13,
13470,
29947,
338,
29918,
3752,
355,
713,
1678,
396,
338,
445,
848,
4802,
355,
713,
29973,
13,
13470,
29941,
29906,
4331,
965,
396,
14846,
1948,
3309,
297,
6262,
13,
13470,
29947,
2636,
848,
3986,
396,
3935,
4636,
848,
29892,
2159,
338,
313,
10568,
334,
4206,
29897,
13,
13,
9166,
9166,
9166,
9166,
9166,
13,
4345,
29954,
29901,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29914,
5596,
2831,
12724,
4276,
3591,
13,
29937,
1275,
2751,
11662,
6058,
16999,
4571,
29943,
29979,
29991,
26524,
29949,
24647,
1001,
3040,
29928,
3895,
13764,
319,
9838,
5012,
29943,
1177,
22122,
1275,
2751,
13,
13,
7850,
4839,
13,
2467,
1982,
29918,
1516,
3174,
29914,
8120,
284,
5709,
4660,
13,
5596,
2831,
12724,
3591,
1121,
13,
13,
9166,
9166,
9166,
9166,
9166,
13,
4345,
29954,
29901,
3158,
1982,
29918,
1516,
3174,
29914,
8120,
284,
5709,
13,
8120,
284,
1367,
7306,
29918,
333,
13,
13470,
29947,
4660,
13,
13470,
29947,
349,
11794,
4214,
308,
353,
29871,
29900,
259,
396,
450,
7306,
756,
3447,
304,
367,
19356,
491,
278,
3158,
1923,
13,
13470,
29947,
319,
1783,
18474,
3986,
353,
29871,
29896,
259,
396,
450,
7306,
338,
5279,
1641,
19356,
491,
278,
3158,
1923,
13,
13470,
29947,
349,
21661,
3580,
29911,
3352,
539,
353,
29871,
29906,
259,
396,
450,
7306,
4520,
263,
12611,
2009,
1156,
372,
4687,
14012,
13,
462,
9651,
396,
259,
322,
756,
1951,
8676,
967,
8225,
313,
14343,
979,
4306,
29897,
13,
13470,
29947,
20134,
4174,
17896,
2287,
29928,
539,
353,
29871,
29941,
259,
396,
450,
7306,
471,
14363,
8472,
491,
278,
3158,
1923,
313,
14343,
979,
4306,
29897,
13,
13470,
29947,
17571,
8476,
3352,
308,
353,
29871,
29946,
259,
396,
450,
7306,
471,
633,
18054,
2645,
8225,
491,
278,
3158,
1923,
2861,
13,
462,
9651,
396,
1678,
304,
777,
10672,
313,
14343,
979,
4306,
29897,
13,
13470,
29947,
5195,
17637,
3352,
4706,
353,
29871,
29945,
259,
396,
450,
7306,
471,
22225,
491,
278,
3158,
1923,
1728,
1641,
19356,
29892,
13,
462,
9651,
396,
1678,
1363,
278,
7306,
471,
443,
1131,
475,
519,
470,
8340,
313,
14343,
979,
4306,
29897,
13,
13470,
29947,
349,
21661,
3580,
29911,
4214,
418,
353,
29871,
29953,
259,
396,
450,
7306,
4520,
263,
12611,
2009,
1156,
372,
4687,
14012,
13,
462,
9651,
396,
1678,
322,
756,
451,
3447,
8676,
8225,
13,
13470,
29947,
5195,
29907,
9818,
4214,
539,
353,
29871,
29955,
259,
396,
450,
7306,
4520,
263,
12611,
2009,
1434,
372,
4687,
14012,
29892,
13,
462,
9651,
396,
1678,
541,
278,
3158,
1923,
756,
451,
3447,
16725,
393,
278,
7306,
338,
508,
346,
839,
13,
13470,
29947,
5195,
29907,
1964,
20566,
4706,
353,
29871,
29947,
259,
396,
450,
7306,
4520,
263,
12611,
2009,
1434,
372,
4687,
14012,
13,
462,
9651,
396,
1678,
322,
471,
8472,
12611,
839,
313,
14343,
979,
4306,
29897,
13,
13470,
29947,
365,
3718,
9651,
353,
29871,
29929,
259,
396,
530,
3158,
3132,
508,
8161,
393,
263,
7306,
338,
365,
3718,
29889,
910,
881,
451,
367,
13,
462,
9651,
396,
1678,
2665,
975,
278,
8014,
491,
385,
3158,
1923,
13,
13,
29937,
15930,
363,
278,
1404,
304,
25836,
263,
1347,
411,
2921,
284,
5709,
363,
13490,
13,
1807,
1426,
13,
13,
13,
9166,
9166,
9166,
9166,
9166,
13,
4345,
29954,
29901,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29914,
5596,
2831,
12724,
3591,
13,
29937,
1275,
2751,
11662,
6058,
16999,
4571,
29943,
29979,
29991,
26524,
29949,
24647,
1001,
3040,
29928,
3895,
13764,
319,
9838,
5012,
29943,
1177,
22122,
1275,
2751,
13,
29937,
7867,
5023,
13,
524,
29896,
29953,
1178,
13,
26031,
1212,
29918,
1883,
29918,
1516,
3174,
29914,
29933,
12449,
3313,
267,
3216,
292,
29918,
1884,
267,
13,
13,
13,
9166,
9166,
9166,
9166,
9166,
13,
4345,
29954,
29901,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29914,
29933,
12449,
3313,
267,
13,
7850,
4839,
13,
7850,
1967,
29918,
6672,
13,
29933,
12449,
3313,
2636,
3216,
292,
29918,
1884,
267,
13,
13,
9166,
9166,
9166,
9166,
9166,
13,
4345,
29954,
29901,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29914,
29933,
12449,
3313,
13,
7411,
29953,
29946,
6976,
13,
524,
29953,
29946,
921,
1195,
13,
524,
29953,
29946,
343,
1195,
13,
524,
29953,
29946,
921,
3317,
13,
524,
29953,
29946,
343,
3317,
13,
524,
29896,
29953,
1178,
13,
1807,
4134,
13,
13,
9166,
9166,
9166,
9166,
9166,
13,
4345,
29954,
29901,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29914,
5596,
2831,
12724,
4276,
29737,
1627,
13,
29937,
1275,
2751,
11662,
6058,
16999,
4571,
29943,
29979,
29991,
26524,
29949,
24647,
1001,
3040,
29928,
3895,
13764,
319,
9838,
5012,
29943,
1177,
22122,
1275,
2751,
13,
13,
7850,
4839,
13,
2467,
1982,
29918,
1516,
3174,
29914,
8120,
284,
5709,
4660,
13,
5596,
2831,
12724,
29737,
1627,
16705,
13,
13,
9166,
9166,
9166,
9166,
9166,
13,
4345,
29954,
29901,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29914,
5596,
2831,
12724,
29737,
1627,
13,
29937,
1275,
2751,
11662,
6058,
16999,
4571,
29943,
29979,
29991,
26524,
29949,
24647,
1001,
3040,
29928,
3895,
13764,
319,
9838,
5012,
29943,
1177,
22122,
1275,
2751,
13,
29937,
5169,
287,
1627,
5023,
13,
13,
15945,
29908,
13,
29871,
4770,
2536,
1862,
1649,
353,
6024,
2467,
29918,
28111,
3788,
2467,
29918,
2914,
3788,
2467,
29918,
18798,
1627,
2033,
13,
29871,
903,
2536,
327,
29918,
8768,
353,
6024,
26031,
1212,
29918,
1883,
29918,
1516,
3174,
29914,
5596,
2831,
12724,
4276,
8120,
284,
3788,
26031,
1212,
29918,
1883,
29918,
1516,
3174,
29914,
5596,
2831,
12724,
4276,
3591,
3788,
26031,
1212,
29918,
1883,
29918,
1516,
3174,
29914,
5596,
2831,
12724,
4276,
29737,
1627,
2033,
13,
13,
29871,
822,
4770,
2344,
12035,
1311,
29892,
334,
5085,
29892,
3579,
11022,
6289,
1125,
13,
1678,
9995,
13,
1678,
1281,
18769,
29889,
3139,
2643,
4235,
393,
526,
27063,
29914,
4548,
4019,
368,
13,
1678,
731,
304,
6213,
674,
367,
9859,
263,
2322,
995,
29889,
450,
6907,
13,
1678,
671,
338,
13553,
6273,
408,
445,
338,
901,
16424,
304,
5434,
2643,
13,
1678,
3620,
29889,
29871,
887,
2609,
6837,
297,
29899,
2098,
6273,
322,
13553,
6273,
29889,
13,
13,
1678,
450,
3625,
4235,
526,
29901,
13,
539,
3158,
29918,
28111,
29892,
2467,
29918,
2914,
29892,
2467,
29918,
18798,
1627,
13,
13,
1678,
584,
3207,
6389,
29901,
4866,
731,
310,
1746,
1819,
29892,
297,
869,
7645,
1797,
13,
1678,
584,
3207,
9049,
6289,
29901,
671,
13553,
6273,
6590,
304,
2643,
1746,
2983,
13,
1678,
304,
731,
2702,
4235,
29889,
13,
1678,
9995,
13,
1678,
565,
6389,
470,
9049,
6289,
29901,
13,
418,
2428,
29898,
5596,
2831,
12724,
4276,
29892,
1583,
467,
1649,
2344,
1649,
10456,
5085,
29892,
3579,
11022,
6289,
29897,
13,
418,
396,
4906,
4235,
2609,
367,
6213,
29892,
3566,
2322,
1819,
363,
1906,
393,
526,
13,
418,
565,
1583,
29889,
2467,
29918,
28111,
338,
6213,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
353,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29889,
7645,
29889,
5596,
2831,
12724,
4276,
8120,
284,
580,
13,
418,
565,
1583,
29889,
2467,
29918,
2914,
338,
6213,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
353,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29889,
7645,
29889,
5596,
2831,
12724,
4276,
3591,
580,
13,
418,
565,
1583,
29889,
2467,
29918,
18798,
1627,
338,
6213,
29901,
13,
4706,
1583,
29889,
2467,
29918,
18798,
1627,
353,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29889,
7645,
29889,
5596,
2831,
12724,
4276,
29737,
1627,
580,
13,
1678,
1683,
29901,
13,
418,
1583,
29889,
2467,
29918,
28111,
353,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29889,
7645,
29889,
5596,
2831,
12724,
4276,
8120,
284,
580,
13,
418,
1583,
29889,
2467,
29918,
2914,
353,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29889,
7645,
29889,
5596,
2831,
12724,
4276,
3591,
580,
13,
418,
1583,
29889,
2467,
29918,
18798,
1627,
353,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29889,
7645,
29889,
5596,
2831,
12724,
4276,
29737,
1627,
580,
13,
13,
29871,
822,
903,
657,
29918,
8768,
29898,
1311,
1125,
13,
1678,
9995,
13,
1678,
7463,
3450,
1158,
13,
1678,
9995,
13,
1678,
736,
1583,
3032,
2536,
327,
29918,
8768,
13,
13,
29871,
822,
28755,
29898,
1311,
29892,
20487,
1125,
13,
1678,
9995,
13,
1678,
28755,
2643,
964,
6835,
13,
1678,
584,
3207,
20487,
29901,
6835,
29892,
4954,
1231,
5971,
16159,
13,
1678,
9995,
13,
1678,
1018,
29901,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29941,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
2557,
29918,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29906,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29918,
333,
29889,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29882,
29941,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
333,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
2557,
29918,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29906,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
3545,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
2103,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
22331,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
12809,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
275,
29918,
3752,
355,
713,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
10568,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
1272,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
396,
448,
565,
18511,
408,
263,
1051,
2012,
29892,
28755,
408,
6262,
2012,
310,
1347,
13,
418,
565,
1134,
7373,
29916,
29897,
297,
518,
1761,
29892,
18761,
5387,
13,
4706,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
29879,
29933,
29915,
29995,
2848,
29892,
3309,
29892,
334,
29918,
29916,
876,
13,
418,
1683,
29901,
13,
4706,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29941,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
2557,
29918,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29906,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
28111,
29918,
333,
29889,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29933,
2141,
4058,
29898,
1311,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
4882,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
726,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29882,
29941,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
333,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
2557,
29918,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29941,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
2557,
29918,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
3309,
353,
7431,
29898,
1311,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
9917,
292,
29918,
1884,
267,
29897,
13,
418,
20487,
29889,
3539,
7373,
4984,
29918,
29902,
29889,
4058,
29898,
2848,
876,
13,
418,
363,
659,
29896,
297,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
9917,
292,
29918,
1884,
267,
29901,
13,
4706,
903,
29916,
353,
659,
29896,
13,
4706,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29881,
29946,
29939,
29882,
2141,
4058,
7373,
29916,
29889,
22795,
3097,
29892,
903,
29916,
29889,
29916,
1195,
29892,
903,
29916,
29889,
962,
262,
29892,
903,
29916,
29889,
29916,
3317,
29892,
903,
29916,
29889,
29891,
3317,
29892,
903,
29916,
29889,
333,
876,
13,
4706,
903,
29916,
353,
659,
29896,
29889,
2385,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
4706,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
3986,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
3986,
3309,
353,
7431,
7373,
29916,
29897,
13,
4706,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29941,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
2557,
29918,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29906,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
28111,
29918,
333,
29889,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29933,
2141,
4058,
29898,
1311,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
4882,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
726,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
1678,
5174,
2281,
29889,
2704,
408,
409,
29901,
1583,
3032,
3198,
29918,
8768,
29898,
4984,
29889,
2704,
11702,
29879,
29901,
14210,
29879,
29915,
746,
5007,
14210,
29879,
11838,
1273,
313,
1853,
29898,
344,
511,
851,
29898,
344,
511,
851,
29898,
2997,
29879,
2141,
657,
877,
29918,
29916,
742,
1583,
876,
4961,
13,
1678,
5174,
20948,
408,
734,
29901,
1583,
3032,
3198,
29918,
8768,
29898,
1917,
2392,
11702,
29879,
29901,
14210,
29879,
29915,
746,
5007,
14210,
29879,
11838,
1273,
313,
1853,
29898,
371,
511,
851,
29898,
371,
511,
851,
29898,
2997,
29879,
2141,
657,
877,
29918,
29916,
742,
1583,
876,
4961,
13,
13,
29871,
822,
16964,
6646,
29898,
1311,
29892,
851,
1125,
13,
1678,
9995,
13,
1678,
443,
4058,
7797,
1891,
2643,
297,
851,
964,
445,
2643,
2777,
13,
1678,
584,
3207,
851,
29901,
7023,
1409,
310,
7797,
1891,
2643,
29892,
4954,
710,
16159,
13,
1678,
9995,
13,
1678,
1018,
29901,
13,
418,
565,
1583,
29889,
2467,
29918,
28111,
338,
6213,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
353,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29889,
7645,
29889,
5596,
2831,
12724,
4276,
8120,
284,
580,
13,
418,
565,
1583,
29889,
2467,
29918,
2914,
338,
6213,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
353,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29889,
7645,
29889,
5596,
2831,
12724,
4276,
3591,
580,
13,
418,
565,
1583,
29889,
2467,
29918,
18798,
1627,
338,
6213,
29901,
13,
4706,
1583,
29889,
2467,
29918,
18798,
1627,
353,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29889,
7645,
29889,
5596,
2831,
12724,
4276,
29737,
1627,
580,
13,
418,
1095,
353,
29871,
29900,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29896,
29906,
13,
418,
9423,
29916,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29941,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29947,
13,
418,
9423,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29906,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29918,
333,
29889,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29918,
333,
29889,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29896,
29946,
13,
418,
9423,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
333,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29882,
29941,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29947,
13,
418,
9423,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
3545,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
2103,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29906,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
22331,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
22331,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29945,
13,
418,
9423,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
275,
29918,
3752,
355,
713,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
10568,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
12809,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
1272,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29896,
29906,
13,
418,
9423,
29916,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29941,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29947,
13,
418,
9423,
29916,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29906,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
28111,
29918,
333,
29889,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
28111,
29918,
333,
29889,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29896,
13,
418,
313,
1311,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
4882,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29933,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
726,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
726,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29896,
29946,
13,
418,
9423,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
333,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29882,
29941,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29896,
29906,
13,
418,
9423,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29941,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
9917,
292,
29918,
1884,
267,
353,
5159,
13,
418,
363,
474,
297,
3464,
29898,
29900,
29892,
3309,
1125,
13,
4706,
659,
29896,
353,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29889,
7645,
29889,
29933,
12449,
3313,
580,
13,
4706,
903,
29916,
353,
659,
29896,
13,
4706,
1369,
353,
1095,
13,
4706,
1095,
4619,
29871,
29946,
29906,
13,
4706,
9423,
29916,
29889,
22795,
3097,
29892,
903,
29916,
29889,
29916,
1195,
29892,
903,
29916,
29889,
962,
262,
29892,
903,
29916,
29889,
29916,
3317,
29892,
903,
29916,
29889,
29891,
3317,
29892,
903,
29916,
29889,
333,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29881,
29946,
29939,
29882,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
4706,
1369,
353,
1095,
13,
4706,
1095,
4619,
29871,
29946,
13,
4706,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
4706,
1369,
353,
1095,
13,
4706,
1095,
4619,
3309,
13,
4706,
565,
3017,
29941,
29901,
13,
3986,
659,
29896,
29889,
2385,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
4706,
1683,
29901,
13,
3986,
659,
29896,
29889,
2385,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
9917,
292,
29918,
1884,
267,
29889,
4397,
29898,
791,
29896,
29897,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29896,
29906,
13,
418,
9423,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29941,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29947,
13,
418,
9423,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29906,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
28111,
29918,
333,
29889,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
28111,
29918,
333,
29889,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29896,
13,
418,
313,
1311,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
4882,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29933,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
726,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
726,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
736,
1583,
13,
1678,
5174,
2281,
29889,
2704,
408,
321,
29901,
13,
418,
12020,
2531,
2272,
29889,
4002,
261,
616,
2133,
2392,
29898,
29872,
29897,
396,
3242,
5517,
6835,
1090,
5589,
13,
13,
13,
29871,
822,
28755,
29918,
23749,
29898,
1311,
29892,
20487,
29892,
12655,
1125,
13,
1678,
9995,
13,
1678,
28755,
2643,
411,
12655,
1409,
4072,
964,
6835,
13,
1678,
584,
3207,
20487,
29901,
6835,
29892,
4954,
1231,
5971,
16159,
13,
1678,
584,
3207,
12655,
29901,
12655,
3017,
3883,
13,
1678,
9995,
13,
1678,
1018,
29901,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29941,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
2557,
29918,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29906,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29918,
333,
29889,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29882,
29941,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
333,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
2557,
29918,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29906,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
3545,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
2103,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
22331,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
12809,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
275,
29918,
3752,
355,
713,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
10568,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
1272,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
396,
448,
565,
18511,
408,
263,
1051,
2012,
29892,
28755,
408,
6262,
2012,
310,
1347,
13,
418,
565,
1134,
7373,
29916,
29897,
297,
518,
1761,
29892,
18761,
5387,
13,
4706,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
29879,
29933,
29915,
29995,
2848,
29892,
3309,
29892,
334,
29918,
29916,
876,
13,
418,
1683,
29901,
13,
4706,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29941,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
2557,
29918,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29906,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
28111,
29918,
333,
29889,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29933,
2141,
4058,
29898,
1311,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
4882,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
726,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29882,
29941,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
333,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
2557,
29918,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29941,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
2557,
29918,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
3309,
353,
7431,
29898,
1311,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
9917,
292,
29918,
1884,
267,
29897,
13,
418,
20487,
29889,
3539,
7373,
4984,
29918,
29902,
29889,
4058,
29898,
2848,
876,
13,
418,
363,
659,
29896,
297,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
9917,
292,
29918,
1884,
267,
29901,
13,
4706,
903,
29916,
353,
659,
29896,
13,
4706,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29881,
29946,
29939,
29882,
2141,
4058,
7373,
29916,
29889,
22795,
3097,
29892,
903,
29916,
29889,
29916,
1195,
29892,
903,
29916,
29889,
962,
262,
29892,
903,
29916,
29889,
29916,
3317,
29892,
903,
29916,
29889,
29891,
3317,
29892,
903,
29916,
29889,
333,
876,
13,
4706,
903,
29916,
353,
659,
29896,
29889,
2385,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
4706,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
3986,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
3986,
3309,
353,
7431,
7373,
29916,
29897,
13,
4706,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29941,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
2557,
29918,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
903,
29916,
353,
1583,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29906,
29902,
2141,
4058,
7373,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
29876,
344,
2395,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
28111,
29918,
333,
29889,
333,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
418,
20487,
29889,
3539,
7373,
657,
29918,
4984,
29918,
29933,
2141,
4058,
29898,
1311,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
4882,
876,
13,
418,
903,
29916,
353,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
726,
13,
418,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
565,
3017,
29941,
470,
1134,
7373,
29916,
29897,
1275,
29104,
29901,
13,
4706,
903,
29916,
353,
903,
29916,
29889,
12508,
877,
9420,
29899,
29947,
1495,
13,
4706,
3309,
353,
7431,
7373,
29916,
29897,
13,
418,
20487,
29889,
3539,
29898,
4984,
29889,
4058,
877,
29966,
29902,
29995,
893,
29915,
29995,
2848,
29892,
3309,
29892,
903,
29916,
876,
13,
1678,
5174,
2281,
29889,
2704,
408,
409,
29901,
1583,
3032,
3198,
29918,
8768,
29898,
4984,
29889,
2704,
11702,
29879,
29901,
14210,
29879,
29915,
746,
5007,
14210,
29879,
11838,
1273,
313,
1853,
29898,
344,
511,
851,
29898,
344,
511,
851,
29898,
2997,
29879,
2141,
657,
877,
29918,
29916,
742,
1583,
876,
4961,
13,
1678,
5174,
20948,
408,
734,
29901,
1583,
3032,
3198,
29918,
8768,
29898,
1917,
2392,
11702,
29879,
29901,
14210,
29879,
29915,
746,
5007,
14210,
29879,
11838,
1273,
313,
1853,
29898,
371,
511,
851,
29898,
371,
511,
851,
29898,
2997,
29879,
2141,
657,
877,
29918,
29916,
742,
1583,
876,
4961,
13,
13,
29871,
822,
16964,
6646,
29918,
23749,
29898,
1311,
29892,
851,
29892,
12655,
1125,
13,
1678,
9995,
13,
1678,
443,
4058,
7797,
1891,
2643,
297,
851,
964,
445,
2643,
2777,
773,
12655,
363,
1409,
4072,
13,
1678,
584,
3207,
851,
29901,
7023,
1409,
310,
7797,
1891,
2643,
29892,
4954,
710,
16159,
13,
1678,
584,
3207,
12655,
29901,
12655,
3017,
3883,
13,
1678,
9995,
13,
1678,
1018,
29901,
13,
418,
565,
1583,
29889,
2467,
29918,
28111,
338,
6213,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
353,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29889,
7645,
29889,
5596,
2831,
12724,
4276,
8120,
284,
580,
13,
418,
565,
1583,
29889,
2467,
29918,
2914,
338,
6213,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
353,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29889,
7645,
29889,
5596,
2831,
12724,
4276,
3591,
580,
13,
418,
565,
1583,
29889,
2467,
29918,
18798,
1627,
338,
6213,
29901,
13,
4706,
1583,
29889,
2467,
29918,
18798,
1627,
353,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29889,
7645,
29889,
5596,
2831,
12724,
4276,
29737,
1627,
580,
13,
418,
1095,
353,
29871,
29900,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29896,
29906,
13,
418,
9423,
29916,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29941,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29947,
13,
418,
9423,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29906,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29918,
333,
29889,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29918,
333,
29889,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29896,
29946,
13,
418,
9423,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
333,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29882,
29941,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29947,
13,
418,
9423,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
3545,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
2103,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29906,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
22331,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
22331,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29945,
13,
418,
9423,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
275,
29918,
3752,
355,
713,
29892,
903,
29916,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
10568,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
12809,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
1583,
29889,
2467,
29918,
28111,
29889,
28111,
29889,
3027,
29889,
1272,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29896,
29906,
13,
418,
9423,
29916,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29941,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29947,
13,
418,
9423,
29916,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29906,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
28111,
29918,
333,
29889,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
28111,
29918,
333,
29889,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29896,
13,
418,
313,
1311,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
4882,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29933,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
726,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
4882,
29889,
726,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29896,
29946,
13,
418,
9423,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
333,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29882,
29941,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29896,
29906,
13,
418,
9423,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29941,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
3027,
29918,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
9917,
292,
29918,
1884,
267,
353,
5159,
13,
418,
363,
474,
297,
3464,
29898,
29900,
29892,
3309,
1125,
13,
4706,
659,
29896,
353,
6501,
1212,
29918,
1883,
29918,
1516,
3174,
29889,
7645,
29889,
29933,
12449,
3313,
580,
13,
4706,
903,
29916,
353,
659,
29896,
13,
4706,
1369,
353,
1095,
13,
4706,
1095,
4619,
29871,
29946,
29906,
13,
4706,
9423,
29916,
29889,
22795,
3097,
29892,
903,
29916,
29889,
29916,
1195,
29892,
903,
29916,
29889,
962,
262,
29892,
903,
29916,
29889,
29916,
3317,
29892,
903,
29916,
29889,
29891,
3317,
29892,
903,
29916,
29889,
333,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29881,
29946,
29939,
29882,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
4706,
1369,
353,
1095,
13,
4706,
1095,
4619,
29871,
29946,
13,
4706,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
4706,
1369,
353,
1095,
13,
4706,
1095,
4619,
3309,
13,
4706,
565,
3017,
29941,
29901,
13,
3986,
659,
29896,
29889,
2385,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
4706,
1683,
29901,
13,
3986,
659,
29896,
29889,
2385,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
4706,
1583,
29889,
2467,
29918,
2914,
29889,
2914,
29889,
9917,
292,
29918,
1884,
267,
29889,
9917,
292,
29918,
1884,
267,
29889,
4397,
29898,
791,
29896,
29897,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29896,
29906,
13,
418,
9423,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
11762,
29892,
903,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29941,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
6672,
29889,
2557,
29918,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
903,
29916,
353,
1583,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29947,
13,
418,
9423,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
344,
2395,
29892,
903,
29916,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
28111,
29918,
333,
29889,
303,
1160,
29889,
29876,
344,
2395,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29906,
29902,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
28111,
29918,
333,
29889,
333,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
28111,
29918,
333,
29889,
333,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29896,
13,
418,
313,
1311,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
4882,
29892,
29897,
353,
903,
657,
29918,
4984,
29918,
29933,
2141,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
29871,
29946,
13,
418,
313,
2848,
29892,
29897,
353,
903,
4984,
29918,
29902,
29889,
348,
4058,
29898,
710,
29961,
2962,
29901,
355,
2314,
13,
418,
1369,
353,
1095,
13,
418,
1095,
4619,
3309,
13,
418,
565,
3017,
29941,
29901,
13,
4706,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
726,
353,
851,
29961,
2962,
29901,
355,
1822,
13808,
877,
9420,
29899,
29947,
1495,
13,
418,
1683,
29901,
13,
4706,
1583,
29889,
2467,
29918,
18798,
1627,
29889,
4882,
29889,
726,
353,
851,
29961,
2962,
29901,
355,
29962,
13,
418,
736,
1583,
13,
1678,
5174,
2281,
29889,
2704,
408,
321,
29901,
13,
418,
12020,
2531,
2272,
29889,
4002,
261,
616,
2133,
2392,
29898,
29872,
29897,
396,
3242,
5517,
6835,
1090,
5589,
13,
13,
29918,
4984,
29918,
29902,
353,
2531,
2272,
29889,
4984,
29918,
29902,
13,
1753,
903,
657,
29918,
4984,
29918,
29902,
7295,
13,
1678,
5534,
903,
4984,
29918,
29902,
13,
1678,
736,
903,
4984,
29918,
29902,
13,
29918,
4984,
29918,
29933,
353,
6213,
13,
1753,
903,
657,
29918,
4984,
29918,
29933,
7295,
13,
1678,
5534,
903,
4984,
29918,
29933,
13,
1678,
565,
903,
4984,
29918,
29933,
338,
6213,
29901,
13,
4706,
903,
4984,
29918,
29933,
353,
2281,
29889,
19560,
28945,
29933,
1159,
13,
1678,
736,
903,
4984,
29918,
29933,
13,
29918,
4984,
29918,
29881,
29946,
29939,
29882,
353,
6213,
13,
1753,
903,
657,
29918,
4984,
29918,
29881,
29946,
29939,
29882,
7295,
13,
1678,
5534,
903,
4984,
29918,
29881,
29946,
29939,
29882,
13,
1678,
565,
903,
4984,
29918,
29881,
29946,
29939,
29882,
338,
6213,
29901,
13,
4706,
903,
4984,
29918,
29881,
29946,
29939,
29882,
353,
2281,
29889,
19560,
28945,
29881,
29946,
29939,
29882,
1159,
13,
1678,
736,
903,
4984,
29918,
29881,
29946,
29939,
29882,
13,
29918,
4984,
29918,
29882,
29941,
29902,
353,
6213,
13,
1753,
903,
657,
29918,
4984,
29918,
29882,
29941,
29902,
7295,
13,
1678,
5534,
903,
4984,
29918,
29882,
29941,
29902,
13,
1678,
565,
903,
4984,
29918,
29882,
29941,
29902,
338,
6213,
29901,
13,
4706,
903,
4984,
29918,
29882,
29941,
29902,
353,
2281,
29889,
19560,
28945,
29882,
29941,
29902,
1159,
13,
1678,
736,
903,
4984,
29918,
29882,
29941,
29902,
13,
29918,
4984,
29918,
12809,
353,
6213,
13,
1753,
903,
657,
29918,
4984,
29918,
12809,
7295,
13,
1678,
5534,
903,
4984,
29918,
12809,
13,
1678,
565,
903,
4984,
29918,
12809,
338,
6213,
29901,
13,
4706,
903,
4984,
29918,
12809,
353,
2281,
29889,
19560,
28945,
12809,
1159,
13,
1678,
736,
903,
4984,
29918,
12809,
13,
29918,
4984,
29918,
29941,
29902,
353,
6213,
13,
1753,
903,
657,
29918,
4984,
29918,
29941,
29902,
7295,
13,
1678,
5534,
903,
4984,
29918,
29941,
29902,
13,
1678,
565,
903,
4984,
29918,
29941,
29902,
338,
6213,
29901,
13,
4706,
903,
4984,
29918,
29941,
29902,
353,
2281,
29889,
19560,
28945,
29941,
29902,
1159,
13,
1678,
736,
903,
4984,
29918,
29941,
29902,
13,
29918,
4984,
29918,
29906,
29902,
353,
6213,
13,
1753,
903,
657,
29918,
4984,
29918,
29906,
29902,
7295,
13,
1678,
5534,
903,
4984,
29918,
29906,
29902,
13,
1678,
565,
903,
4984,
29918,
29906,
29902,
338,
6213,
29901,
13,
4706,
903,
4984,
29918,
29906,
29902,
353,
2281,
29889,
19560,
28945,
29906,
29902,
1159,
13,
1678,
736,
903,
4984,
29918,
29906,
29902,
13,
2
] |
examples/similarity_conf.py | allenye0119/Amaze | 0 | 161744 | <filename>examples/similarity_conf.py
"""
This module gives an example of how to configure similarity measures
computation.
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from amaze import KNNBasic
from amaze import Dataset
from amaze.model_selection import cross_validate
# Load the movielens-100k dataset.
data = Dataset.load_builtin('ml-100k')
# Example using cosine similarity
sim_options = {'name': 'cosine',
'user_based': False # compute similarities between items
}
algo = KNNBasic(sim_options=sim_options)
cross_validate(algo, data, verbose=True)
# Example using pearson_baseline similarity
sim_options = {'name': 'pearson_baseline',
'shrinkage': 0 # no shrinkage
}
algo = KNNBasic(sim_options=sim_options)
cross_validate(algo, data, verbose=True)
| [
1,
529,
9507,
29958,
19057,
29914,
29764,
537,
29918,
5527,
29889,
2272,
13,
15945,
29908,
13,
4013,
3883,
4076,
385,
1342,
310,
920,
304,
10822,
29501,
15366,
13,
12097,
362,
29889,
13,
15945,
29908,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
313,
23552,
29918,
5215,
29892,
8542,
29892,
1596,
29918,
2220,
29892,
13,
462,
4706,
29104,
29918,
20889,
1338,
29897,
13,
13,
3166,
21863,
29872,
1053,
476,
10262,
16616,
13,
3166,
21863,
29872,
1053,
13373,
24541,
13,
3166,
21863,
29872,
29889,
4299,
29918,
21731,
1053,
4891,
29918,
15480,
13,
13,
13,
29937,
16012,
278,
2351,
709,
575,
29899,
29896,
29900,
29900,
29895,
8783,
29889,
13,
1272,
353,
13373,
24541,
29889,
1359,
29918,
16145,
262,
877,
828,
29899,
29896,
29900,
29900,
29895,
1495,
13,
13,
29937,
8741,
773,
6776,
457,
29501,
13,
3601,
29918,
6768,
353,
11117,
978,
2396,
525,
3944,
457,
742,
13,
1669,
525,
1792,
29918,
6707,
2396,
7700,
29871,
396,
10272,
29871,
2788,
1907,
1546,
4452,
13,
1669,
500,
13,
284,
1484,
353,
476,
10262,
16616,
29898,
3601,
29918,
6768,
29922,
3601,
29918,
6768,
29897,
13,
13,
19128,
29918,
15480,
29898,
284,
1484,
29892,
848,
29892,
26952,
29922,
5574,
29897,
13,
13,
29937,
8741,
773,
282,
799,
1100,
29918,
6500,
5570,
29501,
13,
3601,
29918,
6768,
353,
11117,
978,
2396,
525,
412,
279,
1100,
29918,
6500,
5570,
742,
13,
1669,
525,
845,
29878,
682,
482,
2396,
29871,
29900,
29871,
396,
694,
14653,
682,
482,
13,
1669,
500,
13,
284,
1484,
353,
476,
10262,
16616,
29898,
3601,
29918,
6768,
29922,
3601,
29918,
6768,
29897,
13,
13,
19128,
29918,
15480,
29898,
284,
1484,
29892,
848,
29892,
26952,
29922,
5574,
29897,
13,
2
] |
tests/contrib/test_cached_dataset.py | mmathys/bagua | 635 | 61948 | from bagua.torch_api.contrib.cached_dataset import CachedDataset
from torch.utils.data.dataset import Dataset
import numpy as np
import logging
import unittest
from tests import skip_if_cuda_available
logging.basicConfig(level=logging.DEBUG)
class MyDataset(Dataset):
def __init__(self, size):
self.size = size
self.dataset = [(np.random.rand(5, 2), np.random.rand(1)) for _ in range(size)]
def __getitem__(self, item):
return self.dataset[item]
def __len__(self):
return self.size
class TestCacheDataset(unittest.TestCase):
def check_dataset(self, dataset, cache_dataset):
for _ in range(10):
for _, _ in enumerate(cache_dataset):
pass
for i in range(len(dataset)):
self.assertTrue((dataset[i][0] == cache_dataset[i][0]).all())
self.assertTrue((dataset[i][1] == cache_dataset[i][1]).all())
@skip_if_cuda_available()
def test_redis(self):
dataset1 = MyDataset(102)
dataset2 = MyDataset(102)
cache_dataset1 = CachedDataset(
dataset1,
backend="redis",
dataset_name="d1",
)
cache_dataset2 = CachedDataset(
dataset2,
backend="redis",
dataset_name="d2",
)
cache_dataset1.cache_loader.store.clear()
self.check_dataset(dataset1, cache_dataset1)
self.assertEqual(cache_dataset1.cache_loader.num_keys(), len(dataset1))
self.check_dataset(dataset2, cache_dataset2)
self.assertEqual(
cache_dataset2.cache_loader.num_keys(), len(dataset1) + len(dataset2)
)
if __name__ == "__main__":
unittest.main()
| [
1,
515,
19548,
3357,
29889,
7345,
305,
29918,
2754,
29889,
21570,
29889,
29883,
3791,
29918,
24713,
1053,
315,
3791,
16390,
24541,
13,
3166,
4842,
305,
29889,
13239,
29889,
1272,
29889,
24713,
1053,
13373,
24541,
13,
5215,
12655,
408,
7442,
13,
5215,
12183,
13,
5215,
443,
27958,
13,
3166,
6987,
1053,
14383,
29918,
361,
29918,
29883,
6191,
29918,
16515,
13,
13,
21027,
29889,
16121,
3991,
29898,
5563,
29922,
21027,
29889,
18525,
29897,
13,
13,
13,
1990,
1619,
16390,
24541,
29898,
16390,
24541,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
2159,
1125,
13,
4706,
1583,
29889,
2311,
353,
2159,
13,
4706,
1583,
29889,
24713,
353,
17288,
9302,
29889,
8172,
29889,
9502,
29898,
29945,
29892,
29871,
29906,
511,
7442,
29889,
8172,
29889,
9502,
29898,
29896,
876,
363,
903,
297,
3464,
29898,
2311,
4638,
13,
13,
1678,
822,
4770,
657,
667,
12035,
1311,
29892,
2944,
1125,
13,
4706,
736,
1583,
29889,
24713,
29961,
667,
29962,
13,
13,
1678,
822,
4770,
2435,
12035,
1311,
1125,
13,
4706,
736,
1583,
29889,
2311,
13,
13,
13,
1990,
4321,
10408,
16390,
24541,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
822,
1423,
29918,
24713,
29898,
1311,
29892,
8783,
29892,
7090,
29918,
24713,
1125,
13,
4706,
363,
903,
297,
3464,
29898,
29896,
29900,
1125,
13,
9651,
363,
17117,
903,
297,
26985,
29898,
8173,
29918,
24713,
1125,
13,
18884,
1209,
13,
13,
4706,
363,
474,
297,
3464,
29898,
2435,
29898,
24713,
22164,
13,
9651,
1583,
29889,
9294,
5574,
3552,
24713,
29961,
29875,
3816,
29900,
29962,
1275,
7090,
29918,
24713,
29961,
29875,
3816,
29900,
14664,
497,
3101,
13,
9651,
1583,
29889,
9294,
5574,
3552,
24713,
29961,
29875,
3816,
29896,
29962,
1275,
7090,
29918,
24713,
29961,
29875,
3816,
29896,
14664,
497,
3101,
13,
13,
1678,
732,
11014,
29918,
361,
29918,
29883,
6191,
29918,
16515,
580,
13,
1678,
822,
1243,
29918,
1127,
275,
29898,
1311,
1125,
13,
4706,
8783,
29896,
353,
1619,
16390,
24541,
29898,
29896,
29900,
29906,
29897,
13,
4706,
8783,
29906,
353,
1619,
16390,
24541,
29898,
29896,
29900,
29906,
29897,
13,
4706,
7090,
29918,
24713,
29896,
353,
315,
3791,
16390,
24541,
29898,
13,
9651,
8783,
29896,
29892,
13,
9651,
14998,
543,
1127,
275,
613,
13,
9651,
8783,
29918,
978,
543,
29881,
29896,
613,
13,
4706,
1723,
13,
4706,
7090,
29918,
24713,
29906,
353,
315,
3791,
16390,
24541,
29898,
13,
9651,
8783,
29906,
29892,
13,
9651,
14998,
543,
1127,
275,
613,
13,
9651,
8783,
29918,
978,
543,
29881,
29906,
613,
13,
4706,
1723,
13,
13,
4706,
7090,
29918,
24713,
29896,
29889,
8173,
29918,
12657,
29889,
8899,
29889,
8551,
580,
13,
13,
4706,
1583,
29889,
3198,
29918,
24713,
29898,
24713,
29896,
29892,
7090,
29918,
24713,
29896,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
8173,
29918,
24713,
29896,
29889,
8173,
29918,
12657,
29889,
1949,
29918,
8149,
3285,
7431,
29898,
24713,
29896,
876,
13,
13,
4706,
1583,
29889,
3198,
29918,
24713,
29898,
24713,
29906,
29892,
7090,
29918,
24713,
29906,
29897,
13,
4706,
1583,
29889,
9294,
9843,
29898,
13,
9651,
7090,
29918,
24713,
29906,
29889,
8173,
29918,
12657,
29889,
1949,
29918,
8149,
3285,
7431,
29898,
24713,
29896,
29897,
718,
7431,
29898,
24713,
29906,
29897,
13,
4706,
1723,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
443,
27958,
29889,
3396,
580,
13,
2
] |
ImageDeleter.py | warifp/InstagramPostAndDelete | 4 | 114591 | import os
def delete_png():
list = os.listdir()
images = [x for x in list if ".png" in x]
for x in images:
os.remove(x)
| [
1,
1053,
2897,
13,
1753,
5217,
29918,
2732,
7295,
13,
1678,
1051,
353,
2897,
29889,
1761,
3972,
580,
13,
1678,
4558,
353,
518,
29916,
363,
921,
297,
1051,
565,
11393,
2732,
29908,
297,
921,
29962,
13,
1678,
363,
921,
297,
4558,
29901,
13,
4706,
2897,
29889,
5992,
29898,
29916,
29897,
13,
2
] |
viscyc/detector/__init__.py | csachs/viscyc | 1 | 1601104 | import argparse
import importlib
import importlib.util
import json
import socket
import sys
import time
from pathlib import Path
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
import cv2
class RawSender:
def __init__(self, host, port):
self.host, self.port = host, port
def send(self, **kwargs):
message_data = json.dumps(kwargs).encode()
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((self.host, self.port))
s.send(message_data)
s.close()
except ConnectionError:
pass
class HttpSender:
def __init__(self, url):
self.url = url
def send(self, **kwargs):
json_data = json.dumps(kwargs).encode()
try:
urlopen(
Request(self.url, headers={'Content-type': 'application/json'}),
data=json_data,
)
except (URLError, HTTPError, ConnectionError):
pass
def create_argparser():
parser = argparse.ArgumentParser(
description="watch cross-trainer revolutions via computer vision"
)
parser.add_argument('--capture-device', type=int, default=0)
parser.add_argument('--capture-width', type=int, default=640)
parser.add_argument('--capture-height', type=int, default=480)
parser.add_argument('--roi-width', type=int, default=64)
parser.add_argument('--roi-height', type=int, default=64)
parser.add_argument('--roi-placement-horizontal', type=int, default=-1)
parser.add_argument('--roi-placement-vertical', type=int, default=-1)
parser.add_argument('--threshold', type=int, default=100)
parser.add_argument('--quiet', default=False, action='store_true')
parser.add_argument('--no-display', default=False, action='store_true')
parser.add_argument('--single-jpeg-preview', default=False, action='store_true')
parser.add_argument('--power-expression', default='1.0*rpm+0')
parser.add_argument('--load', action='append', default=[])
parser.add_argument('--target', type=str, default='127.0.0.1:7654')
parser.add_argument(
'--http-target', type=str, default='http://127.0.0.1:8901/cadence'
)
return parser
def load_file_as_module(file_path):
name = '_' + Path(file_path).stem
spec = importlib.util.spec_from_file_location(name, file_path)
module = importlib.util.module_from_spec(spec)
sys.modules[name] = module
spec.loader.exec_module(module)
return module
def find_power_function(hooks, default):
calculate_watt = default
for hook in hooks:
if getattr(hook, 'calculate_watt', None):
calculate_watt = getattr(hook, 'calculate_watt')
print(
"Using %s.%s as power calculation function."
% (
calculate_watt.__module__,
calculate_watt.__name__,
)
)
return calculate_watt
def create_power_expression_function(power_expression):
frag = f'''
def power_expression(rpm):
return ({power_expression})
'''
l, g = {}, {}
exec(frag, g, l)
return l['power_expression']
def get_sizes(args):
size = (args.capture_width, args.capture_height)
position = [size[0] // 2, size[1] // 2]
if args.roi_placement_horizontal != -1:
position[0] = args.roi_placement_horizontal
if args.roi_placement_vertical != -1:
position[1] = args.roi_placement_vertical
roi = args.roi_width, args.roi_height
return size, position, roi
def prepare_hooks(args):
hooks = hooks_load(args.load)
hooks += [RawSender(args.target.split(':')[0], int(args.target.split(':')[1]))]
if args.http_target:
hooks += [HttpSender(args.http_target)]
return hooks
def hooks_load(load):
hooks = [load_file_as_module(file_name) for file_name in load]
return hooks
def hooks_call(hooks, what, *args, **kwargs):
for hook in hooks:
func = getattr(hook, what, None)
if func:
try:
func(*args, **kwargs)
except BaseException as e:
print("Exception occurred while calling %r" % func)
print(e)
def prepare_preview(display_frame, color, text, position, roi):
cv2.rectangle(
display_frame,
(position[0] - roi[0] // 2, position[1] - roi[1] // 2),
(position[0] + roi[0] // 2, position[1] + roi[1] // 2),
color,
)
cv2.putText(
display_frame,
text,
org=(0, 24),
fontFace=cv2.FONT_HERSHEY_SIMPLEX,
fontScale=1.0,
color=(0, 255, 0),
)
return display_frame
COLOR_INSIDE = (0, 0, 255)
COLOR_OUTSIDE = (0, 255, 0)
def main_loop(
capture_function,
position,
roi,
threshold,
hook_send,
quiet,
preview,
return_jpg=False,
):
last_timepoint = None
last_acquisition = None
inside = False
last_rpm = None
rev_count = 0
while True:
frame_input = capture_function()
timepoint = time.time()
frame_grayscale = cv2.cvtColor(frame_input, cv2.COLOR_BGR2GRAY)
_, frame_binary = cv2.threshold(
frame_grayscale, 0, 255, cv2.THRESH_BINARY + cv2.THRESH_OTSU
)
frame_roi = frame_binary[
position[1] - roi[1] // 2 : position[1] + roi[1] // 2,
position[0] - roi[0] // 2 : position[0] + roi[0] // 2,
]
mean_value = frame_roi.mean()
color = COLOR_OUTSIDE
text = "RPM: % 2.2f Revs: %04d" % (
last_rpm if last_rpm else 0.0,
rev_count,
)
if last_acquisition:
text += " FPS: %2.1f" % (1.0 / (timepoint - last_acquisition))
last_acquisition = timepoint
if mean_value < threshold:
color = COLOR_INSIDE
if not inside and last_timepoint:
delta = timepoint - last_timepoint
rpm = (1.0 / delta) * 60.0
rev_count += 1
last_rpm = rpm
hook_send(rev_count=rev_count, rpm=rpm)
if not quiet:
print(text)
inside = True
last_timepoint = timepoint
else:
inside = False
if preview:
display_frame = prepare_preview(
frame_input.copy(), color, text, position, roi
)
if return_jpg:
_, result = cv2.imencode('.jpg', display_frame)
return result.tostring()
else:
cv2.imshow("Viscyc Detector", display_frame)
if cv2.waitKey(1) & 0xff == ord('q'):
break
def main(args=None, return_instead_print=False):
if args is None:
args = sys.argv[1:]
parser = create_argparser()
args = parser.parse_args(args)
power_expression = args.power_expression
calculate_watt = create_power_expression_function(power_expression)
hooks = prepare_hooks(args)
calculate_watt = find_power_function(hooks, default=calculate_watt)
size, position, roi = get_sizes(args)
capture = cv2.VideoCapture(args.capture_device)
capture.set(cv2.CAP_PROP_FRAME_WIDTH, size[0])
capture.set(cv2.CAP_PROP_FRAME_HEIGHT, size[1])
def capture_function():
return capture.read()[1]
def hook_send(rev_count=0, rpm=0):
return hooks_call(
hooks, 'send', watts=calculate_watt(rpm), rev_count=rev_count, rpm=rpm
)
try:
hooks_call(hooks, 'start')
hook_send()
print("Beginning processing")
result = main_loop(
capture_function,
position,
roi,
args.threshold,
hook_send,
args.quiet,
preview=not args.no_display or args.single_jpeg_preview,
return_jpg=args.single_jpeg_preview,
)
if result:
if return_instead_print:
return result
else:
sys.stdout.buffer.write(result)
finally:
capture.release()
cv2.destroyAllWindows()
hook_send()
hooks_call(hooks, 'stop')
print("Halted processing")
| [
1,
1053,
1852,
5510,
13,
5215,
1053,
1982,
13,
5215,
1053,
1982,
29889,
4422,
13,
5215,
4390,
13,
5215,
9909,
13,
5215,
10876,
13,
5215,
931,
13,
3166,
2224,
1982,
1053,
10802,
13,
3166,
3142,
1982,
29889,
2704,
1053,
7331,
2392,
29892,
501,
29934,
1307,
24616,
13,
3166,
3142,
1982,
29889,
3827,
1053,
10729,
29892,
5065,
417,
2238,
13,
13,
5215,
13850,
29906,
13,
13,
13,
1990,
22038,
29615,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3495,
29892,
2011,
1125,
13,
4706,
1583,
29889,
3069,
29892,
1583,
29889,
637,
353,
3495,
29892,
2011,
13,
13,
1678,
822,
3638,
29898,
1311,
29892,
3579,
19290,
1125,
13,
4706,
2643,
29918,
1272,
353,
4390,
29889,
29881,
17204,
29898,
19290,
467,
12508,
580,
13,
13,
4706,
1018,
29901,
13,
9651,
269,
353,
9909,
29889,
11514,
29898,
11514,
29889,
5098,
29918,
1177,
2544,
29892,
9909,
29889,
6156,
7077,
29918,
1254,
1525,
5194,
29897,
13,
9651,
269,
29889,
6915,
3552,
1311,
29889,
3069,
29892,
1583,
29889,
637,
876,
13,
9651,
269,
29889,
6717,
29898,
4906,
29918,
1272,
29897,
13,
9651,
269,
29889,
5358,
580,
13,
4706,
5174,
15160,
2392,
29901,
13,
9651,
1209,
13,
13,
13,
1990,
9056,
29615,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3142,
1125,
13,
4706,
1583,
29889,
2271,
353,
3142,
13,
13,
1678,
822,
3638,
29898,
1311,
29892,
3579,
19290,
1125,
13,
4706,
4390,
29918,
1272,
353,
4390,
29889,
29881,
17204,
29898,
19290,
467,
12508,
580,
13,
4706,
1018,
29901,
13,
9651,
5065,
417,
2238,
29898,
13,
18884,
10729,
29898,
1311,
29889,
2271,
29892,
9066,
3790,
29915,
3916,
29899,
1853,
2396,
525,
6214,
29914,
3126,
29915,
9594,
13,
18884,
848,
29922,
3126,
29918,
1272,
29892,
13,
9651,
1723,
13,
4706,
5174,
313,
4574,
1307,
24616,
29892,
7331,
2392,
29892,
15160,
2392,
1125,
13,
9651,
1209,
13,
13,
13,
1753,
1653,
29918,
1191,
16680,
7295,
13,
1678,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
13,
4706,
6139,
543,
12344,
4891,
29899,
3018,
4983,
19479,
29879,
3025,
6601,
18551,
29908,
13,
1678,
1723,
13,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
17885,
545,
29899,
10141,
742,
1134,
29922,
524,
29892,
2322,
29922,
29900,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
17885,
545,
29899,
2103,
742,
1134,
29922,
524,
29892,
2322,
29922,
29953,
29946,
29900,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
17885,
545,
29899,
3545,
742,
1134,
29922,
524,
29892,
2322,
29922,
29946,
29947,
29900,
29897,
13,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
307,
29875,
29899,
2103,
742,
1134,
29922,
524,
29892,
2322,
29922,
29953,
29946,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
307,
29875,
29899,
3545,
742,
1134,
29922,
524,
29892,
2322,
29922,
29953,
29946,
29897,
13,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
307,
29875,
29899,
29886,
9552,
29899,
22672,
742,
1134,
29922,
524,
29892,
2322,
10457,
29896,
29897,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
307,
29875,
29899,
29886,
9552,
29899,
18575,
742,
1134,
29922,
524,
29892,
2322,
10457,
29896,
29897,
13,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
386,
12268,
742,
1134,
29922,
524,
29892,
2322,
29922,
29896,
29900,
29900,
29897,
13,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
339,
2035,
742,
2322,
29922,
8824,
29892,
3158,
2433,
8899,
29918,
3009,
1495,
13,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
1217,
29899,
4990,
742,
2322,
29922,
8824,
29892,
3158,
2433,
8899,
29918,
3009,
1495,
13,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
14369,
29899,
26568,
29899,
25347,
742,
2322,
29922,
8824,
29892,
3158,
2433,
8899,
29918,
3009,
1495,
13,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
13519,
29899,
17471,
742,
2322,
2433,
29896,
29889,
29900,
29930,
29878,
3358,
29974,
29900,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
1359,
742,
3158,
2433,
4397,
742,
2322,
11759,
2314,
13,
13,
1678,
13812,
29889,
1202,
29918,
23516,
877,
489,
5182,
742,
1134,
29922,
710,
29892,
2322,
2433,
29896,
29906,
29955,
29889,
29900,
29889,
29900,
29889,
29896,
29901,
29955,
29953,
29945,
29946,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
29898,
13,
4706,
525,
489,
1124,
29899,
5182,
742,
1134,
29922,
710,
29892,
2322,
2433,
1124,
597,
29896,
29906,
29955,
29889,
29900,
29889,
29900,
29889,
29896,
29901,
29947,
29929,
29900,
29896,
29914,
29883,
328,
663,
29915,
13,
1678,
1723,
13,
13,
1678,
736,
13812,
13,
13,
13,
1753,
2254,
29918,
1445,
29918,
294,
29918,
5453,
29898,
1445,
29918,
2084,
1125,
13,
1678,
1024,
353,
22868,
29915,
718,
10802,
29898,
1445,
29918,
2084,
467,
303,
331,
13,
13,
1678,
1580,
353,
1053,
1982,
29889,
4422,
29889,
6550,
29918,
3166,
29918,
1445,
29918,
5479,
29898,
978,
29892,
934,
29918,
2084,
29897,
13,
1678,
3883,
353,
1053,
1982,
29889,
4422,
29889,
5453,
29918,
3166,
29918,
6550,
29898,
6550,
29897,
13,
1678,
10876,
29889,
7576,
29961,
978,
29962,
353,
3883,
13,
1678,
1580,
29889,
12657,
29889,
4258,
29918,
5453,
29898,
5453,
29897,
13,
13,
1678,
736,
3883,
13,
13,
13,
1753,
1284,
29918,
13519,
29918,
2220,
29898,
1251,
12117,
29892,
2322,
1125,
13,
1678,
8147,
29918,
29893,
1131,
353,
2322,
13,
1678,
363,
12422,
297,
12422,
29879,
29901,
13,
4706,
565,
679,
5552,
29898,
20849,
29892,
525,
15807,
403,
29918,
29893,
1131,
742,
6213,
1125,
13,
9651,
8147,
29918,
29893,
1131,
353,
679,
5552,
29898,
20849,
29892,
525,
15807,
403,
29918,
29893,
1131,
1495,
13,
9651,
1596,
29898,
13,
18884,
376,
15156,
1273,
29879,
29889,
29995,
29879,
408,
3081,
13944,
740,
1213,
13,
18884,
1273,
313,
13,
462,
1678,
8147,
29918,
29893,
1131,
17255,
5453,
1649,
29892,
13,
462,
1678,
8147,
29918,
29893,
1131,
17255,
978,
1649,
29892,
13,
18884,
1723,
13,
9651,
1723,
13,
1678,
736,
8147,
29918,
29893,
1131,
13,
13,
13,
1753,
1653,
29918,
13519,
29918,
17471,
29918,
2220,
29898,
13519,
29918,
17471,
1125,
13,
1678,
13855,
353,
285,
12008,
13,
1753,
3081,
29918,
17471,
29898,
29878,
3358,
1125,
13,
1678,
736,
21313,
13519,
29918,
17471,
1800,
13,
12008,
13,
1678,
301,
29892,
330,
353,
24335,
6571,
13,
1678,
2279,
29898,
29888,
1431,
29892,
330,
29892,
301,
29897,
13,
1678,
736,
301,
1839,
13519,
29918,
17471,
2033,
13,
13,
13,
1753,
679,
29918,
29879,
7093,
29898,
5085,
1125,
13,
13,
1678,
2159,
353,
313,
5085,
29889,
17885,
545,
29918,
2103,
29892,
6389,
29889,
17885,
545,
29918,
3545,
29897,
13,
1678,
2602,
353,
518,
2311,
29961,
29900,
29962,
849,
29871,
29906,
29892,
2159,
29961,
29896,
29962,
849,
29871,
29906,
29962,
13,
1678,
565,
6389,
29889,
307,
29875,
29918,
29886,
9552,
29918,
22672,
2804,
448,
29896,
29901,
13,
4706,
2602,
29961,
29900,
29962,
353,
6389,
29889,
307,
29875,
29918,
29886,
9552,
29918,
22672,
13,
1678,
565,
6389,
29889,
307,
29875,
29918,
29886,
9552,
29918,
18575,
2804,
448,
29896,
29901,
13,
4706,
2602,
29961,
29896,
29962,
353,
6389,
29889,
307,
29875,
29918,
29886,
9552,
29918,
18575,
13,
1678,
14100,
353,
6389,
29889,
307,
29875,
29918,
2103,
29892,
6389,
29889,
307,
29875,
29918,
3545,
13,
13,
1678,
736,
2159,
29892,
2602,
29892,
14100,
13,
13,
13,
1753,
19012,
29918,
1251,
12117,
29898,
5085,
1125,
13,
1678,
12422,
29879,
353,
12422,
29879,
29918,
1359,
29898,
5085,
29889,
1359,
29897,
13,
13,
1678,
12422,
29879,
4619,
518,
22131,
29615,
29898,
5085,
29889,
5182,
29889,
5451,
877,
29901,
29861,
29900,
1402,
938,
29898,
5085,
29889,
5182,
29889,
5451,
877,
29901,
29861,
29896,
12622,
29962,
13,
13,
1678,
565,
6389,
29889,
1124,
29918,
5182,
29901,
13,
4706,
12422,
29879,
4619,
518,
5506,
29615,
29898,
5085,
29889,
1124,
29918,
5182,
4638,
13,
13,
1678,
736,
12422,
29879,
13,
13,
13,
1753,
12422,
29879,
29918,
1359,
29898,
1359,
1125,
13,
1678,
12422,
29879,
353,
518,
1359,
29918,
1445,
29918,
294,
29918,
5453,
29898,
1445,
29918,
978,
29897,
363,
934,
29918,
978,
297,
2254,
29962,
13,
1678,
736,
12422,
29879,
13,
13,
13,
1753,
12422,
29879,
29918,
4804,
29898,
1251,
12117,
29892,
825,
29892,
334,
5085,
29892,
3579,
19290,
1125,
13,
1678,
363,
12422,
297,
12422,
29879,
29901,
13,
4706,
3653,
353,
679,
5552,
29898,
20849,
29892,
825,
29892,
6213,
29897,
13,
4706,
565,
3653,
29901,
13,
9651,
1018,
29901,
13,
18884,
3653,
10456,
5085,
29892,
3579,
19290,
29897,
13,
9651,
5174,
7399,
2451,
408,
321,
29901,
13,
18884,
1596,
703,
2451,
10761,
1550,
5432,
1273,
29878,
29908,
1273,
3653,
29897,
13,
18884,
1596,
29898,
29872,
29897,
13,
13,
13,
1753,
19012,
29918,
25347,
29898,
4990,
29918,
2557,
29892,
2927,
29892,
1426,
29892,
2602,
29892,
14100,
1125,
13,
1678,
13850,
29906,
29889,
1621,
2521,
29898,
13,
4706,
2479,
29918,
2557,
29892,
13,
4706,
313,
3283,
29961,
29900,
29962,
448,
14100,
29961,
29900,
29962,
849,
29871,
29906,
29892,
2602,
29961,
29896,
29962,
448,
14100,
29961,
29896,
29962,
849,
29871,
29906,
511,
13,
4706,
313,
3283,
29961,
29900,
29962,
718,
14100,
29961,
29900,
29962,
849,
29871,
29906,
29892,
2602,
29961,
29896,
29962,
718,
14100,
29961,
29896,
29962,
849,
29871,
29906,
511,
13,
4706,
2927,
29892,
13,
1678,
1723,
13,
13,
1678,
13850,
29906,
29889,
649,
1626,
29898,
13,
4706,
2479,
29918,
2557,
29892,
13,
4706,
1426,
29892,
13,
4706,
1638,
7607,
29900,
29892,
29871,
29906,
29946,
511,
13,
4706,
4079,
23360,
29922,
11023,
29906,
29889,
29943,
1164,
29911,
29918,
4448,
7068,
13282,
29918,
5425,
3580,
1307,
29990,
29892,
13,
4706,
4079,
17185,
29922,
29896,
29889,
29900,
29892,
13,
4706,
2927,
7607,
29900,
29892,
29871,
29906,
29945,
29945,
29892,
29871,
29900,
511,
13,
1678,
1723,
13,
13,
1678,
736,
2479,
29918,
2557,
13,
13,
13,
15032,
1955,
29918,
1177,
29903,
22027,
353,
313,
29900,
29892,
29871,
29900,
29892,
29871,
29906,
29945,
29945,
29897,
13,
15032,
1955,
29918,
12015,
29903,
22027,
353,
313,
29900,
29892,
29871,
29906,
29945,
29945,
29892,
29871,
29900,
29897,
13,
13,
13,
1753,
1667,
29918,
7888,
29898,
13,
1678,
10446,
29918,
2220,
29892,
13,
1678,
2602,
29892,
13,
1678,
14100,
29892,
13,
1678,
16897,
29892,
13,
1678,
12422,
29918,
6717,
29892,
13,
1678,
11813,
29892,
13,
1678,
25267,
29892,
13,
1678,
736,
29918,
6173,
29922,
8824,
29892,
13,
1125,
13,
1678,
1833,
29918,
2230,
3149,
353,
6213,
13,
1678,
1833,
29918,
562,
23493,
353,
6213,
13,
1678,
2768,
353,
7700,
13,
1678,
1833,
29918,
29878,
3358,
353,
6213,
13,
13,
1678,
6664,
29918,
2798,
353,
29871,
29900,
13,
13,
1678,
1550,
5852,
29901,
13,
13,
4706,
3515,
29918,
2080,
353,
10446,
29918,
2220,
580,
13,
13,
4706,
931,
3149,
353,
931,
29889,
2230,
580,
13,
13,
4706,
3515,
29918,
21012,
7052,
353,
13850,
29906,
29889,
11023,
29873,
3306,
29898,
2557,
29918,
2080,
29892,
13850,
29906,
29889,
15032,
1955,
29918,
29933,
14345,
29906,
29954,
22800,
29897,
13,
13,
4706,
17117,
3515,
29918,
19541,
353,
13850,
29906,
29889,
386,
12268,
29898,
13,
9651,
3515,
29918,
21012,
7052,
29892,
29871,
29900,
29892,
29871,
29906,
29945,
29945,
29892,
13850,
29906,
29889,
4690,
1525,
7068,
29918,
29933,
1177,
19926,
718,
13850,
29906,
29889,
4690,
1525,
7068,
29918,
2891,
14605,
13,
4706,
1723,
13,
13,
4706,
3515,
29918,
307,
29875,
353,
3515,
29918,
19541,
29961,
13,
9651,
2602,
29961,
29896,
29962,
448,
14100,
29961,
29896,
29962,
849,
29871,
29906,
584,
2602,
29961,
29896,
29962,
718,
14100,
29961,
29896,
29962,
849,
29871,
29906,
29892,
13,
9651,
2602,
29961,
29900,
29962,
448,
14100,
29961,
29900,
29962,
849,
29871,
29906,
584,
2602,
29961,
29900,
29962,
718,
14100,
29961,
29900,
29962,
849,
29871,
29906,
29892,
13,
4706,
4514,
13,
13,
4706,
2099,
29918,
1767,
353,
3515,
29918,
307,
29875,
29889,
12676,
580,
13,
13,
4706,
2927,
353,
23958,
1955,
29918,
12015,
29903,
22027,
13,
13,
4706,
1426,
353,
376,
29934,
13427,
29901,
1273,
29871,
29906,
29889,
29906,
29888,
830,
4270,
29901,
1273,
29900,
29946,
29881,
29908,
1273,
313,
13,
9651,
1833,
29918,
29878,
3358,
565,
1833,
29918,
29878,
3358,
1683,
29871,
29900,
29889,
29900,
29892,
13,
9651,
6664,
29918,
2798,
29892,
13,
4706,
1723,
13,
13,
4706,
565,
1833,
29918,
562,
23493,
29901,
13,
9651,
1426,
4619,
376,
383,
7024,
29901,
1273,
29906,
29889,
29896,
29888,
29908,
1273,
313,
29896,
29889,
29900,
847,
313,
2230,
3149,
448,
1833,
29918,
562,
23493,
876,
13,
13,
4706,
1833,
29918,
562,
23493,
353,
931,
3149,
13,
13,
4706,
565,
2099,
29918,
1767,
529,
16897,
29901,
13,
9651,
2927,
353,
23958,
1955,
29918,
1177,
29903,
22027,
13,
13,
9651,
565,
451,
2768,
322,
1833,
29918,
2230,
3149,
29901,
13,
18884,
19471,
353,
931,
3149,
448,
1833,
29918,
2230,
3149,
13,
13,
18884,
364,
3358,
353,
313,
29896,
29889,
29900,
847,
19471,
29897,
334,
29871,
29953,
29900,
29889,
29900,
13,
13,
18884,
6664,
29918,
2798,
4619,
29871,
29896,
13,
13,
18884,
1833,
29918,
29878,
3358,
353,
364,
3358,
13,
13,
18884,
12422,
29918,
6717,
29898,
13478,
29918,
2798,
29922,
13478,
29918,
2798,
29892,
364,
3358,
29922,
29878,
3358,
29897,
13,
13,
18884,
565,
451,
11813,
29901,
13,
462,
1678,
1596,
29898,
726,
29897,
13,
13,
9651,
2768,
353,
5852,
13,
9651,
1833,
29918,
2230,
3149,
353,
931,
3149,
13,
13,
4706,
1683,
29901,
13,
13,
9651,
2768,
353,
7700,
13,
13,
4706,
565,
25267,
29901,
13,
9651,
2479,
29918,
2557,
353,
19012,
29918,
25347,
29898,
13,
18884,
3515,
29918,
2080,
29889,
8552,
3285,
2927,
29892,
1426,
29892,
2602,
29892,
14100,
13,
9651,
1723,
13,
13,
9651,
565,
736,
29918,
6173,
29901,
13,
18884,
17117,
1121,
353,
13850,
29906,
29889,
326,
12508,
12839,
6173,
742,
2479,
29918,
2557,
29897,
13,
18884,
736,
1121,
29889,
517,
1807,
580,
13,
9651,
1683,
29901,
13,
18884,
13850,
29906,
29889,
326,
4294,
703,
6116,
8798,
5953,
3019,
613,
2479,
29918,
2557,
29897,
13,
18884,
565,
13850,
29906,
29889,
10685,
2558,
29898,
29896,
29897,
669,
29871,
29900,
29916,
600,
1275,
4356,
877,
29939,
29374,
13,
462,
1678,
2867,
13,
13,
13,
1753,
1667,
29898,
5085,
29922,
8516,
29892,
736,
29918,
2611,
1479,
29918,
2158,
29922,
8824,
1125,
13,
1678,
565,
6389,
338,
6213,
29901,
13,
4706,
6389,
353,
10876,
29889,
19218,
29961,
29896,
17531,
13,
13,
1678,
13812,
353,
1653,
29918,
1191,
16680,
580,
13,
1678,
6389,
353,
13812,
29889,
5510,
29918,
5085,
29898,
5085,
29897,
13,
13,
1678,
3081,
29918,
17471,
353,
6389,
29889,
13519,
29918,
17471,
13,
13,
1678,
8147,
29918,
29893,
1131,
353,
1653,
29918,
13519,
29918,
17471,
29918,
2220,
29898,
13519,
29918,
17471,
29897,
13,
13,
1678,
12422,
29879,
353,
19012,
29918,
1251,
12117,
29898,
5085,
29897,
13,
13,
1678,
8147,
29918,
29893,
1131,
353,
1284,
29918,
13519,
29918,
2220,
29898,
1251,
12117,
29892,
2322,
29922,
15807,
403,
29918,
29893,
1131,
29897,
13,
13,
1678,
2159,
29892,
2602,
29892,
14100,
353,
679,
29918,
29879,
7093,
29898,
5085,
29897,
13,
13,
1678,
10446,
353,
13850,
29906,
29889,
15167,
21133,
545,
29898,
5085,
29889,
17885,
545,
29918,
10141,
29897,
13,
1678,
10446,
29889,
842,
29898,
11023,
29906,
29889,
29907,
3301,
29918,
8618,
29925,
29918,
29943,
4717,
2303,
29918,
22574,
29892,
2159,
29961,
29900,
2314,
13,
1678,
10446,
29889,
842,
29898,
11023,
29906,
29889,
29907,
3301,
29918,
8618,
29925,
29918,
29943,
4717,
2303,
29918,
9606,
22530,
29892,
2159,
29961,
29896,
2314,
13,
13,
1678,
822,
10446,
29918,
2220,
7295,
13,
4706,
736,
10446,
29889,
949,
580,
29961,
29896,
29962,
13,
13,
1678,
822,
12422,
29918,
6717,
29898,
13478,
29918,
2798,
29922,
29900,
29892,
364,
3358,
29922,
29900,
1125,
13,
4706,
736,
12422,
29879,
29918,
4804,
29898,
13,
9651,
12422,
29879,
29892,
525,
6717,
742,
281,
1131,
29879,
29922,
15807,
403,
29918,
29893,
1131,
29898,
29878,
3358,
511,
6664,
29918,
2798,
29922,
13478,
29918,
2798,
29892,
364,
3358,
29922,
29878,
3358,
13,
4706,
1723,
13,
13,
1678,
1018,
29901,
13,
4706,
12422,
29879,
29918,
4804,
29898,
1251,
12117,
29892,
525,
2962,
1495,
13,
4706,
12422,
29918,
6717,
580,
13,
4706,
1596,
703,
17946,
1076,
9068,
1159,
13,
4706,
1121,
353,
1667,
29918,
7888,
29898,
13,
9651,
10446,
29918,
2220,
29892,
13,
9651,
2602,
29892,
13,
9651,
14100,
29892,
13,
9651,
6389,
29889,
386,
12268,
29892,
13,
9651,
12422,
29918,
6717,
29892,
13,
9651,
6389,
29889,
339,
2035,
29892,
13,
9651,
25267,
29922,
1333,
6389,
29889,
1217,
29918,
4990,
470,
6389,
29889,
14369,
29918,
26568,
29918,
25347,
29892,
13,
9651,
736,
29918,
6173,
29922,
5085,
29889,
14369,
29918,
26568,
29918,
25347,
29892,
13,
4706,
1723,
13,
4706,
565,
1121,
29901,
13,
9651,
565,
736,
29918,
2611,
1479,
29918,
2158,
29901,
13,
18884,
736,
1121,
13,
9651,
1683,
29901,
13,
18884,
10876,
29889,
25393,
29889,
9040,
29889,
3539,
29898,
2914,
29897,
13,
13,
1678,
7146,
29901,
13,
4706,
10446,
29889,
14096,
580,
13,
4706,
13850,
29906,
29889,
20524,
3596,
7685,
580,
13,
4706,
12422,
29918,
6717,
580,
13,
4706,
12422,
29879,
29918,
4804,
29898,
1251,
12117,
29892,
525,
9847,
1495,
13,
4706,
1596,
703,
29950,
1997,
287,
9068,
1159,
13,
2
] |
scraper/twitter.py | AgentHH/SBCFireDispatch | 2 | 1612302 | #!/usr/bin/python
import oauth2
import psycopg2
import simplejson
import urllib2
from config import *
token = oauth2.Token(key=access_token_key, secret=access_token_secret)
consumer = oauth2.Consumer(key=consumer_key, secret=consumer_secret)
signature_method = oauth2.SignatureMethod_HMAC_SHA1()
def get(url, **args):
method = 'GET'
parameters = args
request = oauth2.Request.from_consumer_and_token(consumer, token=token, http_method=method, http_url=url, parameters=parameters)
request.sign_request(signature_method, consumer, token)
if method == "POST":
post = request.to_postdata()
else:
post = None
url = request.to_url()
try:
file = urllib2.urlopen(url, post)
data = file.read()
except urllib2.HTTPError, e:
print e.read()
raise e
data = simplejson.loads(data)
return data
| [
1,
18787,
4855,
29914,
2109,
29914,
4691,
13,
13,
5215,
288,
5150,
29906,
13,
5215,
6529,
29891,
9708,
29887,
29906,
13,
5215,
2560,
3126,
13,
5215,
3142,
1982,
29906,
13,
13,
3166,
2295,
1053,
334,
13,
13,
6979,
353,
288,
5150,
29906,
29889,
6066,
29898,
1989,
29922,
5943,
29918,
6979,
29918,
1989,
29892,
7035,
29922,
5943,
29918,
6979,
29918,
19024,
29897,
13,
25978,
261,
353,
288,
5150,
29906,
29889,
13696,
4680,
29898,
1989,
29922,
25978,
261,
29918,
1989,
29892,
7035,
29922,
25978,
261,
29918,
19024,
29897,
13,
4530,
1535,
29918,
5696,
353,
288,
5150,
29906,
29889,
10140,
1535,
4062,
29918,
29950,
1529,
29907,
29918,
23498,
29896,
580,
13,
13,
1753,
679,
29898,
2271,
29892,
3579,
5085,
1125,
13,
1678,
1158,
353,
525,
7194,
29915,
13,
13,
1678,
4128,
353,
6389,
13,
13,
1678,
2009,
353,
288,
5150,
29906,
29889,
3089,
29889,
3166,
29918,
25978,
261,
29918,
392,
29918,
6979,
29898,
25978,
261,
29892,
5993,
29922,
6979,
29892,
1732,
29918,
5696,
29922,
5696,
29892,
1732,
29918,
2271,
29922,
2271,
29892,
4128,
29922,
16744,
29897,
13,
1678,
2009,
29889,
4530,
29918,
3827,
29898,
4530,
1535,
29918,
5696,
29892,
21691,
29892,
5993,
29897,
13,
13,
1678,
565,
1158,
1275,
376,
5438,
1115,
13,
4706,
1400,
353,
2009,
29889,
517,
29918,
2490,
1272,
580,
13,
1678,
1683,
29901,
13,
4706,
1400,
353,
6213,
13,
4706,
3142,
353,
2009,
29889,
517,
29918,
2271,
580,
13,
13,
1678,
1018,
29901,
13,
4706,
934,
353,
3142,
1982,
29906,
29889,
332,
417,
2238,
29898,
2271,
29892,
1400,
29897,
13,
4706,
848,
353,
934,
29889,
949,
580,
13,
1678,
5174,
3142,
1982,
29906,
29889,
10493,
2392,
29892,
321,
29901,
13,
4706,
1596,
321,
29889,
949,
580,
13,
4706,
12020,
321,
13,
13,
1678,
848,
353,
2560,
3126,
29889,
18132,
29898,
1272,
29897,
13,
1678,
736,
848,
13,
2
] |
attack.py | RishavMz/strategic_siege | 0 | 145729 | import pygame
from data.troops import *
from data.defenses import *
from data.attack_levels import *
import math
WIDTH = 800
HEIGHT = 600
state = 0
level = 0
totalDamageDone = 0
totalDamageTaken = 0
class Table:
def __init__(self,width,height):
self.width=width
self.height=height
self.canvas = canvas = pygame.display.set_mode((self.width,self.height))
def draw(self, st):
self.canvas = pygame.display.set_mode((self.width,self.height))
pygame.display.set_caption(st)
self.canvas.fill((0,0,0))
pygame.draw.rect(self.canvas, (255,255,255), (30,90, self.width - 60, self.height-90),2)
pygame.draw.rect(self.canvas, (255,255,255), (500,90, 300, self.height-90),1)
class Cards:
def __init__(self,table,posx,state,number):
self.table = table
self.posx = posx
self.posy = 10
self.height = 60
self.width = 50
self.state = state
self.number = number
def checkmouse(self,posx):
global state
if(posx >= self.posx) and (posx <= (self.posx+self.width)):
state = self.state
def draw(self):
pygame.draw.rect(self.table.canvas, (255,255,255), (self.posx,self.posy, self.width, self.height))
def assemble():
for i in levels[level].showcards():
cards.append(Cards(table1,i[0],i[1],i[2]))
for i in levels[level].showdefenses():
if(i[0]==1):
defence.append(Cannon(table1,i[1],i[2]))
elif(i[0]==2):
defence.append(Tower(table1,i[1],i[2]))
elif(i[0]==3):
defence.append(Bunker(table1,i[1],i[2]))
table1 = Table(WIDTH, HEIGHT)
Table_name="Battle_Machine"
run = True
army = []
cards = []
defence = []
assemble()
cardinfantryImage = pygame.image.load( 'images/cardinfantry.png')
cardarcherImage = pygame.image.load( 'images/cardarcher.png')
cardcavalryImage = pygame.image.load( 'images/cardcavalry.png')
cardheavycavalryImage = pygame.image.load('images/cardheavycavalry.png')
cannonImage = pygame.image.load( 'images/cannon.png')
towerImage = pygame.image.load( 'images/tower.png')
bunkerImage = pygame.image.load( 'images/bunker.png')
infantryImage = pygame.image.load( 'images/infantry.png')
archerImage = pygame.image.load( 'images/archer.png')
cavalryImage = pygame.image.load( 'images/cavalry.png')
heavycavalryImage = pygame.image.load( 'images/heavycavalry.png')
displaySpace = pygame.display.set_mode((600,700))
def distanceCalc(body1, body2):
return math.sqrt((body1.posx - body2.posx)**2 + (body1.posy - body2.posy)**2)
play = 0
while run:
table1.draw(Table_name)
for i in range(len(cards)):
if(state == (i+1)):
for j in range(cards[i].number):
pygame.draw.rect(table1.canvas, (255,255,255), (cards[i].posx + (j*4),75,2, 5))
if(len(army)>0):
play = 1
if(play==1 and len(defence)==0):
army=[]
cards = []
level += 1
if(level == len(levels)):
run = False
print("\nYou won\n")
print("Total damage done : ",totalDamageDone)
print("Total damage taken: ",totalDamageTaken)
print("\n")
break
assemble()
fallen = []
for i in range(len(army)):
army[i].draw()
if(army[i].health<=0):
fallen.append(i)
for i in fallen:
army.pop(i)
for i in defence:
i.draw()
for i in army:
if(len(defence)>0):
nearest , distance = None , 1000000
for j in range(len(defence)):
dist = distanceCalc(i,defence[j])
if(dist<distance):
nearest = j
distance = dist
if(nearest is not None):
if(abs(i.posx - defence[nearest].posx)<=i.range):
if(abs(i.posy - defence[nearest].posy)<=i.range):
defence[nearest].damage(i.strength)
totalDamageDone += i.strength
pygame.draw.line(table1.canvas,(68,85,90),(defence[nearest].posx-10,defence[nearest].posy-10),(i.posx,i.posy))
if(defence[nearest].health<=0):
defence.pop(nearest)
break
elif(i.posx > defence[j].posx):
i.movex(i.posx-i.speed)
elif(i.posx < defence[j].posx):
i.movex(i.posx+i.speed)
if(abs(i.posy - defence[nearest].posy)<=i.range):
pass
elif(i.posy > defence[j].posy):
i.movey(i.posy-i.speed)
elif(i.posy < defence[j].posy):
i.movey(i.posy+i.speed)
if(len(army)>0):
for i in range(len(defence)):
damagedata = defence[i].attack(army)
if(damagedata is not None):
pygame.draw.line(table1.canvas,(195,115,119),(defence[i].posx-10,defence[i].posy-10),(army[damagedata].posx,army[damagedata].posy))
army[damagedata].damage(defence[i].power)
totalDamageTaken += defence[i].power
cardsrem = 0
for i in cards:
cardsrem += i.number
if(len(army)==0 and len(defence)>0 and cardsrem == 0):
run = False
print("\n GAME OVER\n")
print("Total damage done : ",totalDamageDone)
print("Total damage taken: ",totalDamageTaken)
print("\n")
pygame.time.delay(10)
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
if event.type == pygame.MOUSEBUTTONUP:
pos = pygame.mouse.get_pos()
if(pos[1]<=60):
for i in cards:
i.checkmouse(pos[0])
elif(pos[1]>=100 and pos[0]<500):
if(state==1):
if(cards[0].number>0):
army.append(Infantry(table1,pos[0],pos[1]))
cards[0].number -= 1
elif(state==2):
if(cards[1].number>0):
army.append(Archer(table1,pos[0],pos[1]))
cards[1].number -= 1
elif(state==3):
if(cards[2].number>0):
army.append(Cavalry(table1,pos[0],pos[1]))
cards[2].number -= 1
elif(state==4):
if(cards[3].number>0):
army.append(HeavyCavalry(table1,pos[0],pos[1]))
cards[3].number -= 1
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_LEFT:
if(state>1):
state -= 1
if event.key == pygame.K_RIGHT:
if(state<=3):
state += 1
displaySpace.blit(cardinfantryImage,(cards[0].posx,cards[0].posy))
displaySpace.blit(cardarcherImage,(cards[1].posx,cards[1].posy))
displaySpace.blit(cardcavalryImage,(cards[2].posx,cards[2].posy))
displaySpace.blit(cardheavycavalryImage,(cards[3].posx,cards[3].posy))
for i in defence:
if(i.type=="cannon"):
displaySpace.blit(cannonImage,(i.posx-22,i.posy-22))
elif(i.type=="tower"):
displaySpace.blit(towerImage,(i.posx-15,i.posy-15))
elif(i.type=="bunker"):
displaySpace.blit(bunkerImage,(i.posx-22,i.posy-22))
for i in army:
if(i.type=="infantry"):
displaySpace.blit(infantryImage,(i.posx-10,i.posy-10))
elif(i.type=="archer"):
displaySpace.blit(archerImage,(i.posx-8,i.posy-8))
elif(i.type=="cavalry"):
displaySpace.blit(cavalryImage,(i.posx-6,i.posy-6))
elif(i.type=="heavycavalry"):
displaySpace.blit(heavycavalryImage,(i.posx-15,i.posy-15))
pygame.display.update()
pygame.quit()
| [
1,
1053,
22028,
13,
3166,
848,
29889,
29873,
307,
3554,
1053,
334,
13,
3166,
848,
29889,
1753,
11259,
1053,
334,
13,
3166,
848,
29889,
1131,
547,
29918,
5563,
29879,
1053,
334,
13,
13,
5215,
5844,
13,
13,
22574,
353,
29871,
29947,
29900,
29900,
13,
9606,
22530,
353,
29871,
29953,
29900,
29900,
13,
3859,
353,
29871,
29900,
13,
5563,
353,
29871,
29900,
13,
13,
7827,
29928,
314,
482,
25632,
353,
29871,
29900,
13,
7827,
29928,
314,
482,
29911,
9424,
353,
29871,
29900,
13,
13,
1990,
6137,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
2103,
29892,
3545,
1125,
13,
4706,
1583,
29889,
2103,
29922,
2103,
13,
4706,
1583,
29889,
3545,
29922,
3545,
13,
4706,
1583,
29889,
15257,
353,
10508,
353,
22028,
29889,
4990,
29889,
842,
29918,
8513,
3552,
1311,
29889,
2103,
29892,
1311,
29889,
3545,
876,
13,
1678,
822,
4216,
29898,
1311,
29892,
380,
1125,
13,
4706,
1583,
29889,
15257,
353,
22028,
29889,
4990,
29889,
842,
29918,
8513,
3552,
1311,
29889,
2103,
29892,
1311,
29889,
3545,
876,
13,
4706,
22028,
29889,
4990,
29889,
842,
29918,
6671,
29898,
303,
29897,
13,
4706,
1583,
29889,
15257,
29889,
5589,
3552,
29900,
29892,
29900,
29892,
29900,
876,
13,
4706,
22028,
29889,
4012,
29889,
1621,
29898,
1311,
29889,
15257,
29892,
313,
29906,
29945,
29945,
29892,
29906,
29945,
29945,
29892,
29906,
29945,
29945,
511,
313,
29941,
29900,
29892,
29929,
29900,
29892,
1583,
29889,
2103,
448,
29871,
29953,
29900,
29892,
1583,
29889,
3545,
29899,
29929,
29900,
511,
29906,
29897,
418,
13,
4706,
22028,
29889,
4012,
29889,
1621,
29898,
1311,
29889,
15257,
29892,
313,
29906,
29945,
29945,
29892,
29906,
29945,
29945,
29892,
29906,
29945,
29945,
511,
313,
29945,
29900,
29900,
29892,
29929,
29900,
29892,
29871,
29941,
29900,
29900,
29892,
1583,
29889,
3545,
29899,
29929,
29900,
511,
29896,
29897,
1678,
13,
13,
13,
1990,
315,
3163,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
2371,
29892,
1066,
29916,
29892,
3859,
29892,
4537,
1125,
13,
4706,
1583,
29889,
2371,
353,
1591,
13,
4706,
1583,
29889,
1066,
29916,
353,
926,
29916,
13,
4706,
1583,
29889,
1066,
29891,
353,
29871,
29896,
29900,
13,
4706,
1583,
29889,
3545,
353,
29871,
29953,
29900,
13,
4706,
1583,
29889,
2103,
353,
29871,
29945,
29900,
13,
4706,
1583,
29889,
3859,
353,
2106,
259,
13,
4706,
1583,
29889,
4537,
353,
1353,
1678,
13,
1678,
822,
1423,
15769,
29898,
1311,
29892,
1066,
29916,
1125,
13,
4706,
5534,
2106,
13,
4706,
565,
29898,
1066,
29916,
6736,
1583,
29889,
1066,
29916,
29897,
322,
313,
1066,
29916,
5277,
313,
1311,
29889,
1066,
29916,
29974,
1311,
29889,
2103,
22164,
13,
9651,
2106,
353,
1583,
29889,
3859,
13,
1678,
822,
4216,
29898,
1311,
1125,
418,
13,
4706,
22028,
29889,
4012,
29889,
1621,
29898,
1311,
29889,
2371,
29889,
15257,
29892,
313,
29906,
29945,
29945,
29892,
29906,
29945,
29945,
29892,
29906,
29945,
29945,
511,
313,
1311,
29889,
1066,
29916,
29892,
1311,
29889,
1066,
29891,
29892,
1583,
29889,
2103,
29892,
1583,
29889,
3545,
876,
418,
13,
1678,
13,
13,
1753,
24940,
7295,
13,
1678,
363,
474,
297,
11174,
29961,
5563,
1822,
4294,
28160,
7295,
13,
4706,
15889,
29889,
4397,
29898,
29907,
3163,
29898,
2371,
29896,
29892,
29875,
29961,
29900,
1402,
29875,
29961,
29896,
1402,
29875,
29961,
29906,
12622,
29871,
13,
13,
1678,
363,
474,
297,
11174,
29961,
5563,
1822,
4294,
1753,
11259,
7295,
13,
4706,
565,
29898,
29875,
29961,
29900,
29962,
1360,
29896,
1125,
13,
9651,
28399,
29889,
4397,
29898,
29907,
23453,
29898,
2371,
29896,
29892,
29875,
29961,
29896,
1402,
29875,
29961,
29906,
12622,
13,
4706,
25342,
29898,
29875,
29961,
29900,
29962,
1360,
29906,
1125,
13,
9651,
28399,
29889,
4397,
29898,
29911,
1680,
29898,
2371,
29896,
29892,
29875,
29961,
29896,
1402,
29875,
29961,
29906,
12622,
13,
4706,
25342,
29898,
29875,
29961,
29900,
29962,
1360,
29941,
1125,
13,
9651,
28399,
29889,
4397,
29898,
29933,
27560,
29898,
2371,
29896,
29892,
29875,
29961,
29896,
1402,
29875,
29961,
29906,
12622,
268,
13,
13,
13,
13,
2371,
29896,
353,
6137,
29898,
22574,
29892,
17714,
22530,
29897,
13,
3562,
29918,
978,
543,
29933,
5315,
29918,
29076,
29908,
13,
13,
3389,
353,
5852,
13,
279,
1357,
353,
5159,
13,
28160,
353,
5159,
13,
1753,
663,
353,
5159,
268,
13,
13,
465,
6967,
580,
13,
13,
7543,
7192,
15328,
2940,
353,
22028,
29889,
3027,
29889,
1359,
29898,
1678,
525,
8346,
29914,
7543,
7192,
15328,
29889,
2732,
1495,
13,
7543,
1279,
261,
2940,
353,
22028,
29889,
3027,
29889,
1359,
29898,
418,
525,
8346,
29914,
7543,
1279,
261,
29889,
2732,
1495,
13,
7543,
29883,
7712,
719,
2940,
353,
22028,
29889,
3027,
29889,
1359,
29898,
268,
525,
8346,
29914,
7543,
29883,
7712,
719,
29889,
2732,
1495,
13,
7543,
354,
5301,
29883,
7712,
719,
2940,
353,
22028,
29889,
3027,
29889,
1359,
877,
8346,
29914,
7543,
354,
5301,
29883,
7712,
719,
29889,
2732,
1495,
13,
29883,
23453,
2940,
353,
22028,
29889,
3027,
29889,
1359,
29898,
3986,
525,
8346,
29914,
29883,
23453,
29889,
2732,
1495,
13,
29873,
1680,
2940,
353,
22028,
29889,
3027,
29889,
1359,
29898,
965,
525,
8346,
29914,
29873,
1680,
29889,
2732,
1495,
13,
29890,
27560,
2940,
353,
22028,
29889,
3027,
29889,
1359,
29898,
965,
525,
8346,
29914,
29890,
27560,
29889,
2732,
1495,
13,
7192,
15328,
2940,
353,
22028,
29889,
3027,
29889,
1359,
29898,
4706,
525,
8346,
29914,
7192,
15328,
29889,
2732,
1495,
13,
1279,
261,
2940,
353,
22028,
29889,
3027,
29889,
1359,
29898,
3986,
525,
8346,
29914,
1279,
261,
29889,
2732,
1495,
13,
29883,
7712,
719,
2940,
353,
22028,
29889,
3027,
29889,
1359,
29898,
308,
525,
8346,
29914,
29883,
7712,
719,
29889,
2732,
1495,
13,
354,
5301,
29883,
7712,
719,
2940,
353,
22028,
29889,
3027,
29889,
1359,
29898,
1678,
525,
8346,
29914,
354,
5301,
29883,
7712,
719,
29889,
2732,
1495,
13,
4990,
14936,
353,
22028,
29889,
4990,
29889,
842,
29918,
8513,
3552,
29953,
29900,
29900,
29892,
29955,
29900,
29900,
876,
13,
13,
1753,
5418,
7856,
29883,
29898,
2587,
29896,
29892,
3573,
29906,
1125,
13,
1678,
736,
5844,
29889,
3676,
3552,
2587,
29896,
29889,
1066,
29916,
448,
3573,
29906,
29889,
1066,
29916,
29897,
1068,
29906,
718,
313,
2587,
29896,
29889,
1066,
29891,
448,
3573,
29906,
29889,
1066,
29891,
29897,
1068,
29906,
29897,
13,
13,
13,
1456,
353,
29871,
29900,
13,
13,
8000,
1065,
29901,
13,
1678,
1591,
29896,
29889,
4012,
29898,
3562,
29918,
978,
29897,
13,
13,
1678,
363,
474,
297,
3464,
29898,
2435,
29898,
28160,
22164,
13,
4706,
565,
29898,
3859,
1275,
313,
29875,
29974,
29896,
22164,
13,
9651,
363,
432,
297,
3464,
29898,
28160,
29961,
29875,
1822,
4537,
1125,
13,
18884,
22028,
29889,
4012,
29889,
1621,
29898,
2371,
29896,
29889,
15257,
29892,
313,
29906,
29945,
29945,
29892,
29906,
29945,
29945,
29892,
29906,
29945,
29945,
511,
313,
28160,
29961,
29875,
1822,
1066,
29916,
718,
313,
29926,
29930,
29946,
511,
29955,
29945,
29892,
29906,
29892,
29871,
29945,
876,
462,
268,
13,
13,
1678,
565,
29898,
2435,
29898,
279,
1357,
15410,
29900,
1125,
13,
4706,
1708,
353,
29871,
29896,
13,
1678,
565,
29898,
1456,
1360,
29896,
322,
7431,
29898,
1753,
663,
29897,
1360,
29900,
1125,
13,
4706,
9987,
29922,
2636,
13,
4706,
15889,
353,
5159,
13,
4706,
3233,
4619,
29871,
29896,
13,
4706,
565,
29898,
5563,
1275,
7431,
29898,
5563,
29879,
22164,
13,
9651,
1065,
353,
7700,
13,
9651,
1596,
14182,
29876,
3492,
2113,
29905,
29876,
1159,
13,
9651,
1596,
703,
11536,
18658,
2309,
584,
9162,
7827,
29928,
314,
482,
25632,
29897,
13,
9651,
1596,
703,
11536,
18658,
4586,
29901,
9162,
7827,
29928,
314,
482,
29911,
9424,
29897,
259,
13,
9651,
1596,
14182,
29876,
1159,
13,
9651,
2867,
13,
4706,
24940,
580,
13,
13,
418,
13,
13,
1678,
19225,
353,
5159,
13,
1678,
363,
474,
297,
3464,
29898,
2435,
29898,
279,
1357,
22164,
13,
4706,
9987,
29961,
29875,
1822,
4012,
580,
13,
4706,
565,
29898,
279,
1357,
29961,
29875,
1822,
354,
4298,
14065,
29900,
1125,
13,
9651,
19225,
29889,
4397,
29898,
29875,
29897,
13,
1678,
363,
474,
297,
19225,
29901,
13,
4706,
9987,
29889,
7323,
29898,
29875,
29897,
965,
13,
13,
13,
1678,
363,
474,
297,
28399,
29901,
13,
4706,
474,
29889,
4012,
580,
13,
13,
1678,
363,
474,
297,
9987,
29901,
13,
4706,
565,
29898,
2435,
29898,
1753,
663,
15410,
29900,
1125,
13,
9651,
20471,
1919,
5418,
353,
6213,
1919,
29871,
29896,
29900,
29900,
29900,
29900,
29900,
29900,
13,
9651,
363,
432,
297,
3464,
29898,
2435,
29898,
1753,
663,
22164,
13,
18884,
1320,
353,
5418,
7856,
29883,
29898,
29875,
29892,
1753,
663,
29961,
29926,
2314,
13,
18884,
565,
29898,
5721,
29966,
19244,
1125,
13,
462,
1678,
20471,
353,
432,
13,
462,
1678,
5418,
353,
1320,
13,
9651,
565,
29898,
28502,
342,
338,
451,
6213,
1125,
308,
13,
18884,
565,
29898,
6897,
29898,
29875,
29889,
1066,
29916,
448,
28399,
29961,
28502,
342,
1822,
1066,
29916,
29897,
14065,
29875,
29889,
3881,
1125,
13,
462,
1678,
565,
29898,
6897,
29898,
29875,
29889,
1066,
29891,
448,
28399,
29961,
28502,
342,
1822,
1066,
29891,
29897,
14065,
29875,
29889,
3881,
1125,
13,
462,
4706,
28399,
29961,
28502,
342,
1822,
16846,
482,
29898,
29875,
29889,
710,
1477,
29897,
13,
462,
4706,
3001,
29928,
314,
482,
25632,
4619,
474,
29889,
710,
1477,
13,
462,
4706,
22028,
29889,
4012,
29889,
1220,
29898,
2371,
29896,
29889,
15257,
22657,
29953,
29947,
29892,
29947,
29945,
29892,
29929,
29900,
21336,
1753,
663,
29961,
28502,
342,
1822,
1066,
29916,
29899,
29896,
29900,
29892,
1753,
663,
29961,
28502,
342,
1822,
1066,
29891,
29899,
29896,
29900,
21336,
29875,
29889,
1066,
29916,
29892,
29875,
29889,
1066,
29891,
876,
29871,
13,
462,
4706,
565,
29898,
1753,
663,
29961,
28502,
342,
1822,
354,
4298,
14065,
29900,
1125,
13,
462,
9651,
28399,
29889,
7323,
29898,
28502,
342,
29897,
13,
462,
9651,
2867,
13,
18884,
25342,
29898,
29875,
29889,
1066,
29916,
1405,
28399,
29961,
29926,
1822,
1066,
29916,
1125,
13,
462,
1678,
474,
29889,
11631,
29916,
29898,
29875,
29889,
1066,
29916,
29899,
29875,
29889,
19322,
29897,
13,
18884,
25342,
29898,
29875,
29889,
1066,
29916,
529,
28399,
29961,
29926,
1822,
1066,
29916,
1125,
13,
462,
1678,
474,
29889,
11631,
29916,
29898,
29875,
29889,
1066,
29916,
29974,
29875,
29889,
19322,
29897,
1678,
13,
18884,
565,
29898,
6897,
29898,
29875,
29889,
1066,
29891,
448,
28399,
29961,
28502,
342,
1822,
1066,
29891,
29897,
14065,
29875,
29889,
3881,
1125,
13,
462,
1678,
1209,
13,
18884,
25342,
29898,
29875,
29889,
1066,
29891,
1405,
28399,
29961,
29926,
1822,
1066,
29891,
1125,
13,
462,
1678,
474,
29889,
11631,
29891,
29898,
29875,
29889,
1066,
29891,
29899,
29875,
29889,
19322,
29897,
13,
18884,
25342,
29898,
29875,
29889,
1066,
29891,
529,
28399,
29961,
29926,
1822,
1066,
29891,
1125,
13,
462,
1678,
474,
29889,
11631,
29891,
29898,
29875,
29889,
1066,
29891,
29974,
29875,
29889,
19322,
29897,
539,
13,
13,
462,
539,
13,
268,
13,
13,
1678,
565,
29898,
2435,
29898,
279,
1357,
15410,
29900,
1125,
13,
4706,
363,
474,
297,
3464,
29898,
2435,
29898,
1753,
663,
22164,
268,
13,
9651,
5625,
4063,
532,
353,
28399,
29961,
29875,
1822,
1131,
547,
29898,
279,
1357,
29897,
13,
9651,
565,
29898,
16846,
4063,
532,
338,
451,
6213,
1125,
13,
18884,
22028,
29889,
4012,
29889,
1220,
29898,
2371,
29896,
29889,
15257,
22657,
29896,
29929,
29945,
29892,
29896,
29896,
29945,
29892,
29896,
29896,
29929,
21336,
1753,
663,
29961,
29875,
1822,
1066,
29916,
29899,
29896,
29900,
29892,
1753,
663,
29961,
29875,
1822,
1066,
29891,
29899,
29896,
29900,
21336,
279,
1357,
29961,
16846,
4063,
532,
1822,
1066,
29916,
29892,
279,
1357,
29961,
16846,
4063,
532,
1822,
1066,
29891,
876,
29871,
13,
18884,
9987,
29961,
16846,
4063,
532,
1822,
16846,
482,
29898,
1753,
663,
29961,
29875,
1822,
13519,
29897,
13,
18884,
3001,
29928,
314,
482,
29911,
9424,
4619,
28399,
29961,
29875,
1822,
13519,
13,
1678,
15889,
1745,
353,
29871,
29900,
13,
1678,
363,
474,
297,
15889,
29901,
13,
4706,
15889,
1745,
4619,
474,
29889,
4537,
13,
1678,
565,
29898,
2435,
29898,
279,
1357,
29897,
1360,
29900,
322,
7431,
29898,
1753,
663,
15410,
29900,
322,
15889,
1745,
1275,
29871,
29900,
1125,
13,
4706,
1065,
353,
7700,
13,
4706,
1596,
14182,
29876,
402,
25797,
438,
5348,
29905,
29876,
1159,
13,
4706,
1596,
703,
11536,
18658,
2309,
584,
9162,
7827,
29928,
314,
482,
25632,
29897,
13,
4706,
1596,
703,
11536,
18658,
4586,
29901,
9162,
7827,
29928,
314,
482,
29911,
9424,
29897,
259,
13,
4706,
1596,
14182,
29876,
1159,
462,
259,
13,
13,
13,
1678,
22028,
29889,
2230,
29889,
18829,
29898,
29896,
29900,
29897,
13,
13,
1678,
363,
1741,
297,
22028,
29889,
3696,
29889,
657,
7295,
13,
4706,
565,
1741,
29889,
1853,
1275,
22028,
29889,
13356,
1806,
29901,
13,
9651,
1065,
353,
7700,
29871,
13,
13,
4706,
565,
1741,
29889,
1853,
1275,
22028,
29889,
6720,
17171,
29933,
2692,
29911,
1164,
4897,
29901,
13,
9651,
926,
353,
22028,
29889,
15769,
29889,
657,
29918,
1066,
580,
13,
9651,
565,
29898,
1066,
29961,
29896,
29962,
14065,
29953,
29900,
1125,
13,
18884,
363,
474,
297,
15889,
29901,
13,
462,
1678,
474,
29889,
3198,
15769,
29898,
1066,
29961,
29900,
2314,
13,
9651,
25342,
29898,
1066,
29961,
29896,
29962,
18572,
29896,
29900,
29900,
322,
926,
29961,
29900,
29962,
29966,
29945,
29900,
29900,
1125,
13,
18884,
565,
29898,
3859,
1360,
29896,
1125,
418,
13,
462,
1678,
565,
29898,
28160,
29961,
29900,
1822,
4537,
29958,
29900,
1125,
1678,
13,
462,
4706,
9987,
29889,
4397,
29898,
25433,
15328,
29898,
2371,
29896,
29892,
1066,
29961,
29900,
1402,
1066,
29961,
29896,
12622,
13,
462,
4706,
15889,
29961,
29900,
1822,
4537,
22361,
29871,
29896,
13,
18884,
25342,
29898,
3859,
1360,
29906,
1125,
13,
462,
1678,
565,
29898,
28160,
29961,
29896,
1822,
4537,
29958,
29900,
1125,
13,
462,
4706,
9987,
29889,
4397,
29898,
1433,
4630,
29898,
2371,
29896,
29892,
1066,
29961,
29900,
1402,
1066,
29961,
29896,
12622,
13,
462,
4706,
15889,
29961,
29896,
1822,
4537,
22361,
29871,
29896,
13,
18884,
25342,
29898,
3859,
1360,
29941,
1125,
13,
462,
1678,
565,
29898,
28160,
29961,
29906,
1822,
4537,
29958,
29900,
1125,
13,
462,
4706,
9987,
29889,
4397,
29898,
29907,
7712,
719,
29898,
2371,
29896,
29892,
1066,
29961,
29900,
1402,
1066,
29961,
29896,
12622,
13,
462,
4706,
15889,
29961,
29906,
1822,
4537,
22361,
29871,
29896,
13,
18884,
25342,
29898,
3859,
1360,
29946,
1125,
13,
462,
1678,
565,
29898,
28160,
29961,
29941,
1822,
4537,
29958,
29900,
1125,
13,
462,
4706,
9987,
29889,
4397,
29898,
3868,
5301,
29907,
7712,
719,
29898,
2371,
29896,
29892,
1066,
29961,
29900,
1402,
1066,
29961,
29896,
12622,
13,
462,
4706,
15889,
29961,
29941,
1822,
4537,
22361,
29871,
29896,
13,
4706,
565,
1741,
29889,
1853,
1275,
22028,
29889,
10818,
3970,
16048,
29901,
13,
9651,
565,
1741,
29889,
1989,
1275,
22028,
29889,
29968,
29918,
28024,
29901,
13,
18884,
565,
29898,
3859,
29958,
29896,
1125,
13,
462,
1678,
2106,
22361,
29871,
29896,
13,
9651,
565,
1741,
29889,
1989,
1275,
22028,
29889,
29968,
29918,
22789,
3912,
29901,
13,
18884,
565,
29898,
3859,
14065,
29941,
1125,
13,
462,
1678,
2106,
4619,
29871,
29896,
18884,
13,
13,
13,
1678,
2479,
14936,
29889,
2204,
277,
29898,
7543,
7192,
15328,
2940,
22657,
28160,
29961,
29900,
1822,
1066,
29916,
29892,
28160,
29961,
29900,
1822,
1066,
29891,
876,
13,
1678,
2479,
14936,
29889,
2204,
277,
29898,
7543,
1279,
261,
2940,
22657,
28160,
29961,
29896,
1822,
1066,
29916,
29892,
28160,
29961,
29896,
1822,
1066,
29891,
876,
418,
13,
1678,
2479,
14936,
29889,
2204,
277,
29898,
7543,
29883,
7712,
719,
2940,
22657,
28160,
29961,
29906,
1822,
1066,
29916,
29892,
28160,
29961,
29906,
1822,
1066,
29891,
876,
13,
1678,
2479,
14936,
29889,
2204,
277,
29898,
7543,
354,
5301,
29883,
7712,
719,
2940,
22657,
28160,
29961,
29941,
1822,
1066,
29916,
29892,
28160,
29961,
29941,
1822,
1066,
29891,
876,
13,
1678,
363,
474,
297,
28399,
29901,
13,
4706,
565,
29898,
29875,
29889,
1853,
26359,
29883,
23453,
29908,
1125,
13,
9651,
2479,
14936,
29889,
2204,
277,
29898,
29883,
23453,
2940,
22657,
29875,
29889,
1066,
29916,
29899,
29906,
29906,
29892,
29875,
29889,
1066,
29891,
29899,
29906,
29906,
876,
13,
4706,
25342,
29898,
29875,
29889,
1853,
26359,
29873,
1680,
29908,
1125,
13,
9651,
2479,
14936,
29889,
2204,
277,
29898,
29873,
1680,
2940,
22657,
29875,
29889,
1066,
29916,
29899,
29896,
29945,
29892,
29875,
29889,
1066,
29891,
29899,
29896,
29945,
876,
29871,
13,
4706,
25342,
29898,
29875,
29889,
1853,
26359,
29890,
27560,
29908,
1125,
13,
9651,
2479,
14936,
29889,
2204,
277,
29898,
29890,
27560,
2940,
22657,
29875,
29889,
1066,
29916,
29899,
29906,
29906,
29892,
29875,
29889,
1066,
29891,
29899,
29906,
29906,
876,
4706,
13,
1678,
363,
474,
297,
9987,
29901,
13,
4706,
565,
29898,
29875,
29889,
1853,
26359,
7192,
15328,
29908,
1125,
13,
9651,
2479,
14936,
29889,
2204,
277,
29898,
7192,
15328,
2940,
22657,
29875,
29889,
1066,
29916,
29899,
29896,
29900,
29892,
29875,
29889,
1066,
29891,
29899,
29896,
29900,
876,
13,
4706,
25342,
29898,
29875,
29889,
1853,
26359,
1279,
261,
29908,
1125,
13,
9651,
2479,
14936,
29889,
2204,
277,
29898,
1279,
261,
2940,
22657,
29875,
29889,
1066,
29916,
29899,
29947,
29892,
29875,
29889,
1066,
29891,
29899,
29947,
876,
13,
4706,
25342,
29898,
29875,
29889,
1853,
26359,
29883,
7712,
719,
29908,
1125,
13,
9651,
2479,
14936,
29889,
2204,
277,
29898,
29883,
7712,
719,
2940,
22657,
29875,
29889,
1066,
29916,
29899,
29953,
29892,
29875,
29889,
1066,
29891,
29899,
29953,
876,
13,
4706,
25342,
29898,
29875,
29889,
1853,
26359,
354,
5301,
29883,
7712,
719,
29908,
1125,
13,
9651,
2479,
14936,
29889,
2204,
277,
29898,
354,
5301,
29883,
7712,
719,
2940,
22657,
29875,
29889,
1066,
29916,
29899,
29896,
29945,
29892,
29875,
29889,
1066,
29891,
29899,
29896,
29945,
876,
13,
13,
13,
1678,
22028,
29889,
4990,
29889,
5504,
580,
13,
2272,
11802,
29889,
28358,
580,
1678,
13,
13,
2
] |
hmc/applications/banana/banana.py | JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo | 1 | 10740 | from typing import Callable, Tuple
import numpy as np
def posterior_factory(y: np.ndarray, sigma_y: float, sigma_theta: float) -> Tuple[Callable]:
"""The banana distribution is a distribution that exhibits a characteristic
banana-shaped ridge that resembles the posterior that can emerge from
models that are not identifiable. The distribution is the posterior of the
following generative model.
y ~ Normal(theta[0] + theta[1]**2, sigma_sq_y)
theta[i] ~ Normal(0, sigma_sq_theta)
Args:
y: Observations of the banana model.
sigma_y: Standard deviation of the observations.
sigma_theta: Standard deviation of prior over linear coefficients.
Returns:
log_posterior: Function to compute the log-posterior.
metric: Function to compute the Fisher information metric.
euclidean_auxiliaries: Function to compute the log-posterior and its
gradient.
riemannian_auxiliaries: Function to compute the log-posterior, the
gradient of the log-posterior, the Fisher information metric, and the
derivatives of the Fisher information metric.
"""
sigma_sq_y = np.square(sigma_y)
sigma_sq_theta = np.square(sigma_theta)
def log_posterior(theta: np.ndarray) -> float:
"""The banana-shaped distribution posterior.
Args:
theta: Linear coefficients.
Returns:
out: The log-posterior of the banana-shaped distribution.
"""
p = theta[0] + np.square(theta[1])
ll = -0.5 / sigma_sq_y * np.square(y - p).sum()
lp = -0.5 / sigma_sq_theta * np.square(theta).sum()
return ll + lp
def grad_log_posterior(theta: np.ndarray) -> np.ndarray:
"""Gradient of the banana-shaped distribution with respect to the linear
coefficients.
Args:
theta: Linear coefficients.
Returns:
out: The gradient of the log-posterior of the banana-shaped
distribution with respect to the linear coefficients.
"""
p = theta[0] + np.square(theta[1])
d = np.sum(y - p)
ga = d / sigma_sq_y - theta[0] / sigma_sq_theta
gb = 2.0*d / sigma_sq_y * theta[1] - theta[1] / sigma_sq_theta
return np.hstack((ga, gb))
def metric(theta: np.ndarray) -> np.ndarray:
"""The Fisher information is the negative expected outer product of the
gradient of the posterior.
Args:
theta: Linear coefficients.
Returns:
G: The Fisher information metric of the banana-shaped distribution.
"""
n = y.size
s = 2.0*n*theta[1] / sigma_sq_y
G = np.array([[n / sigma_sq_y + 1.0 / sigma_sq_theta, s],
[s, 4.0*n*np.square(theta[1]) / sigma_sq_y + 1.0 / sigma_sq_theta]])
return G
def grad_metric(theta: np.ndarray) -> np.ndarray:
"""The gradient of the Fisher information metric with respect to the linear
coefficients.
Args:
theta: Linear coefficients.
Returns:
dG: The gradient of the Fisher information metric with respect to the
linear coefficients.
"""
n = y.size
dG = np.array([
[[0.0, 0.0], [0.0, 2.0*n / sigma_sq_y]],
[[0.0, 2.0*n / sigma_sq_y], [0.0, 8.0*n*theta[1] / sigma_sq_y]]
])
return dG
def euclidean_auxiliaries(theta: np.ndarray) -> Tuple[np.ndarray]:
"""Function to compute the log-posterior and the gradient of the
log-posterior.
Args:
theta: Linear coefficients.
Returns:
lp: The log-posterior of the banana-shaped distribution.
glp: The gradient of the log-posterior of the banana-shaped
distribution with respect to the linear coefficients.
"""
lp = log_posterior(theta)
glp = grad_log_posterior(theta)
return lp, glp
def riemannnian_auxiliaries(theta: np.ndarray) -> Tuple[np.ndarray]:
"""Function to compute the log-posterior, the gradient of the log-posterior,
the Fisher information metric and the derivatives of the Fisher
information metric.
Args:
theta: Linear coefficients.
Returns:
lp: The log-posterior of the banana-shaped distribution.
glp: The gradient of the log-posterior of the banana-shaped
distribution with respect to the linear coefficients.
G: The Fisher information metric of the banana-shaped distribution.
dG: The gradient of the Fisher information metric with respect to the
linear coefficients.
"""
lp = log_posterior(theta)
glp = grad_log_posterior(theta)
G = metric(theta)
dG = grad_metric(theta)
return lp, glp, G, dG
def log_posterior_and_metric(theta: np.ndarray) -> Tuple[np.ndarray]:
lp = log_posterior(theta)
G = metric(theta)
return lp, G
return log_posterior, metric, log_posterior_and_metric, euclidean_auxiliaries, riemannnian_auxiliaries
def generate_data(t: float, sigma_y: float, sigma_theta: float, num_obs: int) -> np.ndarray:
"""Generate data from the banana-shaped posterior distribution.
Args:
t: Free-parameter determining the thetas.
sigma_y: Noise standard deviation.
sigma_theta: Prior standard deviation over the thetas.
num_obs: Number of observations to generate.
Returns:
theta: Linear coefficients of the banana-shaped distribution.
y: Observations from the unidentifiable model.
"""
theta = np.array([t, np.sqrt(1.0 - t)])
y = theta[0] + np.square(theta[1]) + sigma_y * np.random.normal(size=(num_obs, ))
return theta, y
| [
1,
515,
19229,
1053,
8251,
519,
29892,
12603,
552,
13,
13,
5215,
12655,
408,
7442,
13,
13,
13,
1753,
13446,
29918,
14399,
29898,
29891,
29901,
7442,
29889,
299,
2378,
29892,
269,
2934,
29918,
29891,
29901,
5785,
29892,
269,
2934,
29918,
3416,
29901,
5785,
29897,
1599,
12603,
552,
29961,
5594,
519,
5387,
13,
1678,
9995,
1576,
9892,
1648,
4978,
338,
263,
4978,
393,
10371,
1169,
263,
17443,
13,
1678,
9892,
1648,
29899,
845,
10501,
364,
5525,
393,
620,
1590,
793,
278,
13446,
393,
508,
11176,
479,
515,
13,
1678,
4733,
393,
526,
451,
2893,
28677,
29889,
450,
4978,
338,
278,
13446,
310,
278,
13,
1678,
1494,
1176,
1230,
1904,
29889,
13,
13,
4706,
343,
3695,
21981,
29898,
3416,
29961,
29900,
29962,
718,
278,
941,
29961,
29896,
29962,
1068,
29906,
29892,
269,
2934,
29918,
3044,
29918,
29891,
29897,
13,
4706,
278,
941,
29961,
29875,
29962,
3695,
21981,
29898,
29900,
29892,
269,
2934,
29918,
3044,
29918,
3416,
29897,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
343,
29901,
21651,
800,
310,
278,
9892,
1648,
1904,
29889,
13,
4706,
269,
2934,
29918,
29891,
29901,
10117,
29522,
310,
278,
13917,
29889,
13,
4706,
269,
2934,
29918,
3416,
29901,
10117,
29522,
310,
7536,
975,
5608,
16127,
29889,
13,
13,
1678,
16969,
29901,
13,
4706,
1480,
29918,
2490,
261,
1611,
29901,
6680,
304,
10272,
278,
1480,
29899,
2490,
261,
1611,
29889,
13,
4706,
12714,
29901,
6680,
304,
10272,
278,
12030,
261,
2472,
12714,
29889,
13,
4706,
321,
27511,
29918,
2993,
2638,
4314,
29901,
6680,
304,
10272,
278,
1480,
29899,
2490,
261,
1611,
322,
967,
13,
9651,
16030,
29889,
13,
4706,
364,
23745,
713,
29918,
2993,
2638,
4314,
29901,
6680,
304,
10272,
278,
1480,
29899,
2490,
261,
1611,
29892,
278,
13,
9651,
16030,
310,
278,
1480,
29899,
2490,
261,
1611,
29892,
278,
12030,
261,
2472,
12714,
29892,
322,
278,
13,
9651,
25748,
310,
278,
12030,
261,
2472,
12714,
29889,
13,
13,
1678,
9995,
13,
1678,
269,
2934,
29918,
3044,
29918,
29891,
353,
7442,
29889,
17619,
29898,
3754,
29918,
29891,
29897,
13,
1678,
269,
2934,
29918,
3044,
29918,
3416,
353,
7442,
29889,
17619,
29898,
3754,
29918,
3416,
29897,
13,
13,
1678,
822,
1480,
29918,
2490,
261,
1611,
29898,
3416,
29901,
7442,
29889,
299,
2378,
29897,
1599,
5785,
29901,
13,
4706,
9995,
1576,
9892,
1648,
29899,
845,
10501,
4978,
13446,
29889,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
278,
941,
29901,
22985,
16127,
29889,
13,
13,
4706,
16969,
29901,
13,
9651,
714,
29901,
450,
1480,
29899,
2490,
261,
1611,
310,
278,
9892,
1648,
29899,
845,
10501,
4978,
29889,
13,
13,
4706,
9995,
13,
4706,
282,
353,
278,
941,
29961,
29900,
29962,
718,
7442,
29889,
17619,
29898,
3416,
29961,
29896,
2314,
13,
4706,
11148,
353,
448,
29900,
29889,
29945,
847,
269,
2934,
29918,
3044,
29918,
29891,
334,
7442,
29889,
17619,
29898,
29891,
448,
282,
467,
2083,
580,
13,
4706,
301,
29886,
353,
448,
29900,
29889,
29945,
847,
269,
2934,
29918,
3044,
29918,
3416,
334,
7442,
29889,
17619,
29898,
3416,
467,
2083,
580,
13,
4706,
736,
11148,
718,
301,
29886,
13,
13,
1678,
822,
4656,
29918,
1188,
29918,
2490,
261,
1611,
29898,
3416,
29901,
7442,
29889,
299,
2378,
29897,
1599,
7442,
29889,
299,
2378,
29901,
13,
4706,
9995,
25584,
993,
310,
278,
9892,
1648,
29899,
845,
10501,
4978,
411,
3390,
304,
278,
5608,
13,
4706,
16127,
29889,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
278,
941,
29901,
22985,
16127,
29889,
13,
13,
4706,
16969,
29901,
13,
9651,
714,
29901,
450,
16030,
310,
278,
1480,
29899,
2490,
261,
1611,
310,
278,
9892,
1648,
29899,
845,
10501,
13,
18884,
4978,
411,
3390,
304,
278,
5608,
16127,
29889,
13,
13,
4706,
9995,
13,
4706,
282,
353,
278,
941,
29961,
29900,
29962,
718,
7442,
29889,
17619,
29898,
3416,
29961,
29896,
2314,
13,
4706,
270,
353,
7442,
29889,
2083,
29898,
29891,
448,
282,
29897,
13,
4706,
10364,
353,
270,
847,
269,
2934,
29918,
3044,
29918,
29891,
448,
278,
941,
29961,
29900,
29962,
847,
269,
2934,
29918,
3044,
29918,
3416,
13,
4706,
330,
29890,
353,
29871,
29906,
29889,
29900,
29930,
29881,
847,
269,
2934,
29918,
3044,
29918,
29891,
334,
278,
941,
29961,
29896,
29962,
448,
278,
941,
29961,
29896,
29962,
847,
269,
2934,
29918,
3044,
29918,
3416,
13,
4706,
736,
7442,
29889,
29882,
1429,
3552,
3249,
29892,
330,
29890,
876,
13,
13,
1678,
822,
12714,
29898,
3416,
29901,
7442,
29889,
299,
2378,
29897,
1599,
7442,
29889,
299,
2378,
29901,
13,
4706,
9995,
1576,
12030,
261,
2472,
338,
278,
8178,
3806,
11420,
3234,
310,
278,
13,
4706,
16030,
310,
278,
13446,
29889,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
278,
941,
29901,
22985,
16127,
29889,
13,
13,
4706,
16969,
29901,
13,
9651,
402,
29901,
450,
12030,
261,
2472,
12714,
310,
278,
9892,
1648,
29899,
845,
10501,
4978,
29889,
13,
13,
4706,
9995,
13,
4706,
302,
353,
343,
29889,
2311,
13,
4706,
269,
353,
29871,
29906,
29889,
29900,
29930,
29876,
29930,
3416,
29961,
29896,
29962,
847,
269,
2934,
29918,
3044,
29918,
29891,
13,
4706,
402,
353,
7442,
29889,
2378,
4197,
29961,
29876,
847,
269,
2934,
29918,
3044,
29918,
29891,
718,
29871,
29896,
29889,
29900,
847,
269,
2934,
29918,
3044,
29918,
3416,
29892,
269,
1402,
13,
462,
418,
518,
29879,
29892,
29871,
29946,
29889,
29900,
29930,
29876,
29930,
9302,
29889,
17619,
29898,
3416,
29961,
29896,
2314,
847,
269,
2934,
29918,
3044,
29918,
29891,
718,
29871,
29896,
29889,
29900,
847,
269,
2934,
29918,
3044,
29918,
3416,
24960,
13,
4706,
736,
402,
13,
13,
1678,
822,
4656,
29918,
16414,
29898,
3416,
29901,
7442,
29889,
299,
2378,
29897,
1599,
7442,
29889,
299,
2378,
29901,
13,
4706,
9995,
1576,
16030,
310,
278,
12030,
261,
2472,
12714,
411,
3390,
304,
278,
5608,
13,
4706,
16127,
29889,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
278,
941,
29901,
22985,
16127,
29889,
13,
13,
4706,
16969,
29901,
13,
9651,
270,
29954,
29901,
450,
16030,
310,
278,
12030,
261,
2472,
12714,
411,
3390,
304,
278,
13,
18884,
5608,
16127,
29889,
13,
13,
4706,
9995,
13,
4706,
302,
353,
343,
29889,
2311,
13,
4706,
270,
29954,
353,
7442,
29889,
2378,
4197,
13,
9651,
5519,
29900,
29889,
29900,
29892,
29871,
29900,
29889,
29900,
1402,
518,
29900,
29889,
29900,
29892,
29871,
29906,
29889,
29900,
29930,
29876,
847,
269,
2934,
29918,
3044,
29918,
29891,
20526,
13,
9651,
5519,
29900,
29889,
29900,
29892,
29871,
29906,
29889,
29900,
29930,
29876,
847,
269,
2934,
29918,
3044,
29918,
29891,
1402,
518,
29900,
29889,
29900,
29892,
29871,
29947,
29889,
29900,
29930,
29876,
29930,
3416,
29961,
29896,
29962,
847,
269,
2934,
29918,
3044,
29918,
29891,
5262,
13,
308,
2314,
13,
4706,
736,
270,
29954,
13,
13,
1678,
822,
321,
27511,
29918,
2993,
2638,
4314,
29898,
3416,
29901,
7442,
29889,
299,
2378,
29897,
1599,
12603,
552,
29961,
9302,
29889,
299,
2378,
5387,
13,
4706,
9995,
6678,
304,
10272,
278,
1480,
29899,
2490,
261,
1611,
322,
278,
16030,
310,
278,
13,
4706,
1480,
29899,
2490,
261,
1611,
29889,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
278,
941,
29901,
22985,
16127,
29889,
13,
13,
4706,
16969,
29901,
13,
9651,
301,
29886,
29901,
450,
1480,
29899,
2490,
261,
1611,
310,
278,
9892,
1648,
29899,
845,
10501,
4978,
29889,
13,
9651,
3144,
29886,
29901,
450,
16030,
310,
278,
1480,
29899,
2490,
261,
1611,
310,
278,
9892,
1648,
29899,
845,
10501,
13,
18884,
4978,
411,
3390,
304,
278,
5608,
16127,
29889,
13,
13,
4706,
9995,
13,
4706,
301,
29886,
353,
1480,
29918,
2490,
261,
1611,
29898,
3416,
29897,
13,
4706,
3144,
29886,
353,
4656,
29918,
1188,
29918,
2490,
261,
1611,
29898,
3416,
29897,
13,
4706,
736,
301,
29886,
29892,
3144,
29886,
13,
13,
1678,
822,
364,
23745,
29876,
713,
29918,
2993,
2638,
4314,
29898,
3416,
29901,
7442,
29889,
299,
2378,
29897,
1599,
12603,
552,
29961,
9302,
29889,
299,
2378,
5387,
13,
4706,
9995,
6678,
304,
10272,
278,
1480,
29899,
2490,
261,
1611,
29892,
278,
16030,
310,
278,
1480,
29899,
2490,
261,
1611,
29892,
13,
4706,
278,
12030,
261,
2472,
12714,
322,
278,
25748,
310,
278,
12030,
261,
13,
4706,
2472,
12714,
29889,
13,
13,
4706,
826,
3174,
29901,
13,
9651,
278,
941,
29901,
22985,
16127,
29889,
13,
13,
4706,
16969,
29901,
13,
9651,
301,
29886,
29901,
450,
1480,
29899,
2490,
261,
1611,
310,
278,
9892,
1648,
29899,
845,
10501,
4978,
29889,
13,
9651,
3144,
29886,
29901,
450,
16030,
310,
278,
1480,
29899,
2490,
261,
1611,
310,
278,
9892,
1648,
29899,
845,
10501,
13,
18884,
4978,
411,
3390,
304,
278,
5608,
16127,
29889,
13,
9651,
402,
29901,
450,
12030,
261,
2472,
12714,
310,
278,
9892,
1648,
29899,
845,
10501,
4978,
29889,
13,
9651,
270,
29954,
29901,
450,
16030,
310,
278,
12030,
261,
2472,
12714,
411,
3390,
304,
278,
13,
18884,
5608,
16127,
29889,
13,
13,
4706,
9995,
13,
4706,
301,
29886,
353,
1480,
29918,
2490,
261,
1611,
29898,
3416,
29897,
13,
4706,
3144,
29886,
353,
4656,
29918,
1188,
29918,
2490,
261,
1611,
29898,
3416,
29897,
13,
4706,
402,
353,
12714,
29898,
3416,
29897,
13,
4706,
270,
29954,
353,
4656,
29918,
16414,
29898,
3416,
29897,
13,
4706,
736,
301,
29886,
29892,
3144,
29886,
29892,
402,
29892,
270,
29954,
13,
13,
1678,
822,
1480,
29918,
2490,
261,
1611,
29918,
392,
29918,
16414,
29898,
3416,
29901,
7442,
29889,
299,
2378,
29897,
1599,
12603,
552,
29961,
9302,
29889,
299,
2378,
5387,
13,
4706,
301,
29886,
353,
1480,
29918,
2490,
261,
1611,
29898,
3416,
29897,
13,
4706,
402,
353,
12714,
29898,
3416,
29897,
13,
4706,
736,
301,
29886,
29892,
402,
13,
13,
1678,
736,
1480,
29918,
2490,
261,
1611,
29892,
12714,
29892,
1480,
29918,
2490,
261,
1611,
29918,
392,
29918,
16414,
29892,
321,
27511,
29918,
2993,
2638,
4314,
29892,
364,
23745,
29876,
713,
29918,
2993,
2638,
4314,
13,
13,
1753,
5706,
29918,
1272,
29898,
29873,
29901,
5785,
29892,
269,
2934,
29918,
29891,
29901,
5785,
29892,
269,
2934,
29918,
3416,
29901,
5785,
29892,
954,
29918,
26290,
29901,
938,
29897,
1599,
7442,
29889,
299,
2378,
29901,
13,
1678,
9995,
5631,
403,
848,
515,
278,
9892,
1648,
29899,
845,
10501,
13446,
4978,
29889,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
260,
29901,
12362,
29899,
15501,
3683,
2827,
278,
278,
29873,
294,
29889,
13,
4706,
269,
2934,
29918,
29891,
29901,
1939,
895,
3918,
29522,
29889,
13,
4706,
269,
2934,
29918,
3416,
29901,
22096,
3918,
29522,
975,
278,
278,
29873,
294,
29889,
13,
4706,
954,
29918,
26290,
29901,
9681,
310,
13917,
304,
5706,
29889,
13,
13,
1678,
16969,
29901,
13,
4706,
278,
941,
29901,
22985,
16127,
310,
278,
9892,
1648,
29899,
845,
10501,
4978,
29889,
13,
4706,
343,
29901,
21651,
800,
515,
278,
443,
1693,
28677,
1904,
29889,
13,
13,
1678,
9995,
13,
1678,
278,
941,
353,
7442,
29889,
2378,
4197,
29873,
29892,
7442,
29889,
3676,
29898,
29896,
29889,
29900,
448,
260,
29897,
2314,
13,
1678,
343,
353,
278,
941,
29961,
29900,
29962,
718,
7442,
29889,
17619,
29898,
3416,
29961,
29896,
2314,
718,
269,
2934,
29918,
29891,
334,
7442,
29889,
8172,
29889,
8945,
29898,
2311,
7607,
1949,
29918,
26290,
29892,
29871,
876,
13,
1678,
736,
278,
941,
29892,
343,
13,
2
] |
tests/test_cfloader.py | shachibista/mloader | 0 | 52926 | <filename>tests/test_cfloader.py
#!/usr/bin/env python
"""Tests for `cfloader` package."""
import json
from pathlib import Path
import pytest
import cfloader
from cfloader.loader import Loader
from cfloader.readers import ConfigFileNotFoundError
def test_cfloader_can_open_path_objects():
config_filepath = Path("tests/examples/config.json")
loader = cfloader.open(config_filepath)
def test_cfloader_can_open_str_paths():
config_filepath = "tests/examples/config.json"
loader = cfloader.open(config_filepath)
def test_cfloader_can_open_dicts():
config_dict = {}
loader = cfloader.open(config_dict)
assert isinstance(loader, Loader)
assert loader.config == config_dict
def test_cfloader_open_returns_loader():
config_filepath = Path("tests/examples/config.json")
loader = cfloader.open(config_filepath)
assert isinstance(loader, Loader)
assert loader.config == json.loads(config_filepath.read_text())
def test_cfloader_can_open_zip_files():
archive_path = "tests/examples/archive.zip"
loader = cfloader.open(cfloader.Archive(archive_path))
assert isinstance(loader, Loader)
import zipfile
with zipfile.ZipFile(archive_path, "r") as archive_fs:
with archive_fs.open("config.json", "r") as config_file:
assert loader.config == json.load(config_file)
def test_cfloader_can_open_tar_files():
archive_path = "tests/examples/archive.tar"
loader = cfloader.open(cfloader.Archive(archive_path))
assert isinstance(loader, Loader)
import tarfile
with tarfile.open(archive_path, "r") as archive_fs:
config_fileinfo = archive_fs.getmember("config.json")
config_file = archive_fs.extractfile(config_fileinfo)
assert loader.config == json.loads(config_file.read())
def test_cfloader_can_open_tar_gz_files():
archive_path = "tests/examples/archive.tar.gz"
loader = cfloader.open(cfloader.Archive(archive_path))
assert isinstance(loader, Loader)
import tarfile
with tarfile.open(archive_path, "r:gz") as archive_fs:
config_fileinfo = archive_fs.getmember("config.json")
config_file = archive_fs.extractfile(config_fileinfo)
assert loader.config == json.loads(config_file.read())
# disabled because extractfile returns a <ExFileObject name=None>
# def test_cfloader_can_open_tar_bz_files():
# archive_path = "tests/examples/archive.tar.bz"
# loader = cfloader.open(cfloader.Archive(archive_path))
# assert isinstance(loader, Loader)
# import tarfile
# with tarfile.open(archive_path, "r:bz2") as archive_fs:
# config_fileinfo = archive_fs.getmember("config.json")
# config_file = archive_fs.extractfile(config_fileinfo)
# breakpoint()
# assert loader.config == json.loads(config_file.read())
def test_cfloader_can_open_tar_xz_files():
archive_path = "tests/examples/archive.tar.xz"
loader = cfloader.open(cfloader.Archive(archive_path))
assert isinstance(loader, Loader)
import tarfile
with tarfile.open(archive_path, "r:xz") as archive_fs:
config_fileinfo = archive_fs.getmember("config.json")
config_file = archive_fs.extractfile(config_fileinfo)
assert loader.config == json.loads(config_file.read())
def test_cfloader_complains_if_config_not_found_in_zip_archive():
archive_path = "tests/examples/archive.zip"
with pytest.raises(ConfigFileNotFoundError):
loader = cfloader.open(cfloader.Archive(archive_path, "cfg.json"))
def test_cfloader_complains_if_config_not_found_in_tar_archive():
archive_path = "tests/examples/archive.tar.xz"
with pytest.raises(ConfigFileNotFoundError):
loader = cfloader.open(cfloader.Archive(archive_path, "cfg.json")) | [
1,
529,
9507,
29958,
21150,
29914,
1688,
29918,
6854,
12657,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
15945,
29908,
24376,
363,
421,
6854,
12657,
29952,
3577,
1213,
15945,
13,
13,
5215,
4390,
13,
3166,
2224,
1982,
1053,
10802,
13,
13,
5215,
11451,
1688,
13,
13,
5215,
274,
29888,
12657,
13,
3166,
274,
29888,
12657,
29889,
12657,
1053,
4309,
1664,
13,
3166,
274,
29888,
12657,
29889,
949,
414,
1053,
12782,
2283,
17413,
2392,
13,
13,
1753,
1243,
29918,
6854,
12657,
29918,
3068,
29918,
3150,
29918,
2084,
29918,
12650,
7295,
13,
1678,
2295,
29918,
1445,
2084,
353,
10802,
703,
21150,
29914,
19057,
29914,
2917,
29889,
3126,
1159,
13,
1678,
23466,
353,
274,
29888,
12657,
29889,
3150,
29898,
2917,
29918,
1445,
2084,
29897,
13,
13,
1753,
1243,
29918,
6854,
12657,
29918,
3068,
29918,
3150,
29918,
710,
29918,
24772,
7295,
13,
1678,
2295,
29918,
1445,
2084,
353,
376,
21150,
29914,
19057,
29914,
2917,
29889,
3126,
29908,
13,
1678,
23466,
353,
274,
29888,
12657,
29889,
3150,
29898,
2917,
29918,
1445,
2084,
29897,
13,
13,
1753,
1243,
29918,
6854,
12657,
29918,
3068,
29918,
3150,
29918,
8977,
29879,
7295,
13,
1678,
2295,
29918,
8977,
353,
6571,
13,
1678,
23466,
353,
274,
29888,
12657,
29889,
3150,
29898,
2917,
29918,
8977,
29897,
13,
13,
1678,
4974,
338,
8758,
29898,
12657,
29892,
4309,
1664,
29897,
13,
1678,
4974,
23466,
29889,
2917,
1275,
2295,
29918,
8977,
13,
13,
1753,
1243,
29918,
6854,
12657,
29918,
3150,
29918,
18280,
29918,
12657,
7295,
13,
1678,
2295,
29918,
1445,
2084,
353,
10802,
703,
21150,
29914,
19057,
29914,
2917,
29889,
3126,
1159,
13,
1678,
23466,
353,
274,
29888,
12657,
29889,
3150,
29898,
2917,
29918,
1445,
2084,
29897,
13,
13,
1678,
4974,
338,
8758,
29898,
12657,
29892,
4309,
1664,
29897,
13,
1678,
4974,
23466,
29889,
2917,
1275,
4390,
29889,
18132,
29898,
2917,
29918,
1445,
2084,
29889,
949,
29918,
726,
3101,
13,
13,
1753,
1243,
29918,
6854,
12657,
29918,
3068,
29918,
3150,
29918,
7554,
29918,
5325,
7295,
13,
1678,
18871,
29918,
2084,
353,
376,
21150,
29914,
19057,
29914,
10867,
29889,
7554,
29908,
13,
1678,
23466,
353,
274,
29888,
12657,
29889,
3150,
29898,
6854,
12657,
29889,
13197,
573,
29898,
10867,
29918,
2084,
876,
13,
268,
13,
1678,
4974,
338,
8758,
29898,
12657,
29892,
4309,
1664,
29897,
13,
13,
1678,
1053,
14319,
1445,
13,
1678,
411,
14319,
1445,
29889,
26264,
2283,
29898,
10867,
29918,
2084,
29892,
376,
29878,
1159,
408,
18871,
29918,
5847,
29901,
13,
4706,
411,
18871,
29918,
5847,
29889,
3150,
703,
2917,
29889,
3126,
613,
376,
29878,
1159,
408,
2295,
29918,
1445,
29901,
13,
9651,
4974,
23466,
29889,
2917,
1275,
4390,
29889,
1359,
29898,
2917,
29918,
1445,
29897,
13,
13,
1753,
1243,
29918,
6854,
12657,
29918,
3068,
29918,
3150,
29918,
12637,
29918,
5325,
7295,
13,
1678,
18871,
29918,
2084,
353,
376,
21150,
29914,
19057,
29914,
10867,
29889,
12637,
29908,
13,
1678,
23466,
353,
274,
29888,
12657,
29889,
3150,
29898,
6854,
12657,
29889,
13197,
573,
29898,
10867,
29918,
2084,
876,
13,
268,
13,
1678,
4974,
338,
8758,
29898,
12657,
29892,
4309,
1664,
29897,
13,
13,
1678,
1053,
9913,
1445,
13,
13,
1678,
411,
9913,
1445,
29889,
3150,
29898,
10867,
29918,
2084,
29892,
376,
29878,
1159,
408,
18871,
29918,
5847,
29901,
13,
4706,
2295,
29918,
1445,
3888,
353,
18871,
29918,
5847,
29889,
657,
14242,
703,
2917,
29889,
3126,
1159,
13,
4706,
2295,
29918,
1445,
353,
18871,
29918,
5847,
29889,
21111,
1445,
29898,
2917,
29918,
1445,
3888,
29897,
13,
4706,
4974,
23466,
29889,
2917,
1275,
4390,
29889,
18132,
29898,
2917,
29918,
1445,
29889,
949,
3101,
13,
13,
1753,
1243,
29918,
6854,
12657,
29918,
3068,
29918,
3150,
29918,
12637,
29918,
18828,
29918,
5325,
7295,
13,
1678,
18871,
29918,
2084,
353,
376,
21150,
29914,
19057,
29914,
10867,
29889,
12637,
29889,
18828,
29908,
13,
1678,
23466,
353,
274,
29888,
12657,
29889,
3150,
29898,
6854,
12657,
29889,
13197,
573,
29898,
10867,
29918,
2084,
876,
13,
268,
13,
1678,
4974,
338,
8758,
29898,
12657,
29892,
4309,
1664,
29897,
13,
13,
1678,
1053,
9913,
1445,
13,
13,
1678,
411,
9913,
1445,
29889,
3150,
29898,
10867,
29918,
2084,
29892,
376,
29878,
29901,
18828,
1159,
408,
18871,
29918,
5847,
29901,
13,
4706,
2295,
29918,
1445,
3888,
353,
18871,
29918,
5847,
29889,
657,
14242,
703,
2917,
29889,
3126,
1159,
13,
4706,
2295,
29918,
1445,
353,
18871,
29918,
5847,
29889,
21111,
1445,
29898,
2917,
29918,
1445,
3888,
29897,
13,
4706,
4974,
23466,
29889,
2917,
1275,
4390,
29889,
18132,
29898,
2917,
29918,
1445,
29889,
949,
3101,
13,
13,
29937,
12708,
1363,
6597,
1445,
3639,
263,
529,
1252,
2283,
2061,
1024,
29922,
8516,
29958,
13,
29937,
822,
1243,
29918,
6854,
12657,
29918,
3068,
29918,
3150,
29918,
12637,
29918,
29890,
29920,
29918,
5325,
7295,
13,
29937,
268,
18871,
29918,
2084,
353,
376,
21150,
29914,
19057,
29914,
10867,
29889,
12637,
29889,
29890,
29920,
29908,
13,
29937,
268,
23466,
353,
274,
29888,
12657,
29889,
3150,
29898,
6854,
12657,
29889,
13197,
573,
29898,
10867,
29918,
2084,
876,
13,
268,
13,
29937,
268,
4974,
338,
8758,
29898,
12657,
29892,
4309,
1664,
29897,
13,
13,
29937,
268,
1053,
9913,
1445,
13,
13,
29937,
268,
411,
9913,
1445,
29889,
3150,
29898,
10867,
29918,
2084,
29892,
376,
29878,
29901,
29890,
29920,
29906,
1159,
408,
18871,
29918,
5847,
29901,
13,
29937,
308,
2295,
29918,
1445,
3888,
353,
18871,
29918,
5847,
29889,
657,
14242,
703,
2917,
29889,
3126,
1159,
13,
29937,
308,
2295,
29918,
1445,
353,
18871,
29918,
5847,
29889,
21111,
1445,
29898,
2917,
29918,
1445,
3888,
29897,
13,
29937,
308,
2867,
3149,
580,
13,
29937,
308,
4974,
23466,
29889,
2917,
1275,
4390,
29889,
18132,
29898,
2917,
29918,
1445,
29889,
949,
3101,
13,
13,
1753,
1243,
29918,
6854,
12657,
29918,
3068,
29918,
3150,
29918,
12637,
29918,
29916,
29920,
29918,
5325,
7295,
13,
1678,
18871,
29918,
2084,
353,
376,
21150,
29914,
19057,
29914,
10867,
29889,
12637,
29889,
29916,
29920,
29908,
13,
1678,
23466,
353,
274,
29888,
12657,
29889,
3150,
29898,
6854,
12657,
29889,
13197,
573,
29898,
10867,
29918,
2084,
876,
13,
268,
13,
1678,
4974,
338,
8758,
29898,
12657,
29892,
4309,
1664,
29897,
13,
13,
1678,
1053,
9913,
1445,
13,
13,
1678,
411,
9913,
1445,
29889,
3150,
29898,
10867,
29918,
2084,
29892,
376,
29878,
29901,
29916,
29920,
1159,
408,
18871,
29918,
5847,
29901,
13,
4706,
2295,
29918,
1445,
3888,
353,
18871,
29918,
5847,
29889,
657,
14242,
703,
2917,
29889,
3126,
1159,
13,
4706,
2295,
29918,
1445,
353,
18871,
29918,
5847,
29889,
21111,
1445,
29898,
2917,
29918,
1445,
3888,
29897,
13,
4706,
4974,
23466,
29889,
2917,
1275,
4390,
29889,
18132,
29898,
2917,
29918,
1445,
29889,
949,
3101,
13,
13,
1753,
1243,
29918,
6854,
12657,
29918,
2388,
433,
1144,
29918,
361,
29918,
2917,
29918,
1333,
29918,
11940,
29918,
262,
29918,
7554,
29918,
10867,
7295,
13,
1678,
18871,
29918,
2084,
353,
376,
21150,
29914,
19057,
29914,
10867,
29889,
7554,
29908,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
2283,
17413,
2392,
1125,
13,
4706,
23466,
353,
274,
29888,
12657,
29889,
3150,
29898,
6854,
12657,
29889,
13197,
573,
29898,
10867,
29918,
2084,
29892,
376,
16859,
29889,
3126,
5783,
13,
13,
1753,
1243,
29918,
6854,
12657,
29918,
2388,
433,
1144,
29918,
361,
29918,
2917,
29918,
1333,
29918,
11940,
29918,
262,
29918,
12637,
29918,
10867,
7295,
13,
1678,
18871,
29918,
2084,
353,
376,
21150,
29914,
19057,
29914,
10867,
29889,
12637,
29889,
29916,
29920,
29908,
13,
1678,
411,
11451,
1688,
29889,
336,
4637,
29898,
3991,
2283,
17413,
2392,
1125,
13,
4706,
23466,
353,
274,
29888,
12657,
29889,
3150,
29898,
6854,
12657,
29889,
13197,
573,
29898,
10867,
29918,
2084,
29892,
376,
16859,
29889,
3126,
5783,
2
] |
tests/python/gaia-ui-tests/gaiatest/tests/accessibility/phone/test_a11y_callscreen_visibility.py | gregarndt/gaia | 1 | 155498 | <filename>tests/python/gaia-ui-tests/gaiatest/tests/accessibility/phone/test_a11y_callscreen_visibility.py
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from gaiatest import GaiaTestCase
from gaiatest.mocks.mock_contact import MockContact
from gaiatest.apps.phone.app import Phone
class TestAccessibilityCallscreenVisibility(GaiaTestCase):
def setUp(self):
GaiaTestCase.setUp(self)
self.contact = MockContact()
self.phone = Phone(self.marionette)
self.phone.launch()
def test_a11y_callscreen_visibility(self):
test_phone_number = self.contact['tel']['value']
# Make a call
self.phone.a11y_make_call(test_phone_number)
# Check that the keyboard view is hidden by default
self.assertTrue(self.accessibility.is_hidden(self.marionette.find_element(
*self.phone.call_screen._views_locator)))
# Check that the incoming container is hidden by default
self.assertTrue(self.accessibility.is_hidden(self.marionette.find_element(
*self.phone.call_screen._incoming_container_locator)))
# Check that the handled call hangup button is hidden by default
self.assertTrue(self.accessibility.is_hidden(self.marionette.find_element(
*self.phone.call_screen._hangup_button_locator)))
# Hang up
self.phone.a11y_hang_up()
| [
1,
529,
9507,
29958,
21150,
29914,
4691,
29914,
3249,
423,
29899,
1481,
29899,
21150,
29914,
29887,
1794,
271,
342,
29914,
21150,
29914,
5943,
4127,
29914,
6710,
29914,
1688,
29918,
29874,
29896,
29896,
29891,
29918,
29883,
4293,
5576,
29918,
28814,
29889,
2272,
13,
29937,
910,
7562,
5920,
3812,
338,
4967,
304,
278,
4958,
310,
278,
18129,
2911,
5236,
13,
29937,
19245,
29892,
325,
29889,
29871,
29906,
29889,
29900,
29889,
960,
263,
3509,
310,
278,
341,
7390,
471,
451,
13235,
411,
445,
13,
29937,
934,
29892,
887,
508,
4017,
697,
472,
1732,
597,
13025,
29889,
990,
29914,
3580,
29931,
29914,
29906,
29889,
29900,
6294,
13,
13,
3166,
330,
1794,
271,
342,
1053,
10415,
423,
3057,
8259,
13,
3166,
330,
1794,
271,
342,
29889,
17640,
29879,
29889,
17640,
29918,
12346,
1053,
26297,
13443,
13,
3166,
330,
1794,
271,
342,
29889,
13371,
29889,
6710,
29889,
932,
1053,
24323,
13,
13,
13,
1990,
4321,
6638,
4127,
29907,
4293,
5576,
23318,
29898,
29954,
29874,
423,
3057,
8259,
1125,
13,
13,
1678,
822,
731,
3373,
29898,
1311,
1125,
13,
4706,
10415,
423,
3057,
8259,
29889,
842,
3373,
29898,
1311,
29897,
13,
4706,
1583,
29889,
12346,
353,
26297,
13443,
580,
13,
13,
4706,
1583,
29889,
6710,
353,
24323,
29898,
1311,
29889,
3034,
291,
2353,
29897,
13,
4706,
1583,
29889,
6710,
29889,
15343,
580,
13,
13,
1678,
822,
1243,
29918,
29874,
29896,
29896,
29891,
29918,
29883,
4293,
5576,
29918,
28814,
29898,
1311,
1125,
13,
13,
4706,
1243,
29918,
6710,
29918,
4537,
353,
1583,
29889,
12346,
1839,
28497,
16215,
1767,
2033,
13,
13,
4706,
396,
8561,
263,
1246,
13,
4706,
1583,
29889,
6710,
29889,
29874,
29896,
29896,
29891,
29918,
5675,
29918,
4804,
29898,
1688,
29918,
6710,
29918,
4537,
29897,
13,
13,
4706,
396,
5399,
393,
278,
12247,
1776,
338,
7934,
491,
2322,
13,
4706,
1583,
29889,
9294,
5574,
29898,
1311,
29889,
5943,
4127,
29889,
275,
29918,
10892,
29898,
1311,
29889,
3034,
291,
2353,
29889,
2886,
29918,
5029,
29898,
13,
9651,
334,
1311,
29889,
6710,
29889,
4804,
29918,
10525,
3032,
7406,
29918,
2029,
1061,
4961,
13,
13,
4706,
396,
5399,
393,
278,
23235,
5639,
338,
7934,
491,
2322,
13,
4706,
1583,
29889,
9294,
5574,
29898,
1311,
29889,
5943,
4127,
29889,
275,
29918,
10892,
29898,
1311,
29889,
3034,
291,
2353,
29889,
2886,
29918,
5029,
29898,
13,
9651,
334,
1311,
29889,
6710,
29889,
4804,
29918,
10525,
3032,
262,
11506,
29918,
7611,
29918,
2029,
1061,
4961,
13,
13,
4706,
396,
5399,
393,
278,
16459,
1246,
13958,
786,
2826,
338,
7934,
491,
2322,
13,
4706,
1583,
29889,
9294,
5574,
29898,
1311,
29889,
5943,
4127,
29889,
275,
29918,
10892,
29898,
1311,
29889,
3034,
291,
2353,
29889,
2886,
29918,
5029,
29898,
13,
9651,
334,
1311,
29889,
6710,
29889,
4804,
29918,
10525,
3032,
11895,
786,
29918,
3092,
29918,
2029,
1061,
4961,
13,
13,
4706,
396,
379,
574,
701,
13,
4706,
1583,
29889,
6710,
29889,
29874,
29896,
29896,
29891,
29918,
11895,
29918,
786,
580,
13,
2
] |
Chapter04/simple_examples/functional_example.py | arifmudi/Machine-Learning-Engineering-with-Python | 67 | 1612700 | import pandas as pd
import numpy as np
data = [
['The', 'Business', 'Centre', '15', 'Stevenson', 'Lane'],
['6', 'Mossvale', 'Road'],
['Studio', '7', 'Tottenham', 'Court', 'Road']
]
def len_strings_in_list(data_list):
return list(map(lambda x: len(x), data_list))
def list_of_list_func_results(list_func, list_of_lists):
return list(map(lambda x: list_func(x), list_of_lists)) | [
1,
1053,
11701,
408,
10518,
13,
5215,
12655,
408,
7442,
13,
13,
1272,
353,
518,
13,
1678,
6024,
1576,
742,
525,
16890,
3335,
742,
525,
29907,
14056,
742,
525,
29896,
29945,
742,
525,
7789,
9852,
265,
742,
525,
29931,
1662,
7464,
13,
1678,
6024,
29953,
742,
525,
29924,
2209,
29894,
744,
742,
525,
9588,
328,
7464,
13,
1678,
6024,
28867,
742,
525,
29955,
742,
525,
29911,
327,
841,
3391,
742,
525,
29907,
14316,
742,
525,
9588,
328,
2033,
13,
29962,
13,
13,
1753,
7431,
29918,
19651,
29918,
262,
29918,
1761,
29898,
1272,
29918,
1761,
1125,
13,
1678,
736,
1051,
29898,
1958,
29898,
2892,
921,
29901,
7431,
29898,
29916,
511,
848,
29918,
1761,
876,
13,
13,
1753,
1051,
29918,
974,
29918,
1761,
29918,
9891,
29918,
9902,
29898,
1761,
29918,
9891,
29892,
1051,
29918,
974,
29918,
21513,
1125,
13,
1678,
736,
1051,
29898,
1958,
29898,
2892,
921,
29901,
1051,
29918,
9891,
29898,
29916,
511,
1051,
29918,
974,
29918,
21513,
876,
2
] |
one_page/customapp/templatetags/testtag.py | aptuz/mezzanine_onepage_theme | 0 | 56669 | from __future__ import unicode_literals
from future.builtins import int
from collections import defaultdict
from django.core.urlresolvers import reverse
from django.template.defaultfilters import linebreaksbr, urlize
from mezzanine import template
from mezzanine.conf import settings
from mezzanine.generic.forms import ThreadedCommentForm
from mezzanine.generic.models import ThreadedComment
from mezzanine.utils.importing import import_dotted_path
from mezzanine.pages.models import Page, RichTextPage
register = template.Library()
@register.assignment_tag
def allpages():
page_fields = [ 'content', 'created', 'description', 'expiry_date', 'gen_description', u'id', 'keywords', u'keywords_string', 'publish_date', 'short_url', 'slug', 'status', 'title', 'titles', 'updated']
output = []
# import pdb;pdb.set_trace()
AllPages = RichTextPage.objects.all()
for item in AllPages:
temp = {}
for fld in page_fields:
temp[fld] = getattr(item, fld)
output.append(temp)
return {
'pages': output
}
@register.filter()
def remove_slash(value):
return '#' + value[1:-1]
@register.filter()
def lower(value):
# import pdb;pdb.set_trace()
return value.lower() | [
1,
515,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
3166,
5434,
29889,
16145,
1144,
1053,
938,
13,
13,
3166,
16250,
1053,
2322,
8977,
13,
13,
3166,
9557,
29889,
3221,
29889,
2271,
9778,
874,
1053,
11837,
13,
3166,
9557,
29889,
6886,
29889,
4381,
26705,
1053,
1196,
8690,
29879,
1182,
29892,
3142,
675,
13,
13,
3166,
592,
5617,
273,
457,
1053,
4472,
13,
3166,
592,
5617,
273,
457,
29889,
5527,
1053,
6055,
13,
3166,
592,
5617,
273,
457,
29889,
19206,
29889,
9514,
1053,
10480,
287,
20001,
2500,
13,
3166,
592,
5617,
273,
457,
29889,
19206,
29889,
9794,
1053,
10480,
287,
20001,
13,
3166,
592,
5617,
273,
457,
29889,
13239,
29889,
5215,
292,
1053,
1053,
29918,
29881,
15048,
29918,
2084,
13,
3166,
592,
5617,
273,
457,
29889,
12292,
29889,
9794,
1053,
9305,
29892,
4385,
1626,
5074,
13,
13,
9573,
353,
4472,
29889,
12284,
580,
13,
13,
29992,
9573,
29889,
465,
10194,
29918,
4039,
13,
1753,
599,
12292,
7295,
13,
1678,
1813,
29918,
9621,
353,
518,
525,
3051,
742,
525,
11600,
742,
525,
8216,
742,
525,
4548,
16129,
29918,
1256,
742,
525,
1885,
29918,
8216,
742,
318,
29915,
333,
742,
29871,
525,
1989,
9303,
742,
318,
29915,
1989,
9303,
29918,
1807,
742,
29871,
525,
23679,
29918,
1256,
742,
525,
12759,
29918,
2271,
742,
525,
29517,
742,
525,
4882,
742,
525,
3257,
742,
525,
23545,
793,
742,
525,
21402,
2033,
13,
1678,
1962,
353,
5159,
13,
1678,
396,
1053,
282,
2585,
29936,
29886,
2585,
29889,
842,
29918,
15003,
580,
13,
1678,
2178,
27514,
353,
4385,
1626,
5074,
29889,
12650,
29889,
497,
580,
13,
1678,
363,
2944,
297,
2178,
27514,
29901,
13,
4706,
5694,
353,
6571,
13,
4706,
363,
285,
430,
297,
1813,
29918,
9621,
29901,
13,
9651,
5694,
29961,
29888,
430,
29962,
353,
679,
5552,
29898,
667,
29892,
285,
430,
29897,
13,
4706,
1962,
29889,
4397,
29898,
7382,
29897,
13,
1678,
736,
426,
13,
4706,
525,
12292,
2396,
1962,
13,
1678,
500,
13,
13,
29992,
9573,
29889,
4572,
580,
13,
1753,
3349,
29918,
17057,
29898,
1767,
1125,
13,
1678,
736,
16321,
29915,
718,
995,
29961,
29896,
13018,
29896,
29962,
13,
13,
13,
29992,
9573,
29889,
4572,
580,
13,
1753,
5224,
29898,
1767,
1125,
13,
1678,
396,
1053,
282,
2585,
29936,
29886,
2585,
29889,
842,
29918,
15003,
580,
13,
1678,
736,
995,
29889,
13609,
580,
2
] |
h5parm/datapack.py | Joshuaalbert/h5parm | 0 | 76104 | <reponame>Joshuaalbert/h5parm<filename>h5parm/datapack.py
import tables as tb
import os
import numpy as np
import astropy.units as au
import astropy.time as at
import astropy.coordinates as ac
import sys
import time
import itertools
import re
import logging
logger = logging.getLogger(__name__)
from h5parm.maintenance import deprecated
def _load_array_file(array_file):
'''Loads a csv where each row is x,y,z in geocentric ITRS coords of the antennas'''
types = np.dtype({'names': ['station', 'X_ITRS', 'Y_ITRS', 'Z_ITRS'],
'formats': ['S16', np.double, np.double, np.double, np.double]})
d = np.genfromtxt(array_file, comments='#', delimiter=',', dtype=types)
labels = np.array(d['station'].astype(str))
locs = ac.SkyCoord(x=d['X_ITRS'] * au.m, y=d['Y_ITRS'] * au.m, z=d['Z_ITRS'] * au.m, frame='itrs')
Nantenna = int(np.size(d['X_ITRS']))
diameters = None
return np.array(labels).astype(np.str_), locs.cartesian.xyz.to(au.m).value.transpose()
def update_h5parm(old_h5parm, new_h5parm):
"""
Clones an old H5parm typically created with LoSoTO, that only has readonly access.
:param old_h5parm:
:param new_h5parm:
:return:
"""
logger.info("Updating {}".format(old_h5parm))
select = dict(ant=None, time=None, dir=None, freq=None, pol=None)
old = DataPack(old_h5parm, readonly=True)
new = DataPack(new_h5parm, readonly=False)
logger.info("Created {}".format(new_h5parm))
solsets = old.solsets
for solset in solsets:
old.current_solset = solset
old.select(**select)
antenna_labels, antennas = old.antennas
patch_names, directions = old.directions
# Sometimes the antennas are not set properly in the original datapack
if solset in new.solsets:
new.delete_solset(solset)
if np.sum(antennas) == 0.:
new.add_solset(solset,
array_file=DataPack.lofar_array,
directions=directions,
patch_names=patch_names)
else:
new.add_solset(solset,
antenna_labels=antenna_labels,
antennas=antennas,
directions=directions,
patch_names=patch_names)
new.current_solset = solset
soltabs = old.soltabs
for soltab in soltabs:
if soltab in new.soltabs:
new.delete_soltab(soltab)
axes = {k: v for (v, k) in zip(*old.soltab_axes(soltab))}
antenna_labels, antennas = old.get_antennas(axes['ant'])
patch_names, directions = old.get_directions(axes['dir'])
timestamps, times = old.get_times(axes['time'])
pol_labels, pols = old.get_pols(axes['pol'])
vals, _ = old.get_soltab(soltab, weight=False)
weight_vals, _ = old.get_soltab(soltab, weight=True)
if 'freq' in axes.keys():
freq_labels, freqs = old.get_freqs(axes['freq'])
new.add_soltab(soltab, values=vals, weights=weight_vals, weightDtype='f16', time=times.mjd * 86400.,
pol=pol_labels,
ant=antenna_labels,
dir=patch_names, freq=freqs)
else:
new.add_soltab(soltab, values=vals, weights=weight_vals, weightDtype='f16', time=times.mjd * 86400.,
pol=pol_labels,
ant=antenna_labels,
dir=patch_names)
class DataPack(object):
# _H: tb.File
_arrays = os.path.dirname(sys.modules["h5parm"].__file__)
lofar_array = os.path.join(_arrays, 'arrays/lofar.antenna.cfg')
lofar_array_hba = os.path.join(_arrays, 'arrays/lofar.hba.antenna.cfg')
gmrt_array = os.path.join(_arrays, 'arrays/gmrtPos.cfg')
def __init__(self, filename, readonly=False):
if isinstance(filename, DataPack):
filename = filename.filename
self.filename = os.path.abspath(filename)
if not os.path.isfile(self.filename) and readonly:
raise IOError("File {} doesn't exist, and in readonly mode".format(self.filename))
self.readonly = readonly
self._H = None
self._contexts_open = 0
self._selection = None
self._current_solset = None
self.axes_order = ['pol', 'dir', 'ant', 'freq', 'time']
self.axes_atoms = {'pol': (np.str_, tb.StringAtom(16)),
'dir': (np.str_, tb.StringAtom(128)),
'ant': (np.str_, tb.StringAtom(16)),
'freq': (np.float64, tb.Float64Atom()),
'time': (np.float64, tb.Float64Atom())}
if len(self.solsets) > 0:
self.current_solset = self.solsets[0]
@property
def axes_order(self):
return self._axes_order
@axes_order.setter
def axes_order(self, axes):
if not isinstance(axes, (tuple, list)):
raise ValueError("axes should be a list or tuple. {}".format(type(axes)))
order = []
for axis in axes:
if axis not in ['ant', 'dir', 'freq', 'pol', 'time']:
raise ValueError("Axis {} not a valid axis.".format(axis))
if axis in order:
raise ValueError("Found duplicate in ordering. {}".format(axes))
order.append(axis)
self._axes_order = order
@property
def readonly(self):
return self._readonly
@readonly.setter
def readonly(self, value):
if not isinstance(value, bool):
raise ValueError("Readonly must be a bool.")
self._readonly = value
def __enter__(self):
if self._contexts_open == 0:
self._H = tb.open_file(self.filename, mode='r' if self.readonly else 'a')
self._contexts_open += 1
return self
def __exit__(self, exc_type, exc_val, exc_tb):
if self._contexts_open == 1:
self._H.close()
self._H = None
self._contexts_open -= 1
@property
def current_solset(self):
return self._current_solset
@current_solset.setter
def current_solset(self, solset):
if solset not in self.solsets:
raise ValueError("Solset {} does not exist.".format(solset))
self._current_solset = solset
logger.info("Set current solset to: {}".format(self._current_solset))
def set_current_solset(self, solset):
if solset not in self.solsets:
raise ValueError("Solset {} does not exist.".format(solset))
self._current_solset = solset
logger.info("Set current solset to: {}".format(self._current_solset))
@property
def solsets(self):
with self:
return [k for k, v in self._H.root._v_groups.items()]
@property
def soltabs(self):
with self:
if self.current_solset is None:
raise ValueError("Current solset is None.")
solset_group = self._H.root._v_groups[self.current_solset]
return [k for k, v in solset_group._v_groups.items()]
@deprecated("Use current_solset and add_solset")
def switch_solset(self, solset, antenna_labels=None, antennas=None, array_file=None, directions=None,
patch_names=None):
self.add_solset(solset, antenna_labels, antennas, array_file, directions,
patch_names)
def add_solset(self, solset, antenna_labels=None, antennas=None, array_file=None, patch_names=None,
directions=None):
"""
Create a solset.
:param solset: str
Name of solset
:param antenna_labels, antennas: see set_antennas
:param array_file: str
array file to load, lofar array if None
:params patch_names, directions: see set_directions
:param directions:
:return:
"""
if solset in self.solsets:
logger.warning("Solset {} already exists.".format(solset))
self.current_solset = solset
return
with self:
self._H.create_group(self._H.root, solset, title='Solset: {}'.format(solset))
self.current_solset = solset
self.add_antenna_table()
if antennas is None:
antenna_labels, antennas = _load_array_file(self.lofar_array_hba if array_file is None else array_file)
self.set_antennas(antenna_labels, antennas)
self.add_directions_table()
if directions is not None:
self.set_directions(patch_names, directions)
logger.info("Created solset {}.".format(solset))
def add_soltab(self, soltab, values=None, weights=None, weightDtype='f16', **axes):
if soltab in self.soltabs:
logger.warning('Soltab {} already exists.'.format(soltab))
return
with self:
if self.current_solset is None:
raise ValueError("Current solset is None.")
solset_group = self._H.root._v_groups[self.current_solset]
self._H.create_group(solset_group, soltab, "Soltab: {}".format(soltab))
soltab_group = solset_group._v_groups[soltab]
soltab_group._v_attrs['parmdb_type'] = ""
shape = []
ordered_axes = []
for axis_name in self.axes_order:
if axis_name not in axes.keys():
logger.info("Soltab missing axis {}".format(axis_name))
continue
shape.append(len(axes[axis_name]))
ordered_axes.append(axis_name)
self._H.create_array(soltab_group, axis_name, obj=np.array(axes[axis_name]),
title='Axis: {}'.format(axis_name)) # ,atom=self.axes_atoms[axis_name][1])
if values is None:
values = np.zeros(shape)
self._H.create_array(soltab_group, 'val', obj=values.astype(np.float64), atom=tb.Float64Atom())
val_leaf = soltab_group._v_leaves['val']
val_leaf.attrs['AXES'] = ','.join(ordered_axes)
if weightDtype not in ['f16', 'f32', 'f64']:
raise ValueError("Allowed weight dtypes are 'f16','f32', 'f64'")
if weights is None:
weights = np.ones(shape)
if weightDtype == 'f16':
self._H.create_array(soltab_group, 'weight', obj=weights.astype(np.float16), title='Weights',
atom=tb.Float16Atom())
elif weightDtype == 'f32':
self._H.create_array(soltab_group, 'weight', obj=weights.astype(np.float32), title='Weights',
atom=tb.Float32Atom())
elif weightDtype == 'f64':
self._H.create_array(soltab_group, 'weight', obj=weights.astype(np.float64), title='Weights',
atom=tb.Float64Atom())
weight_leaf = soltab_group._v_leaves['weight']
weight_leaf.attrs['AXES'] = ','.join(ordered_axes)
logger.info("Created soltab {}/{}".format(self.current_solset, soltab))
def delete_soltab(self, soltab):
if soltab not in self.soltabs:
raise ValueError("Soltab {} not in solset {}.".format(soltab, self.current_solset))
with self:
solset_group = self._H.root._v_groups[self.current_solset]
soltab_group = solset_group._v_groups[soltab]
soltab_group._f_remove(recursive=True)
def delete_solset(self, solset):
if solset not in self.solsets:
raise ValueError("Solset {} appears not to exist.".format(solset))
with self:
solset_group = self._H.root._v_groups[solset]
solset_group._f_remove(recursive=True)
if solset == self.current_solset:
logger.warning("Setting current solset to None because you deleted it.")
self._current_solset = None
logger.info("Deleted solset {}.".format(solset))
def add_antenna_table(self):
with self:
if self.current_solset is None:
raise ValueError("Current solset is None.")
solset_group = self._H.root._v_groups[self.current_solset]
class Antenna(tb.IsDescription):
name = tb.StringCol(16, pos=1)
position = tb.Float64Col(shape=3, dflt=0.0, pos=2)
# tb.Col(np.float64,3, np.zeros(3, dtype=np.float64),pos=2)
# descriptor = np.dtype([('name', np.str_, 16), ('position', np.float64, 3)])
self._H.create_table(solset_group, 'antenna', Antenna,
title='Antenna names and positions', expectedrows=62)
logger.info("Created antenna table.")
def add_directions_table(self):
with self:
if self.current_solset is None:
raise ValueError("Current solset is None.")
solset_group = self._H.root._v_groups[self.current_solset]
class Direction(tb.IsDescription):
name = tb.StringCol(128, pos=1)
dir = tb.Float64Col(shape=2, dflt=0.0, pos=2)
# tb.Col(np.float64, 2, np.zeros(2, dtype=np.float64), pos=2)
# descriptor = np.dtype([('name', np.str_, 16), ('position', np.float64, 3)])
self._H.create_table(solset_group, 'source', Direction,
title='Direction names and directions', expectedrows=35)
logger.info("Created direction table.")
def set_antennas(self, antenna_labels, antennas):
with self:
if self.current_solset is None:
raise ValueError("Current solset is None.")
solset_group = self._H.root._v_groups[self.current_solset]
if 'antenna' not in solset_group._v_leaves:
logger.info("antenna not in leaves. Adding.")
self.add_antenna_table()
antenna_table = solset_group._v_leaves['antenna']
antenna_table.remove_rows(0)
antenna_table.append(list(zip(antenna_labels, antennas)))
logger.info("Set the antenna table.")
def set_directions(self, patch_names, directions):
if patch_names is None:
patch_names = ["patch_{:03d}".format(i) for i in range(len(directions))]
with self:
if self.current_solset is None:
raise ValueError("Current solset is None.")
solset_group = self._H.root._v_groups[self.current_solset]
if 'source' not in solset_group._v_leaves:
self.add_directions_table()
direction_table = solset_group._v_leaves['source']
direction_table.remove_rows(0)
direction_table.append(list(zip(patch_names, directions)))
logger.info("Set the direction table.")
def save_array_file(self, array_file):
with self:
ants = self._solset.getAnt()
labels = []
locs = []
for label, pos in ants.items():
labels.append(label)
locs.append(pos)
Na = len(labels)
with open(array_file, 'w') as f:
f.write('# Created on {0} by <NAME>\n'.format(time.strftime("%a %c", time.localtime())))
f.write('# ITRS(m)\n')
f.write('# X\tY\tZ\tlabels\n')
i = 0
while i < Na:
f.write(
'{0:1.9e}\t{1:1.9e}\t{2:1.9e}\t{4}'.format(locs[i][0], locs[i][1], locs[i][2], labels[i]))
if i < Na - 1:
f.write('\n')
i += 1
@property
def antennas(self):
with self:
if self.current_solset is None:
raise ValueError("Current solset is None.")
solset_group = self._H.root._v_groups[self.current_solset]
if 'antenna' not in solset_group._v_leaves:
self.add_antenna_table()
antenna_table = solset_group._v_leaves['antenna']
return antenna_table.col('name'), antenna_table.col('position')
@property
def directions(self):
with self:
if self.current_solset is None:
raise ValueError("Current solset is None.")
solset_group = self._H.root._v_groups[self.current_solset]
if 'source' not in solset_group._v_leaves:
self.add_directions_table()
direction_table = solset_group._v_leaves['source']
return direction_table.col('name'), direction_table.col('dir')
def __repr__(self):
def grouper(n, iterable, fillvalue=None):
"grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx"
args = [iter(iterable)] * n
return itertools.zip_longest(*args, fillvalue=fillvalue)
_temp_solset = self.current_solset
info = "==== DataPack: {} ====\n".format(os.path.abspath(self.filename))
for solset in self.solsets:
self.current_solset = solset
info += "=== solset: {} ===\n".format(solset)
info += "Directions: \n"
for i, src_name1 in enumerate(zip(*self.directions)):
info += "{} -> {}\t{}\n".format(i, src_name1[0], list(src_name1[1]))
info += "\nStations: \n"
for i, ant1 in enumerate(zip(*self.antennas)):
info += "{} -> {}\t{}\n".format(i, ant1[0], list(ant1[1]))
for soltab in self.soltabs:
info += "== soltab: {} ==\n".format(soltab)
shape = [len(axis_vals) for axis_vals, axis in zip(*self.soltab_axes(soltab))]
axes = [axis for axis_vals, axis in zip(*self.soltab_axes(soltab))]
info += "shape: {}\n".format(shape)
info += "axes: {}\n".format(axes)
# for axis_vals, axis, size, dtype in zip(*self.soltab_axes(soltab)):
# info += "Axis: {} {} {}\n{}\n".format(axis,size, dtype,list(axis_vals))
self.current_solset = _temp_solset
return info
def select(self, **axes):
self._selection = {}
for axis_name in self.axes_order:
if axis_name not in axes.keys():
continue
if isinstance(axes[axis_name], int):
self._selection[axis_name] = [axes[axis_name]]
else:
self._selection[axis_name] = axes[axis_name]
def select_all(self):
self._selection = None
@property
def allowed_soltab_prefixes(self):
# return [soltab.replace("000","") for soltab in self.soltabs]
return ['phase', 'amplitude', 'tec', 'clock', 'const']
def soltab_axes(self, soltab):
with self:
if soltab not in self.soltabs:
logger.warning('Soltab {} does not exist.'.format(soltab))
return
with self:
if self.current_solset is None:
raise ValueError("Current solset is None.")
solset_group = self._H.root._v_groups[self.current_solset]
soltab_group = solset_group._v_groups[soltab]
val_leaf = soltab_group._v_leaves['val']
try:
axes = val_leaf.attrs['AXES'].split(',')
except TypeError:
axes = [s.decode().lower() for s in val_leaf.attrs['AXES'].split(b',')]
shape = []
type = []
vals = []
for axis in axes:
axis_vals = soltab_group._v_leaves[axis].read()
vals.append(axis_vals)
shape.append(len(axis_vals))
type.append(np.array(axis_vals).dtype)
return vals, axes
def get_selection(self, soltab):
if self._selection is None:
self._selection = {}
if soltab not in self.soltabs:
raise ValueError('Soltab {} does not exist.'.format(soltab))
if self.current_solset is None:
raise ValueError("Current solset is None.")
selection = []
# goal is to reduce everything to slices if possible for efficient usage of pytables
for axis_val, axis in zip(*self.soltab_axes(soltab)):
axis_selection = self._selection.get(axis, None)
if axis_selection is None:
selection.append(slice(None, None, None))
elif isinstance(axis_selection, slice):
selection.append(axis_selection)
elif isinstance(axis_selection, (tuple, list)):
list_select = []
for element in axis_selection:
if isinstance(element, int):
if element >= len(axis_val):
raise ValueError(
"Selecting index greater than length of axis {} {}".format(element, axis_val))
list_select.append(element)
else:
idx = np.where(axis_val.astype(type(element)) == element)[0]
if len(idx) == 0:
raise ValueError("Element not in axis {} {}".format(element, axis_val))
list_select.append(idx[0])
selection.append(list_select)
elif isinstance(axis_selection, str):
axis_val = np.asarray(axis_val)
is_pattern = []
for idx, element in enumerate(axis_val.astype(type(axis_selection))):
if re.search(axis_selection, element) is not None:
is_pattern.append(idx)
selection.append(is_pattern)
else:
raise ValueError("Unable to parse {}".format(axis_selection))
# replace all lists with slices if possible: limitation of only one list per indexing
corrected_selection = []
for sel in selection:
_sel = sel
if isinstance(sel, list):
if sel[0] != np.min(sel) or sel[-1] != np.max(sel):
break
if len(sel) == 1:
_sel = slice(sel[0], sel[0] + 1, 1)
else:
try_slice = slice(sel[0], sel[-1] + 1, (sel[-1] - sel[0]) // (len(sel) - 1))
comp_list = list(range(sel[0], sel[-1] + 1, (sel[-1] - sel[0]) // (len(sel) - 1)))
if comp_list == sel:
_sel = try_slice
corrected_selection.append(_sel)
num_lists = sum([1 if isinstance(sel, list) else 0 for sel in corrected_selection])
if num_lists > 1:
raise IndexError("Due to a limitation, only one fancy indexing can be applied per pytables getattr.")
return tuple(corrected_selection)
def get_axes_perm(self, actual_axes, want_axes):
"""
Get the permutation that changes the actual stored axes to prefered axes order stored
in self.axes_order.
:param actual_axes: list of str
The order of axes in an array
:return: tuple of int
"""
if not isinstance(actual_axes, (list, tuple)):
raise TypeError("actual axes must be a list or tuple of str")
actual_axes = list(actual_axes)
if not isinstance(want_axes, (list, tuple)):
raise TypeError("want axes must be a list or tuple of str")
want_axes = list(want_axes)
for a in want_axes:
if a not in actual_axes:
raise ValueError("Missing {} in {}.".format(a, actual_axes))
return tuple([actual_axes.index(a) for a in want_axes])
def get_soltab(self, soltab, weight=False):
with self:
selection = self.get_selection(soltab)
soltab_axes_vals, soltab_axes = self.soltab_axes(soltab)
###
# assumes the desired axes are in self.ordered_axes
want_axes = [a for a in self.axes_order if a in soltab_axes]
actual_axes = soltab_axes
perm = self.get_axes_perm(actual_axes, want_axes)
solset_group = self._H.root._v_groups[self.current_solset]
soltab_group = solset_group._v_groups[soltab]
if weight:
leaf = soltab_group._v_leaves['weight']
else:
leaf = soltab_group._v_leaves['val']
out_axes = {name: np.array(vals)[selection[i]] for i, (vals, name) in
enumerate(zip(soltab_axes_vals, soltab_axes))}
out_vals = leaf.__getitem__(selection).transpose(perm)
return out_vals, out_axes
def set_soltab(self, soltab, value, weight=False):
"""
Sets the values of soltab, according to the current selection.
:param soltab: str
:param value: np.array or array like
Should have shape of self.axes_order
:param weight: bool
Whether you are setting weights or not
:return:
"""
with self:
selection = self.get_selection(soltab)
solset_group = self._H.root._v_groups[self.current_solset]
soltab_group = solset_group._v_groups[soltab]
_, soltab_axes = self.soltab_axes(soltab)
###
#
want_axes = soltab_axes
actual_axes = [a for a in self.axes_order if a in soltab_axes]
perm = self.get_axes_perm(actual_axes, want_axes)
if weight:
leaf = soltab_group._v_leaves['weight']
else:
leaf = soltab_group._v_leaves['val']
leaf.__setitem__(selection, value.transpose(perm))
def __getattr__(self, tab):
"""
Get a value in allowed soltabs or pass on to underlying.
:param tab:
:return: np.array
Shape as determined by self.axes_order
"""
# with self:
# tabs = self._solset.getSoltabNames()
tabs = self.allowed_soltab_prefixes
tabs = ["weights_{}".format(t) for t in tabs] + ["axes_{}".format(t) for t in tabs] + tabs
weight = False
axes = False
if any([tab.startswith(t) for t in tabs]):
if tab.startswith("weights_"):
tab = "".join(tab.split('weights_')[1:])
weight = True
if tab.startswith("axes_"):
tab = "".join(tab.split('axes_')[1:])
axes = True
with self:
soltab = "{}000".format(tab)
selection = self.get_selection(soltab)
soltab_axes_vals, soltab_axes = self.soltab_axes(soltab)
###
# assumes the desired axes are in self.ordered_axes
want_axes = [a for a in self.axes_order if a in soltab_axes]
actual_axes = soltab_axes
perm = self.get_axes_perm(actual_axes, want_axes)
if not axes:
solset_group = self._H.root._v_groups[self.current_solset]
soltab_group = solset_group._v_groups[soltab]
if weight:
leaf = soltab_group._v_leaves['weight']
else:
leaf = soltab_group._v_leaves['val']
out_axes = {name: np.array(vals)[selection[i]] for i, (vals, name) in
enumerate(zip(soltab_axes_vals, soltab_axes))}
out_vals = leaf.__getitem__(selection).transpose(perm)
return out_vals, out_axes
else:
out_axes = {name: np.array(vals)[selection[i]] for i, (vals, name) in
enumerate(zip(soltab_axes_vals, soltab_axes))}
return out_axes
else:
return object.__getattribute__(self, tab)
def __setattr__(self, tab, value):
"""
Links any attribute with an "axis name" to getValuesAxis("axis name")
also links val and weight to the relative arrays.
Parameter
----------
axis : str
The axis name.
value : array
The array of the right shape for selection.
Assumes the values to set are in self.axes_order
"""
# with self:
# tabs = self._solset.getSoltabNames()
tabs = self.allowed_soltab_prefixes
tabs = ["weights_{}".format(t) for t in tabs] + ["axes_{}".format(t) for t in tabs] + tabs
weight = False
axes = False
if any([tab.startswith(t) for t in tabs]):
if tab.startswith("weights_"):
tab = "".join(tab.split('weights_')[1:])
weight = True
if tab.startswith("axes_"):
tab = "".join(tab.split('axes_')[1:])
axes = True
with self:
soltab = "{}000".format(tab)
selection = self.get_selection(soltab)
solset_group = self._H.root._v_groups[self.current_solset]
soltab_group = solset_group._v_groups[soltab]
_, soltab_axes = self.soltab_axes(soltab)
###
#
want_axes = soltab_axes
actual_axes = [a for a in self.axes_order if a in soltab_axes]
perm = self.get_axes_perm(actual_axes, want_axes)
if not axes:
if weight:
leaf = soltab_group._v_leaves['weight']
else:
leaf = soltab_group._v_leaves['val']
leaf.__setitem__(selection, value.transpose(perm))
else:
if not isinstance(value, dict):
raise ("Axes must come in dict of 'name':vals")
for i, (k, v) in enumerate(value.items()):
axis_vals = soltab_group._v_leaves[k]
axis_vals[selection[i]] = v
else:
object.__setattr__(self, tab, value)
@property
def ref_ant(self):
with self:
antenna_labels, antennas = self.antennas
return antenna_labels[0]
@property
def array_center(self):
with self:
_, antennas = self.get_antennas(None)
center = antennas.cartesian.xyz[:, 0]
center = ac.SkyCoord(x=center[0], y=center[1], z=center[2], frame='itrs')
return center
@property
def mean_array_loc(self):
with self:
_, antennas = self.get_antennas(None)
center = np.mean(antennas.cartesian.xyz, axis=1)
center = ac.SkyCoord(x=center[0], y=center[1], z=center[2], frame='itrs')
return center
def get_antennas(self, ants):
with self:
antenna_labels, antennas = self.antennas
if ants is None:
lookup = slice(None, None, None)
else:
ants = np.array(ants).astype(antenna_labels.dtype)
lookup = []
for a in ants:
if a not in antenna_labels:
raise ValueError("Antenna not found in solset {} {}".format(a, antenna_labels))
lookup.append(np.where(a == antenna_labels)[0][0])
antennas = antennas[lookup, :]
return antenna_labels[lookup], ac.SkyCoord(antennas[:, 0] * au.m, antennas[:, 1] * au.m,
antennas[:, 2] * au.m, frame='itrs')
@property
def pointing_center(self):
with self:
_, directions = self.get_directions(None)
ra_mean = np.mean(directions.transform_to('icrs').ra)
dec_mean = np.mean(directions.transform_to('icrs').dec)
dir = ac.SkyCoord(ra_mean, dec_mean, frame='icrs')
return dir
def get_directions(self, dirs):
with self:
patch_names, directions = self.directions
if dirs is None:
lookup = slice(None, None, None)
else:
dirs = np.array(dirs).astype(patch_names.dtype)
lookup = []
for a in dirs:
if a not in patch_names:
raise ValueError("Direction not found in solset {} {}".format(a, patch_names))
lookup.append(np.where(a == patch_names)[0][0])
directions = directions[lookup, :]
return patch_names[lookup], ac.SkyCoord(directions[:, 0] * au.rad, directions[:, 1] * au.rad, frame='icrs')
def get_times(self, times):
"""
times are stored as mjs
"""
times = at.Time(times / 86400., format='mjd')
return times.isot, times
def get_freqs(self, freqs):
labs = ['{:.1f}MHz'.format(f / 1e6) for f in freqs]
return np.array(labs), freqs*au.Hz
def get_pols(self, pols):
with self:
return pols, np.arange(len(pols), dtype=np.int32)
| [
1,
529,
276,
1112,
420,
29958,
29967,
10578,
3357,
284,
2151,
29914,
29882,
29945,
862,
29885,
29966,
9507,
29958,
29882,
29945,
862,
29885,
29914,
4130,
481,
547,
29889,
2272,
13,
5215,
6131,
408,
260,
29890,
13,
5215,
2897,
13,
5215,
12655,
408,
7442,
13,
5215,
8717,
14441,
29889,
348,
1169,
408,
782,
13,
5215,
8717,
14441,
29889,
2230,
408,
472,
13,
5215,
8717,
14441,
29889,
1111,
24266,
408,
1274,
13,
5215,
10876,
13,
5215,
931,
13,
5215,
4256,
8504,
13,
5215,
337,
13,
5215,
12183,
13,
13,
21707,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
3166,
298,
29945,
862,
29885,
29889,
3396,
841,
749,
1053,
18164,
13,
13,
13,
1753,
903,
1359,
29918,
2378,
29918,
1445,
29898,
2378,
29918,
1445,
1125,
13,
1678,
14550,
5896,
29879,
263,
11799,
988,
1269,
1948,
338,
921,
29892,
29891,
29892,
29920,
297,
1737,
542,
296,
2200,
306,
5659,
29903,
1302,
4339,
310,
278,
25504,
22911,
12008,
13,
13,
1678,
4072,
353,
7442,
29889,
29881,
1853,
3319,
29915,
7039,
2396,
6024,
19569,
742,
525,
29990,
29918,
1806,
12445,
742,
525,
29979,
29918,
1806,
12445,
742,
525,
29999,
29918,
1806,
12445,
7464,
13,
462,
418,
525,
689,
1446,
2396,
6024,
29903,
29896,
29953,
742,
7442,
29889,
8896,
29892,
7442,
29889,
8896,
29892,
7442,
29889,
8896,
29892,
7442,
29889,
8896,
29962,
1800,
13,
1678,
270,
353,
7442,
29889,
1885,
3166,
3945,
29898,
2378,
29918,
1445,
29892,
6589,
2433,
29937,
742,
28552,
29922,
742,
742,
26688,
29922,
8768,
29897,
13,
1678,
11073,
353,
7442,
29889,
2378,
29898,
29881,
1839,
19569,
13359,
579,
668,
29898,
710,
876,
13,
1678,
1180,
29879,
353,
1274,
29889,
29903,
3459,
7967,
536,
29898,
29916,
29922,
29881,
1839,
29990,
29918,
1806,
12445,
2033,
334,
782,
29889,
29885,
29892,
343,
29922,
29881,
1839,
29979,
29918,
1806,
12445,
2033,
334,
782,
29889,
29885,
29892,
503,
29922,
29881,
1839,
29999,
29918,
1806,
12445,
2033,
334,
782,
29889,
29885,
29892,
3515,
2433,
277,
2288,
1495,
13,
1678,
405,
10204,
1056,
353,
938,
29898,
9302,
29889,
2311,
29898,
29881,
1839,
29990,
29918,
1806,
12445,
25901,
13,
1678,
11502,
2699,
353,
6213,
13,
1678,
736,
7442,
29889,
2378,
29898,
21134,
467,
579,
668,
29898,
9302,
29889,
710,
29918,
511,
1180,
29879,
29889,
13823,
18970,
29889,
20230,
29889,
517,
29898,
585,
29889,
29885,
467,
1767,
29889,
3286,
4220,
580,
13,
13,
13,
1753,
2767,
29918,
29882,
29945,
862,
29885,
29898,
1025,
29918,
29882,
29945,
862,
29885,
29892,
716,
29918,
29882,
29945,
862,
29885,
1125,
13,
1678,
9995,
13,
1678,
2233,
2873,
385,
2030,
379,
29945,
862,
29885,
12234,
2825,
411,
4309,
6295,
4986,
29892,
393,
871,
756,
20623,
2130,
29889,
13,
13,
1678,
584,
3207,
2030,
29918,
29882,
29945,
862,
29885,
29901,
13,
1678,
584,
3207,
716,
29918,
29882,
29945,
862,
29885,
29901,
13,
1678,
584,
2457,
29901,
13,
1678,
9995,
13,
1678,
17927,
29889,
3888,
703,
3373,
26747,
6571,
1642,
4830,
29898,
1025,
29918,
29882,
29945,
862,
29885,
876,
13,
1678,
1831,
353,
9657,
29898,
424,
29922,
8516,
29892,
931,
29922,
8516,
29892,
4516,
29922,
8516,
29892,
3005,
29939,
29922,
8516,
29892,
1248,
29922,
8516,
29897,
13,
1678,
2030,
353,
3630,
16638,
29898,
1025,
29918,
29882,
29945,
862,
29885,
29892,
20623,
29922,
5574,
29897,
13,
1678,
716,
353,
3630,
16638,
29898,
1482,
29918,
29882,
29945,
862,
29885,
29892,
20623,
29922,
8824,
29897,
13,
1678,
17927,
29889,
3888,
703,
20399,
6571,
1642,
4830,
29898,
1482,
29918,
29882,
29945,
862,
29885,
876,
13,
1678,
899,
7224,
353,
2030,
29889,
2929,
7224,
13,
13,
1678,
363,
899,
842,
297,
899,
7224,
29901,
13,
4706,
2030,
29889,
3784,
29918,
2929,
842,
353,
899,
842,
13,
4706,
2030,
29889,
2622,
29898,
1068,
2622,
29897,
13,
4706,
25504,
1056,
29918,
21134,
29892,
25504,
22911,
353,
2030,
29889,
424,
2108,
294,
13,
4706,
13261,
29918,
7039,
29892,
18112,
353,
2030,
29889,
20146,
1953,
13,
4706,
396,
18512,
278,
25504,
22911,
526,
451,
731,
6284,
297,
278,
2441,
1418,
481,
547,
13,
4706,
565,
899,
842,
297,
716,
29889,
2929,
7224,
29901,
13,
9651,
716,
29889,
8143,
29918,
2929,
842,
29898,
2929,
842,
29897,
13,
4706,
565,
7442,
29889,
2083,
29898,
424,
2108,
294,
29897,
1275,
29871,
29900,
4898,
13,
9651,
716,
29889,
1202,
29918,
2929,
842,
29898,
2929,
842,
29892,
13,
462,
965,
1409,
29918,
1445,
29922,
1469,
16638,
29889,
417,
15641,
29918,
2378,
29892,
13,
462,
965,
18112,
29922,
20146,
1953,
29892,
13,
462,
965,
13261,
29918,
7039,
29922,
5041,
29918,
7039,
29897,
13,
4706,
1683,
29901,
13,
9651,
716,
29889,
1202,
29918,
2929,
842,
29898,
2929,
842,
29892,
13,
462,
965,
25504,
1056,
29918,
21134,
29922,
10204,
1056,
29918,
21134,
29892,
13,
462,
965,
25504,
22911,
29922,
424,
2108,
294,
29892,
13,
462,
965,
18112,
29922,
20146,
1953,
29892,
13,
462,
965,
13261,
29918,
7039,
29922,
5041,
29918,
7039,
29897,
13,
13,
4706,
716,
29889,
3784,
29918,
2929,
842,
353,
899,
842,
13,
13,
4706,
899,
21175,
353,
2030,
29889,
2929,
21175,
13,
4706,
363,
899,
3891,
297,
899,
21175,
29901,
13,
9651,
565,
899,
3891,
297,
716,
29889,
2929,
21175,
29901,
13,
18884,
716,
29889,
8143,
29918,
2929,
3891,
29898,
2929,
3891,
29897,
13,
9651,
27815,
353,
426,
29895,
29901,
325,
363,
313,
29894,
29892,
413,
29897,
297,
14319,
10456,
1025,
29889,
2929,
3891,
29918,
1165,
267,
29898,
2929,
3891,
876,
29913,
13,
13,
9651,
25504,
1056,
29918,
21134,
29892,
25504,
22911,
353,
2030,
29889,
657,
29918,
424,
2108,
294,
29898,
1165,
267,
1839,
424,
11287,
13,
9651,
13261,
29918,
7039,
29892,
18112,
353,
2030,
29889,
657,
29918,
20146,
1953,
29898,
1165,
267,
1839,
3972,
11287,
13,
9651,
5335,
342,
15092,
29892,
3064,
353,
2030,
29889,
657,
29918,
3706,
29898,
1165,
267,
1839,
2230,
11287,
13,
9651,
1248,
29918,
21134,
29892,
1248,
29879,
353,
2030,
29889,
657,
29918,
3733,
29879,
29898,
1165,
267,
1839,
3733,
11287,
13,
9651,
659,
29879,
29892,
903,
353,
2030,
29889,
657,
29918,
2929,
3891,
29898,
2929,
3891,
29892,
7688,
29922,
8824,
29897,
13,
9651,
7688,
29918,
791,
29879,
29892,
903,
353,
2030,
29889,
657,
29918,
2929,
3891,
29898,
2929,
3891,
29892,
7688,
29922,
5574,
29897,
13,
9651,
565,
525,
29888,
7971,
29915,
297,
27815,
29889,
8149,
7295,
13,
18884,
3005,
29939,
29918,
21134,
29892,
3005,
29939,
29879,
353,
2030,
29889,
657,
29918,
29888,
7971,
29879,
29898,
1165,
267,
1839,
29888,
7971,
11287,
13,
18884,
716,
29889,
1202,
29918,
2929,
3891,
29898,
2929,
3891,
29892,
1819,
29922,
791,
29879,
29892,
18177,
29922,
7915,
29918,
791,
29879,
29892,
7688,
29928,
1853,
2433,
29888,
29896,
29953,
742,
931,
29922,
3706,
29889,
29885,
26012,
334,
29871,
29947,
29953,
29946,
29900,
29900,
1696,
13,
462,
1669,
1248,
29922,
3733,
29918,
21134,
29892,
13,
462,
1669,
3677,
29922,
10204,
1056,
29918,
21134,
29892,
13,
462,
1669,
4516,
29922,
5041,
29918,
7039,
29892,
3005,
29939,
29922,
29888,
7971,
29879,
29897,
13,
9651,
1683,
29901,
13,
18884,
716,
29889,
1202,
29918,
2929,
3891,
29898,
2929,
3891,
29892,
1819,
29922,
791,
29879,
29892,
18177,
29922,
7915,
29918,
791,
29879,
29892,
7688,
29928,
1853,
2433,
29888,
29896,
29953,
742,
931,
29922,
3706,
29889,
29885,
26012,
334,
29871,
29947,
29953,
29946,
29900,
29900,
1696,
13,
462,
1669,
1248,
29922,
3733,
29918,
21134,
29892,
13,
462,
1669,
3677,
29922,
10204,
1056,
29918,
21134,
29892,
13,
462,
1669,
4516,
29922,
5041,
29918,
7039,
29897,
13,
13,
13,
1990,
3630,
16638,
29898,
3318,
1125,
13,
1678,
396,
903,
29950,
29901,
260,
29890,
29889,
2283,
13,
1678,
903,
2378,
29879,
353,
2897,
29889,
2084,
29889,
25721,
29898,
9675,
29889,
7576,
3366,
29882,
29945,
862,
29885,
16862,
1649,
1445,
1649,
29897,
13,
1678,
658,
15641,
29918,
2378,
353,
2897,
29889,
2084,
29889,
7122,
7373,
2378,
29879,
29892,
525,
2378,
29879,
29914,
417,
15641,
29889,
10204,
1056,
29889,
16859,
1495,
13,
1678,
658,
15641,
29918,
2378,
29918,
29882,
2291,
353,
2897,
29889,
2084,
29889,
7122,
7373,
2378,
29879,
29892,
525,
2378,
29879,
29914,
417,
15641,
29889,
29882,
2291,
29889,
10204,
1056,
29889,
16859,
1495,
13,
1678,
330,
29885,
2273,
29918,
2378,
353,
2897,
29889,
2084,
29889,
7122,
7373,
2378,
29879,
29892,
525,
2378,
29879,
29914,
29887,
29885,
2273,
9135,
29889,
16859,
1495,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
10422,
29892,
20623,
29922,
8824,
1125,
13,
4706,
565,
338,
8758,
29898,
9507,
29892,
3630,
16638,
1125,
13,
9651,
10422,
353,
10422,
29889,
9507,
13,
4706,
1583,
29889,
9507,
353,
2897,
29889,
2084,
29889,
370,
1028,
493,
29898,
9507,
29897,
13,
4706,
565,
451,
2897,
29889,
2084,
29889,
275,
1445,
29898,
1311,
29889,
9507,
29897,
322,
20623,
29901,
13,
9651,
12020,
10663,
2392,
703,
2283,
6571,
1838,
29915,
29873,
1863,
29892,
322,
297,
20623,
4464,
1642,
4830,
29898,
1311,
29889,
9507,
876,
13,
4706,
1583,
29889,
949,
6194,
353,
20623,
13,
4706,
1583,
3032,
29950,
353,
6213,
13,
4706,
1583,
3032,
4703,
29879,
29918,
3150,
353,
29871,
29900,
13,
4706,
1583,
3032,
21731,
353,
6213,
13,
4706,
1583,
3032,
3784,
29918,
2929,
842,
353,
6213,
13,
4706,
1583,
29889,
1165,
267,
29918,
2098,
353,
6024,
3733,
742,
525,
3972,
742,
525,
424,
742,
525,
29888,
7971,
742,
525,
2230,
2033,
13,
4706,
1583,
29889,
1165,
267,
29918,
271,
4835,
353,
11117,
3733,
2396,
313,
9302,
29889,
710,
3383,
260,
29890,
29889,
1231,
4178,
290,
29898,
29896,
29953,
8243,
13,
462,
965,
525,
3972,
2396,
313,
9302,
29889,
710,
3383,
260,
29890,
29889,
1231,
4178,
290,
29898,
29896,
29906,
29947,
8243,
13,
462,
965,
525,
424,
2396,
313,
9302,
29889,
710,
3383,
260,
29890,
29889,
1231,
4178,
290,
29898,
29896,
29953,
8243,
13,
462,
965,
525,
29888,
7971,
2396,
313,
9302,
29889,
7411,
29953,
29946,
29892,
260,
29890,
29889,
11031,
29953,
29946,
4178,
290,
25739,
13,
462,
965,
525,
2230,
2396,
313,
9302,
29889,
7411,
29953,
29946,
29892,
260,
29890,
29889,
11031,
29953,
29946,
4178,
290,
580,
2915,
13,
4706,
565,
7431,
29898,
1311,
29889,
2929,
7224,
29897,
1405,
29871,
29900,
29901,
13,
9651,
1583,
29889,
3784,
29918,
2929,
842,
353,
1583,
29889,
2929,
7224,
29961,
29900,
29962,
13,
13,
1678,
732,
6799,
13,
1678,
822,
27815,
29918,
2098,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
1165,
267,
29918,
2098,
13,
13,
1678,
732,
1165,
267,
29918,
2098,
29889,
842,
357,
13,
1678,
822,
27815,
29918,
2098,
29898,
1311,
29892,
27815,
1125,
13,
4706,
565,
451,
338,
8758,
29898,
1165,
267,
29892,
313,
23583,
29892,
1051,
22164,
13,
9651,
12020,
7865,
2392,
703,
1165,
267,
881,
367,
263,
1051,
470,
18761,
29889,
6571,
1642,
4830,
29898,
1853,
29898,
1165,
267,
4961,
13,
4706,
1797,
353,
5159,
13,
4706,
363,
9685,
297,
27815,
29901,
13,
9651,
565,
9685,
451,
297,
6024,
424,
742,
525,
3972,
742,
525,
29888,
7971,
742,
525,
3733,
742,
525,
2230,
2033,
29901,
13,
18884,
12020,
7865,
2392,
703,
16070,
6571,
451,
263,
2854,
9685,
1213,
29889,
4830,
29898,
8990,
876,
13,
9651,
565,
9685,
297,
1797,
29901,
13,
18884,
12020,
7865,
2392,
703,
9692,
7929,
297,
20520,
29889,
6571,
1642,
4830,
29898,
1165,
267,
876,
13,
9651,
1797,
29889,
4397,
29898,
8990,
29897,
13,
4706,
1583,
3032,
1165,
267,
29918,
2098,
353,
1797,
13,
13,
1678,
732,
6799,
13,
1678,
822,
20623,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
949,
6194,
13,
13,
1678,
732,
949,
6194,
29889,
842,
357,
13,
1678,
822,
20623,
29898,
1311,
29892,
995,
1125,
13,
4706,
565,
451,
338,
8758,
29898,
1767,
29892,
6120,
1125,
13,
9651,
12020,
7865,
2392,
703,
6359,
6194,
1818,
367,
263,
6120,
23157,
13,
4706,
1583,
3032,
949,
6194,
353,
995,
13,
13,
1678,
822,
4770,
5893,
12035,
1311,
1125,
13,
13,
4706,
565,
1583,
3032,
4703,
29879,
29918,
3150,
1275,
29871,
29900,
29901,
13,
9651,
1583,
3032,
29950,
353,
260,
29890,
29889,
3150,
29918,
1445,
29898,
1311,
29889,
9507,
29892,
4464,
2433,
29878,
29915,
565,
1583,
29889,
949,
6194,
1683,
525,
29874,
1495,
13,
4706,
1583,
3032,
4703,
29879,
29918,
3150,
4619,
29871,
29896,
13,
4706,
736,
1583,
13,
13,
1678,
822,
4770,
13322,
12035,
1311,
29892,
5566,
29918,
1853,
29892,
5566,
29918,
791,
29892,
5566,
29918,
22625,
1125,
13,
4706,
565,
1583,
3032,
4703,
29879,
29918,
3150,
1275,
29871,
29896,
29901,
13,
9651,
1583,
3032,
29950,
29889,
5358,
580,
13,
9651,
1583,
3032,
29950,
353,
6213,
13,
4706,
1583,
3032,
4703,
29879,
29918,
3150,
22361,
29871,
29896,
13,
13,
1678,
732,
6799,
13,
1678,
822,
1857,
29918,
2929,
842,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
3784,
29918,
2929,
842,
13,
13,
1678,
732,
3784,
29918,
2929,
842,
29889,
842,
357,
13,
1678,
822,
1857,
29918,
2929,
842,
29898,
1311,
29892,
899,
842,
1125,
13,
4706,
565,
899,
842,
451,
297,
1583,
29889,
2929,
7224,
29901,
13,
9651,
12020,
7865,
2392,
703,
13296,
842,
6571,
947,
451,
1863,
1213,
29889,
4830,
29898,
2929,
842,
876,
13,
4706,
1583,
3032,
3784,
29918,
2929,
842,
353,
899,
842,
13,
4706,
17927,
29889,
3888,
703,
2697,
1857,
899,
842,
304,
29901,
6571,
1642,
4830,
29898,
1311,
3032,
3784,
29918,
2929,
842,
876,
13,
13,
1678,
822,
731,
29918,
3784,
29918,
2929,
842,
29898,
1311,
29892,
899,
842,
1125,
13,
4706,
565,
899,
842,
451,
297,
1583,
29889,
2929,
7224,
29901,
13,
9651,
12020,
7865,
2392,
703,
13296,
842,
6571,
947,
451,
1863,
1213,
29889,
4830,
29898,
2929,
842,
876,
13,
4706,
1583,
3032,
3784,
29918,
2929,
842,
353,
899,
842,
13,
4706,
17927,
29889,
3888,
703,
2697,
1857,
899,
842,
304,
29901,
6571,
1642,
4830,
29898,
1311,
3032,
3784,
29918,
2929,
842,
876,
13,
13,
1678,
732,
6799,
13,
1678,
822,
899,
7224,
29898,
1311,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
736,
518,
29895,
363,
413,
29892,
325,
297,
1583,
3032,
29950,
29889,
4632,
3032,
29894,
29918,
13155,
29889,
7076,
580,
29962,
13,
13,
1678,
732,
6799,
13,
1678,
822,
899,
21175,
29898,
1311,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
565,
1583,
29889,
3784,
29918,
2929,
842,
338,
6213,
29901,
13,
18884,
12020,
7865,
2392,
703,
7583,
899,
842,
338,
6213,
23157,
13,
9651,
899,
842,
29918,
2972,
353,
1583,
3032,
29950,
29889,
4632,
3032,
29894,
29918,
13155,
29961,
1311,
29889,
3784,
29918,
2929,
842,
29962,
13,
9651,
736,
518,
29895,
363,
413,
29892,
325,
297,
899,
842,
29918,
2972,
3032,
29894,
29918,
13155,
29889,
7076,
580,
29962,
13,
13,
1678,
732,
311,
17990,
630,
703,
11403,
1857,
29918,
2929,
842,
322,
788,
29918,
2929,
842,
1159,
13,
1678,
822,
4607,
29918,
2929,
842,
29898,
1311,
29892,
899,
842,
29892,
25504,
1056,
29918,
21134,
29922,
8516,
29892,
25504,
22911,
29922,
8516,
29892,
1409,
29918,
1445,
29922,
8516,
29892,
18112,
29922,
8516,
29892,
13,
462,
418,
13261,
29918,
7039,
29922,
8516,
1125,
13,
4706,
1583,
29889,
1202,
29918,
2929,
842,
29898,
2929,
842,
29892,
25504,
1056,
29918,
21134,
29892,
25504,
22911,
29892,
1409,
29918,
1445,
29892,
18112,
29892,
13,
462,
4706,
13261,
29918,
7039,
29897,
13,
13,
1678,
822,
788,
29918,
2929,
842,
29898,
1311,
29892,
899,
842,
29892,
25504,
1056,
29918,
21134,
29922,
8516,
29892,
25504,
22911,
29922,
8516,
29892,
1409,
29918,
1445,
29922,
8516,
29892,
13261,
29918,
7039,
29922,
8516,
29892,
13,
462,
259,
18112,
29922,
8516,
1125,
13,
4706,
9995,
13,
4706,
6204,
263,
899,
842,
29889,
13,
13,
4706,
584,
3207,
899,
842,
29901,
851,
13,
9651,
4408,
310,
899,
842,
13,
4706,
584,
3207,
25504,
1056,
29918,
21134,
29892,
25504,
22911,
29901,
1074,
731,
29918,
424,
2108,
294,
13,
4706,
584,
3207,
1409,
29918,
1445,
29901,
851,
13,
9651,
1409,
934,
304,
2254,
29892,
658,
15641,
1409,
565,
6213,
13,
4706,
584,
7529,
13261,
29918,
7039,
29892,
18112,
29901,
1074,
731,
29918,
20146,
1953,
13,
4706,
584,
3207,
18112,
29901,
13,
4706,
584,
2457,
29901,
13,
4706,
9995,
13,
4706,
565,
899,
842,
297,
1583,
29889,
2929,
7224,
29901,
13,
9651,
17927,
29889,
27392,
703,
13296,
842,
6571,
2307,
4864,
1213,
29889,
4830,
29898,
2929,
842,
876,
13,
9651,
1583,
29889,
3784,
29918,
2929,
842,
353,
899,
842,
13,
9651,
736,
13,
4706,
411,
1583,
29901,
13,
9651,
1583,
3032,
29950,
29889,
3258,
29918,
2972,
29898,
1311,
3032,
29950,
29889,
4632,
29892,
899,
842,
29892,
3611,
2433,
13296,
842,
29901,
6571,
4286,
4830,
29898,
2929,
842,
876,
13,
9651,
1583,
29889,
3784,
29918,
2929,
842,
353,
899,
842,
13,
9651,
1583,
29889,
1202,
29918,
10204,
1056,
29918,
2371,
580,
13,
9651,
565,
25504,
22911,
338,
6213,
29901,
13,
18884,
25504,
1056,
29918,
21134,
29892,
25504,
22911,
353,
903,
1359,
29918,
2378,
29918,
1445,
29898,
1311,
29889,
417,
15641,
29918,
2378,
29918,
29882,
2291,
565,
1409,
29918,
1445,
338,
6213,
1683,
1409,
29918,
1445,
29897,
13,
9651,
1583,
29889,
842,
29918,
424,
2108,
294,
29898,
10204,
1056,
29918,
21134,
29892,
25504,
22911,
29897,
13,
9651,
1583,
29889,
1202,
29918,
20146,
1953,
29918,
2371,
580,
13,
9651,
565,
18112,
338,
451,
6213,
29901,
13,
18884,
1583,
29889,
842,
29918,
20146,
1953,
29898,
5041,
29918,
7039,
29892,
18112,
29897,
13,
9651,
17927,
29889,
3888,
703,
20399,
899,
842,
6571,
1213,
29889,
4830,
29898,
2929,
842,
876,
13,
13,
1678,
822,
788,
29918,
2929,
3891,
29898,
1311,
29892,
899,
3891,
29892,
1819,
29922,
8516,
29892,
18177,
29922,
8516,
29892,
7688,
29928,
1853,
2433,
29888,
29896,
29953,
742,
3579,
1165,
267,
1125,
13,
4706,
565,
899,
3891,
297,
1583,
29889,
2929,
21175,
29901,
13,
9651,
17927,
29889,
27392,
877,
13296,
3891,
6571,
2307,
4864,
29889,
4286,
4830,
29898,
2929,
3891,
876,
13,
9651,
736,
13,
4706,
411,
1583,
29901,
13,
9651,
565,
1583,
29889,
3784,
29918,
2929,
842,
338,
6213,
29901,
13,
18884,
12020,
7865,
2392,
703,
7583,
899,
842,
338,
6213,
23157,
13,
9651,
899,
842,
29918,
2972,
353,
1583,
3032,
29950,
29889,
4632,
3032,
29894,
29918,
13155,
29961,
1311,
29889,
3784,
29918,
2929,
842,
29962,
13,
9651,
1583,
3032,
29950,
29889,
3258,
29918,
2972,
29898,
2929,
842,
29918,
2972,
29892,
899,
3891,
29892,
376,
13296,
3891,
29901,
6571,
1642,
4830,
29898,
2929,
3891,
876,
13,
9651,
899,
3891,
29918,
2972,
353,
899,
842,
29918,
2972,
3032,
29894,
29918,
13155,
29961,
2929,
3891,
29962,
13,
9651,
899,
3891,
29918,
2972,
3032,
29894,
29918,
5552,
29879,
1839,
862,
29885,
2585,
29918,
1853,
2033,
353,
5124,
13,
9651,
8267,
353,
5159,
13,
9651,
10372,
29918,
1165,
267,
353,
5159,
13,
9651,
363,
9685,
29918,
978,
297,
1583,
29889,
1165,
267,
29918,
2098,
29901,
13,
18884,
565,
9685,
29918,
978,
451,
297,
27815,
29889,
8149,
7295,
13,
462,
1678,
17927,
29889,
3888,
703,
13296,
3891,
4567,
9685,
6571,
1642,
4830,
29898,
8990,
29918,
978,
876,
13,
462,
1678,
6773,
13,
18884,
8267,
29889,
4397,
29898,
2435,
29898,
1165,
267,
29961,
8990,
29918,
978,
12622,
13,
18884,
10372,
29918,
1165,
267,
29889,
4397,
29898,
8990,
29918,
978,
29897,
13,
18884,
1583,
3032,
29950,
29889,
3258,
29918,
2378,
29898,
2929,
3891,
29918,
2972,
29892,
9685,
29918,
978,
29892,
5446,
29922,
9302,
29889,
2378,
29898,
1165,
267,
29961,
8990,
29918,
978,
11724,
13,
462,
462,
268,
3611,
2433,
16070,
29901,
6571,
4286,
4830,
29898,
8990,
29918,
978,
876,
29871,
396,
1919,
8678,
29922,
1311,
29889,
1165,
267,
29918,
271,
4835,
29961,
8990,
29918,
978,
3816,
29896,
2314,
13,
9651,
565,
1819,
338,
6213,
29901,
13,
18884,
1819,
353,
7442,
29889,
3298,
359,
29898,
12181,
29897,
13,
9651,
1583,
3032,
29950,
29889,
3258,
29918,
2378,
29898,
2929,
3891,
29918,
2972,
29892,
525,
791,
742,
5446,
29922,
5975,
29889,
579,
668,
29898,
9302,
29889,
7411,
29953,
29946,
511,
12301,
29922,
22625,
29889,
11031,
29953,
29946,
4178,
290,
3101,
13,
9651,
659,
29918,
29500,
353,
899,
3891,
29918,
2972,
3032,
29894,
29918,
280,
5989,
1839,
791,
2033,
13,
9651,
659,
29918,
29500,
29889,
5552,
29879,
1839,
6604,
2890,
2033,
353,
13420,
4286,
7122,
29898,
21693,
29918,
1165,
267,
29897,
13,
9651,
565,
7688,
29928,
1853,
451,
297,
6024,
29888,
29896,
29953,
742,
525,
29888,
29941,
29906,
742,
525,
29888,
29953,
29946,
2033,
29901,
13,
18884,
12020,
7865,
2392,
703,
15930,
287,
7688,
270,
8768,
526,
525,
29888,
29896,
29953,
3788,
29888,
29941,
29906,
742,
525,
29888,
29953,
29946,
29915,
1159,
13,
9651,
565,
18177,
338,
6213,
29901,
13,
18884,
18177,
353,
7442,
29889,
2873,
29898,
12181,
29897,
13,
9651,
565,
7688,
29928,
1853,
1275,
525,
29888,
29896,
29953,
2396,
13,
18884,
1583,
3032,
29950,
29889,
3258,
29918,
2378,
29898,
2929,
3891,
29918,
2972,
29892,
525,
7915,
742,
5446,
29922,
705,
5861,
29889,
579,
668,
29898,
9302,
29889,
7411,
29896,
29953,
511,
3611,
2433,
4806,
5861,
742,
13,
462,
462,
268,
12301,
29922,
22625,
29889,
11031,
29896,
29953,
4178,
290,
3101,
13,
9651,
25342,
7688,
29928,
1853,
1275,
525,
29888,
29941,
29906,
2396,
13,
18884,
1583,
3032,
29950,
29889,
3258,
29918,
2378,
29898,
2929,
3891,
29918,
2972,
29892,
525,
7915,
742,
5446,
29922,
705,
5861,
29889,
579,
668,
29898,
9302,
29889,
7411,
29941,
29906,
511,
3611,
2433,
4806,
5861,
742,
13,
462,
462,
268,
12301,
29922,
22625,
29889,
11031,
29941,
29906,
4178,
290,
3101,
13,
9651,
25342,
7688,
29928,
1853,
1275,
525,
29888,
29953,
29946,
2396,
13,
18884,
1583,
3032,
29950,
29889,
3258,
29918,
2378,
29898,
2929,
3891,
29918,
2972,
29892,
525,
7915,
742,
5446,
29922,
705,
5861,
29889,
579,
668,
29898,
9302,
29889,
7411,
29953,
29946,
511,
3611,
2433,
4806,
5861,
742,
13,
462,
462,
268,
12301,
29922,
22625,
29889,
11031,
29953,
29946,
4178,
290,
3101,
13,
9651,
7688,
29918,
29500,
353,
899,
3891,
29918,
2972,
3032,
29894,
29918,
280,
5989,
1839,
7915,
2033,
13,
9651,
7688,
29918,
29500,
29889,
5552,
29879,
1839,
6604,
2890,
2033,
353,
13420,
4286,
7122,
29898,
21693,
29918,
1165,
267,
29897,
13,
9651,
17927,
29889,
3888,
703,
20399,
899,
3891,
6571,
29914,
8875,
1642,
4830,
29898,
1311,
29889,
3784,
29918,
2929,
842,
29892,
899,
3891,
876,
13,
13,
1678,
822,
5217,
29918,
2929,
3891,
29898,
1311,
29892,
899,
3891,
1125,
13,
4706,
565,
899,
3891,
451,
297,
1583,
29889,
2929,
21175,
29901,
13,
9651,
12020,
7865,
2392,
703,
13296,
3891,
6571,
451,
297,
899,
842,
6571,
1213,
29889,
4830,
29898,
2929,
3891,
29892,
1583,
29889,
3784,
29918,
2929,
842,
876,
13,
4706,
411,
1583,
29901,
13,
9651,
899,
842,
29918,
2972,
353,
1583,
3032,
29950,
29889,
4632,
3032,
29894,
29918,
13155,
29961,
1311,
29889,
3784,
29918,
2929,
842,
29962,
13,
9651,
899,
3891,
29918,
2972,
353,
899,
842,
29918,
2972,
3032,
29894,
29918,
13155,
29961,
2929,
3891,
29962,
13,
9651,
899,
3891,
29918,
2972,
3032,
29888,
29918,
5992,
29898,
3757,
25397,
29922,
5574,
29897,
13,
13,
1678,
822,
5217,
29918,
2929,
842,
29898,
1311,
29892,
899,
842,
1125,
13,
4706,
565,
899,
842,
451,
297,
1583,
29889,
2929,
7224,
29901,
13,
9651,
12020,
7865,
2392,
703,
13296,
842,
6571,
5692,
451,
304,
1863,
1213,
29889,
4830,
29898,
2929,
842,
876,
13,
4706,
411,
1583,
29901,
13,
9651,
899,
842,
29918,
2972,
353,
1583,
3032,
29950,
29889,
4632,
3032,
29894,
29918,
13155,
29961,
2929,
842,
29962,
13,
9651,
899,
842,
29918,
2972,
3032,
29888,
29918,
5992,
29898,
3757,
25397,
29922,
5574,
29897,
13,
4706,
565,
899,
842,
1275,
1583,
29889,
3784,
29918,
2929,
842,
29901,
13,
9651,
17927,
29889,
27392,
703,
29020,
1857,
899,
842,
304,
6213,
1363,
366,
11132,
372,
23157,
13,
9651,
1583,
3032,
3784,
29918,
2929,
842,
353,
6213,
13,
4706,
17927,
29889,
3888,
703,
2772,
22742,
899,
842,
6571,
1213,
29889,
4830,
29898,
2929,
842,
876,
13,
13,
1678,
822,
788,
29918,
10204,
1056,
29918,
2371,
29898,
1311,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
565,
1583,
29889,
3784,
29918,
2929,
842,
338,
6213,
29901,
13,
18884,
12020,
7865,
2392,
703,
7583,
899,
842,
338,
6213,
23157,
13,
9651,
899,
842,
29918,
2972,
353,
1583,
3032,
29950,
29889,
4632,
3032,
29894,
29918,
13155,
29961,
1311,
29889,
3784,
29918,
2929,
842,
29962,
13,
13,
9651,
770,
530,
841,
1056,
29898,
22625,
29889,
3624,
9868,
1125,
13,
18884,
1024,
353,
260,
29890,
29889,
1231,
1625,
29898,
29896,
29953,
29892,
926,
29922,
29896,
29897,
13,
18884,
2602,
353,
260,
29890,
29889,
11031,
29953,
29946,
1625,
29898,
12181,
29922,
29941,
29892,
270,
1579,
29873,
29922,
29900,
29889,
29900,
29892,
926,
29922,
29906,
29897,
13,
18884,
396,
260,
29890,
29889,
1625,
29898,
9302,
29889,
7411,
29953,
29946,
29892,
29941,
29892,
7442,
29889,
3298,
359,
29898,
29941,
29892,
26688,
29922,
9302,
29889,
7411,
29953,
29946,
511,
1066,
29922,
29906,
29897,
13,
13,
9651,
396,
553,
11709,
353,
7442,
29889,
29881,
1853,
4197,
877,
978,
742,
7442,
29889,
710,
3383,
29871,
29896,
29953,
511,
6702,
3283,
742,
7442,
29889,
7411,
29953,
29946,
29892,
29871,
29941,
29897,
2314,
13,
9651,
1583,
3032,
29950,
29889,
3258,
29918,
2371,
29898,
2929,
842,
29918,
2972,
29892,
525,
10204,
1056,
742,
530,
841,
1056,
29892,
13,
462,
462,
3611,
2433,
13448,
264,
1056,
2983,
322,
11909,
742,
3806,
5727,
29922,
29953,
29906,
29897,
13,
9651,
17927,
29889,
3888,
703,
20399,
25504,
1056,
1591,
23157,
13,
13,
1678,
822,
788,
29918,
20146,
1953,
29918,
2371,
29898,
1311,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
565,
1583,
29889,
3784,
29918,
2929,
842,
338,
6213,
29901,
13,
18884,
12020,
7865,
2392,
703,
7583,
899,
842,
338,
6213,
23157,
13,
9651,
899,
842,
29918,
2972,
353,
1583,
3032,
29950,
29889,
4632,
3032,
29894,
29918,
13155,
29961,
1311,
29889,
3784,
29918,
2929,
842,
29962,
13,
13,
9651,
770,
360,
8684,
29898,
22625,
29889,
3624,
9868,
1125,
13,
18884,
1024,
353,
260,
29890,
29889,
1231,
1625,
29898,
29896,
29906,
29947,
29892,
926,
29922,
29896,
29897,
13,
18884,
4516,
353,
260,
29890,
29889,
11031,
29953,
29946,
1625,
29898,
12181,
29922,
29906,
29892,
270,
1579,
29873,
29922,
29900,
29889,
29900,
29892,
926,
29922,
29906,
29897,
13,
18884,
396,
260,
29890,
29889,
1625,
29898,
9302,
29889,
7411,
29953,
29946,
29892,
29871,
29906,
29892,
7442,
29889,
3298,
359,
29898,
29906,
29892,
26688,
29922,
9302,
29889,
7411,
29953,
29946,
511,
926,
29922,
29906,
29897,
13,
13,
9651,
396,
553,
11709,
353,
7442,
29889,
29881,
1853,
4197,
877,
978,
742,
7442,
29889,
710,
3383,
29871,
29896,
29953,
511,
6702,
3283,
742,
7442,
29889,
7411,
29953,
29946,
29892,
29871,
29941,
29897,
2314,
13,
9651,
1583,
3032,
29950,
29889,
3258,
29918,
2371,
29898,
2929,
842,
29918,
2972,
29892,
525,
4993,
742,
360,
8684,
29892,
13,
462,
462,
3611,
2433,
21602,
2983,
322,
18112,
742,
3806,
5727,
29922,
29941,
29945,
29897,
13,
9651,
17927,
29889,
3888,
703,
20399,
5305,
1591,
23157,
13,
13,
1678,
822,
731,
29918,
424,
2108,
294,
29898,
1311,
29892,
25504,
1056,
29918,
21134,
29892,
25504,
22911,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
565,
1583,
29889,
3784,
29918,
2929,
842,
338,
6213,
29901,
13,
18884,
12020,
7865,
2392,
703,
7583,
899,
842,
338,
6213,
23157,
13,
9651,
899,
842,
29918,
2972,
353,
1583,
3032,
29950,
29889,
4632,
3032,
29894,
29918,
13155,
29961,
1311,
29889,
3784,
29918,
2929,
842,
29962,
13,
9651,
565,
525,
10204,
1056,
29915,
451,
297,
899,
842,
29918,
2972,
3032,
29894,
29918,
280,
5989,
29901,
13,
18884,
17927,
29889,
3888,
703,
10204,
1056,
451,
297,
11308,
29889,
18804,
23157,
13,
18884,
1583,
29889,
1202,
29918,
10204,
1056,
29918,
2371,
580,
13,
9651,
25504,
1056,
29918,
2371,
353,
899,
842,
29918,
2972,
3032,
29894,
29918,
280,
5989,
1839,
10204,
1056,
2033,
13,
9651,
25504,
1056,
29918,
2371,
29889,
5992,
29918,
5727,
29898,
29900,
29897,
13,
9651,
25504,
1056,
29918,
2371,
29889,
4397,
29898,
1761,
29898,
7554,
29898,
10204,
1056,
29918,
21134,
29892,
25504,
22911,
4961,
13,
9651,
17927,
29889,
3888,
703,
2697,
278,
25504,
1056,
1591,
23157,
13,
13,
1678,
822,
731,
29918,
20146,
1953,
29898,
1311,
29892,
13261,
29918,
7039,
29892,
18112,
1125,
13,
4706,
565,
13261,
29918,
7039,
338,
6213,
29901,
13,
9651,
13261,
29918,
7039,
353,
6796,
5041,
648,
29901,
29900,
29941,
29881,
29913,
1642,
4830,
29898,
29875,
29897,
363,
474,
297,
3464,
29898,
2435,
29898,
20146,
1953,
28166,
13,
4706,
411,
1583,
29901,
13,
9651,
565,
1583,
29889,
3784,
29918,
2929,
842,
338,
6213,
29901,
13,
18884,
12020,
7865,
2392,
703,
7583,
899,
842,
338,
6213,
23157,
13,
9651,
899,
842,
29918,
2972,
353,
1583,
3032,
29950,
29889,
4632,
3032,
29894,
29918,
13155,
29961,
1311,
29889,
3784,
29918,
2929,
842,
29962,
13,
9651,
565,
525,
4993,
29915,
451,
297,
899,
842,
29918,
2972,
3032,
29894,
29918,
280,
5989,
29901,
13,
18884,
1583,
29889,
1202,
29918,
20146,
1953,
29918,
2371,
580,
13,
9651,
5305,
29918,
2371,
353,
899,
842,
29918,
2972,
3032,
29894,
29918,
280,
5989,
1839,
4993,
2033,
13,
9651,
5305,
29918,
2371,
29889,
5992,
29918,
5727,
29898,
29900,
29897,
13,
9651,
5305,
29918,
2371,
29889,
4397,
29898,
1761,
29898,
7554,
29898,
5041,
29918,
7039,
29892,
18112,
4961,
13,
9651,
17927,
29889,
3888,
703,
2697,
278,
5305,
1591,
23157,
13,
13,
1678,
822,
4078,
29918,
2378,
29918,
1445,
29898,
1311,
29892,
1409,
29918,
1445,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
385,
1372,
353,
1583,
3032,
2929,
842,
29889,
657,
13448,
580,
13,
9651,
11073,
353,
5159,
13,
9651,
1180,
29879,
353,
5159,
13,
9651,
363,
3858,
29892,
926,
297,
385,
1372,
29889,
7076,
7295,
13,
18884,
11073,
29889,
4397,
29898,
1643,
29897,
13,
18884,
1180,
29879,
29889,
4397,
29898,
1066,
29897,
13,
9651,
4465,
353,
7431,
29898,
21134,
29897,
13,
4706,
411,
1722,
29898,
2378,
29918,
1445,
29892,
525,
29893,
1495,
408,
285,
29901,
13,
9651,
285,
29889,
3539,
14237,
6760,
630,
373,
426,
29900,
29913,
491,
529,
5813,
14247,
29876,
4286,
4830,
29898,
2230,
29889,
710,
615,
603,
11702,
29874,
1273,
29883,
613,
931,
29889,
2997,
2230,
580,
4961,
13,
9651,
285,
29889,
3539,
14237,
306,
5659,
29903,
29898,
29885,
2144,
29876,
1495,
13,
9651,
285,
29889,
3539,
14237,
1060,
29905,
29873,
29979,
29905,
29873,
29999,
29905,
29873,
21134,
29905,
29876,
1495,
13,
9651,
474,
353,
29871,
29900,
13,
9651,
1550,
474,
529,
4465,
29901,
13,
18884,
285,
29889,
3539,
29898,
13,
462,
1678,
22372,
29900,
29901,
29896,
29889,
29929,
29872,
1012,
29873,
29912,
29896,
29901,
29896,
29889,
29929,
29872,
1012,
29873,
29912,
29906,
29901,
29896,
29889,
29929,
29872,
1012,
29873,
29912,
29946,
29913,
4286,
4830,
29898,
2029,
29879,
29961,
29875,
3816,
29900,
1402,
1180,
29879,
29961,
29875,
3816,
29896,
1402,
1180,
29879,
29961,
29875,
3816,
29906,
1402,
11073,
29961,
29875,
12622,
13,
18884,
565,
474,
529,
4465,
448,
29871,
29896,
29901,
13,
462,
1678,
285,
29889,
3539,
28909,
29876,
1495,
13,
18884,
474,
4619,
29871,
29896,
13,
13,
1678,
732,
6799,
13,
1678,
822,
25504,
22911,
29898,
1311,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
565,
1583,
29889,
3784,
29918,
2929,
842,
338,
6213,
29901,
13,
18884,
12020,
7865,
2392,
703,
7583,
899,
842,
338,
6213,
23157,
13,
9651,
899,
842,
29918,
2972,
353,
1583,
3032,
29950,
29889,
4632,
3032,
29894,
29918,
13155,
29961,
1311,
29889,
3784,
29918,
2929,
842,
29962,
13,
9651,
565,
525,
10204,
1056,
29915,
451,
297,
899,
842,
29918,
2972,
3032,
29894,
29918,
280,
5989,
29901,
13,
18884,
1583,
29889,
1202,
29918,
10204,
1056,
29918,
2371,
580,
13,
9651,
25504,
1056,
29918,
2371,
353,
899,
842,
29918,
2972,
3032,
29894,
29918,
280,
5989,
1839,
10204,
1056,
2033,
13,
9651,
736,
25504,
1056,
29918,
2371,
29889,
1054,
877,
978,
5477,
25504,
1056,
29918,
2371,
29889,
1054,
877,
3283,
1495,
13,
13,
1678,
732,
6799,
13,
1678,
822,
18112,
29898,
1311,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
565,
1583,
29889,
3784,
29918,
2929,
842,
338,
6213,
29901,
13,
18884,
12020,
7865,
2392,
703,
7583,
899,
842,
338,
6213,
23157,
13,
9651,
899,
842,
29918,
2972,
353,
1583,
3032,
29950,
29889,
4632,
3032,
29894,
29918,
13155,
29961,
1311,
29889,
3784,
29918,
2929,
842,
29962,
13,
9651,
565,
525,
4993,
29915,
451,
297,
899,
842,
29918,
2972,
3032,
29894,
29918,
280,
5989,
29901,
13,
18884,
1583,
29889,
1202,
29918,
20146,
1953,
29918,
2371,
580,
13,
9651,
5305,
29918,
2371,
353,
899,
842,
29918,
2972,
3032,
29894,
29918,
280,
5989,
1839,
4993,
2033,
13,
9651,
736,
5305,
29918,
2371,
29889,
1054,
877,
978,
5477,
5305,
29918,
2371,
29889,
1054,
877,
3972,
1495,
13,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
13,
4706,
822,
867,
283,
546,
29898,
29876,
29892,
4256,
519,
29892,
5445,
1767,
29922,
8516,
1125,
13,
9651,
376,
629,
283,
546,
29898,
29941,
29892,
525,
19658,
24405,
29954,
742,
525,
29916,
1495,
6660,
16417,
5012,
29943,
402,
4419,
29908,
13,
9651,
6389,
353,
518,
1524,
29898,
1524,
519,
4638,
334,
302,
13,
9651,
736,
4256,
8504,
29889,
7554,
29918,
5426,
342,
10456,
5085,
29892,
5445,
1767,
29922,
5589,
1767,
29897,
13,
13,
4706,
903,
7382,
29918,
2929,
842,
353,
1583,
29889,
3784,
29918,
2929,
842,
13,
4706,
5235,
353,
376,
2751,
3630,
16638,
29901,
6571,
1275,
1360,
29905,
29876,
1642,
4830,
29898,
359,
29889,
2084,
29889,
370,
1028,
493,
29898,
1311,
29889,
9507,
876,
13,
4706,
363,
899,
842,
297,
1583,
29889,
2929,
7224,
29901,
13,
9651,
1583,
29889,
3784,
29918,
2929,
842,
353,
899,
842,
13,
9651,
5235,
4619,
376,
25512,
899,
842,
29901,
6571,
1275,
2013,
29876,
1642,
4830,
29898,
2929,
842,
29897,
13,
9651,
5235,
4619,
376,
29928,
533,
1953,
29901,
320,
29876,
29908,
13,
9651,
363,
474,
29892,
4765,
29918,
978,
29896,
297,
26985,
29898,
7554,
10456,
1311,
29889,
20146,
1953,
22164,
13,
18884,
5235,
4619,
376,
8875,
1599,
426,
1012,
29873,
29912,
1012,
29876,
1642,
4830,
29898,
29875,
29892,
4765,
29918,
978,
29896,
29961,
29900,
1402,
1051,
29898,
4351,
29918,
978,
29896,
29961,
29896,
12622,
13,
13,
9651,
5235,
4619,
6634,
29876,
855,
800,
29901,
320,
29876,
29908,
13,
9651,
363,
474,
29892,
3677,
29896,
297,
26985,
29898,
7554,
10456,
1311,
29889,
424,
2108,
294,
22164,
13,
18884,
5235,
4619,
376,
8875,
1599,
426,
1012,
29873,
29912,
1012,
29876,
1642,
4830,
29898,
29875,
29892,
3677,
29896,
29961,
29900,
1402,
1051,
29898,
424,
29896,
29961,
29896,
12622,
13,
9651,
363,
899,
3891,
297,
1583,
29889,
2929,
21175,
29901,
13,
18884,
5235,
4619,
376,
1360,
899,
3891,
29901,
6571,
1275,
29905,
29876,
1642,
4830,
29898,
2929,
3891,
29897,
13,
18884,
8267,
353,
518,
2435,
29898,
8990,
29918,
791,
29879,
29897,
363,
9685,
29918,
791,
29879,
29892,
9685,
297,
14319,
10456,
1311,
29889,
2929,
3891,
29918,
1165,
267,
29898,
2929,
3891,
28166,
13,
18884,
27815,
353,
518,
8990,
363,
9685,
29918,
791,
29879,
29892,
9685,
297,
14319,
10456,
1311,
29889,
2929,
3891,
29918,
1165,
267,
29898,
2929,
3891,
28166,
13,
18884,
5235,
4619,
376,
12181,
29901,
426,
1012,
29876,
1642,
4830,
29898,
12181,
29897,
13,
18884,
5235,
4619,
376,
1165,
267,
29901,
426,
1012,
29876,
1642,
4830,
29898,
1165,
267,
29897,
13,
18884,
396,
363,
9685,
29918,
791,
29879,
29892,
9685,
29892,
2159,
29892,
26688,
297,
14319,
10456,
1311,
29889,
2929,
3891,
29918,
1165,
267,
29898,
2929,
3891,
22164,
13,
18884,
396,
268,
5235,
4619,
376,
16070,
29901,
6571,
6571,
426,
1012,
29876,
29912,
1012,
29876,
1642,
4830,
29898,
8990,
29892,
2311,
29892,
26688,
29892,
1761,
29898,
8990,
29918,
791,
29879,
876,
13,
4706,
1583,
29889,
3784,
29918,
2929,
842,
353,
903,
7382,
29918,
2929,
842,
13,
4706,
736,
5235,
13,
13,
1678,
822,
1831,
29898,
1311,
29892,
3579,
1165,
267,
1125,
13,
4706,
1583,
3032,
21731,
353,
6571,
13,
4706,
363,
9685,
29918,
978,
297,
1583,
29889,
1165,
267,
29918,
2098,
29901,
13,
9651,
565,
9685,
29918,
978,
451,
297,
27815,
29889,
8149,
7295,
13,
18884,
6773,
13,
9651,
565,
338,
8758,
29898,
1165,
267,
29961,
8990,
29918,
978,
1402,
938,
1125,
13,
18884,
1583,
3032,
21731,
29961,
8990,
29918,
978,
29962,
353,
518,
1165,
267,
29961,
8990,
29918,
978,
5262,
13,
9651,
1683,
29901,
13,
18884,
1583,
3032,
21731,
29961,
8990,
29918,
978,
29962,
353,
27815,
29961,
8990,
29918,
978,
29962,
13,
13,
1678,
822,
1831,
29918,
497,
29898,
1311,
1125,
13,
4706,
1583,
3032,
21731,
353,
6213,
13,
13,
1678,
732,
6799,
13,
1678,
822,
6068,
29918,
2929,
3891,
29918,
13506,
267,
29898,
1311,
1125,
13,
4706,
396,
736,
518,
2929,
3891,
29889,
6506,
703,
29900,
29900,
29900,
3284,
1159,
363,
899,
3891,
297,
1583,
29889,
2929,
21175,
29962,
13,
4706,
736,
6024,
21646,
742,
525,
314,
2830,
1151,
742,
525,
371,
29883,
742,
525,
13058,
742,
525,
3075,
2033,
13,
13,
1678,
822,
899,
3891,
29918,
1165,
267,
29898,
1311,
29892,
899,
3891,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
565,
899,
3891,
451,
297,
1583,
29889,
2929,
21175,
29901,
13,
18884,
17927,
29889,
27392,
877,
13296,
3891,
6571,
947,
451,
1863,
29889,
4286,
4830,
29898,
2929,
3891,
876,
13,
18884,
736,
13,
9651,
411,
1583,
29901,
13,
18884,
565,
1583,
29889,
3784,
29918,
2929,
842,
338,
6213,
29901,
13,
462,
1678,
12020,
7865,
2392,
703,
7583,
899,
842,
338,
6213,
23157,
13,
18884,
899,
842,
29918,
2972,
353,
1583,
3032,
29950,
29889,
4632,
3032,
29894,
29918,
13155,
29961,
1311,
29889,
3784,
29918,
2929,
842,
29962,
13,
18884,
899,
3891,
29918,
2972,
353,
899,
842,
29918,
2972,
3032,
29894,
29918,
13155,
29961,
2929,
3891,
29962,
13,
18884,
659,
29918,
29500,
353,
899,
3891,
29918,
2972,
3032,
29894,
29918,
280,
5989,
1839,
791,
2033,
13,
18884,
1018,
29901,
13,
462,
1678,
27815,
353,
659,
29918,
29500,
29889,
5552,
29879,
1839,
6604,
2890,
13359,
5451,
29317,
1495,
13,
18884,
5174,
20948,
29901,
13,
462,
1678,
27815,
353,
518,
29879,
29889,
13808,
2141,
13609,
580,
363,
269,
297,
659,
29918,
29500,
29889,
5552,
29879,
1839,
6604,
2890,
13359,
5451,
29898,
29890,
742,
1495,
29962,
13,
18884,
8267,
353,
5159,
13,
18884,
1134,
353,
5159,
13,
18884,
659,
29879,
353,
5159,
13,
18884,
363,
9685,
297,
27815,
29901,
13,
462,
1678,
9685,
29918,
791,
29879,
353,
899,
3891,
29918,
2972,
3032,
29894,
29918,
280,
5989,
29961,
8990,
1822,
949,
580,
13,
462,
1678,
659,
29879,
29889,
4397,
29898,
8990,
29918,
791,
29879,
29897,
13,
462,
1678,
8267,
29889,
4397,
29898,
2435,
29898,
8990,
29918,
791,
29879,
876,
13,
462,
1678,
1134,
29889,
4397,
29898,
9302,
29889,
2378,
29898,
8990,
29918,
791,
29879,
467,
29881,
1853,
29897,
13,
18884,
736,
659,
29879,
29892,
27815,
13,
13,
1678,
822,
679,
29918,
21731,
29898,
1311,
29892,
899,
3891,
1125,
13,
4706,
565,
1583,
3032,
21731,
338,
6213,
29901,
13,
9651,
1583,
3032,
21731,
353,
6571,
13,
4706,
565,
899,
3891,
451,
297,
1583,
29889,
2929,
21175,
29901,
13,
9651,
12020,
7865,
2392,
877,
13296,
3891,
6571,
947,
451,
1863,
29889,
4286,
4830,
29898,
2929,
3891,
876,
13,
4706,
565,
1583,
29889,
3784,
29918,
2929,
842,
338,
6213,
29901,
13,
9651,
12020,
7865,
2392,
703,
7583,
899,
842,
338,
6213,
23157,
13,
13,
4706,
9262,
353,
5159,
13,
4706,
396,
7306,
338,
304,
10032,
4129,
304,
269,
29399,
565,
1950,
363,
8543,
8744,
310,
282,
3637,
1849,
13,
4706,
363,
9685,
29918,
791,
29892,
9685,
297,
14319,
10456,
1311,
29889,
2929,
3891,
29918,
1165,
267,
29898,
2929,
3891,
22164,
13,
9651,
9685,
29918,
21731,
353,
1583,
3032,
21731,
29889,
657,
29898,
8990,
29892,
6213,
29897,
13,
9651,
565,
9685,
29918,
21731,
338,
6213,
29901,
13,
18884,
9262,
29889,
4397,
29898,
18337,
29898,
8516,
29892,
6213,
29892,
6213,
876,
13,
9651,
25342,
338,
8758,
29898,
8990,
29918,
21731,
29892,
22780,
1125,
13,
18884,
9262,
29889,
4397,
29898,
8990,
29918,
21731,
29897,
13,
9651,
25342,
338,
8758,
29898,
8990,
29918,
21731,
29892,
313,
23583,
29892,
1051,
22164,
13,
18884,
1051,
29918,
2622,
353,
5159,
13,
18884,
363,
1543,
297,
9685,
29918,
21731,
29901,
13,
462,
1678,
565,
338,
8758,
29898,
5029,
29892,
938,
1125,
13,
462,
4706,
565,
1543,
6736,
7431,
29898,
8990,
29918,
791,
1125,
13,
462,
9651,
12020,
7865,
2392,
29898,
13,
462,
18884,
376,
3549,
292,
2380,
7621,
1135,
3309,
310,
9685,
6571,
6571,
1642,
4830,
29898,
5029,
29892,
9685,
29918,
791,
876,
13,
462,
4706,
1051,
29918,
2622,
29889,
4397,
29898,
5029,
29897,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
22645,
353,
7442,
29889,
3062,
29898,
8990,
29918,
791,
29889,
579,
668,
29898,
1853,
29898,
5029,
876,
1275,
1543,
9601,
29900,
29962,
13,
462,
4706,
565,
7431,
29898,
13140,
29897,
1275,
29871,
29900,
29901,
13,
462,
9651,
12020,
7865,
2392,
703,
2642,
451,
297,
9685,
6571,
6571,
1642,
4830,
29898,
5029,
29892,
9685,
29918,
791,
876,
13,
462,
4706,
1051,
29918,
2622,
29889,
4397,
29898,
13140,
29961,
29900,
2314,
13,
18884,
9262,
29889,
4397,
29898,
1761,
29918,
2622,
29897,
13,
9651,
25342,
338,
8758,
29898,
8990,
29918,
21731,
29892,
851,
1125,
13,
18884,
9685,
29918,
791,
353,
7442,
29889,
294,
2378,
29898,
8990,
29918,
791,
29897,
13,
18884,
338,
29918,
11037,
353,
5159,
13,
18884,
363,
22645,
29892,
1543,
297,
26985,
29898,
8990,
29918,
791,
29889,
579,
668,
29898,
1853,
29898,
8990,
29918,
21731,
876,
1125,
13,
462,
1678,
565,
337,
29889,
4478,
29898,
8990,
29918,
21731,
29892,
1543,
29897,
338,
451,
6213,
29901,
13,
462,
4706,
338,
29918,
11037,
29889,
4397,
29898,
13140,
29897,
13,
18884,
9262,
29889,
4397,
29898,
275,
29918,
11037,
29897,
13,
9651,
1683,
29901,
13,
18884,
12020,
7865,
2392,
703,
2525,
519,
304,
6088,
6571,
1642,
4830,
29898,
8990,
29918,
21731,
876,
13,
13,
4706,
396,
5191,
599,
8857,
411,
269,
29399,
565,
1950,
29901,
29485,
310,
871,
697,
1051,
639,
26190,
13,
4706,
24114,
29918,
21731,
353,
5159,
13,
4706,
363,
5535,
297,
9262,
29901,
13,
9651,
903,
2838,
353,
5535,
13,
9651,
565,
338,
8758,
29898,
2838,
29892,
1051,
1125,
13,
18884,
565,
5535,
29961,
29900,
29962,
2804,
7442,
29889,
1195,
29898,
2838,
29897,
470,
5535,
14352,
29896,
29962,
2804,
7442,
29889,
3317,
29898,
2838,
1125,
13,
462,
1678,
2867,
13,
18884,
565,
7431,
29898,
2838,
29897,
1275,
29871,
29896,
29901,
13,
462,
1678,
903,
2838,
353,
22780,
29898,
2838,
29961,
29900,
1402,
5535,
29961,
29900,
29962,
718,
29871,
29896,
29892,
29871,
29896,
29897,
13,
18884,
1683,
29901,
13,
462,
1678,
1018,
29918,
18337,
353,
22780,
29898,
2838,
29961,
29900,
1402,
5535,
14352,
29896,
29962,
718,
29871,
29896,
29892,
313,
2838,
14352,
29896,
29962,
448,
5535,
29961,
29900,
2314,
849,
313,
2435,
29898,
2838,
29897,
448,
29871,
29896,
876,
13,
462,
1678,
752,
29918,
1761,
353,
1051,
29898,
3881,
29898,
2838,
29961,
29900,
1402,
5535,
14352,
29896,
29962,
718,
29871,
29896,
29892,
313,
2838,
14352,
29896,
29962,
448,
5535,
29961,
29900,
2314,
849,
313,
2435,
29898,
2838,
29897,
448,
29871,
29896,
4961,
13,
462,
1678,
565,
752,
29918,
1761,
1275,
5535,
29901,
13,
462,
4706,
903,
2838,
353,
1018,
29918,
18337,
13,
9651,
24114,
29918,
21731,
29889,
4397,
7373,
2838,
29897,
13,
13,
4706,
954,
29918,
21513,
353,
2533,
4197,
29896,
565,
338,
8758,
29898,
2838,
29892,
1051,
29897,
1683,
29871,
29900,
363,
5535,
297,
24114,
29918,
21731,
2314,
13,
4706,
565,
954,
29918,
21513,
1405,
29871,
29896,
29901,
13,
9651,
12020,
11374,
2392,
703,
29928,
434,
304,
263,
29485,
29892,
871,
697,
19231,
26190,
508,
367,
7436,
639,
282,
3637,
1849,
679,
5552,
23157,
13,
4706,
736,
18761,
29898,
15728,
287,
29918,
21731,
29897,
13,
13,
1678,
822,
679,
29918,
1165,
267,
29918,
17858,
29898,
1311,
29892,
3935,
29918,
1165,
267,
29892,
864,
29918,
1165,
267,
1125,
13,
4706,
9995,
13,
4706,
3617,
278,
20005,
362,
393,
3620,
278,
3935,
6087,
27815,
304,
5821,
287,
27815,
1797,
6087,
13,
4706,
297,
1583,
29889,
1165,
267,
29918,
2098,
29889,
13,
4706,
584,
3207,
3935,
29918,
1165,
267,
29901,
1051,
310,
851,
13,
9651,
450,
1797,
310,
27815,
297,
385,
1409,
13,
4706,
584,
2457,
29901,
18761,
310,
938,
13,
4706,
9995,
13,
4706,
565,
451,
338,
8758,
29898,
19304,
29918,
1165,
267,
29892,
313,
1761,
29892,
18761,
22164,
13,
9651,
12020,
20948,
703,
19304,
27815,
1818,
367,
263,
1051,
470,
18761,
310,
851,
1159,
13,
4706,
3935,
29918,
1165,
267,
353,
1051,
29898,
19304,
29918,
1165,
267,
29897,
13,
4706,
565,
451,
338,
8758,
29898,
29893,
424,
29918,
1165,
267,
29892,
313,
1761,
29892,
18761,
22164,
13,
9651,
12020,
20948,
703,
29893,
424,
27815,
1818,
367,
263,
1051,
470,
18761,
310,
851,
1159,
13,
4706,
864,
29918,
1165,
267,
353,
1051,
29898,
29893,
424,
29918,
1165,
267,
29897,
13,
4706,
363,
263,
297,
864,
29918,
1165,
267,
29901,
13,
9651,
565,
263,
451,
297,
3935,
29918,
1165,
267,
29901,
13,
18884,
12020,
7865,
2392,
703,
18552,
292,
6571,
297,
6571,
1213,
29889,
4830,
29898,
29874,
29892,
3935,
29918,
1165,
267,
876,
13,
4706,
736,
18761,
4197,
19304,
29918,
1165,
267,
29889,
2248,
29898,
29874,
29897,
363,
263,
297,
864,
29918,
1165,
267,
2314,
13,
13,
1678,
822,
679,
29918,
2929,
3891,
29898,
1311,
29892,
899,
3891,
29892,
7688,
29922,
8824,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
9262,
353,
1583,
29889,
657,
29918,
21731,
29898,
2929,
3891,
29897,
13,
9651,
899,
3891,
29918,
1165,
267,
29918,
791,
29879,
29892,
899,
3891,
29918,
1165,
267,
353,
1583,
29889,
2929,
3891,
29918,
1165,
267,
29898,
2929,
3891,
29897,
13,
9651,
835,
13,
9651,
396,
15894,
278,
7429,
27815,
526,
297,
1583,
29889,
21693,
29918,
1165,
267,
13,
9651,
864,
29918,
1165,
267,
353,
518,
29874,
363,
263,
297,
1583,
29889,
1165,
267,
29918,
2098,
565,
263,
297,
899,
3891,
29918,
1165,
267,
29962,
13,
9651,
3935,
29918,
1165,
267,
353,
899,
3891,
29918,
1165,
267,
13,
9651,
3635,
353,
1583,
29889,
657,
29918,
1165,
267,
29918,
17858,
29898,
19304,
29918,
1165,
267,
29892,
864,
29918,
1165,
267,
29897,
13,
13,
9651,
899,
842,
29918,
2972,
353,
1583,
3032,
29950,
29889,
4632,
3032,
29894,
29918,
13155,
29961,
1311,
29889,
3784,
29918,
2929,
842,
29962,
13,
9651,
899,
3891,
29918,
2972,
353,
899,
842,
29918,
2972,
3032,
29894,
29918,
13155,
29961,
2929,
3891,
29962,
13,
9651,
565,
7688,
29901,
13,
18884,
20447,
353,
899,
3891,
29918,
2972,
3032,
29894,
29918,
280,
5989,
1839,
7915,
2033,
13,
9651,
1683,
29901,
13,
18884,
20447,
353,
899,
3891,
29918,
2972,
3032,
29894,
29918,
280,
5989,
1839,
791,
2033,
13,
9651,
714,
29918,
1165,
267,
353,
426,
978,
29901,
7442,
29889,
2378,
29898,
791,
29879,
9601,
21731,
29961,
29875,
5262,
363,
474,
29892,
313,
791,
29879,
29892,
1024,
29897,
297,
13,
462,
4706,
26985,
29898,
7554,
29898,
2929,
3891,
29918,
1165,
267,
29918,
791,
29879,
29892,
899,
3891,
29918,
1165,
267,
876,
29913,
13,
9651,
714,
29918,
791,
29879,
353,
20447,
17255,
657,
667,
12035,
21731,
467,
3286,
4220,
29898,
17858,
29897,
13,
9651,
736,
714,
29918,
791,
29879,
29892,
714,
29918,
1165,
267,
13,
13,
1678,
822,
731,
29918,
2929,
3891,
29898,
1311,
29892,
899,
3891,
29892,
995,
29892,
7688,
29922,
8824,
1125,
13,
4706,
9995,
13,
4706,
317,
1691,
278,
1819,
310,
899,
3891,
29892,
5034,
304,
278,
1857,
9262,
29889,
13,
13,
4706,
584,
3207,
899,
3891,
29901,
851,
13,
4706,
584,
3207,
995,
29901,
7442,
29889,
2378,
470,
1409,
763,
13,
9651,
10575,
505,
8267,
310,
1583,
29889,
1165,
267,
29918,
2098,
13,
4706,
584,
3207,
7688,
29901,
6120,
13,
9651,
26460,
366,
526,
4444,
18177,
470,
451,
13,
4706,
584,
2457,
29901,
13,
4706,
9995,
13,
4706,
411,
1583,
29901,
13,
9651,
9262,
353,
1583,
29889,
657,
29918,
21731,
29898,
2929,
3891,
29897,
13,
9651,
899,
842,
29918,
2972,
353,
1583,
3032,
29950,
29889,
4632,
3032,
29894,
29918,
13155,
29961,
1311,
29889,
3784,
29918,
2929,
842,
29962,
13,
9651,
899,
3891,
29918,
2972,
353,
899,
842,
29918,
2972,
3032,
29894,
29918,
13155,
29961,
2929,
3891,
29962,
13,
9651,
17117,
899,
3891,
29918,
1165,
267,
353,
1583,
29889,
2929,
3891,
29918,
1165,
267,
29898,
2929,
3891,
29897,
13,
9651,
835,
13,
9651,
396,
13,
9651,
864,
29918,
1165,
267,
353,
899,
3891,
29918,
1165,
267,
13,
9651,
3935,
29918,
1165,
267,
353,
518,
29874,
363,
263,
297,
1583,
29889,
1165,
267,
29918,
2098,
565,
263,
297,
899,
3891,
29918,
1165,
267,
29962,
13,
9651,
3635,
353,
1583,
29889,
657,
29918,
1165,
267,
29918,
17858,
29898,
19304,
29918,
1165,
267,
29892,
864,
29918,
1165,
267,
29897,
13,
13,
9651,
565,
7688,
29901,
13,
18884,
20447,
353,
899,
3891,
29918,
2972,
3032,
29894,
29918,
280,
5989,
1839,
7915,
2033,
13,
9651,
1683,
29901,
13,
18884,
20447,
353,
899,
3891,
29918,
2972,
3032,
29894,
29918,
280,
5989,
1839,
791,
2033,
13,
13,
9651,
20447,
17255,
842,
667,
12035,
21731,
29892,
995,
29889,
3286,
4220,
29898,
17858,
876,
13,
13,
1678,
822,
4770,
657,
5552,
12035,
1311,
29892,
4434,
1125,
13,
4706,
9995,
13,
4706,
3617,
263,
995,
297,
6068,
899,
21175,
470,
1209,
373,
304,
14407,
29889,
13,
13,
4706,
584,
3207,
4434,
29901,
13,
4706,
584,
2457,
29901,
7442,
29889,
2378,
13,
9651,
1383,
4085,
408,
10087,
491,
1583,
29889,
1165,
267,
29918,
2098,
13,
4706,
9995,
13,
4706,
396,
4706,
411,
1583,
29901,
13,
4706,
396,
9651,
18859,
353,
1583,
3032,
2929,
842,
29889,
657,
13296,
3891,
8659,
580,
13,
4706,
18859,
353,
1583,
29889,
24622,
29918,
2929,
3891,
29918,
13506,
267,
13,
4706,
18859,
353,
6796,
705,
5861,
648,
29913,
1642,
4830,
29898,
29873,
29897,
363,
260,
297,
18859,
29962,
718,
6796,
1165,
267,
648,
29913,
1642,
4830,
29898,
29873,
29897,
363,
260,
297,
18859,
29962,
718,
18859,
13,
4706,
7688,
353,
7700,
13,
4706,
27815,
353,
7700,
13,
4706,
565,
738,
4197,
3891,
29889,
27382,
2541,
29898,
29873,
29897,
363,
260,
297,
18859,
29962,
1125,
13,
9651,
565,
4434,
29889,
27382,
2541,
703,
705,
5861,
27508,
1125,
13,
18884,
4434,
353,
376,
1642,
7122,
29898,
3891,
29889,
5451,
877,
705,
5861,
29918,
29861,
29896,
29901,
2314,
13,
18884,
7688,
353,
5852,
13,
9651,
565,
4434,
29889,
27382,
2541,
703,
1165,
267,
27508,
1125,
13,
18884,
4434,
353,
376,
1642,
7122,
29898,
3891,
29889,
5451,
877,
1165,
267,
29918,
29861,
29896,
29901,
2314,
13,
18884,
27815,
353,
5852,
13,
9651,
411,
1583,
29901,
13,
18884,
899,
3891,
353,
376,
8875,
29900,
29900,
29900,
1642,
4830,
29898,
3891,
29897,
13,
18884,
9262,
353,
1583,
29889,
657,
29918,
21731,
29898,
2929,
3891,
29897,
13,
18884,
899,
3891,
29918,
1165,
267,
29918,
791,
29879,
29892,
899,
3891,
29918,
1165,
267,
353,
1583,
29889,
2929,
3891,
29918,
1165,
267,
29898,
2929,
3891,
29897,
13,
18884,
835,
13,
18884,
396,
15894,
278,
7429,
27815,
526,
297,
1583,
29889,
21693,
29918,
1165,
267,
13,
18884,
864,
29918,
1165,
267,
353,
518,
29874,
363,
263,
297,
1583,
29889,
1165,
267,
29918,
2098,
565,
263,
297,
899,
3891,
29918,
1165,
267,
29962,
13,
18884,
3935,
29918,
1165,
267,
353,
899,
3891,
29918,
1165,
267,
13,
18884,
3635,
353,
1583,
29889,
657,
29918,
1165,
267,
29918,
17858,
29898,
19304,
29918,
1165,
267,
29892,
864,
29918,
1165,
267,
29897,
13,
13,
18884,
565,
451,
27815,
29901,
13,
462,
1678,
899,
842,
29918,
2972,
353,
1583,
3032,
29950,
29889,
4632,
3032,
29894,
29918,
13155,
29961,
1311,
29889,
3784,
29918,
2929,
842,
29962,
13,
462,
1678,
899,
3891,
29918,
2972,
353,
899,
842,
29918,
2972,
3032,
29894,
29918,
13155,
29961,
2929,
3891,
29962,
13,
462,
1678,
565,
7688,
29901,
13,
462,
4706,
20447,
353,
899,
3891,
29918,
2972,
3032,
29894,
29918,
280,
5989,
1839,
7915,
2033,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
20447,
353,
899,
3891,
29918,
2972,
3032,
29894,
29918,
280,
5989,
1839,
791,
2033,
13,
462,
1678,
714,
29918,
1165,
267,
353,
426,
978,
29901,
7442,
29889,
2378,
29898,
791,
29879,
9601,
21731,
29961,
29875,
5262,
363,
474,
29892,
313,
791,
29879,
29892,
1024,
29897,
297,
13,
462,
18884,
26985,
29898,
7554,
29898,
2929,
3891,
29918,
1165,
267,
29918,
791,
29879,
29892,
899,
3891,
29918,
1165,
267,
876,
29913,
13,
462,
1678,
714,
29918,
791,
29879,
353,
20447,
17255,
657,
667,
12035,
21731,
467,
3286,
4220,
29898,
17858,
29897,
13,
462,
1678,
736,
714,
29918,
791,
29879,
29892,
714,
29918,
1165,
267,
13,
18884,
1683,
29901,
13,
462,
1678,
714,
29918,
1165,
267,
353,
426,
978,
29901,
7442,
29889,
2378,
29898,
791,
29879,
9601,
21731,
29961,
29875,
5262,
363,
474,
29892,
313,
791,
29879,
29892,
1024,
29897,
297,
13,
462,
18884,
26985,
29898,
7554,
29898,
2929,
3891,
29918,
1165,
267,
29918,
791,
29879,
29892,
899,
3891,
29918,
1165,
267,
876,
29913,
13,
462,
1678,
736,
714,
29918,
1165,
267,
13,
4706,
1683,
29901,
13,
9651,
736,
1203,
17255,
657,
12715,
12035,
1311,
29892,
4434,
29897,
13,
13,
1678,
822,
4770,
842,
5552,
12035,
1311,
29892,
4434,
29892,
995,
1125,
13,
4706,
9995,
13,
4706,
6645,
29879,
738,
5352,
411,
385,
376,
8990,
1024,
29908,
304,
679,
9065,
16070,
703,
8990,
1024,
1159,
13,
4706,
884,
2988,
659,
322,
7688,
304,
278,
6198,
7049,
29889,
13,
4706,
24953,
13,
4706,
448,
1378,
29899,
13,
4706,
9685,
584,
851,
13,
9651,
450,
9685,
1024,
29889,
13,
4706,
995,
584,
1409,
13,
9651,
450,
1409,
310,
278,
1492,
8267,
363,
9262,
29889,
13,
9651,
4007,
9351,
278,
1819,
304,
731,
526,
297,
1583,
29889,
1165,
267,
29918,
2098,
13,
4706,
9995,
13,
13,
4706,
396,
4706,
411,
1583,
29901,
13,
4706,
396,
9651,
18859,
353,
1583,
3032,
2929,
842,
29889,
657,
13296,
3891,
8659,
580,
13,
4706,
18859,
353,
1583,
29889,
24622,
29918,
2929,
3891,
29918,
13506,
267,
13,
4706,
18859,
353,
6796,
705,
5861,
648,
29913,
1642,
4830,
29898,
29873,
29897,
363,
260,
297,
18859,
29962,
718,
6796,
1165,
267,
648,
29913,
1642,
4830,
29898,
29873,
29897,
363,
260,
297,
18859,
29962,
718,
18859,
13,
4706,
7688,
353,
7700,
13,
4706,
27815,
353,
7700,
13,
4706,
565,
738,
4197,
3891,
29889,
27382,
2541,
29898,
29873,
29897,
363,
260,
297,
18859,
29962,
1125,
13,
9651,
565,
4434,
29889,
27382,
2541,
703,
705,
5861,
27508,
1125,
13,
18884,
4434,
353,
376,
1642,
7122,
29898,
3891,
29889,
5451,
877,
705,
5861,
29918,
29861,
29896,
29901,
2314,
13,
18884,
7688,
353,
5852,
13,
9651,
565,
4434,
29889,
27382,
2541,
703,
1165,
267,
27508,
1125,
13,
18884,
4434,
353,
376,
1642,
7122,
29898,
3891,
29889,
5451,
877,
1165,
267,
29918,
29861,
29896,
29901,
2314,
13,
18884,
27815,
353,
5852,
13,
9651,
411,
1583,
29901,
13,
18884,
899,
3891,
353,
376,
8875,
29900,
29900,
29900,
1642,
4830,
29898,
3891,
29897,
13,
18884,
9262,
353,
1583,
29889,
657,
29918,
21731,
29898,
2929,
3891,
29897,
13,
18884,
899,
842,
29918,
2972,
353,
1583,
3032,
29950,
29889,
4632,
3032,
29894,
29918,
13155,
29961,
1311,
29889,
3784,
29918,
2929,
842,
29962,
13,
18884,
899,
3891,
29918,
2972,
353,
899,
842,
29918,
2972,
3032,
29894,
29918,
13155,
29961,
2929,
3891,
29962,
13,
18884,
17117,
899,
3891,
29918,
1165,
267,
353,
1583,
29889,
2929,
3891,
29918,
1165,
267,
29898,
2929,
3891,
29897,
13,
18884,
835,
13,
18884,
396,
13,
18884,
864,
29918,
1165,
267,
353,
899,
3891,
29918,
1165,
267,
13,
18884,
3935,
29918,
1165,
267,
353,
518,
29874,
363,
263,
297,
1583,
29889,
1165,
267,
29918,
2098,
565,
263,
297,
899,
3891,
29918,
1165,
267,
29962,
13,
18884,
3635,
353,
1583,
29889,
657,
29918,
1165,
267,
29918,
17858,
29898,
19304,
29918,
1165,
267,
29892,
864,
29918,
1165,
267,
29897,
13,
13,
18884,
565,
451,
27815,
29901,
13,
462,
1678,
565,
7688,
29901,
13,
462,
4706,
20447,
353,
899,
3891,
29918,
2972,
3032,
29894,
29918,
280,
5989,
1839,
7915,
2033,
13,
462,
1678,
1683,
29901,
13,
462,
4706,
20447,
353,
899,
3891,
29918,
2972,
3032,
29894,
29918,
280,
5989,
1839,
791,
2033,
13,
13,
462,
1678,
20447,
17255,
842,
667,
12035,
21731,
29892,
995,
29889,
3286,
4220,
29898,
17858,
876,
13,
18884,
1683,
29901,
13,
462,
1678,
565,
451,
338,
8758,
29898,
1767,
29892,
9657,
1125,
13,
462,
4706,
12020,
4852,
29909,
9100,
1818,
2041,
297,
9657,
310,
525,
978,
2396,
791,
29879,
1159,
13,
462,
1678,
363,
474,
29892,
313,
29895,
29892,
325,
29897,
297,
26985,
29898,
1767,
29889,
7076,
580,
1125,
13,
462,
4706,
9685,
29918,
791,
29879,
353,
899,
3891,
29918,
2972,
3032,
29894,
29918,
280,
5989,
29961,
29895,
29962,
13,
462,
4706,
9685,
29918,
791,
29879,
29961,
21731,
29961,
29875,
5262,
353,
325,
13,
13,
4706,
1683,
29901,
13,
9651,
1203,
17255,
842,
5552,
12035,
1311,
29892,
4434,
29892,
995,
29897,
13,
13,
1678,
732,
6799,
13,
1678,
822,
2143,
29918,
424,
29898,
1311,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
25504,
1056,
29918,
21134,
29892,
25504,
22911,
353,
1583,
29889,
424,
2108,
294,
13,
9651,
736,
25504,
1056,
29918,
21134,
29961,
29900,
29962,
13,
13,
1678,
732,
6799,
13,
1678,
822,
1409,
29918,
5064,
29898,
1311,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
17117,
25504,
22911,
353,
1583,
29889,
657,
29918,
424,
2108,
294,
29898,
8516,
29897,
13,
9651,
4818,
353,
25504,
22911,
29889,
13823,
18970,
29889,
20230,
7503,
29892,
29871,
29900,
29962,
13,
9651,
4818,
353,
1274,
29889,
29903,
3459,
7967,
536,
29898,
29916,
29922,
5064,
29961,
29900,
1402,
343,
29922,
5064,
29961,
29896,
1402,
503,
29922,
5064,
29961,
29906,
1402,
3515,
2433,
277,
2288,
1495,
13,
9651,
736,
4818,
13,
13,
1678,
732,
6799,
13,
1678,
822,
2099,
29918,
2378,
29918,
2029,
29898,
1311,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
17117,
25504,
22911,
353,
1583,
29889,
657,
29918,
424,
2108,
294,
29898,
8516,
29897,
13,
9651,
4818,
353,
7442,
29889,
12676,
29898,
424,
2108,
294,
29889,
13823,
18970,
29889,
20230,
29892,
9685,
29922,
29896,
29897,
13,
9651,
4818,
353,
1274,
29889,
29903,
3459,
7967,
536,
29898,
29916,
29922,
5064,
29961,
29900,
1402,
343,
29922,
5064,
29961,
29896,
1402,
503,
29922,
5064,
29961,
29906,
1402,
3515,
2433,
277,
2288,
1495,
13,
9651,
736,
4818,
13,
13,
1678,
822,
679,
29918,
424,
2108,
294,
29898,
1311,
29892,
385,
1372,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
25504,
1056,
29918,
21134,
29892,
25504,
22911,
353,
1583,
29889,
424,
2108,
294,
13,
13,
9651,
565,
385,
1372,
338,
6213,
29901,
13,
18884,
16280,
353,
22780,
29898,
8516,
29892,
6213,
29892,
6213,
29897,
13,
9651,
1683,
29901,
13,
18884,
385,
1372,
353,
7442,
29889,
2378,
29898,
1934,
467,
579,
668,
29898,
10204,
1056,
29918,
21134,
29889,
29881,
1853,
29897,
13,
18884,
16280,
353,
5159,
13,
18884,
363,
263,
297,
385,
1372,
29901,
13,
462,
1678,
565,
263,
451,
297,
25504,
1056,
29918,
21134,
29901,
13,
462,
4706,
12020,
7865,
2392,
703,
13448,
264,
1056,
451,
1476,
297,
899,
842,
6571,
6571,
1642,
4830,
29898,
29874,
29892,
25504,
1056,
29918,
21134,
876,
13,
462,
1678,
16280,
29889,
4397,
29898,
9302,
29889,
3062,
29898,
29874,
1275,
25504,
1056,
29918,
21134,
9601,
29900,
3816,
29900,
2314,
13,
9651,
25504,
22911,
353,
25504,
22911,
29961,
20401,
29892,
584,
29962,
13,
9651,
736,
25504,
1056,
29918,
21134,
29961,
20401,
1402,
1274,
29889,
29903,
3459,
7967,
536,
29898,
424,
2108,
294,
7503,
29892,
29871,
29900,
29962,
334,
782,
29889,
29885,
29892,
25504,
22911,
7503,
29892,
29871,
29896,
29962,
334,
782,
29889,
29885,
29892,
13,
462,
462,
462,
539,
25504,
22911,
7503,
29892,
29871,
29906,
29962,
334,
782,
29889,
29885,
29892,
3515,
2433,
277,
2288,
1495,
13,
13,
1678,
732,
6799,
13,
1678,
822,
13330,
29918,
5064,
29898,
1311,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
17117,
18112,
353,
1583,
29889,
657,
29918,
20146,
1953,
29898,
8516,
29897,
13,
9651,
1153,
29918,
12676,
353,
7442,
29889,
12676,
29898,
20146,
1953,
29889,
9067,
29918,
517,
877,
293,
2288,
2824,
336,
29897,
13,
9651,
1602,
29918,
12676,
353,
7442,
29889,
12676,
29898,
20146,
1953,
29889,
9067,
29918,
517,
877,
293,
2288,
2824,
7099,
29897,
13,
9651,
4516,
353,
1274,
29889,
29903,
3459,
7967,
536,
29898,
336,
29918,
12676,
29892,
1602,
29918,
12676,
29892,
3515,
2433,
293,
2288,
1495,
13,
9651,
736,
4516,
13,
13,
1678,
822,
679,
29918,
20146,
1953,
29898,
1311,
29892,
4516,
29879,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
13261,
29918,
7039,
29892,
18112,
353,
1583,
29889,
20146,
1953,
13,
9651,
565,
4516,
29879,
338,
6213,
29901,
13,
18884,
16280,
353,
22780,
29898,
8516,
29892,
6213,
29892,
6213,
29897,
13,
9651,
1683,
29901,
13,
18884,
4516,
29879,
353,
7442,
29889,
2378,
29898,
3972,
29879,
467,
579,
668,
29898,
5041,
29918,
7039,
29889,
29881,
1853,
29897,
13,
18884,
16280,
353,
5159,
13,
18884,
363,
263,
297,
4516,
29879,
29901,
13,
462,
1678,
565,
263,
451,
297,
13261,
29918,
7039,
29901,
13,
462,
4706,
12020,
7865,
2392,
703,
21602,
451,
1476,
297,
899,
842,
6571,
6571,
1642,
4830,
29898,
29874,
29892,
13261,
29918,
7039,
876,
13,
462,
1678,
16280,
29889,
4397,
29898,
9302,
29889,
3062,
29898,
29874,
1275,
13261,
29918,
7039,
9601,
29900,
3816,
29900,
2314,
13,
9651,
18112,
353,
18112,
29961,
20401,
29892,
584,
29962,
13,
9651,
736,
13261,
29918,
7039,
29961,
20401,
1402,
1274,
29889,
29903,
3459,
7967,
536,
29898,
20146,
1953,
7503,
29892,
29871,
29900,
29962,
334,
782,
29889,
3665,
29892,
18112,
7503,
29892,
29871,
29896,
29962,
334,
782,
29889,
3665,
29892,
3515,
2433,
293,
2288,
1495,
13,
13,
1678,
822,
679,
29918,
3706,
29898,
1311,
29892,
3064,
1125,
13,
4706,
9995,
13,
4706,
3064,
526,
6087,
408,
286,
1315,
13,
4706,
9995,
13,
4706,
3064,
353,
472,
29889,
2481,
29898,
3706,
847,
29871,
29947,
29953,
29946,
29900,
29900,
1696,
3402,
2433,
29885,
26012,
1495,
13,
4706,
736,
3064,
29889,
275,
327,
29892,
3064,
13,
13,
1678,
822,
679,
29918,
29888,
7971,
29879,
29898,
1311,
29892,
3005,
29939,
29879,
1125,
13,
4706,
301,
6897,
353,
6024,
25641,
29889,
29896,
29888,
29913,
29924,
12661,
4286,
4830,
29898,
29888,
847,
29871,
29896,
29872,
29953,
29897,
363,
285,
297,
3005,
29939,
29879,
29962,
13,
4706,
736,
7442,
29889,
2378,
29898,
29880,
6897,
511,
3005,
29939,
29879,
29930,
585,
29889,
12661,
13,
13,
1678,
822,
679,
29918,
3733,
29879,
29898,
1311,
29892,
1248,
29879,
1125,
13,
4706,
411,
1583,
29901,
13,
9651,
736,
1248,
29879,
29892,
7442,
29889,
279,
927,
29898,
2435,
29898,
3733,
29879,
511,
26688,
29922,
9302,
29889,
524,
29941,
29906,
29897,
13,
2
] |
examples/para.py | nagareproject/renderers-rml | 0 | 1609041 | <gh_stars>0
# Encoding: UTF-8
# --
# Copyright (c) 2008-2021 Net-ng.
# All rights reserved.
#
# This software is licensed under the BSD License, as described in
# the file LICENSE.txt, which you should have received as part of
# this distribution.
# --
from nagare.renderers import rml
def sample(output):
r = rml.Renderer()
with r.document(invariant=1):
with r.template(pageSize='letter', leftMargin=72, showBoundary=1):
with r.pageTemplate(id='main', pageSize='letter portrait'):
with r.pageGraphics:
r << r.setFont(name='Helvetica-BoldOblique', size=18)
r << r.drawRightString('RML2PDF Test Suite', x=523, y=800)
with r.textAnnotation:
r << r.param('0,0,1,1', name='Rect')
r << r.param(3, name='F')
r << r.param(6, name='escape')
r << '''X::PDF
PX(S)
MT(PINK)
'''
r << r.frame(id='first', x1='1in', y1='1in', width='6.27in', height='9.69in')
with r.stylesheet:
with r.initialize:
r << r.alias(id='style.normal', value='style.Normal')
r << r.paraStyle(name='h1', fontName='Helvetica-BoldOblique', fontSize=32, leading=36)
r << r.paraStyle(name='normal', fontName='Helvetica', fontSize=10, leading=12)
r << r.paraStyle(name='spaced', fontName='Helvetica', fontSize=10, leading=12, spaceBefore=12, spaceAfter=12)
with r.story:
with r.para(style='normal'):
r << u'Il était là. Hello World. This is a normal paragraph. Blah '
r << r.font('IPO ', color='red')
r << 'blah blah blah blah growth forecast blah '
r << 'blah blah forecast blah.Blah blah blah blah blah blah blah blah blah blah blah profit blah blah blah blah blah '
r << 'blah blah blah blah blah IPO.Blah blah blah blah blah blah blah reengineering blah growth blah blah blah '
r << 'proactive direction strategic blah blah blah forward-thinking blah.Blah blah doubletalk blah blah blah blah '
r << 'blah profit blah blah growth blah blah blah blah blah profit.Blah blah blah blah venture capital blah blah blah '
r << 'blah blah forward-thinking blah.'
with r.para(style='normal'):
r << 'This is another normal paragraph. Blah IPO blah blah blah blah growth forecast blah '
r << 'blah blah forecast blah.Blah blah blah blah blah blah blah blah blah blah blah profit blah blah blah blah blah '
r << 'blah blah blah blah blah IPO.Blah blah blah blah blah blah blah reengineering blah growth blah blah blah '
r << 'proactive direction strategic blah blah blah forward-thinking blah.Blah blah doubletalk blah blah blah blah '
r << 'blah profit blah blah growth blah blah blah blah blah profit.Blah blah blah blah venture capital blah blah blah '
r << 'blah blah forward-thinking blah.'
r << r.para('I should NOT have a tiny leading space in front of me!', style='normal')
r << r.para('This is spaced. There should be 12 points before and after.', style='spaced')
with r.para(style='normal'):
r << 'Hello World. This is a normal paragraph. Blah IPO blah blah blah blah growth forecast blah '
r << 'blah blah forecast blah.Blah blah blah blah blah blah blah blah blah blah blah profit blah blah blah blah blah '
r << 'blah blah blah blah blah IPO.Blah blah blah blah blah blah blah reengineering blah growth blah blah blah '
r << 'proactive direction strategic blah blah blah forward-thinking blah.Blah blah doubletalk blah blah blah blah '
r << 'blah profit blah blah growth blah blah blah blah blah profit.Blah blah blah blah venture capital blah blah blah '
r << 'blah blah forward-thinking blah.'
return r.root.topdffile(output)
if __name__ == '__main__':
sample('/tmp/sample.pdf')
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
11346,
3689,
29901,
18351,
29899,
29947,
13,
29937,
1192,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29900,
29947,
29899,
29906,
29900,
29906,
29896,
12670,
29899,
865,
29889,
13,
29937,
2178,
10462,
21676,
29889,
13,
29937,
13,
29937,
910,
7047,
338,
7794,
21144,
1090,
278,
350,
7230,
19245,
29892,
408,
5439,
297,
13,
29937,
278,
934,
365,
2965,
1430,
1660,
29889,
3945,
29892,
607,
366,
881,
505,
4520,
408,
760,
310,
13,
29937,
445,
4978,
29889,
13,
29937,
1192,
13,
13,
3166,
17995,
598,
29889,
9482,
414,
1053,
364,
828,
13,
13,
13,
1753,
4559,
29898,
4905,
1125,
13,
1678,
364,
353,
364,
828,
29889,
21323,
580,
13,
13,
1678,
411,
364,
29889,
3225,
29898,
262,
19365,
29922,
29896,
1125,
13,
4706,
411,
364,
29889,
6886,
29898,
3488,
3505,
2433,
15670,
742,
2175,
29924,
3930,
29922,
29955,
29906,
29892,
1510,
17109,
653,
29922,
29896,
1125,
13,
9651,
411,
364,
29889,
3488,
6733,
29898,
333,
2433,
3396,
742,
1813,
3505,
2433,
15670,
21760,
29374,
13,
18884,
411,
364,
29889,
3488,
17290,
29901,
13,
462,
1678,
364,
3532,
364,
29889,
842,
9824,
29898,
978,
2433,
7658,
5990,
983,
29899,
29933,
1025,
6039,
9854,
742,
2159,
29922,
29896,
29947,
29897,
13,
462,
1678,
364,
3532,
364,
29889,
4012,
7341,
1231,
877,
29934,
1988,
29906,
8493,
4321,
2166,
568,
742,
921,
29922,
29945,
29906,
29941,
29892,
343,
29922,
29947,
29900,
29900,
29897,
13,
13,
462,
1678,
411,
364,
29889,
726,
21978,
29901,
13,
462,
4706,
364,
3532,
364,
29889,
3207,
877,
29900,
29892,
29900,
29892,
29896,
29892,
29896,
742,
1024,
2433,
7364,
1495,
13,
462,
4706,
364,
3532,
364,
29889,
3207,
29898,
29941,
29892,
1024,
2433,
29943,
1495,
13,
462,
4706,
364,
3532,
364,
29889,
3207,
29898,
29953,
29892,
1024,
2433,
21587,
1495,
13,
462,
4706,
364,
3532,
14550,
29990,
1057,
8493,
13,
462,
4706,
349,
29990,
29898,
29903,
29897,
13,
462,
4706,
341,
29911,
29898,
29925,
1177,
29968,
29897,
13,
462,
4706,
14550,
13,
18884,
364,
3532,
364,
29889,
2557,
29898,
333,
2433,
4102,
742,
921,
29896,
2433,
29896,
262,
742,
343,
29896,
2433,
29896,
262,
742,
2920,
2433,
29953,
29889,
29906,
29955,
262,
742,
3171,
2433,
29929,
29889,
29953,
29929,
262,
1495,
13,
13,
4706,
411,
364,
29889,
13558,
29901,
13,
9651,
411,
364,
29889,
24926,
29901,
13,
18884,
364,
3532,
364,
29889,
19973,
29898,
333,
2433,
3293,
29889,
8945,
742,
995,
2433,
3293,
29889,
19077,
1495,
13,
13,
9651,
364,
3532,
364,
29889,
22752,
5568,
29898,
978,
2433,
29882,
29896,
742,
4079,
1170,
2433,
7658,
5990,
983,
29899,
29933,
1025,
6039,
9854,
742,
4079,
3505,
29922,
29941,
29906,
29892,
8236,
29922,
29941,
29953,
29897,
13,
9651,
364,
3532,
364,
29889,
22752,
5568,
29898,
978,
2433,
8945,
742,
4079,
1170,
2433,
7658,
5990,
983,
742,
4079,
3505,
29922,
29896,
29900,
29892,
8236,
29922,
29896,
29906,
29897,
13,
9651,
364,
3532,
364,
29889,
22752,
5568,
29898,
978,
2433,
1028,
562,
287,
742,
4079,
1170,
2433,
7658,
5990,
983,
742,
4079,
3505,
29922,
29896,
29900,
29892,
8236,
29922,
29896,
29906,
29892,
2913,
18743,
29922,
29896,
29906,
29892,
2913,
13555,
29922,
29896,
29906,
29897,
13,
13,
4706,
411,
364,
29889,
24098,
29901,
13,
9651,
411,
364,
29889,
22752,
29898,
3293,
2433,
8945,
29374,
13,
18884,
364,
3532,
318,
29915,
14126,
6303,
18916,
29889,
15043,
2787,
29889,
29871,
910,
338,
263,
4226,
14880,
29889,
350,
8083,
525,
13,
18884,
364,
3532,
364,
29889,
5657,
877,
5690,
29949,
13420,
2927,
2433,
1127,
1495,
13,
18884,
364,
3532,
525,
29844,
29268,
29268,
29268,
14321,
29821,
579,
29268,
525,
13,
18884,
364,
3532,
525,
29844,
29268,
29821,
579,
29268,
29889,
29933,
8083,
29268,
29268,
29268,
29268,
29268,
29268,
29268,
29268,
29268,
29268,
21665,
29268,
29268,
29268,
29268,
29268,
525,
13,
18884,
364,
3532,
525,
29844,
29268,
29268,
29268,
29268,
5641,
29949,
29889,
29933,
8083,
29268,
29268,
29268,
29268,
29268,
29268,
337,
10599,
3241,
29268,
14321,
29268,
29268,
29268,
525,
13,
18884,
364,
3532,
525,
771,
4925,
5305,
16650,
293,
29268,
29268,
29268,
6375,
29899,
386,
18159,
29268,
29889,
29933,
8083,
29268,
3765,
29873,
2235,
29268,
29268,
29268,
29268,
525,
13,
18884,
364,
3532,
525,
29844,
21665,
29268,
29268,
14321,
29268,
29268,
29268,
29268,
29268,
21665,
29889,
29933,
8083,
29268,
29268,
29268,
9712,
545,
7483,
29268,
29268,
29268,
525,
13,
18884,
364,
3532,
525,
29844,
29268,
6375,
29899,
386,
18159,
29268,
6169,
13,
13,
9651,
411,
364,
29889,
22752,
29898,
3293,
2433,
8945,
29374,
13,
18884,
364,
3532,
525,
4013,
338,
1790,
4226,
14880,
29889,
350,
8083,
5641,
29949,
29268,
29268,
29268,
29268,
14321,
29821,
579,
29268,
525,
13,
18884,
364,
3532,
525,
29844,
29268,
29821,
579,
29268,
29889,
29933,
8083,
29268,
29268,
29268,
29268,
29268,
29268,
29268,
29268,
29268,
29268,
21665,
29268,
29268,
29268,
29268,
29268,
525,
13,
18884,
364,
3532,
525,
29844,
29268,
29268,
29268,
29268,
5641,
29949,
29889,
29933,
8083,
29268,
29268,
29268,
29268,
29268,
29268,
337,
10599,
3241,
29268,
14321,
29268,
29268,
29268,
525,
13,
18884,
364,
3532,
525,
771,
4925,
5305,
16650,
293,
29268,
29268,
29268,
6375,
29899,
386,
18159,
29268,
29889,
29933,
8083,
29268,
3765,
29873,
2235,
29268,
29268,
29268,
29268,
525,
13,
18884,
364,
3532,
525,
29844,
21665,
29268,
29268,
14321,
29268,
29268,
29268,
29268,
29268,
21665,
29889,
29933,
8083,
29268,
29268,
29268,
9712,
545,
7483,
29268,
29268,
29268,
525,
13,
18884,
364,
3532,
525,
29844,
29268,
6375,
29899,
386,
18159,
29268,
6169,
13,
13,
9651,
364,
3532,
364,
29889,
22752,
877,
29902,
881,
6058,
505,
263,
21577,
8236,
2913,
297,
4565,
310,
592,
29991,
742,
3114,
2433,
8945,
1495,
13,
13,
9651,
364,
3532,
364,
29889,
22752,
877,
4013,
338,
26325,
287,
29889,
29871,
1670,
881,
367,
29871,
29896,
29906,
3291,
1434,
322,
1156,
29889,
742,
3114,
2433,
1028,
562,
287,
1495,
13,
13,
9651,
411,
364,
29889,
22752,
29898,
3293,
2433,
8945,
29374,
13,
18884,
364,
3532,
525,
10994,
2787,
29889,
29871,
910,
338,
263,
4226,
14880,
29889,
350,
8083,
5641,
29949,
29268,
29268,
29268,
29268,
14321,
29821,
579,
29268,
525,
13,
18884,
364,
3532,
525,
29844,
29268,
29821,
579,
29268,
29889,
29933,
8083,
29268,
29268,
29268,
29268,
29268,
29268,
29268,
29268,
29268,
29268,
21665,
29268,
29268,
29268,
29268,
29268,
525,
13,
18884,
364,
3532,
525,
29844,
29268,
29268,
29268,
29268,
5641,
29949,
29889,
29933,
8083,
29268,
29268,
29268,
29268,
29268,
29268,
337,
10599,
3241,
29268,
14321,
29268,
29268,
29268,
525,
13,
18884,
364,
3532,
525,
771,
4925,
5305,
16650,
293,
29268,
29268,
29268,
6375,
29899,
386,
18159,
29268,
29889,
29933,
8083,
29268,
3765,
29873,
2235,
29268,
29268,
29268,
29268,
525,
13,
18884,
364,
3532,
525,
29844,
21665,
29268,
29268,
14321,
29268,
29268,
29268,
29268,
29268,
21665,
29889,
29933,
8083,
29268,
29268,
29268,
9712,
545,
7483,
29268,
29268,
29268,
525,
13,
18884,
364,
3532,
525,
29844,
29268,
6375,
29899,
386,
18159,
29268,
6169,
13,
13,
1678,
736,
364,
29889,
4632,
29889,
3332,
29881,
600,
488,
29898,
4905,
29897,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
4559,
11219,
7050,
29914,
11249,
29889,
5140,
1495,
13,
2
] |
04_datacamp/solutions/05_solutions.py | HirahTang/datascience_starter_course | 3 | 189091 | df[(df['Sex'] == 'male') & (df['Age'] > 60)].shape[0]
| [
1,
4489,
15625,
2176,
1839,
29903,
735,
2033,
1275,
525,
19202,
1495,
669,
313,
2176,
1839,
22406,
2033,
1405,
29871,
29953,
29900,
29897,
1822,
12181,
29961,
29900,
29962,
13,
2
] |
gist_magic/extensions/gist.py | timbr-io/gist-magic | 3 | 50698 | <gh_stars>1-10
from IPython.core.magic import (Magics, magics_class, line_magic,
cell_magic, line_cell_magic)
from IPython import get_ipython
import argparse
from pygithub3 import Github
from pygithub3.resources.gists import Gist
import os
import shlex
from itertools import chain
from IPython.display import publish_display_data
from .pretty import PrettyGist, PrettyGistList, build_display_data
from IPython.core.formatters import DisplayFormatter
def publish_to_display(obj):
output, _ = DisplayFormatter().format(obj)
publish_display_data(output)
# The class MUST call this class decorator at creation time
@magics_class
class GistMagics(Magics):
def __init__(self, shell):
super(GistMagics, self).__init__(shell)
self._token = os.environ.get("GITHUB_ACCESS_TOKEN")
self.gh = Github(token=self._token)
self.preset_id = None
self._parser = self.generate_parser()
def generate_parser(self):
parser = argparse.ArgumentParser(prog="gist")
subparsers = parser.add_subparsers()
token_parser = subparsers.add_parser("token", help="Register a Github token for authentication")
token_parser.add_argument("github_token", help="Github access token")
token_parser.set_defaults(fn=self.token)
list_parser = subparsers.add_parser("list", help="List current user's gists (or recent public gists if token is not set)")
list_parser.add_argument("-l", "--limit", help="number of gist to list", default=-1)
list_parser.set_defaults(fn=self.list)
delete_parser = subparsers.add_parser("delete", help="Delete gist specified by id")
delete_parser.add_argument("gist_id", help="ID of gist to delete")
delete_parser.set_defaults(fn=self.delete)
preset_parser = subparsers.add_parser("preset", help="Create or register a preset gist as active")
preset_parser.add_argument("preset_gist_id", help="ID of gist preset to select", default=None, nargs="?")
preset_parser.add_argument("--no-display", action="store_false", dest="display")
preset_parser.set_defaults(fn=self.preset)
insert_parser = subparsers.add_parser("insert", help="Insert snippet code into this cell")
insert_parser.add_argument("gist_id", help="ID of gist to insert")
insert_parser.add_argument("-f", "--filename", help="name of the gist file to insert", default="snippet.py")
insert_parser.add_argument("-a", "--append", help="Insert a new cell rather than replacing the content of the current one",
action="store_false", dest="replace")
insert_parser.set_defaults(fn=self.insert)
show_parser = subparsers.add_parser("show", help="Show (or update) a gist")
show_parser.add_argument("gist_id", help="ID of gist to load/update", nargs="?")
show_parser.add_argument("--no-display", action="store_false", dest="display")
show_parser.add_argument("-e", "--evaluate", action="store_true")
show_parser.add_argument("-f", "--filename", help="Name of the gist file to create / update")
show_parser.add_argument("-d", "--description", help="a description for the gist", default="")
show_parser.set_defaults(fn=self.show_or_update)
return parser
@line_cell_magic
def gist(self, line, cell=None):
try:
input_args = shlex.split(line)
if len(input_args) == 0 or input_args[0] not in ["token", "list", "delete", "preset", "insert"]:
input_args.insert(0, "show")
args, extra = self._parser.parse_known_args(input_args)
return args.fn(cell=cell, **vars(args))
except SystemExit, se:
pass
def preset(self, preset_gist_id=None, cell=None, display=True, **kwargs):
if cell is None:
if preset_gist_id is None:
# create an empty gist and output the id
self.create("%%gist preset\n# gist ids\n", filename="preset.txt") # -> prints the id
else:
self.preset_id = preset_gist_id
pretty_gist = self.show(preset_gist_id, evaluate=True)
if display == True:
return pretty_gist
else:
return None
else:
# execute as a cell magic
for line in cell.splitlines():
try:
gist_id = line.split("#", 2)[0]
if len(gist_id) > 0:
self.show(gist_id, display=False, evaluate=True)
except Exception as e:
print("Unable to load snippet with id: %s" % gist_id)
print(str(e))
def token(self, github_token, **kwargs):
self._token = github_token
self.gh = Github(token=self._token)
def list(self, limit=-1, **kwargs):
try:
assert self._token is not None
gists = self.gh.gists.list()
gists_list = PrettyGistList(list(gists.iterator())[:int(limit)])
return gists_list
except AssertionError:
print("No token defined. Unable to list gists")
def show_or_update(self, gist_id=None, cell=None, display=True,
evaluate=True, filename="snippet.py", description='', **kwargs):
if cell is not None:
if gist_id is None:
return self.create(cell, filename=filename, description=description)
else:
return self.update(gist_id, cell, filename=filename)
else:
if gist_id is not None:
return self.show(gist_id, display, evaluate)
else:
return self.list()
def show(self, gist_id, display=True, evaluate=False, **kwargs):
gist = self.gh.gists.get(gist_id)
pretty_gist = PrettyGist(gist, display=display)
if evaluate:
get_ipython().run_cell(pretty_gist.content)
return pretty_gist
def insert(self, gist_id, filename="snippet.py", replace=True, **kwargs):
gist = self.gh.gists.get(gist_id)
if filename in gist.files:
get_ipython().set_next_input(gist.files[filename].content, replace=replace)
else:
print("{} file not found in gist with id {}".format(filename, gist_id))
def create(self, cell, filename="snippet.py", description=''):
try:
assert cell is not None
assert self._token is not None
config = dict(description=description, public=False, files={})
config['files'][filename or 'snippet.py'] = {'content': cell}
gist = self.gh.gists.create(config)
self.add_to_preset(gist.id)
print("gist id: %s" % gist.id)
return gist.id
except AssertionError:
print("No token defined. Unable to create gists.")
def delete(self, gist_id, **kwargs):
try:
self.gh.gists.delete(gist_id)
print("Deleted gist %s" % gist_id)
self.remove_from_preset(gist_id)
except Exception as e:
print("Could not delete gist %s" % gist_id)
def update(self, gist_id, cell, filename="snippet.py"):
try:
assert cell is not None
assert self._token is not None
gist = self.gh.gists.get(gist_id)
config = {
"description": gist.description,
"public": gist.public,
"files": {}
}
config["files"][filename or 'snippet.py'] = {"content": cell}
self.gh.gists.update(gist_id, config)
except AssertionError:
print("No token defined. Unable to update gists or add them to presets")
def add_to_preset(self, gist_id):
if self.preset_id is not None:
preset_gist = self.gh.gists.get(self.preset_id)
preset_content = preset_gist.files["preset.txt"].content + "\n{}".format(gist_id)
self.update(preset_gist.id, preset_content, filename="preset.txt")
def remove_from_preset(self, gist_id):
if self.preset_id is not None:
preset_gist = self.gh.gists.get(self.preset_id)
preset_content = preset_gist.files["preset.txt"].content + "\n{}".format(gist_id)
preset_lines = [line for line in preset_content.splitlines() if not line.startswith(gist_id)]
new_preset_content = "\n".join(preset_lines)
if new_preset_content != preset_content:
self.update(preset_gist.id, new_preset_content, filename="preset.txt")
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
5641,
1656,
29889,
3221,
29889,
11082,
293,
1053,
313,
19095,
1199,
29892,
2320,
1199,
29918,
1990,
29892,
1196,
29918,
11082,
293,
29892,
13,
462,
18884,
3038,
29918,
11082,
293,
29892,
1196,
29918,
3729,
29918,
11082,
293,
29897,
13,
3166,
5641,
1656,
1053,
679,
29918,
666,
1656,
13,
13,
5215,
1852,
5510,
13,
13,
3166,
11451,
3292,
29941,
1053,
402,
2985,
13,
3166,
11451,
3292,
29941,
29889,
13237,
29889,
29887,
2879,
1053,
402,
391,
13,
5215,
2897,
13,
5215,
528,
2506,
13,
3166,
4256,
8504,
1053,
9704,
13,
13,
3166,
5641,
1656,
29889,
4990,
1053,
9805,
29918,
4990,
29918,
1272,
13,
3166,
869,
1457,
4349,
1053,
4721,
4349,
29954,
391,
29892,
4721,
4349,
29954,
391,
1293,
29892,
2048,
29918,
4990,
29918,
1272,
13,
13,
3166,
5641,
1656,
29889,
3221,
29889,
4830,
2153,
1053,
17440,
18522,
13,
13,
1753,
9805,
29918,
517,
29918,
4990,
29898,
5415,
1125,
13,
1678,
1962,
29892,
903,
353,
17440,
18522,
2141,
4830,
29898,
5415,
29897,
13,
1678,
9805,
29918,
4990,
29918,
1272,
29898,
4905,
29897,
13,
13,
13,
29937,
450,
770,
341,
17321,
1246,
445,
770,
10200,
1061,
472,
11265,
931,
13,
29992,
11082,
1199,
29918,
1990,
13,
1990,
402,
391,
19095,
1199,
29898,
19095,
1199,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
6473,
1125,
13,
4706,
2428,
29898,
29954,
391,
19095,
1199,
29892,
1583,
467,
1649,
2344,
12035,
15903,
29897,
13,
4706,
1583,
3032,
6979,
353,
2897,
29889,
21813,
29889,
657,
703,
29954,
13054,
7466,
29918,
2477,
23524,
29918,
4986,
29968,
1430,
1159,
13,
4706,
1583,
29889,
12443,
353,
402,
2985,
29898,
6979,
29922,
1311,
3032,
6979,
29897,
13,
13,
4706,
1583,
29889,
4569,
300,
29918,
333,
353,
6213,
13,
4706,
1583,
3032,
16680,
353,
1583,
29889,
17158,
29918,
16680,
580,
13,
13,
13,
13,
1678,
822,
5706,
29918,
16680,
29898,
1311,
1125,
13,
4706,
13812,
353,
1852,
5510,
29889,
15730,
11726,
29898,
29097,
543,
29887,
391,
1159,
13,
13,
4706,
1014,
862,
4253,
353,
13812,
29889,
1202,
29918,
1491,
862,
4253,
580,
13,
4706,
5993,
29918,
16680,
353,
1014,
862,
4253,
29889,
1202,
29918,
16680,
703,
6979,
613,
1371,
543,
15213,
263,
402,
2985,
5993,
363,
10760,
1159,
13,
4706,
5993,
29918,
16680,
29889,
1202,
29918,
23516,
703,
3292,
29918,
6979,
613,
1371,
543,
29954,
2985,
2130,
5993,
1159,
13,
4706,
5993,
29918,
16680,
29889,
842,
29918,
4381,
29879,
29898,
9144,
29922,
1311,
29889,
6979,
29897,
13,
4706,
1051,
29918,
16680,
353,
1014,
862,
4253,
29889,
1202,
29918,
16680,
703,
1761,
613,
1371,
543,
1293,
1857,
1404,
29915,
29879,
330,
2879,
313,
272,
7786,
970,
330,
2879,
565,
5993,
338,
451,
731,
25760,
13,
4706,
1051,
29918,
16680,
29889,
1202,
29918,
23516,
703,
29899,
29880,
613,
376,
489,
13400,
613,
1371,
543,
4537,
310,
330,
391,
304,
1051,
613,
2322,
10457,
29896,
29897,
13,
4706,
1051,
29918,
16680,
29889,
842,
29918,
4381,
29879,
29898,
9144,
29922,
1311,
29889,
1761,
29897,
13,
4706,
5217,
29918,
16680,
353,
1014,
862,
4253,
29889,
1202,
29918,
16680,
703,
8143,
613,
1371,
543,
12498,
330,
391,
6790,
491,
1178,
1159,
13,
4706,
5217,
29918,
16680,
29889,
1202,
29918,
23516,
703,
29887,
391,
29918,
333,
613,
1371,
543,
1367,
310,
330,
391,
304,
5217,
1159,
13,
4706,
5217,
29918,
16680,
29889,
842,
29918,
4381,
29879,
29898,
9144,
29922,
1311,
29889,
8143,
29897,
13,
4706,
2225,
300,
29918,
16680,
353,
1014,
862,
4253,
29889,
1202,
29918,
16680,
703,
4569,
300,
613,
1371,
543,
4391,
470,
6036,
263,
2225,
300,
330,
391,
408,
6136,
1159,
13,
4706,
2225,
300,
29918,
16680,
29889,
1202,
29918,
23516,
703,
4569,
300,
29918,
29887,
391,
29918,
333,
613,
1371,
543,
1367,
310,
330,
391,
2225,
300,
304,
1831,
613,
2322,
29922,
8516,
29892,
302,
5085,
543,
29973,
1159,
13,
4706,
2225,
300,
29918,
16680,
29889,
1202,
29918,
23516,
703,
489,
1217,
29899,
4990,
613,
3158,
543,
8899,
29918,
4541,
613,
2731,
543,
4990,
1159,
13,
4706,
2225,
300,
29918,
16680,
29889,
842,
29918,
4381,
29879,
29898,
9144,
29922,
1311,
29889,
4569,
300,
29897,
13,
4706,
4635,
29918,
16680,
353,
1014,
862,
4253,
29889,
1202,
29918,
16680,
703,
7851,
613,
1371,
543,
17491,
11534,
775,
964,
445,
3038,
1159,
13,
4706,
4635,
29918,
16680,
29889,
1202,
29918,
23516,
703,
29887,
391,
29918,
333,
613,
1371,
543,
1367,
310,
330,
391,
304,
4635,
1159,
13,
4706,
4635,
29918,
16680,
29889,
1202,
29918,
23516,
703,
29899,
29888,
613,
376,
489,
9507,
613,
1371,
543,
978,
310,
278,
330,
391,
934,
304,
4635,
613,
2322,
543,
29879,
1240,
7988,
29889,
2272,
1159,
13,
4706,
4635,
29918,
16680,
29889,
1202,
29918,
23516,
703,
29899,
29874,
613,
376,
489,
4397,
613,
1371,
543,
17491,
263,
716,
3038,
3265,
1135,
15270,
278,
2793,
310,
278,
1857,
697,
613,
13,
462,
462,
259,
3158,
543,
8899,
29918,
4541,
613,
2731,
543,
6506,
1159,
13,
4706,
4635,
29918,
16680,
29889,
842,
29918,
4381,
29879,
29898,
9144,
29922,
1311,
29889,
7851,
29897,
13,
13,
4706,
1510,
29918,
16680,
353,
1014,
862,
4253,
29889,
1202,
29918,
16680,
703,
4294,
613,
1371,
543,
8964,
313,
272,
2767,
29897,
263,
330,
391,
1159,
13,
4706,
1510,
29918,
16680,
29889,
1202,
29918,
23516,
703,
29887,
391,
29918,
333,
613,
1371,
543,
1367,
310,
330,
391,
304,
2254,
29914,
5504,
613,
302,
5085,
543,
29973,
1159,
13,
4706,
1510,
29918,
16680,
29889,
1202,
29918,
23516,
703,
489,
1217,
29899,
4990,
613,
3158,
543,
8899,
29918,
4541,
613,
2731,
543,
4990,
1159,
13,
4706,
1510,
29918,
16680,
29889,
1202,
29918,
23516,
703,
29899,
29872,
613,
376,
489,
24219,
403,
613,
3158,
543,
8899,
29918,
3009,
1159,
13,
4706,
1510,
29918,
16680,
29889,
1202,
29918,
23516,
703,
29899,
29888,
613,
376,
489,
9507,
613,
1371,
543,
1170,
310,
278,
330,
391,
934,
304,
1653,
847,
2767,
1159,
13,
4706,
1510,
29918,
16680,
29889,
1202,
29918,
23516,
703,
29899,
29881,
613,
376,
489,
8216,
613,
1371,
543,
29874,
6139,
363,
278,
330,
391,
613,
2322,
543,
1159,
13,
4706,
1510,
29918,
16680,
29889,
842,
29918,
4381,
29879,
29898,
9144,
29922,
1311,
29889,
4294,
29918,
272,
29918,
5504,
29897,
13,
13,
4706,
736,
13812,
13,
13,
1678,
732,
1220,
29918,
3729,
29918,
11082,
293,
13,
1678,
822,
330,
391,
29898,
1311,
29892,
1196,
29892,
3038,
29922,
8516,
1125,
13,
4706,
1018,
29901,
13,
9651,
1881,
29918,
5085,
353,
528,
2506,
29889,
5451,
29898,
1220,
29897,
13,
9651,
565,
7431,
29898,
2080,
29918,
5085,
29897,
1275,
29871,
29900,
470,
1881,
29918,
5085,
29961,
29900,
29962,
451,
297,
6796,
6979,
613,
376,
1761,
613,
376,
8143,
613,
376,
4569,
300,
613,
376,
7851,
3108,
29901,
13,
18884,
1881,
29918,
5085,
29889,
7851,
29898,
29900,
29892,
376,
4294,
1159,
13,
9651,
6389,
29892,
4805,
353,
1583,
3032,
16680,
29889,
5510,
29918,
5203,
29918,
5085,
29898,
2080,
29918,
5085,
29897,
13,
9651,
736,
6389,
29889,
9144,
29898,
3729,
29922,
3729,
29892,
3579,
16908,
29898,
5085,
876,
13,
4706,
5174,
2184,
24365,
29892,
409,
29901,
13,
9651,
1209,
13,
13,
1678,
822,
2225,
300,
29898,
1311,
29892,
2225,
300,
29918,
29887,
391,
29918,
333,
29922,
8516,
29892,
3038,
29922,
8516,
29892,
2479,
29922,
5574,
29892,
3579,
19290,
1125,
13,
4706,
565,
3038,
338,
6213,
29901,
13,
9651,
565,
2225,
300,
29918,
29887,
391,
29918,
333,
338,
6213,
29901,
13,
18884,
396,
1653,
385,
4069,
330,
391,
322,
1962,
278,
1178,
13,
18884,
1583,
29889,
3258,
703,
7686,
29887,
391,
2225,
300,
29905,
29876,
29937,
330,
391,
18999,
29905,
29876,
613,
10422,
543,
4569,
300,
29889,
3945,
1159,
396,
1599,
14677,
278,
1178,
13,
9651,
1683,
29901,
13,
18884,
1583,
29889,
4569,
300,
29918,
333,
353,
2225,
300,
29918,
29887,
391,
29918,
333,
13,
18884,
5051,
29918,
29887,
391,
353,
1583,
29889,
4294,
29898,
4569,
300,
29918,
29887,
391,
29918,
333,
29892,
14707,
29922,
5574,
29897,
13,
18884,
565,
2479,
1275,
5852,
29901,
13,
462,
29871,
736,
5051,
29918,
29887,
391,
13,
18884,
1683,
29901,
13,
462,
29871,
736,
6213,
13,
4706,
1683,
29901,
13,
9651,
396,
6222,
408,
263,
3038,
15709,
13,
9651,
363,
1196,
297,
3038,
29889,
5451,
9012,
7295,
13,
18884,
1018,
29901,
13,
462,
1678,
330,
391,
29918,
333,
353,
1196,
29889,
5451,
14822,
613,
29871,
29906,
9601,
29900,
29962,
13,
462,
1678,
565,
7431,
29898,
29887,
391,
29918,
333,
29897,
1405,
29871,
29900,
29901,
13,
462,
4706,
1583,
29889,
4294,
29898,
29887,
391,
29918,
333,
29892,
2479,
29922,
8824,
29892,
14707,
29922,
5574,
29897,
13,
18884,
5174,
8960,
408,
321,
29901,
13,
462,
1678,
1596,
703,
2525,
519,
304,
2254,
11534,
411,
1178,
29901,
1273,
29879,
29908,
1273,
330,
391,
29918,
333,
29897,
13,
462,
1678,
1596,
29898,
710,
29898,
29872,
876,
13,
13,
13,
1678,
822,
5993,
29898,
1311,
29892,
18546,
29918,
6979,
29892,
3579,
19290,
1125,
13,
4706,
1583,
3032,
6979,
353,
18546,
29918,
6979,
13,
4706,
1583,
29889,
12443,
353,
402,
2985,
29898,
6979,
29922,
1311,
3032,
6979,
29897,
13,
13,
1678,
822,
1051,
29898,
1311,
29892,
4046,
10457,
29896,
29892,
3579,
19290,
1125,
13,
4706,
1018,
29901,
13,
3986,
4974,
1583,
3032,
6979,
338,
451,
6213,
13,
3986,
330,
2879,
353,
1583,
29889,
12443,
29889,
29887,
2879,
29889,
1761,
580,
13,
3986,
330,
2879,
29918,
1761,
353,
4721,
4349,
29954,
391,
1293,
29898,
1761,
29898,
29887,
2879,
29889,
17609,
3101,
7503,
524,
29898,
13400,
29897,
2314,
13,
3986,
736,
330,
2879,
29918,
1761,
13,
4706,
5174,
16499,
291,
2392,
29901,
13,
3986,
1596,
703,
3782,
5993,
3342,
29889,
20065,
304,
1051,
330,
2879,
1159,
13,
308,
13,
13,
1678,
822,
1510,
29918,
272,
29918,
5504,
29898,
1311,
29892,
330,
391,
29918,
333,
29922,
8516,
29892,
3038,
29922,
8516,
29892,
2479,
29922,
5574,
29892,
13,
462,
539,
14707,
29922,
5574,
29892,
10422,
543,
29879,
1240,
7988,
29889,
2272,
613,
6139,
2433,
742,
3579,
19290,
1125,
13,
4706,
565,
3038,
338,
451,
6213,
29901,
13,
9651,
565,
330,
391,
29918,
333,
338,
6213,
29901,
13,
18884,
736,
1583,
29889,
3258,
29898,
3729,
29892,
10422,
29922,
9507,
29892,
6139,
29922,
8216,
29897,
13,
9651,
1683,
29901,
13,
18884,
736,
1583,
29889,
5504,
29898,
29887,
391,
29918,
333,
29892,
3038,
29892,
10422,
29922,
9507,
29897,
13,
4706,
1683,
29901,
13,
9651,
565,
330,
391,
29918,
333,
338,
451,
6213,
29901,
13,
18884,
736,
1583,
29889,
4294,
29898,
29887,
391,
29918,
333,
29892,
2479,
29892,
14707,
29897,
13,
9651,
1683,
29901,
13,
18884,
736,
1583,
29889,
1761,
580,
13,
13,
1678,
822,
1510,
29898,
1311,
29892,
330,
391,
29918,
333,
29892,
2479,
29922,
5574,
29892,
14707,
29922,
8824,
29892,
3579,
19290,
1125,
13,
4706,
330,
391,
353,
1583,
29889,
12443,
29889,
29887,
2879,
29889,
657,
29898,
29887,
391,
29918,
333,
29897,
13,
4706,
5051,
29918,
29887,
391,
353,
4721,
4349,
29954,
391,
29898,
29887,
391,
29892,
2479,
29922,
4990,
29897,
13,
4706,
565,
14707,
29901,
13,
9651,
679,
29918,
666,
1656,
2141,
3389,
29918,
3729,
29898,
1457,
4349,
29918,
29887,
391,
29889,
3051,
29897,
13,
4706,
736,
5051,
29918,
29887,
391,
13,
13,
1678,
822,
4635,
29898,
1311,
29892,
330,
391,
29918,
333,
29892,
10422,
543,
29879,
1240,
7988,
29889,
2272,
613,
5191,
29922,
5574,
29892,
3579,
19290,
1125,
13,
4706,
330,
391,
353,
1583,
29889,
12443,
29889,
29887,
2879,
29889,
657,
29898,
29887,
391,
29918,
333,
29897,
13,
4706,
565,
10422,
297,
330,
391,
29889,
5325,
29901,
13,
9651,
679,
29918,
666,
1656,
2141,
842,
29918,
4622,
29918,
2080,
29898,
29887,
391,
29889,
5325,
29961,
9507,
1822,
3051,
29892,
5191,
29922,
6506,
29897,
13,
4706,
1683,
29901,
13,
9651,
1596,
703,
8875,
934,
451,
1476,
297,
330,
391,
411,
1178,
6571,
1642,
4830,
29898,
9507,
29892,
330,
391,
29918,
333,
876,
13,
13,
1678,
822,
1653,
29898,
1311,
29892,
3038,
29892,
10422,
543,
29879,
1240,
7988,
29889,
2272,
613,
6139,
2433,
29374,
13,
4706,
1018,
29901,
13,
9651,
4974,
3038,
338,
451,
6213,
13,
9651,
4974,
1583,
3032,
6979,
338,
451,
6213,
13,
9651,
2295,
353,
9657,
29898,
8216,
29922,
8216,
29892,
970,
29922,
8824,
29892,
2066,
3790,
1800,
13,
9651,
2295,
1839,
5325,
2033,
29961,
9507,
470,
525,
29879,
1240,
7988,
29889,
2272,
2033,
353,
11117,
3051,
2396,
3038,
29913,
13,
13,
9651,
330,
391,
353,
1583,
29889,
12443,
29889,
29887,
2879,
29889,
3258,
29898,
2917,
29897,
13,
9651,
1583,
29889,
1202,
29918,
517,
29918,
4569,
300,
29898,
29887,
391,
29889,
333,
29897,
13,
9651,
1596,
703,
29887,
391,
1178,
29901,
1273,
29879,
29908,
1273,
330,
391,
29889,
333,
29897,
13,
9651,
736,
330,
391,
29889,
333,
13,
4706,
5174,
16499,
291,
2392,
29901,
13,
3986,
1596,
703,
3782,
5993,
3342,
29889,
20065,
304,
1653,
330,
2879,
23157,
29871,
13,
13,
1678,
822,
5217,
29898,
1311,
29892,
330,
391,
29918,
333,
29892,
3579,
19290,
1125,
13,
4706,
1018,
29901,
13,
9651,
1583,
29889,
12443,
29889,
29887,
2879,
29889,
8143,
29898,
29887,
391,
29918,
333,
29897,
13,
9651,
1596,
703,
2772,
22742,
330,
391,
1273,
29879,
29908,
1273,
330,
391,
29918,
333,
29897,
13,
9651,
1583,
29889,
5992,
29918,
3166,
29918,
4569,
300,
29898,
29887,
391,
29918,
333,
29897,
13,
4706,
5174,
8960,
408,
321,
29901,
13,
9651,
1596,
703,
23323,
451,
5217,
330,
391,
1273,
29879,
29908,
1273,
330,
391,
29918,
333,
29897,
13,
13,
1678,
822,
2767,
29898,
1311,
29892,
330,
391,
29918,
333,
29892,
3038,
29892,
10422,
543,
29879,
1240,
7988,
29889,
2272,
29908,
1125,
13,
4706,
1018,
29901,
13,
9651,
4974,
3038,
338,
451,
6213,
13,
9651,
4974,
1583,
3032,
6979,
338,
451,
6213,
13,
965,
13,
9651,
330,
391,
353,
1583,
29889,
12443,
29889,
29887,
2879,
29889,
657,
29898,
29887,
391,
29918,
333,
29897,
13,
9651,
2295,
353,
426,
29871,
13,
18884,
376,
8216,
1115,
330,
391,
29889,
8216,
29892,
13,
18884,
376,
3597,
1115,
330,
391,
29889,
3597,
29892,
13,
18884,
376,
5325,
1115,
6571,
13,
9651,
500,
13,
9651,
2295,
3366,
5325,
3108,
29961,
9507,
470,
525,
29879,
1240,
7988,
29889,
2272,
2033,
353,
8853,
3051,
1115,
3038,
29913,
13,
965,
13,
9651,
1583,
29889,
12443,
29889,
29887,
2879,
29889,
5504,
29898,
29887,
391,
29918,
333,
29892,
2295,
29897,
13,
4706,
5174,
16499,
291,
2392,
29901,
13,
3986,
1596,
703,
3782,
5993,
3342,
29889,
20065,
304,
2767,
330,
2879,
470,
788,
963,
304,
2225,
1691,
1159,
13,
13,
1678,
822,
788,
29918,
517,
29918,
4569,
300,
29898,
1311,
29892,
330,
391,
29918,
333,
1125,
13,
4706,
565,
1583,
29889,
4569,
300,
29918,
333,
338,
451,
6213,
29901,
13,
9651,
2225,
300,
29918,
29887,
391,
353,
1583,
29889,
12443,
29889,
29887,
2879,
29889,
657,
29898,
1311,
29889,
4569,
300,
29918,
333,
29897,
13,
9651,
2225,
300,
29918,
3051,
353,
2225,
300,
29918,
29887,
391,
29889,
5325,
3366,
4569,
300,
29889,
3945,
16862,
3051,
718,
6634,
29876,
8875,
1642,
4830,
29898,
29887,
391,
29918,
333,
29897,
13,
9651,
1583,
29889,
5504,
29898,
4569,
300,
29918,
29887,
391,
29889,
333,
29892,
2225,
300,
29918,
3051,
29892,
10422,
543,
4569,
300,
29889,
3945,
1159,
13,
13,
1678,
822,
3349,
29918,
3166,
29918,
4569,
300,
29898,
1311,
29892,
330,
391,
29918,
333,
1125,
13,
4706,
565,
1583,
29889,
4569,
300,
29918,
333,
338,
451,
6213,
29901,
13,
9651,
2225,
300,
29918,
29887,
391,
353,
1583,
29889,
12443,
29889,
29887,
2879,
29889,
657,
29898,
1311,
29889,
4569,
300,
29918,
333,
29897,
13,
9651,
2225,
300,
29918,
3051,
353,
2225,
300,
29918,
29887,
391,
29889,
5325,
3366,
4569,
300,
29889,
3945,
16862,
3051,
718,
6634,
29876,
8875,
1642,
4830,
29898,
29887,
391,
29918,
333,
29897,
13,
9651,
2225,
300,
29918,
9012,
353,
518,
1220,
363,
1196,
297,
2225,
300,
29918,
3051,
29889,
5451,
9012,
580,
565,
451,
1196,
29889,
27382,
2541,
29898,
29887,
391,
29918,
333,
4638,
13,
9651,
716,
29918,
4569,
300,
29918,
3051,
353,
6634,
29876,
1642,
7122,
29898,
4569,
300,
29918,
9012,
29897,
13,
9651,
565,
716,
29918,
4569,
300,
29918,
3051,
2804,
2225,
300,
29918,
3051,
29901,
13,
18884,
1583,
29889,
5504,
29898,
4569,
300,
29918,
29887,
391,
29889,
333,
29892,
716,
29918,
4569,
300,
29918,
3051,
29892,
10422,
543,
4569,
300,
29889,
3945,
1159,
13,
2
] |
savu/plugins/ptychography/base_ptycho.py | malte-storm/Savu | 1 | 89560 | <gh_stars>1-10
# Copyright 2014 Diamond Light Source Ltd.
#
# 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.
"""
.. module:: base_ptycho
:platform: Unix
:synopsis: A base class for all ptychographic analysis methods
.. moduleauthor:: <NAME> <<EMAIL>>
"""
from savu.plugins.plugin import Plugin
from savu.plugins.driver.cpu_plugin import CpuPlugin
import logging
import numpy as np
class BasePtycho(Plugin, CpuPlugin): # also make one for gpu
"""
A base plugin for doing ptychography. Other ptychography plugins should \
inherit from this.
:param in_datasets: A list of the dataset(s) to process. Default: [].
:param out_datasets: A list of the dataset(s) to \
process. Default: ['probe', 'object_transmission', 'positions'].
"""
def __init__(self, name):
super(BasePtycho, self).__init__(name)
def setup(self):
self.exp.log(self.name + " Setting up the ptycho")
in_dataset, out_dataset = self.get_datasets()
in_meta_data = in_dataset[0].meta_data# grab the positions from the metadata
logging.debug('getting the positions...')
self.positions = in_meta_data.get('xy') # get the positions and bind them
# lets set up the axis labels for output datasets
position_labels, probe_labels, object_labels, self.sh = self.setup_axis_labels(in_dataset)
# print "probe labels are:"+str(probe_labels)
# print "object labels are:"+str(object_labels)
# print "position labels are:"+str(position_labels)
# Now create the datasets and work out the patterns
### PROBE ###
probe = out_dataset[0]
# probe_shape = in_dataset[0].get_shape()[-2:] + (self.get_num_probe_modes(),)
self.set_size_probe(in_dataset[0].get_shape()[-2:])
logging.debug("##### PROBE #####")
#print("probe shape is:%s",str(self.get_size_probe()))
probe.create_dataset(axis_labels=probe_labels,
shape=self.get_size_probe()) # create the dataset
self.probe_pattern_setup(probe_labels, probe)
### OBJECT ####
self.set_size_object(in_dataset[0], self.get_positions(),
self.get_pixel_size())
object_trans = out_dataset[1]
object_shape = self.sh + self.get_size_object()
logging.debug("##### OBJECT #####")
#print("object shape is:%s",str(object_shape))
# print object_labels
object_trans.create_dataset(axis_labels=object_labels,
shape=object_shape) # create the dataset
self.object_pattern_setup(object_labels, object_trans)
### POSITIONS ###
logging.debug('##### POSITIONS #####')
positions = out_dataset[2]
#print self.sh, self.get_positions().shape
positions_shape = self.sh + self.get_positions().shape[-2:]
logging.debug('positions shape is:%s',str(positions_shape))
#print "positions shape",positions_shape
positions.create_dataset(axis_labels=position_labels,
shape=positions_shape)
rest_pos = range(len(position_labels))
pos_md = \
{'core_dims':tuple(set(rest_pos) - set([0])), 'slice_dims':(0,)}
positions.add_pattern("CHANNEL", **pos_md)
'''
now we need to tell the setup what we want as input shapes, output shapes, and the number of each of them in one go.
'''
in_pData, out_pData = self.get_plugin_datasets()
in_pData[0].plugin_data_setup(self.get_plugin_pattern(), self.get_max_frames())
out_pData[0].plugin_data_setup("PROJECTION", self.get_num_probe_modes())
out_pData[1].plugin_data_setup("PROJECTION", self.get_num_object_modes())
out_pData[2].plugin_data_setup("CHANNEL", self.get_max_frames())
self.exp.log(self.name + " End")
'''
The below methods influence the set-up and can be over-ridden depending on which software package we are using
'''
def get_plugin_pattern(self):
'''
sets the pattern to work in. In this case we consider a ptycho scan to be a 4D_SCAN.
'''
return "4D_SCAN"
def nInput_datasets(self):
return 1
def nOutput_datasets(self):
return 3
def get_num_probe_modes(self):
return 1
def get_num_object_modes(self):
return 1
def get_positions(self):
return self.positions
def get_pixel_size(self):
return 30e-9
def set_size_object(self, dataset,positions, pobj=33e-9):
'''
returns tuple
'''
# print "positions is "+str(self.get_positions().shape)
x,y = self.get_positions()[0],self.get_positions()[1]
probe_size = self.get_size_probe()
x_fov = np.max(x)-np.min(x)
y_fov = np.max(y)-np.min(y)
xsize = int(x_fov//pobj) + probe_size[0]
ysize = int(y_fov//pobj) + probe_size[1]
self.obj_shape = xsize,ysize,self.get_num_object_modes()
def get_size_object(self):
return self.obj_shape
def set_size_probe(self,val):
self.probe_size = (1,)+val + (self.get_num_probe_modes(),)
def get_size_probe(self):
'''
returns tuple
'''
return self.probe_size
def get_max_frames(self):
return 'single'
def get_output_axis_units(self):
return 'nm'
def probe_pattern_setup(self, probe_labels, probe):
'''
This is where we set up the patterns, we need to add, PROJECTIONS, SINOGRAMS, TIMESERIES and SPECTRA
I've created the TIMESERIES because we could in theory have a time series of spectra
probe_patterns: PROJECTION, TIMESERIES (for each projection), SPECTRUM (for each energy)
object_patterns: PROJECTION, SINOGRAM, SPECTRUM (for each energy)
position_patterns: 1D_METADATA
'''
probe_dims = len(probe_labels) # the number of dimensions from the axis labels
rest_probe = range(probe_dims) # all the dimensions we have
self.set_projection_pattern(probe, rest_probe)
self.set_probe_rotation_patterns(probe, rest_probe)
self.set_probe_energy_patterns(probe, rest_probe)
def object_pattern_setup(self, object_labels, object_trans):
'''
This is where we set up the patterns, we need to add, PROJECTIONS, SINOGRAMS, TIMESERIES and SPECTRA
I've created the TIMESERIES because we could in theory have a time series of spectra
probe_patterns: PROJECTION, TIMESERIES (for each projection), SPECTRUM (for each energy)
object_patterns: PROJECTION, SINOGRAM, SPECTRUM (for each energy)
position_patterns: 1D_METADATA
'''
obj_dims = len(object_labels) # the number of dimensions from the axis labels
# print "object has "+str(obj_dims)+"dimensions"
rest_obj = range(obj_dims) # all the dimensions we have
self.set_projection_pattern(object_trans, rest_obj)
self.set_object_rotation_patterns(object_trans, rest_obj)
self.set_object_energy_patterns(object_trans, rest_obj)
def setup_axis_labels(self, in_dataset):
'''
This is where we set up the axis labels
the 4D scan will contain labels that are: 'xy', 'detectorX', 'detectorY', but the data
itself may be scanned in energy or rotation or something else. We want to remove all the above,
and amend them to be the following (preferably with additional scan axes at the front):
probe: 'x','y','mode_idx'
object: 'x','y','mode_idx'
positions: 'xy'
'''
PATTERN_LABELS = ['xy', 'detectorX', 'detectorY']
in_labels = in_dataset[0].data_info.get('axis_labels') # this is a list of dictionarys
existing_labels = [d.keys()[0] for d in in_labels] # this just gets the axes names
logging.debug('The existing labels are:%s, we will remove:%s' % (existing_labels, PATTERN_LABELS))
logging.debug('removing these labels from the list')
core_labels_raw = [l for l in existing_labels if l not in PATTERN_LABELS] # removes them from the list
core_labels = [l + '.' + in_labels[0][l] for l in core_labels_raw] # add the units in for the ones we are keeping
# now we just have to add the new ones to this.
trans_units = self.get_output_axis_units()
probe_labels = list(core_labels) # take a copy
probe_labels.extend(['mode_idx.number','x.' + trans_units, 'y.' + trans_units, ])
logging.debug('the labels for the probe are:%s' % str(probe_labels))
object_labels = list(core_labels)
object_labels.extend(['mode_idx.number','x.' + trans_units, 'y.' + trans_units])
logging.debug('the labels for the object are:%s' % str(object_labels))
position_labels = list(core_labels)
position_labels.extend(['xy.m','idx'])
logging.debug('the labels for the positions are:%s' % str(position_labels))
# now we also need this part of the shape of the data so...
md = in_dataset[0].meta_data
sh = tuple([len(md.get(l)) for l in core_labels_raw])
return position_labels, probe_labels, object_labels, sh
def set_probe_rotation_patterns(self, probe, rest_probe):
try:
rot_axis = probe.get_data_dimension_by_axis_label('rotation_angle', contains=True) # get the rotation axis
except Exception as e:
logging.warn(str(e) + 'we were looking for "rotation_angle"')
logging.debug('This is not a tomography, so no time series for the probe')
else:
# print('the rotation axis is:%s' % str(rot_axis))
probe_ts = {'core_dims':(rot_axis,),
'slice_dims':tuple(set(rest_probe) - set([rot_axis]))}
probe.add_pattern("TIMESERIES", **probe_ts) # so we can FT the wiggles etc...
# print('This is a tomography so I have added a TIMESERIES pattern to the probe') # the probe oscillates in time for each projection, set this as a time series pattern
def set_probe_energy_patterns(self, probe, rest_probe):
try:
energy_axis = probe.get_data_dimension_by_axis_label('energy', contains=True) # get an energy axis
except Exception as e:
logging.warn(str(e) + 'we were looking for "energy"')
logging.debug('This is not spectro-microscopy, so no spectrum/timeseries for the probe')
else:
probe_spec = {'core_dims':tuple(energy_axis), 'slice_dims':tuple(set(rest_probe) - set([energy_axis]))}
probe.add_pattern("SPECTRUM", **probe_spec)
probe.add_pattern("TIMESERIES", **probe_spec)
logging.debug('This is probably spectro-microscopy so I have added a SPECTRUM pattern to the probe')
logging.debug('I have also added a TIMESERIES pattern on the same axis, but be careful with what this means!') # the probe oscillates in time for each projection, set this as a time series pattern
def set_projection_pattern(self, probe, rest_probe):
probe_proj_core = tuple([rest_probe[idx] for idx in (-3, -2)]) # hard coded since we set them just above
probe_slice = tuple(set(rest_probe) - set(probe_proj_core))
probe_proj = {'core_dims':probe_proj_core, 'slice_dims':probe_slice}
probe.add_pattern("PROJECTION", **probe_proj)
logging.debug('have added a PROJECTION pattern')
def set_object_energy_patterns(self, object_trans, rest_obj):
try:
energy_axis = object_trans.get_data_dimension_by_axis_label('energy', contains=True) # get an energy axis
except Exception as e:
logging.warn(str(e) + 'we were looking for "energy"')
logging.debug('This is not spectro-microscopy, so no spectrum for the object')
else:
obj_spec = {'core_dims':tuple(energy_axis), 'slice_dims':tuple(set(rest_obj) - set([energy_axis]))}
object_trans.add_pattern("SPECTRUM", **obj_spec)
logging.debug('This is probably spectro-microscopy so I have added a SPECTRUM pattern to the object') # the probe oscillates in time for each projection, set this as a time series pattern
def set_object_rotation_patterns(self, object_trans, rest_obj):
try:
rot_axis = object_trans.get_data_dimension_by_axis_label('rotation_angle', contains=True) # get the rotation axis
except Exception as e:
logging.warn(str(e) + 'we were looking for "rotation_angle"')
logging.debug('This is not a tomography, so no sinograms for the object transmission')
else:
x_axis = object_trans.get_data_dimension_by_axis_label('x', contains=True) # get the x axis
obj_sino = {'core_dims':(rot_axis, x_axis), 'slice_dims':tuple(set(rest_obj) - set((rot_axis, x_axis)))}
object_trans.add_pattern("SINOGRAM", **obj_sino) # for the tomography
logging.debug('This is a tomography so I have added a SINOGRAM pattern to the object transmission') # the probe oscillates in time for each projection, set this as a time series pattern
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29946,
22904,
898,
12790,
7562,
19806,
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,
13,
636,
3883,
1057,
2967,
29918,
2349,
1859,
13,
259,
584,
12120,
29901,
26663,
13,
259,
584,
19274,
15368,
29901,
319,
2967,
770,
363,
599,
282,
1017,
305,
12122,
7418,
3519,
13,
13,
636,
3883,
8921,
1057,
529,
5813,
29958,
3532,
26862,
6227,
6778,
13,
13,
15945,
29908,
13,
3166,
4048,
29884,
29889,
12800,
29889,
8582,
1053,
1858,
3851,
13,
3166,
4048,
29884,
29889,
12800,
29889,
9465,
29889,
21970,
29918,
8582,
1053,
315,
3746,
16288,
13,
5215,
12183,
13,
5215,
12655,
408,
7442,
13,
13,
13,
1990,
7399,
29925,
1017,
1859,
29898,
16288,
29892,
315,
3746,
16288,
1125,
29871,
396,
884,
1207,
697,
363,
330,
3746,
13,
1678,
9995,
13,
1678,
319,
2967,
7079,
363,
2599,
282,
1017,
305,
5275,
29889,
5901,
282,
1017,
305,
5275,
18224,
881,
320,
13,
1678,
13125,
515,
445,
29889,
13,
1678,
584,
3207,
297,
29918,
14538,
1691,
29901,
319,
1051,
310,
278,
8783,
29898,
29879,
29897,
304,
1889,
29889,
13109,
29901,
518,
1822,
13,
1678,
584,
3207,
714,
29918,
14538,
1691,
29901,
319,
1051,
310,
278,
8783,
29898,
29879,
29897,
304,
320,
13,
4706,
1889,
29889,
13109,
29901,
6024,
771,
915,
742,
525,
3318,
29918,
3286,
6737,
742,
525,
1066,
2187,
13359,
13,
1678,
9995,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1024,
1125,
13,
4706,
2428,
29898,
5160,
29925,
1017,
1859,
29892,
1583,
467,
1649,
2344,
12035,
978,
29897,
13,
13,
1678,
822,
6230,
29898,
1311,
1125,
13,
4706,
1583,
29889,
4548,
29889,
1188,
29898,
1311,
29889,
978,
718,
376,
21605,
701,
278,
282,
1017,
1859,
1159,
13,
4706,
297,
29918,
24713,
29892,
714,
29918,
24713,
353,
1583,
29889,
657,
29918,
14538,
1691,
580,
13,
308,
13,
4706,
297,
29918,
7299,
29918,
1272,
353,
297,
29918,
24713,
29961,
29900,
1822,
7299,
29918,
1272,
29937,
17229,
278,
11909,
515,
278,
15562,
13,
4706,
12183,
29889,
8382,
877,
29264,
278,
11909,
856,
1495,
13,
4706,
1583,
29889,
1066,
2187,
353,
297,
29918,
7299,
29918,
1272,
29889,
657,
877,
3594,
1495,
396,
679,
278,
11909,
322,
7868,
963,
13,
13,
4706,
396,
16869,
731,
701,
278,
9685,
11073,
363,
1962,
20035,
13,
4706,
2602,
29918,
21134,
29892,
410,
915,
29918,
21134,
29892,
1203,
29918,
21134,
29892,
1583,
29889,
845,
353,
1583,
29889,
14669,
29918,
8990,
29918,
21134,
29898,
262,
29918,
24713,
29897,
13,
29937,
4706,
1596,
376,
771,
915,
11073,
526,
6160,
29974,
710,
29898,
771,
915,
29918,
21134,
29897,
13,
29937,
4706,
1596,
376,
3318,
11073,
526,
6160,
29974,
710,
29898,
3318,
29918,
21134,
29897,
13,
29937,
4706,
1596,
376,
3283,
11073,
526,
6160,
29974,
710,
29898,
3283,
29918,
21134,
29897,
13,
4706,
396,
2567,
1653,
278,
20035,
322,
664,
714,
278,
15038,
13,
4706,
835,
13756,
15349,
835,
13,
4706,
410,
915,
353,
714,
29918,
24713,
29961,
29900,
29962,
13,
29937,
308,
410,
915,
29918,
12181,
353,
297,
29918,
24713,
29961,
29900,
1822,
657,
29918,
12181,
580,
14352,
29906,
17531,
718,
313,
1311,
29889,
657,
29918,
1949,
29918,
771,
915,
29918,
1545,
267,
3285,
29897,
13,
308,
13,
4706,
1583,
29889,
842,
29918,
2311,
29918,
771,
915,
29898,
262,
29918,
24713,
29961,
29900,
1822,
657,
29918,
12181,
580,
14352,
29906,
29901,
2314,
13,
4706,
12183,
29889,
8382,
703,
4136,
29937,
13756,
15349,
16101,
1159,
13,
4706,
396,
2158,
703,
771,
915,
8267,
338,
16664,
29879,
613,
710,
29898,
1311,
29889,
657,
29918,
2311,
29918,
771,
915,
22130,
13,
4706,
410,
915,
29889,
3258,
29918,
24713,
29898,
8990,
29918,
21134,
29922,
771,
915,
29918,
21134,
29892,
13,
462,
9651,
8267,
29922,
1311,
29889,
657,
29918,
2311,
29918,
771,
915,
3101,
396,
1653,
278,
8783,
13,
4706,
1583,
29889,
771,
915,
29918,
11037,
29918,
14669,
29898,
771,
915,
29918,
21134,
29892,
410,
915,
29897,
13,
13,
4706,
835,
438,
29933,
17637,
3191,
13,
4706,
1583,
29889,
842,
29918,
2311,
29918,
3318,
29898,
262,
29918,
24713,
29961,
29900,
1402,
1583,
29889,
657,
29918,
1066,
2187,
3285,
13,
462,
632,
1583,
29889,
657,
29918,
29886,
15711,
29918,
2311,
3101,
13,
4706,
1203,
29918,
3286,
353,
714,
29918,
24713,
29961,
29896,
29962,
13,
4706,
1203,
29918,
12181,
353,
1583,
29889,
845,
718,
1583,
29889,
657,
29918,
2311,
29918,
3318,
580,
13,
4706,
12183,
29889,
8382,
703,
4136,
29937,
438,
29933,
17637,
16101,
1159,
13,
4706,
396,
2158,
703,
3318,
8267,
338,
16664,
29879,
613,
710,
29898,
3318,
29918,
12181,
876,
13,
29937,
308,
1596,
1203,
29918,
21134,
13,
308,
13,
4706,
1203,
29918,
3286,
29889,
3258,
29918,
24713,
29898,
8990,
29918,
21134,
29922,
3318,
29918,
21134,
29892,
13,
462,
462,
1678,
8267,
29922,
3318,
29918,
12181,
29897,
396,
1653,
278,
8783,
13,
462,
462,
268,
13,
4706,
1583,
29889,
3318,
29918,
11037,
29918,
14669,
29898,
3318,
29918,
21134,
29892,
1203,
29918,
3286,
29897,
13,
308,
13,
4706,
835,
349,
3267,
22122,
29903,
835,
13,
4706,
12183,
29889,
8382,
877,
4136,
29937,
349,
3267,
22122,
29903,
16101,
1495,
13,
4706,
11909,
353,
714,
29918,
24713,
29961,
29906,
29962,
13,
4706,
396,
2158,
1583,
29889,
845,
29892,
1583,
29889,
657,
29918,
1066,
2187,
2141,
12181,
13,
4706,
11909,
29918,
12181,
353,
1583,
29889,
845,
718,
1583,
29889,
657,
29918,
1066,
2187,
2141,
12181,
14352,
29906,
17531,
13,
4706,
12183,
29889,
8382,
877,
1066,
2187,
8267,
338,
16664,
29879,
742,
710,
29898,
1066,
2187,
29918,
12181,
876,
13,
4706,
396,
2158,
376,
1066,
2187,
8267,
613,
1066,
2187,
29918,
12181,
13,
4706,
11909,
29889,
3258,
29918,
24713,
29898,
8990,
29918,
21134,
29922,
3283,
29918,
21134,
29892,
13,
462,
462,
8267,
29922,
1066,
2187,
29918,
12181,
29897,
13,
308,
13,
4706,
1791,
29918,
1066,
353,
3464,
29898,
2435,
29898,
3283,
29918,
21134,
876,
13,
308,
13,
4706,
926,
29918,
3487,
353,
320,
13,
9651,
11117,
3221,
29918,
6229,
29879,
2396,
23583,
29898,
842,
29898,
5060,
29918,
1066,
29897,
448,
731,
4197,
29900,
2314,
511,
525,
18337,
29918,
6229,
29879,
2396,
29898,
29900,
29892,
2915,
13,
4706,
11909,
29889,
1202,
29918,
11037,
703,
3210,
2190,
29940,
6670,
613,
3579,
1066,
29918,
3487,
29897,
13,
4706,
14550,
13,
4706,
1286,
591,
817,
304,
2649,
278,
6230,
825,
591,
864,
408,
1881,
25834,
29892,
1962,
25834,
29892,
322,
278,
1353,
310,
1269,
310,
963,
297,
697,
748,
29889,
13,
4706,
14550,
13,
4706,
297,
29918,
29886,
1469,
29892,
714,
29918,
29886,
1469,
353,
1583,
29889,
657,
29918,
8582,
29918,
14538,
1691,
580,
13,
4706,
297,
29918,
29886,
1469,
29961,
29900,
1822,
8582,
29918,
1272,
29918,
14669,
29898,
1311,
29889,
657,
29918,
8582,
29918,
11037,
3285,
1583,
29889,
657,
29918,
3317,
29918,
19935,
3101,
13,
4706,
714,
29918,
29886,
1469,
29961,
29900,
1822,
8582,
29918,
1272,
29918,
14669,
703,
8618,
29967,
29923,
9838,
613,
1583,
29889,
657,
29918,
1949,
29918,
771,
915,
29918,
1545,
267,
3101,
13,
4706,
714,
29918,
29886,
1469,
29961,
29896,
1822,
8582,
29918,
1272,
29918,
14669,
703,
8618,
29967,
29923,
9838,
613,
1583,
29889,
657,
29918,
1949,
29918,
3318,
29918,
1545,
267,
3101,
13,
4706,
714,
29918,
29886,
1469,
29961,
29906,
1822,
8582,
29918,
1272,
29918,
14669,
703,
3210,
2190,
29940,
6670,
613,
1583,
29889,
657,
29918,
3317,
29918,
19935,
3101,
13,
4706,
1583,
29889,
4548,
29889,
1188,
29898,
1311,
29889,
978,
718,
376,
2796,
1159,
13,
13,
1678,
14550,
13,
1678,
450,
2400,
3519,
9949,
278,
731,
29899,
786,
322,
508,
367,
975,
29899,
2429,
1145,
8679,
373,
607,
7047,
3577,
591,
526,
773,
13,
268,
13,
1678,
14550,
13,
13,
1678,
822,
679,
29918,
8582,
29918,
11037,
29898,
1311,
1125,
13,
4706,
14550,
13,
4706,
6166,
278,
4766,
304,
664,
297,
29889,
512,
445,
1206,
591,
2050,
263,
282,
1017,
1859,
12812,
304,
367,
263,
29871,
29946,
29928,
29918,
7187,
2190,
29889,
13,
4706,
14550,
13,
4706,
736,
376,
29946,
29928,
29918,
7187,
2190,
29908,
13,
13,
1678,
822,
302,
4290,
29918,
14538,
1691,
29898,
1311,
1125,
13,
4706,
736,
29871,
29896,
13,
13,
1678,
822,
302,
6466,
29918,
14538,
1691,
29898,
1311,
1125,
13,
4706,
736,
29871,
29941,
13,
13,
1678,
822,
679,
29918,
1949,
29918,
771,
915,
29918,
1545,
267,
29898,
1311,
1125,
13,
4706,
736,
29871,
29896,
13,
13,
1678,
822,
679,
29918,
1949,
29918,
3318,
29918,
1545,
267,
29898,
1311,
1125,
13,
4706,
736,
29871,
29896,
13,
268,
13,
1678,
822,
679,
29918,
1066,
2187,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
1066,
2187,
13,
268,
13,
1678,
822,
679,
29918,
29886,
15711,
29918,
2311,
29898,
1311,
1125,
13,
4706,
736,
29871,
29941,
29900,
29872,
29899,
29929,
13,
13,
1678,
822,
731,
29918,
2311,
29918,
3318,
29898,
1311,
29892,
8783,
29892,
1066,
2187,
29892,
282,
5415,
29922,
29941,
29941,
29872,
29899,
29929,
1125,
13,
4706,
14550,
13,
4706,
3639,
18761,
13,
4706,
14550,
13,
29937,
308,
1596,
376,
1066,
2187,
338,
15691,
710,
29898,
1311,
29889,
657,
29918,
1066,
2187,
2141,
12181,
29897,
13,
4706,
921,
29892,
29891,
353,
1583,
29889,
657,
29918,
1066,
2187,
580,
29961,
29900,
1402,
1311,
29889,
657,
29918,
1066,
2187,
580,
29961,
29896,
29962,
13,
4706,
410,
915,
29918,
2311,
353,
1583,
29889,
657,
29918,
2311,
29918,
771,
915,
580,
13,
4706,
921,
29918,
29888,
586,
353,
7442,
29889,
3317,
29898,
29916,
6817,
9302,
29889,
1195,
29898,
29916,
29897,
13,
4706,
343,
29918,
29888,
586,
353,
7442,
29889,
3317,
29898,
29891,
6817,
9302,
29889,
1195,
29898,
29891,
29897,
13,
4706,
921,
2311,
353,
938,
29898,
29916,
29918,
29888,
586,
458,
29886,
5415,
29897,
718,
410,
915,
29918,
2311,
29961,
29900,
29962,
13,
4706,
343,
2311,
353,
938,
29898,
29891,
29918,
29888,
586,
458,
29886,
5415,
29897,
718,
410,
915,
29918,
2311,
29961,
29896,
29962,
13,
4706,
1583,
29889,
5415,
29918,
12181,
353,
921,
2311,
29892,
952,
675,
29892,
1311,
29889,
657,
29918,
1949,
29918,
3318,
29918,
1545,
267,
580,
13,
13,
1678,
822,
679,
29918,
2311,
29918,
3318,
29898,
1311,
1125,
13,
4706,
736,
1583,
29889,
5415,
29918,
12181,
13,
268,
13,
1678,
822,
731,
29918,
2311,
29918,
771,
915,
29898,
1311,
29892,
791,
1125,
13,
4706,
1583,
29889,
771,
915,
29918,
2311,
353,
313,
29896,
29892,
7240,
791,
718,
313,
1311,
29889,
657,
29918,
1949,
29918,
771,
915,
29918,
1545,
267,
3285,
29897,
13,
268,
13,
1678,
822,
679,
29918,
2311,
29918,
771,
915,
29898,
1311,
1125,
13,
4706,
14550,
13,
4706,
3639,
18761,
13,
4706,
14550,
13,
4706,
736,
1583,
29889,
771,
915,
29918,
2311,
13,
268,
13,
1678,
822,
679,
29918,
3317,
29918,
19935,
29898,
1311,
1125,
13,
4706,
736,
525,
14369,
29915,
13,
268,
13,
1678,
822,
679,
29918,
4905,
29918,
8990,
29918,
348,
1169,
29898,
1311,
1125,
13,
4706,
736,
525,
22882,
29915,
13,
13,
1678,
822,
410,
915,
29918,
11037,
29918,
14669,
29898,
1311,
29892,
410,
915,
29918,
21134,
29892,
410,
915,
1125,
13,
4706,
14550,
13,
4706,
910,
338,
988,
591,
731,
701,
278,
15038,
29892,
591,
817,
304,
788,
29892,
13756,
29967,
29923,
9838,
29903,
29892,
317,
1177,
29949,
29954,
4717,
4345,
29892,
323,
8890,
6304,
29059,
322,
317,
4162,
1783,
4717,
13,
4706,
306,
29915,
345,
2825,
278,
323,
8890,
6304,
29059,
1363,
591,
1033,
297,
6368,
505,
263,
931,
3652,
310,
6683,
336,
13,
4706,
410,
915,
29918,
11037,
29879,
29901,
13756,
29967,
29923,
9838,
29892,
323,
8890,
6304,
29059,
313,
1454,
1269,
18246,
511,
317,
4162,
1783,
29934,
5005,
313,
1454,
1269,
5864,
29897,
13,
4706,
1203,
29918,
11037,
29879,
29901,
13756,
29967,
29923,
9838,
29892,
317,
1177,
29949,
29954,
25058,
29892,
317,
4162,
1783,
29934,
5005,
313,
1454,
1269,
5864,
29897,
13,
4706,
2602,
29918,
11037,
29879,
29901,
29871,
29896,
29928,
29918,
2303,
29911,
3035,
8254,
29871,
13,
308,
13,
4706,
14550,
13,
4706,
410,
915,
29918,
6229,
29879,
353,
7431,
29898,
771,
915,
29918,
21134,
29897,
396,
278,
1353,
310,
13391,
515,
278,
9685,
11073,
13,
4706,
1791,
29918,
771,
915,
353,
3464,
29898,
771,
915,
29918,
6229,
29879,
29897,
396,
599,
278,
13391,
591,
505,
13,
4706,
1583,
29889,
842,
29918,
771,
6929,
29918,
11037,
29898,
771,
915,
29892,
1791,
29918,
771,
915,
29897,
13,
4706,
1583,
29889,
842,
29918,
771,
915,
29918,
5450,
362,
29918,
11037,
29879,
29898,
771,
915,
29892,
1791,
29918,
771,
915,
29897,
13,
4706,
1583,
29889,
842,
29918,
771,
915,
29918,
27548,
29918,
11037,
29879,
29898,
771,
915,
29892,
1791,
29918,
771,
915,
29897,
13,
13,
1678,
822,
1203,
29918,
11037,
29918,
14669,
29898,
1311,
29892,
1203,
29918,
21134,
29892,
1203,
29918,
3286,
1125,
13,
4706,
14550,
13,
4706,
910,
338,
988,
591,
731,
701,
278,
15038,
29892,
591,
817,
304,
788,
29892,
13756,
29967,
29923,
9838,
29903,
29892,
317,
1177,
29949,
29954,
4717,
4345,
29892,
323,
8890,
6304,
29059,
322,
317,
4162,
1783,
4717,
13,
4706,
306,
29915,
345,
2825,
278,
323,
8890,
6304,
29059,
1363,
591,
1033,
297,
6368,
505,
263,
931,
3652,
310,
6683,
336,
13,
4706,
410,
915,
29918,
11037,
29879,
29901,
13756,
29967,
29923,
9838,
29892,
323,
8890,
6304,
29059,
313,
1454,
1269,
18246,
511,
317,
4162,
1783,
29934,
5005,
313,
1454,
1269,
5864,
29897,
13,
4706,
1203,
29918,
11037,
29879,
29901,
13756,
29967,
29923,
9838,
29892,
317,
1177,
29949,
29954,
25058,
29892,
317,
4162,
1783,
29934,
5005,
313,
1454,
1269,
5864,
29897,
13,
4706,
2602,
29918,
11037,
29879,
29901,
29871,
29896,
29928,
29918,
2303,
29911,
3035,
8254,
29871,
13,
308,
13,
4706,
14550,
13,
4706,
5446,
29918,
6229,
29879,
353,
7431,
29898,
3318,
29918,
21134,
29897,
396,
278,
1353,
310,
13391,
515,
278,
9685,
11073,
13,
29937,
308,
1596,
376,
3318,
756,
15691,
710,
29898,
5415,
29918,
6229,
29879,
7240,
29908,
6229,
5580,
29908,
13,
4706,
1791,
29918,
5415,
353,
3464,
29898,
5415,
29918,
6229,
29879,
29897,
396,
599,
278,
13391,
591,
505,
13,
4706,
1583,
29889,
842,
29918,
771,
6929,
29918,
11037,
29898,
3318,
29918,
3286,
29892,
1791,
29918,
5415,
29897,
13,
4706,
1583,
29889,
842,
29918,
3318,
29918,
5450,
362,
29918,
11037,
29879,
29898,
3318,
29918,
3286,
29892,
1791,
29918,
5415,
29897,
13,
4706,
1583,
29889,
842,
29918,
3318,
29918,
27548,
29918,
11037,
29879,
29898,
3318,
29918,
3286,
29892,
1791,
29918,
5415,
29897,
13,
13,
1678,
822,
6230,
29918,
8990,
29918,
21134,
29898,
1311,
29892,
297,
29918,
24713,
1125,
13,
4706,
14550,
13,
4706,
910,
338,
988,
591,
731,
701,
278,
9685,
11073,
13,
4706,
278,
29871,
29946,
29928,
12812,
674,
1712,
11073,
393,
526,
29901,
525,
3594,
742,
525,
4801,
3019,
29990,
742,
525,
4801,
3019,
29979,
742,
541,
278,
848,
29871,
13,
4706,
3528,
1122,
367,
885,
11310,
297,
5864,
470,
13733,
470,
1554,
1683,
29889,
1334,
864,
304,
3349,
599,
278,
2038,
29892,
13,
4706,
322,
626,
355,
963,
304,
367,
278,
1494,
313,
1457,
571,
2197,
411,
5684,
12812,
27815,
472,
278,
4565,
1125,
13,
4706,
410,
915,
29901,
525,
29916,
3788,
29891,
3788,
8513,
29918,
13140,
29915,
13,
4706,
1203,
29901,
525,
29916,
3788,
29891,
3788,
8513,
29918,
13140,
29915,
13,
4706,
11909,
29901,
525,
3594,
29915,
13,
4706,
14550,
13,
4706,
349,
1299,
4945,
29940,
29918,
24461,
6670,
29903,
353,
6024,
3594,
742,
525,
4801,
3019,
29990,
742,
525,
4801,
3019,
29979,
2033,
13,
4706,
297,
29918,
21134,
353,
297,
29918,
24713,
29961,
29900,
1822,
1272,
29918,
3888,
29889,
657,
877,
8990,
29918,
21134,
1495,
396,
445,
338,
263,
1051,
310,
8600,
29879,
13,
4706,
5923,
29918,
21134,
353,
518,
29881,
29889,
8149,
580,
29961,
29900,
29962,
363,
270,
297,
297,
29918,
21134,
29962,
396,
445,
925,
4947,
278,
27815,
2983,
13,
4706,
12183,
29889,
8382,
877,
1576,
5923,
11073,
526,
16664,
29879,
29892,
591,
674,
3349,
16664,
29879,
29915,
1273,
313,
735,
15423,
29918,
21134,
29892,
349,
1299,
4945,
29940,
29918,
24461,
6670,
29903,
876,
13,
4706,
12183,
29889,
8382,
877,
1745,
21081,
1438,
11073,
515,
278,
1051,
1495,
13,
4706,
7136,
29918,
21134,
29918,
1610,
353,
518,
29880,
363,
301,
297,
5923,
29918,
21134,
565,
301,
451,
297,
349,
1299,
4945,
29940,
29918,
24461,
6670,
29903,
29962,
396,
25388,
963,
515,
278,
1051,
13,
4706,
7136,
29918,
21134,
353,
518,
29880,
718,
525,
6169,
718,
297,
29918,
21134,
29961,
29900,
3816,
29880,
29962,
363,
301,
297,
7136,
29918,
21134,
29918,
1610,
29962,
396,
788,
278,
10340,
297,
363,
278,
6743,
591,
526,
12515,
13,
4706,
396,
1286,
591,
925,
505,
304,
788,
278,
716,
6743,
304,
445,
29889,
13,
4706,
1301,
29918,
348,
1169,
353,
1583,
29889,
657,
29918,
4905,
29918,
8990,
29918,
348,
1169,
580,
13,
308,
13,
4706,
410,
915,
29918,
21134,
353,
1051,
29898,
3221,
29918,
21134,
29897,
396,
2125,
263,
3509,
13,
4706,
410,
915,
29918,
21134,
29889,
21843,
18959,
8513,
29918,
13140,
29889,
4537,
3788,
29916,
6169,
718,
1301,
29918,
348,
1169,
29892,
525,
29891,
6169,
718,
1301,
29918,
348,
1169,
29892,
29871,
2314,
13,
4706,
12183,
29889,
8382,
877,
1552,
11073,
363,
278,
410,
915,
526,
16664,
29879,
29915,
1273,
851,
29898,
771,
915,
29918,
21134,
876,
13,
4706,
1203,
29918,
21134,
353,
1051,
29898,
3221,
29918,
21134,
29897,
13,
4706,
1203,
29918,
21134,
29889,
21843,
18959,
8513,
29918,
13140,
29889,
4537,
3788,
29916,
6169,
718,
1301,
29918,
348,
1169,
29892,
525,
29891,
6169,
718,
1301,
29918,
348,
1169,
2314,
13,
4706,
12183,
29889,
8382,
877,
1552,
11073,
363,
278,
1203,
526,
16664,
29879,
29915,
1273,
851,
29898,
3318,
29918,
21134,
876,
13,
4706,
2602,
29918,
21134,
353,
1051,
29898,
3221,
29918,
21134,
29897,
13,
4706,
2602,
29918,
21134,
29889,
21843,
18959,
3594,
29889,
29885,
3788,
13140,
11287,
13,
4706,
12183,
29889,
8382,
877,
1552,
11073,
363,
278,
11909,
526,
16664,
29879,
29915,
1273,
851,
29898,
3283,
29918,
21134,
876,
13,
4706,
396,
1286,
591,
884,
817,
445,
760,
310,
278,
8267,
310,
278,
848,
577,
856,
13,
4706,
22821,
353,
297,
29918,
24713,
29961,
29900,
1822,
7299,
29918,
1272,
13,
4706,
528,
353,
18761,
4197,
2435,
29898,
3487,
29889,
657,
29898,
29880,
876,
363,
301,
297,
7136,
29918,
21134,
29918,
1610,
2314,
13,
4706,
736,
2602,
29918,
21134,
29892,
410,
915,
29918,
21134,
29892,
1203,
29918,
21134,
29892,
528,
13,
13,
1678,
822,
731,
29918,
771,
915,
29918,
5450,
362,
29918,
11037,
29879,
29898,
1311,
29892,
410,
915,
29892,
1791,
29918,
771,
915,
1125,
13,
4706,
1018,
29901,
13,
9651,
5731,
29918,
8990,
353,
410,
915,
29889,
657,
29918,
1272,
29918,
6229,
2673,
29918,
1609,
29918,
8990,
29918,
1643,
877,
5450,
362,
29918,
2521,
742,
3743,
29922,
5574,
29897,
396,
679,
278,
13733,
9685,
13,
4706,
5174,
8960,
408,
321,
29901,
13,
9651,
12183,
29889,
25442,
29898,
710,
29898,
29872,
29897,
718,
525,
705,
892,
3063,
363,
376,
5450,
362,
29918,
2521,
29908,
1495,
13,
9651,
12183,
29889,
8382,
877,
4013,
338,
451,
263,
6454,
5275,
29892,
577,
694,
931,
3652,
363,
278,
410,
915,
1495,
13,
4706,
1683,
29901,
13,
9651,
396,
1596,
877,
1552,
13733,
9685,
338,
16664,
29879,
29915,
1273,
851,
29898,
5450,
29918,
8990,
876,
13,
9651,
410,
915,
29918,
1372,
353,
11117,
3221,
29918,
6229,
29879,
2396,
29898,
5450,
29918,
8990,
29892,
511,
13,
462,
4706,
525,
18337,
29918,
6229,
29879,
2396,
23583,
29898,
842,
29898,
5060,
29918,
771,
915,
29897,
448,
731,
4197,
5450,
29918,
8990,
12622,
29913,
13,
9651,
410,
915,
29889,
1202,
29918,
11037,
703,
15307,
6304,
29059,
613,
3579,
771,
915,
29918,
1372,
29897,
396,
577,
591,
508,
383,
29911,
278,
281,
22817,
793,
2992,
856,
13,
9651,
396,
1596,
877,
4013,
338,
263,
6454,
5275,
577,
306,
505,
2715,
263,
323,
8890,
6304,
29059,
4766,
304,
278,
410,
915,
1495,
396,
278,
410,
915,
21519,
1078,
297,
931,
363,
1269,
18246,
29892,
731,
445,
408,
263,
931,
3652,
4766,
13,
13,
1678,
822,
731,
29918,
771,
915,
29918,
27548,
29918,
11037,
29879,
29898,
1311,
29892,
410,
915,
29892,
1791,
29918,
771,
915,
1125,
13,
4706,
1018,
29901,
13,
9651,
5864,
29918,
8990,
353,
410,
915,
29889,
657,
29918,
1272,
29918,
6229,
2673,
29918,
1609,
29918,
8990,
29918,
1643,
877,
27548,
742,
3743,
29922,
5574,
29897,
396,
679,
385,
5864,
9685,
13,
4706,
5174,
8960,
408,
321,
29901,
13,
9651,
12183,
29889,
25442,
29898,
710,
29898,
29872,
29897,
718,
525,
705,
892,
3063,
363,
376,
27548,
29908,
1495,
13,
9651,
12183,
29889,
8382,
877,
4013,
338,
451,
6683,
307,
29899,
29885,
2357,
1557,
2270,
29892,
577,
694,
18272,
29914,
3706,
6358,
363,
278,
410,
915,
1495,
13,
4706,
1683,
29901,
13,
9651,
410,
915,
29918,
6550,
353,
11117,
3221,
29918,
6229,
29879,
2396,
23583,
29898,
27548,
29918,
8990,
511,
525,
18337,
29918,
6229,
29879,
2396,
23583,
29898,
842,
29898,
5060,
29918,
771,
915,
29897,
448,
731,
4197,
27548,
29918,
8990,
12622,
29913,
13,
9651,
410,
915,
29889,
1202,
29918,
11037,
703,
29903,
4162,
1783,
29934,
5005,
613,
3579,
771,
915,
29918,
6550,
29897,
13,
9651,
410,
915,
29889,
1202,
29918,
11037,
703,
15307,
6304,
29059,
613,
3579,
771,
915,
29918,
6550,
29897,
13,
9651,
12183,
29889,
8382,
877,
4013,
338,
3117,
6683,
307,
29899,
29885,
2357,
1557,
2270,
577,
306,
505,
2715,
263,
317,
4162,
1783,
29934,
5005,
4766,
304,
278,
410,
915,
1495,
13,
9651,
12183,
29889,
8382,
877,
29902,
505,
884,
2715,
263,
323,
8890,
6304,
29059,
4766,
373,
278,
1021,
9685,
29892,
541,
367,
16010,
411,
825,
445,
2794,
29991,
1495,
396,
278,
410,
915,
21519,
1078,
297,
931,
363,
1269,
18246,
29892,
731,
445,
408,
263,
931,
3652,
4766,
13,
13,
13,
1678,
822,
731,
29918,
771,
6929,
29918,
11037,
29898,
1311,
29892,
410,
915,
29892,
1791,
29918,
771,
915,
1125,
13,
4706,
410,
915,
29918,
20865,
29918,
3221,
353,
18761,
4197,
5060,
29918,
771,
915,
29961,
13140,
29962,
363,
22645,
297,
8521,
29941,
29892,
448,
29906,
29897,
2314,
396,
2898,
274,
6797,
1951,
591,
731,
963,
925,
2038,
13,
4706,
410,
915,
29918,
18337,
353,
18761,
29898,
842,
29898,
5060,
29918,
771,
915,
29897,
448,
731,
29898,
771,
915,
29918,
20865,
29918,
3221,
876,
13,
4706,
410,
915,
29918,
20865,
353,
11117,
3221,
29918,
6229,
29879,
2396,
771,
915,
29918,
20865,
29918,
3221,
29892,
525,
18337,
29918,
6229,
29879,
2396,
771,
915,
29918,
18337,
29913,
13,
4706,
410,
915,
29889,
1202,
29918,
11037,
703,
8618,
29967,
29923,
9838,
613,
3579,
771,
915,
29918,
20865,
29897,
13,
4706,
12183,
29889,
8382,
877,
17532,
2715,
263,
13756,
29967,
29923,
9838,
4766,
1495,
13,
13,
1678,
822,
731,
29918,
3318,
29918,
27548,
29918,
11037,
29879,
29898,
1311,
29892,
1203,
29918,
3286,
29892,
1791,
29918,
5415,
1125,
13,
4706,
1018,
29901,
13,
9651,
5864,
29918,
8990,
353,
1203,
29918,
3286,
29889,
657,
29918,
1272,
29918,
6229,
2673,
29918,
1609,
29918,
8990,
29918,
1643,
877,
27548,
742,
3743,
29922,
5574,
29897,
396,
679,
385,
5864,
9685,
13,
4706,
5174,
8960,
408,
321,
29901,
13,
9651,
12183,
29889,
25442,
29898,
710,
29898,
29872,
29897,
718,
525,
705,
892,
3063,
363,
376,
27548,
29908,
1495,
13,
9651,
12183,
29889,
8382,
877,
4013,
338,
451,
6683,
307,
29899,
29885,
2357,
1557,
2270,
29892,
577,
694,
18272,
363,
278,
1203,
1495,
13,
4706,
1683,
29901,
13,
9651,
5446,
29918,
6550,
353,
11117,
3221,
29918,
6229,
29879,
2396,
23583,
29898,
27548,
29918,
8990,
511,
525,
18337,
29918,
6229,
29879,
2396,
23583,
29898,
842,
29898,
5060,
29918,
5415,
29897,
448,
731,
4197,
27548,
29918,
8990,
12622,
29913,
13,
9651,
1203,
29918,
3286,
29889,
1202,
29918,
11037,
703,
29903,
4162,
1783,
29934,
5005,
613,
3579,
5415,
29918,
6550,
29897,
13,
9651,
12183,
29889,
8382,
877,
4013,
338,
3117,
6683,
307,
29899,
29885,
2357,
1557,
2270,
577,
306,
505,
2715,
263,
317,
4162,
1783,
29934,
5005,
4766,
304,
278,
1203,
1495,
396,
278,
410,
915,
21519,
1078,
297,
931,
363,
1269,
18246,
29892,
731,
445,
408,
263,
931,
3652,
4766,
13,
13,
13,
1678,
822,
731,
29918,
3318,
29918,
5450,
362,
29918,
11037,
29879,
29898,
1311,
29892,
1203,
29918,
3286,
29892,
1791,
29918,
5415,
1125,
13,
4706,
1018,
29901,
13,
9651,
5731,
29918,
8990,
353,
1203,
29918,
3286,
29889,
657,
29918,
1272,
29918,
6229,
2673,
29918,
1609,
29918,
8990,
29918,
1643,
877,
5450,
362,
29918,
2521,
742,
3743,
29922,
5574,
29897,
396,
679,
278,
13733,
9685,
13,
4706,
5174,
8960,
408,
321,
29901,
13,
9651,
12183,
29889,
25442,
29898,
710,
29898,
29872,
29897,
718,
525,
705,
892,
3063,
363,
376,
5450,
362,
29918,
2521,
29908,
1495,
13,
9651,
12183,
29889,
8382,
877,
4013,
338,
451,
263,
6454,
5275,
29892,
577,
694,
4457,
468,
25402,
363,
278,
1203,
22713,
1495,
13,
4706,
1683,
29901,
13,
9651,
921,
29918,
8990,
353,
1203,
29918,
3286,
29889,
657,
29918,
1272,
29918,
6229,
2673,
29918,
1609,
29918,
8990,
29918,
1643,
877,
29916,
742,
3743,
29922,
5574,
29897,
396,
679,
278,
921,
9685,
13,
9651,
5446,
29918,
29879,
1789,
353,
11117,
3221,
29918,
6229,
29879,
2396,
29898,
5450,
29918,
8990,
29892,
921,
29918,
8990,
511,
525,
18337,
29918,
6229,
29879,
2396,
23583,
29898,
842,
29898,
5060,
29918,
5415,
29897,
448,
731,
3552,
5450,
29918,
8990,
29892,
921,
29918,
8990,
876,
2915,
13,
9651,
1203,
29918,
3286,
29889,
1202,
29918,
11037,
703,
29903,
1177,
29949,
29954,
25058,
613,
3579,
5415,
29918,
29879,
1789,
29897,
396,
363,
278,
6454,
5275,
13,
9651,
12183,
29889,
8382,
877,
4013,
338,
263,
6454,
5275,
577,
306,
505,
2715,
263,
317,
1177,
29949,
29954,
25058,
4766,
304,
278,
1203,
22713,
1495,
396,
278,
410,
915,
21519,
1078,
297,
931,
363,
1269,
18246,
29892,
731,
445,
408,
263,
931,
3652,
4766,
13,
2
] |
wal_e/worker/gs/__init__.py | paalkr/wal-e | 2,739 | 146868 | <filename>wal_e/worker/gs/__init__.py
from wal_e.worker.gs.gs_deleter import Deleter
from wal_e.worker.gs.gs_worker import BackupFetcher
from wal_e.worker.gs.gs_worker import BackupList
from wal_e.worker.gs.gs_worker import DeleteFromContext
from wal_e.worker.gs.gs_worker import TarPartitionLister
__all__ = [
'Deleter',
'TarPartitionLister',
'BackupFetcher',
'BackupList',
'DeleteFromContext',
]
| [
1,
529,
9507,
29958,
14625,
29918,
29872,
29914,
24602,
29914,
3174,
29914,
1649,
2344,
26914,
2272,
13,
3166,
17042,
29918,
29872,
29889,
24602,
29889,
3174,
29889,
3174,
29918,
311,
280,
357,
1053,
897,
280,
357,
13,
3166,
17042,
29918,
29872,
29889,
24602,
29889,
3174,
29889,
3174,
29918,
24602,
1053,
7437,
786,
20927,
261,
13,
3166,
17042,
29918,
29872,
29889,
24602,
29889,
3174,
29889,
3174,
29918,
24602,
1053,
7437,
786,
1293,
13,
3166,
17042,
29918,
29872,
29889,
24602,
29889,
3174,
29889,
3174,
29918,
24602,
1053,
21267,
4591,
2677,
13,
3166,
17042,
29918,
29872,
29889,
24602,
29889,
3174,
29889,
3174,
29918,
24602,
1053,
11740,
7439,
654,
29931,
1531,
13,
13,
1649,
497,
1649,
353,
518,
13,
1678,
525,
2772,
280,
357,
742,
13,
1678,
525,
29911,
279,
7439,
654,
29931,
1531,
742,
13,
1678,
525,
5841,
786,
20927,
261,
742,
13,
1678,
525,
5841,
786,
1293,
742,
13,
1678,
525,
12498,
4591,
2677,
742,
13,
29962,
13,
2
] |
test31.py | cieczpj/spider | 0 | 61483 | <filename>test31.py
from lxml import etree
import requests
import urllib.parse
import pymongo
headers = {
'User-Agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36',
}
mylist = []
for j in range(50):
if j == 1:
reponse= requests.get('http://v.7192.com/movie_0_0_0_0_1',headers=headers)
else:
reponse = requests.get('http://v.7192.com/movie_0_0_0_0_{}'.format(j),headers=headers)
reponse.encoding="gbk"
tree = etree.HTML(reponse.text)
res = tree.xpath('//div[@class="result_right_list"]/ul/li/div/a')
#print(res)
#mylist = []
for a in res:
href1_ = a.xpath('./@href')[0]
href_ = ('http://v.7192.com'+href1_)
title_ = a.xpath('./@title')[0]
src_ = a.xpath('./img/@data-original')[0]
print(src_)
print(href_,title_)
#text_=href_+title_+src_
reponse1 = requests.get('http://v.7192.com'+href1_,headers=headers)
reponse1.encoding="gbk"
tree1 = etree.HTML(reponse1.text)
res2 = tree1.xpath('//div[@class="show_information"]/table[@id="mv_play_list"]/tr/th[@width="180px"]/a')
#res2 = tree1.xpath('//div[@class="result_right_list"]/ul/li/div/a')
#mylist = []
for b in res2:
href2= b.xpath('./@rel')[0]
print(href2)
mylist.append({"src_":src_,"href_":href_,"title_":title_,"href2":href2})
#lock.acquire() # 锁住mongo
myclient = pymongo.MongoClient("mongodb://localhost:27017/")
mydb = myclient["wemovie"]
mycol = mydb["movie"]
mycol.insert_many(mylist)
myclient.close() #!!!!!!!!!!!
#lock.release() # 打开mongo
| [
1,
529,
9507,
29958,
1688,
29941,
29896,
29889,
2272,
13,
3166,
301,
3134,
1053,
634,
929,
13,
5215,
7274,
13,
5215,
3142,
1982,
29889,
5510,
13,
5215,
282,
962,
7443,
13,
13662,
353,
426,
13,
1678,
525,
2659,
29899,
19661,
22099,
29924,
2112,
2911,
29914,
29945,
29889,
29900,
313,
15735,
524,
10578,
29936,
18555,
4326,
6570,
1060,
29871,
29896,
29900,
29918,
29896,
29946,
29918,
29906,
29897,
12113,
3609,
13117,
29914,
29945,
29941,
29955,
29889,
29941,
29953,
313,
29968,
7020,
29892,
763,
1879,
27604,
29897,
10228,
29914,
29955,
29896,
29889,
29900,
29889,
29941,
29945,
29955,
29947,
29889,
29929,
29947,
24544,
29914,
29945,
29941,
29955,
29889,
29941,
29953,
742,
13,
29913,
13,
1357,
1761,
353,
5159,
13,
1454,
432,
297,
3464,
29898,
29945,
29900,
1125,
13,
1678,
565,
432,
1275,
29871,
29896,
29901,
13,
4706,
337,
1713,
29922,
7274,
29889,
657,
877,
1124,
597,
29894,
29889,
29955,
29896,
29929,
29906,
29889,
510,
29914,
27362,
29918,
29900,
29918,
29900,
29918,
29900,
29918,
29900,
29918,
29896,
742,
13662,
29922,
13662,
29897,
13,
1678,
1683,
29901,
13,
4706,
337,
1713,
353,
7274,
29889,
657,
877,
1124,
597,
29894,
29889,
29955,
29896,
29929,
29906,
29889,
510,
29914,
27362,
29918,
29900,
29918,
29900,
29918,
29900,
29918,
29900,
648,
29913,
4286,
4830,
29898,
29926,
511,
13662,
29922,
13662,
29897,
13,
1678,
337,
1713,
29889,
22331,
543,
26300,
29895,
29908,
13,
1678,
5447,
353,
634,
929,
29889,
7020,
29898,
276,
1713,
29889,
726,
29897,
13,
1678,
620,
353,
5447,
29889,
23635,
877,
458,
4563,
17548,
1990,
543,
2914,
29918,
1266,
29918,
1761,
3108,
29914,
352,
29914,
492,
29914,
4563,
29914,
29874,
1495,
13,
1678,
396,
2158,
29898,
690,
29897,
13,
1678,
396,
1357,
1761,
353,
5159,
13,
1678,
363,
263,
297,
620,
29901,
13,
4706,
2822,
29896,
29918,
353,
263,
29889,
23635,
877,
6904,
29992,
12653,
29861,
29900,
29962,
13,
4706,
2822,
29918,
353,
6702,
1124,
597,
29894,
29889,
29955,
29896,
29929,
29906,
29889,
510,
18717,
12653,
29896,
19925,
13,
4706,
3611,
29918,
353,
263,
29889,
23635,
877,
6904,
29992,
3257,
29861,
29900,
29962,
13,
4706,
4765,
29918,
353,
263,
29889,
23635,
877,
6904,
2492,
29368,
1272,
29899,
13492,
29861,
29900,
29962,
13,
4706,
1596,
29898,
4351,
19925,
13,
4706,
1596,
29898,
12653,
3383,
3257,
19925,
13,
4706,
396,
726,
29918,
29922,
12653,
28842,
3257,
28842,
4351,
29918,
13,
4706,
337,
1713,
29896,
353,
7274,
29889,
657,
877,
1124,
597,
29894,
29889,
29955,
29896,
29929,
29906,
29889,
510,
18717,
12653,
29896,
3383,
13662,
29922,
13662,
29897,
13,
4706,
337,
1713,
29896,
29889,
22331,
543,
26300,
29895,
29908,
13,
4706,
5447,
29896,
353,
634,
929,
29889,
7020,
29898,
276,
1713,
29896,
29889,
726,
29897,
13,
4706,
620,
29906,
353,
5447,
29896,
29889,
23635,
877,
458,
4563,
17548,
1990,
543,
4294,
29918,
19678,
3108,
29914,
2371,
17548,
333,
543,
29324,
29918,
1456,
29918,
1761,
3108,
29914,
509,
29914,
386,
17548,
2103,
543,
29896,
29947,
29900,
1756,
3108,
29914,
29874,
1495,
13,
4706,
396,
690,
29906,
353,
5447,
29896,
29889,
23635,
877,
458,
4563,
17548,
1990,
543,
2914,
29918,
1266,
29918,
1761,
3108,
29914,
352,
29914,
492,
29914,
4563,
29914,
29874,
1495,
13,
4706,
396,
1357,
1761,
353,
5159,
13,
4706,
363,
289,
297,
620,
29906,
29901,
13,
9651,
2822,
29906,
29922,
289,
29889,
23635,
877,
6904,
29992,
2674,
29861,
29900,
29962,
13,
9651,
1596,
29898,
12653,
29906,
29897,
13,
9651,
590,
1761,
29889,
4397,
3319,
29908,
4351,
29918,
1115,
4351,
29918,
1699,
12653,
29918,
1115,
12653,
29918,
1699,
3257,
29918,
1115,
3257,
29918,
1699,
12653,
29906,
1115,
12653,
29906,
1800,
13,
29937,
908,
29889,
562,
1548,
580,
29871,
396,
29871,
236,
151,
132,
231,
192,
146,
29885,
7443,
13,
1357,
4645,
353,
282,
962,
7443,
29889,
29924,
7443,
4032,
703,
23264,
597,
7640,
29901,
29906,
29955,
29900,
29896,
29955,
29914,
1159,
13,
1357,
2585,
353,
590,
4645,
3366,
29893,
331,
5672,
3108,
13,
1357,
1054,
353,
590,
2585,
3366,
27362,
3108,
13,
1357,
1054,
29889,
7851,
29918,
13011,
29898,
1357,
1761,
29897,
13,
1357,
4645,
29889,
5358,
580,
396,
6824,
6824,
6824,
6824,
21004,
13,
29937,
908,
29889,
14096,
580,
396,
29871,
31656,
31026,
29885,
7443,
13,
13,
13,
268,
13,
268,
13,
13,
2
] |
orders/views.py | DobromirZlatkov/anteya | 0 | 8699 | <filename>orders/views.py
from django.core.urlresolvers import reverse_lazy
from django.views import generic
from django.shortcuts import redirect, render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from . import forms
from . import models
from custommixins import mixins
class OrderView(generic.View):
template_name = 'orders/order_create.html'
def get(self, request):
qs = models.Product.objects.none()
formset = forms.ProductFormSet(queryset=qs, prefix='formset')
order_form = forms.OrderForm(prefix='order_form')
return render(request, self.template_name, {'formset': formset, 'order_form': order_form})
def post(self, request):
formset = forms.ProductFormSet(request.POST, prefix='formset')
order_form = forms.OrderForm(request.POST, prefix='order_form')
if formset.is_valid():
order = order_form.save()
for form in formset.forms:
product = form.save(commit=False)
order.products.add(product)
order.save()
return HttpResponseRedirect(reverse('order_details', args=(order.id,)))
else:
return render(request, self.template_name, {'formset': formset, 'order_form': order_form})
class OrderDetails(generic.DetailView):
model = models.Order
template_name_suffix = '_details'
class OrderList(mixins.LoginRequiredMixin, mixins.AdminRequiredMixin, generic.ListView):
model = models.Order
class OrderEdit(generic.View):
template_name = 'orders/order_edit.html'
def get(self, request, pk):
order = models.Order.objects.get(pk=pk)
formset = forms.ProductFormSet(queryset=order.products.all(), prefix='formset')
order_form = forms.OrderForm(prefix='order_form', instance=order)
return render(request, self.template_name, {'formset': formset, 'order_form': order_form})
def post(self, request, pk):
order = models.Order.objects.get(pk=pk)
formset = forms.ProductFormSet(request.POST, prefix='formset')
order_form = forms.OrderForm(request.POST, prefix='order_form')
if formset.is_valid():
order = order_form.save()
for form in formset.forms:
product = form.save(commit=False)
order.products.add(product)
order.save()
return HttpResponseRedirect(reverse('order_details', args=(order.id,)))
else:
return render(request, self.template_name, {'formset': formset, 'order_form': order_form})
| [
1,
529,
9507,
29958,
20488,
29914,
7406,
29889,
2272,
13,
3166,
9557,
29889,
3221,
29889,
2271,
9778,
874,
1053,
11837,
29918,
433,
1537,
13,
3166,
9557,
29889,
7406,
1053,
10035,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
6684,
29892,
4050,
13,
3166,
9557,
29889,
1124,
1053,
9056,
5103,
24735,
13,
3166,
9557,
29889,
3221,
29889,
2271,
9778,
874,
1053,
11837,
13,
13,
3166,
869,
1053,
7190,
13,
3166,
869,
1053,
4733,
13,
3166,
2888,
28084,
1144,
1053,
6837,
1144,
13,
13,
13,
1990,
8170,
1043,
29898,
19206,
29889,
1043,
1125,
13,
1678,
4472,
29918,
978,
353,
525,
20488,
29914,
2098,
29918,
3258,
29889,
1420,
29915,
13,
13,
1678,
822,
679,
29898,
1311,
29892,
2009,
1125,
13,
4706,
3855,
29879,
353,
4733,
29889,
7566,
29889,
12650,
29889,
9290,
580,
13,
4706,
883,
842,
353,
7190,
29889,
7566,
2500,
2697,
29898,
1972,
842,
29922,
29939,
29879,
29892,
10944,
2433,
689,
842,
1495,
13,
4706,
1797,
29918,
689,
353,
7190,
29889,
7514,
2500,
29898,
13506,
2433,
2098,
29918,
689,
1495,
13,
4706,
736,
4050,
29898,
3827,
29892,
1583,
29889,
6886,
29918,
978,
29892,
11117,
689,
842,
2396,
883,
842,
29892,
525,
2098,
29918,
689,
2396,
1797,
29918,
689,
1800,
13,
13,
1678,
822,
1400,
29898,
1311,
29892,
2009,
1125,
13,
4706,
883,
842,
353,
7190,
29889,
7566,
2500,
2697,
29898,
3827,
29889,
5438,
29892,
10944,
2433,
689,
842,
1495,
13,
4706,
1797,
29918,
689,
353,
7190,
29889,
7514,
2500,
29898,
3827,
29889,
5438,
29892,
10944,
2433,
2098,
29918,
689,
1495,
13,
4706,
565,
883,
842,
29889,
275,
29918,
3084,
7295,
13,
9651,
1797,
353,
1797,
29918,
689,
29889,
7620,
580,
13,
9651,
363,
883,
297,
883,
842,
29889,
9514,
29901,
13,
18884,
3234,
353,
883,
29889,
7620,
29898,
15060,
29922,
8824,
29897,
13,
18884,
1797,
29889,
14456,
29889,
1202,
29898,
4704,
29897,
13,
18884,
1797,
29889,
7620,
580,
13,
9651,
736,
9056,
5103,
24735,
29898,
24244,
877,
2098,
29918,
14144,
742,
6389,
7607,
2098,
29889,
333,
29892,
4961,
13,
4706,
1683,
29901,
13,
9651,
736,
4050,
29898,
3827,
29892,
1583,
29889,
6886,
29918,
978,
29892,
11117,
689,
842,
2396,
883,
842,
29892,
525,
2098,
29918,
689,
2396,
1797,
29918,
689,
1800,
13,
13,
13,
1990,
8170,
10602,
29898,
19206,
29889,
16570,
1043,
1125,
13,
1678,
1904,
353,
4733,
29889,
7514,
13,
1678,
4472,
29918,
978,
29918,
2146,
600,
861,
353,
22868,
14144,
29915,
13,
13,
13,
1990,
8170,
1293,
29898,
28084,
1144,
29889,
11049,
19347,
29924,
861,
262,
29892,
6837,
1144,
29889,
12754,
19347,
29924,
861,
262,
29892,
10035,
29889,
15660,
1125,
13,
1678,
1904,
353,
4733,
29889,
7514,
13,
13,
13,
1990,
8170,
6103,
29898,
19206,
29889,
1043,
1125,
13,
1678,
4472,
29918,
978,
353,
525,
20488,
29914,
2098,
29918,
5628,
29889,
1420,
29915,
13,
13,
1678,
822,
679,
29898,
1311,
29892,
2009,
29892,
282,
29895,
1125,
13,
4706,
1797,
353,
4733,
29889,
7514,
29889,
12650,
29889,
657,
29898,
20571,
29922,
20571,
29897,
13,
13,
4706,
883,
842,
353,
7190,
29889,
7566,
2500,
2697,
29898,
1972,
842,
29922,
2098,
29889,
14456,
29889,
497,
3285,
10944,
2433,
689,
842,
1495,
13,
13,
4706,
1797,
29918,
689,
353,
7190,
29889,
7514,
2500,
29898,
13506,
2433,
2098,
29918,
689,
742,
2777,
29922,
2098,
29897,
13,
4706,
736,
4050,
29898,
3827,
29892,
1583,
29889,
6886,
29918,
978,
29892,
11117,
689,
842,
2396,
883,
842,
29892,
525,
2098,
29918,
689,
2396,
1797,
29918,
689,
1800,
13,
13,
1678,
822,
1400,
29898,
1311,
29892,
2009,
29892,
282,
29895,
1125,
13,
4706,
1797,
353,
4733,
29889,
7514,
29889,
12650,
29889,
657,
29898,
20571,
29922,
20571,
29897,
13,
4706,
883,
842,
353,
7190,
29889,
7566,
2500,
2697,
29898,
3827,
29889,
5438,
29892,
10944,
2433,
689,
842,
1495,
13,
4706,
1797,
29918,
689,
353,
7190,
29889,
7514,
2500,
29898,
3827,
29889,
5438,
29892,
10944,
2433,
2098,
29918,
689,
1495,
13,
4706,
565,
883,
842,
29889,
275,
29918,
3084,
7295,
13,
9651,
1797,
353,
1797,
29918,
689,
29889,
7620,
580,
13,
9651,
363,
883,
297,
883,
842,
29889,
9514,
29901,
13,
18884,
3234,
353,
883,
29889,
7620,
29898,
15060,
29922,
8824,
29897,
13,
18884,
1797,
29889,
14456,
29889,
1202,
29898,
4704,
29897,
13,
18884,
1797,
29889,
7620,
580,
13,
9651,
736,
9056,
5103,
24735,
29898,
24244,
877,
2098,
29918,
14144,
742,
6389,
7607,
2098,
29889,
333,
29892,
4961,
13,
4706,
1683,
29901,
13,
9651,
736,
4050,
29898,
3827,
29892,
1583,
29889,
6886,
29918,
978,
29892,
11117,
689,
842,
2396,
883,
842,
29892,
525,
2098,
29918,
689,
2396,
1797,
29918,
689,
1800,
13,
2
] |
docs/10.level3_demo_streaming/pc_server/server.py | FaBoPlatform/RobotCarAI | 10 | 5706 | <reponame>FaBoPlatform/RobotCarAI<gh_stars>1-10
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ClientからOpenCV画像データを受け取り、ライン検出して制御命令を送る
# Server: Jetson TX2
# Client: Jetson TX2/Raspberry Pi3 Docker
# 1. FFMPEG UDP StreamingをClientで実行する。AWS向け10FPS,Jetson TX2向け1FPS
# 2. Serverを起動する
# 3. Clientを起動する
# コード修正
# lib/camera.py: vid = cv2.VideoCapture()を環境に合わせて修正する必要がある
# lib/object_detection.py: /home/ubuntu/notebooks/github/SSD-Tensorflow/ を環境に合わせて修正する必要がある
'''
Python 3.6
送信するmessageは.encode('ascii')や.encode('utf-8')等でエンコードする必要がる
ここではClientから送られてくるOpenCV BGR画像データが'ascii'に変換されているので'ascii'で統一している
'''
print("wait. launching...")
import socket, select
import time
import cv2
import numpy as np
import time
import os
import sys
import logging
import threading
import numpy as np
from lib.functions import *
from lib.object_detection import ObjectDetection
from lib.opencv_lane_detection import LaneDetection
from lib.webcam import WebcamVideoStream
# ログ設定
logging.basicConfig(level=logging.DEBUG,
format='[%(levelname)s] time:%(created).8f pid:%(process)d pn:%(processName)-10s tid:%(thread)d tn:%(threadName)-10s fn:%(funcName)-10s %(message)s',
)
# 解析、送信スレッド動作フラグ
is_analyze_running = False
sock = None
out = None
# IPM変換後の画像におけるx,yメートル(黒い部分も含む)
X_METER=1.5
Y_METER=1
# ライン検出クラス
ld = None
# 物体検出クラス
od = None
def do_analyze():
global is_analyze_running
global sock
global out
global X_METER
global Y_METER
global ld
global od
# 映像を保存するかどうか
IS_SAVE = True
OUTPUT_DIR ='./'
OUTPUT_FILENAME = 'received.avi'
HANDLE_ANGLE = 42
frame_counter = 0
fourcc = None
control = None
roi_vertices = None
ipm_vertices = None
speed = None
# 映像準備
camera = WebcamVideoStream()
cols,rows,fps,fourcc = camera.init_webcam()
camera.start()
fps = 1
if IS_SAVE:
out = cv2.VideoWriter(os.path.join(OUTPUT_DIR, OUTPUT_FILENAME), int(fourcc), fps, (int(cols), int(rows)))
########################################
# ライン検出準備
########################################
ld = LaneDetection(X_METER,Y_METER,cols=cols,rows=rows)
while is_analyze_running:
frame_start_time = time.time()
#time.sleep(0.2)
########################################
# 映像取得
########################################
cv_bgr = camera.read()
frame_counter += 1
########################################
# 物体認識
########################################
# avi動画に保存する
if IS_SAVE:
out.write(cv_bgr)
rclasses,rscores,rbboxes = od.get_detection(cv_bgr)
print(rclasses,rscores,rbboxes)
if len(rclasses) > 0:
prediction_class = np.min(rclasses)
if prediction_class == 1:
# 止まれを検出した
is_need_header_receive = True
control='0,0,'
sock.sendall(("CONTROL,"+ control).encode('ascii'))
continue
elif prediction_class == 2:
# 10を検出した
speed = 40
elif prediction_class == 3:
# 20を検出した
speed = 50
elif prediction_class == 4:
# 30を検出した
speed = 60
else:
# 物体検出無し
if speed is None:
speed = 40
handle_angle = 0
########################################
# ライン検出
########################################
ld.cv_bgr = cv_bgr
# ラインを検出する
try:
tilt1_deg,tilt2_deg,angle1_deg,angle2_deg,curve1_r,curve2_r, \
meters_from_center = ld.lane_detection()
except:
# ライン検出失敗
is_need_header_receive = True
control='0,0,'
sock.sendall(("CONTROL,"+ control).encode('ascii'))
continue
########################################
# 速度調整を行う
########################################
#if np.abs(angle2_deg) > np.abs(angle1_deg):
# speed = 50
#else:
# speed = 60
'''
左右について
tilt_deg: -が右、+が左
angle_deg: +が右、-が左
meters_from_center: -が右にいる、+が左にいる
handle_angle: +が右、-が左
'''
########################################
# ハンドル角調整を行う
########################################
handle_angle = -1*tilt1_deg
if meters_from_center >= 0:
# 左にいる
if np.abs(meters_from_center)*100 > 20:
# とても離れて左にいる:右に全開で曲がる
handle_angle=HANDLE_ANGLE
elif np.abs(meters_from_center)*100 > 10:
if tilt2_deg > 0 :
# 離れて左いる、奥は左カーブ:右に少し曲がる
handle_angle=HANDLE_ANGLE/2
else:
# 離れて左いる、奥は右カーブ:右に全開で曲がる
handle_angle=HANDLE_ANGLE
else:
# 右にいる
if np.abs(meters_from_center)*100 > 20:
# とても離れて右にいる:左に全開で曲がる
handle_angle=-1*HANDLE_ANGLE
elif np.abs(meters_from_center)*100 > 10:
if tilt2_deg < 0 :
# 離れて右いる、奥は右カーブ:左に少し曲がる
handle_angle=-1*HANDLE_ANGLE/2
else:
# 離れて右いる、奥は左カーブ、左に全開で曲がる
handle_angle=-1*HANDLE_ANGLE
# 動作可能な角度内に調整する
if handle_angle > HANDLE_ANGLE:
handle_angle = HANDLE_ANGLE
if handle_angle < -1*HANDLE_ANGLE:
handle_angle = -1*HANDLE_ANGLE
# 車両制御送信
control=str(speed)+','+str(handle_angle)+','
print("speed={},handle_angle={},CONTROL,{}".format(speed,handle_angle,control))
sock.sendall(("CONTROL,"+ control).encode('ascii'))
frame_end_time = time.time()
print("FPS={}".format(round(1/(frame_end_time-frame_start_time),2)))
def main():
global is_analyze_running
global sock
global out
global ld
global od
# 通信設定
HOST = '192.168.0.77' # Server IP Address
PORT = 6666 # Server TCP Port
#HOST = 'a32158c3da9f' # AWS Docker
#PORT = 8091 # AWS TCP Port
#HOST = '2204f9b0e871' # PC Docker
#PORT = 8091 # PC TCP Port
########################################
# 通信準備
########################################
connected_clients_sockets = []
server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
server_socket.bind((HOST, PORT))
server_socket.listen(10)
connected_clients_sockets.append(server_socket)
# Headerの受信が必要かどうか。Headerを受信したら、encode('ascii')を通さずに受信データを解析する
is_need_header_receive = True
########################################
# 物体認識準備
########################################
od = ObjectDetection()
print("Server start")
try:
while True:
########################################
# 受信待ち
########################################
read_sockets, write_sockets, error_sockets = select.select(connected_clients_sockets, [], [])
for sock in read_sockets:
if sock == server_socket:
sockfd, client_address = server_socket.accept()
connected_clients_sockets.append(sockfd)
else:
# ClientがServerにHeaderを送る時は4096 Byte以下にすること
packet = sock.recv(4096)
print(type(packet))
#
if is_need_header_receive:
print('header')
packet = packet.decode('ascii')
txt = str(packet)
if packet:
print('packet True')
if packet == 'START':
is_analyze_running = True
t = threading.Thread(target=do_analyze)
t.start()
elif packet.startswith('BYE'):
print('got BYE')
is_need_header_receive = True
is_analyze_running = False
sock.shutdown(socket.SHUT_RDWR)
sock.close()
connected_clients_sockets.remove(sock)
if out is not None:
out.release()
else:
print('client disconnect')
is_need_header_receive = True
is_analyze_running = False
sock.shutdown(socket.SHUT_RDWR)
sock.close()
connected_clients_sockets.remove(sock)
if out is not None:
out.release()
if not is_need_header_receive:
# ここには来ない
print('body')
if packet:
print('packet True')
is_need_header_receive = True
else:
print('data finished')
is_need_header_receive = True
is_analyze_running = False
sock.shutdown(socket.SHUT_RDWR)
sock.close()
connected_clients_sockets.remove(sock)
if out is not None:
out.release()
except:
import traceback
traceback.print_exc()
finally:
is_need_header_receive = True
is_analyze_running = False
sock.shutdown(socket.SHUT_RDWR)
sock.close()
connected_clients_sockets.remove(sock)
server_socket.close()
if out is not None:
out.release()
if __name__ == '__main__':
main()
print("end server")
| [
1,
529,
276,
1112,
420,
29958,
14206,
8431,
21889,
29914,
21860,
327,
8179,
23869,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
12477,
30412,
30513,
6585,
15633,
31046,
31551,
30597,
30185,
30369,
30396,
232,
146,
154,
30807,
30683,
30453,
30330,
30281,
30260,
30203,
233,
167,
159,
30544,
30326,
30466,
31072,
31697,
31237,
31650,
30396,
31545,
30332,
13,
29937,
5656,
29901,
27804,
1100,
323,
29990,
29906,
13,
29937,
12477,
29901,
27804,
1100,
323,
29990,
29906,
29914,
29934,
4692,
16344,
7362,
29941,
20868,
13,
29937,
29871,
29896,
29889,
21379,
3580,
11787,
501,
11191,
13763,
292,
30396,
4032,
30499,
31525,
30448,
30427,
30332,
30267,
29909,
7811,
31331,
30807,
29896,
29900,
29943,
7024,
29892,
29967,
300,
1100,
323,
29990,
29906,
31331,
30807,
29896,
29943,
7024,
13,
29937,
29871,
29906,
29889,
5656,
30396,
31558,
31124,
30427,
30332,
13,
29937,
29871,
29941,
29889,
12477,
30396,
31558,
31124,
30427,
30332,
13,
29937,
29871,
30459,
30185,
30335,
31273,
30724,
13,
29937,
4303,
29914,
26065,
29889,
2272,
29901,
7840,
353,
13850,
29906,
29889,
15167,
21133,
545,
580,
30396,
234,
149,
179,
232,
165,
134,
30353,
30733,
31068,
31095,
30466,
31273,
30724,
30427,
30332,
31641,
30698,
30458,
30641,
30332,
13,
29937,
4303,
29914,
3318,
29918,
29881,
2650,
428,
29889,
2272,
29901,
847,
5184,
29914,
8767,
29914,
1333,
19273,
29879,
29914,
3292,
29914,
1799,
29928,
29899,
29911,
6073,
1731,
29914,
29871,
30396,
234,
149,
179,
232,
165,
134,
30353,
30733,
31068,
31095,
30466,
31273,
30724,
30427,
30332,
31641,
30698,
30458,
30641,
30332,
13,
12008,
13,
11980,
29871,
29941,
29889,
29953,
13,
268,
31545,
30689,
30427,
30332,
4906,
30449,
29889,
12508,
877,
294,
18869,
1495,
31111,
29889,
12508,
877,
9420,
29899,
29947,
1495,
31184,
30499,
30600,
30203,
30459,
30185,
30335,
30427,
30332,
31641,
30698,
30458,
30332,
13,
268,
30589,
30589,
30499,
30449,
4032,
30412,
30513,
31545,
30513,
30553,
30466,
30568,
30332,
6585,
15633,
350,
14345,
31046,
31551,
30597,
30185,
30369,
30458,
29915,
294,
18869,
29915,
30353,
31786,
233,
146,
158,
30566,
30553,
30466,
30298,
30332,
30199,
30499,
29915,
294,
18869,
29915,
30499,
234,
184,
180,
30287,
30326,
30466,
30298,
30332,
13,
12008,
13,
2158,
703,
10685,
29889,
6826,
292,
856,
1159,
13,
5215,
9909,
29892,
1831,
13,
5215,
931,
13,
5215,
13850,
29906,
13,
5215,
12655,
408,
7442,
13,
5215,
931,
13,
5215,
2897,
13,
5215,
10876,
13,
5215,
12183,
13,
5215,
3244,
292,
13,
5215,
12655,
408,
7442,
13,
3166,
4303,
29889,
12171,
1053,
334,
13,
3166,
4303,
29889,
3318,
29918,
29881,
2650,
428,
1053,
4669,
29928,
2650,
428,
13,
3166,
4303,
29889,
3150,
11023,
29918,
25821,
29918,
29881,
2650,
428,
1053,
23841,
29928,
2650,
428,
13,
3166,
4303,
29889,
2676,
11108,
1053,
2563,
11108,
15167,
3835,
13,
13,
13,
29937,
29871,
30378,
30521,
31770,
30495,
13,
21027,
29889,
16121,
3991,
29898,
5563,
29922,
21027,
29889,
18525,
29892,
13,
462,
1678,
3402,
2433,
29961,
29995,
29898,
5563,
978,
29897,
29879,
29962,
931,
16664,
29898,
11600,
467,
29947,
29888,
23107,
16664,
29898,
5014,
29897,
29881,
282,
29876,
16664,
29898,
5014,
1170,
6817,
29896,
29900,
29879,
10668,
16664,
29898,
7097,
29897,
29881,
260,
29876,
16664,
29898,
7097,
1170,
6817,
29896,
29900,
29879,
7876,
16664,
29898,
9891,
1170,
6817,
29896,
29900,
29879,
1273,
29898,
4906,
29897,
29879,
742,
13,
29897,
13,
13,
29937,
29871,
31201,
233,
161,
147,
30330,
31545,
30689,
30255,
30420,
30317,
30335,
31124,
30732,
30423,
30281,
30521,
13,
275,
29918,
24209,
911,
29918,
21094,
353,
7700,
13,
13,
21852,
353,
6213,
13,
449,
353,
6213,
13,
13,
29937,
5641,
29924,
31786,
233,
146,
158,
31220,
30199,
31046,
31551,
30353,
30697,
30807,
30332,
29916,
29892,
29891,
30604,
30185,
30279,
30258,
29898,
31553,
30298,
30636,
30748,
30723,
232,
147,
174,
31834,
29897,
13,
29990,
29918,
2303,
4945,
29922,
29896,
29889,
29945,
13,
29979,
29918,
2303,
4945,
29922,
29896,
13,
13,
29937,
29871,
30281,
30260,
30203,
233,
167,
159,
30544,
30305,
30281,
30255,
13,
430,
353,
6213,
13,
29937,
29871,
30834,
30988,
233,
167,
159,
30544,
30305,
30281,
30255,
13,
397,
353,
6213,
13,
13,
1753,
437,
29918,
24209,
911,
7295,
13,
1678,
5534,
338,
29918,
24209,
911,
29918,
21094,
13,
1678,
5534,
577,
384,
13,
1678,
5534,
714,
13,
1678,
5534,
1060,
29918,
2303,
4945,
13,
1678,
5534,
612,
29918,
2303,
4945,
13,
1678,
5534,
301,
29881,
13,
1678,
5534,
2413,
13,
13,
1678,
396,
29871,
233,
155,
163,
31551,
30396,
30982,
30946,
30427,
30332,
30412,
31250,
30465,
30412,
13,
1678,
8519,
29918,
29903,
7520,
29923,
353,
5852,
13,
1678,
19474,
12336,
29918,
9464,
353,
4286,
22208,
13,
1678,
19474,
12336,
29918,
7724,
5813,
353,
525,
13556,
2347,
29889,
17345,
29915,
13,
13,
1678,
379,
9468,
1307,
29918,
19453,
1307,
353,
29871,
29946,
29906,
13,
13,
1678,
3515,
29918,
11808,
353,
29871,
29900,
13,
1678,
3023,
617,
353,
6213,
13,
1678,
2761,
353,
6213,
13,
1678,
14100,
29918,
1765,
1575,
353,
6213,
13,
1678,
474,
3358,
29918,
1765,
1575,
353,
6213,
13,
1678,
6210,
353,
6213,
13,
13,
1678,
396,
29871,
233,
155,
163,
31551,
233,
189,
153,
232,
133,
156,
13,
1678,
10656,
353,
2563,
11108,
15167,
3835,
580,
13,
1678,
28730,
29892,
5727,
29892,
29888,
567,
29892,
17823,
617,
353,
10656,
29889,
2344,
29918,
2676,
11108,
580,
13,
1678,
10656,
29889,
2962,
580,
13,
1678,
285,
567,
353,
29871,
29896,
13,
1678,
565,
8519,
29918,
29903,
7520,
29923,
29901,
13,
4706,
714,
353,
13850,
29906,
29889,
15167,
10507,
29898,
359,
29889,
2084,
29889,
7122,
29898,
12015,
12336,
29918,
9464,
29892,
19474,
12336,
29918,
7724,
5813,
511,
938,
29898,
17823,
617,
511,
285,
567,
29892,
313,
524,
29898,
22724,
511,
938,
29898,
5727,
4961,
13,
13,
1678,
835,
13383,
13383,
4136,
29937,
13,
1678,
396,
29871,
30281,
30260,
30203,
233,
167,
159,
30544,
233,
189,
153,
232,
133,
156,
13,
1678,
835,
13383,
13383,
4136,
29937,
13,
1678,
301,
29881,
353,
23841,
29928,
2650,
428,
29898,
29990,
29918,
2303,
4945,
29892,
29979,
29918,
2303,
4945,
29892,
22724,
29922,
22724,
29892,
5727,
29922,
5727,
29897,
13,
13,
1678,
1550,
338,
29918,
24209,
911,
29918,
21094,
29901,
13,
4706,
3515,
29918,
2962,
29918,
2230,
353,
931,
29889,
2230,
580,
13,
4706,
396,
2230,
29889,
17059,
29898,
29900,
29889,
29906,
29897,
13,
4706,
835,
13383,
13383,
4136,
29937,
13,
4706,
396,
29871,
233,
155,
163,
31551,
30683,
31050,
13,
4706,
835,
13383,
13383,
4136,
29937,
13,
4706,
13850,
29918,
29890,
629,
353,
10656,
29889,
949,
580,
13,
4706,
3515,
29918,
11808,
4619,
29871,
29896,
13,
4706,
835,
13383,
13383,
4136,
29937,
13,
4706,
396,
29871,
30834,
30988,
235,
173,
144,
235,
176,
155,
13,
4706,
835,
13383,
13383,
4136,
29937,
13,
4706,
396,
1029,
29875,
31124,
31046,
30353,
30982,
30946,
30427,
30332,
13,
4706,
565,
8519,
29918,
29903,
7520,
29923,
29901,
13,
9651,
714,
29889,
3539,
29898,
11023,
29918,
29890,
629,
29897,
13,
4706,
364,
13203,
29892,
29878,
1557,
2361,
29892,
6050,
1884,
267,
353,
2413,
29889,
657,
29918,
29881,
2650,
428,
29898,
11023,
29918,
29890,
629,
29897,
13,
4706,
1596,
29898,
29878,
13203,
29892,
29878,
1557,
2361,
29892,
6050,
1884,
267,
29897,
13,
4706,
565,
7431,
29898,
29878,
13203,
29897,
1405,
29871,
29900,
29901,
13,
9651,
18988,
29918,
1990,
353,
7442,
29889,
1195,
29898,
29878,
13203,
29897,
13,
9651,
565,
18988,
29918,
1990,
1275,
29871,
29896,
29901,
13,
18884,
396,
29871,
31981,
30441,
30553,
30396,
233,
167,
159,
30544,
30326,
30366,
13,
18884,
338,
29918,
26180,
29918,
6672,
29918,
13556,
573,
353,
5852,
13,
18884,
2761,
2433,
29900,
29892,
29900,
5501,
13,
18884,
577,
384,
29889,
6717,
497,
29898,
703,
22412,
1672,
29931,
1699,
29974,
2761,
467,
12508,
877,
294,
18869,
8785,
13,
18884,
6773,
13,
9651,
25342,
18988,
29918,
1990,
1275,
29871,
29906,
29901,
13,
18884,
396,
29871,
29896,
29900,
30396,
233,
167,
159,
30544,
30326,
30366,
13,
18884,
6210,
353,
29871,
29946,
29900,
13,
9651,
25342,
18988,
29918,
1990,
1275,
29871,
29941,
29901,
13,
18884,
396,
29871,
29906,
29900,
30396,
233,
167,
159,
30544,
30326,
30366,
13,
18884,
6210,
353,
29871,
29945,
29900,
13,
9651,
25342,
18988,
29918,
1990,
1275,
29871,
29946,
29901,
13,
18884,
396,
29871,
29941,
29900,
30396,
233,
167,
159,
30544,
30326,
30366,
13,
18884,
6210,
353,
29871,
29953,
29900,
13,
4706,
1683,
29901,
13,
9651,
396,
29871,
30834,
30988,
233,
167,
159,
30544,
31209,
30326,
13,
9651,
565,
6210,
338,
6213,
29901,
13,
18884,
6210,
353,
29871,
29946,
29900,
13,
13,
4706,
4386,
29918,
2521,
353,
29871,
29900,
13,
4706,
835,
13383,
13383,
4136,
29937,
13,
4706,
396,
29871,
30281,
30260,
30203,
233,
167,
159,
30544,
13,
4706,
835,
13383,
13383,
4136,
29937,
13,
4706,
301,
29881,
29889,
11023,
29918,
29890,
629,
353,
13850,
29918,
29890,
629,
13,
4706,
396,
29871,
30281,
30260,
30203,
30396,
233,
167,
159,
30544,
30427,
30332,
13,
4706,
1018,
29901,
13,
9651,
260,
2782,
29896,
29918,
12163,
29892,
1376,
29873,
29906,
29918,
12163,
29892,
2521,
29896,
29918,
12163,
29892,
2521,
29906,
29918,
12163,
29892,
2764,
345,
29896,
29918,
29878,
29892,
2764,
345,
29906,
29918,
29878,
29892,
320,
13,
18884,
27881,
29918,
3166,
29918,
5064,
353,
301,
29881,
29889,
25821,
29918,
29881,
2650,
428,
580,
13,
4706,
5174,
29901,
13,
9651,
396,
29871,
30281,
30260,
30203,
233,
167,
159,
30544,
31369,
233,
152,
154,
13,
9651,
338,
29918,
26180,
29918,
6672,
29918,
13556,
573,
353,
5852,
13,
9651,
2761,
2433,
29900,
29892,
29900,
5501,
13,
9651,
577,
384,
29889,
6717,
497,
29898,
703,
22412,
1672,
29931,
1699,
29974,
2761,
467,
12508,
877,
294,
18869,
8785,
13,
9651,
6773,
13,
13,
4706,
835,
13383,
13383,
4136,
29937,
13,
4706,
396,
29871,
31859,
30898,
235,
173,
194,
233,
152,
183,
30396,
30448,
30465,
13,
4706,
835,
13383,
13383,
4136,
29937,
13,
4706,
396,
361,
7442,
29889,
6897,
29898,
2521,
29906,
29918,
12163,
29897,
1405,
7442,
29889,
6897,
29898,
2521,
29896,
29918,
12163,
1125,
13,
4706,
396,
1678,
6210,
353,
29871,
29945,
29900,
13,
4706,
396,
2870,
29901,
13,
4706,
396,
1678,
6210,
353,
29871,
29953,
29900,
13,
13,
4706,
14550,
13,
308,
31651,
31803,
30353,
30773,
30298,
30466,
13,
4706,
260,
2782,
29918,
12163,
29901,
448,
30458,
31803,
30330,
29974,
30458,
31651,
13,
4706,
10696,
29918,
12163,
29901,
718,
30458,
31803,
30330,
29899,
30458,
31651,
13,
4706,
27881,
29918,
3166,
29918,
5064,
29901,
448,
30458,
31803,
30353,
30298,
30332,
30330,
29974,
30458,
31651,
30353,
30298,
30332,
13,
4706,
4386,
29918,
2521,
29901,
718,
30458,
31803,
30330,
29899,
30458,
31651,
13,
4706,
14550,
13,
4706,
835,
13383,
13383,
4136,
29937,
13,
4706,
396,
29871,
30758,
30203,
30335,
30258,
31432,
235,
173,
194,
233,
152,
183,
30396,
30448,
30465,
13,
4706,
835,
13383,
13383,
4136,
29937,
13,
4706,
4386,
29918,
2521,
353,
448,
29896,
29930,
1376,
29873,
29896,
29918,
12163,
13,
4706,
565,
27881,
29918,
3166,
29918,
5064,
6736,
29871,
29900,
29901,
13,
9651,
396,
29871,
31651,
30353,
30298,
30332,
13,
9651,
565,
7442,
29889,
6897,
29898,
2527,
414,
29918,
3166,
29918,
5064,
11877,
29896,
29900,
29900,
1405,
29871,
29906,
29900,
29901,
13,
18884,
396,
29871,
30364,
30466,
30723,
236,
158,
165,
30553,
30466,
31651,
30353,
30298,
30332,
30383,
31803,
30353,
30753,
31404,
30499,
31467,
30458,
30332,
13,
18884,
4386,
29918,
2521,
29922,
29950,
9468,
1307,
29918,
19453,
1307,
13,
9651,
25342,
7442,
29889,
6897,
29898,
2527,
414,
29918,
3166,
29918,
5064,
11877,
29896,
29900,
29900,
1405,
29871,
29896,
29900,
29901,
13,
18884,
565,
260,
2782,
29906,
29918,
12163,
1405,
29871,
29900,
584,
13,
462,
1678,
396,
29871,
236,
158,
165,
30553,
30466,
31651,
30298,
30332,
30330,
232,
168,
168,
30449,
31651,
30439,
30185,
30582,
30383,
31803,
30353,
31022,
30326,
31467,
30458,
30332,
13,
462,
1678,
4386,
29918,
2521,
29922,
29950,
9468,
1307,
29918,
19453,
1307,
29914,
29906,
13,
18884,
1683,
29901,
13,
462,
1678,
396,
29871,
236,
158,
165,
30553,
30466,
31651,
30298,
30332,
30330,
232,
168,
168,
30449,
31803,
30439,
30185,
30582,
30383,
31803,
30353,
30753,
31404,
30499,
31467,
30458,
30332,
13,
462,
1678,
4386,
29918,
2521,
29922,
29950,
9468,
1307,
29918,
19453,
1307,
13,
4706,
1683,
29901,
13,
9651,
396,
29871,
31803,
30353,
30298,
30332,
13,
9651,
565,
7442,
29889,
6897,
29898,
2527,
414,
29918,
3166,
29918,
5064,
11877,
29896,
29900,
29900,
1405,
29871,
29906,
29900,
29901,
13,
18884,
396,
29871,
30364,
30466,
30723,
236,
158,
165,
30553,
30466,
31803,
30353,
30298,
30332,
30383,
31651,
30353,
30753,
31404,
30499,
31467,
30458,
30332,
13,
18884,
4386,
29918,
2521,
10457,
29896,
29930,
29950,
9468,
1307,
29918,
19453,
1307,
13,
9651,
25342,
7442,
29889,
6897,
29898,
2527,
414,
29918,
3166,
29918,
5064,
11877,
29896,
29900,
29900,
1405,
29871,
29896,
29900,
29901,
13,
18884,
565,
260,
2782,
29906,
29918,
12163,
529,
29871,
29900,
584,
13,
462,
1678,
396,
29871,
236,
158,
165,
30553,
30466,
31803,
30298,
30332,
30330,
232,
168,
168,
30449,
31803,
30439,
30185,
30582,
30383,
31651,
30353,
31022,
30326,
31467,
30458,
30332,
13,
462,
1678,
4386,
29918,
2521,
10457,
29896,
29930,
29950,
9468,
1307,
29918,
19453,
1307,
29914,
29906,
13,
18884,
1683,
29901,
13,
462,
1678,
396,
29871,
236,
158,
165,
30553,
30466,
31803,
30298,
30332,
30330,
232,
168,
168,
30449,
31651,
30439,
30185,
30582,
30330,
31651,
30353,
30753,
31404,
30499,
31467,
30458,
30332,
13,
462,
1678,
4386,
29918,
2521,
10457,
29896,
29930,
29950,
9468,
1307,
29918,
19453,
1307,
13,
13,
4706,
396,
29871,
31124,
30732,
30682,
30815,
30371,
31432,
30898,
30728,
30353,
235,
173,
194,
233,
152,
183,
30427,
30332,
13,
4706,
565,
4386,
29918,
2521,
1405,
379,
9468,
1307,
29918,
19453,
1307,
29901,
13,
9651,
4386,
29918,
2521,
353,
379,
9468,
1307,
29918,
19453,
1307,
13,
4706,
565,
4386,
29918,
2521,
529,
448,
29896,
29930,
29950,
9468,
1307,
29918,
19453,
1307,
29901,
13,
9651,
4386,
29918,
2521,
353,
448,
29896,
29930,
29950,
9468,
1307,
29918,
19453,
1307,
13,
13,
4706,
396,
29871,
31587,
231,
187,
164,
31072,
31697,
31545,
30689,
13,
4706,
2761,
29922,
710,
29898,
19322,
7240,
3788,
29974,
710,
29898,
8411,
29918,
2521,
7240,
3788,
13,
4706,
1596,
703,
19322,
3790,
1118,
8411,
29918,
2521,
3790,
1118,
22412,
1672,
29931,
29892,
8875,
1642,
4830,
29898,
19322,
29892,
8411,
29918,
2521,
29892,
6451,
876,
13,
4706,
577,
384,
29889,
6717,
497,
29898,
703,
22412,
1672,
29931,
1699,
29974,
2761,
467,
12508,
877,
294,
18869,
8785,
13,
4706,
3515,
29918,
355,
29918,
2230,
353,
931,
29889,
2230,
580,
13,
4706,
1596,
703,
29943,
7024,
3790,
29913,
1642,
4830,
29898,
14486,
29898,
29896,
14571,
2557,
29918,
355,
29918,
2230,
29899,
2557,
29918,
2962,
29918,
2230,
511,
29906,
4961,
13,
13,
1753,
1667,
7295,
13,
1678,
5534,
338,
29918,
24209,
911,
29918,
21094,
13,
1678,
5534,
577,
384,
13,
1678,
5534,
714,
13,
1678,
5534,
301,
29881,
13,
1678,
5534,
2413,
13,
13,
1678,
396,
29871,
30768,
30689,
31770,
30495,
13,
1678,
379,
3718,
353,
525,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29900,
29889,
29955,
29955,
29915,
396,
5656,
5641,
16428,
13,
1678,
349,
8476,
353,
29871,
29953,
29953,
29953,
29953,
396,
5656,
19374,
3371,
13,
1678,
396,
20832,
353,
525,
29874,
29941,
29906,
29896,
29945,
29947,
29883,
29941,
1388,
29929,
29888,
29915,
396,
15540,
20868,
13,
1678,
396,
15082,
353,
29871,
29947,
29900,
29929,
29896,
396,
15540,
19374,
3371,
13,
1678,
396,
20832,
353,
525,
29906,
29906,
29900,
29946,
29888,
29929,
29890,
29900,
29872,
29947,
29955,
29896,
29915,
396,
9609,
20868,
13,
1678,
396,
15082,
353,
29871,
29947,
29900,
29929,
29896,
396,
9609,
19374,
3371,
13,
13,
1678,
835,
13383,
13383,
4136,
29937,
13,
1678,
396,
29871,
30768,
30689,
233,
189,
153,
232,
133,
156,
13,
1678,
835,
13383,
13383,
4136,
29937,
13,
1678,
6631,
29918,
11303,
1237,
29918,
578,
9737,
353,
5159,
13,
1678,
1923,
29918,
11514,
353,
9909,
29889,
11514,
29898,
11514,
29889,
5098,
29918,
1177,
2544,
29892,
9909,
29889,
6156,
7077,
29918,
1254,
1525,
5194,
29897,
13,
1678,
1923,
29918,
11514,
29889,
842,
21852,
3670,
29898,
11514,
29889,
29903,
5607,
29918,
6156,
7077,
2544,
29892,
9909,
29889,
6156,
29918,
1525,
17171,
3035,
8353,
29892,
29871,
29896,
29897,
13,
1678,
1923,
29918,
11514,
29889,
5355,
3552,
20832,
29892,
349,
8476,
876,
13,
1678,
1923,
29918,
11514,
29889,
20631,
29898,
29896,
29900,
29897,
13,
1678,
6631,
29918,
11303,
1237,
29918,
578,
9737,
29889,
4397,
29898,
2974,
29918,
11514,
29897,
13,
1678,
396,
19345,
30199,
232,
146,
154,
30689,
30458,
31641,
30698,
30412,
31250,
30465,
30412,
30267,
7850,
30396,
232,
146,
154,
30689,
30326,
30366,
30513,
30330,
12508,
877,
294,
18869,
1495,
30396,
30768,
30566,
31761,
30353,
232,
146,
154,
30689,
30597,
30185,
30369,
30396,
31201,
233,
161,
147,
30427,
30332,
13,
1678,
338,
29918,
26180,
29918,
6672,
29918,
13556,
573,
353,
5852,
13,
13,
1678,
835,
13383,
13383,
4136,
29937,
13,
1678,
396,
29871,
30834,
30988,
235,
173,
144,
235,
176,
155,
233,
189,
153,
232,
133,
156,
13,
1678,
835,
13383,
13383,
4136,
29937,
13,
1678,
2413,
353,
4669,
29928,
2650,
428,
580,
13,
13,
1678,
1596,
703,
6004,
1369,
1159,
13,
1678,
1018,
29901,
13,
13,
4706,
1550,
5852,
29901,
13,
9651,
835,
13383,
13383,
4136,
29937,
13,
9651,
396,
29871,
232,
146,
154,
30689,
232,
193,
136,
30644,
13,
9651,
835,
13383,
13383,
4136,
29937,
13,
9651,
1303,
29918,
578,
9737,
29892,
2436,
29918,
578,
9737,
29892,
1059,
29918,
578,
9737,
353,
1831,
29889,
2622,
29898,
18045,
29918,
11303,
1237,
29918,
578,
9737,
29892,
19997,
518,
2314,
13,
13,
9651,
363,
577,
384,
297,
1303,
29918,
578,
9737,
29901,
13,
18884,
565,
577,
384,
1275,
1923,
29918,
11514,
29901,
13,
462,
1678,
577,
384,
11512,
29892,
3132,
29918,
7328,
353,
1923,
29918,
11514,
29889,
16044,
580,
13,
462,
1678,
6631,
29918,
11303,
1237,
29918,
578,
9737,
29889,
4397,
29898,
21852,
11512,
29897,
13,
18884,
1683,
29901,
13,
462,
1678,
396,
12477,
30458,
6004,
30353,
7850,
30396,
31545,
30332,
30974,
30449,
29946,
29900,
29929,
29953,
19831,
30651,
30557,
30353,
30427,
30332,
30589,
30364,
13,
462,
1678,
18203,
353,
577,
384,
29889,
3757,
29894,
29898,
29946,
29900,
29929,
29953,
29897,
13,
462,
1678,
1596,
29898,
1853,
29898,
4058,
300,
876,
13,
462,
1678,
396,
29871,
13,
462,
1678,
565,
338,
29918,
26180,
29918,
6672,
29918,
13556,
573,
29901,
13,
462,
4706,
1596,
877,
6672,
1495,
13,
462,
4706,
18203,
353,
18203,
29889,
13808,
877,
294,
18869,
1495,
13,
462,
4706,
13872,
353,
851,
29898,
4058,
300,
29897,
13,
462,
4706,
565,
18203,
29901,
13,
462,
9651,
1596,
877,
4058,
300,
5852,
1495,
13,
462,
9651,
565,
18203,
1275,
525,
25826,
2396,
13,
462,
18884,
338,
29918,
24209,
911,
29918,
21094,
353,
5852,
13,
462,
18884,
260,
353,
3244,
292,
29889,
4899,
29898,
5182,
29922,
1867,
29918,
24209,
911,
29897,
13,
462,
18884,
260,
29889,
2962,
580,
13,
462,
9651,
25342,
18203,
29889,
27382,
2541,
877,
22716,
29923,
29374,
13,
462,
18884,
1596,
877,
7085,
6770,
29923,
1495,
13,
462,
18884,
338,
29918,
26180,
29918,
6672,
29918,
13556,
573,
353,
5852,
13,
462,
18884,
338,
29918,
24209,
911,
29918,
21094,
353,
7700,
13,
462,
18884,
577,
384,
29889,
845,
329,
3204,
29898,
11514,
29889,
7068,
2692,
29918,
29934,
29928,
9980,
29897,
13,
462,
18884,
577,
384,
29889,
5358,
580,
13,
462,
18884,
6631,
29918,
11303,
1237,
29918,
578,
9737,
29889,
5992,
29898,
21852,
29897,
13,
462,
18884,
565,
714,
338,
451,
6213,
29901,
13,
462,
462,
1678,
714,
29889,
14096,
580,
13,
462,
4706,
1683,
29901,
13,
462,
9651,
1596,
877,
4645,
766,
6915,
1495,
13,
462,
9651,
338,
29918,
26180,
29918,
6672,
29918,
13556,
573,
353,
5852,
13,
462,
9651,
338,
29918,
24209,
911,
29918,
21094,
353,
7700,
13,
462,
9651,
577,
384,
29889,
845,
329,
3204,
29898,
11514,
29889,
7068,
2692,
29918,
29934,
29928,
9980,
29897,
13,
462,
9651,
577,
384,
29889,
5358,
580,
13,
462,
9651,
6631,
29918,
11303,
1237,
29918,
578,
9737,
29889,
5992,
29898,
21852,
29897,
13,
462,
9651,
565,
714,
338,
451,
6213,
29901,
13,
462,
18884,
714,
29889,
14096,
580,
13,
462,
1678,
565,
451,
338,
29918,
26180,
29918,
6672,
29918,
13556,
573,
29901,
13,
462,
4706,
396,
29871,
30589,
30589,
30353,
30449,
30805,
30371,
30298,
13,
462,
4706,
1596,
877,
2587,
1495,
13,
462,
4706,
565,
18203,
29901,
13,
462,
9651,
1596,
877,
4058,
300,
5852,
1495,
13,
462,
9651,
338,
29918,
26180,
29918,
6672,
29918,
13556,
573,
353,
5852,
13,
462,
4706,
1683,
29901,
13,
462,
9651,
1596,
877,
1272,
7743,
1495,
13,
462,
9651,
338,
29918,
26180,
29918,
6672,
29918,
13556,
573,
353,
5852,
13,
462,
9651,
338,
29918,
24209,
911,
29918,
21094,
353,
7700,
13,
462,
9651,
577,
384,
29889,
845,
329,
3204,
29898,
11514,
29889,
7068,
2692,
29918,
29934,
29928,
9980,
29897,
13,
462,
9651,
577,
384,
29889,
5358,
580,
13,
462,
9651,
6631,
29918,
11303,
1237,
29918,
578,
9737,
29889,
5992,
29898,
21852,
29897,
13,
462,
9651,
565,
714,
338,
451,
6213,
29901,
13,
462,
18884,
714,
29889,
14096,
580,
13,
13,
1678,
5174,
29901,
13,
4706,
1053,
9637,
1627,
13,
4706,
9637,
1627,
29889,
2158,
29918,
735,
29883,
580,
13,
1678,
7146,
29901,
13,
4706,
338,
29918,
26180,
29918,
6672,
29918,
13556,
573,
353,
5852,
13,
4706,
338,
29918,
24209,
911,
29918,
21094,
353,
7700,
13,
4706,
577,
384,
29889,
845,
329,
3204,
29898,
11514,
29889,
7068,
2692,
29918,
29934,
29928,
9980,
29897,
13,
4706,
577,
384,
29889,
5358,
580,
13,
4706,
6631,
29918,
11303,
1237,
29918,
578,
9737,
29889,
5992,
29898,
21852,
29897,
13,
4706,
1923,
29918,
11514,
29889,
5358,
580,
13,
4706,
565,
714,
338,
451,
6213,
29901,
13,
9651,
714,
29889,
14096,
580,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
1667,
580,
13,
1678,
1596,
703,
355,
1923,
1159,
13,
2
] |
mom/itertools.py | ands904/ands904-tinypyclone | 16 | 32257 | <filename>mom/itertools.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""":synopsis: Implements :mod:`itertools` for older versions of Python.
:module: mom.itertools
:copyright: 2010-2011 by <NAME>
:license: BSD, PSF
Borrowed from brownie.itools.
"""
from __future__ import absolute_import
import itertools
from mom import builtins
try:
# Python 2.x
from itertools import izip
except ImportError:
# Python 3.x
izip = zip
__author__ = "<EMAIL> (<NAME>)"
__all__ = [
"chain",
"combinations_with_replacement",
"compress",
"count",
"flatten",
"grouped",
"izip_longest",
"permutations",
"product",
"starmap",
"unique",
]
if getattr(itertools.chain, "from_iterable", None):
chain = itertools.chain
else:
class chain(object):
"""An iterator which yields elements from the given `iterables` until each
iterable is exhausted.
.. versionadded:: 0.2
"""
@classmethod
def from_iterable(cls, iterable):
"""Alternative constructor which takes an `iterable` yielding iterators,
this can be used to chain an infinite number of iterators.
"""
rv = object.__new__(cls)
rv._init(iterable)
return rv
def __init__(self, *iterables):
self._init(iterables)
def _init(self, iterables):
self.iterables = iter(iterables)
self.current_iterable = iter([])
def __iter__(self):
return self
def next(self):
try:
return self.current_iterable.next()
except StopIteration:
self.current_iterable = iter(self.iterables.next())
return self.current_iterable.next()
def izip_longest(*iterables, **kwargs):
"""Make an iterator that aggregates elements from each of the iterables. If
the iterables are of uneven length, missing values are filled-in with
`fillvalue`. Iteration continues until the longest iterable is exhausted.
If one of the iterables is potentially infinite, then the
:func:`izip_longest` function should be wrapped with something that limits
the number of calls (for example :func:`itertools.islice` or
:func:`itertools.takewhile`.) If not specified, `fillvalue` defaults to
``None``.
.. note:: Software and documentation for this function are taken from
CPython, :ref:`license details <psf-license>`.
"""
fillvalue = kwargs.get("fillvalue")
def sentinel(counter=([fillvalue] * (len(iterables) - 1)).pop):
yield counter()
fillers = itertools.repeat(fillvalue)
iters = [chain(it, sentinel(), fillers) for it in iterables]
try:
for tup in izip(*iters):
yield tup
except IndexError:
pass
def permutations(iterable, r=None):
"""Return successive `r` length permutations of elements in the `iterable`.
If `r` is not specified or is ``None``, then `r` defaults to the length of
the `iterable` and all possible full-length permutations are generated.
Permutations are emitted in lexicographic sort order. So, if the input
`iterable` is sorted, the permutation tuples will be produced in sorted
order.
Elements are treated as unique based on their position, not on their
value. So if the input elements are unique, there will be no repeating
value in each permutation.
The number of items returned is ``n! / (n - r)!`` when ``0 <= r <= n`` or
zero when `r > n`.
.. note:: Software and documentation for this function are taken from
CPython, :ref:`license details <psf-license>`.
"""
pool = tuple(iterable)
pool_length = len(pool)
r = pool_length if r is None else r
for indices in product(builtins.range(pool_length), repeat=r):
if len(set(indices)) == r:
yield tuple(pool[i] for i in indices)
def product(*iterables, **kwargs):
"""Cartesian product of input iterables.
Equivalent to nested for-loops in a generator expression. For example,
``product(A, B)`` returns the same as ``((x, y) for x in A for y in B)``.
The nested loops cycle like an odometer with the rightmost element
advancing on every iteration. The pattern creates a lexicographic ordering
so that if the input's iterables are sorted, the product tuples are emitted
in sorted order.
To compute the product of an iterable with itself, specify the number of
repetitions with the optional `repeat` keyword argument. For example,
``product(A, repeat=4)`` means the same as ``product(A, A, A, A)``.
.. note:: Software and documentation for this function are taken from
CPython, :ref:`license details <psf-license>`.
"""
pools = map(tuple, iterables) * kwargs.get("repeat", 1)
result = [[]]
for pool in pools:
result = [x + [y] for x in result for y in pool]
for prod in result:
yield tuple(prod)
try:
from itertools import starmap
starmap = starmap
except ImportError:
def starmap(function, iterable):
"""Make an iterator that computes the function using arguments obtained from
the iterable. Used instead of :func:`itertools.imap` when an argument
parameters are already grouped in tuples from a single iterable (the data
has been "pre-zipped"). The difference between :func:`itertools.imap` and
:func:`starmap` parallels the distinction between ``function(a, b)`` and
``function(*c)``.
.. note:: Software and documentation for this function are taken from
CPython, :ref:`license details <psf-license>`.
"""
for args in iterable:
yield function(*args)
def combinations_with_replacement(iterable, r):
"""Return `r` length sub-sequences of elements from the `iterable` allowing
individual elements to be replaced more than once.
Combinations are emitted in lexicographic sort order. So, if the input
`iterable` is sorted, the combinations tuples will be produced in sorted
order.
Elements are treated as unique based on their position, not on their value.
So if the input elements are unique, the generated combinations will also
be unique.
The number of items returned is ``(n + r - 1)! / r! / (n - 1)!`` when
``n > 0``.
.. note:: Software and documentation for this function are taken from
CPython, :ref:`license details <psf-license>`.
"""
pool = tuple(iterable)
n = len(pool)
for indices in product(builtins.range(n), repeat=r):
if sorted(indices) == list(indices):
yield tuple(pool[i] for i in indices)
def compress(data, selectors):
"""Make an iterator that filters elements from the `data` returning only those
that have a corresponding element in `selectors` that evaluates to ``True``.
Stops when either the `data` or `selectors` iterables have been exhausted.
.. note:: Software and documentation for this function are taken from
CPython, :ref:`license details <psf-license>`.
"""
return (d for d, s in izip(data, selectors) if s)
def count(start=0, step=1):
"""Make an iterator that returns evenly spaced values starting with `start`.
Often used as an argument to :func:`imap` to generate consecutive data points.
Also, used with :func:`izip` to add sequence numbers.
When counting with floating point numbers, better accuracy can sometimes be
achieved by substituting multiplicative code such as: ``(start + step * i for
i in count())``.
.. note:: Software and documentation for this function are taken from
CPython, :ref:`license details <psf-license>`.
"""
n = start
while True:
yield n
n += step
def grouped(n, iterable, fillvalue=None):
"""Groups the items in the given `iterable` to tuples of size `n`. In order
for groups to always be of the size `n` the `fillvalue` is used for padding.
"""
return izip_longest(fillvalue=fillvalue, *([iter(iterable)] * n))
def unique(iterable, seen=None):
"""Yields items from the given `iterable` of (hashable) items, once seen an
item is not yielded again.
:param seen:
An iterable specifying already "seen" items which will be excluded
from the result.
.. versionadded:: 0.5
.. versionchanged:: 0.5
Items don't have to be hashable any more.
"""
seen = set() if seen is None else set(seen)
seen_unhashable = []
for item in iterable:
try:
if item not in seen:
seen.add(item)
yield item
except TypeError:
if item not in seen_unhashable:
seen_unhashable.append(item)
yield item
def flatten(iterable, ignore=None):
"""Flattens a nested `iterable`.
:param ignore:
Types of iterable objects which should be yielded as-is.
.. versionadded:: 0.5
"""
stack = [iter(iterable)]
while stack:
try:
item = stack[-1].next()
if ignore and isinstance(item, ignore):
yield item
elif builtins.is_bytes_or_unicode(item) and len(item) == 1:
yield item
else:
try:
stack.append(iter(item))
except TypeError:
yield item
except StopIteration:
stack.pop()
| [
1,
529,
9507,
29958,
29885,
290,
29914,
1524,
8504,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
15945,
1115,
19274,
15368,
29901,
1954,
9711,
584,
1545,
18078,
1524,
8504,
29952,
363,
9642,
6910,
310,
5132,
29889,
13,
29901,
5453,
29901,
16823,
29889,
1524,
8504,
13,
29901,
8552,
1266,
29901,
29871,
29906,
29900,
29896,
29900,
29899,
29906,
29900,
29896,
29896,
491,
529,
5813,
29958,
13,
29901,
506,
1947,
29901,
350,
7230,
29892,
11323,
29943,
13,
13,
29933,
22396,
287,
515,
3347,
2786,
29889,
277,
8789,
29889,
13,
15945,
29908,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
13,
13,
5215,
4256,
8504,
13,
3166,
16823,
1053,
4240,
1144,
13,
13,
2202,
29901,
13,
29871,
396,
5132,
29871,
29906,
29889,
29916,
13,
29871,
515,
4256,
8504,
1053,
5951,
666,
13,
19499,
16032,
2392,
29901,
13,
29871,
396,
5132,
29871,
29941,
29889,
29916,
13,
29871,
5951,
666,
353,
14319,
13,
13,
13,
1649,
8921,
1649,
353,
9872,
26862,
6227,
29958,
313,
29966,
5813,
29958,
5513,
13,
13,
13,
1649,
497,
1649,
353,
518,
13,
1678,
376,
14153,
613,
13,
1678,
376,
510,
2109,
800,
29918,
2541,
29918,
3445,
9552,
613,
13,
1678,
376,
510,
2139,
613,
13,
1678,
376,
2798,
613,
13,
1678,
376,
1579,
8606,
613,
13,
1678,
376,
2972,
287,
613,
13,
1678,
376,
466,
666,
29918,
5426,
342,
613,
13,
1678,
376,
546,
6149,
800,
613,
13,
1678,
376,
4704,
613,
13,
1678,
376,
8508,
1958,
613,
13,
1678,
376,
13092,
613,
13,
1678,
4514,
13,
13,
13,
361,
679,
5552,
29898,
1524,
8504,
29889,
14153,
29892,
376,
3166,
29918,
1524,
519,
613,
6213,
1125,
13,
29871,
9704,
353,
4256,
8504,
29889,
14153,
13,
2870,
29901,
13,
13,
29871,
770,
9704,
29898,
3318,
1125,
13,
1678,
9995,
2744,
20380,
607,
17498,
3161,
515,
278,
2183,
421,
1524,
1849,
29952,
2745,
1269,
13,
1678,
4256,
519,
338,
18782,
16656,
29889,
13,
13,
1678,
6317,
1873,
23959,
1057,
29871,
29900,
29889,
29906,
13,
1678,
9995,
13,
13,
1678,
732,
1990,
5696,
13,
1678,
822,
515,
29918,
1524,
519,
29898,
25932,
29892,
4256,
519,
1125,
13,
418,
9995,
2499,
725,
1230,
5823,
607,
4893,
385,
421,
1524,
519,
29952,
7709,
292,
4256,
4097,
29892,
13,
418,
445,
508,
367,
1304,
304,
9704,
385,
10362,
1353,
310,
4256,
4097,
29889,
13,
418,
9995,
13,
418,
364,
29894,
353,
1203,
17255,
1482,
12035,
25932,
29897,
13,
418,
364,
29894,
3032,
2344,
29898,
1524,
519,
29897,
13,
418,
736,
364,
29894,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
334,
1524,
1849,
1125,
13,
418,
1583,
3032,
2344,
29898,
1524,
1849,
29897,
13,
13,
1678,
822,
903,
2344,
29898,
1311,
29892,
4256,
1849,
1125,
13,
418,
1583,
29889,
1524,
1849,
353,
4256,
29898,
1524,
1849,
29897,
13,
418,
1583,
29889,
3784,
29918,
1524,
519,
353,
4256,
4197,
2314,
13,
13,
1678,
822,
4770,
1524,
12035,
1311,
1125,
13,
418,
736,
1583,
13,
13,
1678,
822,
2446,
29898,
1311,
1125,
13,
418,
1018,
29901,
13,
4706,
736,
1583,
29889,
3784,
29918,
1524,
519,
29889,
4622,
580,
13,
418,
5174,
22303,
13463,
362,
29901,
13,
4706,
1583,
29889,
3784,
29918,
1524,
519,
353,
4256,
29898,
1311,
29889,
1524,
1849,
29889,
4622,
3101,
13,
4706,
736,
1583,
29889,
3784,
29918,
1524,
519,
29889,
4622,
580,
13,
13,
13,
1753,
5951,
666,
29918,
5426,
342,
10456,
1524,
1849,
29892,
3579,
19290,
1125,
13,
29871,
9995,
9984,
385,
20380,
393,
11404,
1078,
3161,
515,
1269,
310,
278,
4256,
1849,
29889,
960,
13,
29871,
278,
4256,
1849,
526,
310,
1597,
854,
3309,
29892,
4567,
1819,
526,
10423,
29899,
262,
411,
13,
29871,
421,
5589,
1767,
1412,
20504,
362,
18172,
2745,
278,
27217,
4256,
519,
338,
18782,
16656,
29889,
13,
13,
29871,
960,
697,
310,
278,
4256,
1849,
338,
19998,
10362,
29892,
769,
278,
13,
29871,
584,
9891,
18078,
466,
666,
29918,
5426,
342,
29952,
740,
881,
367,
21021,
411,
1554,
393,
13071,
13,
29871,
278,
1353,
310,
5717,
313,
1454,
1342,
584,
9891,
18078,
1524,
8504,
29889,
275,
5897,
29952,
470,
13,
29871,
584,
9891,
18078,
1524,
8504,
29889,
19730,
8000,
1412,
29897,
960,
451,
6790,
29892,
421,
5589,
1767,
29952,
21274,
304,
13,
29871,
4954,
8516,
29952,
1412,
13,
13,
29871,
6317,
4443,
1057,
18540,
322,
5106,
363,
445,
740,
526,
4586,
515,
13,
9651,
315,
11980,
29892,
584,
999,
18078,
506,
1947,
4902,
529,
567,
29888,
29899,
506,
1947,
29958,
1412,
13,
29871,
9995,
13,
29871,
5445,
1767,
353,
9049,
5085,
29889,
657,
703,
5589,
1767,
1159,
13,
13,
29871,
822,
2665,
262,
295,
29898,
11808,
29922,
4197,
5589,
1767,
29962,
334,
313,
2435,
29898,
1524,
1849,
29897,
448,
29871,
29896,
8106,
7323,
1125,
13,
1678,
7709,
6795,
580,
13,
13,
29871,
5445,
414,
353,
4256,
8504,
29889,
14358,
29898,
5589,
1767,
29897,
13,
29871,
372,
414,
353,
518,
14153,
29898,
277,
29892,
2665,
262,
295,
3285,
5445,
414,
29897,
363,
372,
297,
4256,
1849,
29962,
13,
29871,
1018,
29901,
13,
1678,
363,
260,
786,
297,
5951,
666,
10456,
277,
414,
1125,
13,
418,
7709,
260,
786,
13,
29871,
5174,
11374,
2392,
29901,
13,
1678,
1209,
13,
13,
13,
1753,
20005,
800,
29898,
1524,
519,
29892,
364,
29922,
8516,
1125,
13,
29871,
9995,
11609,
2551,
573,
421,
29878,
29952,
3309,
20005,
800,
310,
3161,
297,
278,
421,
1524,
519,
1412,
13,
13,
29871,
960,
421,
29878,
29952,
338,
451,
6790,
470,
338,
4954,
8516,
29952,
1673,
769,
421,
29878,
29952,
21274,
304,
278,
3309,
310,
13,
29871,
278,
421,
1524,
519,
29952,
322,
599,
1950,
2989,
29899,
2848,
20005,
800,
526,
5759,
29889,
13,
13,
29871,
20894,
329,
800,
526,
953,
4430,
297,
19566,
293,
12122,
2656,
1797,
29889,
1105,
29892,
565,
278,
1881,
13,
29871,
421,
1524,
519,
29952,
338,
12705,
29892,
278,
20005,
362,
5291,
2701,
674,
367,
7371,
297,
12705,
13,
29871,
1797,
29889,
13,
13,
29871,
10619,
29879,
526,
14914,
408,
5412,
2729,
373,
1009,
2602,
29892,
451,
373,
1009,
13,
29871,
995,
29889,
1105,
565,
278,
1881,
3161,
526,
5412,
29892,
727,
674,
367,
694,
28769,
13,
29871,
995,
297,
1269,
20005,
362,
29889,
13,
13,
29871,
450,
1353,
310,
4452,
4133,
338,
4954,
29876,
29991,
847,
313,
29876,
448,
364,
20198,
16159,
746,
4954,
29900,
5277,
364,
5277,
302,
16159,
470,
13,
29871,
5225,
746,
421,
29878,
1405,
302,
1412,
13,
13,
29871,
6317,
4443,
1057,
18540,
322,
5106,
363,
445,
740,
526,
4586,
515,
13,
9651,
315,
11980,
29892,
584,
999,
18078,
506,
1947,
4902,
529,
567,
29888,
29899,
506,
1947,
29958,
1412,
13,
29871,
9995,
13,
29871,
11565,
353,
18761,
29898,
1524,
519,
29897,
13,
29871,
11565,
29918,
2848,
353,
7431,
29898,
10109,
29897,
13,
29871,
364,
353,
11565,
29918,
2848,
565,
364,
338,
6213,
1683,
364,
13,
29871,
363,
16285,
297,
3234,
29898,
16145,
1144,
29889,
3881,
29898,
10109,
29918,
2848,
511,
12312,
29922,
29878,
1125,
13,
1678,
565,
7431,
29898,
842,
29898,
513,
1575,
876,
1275,
364,
29901,
13,
418,
7709,
18761,
29898,
10109,
29961,
29875,
29962,
363,
474,
297,
16285,
29897,
13,
13,
13,
1753,
3234,
10456,
1524,
1849,
29892,
3579,
19290,
1125,
13,
29871,
9995,
25233,
18970,
3234,
310,
1881,
4256,
1849,
29889,
13,
13,
29871,
11243,
27445,
304,
9322,
363,
29899,
417,
3554,
297,
263,
15299,
4603,
29889,
1152,
1342,
29892,
13,
29871,
4954,
4704,
29898,
29909,
29892,
350,
3569,
29952,
3639,
278,
1021,
408,
4954,
3552,
29916,
29892,
343,
29897,
363,
921,
297,
319,
363,
343,
297,
350,
3569,
1412,
13,
13,
29871,
450,
9322,
12104,
11412,
763,
385,
2413,
8328,
411,
278,
1492,
3242,
1543,
13,
29871,
3061,
19985,
373,
1432,
12541,
29889,
450,
4766,
10017,
263,
19566,
293,
12122,
20520,
13,
29871,
577,
393,
565,
278,
1881,
29915,
29879,
4256,
1849,
526,
12705,
29892,
278,
3234,
5291,
2701,
526,
953,
4430,
13,
29871,
297,
12705,
1797,
29889,
13,
13,
29871,
1763,
10272,
278,
3234,
310,
385,
4256,
519,
411,
3528,
29892,
6084,
278,
1353,
310,
13,
29871,
21159,
2187,
411,
278,
13136,
421,
14358,
29952,
13553,
2980,
29889,
1152,
1342,
29892,
13,
29871,
4954,
4704,
29898,
29909,
29892,
12312,
29922,
29946,
3569,
29952,
2794,
278,
1021,
408,
4954,
4704,
29898,
29909,
29892,
319,
29892,
319,
29892,
319,
3569,
1412,
13,
13,
29871,
6317,
4443,
1057,
18540,
322,
5106,
363,
445,
740,
526,
4586,
515,
13,
9651,
315,
11980,
29892,
584,
999,
18078,
506,
1947,
4902,
529,
567,
29888,
29899,
506,
1947,
29958,
1412,
13,
29871,
9995,
13,
29871,
772,
3775,
353,
2910,
29898,
23583,
29892,
4256,
1849,
29897,
334,
9049,
5085,
29889,
657,
703,
14358,
613,
29871,
29896,
29897,
13,
29871,
1121,
353,
518,
2636,
29962,
13,
29871,
363,
11565,
297,
772,
3775,
29901,
13,
1678,
1121,
353,
518,
29916,
718,
518,
29891,
29962,
363,
921,
297,
1121,
363,
343,
297,
11565,
29962,
13,
29871,
363,
11859,
297,
1121,
29901,
13,
1678,
7709,
18761,
29898,
10633,
29897,
13,
13,
2202,
29901,
13,
29871,
515,
4256,
8504,
1053,
5810,
1958,
13,
13,
29871,
5810,
1958,
353,
5810,
1958,
13,
19499,
16032,
2392,
29901,
13,
13,
29871,
822,
5810,
1958,
29898,
2220,
29892,
4256,
519,
1125,
13,
1678,
9995,
9984,
385,
20380,
393,
2912,
267,
278,
740,
773,
6273,
7625,
515,
13,
1678,
278,
4256,
519,
29889,
501,
8485,
2012,
310,
584,
9891,
18078,
1524,
8504,
29889,
326,
481,
29952,
746,
385,
2980,
13,
1678,
4128,
526,
2307,
27831,
297,
5291,
2701,
515,
263,
2323,
4256,
519,
313,
1552,
848,
13,
1678,
756,
1063,
376,
1457,
29899,
2526,
2986,
2564,
450,
4328,
1546,
584,
9891,
18078,
1524,
8504,
29889,
326,
481,
29952,
322,
13,
1678,
584,
9891,
18078,
8508,
1958,
29952,
610,
3498,
3137,
278,
21578,
1546,
4954,
2220,
29898,
29874,
29892,
289,
3569,
29952,
322,
13,
1678,
4954,
2220,
10456,
29883,
3569,
1412,
13,
13,
1678,
6317,
4443,
1057,
18540,
322,
5106,
363,
445,
740,
526,
4586,
515,
13,
795,
315,
11980,
29892,
584,
999,
18078,
506,
1947,
4902,
529,
567,
29888,
29899,
506,
1947,
29958,
1412,
13,
1678,
9995,
13,
1678,
363,
6389,
297,
4256,
519,
29901,
13,
418,
7709,
740,
10456,
5085,
29897,
13,
13,
13,
1753,
18240,
29918,
2541,
29918,
3445,
9552,
29898,
1524,
519,
29892,
364,
1125,
13,
29871,
9995,
11609,
421,
29878,
29952,
3309,
1014,
29899,
6831,
2063,
310,
3161,
515,
278,
421,
1524,
519,
29952,
14372,
13,
29871,
5375,
3161,
304,
367,
8611,
901,
1135,
2748,
29889,
13,
13,
29871,
422,
2109,
800,
526,
953,
4430,
297,
19566,
293,
12122,
2656,
1797,
29889,
1105,
29892,
565,
278,
1881,
13,
29871,
421,
1524,
519,
29952,
338,
12705,
29892,
278,
18240,
5291,
2701,
674,
367,
7371,
297,
12705,
13,
29871,
1797,
29889,
13,
13,
29871,
10619,
29879,
526,
14914,
408,
5412,
2729,
373,
1009,
2602,
29892,
451,
373,
1009,
995,
29889,
13,
29871,
1105,
565,
278,
1881,
3161,
526,
5412,
29892,
278,
5759,
18240,
674,
884,
13,
29871,
367,
5412,
29889,
13,
13,
29871,
450,
1353,
310,
4452,
4133,
338,
4954,
29898,
29876,
718,
364,
448,
29871,
29896,
20198,
847,
364,
29991,
847,
313,
29876,
448,
29871,
29896,
20198,
16159,
746,
13,
29871,
4954,
29876,
1405,
29871,
29900,
29952,
1412,
13,
13,
29871,
6317,
4443,
1057,
18540,
322,
5106,
363,
445,
740,
526,
4586,
515,
13,
9651,
315,
11980,
29892,
584,
999,
18078,
506,
1947,
4902,
529,
567,
29888,
29899,
506,
1947,
29958,
1412,
13,
29871,
9995,
13,
29871,
11565,
353,
18761,
29898,
1524,
519,
29897,
13,
29871,
302,
353,
7431,
29898,
10109,
29897,
13,
29871,
363,
16285,
297,
3234,
29898,
16145,
1144,
29889,
3881,
29898,
29876,
511,
12312,
29922,
29878,
1125,
13,
1678,
565,
12705,
29898,
513,
1575,
29897,
1275,
1051,
29898,
513,
1575,
1125,
13,
418,
7709,
18761,
29898,
10109,
29961,
29875,
29962,
363,
474,
297,
16285,
29897,
13,
13,
13,
1753,
27122,
29898,
1272,
29892,
1831,
943,
1125,
13,
29871,
9995,
9984,
385,
20380,
393,
18094,
3161,
515,
278,
421,
1272,
29952,
7863,
871,
1906,
13,
29871,
393,
505,
263,
6590,
1543,
297,
421,
2622,
943,
29952,
393,
6161,
1078,
304,
4954,
5574,
29952,
1412,
13,
29871,
624,
3554,
746,
2845,
278,
421,
1272,
29952,
470,
421,
2622,
943,
29952,
4256,
1849,
505,
1063,
18782,
16656,
29889,
13,
13,
29871,
6317,
4443,
1057,
18540,
322,
5106,
363,
445,
740,
526,
4586,
515,
13,
9651,
315,
11980,
29892,
584,
999,
18078,
506,
1947,
4902,
529,
567,
29888,
29899,
506,
1947,
29958,
1412,
13,
29871,
9995,
13,
29871,
736,
313,
29881,
363,
270,
29892,
269,
297,
5951,
666,
29898,
1272,
29892,
1831,
943,
29897,
565,
269,
29897,
13,
13,
13,
1753,
2302,
29898,
2962,
29922,
29900,
29892,
4331,
29922,
29896,
1125,
13,
29871,
9995,
9984,
385,
20380,
393,
3639,
1584,
368,
26325,
287,
1819,
6257,
411,
421,
2962,
1412,
13,
29871,
438,
15535,
1304,
408,
385,
2980,
304,
584,
9891,
18078,
326,
481,
29952,
304,
5706,
18942,
848,
3291,
29889,
13,
29871,
3115,
29892,
1304,
411,
584,
9891,
18078,
466,
666,
29952,
304,
788,
5665,
3694,
29889,
13,
13,
29871,
1932,
21248,
411,
16526,
1298,
3694,
29892,
2253,
13600,
508,
6041,
367,
13,
29871,
14363,
491,
5960,
12937,
292,
6674,
506,
1230,
775,
1316,
408,
29901,
4954,
29898,
2962,
718,
4331,
334,
474,
363,
13,
29871,
474,
297,
2302,
3101,
29952,
1412,
13,
13,
29871,
6317,
4443,
1057,
18540,
322,
5106,
363,
445,
740,
526,
4586,
515,
13,
9651,
315,
11980,
29892,
584,
999,
18078,
506,
1947,
4902,
529,
567,
29888,
29899,
506,
1947,
29958,
1412,
13,
29871,
9995,
13,
29871,
302,
353,
1369,
13,
29871,
1550,
5852,
29901,
13,
1678,
7709,
302,
13,
1678,
302,
4619,
4331,
13,
13,
13,
1753,
27831,
29898,
29876,
29892,
4256,
519,
29892,
5445,
1767,
29922,
8516,
1125,
13,
29871,
9995,
24020,
278,
4452,
297,
278,
2183,
421,
1524,
519,
29952,
304,
5291,
2701,
310,
2159,
421,
29876,
1412,
512,
1797,
13,
29871,
363,
6471,
304,
2337,
367,
310,
278,
2159,
421,
29876,
29952,
278,
421,
5589,
1767,
29952,
338,
1304,
363,
7164,
29889,
13,
29871,
9995,
13,
29871,
736,
5951,
666,
29918,
5426,
342,
29898,
5589,
1767,
29922,
5589,
1767,
29892,
334,
4197,
1524,
29898,
1524,
519,
4638,
334,
302,
876,
13,
13,
13,
1753,
5412,
29898,
1524,
519,
29892,
3595,
29922,
8516,
1125,
13,
29871,
9995,
29979,
969,
29879,
4452,
515,
278,
2183,
421,
1524,
519,
29952,
310,
313,
8568,
519,
29897,
4452,
29892,
2748,
3595,
385,
13,
29871,
2944,
338,
451,
7709,
287,
1449,
29889,
13,
13,
29871,
584,
3207,
3595,
29901,
13,
268,
530,
4256,
519,
22146,
2307,
376,
28026,
29908,
4452,
607,
674,
367,
429,
13347,
13,
268,
515,
278,
1121,
29889,
13,
13,
268,
6317,
1873,
23959,
1057,
29871,
29900,
29889,
29945,
13,
13,
29871,
6317,
1873,
15033,
1057,
29871,
29900,
29889,
29945,
13,
268,
25085,
1016,
29915,
29873,
505,
304,
367,
6608,
519,
738,
901,
29889,
13,
29871,
9995,
13,
29871,
3595,
353,
731,
580,
565,
3595,
338,
6213,
1683,
731,
29898,
28026,
29897,
13,
29871,
3595,
29918,
348,
8568,
519,
353,
5159,
13,
29871,
363,
2944,
297,
4256,
519,
29901,
13,
1678,
1018,
29901,
13,
418,
565,
2944,
451,
297,
3595,
29901,
13,
4706,
3595,
29889,
1202,
29898,
667,
29897,
13,
4706,
7709,
2944,
13,
1678,
5174,
20948,
29901,
13,
418,
565,
2944,
451,
297,
3595,
29918,
348,
8568,
519,
29901,
13,
4706,
3595,
29918,
348,
8568,
519,
29889,
4397,
29898,
667,
29897,
13,
4706,
7709,
2944,
13,
13,
13,
1753,
1652,
8606,
29898,
1524,
519,
29892,
11455,
29922,
8516,
1125,
13,
29871,
9995,
8754,
1131,
575,
263,
9322,
421,
1524,
519,
1412,
13,
13,
29871,
584,
3207,
11455,
29901,
13,
418,
28025,
310,
4256,
519,
3618,
607,
881,
367,
7709,
287,
408,
29899,
275,
29889,
13,
13,
29871,
6317,
1873,
23959,
1057,
29871,
29900,
29889,
29945,
13,
29871,
9995,
13,
29871,
5096,
353,
518,
1524,
29898,
1524,
519,
4638,
13,
29871,
1550,
5096,
29901,
13,
1678,
1018,
29901,
13,
418,
2944,
353,
5096,
14352,
29896,
1822,
4622,
580,
13,
418,
565,
11455,
322,
338,
8758,
29898,
667,
29892,
11455,
1125,
13,
4706,
7709,
2944,
13,
418,
25342,
4240,
1144,
29889,
275,
29918,
13193,
29918,
272,
29918,
2523,
356,
29898,
667,
29897,
322,
7431,
29898,
667,
29897,
1275,
29871,
29896,
29901,
13,
4706,
7709,
2944,
13,
418,
1683,
29901,
13,
4706,
1018,
29901,
13,
3986,
5096,
29889,
4397,
29898,
1524,
29898,
667,
876,
13,
4706,
5174,
20948,
29901,
13,
3986,
7709,
2944,
13,
1678,
5174,
22303,
13463,
362,
29901,
13,
418,
5096,
29889,
7323,
580,
13,
2
] |
zkay/transaction/crypto/ecdh_aes.py | nibau/zkay | 0 | 146893 | from typing import Tuple, List, Any
from Crypto.Cipher import AES
from zkay.config import cfg
from zkay.transaction.crypto.ecdh_base import EcdhBase
class EcdhAesCrypto(EcdhBase):
def _enc(self, plain: int, my_sk: int, target_pk: int) -> Tuple[List[int], None]:
key = self._ecdh_sha256(target_pk, my_sk)
plain_bytes = plain.to_bytes(32, byteorder='big')
# Encrypt and extract iv
cipher = AES.new(key, AES.MODE_CBC)
cipher_bytes = cipher.encrypt(plain_bytes)
iv = cipher.iv
# Pack iv and cipher
iv_cipher = b''.join([iv, cipher_bytes])
return self.pack_byte_array(iv_cipher, cfg.cipher_chunk_size), None
def _dec(self, cipher: Tuple[int, ...], my_sk: Any) -> Tuple[int, None]:
# Extract sender address from cipher metadata and request corresponding public key
sender_pk = cipher[-1]
cipher = cipher[:-1]
assert len(cipher) == cfg.cipher_payload_len
# Compute shared key
key = self._ecdh_sha256(sender_pk, my_sk)
# Unpack iv and cipher
iv_cipher = self.unpack_to_byte_array(cipher, cfg.cipher_chunk_size, cfg.cipher_bytes_payload)
iv, cipher_bytes = iv_cipher[:16], iv_cipher[16:]
# Decrypt
cipher = AES.new(key, AES.MODE_CBC, iv=iv)
plain_bytes = cipher.decrypt(cipher_bytes)
plain = int.from_bytes(plain_bytes, byteorder='big')
return plain, None
| [
1,
515,
19229,
1053,
12603,
552,
29892,
2391,
29892,
3139,
13,
13,
3166,
315,
17929,
29889,
29907,
29875,
8096,
1053,
319,
2890,
13,
13,
3166,
503,
29895,
388,
29889,
2917,
1053,
274,
16434,
13,
3166,
503,
29895,
388,
29889,
20736,
29889,
29883,
17929,
29889,
687,
12744,
29918,
3188,
1053,
382,
2252,
29882,
5160,
13,
13,
13,
1990,
382,
2252,
29882,
29909,
267,
29907,
17929,
29898,
29923,
2252,
29882,
5160,
1125,
13,
1678,
822,
903,
3977,
29898,
1311,
29892,
8656,
29901,
938,
29892,
590,
29918,
808,
29901,
938,
29892,
3646,
29918,
20571,
29901,
938,
29897,
1599,
12603,
552,
29961,
1293,
29961,
524,
1402,
6213,
5387,
13,
4706,
1820,
353,
1583,
3032,
687,
12744,
29918,
17051,
29906,
29945,
29953,
29898,
5182,
29918,
20571,
29892,
590,
29918,
808,
29897,
13,
4706,
8656,
29918,
13193,
353,
8656,
29889,
517,
29918,
13193,
29898,
29941,
29906,
29892,
7023,
2098,
2433,
3752,
1495,
13,
13,
4706,
396,
11346,
4641,
322,
6597,
20444,
13,
4706,
4583,
8096,
353,
319,
2890,
29889,
1482,
29898,
1989,
29892,
319,
2890,
29889,
20387,
29918,
29907,
5371,
29897,
13,
4706,
4583,
8096,
29918,
13193,
353,
4583,
8096,
29889,
3977,
4641,
29898,
24595,
29918,
13193,
29897,
13,
4706,
20444,
353,
4583,
8096,
29889,
440,
13,
13,
4706,
396,
18744,
20444,
322,
4583,
8096,
13,
4706,
20444,
29918,
455,
8096,
353,
289,
29915,
4286,
7122,
4197,
440,
29892,
4583,
8096,
29918,
13193,
2314,
13,
13,
4706,
736,
1583,
29889,
4058,
29918,
10389,
29918,
2378,
29898,
440,
29918,
455,
8096,
29892,
274,
16434,
29889,
455,
8096,
29918,
29812,
29918,
2311,
511,
6213,
13,
13,
1678,
822,
903,
7099,
29898,
1311,
29892,
4583,
8096,
29901,
12603,
552,
29961,
524,
29892,
2023,
1402,
590,
29918,
808,
29901,
3139,
29897,
1599,
12603,
552,
29961,
524,
29892,
6213,
5387,
13,
4706,
396,
7338,
1461,
10004,
3211,
515,
4583,
8096,
15562,
322,
2009,
6590,
970,
1820,
13,
4706,
10004,
29918,
20571,
353,
4583,
8096,
14352,
29896,
29962,
13,
4706,
4583,
8096,
353,
4583,
8096,
7503,
29899,
29896,
29962,
13,
4706,
4974,
7431,
29898,
455,
8096,
29897,
1275,
274,
16434,
29889,
455,
8096,
29918,
23813,
29918,
2435,
13,
13,
4706,
396,
11796,
29872,
7258,
1820,
13,
4706,
1820,
353,
1583,
3032,
687,
12744,
29918,
17051,
29906,
29945,
29953,
29898,
15452,
29918,
20571,
29892,
590,
29918,
808,
29897,
13,
13,
4706,
396,
853,
4058,
20444,
322,
4583,
8096,
13,
4706,
20444,
29918,
455,
8096,
353,
1583,
29889,
348,
4058,
29918,
517,
29918,
10389,
29918,
2378,
29898,
455,
8096,
29892,
274,
16434,
29889,
455,
8096,
29918,
29812,
29918,
2311,
29892,
274,
16434,
29889,
455,
8096,
29918,
13193,
29918,
23813,
29897,
13,
4706,
20444,
29892,
4583,
8096,
29918,
13193,
353,
20444,
29918,
455,
8096,
7503,
29896,
29953,
1402,
20444,
29918,
455,
8096,
29961,
29896,
29953,
17531,
13,
13,
4706,
396,
3826,
4641,
13,
4706,
4583,
8096,
353,
319,
2890,
29889,
1482,
29898,
1989,
29892,
319,
2890,
29889,
20387,
29918,
29907,
5371,
29892,
20444,
29922,
440,
29897,
13,
4706,
8656,
29918,
13193,
353,
4583,
8096,
29889,
7099,
4641,
29898,
455,
8096,
29918,
13193,
29897,
13,
13,
4706,
8656,
353,
938,
29889,
3166,
29918,
13193,
29898,
24595,
29918,
13193,
29892,
7023,
2098,
2433,
3752,
1495,
13,
13,
4706,
736,
8656,
29892,
6213,
13,
2
] |
data/train/python/51ac8632d350c422dea2ba0ea797fbc604f88f75__init__.py | harshp8l/deep-learning-lang-detection | 84 | 174271 | from DCWorkflowGraph import getGraph
from Products.DCWorkflow.DCWorkflow import DCWorkflowDefinition
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
import os
# Import "MessageFactory" to create messages in the DCWorkflowGraph domain
from zope.i18nmessageid import MessageFactory
_ = MessageFactory('DCWorkflowGraph')
manage_workflowGraph = PageTemplateFile(os.path.join('www','manage_workflowGraph'), globals())
manage_workflowGraph.__name__ = 'manage_workflowGraph'
manage_workflowGraph._need__name__ = 0
DCWorkflowDefinition.getGraph=getGraph
DCWorkflowDefinition.manage_workflowGraph=manage_workflowGraph
DCWorkflowDefinition.manage_options=tuple(DCWorkflowDefinition.manage_options)+({'label': _(u'Graph'), 'action': 'manage_workflowGraph'},)
| [
1,
515,
13681,
5531,
1731,
9527,
1053,
679,
9527,
13,
3166,
10969,
29879,
29889,
12696,
5531,
1731,
29889,
12696,
5531,
1731,
1053,
13681,
5531,
1731,
14683,
13,
3166,
10969,
29879,
29889,
5074,
5776,
9884,
29889,
5074,
6733,
2283,
1053,
9305,
6733,
2283,
13,
5215,
2897,
13,
13,
29937,
16032,
376,
3728,
5126,
29908,
304,
1653,
7191,
297,
278,
13681,
5531,
1731,
9527,
5354,
13,
3166,
503,
2300,
29889,
29875,
29896,
29947,
29876,
4906,
333,
1053,
7777,
5126,
13,
29918,
353,
7777,
5126,
877,
12696,
5531,
1731,
9527,
1495,
13,
13,
1171,
482,
29918,
1287,
1731,
9527,
353,
9305,
6733,
2283,
29898,
359,
29889,
2084,
29889,
7122,
877,
1636,
3788,
1171,
482,
29918,
1287,
1731,
9527,
5477,
13149,
1338,
3101,
13,
1171,
482,
29918,
1287,
1731,
9527,
17255,
978,
1649,
353,
525,
1171,
482,
29918,
1287,
1731,
9527,
29915,
13,
1171,
482,
29918,
1287,
1731,
9527,
3032,
26180,
1649,
978,
1649,
353,
29871,
29900,
13,
13,
12696,
5531,
1731,
14683,
29889,
657,
9527,
29922,
657,
9527,
13,
12696,
5531,
1731,
14683,
29889,
1171,
482,
29918,
1287,
1731,
9527,
29922,
1171,
482,
29918,
1287,
1731,
9527,
13,
12696,
5531,
1731,
14683,
29889,
1171,
482,
29918,
6768,
29922,
23583,
29898,
12696,
5531,
1731,
14683,
29889,
1171,
482,
29918,
6768,
7240,
3319,
29915,
1643,
2396,
903,
29898,
29884,
29915,
9527,
5477,
525,
2467,
2396,
525,
1171,
482,
29918,
1287,
1731,
9527,
16675,
29897,
13,
2
] |
GA/ba-code/main/mycode/rep/individual2b.py | CN-UPB/fcapp | 0 | 63850 | <gh_stars>0
from __future__ import (absolute_import, division, print_function)
from array import array
import copy
import random
from mycode import mydeap
from mycode.rep.fitness import Fitness
from mycode.settings import config
# print("using REPR-C = reprb + fperm order")
from mycode.rep.individual_base import IndividualBase
class Individual2b(IndividualBase):
"""
REPR C:
Represents an individual. has a fitness.
each individual specifies which crcs and clcs are to be used and fperm for flow processing order
evaluation tries in that order to fulfil all requirements by using shortest possible paths.
assignments crcs to clcs are made first, then clc-bs, then flows.
within each of the first two groups, shortest satisfaction is done first.
"""
def __init__(self, cn):
super(Individual2b, self).__init__()
self.cn = cn
self.fitness = Fitness()
self.crcs = array('B', (False for _ in self.cn.C))
self.clcs = array('B', (False for _ in self.cn.C))
self.fperm = [i for i in xrange(len(self.cn.F))]
def __str__(self):
return "{}, {}, {}".format(self.fitness, str(self.crcs.tolist()), str(self.clcs.tolist()))
def short_str(self):
return str(self)
def __deepcopy__(self, memo):
"""Replace the basic deepcopy function with a faster one."""
cls = self.__class__
result = cls.__new__(cls)
result.cn = self.cn
result.fitness = copy.deepcopy(self.fitness, memo)
result.crcs = copy.deepcopy(self.crcs, memo)
result.clcs = copy.deepcopy(self.clcs, memo)
result.fperm = copy.deepcopy(self.fperm, memo)
return result
@classmethod
def create_random(cls, cn):
self = cls(cn)
for i in xrange(len(self.crcs)):
self.crcs[i] = random.random() < .2
for i in xrange(len(self.clcs)):
self.clcs[i] = random.random() < .5
random.shuffle(self.fperm)
use_least_demanding_flow_first = random.random() < .5
self.fperm.sort(reverse=not use_least_demanding_flow_first,
key=lambda it: self.cn.flows[it].p_flow)
if random.random() < .6:
self.fperm.sort(key=lambda it: -len(self.cn.flows[it].nodes))
return self
def set_fitness_values(self, values):
self.fitness.values = values
def _get_controller_id_set(self, c_array):
ids = set()
for i in xrange(len(c_array)):
if c_array[i]:
ids.add(self.cn.C_list[i])
return ids
def _evaluate(self):
self.cn.restore_backup()
crc_set, clc_set = map(self._get_controller_id_set, (self.crcs, self.clcs))
self.cn.route_crc_controls(crc_set, clc_set)
self.cn.route_clc_controls(clc_set)
self.cn.route_flow_satisfactions(clc_set, self.fperm)
self.set_fitness_values(self.cn.compute_fitness_values())
@staticmethod
def mate(ind1, ind2):
'copies uniformly randomly half of the genes from one parent, half of the other parent'
child = Individual2b(ind1.cn)
if random.random() < .5:
for i in xrange(len(child.crcs)):
child.crcs[i] = ind1.crcs[i] or ind2.crcs[i]
for i in xrange(len(child.clcs)):
child.clcs[i] = ind1.clcs[i] or ind2.clcs[i]
else:
for i in xrange(len(child.crcs)):
child.crcs[i] = ind1.crcs[i] and ind2.crcs[i]
for i in xrange(len(child.clcs)):
child.clcs[i] = ind1.clcs[i] and ind2.clcs[i]
child.fperm = mydeap.cx_alternating_position(ind1.fperm, ind2.fperm)
return child
@staticmethod
def mutate(ind):
child = copy.deepcopy(ind)
num_unsatisfied_flows = child.fitness.unsatisfied_flows
child.fitness.invalidate()
mydeap.mutShuffleIndexes(child.fperm, config.MUTR)
attr = child.crcs
if random.random() < .9:
attr = child.clcs
if num_unsatisfied_flows > 0:
if sum(attr) != len(attr):
index = random.choice([i for i, v in enumerate(attr) if not v])
attr[index] = not attr[index]
return child
if sum(attr) <= 1:
return child
n_max = min(sum(attr), sum(1 - it for it in attr) + 1, 5)
n = random.choice(range(1, n_max + 1))
flips = random.sample([i for i, v in enumerate(attr) if v], n)
flips.extend(random.sample([i for i, v in enumerate(attr) if not v], n - 1))
for i in flips:
attr[i] = not attr[i]
return child
def __ne__(self, other):
return not self == other
def __eq__(self, other):
return self.clcs == other.clcs and self.crcs == other.crcs
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
4770,
29888,
9130,
1649,
1053,
313,
23552,
29918,
5215,
29892,
8542,
29892,
1596,
29918,
2220,
29897,
13,
3166,
1409,
1053,
1409,
13,
5215,
3509,
13,
5215,
4036,
13,
13,
3166,
590,
401,
1053,
590,
311,
481,
13,
3166,
590,
401,
29889,
3445,
29889,
9202,
2264,
1053,
383,
277,
2264,
13,
3166,
590,
401,
29889,
11027,
1053,
2295,
13,
13,
13,
29937,
1596,
703,
4746,
5195,
10593,
29899,
29907,
353,
2062,
29890,
718,
285,
17858,
1797,
1159,
13,
3166,
590,
401,
29889,
3445,
29889,
513,
23352,
29918,
3188,
1053,
1894,
23352,
5160,
13,
13,
1990,
1894,
23352,
29906,
29890,
29898,
2568,
23352,
5160,
1125,
13,
12,
15945,
29908,
13,
12,
1525,
10593,
315,
29901,
13,
12,
1123,
4569,
1237,
385,
5375,
29889,
756,
263,
6216,
2264,
29889,
13,
12,
4204,
5375,
1580,
11057,
607,
2181,
2395,
322,
1067,
2395,
526,
304,
367,
1304,
322,
285,
17858,
363,
4972,
9068,
1797,
13,
12,
24219,
362,
14335,
297,
393,
1797,
304,
6095,
1777,
599,
11780,
491,
773,
3273,
342,
1950,
10898,
29889,
13,
12,
16645,
1860,
2181,
2395,
304,
1067,
2395,
526,
1754,
937,
29892,
769,
1067,
29883,
29899,
5824,
29892,
769,
24536,
29889,
13,
12,
2541,
262,
1269,
310,
278,
937,
1023,
6471,
29892,
3273,
342,
26470,
338,
2309,
937,
29889,
13,
12,
15945,
29908,
13,
13,
12,
1753,
4770,
2344,
12035,
1311,
29892,
274,
29876,
1125,
13,
12,
12,
9136,
29898,
2568,
23352,
29906,
29890,
29892,
1583,
467,
1649,
2344,
1649,
580,
13,
12,
12,
1311,
29889,
18038,
353,
274,
29876,
13,
12,
12,
1311,
29889,
9202,
2264,
353,
383,
277,
2264,
580,
13,
12,
12,
1311,
29889,
29883,
2214,
29879,
353,
1409,
877,
29933,
742,
313,
8824,
363,
903,
297,
1583,
29889,
18038,
29889,
29907,
876,
13,
12,
12,
1311,
29889,
695,
2395,
353,
1409,
877,
29933,
742,
313,
8824,
363,
903,
297,
1583,
29889,
18038,
29889,
29907,
876,
13,
12,
12,
1311,
29889,
29888,
17858,
353,
518,
29875,
363,
474,
297,
921,
3881,
29898,
2435,
29898,
1311,
29889,
18038,
29889,
29943,
28166,
13,
13,
12,
1753,
4770,
710,
12035,
1311,
1125,
13,
12,
12,
2457,
29850,
1118,
24335,
6571,
1642,
4830,
29898,
1311,
29889,
9202,
2264,
29892,
851,
29898,
1311,
29889,
29883,
2214,
29879,
29889,
25027,
391,
25739,
851,
29898,
1311,
29889,
695,
2395,
29889,
25027,
391,
22130,
13,
13,
12,
1753,
3273,
29918,
710,
29898,
1311,
1125,
13,
12,
12,
2457,
851,
29898,
1311,
29897,
13,
13,
12,
1753,
4770,
24535,
8552,
12035,
1311,
29892,
2626,
29877,
1125,
13,
12,
12,
15945,
29908,
20083,
278,
6996,
6483,
8552,
740,
411,
263,
8473,
697,
1213,
15945,
13,
12,
12,
25932,
353,
1583,
17255,
1990,
1649,
13,
12,
12,
2914,
353,
1067,
29879,
17255,
1482,
12035,
25932,
29897,
13,
12,
12,
2914,
29889,
18038,
353,
1583,
29889,
18038,
13,
12,
12,
2914,
29889,
9202,
2264,
353,
3509,
29889,
24535,
8552,
29898,
1311,
29889,
9202,
2264,
29892,
2626,
29877,
29897,
13,
12,
12,
2914,
29889,
29883,
2214,
29879,
353,
3509,
29889,
24535,
8552,
29898,
1311,
29889,
29883,
2214,
29879,
29892,
2626,
29877,
29897,
13,
12,
12,
2914,
29889,
695,
2395,
353,
3509,
29889,
24535,
8552,
29898,
1311,
29889,
695,
2395,
29892,
2626,
29877,
29897,
13,
12,
12,
2914,
29889,
29888,
17858,
353,
3509,
29889,
24535,
8552,
29898,
1311,
29889,
29888,
17858,
29892,
2626,
29877,
29897,
13,
12,
12,
2457,
1121,
13,
13,
12,
29992,
1990,
5696,
13,
12,
1753,
1653,
29918,
8172,
29898,
25932,
29892,
274,
29876,
1125,
13,
12,
12,
1311,
353,
1067,
29879,
29898,
18038,
29897,
13,
12,
12,
1454,
474,
297,
921,
3881,
29898,
2435,
29898,
1311,
29889,
29883,
2214,
29879,
22164,
13,
12,
12,
12,
1311,
29889,
29883,
2214,
29879,
29961,
29875,
29962,
353,
4036,
29889,
8172,
580,
529,
869,
29906,
13,
12,
12,
1454,
474,
297,
921,
3881,
29898,
2435,
29898,
1311,
29889,
695,
2395,
22164,
13,
12,
12,
12,
1311,
29889,
695,
2395,
29961,
29875,
29962,
353,
4036,
29889,
8172,
580,
529,
869,
29945,
13,
12,
12,
8172,
29889,
845,
21897,
29898,
1311,
29889,
29888,
17858,
29897,
13,
12,
12,
1509,
29918,
280,
579,
29918,
2310,
392,
292,
29918,
1731,
29918,
4102,
353,
4036,
29889,
8172,
580,
529,
869,
29945,
13,
12,
12,
1311,
29889,
29888,
17858,
29889,
6605,
29898,
24244,
29922,
1333,
671,
29918,
280,
579,
29918,
2310,
392,
292,
29918,
1731,
29918,
4102,
29892,
13,
12,
12,
12,
12,
12,
12,
1989,
29922,
2892,
372,
29901,
1583,
29889,
18038,
29889,
1731,
29879,
29961,
277,
1822,
29886,
29918,
1731,
29897,
13,
12,
12,
361,
4036,
29889,
8172,
580,
529,
869,
29953,
29901,
13,
12,
12,
12,
1311,
29889,
29888,
17858,
29889,
6605,
29898,
1989,
29922,
2892,
372,
29901,
448,
2435,
29898,
1311,
29889,
18038,
29889,
1731,
29879,
29961,
277,
1822,
18010,
876,
13,
12,
12,
2457,
1583,
13,
13,
12,
1753,
731,
29918,
9202,
2264,
29918,
5975,
29898,
1311,
29892,
1819,
1125,
13,
12,
12,
1311,
29889,
9202,
2264,
29889,
5975,
353,
1819,
13,
13,
12,
1753,
903,
657,
29918,
8299,
29918,
333,
29918,
842,
29898,
1311,
29892,
274,
29918,
2378,
1125,
13,
12,
12,
4841,
353,
731,
580,
13,
12,
12,
1454,
474,
297,
921,
3881,
29898,
2435,
29898,
29883,
29918,
2378,
22164,
13,
12,
12,
12,
361,
274,
29918,
2378,
29961,
29875,
5387,
13,
12,
12,
12,
12,
4841,
29889,
1202,
29898,
1311,
29889,
18038,
29889,
29907,
29918,
1761,
29961,
29875,
2314,
13,
12,
12,
2457,
18999,
13,
13,
12,
1753,
903,
24219,
403,
29898,
1311,
1125,
13,
12,
12,
1311,
29889,
18038,
29889,
5060,
487,
29918,
1627,
786,
580,
13,
12,
12,
29883,
2214,
29918,
842,
29892,
1067,
29883,
29918,
842,
353,
2910,
29898,
1311,
3032,
657,
29918,
8299,
29918,
333,
29918,
842,
29892,
313,
1311,
29889,
29883,
2214,
29879,
29892,
1583,
29889,
695,
2395,
876,
13,
12,
12,
1311,
29889,
18038,
29889,
13134,
29918,
29883,
2214,
29918,
26255,
29898,
29883,
2214,
29918,
842,
29892,
1067,
29883,
29918,
842,
29897,
13,
12,
12,
1311,
29889,
18038,
29889,
13134,
29918,
695,
29883,
29918,
26255,
29898,
695,
29883,
29918,
842,
29897,
13,
12,
12,
1311,
29889,
18038,
29889,
13134,
29918,
1731,
29918,
29879,
27685,
7387,
29898,
695,
29883,
29918,
842,
29892,
1583,
29889,
29888,
17858,
29897,
13,
12,
12,
1311,
29889,
842,
29918,
9202,
2264,
29918,
5975,
29898,
1311,
29889,
18038,
29889,
26017,
29918,
9202,
2264,
29918,
5975,
3101,
13,
13,
12,
29992,
7959,
5696,
13,
12,
1753,
15358,
29898,
513,
29896,
29892,
1399,
29906,
1125,
13,
12,
12,
29915,
9708,
583,
26018,
20459,
4203,
310,
278,
2531,
267,
515,
697,
3847,
29892,
4203,
310,
278,
916,
3847,
29915,
13,
12,
12,
5145,
353,
1894,
23352,
29906,
29890,
29898,
513,
29896,
29889,
18038,
29897,
13,
12,
12,
361,
4036,
29889,
8172,
580,
529,
869,
29945,
29901,
13,
12,
12,
12,
1454,
474,
297,
921,
3881,
29898,
2435,
29898,
5145,
29889,
29883,
2214,
29879,
22164,
13,
12,
12,
12,
12,
5145,
29889,
29883,
2214,
29879,
29961,
29875,
29962,
353,
1399,
29896,
29889,
29883,
2214,
29879,
29961,
29875,
29962,
470,
1399,
29906,
29889,
29883,
2214,
29879,
29961,
29875,
29962,
13,
12,
12,
12,
1454,
474,
297,
921,
3881,
29898,
2435,
29898,
5145,
29889,
695,
2395,
22164,
13,
12,
12,
12,
12,
5145,
29889,
695,
2395,
29961,
29875,
29962,
353,
1399,
29896,
29889,
695,
2395,
29961,
29875,
29962,
470,
1399,
29906,
29889,
695,
2395,
29961,
29875,
29962,
13,
12,
12,
2870,
29901,
13,
12,
12,
12,
1454,
474,
297,
921,
3881,
29898,
2435,
29898,
5145,
29889,
29883,
2214,
29879,
22164,
13,
12,
12,
12,
12,
5145,
29889,
29883,
2214,
29879,
29961,
29875,
29962,
353,
1399,
29896,
29889,
29883,
2214,
29879,
29961,
29875,
29962,
322,
1399,
29906,
29889,
29883,
2214,
29879,
29961,
29875,
29962,
13,
12,
12,
12,
1454,
474,
297,
921,
3881,
29898,
2435,
29898,
5145,
29889,
695,
2395,
22164,
13,
12,
12,
12,
12,
5145,
29889,
695,
2395,
29961,
29875,
29962,
353,
1399,
29896,
29889,
695,
2395,
29961,
29875,
29962,
322,
1399,
29906,
29889,
695,
2395,
29961,
29875,
29962,
13,
12,
12,
5145,
29889,
29888,
17858,
353,
590,
311,
481,
29889,
18904,
29918,
26123,
1218,
29918,
3283,
29898,
513,
29896,
29889,
29888,
17858,
29892,
1399,
29906,
29889,
29888,
17858,
29897,
13,
12,
12,
2457,
2278,
13,
13,
12,
29992,
7959,
5696,
13,
12,
1753,
5478,
403,
29898,
513,
1125,
13,
12,
12,
5145,
353,
3509,
29889,
24535,
8552,
29898,
513,
29897,
13,
12,
12,
1949,
29918,
6948,
27685,
1000,
29918,
1731,
29879,
353,
2278,
29889,
9202,
2264,
29889,
6948,
27685,
1000,
29918,
1731,
29879,
13,
12,
12,
5145,
29889,
9202,
2264,
29889,
262,
15480,
580,
13,
12,
12,
1357,
311,
481,
29889,
6149,
2713,
21897,
3220,
267,
29898,
5145,
29889,
29888,
17858,
29892,
2295,
29889,
29924,
2692,
29934,
29897,
13,
12,
12,
5552,
353,
2278,
29889,
29883,
2214,
29879,
13,
12,
12,
361,
4036,
29889,
8172,
580,
529,
869,
29929,
29901,
13,
12,
12,
12,
5552,
353,
2278,
29889,
695,
2395,
13,
12,
12,
361,
954,
29918,
6948,
27685,
1000,
29918,
1731,
29879,
1405,
29871,
29900,
29901,
13,
12,
12,
12,
361,
2533,
29898,
5552,
29897,
2804,
7431,
29898,
5552,
1125,
13,
12,
12,
12,
12,
2248,
353,
4036,
29889,
16957,
4197,
29875,
363,
474,
29892,
325,
297,
26985,
29898,
5552,
29897,
565,
451,
325,
2314,
13,
12,
12,
12,
12,
5552,
29961,
2248,
29962,
353,
451,
12421,
29961,
2248,
29962,
13,
12,
12,
12,
2457,
2278,
13,
13,
12,
12,
361,
2533,
29898,
5552,
29897,
5277,
29871,
29896,
29901,
13,
12,
12,
12,
2457,
2278,
13,
12,
12,
29876,
29918,
3317,
353,
1375,
29898,
2083,
29898,
5552,
511,
2533,
29898,
29896,
448,
372,
363,
372,
297,
12421,
29897,
718,
29871,
29896,
29892,
29871,
29945,
29897,
13,
12,
12,
29876,
353,
4036,
29889,
16957,
29898,
3881,
29898,
29896,
29892,
302,
29918,
3317,
718,
29871,
29896,
876,
13,
12,
12,
20157,
567,
353,
4036,
29889,
11249,
4197,
29875,
363,
474,
29892,
325,
297,
26985,
29898,
5552,
29897,
565,
325,
1402,
302,
29897,
13,
12,
12,
20157,
567,
29889,
21843,
29898,
8172,
29889,
11249,
4197,
29875,
363,
474,
29892,
325,
297,
26985,
29898,
5552,
29897,
565,
451,
325,
1402,
302,
448,
29871,
29896,
876,
13,
12,
12,
1454,
474,
297,
285,
492,
567,
29901,
13,
12,
12,
12,
5552,
29961,
29875,
29962,
353,
451,
12421,
29961,
29875,
29962,
13,
12,
12,
2457,
2278,
13,
13,
12,
1753,
4770,
484,
12035,
1311,
29892,
916,
1125,
13,
12,
12,
2457,
451,
1583,
1275,
916,
13,
13,
12,
1753,
4770,
1837,
12035,
1311,
29892,
916,
1125,
13,
12,
12,
2457,
1583,
29889,
695,
2395,
1275,
916,
29889,
695,
2395,
322,
1583,
29889,
29883,
2214,
29879,
1275,
916,
29889,
29883,
2214,
29879,
13,
2
] |
gdsfactory/simulation/simphony/components/coupler.py | jorgepadilla19/gdsfactory | 0 | 158675 | <reponame>jorgepadilla19/gdsfactory
from SiPANN.scee import Standard
from SiPANN.scee_int import SimphonyWrapper
def coupler(
width: float = 0.5,
thickness: float = 0.22,
gap: float = 0.22,
length: float = 10.0,
sw_angle: float = 90.0,
dx: float = 1.5,
dy: float = 5.0,
**kwargs,
):
r"""Return simphony Directional coupler model.
Args:
width: Width of the straight in um (Valid for 0.4-0.6)
thickness: Thickness of straight in um (Valid for 0.18-0.24)
gap: Minimum distance between the two straights edge in um. (Must be > 0.1)
length: float or ndarray Length of the straight portion of both straights in um.
dx: Horizontal distance between end of coupler until straight portion in nm.
dy: Vertical distance between end of coupler until straight portion in um.
sw_angle: Sidewall angle from horizontal in degrees
This is what most people think of when they think directional coupler.
Ports are named as
.. code::
H
dx dx
|------| |------|
o2 ________ _______o3 _ _
\ / | |
\ length / | _|_V
======================= gap | dy
/ \ |
________/ \_______ |
o1 o4
.. plot::
:include-source:
import gdsfactory as gf
c = gf.components.coupler(gap=0.2, length=10)
c.plot()
.. plot::
:include-source:
import gdsfactory.simulation.simphony.components as gc
import gdsfactory.simulation simphony as gs
c = gc.coupler()
gs.plot_model(c)
"""
# SiPANN units are in nm
width = width * 1e3
thickness = thickness * 1e3
gap = gap * 1e3
length = length * 1e3
H = dx * 1e3
V = dy * 1e3 / 2
s = Standard(
width=width,
thickness=thickness,
gap=gap,
length=length,
H=H,
V=V,
sw_angle=sw_angle,
)
model = SimphonyWrapper(s)
model.pins = ("o1", "o2", "o4", "o3")
model.sipann = s
return model
if __name__ == "__main__":
import matplotlib.pyplot as plt
from gdsfactory.simulation.simphony.plot_model import plot_model
c = coupler()
print(c)
plot_model(c)
plt.show()
| [
1,
529,
276,
1112,
420,
29958,
3418,
479,
8305,
2911,
29896,
29929,
29914,
29887,
29881,
4668,
3832,
13,
3166,
6101,
29925,
2190,
29940,
29889,
22774,
29872,
1053,
10117,
13,
3166,
6101,
29925,
2190,
29940,
29889,
22774,
29872,
29918,
524,
1053,
3439,
22214,
15646,
13,
13,
13,
1753,
3581,
20069,
29898,
13,
1678,
2920,
29901,
5785,
353,
29871,
29900,
29889,
29945,
29892,
13,
1678,
12003,
2264,
29901,
5785,
353,
29871,
29900,
29889,
29906,
29906,
29892,
13,
1678,
17261,
29901,
5785,
353,
29871,
29900,
29889,
29906,
29906,
29892,
13,
1678,
3309,
29901,
5785,
353,
29871,
29896,
29900,
29889,
29900,
29892,
13,
1678,
2381,
29918,
2521,
29901,
5785,
353,
29871,
29929,
29900,
29889,
29900,
29892,
13,
1678,
15414,
29901,
5785,
353,
29871,
29896,
29889,
29945,
29892,
13,
1678,
13475,
29901,
5785,
353,
29871,
29945,
29889,
29900,
29892,
13,
1678,
3579,
19290,
29892,
13,
1125,
13,
1678,
364,
15945,
29908,
11609,
1027,
22214,
360,
8684,
284,
3581,
20069,
1904,
29889,
13,
13,
1678,
826,
3174,
29901,
13,
4706,
2920,
29901,
21485,
310,
278,
7812,
297,
1922,
313,
7211,
363,
29871,
29900,
29889,
29946,
29899,
29900,
29889,
29953,
29897,
13,
4706,
12003,
2264,
29901,
498,
860,
2264,
310,
7812,
297,
1922,
313,
7211,
363,
29871,
29900,
29889,
29896,
29947,
29899,
29900,
29889,
29906,
29946,
29897,
13,
4706,
17261,
29901,
3080,
12539,
5418,
1546,
278,
1023,
5312,
5861,
7636,
297,
1922,
29889,
313,
29924,
504,
367,
1405,
29871,
29900,
29889,
29896,
29897,
13,
4706,
3309,
29901,
5785,
470,
29871,
299,
2378,
365,
1477,
310,
278,
7812,
11910,
310,
1716,
5312,
5861,
297,
1922,
29889,
13,
4706,
15414,
29901,
6912,
7731,
5418,
1546,
1095,
310,
3581,
20069,
2745,
7812,
11910,
297,
302,
29885,
29889,
13,
4706,
13475,
29901,
11198,
936,
5418,
1546,
1095,
310,
3581,
20069,
2745,
7812,
11910,
297,
1922,
29889,
13,
4706,
2381,
29918,
2521,
29901,
19160,
11358,
10696,
515,
14698,
297,
14496,
13,
13,
1678,
910,
338,
825,
1556,
2305,
1348,
310,
746,
896,
1348,
5305,
284,
3581,
20069,
29889,
13,
1678,
3371,
29879,
526,
4257,
408,
13,
13,
1678,
6317,
775,
1057,
13,
13,
462,
462,
462,
259,
379,
13,
1669,
15414,
462,
462,
15414,
13,
9651,
891,
22158,
29989,
462,
965,
891,
22158,
29989,
13,
308,
288,
29906,
903,
7652,
22359,
462,
965,
903,
7652,
1649,
29877,
29941,
539,
903,
903,
13,
462,
1678,
320,
462,
308,
847,
965,
891,
268,
891,
13,
462,
268,
320,
4706,
3309,
308,
847,
9651,
891,
1678,
903,
29989,
29918,
29963,
13,
462,
418,
1275,
9166,
2751,
29922,
17261,
308,
891,
13475,
13,
462,
268,
847,
462,
539,
320,
9651,
891,
13,
9651,
903,
7652,
22359,
29914,
462,
308,
320,
7652,
22359,
1678,
891,
13,
308,
288,
29896,
462,
462,
965,
288,
29946,
13,
13,
13,
1678,
6317,
6492,
1057,
13,
4706,
584,
2856,
29899,
4993,
29901,
13,
13,
4706,
1053,
330,
29881,
4668,
3832,
408,
330,
29888,
13,
13,
4706,
274,
353,
330,
29888,
29889,
14036,
29889,
16589,
20069,
29898,
29887,
481,
29922,
29900,
29889,
29906,
29892,
3309,
29922,
29896,
29900,
29897,
13,
4706,
274,
29889,
5317,
580,
13,
13,
1678,
6317,
6492,
1057,
13,
4706,
584,
2856,
29899,
4993,
29901,
13,
13,
4706,
1053,
330,
29881,
4668,
3832,
29889,
3601,
2785,
29889,
3601,
22214,
29889,
14036,
408,
330,
29883,
13,
4706,
1053,
330,
29881,
4668,
3832,
29889,
3601,
2785,
1027,
22214,
408,
330,
29879,
13,
13,
4706,
274,
353,
330,
29883,
29889,
16589,
20069,
580,
13,
4706,
330,
29879,
29889,
5317,
29918,
4299,
29898,
29883,
29897,
13,
13,
1678,
9995,
13,
13,
1678,
396,
6101,
29925,
2190,
29940,
10340,
526,
297,
302,
29885,
13,
1678,
2920,
353,
2920,
334,
29871,
29896,
29872,
29941,
13,
1678,
12003,
2264,
353,
12003,
2264,
334,
29871,
29896,
29872,
29941,
13,
1678,
17261,
353,
17261,
334,
29871,
29896,
29872,
29941,
13,
1678,
3309,
353,
3309,
334,
29871,
29896,
29872,
29941,
13,
1678,
379,
353,
15414,
334,
29871,
29896,
29872,
29941,
13,
1678,
478,
353,
13475,
334,
29871,
29896,
29872,
29941,
847,
29871,
29906,
13,
13,
1678,
269,
353,
10117,
29898,
13,
4706,
2920,
29922,
2103,
29892,
13,
4706,
12003,
2264,
29922,
27996,
2264,
29892,
13,
4706,
17261,
29922,
29887,
481,
29892,
13,
4706,
3309,
29922,
2848,
29892,
13,
4706,
379,
29922,
29950,
29892,
13,
4706,
478,
29922,
29963,
29892,
13,
4706,
2381,
29918,
2521,
29922,
2774,
29918,
2521,
29892,
13,
1678,
1723,
13,
1678,
1904,
353,
3439,
22214,
15646,
29898,
29879,
29897,
13,
1678,
1904,
29889,
29886,
1144,
353,
4852,
29877,
29896,
613,
376,
29877,
29906,
613,
376,
29877,
29946,
613,
376,
29877,
29941,
1159,
13,
1678,
1904,
29889,
29879,
666,
812,
353,
269,
13,
1678,
736,
1904,
13,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
1053,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
1678,
515,
330,
29881,
4668,
3832,
29889,
3601,
2785,
29889,
3601,
22214,
29889,
5317,
29918,
4299,
1053,
6492,
29918,
4299,
13,
13,
1678,
274,
353,
3581,
20069,
580,
13,
1678,
1596,
29898,
29883,
29897,
13,
1678,
6492,
29918,
4299,
29898,
29883,
29897,
13,
1678,
14770,
29889,
4294,
580,
13,
2
] |
aula#10/desafio035.py | daramariabs/exercicios-python | 0 | 198209 | """ Desenvolva um programa que leia o comprimento de três retas
e diga ao usuário se elas podem ou não formar um triângulo."""
a = float(input('Reta A:'))
b = float(input('Reta B:'))
c = float(input('Reta C:'))
if a < b + c and b < a + c and c < a + b:
print('Forma um triangulo')
else:
print('Não forma um triangulo') | [
1,
9995,
2726,
264,
1555,
1564,
1922,
16914,
712,
454,
423,
288,
7199,
6174,
316,
26299,
3240,
294,
13,
29872,
270,
4324,
5017,
502,
29884,
12288,
409,
560,
294,
13279,
29885,
2123,
8145,
883,
279,
1922,
3367,
30057,
865,
7207,
1213,
15945,
13,
29874,
353,
5785,
29898,
2080,
877,
29934,
1187,
319,
29901,
8785,
13,
29890,
353,
5785,
29898,
2080,
877,
29934,
1187,
350,
29901,
8785,
13,
29883,
353,
5785,
29898,
2080,
877,
29934,
1187,
315,
29901,
8785,
13,
361,
263,
529,
289,
718,
274,
322,
289,
529,
263,
718,
274,
322,
274,
529,
263,
718,
289,
29901,
13,
1678,
1596,
877,
2500,
29874,
1922,
3367,
574,
7207,
1495,
13,
2870,
29901,
13,
1678,
1596,
877,
29940,
1368,
5954,
1922,
3367,
574,
7207,
1495,
2
] |
src/napari_threedee/lighting/lighting_control.py | alisterburt/napari-threedee | 5 | 55290 | <filename>src/napari_threedee/lighting/lighting_control.py
from typing import List
import numpy as np
import napari
from ..base import ThreeDeeModel
from ..utils.napari_utils import add_mouse_callback_safe, get_napari_visual, remove_mouse_callback_safe
class LightingControl(ThreeDeeModel):
def __init__(self, viewer: napari.Viewer):
self._viewer = viewer
self._selected_layers = []
self._selected_layer_visuals = []
self.enabled = False
def set_layers(self, layers: List[napari.layers.Surface]):
self.selected_layers = layers
self._on_camera_change()
def _on_enable(self):
self._connect_events()
self._enabled = True
self._on_camera_change()
for layer in self.selected_layers:
layer.events.shading()
def _on_disable(self):
self._disconnect_events()
@property
def selected_layers(self) -> List[napari.layers.Surface]:
return self._selected_layers
@selected_layers.setter
def selected_layers(self, layers: List[napari.layers.Surface]):
if isinstance(layers, napari.layers.base.Layer):
layers = [layers]
self._selected_layer_visuals = [
get_napari_visual(viewer=self._viewer, layer=layer) for layer in layers
]
self._selected_layers = layers
@property
def selected_layer_visuals(self):
return self._selected_layer_visuals
def _on_camera_change(self, event=None):
if self.enabled is False:
# only update lighting direction if enabled
return
view_direction = np.asarray(self._viewer.camera.view_direction)
for layer, visual in zip(self.selected_layers, self.selected_layer_visuals):
dims_displayed = layer._dims_displayed
layer_view_direction = np.asarray(layer._world_to_data_ray(view_direction))[dims_displayed]
visual.node.shading_filter.light_dir = layer_view_direction[::-1]
def _connect_events(self):
self._viewer.camera.events.angles.connect(self._on_camera_change)
def _disconnect_events(self):
self._viewer.camera.events.angles.disconnect(self._on_camera_change)
| [
1,
529,
9507,
29958,
4351,
29914,
8971,
1306,
29918,
386,
276,
2742,
29872,
29914,
4366,
292,
29914,
4366,
292,
29918,
6451,
29889,
2272,
13,
3166,
19229,
1053,
2391,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
9709,
1306,
13,
13,
3166,
6317,
3188,
1053,
12753,
2772,
29872,
3195,
13,
3166,
6317,
13239,
29889,
8971,
1306,
29918,
13239,
1053,
788,
29918,
15769,
29918,
14035,
29918,
11177,
29892,
679,
29918,
8971,
1306,
29918,
20119,
29892,
3349,
29918,
15769,
29918,
14035,
29918,
11177,
13,
13,
13,
1990,
12790,
292,
4809,
29898,
28575,
2772,
29872,
3195,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
6316,
556,
29901,
9709,
1306,
29889,
29963,
15580,
1125,
13,
4706,
1583,
3032,
29894,
15580,
353,
6316,
556,
13,
4706,
1583,
3032,
8391,
29918,
29277,
353,
5159,
13,
4706,
1583,
3032,
8391,
29918,
13148,
29918,
20119,
29879,
353,
5159,
13,
4706,
1583,
29889,
17590,
353,
7700,
13,
13,
1678,
822,
731,
29918,
29277,
29898,
1311,
29892,
15359,
29901,
2391,
29961,
8971,
1306,
29889,
29277,
29889,
18498,
2161,
29962,
1125,
13,
4706,
1583,
29889,
8391,
29918,
29277,
353,
15359,
13,
4706,
1583,
3032,
265,
29918,
26065,
29918,
3167,
580,
13,
13,
1678,
822,
903,
265,
29918,
12007,
29898,
1311,
1125,
13,
4706,
1583,
3032,
6915,
29918,
13604,
580,
13,
4706,
1583,
3032,
17590,
353,
5852,
13,
4706,
1583,
3032,
265,
29918,
26065,
29918,
3167,
580,
13,
4706,
363,
7546,
297,
1583,
29889,
8391,
29918,
29277,
29901,
13,
9651,
7546,
29889,
13604,
29889,
845,
9382,
580,
13,
13,
1678,
822,
903,
265,
29918,
20472,
29898,
1311,
1125,
13,
4706,
1583,
3032,
2218,
6915,
29918,
13604,
580,
13,
13,
1678,
732,
6799,
13,
1678,
822,
4629,
29918,
29277,
29898,
1311,
29897,
1599,
2391,
29961,
8971,
1306,
29889,
29277,
29889,
18498,
2161,
5387,
13,
4706,
736,
1583,
3032,
8391,
29918,
29277,
13,
13,
1678,
732,
8391,
29918,
29277,
29889,
842,
357,
13,
1678,
822,
4629,
29918,
29277,
29898,
1311,
29892,
15359,
29901,
2391,
29961,
8971,
1306,
29889,
29277,
29889,
18498,
2161,
29962,
1125,
13,
4706,
565,
338,
8758,
29898,
29277,
29892,
9709,
1306,
29889,
29277,
29889,
3188,
29889,
14420,
1125,
13,
9651,
15359,
353,
518,
29277,
29962,
13,
4706,
1583,
3032,
8391,
29918,
13148,
29918,
20119,
29879,
353,
518,
13,
9651,
679,
29918,
8971,
1306,
29918,
20119,
29898,
29894,
15580,
29922,
1311,
3032,
29894,
15580,
29892,
7546,
29922,
13148,
29897,
363,
7546,
297,
15359,
13,
4706,
4514,
13,
4706,
1583,
3032,
8391,
29918,
29277,
353,
15359,
13,
13,
1678,
732,
6799,
13,
1678,
822,
4629,
29918,
13148,
29918,
20119,
29879,
29898,
1311,
1125,
13,
4706,
736,
1583,
3032,
8391,
29918,
13148,
29918,
20119,
29879,
13,
13,
1678,
822,
903,
265,
29918,
26065,
29918,
3167,
29898,
1311,
29892,
1741,
29922,
8516,
1125,
13,
4706,
565,
1583,
29889,
17590,
338,
7700,
29901,
13,
9651,
396,
871,
2767,
3578,
292,
5305,
565,
9615,
13,
9651,
736,
13,
4706,
1776,
29918,
20845,
353,
7442,
29889,
294,
2378,
29898,
1311,
3032,
29894,
15580,
29889,
26065,
29889,
1493,
29918,
20845,
29897,
13,
13,
4706,
363,
7546,
29892,
7604,
297,
14319,
29898,
1311,
29889,
8391,
29918,
29277,
29892,
1583,
29889,
8391,
29918,
13148,
29918,
20119,
29879,
1125,
13,
9651,
3964,
29879,
29918,
4990,
287,
353,
7546,
3032,
6229,
29879,
29918,
4990,
287,
13,
9651,
7546,
29918,
1493,
29918,
20845,
353,
7442,
29889,
294,
2378,
29898,
13148,
3032,
11526,
29918,
517,
29918,
1272,
29918,
764,
29898,
1493,
29918,
20845,
876,
29961,
6229,
29879,
29918,
4990,
287,
29962,
13,
9651,
7604,
29889,
3177,
29889,
845,
9382,
29918,
4572,
29889,
4366,
29918,
3972,
353,
7546,
29918,
1493,
29918,
20845,
29961,
1057,
29899,
29896,
29962,
13,
13,
1678,
822,
903,
6915,
29918,
13604,
29898,
1311,
1125,
13,
4706,
1583,
3032,
29894,
15580,
29889,
26065,
29889,
13604,
29889,
19536,
29889,
6915,
29898,
1311,
3032,
265,
29918,
26065,
29918,
3167,
29897,
13,
13,
1678,
822,
903,
2218,
6915,
29918,
13604,
29898,
1311,
1125,
13,
4706,
1583,
3032,
29894,
15580,
29889,
26065,
29889,
13604,
29889,
19536,
29889,
2218,
6915,
29898,
1311,
3032,
265,
29918,
26065,
29918,
3167,
29897,
13,
2
] |
tests/test_cli.py | kids-first/kf-model-omop | 0 | 61428 | <gh_stars>0
import os
from sqlalchemy import inspect, create_engine
from click.testing import CliRunner
from kf_model_omop import cli
from kf_model_omop.config import config as config_dict, APP_CONFIG_ENV_VAR
from kf_model_omop.factory.utils import auto_gen_models
env = {APP_CONFIG_ENV_VAR: 'testing'}
def test_create_omop():
"""
Test create omop db
"""
runner = CliRunner()
result = runner.invoke(cli.create_omop, [], env=env)
assert result.exit_code == 0
config = config_dict.get('testing')
engine = create_engine(config.SQLALCHEMY_DATABASE_URI)
inspector = inspect(engine)
assert len(inspector.get_table_names()) == 37
def test_code_template(tmpdir):
"""
Test cli command code-template
"""
# Create temp file
fn = tmpdir.mkdir("data")
expected_file = os.path.join(str(fn), 'loader.py')
# Gen code template
runner = CliRunner()
result = runner.invoke(cli.generate_code_template,
['-o', str(fn)], env=env)
assert result.exit_code == 0
assert os.path.isfile(expected_file)
# Update file
with open(expected_file, 'w') as f:
f.write('print("hello world!")')
# Try to generate file again
result = runner.invoke(cli.generate_code_template,
['-o', str(fn)], env=env)
assert 'already exists' in result.stdout
assert result.exit_code == 0
# Check file
with open(expected_file, 'r') as f:
assert 'hello world!' in f.read()
def test_list_tables():
"""
Test list tables
"""
runner = CliRunner()
result = runner.invoke(cli.list_tables, [], env=env)
assert 'concept' in result.stdout
assert result.exit_code == 0
def test_auto_gen_models(tmpdir_factory):
"""
Test cli command code-template
"""
# Create temp file
fn = tmpdir_factory.mktemp("data").join('models.py')
expected_file = str(fn)
# Autogen models
auto_gen_models(config_name='testing', refresh_schema=True,
model_filepath=expected_file)
assert os.path.isfile(expected_file)
# Check content
with open(expected_file, 'r') as f:
content = f.read()
# assert 'ModelMixins' in content
assert 'metadata' in content
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
2897,
13,
13,
3166,
4576,
284,
305,
6764,
1053,
16096,
29892,
1653,
29918,
10599,
13,
3166,
2828,
29889,
13424,
1053,
315,
492,
16802,
13,
13,
3166,
413,
29888,
29918,
4299,
29918,
290,
459,
1053,
9335,
13,
3166,
413,
29888,
29918,
4299,
29918,
290,
459,
29889,
2917,
1053,
2295,
408,
2295,
29918,
8977,
29892,
12279,
29925,
29918,
25903,
29918,
25838,
29918,
26865,
13,
3166,
413,
29888,
29918,
4299,
29918,
290,
459,
29889,
14399,
29889,
13239,
1053,
4469,
29918,
1885,
29918,
9794,
13,
13,
6272,
353,
426,
20576,
29918,
25903,
29918,
25838,
29918,
26865,
29901,
525,
13424,
10827,
13,
13,
13,
1753,
1243,
29918,
3258,
29918,
290,
459,
7295,
13,
1678,
9995,
13,
1678,
4321,
1653,
2703,
459,
4833,
13,
1678,
9995,
13,
1678,
28877,
353,
315,
492,
16802,
580,
13,
1678,
1121,
353,
28877,
29889,
9772,
29898,
11303,
29889,
3258,
29918,
290,
459,
29892,
19997,
8829,
29922,
6272,
29897,
13,
13,
1678,
4974,
1121,
29889,
13322,
29918,
401,
1275,
29871,
29900,
13,
13,
1678,
2295,
353,
2295,
29918,
8977,
29889,
657,
877,
13424,
1495,
13,
13,
1678,
6012,
353,
1653,
29918,
10599,
29898,
2917,
29889,
4176,
1964,
3210,
12665,
29979,
29918,
25832,
27982,
29918,
15551,
29897,
13,
1678,
16096,
272,
353,
16096,
29898,
10599,
29897,
13,
13,
1678,
4974,
7431,
29898,
1144,
1103,
272,
29889,
657,
29918,
2371,
29918,
7039,
3101,
1275,
29871,
29941,
29955,
13,
13,
13,
1753,
1243,
29918,
401,
29918,
6886,
29898,
7050,
3972,
1125,
13,
1678,
9995,
13,
1678,
4321,
9335,
1899,
775,
29899,
6886,
13,
1678,
9995,
13,
1678,
396,
6204,
5694,
934,
13,
1678,
7876,
353,
13128,
3972,
29889,
11256,
3972,
703,
1272,
1159,
13,
1678,
3806,
29918,
1445,
353,
2897,
29889,
2084,
29889,
7122,
29898,
710,
29898,
9144,
511,
525,
12657,
29889,
2272,
1495,
13,
13,
1678,
396,
5739,
775,
4472,
13,
1678,
28877,
353,
315,
492,
16802,
580,
13,
1678,
1121,
353,
28877,
29889,
9772,
29898,
11303,
29889,
17158,
29918,
401,
29918,
6886,
29892,
13,
462,
965,
6024,
29899,
29877,
742,
851,
29898,
9144,
29897,
1402,
8829,
29922,
6272,
29897,
13,
13,
1678,
4974,
1121,
29889,
13322,
29918,
401,
1275,
29871,
29900,
13,
1678,
4974,
2897,
29889,
2084,
29889,
275,
1445,
29898,
9684,
29918,
1445,
29897,
13,
13,
1678,
396,
10318,
934,
13,
1678,
411,
1722,
29898,
9684,
29918,
1445,
29892,
525,
29893,
1495,
408,
285,
29901,
13,
4706,
285,
29889,
3539,
877,
2158,
703,
12199,
3186,
29991,
1159,
1495,
13,
13,
1678,
396,
3967,
304,
5706,
934,
1449,
13,
1678,
1121,
353,
28877,
29889,
9772,
29898,
11303,
29889,
17158,
29918,
401,
29918,
6886,
29892,
13,
462,
965,
6024,
29899,
29877,
742,
851,
29898,
9144,
29897,
1402,
8829,
29922,
6272,
29897,
13,
13,
1678,
4974,
525,
284,
2040,
4864,
29915,
297,
1121,
29889,
25393,
13,
1678,
4974,
1121,
29889,
13322,
29918,
401,
1275,
29871,
29900,
13,
13,
1678,
396,
5399,
934,
13,
1678,
411,
1722,
29898,
9684,
29918,
1445,
29892,
525,
29878,
1495,
408,
285,
29901,
13,
4706,
4974,
525,
12199,
3186,
20714,
297,
285,
29889,
949,
580,
13,
13,
13,
1753,
1243,
29918,
1761,
29918,
24051,
7295,
13,
1678,
9995,
13,
1678,
4321,
1051,
6131,
13,
1678,
9995,
13,
1678,
28877,
353,
315,
492,
16802,
580,
13,
1678,
1121,
353,
28877,
29889,
9772,
29898,
11303,
29889,
1761,
29918,
24051,
29892,
19997,
8829,
29922,
6272,
29897,
13,
13,
1678,
4974,
525,
535,
1547,
29915,
297,
1121,
29889,
25393,
13,
1678,
4974,
1121,
29889,
13322,
29918,
401,
1275,
29871,
29900,
13,
13,
13,
1753,
1243,
29918,
6921,
29918,
1885,
29918,
9794,
29898,
7050,
3972,
29918,
14399,
1125,
13,
1678,
9995,
13,
1678,
4321,
9335,
1899,
775,
29899,
6886,
13,
1678,
9995,
13,
1678,
396,
6204,
5694,
934,
13,
1678,
7876,
353,
13128,
3972,
29918,
14399,
29889,
29885,
1193,
3451,
703,
1272,
2564,
7122,
877,
9794,
29889,
2272,
1495,
13,
1678,
3806,
29918,
1445,
353,
851,
29898,
9144,
29897,
13,
13,
1678,
396,
5202,
6352,
4733,
13,
1678,
4469,
29918,
1885,
29918,
9794,
29898,
2917,
29918,
978,
2433,
13424,
742,
11086,
29918,
11010,
29922,
5574,
29892,
13,
462,
1678,
1904,
29918,
1445,
2084,
29922,
9684,
29918,
1445,
29897,
13,
13,
1678,
4974,
2897,
29889,
2084,
29889,
275,
1445,
29898,
9684,
29918,
1445,
29897,
13,
13,
1678,
396,
5399,
2793,
13,
1678,
411,
1722,
29898,
9684,
29918,
1445,
29892,
525,
29878,
1495,
408,
285,
29901,
13,
4706,
2793,
353,
285,
29889,
949,
580,
13,
4706,
396,
4974,
525,
3195,
29924,
861,
1144,
29915,
297,
2793,
13,
4706,
4974,
525,
19635,
29915,
297,
2793,
13,
2
] |
tilemap.py | AI0702/Among-Us-clone | 0 | 20956 | <filename>tilemap.py
import pygame as pg
from settings import *
import pytmx
class Map:
def __init__(self, filename):
self.data = []
with open(filename, 'rt') as f:
for line in f:
self.data.append(line.strip())
self.tilewidth = len(self.data[0])
self.tileheight = len(self.data)
self.width = self.tilewidth * TILESIZE
self.height = self.tileheight * TILESIZE
class TiledMap:
def __init__(self, filename):
tm = pytmx.load_pygame(filename, pixelalpha=True)
self.width = tm.width * tm.tilewidth
self.height = tm.height * tm.tileheight
self.tmxdata = tm
def render(self, surface):
# tile data
ti = self.tmxdata.get_tile_image_by_gid
# For each layer look for each tile and draw on surface
for layer in self.tmxdata.visible_layers:
if isinstance(layer, pytmx.TiledTileLayer):
for x, y, gid, in layer:
tile = ti(gid)
if tile:
surface.blit(tile, (x * self.tmxdata.tilewidth,
y * self.tmxdata.tileheight))
def make_map(self):
temp_surface = pg.Surface((self.width, self.height))
self.render(temp_surface)
return temp_surface
class Camera:
def __init__(self, width, height):
self.camera = pg.Rect(0, 0, width, height)
self.width = width
self.height = height
def apply(self, entity):
# Move rectangle according to camera coordinates are
return entity.rect.move(self.camera.topleft)
def apply_rect(self, rect):
return rect.move(self.camera.topleft)
def update(self, player_sprite):
# center player sprite on screen
x = -player_sprite.rect.x + int(WIDTH / 2)
y = -player_sprite.rect.y + int(HEIGHT / 2)
# Limit the map scrolling when sprite reaches end point of map
# For left boundary
x = min(0, x)
# For right boundary
x = max(-(self.width - WIDTH), x)
# For top boundary
y = min(0, y) # checks if y < 0
# For bottom boundary
y = max(-(self.height - HEIGHT), y)
# Adjust camera rectangle
self.camera = pg.Rect(x, y, self.width, self.height)
| [
1,
529,
9507,
29958,
29873,
488,
1958,
29889,
2272,
13,
5215,
22028,
408,
23822,
30004,
13,
3166,
6055,
1053,
334,
30004,
13,
5215,
282,
3637,
16838,
30004,
13,
30004,
13,
30004,
13,
1990,
7315,
29901,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
10422,
1125,
30004,
13,
4706,
1583,
29889,
1272,
353,
5159,
30004,
13,
4706,
411,
1722,
29898,
9507,
29892,
525,
2273,
1495,
408,
285,
29901,
30004,
13,
9651,
363,
1196,
297,
285,
29901,
30004,
13,
18884,
1583,
29889,
1272,
29889,
4397,
29898,
1220,
29889,
17010,
3101,
30004,
13,
30004,
13,
4706,
1583,
29889,
29873,
488,
2103,
353,
7431,
29898,
1311,
29889,
1272,
29961,
29900,
2314,
30004,
13,
4706,
1583,
29889,
29873,
488,
3545,
353,
7431,
29898,
1311,
29889,
1272,
8443,
13,
4706,
1583,
29889,
2103,
353,
1583,
29889,
29873,
488,
2103,
334,
323,
29902,
1307,
14226,
30004,
13,
4706,
1583,
29889,
3545,
353,
1583,
29889,
29873,
488,
3545,
334,
323,
29902,
1307,
14226,
30004,
13,
30004,
13,
30004,
13,
1990,
323,
2356,
3388,
29901,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
10422,
1125,
30004,
13,
4706,
27702,
353,
282,
3637,
16838,
29889,
1359,
29918,
2272,
11802,
29898,
9507,
29892,
15526,
2312,
29922,
5574,
8443,
13,
4706,
1583,
29889,
2103,
353,
27702,
29889,
2103,
334,
27702,
29889,
29873,
488,
2103,
30004,
13,
4706,
1583,
29889,
3545,
353,
27702,
29889,
3545,
334,
27702,
29889,
29873,
488,
3545,
30004,
13,
4706,
1583,
29889,
29873,
16838,
1272,
353,
27702,
30004,
13,
30004,
13,
1678,
822,
4050,
29898,
1311,
29892,
7101,
1125,
30004,
13,
4706,
396,
25900,
848,
30004,
13,
4706,
19538,
353,
1583,
29889,
29873,
16838,
1272,
29889,
657,
29918,
29873,
488,
29918,
3027,
29918,
1609,
29918,
29887,
333,
30004,
13,
4706,
396,
1152,
1269,
7546,
1106,
363,
1269,
25900,
322,
4216,
373,
7101,
30004,
13,
4706,
363,
7546,
297,
1583,
29889,
29873,
16838,
1272,
29889,
12872,
29918,
29277,
29901,
30004,
13,
9651,
565,
338,
8758,
29898,
13148,
29892,
282,
3637,
16838,
29889,
29911,
2356,
29911,
488,
14420,
1125,
30004,
13,
18884,
363,
921,
29892,
343,
29892,
330,
333,
29892,
297,
7546,
29901,
30004,
13,
462,
1678,
25900,
353,
19538,
29898,
29887,
333,
8443,
13,
462,
1678,
565,
25900,
29901,
30004,
13,
462,
4706,
7101,
29889,
2204,
277,
29898,
29873,
488,
29892,
313,
29916,
334,
1583,
29889,
29873,
16838,
1272,
29889,
29873,
488,
2103,
11167,
13,
462,
462,
9651,
343,
334,
1583,
29889,
29873,
16838,
1272,
29889,
29873,
488,
3545,
876,
30004,
13,
1678,
822,
1207,
29918,
1958,
29898,
1311,
1125,
30004,
13,
4706,
5694,
29918,
7610,
2161,
353,
23822,
29889,
18498,
2161,
3552,
1311,
29889,
2103,
29892,
1583,
29889,
3545,
876,
30004,
13,
4706,
1583,
29889,
9482,
29898,
7382,
29918,
7610,
2161,
8443,
13,
4706,
736,
5694,
29918,
7610,
2161,
30004,
13,
30004,
13,
30004,
13,
1990,
24321,
29901,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
2920,
29892,
3171,
1125,
30004,
13,
4706,
1583,
29889,
26065,
353,
23822,
29889,
7364,
29898,
29900,
29892,
29871,
29900,
29892,
2920,
29892,
3171,
8443,
13,
4706,
1583,
29889,
2103,
353,
2920,
30004,
13,
4706,
1583,
29889,
3545,
353,
3171,
30004,
13,
30004,
13,
1678,
822,
3394,
29898,
1311,
29892,
7855,
1125,
30004,
13,
4706,
396,
25249,
16701,
5034,
304,
10656,
10350,
526,
30004,
13,
4706,
736,
7855,
29889,
1621,
29889,
11631,
29898,
1311,
29889,
26065,
29889,
3332,
1563,
8443,
13,
30004,
13,
1678,
822,
3394,
29918,
1621,
29898,
1311,
29892,
7705,
1125,
30004,
13,
4706,
736,
7705,
29889,
11631,
29898,
1311,
29889,
26065,
29889,
3332,
1563,
8443,
13,
30004,
13,
1678,
822,
2767,
29898,
1311,
29892,
4847,
29918,
15099,
568,
1125,
30004,
13,
4706,
396,
4818,
4847,
29227,
373,
4315,
30004,
13,
4706,
921,
353,
448,
9106,
29918,
15099,
568,
29889,
1621,
29889,
29916,
718,
938,
29898,
22574,
847,
29871,
29906,
8443,
13,
4706,
343,
353,
448,
9106,
29918,
15099,
568,
29889,
1621,
29889,
29891,
718,
938,
29898,
9606,
22530,
847,
29871,
29906,
8443,
13,
30004,
13,
4706,
396,
9628,
277,
278,
2910,
23064,
746,
29227,
22170,
1095,
1298,
310,
2910,
30004,
13,
4706,
396,
1152,
2175,
10452,
30004,
13,
4706,
921,
353,
1375,
29898,
29900,
29892,
921,
8443,
13,
4706,
396,
1152,
1492,
10452,
30004,
13,
4706,
921,
353,
4236,
6278,
29898,
1311,
29889,
2103,
448,
399,
1367,
4690,
511,
921,
8443,
13,
4706,
396,
1152,
2246,
10452,
30004,
13,
4706,
343,
353,
1375,
29898,
29900,
29892,
343,
29897,
29871,
396,
12747,
565,
343,
529,
29871,
29900,
30004,
13,
4706,
396,
1152,
5970,
10452,
30004,
13,
4706,
343,
353,
4236,
6278,
29898,
1311,
29889,
3545,
448,
17714,
22530,
511,
343,
8443,
13,
30004,
13,
4706,
396,
2087,
5143,
10656,
16701,
30004,
13,
4706,
1583,
29889,
26065,
353,
23822,
29889,
7364,
29898,
29916,
29892,
343,
29892,
1583,
29889,
2103,
29892,
1583,
29889,
3545,
8443,
13,
2
] |
kick/device2/series3/actions/webserver/__init__.py | CiscoDevNet/firepower-kickstart | 2 | 56137 | """Library to access the webserver."""
import re
import time
import logging
logger = logging.getLogger(__name__)
from unicon.eal.expect import Spawn, TimeoutError
from unicon.utils import AttributeDict
from unicon.eal.dialogs import Dialog
MAX_RETRY_COUNT = 3
class Webserver:
def __init__(self, hostname='AST-INSTALL', login_username='', login_password='',
sudo_password=''):
"""Constructor for Webserver.
:param hostname: hostname for the device
:param login_password: device login password for a user
:param sudo_password: device sudo password for 'root'
:return: None
"""
# set hostname and enable_password
from .constants import WebserverConstants
WebserverConstants.hostname = hostname
WebserverConstants.username = login_username
WebserverConstants.login_password = <PASSWORD>
WebserverConstants.sudo_password = <PASSWORD>
# now that FtdConstants is initialized, create the state machine
# that contains the proper variables
from .statemachine import WebserverStatemachine
self.sm = WebserverStatemachine()
def ssh_vty(self, ip, port='22'):
"""Setup ssh connection to the server.
:param ip: ssh host/ip
:param port: ssh port
:return: ssh_line
"""
from .constants import WebserverConstants
spawn = Spawn('ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no '
'-l {} -p {} {} \n'.format(WebserverConstants.username, port, ip))
d1 = Dialog([
['continue connecting (yes/no)?', 'sendline(yes)', None, True, False],
['(p|P)assword:', 'sendline({})'.format(WebserverConstants.login_password),
None, False, False],
])
try:
d1.process(spawn, timeout=60)
spawn.sendline()
except TimeoutError:
pass
ssh_line = WebserverLine(spawn, self.sm, 'ssh_ftd')
return ssh_line
class WebserverLine:
def __init__(self, spawn, sm, type):
"""Constructor for ssh line. Attributes that are None will be set in
rommon_to_new_image()
:param spawn: spawn of the line
:param sm: object of statemachine
:param type: line type, e.g. 'ssh_vty'
:return: object of the line
"""
self.spawn = spawn
self.sm = sm
self.type = type
sm.go_to('any', spawn)
def go_to(self, state):
"""Go to specified state.
:param state: string of the state to go to
:return: None
"""
self.sm.go_to(state, self.spawn)
def execute(self, cmd, timeout=10):
"""Run a command, get the console output. Then exclude the command
echo, and the new prompt to return the content in between.
:param cmd: command to be executed
:param timeout: timeout for the command to be executed, defaulted to 10 seconds
:return: output of the command executed
"""
current_state = self.sm.current_state
current_prompt = self.sm.get_state(current_state).pattern
self.spawn.sendline(cmd)
# expect and trim cmd
# commented for long command
# output_cmd = self.spawn.expect(cmd, timeout=timeout).last_match.string
# expect and trim current_prompt
output = self.spawn.expect(current_prompt,
timeout=timeout).last_match.string
logger.debug("before trimming in execute(): {}".format(output))
r = re.search(current_prompt, output)
end = r.span()[0]
return_data = output[:end].strip()
return return_data
def execute_lines(self, cmd_lines, timeout=10):
"""When given a string of multiple lines, run them one by one and
return the result for the last line.
:param cmd_lines: commands to be executed line by line
:param timeout: timeout for individual command to be executed,
defaulted to 10 seconds
:return: output of the last command executed
"""
for cmd in cmd_lines.split('\n'):
cmd = cmd.strip()
if cmd == "":
continue # empty line
return_data = self.execute(cmd, timeout=timeout)
return return_data
def disconnect(self):
"""Disconnect the session.
:return: None
"""
if self.type == 'ssh_vty':
self.sm.go_to('user_state', self.spawn)
self.spawn.sendline('exit')
self.spawn.expect('closed.')
logger.info('ssh to ftd connection disconnected')
| [
1,
9995,
12284,
304,
2130,
278,
1856,
2974,
1213,
15945,
13,
5215,
337,
13,
5215,
931,
13,
5215,
12183,
13,
21707,
353,
12183,
29889,
657,
16363,
22168,
978,
1649,
29897,
13,
13,
3166,
443,
4144,
29889,
29872,
284,
29889,
17854,
1053,
1706,
18101,
29892,
5974,
449,
2392,
13,
3166,
443,
4144,
29889,
13239,
1053,
23833,
21533,
13,
3166,
443,
4144,
29889,
29872,
284,
29889,
15901,
29879,
1053,
18878,
13,
13,
12648,
29918,
1525,
5659,
29979,
29918,
18736,
353,
29871,
29941,
13,
13,
13,
1990,
2563,
2974,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
3495,
978,
2433,
28938,
29899,
25580,
9818,
742,
6464,
29918,
6786,
2433,
742,
6464,
29918,
5630,
2433,
742,
13,
462,
9196,
29918,
5630,
2433,
29374,
13,
4706,
9995,
23770,
363,
2563,
2974,
29889,
13,
13,
4706,
584,
3207,
3495,
978,
29901,
3495,
978,
363,
278,
4742,
13,
4706,
584,
3207,
6464,
29918,
5630,
29901,
4742,
6464,
4800,
363,
263,
1404,
13,
4706,
584,
3207,
9196,
29918,
5630,
29901,
4742,
9196,
4800,
363,
525,
4632,
29915,
13,
4706,
584,
2457,
29901,
6213,
13,
13,
4706,
9995,
13,
13,
4706,
396,
731,
3495,
978,
322,
9025,
29918,
5630,
13,
4706,
515,
869,
3075,
1934,
1053,
2563,
2974,
26570,
13,
4706,
2563,
2974,
26570,
29889,
28988,
353,
3495,
978,
13,
4706,
2563,
2974,
26570,
29889,
6786,
353,
6464,
29918,
6786,
13,
4706,
2563,
2974,
26570,
29889,
7507,
29918,
5630,
353,
529,
25711,
17013,
29958,
13,
4706,
2563,
2974,
26570,
29889,
15360,
29918,
5630,
353,
529,
25711,
17013,
29958,
13,
13,
4706,
396,
1286,
393,
383,
1594,
26570,
338,
16601,
29892,
1653,
278,
2106,
4933,
13,
4706,
396,
393,
3743,
278,
1571,
3651,
13,
13,
4706,
515,
869,
6112,
331,
2945,
1053,
2563,
2974,
9513,
331,
2945,
13,
4706,
1583,
29889,
3844,
353,
2563,
2974,
9513,
331,
2945,
580,
13,
13,
1678,
822,
13927,
29918,
29894,
1017,
29898,
1311,
29892,
10377,
29892,
2011,
2433,
29906,
29906,
29374,
13,
4706,
9995,
26947,
13927,
3957,
304,
278,
1923,
29889,
13,
13,
4706,
584,
3207,
10377,
29901,
13927,
3495,
29914,
666,
13,
4706,
584,
3207,
2011,
29901,
13927,
2011,
13,
4706,
584,
2457,
29901,
13927,
29918,
1220,
13,
13,
4706,
9995,
13,
308,
13,
4706,
515,
869,
3075,
1934,
1053,
2563,
2974,
26570,
13,
4706,
29178,
353,
1706,
18101,
877,
15269,
448,
29877,
4911,
29968,
21369,
8514,
29879,
2283,
14327,
3359,
29914,
4304,
448,
29877,
3767,
919,
8514,
2558,
5596,
292,
29922,
1217,
525,
13,
462,
418,
17411,
29880,
6571,
448,
29886,
6571,
6571,
320,
29876,
4286,
4830,
29898,
3609,
2974,
26570,
29889,
6786,
29892,
2011,
29892,
10377,
876,
13,
4706,
270,
29896,
353,
18878,
4197,
13,
9651,
6024,
19878,
16791,
313,
3582,
29914,
1217,
6877,
742,
525,
6717,
1220,
29898,
3582,
29897,
742,
6213,
29892,
5852,
29892,
7700,
1402,
13,
9651,
6024,
29898,
29886,
29989,
29925,
29897,
465,
1742,
29901,
742,
525,
6717,
1220,
3319,
1800,
4286,
4830,
29898,
3609,
2974,
26570,
29889,
7507,
29918,
5630,
511,
13,
632,
6213,
29892,
7700,
29892,
7700,
1402,
13,
308,
2314,
13,
4706,
1018,
29901,
13,
9651,
270,
29896,
29889,
5014,
29898,
1028,
18101,
29892,
11815,
29922,
29953,
29900,
29897,
13,
9651,
29178,
29889,
6717,
1220,
580,
13,
4706,
5174,
5974,
449,
2392,
29901,
13,
9651,
1209,
13,
13,
4706,
13927,
29918,
1220,
353,
2563,
2974,
3542,
29898,
1028,
18101,
29892,
1583,
29889,
3844,
29892,
525,
15269,
29918,
615,
29881,
1495,
13,
4706,
736,
13927,
29918,
1220,
13,
13,
13,
1990,
2563,
2974,
3542,
29901,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
29178,
29892,
1560,
29892,
1134,
1125,
13,
4706,
9995,
23770,
363,
13927,
1196,
29889,
6212,
5026,
393,
526,
6213,
674,
367,
731,
297,
13,
4706,
364,
3011,
265,
29918,
517,
29918,
1482,
29918,
3027,
580,
13,
13,
4706,
584,
3207,
29178,
29901,
29178,
310,
278,
1196,
13,
4706,
584,
3207,
1560,
29901,
1203,
310,
1002,
331,
2945,
13,
4706,
584,
3207,
1134,
29901,
1196,
1134,
29892,
321,
29889,
29887,
29889,
525,
15269,
29918,
29894,
1017,
29915,
13,
4706,
584,
2457,
29901,
1203,
310,
278,
1196,
13,
13,
4706,
9995,
13,
13,
4706,
1583,
29889,
1028,
18101,
353,
29178,
13,
4706,
1583,
29889,
3844,
353,
1560,
13,
4706,
1583,
29889,
1853,
353,
1134,
13,
4706,
1560,
29889,
1484,
29918,
517,
877,
1384,
742,
29178,
29897,
13,
13,
1678,
822,
748,
29918,
517,
29898,
1311,
29892,
2106,
1125,
13,
4706,
9995,
8120,
304,
6790,
2106,
29889,
13,
13,
4706,
584,
3207,
2106,
29901,
1347,
310,
278,
2106,
304,
748,
304,
13,
4706,
584,
2457,
29901,
6213,
13,
13,
4706,
9995,
13,
13,
4706,
1583,
29889,
3844,
29889,
1484,
29918,
517,
29898,
3859,
29892,
1583,
29889,
1028,
18101,
29897,
13,
13,
1678,
822,
6222,
29898,
1311,
29892,
9920,
29892,
11815,
29922,
29896,
29900,
1125,
13,
4706,
9995,
6558,
263,
1899,
29892,
679,
278,
2991,
1962,
29889,
1987,
19060,
278,
1899,
13,
4706,
2916,
29892,
322,
278,
716,
9508,
304,
736,
278,
2793,
297,
1546,
29889,
13,
13,
4706,
584,
3207,
9920,
29901,
1899,
304,
367,
8283,
13,
4706,
584,
3207,
11815,
29901,
11815,
363,
278,
1899,
304,
367,
8283,
29892,
2322,
287,
304,
29871,
29896,
29900,
6923,
13,
4706,
584,
2457,
29901,
1962,
310,
278,
1899,
8283,
13,
13,
4706,
9995,
13,
13,
4706,
1857,
29918,
3859,
353,
1583,
29889,
3844,
29889,
3784,
29918,
3859,
13,
4706,
1857,
29918,
14032,
415,
353,
1583,
29889,
3844,
29889,
657,
29918,
3859,
29898,
3784,
29918,
3859,
467,
11037,
13,
13,
4706,
1583,
29889,
1028,
18101,
29889,
6717,
1220,
29898,
9006,
29897,
13,
4706,
396,
2149,
322,
17151,
9920,
13,
4706,
396,
19952,
363,
1472,
1899,
13,
4706,
396,
1962,
29918,
9006,
353,
1583,
29889,
1028,
18101,
29889,
17854,
29898,
9006,
29892,
11815,
29922,
15619,
467,
4230,
29918,
4352,
29889,
1807,
13,
4706,
396,
2149,
322,
17151,
1857,
29918,
14032,
415,
13,
4706,
1962,
353,
1583,
29889,
1028,
18101,
29889,
17854,
29898,
3784,
29918,
14032,
415,
29892,
13,
462,
462,
259,
11815,
29922,
15619,
467,
4230,
29918,
4352,
29889,
1807,
13,
13,
4706,
17927,
29889,
8382,
703,
11083,
17151,
4056,
297,
6222,
7295,
6571,
1642,
4830,
29898,
4905,
876,
13,
13,
4706,
364,
353,
337,
29889,
4478,
29898,
3784,
29918,
14032,
415,
29892,
1962,
29897,
13,
4706,
1095,
353,
364,
29889,
9653,
580,
29961,
29900,
29962,
13,
13,
4706,
736,
29918,
1272,
353,
1962,
7503,
355,
1822,
17010,
580,
13,
13,
4706,
736,
736,
29918,
1272,
13,
13,
1678,
822,
6222,
29918,
9012,
29898,
1311,
29892,
9920,
29918,
9012,
29892,
11815,
29922,
29896,
29900,
1125,
13,
4706,
9995,
10401,
2183,
263,
1347,
310,
2999,
3454,
29892,
1065,
963,
697,
491,
697,
322,
13,
4706,
736,
278,
1121,
363,
278,
1833,
1196,
29889,
13,
13,
4706,
584,
3207,
9920,
29918,
9012,
29901,
8260,
304,
367,
8283,
1196,
491,
1196,
13,
4706,
584,
3207,
11815,
29901,
11815,
363,
5375,
1899,
304,
367,
8283,
29892,
13,
462,
4706,
2322,
287,
304,
29871,
29896,
29900,
6923,
13,
4706,
584,
2457,
29901,
1962,
310,
278,
1833,
1899,
8283,
13,
13,
4706,
9995,
13,
13,
4706,
363,
9920,
297,
9920,
29918,
9012,
29889,
5451,
28909,
29876,
29374,
13,
9651,
9920,
353,
9920,
29889,
17010,
580,
13,
9651,
565,
9920,
1275,
376,
1115,
13,
18884,
6773,
396,
4069,
1196,
13,
9651,
736,
29918,
1272,
353,
1583,
29889,
7978,
29898,
9006,
29892,
11815,
29922,
15619,
29897,
13,
13,
4706,
736,
736,
29918,
1272,
13,
13,
1678,
822,
766,
6915,
29898,
1311,
1125,
13,
4706,
9995,
4205,
6915,
278,
4867,
29889,
13,
13,
4706,
584,
2457,
29901,
6213,
13,
13,
4706,
9995,
13,
13,
4706,
565,
1583,
29889,
1853,
1275,
525,
15269,
29918,
29894,
1017,
2396,
13,
9651,
1583,
29889,
3844,
29889,
1484,
29918,
517,
877,
1792,
29918,
3859,
742,
1583,
29889,
1028,
18101,
29897,
13,
9651,
1583,
29889,
1028,
18101,
29889,
6717,
1220,
877,
13322,
1495,
13,
9651,
1583,
29889,
1028,
18101,
29889,
17854,
877,
15603,
29889,
1495,
13,
9651,
17927,
29889,
3888,
877,
15269,
304,
285,
1594,
3957,
766,
18045,
1495,
13,
13,
2
] |
expenseManager/app/UtilGp.py | PacktPublishing/Python-Programming | 0 | 1604864 | <filename>expenseManager/app/UtilGp.py
from datetime import datetime,timedelta
from os import system, name
from time import sleep
import re
import random
class UtilGp:
@staticmethod
def clear():
if name == 'nt': #windows
_ = system('cls')
else: #mac,linux
_ = system('clear')
@staticmethod
def dateToStr(valueDate,formatStr = '%d-%m-%Y'):
strDate = valueDate.strftime(formatStr)
return strDate
@staticmethod
def strToDate(strDate,formatStr = '%d-%m-%Y %H:%M:%S'):
valueDate = datetime.strptime(strDate,formatStr)
return valueDate
@staticmethod
def now():
valueNow = datetime.strptime(datetime.now().strftime("%d-%m-%Y %H:%M:%S"),"%d-%m-%Y %H:%M:%S")
return valueNow
@staticmethod
def dateAddDays(valueDate,valueDays):
resDate = valueDate + timedelta(days=valueDays)
return resDate
@staticmethod
def age(dob):
today = UtilGp.now()
years = today.year - dob.year
if today.month < dob.month or (today.month == dob.month and today.day < dob.day):
years -= 1
return years
@staticmethod
def isValidDate(strDate,formatStr='%d-%m-%Y'):
try:
valueDate = UtilGp.strToDate(strDate,formatStr)
return True
except:
return False
@staticmethod
def isValidDigit(strNo,isExactLen=True,noOfDigits=10):
return str(strNo).isdigit() and \
((not isExactLen) or
(isExactLen and len(strNo) == noOfDigits))
@staticmethod
def numberInput(prompt,isExactLen=False,noOfDigits=5):
strNo = input(prompt)
if not UtilGp.isValidDigit(strNo,isExactLen,noOfDigits): return(False,0)
return (True, int(strNo))
@staticmethod
def sleep(sec):
sleep(sec-1)
pass
@staticmethod
def randNo(startNo, endNo, stepValue, isExcluded=False):
endNo=endNo/stepValue
startNo=startNo/stepValue
if startNo==0: startNo=1
if isExcluded:
startNo+=1 #startNo+1 to endNo-1
else:
endNo+=1 #startNo to endNo
return random.randint(startNo,endNo)*stepValue # Generate randNo here
@staticmethod
def parseItemMsg(valueItem,passCode,creditBal):
# :price :tranMonYear :priceInput(msg) :item :tranNextDate :tranDate
#print(valueItem.category,valueItem.subCategory,valueItem.itemName)
isTranSuccess=True
SuccessCode=0
newPrice = 0
if valueItem.itemType==1:
nos = re.split('-|,', valueItem.priceRange)
#print(result)
#print(nos)
newPrice = UtilGp.randNo(int(nos[0]),int(nos[1]),int(nos[2]),True)
isNewPrice = True
printPrice = newPrice
else:
printPrice = valueItem.price
isNewPrice=False
msg = valueItem.msg
msgLines = msg.split("\n")
nowValue = UtilGp.now()
nowValuePlOne = UtilGp.dateAddDays(nowValue,1)
for line in msgLines:
line = str(line).replace(":price","Rs.%.2f"%(printPrice,))
line = str(line).replace(":item", valueItem.itemName)
line = str(line).replace(":tranMonYear", UtilGp.dateToStr(nowValue,'%b-%Y'))
line = str(line).replace(":tranNextDate", UtilGp.dateToStr(nowValuePlOne, '%d-%m-%Y'))
line = str(line).replace(":tranDate", UtilGp.dateToStr(nowValue, '%d-%m-%Y'))
if line.startswith(":inputPrice"):
newPrice = float(input("Enter Amount:"))
printPrice=newPrice
isNewPrice=True
elif line.startswith(":pinConfirm"):
if printPrice>creditBal:
isTranSuccess = False
SuccessCode = 1
else:
from getpass import getpass
resPassCode = getpass("Confirm Your PIN:")
print()
if passCode!=resPassCode:
isTranSuccess=False
SuccessCode = 2
break
else:
print(line)
ret = (isTranSuccess,SuccessCode,valueItem,isNewPrice,printPrice)
#print(ret[0])
return ret
@staticmethod
def mainMenu():
UtilGp.sleep(2)
UtilGp.clear()
from frmPageHome import Home
from frmPageApplyCard import ApplyCard
from frmPageShop import Shop
from frmPageReport import Report
choice=Home.show()
if choice== 1:
ApplyCard.show()
elif choice == 2:
Shop.show()
elif choice == 3:
Report.show()
@staticmethod
def startApp():
UtilGp.clear();
from dBase import ndb
ndb.loadItemCard()
UtilGp.mainMenu()
@staticmethod
def Login(fnToCall,tranLoader,pageTitle='Login'):
from dBase import ndb
ndb.loadItemCard()
UtilGp.clear();UtilGp.title(pageTitle)
from CardData import DbCardData
from dBase import ndb
from frmPageShop import Shop
cardNo = input("Enter your card number:")
vRet = DbCardData.getCardObject(ndb.dbCard, cardNo)
# print(vRet)
if vRet[0]:
valueCard = vRet[1]
from getpass import getpass
passCode = getpass("Enter your PIN:")
# print("%s %s" % (cardNo, passCode))
if valueCard.passCode == passCode:
ndb.IsLoggedIn = True;
ndb.logInCard = valueCard;
tranLoader(valueCard, True)
fnToCall() #Shop.showCat()
else:
print("Incorrect PIN")
Shop.showFailure()
else:
print("\nCard does not exits.\n")
Shop.showFailure()
@staticmethod
def centerText(text):
text=str(text)
l=len(text)
sp=(79-len(text))//2
return text.ljust(sp+l,' ').rjust(sp*2+l,' ')
@staticmethod
def linePrint(text='-',spaces=79):
print(text.ljust(spaces,text))
@staticmethod
def title(screenName):
titleCaption = "Expense Manager" + '-' + screenName
UtilGp.linePrint()
print("%s" % (UtilGp.centerText(titleCaption)))
UtilGp.linePrint()
#UtilGp.printCaptionData(('A','B'),('1000','Welcome'),20)
@staticmethod
def priceToStr(price):
return 'Rs.%7.2f' % (price,)
@staticmethod
def creditLine():
from dBase import ndb
vCard = ndb.logInCard
print("%s" % (UtilGp.centerText("Credit Limit Used:%s\tCredit Limit Available:%s"%(UtilGp.priceToStr(vCard.creditUsed),UtilGp.priceToStr(vCard.creditBal())))))
UtilGp.linePrint()
#UtilGp.printCaptionData(('A','B'),('1000','Welcome'),20)
@staticmethod
def printCaptionData(caption, data, colonAt=40):
sp1 = colonAt-2
sp2 = 80-colonAt-4
print()
UtilGp.linePrint('*')
for i in range(0,len(caption)):
format ='# %-' + str(sp1) + 's:%-' + str(sp2) + 's #'
print(format%(caption[i],data[i]))
UtilGp.linePrint('*')
print()
| [
1,
529,
9507,
29958,
4548,
1947,
3260,
29914,
932,
29914,
7270,
29954,
29886,
29889,
2272,
13,
3166,
12865,
1053,
12865,
29892,
9346,
287,
2554,
13,
3166,
2897,
1053,
1788,
29892,
1024,
13,
3166,
931,
1053,
8709,
13,
5215,
337,
13,
5215,
4036,
13,
13,
1990,
22310,
29954,
29886,
29901,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
2821,
7295,
13,
4706,
565,
1024,
1275,
525,
593,
2396,
396,
10499,
13,
9651,
903,
353,
1788,
877,
25932,
1495,
13,
4706,
1683,
29901,
396,
8628,
29892,
9389,
13,
9651,
903,
353,
1788,
877,
8551,
1495,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
2635,
1762,
5015,
29898,
1767,
2539,
29892,
4830,
5015,
353,
14210,
29881,
19222,
29885,
19222,
29979,
29374,
13,
4706,
851,
2539,
353,
995,
2539,
29889,
710,
615,
603,
29898,
4830,
5015,
29897,
13,
4706,
736,
851,
2539,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
851,
1762,
2539,
29898,
710,
2539,
29892,
4830,
5015,
353,
14210,
29881,
19222,
29885,
19222,
29979,
1273,
29950,
16664,
29924,
16664,
29903,
29374,
13,
4706,
995,
2539,
353,
12865,
29889,
710,
415,
603,
29898,
710,
2539,
29892,
4830,
5015,
29897,
13,
4706,
736,
995,
2539,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
1286,
7295,
13,
4706,
995,
10454,
353,
12865,
29889,
710,
415,
603,
29898,
12673,
29889,
3707,
2141,
710,
615,
603,
11702,
29881,
19222,
29885,
19222,
29979,
1273,
29950,
16664,
29924,
16664,
29903,
4968,
29908,
29995,
29881,
19222,
29885,
19222,
29979,
1273,
29950,
16664,
29924,
16664,
29903,
1159,
13,
4706,
736,
995,
10454,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
2635,
2528,
25991,
29898,
1767,
2539,
29892,
1767,
25991,
1125,
13,
4706,
620,
2539,
353,
29871,
995,
2539,
718,
5335,
287,
2554,
29898,
16700,
29922,
1767,
25991,
29897,
13,
4706,
736,
620,
2539,
13,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
5046,
29898,
11152,
1125,
13,
4706,
9826,
353,
22310,
29954,
29886,
29889,
3707,
580,
13,
4706,
2440,
353,
9826,
29889,
6360,
448,
20129,
29889,
6360,
13,
4706,
565,
9826,
29889,
10874,
529,
20129,
29889,
10874,
470,
313,
27765,
29889,
10874,
1275,
20129,
29889,
10874,
322,
9826,
29889,
3250,
529,
20129,
29889,
3250,
1125,
13,
9651,
2440,
22361,
29871,
29896,
13,
4706,
736,
2440,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
338,
7211,
2539,
29898,
710,
2539,
29892,
4830,
5015,
2433,
29995,
29881,
19222,
29885,
19222,
29979,
29374,
13,
4706,
1018,
29901,
13,
9651,
995,
2539,
353,
22310,
29954,
29886,
29889,
710,
1762,
2539,
29898,
710,
2539,
29892,
4830,
5015,
29897,
13,
9651,
736,
5852,
13,
4706,
5174,
29901,
13,
9651,
736,
7700,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
338,
7211,
14991,
277,
29898,
710,
3782,
29892,
275,
1252,
627,
21515,
29922,
5574,
29892,
1217,
2776,
14991,
1169,
29922,
29896,
29900,
1125,
13,
4706,
736,
851,
29898,
710,
3782,
467,
275,
26204,
580,
322,
320,
13,
1669,
5135,
1333,
338,
1252,
627,
21515,
29897,
470,
13,
18884,
313,
275,
1252,
627,
21515,
322,
7431,
29898,
710,
3782,
29897,
1275,
694,
2776,
14991,
1169,
876,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
1353,
4290,
29898,
14032,
415,
29892,
275,
1252,
627,
21515,
29922,
8824,
29892,
1217,
2776,
14991,
1169,
29922,
29945,
1125,
13,
4706,
851,
3782,
353,
1881,
29898,
14032,
415,
29897,
13,
4706,
565,
451,
22310,
29954,
29886,
29889,
275,
7211,
14991,
277,
29898,
710,
3782,
29892,
275,
1252,
627,
21515,
29892,
1217,
2776,
14991,
1169,
1125,
736,
29898,
8824,
29892,
29900,
29897,
13,
4706,
736,
313,
5574,
29892,
938,
29898,
710,
3782,
876,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
8709,
29898,
3471,
1125,
13,
4706,
8709,
29898,
3471,
29899,
29896,
29897,
13,
4706,
1209,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
20088,
3782,
29898,
2962,
3782,
29892,
1095,
3782,
29892,
4331,
1917,
29892,
338,
1252,
13347,
29922,
8824,
1125,
13,
4706,
1095,
3782,
29922,
355,
3782,
29914,
10568,
1917,
13,
4706,
1369,
3782,
29922,
2962,
3782,
29914,
10568,
1917,
13,
4706,
565,
1369,
3782,
1360,
29900,
29901,
1369,
3782,
29922,
29896,
13,
4706,
565,
338,
1252,
13347,
29901,
13,
9651,
1369,
3782,
23661,
29896,
396,
2962,
3782,
29974,
29896,
304,
1095,
3782,
29899,
29896,
13,
4706,
1683,
29901,
13,
9651,
1095,
3782,
23661,
29896,
29871,
396,
2962,
3782,
304,
1095,
3782,
13,
4706,
736,
4036,
29889,
9502,
524,
29898,
2962,
3782,
29892,
355,
3782,
11877,
10568,
1917,
29871,
396,
3251,
403,
20088,
3782,
1244,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
6088,
2001,
16190,
29898,
1767,
2001,
29892,
3364,
3399,
29892,
11944,
277,
22031,
1125,
13,
4706,
396,
584,
9175,
29871,
584,
509,
273,
7185,
12883,
29871,
584,
9175,
4290,
29898,
7645,
29897,
584,
667,
259,
584,
509,
273,
9190,
2539,
584,
509,
273,
2539,
13,
4706,
396,
2158,
29898,
1767,
2001,
29889,
7320,
29892,
1767,
2001,
29889,
1491,
10900,
29892,
1767,
2001,
29889,
667,
1170,
29897,
13,
4706,
338,
29911,
661,
14191,
29922,
5574,
13,
4706,
21397,
3399,
29922,
29900,
13,
4706,
716,
13026,
353,
29871,
29900,
13,
4706,
565,
995,
2001,
29889,
667,
1542,
1360,
29896,
29901,
13,
9651,
7814,
353,
337,
29889,
5451,
877,
29899,
29989,
29892,
742,
995,
2001,
29889,
9175,
6069,
29897,
13,
9651,
396,
2158,
29898,
2914,
29897,
13,
9651,
396,
2158,
29898,
17639,
29897,
13,
9651,
716,
13026,
353,
22310,
29954,
29886,
29889,
9502,
3782,
29898,
524,
29898,
17639,
29961,
29900,
11724,
524,
29898,
17639,
29961,
29896,
11724,
524,
29898,
17639,
29961,
29906,
11724,
5574,
29897,
13,
9651,
338,
4373,
13026,
353,
5852,
13,
9651,
1596,
13026,
353,
716,
13026,
13,
4706,
1683,
29901,
13,
9651,
1596,
13026,
353,
995,
2001,
29889,
9175,
13,
4706,
338,
4373,
13026,
29922,
8824,
13,
4706,
10191,
353,
995,
2001,
29889,
7645,
13,
4706,
10191,
20261,
353,
10191,
29889,
5451,
14182,
29876,
1159,
13,
4706,
1286,
1917,
353,
22310,
29954,
29886,
29889,
3707,
580,
13,
4706,
1286,
1917,
3247,
6716,
353,
22310,
29954,
29886,
29889,
1256,
2528,
25991,
29898,
3707,
1917,
29892,
29896,
29897,
13,
4706,
363,
1196,
297,
10191,
20261,
29901,
13,
9651,
1196,
353,
851,
29898,
1220,
467,
6506,
703,
29901,
9175,
3284,
29934,
29879,
29889,
15543,
29906,
29888,
29908,
29995,
29898,
2158,
13026,
29892,
876,
13,
9651,
1196,
353,
851,
29898,
1220,
467,
6506,
703,
29901,
667,
613,
995,
2001,
29889,
667,
1170,
29897,
13,
9651,
1196,
353,
851,
29898,
1220,
467,
6506,
703,
29901,
509,
273,
7185,
12883,
613,
22310,
29954,
29886,
29889,
1256,
1762,
5015,
29898,
3707,
1917,
5501,
29995,
29890,
19222,
29979,
8785,
13,
9651,
1196,
353,
851,
29898,
1220,
467,
6506,
703,
29901,
509,
273,
9190,
2539,
613,
22310,
29954,
29886,
29889,
1256,
1762,
5015,
29898,
3707,
1917,
3247,
6716,
29892,
14210,
29881,
19222,
29885,
19222,
29979,
8785,
13,
9651,
1196,
353,
851,
29898,
1220,
467,
6506,
703,
29901,
509,
273,
2539,
613,
22310,
29954,
29886,
29889,
1256,
1762,
5015,
29898,
3707,
1917,
29892,
14210,
29881,
19222,
29885,
19222,
29979,
8785,
13,
9651,
565,
1196,
29889,
27382,
2541,
703,
29901,
2080,
13026,
29908,
1125,
13,
18884,
716,
13026,
353,
5785,
29898,
2080,
703,
10399,
1913,
792,
29901,
5783,
13,
18884,
1596,
13026,
29922,
1482,
13026,
13,
18884,
338,
4373,
13026,
29922,
5574,
13,
9651,
25342,
1196,
29889,
27382,
2541,
703,
29901,
12687,
16376,
3568,
29908,
1125,
13,
18884,
565,
1596,
13026,
29958,
11944,
277,
22031,
29901,
13,
462,
1678,
338,
29911,
661,
14191,
353,
7700,
13,
462,
1678,
21397,
3399,
353,
29871,
29896,
13,
18884,
1683,
29901,
13,
462,
1678,
515,
679,
3364,
1053,
679,
3364,
13,
462,
1678,
620,
7129,
3399,
353,
679,
3364,
703,
16376,
3568,
3575,
349,
1177,
29901,
1159,
13,
462,
1678,
1596,
580,
13,
462,
1678,
565,
1209,
3399,
19216,
690,
7129,
3399,
29901,
13,
462,
4706,
338,
29911,
661,
14191,
29922,
8824,
13,
462,
4706,
21397,
3399,
353,
29871,
29906,
13,
462,
4706,
2867,
13,
9651,
1683,
29901,
13,
18884,
1596,
29898,
1220,
29897,
13,
4706,
3240,
353,
313,
275,
29911,
661,
14191,
29892,
14191,
3399,
29892,
1767,
2001,
29892,
275,
4373,
13026,
29892,
2158,
13026,
29897,
13,
4706,
396,
2158,
29898,
2267,
29961,
29900,
2314,
13,
4706,
736,
3240,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
1667,
6823,
7295,
13,
4706,
22310,
29954,
29886,
29889,
17059,
29898,
29906,
29897,
13,
4706,
22310,
29954,
29886,
29889,
8551,
580,
13,
4706,
515,
1424,
29885,
5074,
11184,
1053,
8778,
13,
4706,
515,
1424,
29885,
5074,
2052,
368,
13200,
1053,
2401,
368,
13200,
13,
4706,
515,
1424,
29885,
5074,
2713,
459,
1053,
1383,
459,
13,
4706,
515,
1424,
29885,
5074,
13020,
1053,
13969,
13,
4706,
7348,
29922,
11184,
29889,
4294,
580,
13,
4706,
565,
29871,
7348,
1360,
29871,
29896,
29901,
13,
9651,
2401,
368,
13200,
29889,
4294,
580,
13,
4706,
25342,
7348,
1275,
29871,
29906,
29901,
13,
9651,
1383,
459,
29889,
4294,
580,
13,
4706,
25342,
7348,
1275,
29871,
29941,
29901,
13,
9651,
13969,
29889,
4294,
580,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
1369,
2052,
7295,
13,
4706,
22310,
29954,
29886,
29889,
8551,
890,
13,
4706,
515,
270,
5160,
1053,
29871,
299,
29890,
13,
308,
299,
29890,
29889,
1359,
2001,
13200,
580,
13,
4706,
22310,
29954,
29886,
29889,
3396,
6823,
580,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
19130,
29898,
9144,
1762,
5594,
29892,
509,
273,
10036,
29892,
3488,
7030,
2433,
11049,
29374,
13,
4706,
515,
270,
5160,
1053,
29871,
299,
29890,
13,
308,
299,
29890,
29889,
1359,
2001,
13200,
580,
13,
4706,
22310,
29954,
29886,
29889,
8551,
890,
7270,
29954,
29886,
29889,
3257,
29898,
3488,
7030,
29897,
13,
4706,
515,
9160,
1469,
1053,
24331,
13200,
1469,
13,
4706,
515,
270,
5160,
1053,
29871,
299,
29890,
13,
4706,
515,
1424,
29885,
5074,
2713,
459,
1053,
1383,
459,
13,
4706,
5881,
3782,
353,
1881,
703,
10399,
596,
5881,
1353,
29901,
1159,
13,
4706,
325,
8015,
353,
24331,
13200,
1469,
29889,
657,
13200,
2061,
29898,
299,
29890,
29889,
2585,
13200,
29892,
5881,
3782,
29897,
13,
4706,
396,
1596,
29898,
29894,
8015,
29897,
13,
4706,
565,
325,
8015,
29961,
29900,
5387,
13,
9651,
995,
13200,
353,
325,
8015,
29961,
29896,
29962,
13,
9651,
515,
679,
3364,
1053,
29871,
679,
3364,
13,
9651,
1209,
3399,
353,
679,
3364,
703,
10399,
596,
349,
1177,
29901,
1159,
13,
9651,
396,
1596,
11702,
29879,
1273,
29879,
29908,
1273,
313,
7543,
3782,
29892,
1209,
3399,
876,
13,
9651,
565,
995,
13200,
29889,
3364,
3399,
1275,
1209,
3399,
29901,
13,
462,
299,
29890,
29889,
3624,
3403,
3192,
797,
353,
5852,
29936,
13,
462,
299,
29890,
29889,
1188,
797,
13200,
353,
995,
13200,
29936,
13,
18884,
22024,
10036,
29898,
1767,
13200,
29892,
5852,
29897,
13,
18884,
7876,
1762,
5594,
580,
396,
2713,
459,
29889,
4294,
9694,
580,
13,
9651,
1683,
29901,
13,
18884,
1596,
703,
797,
15728,
349,
1177,
1159,
13,
18884,
1383,
459,
29889,
4294,
24155,
580,
13,
4706,
1683,
29901,
13,
9651,
1596,
14182,
29876,
13200,
947,
451,
429,
1169,
7790,
29876,
1159,
13,
9651,
1383,
459,
29889,
4294,
24155,
580,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
4818,
1626,
29898,
726,
1125,
13,
4706,
1426,
29922,
710,
29898,
726,
29897,
13,
4706,
301,
29922,
2435,
29898,
726,
29897,
13,
4706,
805,
7607,
29955,
29929,
29899,
2435,
29898,
726,
876,
458,
29906,
13,
4706,
736,
1426,
29889,
29880,
5143,
29898,
1028,
29974,
29880,
5501,
525,
467,
29878,
5143,
29898,
1028,
29930,
29906,
29974,
29880,
5501,
25710,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
1196,
11816,
29898,
726,
2433,
29899,
742,
22854,
29922,
29955,
29929,
1125,
13,
4706,
1596,
29898,
726,
29889,
29880,
5143,
29898,
22854,
29892,
726,
876,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
3611,
29898,
10525,
1170,
1125,
13,
4706,
3611,
26270,
683,
353,
376,
9544,
1947,
15629,
29908,
718,
17411,
29915,
718,
4315,
1170,
13,
4706,
22310,
29954,
29886,
29889,
1220,
11816,
580,
13,
4706,
1596,
11702,
29879,
29908,
1273,
313,
7270,
29954,
29886,
29889,
5064,
1626,
29898,
3257,
26270,
683,
4961,
13,
4706,
22310,
29954,
29886,
29889,
1220,
11816,
580,
13,
4706,
396,
7270,
29954,
29886,
29889,
2158,
26270,
683,
1469,
29898,
877,
29909,
3788,
29933,
5477,
877,
29896,
29900,
29900,
29900,
3788,
28862,
2763,
5477,
29906,
29900,
29897,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
8666,
1762,
5015,
29898,
9175,
1125,
13,
4706,
736,
525,
29934,
29879,
29889,
29995,
29955,
29889,
29906,
29888,
29915,
1273,
313,
9175,
29892,
29897,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
16200,
3542,
7295,
13,
4706,
515,
270,
5160,
1053,
259,
299,
29890,
13,
4706,
325,
13200,
353,
29871,
299,
29890,
29889,
1188,
797,
13200,
13,
4706,
1596,
11702,
29879,
29908,
1273,
313,
7270,
29954,
29886,
29889,
5064,
1626,
703,
15507,
277,
9628,
277,
501,
8485,
16664,
29879,
29905,
29873,
15507,
277,
9628,
277,
7740,
3106,
16664,
29879,
29908,
29995,
29898,
7270,
29954,
29886,
29889,
9175,
1762,
5015,
29898,
29894,
13200,
29889,
11944,
277,
29965,
8485,
511,
7270,
29954,
29886,
29889,
9175,
1762,
5015,
29898,
29894,
13200,
29889,
11944,
277,
22031,
22130,
4961,
13,
4706,
22310,
29954,
29886,
29889,
1220,
11816,
580,
13,
4706,
396,
7270,
29954,
29886,
29889,
2158,
26270,
683,
1469,
29898,
877,
29909,
3788,
29933,
5477,
877,
29896,
29900,
29900,
29900,
3788,
28862,
2763,
5477,
29906,
29900,
29897,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
1596,
26270,
683,
1469,
29898,
6671,
29892,
848,
29892,
8104,
4178,
29922,
29946,
29900,
1125,
13,
4706,
805,
29896,
353,
8104,
4178,
29899,
29906,
13,
4706,
805,
29906,
353,
29871,
29947,
29900,
29899,
17308,
4178,
29899,
29946,
13,
4706,
1596,
580,
13,
4706,
22310,
29954,
29886,
29889,
1220,
11816,
877,
29930,
1495,
13,
4706,
363,
474,
297,
3464,
29898,
29900,
29892,
2435,
29898,
6671,
22164,
13,
9651,
3402,
353,
29915,
29937,
1273,
29899,
29915,
718,
851,
29898,
1028,
29896,
29897,
718,
525,
29879,
16664,
29899,
29915,
718,
851,
29898,
1028,
29906,
29897,
718,
525,
29879,
396,
29915,
13,
9651,
1596,
29898,
4830,
29995,
29898,
6671,
29961,
29875,
1402,
1272,
29961,
29875,
12622,
13,
4706,
22310,
29954,
29886,
29889,
1220,
11816,
877,
29930,
1495,
13,
4706,
1596,
580,
13,
2
] |
python/edl/utils/data_server_client.py | WEARE0/edl | 90 | 62421 | <reponame>WEARE0/edl
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import grpc
import threading
from edl.utils import data_server_pb2
from edl.utils import data_server_pb2_grpc
from edl.utils import error_utils
from edl.utils import exceptions
from edl.utils import pb_utils
from edl.utils.log_utils import logger
class Conn(object):
def __init__(self, channel, stub):
self.channel = channel
self.stub = stub
self.lock = threading.Lock()
# FIXME(gongwb): fix protocal with
# https://medium.com/kuranda-labs-engineering/gracefully-handling-grpc-errors-in-a-go-server-python-client-setup-9805a5464692
class Client(object):
def __init__(self):
self._conn = {} # endpoint=>(channel, stub)
@error_utils.handle_errors_until_timeout
def _connect(self, endpoint, timeout=30):
if endpoint not in self._conn:
c = grpc.insecure_channel(endpoint)
s = data_server_pb2_grpc.DataServerStub(c)
self._conn[endpoint] = Conn(c, s)
return self._conn[endpoint]
@error_utils.handle_errors_until_timeout
def get_file_list(
self, reader_leader_endpoint, reader_name, pod_id, file_list, timeout=60
):
"""
Return list[(idx,path)...] for pod
"""
conn = self._connect(reader_leader_endpoint, timeout=30)
req = data_server_pb2.FileListRequest()
req.pod_id = pod_id
req.reader_name = reader_name
for idx, path in enumerate(file_list):
ele = data_server_pb2.FileListElement()
ele.idx = idx
ele.path = path
req.file_list.append(ele)
with conn.lock:
res = conn.stub.GetFileList(req)
if res.status.type != "":
exceptions.deserialize(res.status)
logger.debug("pod client get file_list:{}".format(res.file_list))
return res.file_list
@error_utils.handle_errors_until_timeout
def report_batch_data_meta(
self,
reader_leader_endpoint,
reader_name,
pod_id,
dataserver_endpoint,
batch_data_ids,
timeout=60,
):
conn = self._connect(reader_leader_endpoint, timeout=30)
req = data_server_pb2.ReportBatchDataMetaRequest()
req.reader_name = reader_name
req.pod_id = pod_id
req.data_server_endpoint = dataserver_endpoint
for batch_data_id in batch_data_ids:
req.batch_data_ids.append(batch_data_id)
with conn.lock:
res = conn.stub.ReportBatchDataMeta(req)
if res.status.type != "":
exceptions.deserialize(res.status)
@error_utils.handle_errors_until_timeout
def reach_data_end(self, reader_leader_endpoint, reader_name, pod_id, timeout=60):
conn = self.connect(reader_leader_endpoint, timeout=30)
req = data_server_pb2.ReachDataEndRequest()
req.reader_name = reader_name
req.pod_id = pod_id
with conn.lock:
res = conn.stub.ReachDataEnd(req)
if res.status.type != "":
exceptions.deserialize(res.status)
@error_utils.handle_errors_until_timeout
def get_batch_data_meta(
self, reader_leader_endpoint, reader_name, pod_id, timeout=60
):
conn = self._connect(reader_leader_endpoint, timeout=30)
req = data_server_pb2.GetBatchDataMetaRequest()
req.reader_name = reader_name
req.pod_id = pod_id
with conn.lock:
res = conn.stub.GetBatchDataMeta(req)
if res.status.type != "":
exceptions.deserialize(res.status)
logger.debug(
"pod client get_balanced_batch_data meta:{}".format(
pb_utils.batch_data_meta_response_to_string(res)
)
)
return res.data
@error_utils.handle_errors_until_timeout
def get_batch_data(self, reader_leader_endpoint, req, timeout=60):
"""
return BatchDataResponse
"""
conn = self._connect(reader_leader_endpoint, timeout=30)
with conn.lock:
res = conn.stub.GetBatchData(req)
if res.status.type != "":
exceptions.deserialize(res.status)
logger.debug(
"pod client get batch_data meta:{}".format(
pb_utils.batch_data_response_to_string(res)
)
)
return res.data
| [
1,
529,
276,
1112,
420,
29958,
8851,
29909,
1525,
29900,
29914,
287,
29880,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29900,
349,
22352,
29925,
22352,
13189,
943,
29889,
2178,
26863,
2538,
9841,
29889,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
13,
29937,
366,
1122,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
13,
29937,
887,
1122,
4017,
263,
3509,
310,
278,
19245,
472,
13,
29937,
13,
29937,
268,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
13,
29937,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
13,
29937,
399,
1806,
8187,
2692,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
13,
29937,
2823,
278,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
13,
29937,
27028,
1090,
278,
19245,
29889,
13,
13,
5215,
867,
6739,
13,
5215,
3244,
292,
13,
3166,
1226,
29880,
29889,
13239,
1053,
848,
29918,
2974,
29918,
24381,
29906,
13,
3166,
1226,
29880,
29889,
13239,
1053,
848,
29918,
2974,
29918,
24381,
29906,
29918,
629,
6739,
13,
3166,
1226,
29880,
29889,
13239,
1053,
1059,
29918,
13239,
13,
3166,
1226,
29880,
29889,
13239,
1053,
15283,
13,
3166,
1226,
29880,
29889,
13239,
1053,
282,
29890,
29918,
13239,
13,
3166,
1226,
29880,
29889,
13239,
29889,
1188,
29918,
13239,
1053,
17927,
13,
13,
13,
1990,
1281,
29876,
29898,
3318,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
8242,
29892,
19281,
1125,
13,
4706,
1583,
29889,
12719,
353,
8242,
13,
4706,
1583,
29889,
303,
431,
353,
19281,
13,
4706,
1583,
29889,
908,
353,
3244,
292,
29889,
16542,
580,
13,
13,
13,
29937,
383,
6415,
2303,
29898,
29887,
549,
29893,
29890,
1125,
2329,
17814,
1052,
411,
13,
29937,
2045,
597,
27891,
29889,
510,
29914,
23843,
5863,
29899,
29880,
6897,
29899,
10599,
3241,
29914,
3874,
346,
3730,
29899,
3179,
1847,
29899,
629,
6739,
29899,
12523,
29899,
262,
29899,
29874,
29899,
1484,
29899,
2974,
29899,
4691,
29899,
4645,
29899,
14669,
29899,
29929,
29947,
29900,
29945,
29874,
29945,
29946,
29953,
29946,
29953,
29929,
29906,
13,
1990,
12477,
29898,
3318,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
3032,
13082,
353,
6571,
29871,
396,
16248,
4261,
29898,
12719,
29892,
19281,
29897,
13,
13,
1678,
732,
2704,
29918,
13239,
29889,
8411,
29918,
12523,
29918,
29305,
29918,
15619,
13,
1678,
822,
903,
6915,
29898,
1311,
29892,
16248,
29892,
11815,
29922,
29941,
29900,
1125,
13,
4706,
565,
16248,
451,
297,
1583,
3032,
13082,
29901,
13,
9651,
274,
353,
867,
6739,
29889,
262,
24216,
29918,
12719,
29898,
29734,
29897,
13,
9651,
269,
353,
848,
29918,
2974,
29918,
24381,
29906,
29918,
629,
6739,
29889,
1469,
6004,
855,
431,
29898,
29883,
29897,
13,
9651,
1583,
3032,
13082,
29961,
29734,
29962,
353,
1281,
29876,
29898,
29883,
29892,
269,
29897,
13,
13,
4706,
736,
1583,
3032,
13082,
29961,
29734,
29962,
13,
13,
1678,
732,
2704,
29918,
13239,
29889,
8411,
29918,
12523,
29918,
29305,
29918,
15619,
13,
1678,
822,
679,
29918,
1445,
29918,
1761,
29898,
13,
4706,
1583,
29892,
9591,
29918,
280,
1664,
29918,
29734,
29892,
9591,
29918,
978,
29892,
2532,
29918,
333,
29892,
934,
29918,
1761,
29892,
11815,
29922,
29953,
29900,
13,
268,
1125,
13,
4706,
9995,
13,
4706,
7106,
1051,
15625,
13140,
29892,
2084,
467,
636,
29962,
363,
2532,
13,
4706,
9995,
13,
4706,
11009,
353,
1583,
3032,
6915,
29898,
16950,
29918,
280,
1664,
29918,
29734,
29892,
11815,
29922,
29941,
29900,
29897,
13,
13,
4706,
12428,
353,
848,
29918,
2974,
29918,
24381,
29906,
29889,
2283,
1293,
3089,
580,
13,
4706,
12428,
29889,
15334,
29918,
333,
353,
2532,
29918,
333,
13,
4706,
12428,
29889,
16950,
29918,
978,
353,
9591,
29918,
978,
13,
4706,
363,
22645,
29892,
2224,
297,
26985,
29898,
1445,
29918,
1761,
1125,
13,
9651,
4552,
353,
848,
29918,
2974,
29918,
24381,
29906,
29889,
2283,
1293,
2642,
580,
13,
9651,
4552,
29889,
13140,
353,
22645,
13,
9651,
4552,
29889,
2084,
353,
2224,
13,
9651,
12428,
29889,
1445,
29918,
1761,
29889,
4397,
29898,
6146,
29897,
13,
13,
4706,
411,
11009,
29889,
908,
29901,
13,
9651,
620,
353,
11009,
29889,
303,
431,
29889,
2577,
2283,
1293,
29898,
7971,
29897,
13,
4706,
565,
620,
29889,
4882,
29889,
1853,
2804,
376,
1115,
13,
9651,
15283,
29889,
2783,
261,
6646,
29898,
690,
29889,
4882,
29897,
13,
13,
4706,
17927,
29889,
8382,
703,
15334,
3132,
679,
934,
29918,
1761,
29901,
8875,
1642,
4830,
29898,
690,
29889,
1445,
29918,
1761,
876,
13,
4706,
736,
620,
29889,
1445,
29918,
1761,
13,
13,
1678,
732,
2704,
29918,
13239,
29889,
8411,
29918,
12523,
29918,
29305,
29918,
15619,
13,
1678,
822,
3461,
29918,
16175,
29918,
1272,
29918,
7299,
29898,
13,
4706,
1583,
29892,
13,
4706,
9591,
29918,
280,
1664,
29918,
29734,
29892,
13,
4706,
9591,
29918,
978,
29892,
13,
4706,
2532,
29918,
333,
29892,
13,
4706,
6155,
261,
369,
29918,
29734,
29892,
13,
4706,
9853,
29918,
1272,
29918,
4841,
29892,
13,
4706,
11815,
29922,
29953,
29900,
29892,
13,
268,
1125,
13,
4706,
11009,
353,
1583,
3032,
6915,
29898,
16950,
29918,
280,
1664,
29918,
29734,
29892,
11815,
29922,
29941,
29900,
29897,
13,
13,
4706,
12428,
353,
848,
29918,
2974,
29918,
24381,
29906,
29889,
13020,
23145,
1469,
19346,
3089,
580,
13,
4706,
12428,
29889,
16950,
29918,
978,
353,
9591,
29918,
978,
13,
4706,
12428,
29889,
15334,
29918,
333,
353,
2532,
29918,
333,
13,
4706,
12428,
29889,
1272,
29918,
2974,
29918,
29734,
353,
6155,
261,
369,
29918,
29734,
13,
4706,
363,
9853,
29918,
1272,
29918,
333,
297,
9853,
29918,
1272,
29918,
4841,
29901,
13,
9651,
12428,
29889,
16175,
29918,
1272,
29918,
4841,
29889,
4397,
29898,
16175,
29918,
1272,
29918,
333,
29897,
13,
13,
4706,
411,
11009,
29889,
908,
29901,
13,
9651,
620,
353,
11009,
29889,
303,
431,
29889,
13020,
23145,
1469,
19346,
29898,
7971,
29897,
13,
13,
4706,
565,
620,
29889,
4882,
29889,
1853,
2804,
376,
1115,
13,
9651,
15283,
29889,
2783,
261,
6646,
29898,
690,
29889,
4882,
29897,
13,
13,
1678,
732,
2704,
29918,
13239,
29889,
8411,
29918,
12523,
29918,
29305,
29918,
15619,
13,
1678,
822,
6159,
29918,
1272,
29918,
355,
29898,
1311,
29892,
9591,
29918,
280,
1664,
29918,
29734,
29892,
9591,
29918,
978,
29892,
2532,
29918,
333,
29892,
11815,
29922,
29953,
29900,
1125,
13,
4706,
11009,
353,
1583,
29889,
6915,
29898,
16950,
29918,
280,
1664,
29918,
29734,
29892,
11815,
29922,
29941,
29900,
29897,
13,
13,
4706,
12428,
353,
848,
29918,
2974,
29918,
24381,
29906,
29889,
1123,
496,
1469,
5044,
3089,
580,
13,
4706,
12428,
29889,
16950,
29918,
978,
353,
9591,
29918,
978,
13,
4706,
12428,
29889,
15334,
29918,
333,
353,
2532,
29918,
333,
13,
13,
4706,
411,
11009,
29889,
908,
29901,
13,
9651,
620,
353,
11009,
29889,
303,
431,
29889,
1123,
496,
1469,
5044,
29898,
7971,
29897,
13,
13,
4706,
565,
620,
29889,
4882,
29889,
1853,
2804,
376,
1115,
13,
9651,
15283,
29889,
2783,
261,
6646,
29898,
690,
29889,
4882,
29897,
13,
13,
1678,
732,
2704,
29918,
13239,
29889,
8411,
29918,
12523,
29918,
29305,
29918,
15619,
13,
1678,
822,
679,
29918,
16175,
29918,
1272,
29918,
7299,
29898,
13,
4706,
1583,
29892,
9591,
29918,
280,
1664,
29918,
29734,
29892,
9591,
29918,
978,
29892,
2532,
29918,
333,
29892,
11815,
29922,
29953,
29900,
13,
268,
1125,
13,
4706,
11009,
353,
1583,
3032,
6915,
29898,
16950,
29918,
280,
1664,
29918,
29734,
29892,
11815,
29922,
29941,
29900,
29897,
13,
13,
4706,
12428,
353,
848,
29918,
2974,
29918,
24381,
29906,
29889,
2577,
23145,
1469,
19346,
3089,
580,
13,
4706,
12428,
29889,
16950,
29918,
978,
353,
9591,
29918,
978,
13,
4706,
12428,
29889,
15334,
29918,
333,
353,
2532,
29918,
333,
13,
13,
4706,
411,
11009,
29889,
908,
29901,
13,
9651,
620,
353,
11009,
29889,
303,
431,
29889,
2577,
23145,
1469,
19346,
29898,
7971,
29897,
13,
13,
4706,
565,
620,
29889,
4882,
29889,
1853,
2804,
376,
1115,
13,
9651,
15283,
29889,
2783,
261,
6646,
29898,
690,
29889,
4882,
29897,
13,
13,
4706,
17927,
29889,
8382,
29898,
13,
9651,
376,
15334,
3132,
679,
29918,
5521,
8362,
29918,
16175,
29918,
1272,
12700,
29901,
8875,
1642,
4830,
29898,
13,
18884,
282,
29890,
29918,
13239,
29889,
16175,
29918,
1272,
29918,
7299,
29918,
5327,
29918,
517,
29918,
1807,
29898,
690,
29897,
13,
9651,
1723,
13,
4706,
1723,
13,
4706,
736,
620,
29889,
1272,
13,
13,
1678,
732,
2704,
29918,
13239,
29889,
8411,
29918,
12523,
29918,
29305,
29918,
15619,
13,
1678,
822,
679,
29918,
16175,
29918,
1272,
29898,
1311,
29892,
9591,
29918,
280,
1664,
29918,
29734,
29892,
12428,
29892,
11815,
29922,
29953,
29900,
1125,
13,
4706,
9995,
13,
4706,
736,
350,
905,
1469,
5103,
13,
4706,
9995,
13,
4706,
11009,
353,
1583,
3032,
6915,
29898,
16950,
29918,
280,
1664,
29918,
29734,
29892,
11815,
29922,
29941,
29900,
29897,
13,
13,
4706,
411,
11009,
29889,
908,
29901,
13,
9651,
620,
353,
11009,
29889,
303,
431,
29889,
2577,
23145,
1469,
29898,
7971,
29897,
13,
4706,
565,
620,
29889,
4882,
29889,
1853,
2804,
376,
1115,
13,
9651,
15283,
29889,
2783,
261,
6646,
29898,
690,
29889,
4882,
29897,
13,
13,
4706,
17927,
29889,
8382,
29898,
13,
9651,
376,
15334,
3132,
679,
9853,
29918,
1272,
12700,
29901,
8875,
1642,
4830,
29898,
13,
18884,
282,
29890,
29918,
13239,
29889,
16175,
29918,
1272,
29918,
5327,
29918,
517,
29918,
1807,
29898,
690,
29897,
13,
9651,
1723,
13,
4706,
1723,
13,
4706,
736,
620,
29889,
1272,
13,
2
] |
nova/tests/unit/virt/libvirt/volume/test_glusterfs.py | bopopescu/nova-token | 0 | 189290 | begin_unit
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
comment|'# a copy of the License at'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# http://www.apache.org/licenses/LICENSE-2.0'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Unless required by applicable law or agreed to in writing, software'
nl|'\n'
comment|'# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT'
nl|'\n'
comment|'# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the'
nl|'\n'
comment|'# License for the specific language governing permissions and limitations'
nl|'\n'
comment|'# under the License.'
nl|'\n'
nl|'\n'
name|'import'
name|'os'
newline|'\n'
nl|'\n'
name|'import'
name|'mock'
newline|'\n'
name|'from'
name|'oslo_concurrency'
name|'import'
name|'processutils'
newline|'\n'
nl|'\n'
name|'from'
name|'nova'
op|'.'
name|'tests'
op|'.'
name|'unit'
op|'.'
name|'virt'
op|'.'
name|'libvirt'
op|'.'
name|'volume'
name|'import'
name|'test_volume'
newline|'\n'
name|'from'
name|'nova'
name|'import'
name|'utils'
newline|'\n'
name|'from'
name|'nova'
op|'.'
name|'virt'
op|'.'
name|'libvirt'
name|'import'
name|'utils'
name|'as'
name|'libvirt_utils'
newline|'\n'
name|'from'
name|'nova'
op|'.'
name|'virt'
op|'.'
name|'libvirt'
op|'.'
name|'volume'
name|'import'
name|'glusterfs'
newline|'\n'
nl|'\n'
nl|'\n'
name|'class'
name|'LibvirtGlusterfsVolumeDriverTestCase'
op|'('
nl|'\n'
DECL|class|LibvirtGlusterfsVolumeDriverTestCase
name|'test_volume'
op|'.'
name|'LibvirtVolumeBaseTestCase'
op|')'
op|':'
newline|'\n'
nl|'\n'
DECL|member|test_libvirt_glusterfs_driver
indent|' '
name|'def'
name|'test_libvirt_glusterfs_driver'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'mnt_base'
op|'='
string|"'/mnt'"
newline|'\n'
name|'self'
op|'.'
name|'flags'
op|'('
name|'glusterfs_mount_point_base'
op|'='
name|'mnt_base'
op|','
name|'group'
op|'='
string|"'libvirt'"
op|')'
newline|'\n'
nl|'\n'
name|'libvirt_driver'
op|'='
name|'glusterfs'
op|'.'
name|'LibvirtGlusterfsVolumeDriver'
op|'('
name|'self'
op|'.'
name|'fake_conn'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'libvirt_utils'
op|','
string|"'is_mounted'"
op|','
name|'lambda'
name|'x'
op|','
name|'d'
op|':'
name|'False'
op|')'
newline|'\n'
name|'export_string'
op|'='
string|"'192.168.1.1:/volume-00001'"
newline|'\n'
name|'export_mnt_base'
op|'='
name|'os'
op|'.'
name|'path'
op|'.'
name|'join'
op|'('
name|'mnt_base'
op|','
nl|'\n'
name|'utils'
op|'.'
name|'get_hash_str'
op|'('
name|'export_string'
op|')'
op|')'
newline|'\n'
nl|'\n'
name|'connection_info'
op|'='
op|'{'
string|"'data'"
op|':'
op|'{'
string|"'export'"
op|':'
name|'export_string'
op|','
nl|'\n'
string|"'name'"
op|':'
name|'self'
op|'.'
name|'name'
op|'}'
op|'}'
newline|'\n'
name|'libvirt_driver'
op|'.'
name|'connect_volume'
op|'('
name|'connection_info'
op|','
name|'self'
op|'.'
name|'disk_info'
op|')'
newline|'\n'
name|'libvirt_driver'
op|'.'
name|'disconnect_volume'
op|'('
name|'connection_info'
op|','
string|'"vde"'
op|')'
newline|'\n'
nl|'\n'
name|'device_path'
op|'='
name|'os'
op|'.'
name|'path'
op|'.'
name|'join'
op|'('
name|'export_mnt_base'
op|','
nl|'\n'
name|'connection_info'
op|'['
string|"'data'"
op|']'
op|'['
string|"'name'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'connection_info'
op|'['
string|"'data'"
op|']'
op|'['
string|"'device_path'"
op|']'
op|','
name|'device_path'
op|')'
newline|'\n'
name|'expected_commands'
op|'='
op|'['
nl|'\n'
op|'('
string|"'mkdir'"
op|','
string|"'-p'"
op|','
name|'export_mnt_base'
op|')'
op|','
nl|'\n'
op|'('
string|"'mount'"
op|','
string|"'-t'"
op|','
string|"'glusterfs'"
op|','
name|'export_string'
op|','
name|'export_mnt_base'
op|')'
op|','
nl|'\n'
op|'('
string|"'umount'"
op|','
name|'export_mnt_base'
op|')'
op|']'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'expected_commands'
op|','
name|'self'
op|'.'
name|'executes'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_libvirt_glusterfs_driver_get_config
dedent|''
name|'def'
name|'test_libvirt_glusterfs_driver_get_config'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'mnt_base'
op|'='
string|"'/mnt'"
newline|'\n'
name|'self'
op|'.'
name|'flags'
op|'('
name|'glusterfs_mount_point_base'
op|'='
name|'mnt_base'
op|','
name|'group'
op|'='
string|"'libvirt'"
op|')'
newline|'\n'
nl|'\n'
name|'libvirt_driver'
op|'='
name|'glusterfs'
op|'.'
name|'LibvirtGlusterfsVolumeDriver'
op|'('
name|'self'
op|'.'
name|'fake_conn'
op|')'
newline|'\n'
name|'export_string'
op|'='
string|"'192.168.1.1:/volume-00001'"
newline|'\n'
name|'export_mnt_base'
op|'='
name|'os'
op|'.'
name|'path'
op|'.'
name|'join'
op|'('
name|'mnt_base'
op|','
nl|'\n'
name|'utils'
op|'.'
name|'get_hash_str'
op|'('
name|'export_string'
op|')'
op|')'
newline|'\n'
name|'file_path'
op|'='
name|'os'
op|'.'
name|'path'
op|'.'
name|'join'
op|'('
name|'export_mnt_base'
op|','
name|'self'
op|'.'
name|'name'
op|')'
newline|'\n'
nl|'\n'
comment|'# Test default format - raw'
nl|'\n'
name|'connection_info'
op|'='
op|'{'
string|"'data'"
op|':'
op|'{'
string|"'export'"
op|':'
name|'export_string'
op|','
nl|'\n'
string|"'name'"
op|':'
name|'self'
op|'.'
name|'name'
op|','
nl|'\n'
string|"'device_path'"
op|':'
name|'file_path'
op|'}'
op|'}'
newline|'\n'
name|'conf'
op|'='
name|'libvirt_driver'
op|'.'
name|'get_config'
op|'('
name|'connection_info'
op|','
name|'self'
op|'.'
name|'disk_info'
op|')'
newline|'\n'
name|'tree'
op|'='
name|'conf'
op|'.'
name|'format_dom'
op|'('
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_assertFileTypeEquals'
op|'('
name|'tree'
op|','
name|'file_path'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'raw'"
op|','
name|'tree'
op|'.'
name|'find'
op|'('
string|"'./driver'"
op|')'
op|'.'
name|'get'
op|'('
string|"'type'"
op|')'
op|')'
newline|'\n'
nl|'\n'
comment|'# Test specified format - qcow2'
nl|'\n'
name|'connection_info'
op|'='
op|'{'
string|"'data'"
op|':'
op|'{'
string|"'export'"
op|':'
name|'export_string'
op|','
nl|'\n'
string|"'name'"
op|':'
name|'self'
op|'.'
name|'name'
op|','
nl|'\n'
string|"'device_path'"
op|':'
name|'file_path'
op|','
nl|'\n'
string|"'format'"
op|':'
string|"'qcow2'"
op|'}'
op|'}'
newline|'\n'
name|'conf'
op|'='
name|'libvirt_driver'
op|'.'
name|'get_config'
op|'('
name|'connection_info'
op|','
name|'self'
op|'.'
name|'disk_info'
op|')'
newline|'\n'
name|'tree'
op|'='
name|'conf'
op|'.'
name|'format_dom'
op|'('
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_assertFileTypeEquals'
op|'('
name|'tree'
op|','
name|'file_path'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'qcow2'"
op|','
name|'tree'
op|'.'
name|'find'
op|'('
string|"'./driver'"
op|')'
op|'.'
name|'get'
op|'('
string|"'type'"
op|')'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_libvirt_glusterfs_driver_already_mounted
dedent|''
name|'def'
name|'test_libvirt_glusterfs_driver_already_mounted'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'mnt_base'
op|'='
string|"'/mnt'"
newline|'\n'
name|'self'
op|'.'
name|'flags'
op|'('
name|'glusterfs_mount_point_base'
op|'='
name|'mnt_base'
op|','
name|'group'
op|'='
string|"'libvirt'"
op|')'
newline|'\n'
nl|'\n'
name|'libvirt_driver'
op|'='
name|'glusterfs'
op|'.'
name|'LibvirtGlusterfsVolumeDriver'
op|'('
name|'self'
op|'.'
name|'fake_conn'
op|')'
newline|'\n'
name|'export_string'
op|'='
string|"'192.168.1.1:/volume-00001'"
newline|'\n'
name|'export_mnt_base'
op|'='
name|'os'
op|'.'
name|'path'
op|'.'
name|'join'
op|'('
name|'mnt_base'
op|','
nl|'\n'
name|'utils'
op|'.'
name|'get_hash_str'
op|'('
name|'export_string'
op|')'
op|')'
newline|'\n'
nl|'\n'
name|'connection_info'
op|'='
op|'{'
string|"'data'"
op|':'
op|'{'
string|"'export'"
op|':'
name|'export_string'
op|','
nl|'\n'
string|"'name'"
op|':'
name|'self'
op|'.'
name|'name'
op|'}'
op|'}'
newline|'\n'
name|'libvirt_driver'
op|'.'
name|'connect_volume'
op|'('
name|'connection_info'
op|','
name|'self'
op|'.'
name|'disk_info'
op|')'
newline|'\n'
name|'libvirt_driver'
op|'.'
name|'disconnect_volume'
op|'('
name|'connection_info'
op|','
string|'"vde"'
op|')'
newline|'\n'
nl|'\n'
name|'expected_commands'
op|'='
op|'['
nl|'\n'
op|'('
string|"'findmnt'"
op|','
string|"'--target'"
op|','
name|'export_mnt_base'
op|','
nl|'\n'
string|"'--source'"
op|','
name|'export_string'
op|')'
op|','
nl|'\n'
op|'('
string|"'umount'"
op|','
name|'export_mnt_base'
op|')'
op|']'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'expected_commands'
op|','
name|'self'
op|'.'
name|'executes'
op|')'
newline|'\n'
nl|'\n'
dedent|''
op|'@'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'glusterfs'
op|'.'
name|'utils'
op|','
string|"'execute'"
op|')'
newline|'\n'
op|'@'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'glusterfs'
op|'.'
name|'LOG'
op|','
string|"'debug'"
op|')'
newline|'\n'
op|'@'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'glusterfs'
op|'.'
name|'LOG'
op|','
string|"'exception'"
op|')'
newline|'\n'
DECL|member|test_libvirt_glusterfs_driver_umount_error
name|'def'
name|'test_libvirt_glusterfs_driver_umount_error'
op|'('
name|'self'
op|','
name|'mock_LOG_exception'
op|','
nl|'\n'
name|'mock_LOG_debug'
op|','
name|'mock_utils_exe'
op|')'
op|':'
newline|'\n'
indent|' '
name|'export_string'
op|'='
string|"'192.168.1.1:/volume-00001'"
newline|'\n'
name|'connection_info'
op|'='
op|'{'
string|"'data'"
op|':'
op|'{'
string|"'export'"
op|':'
name|'export_string'
op|','
nl|'\n'
string|"'name'"
op|':'
name|'self'
op|'.'
name|'name'
op|'}'
op|'}'
newline|'\n'
name|'libvirt_driver'
op|'='
name|'glusterfs'
op|'.'
name|'LibvirtGlusterfsVolumeDriver'
op|'('
name|'self'
op|'.'
name|'fake_conn'
op|')'
newline|'\n'
name|'mock_utils_exe'
op|'.'
name|'side_effect'
op|'='
name|'processutils'
op|'.'
name|'ProcessExecutionError'
op|'('
nl|'\n'
name|'None'
op|','
name|'None'
op|','
name|'None'
op|','
string|"'umount'"
op|','
string|"'umount: target is busy.'"
op|')'
newline|'\n'
name|'libvirt_driver'
op|'.'
name|'disconnect_volume'
op|'('
name|'connection_info'
op|','
string|'"vde"'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertTrue'
op|'('
name|'mock_LOG_debug'
op|'.'
name|'called'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_libvirt_glusterfs_driver_with_opts
dedent|''
name|'def'
name|'test_libvirt_glusterfs_driver_with_opts'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'mnt_base'
op|'='
string|"'/mnt'"
newline|'\n'
name|'self'
op|'.'
name|'flags'
op|'('
name|'glusterfs_mount_point_base'
op|'='
name|'mnt_base'
op|','
name|'group'
op|'='
string|"'libvirt'"
op|')'
newline|'\n'
nl|'\n'
name|'libvirt_driver'
op|'='
name|'glusterfs'
op|'.'
name|'LibvirtGlusterfsVolumeDriver'
op|'('
name|'self'
op|'.'
name|'fake_conn'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'libvirt_utils'
op|','
string|"'is_mounted'"
op|','
name|'lambda'
name|'x'
op|','
name|'d'
op|':'
name|'False'
op|')'
newline|'\n'
name|'export_string'
op|'='
string|"'192.168.1.1:/volume-00001'"
newline|'\n'
name|'options'
op|'='
string|"'-o backupvolfile-server=192.168.1.2'"
newline|'\n'
name|'export_mnt_base'
op|'='
name|'os'
op|'.'
name|'path'
op|'.'
name|'join'
op|'('
name|'mnt_base'
op|','
nl|'\n'
name|'utils'
op|'.'
name|'get_hash_str'
op|'('
name|'export_string'
op|')'
op|')'
newline|'\n'
nl|'\n'
name|'connection_info'
op|'='
op|'{'
string|"'data'"
op|':'
op|'{'
string|"'export'"
op|':'
name|'export_string'
op|','
nl|'\n'
string|"'name'"
op|':'
name|'self'
op|'.'
name|'name'
op|','
nl|'\n'
string|"'options'"
op|':'
name|'options'
op|'}'
op|'}'
newline|'\n'
name|'libvirt_driver'
op|'.'
name|'connect_volume'
op|'('
name|'connection_info'
op|','
name|'self'
op|'.'
name|'disk_info'
op|')'
newline|'\n'
name|'libvirt_driver'
op|'.'
name|'disconnect_volume'
op|'('
name|'connection_info'
op|','
string|'"vde"'
op|')'
newline|'\n'
nl|'\n'
name|'expected_commands'
op|'='
op|'['
nl|'\n'
op|'('
string|"'mkdir'"
op|','
string|"'-p'"
op|','
name|'export_mnt_base'
op|')'
op|','
nl|'\n'
op|'('
string|"'mount'"
op|','
string|"'-t'"
op|','
string|"'glusterfs'"
op|','
nl|'\n'
string|"'-o'"
op|','
string|"'backupvolfile-server=192.168.1.2'"
op|','
nl|'\n'
name|'export_string'
op|','
name|'export_mnt_base'
op|')'
op|','
nl|'\n'
op|'('
string|"'umount'"
op|','
name|'export_mnt_base'
op|')'
op|','
nl|'\n'
op|']'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'expected_commands'
op|','
name|'self'
op|'.'
name|'executes'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_libvirt_glusterfs_libgfapi
dedent|''
name|'def'
name|'test_libvirt_glusterfs_libgfapi'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'flags'
op|'('
name|'qemu_allowed_storage_drivers'
op|'='
op|'['
string|"'gluster'"
op|']'
op|','
name|'group'
op|'='
string|"'libvirt'"
op|')'
newline|'\n'
name|'libvirt_driver'
op|'='
name|'glusterfs'
op|'.'
name|'LibvirtGlusterfsVolumeDriver'
op|'('
name|'self'
op|'.'
name|'fake_conn'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'stubs'
op|'.'
name|'Set'
op|'('
name|'libvirt_utils'
op|','
string|"'is_mounted'"
op|','
name|'lambda'
name|'x'
op|','
name|'d'
op|':'
name|'False'
op|')'
newline|'\n'
name|'export_string'
op|'='
string|"'192.168.1.1:/volume-00001'"
newline|'\n'
name|'name'
op|'='
string|"'volume-00001'"
newline|'\n'
nl|'\n'
name|'connection_info'
op|'='
op|'{'
string|"'data'"
op|':'
op|'{'
string|"'export'"
op|':'
name|'export_string'
op|','
string|"'name'"
op|':'
name|'name'
op|'}'
op|'}'
newline|'\n'
nl|'\n'
name|'disk_info'
op|'='
op|'{'
nl|'\n'
string|'"dev"'
op|':'
string|'"vde"'
op|','
nl|'\n'
string|'"type"'
op|':'
string|'"disk"'
op|','
nl|'\n'
string|'"bus"'
op|':'
string|'"virtio"'
op|','
nl|'\n'
op|'}'
newline|'\n'
nl|'\n'
name|'libvirt_driver'
op|'.'
name|'connect_volume'
op|'('
name|'connection_info'
op|','
name|'disk_info'
op|')'
newline|'\n'
name|'conf'
op|'='
name|'libvirt_driver'
op|'.'
name|'get_config'
op|'('
name|'connection_info'
op|','
name|'disk_info'
op|')'
newline|'\n'
name|'tree'
op|'='
name|'conf'
op|'.'
name|'format_dom'
op|'('
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'network'"
op|','
name|'tree'
op|'.'
name|'get'
op|'('
string|"'type'"
op|')'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'raw'"
op|','
name|'tree'
op|'.'
name|'find'
op|'('
string|"'./driver'"
op|')'
op|'.'
name|'get'
op|'('
string|"'type'"
op|')'
op|')'
newline|'\n'
nl|'\n'
name|'source'
op|'='
name|'tree'
op|'.'
name|'find'
op|'('
string|"'./source'"
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'gluster'"
op|','
name|'source'
op|'.'
name|'get'
op|'('
string|"'protocol'"
op|')'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'volume-00001/volume-00001'"
op|','
name|'source'
op|'.'
name|'get'
op|'('
string|"'name'"
op|')'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'192.168.1.1'"
op|','
name|'source'
op|'.'
name|'find'
op|'('
string|"'./host'"
op|')'
op|'.'
name|'get'
op|'('
string|"'name'"
op|')'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'24007'"
op|','
name|'source'
op|'.'
name|'find'
op|'('
string|"'./host'"
op|')'
op|'.'
name|'get'
op|'('
string|"'port'"
op|')'
op|')'
newline|'\n'
nl|'\n'
name|'libvirt_driver'
op|'.'
name|'disconnect_volume'
op|'('
name|'connection_info'
op|','
string|'"vde"'
op|')'
newline|'\n'
dedent|''
dedent|''
endmarker|''
end_unit
| [
1,
3380,
29918,
5441,
13,
9342,
29989,
29915,
29937,
1678,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
29900,
313,
1552,
376,
29931,
293,
1947,
1496,
366,
1122,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
9342,
29989,
29915,
29937,
1678,
451,
671,
445,
934,
5174,
297,
752,
13036,
411,
278,
19245,
29889,
887,
1122,
4017,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
9342,
29989,
29915,
29937,
1678,
263,
3509,
310,
278,
19245,
472,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
9342,
29989,
29915,
29937,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
9342,
29989,
29915,
29937,
308,
1732,
597,
1636,
29889,
4288,
29889,
990,
29914,
506,
11259,
29914,
27888,
1430,
1660,
29899,
29906,
29889,
29900,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
9342,
29989,
29915,
29937,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
9342,
29989,
29915,
29937,
1678,
25870,
3734,
491,
22903,
4307,
470,
15502,
304,
297,
5007,
29892,
7047,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
9342,
29989,
29915,
29937,
1678,
13235,
1090,
278,
19245,
338,
13235,
373,
385,
376,
3289,
8519,
29908,
350,
3289,
3235,
29892,
399,
1806,
8187,
2692,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
9342,
29989,
29915,
29937,
1678,
399,
1718,
29934,
13566,
29059,
6323,
8707,
29928,
22122,
29903,
8079,
13764,
29979,
476,
22255,
29892,
2845,
4653,
470,
2411,
2957,
29889,
2823,
278,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
9342,
29989,
29915,
29937,
1678,
19245,
363,
278,
2702,
4086,
14765,
1076,
11239,
322,
27028,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
9342,
29989,
29915,
29937,
1678,
1090,
278,
19245,
6169,
13,
12938,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
5215,
29915,
13,
978,
29989,
29915,
359,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
5215,
29915,
13,
978,
29989,
29915,
17640,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
3166,
29915,
13,
978,
29989,
29915,
359,
417,
29918,
535,
26095,
29915,
13,
978,
29989,
29915,
5215,
29915,
13,
978,
29989,
29915,
5014,
13239,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
3166,
29915,
13,
978,
29989,
29915,
29876,
4273,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
21150,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
5441,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
15389,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
1982,
15389,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
24623,
29915,
13,
978,
29989,
29915,
5215,
29915,
13,
978,
29989,
29915,
1688,
29918,
24623,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
3166,
29915,
13,
978,
29989,
29915,
29876,
4273,
29915,
13,
978,
29989,
29915,
5215,
29915,
13,
978,
29989,
29915,
13239,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
3166,
29915,
13,
978,
29989,
29915,
29876,
4273,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
15389,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
1982,
15389,
29915,
13,
978,
29989,
29915,
5215,
29915,
13,
978,
29989,
29915,
13239,
29915,
13,
978,
29989,
29915,
294,
29915,
13,
978,
29989,
29915,
1982,
15389,
29918,
13239,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
3166,
29915,
13,
978,
29989,
29915,
29876,
4273,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
15389,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
1982,
15389,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
24623,
29915,
13,
978,
29989,
29915,
5215,
29915,
13,
978,
29989,
29915,
3820,
5402,
5847,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1990,
29915,
13,
978,
29989,
29915,
14868,
15389,
29954,
29880,
5402,
5847,
24679,
12376,
3057,
8259,
29915,
13,
459,
29989,
29915,
877,
13,
12938,
29989,
12764,
29876,
29915,
13,
2287,
6154,
29989,
1990,
29989,
14868,
15389,
29954,
29880,
5402,
5847,
24679,
12376,
3057,
8259,
13,
978,
29989,
29915,
1688,
29918,
24623,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
14868,
15389,
24679,
5160,
3057,
8259,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
22099,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
2287,
6154,
29989,
14242,
29989,
1688,
29918,
1982,
15389,
29918,
3820,
5402,
5847,
29918,
9465,
13,
12860,
29989,
29915,
1678,
525,
13,
978,
29989,
29915,
1753,
29915,
13,
978,
29989,
29915,
1688,
29918,
1982,
15389,
29918,
3820,
5402,
5847,
29918,
9465,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
22099,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12860,
29989,
29915,
4706,
525,
13,
978,
29989,
29915,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
29915,
29914,
29885,
593,
11838,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
15764,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
3820,
5402,
5847,
29918,
16476,
29918,
3149,
29918,
3188,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
2972,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
29915,
1982,
15389,
11838,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
3820,
5402,
5847,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
14868,
15389,
29954,
29880,
5402,
5847,
24679,
12376,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
29888,
1296,
29918,
13082,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
303,
23954,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2697,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
1982,
15389,
29918,
13239,
29915,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
29915,
275,
29918,
16476,
287,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
2892,
29915,
13,
978,
29989,
29915,
29916,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
29881,
29915,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
8824,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
29915,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29896,
29889,
29896,
8419,
24623,
29899,
29900,
29900,
29900,
29900,
29896,
11838,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
15843,
29918,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
359,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2084,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
7122,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
13239,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
657,
29918,
8568,
29918,
710,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
29915,
2433,
13,
459,
29989,
29915,
10998,
13,
1807,
29989,
29908,
29915,
1272,
11838,
13,
459,
29989,
22099,
13,
459,
29989,
29915,
10998,
13,
1807,
29989,
29908,
29915,
15843,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
1807,
29989,
29908,
29915,
978,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
978,
29915,
13,
459,
29989,
29915,
10162,
13,
459,
29989,
29915,
10162,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
6915,
29918,
24623,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
20960,
29918,
3888,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2218,
6915,
29918,
24623,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
3788,
13,
1807,
29989,
11838,
29894,
311,
29908,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
10141,
29918,
2084,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
359,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2084,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
7122,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
15843,
29918,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
29915,
1839,
13,
1807,
29989,
29908,
29915,
1272,
11838,
13,
459,
29989,
2033,
29915,
13,
459,
29989,
29915,
1839,
13,
1807,
29989,
29908,
29915,
978,
11838,
13,
459,
29989,
2033,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
9294,
9843,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
29915,
1839,
13,
1807,
29989,
29908,
29915,
1272,
11838,
13,
459,
29989,
2033,
29915,
13,
459,
29989,
29915,
1839,
13,
1807,
29989,
29908,
29915,
10141,
29918,
2084,
11838,
13,
459,
29989,
2033,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
10141,
29918,
2084,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
9684,
29918,
26381,
29915,
13,
459,
29989,
29915,
2433,
13,
459,
29989,
29915,
1839,
13,
12938,
29989,
12764,
29876,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
11256,
3972,
11838,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
28560,
29886,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
15843,
29918,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
16476,
11838,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
28560,
29873,
11838,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
29915,
3820,
5402,
5847,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
15843,
29918,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
398,
792,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
15843,
29918,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
2033,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
9294,
9843,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
9684,
29918,
26381,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
4258,
2667,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
2287,
6154,
29989,
14242,
29989,
1688,
29918,
1982,
15389,
29918,
3820,
5402,
5847,
29918,
9465,
29918,
657,
29918,
2917,
13,
7176,
296,
29989,
4907,
13,
978,
29989,
29915,
1753,
29915,
13,
978,
29989,
29915,
1688,
29918,
1982,
15389,
29918,
3820,
5402,
5847,
29918,
9465,
29918,
657,
29918,
2917,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
22099,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12860,
29989,
29915,
4706,
525,
13,
978,
29989,
29915,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
29915,
29914,
29885,
593,
11838,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
15764,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
3820,
5402,
5847,
29918,
16476,
29918,
3149,
29918,
3188,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
2972,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
29915,
1982,
15389,
11838,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
3820,
5402,
5847,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
14868,
15389,
29954,
29880,
5402,
5847,
24679,
12376,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
29888,
1296,
29918,
13082,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
29915,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29896,
29889,
29896,
8419,
24623,
29899,
29900,
29900,
29900,
29900,
29896,
11838,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
15843,
29918,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
359,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2084,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
7122,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
13239,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
657,
29918,
8568,
29918,
710,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1445,
29918,
2084,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
359,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2084,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
7122,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
15843,
29918,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
978,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
9342,
29989,
29915,
29937,
4321,
2322,
3402,
448,
10650,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
29915,
2433,
13,
459,
29989,
29915,
10998,
13,
1807,
29989,
29908,
29915,
1272,
11838,
13,
459,
29989,
22099,
13,
459,
29989,
29915,
10998,
13,
1807,
29989,
29908,
29915,
15843,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
1807,
29989,
29908,
29915,
978,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
978,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
1807,
29989,
29908,
29915,
10141,
29918,
2084,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
1445,
29918,
2084,
29915,
13,
459,
29989,
29915,
10162,
13,
459,
29989,
29915,
10162,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
5527,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
657,
29918,
2917,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
20960,
29918,
3888,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
8336,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
5527,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
4830,
29918,
3129,
29915,
13,
459,
29989,
29915,
877,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
15972,
9294,
2283,
1542,
14776,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
8336,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
1445,
29918,
2084,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
9294,
9843,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
1610,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
8336,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2886,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
4286,
29914,
9465,
11838,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
657,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
1853,
11838,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
9342,
29989,
29915,
29937,
4321,
6790,
3402,
448,
3855,
20587,
29906,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
29915,
2433,
13,
459,
29989,
29915,
10998,
13,
1807,
29989,
29908,
29915,
1272,
11838,
13,
459,
29989,
22099,
13,
459,
29989,
29915,
10998,
13,
1807,
29989,
29908,
29915,
15843,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
1807,
29989,
29908,
29915,
978,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
978,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
1807,
29989,
29908,
29915,
10141,
29918,
2084,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
1445,
29918,
2084,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
1807,
29989,
29908,
29915,
4830,
11838,
13,
459,
29989,
22099,
13,
1807,
29989,
29908,
29915,
29939,
20587,
29906,
11838,
13,
459,
29989,
29915,
10162,
13,
459,
29989,
29915,
10162,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
5527,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
657,
29918,
2917,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
20960,
29918,
3888,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
8336,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
5527,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
4830,
29918,
3129,
29915,
13,
459,
29989,
29915,
877,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
15972,
9294,
2283,
1542,
14776,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
8336,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
1445,
29918,
2084,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
9294,
9843,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
29939,
20587,
29906,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
8336,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2886,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
4286,
29914,
9465,
11838,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
657,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
1853,
11838,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
2287,
6154,
29989,
14242,
29989,
1688,
29918,
1982,
15389,
29918,
3820,
5402,
5847,
29918,
9465,
29918,
284,
2040,
29918,
16476,
287,
13,
7176,
296,
29989,
4907,
13,
978,
29989,
29915,
1753,
29915,
13,
978,
29989,
29915,
1688,
29918,
1982,
15389,
29918,
3820,
5402,
5847,
29918,
9465,
29918,
284,
2040,
29918,
16476,
287,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
22099,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12860,
29989,
29915,
4706,
525,
13,
978,
29989,
29915,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
29915,
29914,
29885,
593,
11838,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
15764,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
3820,
5402,
5847,
29918,
16476,
29918,
3149,
29918,
3188,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
2972,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
29915,
1982,
15389,
11838,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
3820,
5402,
5847,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
14868,
15389,
29954,
29880,
5402,
5847,
24679,
12376,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
29888,
1296,
29918,
13082,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
29915,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29896,
29889,
29896,
8419,
24623,
29899,
29900,
29900,
29900,
29900,
29896,
11838,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
15843,
29918,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
359,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2084,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
7122,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
13239,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
657,
29918,
8568,
29918,
710,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
29915,
2433,
13,
459,
29989,
29915,
10998,
13,
1807,
29989,
29908,
29915,
1272,
11838,
13,
459,
29989,
22099,
13,
459,
29989,
29915,
10998,
13,
1807,
29989,
29908,
29915,
15843,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
1807,
29989,
29908,
29915,
978,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
978,
29915,
13,
459,
29989,
29915,
10162,
13,
459,
29989,
29915,
10162,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
6915,
29918,
24623,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
20960,
29918,
3888,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2218,
6915,
29918,
24623,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
3788,
13,
1807,
29989,
11838,
29894,
311,
29908,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
9684,
29918,
26381,
29915,
13,
459,
29989,
29915,
2433,
13,
459,
29989,
29915,
1839,
13,
12938,
29989,
12764,
29876,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
2886,
29885,
593,
11838,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
29915,
489,
5182,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
15843,
29918,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
1807,
29989,
29908,
29915,
489,
4993,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
398,
792,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
15843,
29918,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
2033,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
9294,
9843,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
9684,
29918,
26381,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
4258,
2667,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
7176,
296,
29989,
4907,
13,
459,
29989,
29915,
29992,
29915,
13,
978,
29989,
29915,
17640,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
5041,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
3318,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
3820,
5402,
5847,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
13239,
29915,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
29915,
7978,
11838,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
459,
29989,
29915,
29992,
29915,
13,
978,
29989,
29915,
17640,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
5041,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
3318,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
3820,
5402,
5847,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
14480,
29915,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
29915,
8382,
11838,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
459,
29989,
29915,
29992,
29915,
13,
978,
29989,
29915,
17640,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
5041,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
3318,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
3820,
5402,
5847,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
14480,
29915,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
29915,
11739,
11838,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
2287,
6154,
29989,
14242,
29989,
1688,
29918,
1982,
15389,
29918,
3820,
5402,
5847,
29918,
9465,
29918,
398,
792,
29918,
2704,
13,
978,
29989,
29915,
1753,
29915,
13,
978,
29989,
29915,
1688,
29918,
1982,
15389,
29918,
3820,
5402,
5847,
29918,
9465,
29918,
398,
792,
29918,
2704,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
17640,
29918,
14480,
29918,
11739,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
17640,
29918,
14480,
29918,
8382,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
17640,
29918,
13239,
29918,
8097,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
22099,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12860,
29989,
29915,
4706,
525,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
29915,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29896,
29889,
29896,
8419,
24623,
29899,
29900,
29900,
29900,
29900,
29896,
11838,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
29915,
2433,
13,
459,
29989,
29915,
10998,
13,
1807,
29989,
29908,
29915,
1272,
11838,
13,
459,
29989,
22099,
13,
459,
29989,
29915,
10998,
13,
1807,
29989,
29908,
29915,
15843,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
1807,
29989,
29908,
29915,
978,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
978,
29915,
13,
459,
29989,
29915,
10162,
13,
459,
29989,
29915,
10162,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
3820,
5402,
5847,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
14868,
15389,
29954,
29880,
5402,
5847,
24679,
12376,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
29888,
1296,
29918,
13082,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
17640,
29918,
13239,
29918,
8097,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2975,
29918,
15987,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
5014,
13239,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
7032,
20418,
2392,
29915,
13,
459,
29989,
29915,
877,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
8516,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
8516,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
8516,
29915,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
29915,
398,
792,
11838,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
29915,
398,
792,
29901,
3646,
338,
19587,
6169,
29908,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2218,
6915,
29918,
24623,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
3788,
13,
1807,
29989,
11838,
29894,
311,
29908,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
9294,
5574,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
17640,
29918,
14480,
29918,
8382,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
13998,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
2287,
6154,
29989,
14242,
29989,
1688,
29918,
1982,
15389,
29918,
3820,
5402,
5847,
29918,
9465,
29918,
2541,
29918,
25707,
13,
7176,
296,
29989,
4907,
13,
978,
29989,
29915,
1753,
29915,
13,
978,
29989,
29915,
1688,
29918,
1982,
15389,
29918,
3820,
5402,
5847,
29918,
9465,
29918,
2541,
29918,
25707,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
22099,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12860,
29989,
29915,
4706,
525,
13,
978,
29989,
29915,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
29915,
29914,
29885,
593,
11838,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
15764,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
3820,
5402,
5847,
29918,
16476,
29918,
3149,
29918,
3188,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
2972,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
29915,
1982,
15389,
11838,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
3820,
5402,
5847,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
14868,
15389,
29954,
29880,
5402,
5847,
24679,
12376,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
29888,
1296,
29918,
13082,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
303,
23954,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2697,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
1982,
15389,
29918,
13239,
29915,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
29915,
275,
29918,
16476,
287,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
2892,
29915,
13,
978,
29989,
29915,
29916,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
29881,
29915,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
8824,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
29915,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29896,
29889,
29896,
8419,
24623,
29899,
29900,
29900,
29900,
29900,
29896,
11838,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
6768,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
28560,
29877,
16199,
1555,
1445,
29899,
2974,
29922,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29896,
29889,
29906,
11838,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
15843,
29918,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
359,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2084,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
7122,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
13239,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
657,
29918,
8568,
29918,
710,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
29915,
2433,
13,
459,
29989,
29915,
10998,
13,
1807,
29989,
29908,
29915,
1272,
11838,
13,
459,
29989,
22099,
13,
459,
29989,
29915,
10998,
13,
1807,
29989,
29908,
29915,
15843,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
1807,
29989,
29908,
29915,
978,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
978,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
1807,
29989,
29908,
29915,
6768,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
6768,
29915,
13,
459,
29989,
29915,
10162,
13,
459,
29989,
29915,
10162,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
6915,
29918,
24623,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
20960,
29918,
3888,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2218,
6915,
29918,
24623,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
3788,
13,
1807,
29989,
11838,
29894,
311,
29908,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
9684,
29918,
26381,
29915,
13,
459,
29989,
29915,
2433,
13,
459,
29989,
29915,
1839,
13,
12938,
29989,
12764,
29876,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
11256,
3972,
11838,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
28560,
29886,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
15843,
29918,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
16476,
11838,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
28560,
29873,
11838,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
29915,
3820,
5402,
5847,
11838,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
1807,
29989,
29908,
28560,
29877,
11838,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
29915,
1627,
786,
1555,
1445,
29899,
2974,
29922,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29896,
29889,
29906,
11838,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
15843,
29918,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
398,
792,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
15843,
29918,
29885,
593,
29918,
3188,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
459,
29989,
2033,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
9294,
9843,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
9684,
29918,
26381,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
4258,
2667,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
2287,
6154,
29989,
14242,
29989,
1688,
29918,
1982,
15389,
29918,
3820,
5402,
5847,
29918,
1982,
29887,
29888,
2754,
13,
7176,
296,
29989,
4907,
13,
978,
29989,
29915,
1753,
29915,
13,
978,
29989,
29915,
1688,
29918,
1982,
15389,
29918,
3820,
5402,
5847,
29918,
1982,
29887,
29888,
2754,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
22099,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12860,
29989,
29915,
4706,
525,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
15764,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
29939,
24425,
29918,
24622,
29918,
12925,
29918,
24477,
874,
29915,
13,
459,
29989,
29915,
2433,
13,
459,
29989,
29915,
1839,
13,
1807,
29989,
29908,
29915,
3820,
5402,
11838,
13,
459,
29989,
2033,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
2972,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
29915,
1982,
15389,
11838,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
3820,
5402,
5847,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
14868,
15389,
29954,
29880,
5402,
5847,
24679,
12376,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
29888,
1296,
29918,
13082,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
303,
23954,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2697,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
1982,
15389,
29918,
13239,
29915,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
29915,
275,
29918,
16476,
287,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
2892,
29915,
13,
978,
29989,
29915,
29916,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
29881,
29915,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
8824,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
29915,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29896,
29889,
29896,
8419,
24623,
29899,
29900,
29900,
29900,
29900,
29896,
11838,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
978,
29915,
13,
459,
29989,
29915,
2433,
13,
1807,
29989,
29908,
29915,
24623,
29899,
29900,
29900,
29900,
29900,
29896,
11838,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
29915,
2433,
13,
459,
29989,
29915,
10998,
13,
1807,
29989,
29908,
29915,
1272,
11838,
13,
459,
29989,
22099,
13,
459,
29989,
29915,
10998,
13,
1807,
29989,
29908,
29915,
15843,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
15843,
29918,
1807,
29915,
13,
459,
29989,
3788,
13,
1807,
29989,
29908,
29915,
978,
11838,
13,
459,
29989,
22099,
13,
978,
29989,
29915,
978,
29915,
13,
459,
29989,
29915,
10162,
13,
459,
29989,
29915,
10162,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
20960,
29918,
3888,
29915,
13,
459,
29989,
29915,
2433,
13,
459,
29989,
29915,
10998,
13,
12938,
29989,
12764,
29876,
29915,
13,
1807,
29989,
11838,
3359,
29908,
29915,
13,
459,
29989,
22099,
13,
1807,
29989,
11838,
29894,
311,
29908,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
1807,
29989,
11838,
1853,
29908,
29915,
13,
459,
29989,
22099,
13,
1807,
29989,
11838,
20960,
29908,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
1807,
29989,
11838,
8262,
29908,
29915,
13,
459,
29989,
22099,
13,
1807,
29989,
11838,
15389,
601,
29908,
29915,
13,
459,
29989,
3788,
13,
12938,
29989,
12764,
29876,
29915,
13,
459,
29989,
29915,
10162,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
6915,
29918,
24623,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
20960,
29918,
3888,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
5527,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
657,
29918,
2917,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
20960,
29918,
3888,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
8336,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
5527,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
4830,
29918,
3129,
29915,
13,
459,
29989,
29915,
877,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
9294,
9843,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
11618,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
8336,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
657,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
1853,
11838,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
9294,
9843,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
1610,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
8336,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2886,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
4286,
29914,
9465,
11838,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
657,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
1853,
11838,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
4993,
29915,
13,
459,
29989,
29915,
2433,
13,
978,
29989,
29915,
8336,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2886,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
4286,
29914,
4993,
11838,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
9294,
9843,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
3820,
5402,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
4993,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
657,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
20464,
11838,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
9294,
9843,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
24623,
29899,
29900,
29900,
29900,
29900,
29896,
29914,
24623,
29899,
29900,
29900,
29900,
29900,
29896,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
4993,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
657,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
978,
11838,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
9294,
9843,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
29896,
29929,
29906,
29889,
29896,
29953,
29947,
29889,
29896,
29889,
29896,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
4993,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2886,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
4286,
29914,
3069,
11838,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
657,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
978,
11838,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1311,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
9294,
9843,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
29906,
29946,
29900,
29900,
29955,
11838,
13,
459,
29989,
3788,
13,
978,
29989,
29915,
4993,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2886,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
4286,
29914,
3069,
11838,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
657,
29915,
13,
459,
29989,
29915,
877,
13,
1807,
29989,
29908,
29915,
637,
11838,
13,
459,
29989,
1495,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
12938,
29989,
12764,
29876,
29915,
13,
978,
29989,
29915,
1982,
15389,
29918,
9465,
29915,
13,
459,
29989,
4286,
29915,
13,
978,
29989,
29915,
2218,
6915,
29918,
24623,
29915,
13,
459,
29989,
29915,
877,
13,
978,
29989,
29915,
9965,
29918,
3888,
29915,
13,
459,
29989,
3788,
13,
1807,
29989,
11838,
29894,
311,
29908,
29915,
13,
459,
29989,
1495,
29915,
13,
1482,
1220,
29989,
12764,
29876,
29915,
13,
7176,
296,
29989,
4907,
13,
7176,
296,
29989,
4907,
13,
355,
22976,
29989,
4907,
13,
355,
29918,
5441,
13,
2
] |
misc/eulerhelper.py | Hashi4/vmdgadgets | 0 | 39658 | import sys
sys.path.append('../vmdgadgets')
import vmdutil
import functools
def alt_dot_v(v1, v2):
return functools.reduce(
lambda i, j: i + j, [x * y for x, y in zip(v1, v2)])
vmdutil.vmdutil.dot_v = alt_dot_v
vmdutil.dot_v = alt_dot_v
class strexp():
def __init__(self, val):
self.val = val
def __mul__(self, other):
if other.val == '0' or self.val == '0':
return strexp('0')
elif other.val == '1':
return self
elif self.val == '1':
return other
else:
return strexp('(' + self.val + ')*(' + other.val + ')')
def __add__(self, other):
if other.val == '0':
return self
elif self.val == '0':
return other
else:
return strexp(self.val + '+' + other.val)
def __sub__(self, other):
if other.val == '0':
return self
elif self.val == '0':
return strexp('-' + other.val)
else:
return strexp(self.val + '-' + other.val)
def __neg__(self):
return strexp('-' + self.val)
def __repr__(self):
return self.val
if __name__ == '__main__':
zero = strexp('0')
one = strexp('1')
p = [strexp('sp'), zero, zero, strexp('cp')] # q(1, 0, 0, wx)
y = [zero, strexp('sy'), zero, strexp('cy')]
r = [zero, zero, strexp('sr'), strexp('cr')]
o = vmdutil.multiply_quaternion(
vmdutil.multiply_quaternion(r, p), y)
print('euler2quaternion of z-x-y(global)')
print(o)
print()
# rotx = [[1, 0, 0], [0, cx, -sx], [0, sx, cx]]
# roty = [[cy, 0, sy], [0, 1, 0], [-sy, 0, cy]]
# rotz = [[cz, -sz, 0], [sz, cz, 0], [0, 0, 1]]
cx = strexp('cx')
cy = strexp('cy')
cz = strexp('cz')
sx = strexp('sx')
sy = strexp('sy')
sz = strexp('sz')
print('euler2matrix of z-x-y(global)')
o = vmdutil.dot_m(
vmdutil.dot_m(
[[cz, -sz, zero], [sz, cz, zero], [zero, zero, one]],
[[one, zero, zero], [zero, cx, -sx], [zero, sx, cx]]),
[[cy, zero, sy], [zero, one, zero], [-sy, zero, cy]])
for r in o:
print(r)
| [
1,
1053,
10876,
13,
9675,
29889,
2084,
29889,
4397,
877,
6995,
29894,
3487,
29887,
328,
20078,
1495,
13,
5215,
325,
3487,
4422,
13,
13,
5215,
2090,
312,
8789,
13,
1753,
5272,
29918,
6333,
29918,
29894,
29898,
29894,
29896,
29892,
325,
29906,
1125,
13,
1678,
736,
2090,
312,
8789,
29889,
17469,
29898,
13,
4706,
14013,
474,
29892,
432,
29901,
474,
718,
432,
29892,
518,
29916,
334,
343,
363,
921,
29892,
343,
297,
14319,
29898,
29894,
29896,
29892,
325,
29906,
29897,
2314,
13,
29894,
3487,
4422,
29889,
29894,
3487,
4422,
29889,
6333,
29918,
29894,
353,
5272,
29918,
6333,
29918,
29894,
13,
29894,
3487,
4422,
29889,
6333,
29918,
29894,
353,
5272,
29918,
6333,
29918,
29894,
13,
13,
1990,
12243,
26330,
7295,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
659,
1125,
13,
4706,
1583,
29889,
791,
353,
659,
13,
1678,
822,
4770,
16109,
12035,
1311,
29892,
916,
1125,
13,
4706,
565,
916,
29889,
791,
1275,
525,
29900,
29915,
470,
1583,
29889,
791,
1275,
525,
29900,
2396,
13,
9651,
736,
12243,
26330,
877,
29900,
1495,
13,
4706,
25342,
916,
29889,
791,
1275,
525,
29896,
2396,
13,
9651,
736,
1583,
13,
4706,
25342,
1583,
29889,
791,
1275,
525,
29896,
2396,
13,
9651,
736,
916,
13,
4706,
1683,
29901,
13,
9651,
736,
12243,
26330,
877,
877,
718,
1583,
29889,
791,
718,
525,
11877,
877,
718,
916,
29889,
791,
718,
25710,
1495,
13,
13,
1678,
822,
4770,
1202,
12035,
1311,
29892,
916,
1125,
13,
4706,
565,
916,
29889,
791,
1275,
525,
29900,
2396,
13,
9651,
736,
1583,
13,
4706,
25342,
1583,
29889,
791,
1275,
525,
29900,
2396,
13,
9651,
736,
916,
13,
4706,
1683,
29901,
13,
9651,
736,
12243,
26330,
29898,
1311,
29889,
791,
718,
525,
23097,
718,
916,
29889,
791,
29897,
13,
13,
1678,
822,
4770,
1491,
12035,
1311,
29892,
916,
1125,
13,
4706,
565,
916,
29889,
791,
1275,
525,
29900,
2396,
13,
9651,
736,
1583,
13,
4706,
25342,
1583,
29889,
791,
1275,
525,
29900,
2396,
13,
9651,
736,
12243,
26330,
877,
29899,
29915,
718,
916,
29889,
791,
29897,
13,
4706,
1683,
29901,
13,
9651,
736,
12243,
26330,
29898,
1311,
29889,
791,
718,
17411,
29915,
718,
916,
29889,
791,
29897,
13,
13,
1678,
822,
4770,
10052,
12035,
1311,
1125,
13,
4706,
736,
12243,
26330,
877,
29899,
29915,
718,
1583,
29889,
791,
29897,
13,
1678,
822,
4770,
276,
558,
12035,
1311,
1125,
13,
4706,
736,
1583,
29889,
791,
13,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
1678,
5225,
353,
12243,
26330,
877,
29900,
1495,
13,
1678,
697,
353,
12243,
26330,
877,
29896,
1495,
13,
1678,
282,
353,
518,
13045,
26330,
877,
1028,
5477,
5225,
29892,
5225,
29892,
12243,
26330,
877,
6814,
1495,
29962,
396,
3855,
29898,
29896,
29892,
29871,
29900,
29892,
29871,
29900,
29892,
26437,
29897,
13,
1678,
343,
353,
518,
9171,
29892,
12243,
26330,
877,
29879,
29891,
5477,
5225,
29892,
12243,
26330,
877,
1270,
1495,
29962,
13,
1678,
364,
353,
518,
9171,
29892,
5225,
29892,
12243,
26330,
877,
21935,
5477,
12243,
26330,
877,
7283,
1495,
29962,
13,
1678,
288,
353,
325,
3487,
4422,
29889,
18056,
368,
29918,
339,
25744,
291,
29898,
13,
9651,
325,
3487,
4422,
29889,
18056,
368,
29918,
339,
25744,
291,
29898,
29878,
29892,
282,
511,
343,
29897,
13,
1678,
1596,
877,
29872,
8584,
29906,
339,
25744,
291,
310,
503,
29899,
29916,
29899,
29891,
29898,
10945,
29897,
1495,
13,
1678,
1596,
29898,
29877,
29897,
13,
1678,
1596,
580,
13,
13,
13,
1678,
396,
5731,
29916,
353,
5519,
29896,
29892,
29871,
29900,
29892,
29871,
29900,
1402,
518,
29900,
29892,
28232,
29892,
448,
29879,
29916,
1402,
518,
29900,
29892,
269,
29916,
29892,
28232,
5262,
13,
1678,
396,
696,
1017,
353,
5519,
1270,
29892,
29871,
29900,
29892,
9878,
1402,
518,
29900,
29892,
29871,
29896,
29892,
29871,
29900,
1402,
21069,
29879,
29891,
29892,
29871,
29900,
29892,
5094,
5262,
13,
1678,
396,
5731,
29920,
353,
5519,
2067,
29892,
448,
3616,
29892,
29871,
29900,
1402,
518,
3616,
29892,
5316,
29892,
29871,
29900,
1402,
518,
29900,
29892,
29871,
29900,
29892,
29871,
29896,
5262,
13,
1678,
28232,
353,
12243,
26330,
877,
18904,
1495,
13,
1678,
5094,
353,
12243,
26330,
877,
1270,
1495,
13,
1678,
5316,
353,
12243,
26330,
877,
2067,
1495,
13,
1678,
269,
29916,
353,
12243,
26330,
877,
29879,
29916,
1495,
13,
1678,
9878,
353,
12243,
26330,
877,
29879,
29891,
1495,
13,
1678,
2268,
353,
12243,
26330,
877,
3616,
1495,
13,
1678,
1596,
877,
29872,
8584,
29906,
5344,
310,
503,
29899,
29916,
29899,
29891,
29898,
10945,
29897,
1495,
13,
1678,
288,
353,
325,
3487,
4422,
29889,
6333,
29918,
29885,
29898,
13,
9651,
325,
3487,
4422,
29889,
6333,
29918,
29885,
29898,
13,
18884,
5519,
2067,
29892,
448,
3616,
29892,
5225,
1402,
518,
3616,
29892,
5316,
29892,
5225,
1402,
518,
9171,
29892,
5225,
29892,
697,
20526,
13,
18884,
5519,
650,
29892,
5225,
29892,
5225,
1402,
518,
9171,
29892,
28232,
29892,
448,
29879,
29916,
1402,
518,
9171,
29892,
269,
29916,
29892,
28232,
5262,
511,
13,
9651,
5519,
1270,
29892,
5225,
29892,
9878,
1402,
518,
9171,
29892,
697,
29892,
5225,
1402,
21069,
29879,
29891,
29892,
5225,
29892,
5094,
24960,
13,
1678,
363,
364,
297,
288,
29901,
13,
4706,
1596,
29898,
29878,
29897,
13,
2
] |
src/tdparse.py | bluemonk482/tdparse | 27 | 1615292 | """
For generating libsvm-formated feature vectors.
Many functions here are borrowed from Duy-Tin Vo's implementation
"""
import sys
sys.path.insert(0, r'../')
import os
import re
import numpy as np
import gensim
from collections import defaultdict
import argparse
from argparse import ArgumentParser
from utilities import readConll, writevec, writey, traversaltree
from data.dataprocessing import streamtw, streamtwElec
import warnings
warnings.simplefilter("error")
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
class lexicon(object):
def __init__(self,Wfile='../resources/lexicons/wilson/subjclueslen1-HLTEMNLP05.tff',
Bfiles=['../resources/lexicons/binhliu/negative-words.txt','../resources/lexicons/binhliu/positive-words.txt'],
Mfile='../resources/lexicons/mohammad/NRC-emotion-lexicon-wordlevel-alphabetized-v0.92.txt',size=100):
self.pos,self.neg,self.neu=self.Wilson(Wfile)
self.updateBinhliu(Bfiles)
self.intersect()
def extract(self,word):
return word.split('=')[-1]
def Wilson(self,filename):
neg=[]
pos=[]
neu=[]
with open(filename,'r') as f:
for line in f:
wtype,wlen,word1,pos1,stemmed1,priorpolarity=line.strip().split(' ')
if self.extract(priorpolarity)=='negative':
neg.append(self.extract(word1))
elif self.extract(priorpolarity)=='positive':
pos.append(self.extract(word1))
else:
neu.append(self.extract(word1))
pos=set(pos)
neg=set(neg)
neu=set(neu)
return pos,neg,neu
def Mohammad(self,filename):
neg=[]
pos=[]
with open(filename,'r') as f:
for line in f:
wd,senti,flag=line.strip().split('\t')
if senti=='negative' and flag=='1':
neg.append(wd)
elif senti=='positive' and flag=='1':
pos.append(wd)
else:
pass
pos=set(pos)
neg=set(neg)
return pos,neg
def Binhliu(self,filename):
neg=np.loadtxt(filename[0],skiprows=1,dtype='string',comments=';')
pos=np.loadtxt(filename[1],skiprows=1,dtype='string',comments=';')
pos=set(pos)
neg=set(neg)
return pos,neg
def updateBinhliu(self,Bfiles):
lexBinh=self.Binhliu(Bfiles)
self.pos.update(lexBinh[0])
self.neg.update(lexBinh[1])
def updateMohammad(self,Mfile):
lexMoh=self.Mohammad(Mfile)
self.pos.update(lexMoh[0])
self.neg.update(lexMoh[1])
def intersect(self):
temp1=self.pos.intersection(self.neg)
temp2=self.pos.intersection(self.neu)
temp3=self.neg.intersection(self.neu)
self.pos.difference_update(temp1)
self.pos.difference_update(temp2)
self.neg.difference_update(temp1)
self.neg.difference_update(temp3)
self.neu.difference_update(temp2)
self.neu.difference_update(temp3)
def intersect2(self):
temp1=self.pos.intersection(self.neg)
self.pos.difference_update(temp1)
self.neg.difference_update(temp1)
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
class streamdata(object):
def __init__(self, dirname):
self.dirname = dirname
def __iter__(self):
for fname in os.listdir(self.dirname):
for line in open(os.path.join(self.dirname, fname)):
yield line.rstrip().split('\t')
def readTang(fname='../resources/wordemb/sswe'):
embs=streamdata(fname)
embedmodel={}
for tw2vec in embs:
wd=tw2vec[0]
value=[float(i) for i in tw2vec[1:]]
embedmodel[wd]=np.array(value)
return embedmodel
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
class targettw(object):
def __init__(self,w2vf='../resources/wordemb/w2v/c10_w3_s100',
sswef='../resources/wordemb/sswe'):
self.w2v=gensim.models.Word2Vec.load(w2vf)
self.sswe=readTang(sswef)
self.lexicons=lexicon()
def emdsswe(self,i,loc,uni,target):
f=np.array([])
l=np.array([])
r=np.array([])
t=np.array([])
ls=np.array([])
rs=np.array([])
#embeddings of fulltw features
f=self.sswe.get(uni,self.sswe['<unk>'])
#embeddings of left context features
if i<loc:
l=self.sswe.get(uni,self.sswe['<unk>'])
if self.lexicons.pos.issuperset(set([uni])):
try:
ls=self.sswe[uni]
except:
pass
if self.lexicons.neg.issuperset(set([uni])):
try:
ls=self.sswe[uni]
except:
pass
#embbeddings of target features
elif(i==loc):
t=self.sswe.get(target.replace('_',''),self.sswe['<unk>'])
target2=target.split('_')
for wd in target2:
ti=self.sswe.get(wd,self.sswe['<unk>'])
t=np.concatenate([t,ti])
#embbeddings of right context features
else:
r=self.sswe.get(uni,self.sswe['<unk>'])
if self.lexicons.pos.issuperset(set([uni])):
try:
rs=self.sswe[uni]
except:
pass
if self.lexicons.neg.issuperset(set([uni])):
try:
rs=self.sswe[uni]
except:
pass
return [f,l,t,r,ls,rs]
def emdw2v(self,i,loc,uni,target):
f=np.array([])
l=np.array([])
r=np.array([])
t=np.array([])
ls=np.array([])
rs=np.array([])
try:
f=self.w2v[uni]
except:
pass
#embbeddings of left context features
if i<loc:
try:
l=self.w2v[uni]
except:
pass
try:
if self.lexicons.pos.issuperset(set([uni])):
ls=self.w2v[uni]
except:
pass
try:
if self.lexicons.neg.issuperset(set([uni])):
ls=self.w2v[uni]
except:
pass
#embbeddings of target feature
elif(i==loc):
try:
t=self.w2v[target.replace('_','')]
except:
pass
target2=target.split('_')
for wd in target2:
try:
ti=self.w2v[wd]
t=np.concatenate([t,ti])
except:
pass
#embbeddings of right context features
else:
try:
r=self.w2v[uni]
except:
pass
try:
if self.lexicons.pos.issuperset(set([uni])):
rs=self.w2v[uni]
except:
pass
try:
if self.lexicons.neg.issuperset(set([uni])):
rs=self.w2v[uni]
except:
pass
return [f,l,t,r,ls,rs]
def concattw(self,feature,size,tws,etype,locs,target,emp,emode):
""" Concatenation of different features
"""
fullf=np.array([])
leftf=np.array([])
rightf=np.array([])
tarf=np.array([])
fulltw_maxs=np.array([])
fulltw_mins=np.array([])
fulltw_means=np.array([])
fulltw_prods=np.array([])
left_maxs=np.array([])
left_mins=np.array([])
left_means=np.array([])
left_prods=np.array([])
right_maxs=np.array([])
right_mins=np.array([])
right_means=np.array([])
right_prods=np.array([])
tar_maxs=np.array([])
tar_mins=np.array([])
tar_means=np.array([])
tar_prods=np.array([])
leftsenti_max=np.array([])
rightsenti_max=np.array([])
leftsenti_sum=np.array([])
rightsenti_sum=np.array([])
fulltws=np.array([])
lefts=np.array([])
rights=np.array([])
tars=np.array([])
leftsentis=np.array([])
rightsentis=np.array([])
for a in range(len(locs)):
if emode=='full':
tw = tws
else:
tw = tws[a]
loc = locs[a]
fulltw=np.array([])
left=np.array([])
right=np.array([])
tar=np.array([])
leftsenti=np.array([])
rightsenti=np.array([])
for i,uni in enumerate(tw):
if emode =='parse':
uni = uni[0]
if etype=='w2v':
f,l,t,r,ls,rs=self.emdw2v(i,loc,uni,target)
if etype=='sswe':
f,l,t,r,ls,rs=self.emdsswe(i,loc,uni,target)
fulltw=np.concatenate([fulltw,f])
left=np.concatenate([left,l])
tar=np.concatenate([tar,t])
right=np.concatenate([right,r])
leftsenti=np.concatenate([leftsenti,ls])
rightsenti=np.concatenate([rightsenti,rs])
#padding
if list(left)==[]:
left=np.zeros((2*size,))
if list(right)==[]:
right=np.zeros((2*size,))
if list(fulltw)==[]:
fulltw=np.zeros((2*size,))
if list(tar)==[]:
tar=np.zeros((2*size,))
if len(left)<=size:
left=np.concatenate([left,np.zeros((size,))])
if len(right)<=size:
right=np.concatenate([right,np.zeros((size,))])
if len(fulltw)<=size:
fulltw=np.concatenate([fulltw,np.zeros((size,))])
if len(tar)<=size:
tar=np.concatenate([tar,np.zeros((size,))])
if list(leftsenti)==[]:
leftsenti=np.zeros((size,))
if list(rightsenti)==[]:
rightsenti=np.zeros((size,))
fullf=np.append(fullf,fulltw, axis=0)
leftf=np.append(leftf,left, axis=0)
rightf=np.append(rightf,right, axis=0)
tarf=np.append(tarf,tar, axis=0)
fulltw=fulltw.reshape(len(fulltw)/size,size)
left=left.reshape(len(left)/size,size)
right=right.reshape(len(right)/size,size)
tar=tar.reshape(len(tar)/size,size)
leftsenti=leftsenti.reshape(len(leftsenti)/size,size)
rightsenti=rightsenti.reshape(len(rightsenti)/size,size)
fulltw_maxs=np.append(fulltw_maxs,fulltw.max(axis=0), axis=0)
fulltw_mins=np.append(fulltw_mins,fulltw.min(axis=0), axis=0)
fulltw_means=np.append(fulltw_means,fulltw.mean(axis=0), axis=0)
fulltw_prods=np.append(fulltw_prods,fulltw.prod(axis=0), axis=0)
left_maxs=np.append(left_maxs,left.max(axis=0), axis=0)
left_mins=np.append(left_mins,left.min(axis=0), axis=0)
left_means=np.append(left_means,left.mean(axis=0), axis=0)
if not np.count_nonzero(left):
left_prods=np.append(left_prods,left.prod(axis=0), axis=0)
else:
left_prods=np.append(left_prods,left[~np.all(left == 0, axis=1)].prod(axis=0), axis=0)
right_maxs=np.append(right_maxs,right.max(axis=0), axis=0)
right_mins=np.append(right_mins,right.min(axis=0), axis=0)
right_means=np.append(right_means,right.mean(axis=0), axis=0)
if not np.count_nonzero(right):
right_prods=np.append(right_prods,right.prod(axis=0), axis=0)
else:
right_prods=np.append(right_prods,right[~np.all(right == 0, axis=1)].prod(axis=0), axis=0)
tar_maxs=np.append(tar_maxs,tar.max(axis=0), axis=0)
tar_mins=np.append(tar_mins,tar.min(axis=0), axis=0)
tar_means=np.append(tar_means,tar.mean(axis=0), axis=0)
tar_prods=np.append(tar_prods,tar.prod(axis=0), axis=0)
leftsenti_max=np.append(leftsenti_max,leftsenti.max(axis=0), axis=0)
rightsenti_max=np.append(rightsenti_max,rightsenti.max(axis=0), axis=0)
leftsenti_sum=np.append(leftsenti_sum,leftsenti.sum(axis=0), axis=0)
rightsenti_sum=np.append(rightsenti_sum,rightsenti.sum(axis=0), axis=0)
fullf=fullf.reshape(len(fullf)/size,size)
leftf=leftf.reshape(len(leftf)/size,size)
rightf=rightf.reshape(len(rightf)/size,size)
tarf=tarf.reshape(len(tarf)/size,size)
fulltw_maxs=fulltw_maxs.reshape(len(fulltw_maxs)/size,size)
fulltw_mins=fulltw_mins.reshape(len(fulltw_mins)/size,size)
fulltw_means=fulltw_means.reshape(len(fulltw_means)/size,size)
fulltw_prods=fulltw_prods.reshape(len(fulltw_prods)/size,size)
left_maxs=left_maxs.reshape(len(left_maxs)/size,size)
left_mins=left_mins.reshape(len(left_mins)/size,size)
left_means=left_means.reshape(len(left_means)/size,size)
left_prods=left_prods.reshape(len(left_prods)/size,size)
right_maxs=right_maxs.reshape(len(right_maxs)/size,size)
right_mins=right_mins.reshape(len(right_mins)/size,size)
right_means=right_means.reshape(len(right_means)/size,size)
right_prods=right_prods.reshape(len(right_prods)/size,size)
tar_maxs=tar_maxs.reshape(len(tar_maxs)/size,size)
tar_mins=tar_mins.reshape(len(tar_mins)/size,size)
tar_means=tar_means.reshape(len(tar_means)/size,size)
tar_prods=tar_prods.reshape(len(tar_prods)/size,size)
leftsenti_max=leftsenti_max.reshape(len(leftsenti_max)/size,size)
rightsenti_max=rightsenti_max.reshape(len(rightsenti_max)/size,size)
leftsenti_sum=leftsenti_sum.reshape(len(leftsenti_sum)/size,size)
rightsenti_sum=rightsenti_sum.reshape(len(rightsenti_sum)/size,size)
fulltws=np.concatenate([np.median(fulltw_maxs, axis=0),
np.median(fulltw_mins, axis=0),
np.median(fulltw_means, axis=0),
np.std(fullf, axis=0),
np.median(fulltw_prods, axis=0)
])
lefts=np.concatenate([np.median(left_maxs, axis=0),
np.median(left_mins, axis=0),
np.median(left_means, axis=0),
np.std(leftf, axis=0),
np.median(left_prods, axis=0)
])
rights=np.concatenate([np.median(right_maxs, axis=0),
np.median(right_mins, axis=0),
np.median(right_means, axis=0),
np.std(rightf, axis=0),
np.median(right_prods, axis=0)
])
tars=np.concatenate([np.median(tar_maxs, axis=0),
np.median(tar_mins, axis=0),
np.median(tar_means, axis=0),
np.std(tarf, axis=0),
np.median(tar_prods, axis=0)
])
leftsentis=np.concatenate([np.median(leftsenti_max, axis=0),
np.median(leftsenti_sum, axis=0)])
rightsentis=np.concatenate([np.median(rightsenti_max, axis=0),
np.median(rightsenti_sum, axis=0)])
if emode == 'full':
if emp:
# Adds full tweet feature vectors
feature=np.concatenate([feature,fulltws])
else:
feature=np.concatenate([feature,lefts])
feature=np.concatenate([feature,rights])
feature=np.concatenate([feature,tars])
# Adds features from lexicon filtered words
# (not used on the election data)
feature=np.concatenate([feature,leftsentis])
feature=np.concatenate([feature,rightsentis])
elif emode == 'parse':
feature=np.concatenate([feature,fulltws])
return feature
def lidongfeat(self, dataf, conllpath):
""" Main function for (Dong et al., 2014) data feature extraction.
"""
size1=len(self.w2v['the'])
size2=len(self.sswe['the'])
conll = readConll(conllpath, 'cmu')
data = streamtw(dataf)
y=[]
x=np.array([])
count=0
for a, d in enumerate(data):
feature=np.array([])
emp=False
tw = [t[1].lower() for t in conll[a]]
target = d[1]
y.append(d[2])
try:
loc=[i for i, j in enumerate(tw) if j == target]
except Exception as e:
print "Couldn't find the tokenised target!"
print target, tw
subtw, target_position, emp = traversaltree(conll[a],target,emp,'cmu') #returns relevant words to the target
emp = False
if emp:
count+=1
feature=self.concattw(feature,size1,tw,'w2v',loc,target,emp,'full')
feature=self.concattw(feature,size2,tw,'sswe',loc,target,emp,'full')
else:
feature=self.concattw(feature,size1,subtw,'w2v',target_position,target,False,'parse')
feature=self.concattw(feature,size2,subtw,'sswe',target_position,target,False,'parse')
feature=self.concattw(feature,size1,tw,'w2v',loc,target,False,'full')
feature=self.concattw(feature,size2,tw,'sswe',loc,target,False,'full')
x=np.concatenate([x,feature])
x=x.reshape((len(y),len(x)/len(y)))
print x.shape
print count
return(x,y)
def elecfeat(self, dataf, conllpath):
""" Main function for election data feature extraction.
"""
size1=len(self.w2v['the'])
size2=len(self.sswe['the'])
conll = readConll(conllpath, 'cmu')
data = streamtwElec(dataf)
y=[]
x=np.array([])
id = []
count=0
for a, d in enumerate(data):
feature=np.array([])
emp=False
tw=[t[1] for t in conll[a]]
# tw=d[0]
target=d[1]
if target=='"long_term_economic"_plans':
target='long_term_economic'
y.append(d[2])
id.append(d[3])
whichone = d[4]
locations = [i for i, j in enumerate(tw) if j == target]
if (whichone != 'nan') and (len(locations)> 1):
if whichone >= len(locations):
loc = locations[-1]
else:
loc = locations[whichone]
else:
loc = tw.index(target)
subtw, target_position, emp = traversaltree(conll[a],target,emp,'cmu')
emp = False
if emp:
count+=1
feature=self.concattw(feature,size1,tw,'w2v',[loc],target,emp,'full')
feature=self.concattw(feature,size2,tw,'sswe',[loc],target,emp,'full')
else:
feature=self.concattw(feature,size1,subtw,'w2v',target_position,target,False,'parse')
feature=self.concattw(feature,size2,subtw,'sswe',target_position,target,False,'parse')
feature=self.concattw(feature,size1,tw,'w2v',[loc],target,False,'full')
feature=self.concattw(feature,size2,tw,'sswe',[loc],target,False,'full')
x=np.concatenate([x,feature])
x=x.reshape((len(y),len(x)/len(y)))
print x.shape
print count
return(x,y,id)
def main(d, train_conllpath, test_conllpath):
features=targettw()
print "extracting features for training"
if (d == 'lidong') or (d == 'semeval'):
x_train,y_train=features.lidongfeat('../data/'+d+'/training/', train_conllpath)
print 'Parse source: ', train_conllpath
elif d == 'election':
print 'election training data'
x_train,y_train,id_train=features.elecfeat('../data/'+d+'/training/', train_conllpath)
writey('../data/'+d+'/output/id_train',id_train)
print 'Parse source: ', train_conllpath
writevec('../data/'+d+'/output/training',x_train,y_train)
print "extracting features for testing"
if (d == 'lidong') or (d == 'semeval'):
x_test,y_test=features.lidongfeat('../data/'+d+'/testing/', test_conllpath)
print 'Parse source: ', test_conllpath
elif d == 'election':
print 'election testing data'
x_test,y_test,id_test=features.elecfeat('../data/'+d+'/testing/', test_conllpath)
print 'Parse source: ', test_conllpath
writevec('../data/'+d+'/output/testing',x_test,y_test)
writey('../data/'+d+'/output/y_test',y_test)
if __name__ == "__main__":
parser = ArgumentParser()
parser.add_argument("--data", dest="d", help="dataset", default='data')
parser.add_argument("--trainparse", dest="conll1", help="train parse conll filename", default='../data/election/parses/election.train.conll')
parser.add_argument("--testparse", dest="conll2", help="test parse conll filename", default='../data/election/parses/election.test.conll')
args = parser.parse_args()
main(args.d, args.conll1, args.conll2)
| [
1,
9995,
29871,
13,
2831,
14655,
4303,
4501,
29885,
29899,
689,
630,
4682,
12047,
29889,
13,
14804,
3168,
1244,
526,
27942,
287,
515,
5334,
29891,
29899,
29911,
262,
4785,
29915,
29879,
5314,
13,
15945,
29908,
13,
5215,
10876,
13,
9675,
29889,
2084,
29889,
7851,
29898,
29900,
29892,
364,
29915,
6995,
1495,
13,
5215,
2897,
13,
5215,
337,
13,
5215,
12655,
408,
7442,
13,
5215,
26943,
326,
13,
3166,
16250,
1053,
2322,
8977,
13,
5215,
1852,
5510,
13,
3166,
1852,
5510,
1053,
23125,
11726,
13,
3166,
3667,
1907,
1053,
1303,
1168,
645,
29892,
2436,
2003,
29892,
2436,
29891,
29892,
13310,
1997,
929,
13,
3166,
848,
29889,
4130,
481,
307,
985,
292,
1053,
4840,
7516,
29892,
4840,
7516,
29923,
280,
29883,
13,
5215,
18116,
13,
13,
25442,
886,
29889,
12857,
4572,
703,
2704,
1159,
13,
13,
29937,
2683,
2683,
2683,
2683,
9072,
489,
13,
29937,
2683,
2683,
2683,
2683,
9072,
489,
13,
1990,
19566,
4144,
29898,
3318,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
29956,
1445,
2433,
6995,
13237,
29914,
2506,
27078,
29914,
29893,
309,
1100,
29914,
1491,
29926,
695,
1041,
2435,
29896,
29899,
15444,
4330,
29924,
29940,
13208,
29900,
29945,
29889,
29873,
600,
742,
13,
462,
350,
5325,
29922,
1839,
6995,
13237,
29914,
2506,
27078,
29914,
2109,
29882,
492,
29884,
29914,
22198,
29899,
9303,
29889,
3945,
3788,
6995,
13237,
29914,
2506,
27078,
29914,
2109,
29882,
492,
29884,
29914,
1066,
3321,
29899,
9303,
29889,
3945,
7464,
13,
462,
341,
1445,
2433,
6995,
13237,
29914,
2506,
27078,
29914,
29885,
1148,
4850,
328,
29914,
29940,
10363,
29899,
331,
8194,
29899,
2506,
4144,
29899,
1742,
5563,
29899,
284,
17416,
1891,
29899,
29894,
29900,
29889,
29929,
29906,
29889,
3945,
742,
2311,
29922,
29896,
29900,
29900,
1125,
13,
4706,
1583,
29889,
1066,
29892,
1311,
29889,
10052,
29892,
1311,
29889,
484,
29884,
29922,
1311,
29889,
29594,
1100,
29898,
29956,
1445,
29897,
13,
4706,
1583,
29889,
5504,
29933,
262,
29882,
492,
29884,
29898,
29933,
5325,
29897,
13,
4706,
1583,
29889,
1639,
8803,
580,
13,
1678,
822,
6597,
29898,
1311,
29892,
1742,
1125,
13,
4706,
736,
1734,
29889,
5451,
877,
29922,
1495,
14352,
29896,
29962,
13,
1678,
822,
13015,
29898,
1311,
29892,
9507,
1125,
13,
4706,
3480,
29922,
2636,
13,
4706,
926,
29922,
2636,
13,
4706,
17167,
29922,
2636,
13,
4706,
411,
1722,
29898,
9507,
5501,
29878,
1495,
408,
285,
29901,
13,
9651,
363,
1196,
297,
285,
29901,
13,
18884,
281,
1853,
29892,
29893,
2435,
29892,
1742,
29896,
29892,
1066,
29896,
29892,
303,
331,
2168,
29896,
29892,
29886,
13479,
3733,
279,
537,
29922,
1220,
29889,
17010,
2141,
5451,
877,
25710,
13,
18884,
565,
1583,
29889,
21111,
29898,
29886,
13479,
3733,
279,
537,
29897,
1360,
29915,
22198,
2396,
13,
462,
1678,
3480,
29889,
4397,
29898,
1311,
29889,
21111,
29898,
1742,
29896,
876,
13,
18884,
25342,
1583,
29889,
21111,
29898,
29886,
13479,
3733,
279,
537,
29897,
1360,
29915,
1066,
3321,
2396,
13,
462,
1678,
926,
29889,
4397,
29898,
1311,
29889,
21111,
29898,
1742,
29896,
876,
13,
18884,
1683,
29901,
13,
462,
1678,
17167,
29889,
4397,
29898,
1311,
29889,
21111,
29898,
1742,
29896,
876,
13,
4706,
926,
29922,
842,
29898,
1066,
29897,
13,
4706,
3480,
29922,
842,
29898,
10052,
29897,
13,
4706,
17167,
29922,
842,
29898,
484,
29884,
29897,
13,
4706,
736,
926,
29892,
10052,
29892,
484,
29884,
13,
1678,
822,
12929,
4850,
328,
29898,
1311,
29892,
9507,
1125,
13,
4706,
3480,
29922,
2636,
13,
4706,
926,
29922,
2636,
13,
4706,
411,
1722,
29898,
9507,
5501,
29878,
1495,
408,
285,
29901,
13,
9651,
363,
1196,
297,
285,
29901,
13,
18884,
281,
29881,
29892,
29879,
7268,
29892,
15581,
29922,
1220,
29889,
17010,
2141,
5451,
28909,
29873,
1495,
13,
18884,
565,
2665,
29875,
1360,
29915,
22198,
29915,
322,
7353,
1360,
29915,
29896,
2396,
13,
462,
1678,
3480,
29889,
4397,
29898,
9970,
29897,
13,
18884,
25342,
2665,
29875,
1360,
29915,
1066,
3321,
29915,
322,
7353,
1360,
29915,
29896,
2396,
13,
462,
1678,
926,
29889,
4397,
29898,
9970,
29897,
13,
18884,
1683,
29901,
13,
462,
1678,
1209,
13,
4706,
926,
29922,
842,
29898,
1066,
29897,
13,
4706,
3480,
29922,
842,
29898,
10052,
29897,
13,
4706,
736,
926,
29892,
10052,
13,
1678,
822,
27662,
29882,
492,
29884,
29898,
1311,
29892,
9507,
1125,
268,
13,
4706,
3480,
29922,
9302,
29889,
1359,
3945,
29898,
9507,
29961,
29900,
1402,
11014,
5727,
29922,
29896,
29892,
29881,
1853,
2433,
1807,
742,
21032,
2433,
29936,
1495,
13,
4706,
926,
29922,
9302,
29889,
1359,
3945,
29898,
9507,
29961,
29896,
1402,
11014,
5727,
29922,
29896,
29892,
29881,
1853,
2433,
1807,
742,
21032,
2433,
29936,
1495,
13,
4706,
926,
29922,
842,
29898,
1066,
29897,
13,
4706,
3480,
29922,
842,
29898,
10052,
29897,
13,
4706,
736,
926,
29892,
10052,
13,
1678,
822,
2767,
29933,
262,
29882,
492,
29884,
29898,
1311,
29892,
29933,
5325,
1125,
13,
4706,
19566,
29933,
262,
29882,
29922,
1311,
29889,
29933,
262,
29882,
492,
29884,
29898,
29933,
5325,
29897,
13,
4706,
1583,
29889,
1066,
29889,
5504,
29898,
2506,
29933,
262,
29882,
29961,
29900,
2314,
13,
4706,
1583,
29889,
10052,
29889,
5504,
29898,
2506,
29933,
262,
29882,
29961,
29896,
2314,
13,
1678,
822,
2767,
29924,
1148,
4850,
328,
29898,
1311,
29892,
29924,
1445,
1125,
13,
4706,
19566,
29924,
1148,
29922,
1311,
29889,
29924,
1148,
4850,
328,
29898,
29924,
1445,
29897,
13,
4706,
1583,
29889,
1066,
29889,
5504,
29898,
2506,
29924,
1148,
29961,
29900,
2314,
13,
4706,
1583,
29889,
10052,
29889,
5504,
29898,
2506,
29924,
1148,
29961,
29896,
2314,
13,
1678,
822,
25869,
29898,
1311,
1125,
13,
4706,
5694,
29896,
29922,
1311,
29889,
1066,
29889,
1639,
2042,
29898,
1311,
29889,
10052,
29897,
13,
4706,
5694,
29906,
29922,
1311,
29889,
1066,
29889,
1639,
2042,
29898,
1311,
29889,
484,
29884,
29897,
13,
4706,
5694,
29941,
29922,
1311,
29889,
10052,
29889,
1639,
2042,
29898,
1311,
29889,
484,
29884,
29897,
13,
4706,
1583,
29889,
1066,
29889,
29881,
17678,
29918,
5504,
29898,
7382,
29896,
29897,
13,
4706,
1583,
29889,
1066,
29889,
29881,
17678,
29918,
5504,
29898,
7382,
29906,
29897,
13,
4706,
1583,
29889,
10052,
29889,
29881,
17678,
29918,
5504,
29898,
7382,
29896,
29897,
13,
4706,
1583,
29889,
10052,
29889,
29881,
17678,
29918,
5504,
29898,
7382,
29941,
29897,
13,
4706,
1583,
29889,
484,
29884,
29889,
29881,
17678,
29918,
5504,
29898,
7382,
29906,
29897,
13,
4706,
1583,
29889,
484,
29884,
29889,
29881,
17678,
29918,
5504,
29898,
7382,
29941,
29897,
13,
1678,
822,
25869,
29906,
29898,
1311,
1125,
13,
4706,
5694,
29896,
29922,
1311,
29889,
1066,
29889,
1639,
2042,
29898,
1311,
29889,
10052,
29897,
13,
4706,
1583,
29889,
1066,
29889,
29881,
17678,
29918,
5504,
29898,
7382,
29896,
29897,
13,
4706,
1583,
29889,
10052,
29889,
29881,
17678,
29918,
5504,
29898,
7382,
29896,
29897,
13,
13,
29937,
2683,
2683,
2683,
2683,
9072,
489,
13,
29937,
2683,
2683,
2683,
2683,
9072,
489,
13,
1990,
4840,
1272,
29898,
3318,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
4516,
978,
1125,
13,
4706,
1583,
29889,
25721,
353,
4516,
978,
13,
1678,
822,
4770,
1524,
12035,
1311,
1125,
13,
4706,
363,
285,
978,
297,
2897,
29889,
1761,
3972,
29898,
1311,
29889,
25721,
1125,
13,
9651,
363,
1196,
297,
1722,
29898,
359,
29889,
2084,
29889,
7122,
29898,
1311,
29889,
25721,
29892,
285,
978,
22164,
13,
18884,
7709,
1196,
29889,
29878,
17010,
2141,
5451,
28909,
29873,
1495,
13,
1753,
1303,
29911,
574,
29898,
29888,
978,
2433,
6995,
13237,
29914,
13762,
2310,
29890,
29914,
893,
705,
29374,
13,
1678,
953,
5824,
29922,
5461,
1272,
29898,
29888,
978,
29897,
13,
1678,
8297,
4299,
3790,
29913,
13,
1678,
363,
3252,
29906,
2003,
297,
953,
5824,
29901,
13,
4706,
281,
29881,
29922,
7516,
29906,
2003,
29961,
29900,
29962,
13,
4706,
995,
11759,
7411,
29898,
29875,
29897,
363,
474,
297,
3252,
29906,
2003,
29961,
29896,
29901,
5262,
13,
4706,
8297,
4299,
29961,
9970,
13192,
9302,
29889,
2378,
29898,
1767,
29897,
13,
1678,
736,
8297,
4299,
13,
29937,
2683,
2683,
2683,
2683,
9072,
489,
13,
29937,
2683,
2683,
2683,
2683,
9072,
489,
13,
1990,
3646,
7516,
29898,
3318,
1125,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
29893,
29906,
29894,
29888,
2433,
6995,
13237,
29914,
13762,
2310,
29890,
29914,
29893,
29906,
29894,
29914,
29883,
29896,
29900,
29918,
29893,
29941,
29918,
29879,
29896,
29900,
29900,
742,
13,
462,
4706,
17971,
705,
29888,
2433,
6995,
13237,
29914,
13762,
2310,
29890,
29914,
893,
705,
29374,
13,
4706,
1583,
29889,
29893,
29906,
29894,
29922,
17397,
326,
29889,
9794,
29889,
14463,
29906,
25987,
29889,
1359,
29898,
29893,
29906,
29894,
29888,
29897,
29871,
13,
4706,
1583,
29889,
893,
705,
29922,
949,
29911,
574,
29898,
893,
705,
29888,
29897,
29871,
13,
4706,
1583,
29889,
2506,
27078,
29922,
2506,
4144,
580,
13,
13,
1678,
822,
953,
29881,
893,
705,
29898,
1311,
29892,
29875,
29892,
2029,
29892,
3909,
29892,
5182,
1125,
13,
4706,
285,
29922,
9302,
29889,
2378,
4197,
2314,
268,
13,
4706,
301,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
364,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
260,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
19375,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
20371,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
396,
17987,
29881,
886,
310,
2989,
7516,
5680,
13,
4706,
285,
29922,
1311,
29889,
893,
705,
29889,
657,
29898,
3909,
29892,
1311,
29889,
893,
705,
1839,
0,
525,
2314,
13,
4706,
396,
17987,
29881,
886,
310,
29871,
2175,
3030,
5680,
13,
4706,
565,
474,
29966,
2029,
29901,
13,
9651,
301,
29922,
1311,
29889,
893,
705,
29889,
657,
29898,
3909,
29892,
1311,
29889,
893,
705,
1839,
0,
525,
2314,
13,
9651,
565,
1583,
29889,
2506,
27078,
29889,
1066,
29889,
790,
786,
24197,
29898,
842,
4197,
3909,
12622,
29901,
13,
18884,
1018,
29901,
13,
462,
1678,
19375,
29922,
1311,
29889,
893,
705,
29961,
3909,
29962,
13,
18884,
5174,
29901,
13,
462,
1678,
1209,
13,
9651,
565,
1583,
29889,
2506,
27078,
29889,
10052,
29889,
790,
786,
24197,
29898,
842,
4197,
3909,
12622,
29901,
13,
18884,
1018,
29901,
13,
462,
1678,
19375,
29922,
1311,
29889,
893,
705,
29961,
3909,
29962,
13,
18884,
5174,
29901,
13,
462,
1678,
1209,
13,
4706,
396,
331,
1327,
287,
29881,
886,
310,
29871,
3646,
5680,
259,
13,
4706,
25342,
29898,
29875,
1360,
2029,
1125,
13,
9651,
260,
29922,
1311,
29889,
893,
705,
29889,
657,
29898,
5182,
29889,
6506,
877,
29918,
3788,
5477,
1311,
29889,
893,
705,
1839,
0,
525,
2314,
18884,
13,
9651,
3646,
29906,
29922,
5182,
29889,
5451,
877,
29918,
1495,
13,
9651,
363,
281,
29881,
297,
3646,
29906,
29901,
13,
18884,
19538,
29922,
1311,
29889,
893,
705,
29889,
657,
29898,
9970,
29892,
1311,
29889,
893,
705,
1839,
0,
525,
2314,
13,
18884,
260,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
29873,
29892,
2034,
2314,
13,
632,
13,
4706,
396,
331,
1327,
287,
29881,
886,
310,
29871,
1492,
3030,
5680,
13,
4706,
1683,
29901,
13,
9651,
364,
29922,
1311,
29889,
893,
705,
29889,
657,
29898,
3909,
29892,
1311,
29889,
893,
705,
1839,
0,
525,
2314,
13,
9651,
565,
1583,
29889,
2506,
27078,
29889,
1066,
29889,
790,
786,
24197,
29898,
842,
4197,
3909,
12622,
29901,
13,
18884,
1018,
29901,
13,
462,
1678,
20371,
29922,
1311,
29889,
893,
705,
29961,
3909,
29962,
13,
18884,
5174,
29901,
13,
462,
1678,
1209,
13,
9651,
565,
1583,
29889,
2506,
27078,
29889,
10052,
29889,
790,
786,
24197,
29898,
842,
4197,
3909,
12622,
29901,
13,
18884,
1018,
29901,
13,
462,
1678,
20371,
29922,
1311,
29889,
893,
705,
29961,
3909,
29962,
13,
18884,
5174,
29901,
13,
462,
1678,
1209,
29871,
13,
4706,
736,
518,
29888,
29892,
29880,
29892,
29873,
29892,
29878,
29892,
3137,
29892,
2288,
29962,
13,
1678,
822,
953,
28012,
29906,
29894,
29898,
1311,
29892,
29875,
29892,
2029,
29892,
3909,
29892,
5182,
1125,
13,
4706,
285,
29922,
9302,
29889,
2378,
4197,
2314,
268,
13,
4706,
301,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
364,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
260,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
19375,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
20371,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
1018,
29901,
13,
9651,
285,
29922,
1311,
29889,
29893,
29906,
29894,
29961,
3909,
29962,
13,
4706,
5174,
29901,
13,
9651,
1209,
29871,
13,
4706,
396,
331,
1327,
287,
29881,
886,
310,
29871,
2175,
3030,
5680,
13,
4706,
565,
474,
29966,
2029,
29901,
13,
9651,
1018,
29901,
13,
18884,
301,
29922,
1311,
29889,
29893,
29906,
29894,
29961,
3909,
29962,
13,
9651,
5174,
29901,
13,
18884,
1209,
13,
9651,
1018,
29901,
13,
18884,
565,
1583,
29889,
2506,
27078,
29889,
1066,
29889,
790,
786,
24197,
29898,
842,
4197,
3909,
12622,
29901,
13,
462,
1678,
19375,
29922,
1311,
29889,
29893,
29906,
29894,
29961,
3909,
29962,
13,
9651,
5174,
29901,
13,
18884,
1209,
13,
9651,
1018,
29901,
13,
18884,
565,
1583,
29889,
2506,
27078,
29889,
10052,
29889,
790,
786,
24197,
29898,
842,
4197,
3909,
12622,
29901,
13,
462,
1678,
19375,
29922,
1311,
29889,
29893,
29906,
29894,
29961,
3909,
29962,
13,
9651,
5174,
29901,
13,
18884,
1209,
13,
4706,
396,
331,
1327,
287,
29881,
886,
310,
29871,
3646,
4682,
259,
13,
4706,
25342,
29898,
29875,
1360,
2029,
1125,
13,
9651,
1018,
29901,
13,
18884,
260,
29922,
1311,
29889,
29893,
29906,
29894,
29961,
5182,
29889,
6506,
877,
29918,
3788,
1495,
29962,
13,
9651,
5174,
29901,
13,
18884,
1209,
462,
13,
9651,
3646,
29906,
29922,
5182,
29889,
5451,
877,
29918,
1495,
13,
9651,
363,
281,
29881,
297,
3646,
29906,
29901,
13,
18884,
1018,
29901,
13,
462,
1678,
19538,
29922,
1311,
29889,
29893,
29906,
29894,
29961,
9970,
29962,
13,
462,
1678,
260,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
29873,
29892,
2034,
2314,
13,
18884,
5174,
29901,
13,
462,
1678,
1209,
268,
13,
4706,
396,
331,
1327,
287,
29881,
886,
310,
29871,
1492,
3030,
5680,
13,
4706,
1683,
29901,
13,
9651,
1018,
29901,
13,
18884,
364,
29922,
1311,
29889,
29893,
29906,
29894,
29961,
3909,
29962,
13,
9651,
5174,
29901,
13,
18884,
1209,
13,
9651,
1018,
29901,
13,
18884,
565,
1583,
29889,
2506,
27078,
29889,
1066,
29889,
790,
786,
24197,
29898,
842,
4197,
3909,
12622,
29901,
13,
462,
1678,
20371,
29922,
1311,
29889,
29893,
29906,
29894,
29961,
3909,
29962,
13,
9651,
5174,
29901,
13,
18884,
1209,
13,
9651,
1018,
29901,
13,
18884,
565,
1583,
29889,
2506,
27078,
29889,
10052,
29889,
790,
786,
24197,
29898,
842,
4197,
3909,
12622,
29901,
13,
462,
1678,
20371,
29922,
1311,
29889,
29893,
29906,
29894,
29961,
3909,
29962,
13,
9651,
5174,
29901,
13,
18884,
1209,
1678,
13,
4706,
736,
518,
29888,
29892,
29880,
29892,
29873,
29892,
29878,
29892,
3137,
29892,
2288,
29962,
308,
13,
13,
1678,
822,
3022,
1131,
29893,
29898,
1311,
29892,
14394,
29892,
2311,
29892,
29873,
5652,
29892,
300,
668,
29892,
2029,
29879,
29892,
5182,
29892,
3451,
29892,
331,
356,
1125,
13,
4706,
9995,
23924,
2579,
362,
310,
1422,
5680,
13,
4706,
9995,
13,
4706,
2989,
29888,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
2175,
29888,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
1492,
29888,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
9913,
29888,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
2989,
7516,
29918,
3317,
29879,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
2989,
7516,
29918,
29885,
1144,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
2989,
7516,
29918,
1004,
550,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
2989,
7516,
29918,
771,
6289,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
2175,
29918,
3317,
29879,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
2175,
29918,
29885,
1144,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
2175,
29918,
1004,
550,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
2175,
29918,
771,
6289,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
1492,
29918,
3317,
29879,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
1492,
29918,
29885,
1144,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
1492,
29918,
1004,
550,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
1492,
29918,
771,
6289,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
9913,
29918,
3317,
29879,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
9913,
29918,
29885,
1144,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
9913,
29918,
1004,
550,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
9913,
29918,
771,
6289,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
2175,
29879,
7268,
29918,
3317,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
10462,
7268,
29918,
3317,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
2175,
29879,
7268,
29918,
2083,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
10462,
7268,
29918,
2083,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
2989,
29873,
5652,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
2175,
29879,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
10462,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
260,
1503,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
2175,
18616,
275,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
10462,
296,
275,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
363,
263,
297,
3464,
29898,
2435,
29898,
2029,
29879,
22164,
13,
3986,
565,
953,
356,
1360,
29915,
8159,
2396,
13,
9651,
3252,
353,
3252,
29879,
13,
3986,
1683,
29901,
13,
9651,
3252,
353,
3252,
29879,
29961,
29874,
29962,
13,
3986,
1180,
353,
1180,
29879,
29961,
29874,
29962,
13,
3986,
2989,
7516,
29922,
9302,
29889,
2378,
4197,
2314,
13,
3986,
2175,
29922,
9302,
29889,
2378,
4197,
2314,
13,
3986,
1492,
29922,
9302,
29889,
2378,
4197,
2314,
13,
3986,
9913,
29922,
9302,
29889,
2378,
4197,
2314,
13,
3986,
2175,
29879,
7268,
29922,
9302,
29889,
2378,
4197,
2314,
13,
3986,
10462,
7268,
29922,
9302,
29889,
2378,
4197,
2314,
13,
3986,
363,
474,
29892,
3909,
297,
26985,
29898,
7516,
1125,
13,
795,
565,
953,
356,
1275,
29915,
5510,
2396,
13,
462,
29871,
443,
29875,
353,
443,
29875,
29961,
29900,
29962,
13,
795,
565,
634,
668,
1360,
29915,
29893,
29906,
29894,
2396,
13,
462,
29871,
285,
29892,
29880,
29892,
29873,
29892,
29878,
29892,
3137,
29892,
2288,
29922,
1311,
29889,
331,
28012,
29906,
29894,
29898,
29875,
29892,
2029,
29892,
3909,
29892,
5182,
29897,
13,
795,
565,
634,
668,
1360,
29915,
893,
705,
2396,
13,
462,
29871,
285,
29892,
29880,
29892,
29873,
29892,
29878,
29892,
3137,
29892,
2288,
29922,
1311,
29889,
331,
29881,
893,
705,
29898,
29875,
29892,
2029,
29892,
3909,
29892,
5182,
29897,
13,
795,
2989,
7516,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
8159,
7516,
29892,
29888,
2314,
13,
795,
2175,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
1563,
29892,
29880,
2314,
13,
795,
9913,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
12637,
29892,
29873,
2314,
13,
795,
1492,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
1266,
29892,
29878,
2314,
13,
795,
2175,
29879,
7268,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
1563,
29879,
7268,
29892,
3137,
2314,
13,
795,
10462,
7268,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
1266,
29879,
7268,
29892,
2288,
2314,
13,
3986,
396,
12791,
29871,
13,
3986,
565,
1051,
29898,
1563,
29897,
1360,
2636,
29901,
13,
795,
2175,
29922,
9302,
29889,
3298,
359,
3552,
29906,
29930,
2311,
29892,
876,
13,
3986,
565,
1051,
29898,
1266,
29897,
1360,
2636,
29901,
13,
795,
1492,
29922,
9302,
29889,
3298,
359,
3552,
29906,
29930,
2311,
29892,
876,
13,
3986,
565,
1051,
29898,
8159,
7516,
29897,
1360,
2636,
29901,
13,
795,
2989,
7516,
29922,
9302,
29889,
3298,
359,
3552,
29906,
29930,
2311,
29892,
876,
29871,
13,
3986,
565,
1051,
29898,
12637,
29897,
1360,
2636,
29901,
13,
795,
9913,
29922,
9302,
29889,
3298,
359,
3552,
29906,
29930,
2311,
29892,
876,
13,
965,
13,
3986,
565,
7431,
29898,
1563,
29897,
14065,
2311,
29901,
13,
795,
2175,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
1563,
29892,
9302,
29889,
3298,
359,
3552,
2311,
29892,
876,
2314,
13,
3986,
565,
7431,
29898,
1266,
29897,
14065,
2311,
29901,
13,
795,
1492,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
1266,
29892,
9302,
29889,
3298,
359,
3552,
2311,
29892,
876,
2314,
13,
3986,
565,
7431,
29898,
8159,
7516,
29897,
14065,
2311,
29901,
13,
795,
2989,
7516,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
8159,
7516,
29892,
9302,
29889,
3298,
359,
3552,
2311,
29892,
876,
2314,
13,
3986,
565,
7431,
29898,
12637,
29897,
14065,
2311,
29901,
13,
795,
9913,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
12637,
29892,
9302,
29889,
3298,
359,
3552,
2311,
29892,
876,
2314,
1678,
13,
13,
3986,
565,
1051,
29898,
1563,
29879,
7268,
29897,
1360,
2636,
29901,
13,
795,
2175,
29879,
7268,
29922,
9302,
29889,
3298,
359,
3552,
2311,
29892,
876,
13,
3986,
565,
1051,
29898,
1266,
29879,
7268,
29897,
1360,
2636,
29901,
13,
795,
10462,
7268,
29922,
9302,
29889,
3298,
359,
3552,
2311,
29892,
876,
4706,
13,
13,
3986,
2989,
29888,
29922,
9302,
29889,
4397,
29898,
8159,
29888,
29892,
8159,
7516,
29892,
9685,
29922,
29900,
29897,
13,
3986,
2175,
29888,
29922,
9302,
29889,
4397,
29898,
1563,
29888,
29892,
1563,
29892,
9685,
29922,
29900,
29897,
13,
3986,
1492,
29888,
29922,
9302,
29889,
4397,
29898,
1266,
29888,
29892,
1266,
29892,
9685,
29922,
29900,
29897,
13,
3986,
9913,
29888,
29922,
9302,
29889,
4397,
29898,
12637,
29888,
29892,
12637,
29892,
9685,
29922,
29900,
29897,
13,
3986,
2989,
7516,
29922,
8159,
7516,
29889,
690,
14443,
29898,
2435,
29898,
8159,
7516,
6802,
2311,
29892,
2311,
29897,
13,
3986,
2175,
29922,
1563,
29889,
690,
14443,
29898,
2435,
29898,
1563,
6802,
2311,
29892,
2311,
29897,
13,
3986,
1492,
29922,
1266,
29889,
690,
14443,
29898,
2435,
29898,
1266,
6802,
2311,
29892,
2311,
29897,
29871,
13,
3986,
9913,
29922,
12637,
29889,
690,
14443,
29898,
2435,
29898,
12637,
6802,
2311,
29892,
2311,
29897,
13,
3986,
2175,
29879,
7268,
29922,
1563,
29879,
7268,
29889,
690,
14443,
29898,
2435,
29898,
1563,
29879,
7268,
6802,
2311,
29892,
2311,
29897,
1678,
13,
3986,
10462,
7268,
29922,
1266,
29879,
7268,
29889,
690,
14443,
29898,
2435,
29898,
1266,
29879,
7268,
6802,
2311,
29892,
2311,
29897,
13,
965,
13,
3986,
2989,
7516,
29918,
3317,
29879,
29922,
9302,
29889,
4397,
29898,
8159,
7516,
29918,
3317,
29879,
29892,
8159,
7516,
29889,
3317,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
2989,
7516,
29918,
29885,
1144,
29922,
9302,
29889,
4397,
29898,
8159,
7516,
29918,
29885,
1144,
29892,
8159,
7516,
29889,
1195,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
2989,
7516,
29918,
1004,
550,
29922,
9302,
29889,
4397,
29898,
8159,
7516,
29918,
1004,
550,
29892,
8159,
7516,
29889,
12676,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
2989,
7516,
29918,
771,
6289,
29922,
9302,
29889,
4397,
29898,
8159,
7516,
29918,
771,
6289,
29892,
8159,
7516,
29889,
10633,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
965,
13,
3986,
2175,
29918,
3317,
29879,
29922,
9302,
29889,
4397,
29898,
1563,
29918,
3317,
29879,
29892,
1563,
29889,
3317,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
2175,
29918,
29885,
1144,
29922,
9302,
29889,
4397,
29898,
1563,
29918,
29885,
1144,
29892,
1563,
29889,
1195,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
2175,
29918,
1004,
550,
29922,
9302,
29889,
4397,
29898,
1563,
29918,
1004,
550,
29892,
1563,
29889,
12676,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
565,
451,
7442,
29889,
2798,
29918,
5464,
9171,
29898,
1563,
1125,
13,
9651,
2175,
29918,
771,
6289,
29922,
9302,
29889,
4397,
29898,
1563,
29918,
771,
6289,
29892,
1563,
29889,
10633,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
1683,
29901,
13,
9651,
2175,
29918,
771,
6289,
29922,
9302,
29889,
4397,
29898,
1563,
29918,
771,
6289,
29892,
1563,
29961,
30022,
9302,
29889,
497,
29898,
1563,
1275,
29871,
29900,
29892,
9685,
29922,
29896,
29897,
1822,
10633,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
1492,
29918,
3317,
29879,
29922,
9302,
29889,
4397,
29898,
1266,
29918,
3317,
29879,
29892,
1266,
29889,
3317,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
1492,
29918,
29885,
1144,
29922,
9302,
29889,
4397,
29898,
1266,
29918,
29885,
1144,
29892,
1266,
29889,
1195,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
1492,
29918,
1004,
550,
29922,
9302,
29889,
4397,
29898,
1266,
29918,
1004,
550,
29892,
1266,
29889,
12676,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
565,
451,
7442,
29889,
2798,
29918,
5464,
9171,
29898,
1266,
1125,
13,
9651,
1492,
29918,
771,
6289,
29922,
9302,
29889,
4397,
29898,
1266,
29918,
771,
6289,
29892,
1266,
29889,
10633,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
1683,
29901,
13,
9651,
1492,
29918,
771,
6289,
29922,
9302,
29889,
4397,
29898,
1266,
29918,
771,
6289,
29892,
1266,
29961,
30022,
9302,
29889,
497,
29898,
1266,
1275,
29871,
29900,
29892,
9685,
29922,
29896,
29897,
1822,
10633,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
9913,
29918,
3317,
29879,
29922,
9302,
29889,
4397,
29898,
12637,
29918,
3317,
29879,
29892,
12637,
29889,
3317,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
9913,
29918,
29885,
1144,
29922,
9302,
29889,
4397,
29898,
12637,
29918,
29885,
1144,
29892,
12637,
29889,
1195,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
9913,
29918,
1004,
550,
29922,
9302,
29889,
4397,
29898,
12637,
29918,
1004,
550,
29892,
12637,
29889,
12676,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
9913,
29918,
771,
6289,
29922,
9302,
29889,
4397,
29898,
12637,
29918,
771,
6289,
29892,
12637,
29889,
10633,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
965,
13,
3986,
2175,
29879,
7268,
29918,
3317,
29922,
9302,
29889,
4397,
29898,
1563,
29879,
7268,
29918,
3317,
29892,
1563,
29879,
7268,
29889,
3317,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
10462,
7268,
29918,
3317,
29922,
9302,
29889,
4397,
29898,
1266,
29879,
7268,
29918,
3317,
29892,
1266,
29879,
7268,
29889,
3317,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
2175,
29879,
7268,
29918,
2083,
29922,
9302,
29889,
4397,
29898,
1563,
29879,
7268,
29918,
2083,
29892,
1563,
29879,
7268,
29889,
2083,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
3986,
10462,
7268,
29918,
2083,
29922,
9302,
29889,
4397,
29898,
1266,
29879,
7268,
29918,
2083,
29892,
1266,
29879,
7268,
29889,
2083,
29898,
8990,
29922,
29900,
511,
9685,
29922,
29900,
29897,
13,
965,
13,
4706,
2989,
29888,
29922,
8159,
29888,
29889,
690,
14443,
29898,
2435,
29898,
8159,
29888,
6802,
2311,
29892,
2311,
29897,
13,
4706,
2175,
29888,
29922,
1563,
29888,
29889,
690,
14443,
29898,
2435,
29898,
1563,
29888,
6802,
2311,
29892,
2311,
29897,
13,
4706,
1492,
29888,
29922,
1266,
29888,
29889,
690,
14443,
29898,
2435,
29898,
1266,
29888,
6802,
2311,
29892,
2311,
29897,
13,
4706,
9913,
29888,
29922,
12637,
29888,
29889,
690,
14443,
29898,
2435,
29898,
12637,
29888,
6802,
2311,
29892,
2311,
29897,
13,
4706,
2989,
7516,
29918,
3317,
29879,
29922,
8159,
7516,
29918,
3317,
29879,
29889,
690,
14443,
29898,
2435,
29898,
8159,
7516,
29918,
3317,
29879,
6802,
2311,
29892,
2311,
29897,
13,
4706,
2989,
7516,
29918,
29885,
1144,
29922,
8159,
7516,
29918,
29885,
1144,
29889,
690,
14443,
29898,
2435,
29898,
8159,
7516,
29918,
29885,
1144,
6802,
2311,
29892,
2311,
29897,
13,
4706,
2989,
7516,
29918,
1004,
550,
29922,
8159,
7516,
29918,
1004,
550,
29889,
690,
14443,
29898,
2435,
29898,
8159,
7516,
29918,
1004,
550,
6802,
2311,
29892,
2311,
29897,
13,
4706,
2989,
7516,
29918,
771,
6289,
29922,
8159,
7516,
29918,
771,
6289,
29889,
690,
14443,
29898,
2435,
29898,
8159,
7516,
29918,
771,
6289,
6802,
2311,
29892,
2311,
29897,
13,
4706,
2175,
29918,
3317,
29879,
29922,
1563,
29918,
3317,
29879,
29889,
690,
14443,
29898,
2435,
29898,
1563,
29918,
3317,
29879,
6802,
2311,
29892,
2311,
29897,
13,
4706,
2175,
29918,
29885,
1144,
29922,
1563,
29918,
29885,
1144,
29889,
690,
14443,
29898,
2435,
29898,
1563,
29918,
29885,
1144,
6802,
2311,
29892,
2311,
29897,
13,
4706,
2175,
29918,
1004,
550,
29922,
1563,
29918,
1004,
550,
29889,
690,
14443,
29898,
2435,
29898,
1563,
29918,
1004,
550,
6802,
2311,
29892,
2311,
29897,
13,
4706,
2175,
29918,
771,
6289,
29922,
1563,
29918,
771,
6289,
29889,
690,
14443,
29898,
2435,
29898,
1563,
29918,
771,
6289,
6802,
2311,
29892,
2311,
29897,
13,
4706,
1492,
29918,
3317,
29879,
29922,
1266,
29918,
3317,
29879,
29889,
690,
14443,
29898,
2435,
29898,
1266,
29918,
3317,
29879,
6802,
2311,
29892,
2311,
29897,
13,
4706,
1492,
29918,
29885,
1144,
29922,
1266,
29918,
29885,
1144,
29889,
690,
14443,
29898,
2435,
29898,
1266,
29918,
29885,
1144,
6802,
2311,
29892,
2311,
29897,
13,
4706,
1492,
29918,
1004,
550,
29922,
1266,
29918,
1004,
550,
29889,
690,
14443,
29898,
2435,
29898,
1266,
29918,
1004,
550,
6802,
2311,
29892,
2311,
29897,
13,
4706,
1492,
29918,
771,
6289,
29922,
1266,
29918,
771,
6289,
29889,
690,
14443,
29898,
2435,
29898,
1266,
29918,
771,
6289,
6802,
2311,
29892,
2311,
29897,
13,
4706,
9913,
29918,
3317,
29879,
29922,
12637,
29918,
3317,
29879,
29889,
690,
14443,
29898,
2435,
29898,
12637,
29918,
3317,
29879,
6802,
2311,
29892,
2311,
29897,
13,
4706,
9913,
29918,
29885,
1144,
29922,
12637,
29918,
29885,
1144,
29889,
690,
14443,
29898,
2435,
29898,
12637,
29918,
29885,
1144,
6802,
2311,
29892,
2311,
29897,
13,
4706,
9913,
29918,
1004,
550,
29922,
12637,
29918,
1004,
550,
29889,
690,
14443,
29898,
2435,
29898,
12637,
29918,
1004,
550,
6802,
2311,
29892,
2311,
29897,
13,
4706,
9913,
29918,
771,
6289,
29922,
12637,
29918,
771,
6289,
29889,
690,
14443,
29898,
2435,
29898,
12637,
29918,
771,
6289,
6802,
2311,
29892,
2311,
29897,
13,
4706,
2175,
29879,
7268,
29918,
3317,
29922,
1563,
29879,
7268,
29918,
3317,
29889,
690,
14443,
29898,
2435,
29898,
1563,
29879,
7268,
29918,
3317,
6802,
2311,
29892,
2311,
29897,
13,
4706,
10462,
7268,
29918,
3317,
29922,
1266,
29879,
7268,
29918,
3317,
29889,
690,
14443,
29898,
2435,
29898,
1266,
29879,
7268,
29918,
3317,
6802,
2311,
29892,
2311,
29897,
13,
4706,
2175,
29879,
7268,
29918,
2083,
29922,
1563,
29879,
7268,
29918,
2083,
29889,
690,
14443,
29898,
2435,
29898,
1563,
29879,
7268,
29918,
2083,
6802,
2311,
29892,
2311,
29897,
13,
4706,
10462,
7268,
29918,
2083,
29922,
1266,
29879,
7268,
29918,
2083,
29889,
690,
14443,
29898,
2435,
29898,
1266,
29879,
7268,
29918,
2083,
6802,
2311,
29892,
2311,
29897,
13,
308,
13,
4706,
2989,
29873,
5652,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
9302,
29889,
2168,
713,
29898,
8159,
7516,
29918,
3317,
29879,
29892,
9685,
29922,
29900,
511,
13,
462,
18884,
7442,
29889,
2168,
713,
29898,
8159,
7516,
29918,
29885,
1144,
29892,
9685,
29922,
29900,
511,
13,
462,
18884,
7442,
29889,
2168,
713,
29898,
8159,
7516,
29918,
1004,
550,
29892,
9685,
29922,
29900,
511,
13,
462,
18884,
7442,
29889,
4172,
29898,
8159,
29888,
29892,
9685,
29922,
29900,
511,
13,
462,
18884,
7442,
29889,
2168,
713,
29898,
8159,
7516,
29918,
771,
6289,
29892,
9685,
29922,
29900,
29897,
13,
462,
462,
2314,
13,
4706,
2175,
29879,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
9302,
29889,
2168,
713,
29898,
1563,
29918,
3317,
29879,
29892,
9685,
29922,
29900,
511,
13,
462,
795,
7442,
29889,
2168,
713,
29898,
1563,
29918,
29885,
1144,
29892,
9685,
29922,
29900,
511,
13,
462,
795,
7442,
29889,
2168,
713,
29898,
1563,
29918,
1004,
550,
29892,
9685,
29922,
29900,
511,
13,
462,
795,
7442,
29889,
4172,
29898,
1563,
29888,
29892,
9685,
29922,
29900,
511,
13,
462,
795,
7442,
29889,
2168,
713,
29898,
1563,
29918,
771,
6289,
29892,
9685,
29922,
29900,
29897,
13,
462,
1669,
2314,
13,
4706,
10462,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
9302,
29889,
2168,
713,
29898,
1266,
29918,
3317,
29879,
29892,
9685,
29922,
29900,
511,
13,
462,
795,
7442,
29889,
2168,
713,
29898,
1266,
29918,
29885,
1144,
29892,
9685,
29922,
29900,
511,
13,
462,
795,
7442,
29889,
2168,
713,
29898,
1266,
29918,
1004,
550,
29892,
9685,
29922,
29900,
511,
13,
462,
795,
7442,
29889,
4172,
29898,
1266,
29888,
29892,
9685,
29922,
29900,
511,
13,
462,
795,
7442,
29889,
2168,
713,
29898,
1266,
29918,
771,
6289,
29892,
9685,
29922,
29900,
29897,
13,
462,
1669,
2314,
13,
4706,
260,
1503,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
9302,
29889,
2168,
713,
29898,
12637,
29918,
3317,
29879,
29892,
9685,
29922,
29900,
511,
13,
462,
9651,
7442,
29889,
2168,
713,
29898,
12637,
29918,
29885,
1144,
29892,
9685,
29922,
29900,
511,
13,
462,
9651,
7442,
29889,
2168,
713,
29898,
12637,
29918,
1004,
550,
29892,
9685,
29922,
29900,
511,
13,
462,
9651,
7442,
29889,
4172,
29898,
12637,
29888,
29892,
9685,
29922,
29900,
511,
13,
462,
9651,
7442,
29889,
2168,
713,
29898,
12637,
29918,
771,
6289,
29892,
9685,
29922,
29900,
29897,
13,
462,
632,
2314,
13,
13,
4706,
2175,
18616,
275,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
9302,
29889,
2168,
713,
29898,
1563,
29879,
7268,
29918,
3317,
29892,
9685,
29922,
29900,
511,
13,
462,
462,
29871,
7442,
29889,
2168,
713,
29898,
1563,
29879,
7268,
29918,
2083,
29892,
9685,
29922,
29900,
29897,
2314,
13,
4706,
10462,
296,
275,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
9302,
29889,
2168,
713,
29898,
1266,
29879,
7268,
29918,
3317,
29892,
9685,
29922,
29900,
511,
13,
462,
462,
29871,
7442,
29889,
2168,
713,
29898,
1266,
29879,
7268,
29918,
2083,
29892,
9685,
29922,
29900,
29897,
2314,
13,
4706,
565,
953,
356,
1275,
525,
8159,
2396,
13,
9651,
565,
3710,
29901,
13,
18884,
396,
3462,
29879,
2989,
7780,
300,
4682,
12047,
13,
18884,
4682,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
14394,
29892,
8159,
29873,
5652,
2314,
13,
9651,
1683,
29901,
13,
18884,
4682,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
14394,
29892,
1563,
29879,
2314,
13,
18884,
4682,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
14394,
29892,
1266,
29879,
2314,
13,
18884,
4682,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
14394,
29892,
29873,
1503,
2314,
13,
13,
18884,
396,
3462,
29879,
5680,
515,
19566,
4144,
22289,
3838,
13,
18884,
396,
313,
1333,
1304,
373,
278,
8271,
848,
29897,
13,
18884,
4682,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
14394,
29892,
1563,
18616,
275,
2314,
13,
18884,
4682,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
14394,
29892,
1266,
18616,
275,
2314,
13,
462,
308,
13,
4706,
25342,
953,
356,
1275,
525,
5510,
2396,
13,
9651,
4682,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
14394,
29892,
8159,
29873,
5652,
2314,
13,
13,
4706,
736,
4682,
13,
268,
13,
1678,
822,
17343,
549,
1725,
271,
29898,
1311,
29892,
848,
29888,
29892,
378,
645,
2084,
1125,
13,
4706,
9995,
4241,
740,
363,
313,
29928,
549,
634,
394,
1696,
29871,
29906,
29900,
29896,
29946,
29897,
848,
4682,
4805,
428,
29889,
13,
4706,
9995,
13,
4706,
2159,
29896,
29922,
2435,
29898,
1311,
29889,
29893,
29906,
29894,
1839,
1552,
11287,
13,
4706,
2159,
29906,
29922,
2435,
29898,
1311,
29889,
893,
705,
1839,
1552,
11287,
13,
4706,
378,
645,
353,
1303,
1168,
645,
29898,
535,
645,
2084,
29892,
525,
29883,
2589,
1495,
13,
4706,
848,
353,
4840,
7516,
29898,
1272,
29888,
29897,
13,
4706,
343,
29922,
2636,
13,
4706,
921,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
2302,
29922,
29900,
13,
4706,
363,
263,
29892,
270,
297,
26985,
29898,
1272,
1125,
13,
9651,
4682,
29922,
9302,
29889,
2378,
4197,
2314,
13,
9651,
3710,
29922,
8824,
13,
9651,
3252,
353,
518,
29873,
29961,
29896,
1822,
13609,
580,
363,
260,
297,
378,
645,
29961,
29874,
5262,
13,
9651,
3646,
353,
270,
29961,
29896,
29962,
13,
9651,
343,
29889,
4397,
29898,
29881,
29961,
29906,
2314,
13,
9651,
1018,
29901,
13,
795,
1180,
11759,
29875,
363,
474,
29892,
432,
297,
26985,
29898,
7516,
29897,
565,
432,
1275,
3646,
29962,
13,
9651,
5174,
8960,
408,
321,
29901,
13,
795,
1596,
376,
23323,
29876,
29915,
29873,
1284,
278,
5993,
3368,
3646,
3850,
13,
795,
1596,
3646,
29892,
3252,
13,
9651,
1014,
7516,
29892,
3646,
29918,
3283,
29892,
3710,
353,
13310,
1997,
929,
29898,
535,
645,
29961,
29874,
1402,
5182,
29892,
3451,
5501,
29883,
2589,
1495,
396,
18280,
8018,
3838,
304,
278,
3646,
13,
9651,
3710,
353,
7700,
13,
9651,
565,
3710,
29901,
13,
795,
2302,
23661,
29896,
13,
795,
4682,
29922,
1311,
29889,
535,
29883,
1131,
29893,
29898,
14394,
29892,
2311,
29896,
29892,
7516,
5501,
29893,
29906,
29894,
742,
2029,
29892,
5182,
29892,
3451,
5501,
8159,
1495,
29871,
13,
795,
4682,
29922,
1311,
29889,
535,
29883,
1131,
29893,
29898,
14394,
29892,
2311,
29906,
29892,
7516,
5501,
893,
705,
742,
2029,
29892,
5182,
29892,
3451,
5501,
8159,
1495,
13,
9651,
1683,
29901,
13,
795,
4682,
29922,
1311,
29889,
535,
29883,
1131,
29893,
29898,
14394,
29892,
2311,
29896,
29892,
1491,
7516,
5501,
29893,
29906,
29894,
742,
5182,
29918,
3283,
29892,
5182,
29892,
8824,
5501,
5510,
1495,
29871,
13,
795,
4682,
29922,
1311,
29889,
535,
29883,
1131,
29893,
29898,
14394,
29892,
2311,
29906,
29892,
1491,
7516,
5501,
893,
705,
742,
5182,
29918,
3283,
29892,
5182,
29892,
8824,
5501,
5510,
1495,
13,
9651,
4682,
29922,
1311,
29889,
535,
29883,
1131,
29893,
29898,
14394,
29892,
2311,
29896,
29892,
7516,
5501,
29893,
29906,
29894,
742,
2029,
29892,
5182,
29892,
8824,
5501,
8159,
1495,
29871,
13,
9651,
4682,
29922,
1311,
29889,
535,
29883,
1131,
29893,
29898,
14394,
29892,
2311,
29906,
29892,
7516,
5501,
893,
705,
742,
2029,
29892,
5182,
29892,
8824,
5501,
8159,
1495,
13,
9651,
921,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
29916,
29892,
14394,
2314,
13,
4706,
921,
29922,
29916,
29889,
690,
14443,
3552,
2435,
29898,
29891,
511,
2435,
29898,
29916,
6802,
2435,
29898,
29891,
4961,
13,
4706,
1596,
921,
29889,
12181,
13,
4706,
1596,
2302,
13,
4706,
736,
29898,
29916,
29892,
29891,
29897,
1678,
13,
795,
13,
1678,
822,
4552,
29883,
1725,
271,
29898,
1311,
29892,
848,
29888,
29892,
378,
645,
2084,
1125,
13,
4706,
9995,
4241,
740,
363,
8271,
848,
4682,
4805,
428,
29889,
13,
4706,
9995,
13,
4706,
2159,
29896,
29922,
2435,
29898,
1311,
29889,
29893,
29906,
29894,
1839,
1552,
11287,
13,
4706,
2159,
29906,
29922,
2435,
29898,
1311,
29889,
893,
705,
1839,
1552,
11287,
13,
4706,
378,
645,
353,
1303,
1168,
645,
29898,
535,
645,
2084,
29892,
525,
29883,
2589,
1495,
13,
4706,
848,
353,
4840,
7516,
29923,
280,
29883,
29898,
1272,
29888,
29897,
13,
4706,
343,
29922,
2636,
13,
4706,
921,
29922,
9302,
29889,
2378,
4197,
2314,
13,
4706,
1178,
353,
5159,
13,
4706,
2302,
29922,
29900,
13,
4706,
363,
263,
29892,
270,
297,
26985,
29898,
1272,
1125,
13,
9651,
4682,
29922,
9302,
29889,
2378,
4197,
2314,
13,
9651,
3710,
29922,
8824,
13,
9651,
3252,
11759,
29873,
29961,
29896,
29962,
363,
260,
297,
378,
645,
29961,
29874,
5262,
13,
9651,
396,
3252,
29922,
29881,
29961,
29900,
29962,
13,
9651,
3646,
29922,
29881,
29961,
29896,
29962,
13,
9651,
565,
3646,
1360,
11838,
5426,
29918,
8489,
29918,
29872,
4599,
293,
29908,
29918,
572,
550,
2396,
13,
18884,
3646,
2433,
5426,
29918,
8489,
29918,
29872,
4599,
293,
29915,
13,
9651,
343,
29889,
4397,
29898,
29881,
29961,
29906,
2314,
13,
9651,
1178,
29889,
4397,
29898,
29881,
29961,
29941,
2314,
13,
9651,
607,
650,
353,
270,
29961,
29946,
29962,
13,
9651,
14354,
353,
518,
29875,
363,
474,
29892,
432,
297,
26985,
29898,
7516,
29897,
565,
432,
1275,
3646,
29962,
13,
9651,
565,
313,
4716,
650,
2804,
525,
13707,
1495,
322,
313,
2435,
29898,
2029,
800,
15410,
29871,
29896,
1125,
13,
18884,
565,
607,
650,
6736,
7431,
29898,
2029,
800,
1125,
13,
462,
1678,
1180,
353,
14354,
14352,
29896,
29962,
13,
18884,
1683,
29901,
13,
462,
1678,
1180,
353,
14354,
29961,
4716,
650,
29962,
13,
9651,
1683,
29901,
13,
18884,
1180,
353,
3252,
29889,
2248,
29898,
5182,
29897,
13,
9651,
1014,
7516,
29892,
3646,
29918,
3283,
29892,
3710,
353,
13310,
1997,
929,
29898,
535,
645,
29961,
29874,
1402,
5182,
29892,
3451,
5501,
29883,
2589,
1495,
13,
9651,
3710,
353,
7700,
13,
9651,
565,
3710,
29901,
13,
18884,
2302,
23661,
29896,
13,
18884,
4682,
29922,
1311,
29889,
535,
29883,
1131,
29893,
29898,
14394,
29892,
2311,
29896,
29892,
7516,
5501,
29893,
29906,
29894,
742,
29961,
2029,
1402,
5182,
29892,
3451,
5501,
8159,
1495,
29871,
13,
18884,
4682,
29922,
1311,
29889,
535,
29883,
1131,
29893,
29898,
14394,
29892,
2311,
29906,
29892,
7516,
5501,
893,
705,
742,
29961,
2029,
1402,
5182,
29892,
3451,
5501,
8159,
1495,
13,
9651,
1683,
29901,
13,
18884,
4682,
29922,
1311,
29889,
535,
29883,
1131,
29893,
29898,
14394,
29892,
2311,
29896,
29892,
1491,
7516,
5501,
29893,
29906,
29894,
742,
5182,
29918,
3283,
29892,
5182,
29892,
8824,
5501,
5510,
1495,
29871,
13,
18884,
4682,
29922,
1311,
29889,
535,
29883,
1131,
29893,
29898,
14394,
29892,
2311,
29906,
29892,
1491,
7516,
5501,
893,
705,
742,
5182,
29918,
3283,
29892,
5182,
29892,
8824,
5501,
5510,
1495,
13,
9651,
4682,
29922,
1311,
29889,
535,
29883,
1131,
29893,
29898,
14394,
29892,
2311,
29896,
29892,
7516,
5501,
29893,
29906,
29894,
742,
29961,
2029,
1402,
5182,
29892,
8824,
5501,
8159,
1495,
29871,
13,
9651,
4682,
29922,
1311,
29889,
535,
29883,
1131,
29893,
29898,
14394,
29892,
2311,
29906,
29892,
7516,
5501,
893,
705,
742,
29961,
2029,
1402,
5182,
29892,
8824,
5501,
8159,
1495,
13,
9651,
921,
29922,
9302,
29889,
535,
29883,
2579,
403,
4197,
29916,
29892,
14394,
2314,
13,
4706,
921,
29922,
29916,
29889,
690,
14443,
3552,
2435,
29898,
29891,
511,
2435,
29898,
29916,
6802,
2435,
29898,
29891,
4961,
13,
4706,
1596,
921,
29889,
12181,
13,
4706,
1596,
2302,
13,
4706,
736,
29898,
29916,
29892,
29891,
29892,
333,
29897,
13,
13,
13,
1753,
1667,
29898,
29881,
29892,
7945,
29918,
535,
645,
2084,
29892,
1243,
29918,
535,
645,
2084,
1125,
13,
1678,
5680,
29922,
5182,
7516,
580,
13,
1678,
1596,
376,
21111,
292,
5680,
363,
6694,
29908,
13,
1678,
565,
313,
29881,
1275,
525,
29880,
333,
549,
1495,
470,
313,
29881,
1275,
525,
29879,
2004,
791,
29374,
13,
4706,
921,
29918,
14968,
29892,
29891,
29918,
14968,
29922,
22100,
29889,
29880,
333,
549,
1725,
271,
877,
6995,
1272,
29914,
18717,
29881,
23097,
29914,
26495,
29914,
742,
7945,
29918,
535,
645,
2084,
29897,
13,
4706,
1596,
525,
12914,
2752,
29901,
13420,
7945,
29918,
535,
645,
2084,
13,
1678,
25342,
270,
1275,
525,
29872,
1464,
2396,
13,
4706,
1596,
525,
29872,
1464,
6694,
848,
29915,
13,
4706,
921,
29918,
14968,
29892,
29891,
29918,
14968,
29892,
333,
29918,
14968,
29922,
22100,
29889,
6146,
29883,
1725,
271,
877,
6995,
1272,
29914,
18717,
29881,
23097,
29914,
26495,
29914,
742,
7945,
29918,
535,
645,
2084,
29897,
13,
4706,
2436,
29891,
877,
6995,
1272,
29914,
18717,
29881,
23097,
29914,
4905,
29914,
333,
29918,
14968,
742,
333,
29918,
14968,
29897,
13,
4706,
1596,
525,
12914,
2752,
29901,
13420,
7945,
29918,
535,
645,
2084,
13,
1678,
2436,
2003,
877,
6995,
1272,
29914,
18717,
29881,
23097,
29914,
4905,
29914,
26495,
742,
29916,
29918,
14968,
29892,
29891,
29918,
14968,
29897,
13,
268,
13,
1678,
1596,
376,
21111,
292,
5680,
363,
6724,
29908,
13,
1678,
565,
313,
29881,
1275,
525,
29880,
333,
549,
1495,
470,
313,
29881,
1275,
525,
29879,
2004,
791,
29374,
13,
4706,
921,
29918,
1688,
29892,
29891,
29918,
1688,
29922,
22100,
29889,
29880,
333,
549,
1725,
271,
877,
6995,
1272,
29914,
18717,
29881,
23097,
29914,
13424,
29914,
742,
1243,
29918,
535,
645,
2084,
29897,
13,
4706,
1596,
525,
12914,
2752,
29901,
13420,
1243,
29918,
535,
645,
2084,
13,
1678,
25342,
270,
1275,
525,
29872,
1464,
2396,
13,
4706,
1596,
525,
29872,
1464,
6724,
848,
29915,
13,
4706,
921,
29918,
1688,
29892,
29891,
29918,
1688,
29892,
333,
29918,
1688,
29922,
22100,
29889,
6146,
29883,
1725,
271,
877,
6995,
1272,
29914,
18717,
29881,
23097,
29914,
13424,
29914,
742,
1243,
29918,
535,
645,
2084,
29897,
13,
4706,
1596,
525,
12914,
2752,
29901,
13420,
1243,
29918,
535,
645,
2084,
13,
1678,
2436,
2003,
877,
6995,
1272,
29914,
18717,
29881,
23097,
29914,
4905,
29914,
13424,
742,
29916,
29918,
1688,
29892,
29891,
29918,
1688,
29897,
13,
1678,
2436,
29891,
877,
6995,
1272,
29914,
18717,
29881,
23097,
29914,
4905,
29914,
29891,
29918,
1688,
742,
29891,
29918,
1688,
29897,
13,
13,
361,
4770,
978,
1649,
1275,
376,
1649,
3396,
1649,
1115,
13,
1678,
13812,
353,
23125,
11726,
580,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
1272,
613,
2731,
543,
29881,
613,
1371,
543,
24713,
613,
2322,
2433,
1272,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
14968,
5510,
613,
2731,
543,
535,
645,
29896,
613,
1371,
543,
14968,
6088,
378,
645,
10422,
613,
2322,
2433,
6995,
1272,
29914,
29872,
1464,
29914,
862,
29879,
267,
29914,
29872,
1464,
29889,
14968,
29889,
535,
645,
1495,
13,
1678,
13812,
29889,
1202,
29918,
23516,
703,
489,
1688,
5510,
613,
2731,
543,
535,
645,
29906,
613,
1371,
543,
1688,
6088,
378,
645,
10422,
613,
2322,
2433,
6995,
1272,
29914,
29872,
1464,
29914,
862,
29879,
267,
29914,
29872,
1464,
29889,
1688,
29889,
535,
645,
1495,
13,
1678,
6389,
353,
13812,
29889,
5510,
29918,
5085,
580,
13,
1678,
1667,
29898,
5085,
29889,
29881,
29892,
6389,
29889,
535,
645,
29896,
29892,
6389,
29889,
535,
645,
29906,
29897,
13,
268,
13,
13,
13,
2
] |
app/main/forms.py | MichelAtieno/Personal-Blog | 0 | 69661 | <gh_stars>0
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, TextAreaField
from wtforms.validators import Required, DataRequired, Length
class SubscriberForm(FlaskForm):
email = StringField('Email', validators=[Required()])
subscribe = SubmitField('Subscribe')
class BlogPostForm(FlaskForm):
title = StringField('Title', validators=[DataRequired(),Length(min=1, max=1000)])
photo_url = StringField('Photo URL', validators=[Required()])
blog_content= TextAreaField('Post your blog', validators=[DataRequired(), Length(min=1)])
submit = SubmitField('Submit')
class CommentForm(FlaskForm):
name = StringField('Name',validators=[Required()])
comment_content = TextAreaField('Enter Comment', validators=[Required()])
submit = SubmitField('submit Comment')
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
29784,
29918,
29893,
13264,
1053,
2379,
1278,
2500,
13,
3166,
281,
29873,
9514,
1053,
1714,
3073,
29892,
3323,
2415,
3073,
29892,
3992,
13799,
3073,
13,
3166,
281,
29873,
9514,
29889,
3084,
4097,
1053,
830,
5958,
29892,
3630,
19347,
29892,
365,
1477,
13,
13,
1990,
3323,
7588,
495,
2500,
29898,
8754,
1278,
2500,
1125,
13,
1678,
4876,
353,
1714,
3073,
877,
9823,
742,
2854,
4097,
11759,
19347,
580,
2314,
13,
1678,
1014,
13086,
353,
3323,
2415,
3073,
877,
4035,
13086,
1495,
13,
13,
1990,
350,
1188,
6747,
2500,
29898,
8754,
1278,
2500,
1125,
13,
1678,
3611,
353,
1714,
3073,
877,
7030,
742,
2854,
4097,
11759,
1469,
19347,
3285,
6513,
29898,
1195,
29922,
29896,
29892,
4236,
29922,
29896,
29900,
29900,
29900,
29897,
2314,
13,
1678,
15373,
29918,
2271,
353,
1714,
3073,
877,
25971,
3988,
742,
2854,
4097,
11759,
19347,
580,
2314,
13,
1678,
12618,
29918,
3051,
29922,
3992,
13799,
3073,
877,
6747,
596,
12618,
742,
2854,
4097,
11759,
1469,
19347,
3285,
365,
1477,
29898,
1195,
29922,
29896,
29897,
2314,
13,
1678,
9752,
353,
3323,
2415,
3073,
877,
16228,
1495,
13,
13,
1990,
461,
2500,
29898,
8754,
1278,
2500,
1125,
13,
1678,
1024,
353,
1714,
3073,
877,
1170,
742,
3084,
4097,
11759,
19347,
580,
2314,
13,
1678,
3440,
29918,
3051,
353,
3992,
13799,
3073,
877,
10399,
461,
742,
2854,
4097,
11759,
19347,
580,
2314,
13,
1678,
9752,
353,
3323,
2415,
3073,
877,
7892,
461,
1495,
13,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.